@windstream/react-shared-components 0.2.69 → 0.2.70

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js CHANGED
@@ -1,20 +1,20 @@
1
1
  "use client";
2
2
 
3
- import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import*as r from"react";import o,{forwardRef as i,useEffect as a,useRef as s,useMemo as l,useState as c,useCallback as u,useId as d,useContext as p,useLayoutEffect as f,createContext as h,Component as m,Fragment as g,useInsertionEffect as b,createElement as v,useImperativeHandle as y,Children as x}from"react";import I from"next/link";import w from"next/image";import C,{createPortal as E}from"react-dom";function A(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=A(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function S(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=A(e))&&(r&&(r+=" "),r+=t);return r}const T=e=>{const t=R(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{const n=e.split("-");return""===n[0]&&1!==n.length&&n.shift(),O(n,t)||P(e)},getConflictingClassGroupIds:(e,t)=>{const o=n[e]||[];return t&&r[e]?[...o,...r[e]]:o}}},O=(e,t)=>{if(0===e.length)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?O(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},N=/^\[(.+)\]$/,P=e=>{if(N.test(e)){const t=N.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},R=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const e in n)k(n[e],r,e,t);return r},k=(e,t,n,r)=>{e.forEach(e=>{if("string"==typeof e){return void((""===e?t:L(t,e)).classGroupId=n)}if("function"==typeof e)return B(e)?void k(e(r),t,n,r):void t.validators.push({validator:e,classGroupId:n});Object.entries(e).forEach(([e,o])=>{k(o,L(t,e),n,r)})})},L=(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},B=e=>e.isThemeGetter,G=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)}}},j=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=M(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},M=e=>e.endsWith("!")?e.substring(0,e.length-1):e.startsWith("!")?e.substring(1):e,D=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}},V=/\s+/;function F(){let e,t,n=0,r="";for(;n<arguments.length;)(e=arguments[n++])&&(t=_(e))&&(r&&(r+=" "),r+=t);return r}const _=e=>{if("string"==typeof e)return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=_(e[r]))&&(n&&(n+=" "),n+=t);return n};function H(e,...t){let n,r,o,i=function(s){const l=t.reduce((e,t)=>t(e),e());return n=(e=>({cache:G(e.cacheSize),parseClassName:j(e),sortModifiers:D(e),...T(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(V);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:f}=n(t);if(c){l=t+(l.length>0?" "+l:l);continue}let h=!!f,m=r(h?p.substring(0,f):p);if(!m){if(!h){l=t+(l.length>0?" "+l:l);continue}if(m=r(p),!m){l=t+(l.length>0?" "+l:l);continue}h=!1}const g=i(u).join(":"),b=d?g+"!":g,v=b+m;if(a.includes(v))continue;a.push(v);const y=o(m,h);for(let e=0;e<y.length;++e){const t=y[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(F.apply(null,arguments))}}const W=e=>{const t=t=>t[e]||[];return t.isThemeGetter=!0,t},X=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,z=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Z=/^\d+\/\d+$/,Y=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,U=/\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$/,J=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,$=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,K=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Q=e=>Z.test(e),q=e=>!!e&&!Number.isNaN(Number(e)),ee=e=>!!e&&Number.isInteger(Number(e)),te=e=>e.endsWith("%")&&q(e.slice(0,-1)),ne=e=>Y.test(e),re=()=>!0,oe=e=>U.test(e)&&!J.test(e),ie=()=>!1,ae=e=>$.test(e),se=e=>K.test(e),le=e=>!ue(e)&&!ge(e),ce=e=>Ce(e,Te,ie),ue=e=>X.test(e),de=e=>Ce(e,Oe,oe),pe=e=>Ce(e,Ne,q),fe=e=>Ce(e,Ae,ie),he=e=>Ce(e,Se,se),me=e=>Ce(e,Re,ae),ge=e=>z.test(e),be=e=>Ee(e,Oe),ve=e=>Ee(e,Pe),ye=e=>Ee(e,Ae),xe=e=>Ee(e,Te),Ie=e=>Ee(e,Se),we=e=>Ee(e,Re,!0),Ce=(e,t,n)=>{const r=X.exec(e);return!!r&&(r[1]?t(r[1]):n(r[2]))},Ee=(e,t,n=!1)=>{const r=z.exec(e);return!!r&&(r[1]?t(r[1]):n)},Ae=e=>"position"===e||"percentage"===e,Se=e=>"image"===e||"url"===e,Te=e=>"length"===e||"size"===e||"bg-size"===e,Oe=e=>"length"===e,Ne=e=>"number"===e,Pe=e=>"family-name"===e,Re=e=>"shadow"===e,ke=()=>{const e=W("color"),t=W("font"),n=W("text"),r=W("font-weight"),o=W("tracking"),i=W("leading"),a=W("breakpoint"),s=W("container"),l=W("spacing"),c=W("radius"),u=W("shadow"),d=W("inset-shadow"),p=W("text-shadow"),f=W("drop-shadow"),h=W("blur"),m=W("perspective"),g=W("aspect"),b=W("ease"),v=W("animate"),y=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",ge,ue],x=()=>[ge,ue,l],I=()=>[Q,"full","auto",...x()],w=()=>[ee,"none","subgrid",ge,ue],C=()=>["auto",{span:["full",ee,ge,ue]},ee,ge,ue],E=()=>[ee,"auto",ge,ue],A=()=>["auto","min","max","fr",ge,ue],S=()=>["auto",...x()],T=()=>[Q,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...x()],O=()=>[e,ge,ue],N=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",ye,fe,{position:[ge,ue]}],P=()=>["auto","cover","contain",xe,ce,{size:[ge,ue]}],R=()=>[te,be,de],k=()=>["","none","full",c,ge,ue],L=()=>["",q,be,de],B=()=>[q,te,ye,fe],G=()=>["","none",h,ge,ue],j=()=>["none",q,ge,ue],M=()=>["none",q,ge,ue],D=()=>[q,ge,ue],V=()=>[Q,"full",...x()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[ne],breakpoint:[ne],color:[re],container:[ne],"drop-shadow":[ne],ease:["in","out","in-out"],font:[le],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[ne],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[ne],shadow:[ne],spacing:["px",q],text:[ne],"text-shadow":[ne],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Q,ue,ge,g]}],container:["container"],columns:[{columns:[q,ue,ge,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:y()}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:I()}],"inset-x":[{"inset-x":I()}],"inset-y":[{"inset-y":I()}],start:[{start:I()}],end:[{end:I()}],top:[{top:I()}],right:[{right:I()}],bottom:[{bottom:I()}],left:[{left:I()}],visibility:["visible","invisible","collapse"],z:[{z:[ee,"auto",ge,ue]}],basis:[{basis:[Q,"full","auto",s,...x()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[q,Q,"auto","initial","none",ue]}],grow:[{grow:["",q,ge,ue]}],shrink:[{shrink:["",q,ge,ue]}],order:[{order:[ee,"first","last","none",ge,ue]}],"grid-cols":[{"grid-cols":w()}],"col-start-end":[{col:C()}],"col-start":[{"col-start":E()}],"col-end":[{"col-end":E()}],"grid-rows":[{"grid-rows":w()}],"row-start-end":[{row:C()}],"row-start":[{"row-start":E()}],"row-end":[{"row-end":E()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":A()}],"auto-rows":[{"auto-rows":A()}],gap:[{gap:x()}],"gap-x":[{"gap-x":x()}],"gap-y":[{"gap-y":x()}],"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:x()}],px:[{px:x()}],py:[{py:x()}],ps:[{ps:x()}],pe:[{pe:x()}],pt:[{pt:x()}],pr:[{pr:x()}],pb:[{pb:x()}],pl:[{pl:x()}],m:[{m:S()}],mx:[{mx:S()}],my:[{my:S()}],ms:[{ms:S()}],me:[{me:S()}],mt:[{mt:S()}],mr:[{mr:S()}],mb:[{mb:S()}],ml:[{ml:S()}],"space-x":[{"space-x":x()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":x()}],"space-y-reverse":["space-y-reverse"],size:[{size:T()}],w:[{w:[s,"screen",...T()]}],"min-w":[{"min-w":[s,"screen","none",...T()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[a]},...T()]}],h:[{h:["screen","lh",...T()]}],"min-h":[{"min-h":["screen","lh","none",...T()]}],"max-h":[{"max-h":["screen","lh",...T()]}],"font-size":[{text:["base",n,be,de]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,ge,pe]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",te,ue]}],"font-family":[{font:[ve,ue,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,ge,ue]}],"line-clamp":[{"line-clamp":[q,"none",ge,pe]}],leading:[{leading:[i,...x()]}],"list-image":[{"list-image":["none",ge,ue]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ge,ue]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:O()}],"text-color":[{text:O()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","wavy"]}],"text-decoration-thickness":[{decoration:[q,"from-font","auto",ge,de]}],"text-decoration-color":[{decoration:O()}],"underline-offset":[{"underline-offset":[q,"auto",ge,ue]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:x()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ge,ue]}],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",ge,ue]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:N()}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:P()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},ee,ge,ue],radial:["",ge,ue],conic:[ee,ge,ue]},Ie,he]}],"bg-color":[{bg:O()}],"gradient-from-pos":[{from:R()}],"gradient-via-pos":[{via:R()}],"gradient-to-pos":[{to:R()}],"gradient-from":[{from:O()}],"gradient-via":[{via:O()}],"gradient-to":[{to:O()}],rounded:[{rounded:k()}],"rounded-s":[{"rounded-s":k()}],"rounded-e":[{"rounded-e":k()}],"rounded-t":[{"rounded-t":k()}],"rounded-r":[{"rounded-r":k()}],"rounded-b":[{"rounded-b":k()}],"rounded-l":[{"rounded-l":k()}],"rounded-ss":[{"rounded-ss":k()}],"rounded-se":[{"rounded-se":k()}],"rounded-ee":[{"rounded-ee":k()}],"rounded-es":[{"rounded-es":k()}],"rounded-tl":[{"rounded-tl":k()}],"rounded-tr":[{"rounded-tr":k()}],"rounded-br":[{"rounded-br":k()}],"rounded-bl":[{"rounded-bl":k()}],"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:O()}],"border-color-x":[{"border-x":O()}],"border-color-y":[{"border-y":O()}],"border-color-s":[{"border-s":O()}],"border-color-e":[{"border-e":O()}],"border-color-t":[{"border-t":O()}],"border-color-r":[{"border-r":O()}],"border-color-b":[{"border-b":O()}],"border-color-l":[{"border-l":O()}],"divide-color":[{divide:O()}],"outline-style":[{outline:["solid","dashed","dotted","double","none","hidden"]}],"outline-offset":[{"outline-offset":[q,ge,ue]}],"outline-w":[{outline:["",q,be,de]}],"outline-color":[{outline:O()}],shadow:[{shadow:["","none",u,we,me]}],"shadow-color":[{shadow:O()}],"inset-shadow":[{"inset-shadow":["none",d,we,me]}],"inset-shadow-color":[{"inset-shadow":O()}],"ring-w":[{ring:L()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:O()}],"ring-offset-w":[{"ring-offset":[q,de]}],"ring-offset-color":[{"ring-offset":O()}],"inset-ring-w":[{"inset-ring":L()}],"inset-ring-color":[{"inset-ring":O()}],"text-shadow":[{"text-shadow":["none",p,we,me]}],"text-shadow-color":[{"text-shadow":O()}],opacity:[{opacity:[q,ge,ue]}],"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":[q]}],"mask-image-linear-from-pos":[{"mask-linear-from":B()}],"mask-image-linear-to-pos":[{"mask-linear-to":B()}],"mask-image-linear-from-color":[{"mask-linear-from":O()}],"mask-image-linear-to-color":[{"mask-linear-to":O()}],"mask-image-t-from-pos":[{"mask-t-from":B()}],"mask-image-t-to-pos":[{"mask-t-to":B()}],"mask-image-t-from-color":[{"mask-t-from":O()}],"mask-image-t-to-color":[{"mask-t-to":O()}],"mask-image-r-from-pos":[{"mask-r-from":B()}],"mask-image-r-to-pos":[{"mask-r-to":B()}],"mask-image-r-from-color":[{"mask-r-from":O()}],"mask-image-r-to-color":[{"mask-r-to":O()}],"mask-image-b-from-pos":[{"mask-b-from":B()}],"mask-image-b-to-pos":[{"mask-b-to":B()}],"mask-image-b-from-color":[{"mask-b-from":O()}],"mask-image-b-to-color":[{"mask-b-to":O()}],"mask-image-l-from-pos":[{"mask-l-from":B()}],"mask-image-l-to-pos":[{"mask-l-to":B()}],"mask-image-l-from-color":[{"mask-l-from":O()}],"mask-image-l-to-color":[{"mask-l-to":O()}],"mask-image-x-from-pos":[{"mask-x-from":B()}],"mask-image-x-to-pos":[{"mask-x-to":B()}],"mask-image-x-from-color":[{"mask-x-from":O()}],"mask-image-x-to-color":[{"mask-x-to":O()}],"mask-image-y-from-pos":[{"mask-y-from":B()}],"mask-image-y-to-pos":[{"mask-y-to":B()}],"mask-image-y-from-color":[{"mask-y-from":O()}],"mask-image-y-to-color":[{"mask-y-to":O()}],"mask-image-radial":[{"mask-radial":[ge,ue]}],"mask-image-radial-from-pos":[{"mask-radial-from":B()}],"mask-image-radial-to-pos":[{"mask-radial-to":B()}],"mask-image-radial-from-color":[{"mask-radial-from":O()}],"mask-image-radial-to-color":[{"mask-radial-to":O()}],"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":[q]}],"mask-image-conic-from-pos":[{"mask-conic-from":B()}],"mask-image-conic-to-pos":[{"mask-conic-to":B()}],"mask-image-conic-from-color":[{"mask-conic-from":O()}],"mask-image-conic-to-color":[{"mask-conic-to":O()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:N()}],"mask-repeat":[{mask:["no-repeat",{repeat:["","x","y","space","round"]}]}],"mask-size":[{mask:P()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ge,ue]}],filter:[{filter:["","none",ge,ue]}],blur:[{blur:G()}],brightness:[{brightness:[q,ge,ue]}],contrast:[{contrast:[q,ge,ue]}],"drop-shadow":[{"drop-shadow":["","none",f,we,me]}],"drop-shadow-color":[{"drop-shadow":O()}],grayscale:[{grayscale:["",q,ge,ue]}],"hue-rotate":[{"hue-rotate":[q,ge,ue]}],invert:[{invert:["",q,ge,ue]}],saturate:[{saturate:[q,ge,ue]}],sepia:[{sepia:["",q,ge,ue]}],"backdrop-filter":[{"backdrop-filter":["","none",ge,ue]}],"backdrop-blur":[{"backdrop-blur":G()}],"backdrop-brightness":[{"backdrop-brightness":[q,ge,ue]}],"backdrop-contrast":[{"backdrop-contrast":[q,ge,ue]}],"backdrop-grayscale":[{"backdrop-grayscale":["",q,ge,ue]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[q,ge,ue]}],"backdrop-invert":[{"backdrop-invert":["",q,ge,ue]}],"backdrop-opacity":[{"backdrop-opacity":[q,ge,ue]}],"backdrop-saturate":[{"backdrop-saturate":[q,ge,ue]}],"backdrop-sepia":[{"backdrop-sepia":["",q,ge,ue]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":x()}],"border-spacing-x":[{"border-spacing-x":x()}],"border-spacing-y":[{"border-spacing-y":x()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ge,ue]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[q,"initial",ge,ue]}],ease:[{ease:["linear","initial",b,ge,ue]}],delay:[{delay:[q,ge,ue]}],animate:[{animate:["none",v,ge,ue]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,ge,ue]}],"perspective-origin":[{"perspective-origin":y()}],rotate:[{rotate:j()}],"rotate-x":[{"rotate-x":j()}],"rotate-y":[{"rotate-y":j()}],"rotate-z":[{"rotate-z":j()}],scale:[{scale:M()}],"scale-x":[{"scale-x":M()}],"scale-y":[{"scale-y":M()}],"scale-z":[{"scale-z":M()}],"scale-3d":["scale-3d"],skew:[{skew:D()}],"skew-x":[{"skew-x":D()}],"skew-y":[{"skew-y":D()}],transform:[{transform:[ge,ue,"","none","gpu","cpu"]}],"transform-origin":[{origin:y()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:V()}],"translate-x":[{"translate-x":V()}],"translate-y":[{"translate-y":V()}],"translate-z":[{"translate-z":V()}],"translate-none":["translate-none"],accent:[{accent:O()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:O()}],"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",ge,ue]}],"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":x()}],"scroll-mx":[{"scroll-mx":x()}],"scroll-my":[{"scroll-my":x()}],"scroll-ms":[{"scroll-ms":x()}],"scroll-me":[{"scroll-me":x()}],"scroll-mt":[{"scroll-mt":x()}],"scroll-mr":[{"scroll-mr":x()}],"scroll-mb":[{"scroll-mb":x()}],"scroll-ml":[{"scroll-ml":x()}],"scroll-p":[{"scroll-p":x()}],"scroll-px":[{"scroll-px":x()}],"scroll-py":[{"scroll-py":x()}],"scroll-ps":[{"scroll-ps":x()}],"scroll-pe":[{"scroll-pe":x()}],"scroll-pt":[{"scroll-pt":x()}],"scroll-pr":[{"scroll-pr":x()}],"scroll-pb":[{"scroll-pb":x()}],"scroll-pl":[{"scroll-pl":x()}],"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",ge,ue]}],fill:[{fill:["none",...O()]}],"stroke-w":[{stroke:[q,be,de,pe]}],stroke:[{stroke:["none",...O()]}],"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"]}},Le=(e,t,n)=>{void 0!==n&&(e[t]=n)},Be=(e,t)=>{if(t)for(const n in t)Le(e,n,t[n])},Ge=(e,t)=>{if(t)for(const n in t)je(e,t,n)},je=(e,t,n)=>{const r=t[n];void 0!==r&&(e[n]=e[n]?e[n].concat(r):r)},Me=((e,...t)=>"function"==typeof e?H(ke,e,...t):H(()=>((e,{cacheSize:t,prefix:n,experimentalParseClassName:r,extend:o={},override:i={}})=>(Le(e,"cacheSize",t),Le(e,"prefix",n),Le(e,"experimentalParseClassName",r),Be(e.theme,i.theme),Be(e.classGroups,i.classGroups),Be(e.conflictingClassGroups,i.conflictingClassGroups),Be(e.conflictingClassGroupModifiers,i.conflictingClassGroupModifiers),Le(e,"orderSensitiveModifiers",i.orderSensitiveModifiers),Ge(e.theme,o.theme),Ge(e.classGroups,o.classGroups),Ge(e.conflictingClassGroups,o.conflictingClassGroups),Ge(e.conflictingClassGroupModifiers,o.conflictingClassGroupModifiers),je(e,o,"orderSensitiveModifiers"),e))(ke(),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"]}}}),De=(...e)=>Me(S(...e));
3
+ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import*as r from"react";import o,{forwardRef as i,useEffect as a,useRef as s,useMemo as l,useState as c,useCallback as u,useId as d,useContext as p,useLayoutEffect as f,createContext as h,Component as m,Fragment as g,useInsertionEffect as b,createElement as v,useImperativeHandle as y,Children as x}from"react";import I from"next/link";import w from"next/image";import C,{createPortal as E}from"react-dom";function A(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=A(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function S(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=A(e))&&(r&&(r+=" "),r+=t);return r}const T=e=>{const t=R(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{const n=e.split("-");return""===n[0]&&1!==n.length&&n.shift(),O(n,t)||P(e)},getConflictingClassGroupIds:(e,t)=>{const o=n[e]||[];return t&&r[e]?[...o,...r[e]]:o}}},O=(e,t)=>{if(0===e.length)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?O(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},N=/^\[(.+)\]$/,P=e=>{if(N.test(e)){const t=N.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},R=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const e in n)k(n[e],r,e,t);return r},k=(e,t,n,r)=>{e.forEach(e=>{if("string"==typeof e){return void((""===e?t:L(t,e)).classGroupId=n)}if("function"==typeof e)return B(e)?void k(e(r),t,n,r):void t.validators.push({validator:e,classGroupId:n});Object.entries(e).forEach(([e,o])=>{k(o,L(t,e),n,r)})})},L=(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},B=e=>e.isThemeGetter,D=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)}}},G=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=M(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},M=e=>e.endsWith("!")?e.substring(0,e.length-1):e.startsWith("!")?e.substring(1):e,j=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}},V=/\s+/;function F(){let e,t,n=0,r="";for(;n<arguments.length;)(e=arguments[n++])&&(t=_(e))&&(r&&(r+=" "),r+=t);return r}const _=e=>{if("string"==typeof e)return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=_(e[r]))&&(n&&(n+=" "),n+=t);return n};function H(e,...t){let n,r,o,i=function(s){const l=t.reduce((e,t)=>t(e),e());return n=(e=>({cache:D(e.cacheSize),parseClassName:G(e),sortModifiers:j(e),...T(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(V);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:f}=n(t);if(c){l=t+(l.length>0?" "+l:l);continue}let h=!!f,m=r(h?p.substring(0,f):p);if(!m){if(!h){l=t+(l.length>0?" "+l:l);continue}if(m=r(p),!m){l=t+(l.length>0?" "+l:l);continue}h=!1}const g=i(u).join(":"),b=d?g+"!":g,v=b+m;if(a.includes(v))continue;a.push(v);const y=o(m,h);for(let e=0;e<y.length;++e){const t=y[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(F.apply(null,arguments))}}const W=e=>{const t=t=>t[e]||[];return t.isThemeGetter=!0,t},X=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,z=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Z=/^\d+\/\d+$/,Y=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,U=/\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$/,J=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,$=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,K=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Q=e=>Z.test(e),q=e=>!!e&&!Number.isNaN(Number(e)),ee=e=>!!e&&Number.isInteger(Number(e)),te=e=>e.endsWith("%")&&q(e.slice(0,-1)),ne=e=>Y.test(e),re=()=>!0,oe=e=>U.test(e)&&!J.test(e),ie=()=>!1,ae=e=>$.test(e),se=e=>K.test(e),le=e=>!ue(e)&&!ge(e),ce=e=>Ce(e,Te,ie),ue=e=>X.test(e),de=e=>Ce(e,Oe,oe),pe=e=>Ce(e,Ne,q),fe=e=>Ce(e,Ae,ie),he=e=>Ce(e,Se,se),me=e=>Ce(e,Re,ae),ge=e=>z.test(e),be=e=>Ee(e,Oe),ve=e=>Ee(e,Pe),ye=e=>Ee(e,Ae),xe=e=>Ee(e,Te),Ie=e=>Ee(e,Se),we=e=>Ee(e,Re,!0),Ce=(e,t,n)=>{const r=X.exec(e);return!!r&&(r[1]?t(r[1]):n(r[2]))},Ee=(e,t,n=!1)=>{const r=z.exec(e);return!!r&&(r[1]?t(r[1]):n)},Ae=e=>"position"===e||"percentage"===e,Se=e=>"image"===e||"url"===e,Te=e=>"length"===e||"size"===e||"bg-size"===e,Oe=e=>"length"===e,Ne=e=>"number"===e,Pe=e=>"family-name"===e,Re=e=>"shadow"===e,ke=()=>{const e=W("color"),t=W("font"),n=W("text"),r=W("font-weight"),o=W("tracking"),i=W("leading"),a=W("breakpoint"),s=W("container"),l=W("spacing"),c=W("radius"),u=W("shadow"),d=W("inset-shadow"),p=W("text-shadow"),f=W("drop-shadow"),h=W("blur"),m=W("perspective"),g=W("aspect"),b=W("ease"),v=W("animate"),y=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",ge,ue],x=()=>[ge,ue,l],I=()=>[Q,"full","auto",...x()],w=()=>[ee,"none","subgrid",ge,ue],C=()=>["auto",{span:["full",ee,ge,ue]},ee,ge,ue],E=()=>[ee,"auto",ge,ue],A=()=>["auto","min","max","fr",ge,ue],S=()=>["auto",...x()],T=()=>[Q,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...x()],O=()=>[e,ge,ue],N=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",ye,fe,{position:[ge,ue]}],P=()=>["auto","cover","contain",xe,ce,{size:[ge,ue]}],R=()=>[te,be,de],k=()=>["","none","full",c,ge,ue],L=()=>["",q,be,de],B=()=>[q,te,ye,fe],D=()=>["","none",h,ge,ue],G=()=>["none",q,ge,ue],M=()=>["none",q,ge,ue],j=()=>[q,ge,ue],V=()=>[Q,"full",...x()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[ne],breakpoint:[ne],color:[re],container:[ne],"drop-shadow":[ne],ease:["in","out","in-out"],font:[le],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[ne],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[ne],shadow:[ne],spacing:["px",q],text:[ne],"text-shadow":[ne],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Q,ue,ge,g]}],container:["container"],columns:[{columns:[q,ue,ge,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:y()}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:I()}],"inset-x":[{"inset-x":I()}],"inset-y":[{"inset-y":I()}],start:[{start:I()}],end:[{end:I()}],top:[{top:I()}],right:[{right:I()}],bottom:[{bottom:I()}],left:[{left:I()}],visibility:["visible","invisible","collapse"],z:[{z:[ee,"auto",ge,ue]}],basis:[{basis:[Q,"full","auto",s,...x()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[q,Q,"auto","initial","none",ue]}],grow:[{grow:["",q,ge,ue]}],shrink:[{shrink:["",q,ge,ue]}],order:[{order:[ee,"first","last","none",ge,ue]}],"grid-cols":[{"grid-cols":w()}],"col-start-end":[{col:C()}],"col-start":[{"col-start":E()}],"col-end":[{"col-end":E()}],"grid-rows":[{"grid-rows":w()}],"row-start-end":[{row:C()}],"row-start":[{"row-start":E()}],"row-end":[{"row-end":E()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":A()}],"auto-rows":[{"auto-rows":A()}],gap:[{gap:x()}],"gap-x":[{"gap-x":x()}],"gap-y":[{"gap-y":x()}],"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:x()}],px:[{px:x()}],py:[{py:x()}],ps:[{ps:x()}],pe:[{pe:x()}],pt:[{pt:x()}],pr:[{pr:x()}],pb:[{pb:x()}],pl:[{pl:x()}],m:[{m:S()}],mx:[{mx:S()}],my:[{my:S()}],ms:[{ms:S()}],me:[{me:S()}],mt:[{mt:S()}],mr:[{mr:S()}],mb:[{mb:S()}],ml:[{ml:S()}],"space-x":[{"space-x":x()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":x()}],"space-y-reverse":["space-y-reverse"],size:[{size:T()}],w:[{w:[s,"screen",...T()]}],"min-w":[{"min-w":[s,"screen","none",...T()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[a]},...T()]}],h:[{h:["screen","lh",...T()]}],"min-h":[{"min-h":["screen","lh","none",...T()]}],"max-h":[{"max-h":["screen","lh",...T()]}],"font-size":[{text:["base",n,be,de]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,ge,pe]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",te,ue]}],"font-family":[{font:[ve,ue,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,ge,ue]}],"line-clamp":[{"line-clamp":[q,"none",ge,pe]}],leading:[{leading:[i,...x()]}],"list-image":[{"list-image":["none",ge,ue]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ge,ue]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:O()}],"text-color":[{text:O()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","wavy"]}],"text-decoration-thickness":[{decoration:[q,"from-font","auto",ge,de]}],"text-decoration-color":[{decoration:O()}],"underline-offset":[{"underline-offset":[q,"auto",ge,ue]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:x()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ge,ue]}],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",ge,ue]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:N()}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:P()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},ee,ge,ue],radial:["",ge,ue],conic:[ee,ge,ue]},Ie,he]}],"bg-color":[{bg:O()}],"gradient-from-pos":[{from:R()}],"gradient-via-pos":[{via:R()}],"gradient-to-pos":[{to:R()}],"gradient-from":[{from:O()}],"gradient-via":[{via:O()}],"gradient-to":[{to:O()}],rounded:[{rounded:k()}],"rounded-s":[{"rounded-s":k()}],"rounded-e":[{"rounded-e":k()}],"rounded-t":[{"rounded-t":k()}],"rounded-r":[{"rounded-r":k()}],"rounded-b":[{"rounded-b":k()}],"rounded-l":[{"rounded-l":k()}],"rounded-ss":[{"rounded-ss":k()}],"rounded-se":[{"rounded-se":k()}],"rounded-ee":[{"rounded-ee":k()}],"rounded-es":[{"rounded-es":k()}],"rounded-tl":[{"rounded-tl":k()}],"rounded-tr":[{"rounded-tr":k()}],"rounded-br":[{"rounded-br":k()}],"rounded-bl":[{"rounded-bl":k()}],"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:O()}],"border-color-x":[{"border-x":O()}],"border-color-y":[{"border-y":O()}],"border-color-s":[{"border-s":O()}],"border-color-e":[{"border-e":O()}],"border-color-t":[{"border-t":O()}],"border-color-r":[{"border-r":O()}],"border-color-b":[{"border-b":O()}],"border-color-l":[{"border-l":O()}],"divide-color":[{divide:O()}],"outline-style":[{outline:["solid","dashed","dotted","double","none","hidden"]}],"outline-offset":[{"outline-offset":[q,ge,ue]}],"outline-w":[{outline:["",q,be,de]}],"outline-color":[{outline:O()}],shadow:[{shadow:["","none",u,we,me]}],"shadow-color":[{shadow:O()}],"inset-shadow":[{"inset-shadow":["none",d,we,me]}],"inset-shadow-color":[{"inset-shadow":O()}],"ring-w":[{ring:L()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:O()}],"ring-offset-w":[{"ring-offset":[q,de]}],"ring-offset-color":[{"ring-offset":O()}],"inset-ring-w":[{"inset-ring":L()}],"inset-ring-color":[{"inset-ring":O()}],"text-shadow":[{"text-shadow":["none",p,we,me]}],"text-shadow-color":[{"text-shadow":O()}],opacity:[{opacity:[q,ge,ue]}],"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":[q]}],"mask-image-linear-from-pos":[{"mask-linear-from":B()}],"mask-image-linear-to-pos":[{"mask-linear-to":B()}],"mask-image-linear-from-color":[{"mask-linear-from":O()}],"mask-image-linear-to-color":[{"mask-linear-to":O()}],"mask-image-t-from-pos":[{"mask-t-from":B()}],"mask-image-t-to-pos":[{"mask-t-to":B()}],"mask-image-t-from-color":[{"mask-t-from":O()}],"mask-image-t-to-color":[{"mask-t-to":O()}],"mask-image-r-from-pos":[{"mask-r-from":B()}],"mask-image-r-to-pos":[{"mask-r-to":B()}],"mask-image-r-from-color":[{"mask-r-from":O()}],"mask-image-r-to-color":[{"mask-r-to":O()}],"mask-image-b-from-pos":[{"mask-b-from":B()}],"mask-image-b-to-pos":[{"mask-b-to":B()}],"mask-image-b-from-color":[{"mask-b-from":O()}],"mask-image-b-to-color":[{"mask-b-to":O()}],"mask-image-l-from-pos":[{"mask-l-from":B()}],"mask-image-l-to-pos":[{"mask-l-to":B()}],"mask-image-l-from-color":[{"mask-l-from":O()}],"mask-image-l-to-color":[{"mask-l-to":O()}],"mask-image-x-from-pos":[{"mask-x-from":B()}],"mask-image-x-to-pos":[{"mask-x-to":B()}],"mask-image-x-from-color":[{"mask-x-from":O()}],"mask-image-x-to-color":[{"mask-x-to":O()}],"mask-image-y-from-pos":[{"mask-y-from":B()}],"mask-image-y-to-pos":[{"mask-y-to":B()}],"mask-image-y-from-color":[{"mask-y-from":O()}],"mask-image-y-to-color":[{"mask-y-to":O()}],"mask-image-radial":[{"mask-radial":[ge,ue]}],"mask-image-radial-from-pos":[{"mask-radial-from":B()}],"mask-image-radial-to-pos":[{"mask-radial-to":B()}],"mask-image-radial-from-color":[{"mask-radial-from":O()}],"mask-image-radial-to-color":[{"mask-radial-to":O()}],"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":[q]}],"mask-image-conic-from-pos":[{"mask-conic-from":B()}],"mask-image-conic-to-pos":[{"mask-conic-to":B()}],"mask-image-conic-from-color":[{"mask-conic-from":O()}],"mask-image-conic-to-color":[{"mask-conic-to":O()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:N()}],"mask-repeat":[{mask:["no-repeat",{repeat:["","x","y","space","round"]}]}],"mask-size":[{mask:P()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ge,ue]}],filter:[{filter:["","none",ge,ue]}],blur:[{blur:D()}],brightness:[{brightness:[q,ge,ue]}],contrast:[{contrast:[q,ge,ue]}],"drop-shadow":[{"drop-shadow":["","none",f,we,me]}],"drop-shadow-color":[{"drop-shadow":O()}],grayscale:[{grayscale:["",q,ge,ue]}],"hue-rotate":[{"hue-rotate":[q,ge,ue]}],invert:[{invert:["",q,ge,ue]}],saturate:[{saturate:[q,ge,ue]}],sepia:[{sepia:["",q,ge,ue]}],"backdrop-filter":[{"backdrop-filter":["","none",ge,ue]}],"backdrop-blur":[{"backdrop-blur":D()}],"backdrop-brightness":[{"backdrop-brightness":[q,ge,ue]}],"backdrop-contrast":[{"backdrop-contrast":[q,ge,ue]}],"backdrop-grayscale":[{"backdrop-grayscale":["",q,ge,ue]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[q,ge,ue]}],"backdrop-invert":[{"backdrop-invert":["",q,ge,ue]}],"backdrop-opacity":[{"backdrop-opacity":[q,ge,ue]}],"backdrop-saturate":[{"backdrop-saturate":[q,ge,ue]}],"backdrop-sepia":[{"backdrop-sepia":["",q,ge,ue]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":x()}],"border-spacing-x":[{"border-spacing-x":x()}],"border-spacing-y":[{"border-spacing-y":x()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ge,ue]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[q,"initial",ge,ue]}],ease:[{ease:["linear","initial",b,ge,ue]}],delay:[{delay:[q,ge,ue]}],animate:[{animate:["none",v,ge,ue]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,ge,ue]}],"perspective-origin":[{"perspective-origin":y()}],rotate:[{rotate:G()}],"rotate-x":[{"rotate-x":G()}],"rotate-y":[{"rotate-y":G()}],"rotate-z":[{"rotate-z":G()}],scale:[{scale:M()}],"scale-x":[{"scale-x":M()}],"scale-y":[{"scale-y":M()}],"scale-z":[{"scale-z":M()}],"scale-3d":["scale-3d"],skew:[{skew:j()}],"skew-x":[{"skew-x":j()}],"skew-y":[{"skew-y":j()}],transform:[{transform:[ge,ue,"","none","gpu","cpu"]}],"transform-origin":[{origin:y()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:V()}],"translate-x":[{"translate-x":V()}],"translate-y":[{"translate-y":V()}],"translate-z":[{"translate-z":V()}],"translate-none":["translate-none"],accent:[{accent:O()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:O()}],"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",ge,ue]}],"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":x()}],"scroll-mx":[{"scroll-mx":x()}],"scroll-my":[{"scroll-my":x()}],"scroll-ms":[{"scroll-ms":x()}],"scroll-me":[{"scroll-me":x()}],"scroll-mt":[{"scroll-mt":x()}],"scroll-mr":[{"scroll-mr":x()}],"scroll-mb":[{"scroll-mb":x()}],"scroll-ml":[{"scroll-ml":x()}],"scroll-p":[{"scroll-p":x()}],"scroll-px":[{"scroll-px":x()}],"scroll-py":[{"scroll-py":x()}],"scroll-ps":[{"scroll-ps":x()}],"scroll-pe":[{"scroll-pe":x()}],"scroll-pt":[{"scroll-pt":x()}],"scroll-pr":[{"scroll-pr":x()}],"scroll-pb":[{"scroll-pb":x()}],"scroll-pl":[{"scroll-pl":x()}],"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",ge,ue]}],fill:[{fill:["none",...O()]}],"stroke-w":[{stroke:[q,be,de,pe]}],stroke:[{stroke:["none",...O()]}],"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"]}},Le=(e,t,n)=>{void 0!==n&&(e[t]=n)},Be=(e,t)=>{if(t)for(const n in t)Le(e,n,t[n])},De=(e,t)=>{if(t)for(const n in t)Ge(e,t,n)},Ge=(e,t,n)=>{const r=t[n];void 0!==r&&(e[n]=e[n]?e[n].concat(r):r)},Me=((e,...t)=>"function"==typeof e?H(ke,e,...t):H(()=>((e,{cacheSize:t,prefix:n,experimentalParseClassName:r,extend:o={},override:i={}})=>(Le(e,"cacheSize",t),Le(e,"prefix",n),Le(e,"experimentalParseClassName",r),Be(e.theme,i.theme),Be(e.classGroups,i.classGroups),Be(e.conflictingClassGroups,i.conflictingClassGroups),Be(e.conflictingClassGroupModifiers,i.conflictingClassGroupModifiers),Le(e,"orderSensitiveModifiers",i.orderSensitiveModifiers),De(e.theme,o.theme),De(e.classGroups,o.classGroups),De(e.conflictingClassGroups,o.conflictingClassGroups),De(e.conflictingClassGroupModifiers,o.conflictingClassGroupModifiers),Ge(e,o,"orderSensitiveModifiers"),e))(ke(),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"]}}}),je=(...e)=>Me(S(...e));
4
4
  /*! js-cookie v3.0.5 | MIT */
5
- function Ve(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}function Fe(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function _e(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if("function"==typeof t){var n=function e(){var n=!1;try{n=this instanceof e}catch{}return n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})}),n}!function e(t,n){function r(e,r,o){if("undefined"!=typeof document){"number"==typeof(o=Ve({},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,"",Ve({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,Ve({},this.attributes,t))},withConverter:function(t){return e(Ve({},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:"/"});var He,We={},Xe={},ze={};function Ze(){return He||(He=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}({})}(ze)),ze}var Ye,Ue={};function Je(){return Ye||(Ye=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}({})}(Ue)),Ue}var $e,Ke={};function Qe(){return $e||($e=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}({})}(Ke)),Ke}var qe,et={};function tt(){return qe||(qe=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 f},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 m},get VOID_BLOCKS(){return d}});var t=Ze(),n=Je(),r=Qe();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),f=[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=f)||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.")}()),m=[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]}(et)),et}var nt,rt={};var ot,it={};var at,st={};var lt,ct={};function ut(){return lt||(lt=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=Ze(),n=Je();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}}(ct)),ct}var dt,pt,ft={},ht={};function mt(){return pt?dt:(pt=1,dt=e=>{if("[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t===Object.prototype})}var gt,bt,vt={};function yt(){return gt||(gt=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()}}}(vt)),vt}function xt(){return bt||(bt=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ObjectAssertion",{enumerable:!0,get:function(){return l}});var t=a(mt()),n=yt();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}()}(ht)),ht}var It,wt={};function Ct(){return It||(It=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 m},get HyperLinkAssertion(){return g},get NodeAssertion(){return h},get VOID_CONTENT(){return f},get assert(){return b},get assertLink(){return v}});var t=xt();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 f=[],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}(),m=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 m(e,t)}}(wt)),wt}var Et,At={};function St(){return Et||(Et=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}}}(At)),At}var Tt,Ot,Nt,Pt,Rt={};function kt(){return Ot||(Ot=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"validateRichTextDocument",{enumerable:!0,get:function(){return v}});var t=Ze(),n=Je(),r=tt(),o=xt(),i=Ct(),a=St(),s=(Tt||(Tt=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"assertText",{enumerable:!0,get:function(){return n}});var t=xt();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}}(Rt)),Rt);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()),f=(0,i.assert)([t.BLOCKS.LIST_ITEM]),h=(0,i.assertLink)("Entry",i.VOID_CONTENT),m=(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,f),c(d,t.BLOCKS.UL_LIST,f),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,m),c(d,t.BLOCKS.TABLE_HEADER_CELL,m),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)}}(ft)),ft}function Lt(){return Nt||(Nt=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=Ze(),n=Je(),r=Qe();s(tt(),e),s((nt||(nt=1,Object.defineProperty(rt,"__esModule",{value:!0})),rt),e),s((ot||(ot=1,Object.defineProperty(it,"__esModule",{value:!0})),it),e);var o=(at||(at=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"EMPTY_DOCUMENT",{enumerable:!0,get:function(){return n}});var t=Ze(),n={nodeType:t.BLOCKS.DOCUMENT,data:{},content:[{nodeType:t.BLOCKS.PARAGRAPH,data:{},content:[{nodeType:"text",value:"",marks:[],data:{}}]}]}}(st)),st),i=c(ut()),a=kt();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}}(Xe)),Xe}!function(){if(Pt)return We;Pt=1;var e=o,t=Lt();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 i={[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=>s(t.INLINES.ASSET_HYPERLINK,e),[t.INLINES.ENTRY_HYPERLINK]:e=>s(t.INLINES.ENTRY_HYPERLINK,e),[t.INLINES.RESOURCE_HYPERLINK]:e=>l(t.INLINES.RESOURCE_HYPERLINK,e),[t.INLINES.EMBEDDED_ENTRY]:e=>s(t.INLINES.EMBEDDED_ENTRY,e),[t.INLINES.EMBEDDED_RESOURCE]:(e,n)=>l(t.INLINES.EMBEDDED_RESOURCE,e),[t.INLINES.HYPERLINK]:(t,n)=>e.createElement("a",{href:t.data.uri},n)},a={[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 s(t,n){return e.createElement("span",{key:n.data.target.sys.id},"type: ",n.nodeType," id: ",n.data.target.sys.id)}function l(t,n){return e.createElement("span",{key:n.data.target.sys.urn},"type: ",n.nodeType," urn: ",n.data.target.sys.urn)}We.documentToReactComponents=function(e,n={}){if(!e)return null;let o=e;return n.stripEmptyTrailingParagraph&&(o=t.helpers.stripEmptyTrailingParagraphFromDocument(e)),r(o,{renderNode:{...i,...n.renderNode},renderMark:{...a,...n.renderMark},renderText:n.renderText,preserveWhitespace:n.preserveWhitespace})}}();var Bt=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}({}),Gt=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}({});function jt(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 Mt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Dt,Vt=[Bt.PARAGRAPH,Bt.HEADING_1,Bt.HEADING_2,Bt.HEADING_3,Bt.HEADING_4,Bt.HEADING_5,Bt.HEADING_6,Bt.OL_LIST,Bt.UL_LIST,Bt.HR,Bt.QUOTE,Bt.EMBEDDED_ENTRY,Bt.EMBEDDED_ASSET,Bt.EMBEDDED_RESOURCE,Bt.TABLE],Ft=[Bt.PARAGRAPH,Bt.HEADING_1,Bt.HEADING_2,Bt.HEADING_3,Bt.HEADING_4,Bt.HEADING_5,Bt.HEADING_6,Bt.OL_LIST,Bt.UL_LIST,Bt.HR,Bt.QUOTE,Bt.EMBEDDED_ENTRY,Bt.EMBEDDED_ASSET,Bt.EMBEDDED_RESOURCE];Bt.TABLE,Bt.TABLE_ROW,Bt.TABLE_CELL,Bt.TABLE_HEADER_CELL,Bt.HR,Bt.EMBEDDED_ENTRY,Bt.EMBEDDED_ASSET,Bt.EMBEDDED_RESOURCE;var _t,Ht=(Mt(Dt={},Bt.OL_LIST,[Bt.LIST_ITEM]),Mt(Dt,Bt.UL_LIST,[Bt.LIST_ITEM]),Mt(Dt,Bt.LIST_ITEM,Ft),Mt(Dt,Bt.QUOTE,[Bt.PARAGRAPH]),Mt(Dt,Bt.TABLE,[Bt.TABLE_ROW]),Mt(Dt,Bt.TABLE_ROW,[Bt.TABLE_CELL,Bt.TABLE_HEADER_CELL]),Mt(Dt,Bt.TABLE_CELL,[Bt.PARAGRAPH,Bt.UL_LIST,Bt.OL_LIST]),Mt(Dt,Bt.TABLE_HEADER_CELL,[Bt.PARAGRAPH]),Dt),Wt=[Bt.HEADING_1,Bt.HEADING_2,Bt.HEADING_3,Bt.HEADING_4,Bt.HEADING_5,Bt.HEADING_6];[Bt.PARAGRAPH].concat(function(e){if(Array.isArray(e))return jt(e)}(_t=Wt)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(_t)||function(e,t){if(e){if("string"==typeof e)return jt(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)?jt(e,t):void 0}}(_t)||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.")}()),Bt.DOCUMENT,Bt.PARAGRAPH,Bt.HEADING_1,Bt.HEADING_2,Bt.HEADING_3,Bt.HEADING_4,Bt.HEADING_5,Bt.HEADING_6,Bt.OL_LIST,Bt.UL_LIST,Bt.LIST_ITEM,Bt.HR,Bt.QUOTE,Bt.EMBEDDED_ENTRY,Bt.EMBEDDED_ASSET,Gt.HYPERLINK,Gt.ENTRY_HYPERLINK,Gt.ASSET_HYPERLINK,Gt.EMBEDDED_ENTRY,Bt.DOCUMENT,Bt.PARAGRAPH;var Xt=Fe(mt());function zt(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 Zt(e){return function(e){if(Array.isArray(e))return zt(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 zt(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 zt(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 Yt=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 Ut(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 Jt(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 $t(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Kt(e){return function(e){if(Array.isArray(e))return Ut(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 Ut(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 Ut(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 Qt=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),$t(this,"obj",void 0),$t(this,"path",void 0),$t(this,"_errors",void 0),$t(this,"catch",void 0),$t(this,"exists",void 0),$t(this,"object",void 0),$t(this,"string",void 0),$t(this,"number",void 0),$t(this,"array",void 0),$t(this,"enum",void 0),$t(this,"empty",void 0),$t(this,"minLength",void 0),$t(this,"noAdditionalProperties",void 0),$t(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,Kt(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(Xt(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(Yt({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(Yt({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(Yt({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(Yt({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:Zt(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,Kt(a))}})}}}return Jt(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 qt(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 en(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function tn(e,t,n){return t=an(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 en(e)}(e,un()?Reflect.construct(t,n||[],an(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 rn(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 on(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function an(e){return an=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},an(e)}function sn(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&&ln(e,t)}function ln(e,t){return ln=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},ln(e,t)}function cn(e){return function(e){if(Array.isArray(e))return qt(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 qt(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 qt(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 un(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(un=function(){return!!e})()}var dn=[],pn=function(){function e(t,n){nn(this,e),on(this,"contentRule",void 0),on(this,"validateData",void 0),this.contentRule=t,this.validateData=n}return rn(e,[{key:"assert",value:function(e,t){var n=new Qt(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 Qt(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,cn(u))}return n.errors}}]),e}(),fn=function(e){function t(e,n){var r;return nn(this,t),r=tn(this,t,[n,function(e,t){return en(r).assertLink(e,t)}]),on(r,"linkType",void 0),on(r,"type",void 0),on(r,"assertLink",void 0),r.linkType=e,r.assertLink=function(e,t){var n=new Qt(e,t);if(n.object("target")){var o,i=new Qt(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,cn(i.errors))}return n.noAdditionalProperties(["target"]),n.errors},r.type=r.linkType.startsWith("Contentful:")?"ResourceLink":"Link",r}return sn(t,e),t}(pn),hn=function(e){function t(){var e;return nn(this,t),e=tn(this,t,[["text"],function(t,n){return en(e).assertLink(t,n)}]),on(e,"assertLink",function(e,t){var n=new Qt(e,t);return n.string("uri"),n.noAdditionalProperties(["uri"]),n.errors}),e}return sn(t,e),t}(pn),mn=function(e,t){return new pn(e,t)},gn=function(e,t){return new fn(e,t)};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 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 xn,In=mn(yn(Object.values(Gt)).concat(["text"]).sort()),wn=mn([Bt.LIST_ITEM]),Cn=gn("Entry",dn),En=mn(function(){return{nodeTypes:[Bt.PARAGRAPH],min:1}},function(e,t){var n=new Qt(e,t);return n.noAdditionalProperties(["colspan","rowspan"]),n.number("colspan",!0),n.number("rowspan",!0),n.errors});vn(xn={},Bt.DOCUMENT,mn(Vt)),vn(xn,Bt.PARAGRAPH,In),vn(xn,Bt.HEADING_1,In),vn(xn,Bt.HEADING_2,In),vn(xn,Bt.HEADING_3,In),vn(xn,Bt.HEADING_4,In),vn(xn,Bt.HEADING_5,In),vn(xn,Bt.HEADING_6,In),vn(xn,Bt.QUOTE,mn(Ht[Bt.QUOTE])),vn(xn,Bt.EMBEDDED_ENTRY,Cn),vn(xn,Bt.EMBEDDED_ASSET,gn("Asset",dn)),vn(xn,Bt.EMBEDDED_RESOURCE,gn("Contentful:Entry",dn)),vn(xn,Bt.HR,mn(dn)),vn(xn,Bt.OL_LIST,wn),vn(xn,Bt.UL_LIST,wn),vn(xn,Bt.LIST_ITEM,mn(yn(Ft).sort())),vn(xn,Bt.TABLE,mn(function(){return{nodeTypes:[Bt.TABLE_ROW],min:1}})),vn(xn,Bt.TABLE_ROW,mn(function(){return{nodeTypes:[Bt.TABLE_CELL,Bt.TABLE_HEADER_CELL],min:1}})),vn(xn,Bt.TABLE_CELL,En),vn(xn,Bt.TABLE_HEADER_CELL,En),vn(xn,Gt.HYPERLINK,new hn),vn(xn,Gt.EMBEDDED_ENTRY,Cn),vn(xn,Gt.EMBEDDED_RESOURCE,gn("Contentful:Entry",dn)),vn(xn,Gt.ENTRY_HYPERLINK,gn("Entry",["text"])),vn(xn,Gt.ASSET_HYPERLINK,gn("Asset",["text"])),vn(xn,Gt.RESOURCE_HYPERLINK,gn("Contentful:Entry",["text"]));const An={green:"#209A61",yellow:"#F5FF36",blue:"#0393BA"},Sn=i(({children:t,className:n="",variant:r="unstyled",style:o,...i},a)=>{const s=De("unstyled"===r?"":"mb-1 leading-6","list-item",`list-item--${r}`,n);return e("li",{ref:a,className:s,style:o,...i,children:t})});Sn.displayName="ListItem";const Tn=i(({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=De(u,`list--${t}`,`list--${a}`,r),p=i||(n&&0!==n.length?n.map((t,n)=>o?o(t,n):e(Sn,{className:t.className,variant:a,children:t.content},t.id||n)):null),f={className:d,style:s,...l,children:p};return e("ol"===t?"ol":"ul",{...f,ref:c,role:"list"})});Tn.displayName="List";const On=({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("span",{style:p,className:De("material-symbols-rounded inline-block max-w-[52px] overflow-hidden",c),onClick:u,"data-testid":d,"aria-hidden":"true",children:t})};On.displayName="MaterialIcon";const Nn=i(({children:e,as:t,className:n="",style:r,...i},a)=>{const s=t||"p";return o.createElement(s,{ref:a,className:n,style:r,...i},e)});Nn.displayName="Text";const Pn=n=>{const{items:r,listIconName:i="check",listItemClassName:a,listContainerClassName:s,iconSize:l=20,iconPosition:c="center",iconColor:u="green",iconClassName:d}=n,p="disc"!==i;if(!(null==r?void 0:r.length))return null;const f=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(Nn,{as:"span",style:{fontWeight:900},children:t},n):e("span",{children:t},n)})}return t};return e(Tn,{className:De("mt-2 space-y-1",s),variant:p?"unstyled":"default",children:r.map((n,r)=>{const s=function(e){return null!==e&&"object"==typeof e&&!o.isValidElement(e)&&"title"in e}(n),h=s&&!!n.iconUrl,m=s?n.title:n;return t(Sn,{variant:p?"unstyled":"default",className:De(`${p?"flex":""} ${"top"===c?"items-start":"items-center"} gap-2 text-text-secondary`,a),children:[p&&h?e("div",{className:"flex shrink-0 leading-none",children:e("img",{src:n.iconUrl,alt:n.iconAlt||"",width:l,height:l,className:De("block object-contain","top"===c?"mt-1":"",d)})}):p?e("div",{className:"flex leading-none",children:e(On,{name:i,size:l,color:An[u],weight:"600",className:De("block","top"===c?"mt-1":"",d)})}):null,e(Nn,{as:"div",children:f(m)})]},r)})})};var Rn;Pn.displayName="Checklist";const kn="function"==typeof I?I:null!==(Rn=I.default)&&void 0!==Rn?Rn:I,Ln=i(({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)},f=De(d,`link--${i}`,l&&"link--disabled",r),h={...c,ref:u,className:f,style:a,href:l?void 0:n,onClick:p,...s&&!l&&{target:"_blank",rel:"noopener"},...l&&{"aria-disabled":!0,tabIndex:-1}};return l||s||"string"==typeof n&&n.startsWith("http")?e("a",{...h,children:t}):e(kn,{href:n||"#",ref:u,className:f,style:a,onClick:p,...c,children:t})});function Bn(e,t){a(()=>{if(!t)return;const n=()=>{const n=document.fullscreenElement||document.webkitFullscreenElement;t(n===e.current)};return document.addEventListener("fullscreenchange",n),document.addEventListener("webkitfullscreenchange",n),()=>{document.removeEventListener("fullscreenchange",n),document.removeEventListener("webkitfullscreenchange",n)}},[t,e])}Ln.displayName="Link";const Gn=n=>{const{videoAssetUrl:r,videoAssetType:o,image:i,title:a,description:l,containerClassName:c,autoplay:u=!1,onPlay:d,onPause:p,onTimeUpdate:f,onEnded:h,onFullscreenToggle:m}=n,g=s(null);return Bn(g,m),r?e("div",{className:De("relative h-0 w-full overflow-hidden pb-[56.25%]",c),children:t("video",{ref:g,className:"absolute left-0 top-0 h-full w-full object-cover",controls:!0,playsInline:!0,preload:"metadata",autoPlay:u,poster:i||void 0,"aria-label":a||"Embedded video",onPlay:()=>null==d?void 0:d(),onPause:()=>null==p?void 0:p(),onEnded:()=>null==h?void 0:h(),onTimeUpdate:e=>null==f?void 0:f(e.currentTarget.currentTime,e.currentTarget.duration),children:[e("source",{src:r,type:o||"video/mp4"}),l||"Your browser does not support embedded videos."]})}):null},jn=({isHovered:t,containerClassName:n})=>e("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(On,{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")})}),Mn="undefined"!=typeof global&&"[object global]"==={}.toString.call(global),Dn="undefined"!=typeof Bun,Vn="undefined"!=typeof Deno,Fn="function"==typeof WebSocketPair&&void 0!==caches?.default,_n=Mn||Dn||Vn||Fn;function Hn(e,t){return 0===e.indexOf(t.toLowerCase())?e:`${t.toLowerCase()}${e.substr(0,1).toUpperCase()}${e.substr(1)}`}function Wn(e){return/^(https?:)?\/\/((((player|www)\.)?vimeo\.com)|((player\.)?[a-zA-Z0-9-]+\.(videoji\.(hk|cn)|vimeo\.work)))(?=$|\/)/.test(e)}function Xn(e){return/^https:\/\/player\.((vimeo\.com)|([a-zA-Z0-9-]+\.(videoji\.(hk|cn)|vimeo\.work)))\/video\/\d+/.test(e)}function zn(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=e.id,n=e.url,r=t||n;if(!r)throw new Error("An id or url must be passed, either in an options object or as a data-vimeo-id or data-vimeo-url attribute.");if(o=r,!isNaN(parseFloat(o))&&isFinite(o)&&Math.floor(o)==o)return`https://vimeo.com/${r}`;var o;if(Wn(r))return r.replace("http:","https:");if(t)throw new TypeError(`“${t}” is not a valid video id.`);throw new TypeError(`“${r}” is not a vimeo.com url.`)}const Zn=function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"addEventListener",o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"removeEventListener";const i="string"==typeof t?[t]:t;return i.forEach(t=>{e[r](t,n)}),{cancel:()=>i.forEach(t=>e[o](t,n))}};function Yn(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document;if(!e||!t||"function"!=typeof t.querySelectorAll)return null;const n=t.querySelectorAll("iframe");for(let t=0;t<n.length;t++)if(n[t]&&n[t].contentWindow===e)return n[t];return null}const Un=void 0!==Array.prototype.indexOf,Jn="undefined"!=typeof window&&void 0!==window.postMessage;if(!(_n||Un&&Jn))throw new Error("Sorry, the Vimeo Player API is not available in this browser.");var $n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};
5
+ function Ve(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}!function e(t,n){function r(e,r,o){if("undefined"!=typeof document){"number"==typeof(o=Ve({},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,"",Ve({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,Ve({},this.attributes,t))},withConverter:function(t){return e(Ve({},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 Fe=e=>!!e&&"object"==typeof e&&"nodeType"in e&&"content"in e,_e=e=>{if(!e)return null;if(Fe(e))return e;if("object"==typeof e&&null!==e&&"json"in e){const t=e.json;return Fe(t)?t:null}return null};function He(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function We(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if("function"==typeof t){var n=function e(){var n=!1;try{n=this instanceof e}catch{}return n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})}),n}var Xe,ze={},Ze={},Ye={};function Ue(){return Xe||(Xe=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}({})}(Ye)),Ye}var Je,$e={};function Ke(){return Je||(Je=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}({})}($e)),$e}var Qe,qe={};function et(){return Qe||(Qe=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}({})}(qe)),qe}var tt,nt={};function rt(){return tt||(tt=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 f},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 m},get VOID_BLOCKS(){return d}});var t=Ue(),n=Ke(),r=et();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),f=[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=f)||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.")}()),m=[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]}(nt)),nt}var ot,it={};var at,st={};var lt,ct={};var ut,dt={};function pt(){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 isBlock(){return s},get isEmptyParagraph(){return c},get isInline(){return a},get isText(){return l},get stripEmptyTrailingParagraphFromDocument(){return p}});var t=Ue(),n=Ke();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}}(dt)),dt}var ft,ht,mt={},gt={};function bt(){return ht?ft:(ht=1,ft=e=>{if("[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t===Object.prototype})}var vt,yt,xt={};function It(){return vt||(vt=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()}}}(xt)),xt}function wt(){return yt||(yt=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ObjectAssertion",{enumerable:!0,get:function(){return l}});var t=a(bt()),n=It();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}()}(gt)),gt}var Ct,Et={};function At(){return Ct||(Ct=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 m},get HyperLinkAssertion(){return g},get NodeAssertion(){return h},get VOID_CONTENT(){return f},get assert(){return b},get assertLink(){return v}});var t=wt();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 f=[],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}(),m=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 m(e,t)}}(Et)),Et}var St,Tt={};function Ot(){return St||(St=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}}}(Tt)),Tt}var Nt,Pt,Rt,kt,Lt={};function Bt(){return Pt||(Pt=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"validateRichTextDocument",{enumerable:!0,get:function(){return v}});var t=Ue(),n=Ke(),r=rt(),o=wt(),i=At(),a=Ot(),s=(Nt||(Nt=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"assertText",{enumerable:!0,get:function(){return n}});var t=wt();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}}(Lt)),Lt);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()),f=(0,i.assert)([t.BLOCKS.LIST_ITEM]),h=(0,i.assertLink)("Entry",i.VOID_CONTENT),m=(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,f),c(d,t.BLOCKS.UL_LIST,f),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,m),c(d,t.BLOCKS.TABLE_HEADER_CELL,m),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)}}(mt)),mt}function Dt(){return Rt||(Rt=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=Ue(),n=Ke(),r=et();s(rt(),e),s((ot||(ot=1,Object.defineProperty(it,"__esModule",{value:!0})),it),e),s((at||(at=1,Object.defineProperty(st,"__esModule",{value:!0})),st),e);var o=(lt||(lt=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"EMPTY_DOCUMENT",{enumerable:!0,get:function(){return n}});var t=Ue(),n={nodeType:t.BLOCKS.DOCUMENT,data:{},content:[{nodeType:t.BLOCKS.PARAGRAPH,data:{},content:[{nodeType:"text",value:"",marks:[],data:{}}]}]}}(ct)),ct),i=c(pt()),a=Bt();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}}(Ze)),Ze}var Gt=function(){if(kt)return ze;kt=1;var e=o,t=Dt();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 i={[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=>s(t.INLINES.ASSET_HYPERLINK,e),[t.INLINES.ENTRY_HYPERLINK]:e=>s(t.INLINES.ENTRY_HYPERLINK,e),[t.INLINES.RESOURCE_HYPERLINK]:e=>l(t.INLINES.RESOURCE_HYPERLINK,e),[t.INLINES.EMBEDDED_ENTRY]:e=>s(t.INLINES.EMBEDDED_ENTRY,e),[t.INLINES.EMBEDDED_RESOURCE]:(e,n)=>l(t.INLINES.EMBEDDED_RESOURCE,e),[t.INLINES.HYPERLINK]:(t,n)=>e.createElement("a",{href:t.data.uri},n)},a={[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 s(t,n){return e.createElement("span",{key:n.data.target.sys.id},"type: ",n.nodeType," id: ",n.data.target.sys.id)}function l(t,n){return e.createElement("span",{key:n.data.target.sys.urn},"type: ",n.nodeType," urn: ",n.data.target.sys.urn)}return ze.documentToReactComponents=function(e,n={}){if(!e)return null;let o=e;return n.stripEmptyTrailingParagraph&&(o=t.helpers.stripEmptyTrailingParagraphFromDocument(e)),r(o,{renderNode:{...i,...n.renderNode},renderMark:{...a,...n.renderMark},renderText:n.renderText,preserveWhitespace:n.preserveWhitespace})},ze}(),Mt=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}({}),jt=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}({}),Vt=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 Ft(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 _t(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ht,Wt=[Mt.PARAGRAPH,Mt.HEADING_1,Mt.HEADING_2,Mt.HEADING_3,Mt.HEADING_4,Mt.HEADING_5,Mt.HEADING_6,Mt.OL_LIST,Mt.UL_LIST,Mt.HR,Mt.QUOTE,Mt.EMBEDDED_ENTRY,Mt.EMBEDDED_ASSET,Mt.EMBEDDED_RESOURCE,Mt.TABLE],Xt=[Mt.PARAGRAPH,Mt.HEADING_1,Mt.HEADING_2,Mt.HEADING_3,Mt.HEADING_4,Mt.HEADING_5,Mt.HEADING_6,Mt.OL_LIST,Mt.UL_LIST,Mt.HR,Mt.QUOTE,Mt.EMBEDDED_ENTRY,Mt.EMBEDDED_ASSET,Mt.EMBEDDED_RESOURCE];Mt.TABLE,Mt.TABLE_ROW,Mt.TABLE_CELL,Mt.TABLE_HEADER_CELL,Mt.HR,Mt.EMBEDDED_ENTRY,Mt.EMBEDDED_ASSET,Mt.EMBEDDED_RESOURCE;var zt,Zt=(_t(Ht={},Mt.OL_LIST,[Mt.LIST_ITEM]),_t(Ht,Mt.UL_LIST,[Mt.LIST_ITEM]),_t(Ht,Mt.LIST_ITEM,Xt),_t(Ht,Mt.QUOTE,[Mt.PARAGRAPH]),_t(Ht,Mt.TABLE,[Mt.TABLE_ROW]),_t(Ht,Mt.TABLE_ROW,[Mt.TABLE_CELL,Mt.TABLE_HEADER_CELL]),_t(Ht,Mt.TABLE_CELL,[Mt.PARAGRAPH,Mt.UL_LIST,Mt.OL_LIST]),_t(Ht,Mt.TABLE_HEADER_CELL,[Mt.PARAGRAPH]),Ht),Yt=[Mt.HEADING_1,Mt.HEADING_2,Mt.HEADING_3,Mt.HEADING_4,Mt.HEADING_5,Mt.HEADING_6];[Mt.PARAGRAPH].concat(function(e){if(Array.isArray(e))return Ft(e)}(zt=Yt)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(zt)||function(e,t){if(e){if("string"==typeof e)return Ft(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)?Ft(e,t):void 0}}(zt)||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.")}()),Mt.DOCUMENT,Mt.PARAGRAPH,Mt.HEADING_1,Mt.HEADING_2,Mt.HEADING_3,Mt.HEADING_4,Mt.HEADING_5,Mt.HEADING_6,Mt.OL_LIST,Mt.UL_LIST,Mt.LIST_ITEM,Mt.HR,Mt.QUOTE,Mt.EMBEDDED_ENTRY,Mt.EMBEDDED_ASSET,jt.HYPERLINK,jt.ENTRY_HYPERLINK,jt.ASSET_HYPERLINK,jt.EMBEDDED_ENTRY,Mt.DOCUMENT,Mt.PARAGRAPH;var Ut=He(bt());function Jt(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 $t(e){return function(e){if(Array.isArray(e))return Jt(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 Jt(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 Jt(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 Kt=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 Qt(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 qt(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 en(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tn(e){return function(e){if(Array.isArray(e))return Qt(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 Qt(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 Qt(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 nn=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),en(this,"obj",void 0),en(this,"path",void 0),en(this,"_errors",void 0),en(this,"catch",void 0),en(this,"exists",void 0),en(this,"object",void 0),en(this,"string",void 0),en(this,"number",void 0),en(this,"array",void 0),en(this,"enum",void 0),en(this,"empty",void 0),en(this,"minLength",void 0),en(this,"noAdditionalProperties",void 0),en(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,tn(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(Ut(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(Kt({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(Kt({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(Kt({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(Kt({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:$t(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,tn(a))}})}}}return qt(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 rn(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 on(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=un(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 on(e)}(e,hn()?Reflect.construct(t,n||[],un(e).constructor):t.apply(e,n))}function sn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ln(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 cn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function un(e){return un=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},un(e)}function dn(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&&pn(e,t)}function pn(e,t){return pn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},pn(e,t)}function fn(e){return function(e){if(Array.isArray(e))return rn(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 rn(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 rn(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 hn(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(hn=function(){return!!e})()}var mn=[],gn=function(){function e(t,n){sn(this,e),cn(this,"contentRule",void 0),cn(this,"validateData",void 0),this.contentRule=t,this.validateData=n}return ln(e,[{key:"assert",value:function(e,t){var n=new nn(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 nn(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,fn(u))}return n.errors}}]),e}(),bn=function(e){function t(e,n){var r;return sn(this,t),r=an(this,t,[n,function(e,t){return on(r).assertLink(e,t)}]),cn(r,"linkType",void 0),cn(r,"type",void 0),cn(r,"assertLink",void 0),r.linkType=e,r.assertLink=function(e,t){var n=new nn(e,t);if(n.object("target")){var o,i=new nn(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,fn(i.errors))}return n.noAdditionalProperties(["target"]),n.errors},r.type=r.linkType.startsWith("Contentful:")?"ResourceLink":"Link",r}return dn(t,e),t}(gn),vn=function(e){function t(){var e;return sn(this,t),e=an(this,t,[["text"],function(t,n){return on(e).assertLink(t,n)}]),cn(e,"assertLink",function(e,t){var n=new nn(e,t);return n.string("uri"),n.noAdditionalProperties(["uri"]),n.errors}),e}return dn(t,e),t}(gn),yn=function(e,t){return new gn(e,t)},xn=function(e,t){return new bn(e,t)};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,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Cn(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.")}()}var En,An=yn(Cn(Object.values(jt)).concat(["text"]).sort()),Sn=yn([Mt.LIST_ITEM]),Tn=xn("Entry",mn),On=yn(function(){return{nodeTypes:[Mt.PARAGRAPH],min:1}},function(e,t){var n=new nn(e,t);return n.noAdditionalProperties(["colspan","rowspan"]),n.number("colspan",!0),n.number("rowspan",!0),n.errors});wn(En={},Mt.DOCUMENT,yn(Wt)),wn(En,Mt.PARAGRAPH,An),wn(En,Mt.HEADING_1,An),wn(En,Mt.HEADING_2,An),wn(En,Mt.HEADING_3,An),wn(En,Mt.HEADING_4,An),wn(En,Mt.HEADING_5,An),wn(En,Mt.HEADING_6,An),wn(En,Mt.QUOTE,yn(Zt[Mt.QUOTE])),wn(En,Mt.EMBEDDED_ENTRY,Tn),wn(En,Mt.EMBEDDED_ASSET,xn("Asset",mn)),wn(En,Mt.EMBEDDED_RESOURCE,xn("Contentful:Entry",mn)),wn(En,Mt.HR,yn(mn)),wn(En,Mt.OL_LIST,Sn),wn(En,Mt.UL_LIST,Sn),wn(En,Mt.LIST_ITEM,yn(Cn(Xt).sort())),wn(En,Mt.TABLE,yn(function(){return{nodeTypes:[Mt.TABLE_ROW],min:1}})),wn(En,Mt.TABLE_ROW,yn(function(){return{nodeTypes:[Mt.TABLE_CELL,Mt.TABLE_HEADER_CELL],min:1}})),wn(En,Mt.TABLE_CELL,On),wn(En,Mt.TABLE_HEADER_CELL,On),wn(En,jt.HYPERLINK,new vn),wn(En,jt.EMBEDDED_ENTRY,Tn),wn(En,jt.EMBEDDED_RESOURCE,xn("Contentful:Entry",mn)),wn(En,jt.ENTRY_HYPERLINK,xn("Entry",["text"])),wn(En,jt.ASSET_HYPERLINK,xn("Asset",["text"])),wn(En,jt.RESOURCE_HYPERLINK,xn("Contentful:Entry",["text"]));const Nn={green:"#209A61",yellow:"#F5FF36",blue:"#0393BA"},Pn=i(({children:t,className:n="",variant:r="unstyled",style:o,...i},a)=>{const s=je("unstyled"===r?"":"mb-1 leading-6","list-item",`list-item--${r}`,n);return e("li",{ref:a,className:s,style:o,...i,children:t})});Pn.displayName="ListItem";const Rn=i(({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=je(u,`list--${t}`,`list--${a}`,r),p=i||(n&&0!==n.length?n.map((t,n)=>o?o(t,n):e(Pn,{className:t.className,variant:a,children:t.content},t.id||n)):null),f={className:d,style:s,...l,children:p};return e("ol"===t?"ol":"ul",{...f,ref:c,role:"list"})});Rn.displayName="List";const kn=({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("span",{style:p,className:je("material-symbols-rounded inline-block max-w-[52px] overflow-hidden",c),onClick:u,"data-testid":d,"aria-hidden":"true",children:t})};kn.displayName="MaterialIcon";const Ln=i(({children:e,as:t,className:n="",style:r,...i},a)=>{const s=t||"p";return o.createElement(s,{ref:a,className:n,style:r,...i},e)});Ln.displayName="Text";const Bn=n=>{const{items:r,listIconName:i="check",listItemClassName:a,listContainerClassName:s,iconSize:l=20,iconPosition:c="center",iconColor:u="green",iconClassName:d}=n,p="disc"!==i;if(!(null==r?void 0:r.length))return null;const f=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(Ln,{as:"span",style:{fontWeight:900},children:t},n):e("span",{children:t},n)})}return t};return e(Rn,{className:je("mt-2 space-y-1",s),variant:p?"unstyled":"default",children:r.map((n,r)=>{const s=function(e){return null!==e&&"object"==typeof e&&!o.isValidElement(e)&&"title"in e}(n),h=s&&!!n.iconUrl,m=s?n.title:n;return t(Pn,{variant:p?"unstyled":"default",className:je(`${p?"flex":""} ${"top"===c?"items-start":"items-center"} gap-2 text-text-secondary`,a),children:[p&&h?e("div",{className:"flex shrink-0 leading-none",children:e("img",{src:n.iconUrl,alt:n.iconAlt||"",width:l,height:l,className:je("block object-contain","top"===c?"mt-1":"",d)})}):p?e("div",{className:"flex leading-none",children:e(kn,{name:i,size:l,color:Nn[u],weight:"600",className:je("block","top"===c?"mt-1":"",d)})}):null,e(Ln,{as:"div",children:f(m)})]},r)})})};var Dn;Bn.displayName="Checklist";const Gn="function"==typeof I?I:null!==(Dn=I.default)&&void 0!==Dn?Dn:I,Mn=i(({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)},f=je(d,`link--${i}`,l&&"link--disabled",r),h={...c,ref:u,className:f,style:a,href:l?void 0:n,onClick:p,...s&&!l&&{target:"_blank",rel:"noopener"},...l&&{"aria-disabled":!0,tabIndex:-1}};return l||s||"string"==typeof n&&n.startsWith("http")?e("a",{...h,children:t}):e(Gn,{href:n||"#",ref:u,className:f,style:a,onClick:p,...c,children:t})});function jn(e,t){a(()=>{if(!t)return;const n=()=>{const n=document.fullscreenElement||document.webkitFullscreenElement;t(n===e.current)};return document.addEventListener("fullscreenchange",n),document.addEventListener("webkitfullscreenchange",n),()=>{document.removeEventListener("fullscreenchange",n),document.removeEventListener("webkitfullscreenchange",n)}},[t,e])}Mn.displayName="Link";const Vn=n=>{const{videoAssetUrl:r,videoAssetType:o,image:i,title:a,description:l,containerClassName:c,autoplay:u=!1,onPlay:d,onPause:p,onTimeUpdate:f,onEnded:h,onFullscreenToggle:m}=n,g=s(null);return jn(g,m),r?e("div",{className:je("relative h-0 w-full overflow-hidden pb-[56.25%]",c),children:t("video",{ref:g,className:"absolute left-0 top-0 h-full w-full object-cover",controls:!0,playsInline:!0,preload:"metadata",autoPlay:u,poster:i||void 0,"aria-label":a||"Embedded video",onPlay:()=>null==d?void 0:d(),onPause:()=>null==p?void 0:p(),onEnded:()=>null==h?void 0:h(),onTimeUpdate:e=>null==f?void 0:f(e.currentTarget.currentTime,e.currentTarget.duration),children:[e("source",{src:r,type:o||"video/mp4"}),l||"Your browser does not support embedded videos."]})}):null},Fn=({isHovered:t,containerClassName:n})=>e("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(kn,{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")})}),_n="undefined"!=typeof global&&"[object global]"==={}.toString.call(global),Hn="undefined"!=typeof Bun,Wn="undefined"!=typeof Deno,Xn="function"==typeof WebSocketPair&&void 0!==caches?.default,zn=_n||Hn||Wn||Xn;function Zn(e,t){return 0===e.indexOf(t.toLowerCase())?e:`${t.toLowerCase()}${e.substr(0,1).toUpperCase()}${e.substr(1)}`}function Yn(e){return/^(https?:)?\/\/((((player|www)\.)?vimeo\.com)|((player\.)?[a-zA-Z0-9-]+\.(videoji\.(hk|cn)|vimeo\.work)))(?=$|\/)/.test(e)}function Un(e){return/^https:\/\/player\.((vimeo\.com)|([a-zA-Z0-9-]+\.(videoji\.(hk|cn)|vimeo\.work)))\/video\/\d+/.test(e)}function Jn(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=e.id,n=e.url,r=t||n;if(!r)throw new Error("An id or url must be passed, either in an options object or as a data-vimeo-id or data-vimeo-url attribute.");if(o=r,!isNaN(parseFloat(o))&&isFinite(o)&&Math.floor(o)==o)return`https://vimeo.com/${r}`;var o;if(Yn(r))return r.replace("http:","https:");if(t)throw new TypeError(`“${t}” is not a valid video id.`);throw new TypeError(`“${r}” is not a vimeo.com url.`)}const $n=function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"addEventListener",o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"removeEventListener";const i="string"==typeof t?[t]:t;return i.forEach(t=>{e[r](t,n)}),{cancel:()=>i.forEach(t=>e[o](t,n))}};function Kn(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document;if(!e||!t||"function"!=typeof t.querySelectorAll)return null;const n=t.querySelectorAll("iframe");for(let t=0;t<n.length;t++)if(n[t]&&n[t].contentWindow===e)return n[t];return null}const Qn=void 0!==Array.prototype.indexOf,qn="undefined"!=typeof window&&void 0!==window.postMessage;if(!(zn||Qn&&qn))throw new Error("Sorry, the Vimeo Player API is not available in this browser.");var er="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};
6
6
  /*!
7
7
  * weakmap-polyfill v2.0.4 - ECMAScript6 WeakMap polyfill
8
8
  * https://github.com/polygonplanet/weakmap-polyfill
9
9
  * Copyright (c) 2015-2021 polygonplanet <polygon.planet.aqua@gmail.com>
10
10
  * @license MIT
11
11
  */
12
- !function(e){if(!e.WeakMap){var t=Object.prototype.hasOwnProperty,n=Object.defineProperty&&function(){try{return 1===Object.defineProperty({},"x",{value:1}).x}catch(e){}}(),r=function(e,t,r){n?Object.defineProperty(e,t,{configurable:!0,writable:!0,value:r}):e[t]=r};e.WeakMap=function(){function e(){if(void 0===this)throw new TypeError("Constructor WeakMap requires 'new'");if(r(this,"_id",function(e){return e+"_"+i()+"."+i()}("_WeakMap")),arguments.length>0)throw new TypeError("WeakMap iterable is not supported")}function n(e,n){if(!o(e)||!t.call(e,"_id"))throw new TypeError(n+" method called on incompatible receiver "+typeof e)}function i(){return Math.random().toString().substring(2)}return r(e.prototype,"delete",function(e){if(n(this,"delete"),!o(e))return!1;var t=e[this._id];return!(!t||t[0]!==e)&&(delete e[this._id],!0)}),r(e.prototype,"get",function(e){if(n(this,"get"),o(e)){var t=e[this._id];return t&&t[0]===e?t[1]:void 0}}),r(e.prototype,"has",function(e){if(n(this,"has"),!o(e))return!1;var t=e[this._id];return!(!t||t[0]!==e)}),r(e.prototype,"set",function(e,t){if(n(this,"set"),!o(e))throw new TypeError("Invalid value used as weak map key");var i=e[this._id];return i&&i[0]===e?(i[1]=t,this):(r(e,this._id,[e,t]),this)}),r(e,"_polyfill",!0),e}()}function o(e){return Object(e)===e}}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:$n);var Kn=function(e,t){return e(t={exports:{}},t.exports),t.exports}(function(e){
12
+ !function(e){if(!e.WeakMap){var t=Object.prototype.hasOwnProperty,n=Object.defineProperty&&function(){try{return 1===Object.defineProperty({},"x",{value:1}).x}catch(e){}}(),r=function(e,t,r){n?Object.defineProperty(e,t,{configurable:!0,writable:!0,value:r}):e[t]=r};e.WeakMap=function(){function e(){if(void 0===this)throw new TypeError("Constructor WeakMap requires 'new'");if(r(this,"_id",function(e){return e+"_"+i()+"."+i()}("_WeakMap")),arguments.length>0)throw new TypeError("WeakMap iterable is not supported")}function n(e,n){if(!o(e)||!t.call(e,"_id"))throw new TypeError(n+" method called on incompatible receiver "+typeof e)}function i(){return Math.random().toString().substring(2)}return r(e.prototype,"delete",function(e){if(n(this,"delete"),!o(e))return!1;var t=e[this._id];return!(!t||t[0]!==e)&&(delete e[this._id],!0)}),r(e.prototype,"get",function(e){if(n(this,"get"),o(e)){var t=e[this._id];return t&&t[0]===e?t[1]:void 0}}),r(e.prototype,"has",function(e){if(n(this,"has"),!o(e))return!1;var t=e[this._id];return!(!t||t[0]!==e)}),r(e.prototype,"set",function(e,t){if(n(this,"set"),!o(e))throw new TypeError("Invalid value used as weak map key");var i=e[this._id];return i&&i[0]===e?(i[1]=t,this):(r(e,this._id,[e,t]),this)}),r(e,"_polyfill",!0),e}()}function o(e){return Object(e)===e}}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:er);var tr=function(e,t){return e(t={exports:{}},t.exports),t.exports}(function(e){
13
13
  /*! Native Promise Only
14
14
  v0.8.1 (c) Kyle Simpson
15
15
  MIT License: http://getify.mit-license.org
16
16
  */
17
- var t,n,r;r=function(){var e,t,n,r=Object.prototype.toString,o="undefined"!=typeof setImmediate?function(e){return setImmediate(e)}:setTimeout;try{Object.defineProperty({},"x",{}),e=function(e,t,n,r){return Object.defineProperty(e,t,{value:n,writable:!0,configurable:!1!==r})}}catch(t){e=function(e,t,n){return e[t]=n,e}}function i(e,r){n.add(e,r),t||(t=o(n.drain))}function a(e){var t,n=typeof e;return null==e||"object"!=n&&"function"!=n||(t=e.then),"function"==typeof t&&t}function s(){for(var e=0;e<this.chain.length;e++)l(this,1===this.state?this.chain[e].success:this.chain[e].failure,this.chain[e]);this.chain.length=0}function l(e,t,n){var r,o;try{!1===t?n.reject(e.msg):(r=!0===t?e.msg:t.call(void 0,e.msg))===n.promise?n.reject(TypeError("Promise-chain cycle")):(o=a(r))?o.call(r,n.resolve,n.reject):n.resolve(r)}catch(e){n.reject(e)}}function c(e){var t,n=this;if(!n.triggered){n.triggered=!0,n.def&&(n=n.def);try{(t=a(e))?i(function(){var r=new p(n);try{t.call(e,function(){c.apply(r,arguments)},function(){u.apply(r,arguments)})}catch(e){u.call(r,e)}}):(n.msg=e,n.state=1,n.chain.length>0&&i(s,n))}catch(e){u.call(new p(n),e)}}}function u(e){var t=this;t.triggered||(t.triggered=!0,t.def&&(t=t.def),t.msg=e,t.state=2,t.chain.length>0&&i(s,t))}function d(e,t,n,r){for(var o=0;o<t.length;o++)(function(o){e.resolve(t[o]).then(function(e){n(o,e)},r)})(o)}function p(e){this.def=e,this.triggered=!1}function f(e){this.promise=e,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function h(e){if("function"!=typeof e)throw TypeError("Not a function");if(0!==this.__NPO__)throw TypeError("Not a promise");this.__NPO__=1;var t=new f(this);this.then=function(e,n){var r={success:"function"!=typeof e||e,failure:"function"==typeof n&&n};return r.promise=new this.constructor(function(e,t){if("function"!=typeof e||"function"!=typeof t)throw TypeError("Not a function");r.resolve=e,r.reject=t}),t.chain.push(r),0!==t.state&&i(s,t),r.promise},this.catch=function(e){return this.then(void 0,e)};try{e.call(void 0,function(e){c.call(t,e)},function(e){u.call(t,e)})}catch(e){u.call(t,e)}}n=function(){var e,n,r;function o(e,t){this.fn=e,this.self=t,this.next=void 0}return{add:function(t,i){r=new o(t,i),n?n.next=r:e=r,n=r,r=void 0},drain:function(){var r=e;for(e=n=t=void 0;r;)r.fn.call(r.self),r=r.next}}}();var m=e({},"constructor",h,!1);return h.prototype=m,e(m,"__NPO__",0,!1),e(h,"resolve",function(e){return e&&"object"==typeof e&&1===e.__NPO__?e:new this(function(t,n){if("function"!=typeof t||"function"!=typeof n)throw TypeError("Not a function");t(e)})}),e(h,"reject",function(e){return new this(function(t,n){if("function"!=typeof t||"function"!=typeof n)throw TypeError("Not a function");n(e)})}),e(h,"all",function(e){var t=this;return"[object Array]"!=r.call(e)?t.reject(TypeError("Not an array")):0===e.length?t.resolve([]):new t(function(n,r){if("function"!=typeof n||"function"!=typeof r)throw TypeError("Not a function");var o=e.length,i=Array(o),a=0;d(t,e,function(e,t){i[e]=t,++a===o&&n(i)},r)})}),e(h,"race",function(e){var t=this;return"[object Array]"!=r.call(e)?t.reject(TypeError("Not an array")):new t(function(n,r){if("function"!=typeof n||"function"!=typeof r)throw TypeError("Not a function");d(t,e,function(e,t){n(t)},r)})}),h},(n=$n)[t="Promise"]=n[t]||r(),e.exports&&(e.exports=n[t])});const Qn=new WeakMap;function qn(e,t,n){const r=Qn.get(e.element)||{};t in r||(r[t]=[]),r[t].push(n),Qn.set(e.element,r)}function er(e,t){return(Qn.get(e.element)||{})[t]||[]}function tr(e,t,n){const r=Qn.get(e.element)||{};if(!r[t])return!0;if(!n)return r[t]=[],Qn.set(e.element,r),!0;const o=r[t].indexOf(n);return-1!==o&&r[t].splice(o,1),Qn.set(e.element,r),r[t]&&0===r[t].length}function nr(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){return console.warn(e),{}}return e}function rr(e,t,n){if(!e.element.contentWindow||!e.element.contentWindow.postMessage)return;let r={method:t};void 0!==n&&(r.value=n);const o=parseFloat(navigator.userAgent.toLowerCase().replace(/^.*msie (\d+).*$/,"$1"));o>=8&&o<10&&(r=JSON.stringify(r)),e.element.contentWindow.postMessage(r,e.origin)}function or(e,t){let n,r=[];if((t=nr(t)).event){if("error"===t.event){er(e,t.data.method).forEach(n=>{const r=new Error(t.data.message);r.name=t.data.name,n.reject(r),tr(e,t.data.method,n)})}r=er(e,`event:${t.event}`),n=t.data}else if(t.method){const o=function(e,t){const n=er(e,t);if(n.length<1)return!1;const r=n.shift();return tr(e,t,r),r}(e,t.method);o&&(r.push(o),n=t.value)}r.forEach(t=>{try{if("function"==typeof t)return void t.call(e,n);t.resolve(n)}catch(e){}})}const ir=["airplay","audio_tracks","audiotrack","autopause","autoplay","background","byline","cc","chapter_id","chapters","chromecast","color","colors","controls","disable_context_menu","dnt","end_time","fullscreen","height","id","initial_quality","interactive_params","keyboard","loop","maxheight","max_quality","maxwidth","min_quality","muted","play_button_position","playsinline","portrait","preload","progress_bar","quality","quality_selector","responsive","skipping_forward","speed","start_time","texttrack","thumbnail_id","title","transcript","transparent","unmute_button","url","vimeo_logo","volume","watch_full_video","width"];function ar(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return ir.reduce((t,n)=>{const r=e.getAttribute(`data-vimeo-${n}`);return(r||""===r)&&(t[n]=""===r?1:r),t},t)}function sr(e,t){let{html:n}=e;if(!t)throw new TypeError("An element must be provided");if(null!==t.getAttribute("data-vimeo-initialized"))return t.querySelector("iframe");const r=document.createElement("div");return r.innerHTML=n,t.appendChild(r.firstChild),t.setAttribute("data-vimeo-initialized","true"),t.querySelector("iframe")}function lr(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return new Promise((r,o)=>{if(!Wn(e))throw new TypeError(`“${e}” is not a vimeo.com url.`);const i=function(e){const t=(e||"").match(/^(?:https?:)?(?:\/\/)?([^/?]+)/),n=(t&&t[1]||"").replace("player.",""),r=[".videoji.hk",".vimeo.work",".videoji.cn"];for(const e of r)if(n.endsWith(e))return n;return"vimeo.com"}(e);let a=`https://${i}/api/oembed.json?url=${encodeURIComponent(e)}`;for(const e in t)t.hasOwnProperty(e)&&(a+=`&${e}=${encodeURIComponent(t[e])}`);const s="XDomainRequest"in window?new XDomainRequest:new XMLHttpRequest;s.open("GET",a,!0),s.onload=function(){if(404!==s.status)if(403!==s.status)try{const t=JSON.parse(s.responseText);if(403===t.domain_status_code)return sr(t,n),void o(new Error(`“${e}” is not embeddable.`));r(t)}catch(e){o(e)}else o(new Error(`“${e}” is not embeddable.`));else o(new Error(`“${e}” was not found.`))},s.onerror=function(){const e=s.status?` (${s.status})`:"";o(new Error(`There was an error fetching the embed code from Vimeo${e}.`))},s.send()})}const cr={role:"viewer",autoPlayMuted:!0,allowedDrift:.3,maxAllowedDrift:1,minCheckInterval:.1,maxRateAdjustment:.2,maxTimeToCatchUp:1};class ur extends EventTarget{logger;constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;super(),this.logger=r,this.init(t,e,{...cr,...n})}disconnect(){this.dispatchEvent(new Event("disconnect"))}async init(e,t,n){if(await this.waitForTOReadyState(e,"open"),"viewer"===n.role){await this.updatePlayer(e,t,n);const r=Zn(e,"change",()=>this.updatePlayer(e,t,n)),o=this.maintainPlaybackPosition(e,t,n);this.addEventListener("disconnect",()=>{o.cancel(),r.cancel()})}else{await this.updateTimingObject(e,t);const n=Zn(t,["seeked","play","pause","ratechange"],()=>this.updateTimingObject(e,t),"on","off");this.addEventListener("disconnect",()=>n.cancel())}}async updateTimingObject(e,t){const[n,r,o]=await Promise.all([t.getCurrentTime(),t.getPaused(),t.getPlaybackRate()]);e.update({position:n,velocity:r?0:o})}async updatePlayer(e,t,n){const{position:r,velocity:o}=e.query();"number"==typeof r&&t.setCurrentTime(r),"number"==typeof o&&(0===o?!1===await t.getPaused()&&t.pause():o>0&&(!0===await t.getPaused()&&(await t.play().catch(async e=>{"NotAllowedError"===e.name&&n.autoPlayMuted&&(await t.setMuted(!0),await t.play().catch(e=>console.error("Couldn't play the video from TimingSrcConnector. Error:",e)))}),this.updatePlayer(e,t,n)),await t.getPlaybackRate()!==o&&t.setPlaybackRate(o)))}maintainPlaybackPosition(e,t,n){const{allowedDrift:r,maxAllowedDrift:o,minCheckInterval:i,maxRateAdjustment:a,maxTimeToCatchUp:s}=n,l=1e3*Math.min(s,Math.max(i,o)),c=async()=>{if(0===e.query().velocity||!0===await t.getPaused())return;const n=e.query().position-await t.getCurrentTime(),i=Math.abs(n);if(this.log(`Drift: ${n}`),i>o)await this.adjustSpeed(t,0),t.setCurrentTime(e.query().position),this.log("Resync by currentTime");else if(i>r){const e=i/s,r=e<a?(a-e)/2:a;await this.adjustSpeed(t,r*Math.sign(n)),this.log("Resync by playbackRate")}},u=setInterval(()=>c(),l);return{cancel:()=>clearInterval(u)}}log(e){this.logger?.(`TimingSrcConnector: ${e}`)}speedAdjustment=0;adjustSpeed=async(e,t)=>{if(this.speedAdjustment===t)return;const n=await e.getPlaybackRate()-this.speedAdjustment+t;this.log(`New playbackRate: ${n}`),await e.setPlaybackRate(n),this.speedAdjustment=t};waitForTOReadyState(e,t){return new Promise(n=>{const r=()=>{e.readyState===t?n():e.addEventListener("readystatechange",r,{once:!0})};r()})}}const dr=new WeakMap,pr=new WeakMap;let fr={};class hr{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(window.jQuery&&e instanceof jQuery&&(e.length>1&&window.console&&console.warn&&console.warn("A jQuery object with multiple elements was passed, using the first element."),e=e[0]),"undefined"!=typeof document&&"string"==typeof e&&(e=document.getElementById(e)),!function(e){return Boolean(e&&1===e.nodeType&&"nodeName"in e&&e.ownerDocument&&e.ownerDocument.defaultView)}(e))throw new TypeError("You must pass either a valid element or a valid id.");if("IFRAME"!==e.nodeName){const t=e.querySelector("iframe");t&&(e=t)}if("IFRAME"===e.nodeName&&!Wn(e.getAttribute("src")||""))throw new Error("The player element passed isn’t a Vimeo embed.");if(dr.has(e))return dr.get(e);this._window=e.ownerDocument.defaultView,this.element=e,this.origin="*";const n=new Kn((n,r)=>{if(this._onMessage=e=>{if(!Wn(e.origin)||this.element.contentWindow!==e.source)return;"*"===this.origin&&(this.origin=e.origin);const t=nr(e.data);if(t&&"error"===t.event&&t.data&&"ready"===t.data.method){const e=new Error(t.data.message);return e.name=t.data.name,void r(e)}const o=t&&"ready"===t.event,i=t&&"ping"===t.method;if(o||i)return this.element.setAttribute("data-ready","true"),void n();or(this,t)},this._window.addEventListener("message",this._onMessage),"IFRAME"!==this.element.nodeName){const n=ar(e,t);lr(zn(n),n,e).then(t=>{const n=sr(t,e);return this.element=n,this._originalElement=e,function(e,t){const n=Qn.get(e);Qn.set(t,n),Qn.delete(e)}(e,n),dr.set(this.element,this),t}).catch(r)}});if(pr.set(this,n),dr.set(this.element,this),"IFRAME"===this.element.nodeName&&rr(this,"ping"),fr.isEnabled){const e=()=>fr.exit();this.fullscreenchangeHandler=()=>{fr.isFullscreen?qn(this,"event:exitFullscreen",e):tr(this,"event:exitFullscreen",e),this.ready().then(()=>{rr(this,"fullscreenchange",fr.isFullscreen)})},fr.on("fullscreenchange",this.fullscreenchangeHandler)}return this}static isVimeoUrl(e){return Wn(e)}callMethod(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(null==e)throw new TypeError("You must pass a method name.");return new Kn((t,r)=>this.ready().then(()=>{qn(this,e,{resolve:t,reject:r}),0===n.length?n={}:1===n.length&&(n=n[0]),rr(this,e,n)}).catch(r))}get(e){return new Kn((t,n)=>(e=Hn(e,"get"),this.ready().then(()=>{qn(this,e,{resolve:t,reject:n}),rr(this,e)}).catch(n)))}set(e,t){return new Kn((n,r)=>{if(e=Hn(e,"set"),null==t)throw new TypeError("There must be a value to set.");return this.ready().then(()=>{qn(this,e,{resolve:n,reject:r}),rr(this,e,t)}).catch(r)})}on(e,t){if(!e)throw new TypeError("You must pass an event name.");if(!t)throw new TypeError("You must pass a callback function.");if("function"!=typeof t)throw new TypeError("The callback must be a function.");0===er(this,`event:${e}`).length&&this.callMethod("addEventListener",e).catch(()=>{}),qn(this,`event:${e}`,t)}off(e,t){if(!e)throw new TypeError("You must pass an event name.");if(t&&"function"!=typeof t)throw new TypeError("The callback must be a function.");tr(this,`event:${e}`,t)&&this.callMethod("removeEventListener",e).catch(e=>{})}loadVideo(e){return this.callMethod("loadVideo",e)}ready(){const e=pr.get(this)||new Kn((e,t)=>{t(new Error("Unknown player. Probably unloaded."))});return Kn.resolve(e)}addCuePoint(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.callMethod("addCuePoint",{time:e,data:t})}removeCuePoint(e){return this.callMethod("removeCuePoint",e)}enableTextTrack(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!e)throw new TypeError("You must pass a language.");return this.callMethod("enableTextTrack",{language:e,kind:t,showing:n})}disableTextTrack(){return this.callMethod("disableTextTrack")}selectAudioTrack(e,t){if(!e)throw new TypeError("You must pass a language.");return this.callMethod("selectAudioTrack",{language:e,kind:t})}selectDefaultAudioTrack(){return this.callMethod("selectDefaultAudioTrack")}pause(){return this.callMethod("pause")}play(){return this.callMethod("play")}requestFullscreen(){return fr.isEnabled?fr.request(this.element):this.callMethod("requestFullscreen")}exitFullscreen(){return fr.isEnabled?fr.exit():this.callMethod("exitFullscreen")}getFullscreen(){return fr.isEnabled?Kn.resolve(fr.isFullscreen):this.get("fullscreen")}requestPictureInPicture(){return this.callMethod("requestPictureInPicture")}exitPictureInPicture(){return this.callMethod("exitPictureInPicture")}getPictureInPicture(){return this.get("pictureInPicture")}remotePlaybackPrompt(){return this.callMethod("remotePlaybackPrompt")}unload(){return this.callMethod("unload")}destroy(){return new Kn(e=>{if(pr.delete(this),dr.delete(this.element),this._originalElement&&(dr.delete(this._originalElement),this._originalElement.removeAttribute("data-vimeo-initialized")),this.element&&"IFRAME"===this.element.nodeName&&this.element.parentNode&&(this.element.parentNode.parentNode&&this._originalElement&&this._originalElement!==this.element.parentNode?this.element.parentNode.parentNode.removeChild(this.element.parentNode):this.element.parentNode.removeChild(this.element)),this.element&&"DIV"===this.element.nodeName&&this.element.parentNode){this.element.removeAttribute("data-vimeo-initialized");const e=this.element.querySelector("iframe");e&&e.parentNode&&(e.parentNode.parentNode&&this._originalElement&&this._originalElement!==e.parentNode?e.parentNode.parentNode.removeChild(e.parentNode):e.parentNode.removeChild(e))}this._window.removeEventListener("message",this._onMessage),fr.isEnabled&&fr.off("fullscreenchange",this.fullscreenchangeHandler),e()})}getAutopause(){return this.get("autopause")}setAutopause(e){return this.set("autopause",e)}getBuffered(){return this.get("buffered")}getCameraProps(){return this.get("cameraProps")}setCameraProps(e){return this.set("cameraProps",e)}getChapters(){return this.get("chapters")}getCurrentChapter(){return this.get("currentChapter")}getColor(){return this.get("color")}getColors(){return Kn.all([this.get("colorOne"),this.get("colorTwo"),this.get("colorThree"),this.get("colorFour")])}setColor(e){return this.set("color",e)}setColors(e){if(!Array.isArray(e))return new Kn((e,t)=>t(new TypeError("Argument must be an array.")));const t=new Kn(e=>e(null)),n=[e[0]?this.set("colorOne",e[0]):t,e[1]?this.set("colorTwo",e[1]):t,e[2]?this.set("colorThree",e[2]):t,e[3]?this.set("colorFour",e[3]):t];return Kn.all(n)}getCuePoints(){return this.get("cuePoints")}getCurrentTime(){return this.get("currentTime")}setCurrentTime(e){return this.set("currentTime",e)}getDuration(){return this.get("duration")}getEnded(){return this.get("ended")}getLoop(){return this.get("loop")}setLoop(e){return this.set("loop",e)}setMuted(e){return this.set("muted",e)}getMuted(){return this.get("muted")}getPaused(){return this.get("paused")}getPlaybackRate(){return this.get("playbackRate")}setPlaybackRate(e){return this.set("playbackRate",e)}getPlayed(){return this.get("played")}getQualities(){return this.get("qualities")}getQuality(){return this.get("quality")}setQuality(e){return this.set("quality",e)}getRemotePlaybackAvailability(){return this.get("remotePlaybackAvailability")}getRemotePlaybackState(){return this.get("remotePlaybackState")}getSeekable(){return this.get("seekable")}getSeeking(){return this.get("seeking")}getTextTracks(){return this.get("textTracks")}getAudioTracks(){return this.get("audioTracks")}getEnabledAudioTrack(){return this.get("enabledAudioTrack")}getDefaultAudioTrack(){return this.get("defaultAudioTrack")}getVideoEmbedCode(){return this.get("videoEmbedCode")}getVideoId(){return this.get("videoId")}getVideoTitle(){return this.get("videoTitle")}getVideoWidth(){return this.get("videoWidth")}getVideoHeight(){return this.get("videoHeight")}getVideoUrl(){return this.get("videoUrl")}getVolume(){return this.get("volume")}setVolume(e){return this.set("volume",e)}async setTimingSrc(e,t){if(!e)throw new TypeError("A Timing Object must be provided.");await this.ready();const n=new ur(this,e,t);return rr(this,"notifyTimingObjectConnect"),n.addEventListener("disconnect",()=>rr(this,"notifyTimingObjectDisconnect")),n}}_n||(fr=function(){const e=function(){let e;const t=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]];let n=0;const r=t.length,o={};for(;n<r;n++)if(e=t[n],e&&e[1]in document){for(n=0;n<e.length;n++)o[t[0][n]]=e[n];return o}return!1}(),t={fullscreenchange:e.fullscreenchange,fullscreenerror:e.fullscreenerror},n={request:t=>new Promise((r,o)=>{const i=function(){n.off("fullscreenchange",i),r()};n.on("fullscreenchange",i);const a=(t=t||document.documentElement)[e.requestFullscreen]();a instanceof Promise&&a.then(i).catch(o)}),exit:()=>new Promise((t,r)=>{if(!n.isFullscreen)return void t();const o=function(){n.off("fullscreenchange",o),t()};n.on("fullscreenchange",o);const i=document[e.exitFullscreen]();i instanceof Promise&&i.then(o).catch(r)}),on(e,n){const r=t[e];r&&document.addEventListener(r,n)},off(e,n){const r=t[e];r&&document.removeEventListener(r,n)}};return Object.defineProperties(n,{isFullscreen:{get:()=>Boolean(document[e.fullscreenElement])},element:{enumerable:!0,get:()=>document[e.fullscreenElement]},isEnabled:{enumerable:!0,get:()=>Boolean(document[e.fullscreenEnabled])}}),n}(),function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;const t=[].slice.call(e.querySelectorAll("[data-vimeo-id], [data-vimeo-url]")),n=e=>{"console"in window&&console.error&&console.error(`There was an error creating an embed: ${e}`)};t.forEach(e=>{try{if(null!==e.getAttribute("data-vimeo-defer"))return;const t=ar(e);lr(zn(t),t,e).then(t=>sr(t,e)).catch(n)}catch(e){n(e)}})}(),function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;if(window.VimeoPlayerResizeEmbeds_)return;window.VimeoPlayerResizeEmbeds_=!0,window.addEventListener("message",t=>{if(!Wn(t.origin))return;if(!t.data||"spacechange"!==t.data.event)return;const n=t.source?Yn(t.source,e):null;n&&(n.parentElement.style.paddingBottom=`${t.data.data[0].bottom}px`)})}(),function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;if(window.VimeoSeoMetadataAppended)return;window.VimeoSeoMetadataAppended=!0,window.addEventListener("message",t=>{if(!Wn(t.origin))return;const n=nr(t.data);if(!n||"ready"!==n.event)return;const r=t.source?Yn(t.source,e):null;r&&Xn(r.src)&&new hr(r).callMethod("appendVideoMetadata",window.location.href)})}(),function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;if(window.VimeoCheckedUrlTimeParam)return;window.VimeoCheckedUrlTimeParam=!0;const t=e=>{"console"in window&&console.error&&console.error(`There was an error getting video Id: ${e}`)};window.addEventListener("message",n=>{if(!Wn(n.origin))return;const r=nr(n.data);if(!r||"ready"!==r.event)return;const o=n.source?Yn(n.source,e):null;if(o&&Xn(o.src)){const e=new hr(o);e.getVideoId().then(t=>{const n=new RegExp(`[?&]vimeo_t_${t}=([^&#]*)`).exec(window.location.href);if(n&&n[1]){const t=decodeURI(n[1]);e.setCurrentTime(t)}}).catch(t)}})}(),function(){if(window.VimeoDRMEmbedsUpdated)return;window.VimeoDRMEmbedsUpdated=!0,window.addEventListener("message",e=>{if(!Wn(e.origin))return;const t=nr(e.data);if(!t||"drminitfailed"!==t.event)return;const n=e.source?Yn(e.source):null;if(!n)return;const r=n.getAttribute("allow")||"";if(!r.includes("encrypted-media")){n.setAttribute("allow",`${r}; encrypted-media`);const e=new URL(n.getAttribute("src"));return e.searchParams.set("forcereload","drm"),void n.setAttribute("src",e.toString())}})}());const mr=e=>{let t=e.split(/[?#]/)[0];for(;t.endsWith("/");)t=t.slice(0,-1);const n=t.split("/").filter(Boolean),r=n.findIndex(e=>"vimeo.com"===e||"player.vimeo.com"===e);if(-1===r)return"";const o=n.find((e,t)=>t>r&&/^\d{6,}$/.test(e));if(!o)return"";const i=n[n.length-1];return o===i?o:`${o}/${i}`},gr=t=>{const{link:n,title:r,containerClassName:o,autoplay:i=!1,debug:c=!1,onPlay:u,onPause:d,onTimeUpdate:p,onEnded:f,onFullscreenToggle:h}=t,m=s(null),{href:g,embedId:b}=l(()=>{if(!n)return{href:"",embedId:""};const e=n.toString();return{href:e,embedId:mr(e)}},[n]);if(c&&console.log("[VimeoEmbed] href:",g,"id:",b),a(()=>{if(!b||!m.current)return;const e=new hr(m.current),t=()=>null==u?void 0:u(),n=()=>null==d?void 0:d(),r=()=>null==f?void 0:f(),o=e=>null==p?void 0:p(e.seconds,e.duration),i=e=>null==h?void 0:h(e.fullscreen);return e.on("play",t),e.on("pause",n),e.on("ended",r),e.on("timeupdate",o),e.on("fullscreenchange",i),()=>{e.off("play",t),e.off("pause",n),e.off("ended",r),e.off("timeupdate",o),e.off("fullscreenchange",i),e.destroy().catch(()=>{})}},[b]),!b)return null;const v=new URLSearchParams({autoplay:i?"1":"0",muted:"0",playsinline:"1",dnt:"1",title:"0",byline:"0",portrait:"0",autopause:"1"}),y=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/${b}?${v.toString()}`);return e("div",{className:De("relative h-0 w-full overflow-hidden pb-[56.25%]",o),children:e("iframe",{ref:m,className:"absolute left-0 top-0 h-full w-full",src:y,allow:"autoplay; fullscreen; picture-in-picture",allowFullScreen:!0,referrerPolicy:"strict-origin-when-cross-origin",title:r||"Embedded vimeo"})})};let br=null;const vr=e=>{if(!e)return"";const t=e.toString().match(/^.*((youtu.be\/)|(v\/)|(\/u\/\w\/)|(embed\/)|(watch\?))\??v?=?([^#&?]*).*/);return t&&11===t[7].length?t[7]:""},yr=t=>{const{link:n,title:r,containerClassName:o,autoplay:i=!1,onPlay:c,onPause:u,onTimeUpdate:d,onEnded:p,onFullscreenToggle:f}=t,h=l(()=>vr(n),[n]),m=s(null),g=s();if(Bn(m,f),a(()=>{if(!h||!m.current)return;let e,t=!1;return function(){var e;return"undefined"==typeof window?Promise.reject(new Error("YouTube IFrame API requires a browser")):(null===(e=window.YT)||void 0===e?void 0:e.Player)?Promise.resolve(window.YT):br||(br=new Promise((e,t)=>{const n=window.onYouTubeIframeAPIReady;window.onYouTubeIframeAPIReady=()=>{null==n||n(),e(window.YT)};let r=document.querySelector('script[src*="youtube.com/iframe_api"]');r||(r=document.createElement("script"),r.src="https://www.youtube.com/iframe_api",r.onerror=()=>{br=null,t(new Error("Failed to load YouTube IFrame API"))},document.head.appendChild(r))}),br)}().then(n=>{!t&&m.current&&(e=new n.Player(m.current,{events:{onStateChange:t=>{const r=n.PlayerState;t.data===r.PLAYING?(null==c||c(),clearInterval(g.current),g.current=setInterval(()=>{var t,n,r,o;const i=null!==(n=null===(t=null==e?void 0:e.getDuration)||void 0===t?void 0:t.call(e))&&void 0!==n?n:0,a=null!==(o=null===(r=null==e?void 0:e.getCurrentTime)||void 0===r?void 0:r.call(e))&&void 0!==o?o:0;null==d||d(a,i)},1e3)):t.data===r.PAUSED?(null==u||u(),clearInterval(g.current)):t.data===r.ENDED&&(null==p||p(),clearInterval(g.current))}}}))}).catch(()=>{}),()=>{var n;t=!0,clearInterval(g.current);try{null===(n=null==e?void 0:e.destroy)||void 0===n||n.call(e)}catch(e){}}},[h]),!h)return null;const b=new URLSearchParams({enablejsapi:"1",autoplay:i?"1":"0",mute:i?"1":"0",playsinline:"1",rel:"0"}),v=`https://www.youtube.com/embed/${h}?${b.toString()}`;return e("div",{className:De("relative h-full w-full overflow-hidden pb-[56.25%]",o),children:e("iframe",{ref:m,className:"absolute left-0 top-0 h-full w-full",src:v,title:r||"Embedded youtube",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0,referrerPolicy:"strict-origin-when-cross-origin"})})},xr=(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})(w),Ir=({src:e,width:t,quality:n})=>{const r=e.startsWith("//")?`https:${e}`:e;let o;try{o=new URL(r)}catch(t){return e}return o.searchParams.set("w",String(t)),o.searchParams.set("q",String(n||90)),o.searchParams.set("fm","webp"),o.toString()},wr=i(({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:Ir,unoptimized:!1}:{unoptimized:s};return e(xr,{ref:r,className:De(t),...n,...l})});wr.displayName="NextImage";const Cr=[25,50,75];const Er=({videoLink:r,imageWidth:o=660,imageHeight:i=660,useOriginalImageAspectRatio:a=!1,isAboveTheFold:l=!1,onVideoEvent:u})=>{var d;const[p,f]=c(""),[h,m]=c(!1),g=function(e){const t=s(new Set),n=s(!1),r=s(0),o=s(0),i=(t,n,i)=>{e&&e(n,{videoId:t.videoId,videoTitle:t.videoTitle,provider:t.provider,position:r.current,duration:o.current,percentComplete:o.current>0?Math.min(100,Math.round(r.current/o.current*100)):0,...i})};return{handlePlay:e=>i(e,"played"),handlePause:e=>i(e,"paused"),handleFullscreenToggle:(e,t)=>i(e,"fullscreen_toggled",{isFullscreen:t}),handleClosed:e=>i(e,"closed"),handleTimeUpdate:(e,a,s)=>{const l=Number.isFinite(a)?a:0,c=Number.isFinite(s)?s:0;if(r.current=l,o.current=c,c<=0)return;const u=Math.min(100,l/c*100);Cr.forEach(n=>{u>=n&&!t.current.has(n)&&(t.current.add(n),i(e,"progress"))}),u>=99.5&&!n.current&&(n.current=!0,i(e,"completed"))},handleEnded:e=>{n.current||(n.current=!0,o.current>0&&(r.current=o.current),i(e,"completed"))},reset:()=>{t.current=new Set,n.current=!1,r.current=0,o.current=0}}}(u),b=null==r?void 0:r.videoSourceType,v="contentful"===b?null==r?void 0:r.videoAssetUrl:null==r?void 0:r.link,y="string"==typeof v?v:"",x=null==r?void 0:r.image;if(!y)return x?e("div",{className:De(a?"overflow-hidden rounded-image":"relative aspect-[16/9] w-full overflow-hidden rounded-image lg:h-[486px] xl:aspect-square xl:max-h-[486px] xl:w-[486px]"),children:e(wr,{src:x,alt:"section-image",priority:l,fill:!a,width:a?o||660:void 0,height:a?i||660:void 0,sizes:"(max-width: 430px) 100vw, (max-width: 834px) 100vw, 50vw",className:De(a?"w-full":"object-cover")})}):null;const I=null!==(d=null==r?void 0:r.videoPopup)&&void 0!==d&&d,w=Boolean(p&&p===y),C="contentful"===b?"contentful":y.includes("vimeo")?"vimeo":"youtube",E="contentful"===C?(e=>{var t;if("string"!=typeof e||!e)return"";const[n]=e.split(/[?#]/);return null!==(t=n.split("/").filter(Boolean).pop())&&void 0!==t?t:e})(null==r?void 0:r.videoAssetUrl):"vimeo"===C?(A=y)?mr(A.toString()):"":vr(y);var A;const S={videoId:E,videoTitle:null==r?void 0:r.title,provider:C},T=()=>{w||(g.reset(),f(y))},O=e=>{e.stopPropagation(),g.handleClosed(S),f("")},N="string"==typeof(null==r?void 0:r.title)?r.title.trim():"",P=N?`${N} video preview`:"Video preview",R=N?`Play video: ${N}`:"Play video",k=(()=>{const t={onPlay:()=>g.handlePlay(S),onPause:()=>g.handlePause(S),onTimeUpdate:(e,t)=>g.handleTimeUpdate(S,e,t),onEnded:()=>g.handleEnded(S),onFullscreenToggle:e=>g.handleFullscreenToggle(S,e)},n=w?"playing":"idle";return"contentful"===b?e(Gn,{videoAssetUrl:null==r?void 0:r.videoAssetUrl,videoAssetType:null==r?void 0:r.videoAssetType,image:x,title:null==r?void 0:r.title,description:null==r?void 0:r.description,autoplay:w,...t},n):y.includes("vimeo")?e(gr,{link:y,title:null==r?void 0:r.title,autoplay:w,...t},n):e(yr,{link:y,title:null==r?void 0:r.title,autoplay:w,...t},n)})();return t(n,{children:[t("div",{className:De("video-section relative w-full cursor-pointer rounded-image transition-all duration-300 lg:w-[486px]","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-border-focus",!w&&"hover:ring-2 hover:ring-border-focus"),onClick:T,onKeyDown:e=>{w||"Enter"!==e.key&&" "!==e.key&&"Spacebar"!==e.key||(e.preventDefault(),T())},onMouseEnter:()=>m(!0),onMouseLeave:()=>m(!1),role:w?void 0:"button",tabIndex:w?void 0:0,"aria-label":w?void 0:R,children:[t("div",{className:De(w&&!I&&"hidden",w&&!I?"opacity-0":"opacity-100","relative w-full transition-opacity duration-300"),children:[x&&e(wr,{src:x,alt:P,width:o||660,height:i||660,sizes:"(max-width: 430px) 100vw, (max-width: 834px) 100vw, 50vw",className:"h-auto w-full rounded-image"}),e("div",{"aria-hidden":"true",className:"pointer-events-none absolute inset-0 flex items-center justify-center",children:e(jn,{isHovered:h})})]}),!I&&e("div",{className:De("aspect-[16/9] w-full overflow-hidden rounded-image transition-opacity duration-300",w?"opacity-100":"hidden",!a&&"xl:aspect-square xl:max-h-[486px] xl:w-[486px]"),children:k})]}),I&&e("div",{className:De("z-[100] transition-all duration-300",w?"fixed inset-0 flex items-center justify-center p-4":"hidden"),onClick:O,children:t("div",{"data-testid":"video-popup-content",className:"relative aspect-video w-[min(100%,calc(80vh*16/9))] max-w-[1280px] overflow-hidden rounded-2xl bg-black shadow-2xl md:rounded-3xl",onClick:e=>e.stopPropagation(),children:[e("button",{type:"button",onClick:O,"aria-label":"Close video","data-testid":"video-popup-close",className:"absolute right-3 top-3 z-10 flex h-9 w-9 items-center justify-center rounded-full bg-black/60 text-white transition-colors hover:bg-black/80 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-white sm:right-4 sm:top-4 sm:h-10 sm:w-10",children:e(On,{name:"close",className:"text-white"})}),k]})})]})},Ar=i(({children:t,className:n="",style:r,disabled:o,...i},a)=>e("button",{ref:a,className:De(n),style:r,disabled:o,...i,children:t}));Ar.displayName="Button";const Sr=(n,r)=>{const{className:o,size:i,required:a,placeholder:s,label:l,state:d,errorText:p,prefixIconName:f,prefixIconFill:h=!0,suffixIconFill:m=!1,prefixIconSize:g=24,suffixIconName:b,suffixIconSize:v=24,containerClassName:y,prefixIconClassName:x,loading:I,hasError:w,type:C,...E}=n,A=w?"error":d,[S,T]=c(!1),[O,N]=c(!1),[P,R]=c(C||"text"),k=u(e=>{e.stopPropagation(),R(e=>"password"===e?"text":"password")},[]);return t("div",{className:"relative",children:[l?e("label",{htmlFor:l,className:De("inline-block pb-1"),children:t(Nn,{as:"span",className:"footnote text-text",children:[l,a?e("span",{className:"pl-1 text-text-critical",children:"*"}):null]})}):null,t("div",{className:De("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"],y,(S||"hover"===A)&&!O&&"error"!==A&&"border-input-border-hover",(O||"focus"===A||"active"===A)&&"border-input-border-selected outline outline-1 outline-input-border-selected","error"===A&&"border-input-border-critical outline outline-1 outline-input-border-critical"),children:[f?e("div",{className:"mr-1",style:{width:g,height:g,overflow:"hidden"},children:e(On,{name:f,fill:h?1:0,size:g,className:De(x)})}):null,e("input",{ref:r,id:l,disabled:I||E.disabled,className:De("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:P,...E,onMouseOver:()=>T(!0),onMouseOut:()=>T(!1),onFocus:e=>{var t;null===(t=E.onFocus)||void 0===t||t.call(E,e),N(!0)},onBlur:e=>{var t;null===(t=E.onBlur)||void 0===t||t.call(E,e),N(!1)}}),b?e("div",{className:"ml-2",style:{width:v,height:v,overflow:"hidden"},onClick:k,children:e(On,{name:"text"===P?"visibility":"visibility_off",size:v,fill:m?1:0})}):null]}),"error"===A&&p&&""!=p?t(Nn,{className:De("footnote left-0 top-full inline-flex items-center pt-1 text-text-critical"),children:[e(On,{name:"info",size:20,className:"mr-1"}),p||"Error"]}):null]})},Tr=i(Sr);Tr.displayName="Input";const Or=e=>{const{address:t,mainText:n,postalCode:r}=e;if(!t)return{primaryText:n,secondaryText:"",value:n};const o=[t.addressLine1,t.addressLine2].filter(Boolean).join(", "),i=[t.city,t.state,t.postalCode||r].filter(Boolean).join(", ");return{primaryText:o||n,secondaryText:i,value:[o,i].filter(Boolean).join(", ")||n}},Nr=({className:n,containerClassName:r,defaultValue:o="",errorText:i,fixedPositionedSuggestions:l=!1,focusOnLoad:p=!0,hasError:f,inputContainerClassName:h,isIframe:m=!1,isLoading:g=!1,isReady:b=!0,mapPinIcon:v=!0,minQueryLength:y=3,onChange:x,onFocus:I,onLoadProvider:w,onSelectAddress:C,onSuggestionsChange:E,optionsContainerClassName:A,prefixIconClassName:S="text-icon-brand",suggestions:T=[],value:O,...N})=>{const P=s(null),R=s(null),k=d(),[L,B]=c(null!=O?O:o),[G,j]=c(!1),M=De("inline-flex items-center justify-center leading-none",S);a(()=>{void 0!==O&&B(O)},[O]),a(()=>{var e;b&&p&&(null===(e=P.current)||void 0===e||e.focus())},[p,b]),a(()=>{b&&(null==w||w())},[b,w]),a(()=>{null==E||E(T)},[E,T]),((e,t)=>{const n=n=>{var r;(null===(r=null==e?void 0:e.current)||void 0===r?void 0:r.contains(n.target))||t()};a(()=>(document.addEventListener("click",n),()=>{document.removeEventListener("click",n)}))})(R,()=>j(!1));const D=u(e=>{if(!e.address)return;const t=Or(e);B(t.value),j(!1),null==C||C({address:t.value,unit:e.address.addressLine2||"",addressToSend:e.address,placeId:e.placeId||""})},[C]),V=G&&L.length>=y&&!g&&T.length>0;return t("div",{ref:R,className:De("relative min-w-[300px] text-text",r),children:[e(Tr,{...N,ref:P,size:"medium",value:L,className:De("mx-auto w-full bg-transparent pl-2 placeholder:text-input-text-placeholder","body2",n),containerClassName:De("pl-4",h),loading:!b,onChange:e=>{const t=e.target.value;B(t),j(t.length>=y),t||null==C||C(),null==x||x(t)},onFocus:e=>{j(!0),null==I||I(e)},autoComplete:"off",role:"combobox","aria-autocomplete":"list","aria-controls":k,"aria-expanded":V,"data-cy":"address-autocomplete-input","data-testid":"address-autocomplete-input",prefixIconName:v?"location_on":void 0,prefixIconFill:!0,prefixIconClassName:M,errorText:i,state:i||f?"error":N.state,hasError:f}),V&&e("ul",{id:k,role:"listbox","data-cy":"address-autocomplete-suggestions","data-testid":"address-autocomplete-suggestions",className:De("shadow-dark-drop absolute top-full z-20 m-0 mt-1 w-full list-none overflow-y-auto overscroll-contain rounded-lg border border-input-border bg-bg-surface p-0",m?"max-h-[117px]":"max-h-[220px]",l&&(m?"fixed z-50 max-h-[117px]":"fixed z-50 max-h-[220px]"),A),children:T.map((n,r)=>{const{primaryText:o,secondaryText:i}=Or(n);return e("li",{role:"option","aria-selected":"false",children:t("button",{type:"button",className:"body2 flex w-full items-center px-4 py-4 text-left hover:bg-bg-surface-secondary",onClick:()=>D(n),children:[e(On,{fill:1,name:"location_on",size:24,weight:"200",className:De("mr-4 min-w-[24px]",M)}),t("span",{children:[e("span",{children:o}),i&&e("span",{className:"ml-1",children:i})]})]})},n.placeId||`${n.mainText}-${r}`)})})]})},Pr=i(({as:t,className:n="",...r},o)=>{const i=De(n);if(t){return e(t,{ref:o,className:i,...r})}return e("img",{ref:o,className:i,...r})});Pr.displayName="Image";const Rr=n=>{const{color:r="#fff",size:o="medium"}=n;return t("div",{role:"status",className:"relative flex flex-row items-center",children:[t("svg",{"aria-hidden":"true",className:De("mr-2 h-5 w-5 animate-spin text-transparent",{small:"w-4 h-4",medium:"w-6 h-6",large:"w-8 h-8",xlarge:"w-12 h-12"}[o],n.className),style:{animation:"spin 0.75s linear infinite"},viewBox:"0 0 100 100",fill:r,children:[e("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),e("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]}),e("span",{className:"sr-only",children:"Loading..."})]})};Rr.displayName="Spinner";const kr=n=>{const{showBlinkDot:r=!1,buttonStyle:o="primary",size:i="md",children:a,className:s,prefix:l,containerClassName:c,...u}=n,d=t(Ln,{...u,className:De("relative flex items-center gap-2 font-medium tracking-wide outline-offset-4 rounded-full",{sm:"h-6 text-xs pl-1 pr-2",md:"h-8 text-sm pl-1 pr-2",lg:"h-10 text-base pl-2 pr-3"}[i],{primary:"border-[0.727px] border-border text-text"}[o],s),children:[r?e("span",{className:`pointer-events-none absolute animate-blink ${{sm:"-left-4",md:"-left-6",lg:"-left-8"}[i]} top-1/2 ${{sm:"h-2 w-2",md:"h-3 w-3",lg:"h-4 w-4"}[i]} -translate-y-1/2 rounded-full bg-icon-brand`}):null,e("span",{className:De("relative inline-flex items-center justify-center rounded-full bg-icon-brand",{sm:"h-5 w-5",md:"h-6 w-6",lg:"h-8 w-8"}[i]),children:e(On,{name:"call",fill:1,size:{sm:20,md:20,lg:32}[i],className:"text-white"})}),e("span",{className:"font-normal tracking-wide",children:a})]});return null==l||!1===l||""===l?d:t("span",{className:De("flex items-center gap-2",c),children:["string"==typeof l||"number"==typeof l?e("span",{className:"text-sm font-normal text-text",children:l}):l,d]})};function Lr(e,t){a(()=>{if("undefined"==typeof document)return;const n=window.innerWidth-document.documentElement.clientWidth;return document.body.style.marginRight=e?`${n}px`:"unset",document.body.style.overflow=e?"hidden":t?"unset":document.body.style.overflow,()=>{document.body.style.overflow="unset"}},[e,t])}kr.displayName="CallButton";var Br,Gr={exports:{}},jr={},Mr={exports:{}},Dr={exports:{}},Vr={};var Fr,_r,Hr,Wr,Xr,zr,Zr,Yr,Ur,Jr,$r,Kr,Qr,qr,eo,to={};
17
+ var t,n,r;r=function(){var e,t,n,r=Object.prototype.toString,o="undefined"!=typeof setImmediate?function(e){return setImmediate(e)}:setTimeout;try{Object.defineProperty({},"x",{}),e=function(e,t,n,r){return Object.defineProperty(e,t,{value:n,writable:!0,configurable:!1!==r})}}catch(t){e=function(e,t,n){return e[t]=n,e}}function i(e,r){n.add(e,r),t||(t=o(n.drain))}function a(e){var t,n=typeof e;return null==e||"object"!=n&&"function"!=n||(t=e.then),"function"==typeof t&&t}function s(){for(var e=0;e<this.chain.length;e++)l(this,1===this.state?this.chain[e].success:this.chain[e].failure,this.chain[e]);this.chain.length=0}function l(e,t,n){var r,o;try{!1===t?n.reject(e.msg):(r=!0===t?e.msg:t.call(void 0,e.msg))===n.promise?n.reject(TypeError("Promise-chain cycle")):(o=a(r))?o.call(r,n.resolve,n.reject):n.resolve(r)}catch(e){n.reject(e)}}function c(e){var t,n=this;if(!n.triggered){n.triggered=!0,n.def&&(n=n.def);try{(t=a(e))?i(function(){var r=new p(n);try{t.call(e,function(){c.apply(r,arguments)},function(){u.apply(r,arguments)})}catch(e){u.call(r,e)}}):(n.msg=e,n.state=1,n.chain.length>0&&i(s,n))}catch(e){u.call(new p(n),e)}}}function u(e){var t=this;t.triggered||(t.triggered=!0,t.def&&(t=t.def),t.msg=e,t.state=2,t.chain.length>0&&i(s,t))}function d(e,t,n,r){for(var o=0;o<t.length;o++)(function(o){e.resolve(t[o]).then(function(e){n(o,e)},r)})(o)}function p(e){this.def=e,this.triggered=!1}function f(e){this.promise=e,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function h(e){if("function"!=typeof e)throw TypeError("Not a function");if(0!==this.__NPO__)throw TypeError("Not a promise");this.__NPO__=1;var t=new f(this);this.then=function(e,n){var r={success:"function"!=typeof e||e,failure:"function"==typeof n&&n};return r.promise=new this.constructor(function(e,t){if("function"!=typeof e||"function"!=typeof t)throw TypeError("Not a function");r.resolve=e,r.reject=t}),t.chain.push(r),0!==t.state&&i(s,t),r.promise},this.catch=function(e){return this.then(void 0,e)};try{e.call(void 0,function(e){c.call(t,e)},function(e){u.call(t,e)})}catch(e){u.call(t,e)}}n=function(){var e,n,r;function o(e,t){this.fn=e,this.self=t,this.next=void 0}return{add:function(t,i){r=new o(t,i),n?n.next=r:e=r,n=r,r=void 0},drain:function(){var r=e;for(e=n=t=void 0;r;)r.fn.call(r.self),r=r.next}}}();var m=e({},"constructor",h,!1);return h.prototype=m,e(m,"__NPO__",0,!1),e(h,"resolve",function(e){return e&&"object"==typeof e&&1===e.__NPO__?e:new this(function(t,n){if("function"!=typeof t||"function"!=typeof n)throw TypeError("Not a function");t(e)})}),e(h,"reject",function(e){return new this(function(t,n){if("function"!=typeof t||"function"!=typeof n)throw TypeError("Not a function");n(e)})}),e(h,"all",function(e){var t=this;return"[object Array]"!=r.call(e)?t.reject(TypeError("Not an array")):0===e.length?t.resolve([]):new t(function(n,r){if("function"!=typeof n||"function"!=typeof r)throw TypeError("Not a function");var o=e.length,i=Array(o),a=0;d(t,e,function(e,t){i[e]=t,++a===o&&n(i)},r)})}),e(h,"race",function(e){var t=this;return"[object Array]"!=r.call(e)?t.reject(TypeError("Not an array")):new t(function(n,r){if("function"!=typeof n||"function"!=typeof r)throw TypeError("Not a function");d(t,e,function(e,t){n(t)},r)})}),h},(n=er)[t="Promise"]=n[t]||r(),e.exports&&(e.exports=n[t])});const nr=new WeakMap;function rr(e,t,n){const r=nr.get(e.element)||{};t in r||(r[t]=[]),r[t].push(n),nr.set(e.element,r)}function or(e,t){return(nr.get(e.element)||{})[t]||[]}function ir(e,t,n){const r=nr.get(e.element)||{};if(!r[t])return!0;if(!n)return r[t]=[],nr.set(e.element,r),!0;const o=r[t].indexOf(n);return-1!==o&&r[t].splice(o,1),nr.set(e.element,r),r[t]&&0===r[t].length}function ar(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){return console.warn(e),{}}return e}function sr(e,t,n){if(!e.element.contentWindow||!e.element.contentWindow.postMessage)return;let r={method:t};void 0!==n&&(r.value=n);const o=parseFloat(navigator.userAgent.toLowerCase().replace(/^.*msie (\d+).*$/,"$1"));o>=8&&o<10&&(r=JSON.stringify(r)),e.element.contentWindow.postMessage(r,e.origin)}function lr(e,t){let n,r=[];if((t=ar(t)).event){if("error"===t.event){or(e,t.data.method).forEach(n=>{const r=new Error(t.data.message);r.name=t.data.name,n.reject(r),ir(e,t.data.method,n)})}r=or(e,`event:${t.event}`),n=t.data}else if(t.method){const o=function(e,t){const n=or(e,t);if(n.length<1)return!1;const r=n.shift();return ir(e,t,r),r}(e,t.method);o&&(r.push(o),n=t.value)}r.forEach(t=>{try{if("function"==typeof t)return void t.call(e,n);t.resolve(n)}catch(e){}})}const cr=["airplay","audio_tracks","audiotrack","autopause","autoplay","background","byline","cc","chapter_id","chapters","chromecast","color","colors","controls","disable_context_menu","dnt","end_time","fullscreen","height","id","initial_quality","interactive_params","keyboard","loop","maxheight","max_quality","maxwidth","min_quality","muted","play_button_position","playsinline","portrait","preload","progress_bar","quality","quality_selector","responsive","skipping_forward","speed","start_time","texttrack","thumbnail_id","title","transcript","transparent","unmute_button","url","vimeo_logo","volume","watch_full_video","width"];function ur(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return cr.reduce((t,n)=>{const r=e.getAttribute(`data-vimeo-${n}`);return(r||""===r)&&(t[n]=""===r?1:r),t},t)}function dr(e,t){let{html:n}=e;if(!t)throw new TypeError("An element must be provided");if(null!==t.getAttribute("data-vimeo-initialized"))return t.querySelector("iframe");const r=document.createElement("div");return r.innerHTML=n,t.appendChild(r.firstChild),t.setAttribute("data-vimeo-initialized","true"),t.querySelector("iframe")}function pr(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return new Promise((r,o)=>{if(!Yn(e))throw new TypeError(`“${e}” is not a vimeo.com url.`);const i=function(e){const t=(e||"").match(/^(?:https?:)?(?:\/\/)?([^/?]+)/),n=(t&&t[1]||"").replace("player.",""),r=[".videoji.hk",".vimeo.work",".videoji.cn"];for(const e of r)if(n.endsWith(e))return n;return"vimeo.com"}(e);let a=`https://${i}/api/oembed.json?url=${encodeURIComponent(e)}`;for(const e in t)t.hasOwnProperty(e)&&(a+=`&${e}=${encodeURIComponent(t[e])}`);const s="XDomainRequest"in window?new XDomainRequest:new XMLHttpRequest;s.open("GET",a,!0),s.onload=function(){if(404!==s.status)if(403!==s.status)try{const t=JSON.parse(s.responseText);if(403===t.domain_status_code)return dr(t,n),void o(new Error(`“${e}” is not embeddable.`));r(t)}catch(e){o(e)}else o(new Error(`“${e}” is not embeddable.`));else o(new Error(`“${e}” was not found.`))},s.onerror=function(){const e=s.status?` (${s.status})`:"";o(new Error(`There was an error fetching the embed code from Vimeo${e}.`))},s.send()})}const fr={role:"viewer",autoPlayMuted:!0,allowedDrift:.3,maxAllowedDrift:1,minCheckInterval:.1,maxRateAdjustment:.2,maxTimeToCatchUp:1};class hr extends EventTarget{logger;constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;super(),this.logger=r,this.init(t,e,{...fr,...n})}disconnect(){this.dispatchEvent(new Event("disconnect"))}async init(e,t,n){if(await this.waitForTOReadyState(e,"open"),"viewer"===n.role){await this.updatePlayer(e,t,n);const r=$n(e,"change",()=>this.updatePlayer(e,t,n)),o=this.maintainPlaybackPosition(e,t,n);this.addEventListener("disconnect",()=>{o.cancel(),r.cancel()})}else{await this.updateTimingObject(e,t);const n=$n(t,["seeked","play","pause","ratechange"],()=>this.updateTimingObject(e,t),"on","off");this.addEventListener("disconnect",()=>n.cancel())}}async updateTimingObject(e,t){const[n,r,o]=await Promise.all([t.getCurrentTime(),t.getPaused(),t.getPlaybackRate()]);e.update({position:n,velocity:r?0:o})}async updatePlayer(e,t,n){const{position:r,velocity:o}=e.query();"number"==typeof r&&t.setCurrentTime(r),"number"==typeof o&&(0===o?!1===await t.getPaused()&&t.pause():o>0&&(!0===await t.getPaused()&&(await t.play().catch(async e=>{"NotAllowedError"===e.name&&n.autoPlayMuted&&(await t.setMuted(!0),await t.play().catch(e=>console.error("Couldn't play the video from TimingSrcConnector. Error:",e)))}),this.updatePlayer(e,t,n)),await t.getPlaybackRate()!==o&&t.setPlaybackRate(o)))}maintainPlaybackPosition(e,t,n){const{allowedDrift:r,maxAllowedDrift:o,minCheckInterval:i,maxRateAdjustment:a,maxTimeToCatchUp:s}=n,l=1e3*Math.min(s,Math.max(i,o)),c=async()=>{if(0===e.query().velocity||!0===await t.getPaused())return;const n=e.query().position-await t.getCurrentTime(),i=Math.abs(n);if(this.log(`Drift: ${n}`),i>o)await this.adjustSpeed(t,0),t.setCurrentTime(e.query().position),this.log("Resync by currentTime");else if(i>r){const e=i/s,r=e<a?(a-e)/2:a;await this.adjustSpeed(t,r*Math.sign(n)),this.log("Resync by playbackRate")}},u=setInterval(()=>c(),l);return{cancel:()=>clearInterval(u)}}log(e){this.logger?.(`TimingSrcConnector: ${e}`)}speedAdjustment=0;adjustSpeed=async(e,t)=>{if(this.speedAdjustment===t)return;const n=await e.getPlaybackRate()-this.speedAdjustment+t;this.log(`New playbackRate: ${n}`),await e.setPlaybackRate(n),this.speedAdjustment=t};waitForTOReadyState(e,t){return new Promise(n=>{const r=()=>{e.readyState===t?n():e.addEventListener("readystatechange",r,{once:!0})};r()})}}const mr=new WeakMap,gr=new WeakMap;let br={};class vr{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(window.jQuery&&e instanceof jQuery&&(e.length>1&&window.console&&console.warn&&console.warn("A jQuery object with multiple elements was passed, using the first element."),e=e[0]),"undefined"!=typeof document&&"string"==typeof e&&(e=document.getElementById(e)),!function(e){return Boolean(e&&1===e.nodeType&&"nodeName"in e&&e.ownerDocument&&e.ownerDocument.defaultView)}(e))throw new TypeError("You must pass either a valid element or a valid id.");if("IFRAME"!==e.nodeName){const t=e.querySelector("iframe");t&&(e=t)}if("IFRAME"===e.nodeName&&!Yn(e.getAttribute("src")||""))throw new Error("The player element passed isn’t a Vimeo embed.");if(mr.has(e))return mr.get(e);this._window=e.ownerDocument.defaultView,this.element=e,this.origin="*";const n=new tr((n,r)=>{if(this._onMessage=e=>{if(!Yn(e.origin)||this.element.contentWindow!==e.source)return;"*"===this.origin&&(this.origin=e.origin);const t=ar(e.data);if(t&&"error"===t.event&&t.data&&"ready"===t.data.method){const e=new Error(t.data.message);return e.name=t.data.name,void r(e)}const o=t&&"ready"===t.event,i=t&&"ping"===t.method;if(o||i)return this.element.setAttribute("data-ready","true"),void n();lr(this,t)},this._window.addEventListener("message",this._onMessage),"IFRAME"!==this.element.nodeName){const n=ur(e,t);pr(Jn(n),n,e).then(t=>{const n=dr(t,e);return this.element=n,this._originalElement=e,function(e,t){const n=nr.get(e);nr.set(t,n),nr.delete(e)}(e,n),mr.set(this.element,this),t}).catch(r)}});if(gr.set(this,n),mr.set(this.element,this),"IFRAME"===this.element.nodeName&&sr(this,"ping"),br.isEnabled){const e=()=>br.exit();this.fullscreenchangeHandler=()=>{br.isFullscreen?rr(this,"event:exitFullscreen",e):ir(this,"event:exitFullscreen",e),this.ready().then(()=>{sr(this,"fullscreenchange",br.isFullscreen)})},br.on("fullscreenchange",this.fullscreenchangeHandler)}return this}static isVimeoUrl(e){return Yn(e)}callMethod(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(null==e)throw new TypeError("You must pass a method name.");return new tr((t,r)=>this.ready().then(()=>{rr(this,e,{resolve:t,reject:r}),0===n.length?n={}:1===n.length&&(n=n[0]),sr(this,e,n)}).catch(r))}get(e){return new tr((t,n)=>(e=Zn(e,"get"),this.ready().then(()=>{rr(this,e,{resolve:t,reject:n}),sr(this,e)}).catch(n)))}set(e,t){return new tr((n,r)=>{if(e=Zn(e,"set"),null==t)throw new TypeError("There must be a value to set.");return this.ready().then(()=>{rr(this,e,{resolve:n,reject:r}),sr(this,e,t)}).catch(r)})}on(e,t){if(!e)throw new TypeError("You must pass an event name.");if(!t)throw new TypeError("You must pass a callback function.");if("function"!=typeof t)throw new TypeError("The callback must be a function.");0===or(this,`event:${e}`).length&&this.callMethod("addEventListener",e).catch(()=>{}),rr(this,`event:${e}`,t)}off(e,t){if(!e)throw new TypeError("You must pass an event name.");if(t&&"function"!=typeof t)throw new TypeError("The callback must be a function.");ir(this,`event:${e}`,t)&&this.callMethod("removeEventListener",e).catch(e=>{})}loadVideo(e){return this.callMethod("loadVideo",e)}ready(){const e=gr.get(this)||new tr((e,t)=>{t(new Error("Unknown player. Probably unloaded."))});return tr.resolve(e)}addCuePoint(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.callMethod("addCuePoint",{time:e,data:t})}removeCuePoint(e){return this.callMethod("removeCuePoint",e)}enableTextTrack(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!e)throw new TypeError("You must pass a language.");return this.callMethod("enableTextTrack",{language:e,kind:t,showing:n})}disableTextTrack(){return this.callMethod("disableTextTrack")}selectAudioTrack(e,t){if(!e)throw new TypeError("You must pass a language.");return this.callMethod("selectAudioTrack",{language:e,kind:t})}selectDefaultAudioTrack(){return this.callMethod("selectDefaultAudioTrack")}pause(){return this.callMethod("pause")}play(){return this.callMethod("play")}requestFullscreen(){return br.isEnabled?br.request(this.element):this.callMethod("requestFullscreen")}exitFullscreen(){return br.isEnabled?br.exit():this.callMethod("exitFullscreen")}getFullscreen(){return br.isEnabled?tr.resolve(br.isFullscreen):this.get("fullscreen")}requestPictureInPicture(){return this.callMethod("requestPictureInPicture")}exitPictureInPicture(){return this.callMethod("exitPictureInPicture")}getPictureInPicture(){return this.get("pictureInPicture")}remotePlaybackPrompt(){return this.callMethod("remotePlaybackPrompt")}unload(){return this.callMethod("unload")}destroy(){return new tr(e=>{if(gr.delete(this),mr.delete(this.element),this._originalElement&&(mr.delete(this._originalElement),this._originalElement.removeAttribute("data-vimeo-initialized")),this.element&&"IFRAME"===this.element.nodeName&&this.element.parentNode&&(this.element.parentNode.parentNode&&this._originalElement&&this._originalElement!==this.element.parentNode?this.element.parentNode.parentNode.removeChild(this.element.parentNode):this.element.parentNode.removeChild(this.element)),this.element&&"DIV"===this.element.nodeName&&this.element.parentNode){this.element.removeAttribute("data-vimeo-initialized");const e=this.element.querySelector("iframe");e&&e.parentNode&&(e.parentNode.parentNode&&this._originalElement&&this._originalElement!==e.parentNode?e.parentNode.parentNode.removeChild(e.parentNode):e.parentNode.removeChild(e))}this._window.removeEventListener("message",this._onMessage),br.isEnabled&&br.off("fullscreenchange",this.fullscreenchangeHandler),e()})}getAutopause(){return this.get("autopause")}setAutopause(e){return this.set("autopause",e)}getBuffered(){return this.get("buffered")}getCameraProps(){return this.get("cameraProps")}setCameraProps(e){return this.set("cameraProps",e)}getChapters(){return this.get("chapters")}getCurrentChapter(){return this.get("currentChapter")}getColor(){return this.get("color")}getColors(){return tr.all([this.get("colorOne"),this.get("colorTwo"),this.get("colorThree"),this.get("colorFour")])}setColor(e){return this.set("color",e)}setColors(e){if(!Array.isArray(e))return new tr((e,t)=>t(new TypeError("Argument must be an array.")));const t=new tr(e=>e(null)),n=[e[0]?this.set("colorOne",e[0]):t,e[1]?this.set("colorTwo",e[1]):t,e[2]?this.set("colorThree",e[2]):t,e[3]?this.set("colorFour",e[3]):t];return tr.all(n)}getCuePoints(){return this.get("cuePoints")}getCurrentTime(){return this.get("currentTime")}setCurrentTime(e){return this.set("currentTime",e)}getDuration(){return this.get("duration")}getEnded(){return this.get("ended")}getLoop(){return this.get("loop")}setLoop(e){return this.set("loop",e)}setMuted(e){return this.set("muted",e)}getMuted(){return this.get("muted")}getPaused(){return this.get("paused")}getPlaybackRate(){return this.get("playbackRate")}setPlaybackRate(e){return this.set("playbackRate",e)}getPlayed(){return this.get("played")}getQualities(){return this.get("qualities")}getQuality(){return this.get("quality")}setQuality(e){return this.set("quality",e)}getRemotePlaybackAvailability(){return this.get("remotePlaybackAvailability")}getRemotePlaybackState(){return this.get("remotePlaybackState")}getSeekable(){return this.get("seekable")}getSeeking(){return this.get("seeking")}getTextTracks(){return this.get("textTracks")}getAudioTracks(){return this.get("audioTracks")}getEnabledAudioTrack(){return this.get("enabledAudioTrack")}getDefaultAudioTrack(){return this.get("defaultAudioTrack")}getVideoEmbedCode(){return this.get("videoEmbedCode")}getVideoId(){return this.get("videoId")}getVideoTitle(){return this.get("videoTitle")}getVideoWidth(){return this.get("videoWidth")}getVideoHeight(){return this.get("videoHeight")}getVideoUrl(){return this.get("videoUrl")}getVolume(){return this.get("volume")}setVolume(e){return this.set("volume",e)}async setTimingSrc(e,t){if(!e)throw new TypeError("A Timing Object must be provided.");await this.ready();const n=new hr(this,e,t);return sr(this,"notifyTimingObjectConnect"),n.addEventListener("disconnect",()=>sr(this,"notifyTimingObjectDisconnect")),n}}zn||(br=function(){const e=function(){let e;const t=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]];let n=0;const r=t.length,o={};for(;n<r;n++)if(e=t[n],e&&e[1]in document){for(n=0;n<e.length;n++)o[t[0][n]]=e[n];return o}return!1}(),t={fullscreenchange:e.fullscreenchange,fullscreenerror:e.fullscreenerror},n={request:t=>new Promise((r,o)=>{const i=function(){n.off("fullscreenchange",i),r()};n.on("fullscreenchange",i);const a=(t=t||document.documentElement)[e.requestFullscreen]();a instanceof Promise&&a.then(i).catch(o)}),exit:()=>new Promise((t,r)=>{if(!n.isFullscreen)return void t();const o=function(){n.off("fullscreenchange",o),t()};n.on("fullscreenchange",o);const i=document[e.exitFullscreen]();i instanceof Promise&&i.then(o).catch(r)}),on(e,n){const r=t[e];r&&document.addEventListener(r,n)},off(e,n){const r=t[e];r&&document.removeEventListener(r,n)}};return Object.defineProperties(n,{isFullscreen:{get:()=>Boolean(document[e.fullscreenElement])},element:{enumerable:!0,get:()=>document[e.fullscreenElement]},isEnabled:{enumerable:!0,get:()=>Boolean(document[e.fullscreenEnabled])}}),n}(),function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;const t=[].slice.call(e.querySelectorAll("[data-vimeo-id], [data-vimeo-url]")),n=e=>{"console"in window&&console.error&&console.error(`There was an error creating an embed: ${e}`)};t.forEach(e=>{try{if(null!==e.getAttribute("data-vimeo-defer"))return;const t=ur(e);pr(Jn(t),t,e).then(t=>dr(t,e)).catch(n)}catch(e){n(e)}})}(),function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;if(window.VimeoPlayerResizeEmbeds_)return;window.VimeoPlayerResizeEmbeds_=!0,window.addEventListener("message",t=>{if(!Yn(t.origin))return;if(!t.data||"spacechange"!==t.data.event)return;const n=t.source?Kn(t.source,e):null;n&&(n.parentElement.style.paddingBottom=`${t.data.data[0].bottom}px`)})}(),function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;if(window.VimeoSeoMetadataAppended)return;window.VimeoSeoMetadataAppended=!0,window.addEventListener("message",t=>{if(!Yn(t.origin))return;const n=ar(t.data);if(!n||"ready"!==n.event)return;const r=t.source?Kn(t.source,e):null;r&&Un(r.src)&&new vr(r).callMethod("appendVideoMetadata",window.location.href)})}(),function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;if(window.VimeoCheckedUrlTimeParam)return;window.VimeoCheckedUrlTimeParam=!0;const t=e=>{"console"in window&&console.error&&console.error(`There was an error getting video Id: ${e}`)};window.addEventListener("message",n=>{if(!Yn(n.origin))return;const r=ar(n.data);if(!r||"ready"!==r.event)return;const o=n.source?Kn(n.source,e):null;if(o&&Un(o.src)){const e=new vr(o);e.getVideoId().then(t=>{const n=new RegExp(`[?&]vimeo_t_${t}=([^&#]*)`).exec(window.location.href);if(n&&n[1]){const t=decodeURI(n[1]);e.setCurrentTime(t)}}).catch(t)}})}(),function(){if(window.VimeoDRMEmbedsUpdated)return;window.VimeoDRMEmbedsUpdated=!0,window.addEventListener("message",e=>{if(!Yn(e.origin))return;const t=ar(e.data);if(!t||"drminitfailed"!==t.event)return;const n=e.source?Kn(e.source):null;if(!n)return;const r=n.getAttribute("allow")||"";if(!r.includes("encrypted-media")){n.setAttribute("allow",`${r}; encrypted-media`);const e=new URL(n.getAttribute("src"));return e.searchParams.set("forcereload","drm"),void n.setAttribute("src",e.toString())}})}());const yr=e=>{let t=e.split(/[?#]/)[0];for(;t.endsWith("/");)t=t.slice(0,-1);const n=t.split("/").filter(Boolean),r=n.findIndex(e=>"vimeo.com"===e||"player.vimeo.com"===e);if(-1===r)return"";const o=n.find((e,t)=>t>r&&/^\d{6,}$/.test(e));if(!o)return"";const i=n[n.length-1];return o===i?o:`${o}/${i}`},xr=t=>{const{link:n,title:r,containerClassName:o,autoplay:i=!1,debug:c=!1,onPlay:u,onPause:d,onTimeUpdate:p,onEnded:f,onFullscreenToggle:h}=t,m=s(null),{href:g,embedId:b}=l(()=>{if(!n)return{href:"",embedId:""};const e=n.toString();return{href:e,embedId:yr(e)}},[n]);if(c&&console.log("[VimeoEmbed] href:",g,"id:",b),a(()=>{if(!b||!m.current)return;const e=new vr(m.current),t=()=>null==u?void 0:u(),n=()=>null==d?void 0:d(),r=()=>null==f?void 0:f(),o=e=>null==p?void 0:p(e.seconds,e.duration),i=e=>null==h?void 0:h(e.fullscreen);return e.on("play",t),e.on("pause",n),e.on("ended",r),e.on("timeupdate",o),e.on("fullscreenchange",i),()=>{e.off("play",t),e.off("pause",n),e.off("ended",r),e.off("timeupdate",o),e.off("fullscreenchange",i),e.destroy().catch(()=>{})}},[b]),!b)return null;const v=new URLSearchParams({autoplay:i?"1":"0",muted:"0",playsinline:"1",dnt:"1",title:"0",byline:"0",portrait:"0",autopause:"1"}),y=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/${b}?${v.toString()}`);return e("div",{className:je("relative h-0 w-full overflow-hidden pb-[56.25%]",o),children:e("iframe",{ref:m,className:"absolute left-0 top-0 h-full w-full",src:y,allow:"autoplay; fullscreen; picture-in-picture",allowFullScreen:!0,referrerPolicy:"strict-origin-when-cross-origin",title:r||"Embedded vimeo"})})};let Ir=null;const wr=e=>{if(!e)return"";const t=e.toString().match(/^.*((youtu.be\/)|(v\/)|(\/u\/\w\/)|(embed\/)|(watch\?))\??v?=?([^#&?]*).*/);return t&&11===t[7].length?t[7]:""},Cr=t=>{const{link:n,title:r,containerClassName:o,autoplay:i=!1,onPlay:c,onPause:u,onTimeUpdate:d,onEnded:p,onFullscreenToggle:f}=t,h=l(()=>wr(n),[n]),m=s(null),g=s();if(jn(m,f),a(()=>{if(!h||!m.current)return;let e,t=!1;return function(){var e;return"undefined"==typeof window?Promise.reject(new Error("YouTube IFrame API requires a browser")):(null===(e=window.YT)||void 0===e?void 0:e.Player)?Promise.resolve(window.YT):Ir||(Ir=new Promise((e,t)=>{const n=window.onYouTubeIframeAPIReady;window.onYouTubeIframeAPIReady=()=>{null==n||n(),e(window.YT)};let r=document.querySelector('script[src*="youtube.com/iframe_api"]');r||(r=document.createElement("script"),r.src="https://www.youtube.com/iframe_api",r.onerror=()=>{Ir=null,t(new Error("Failed to load YouTube IFrame API"))},document.head.appendChild(r))}),Ir)}().then(n=>{!t&&m.current&&(e=new n.Player(m.current,{events:{onStateChange:t=>{const r=n.PlayerState;t.data===r.PLAYING?(null==c||c(),clearInterval(g.current),g.current=setInterval(()=>{var t,n,r,o;const i=null!==(n=null===(t=null==e?void 0:e.getDuration)||void 0===t?void 0:t.call(e))&&void 0!==n?n:0,a=null!==(o=null===(r=null==e?void 0:e.getCurrentTime)||void 0===r?void 0:r.call(e))&&void 0!==o?o:0;null==d||d(a,i)},1e3)):t.data===r.PAUSED?(null==u||u(),clearInterval(g.current)):t.data===r.ENDED&&(null==p||p(),clearInterval(g.current))}}}))}).catch(()=>{}),()=>{var n;t=!0,clearInterval(g.current);try{null===(n=null==e?void 0:e.destroy)||void 0===n||n.call(e)}catch(e){}}},[h]),!h)return null;const b=new URLSearchParams({enablejsapi:"1",autoplay:i?"1":"0",mute:i?"1":"0",playsinline:"1",rel:"0"}),v=`https://www.youtube.com/embed/${h}?${b.toString()}`;return e("div",{className:je("relative h-full w-full overflow-hidden pb-[56.25%]",o),children:e("iframe",{ref:m,className:"absolute left-0 top-0 h-full w-full",src:v,title:r||"Embedded youtube",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0,referrerPolicy:"strict-origin-when-cross-origin"})})},Er=(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})(w),Ar=({src:e,width:t,quality:n})=>{const r=e.startsWith("//")?`https:${e}`:e;let o;try{o=new URL(r)}catch(t){return e}return o.searchParams.set("w",String(t)),o.searchParams.set("q",String(n||90)),o.searchParams.set("fm","webp"),o.toString()},Sr=i(({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:Ar,unoptimized:!1}:{unoptimized:s};return e(Er,{ref:r,className:je(t),...n,...l})});Sr.displayName="NextImage";const Tr=[25,50,75];const Or=({videoLink:r,imageWidth:o=660,imageHeight:i=660,useOriginalImageAspectRatio:a=!1,isAboveTheFold:l=!1,onVideoEvent:u})=>{var d;const[p,f]=c(""),[h,m]=c(!1),g=function(e){const t=s(new Set),n=s(!1),r=s(0),o=s(0),i=(t,n,i)=>{e&&e(n,{videoId:t.videoId,videoTitle:t.videoTitle,provider:t.provider,position:r.current,duration:o.current,percentComplete:o.current>0?Math.min(100,Math.round(r.current/o.current*100)):0,...i})};return{handlePlay:e=>i(e,"played"),handlePause:e=>i(e,"paused"),handleFullscreenToggle:(e,t)=>i(e,"fullscreen_toggled",{isFullscreen:t}),handleClosed:e=>i(e,"closed"),handleTimeUpdate:(e,a,s)=>{const l=Number.isFinite(a)?a:0,c=Number.isFinite(s)?s:0;if(r.current=l,o.current=c,c<=0)return;const u=Math.min(100,l/c*100);Tr.forEach(n=>{u>=n&&!t.current.has(n)&&(t.current.add(n),i(e,"progress"))}),u>=99.5&&!n.current&&(n.current=!0,i(e,"completed"))},handleEnded:e=>{n.current||(n.current=!0,o.current>0&&(r.current=o.current),i(e,"completed"))},reset:()=>{t.current=new Set,n.current=!1,r.current=0,o.current=0}}}(u),b=null==r?void 0:r.videoSourceType,v="contentful"===b?null==r?void 0:r.videoAssetUrl:null==r?void 0:r.link,y="string"==typeof v?v:"",x=null==r?void 0:r.image;if(!y)return x?e("div",{className:je(a?"overflow-hidden rounded-image":"relative mx-auto aspect-[16/9] w-full overflow-hidden rounded-image lg:h-[486px] xl:aspect-square xl:max-h-[486px] xl:w-[486px]"),children:e(Sr,{src:x,alt:"section-image",priority:l,fill:!a,width:a?o||660:void 0,height:a?i||660:void 0,sizes:"(max-width: 430px) 100vw, (max-width: 834px) 100vw, 50vw",className:je(a?"w-full":"object-cover")})}):null;const I=null!==(d=null==r?void 0:r.videoPopup)&&void 0!==d&&d,w=Boolean(p&&p===y),C="contentful"===b?"contentful":y.includes("vimeo")?"vimeo":"youtube",E="contentful"===C?(e=>{var t;if("string"!=typeof e||!e)return"";const[n]=e.split(/[?#]/);return null!==(t=n.split("/").filter(Boolean).pop())&&void 0!==t?t:e})(null==r?void 0:r.videoAssetUrl):"vimeo"===C?(A=y)?yr(A.toString()):"":wr(y);var A;const S={videoId:E,videoTitle:null==r?void 0:r.title,provider:C},T=()=>{w||(g.reset(),f(y))},O=e=>{e.stopPropagation(),g.handleClosed(S),f("")},N="string"==typeof(null==r?void 0:r.title)?r.title.trim():"",P=N?`${N} video preview`:"Video preview",R=N?`Play video: ${N}`:"Play video",k=(()=>{const t={onPlay:()=>g.handlePlay(S),onPause:()=>g.handlePause(S),onTimeUpdate:(e,t)=>g.handleTimeUpdate(S,e,t),onEnded:()=>g.handleEnded(S),onFullscreenToggle:e=>g.handleFullscreenToggle(S,e)},n=w?"playing":"idle";return"contentful"===b?e(Vn,{videoAssetUrl:null==r?void 0:r.videoAssetUrl,videoAssetType:null==r?void 0:r.videoAssetType,image:x,title:null==r?void 0:r.title,description:null==r?void 0:r.description,autoplay:w,...t},n):y.includes("vimeo")?e(xr,{link:y,title:null==r?void 0:r.title,autoplay:w,...t},n):e(Cr,{link:y,title:null==r?void 0:r.title,autoplay:w,...t},n)})();return t(n,{children:[t("div",{className:je("video-section relative mx-auto w-full cursor-pointer rounded-image transition-all duration-300 lg:w-[486px]","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-border-focus",!w&&"hover:ring-2 hover:ring-border-focus"),onClick:T,onKeyDown:e=>{w||"Enter"!==e.key&&" "!==e.key&&"Spacebar"!==e.key||(e.preventDefault(),T())},onMouseEnter:()=>m(!0),onMouseLeave:()=>m(!1),role:w?void 0:"button",tabIndex:w?void 0:0,"aria-label":w?void 0:R,children:[t("div",{className:je(w&&!I&&"hidden",w&&!I?"opacity-0":"opacity-100","relative w-full transition-opacity duration-300"),children:[x&&e(Sr,{src:x,alt:P,width:o||660,height:i||660,sizes:"(max-width: 430px) 100vw, (max-width: 834px) 100vw, 50vw",className:"h-auto w-full rounded-image"}),e("div",{"aria-hidden":"true",className:"pointer-events-none absolute inset-0 flex items-center justify-center",children:e(Fn,{isHovered:h})})]}),!I&&e("div",{className:je("aspect-[16/9] w-full overflow-hidden rounded-image transition-opacity duration-300",w?"opacity-100":"hidden",!a&&"xl:aspect-square xl:max-h-[486px] xl:w-[486px]"),children:k})]}),I&&e("div",{className:je("z-[100] transition-all duration-300",w?"fixed inset-0 flex items-center justify-center p-4":"hidden"),onClick:O,children:t("div",{"data-testid":"video-popup-content",className:"relative aspect-video w-[min(100%,calc(80vh*16/9))] max-w-[1280px] overflow-hidden rounded-2xl bg-black shadow-2xl md:rounded-3xl",onClick:e=>e.stopPropagation(),children:[e("button",{type:"button",onClick:O,"aria-label":"Close video","data-testid":"video-popup-close",className:"absolute right-3 top-3 z-10 flex h-9 w-9 items-center justify-center rounded-full bg-black/60 text-white transition-colors hover:bg-black/80 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-white sm:right-4 sm:top-4 sm:h-10 sm:w-10",children:e(kn,{name:"close",className:"text-white"})}),k]})})]})},Nr=e=>Array.isArray(null==e?void 0:e.content)&&e.content.every(e=>"text"===(null==e?void 0:e.nodeType)&&(!e.value||""===e.value.trim())),Pr=(e,t)=>{var n,r,o,i,a,s,l,c;const u=null===(n=null==e?void 0:e.data)||void 0===n?void 0:n.target;if((null==u?void 0:u.fields)||(null===(r=null==u?void 0:u.sys)||void 0===r?void 0:r.contentType))return u;const d=null===(o=null==u?void 0:u.sys)||void 0===o?void 0:o.id;if(!d)return null;return null!==(c=[...null!==(a=null===(i=null==t?void 0:t.entries)||void 0===i?void 0:i.block)&&void 0!==a?a:[],...null!==(l=null===(s=null==t?void 0:t.entries)||void 0===s?void 0:s.inline)&&void 0!==l?l:[]].find(e=>{var t;return(null===(t=null==e?void 0:e.sys)||void 0===t?void 0:t.id)===d}))&&void 0!==c?c:null},Rr=e=>{var t,n,r,o,i;return null!==(i=null!==(o=null===(r=null===(n=null===(t=null==e?void 0:e.sys)||void 0===t?void 0:t.contentType)||void 0===n?void 0:n.sys)||void 0===r?void 0:r.id)&&void 0!==o?o:null==e?void 0:e.__typename)&&void 0!==i?i:""},kr=e=>{var t,n;return null!==(n=null!==(t=null==e?void 0:e.fields)&&void 0!==t?t:e)&&void 0!==n?n:{}},Lr=e=>{var t,n,r,o,i,a,s,l,c,u,d,p,f,h,m,g,b,v,y,x,I,w,C;return{image:null!==(a=null!==(o=null===(r=null===(n=null===(t=null==e?void 0:e.image)||void 0===t?void 0:t.fields)||void 0===n?void 0:n.file)||void 0===r?void 0:r.url)&&void 0!==o?o:null===(i=null==e?void 0:e.image)||void 0===i?void 0:i.url)&&void 0!==a?a:null==e?void 0:e.image,link:"string"==typeof(null==e?void 0:e.link)?e.link:null!==(c=null===(l=null===(s=null==e?void 0:e.link)||void 0===s?void 0:s.fields)||void 0===l?void 0:l.href)&&void 0!==c?c:null===(u=null==e?void 0:e.link)||void 0===u?void 0:u.href,videoPopup:Boolean(null==e?void 0:e.videoPopup),videoSourceType:null==e?void 0:e.videoSourceType,videoAssetUrl:null!==(g=null!==(h=null===(f=null===(p=null===(d=null==e?void 0:e.videoAssetUrl)||void 0===d?void 0:d.fields)||void 0===p?void 0:p.file)||void 0===f?void 0:f.url)&&void 0!==h?h:null===(m=null==e?void 0:e.videoAssetUrl)||void 0===m?void 0:m.url)&&void 0!==g?g:null==e?void 0:e.videoAssetUrl,videoAssetType:null!==(w=null!==(x=null===(y=null===(v=null===(b=null==e?void 0:e.videoAssetUrl)||void 0===b?void 0:b.fields)||void 0===v?void 0:v.file)||void 0===y?void 0:y.contentType)&&void 0!==x?x:null===(I=null==e?void 0:e.videoAssetUrl)||void 0===I?void 0:I.contentType)&&void 0!==w?w:null==e?void 0:e.videoAssetType,title:null!==(C=null==e?void 0:e.title)&&void 0!==C?C:null==e?void 0:e.entryTitle,description:null==e?void 0:e.description}},Br=e=>{if(!e)return"";try{const t=/^https?:\/\//i.test(e)?e:`https://${e}`;return new URL(t).hostname.toLowerCase()}catch(e){return""}},Dr=e=>{const t=e.toLowerCase().replace(/\.$/,""),n=t.split(".").slice(-2).join("."),r=(t.slice(0,t.length-n.length).replace(/\.$/,"").split(".")[0]||"").replace(/-(dev|development|staging|stage|qa|test|uat|prod|production)$/,"");return`${n}|${""===r||"www"===r||"kinetic"===r?"main":r}`},Gr=e=>{if(!/^https?:\/\//i.test(e))return!1;try{const t=new URL(e).hostname.toLowerCase(),n=Br(process.env.NEXT_PUBLIC_SITE_URL)||Br(process.env.NEXT_PUBLIC_MAIN_SITE_URL)||("undefined"!=typeof window?window.location.hostname.toLowerCase():"");return!n||Dr(t)!==Dr(n)}catch(e){return!1}},Mr=n=>({renderText:t=>t.includes("[")&&t.includes("]")?(t=>{const n=/\[([a-zA-Z0-9_-]+)\]/g,r=[];let o,i=0;for(;null!==(o=n.exec(t));)o.index>i&&r.push(t.substring(i,o.index)),r.push(e(kn,{name:o[1],size:20,className:"inline-block align-middle"},`icon-${o.index}-${o[1]}`)),i=o.index+o[0].length;return i<t.length&&r.push(t.substring(i)),r.length>0?r:[t]})(t):t,renderMark:{[Vt.BOLD]:t=>e("strong",{className:"font-black",children:t}),[Vt.ITALIC]:t=>e("em",{children:t}),[Vt.UNDERLINE]:t=>e("u",{children:t}),[Vt.CODE]:t=>e("code",{children:t})},renderNode:{[Mt.PARAGRAPH]:(t,n)=>e("div",{className:"body3 mb-4 whitespace-pre-line",children:Nr(t)?"\n":n}),[Mt.HEADING_1]:(t,n)=>e(Ln,{as:"h1",className:"heading2 md:heading1",children:n}),[Mt.HEADING_2]:(t,n)=>e(Ln,{as:"h2",className:"heading3 md:heading2",children:n}),[Mt.HEADING_3]:(t,n)=>e(Ln,{as:"h3",className:"heading4 md:heading3",children:n}),[Mt.HEADING_4]:(t,n)=>e(Ln,{as:"h4",className:"heading5 md:heading4",children:n}),[Mt.HEADING_5]:(t,n)=>e(Ln,{as:"h5",className:"heading6 md:heading5",children:n}),[Mt.HEADING_6]:(t,n)=>e(Ln,{as:"h6",className:"heading6",children:n}),[Mt.QUOTE]:(t,n)=>e("blockquote",{children:n}),[Mt.UL_LIST]:(t,n)=>e("ul",{className:"list-disc pl-6",children:n}),[Mt.OL_LIST]:(t,n)=>e("ol",{className:"list-decimal pl-6",children:n}),[Mt.LIST_ITEM]:(t,n)=>e("li",{children:n}),[jt.HYPERLINK]:(t,n)=>{var r;const o=null===(r=null==t?void 0:t.data)||void 0===r?void 0:r.uri,i=Gr(o);return e("a",{href:o,target:i?"_blank":void 0,rel:i?"noopener":void 0,children:n})},[Mt.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("img",{src:l,alt:s,style:{maxWidth:"100%"}})},[Mt.EMBEDDED_ENTRY]:r=>{const o=Pr(r,n);if(!o)return null;const i=Rr(o),a=kr(o);switch(i){case"callout":return t("aside",{style:{border:"1px solid #ddd",padding:12,borderRadius:8},children:[e("strong",{children:a.title}),e("div",{children:a.body})]});case"componentVideoLink":case"ComponentVideoLink":return e(Or,{videoLink:Lr(a)});default:return null}},[jt.EMBEDDED_ENTRY]:r=>{var o;const i=Pr(r,n);if(!i)return null;const a=Rr(i),s=kr(i);switch(a){case"componentCheckList":return t("span",{style:{display:"inline-flex",alignItems:"center",gap:"4px",padding:"2px 6px",backgroundColor:"#f0fdf4",border:"1px solid #bbf7d0",borderRadius:"4px",fontSize:"0.9em"},children:["✅ ",s.title]});case"componentVideoLink":case"ComponentVideoLink":return e(Or,{videoLink:Lr(s)});default:return e("span",{children:null!==(o=null==s?void 0:s.title)&&void 0!==o?o:""})}}}});function jr(t,n,r="body1",o="body1 font-bold",i,a,s="body2"){if(!t||!Array.isArray(t.content))return null;const l=new WeakSet,c=(e,t=!1)=>{var n;const r=t||(null==e?void 0:e.nodeType)===Mt.LIST_ITEM;r&&(null==e?void 0:e.nodeType)===jt.HYPERLINK&&l.add(e),null===(n=null==e?void 0:e.content)||void 0===n||n.forEach(e=>c(e,r))};c(t);const u=Mr(a),d={...u,...i,renderNode:{...u.renderNode,[Mt.PARAGRAPH]:(t,n)=>e("div",{className:[r,"whitespace-pre-line"].filter(Boolean).join(" "),children:Nr(t)?"\n":n}),[jt.HYPERLINK]:(t,r)=>{var i;const a=null===(i=null==t?void 0:t.data)||void 0===i?void 0:i.uri,c=Gr(a),u=null!=n?n:c;return e(Mn,{href:a,target:u?"_blank":void 0,rel:u?"noopener":void 0,variant:"default",className:l.has(t)?s:o,children:r})}}};return Gt.documentToReactComponents(t,d)}const Vr=i(({children:t,className:n="",style:r,disabled:o,...i},a)=>e("button",{ref:a,className:je(n),style:r,disabled:o,...i,children:t}));Vr.displayName="Button";const Fr=(n,r)=>{const{className:o,size:i,required:a,placeholder:s,label:l,state:d,errorText:p,prefixIconName:f,prefixIconFill:h=!0,suffixIconFill:m=!1,prefixIconSize:g=24,suffixIconName:b,suffixIconSize:v=24,containerClassName:y,prefixIconClassName:x,loading:I,hasError:w,type:C,...E}=n,A=w?"error":d,[S,T]=c(!1),[O,N]=c(!1),[P,R]=c(C||"text"),k=u(e=>{e.stopPropagation(),R(e=>"password"===e?"text":"password")},[]);return t("div",{className:"relative",children:[l?e("label",{htmlFor:l,className:je("inline-block pb-1"),children:t(Ln,{as:"span",className:"footnote text-text",children:[l,a?e("span",{className:"pl-1 text-text-critical",children:"*"}):null]})}):null,t("div",{className:je("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"],y,(S||"hover"===A)&&!O&&"error"!==A&&"border-input-border-hover",(O||"focus"===A||"active"===A)&&"border-input-border-selected outline outline-1 outline-input-border-selected","error"===A&&"border-input-border-critical outline outline-1 outline-input-border-critical"),children:[f?e("div",{className:"mr-1",style:{width:g,height:g,overflow:"hidden"},children:e(kn,{name:f,fill:h?1:0,size:g,className:je(x)})}):null,e("input",{ref:r,id:l,disabled:I||E.disabled,className:je("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:P,...E,onMouseOver:()=>T(!0),onMouseOut:()=>T(!1),onFocus:e=>{var t;null===(t=E.onFocus)||void 0===t||t.call(E,e),N(!0)},onBlur:e=>{var t;null===(t=E.onBlur)||void 0===t||t.call(E,e),N(!1)}}),b?e("div",{className:"ml-2",style:{width:v,height:v,overflow:"hidden"},onClick:k,children:e(kn,{name:"text"===P?"visibility":"visibility_off",size:v,fill:m?1:0})}):null]}),"error"===A&&p&&""!=p?t(Ln,{className:je("footnote left-0 top-full inline-flex items-center pt-1 text-text-critical"),children:[e(kn,{name:"info",size:20,className:"mr-1"}),p||"Error"]}):null]})},_r=i(Fr);_r.displayName="Input";const Hr=e=>{const{address:t,mainText:n,postalCode:r}=e;if(!t)return{primaryText:n,secondaryText:"",value:n};const o=[t.addressLine1,t.addressLine2].filter(Boolean).join(", "),i=[t.city,t.state,t.postalCode||r].filter(Boolean).join(", ");return{primaryText:o||n,secondaryText:i,value:[o,i].filter(Boolean).join(", ")||n}},Wr=({className:n,containerClassName:r,defaultValue:o="",errorText:i,fixedPositionedSuggestions:l=!1,focusOnLoad:p=!0,hasError:f,inputContainerClassName:h,isIframe:m=!1,isLoading:g=!1,isReady:b=!0,mapPinIcon:v=!0,minQueryLength:y=3,onChange:x,onFocus:I,onLoadProvider:w,onSelectAddress:C,onSuggestionsChange:E,optionsContainerClassName:A,prefixIconClassName:S="text-icon-brand",suggestions:T=[],value:O,...N})=>{const P=s(null),R=s(null),k=d(),[L,B]=c(null!=O?O:o),[D,G]=c(!1),M=je("inline-flex items-center justify-center leading-none",S);a(()=>{void 0!==O&&B(O)},[O]),a(()=>{var e;b&&p&&(null===(e=P.current)||void 0===e||e.focus())},[p,b]),a(()=>{b&&(null==w||w())},[b,w]),a(()=>{null==E||E(T)},[E,T]),((e,t)=>{const n=n=>{var r;(null===(r=null==e?void 0:e.current)||void 0===r?void 0:r.contains(n.target))||t()};a(()=>(document.addEventListener("click",n),()=>{document.removeEventListener("click",n)}))})(R,()=>G(!1));const j=u(e=>{if(!e.address)return;const t=Hr(e);B(t.value),G(!1),null==C||C({address:t.value,unit:e.address.addressLine2||"",addressToSend:e.address,placeId:e.placeId||""})},[C]),V=D&&L.length>=y&&!g&&T.length>0;return t("div",{ref:R,className:je("relative min-w-[300px] text-text",r),children:[e(_r,{...N,ref:P,size:"medium",value:L,className:je("mx-auto w-full bg-transparent pl-2 placeholder:text-input-text-placeholder","body2",n),containerClassName:je("pl-4",h),loading:!b,onChange:e=>{const t=e.target.value;B(t),G(t.length>=y),t||null==C||C(),null==x||x(t)},onFocus:e=>{G(!0),null==I||I(e)},autoComplete:"off",role:"combobox","aria-autocomplete":"list","aria-controls":k,"aria-expanded":V,"data-cy":"address-autocomplete-input","data-testid":"address-autocomplete-input",prefixIconName:v?"location_on":void 0,prefixIconFill:!0,prefixIconClassName:M,errorText:i,state:i||f?"error":N.state,hasError:f}),V&&e("ul",{id:k,role:"listbox","data-cy":"address-autocomplete-suggestions","data-testid":"address-autocomplete-suggestions",className:je("shadow-dark-drop absolute top-full z-20 m-0 mt-1 w-full list-none overflow-y-auto overscroll-contain rounded-lg border border-input-border bg-bg-surface p-0",m?"max-h-[117px]":"max-h-[220px]",l&&(m?"fixed z-50 max-h-[117px]":"fixed z-50 max-h-[220px]"),A),children:T.map((n,r)=>{const{primaryText:o,secondaryText:i}=Hr(n);return e("li",{role:"option","aria-selected":"false",children:t("button",{type:"button",className:"body2 flex w-full items-center px-4 py-4 text-left hover:bg-bg-surface-secondary",onClick:()=>j(n),children:[e(kn,{fill:1,name:"location_on",size:24,weight:"200",className:je("mr-4 min-w-[24px]",M)}),t("span",{children:[e("span",{children:o}),i&&e("span",{className:"ml-1",children:i})]})]})},n.placeId||`${n.mainText}-${r}`)})})]})},Xr=i(({as:t,className:n="",...r},o)=>{const i=je(n);if(t){return e(t,{ref:o,className:i,...r})}return e("img",{ref:o,className:i,...r})});Xr.displayName="Image";const zr=n=>{const{color:r="#fff",size:o="medium"}=n;return t("div",{role:"status",className:"relative flex flex-row items-center",children:[t("svg",{"aria-hidden":"true",className:je("mr-2 h-5 w-5 animate-spin text-transparent",{small:"w-4 h-4",medium:"w-6 h-6",large:"w-8 h-8",xlarge:"w-12 h-12"}[o],n.className),style:{animation:"spin 0.75s linear infinite"},viewBox:"0 0 100 100",fill:r,children:[e("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),e("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]}),e("span",{className:"sr-only",children:"Loading..."})]})};zr.displayName="Spinner";const Zr=n=>{const{showBlinkDot:r=!1,buttonStyle:o="primary",size:i="md",children:a,className:s,prefix:l,containerClassName:c,...u}=n,d=t(Mn,{...u,className:je("relative flex items-center gap-2 font-medium tracking-wide outline-offset-4 rounded-full",{sm:"h-6 text-xs pl-1 pr-2",md:"h-8 text-sm pl-1 pr-2",lg:"h-10 text-base pl-2 pr-3"}[i],{primary:"border-[0.727px] border-border text-text"}[o],s),children:[r?e("span",{className:`pointer-events-none absolute animate-blink ${{sm:"-left-4",md:"-left-6",lg:"-left-8"}[i]} top-1/2 ${{sm:"h-2 w-2",md:"h-3 w-3",lg:"h-4 w-4"}[i]} -translate-y-1/2 rounded-full bg-icon-brand`}):null,e("span",{className:je("relative inline-flex items-center justify-center rounded-full bg-icon-brand",{sm:"h-5 w-5",md:"h-6 w-6",lg:"h-8 w-8"}[i]),children:e(kn,{name:"call",fill:1,size:{sm:20,md:20,lg:32}[i],className:"text-white"})}),e("span",{className:"font-normal tracking-wide",children:a})]});return null==l||!1===l||""===l?d:t("span",{className:je("flex items-center gap-2",c),children:["string"==typeof l||"number"==typeof l?e("span",{className:"text-sm font-normal text-text",children:l}):l,d]})};function Yr(e,t){a(()=>{if("undefined"==typeof document)return;const n=window.innerWidth-document.documentElement.clientWidth;return document.body.style.marginRight=e?`${n}px`:"unset",document.body.style.overflow=e?"hidden":t?"unset":document.body.style.overflow,()=>{document.body.style.overflow="unset"}},[e,t])}Zr.displayName="CallButton";var Ur,Jr={exports:{}},$r={},Kr={exports:{}},Qr={exports:{}},qr={};var eo,to,no,ro,oo,io,ao,so,lo,co,uo,po,fo,ho,mo,go={};
18
18
  /** @license React v16.13.1
19
19
  * react-is.development.js
20
20
  *
@@ -22,12 +22,12 @@ var t,n,r;r=function(){var e,t,n,r=Object.prototype.toString,o="undefined"!=type
22
22
  *
23
23
  * This source code is licensed under the MIT license found in the
24
24
  * LICENSE file in the root directory of this source tree.
25
- */function no(){return _r||(_r=1,"production"===process.env.NODE_ENV?Dr.exports=function(){if(Br)return Vr;Br=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,f=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function y(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case t:switch(e=e.type){case l:case c:case r:case i:case o:case d:return e;default:switch(e=e&&e.$$typeof){case s:case u:case h:case f:case a:return e;default:return p}}case n:return p}}}function x(e){return y(e)===c}return Vr.AsyncMode=l,Vr.ConcurrentMode=c,Vr.ContextConsumer=s,Vr.ContextProvider=a,Vr.Element=t,Vr.ForwardRef=u,Vr.Fragment=r,Vr.Lazy=h,Vr.Memo=f,Vr.Portal=n,Vr.Profiler=i,Vr.StrictMode=o,Vr.Suspense=d,Vr.isAsyncMode=function(e){return x(e)||y(e)===l},Vr.isConcurrentMode=x,Vr.isContextConsumer=function(e){return y(e)===s},Vr.isContextProvider=function(e){return y(e)===a},Vr.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Vr.isForwardRef=function(e){return y(e)===u},Vr.isFragment=function(e){return y(e)===r},Vr.isLazy=function(e){return y(e)===h},Vr.isMemo=function(e){return y(e)===f},Vr.isPortal=function(e){return y(e)===n},Vr.isProfiler=function(e){return y(e)===i},Vr.isStrictMode=function(e){return y(e)===o},Vr.isSuspense=function(e){return y(e)===d},Vr.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===c||e===i||e===o||e===d||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===f||e.$$typeof===a||e.$$typeof===s||e.$$typeof===u||e.$$typeof===g||e.$$typeof===b||e.$$typeof===v||e.$$typeof===m)},Vr.typeOf=y,Vr}():Dr.exports=(Fr||(Fr=1,"production"!==process.env.NODE_ENV&&function(){var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,f=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function y(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case t:var m=e.type;switch(m){case l:case c:case r:case i:case o:case d:return m;default:var g=m&&m.$$typeof;switch(g){case s:case u:case h:case f:case a:return g;default:return p}}case n:return p}}}var x=l,I=c,w=s,C=a,E=t,A=u,S=r,T=h,O=f,N=n,P=i,R=o,k=d,L=!1;function B(e){return y(e)===c}to.AsyncMode=x,to.ConcurrentMode=I,to.ContextConsumer=w,to.ContextProvider=C,to.Element=E,to.ForwardRef=A,to.Fragment=S,to.Lazy=T,to.Memo=O,to.Portal=N,to.Profiler=P,to.StrictMode=R,to.Suspense=k,to.isAsyncMode=function(e){return L||(L=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),B(e)||y(e)===l},to.isConcurrentMode=B,to.isContextConsumer=function(e){return y(e)===s},to.isContextProvider=function(e){return y(e)===a},to.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},to.isForwardRef=function(e){return y(e)===u},to.isFragment=function(e){return y(e)===r},to.isLazy=function(e){return y(e)===h},to.isMemo=function(e){return y(e)===f},to.isPortal=function(e){return y(e)===n},to.isProfiler=function(e){return y(e)===i},to.isStrictMode=function(e){return y(e)===o},to.isSuspense=function(e){return y(e)===d},to.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===c||e===i||e===o||e===d||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===f||e.$$typeof===a||e.$$typeof===s||e.$$typeof===u||e.$$typeof===g||e.$$typeof===b||e.$$typeof===v||e.$$typeof===m)},to.typeOf=y}()),to)),Dr.exports}
25
+ */function bo(){return to||(to=1,"production"===process.env.NODE_ENV?Qr.exports=function(){if(Ur)return qr;Ur=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,f=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function y(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case t:switch(e=e.type){case l:case c:case r:case i:case o:case d:return e;default:switch(e=e&&e.$$typeof){case s:case u:case h:case f:case a:return e;default:return p}}case n:return p}}}function x(e){return y(e)===c}return qr.AsyncMode=l,qr.ConcurrentMode=c,qr.ContextConsumer=s,qr.ContextProvider=a,qr.Element=t,qr.ForwardRef=u,qr.Fragment=r,qr.Lazy=h,qr.Memo=f,qr.Portal=n,qr.Profiler=i,qr.StrictMode=o,qr.Suspense=d,qr.isAsyncMode=function(e){return x(e)||y(e)===l},qr.isConcurrentMode=x,qr.isContextConsumer=function(e){return y(e)===s},qr.isContextProvider=function(e){return y(e)===a},qr.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},qr.isForwardRef=function(e){return y(e)===u},qr.isFragment=function(e){return y(e)===r},qr.isLazy=function(e){return y(e)===h},qr.isMemo=function(e){return y(e)===f},qr.isPortal=function(e){return y(e)===n},qr.isProfiler=function(e){return y(e)===i},qr.isStrictMode=function(e){return y(e)===o},qr.isSuspense=function(e){return y(e)===d},qr.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===c||e===i||e===o||e===d||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===f||e.$$typeof===a||e.$$typeof===s||e.$$typeof===u||e.$$typeof===g||e.$$typeof===b||e.$$typeof===v||e.$$typeof===m)},qr.typeOf=y,qr}():Qr.exports=(eo||(eo=1,"production"!==process.env.NODE_ENV&&function(){var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,f=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function y(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case t:var m=e.type;switch(m){case l:case c:case r:case i:case o:case d:return m;default:var g=m&&m.$$typeof;switch(g){case s:case u:case h:case f:case a:return g;default:return p}}case n:return p}}}var x=l,I=c,w=s,C=a,E=t,A=u,S=r,T=h,O=f,N=n,P=i,R=o,k=d,L=!1;function B(e){return y(e)===c}go.AsyncMode=x,go.ConcurrentMode=I,go.ContextConsumer=w,go.ContextProvider=C,go.Element=E,go.ForwardRef=A,go.Fragment=S,go.Lazy=T,go.Memo=O,go.Portal=N,go.Profiler=P,go.StrictMode=R,go.Suspense=k,go.isAsyncMode=function(e){return L||(L=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),B(e)||y(e)===l},go.isConcurrentMode=B,go.isContextConsumer=function(e){return y(e)===s},go.isContextProvider=function(e){return y(e)===a},go.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},go.isForwardRef=function(e){return y(e)===u},go.isFragment=function(e){return y(e)===r},go.isLazy=function(e){return y(e)===h},go.isMemo=function(e){return y(e)===f},go.isPortal=function(e){return y(e)===n},go.isProfiler=function(e){return y(e)===i},go.isStrictMode=function(e){return y(e)===o},go.isSuspense=function(e){return y(e)===d},go.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===c||e===i||e===o||e===d||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===f||e.$$typeof===a||e.$$typeof===s||e.$$typeof===u||e.$$typeof===g||e.$$typeof===b||e.$$typeof===v||e.$$typeof===m)},go.typeOf=y}()),go)),Qr.exports}
26
26
  /*
27
27
  object-assign
28
28
  (c) Sindre Sorhus
29
29
  @license MIT
30
- */function ro(){if(Wr)return Hr;Wr=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;return Hr=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(r,o){for(var i,a,s=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(r),l=1;l<arguments.length;l++){for(var c in i=Object(arguments[l]))t.call(i,c)&&(s[c]=i[c]);if(e){a=e(i);for(var u=0;u<a.length;u++)n.call(i,a[u])&&(s[a[u]]=i[a[u]])}}return s},Hr}function oo(){if(zr)return Xr;zr=1;return Xr="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function io(){return Yr?Zr:(Yr=1,Zr=Function.call.bind(Object.prototype.hasOwnProperty))}function ao(){if(Jr)return Ur;Jr=1;var e=function(){};if("production"!==process.env.NODE_ENV){var t=oo(),n={},r=io();e=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}}function o(o,i,a,s,l){if("production"!==process.env.NODE_ENV)for(var c in o)if(r(o,c)){var u;try{if("function"!=typeof o[c]){var d=Error((s||"React class")+": "+a+" type `"+c+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[c]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw d.name="Invariant Violation",d}u=o[c](i,c,s,a,null,t)}catch(e){u=e}if(!u||u instanceof Error||e((s||"React class")+": type specification of "+a+" `"+c+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof u+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),u instanceof Error&&!(u.message in n)){n[u.message]=!0;var p=l?l():"";e("Failed "+a+" type: "+u.message+(null!=p?p:""))}}}return o.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(n={})},Ur=o}function so(){if(Kr)return $r;Kr=1;var e=no(),t=ro(),n=oo(),r=io(),o=ao(),i=function(){};function a(){return null}return"production"!==process.env.NODE_ENV&&(i=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}),$r=function(s,l){var c="function"==typeof Symbol&&Symbol.iterator;var u="<<anonymous>>",d={array:m("array"),bigint:m("bigint"),bool:m("boolean"),func:m("function"),number:m("number"),object:m("object"),string:m("string"),symbol:m("symbol"),any:h(a),arrayOf:function(e){return h(function(t,r,o,i,a){if("function"!=typeof e)return new f("Property `"+a+"` of component `"+o+"` has invalid PropType notation inside arrayOf.");var s=t[r];if(!Array.isArray(s))return new f("Invalid "+i+" `"+a+"` of type `"+v(s)+"` supplied to `"+o+"`, expected an array.");for(var l=0;l<s.length;l++){var c=e(s,l,o,i,a+"["+l+"]",n);if(c instanceof Error)return c}return null})},element:h(function(e,t,n,r,o){var i=e[t];return s(i)?null:new f("Invalid "+r+" `"+o+"` of type `"+v(i)+"` supplied to `"+n+"`, expected a single ReactElement.")}),elementType:h(function(t,n,r,o,i){var a=t[n];return e.isValidElementType(a)?null:new f("Invalid "+o+" `"+i+"` of type `"+v(a)+"` supplied to `"+r+"`, expected a single ReactElement type.")}),instanceOf:function(e){return h(function(t,n,r,o,i){if(!(t[n]instanceof e)){var a=e.name||u;return new f("Invalid "+o+" `"+i+"` of type `"+(((s=t[n]).constructor&&s.constructor.name?s.constructor.name:u)+"` supplied to `")+r+"`, expected instance of `"+a+"`.")}var s;return null})},node:h(function(e,t,n,r,o){return b(e[t])?null:new f("Invalid "+r+" `"+o+"` supplied to `"+n+"`, expected a ReactNode.")}),objectOf:function(e){return h(function(t,o,i,a,s){if("function"!=typeof e)return new f("Property `"+s+"` of component `"+i+"` has invalid PropType notation inside objectOf.");var l=t[o],c=v(l);if("object"!==c)return new f("Invalid "+a+" `"+s+"` of type `"+c+"` supplied to `"+i+"`, expected an object.");for(var u in l)if(r(l,u)){var d=e(l,u,i,a,s+"."+u,n);if(d instanceof Error)return d}return null})},oneOf:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&i(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),a;return h(function(t,n,r,o,i){for(var a=t[n],s=0;s<e.length;s++)if(p(a,e[s]))return null;var l=JSON.stringify(e,function(e,t){return"symbol"===y(t)?String(t):t});return new f("Invalid "+o+" `"+i+"` of value `"+String(a)+"` supplied to `"+r+"`, expected one of "+l+".")})},oneOfType:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&i("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var t=0;t<e.length;t++){var o=e[t];if("function"!=typeof o)return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+x(o)+" at index "+t+"."),a}return h(function(t,o,i,a,s){for(var l=[],c=0;c<e.length;c++){var u=(0,e[c])(t,o,i,a,s,n);if(null==u)return null;u.data&&r(u.data,"expectedType")&&l.push(u.data.expectedType)}return new f("Invalid "+a+" `"+s+"` supplied to `"+i+"`"+(l.length>0?", expected one of type ["+l.join(", ")+"]":"")+".")})},shape:function(e){return h(function(t,r,o,i,a){var s=t[r],l=v(s);if("object"!==l)return new f("Invalid "+i+" `"+a+"` of type `"+l+"` supplied to `"+o+"`, expected `object`.");for(var c in e){var u=e[c];if("function"!=typeof u)return g(o,i,a,c,y(u));var d=u(s,c,o,i,a+"."+c,n);if(d)return d}return null})},exact:function(e){return h(function(o,i,a,s,l){var c=o[i],u=v(c);if("object"!==u)return new f("Invalid "+s+" `"+l+"` of type `"+u+"` supplied to `"+a+"`, expected `object`.");var d=t({},o[i],e);for(var p in d){var h=e[p];if(r(e,p)&&"function"!=typeof h)return g(a,s,l,p,y(h));if(!h)return new f("Invalid "+s+" `"+l+"` key `"+p+"` supplied to `"+a+"`.\nBad object: "+JSON.stringify(o[i],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var m=h(c,p,a,s,l+"."+p,n);if(m)return m}return null})}};function p(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function f(e,t){this.message=e,this.data=t&&"object"==typeof t?t:{},this.stack=""}function h(e){if("production"!==process.env.NODE_ENV)var t={},r=0;function o(o,a,s,c,d,p,h){if(c=c||u,p=p||s,h!==n){if(l){var m=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw m.name="Invariant Violation",m}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var g=c+":"+s;!t[g]&&r<3&&(i("You are manually calling a React.PropTypes validation function for the `"+p+"` prop on `"+c+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),t[g]=!0,r++)}}return null==a[s]?o?null===a[s]?new f("The "+d+" `"+p+"` is marked as required in `"+c+"`, but its value is `null`."):new f("The "+d+" `"+p+"` is marked as required in `"+c+"`, but its value is `undefined`."):null:e(a,s,c,d,p)}var a=o.bind(null,!1);return a.isRequired=o.bind(null,!0),a}function m(e){return h(function(t,n,r,o,i,a){var s=t[n];return v(s)!==e?new f("Invalid "+o+" `"+i+"` of type `"+y(s)+"` supplied to `"+r+"`, expected `"+e+"`.",{expectedType:e}):null})}function g(e,t,n,r,o){return new f((e||"React class")+": "+t+" type `"+n+"."+r+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+o+"`.")}function b(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(b);if(null===e||s(e))return!0;var t=function(e){var t=e&&(c&&e[c]||e["@@iterator"]);if("function"==typeof t)return t}(e);if(!t)return!1;var n,r=t.call(e);if(t!==e.entries){for(;!(n=r.next()).done;)if(!b(n.value))return!1}else for(;!(n=r.next()).done;){var o=n.value;if(o&&!b(o[1]))return!1}return!0;default:return!1}}function v(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||!!t&&("Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol)}(t,e)?"symbol":t}function y(e){if(null==e)return""+e;var t=v(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function x(e){var t=y(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return f.prototype=Error.prototype,d.checkPropTypes=o,d.resetWarningCache=o.resetWarningCache,d.PropTypes=d,d},$r}function lo(){if(qr)return Qr;qr=1;var e=oo();function t(){}function n(){}return n.resetWarningCache=t,Qr=function(){function r(t,n,r,o,i,a){if(a!==e){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function o(){return r}r.isRequired=r;var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i}}function co(){if(eo)return Mr.exports;if(eo=1,"production"!==process.env.NODE_ENV){var e=no();Mr.exports=so()(e.isElement,true)}else Mr.exports=lo()();return Mr.exports}var uo,po,fo={exports:{}},ho={},mo={exports:{}};function go(){return uo||(uo=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){var n=[].slice.call(t.querySelectorAll("*"),0).reduce(function(t,n){return t.concat(n.shadowRoot?e(n.shadowRoot):[n])},[]);return n.filter(s)};
30
+ */function vo(){if(ro)return no;ro=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;return no=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(r,o){for(var i,a,s=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(r),l=1;l<arguments.length;l++){for(var c in i=Object(arguments[l]))t.call(i,c)&&(s[c]=i[c]);if(e){a=e(i);for(var u=0;u<a.length;u++)n.call(i,a[u])&&(s[a[u]]=i[a[u]])}}return s},no}function yo(){if(io)return oo;io=1;return oo="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function xo(){return so?ao:(so=1,ao=Function.call.bind(Object.prototype.hasOwnProperty))}function Io(){if(co)return lo;co=1;var e=function(){};if("production"!==process.env.NODE_ENV){var t=yo(),n={},r=xo();e=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}}function o(o,i,a,s,l){if("production"!==process.env.NODE_ENV)for(var c in o)if(r(o,c)){var u;try{if("function"!=typeof o[c]){var d=Error((s||"React class")+": "+a+" type `"+c+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[c]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw d.name="Invariant Violation",d}u=o[c](i,c,s,a,null,t)}catch(e){u=e}if(!u||u instanceof Error||e((s||"React class")+": type specification of "+a+" `"+c+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof u+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),u instanceof Error&&!(u.message in n)){n[u.message]=!0;var p=l?l():"";e("Failed "+a+" type: "+u.message+(null!=p?p:""))}}}return o.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(n={})},lo=o}function wo(){if(po)return uo;po=1;var e=bo(),t=vo(),n=yo(),r=xo(),o=Io(),i=function(){};function a(){return null}return"production"!==process.env.NODE_ENV&&(i=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}),uo=function(s,l){var c="function"==typeof Symbol&&Symbol.iterator;var u="<<anonymous>>",d={array:m("array"),bigint:m("bigint"),bool:m("boolean"),func:m("function"),number:m("number"),object:m("object"),string:m("string"),symbol:m("symbol"),any:h(a),arrayOf:function(e){return h(function(t,r,o,i,a){if("function"!=typeof e)return new f("Property `"+a+"` of component `"+o+"` has invalid PropType notation inside arrayOf.");var s=t[r];if(!Array.isArray(s))return new f("Invalid "+i+" `"+a+"` of type `"+v(s)+"` supplied to `"+o+"`, expected an array.");for(var l=0;l<s.length;l++){var c=e(s,l,o,i,a+"["+l+"]",n);if(c instanceof Error)return c}return null})},element:h(function(e,t,n,r,o){var i=e[t];return s(i)?null:new f("Invalid "+r+" `"+o+"` of type `"+v(i)+"` supplied to `"+n+"`, expected a single ReactElement.")}),elementType:h(function(t,n,r,o,i){var a=t[n];return e.isValidElementType(a)?null:new f("Invalid "+o+" `"+i+"` of type `"+v(a)+"` supplied to `"+r+"`, expected a single ReactElement type.")}),instanceOf:function(e){return h(function(t,n,r,o,i){if(!(t[n]instanceof e)){var a=e.name||u;return new f("Invalid "+o+" `"+i+"` of type `"+(((s=t[n]).constructor&&s.constructor.name?s.constructor.name:u)+"` supplied to `")+r+"`, expected instance of `"+a+"`.")}var s;return null})},node:h(function(e,t,n,r,o){return b(e[t])?null:new f("Invalid "+r+" `"+o+"` supplied to `"+n+"`, expected a ReactNode.")}),objectOf:function(e){return h(function(t,o,i,a,s){if("function"!=typeof e)return new f("Property `"+s+"` of component `"+i+"` has invalid PropType notation inside objectOf.");var l=t[o],c=v(l);if("object"!==c)return new f("Invalid "+a+" `"+s+"` of type `"+c+"` supplied to `"+i+"`, expected an object.");for(var u in l)if(r(l,u)){var d=e(l,u,i,a,s+"."+u,n);if(d instanceof Error)return d}return null})},oneOf:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&i(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),a;return h(function(t,n,r,o,i){for(var a=t[n],s=0;s<e.length;s++)if(p(a,e[s]))return null;var l=JSON.stringify(e,function(e,t){return"symbol"===y(t)?String(t):t});return new f("Invalid "+o+" `"+i+"` of value `"+String(a)+"` supplied to `"+r+"`, expected one of "+l+".")})},oneOfType:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&i("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var t=0;t<e.length;t++){var o=e[t];if("function"!=typeof o)return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+x(o)+" at index "+t+"."),a}return h(function(t,o,i,a,s){for(var l=[],c=0;c<e.length;c++){var u=(0,e[c])(t,o,i,a,s,n);if(null==u)return null;u.data&&r(u.data,"expectedType")&&l.push(u.data.expectedType)}return new f("Invalid "+a+" `"+s+"` supplied to `"+i+"`"+(l.length>0?", expected one of type ["+l.join(", ")+"]":"")+".")})},shape:function(e){return h(function(t,r,o,i,a){var s=t[r],l=v(s);if("object"!==l)return new f("Invalid "+i+" `"+a+"` of type `"+l+"` supplied to `"+o+"`, expected `object`.");for(var c in e){var u=e[c];if("function"!=typeof u)return g(o,i,a,c,y(u));var d=u(s,c,o,i,a+"."+c,n);if(d)return d}return null})},exact:function(e){return h(function(o,i,a,s,l){var c=o[i],u=v(c);if("object"!==u)return new f("Invalid "+s+" `"+l+"` of type `"+u+"` supplied to `"+a+"`, expected `object`.");var d=t({},o[i],e);for(var p in d){var h=e[p];if(r(e,p)&&"function"!=typeof h)return g(a,s,l,p,y(h));if(!h)return new f("Invalid "+s+" `"+l+"` key `"+p+"` supplied to `"+a+"`.\nBad object: "+JSON.stringify(o[i],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var m=h(c,p,a,s,l+"."+p,n);if(m)return m}return null})}};function p(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function f(e,t){this.message=e,this.data=t&&"object"==typeof t?t:{},this.stack=""}function h(e){if("production"!==process.env.NODE_ENV)var t={},r=0;function o(o,a,s,c,d,p,h){if(c=c||u,p=p||s,h!==n){if(l){var m=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw m.name="Invariant Violation",m}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var g=c+":"+s;!t[g]&&r<3&&(i("You are manually calling a React.PropTypes validation function for the `"+p+"` prop on `"+c+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),t[g]=!0,r++)}}return null==a[s]?o?null===a[s]?new f("The "+d+" `"+p+"` is marked as required in `"+c+"`, but its value is `null`."):new f("The "+d+" `"+p+"` is marked as required in `"+c+"`, but its value is `undefined`."):null:e(a,s,c,d,p)}var a=o.bind(null,!1);return a.isRequired=o.bind(null,!0),a}function m(e){return h(function(t,n,r,o,i,a){var s=t[n];return v(s)!==e?new f("Invalid "+o+" `"+i+"` of type `"+y(s)+"` supplied to `"+r+"`, expected `"+e+"`.",{expectedType:e}):null})}function g(e,t,n,r,o){return new f((e||"React class")+": "+t+" type `"+n+"."+r+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+o+"`.")}function b(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(b);if(null===e||s(e))return!0;var t=function(e){var t=e&&(c&&e[c]||e["@@iterator"]);if("function"==typeof t)return t}(e);if(!t)return!1;var n,r=t.call(e);if(t!==e.entries){for(;!(n=r.next()).done;)if(!b(n.value))return!1}else for(;!(n=r.next()).done;){var o=n.value;if(o&&!b(o[1]))return!1}return!0;default:return!1}}function v(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||!!t&&("Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol)}(t,e)?"symbol":t}function y(e){if(null==e)return""+e;var t=v(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function x(e){var t=y(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return f.prototype=Error.prototype,d.checkPropTypes=o,d.resetWarningCache=o.resetWarningCache,d.PropTypes=d,d},uo}function Co(){if(ho)return fo;ho=1;var e=yo();function t(){}function n(){}return n.resetWarningCache=t,fo=function(){function r(t,n,r,o,i,a){if(a!==e){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function o(){return r}r.isRequired=r;var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i}}function Eo(){if(mo)return Kr.exports;if(mo=1,"production"!==process.env.NODE_ENV){var e=bo();Kr.exports=wo()(e.isElement,true)}else Kr.exports=Co()();return Kr.exports}var Ao,So,To={exports:{}},Oo={},No={exports:{}};function Po(){return Ao||(Ao=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){var n=[].slice.call(t.querySelectorAll("*"),0).reduce(function(t,n){return t.concat(n.shadowRoot?e(n.shadowRoot):[n])},[]);return n.filter(s)};
31
31
  /*!
32
32
  * Adapted from jQuery UI core
33
33
  *
@@ -39,7 +39,7 @@ object-assign
39
39
  *
40
40
  * http://api.jqueryui.com/category/ui-core/
41
41
  */
42
- var n="none",r="contents",o=/^(input|select|textarea|button|object|iframe)$/;function i(e){var t=e.offsetWidth<=0&&e.offsetHeight<=0;if(t&&!e.innerHTML)return!0;try{var o=window.getComputedStyle(e),i=o.getPropertyValue("display");return t?i!==r&&function(e,t){return"visible"!==t.getPropertyValue("overflow")||e.scrollWidth<=0&&e.scrollHeight<=0}(e,o):i===n}catch(e){return console.warn("Failed to inspect element style"),!1}}function a(e,t){var n=e.nodeName.toLowerCase();return(o.test(n)&&!e.disabled||"a"===n&&e.href||t)&&function(e){for(var t=e,n=e.getRootNode&&e.getRootNode();t&&t!==document.body;){if(n&&t===n&&(t=n.host.parentNode),i(t))return!1;t=t.parentNode}return!0}(e)}function s(e){var t=e.getAttribute("tabindex");null===t&&(t=void 0);var n=isNaN(t);return(n||t>=0)&&a(e,!n)}e.exports=t.default}(mo,mo.exports)),mo.exports}function bo(){if(po)return ho;po=1,Object.defineProperty(ho,"__esModule",{value:!0}),ho.resetState=function(){r=[]},ho.log=function(){"production"!==process.env.NODE_ENV&&(console.log("focusManager ----------"),r.forEach(function(e){var t=e||{};console.log(t.nodeName,t.className,t.id)}),console.log("end focusManager ----------"))},ho.handleBlur=a,ho.handleFocus=s,ho.markForFocusLater=function(){r.push(document.activeElement)},ho.returnFocus=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=null;try{return void(0!==r.length&&(t=r.pop()).focus({preventScroll:e}))}catch(e){console.warn(["You tried to return focus to",t,"but it is not in the DOM anymore"].join(" "))}},ho.popWithoutFocus=function(){r.length>0&&r.pop()},ho.setupScopedFocus=function(e){o=e,window.addEventListener?(window.addEventListener("blur",a,!1),document.addEventListener("focus",s,!0)):(window.attachEvent("onBlur",a),document.attachEvent("onFocus",s))},ho.teardownScopedFocus=function(){o=null,window.addEventListener?(window.removeEventListener("blur",a),document.removeEventListener("focus",s)):(window.detachEvent("onBlur",a),document.detachEvent("onFocus",s))};var e,t=go(),n=(e=t)&&e.__esModule?e:{default:e};var r=[],o=null,i=!1;function a(){i=!0}function s(){if(i){if(i=!1,!o)return;setTimeout(function(){o.contains(document.activeElement)||((0,n.default)(o)[0]||o).focus()},0)}}return ho}var vo,yo={exports:{}};function xo(){return vo||(vo=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=(0,o.default)(e);if(!n.length)return void t.preventDefault();var r=void 0,a=t.shiftKey,s=n[0],l=n[n.length-1],c=i();if(e===c){if(!a)return;r=l}l!==c||a||(r=s);s===c&&a&&(r=l);if(r)return t.preventDefault(),void r.focus();var u=/(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent);if(null==u||"Chrome"==u[1]||null!=/\biPod\b|\biPad\b/g.exec(navigator.userAgent))return;var d=n.indexOf(c);d>-1&&(d+=a?-1:1);if(r=n[d],void 0===r)return t.preventDefault(),void(r=a?l:s).focus();t.preventDefault(),r.focus()};var n,r=go(),o=(n=r)&&n.__esModule?n:{default:n};function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;return e.activeElement.shadowRoot?i(e.activeElement.shadowRoot):e.activeElement}e.exports=t.default}(yo,yo.exports)),yo.exports}var Io,wo,Co={};function Eo(){if(wo)return Io;wo=1;var e=function(){};if("production"!==process.env.NODE_ENV){var t=function(e,t){var n=arguments.length;t=new Array(n>1?n-1:0);for(var r=1;r<n;r++)t[r-1]=arguments[r];var o=0,i="Warning: "+e.replace(/%s/g,function(){return t[o++]});"undefined"!=typeof console&&console.error(i);try{throw new Error(i)}catch(e){}};e=function(e,n,r){var o=arguments.length;r=new Array(o>2?o-2:0);for(var i=2;i<o;i++)r[i-2]=arguments[i];if(void 0===n)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");e||t.apply(null,[n].concat(r))}}return Io=e}var Ao,So,To,Oo={},No={exports:{}};function Po(){if(So)return Oo;So=1,Object.defineProperty(Oo,"__esModule",{value:!0}),Oo.canUseDOM=Oo.SafeNodeList=Oo.SafeHTMLCollection=void 0;var e,t=(Ao||(Ao=1,function(e){!function(){var t=!("undefined"==typeof window||!window.document||!window.document.createElement),n={canUseDOM:t,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:t&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:t&&!!window.screen};e.exports?e.exports=n:window.ExecutionEnvironment=n}()}(No)),No.exports);var n=((e=t)&&e.__esModule?e:{default:e}).default,r=n.canUseDOM?window.HTMLElement:{};return Oo.SafeHTMLCollection=n.canUseDOM?window.HTMLCollection:{},Oo.SafeNodeList=n.canUseDOM?window.NodeList:{},Oo.canUseDOM=n.canUseDOM,Oo.default=r,Oo}function Ro(){if(To)return Co;To=1,Object.defineProperty(Co,"__esModule",{value:!0}),Co.resetState=function(){o&&(o.removeAttribute?o.removeAttribute("aria-hidden"):null!=o.length?o.forEach(function(e){return e.removeAttribute("aria-hidden")}):document.querySelectorAll(o).forEach(function(e){return e.removeAttribute("aria-hidden")}));o=null},Co.log=function(){if("production"!==process.env.NODE_ENV){var e=o||{};console.log("ariaAppHider ----------"),console.log(e.nodeName,e.className,e.id),console.log("end ariaAppHider ----------")}},Co.assertNodeList=i,Co.setElement=function(e){var t=e;if("string"==typeof t&&r.canUseDOM){var n=document.querySelectorAll(t);i(n,t),t=n}return o=t||o},Co.validateElement=a,Co.hide=function(e){var t=!0,n=!1,r=void 0;try{for(var o,i=a(e)[Symbol.iterator]();!(t=(o=i.next()).done);t=!0){o.value.setAttribute("aria-hidden","true")}}catch(e){n=!0,r=e}finally{try{!t&&i.return&&i.return()}finally{if(n)throw r}}},Co.show=function(e){var t=!0,n=!1,r=void 0;try{for(var o,i=a(e)[Symbol.iterator]();!(t=(o=i.next()).done);t=!0){o.value.removeAttribute("aria-hidden")}}catch(e){n=!0,r=e}finally{try{!t&&i.return&&i.return()}finally{if(n)throw r}}},Co.documentNotReadyOrSSRTesting=function(){o=null};var e,t=Eo(),n=(e=t)&&e.__esModule?e:{default:e},r=Po();var o=null;function i(e,t){if(!e||!e.length)throw new Error("react-modal: No elements were found for selector "+t+".")}function a(e){var t=e||o;return t?Array.isArray(t)||t instanceof HTMLCollection||t instanceof NodeList?t:[t]:((0,n.default)(!1,["react-modal: App element is not defined.","Please use `Modal.setAppElement(el)` or set `appElement={el}`.","This is needed so screen readers don't see main content","when modal is opened. It is not recommended, but you can opt-out","by setting `ariaHideApp={false}`."].join(" ")),[])}return Co}var ko,Lo={};function Bo(){if(ko)return Lo;ko=1,Object.defineProperty(Lo,"__esModule",{value:!0}),Lo.resetState=function(){var r=document.getElementsByTagName("html")[0];for(var o in e)n(r,e[o]);var i=document.body;for(var a in t)n(i,t[a]);e={},t={}},Lo.log=function(){if("production"!==process.env.NODE_ENV){var n=document.getElementsByTagName("html")[0].className,r="Show tracked classes:\n\n";for(var o in r+="<html /> ("+n+"):\n ",e)r+=" "+o+" "+e[o]+"\n ";for(var i in r+="\n\ndoc.body ("+(n=document.body.className)+"):\n ",t)r+=" "+i+" "+t[i]+"\n ";r+="\n",console.log(r)}};var e={},t={};function n(e,t){e.classList.remove(t)}return Lo.add=function(n,r){return o=n.classList,i="html"==n.nodeName.toLowerCase()?e:t,void r.split(" ").forEach(function(e){!function(e,t){e[t]||(e[t]=0),e[t]+=1}(i,e),o.add(e)});var o,i},Lo.remove=function(n,r){return o=n.classList,i="html"==n.nodeName.toLowerCase()?e:t,void r.split(" ").forEach(function(e){!function(e,t){e[t]&&(e[t]-=1)}(i,e),0===i[e]&&o.remove(e)});var o,i},Lo}var Go,jo={};function Mo(){if(Go)return jo;Go=1,Object.defineProperty(jo,"__esModule",{value:!0}),jo.log=function(){console.log("portalOpenInstances ----------"),console.log(t.openInstances.length),t.openInstances.forEach(function(e){return console.log(e)}),console.log("end portalOpenInstances ----------")},jo.resetState=function(){t=new e};var e=function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.register=function(e){-1===t.openInstances.indexOf(e)?(t.openInstances.push(e),t.emit("register")):"production"!==process.env.NODE_ENV&&console.warn("React-Modal: Cannot register modal instance that's already open")},this.deregister=function(e){var n=t.openInstances.indexOf(e);-1!==n?(t.openInstances.splice(n,1),t.emit("deregister")):"production"!==process.env.NODE_ENV&&console.warn("React-Modal: Unable to deregister "+e+" as it was never registered")},this.subscribe=function(e){t.subscribers.push(e)},this.emit=function(e){t.subscribers.forEach(function(n){return n(e,t.openInstances.slice())})},this.openInstances=[],this.subscribers=[]},t=new e;return jo.default=t,jo}var Do,Vo,Fo={};function _o(){return Vo||(Vo=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r="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},i=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=o,s=g(co()),l=m(bo()),c=g(xo()),u=m(Ro()),d=m(Bo()),p=Po(),f=g(p),h=g(Mo());function m(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function g(e){return e&&e.__esModule?e:{default:e}}!function(){if(Do)return Fo;Do=1,Object.defineProperty(Fo,"__esModule",{value:!0}),Fo.resetState=function(){for(var e=[r,o],t=0;t<e.length;t++){var n=e[t];n&&n.parentNode&&n.parentNode.removeChild(n)}r=o=null,i=[]},Fo.log=function(){console.log("bodyTrap ----------"),console.log(i.length);for(var e=[r,o],t=0;t<e.length;t++){var n=e[t]||{};console.log(n.nodeName,n.className,n.id)}console.log("edn bodyTrap ----------")};var e,t=Mo(),n=(e=t)&&e.__esModule?e:{default:e},r=void 0,o=void 0,i=[];function a(){0!==i.length?i[i.length-1].focusContent():"production"!==process.env.NODE_ENV&&console.warn("React-Modal: Open instances > 0 expected")}n.default.subscribe(function(e,t){r||o||((r=document.createElement("div")).setAttribute("data-react-modal-body-trap",""),r.style.position="absolute",r.style.opacity="0",r.setAttribute("tabindex","0"),r.addEventListener("focus",a),(o=r.cloneNode()).addEventListener("focus",a)),(i=t).length>0?(document.body.firstChild!==r&&document.body.insertBefore(r,document.body.firstChild),document.body.lastChild!==o&&document.body.appendChild(o)):(r.parentElement&&r.parentElement.removeChild(r),o.parentElement&&o.parentElement.removeChild(o))})}();var b={overlay:"ReactModal__Overlay",content:"ReactModal__Content"},v=0,y=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.setOverlayRef=function(e){n.overlay=e,n.props.overlayRef&&n.props.overlayRef(e)},n.setContentRef=function(e){n.content=e,n.props.contentRef&&n.props.contentRef(e)},n.afterClose=function(){var e=n.props,t=e.appElement,r=e.ariaHideApp,o=e.htmlOpenClassName,i=e.bodyOpenClassName,a=e.parentSelector,s=a&&a().ownerDocument||document;i&&d.remove(s.body,i),o&&d.remove(s.getElementsByTagName("html")[0],o),r&&v>0&&0===(v-=1)&&u.show(t),n.props.shouldFocusAfterRender&&(n.props.shouldReturnFocusAfterClose?(l.returnFocus(n.props.preventScroll),l.teardownScopedFocus()):l.popWithoutFocus()),n.props.onAfterClose&&n.props.onAfterClose(),h.default.deregister(n)},n.open=function(){n.beforeOpen(),n.state.afterOpen&&n.state.beforeClose?(clearTimeout(n.closeTimer),n.setState({beforeClose:!1})):(n.props.shouldFocusAfterRender&&(l.setupScopedFocus(n.node),l.markForFocusLater()),n.setState({isOpen:!0},function(){n.openAnimationFrame=requestAnimationFrame(function(){n.setState({afterOpen:!0}),n.props.isOpen&&n.props.onAfterOpen&&n.props.onAfterOpen({overlayEl:n.overlay,contentEl:n.content})})}))},n.close=function(){n.props.closeTimeoutMS>0?n.closeWithTimeout():n.closeWithoutTimeout()},n.focusContent=function(){return n.content&&!n.contentHasFocus()&&n.content.focus({preventScroll:!0})},n.closeWithTimeout=function(){var e=Date.now()+n.props.closeTimeoutMS;n.setState({beforeClose:!0,closesAt:e},function(){n.closeTimer=setTimeout(n.closeWithoutTimeout,n.state.closesAt-Date.now())})},n.closeWithoutTimeout=function(){n.setState({beforeClose:!1,isOpen:!1,afterOpen:!1,closesAt:null},n.afterClose)},n.handleKeyDown=function(e){(function(e){return"Tab"===e.code||9===e.keyCode})(e)&&(0,c.default)(n.content,e),n.props.shouldCloseOnEsc&&function(e){return"Escape"===e.code||27===e.keyCode}(e)&&(e.stopPropagation(),n.requestClose(e))},n.handleOverlayOnClick=function(e){null===n.shouldClose&&(n.shouldClose=!0),n.shouldClose&&n.props.shouldCloseOnOverlayClick&&(n.ownerHandlesClose()?n.requestClose(e):n.focusContent()),n.shouldClose=null},n.handleContentOnMouseUp=function(){n.shouldClose=!1},n.handleOverlayOnMouseDown=function(e){n.props.shouldCloseOnOverlayClick||e.target!=n.overlay||e.preventDefault()},n.handleContentOnClick=function(){n.shouldClose=!1},n.handleContentOnMouseDown=function(){n.shouldClose=!1},n.requestClose=function(e){return n.ownerHandlesClose()&&n.props.onRequestClose(e)},n.ownerHandlesClose=function(){return n.props.onRequestClose},n.shouldBeClosed=function(){return!n.state.isOpen&&!n.state.beforeClose},n.contentHasFocus=function(){return document.activeElement===n.content||n.content.contains(document.activeElement)},n.buildClassName=function(e,t){var o="object"===(void 0===t?"undefined":r(t))?t:{base:b[e],afterOpen:b[e]+"--after-open",beforeClose:b[e]+"--before-close"},i=o.base;return n.state.afterOpen&&(i=i+" "+o.afterOpen),n.state.beforeClose&&(i=i+" "+o.beforeClose),"string"==typeof t&&t?i+" "+t:i},n.attributesFromObject=function(e,t){return Object.keys(t).reduce(function(n,r){return n[e+"-"+r]=t[r],n},{})},n.state={afterOpen:!1,beforeClose:!1},n.shouldClose=null,n.moveFromContentToOverlay=null,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"componentDidMount",value:function(){this.props.isOpen&&this.open()}},{key:"componentDidUpdate",value:function(e,t){"production"!==process.env.NODE_ENV&&(e.bodyOpenClassName!==this.props.bodyOpenClassName&&console.warn('React-Modal: "bodyOpenClassName" prop has been modified. This may cause unexpected behavior when multiple modals are open.'),e.htmlOpenClassName!==this.props.htmlOpenClassName&&console.warn('React-Modal: "htmlOpenClassName" prop has been modified. This may cause unexpected behavior when multiple modals are open.')),this.props.isOpen&&!e.isOpen?this.open():!this.props.isOpen&&e.isOpen&&this.close(),this.props.shouldFocusAfterRender&&this.state.isOpen&&!t.isOpen&&this.focusContent()}},{key:"componentWillUnmount",value:function(){this.state.isOpen&&this.afterClose(),clearTimeout(this.closeTimer),cancelAnimationFrame(this.openAnimationFrame)}},{key:"beforeOpen",value:function(){var e=this.props,t=e.appElement,n=e.ariaHideApp,r=e.htmlOpenClassName,o=e.bodyOpenClassName,i=e.parentSelector,a=i&&i().ownerDocument||document;o&&d.add(a.body,o),r&&d.add(a.getElementsByTagName("html")[0],r),n&&(v+=1,u.hide(t)),h.default.register(this)}},{key:"render",value:function(){var e=this.props,t=e.id,r=e.className,o=e.overlayClassName,i=e.defaultStyles,a=e.children,s=r?{}:i.content,l=o?{}:i.overlay;if(this.shouldBeClosed())return null;var c={ref:this.setOverlayRef,className:this.buildClassName("overlay",o),style:n({},l,this.props.style.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown},u=n({id:t,ref:this.setContentRef,style:n({},s,this.props.style.content),className:this.buildClassName("content",r),tabIndex:"-1",onKeyDown:this.handleKeyDown,onMouseDown:this.handleContentOnMouseDown,onMouseUp:this.handleContentOnMouseUp,onClick:this.handleContentOnClick,role:this.props.role,"aria-label":this.props.contentLabel},this.attributesFromObject("aria",n({modal:!0},this.props.aria)),this.attributesFromObject("data",this.props.data||{}),{"data-testid":this.props.testId}),d=this.props.contentElement(u,a);return this.props.overlayElement(c,d)}}]),t}(a.Component);y.defaultProps={style:{overlay:{},content:{}},defaultStyles:{}},y.propTypes={isOpen:s.default.bool.isRequired,defaultStyles:s.default.shape({content:s.default.object,overlay:s.default.object}),style:s.default.shape({content:s.default.object,overlay:s.default.object}),className:s.default.oneOfType([s.default.string,s.default.object]),overlayClassName:s.default.oneOfType([s.default.string,s.default.object]),parentSelector:s.default.func,bodyOpenClassName:s.default.string,htmlOpenClassName:s.default.string,ariaHideApp:s.default.bool,appElement:s.default.oneOfType([s.default.instanceOf(f.default),s.default.instanceOf(p.SafeHTMLCollection),s.default.instanceOf(p.SafeNodeList),s.default.arrayOf(s.default.instanceOf(f.default))]),onAfterOpen:s.default.func,onAfterClose:s.default.func,onRequestClose:s.default.func,closeTimeoutMS:s.default.number,shouldFocusAfterRender:s.default.bool,shouldCloseOnOverlayClick:s.default.bool,shouldReturnFocusAfterClose:s.default.bool,preventScroll:s.default.bool,role:s.default.string,contentLabel:s.default.string,aria:s.default.object,data:s.default.object,children:s.default.node,shouldCloseOnEsc:s.default.bool,overlayRef:s.default.func,contentRef:s.default.func,id:s.default.string,overlayElement:s.default.func,contentElement:s.default.func,testId:s.default.string},t.default=y,e.exports=t.default}(fo,fo.exports)),fo.exports}function Ho(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function Wo(e){this.setState(function(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!=n?n:null}.bind(this))}function Xo(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}Ho.__suppressDeprecationWarning=!0,Wo.__suppressDeprecationWarning=!0,Xo.__suppressDeprecationWarning=!0;var zo,Zo,Yo=Object.freeze({__proto__:null,polyfill:function(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var n=null,r=null,o=null;if("function"==typeof t.componentWillMount?n="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?r="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(r="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?o="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(o="UNSAFE_componentWillUpdate"),null!==n||null!==r||null!==o){var i=e.displayName||e.name,a="function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+i+" uses "+a+" but also contains the following legacy lifecycles:"+(null!==n?"\n "+n:"")+(null!==r?"\n "+r:"")+(null!==o?"\n "+o:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=Ho,t.componentWillReceiveProps=Wo),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=Xo;var s=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var r=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;s.call(this,e,t,r)}}return e}}),Uo=_e(Yo);function Jo(){if(zo)return jr;zo=1,Object.defineProperty(jr,"__esModule",{value:!0}),jr.bodyOpenClassName=jr.portalClassName=void 0;var e=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},t=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),n=o,r=p(n),i=p(C),a=p(co()),s=p(_o()),l=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(Ro()),c=Po(),u=p(c),d=Uo;function p(e){return e&&e.__esModule?e:{default:e}}function f(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var h=jr.portalClassName="ReactModalPortal",m=jr.bodyOpenClassName="ReactModal__Body--open",g=c.canUseDOM&&void 0!==i.default.createPortal,b=function(e){return document.createElement(e)},v=function(){return g?i.default.createPortal:i.default.unstable_renderSubtreeIntoContainer};function y(e){return e()}var x=function(n){function o(){var t,n,a;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o);for(var l=arguments.length,c=Array(l),u=0;u<l;u++)c[u]=arguments[u];return n=a=f(this,(t=o.__proto__||Object.getPrototypeOf(o)).call.apply(t,[this].concat(c))),a.removePortal=function(){!g&&i.default.unmountComponentAtNode(a.node);var e=y(a.props.parentSelector);e&&e.contains(a.node)?e.removeChild(a.node):console.warn('React-Modal: "parentSelector" prop did not returned any DOM element. Make sure that the parent element is unmounted to avoid any memory leaks.')},a.portalRef=function(e){a.portal=e},a.renderPortal=function(t){var n=v()(a,r.default.createElement(s.default,e({defaultStyles:o.defaultStyles},t)),a.node);a.portalRef(n)},f(a,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(o,n),t(o,[{key:"componentDidMount",value:function(){c.canUseDOM&&(g||(this.node=b("div")),this.node.className=this.props.portalClassName,y(this.props.parentSelector).appendChild(this.node),!g&&this.renderPortal(this.props))}},{key:"getSnapshotBeforeUpdate",value:function(e){return{prevParent:y(e.parentSelector),nextParent:y(this.props.parentSelector)}}},{key:"componentDidUpdate",value:function(e,t,n){if(c.canUseDOM){var r=this.props,o=r.isOpen,i=r.portalClassName;e.portalClassName!==i&&(this.node.className=i);var a=n.prevParent,s=n.nextParent;s!==a&&(a.removeChild(this.node),s.appendChild(this.node)),(e.isOpen||o)&&!g&&this.renderPortal(this.props)}}},{key:"componentWillUnmount",value:function(){if(c.canUseDOM&&this.node&&this.portal){var e=this.portal.state,t=Date.now(),n=e.isOpen&&this.props.closeTimeoutMS&&(e.closesAt||t+this.props.closeTimeoutMS);n?(e.beforeClose||this.portal.closeWithTimeout(),setTimeout(this.removePortal,n-t)):this.removePortal()}}},{key:"render",value:function(){return c.canUseDOM&&g?(!this.node&&g&&(this.node=b("div")),v()(r.default.createElement(s.default,e({ref:this.portalRef,defaultStyles:o.defaultStyles},this.props)),this.node)):null}}],[{key:"setAppElement",value:function(e){l.setElement(e)}}]),o}(n.Component);return x.propTypes={isOpen:a.default.bool.isRequired,style:a.default.shape({content:a.default.object,overlay:a.default.object}),portalClassName:a.default.string,bodyOpenClassName:a.default.string,htmlOpenClassName:a.default.string,className:a.default.oneOfType([a.default.string,a.default.shape({base:a.default.string.isRequired,afterOpen:a.default.string.isRequired,beforeClose:a.default.string.isRequired})]),overlayClassName:a.default.oneOfType([a.default.string,a.default.shape({base:a.default.string.isRequired,afterOpen:a.default.string.isRequired,beforeClose:a.default.string.isRequired})]),appElement:a.default.oneOfType([a.default.instanceOf(u.default),a.default.instanceOf(c.SafeHTMLCollection),a.default.instanceOf(c.SafeNodeList),a.default.arrayOf(a.default.instanceOf(u.default))]),onAfterOpen:a.default.func,onRequestClose:a.default.func,closeTimeoutMS:a.default.number,ariaHideApp:a.default.bool,shouldFocusAfterRender:a.default.bool,shouldCloseOnOverlayClick:a.default.bool,shouldReturnFocusAfterClose:a.default.bool,preventScroll:a.default.bool,parentSelector:a.default.func,aria:a.default.object,data:a.default.object,role:a.default.string,contentLabel:a.default.string,shouldCloseOnEsc:a.default.bool,overlayRef:a.default.func,contentRef:a.default.func,id:a.default.string,overlayElement:a.default.func,contentElement:a.default.func},x.defaultProps={isOpen:!1,portalClassName:h,bodyOpenClassName:m,role:"dialog",ariaHideApp:!0,closeTimeoutMS:0,shouldFocusAfterRender:!0,shouldCloseOnEsc:!0,shouldCloseOnOverlayClick:!0,shouldReturnFocusAfterClose:!0,preventScroll:!1,parentSelector:function(){return document.body},overlayElement:function(e,t){return r.default.createElement("div",e,t)},contentElement:function(e,t){return r.default.createElement("div",e,t)}},x.defaultStyles={overlay:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(255, 255, 255, 0.75)"},content:{position:"absolute",top:"40px",left:"40px",right:"40px",bottom:"40px",border:"1px solid #ccc",background:"#fff",overflow:"auto",WebkitOverflowScrolling:"touch",borderRadius:"4px",outline:"none",padding:"20px"}},(0,d.polyfill)(x),"production"!==process.env.NODE_ENV&&(x.setCreateHTMLElement=function(e){return b=e}),jr.default=x,jr}var $o=Fe((Zo||(Zo=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n,r=Jo(),o=(n=r)&&n.__esModule?n:{default:n};t.default=o.default,e.exports=t.default}(Gr,Gr.exports)),Gr.exports));function Ko(){return Ko=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},Ko.apply(null,arguments)}function Qo(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}function qo(e,t){return qo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},qo(e,t)}var ei=Fe(co()),ti=!1,ni="production"!==process.env.NODE_ENV?ei.oneOfType([ei.number,ei.shape({enter:ei.number,exit:ei.number,appear:ei.number}).isRequired]):null;"production"!==process.env.NODE_ENV&&ei.oneOfType([ei.string,ei.shape({enter:ei.string,exit:ei.string,active:ei.string}),ei.shape({enter:ei.string,enterDone:ei.string,enterActive:ei.string,exit:ei.string,exitDone:ei.string,exitActive:ei.string})]);var ri=o.createContext(null),oi="unmounted",ii="exited",ai="entering",si="entered",li="exiting",ci=function(e){var t,n;function r(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=ii,r.appearStatus=ai):o=si:o=t.unmountOnExit||t.mountOnEnter?oi:ii,r.state={status:o},r.nextCallback=null,r}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,qo(t,n),r.getDerivedStateFromProps=function(e,t){return e.in&&t.status===oi?{status:ii}:null};var i=r.prototype;return i.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},i.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==ai&&n!==si&&(t=ai):n!==ai&&n!==si||(t=li)}this.updateStatus(!1,t)},i.componentWillUnmount=function(){this.cancelNextCallback()},i.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},i.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===ai){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:C.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===ii&&this.setState({status:oi})},i.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[C.findDOMNode(this),r],i=o[0],a=o[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||ti?this.safeSetState({status:si},function(){t.props.onEntered(i)}):(this.props.onEnter(i,a),this.safeSetState({status:ai},function(){t.props.onEntering(i,a),t.onTransitionEnd(l,function(){t.safeSetState({status:si},function(){t.props.onEntered(i,a)})})}))},i.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:C.findDOMNode(this);t&&!ti?(this.props.onExit(r),this.safeSetState({status:li},function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,function(){e.safeSetState({status:ii},function(){e.props.onExited(r)})})})):this.safeSetState({status:ii},function(){e.props.onExited(r)})},i.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},i.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},i.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},i.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:C.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},i.render=function(){var e=this.state.status;if(e===oi)return null;var t=this.props,n=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var r=Qo(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return o.createElement(ri.Provider,{value:null},"function"==typeof n?n(e,r):o.cloneElement(o.Children.only(n),r))},r}(o.Component);function ui(){}ci.contextType=ri,ci.propTypes="production"!==process.env.NODE_ENV?{nodeRef:ei.shape({current:"undefined"==typeof Element?ei.any:function(e,t,n,r,o,i){var a=e[t];return ei.instanceOf(a&&"ownerDocument"in a?a.ownerDocument.defaultView.Element:Element)(e,t,n,r,o,i)}}),children:ei.oneOfType([ei.func.isRequired,ei.element.isRequired]).isRequired,in:ei.bool,mountOnEnter:ei.bool,unmountOnExit:ei.bool,appear:ei.bool,enter:ei.bool,exit:ei.bool,timeout:function(e){var t=ni;e.addEndListener||(t=t.isRequired);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return t.apply(void 0,[e].concat(r))},addEndListener:ei.func,onEnter:ei.func,onEntering:ei.func,onEntered:ei.func,onExit:ei.func,onExiting:ei.func,onExited:ei.func}:{},ci.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ui,onEntering:ui,onEntered:ui,onExit:ui,onExiting:ui,onExited:ui},ci.UNMOUNTED=oi,ci.EXITED=ii,ci.ENTERING=ai,ci.ENTERED=si,ci.EXITING=li;const di=({size:n="md",shape:r="default",animation:o="popper",centered:i,title:s,isOpen:u,children:d,bodyStyle:p,className:f,bodyClassName:h,portalClassName:m,overlayClassName:g,closeButtonClassName:b,closeWrapperClassName:v,onRequestClose:y,parentSelector:x,hideScrollOnIsOpenFalse:I=!0,hideCloseButton:w=!1,...C})=>{Lr(u,I);const[E,A]=c(!1);a(()=>{A(u)},[u]);const S=l(()=>{if("undefined"==typeof document)return null;let e=document.querySelector("main")||document.body;return x&&(e=document.querySelector(x)||document.body),e},[x]);if(!S)return null;if(!u)return null;const T=e=>({xl:"inset-[5%] min-h-fit",lg:"inset-[10%] min-h-fit",md:"inset-[15%] min-h-fit",sm:"top-[18%] w-[640px]",xs:"w-[calc(100%-30px)]"}[e]),O=(e,t)=>{if("popper"===e){const e="transition-transform duration-300";return"entering"===t||"entered"===t?`${e} opacity-100 ${"entered"===t?"translate-y-0 pointer-events-auto":""}`:"exiting"===t||"exited"===t?`${e} opacity-0 translate-y-[-18px] duration-[180ms]`:`${e} opacity-0 translate-y-[-18px]`}if("bottomSheet"===e){const e="transition-transform duration-200 ease-in-out";return"entering"===t||"entered"===t?`${e} opacity-100 ${"entered"===t?"translate-y-0 pointer-events-auto":""}`:"exiting"===t||"exited"===t?`${e} opacity-0 translate-y-full duration-[180ms]`:`${e} opacity-0 translate-y-full`}return""};return e(ci,{enter:!0,exit:!0,in:E,timeout:0,children:a=>t($o,{ariaHideApp:!1,isOpen:u,onRequestClose:y,closeTimeoutMS:0,parentSelector:()=>S,className:De("absolute min-w-[150px] max-w-[calc(100vw-30px)] overflow-auto rounded-lg bg-white outline-none",T(n),"rounded"===r&&"rounded-3xl",i&&"top-0 translate-y-[calc(50vh-50%)]",O(o,a),f),portalClassName:De("z-80",m),overlayClassName:De("z-80 fixed inset-0 bg-black/50 flex items-center justify-center pb-[300px]",g),...C,children:[!w&&e("div",{className:De(v),children:e(Ar,{className:De("absolute right-0 top-0 float-right h-6 cursor-pointer p-5 text-text",b),onClick:y,"data-testid":"close-button","data-track-element-name":"modal_close_button","data-track-click-text":"Close Modal","data-track-element-clicked":"modal",children:e(On,{name:"close",size:24})})}),s?e("div",{className:De("border-b border-border-secondary-on-bg-fill px-[7px] py-[7px] text-text"),children:s}):null,e("div",{className:De("p-5",h),style:p,"data-testid":C["data-testid"],"data-cy":C["data-cy"],children:d})]})})};di.displayName="Modal";const pi=t=>{const{open:n,children:r}=t,o=s(null),[i,l]=c(0);a(()=>{const e=o.current;if(!e)return;const t=()=>{l(n?e.scrollHeight:0)};let r;return t(),n&&(r=new ResizeObserver(()=>t()),r.observe(e)),()=>{r&&r.disconnect()}},[n,r]);return e("div",{className:"overflow-hidden transition-all duration-300 ease-in-out",style:{maxHeight:i,opacity:n?1:0},"aria-hidden":!n,...n?{}:{inert:""},children:e("div",{ref:o,children:r})})};pi.displayName="Collapse";const fi=n=>{const{title:r,defaultOpen:o,children:i,containerClassName:s,titleClassName:l,className:u,buttonClassName:d,iconClassName:p,openOnlyOnDesktop:f,borderRadiusNone:h=!1}=n,[m,g]=c(Boolean(!1));return a(()=>{if(f){const e=window.innerWidth>=1024;g(e)}else g(Boolean(o))},[f,o]),t("div",{className:De(h?"rounded-none border":"rounded-surface-xs border",s),children:[t(Ar,{type:"button",className:De(h?"rounded-none":"rounded-t-surface-xs","flex w-full items-center justify-between gap-4 px-4 py-3 text-left",d),onClick:()=>g(e=>!e),children:[e("span",{className:De("label5 flex-1",l),children:r}),e(On,{className:De("flex-shrink-0",p),name:m?"keyboard_arrow_up":"keyboard_arrow_down",fill:1,size:24})]}),e(pi,{open:m,children:e("div",{className:De("px-4 py-4",u),children:i})})]})};fi.displayName="Accordion";const hi=({state:n,checked:r=!1,onChange:o,className:i,label:a,labelClassName:s,containerClassName:l,name:c,value:d,id:p,disabled:f=!1,required:h=!1,error:m=!1,"data-cy":g,renderInfoIcon:b,...v})=>{var y,x;const I=f||"disabled"===n,w=p||c,C=De("flex items-center justify-center w-6 h-6 rounded-[4px] outline-offset-2","focus"===n&&"outline",i),E=u(e=>{I||o&&(1===o.length?o(e.target.checked):o())},[I,o]);return t("div",{className:De("flex items-center gap-3",l),children:[t("div",{className:"relative",children:[e("input",{type:"checkbox",id:w,name:c,value:d,checked:r,onChange:E,disabled:I,required:h,className:"peer sr-only","data-cy":g,...v}),e("label",{htmlFor:w,className:De("peer-focus:outline",C),style:{pointerEvents:I?"none":"auto"},children:t("svg",r?{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:[e("rect",{width:"24",height:"24",rx:"4",className:De(I?"fill-checkbox-bg-surface-selected-disabled":"fill-bg-fill-brand")}),e("path",{d:"M8 11.9593L11.0316 15L17 9",stroke:"white",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round"})]}:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:[e("rect",{x:"0.5",y:"0.5",width:"23",height:"23",rx:"3.5",className:De(I?"fill-checkbox-bg-surface-disabled":"fill-white")}),e("rect",{x:"0.5",y:"0.5",width:"23",height:"23",rx:"3.5",stroke:"#CECECE"})]})})]}),a&&e("label",{htmlFor:w,className:De("cursor-pointer",m&&"text-text-critical",s),children:a}),b&&e(Ar,{type:"button",onClick:b.onClick,"data-testid":b.dataTestId,className:"ml-2 cursor-pointer text-icon-info","aria-label":"More information",children:t("svg",{xmlns:"http://www.w3.org/2000/svg",width:null!==(y=b.iconSize)&&void 0!==y?y:24,height:null!==(x=b.iconSize)&&void 0!==x?x:24,viewBox:"0 0 24 24",fill:"none",children:[e("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"2"}),e("path",{d:"M12 16v-4",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),e("path",{d:"M12 8h.01",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})})]})};function mi(e){return mi="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},mi(e)}function gi(e){var t=function(e,t){if("object"!=mi(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=mi(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==mi(t)?t:t+""}function bi(e,t,n){return(t=gi(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vi(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 yi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vi(Object(n),!0).forEach(function(t){bi(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vi(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function xi(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 Ii(e,t){if(e){if("string"==typeof e)return xi(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)?xi(e,t):void 0}}function wi(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)||Ii(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 Ci(e,t){if(null==e)return{};var n,r,o=Qo(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}hi.displayName="Checkbox";var Ei=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function Ai(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,gi(r.key),r)}}function Si(e){return Si=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Si(e)}function Ti(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Ti=function(){return!!e})()}function Oi(e,t){if(t&&("object"==mi(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 Ni(e){return function(e){if(Array.isArray(e))return xi(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Ii(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 Pi=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}(),Ri="-ms-",ki="-moz-",Li="-webkit-",Bi="comm",Gi="rule",ji="decl",Mi="@keyframes",Di=Math.abs,Vi=String.fromCharCode,Fi=Object.assign;function _i(e){return e.trim()}function Hi(e,t,n){return e.replace(t,n)}function Wi(e,t){return e.indexOf(t)}function Xi(e,t){return 0|e.charCodeAt(t)}function zi(e,t,n){return e.slice(t,n)}function Zi(e){return e.length}function Yi(e){return e.length}function Ui(e,t){return t.push(e),e}var Ji=1,$i=1,Ki=0,Qi=0,qi=0,ea="";function ta(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Ji,column:$i,length:a,return:""}}function na(e,t){return Fi(ta("",null,null,"",null,null,0),e,{length:-e.length},t)}function ra(){return qi=Qi>0?Xi(ea,--Qi):0,$i--,10===qi&&($i=1,Ji--),qi}function oa(){return qi=Qi<Ki?Xi(ea,Qi++):0,$i++,10===qi&&($i=1,Ji++),qi}function ia(){return Xi(ea,Qi)}function aa(){return Qi}function sa(e,t){return zi(ea,e,t)}function la(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 ca(e){return Ji=$i=1,Ki=Zi(ea=e),Qi=0,[]}function ua(e){return ea="",e}function da(e){return _i(sa(Qi-1,ha(91===e?e+2:40===e?e+1:e)))}function pa(e){for(;(qi=ia())&&qi<33;)oa();return la(e)>2||la(qi)>3?"":" "}function fa(e,t){for(;--t&&oa()&&!(qi<48||qi>102||qi>57&&qi<65||qi>70&&qi<97););return sa(e,aa()+(t<6&&32==ia()&&32==oa()))}function ha(e){for(;oa();)switch(qi){case e:return Qi;case 34:case 39:34!==e&&39!==e&&ha(qi);break;case 40:41===e&&ha(e);break;case 92:oa()}return Qi}function ma(e,t){for(;oa()&&e+qi!==57&&(e+qi!==84||47!==ia()););return"/*"+sa(t,Qi-1)+"*"+Vi(47===e?e:oa())}function ga(e){for(;!la(ia());)oa();return sa(e,Qi)}function ba(e){return ua(va("",null,null,null,[""],e=ca(e),0,[0],e))}function va(e,t,n,r,o,i,a,s,l){for(var c=0,u=0,d=a,p=0,f=0,h=0,m=1,g=1,b=1,v=0,y="",x=o,I=i,w=r,C=y;g;)switch(h=v,v=oa()){case 40:if(108!=h&&58==Xi(C,d-1)){-1!=Wi(C+=Hi(da(v),"&","&\f"),"&\f")&&(b=-1);break}case 34:case 39:case 91:C+=da(v);break;case 9:case 10:case 13:case 32:C+=pa(h);break;case 92:C+=fa(aa()-1,7);continue;case 47:switch(ia()){case 42:case 47:Ui(xa(ma(oa(),aa()),t,n),l);break;default:C+="/"}break;case 123*m:s[c++]=Zi(C)*b;case 125*m:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+u:-1==b&&(C=Hi(C,/\f/g,"")),f>0&&Zi(C)-d&&Ui(f>32?Ia(C+";",r,n,d-1):Ia(Hi(C," ","")+";",r,n,d-2),l);break;case 59:C+=";";default:if(Ui(w=ya(C,t,n,c,u,o,s,y,x=[],I=[],d),i),123===v)if(0===u)va(C,t,w,w,x,i,d,s,I);else switch(99===p&&110===Xi(C,3)?100:p){case 100:case 108:case 109:case 115:va(e,w,w,r&&Ui(ya(e,w,w,0,0,o,s,y,o,x=[],d),I),o,I,d,s,r?x:I);break;default:va(C,w,w,w,[""],I,0,s,I)}}c=u=f=0,m=b=1,y=C="",d=a;break;case 58:d=1+Zi(C),f=h;default:if(m<1)if(123==v)--m;else if(125==v&&0==m++&&125==ra())continue;switch(C+=Vi(v),v*m){case 38:b=u>0?1:(C+="\f",-1);break;case 44:s[c++]=(Zi(C)-1)*b,b=1;break;case 64:45===ia()&&(C+=da(oa())),p=ia(),u=d=Zi(y=C+=ga(aa())),v++;break;case 45:45===h&&2==Zi(C)&&(m=0)}}return i}function ya(e,t,n,r,o,i,a,s,l,c,u){for(var d=o-1,p=0===o?i:[""],f=Yi(p),h=0,m=0,g=0;h<r;++h)for(var b=0,v=zi(e,d+1,d=Di(m=a[h])),y=e;b<f;++b)(y=_i(m>0?p[b]+" "+v:Hi(v,/&\f/g,p[b])))&&(l[g++]=y);return ta(e,t,n,0===o?Gi:s,l,c,u)}function xa(e,t,n){return ta(e,t,n,Bi,Vi(qi),zi(e,2,-2),0)}function Ia(e,t,n,r){return ta(e,t,n,ji,zi(e,0,r),zi(e,r+1,-1),r)}function wa(e,t){for(var n="",r=Yi(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function Ca(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case ji:return e.return=e.return||e.value;case Bi:return"";case Mi:return e.return=e.value+"{"+wa(e.children,r)+"}";case Gi:e.value=e.props.join(",")}return Zi(n=wa(e.children,r))?e.return=e.value+"{"+n+"}":""}function Ea(e){var t=Yi(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 Aa="undefined"!=typeof document,Sa=function(e,t,n){for(var r=0,o=0;r=o,o=ia(),38===r&&12===o&&(t[n]=1),!la(o);)oa();return sa(e,Qi)},Ta=function(e,t){return ua(function(e,t){var n=-1,r=44;do{switch(la(r)){case 0:38===r&&12===ia()&&(t[n]=1),e[n]+=Sa(Qi-1,t,n);break;case 2:e[n]+=da(r);break;case 4:if(44===r){e[++n]=58===ia()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Vi(r)}}while(r=oa());return e}(ca(e),t))},Oa=new WeakMap,Na=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)||Oa.get(n))&&!r){Oa.set(e,!0);for(var o=[],i=Ta(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]}}},Pa=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function Ra(e,t){switch(function(e,t){return 45^Xi(e,0)?(((t<<2^Xi(e,0))<<2^Xi(e,1))<<2^Xi(e,2))<<2^Xi(e,3):0}(e,t)){case 5103:return Li+"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 Li+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Li+e+ki+e+Ri+e+e;case 6828:case 4268:return Li+e+Ri+e+e;case 6165:return Li+e+Ri+"flex-"+e+e;case 5187:return Li+e+Hi(e,/(\w+).+(:[^]+)/,Li+"box-$1$2"+Ri+"flex-$1$2")+e;case 5443:return Li+e+Ri+"flex-item-"+Hi(e,/flex-|-self/,"")+e;case 4675:return Li+e+Ri+"flex-line-pack"+Hi(e,/align-content|flex-|-self/,"")+e;case 5548:return Li+e+Ri+Hi(e,"shrink","negative")+e;case 5292:return Li+e+Ri+Hi(e,"basis","preferred-size")+e;case 6060:return Li+"box-"+Hi(e,"-grow","")+Li+e+Ri+Hi(e,"grow","positive")+e;case 4554:return Li+Hi(e,/([^-])(transform)/g,"$1"+Li+"$2")+e;case 6187:return Hi(Hi(Hi(e,/(zoom-|grab)/,Li+"$1"),/(image-set)/,Li+"$1"),e,"")+e;case 5495:case 3959:return Hi(e,/(image-set\([^]*)/,Li+"$1$`$1");case 4968:return Hi(Hi(e,/(.+:)(flex-)?(.*)/,Li+"box-pack:$3"+Ri+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Li+e+e;case 4095:case 3583:case 4068:case 2532:return Hi(e,/(.+)-inline(.+)/,Li+"$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(Zi(e)-1-t>6)switch(Xi(e,t+1)){case 109:if(45!==Xi(e,t+4))break;case 102:return Hi(e,/(.+:)(.+)-([^]+)/,"$1"+Li+"$2-$3$1"+ki+(108==Xi(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Wi(e,"stretch")?Ra(Hi(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Xi(e,t+1))break;case 6444:switch(Xi(e,Zi(e)-3-(~Wi(e,"!important")&&10))){case 107:return Hi(e,":",":"+Li)+e;case 101:return Hi(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Li+(45===Xi(e,14)?"inline-":"")+"box$3$1"+Li+"$2$3$1"+Ri+"$2box$3")+e}break;case 5936:switch(Xi(e,t+11)){case 114:return Li+e+Ri+Hi(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Li+e+Ri+Hi(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Li+e+Ri+Hi(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Li+e+Ri+e+e}return e}var ka,La,Ba,Ga=Aa?void 0:(ka=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},La=new WeakMap,function(e){if(La.has(e))return La.get(e);var t=ka(e);return La.set(e,t),t}),ja=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case ji:e.return=Ra(e.value,e.length);break;case Mi:return wa([na(e,{value:Hi(e.value,"@","@"+Li)})],r);case Gi: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 wa([na(e,{props:[Hi(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return wa([na(e,{props:[Hi(t,/:(plac\w+)/,":"+Li+"input-$1")]}),na(e,{props:[Hi(t,/:(plac\w+)/,":-moz-$1")]}),na(e,{props:[Hi(t,/:(plac\w+)/,Ri+"input-$1")]})],r)}return""})}}],Ma=function(e){var t=e.key;if(Aa&&"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||ja,a={},s=[];Aa&&(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=[Na,Pa];if(Ga){var u=[Ca],d=Ea(c.concat(i,u)),p=Ga(i)(t),f=function(e,t){var n=t.name;return void 0===p[n]&&(p[n]=wa(ba(e?e+"{"+t.styles+"}":t.styles),d)),p[n]};o=function(e,t,n,r){var o=t.name,i=f(e,t);return void 0===b.compat?(r&&(b.inserted[o]=!0),i):r?void(b.inserted[o]=i):i}}else{var h,m=[Ca,(l=function(e){h.insert(e)},function(e){e.root||(e=e.return)&&l(e)})],g=Ea(c.concat(i,m));o=function(e,t,n,r){h=n,wa(ba(e?e+"{"+t.styles+"}":t.styles),g),r&&(b.inserted[t.name]=!0)}}var b={key:t,sheet:new Pi({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},Da={exports:{}},Va={};var Fa,_a,Ha,Wa,Xa={};
42
+ var n="none",r="contents",o=/^(input|select|textarea|button|object|iframe)$/;function i(e){var t=e.offsetWidth<=0&&e.offsetHeight<=0;if(t&&!e.innerHTML)return!0;try{var o=window.getComputedStyle(e),i=o.getPropertyValue("display");return t?i!==r&&function(e,t){return"visible"!==t.getPropertyValue("overflow")||e.scrollWidth<=0&&e.scrollHeight<=0}(e,o):i===n}catch(e){return console.warn("Failed to inspect element style"),!1}}function a(e,t){var n=e.nodeName.toLowerCase();return(o.test(n)&&!e.disabled||"a"===n&&e.href||t)&&function(e){for(var t=e,n=e.getRootNode&&e.getRootNode();t&&t!==document.body;){if(n&&t===n&&(t=n.host.parentNode),i(t))return!1;t=t.parentNode}return!0}(e)}function s(e){var t=e.getAttribute("tabindex");null===t&&(t=void 0);var n=isNaN(t);return(n||t>=0)&&a(e,!n)}e.exports=t.default}(No,No.exports)),No.exports}function Ro(){if(So)return Oo;So=1,Object.defineProperty(Oo,"__esModule",{value:!0}),Oo.resetState=function(){r=[]},Oo.log=function(){"production"!==process.env.NODE_ENV&&(console.log("focusManager ----------"),r.forEach(function(e){var t=e||{};console.log(t.nodeName,t.className,t.id)}),console.log("end focusManager ----------"))},Oo.handleBlur=a,Oo.handleFocus=s,Oo.markForFocusLater=function(){r.push(document.activeElement)},Oo.returnFocus=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=null;try{return void(0!==r.length&&(t=r.pop()).focus({preventScroll:e}))}catch(e){console.warn(["You tried to return focus to",t,"but it is not in the DOM anymore"].join(" "))}},Oo.popWithoutFocus=function(){r.length>0&&r.pop()},Oo.setupScopedFocus=function(e){o=e,window.addEventListener?(window.addEventListener("blur",a,!1),document.addEventListener("focus",s,!0)):(window.attachEvent("onBlur",a),document.attachEvent("onFocus",s))},Oo.teardownScopedFocus=function(){o=null,window.addEventListener?(window.removeEventListener("blur",a),document.removeEventListener("focus",s)):(window.detachEvent("onBlur",a),document.detachEvent("onFocus",s))};var e,t=Po(),n=(e=t)&&e.__esModule?e:{default:e};var r=[],o=null,i=!1;function a(){i=!0}function s(){if(i){if(i=!1,!o)return;setTimeout(function(){o.contains(document.activeElement)||((0,n.default)(o)[0]||o).focus()},0)}}return Oo}var ko,Lo={exports:{}};function Bo(){return ko||(ko=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=(0,o.default)(e);if(!n.length)return void t.preventDefault();var r=void 0,a=t.shiftKey,s=n[0],l=n[n.length-1],c=i();if(e===c){if(!a)return;r=l}l!==c||a||(r=s);s===c&&a&&(r=l);if(r)return t.preventDefault(),void r.focus();var u=/(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent);if(null==u||"Chrome"==u[1]||null!=/\biPod\b|\biPad\b/g.exec(navigator.userAgent))return;var d=n.indexOf(c);d>-1&&(d+=a?-1:1);if(r=n[d],void 0===r)return t.preventDefault(),void(r=a?l:s).focus();t.preventDefault(),r.focus()};var n,r=Po(),o=(n=r)&&n.__esModule?n:{default:n};function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;return e.activeElement.shadowRoot?i(e.activeElement.shadowRoot):e.activeElement}e.exports=t.default}(Lo,Lo.exports)),Lo.exports}var Do,Go,Mo={};function jo(){if(Go)return Do;Go=1;var e=function(){};if("production"!==process.env.NODE_ENV){var t=function(e,t){var n=arguments.length;t=new Array(n>1?n-1:0);for(var r=1;r<n;r++)t[r-1]=arguments[r];var o=0,i="Warning: "+e.replace(/%s/g,function(){return t[o++]});"undefined"!=typeof console&&console.error(i);try{throw new Error(i)}catch(e){}};e=function(e,n,r){var o=arguments.length;r=new Array(o>2?o-2:0);for(var i=2;i<o;i++)r[i-2]=arguments[i];if(void 0===n)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");e||t.apply(null,[n].concat(r))}}return Do=e}var Vo,Fo,_o,Ho={},Wo={exports:{}};function Xo(){if(Fo)return Ho;Fo=1,Object.defineProperty(Ho,"__esModule",{value:!0}),Ho.canUseDOM=Ho.SafeNodeList=Ho.SafeHTMLCollection=void 0;var e,t=(Vo||(Vo=1,function(e){!function(){var t=!("undefined"==typeof window||!window.document||!window.document.createElement),n={canUseDOM:t,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:t&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:t&&!!window.screen};e.exports?e.exports=n:window.ExecutionEnvironment=n}()}(Wo)),Wo.exports);var n=((e=t)&&e.__esModule?e:{default:e}).default,r=n.canUseDOM?window.HTMLElement:{};return Ho.SafeHTMLCollection=n.canUseDOM?window.HTMLCollection:{},Ho.SafeNodeList=n.canUseDOM?window.NodeList:{},Ho.canUseDOM=n.canUseDOM,Ho.default=r,Ho}function zo(){if(_o)return Mo;_o=1,Object.defineProperty(Mo,"__esModule",{value:!0}),Mo.resetState=function(){o&&(o.removeAttribute?o.removeAttribute("aria-hidden"):null!=o.length?o.forEach(function(e){return e.removeAttribute("aria-hidden")}):document.querySelectorAll(o).forEach(function(e){return e.removeAttribute("aria-hidden")}));o=null},Mo.log=function(){if("production"!==process.env.NODE_ENV){var e=o||{};console.log("ariaAppHider ----------"),console.log(e.nodeName,e.className,e.id),console.log("end ariaAppHider ----------")}},Mo.assertNodeList=i,Mo.setElement=function(e){var t=e;if("string"==typeof t&&r.canUseDOM){var n=document.querySelectorAll(t);i(n,t),t=n}return o=t||o},Mo.validateElement=a,Mo.hide=function(e){var t=!0,n=!1,r=void 0;try{for(var o,i=a(e)[Symbol.iterator]();!(t=(o=i.next()).done);t=!0){o.value.setAttribute("aria-hidden","true")}}catch(e){n=!0,r=e}finally{try{!t&&i.return&&i.return()}finally{if(n)throw r}}},Mo.show=function(e){var t=!0,n=!1,r=void 0;try{for(var o,i=a(e)[Symbol.iterator]();!(t=(o=i.next()).done);t=!0){o.value.removeAttribute("aria-hidden")}}catch(e){n=!0,r=e}finally{try{!t&&i.return&&i.return()}finally{if(n)throw r}}},Mo.documentNotReadyOrSSRTesting=function(){o=null};var e,t=jo(),n=(e=t)&&e.__esModule?e:{default:e},r=Xo();var o=null;function i(e,t){if(!e||!e.length)throw new Error("react-modal: No elements were found for selector "+t+".")}function a(e){var t=e||o;return t?Array.isArray(t)||t instanceof HTMLCollection||t instanceof NodeList?t:[t]:((0,n.default)(!1,["react-modal: App element is not defined.","Please use `Modal.setAppElement(el)` or set `appElement={el}`.","This is needed so screen readers don't see main content","when modal is opened. It is not recommended, but you can opt-out","by setting `ariaHideApp={false}`."].join(" ")),[])}return Mo}var Zo,Yo={};function Uo(){if(Zo)return Yo;Zo=1,Object.defineProperty(Yo,"__esModule",{value:!0}),Yo.resetState=function(){var r=document.getElementsByTagName("html")[0];for(var o in e)n(r,e[o]);var i=document.body;for(var a in t)n(i,t[a]);e={},t={}},Yo.log=function(){if("production"!==process.env.NODE_ENV){var n=document.getElementsByTagName("html")[0].className,r="Show tracked classes:\n\n";for(var o in r+="<html /> ("+n+"):\n ",e)r+=" "+o+" "+e[o]+"\n ";for(var i in r+="\n\ndoc.body ("+(n=document.body.className)+"):\n ",t)r+=" "+i+" "+t[i]+"\n ";r+="\n",console.log(r)}};var e={},t={};function n(e,t){e.classList.remove(t)}return Yo.add=function(n,r){return o=n.classList,i="html"==n.nodeName.toLowerCase()?e:t,void r.split(" ").forEach(function(e){!function(e,t){e[t]||(e[t]=0),e[t]+=1}(i,e),o.add(e)});var o,i},Yo.remove=function(n,r){return o=n.classList,i="html"==n.nodeName.toLowerCase()?e:t,void r.split(" ").forEach(function(e){!function(e,t){e[t]&&(e[t]-=1)}(i,e),0===i[e]&&o.remove(e)});var o,i},Yo}var Jo,$o={};function Ko(){if(Jo)return $o;Jo=1,Object.defineProperty($o,"__esModule",{value:!0}),$o.log=function(){console.log("portalOpenInstances ----------"),console.log(t.openInstances.length),t.openInstances.forEach(function(e){return console.log(e)}),console.log("end portalOpenInstances ----------")},$o.resetState=function(){t=new e};var e=function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.register=function(e){-1===t.openInstances.indexOf(e)?(t.openInstances.push(e),t.emit("register")):"production"!==process.env.NODE_ENV&&console.warn("React-Modal: Cannot register modal instance that's already open")},this.deregister=function(e){var n=t.openInstances.indexOf(e);-1!==n?(t.openInstances.splice(n,1),t.emit("deregister")):"production"!==process.env.NODE_ENV&&console.warn("React-Modal: Unable to deregister "+e+" as it was never registered")},this.subscribe=function(e){t.subscribers.push(e)},this.emit=function(e){t.subscribers.forEach(function(n){return n(e,t.openInstances.slice())})},this.openInstances=[],this.subscribers=[]},t=new e;return $o.default=t,$o}var Qo,qo,ei={};function ti(){return qo||(qo=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r="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},i=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=o,s=g(Eo()),l=m(Ro()),c=g(Bo()),u=m(zo()),d=m(Uo()),p=Xo(),f=g(p),h=g(Ko());function m(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function g(e){return e&&e.__esModule?e:{default:e}}!function(){if(Qo)return ei;Qo=1,Object.defineProperty(ei,"__esModule",{value:!0}),ei.resetState=function(){for(var e=[r,o],t=0;t<e.length;t++){var n=e[t];n&&n.parentNode&&n.parentNode.removeChild(n)}r=o=null,i=[]},ei.log=function(){console.log("bodyTrap ----------"),console.log(i.length);for(var e=[r,o],t=0;t<e.length;t++){var n=e[t]||{};console.log(n.nodeName,n.className,n.id)}console.log("edn bodyTrap ----------")};var e,t=Ko(),n=(e=t)&&e.__esModule?e:{default:e},r=void 0,o=void 0,i=[];function a(){0!==i.length?i[i.length-1].focusContent():"production"!==process.env.NODE_ENV&&console.warn("React-Modal: Open instances > 0 expected")}n.default.subscribe(function(e,t){r||o||((r=document.createElement("div")).setAttribute("data-react-modal-body-trap",""),r.style.position="absolute",r.style.opacity="0",r.setAttribute("tabindex","0"),r.addEventListener("focus",a),(o=r.cloneNode()).addEventListener("focus",a)),(i=t).length>0?(document.body.firstChild!==r&&document.body.insertBefore(r,document.body.firstChild),document.body.lastChild!==o&&document.body.appendChild(o)):(r.parentElement&&r.parentElement.removeChild(r),o.parentElement&&o.parentElement.removeChild(o))})}();var b={overlay:"ReactModal__Overlay",content:"ReactModal__Content"},v=0,y=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.setOverlayRef=function(e){n.overlay=e,n.props.overlayRef&&n.props.overlayRef(e)},n.setContentRef=function(e){n.content=e,n.props.contentRef&&n.props.contentRef(e)},n.afterClose=function(){var e=n.props,t=e.appElement,r=e.ariaHideApp,o=e.htmlOpenClassName,i=e.bodyOpenClassName,a=e.parentSelector,s=a&&a().ownerDocument||document;i&&d.remove(s.body,i),o&&d.remove(s.getElementsByTagName("html")[0],o),r&&v>0&&0===(v-=1)&&u.show(t),n.props.shouldFocusAfterRender&&(n.props.shouldReturnFocusAfterClose?(l.returnFocus(n.props.preventScroll),l.teardownScopedFocus()):l.popWithoutFocus()),n.props.onAfterClose&&n.props.onAfterClose(),h.default.deregister(n)},n.open=function(){n.beforeOpen(),n.state.afterOpen&&n.state.beforeClose?(clearTimeout(n.closeTimer),n.setState({beforeClose:!1})):(n.props.shouldFocusAfterRender&&(l.setupScopedFocus(n.node),l.markForFocusLater()),n.setState({isOpen:!0},function(){n.openAnimationFrame=requestAnimationFrame(function(){n.setState({afterOpen:!0}),n.props.isOpen&&n.props.onAfterOpen&&n.props.onAfterOpen({overlayEl:n.overlay,contentEl:n.content})})}))},n.close=function(){n.props.closeTimeoutMS>0?n.closeWithTimeout():n.closeWithoutTimeout()},n.focusContent=function(){return n.content&&!n.contentHasFocus()&&n.content.focus({preventScroll:!0})},n.closeWithTimeout=function(){var e=Date.now()+n.props.closeTimeoutMS;n.setState({beforeClose:!0,closesAt:e},function(){n.closeTimer=setTimeout(n.closeWithoutTimeout,n.state.closesAt-Date.now())})},n.closeWithoutTimeout=function(){n.setState({beforeClose:!1,isOpen:!1,afterOpen:!1,closesAt:null},n.afterClose)},n.handleKeyDown=function(e){(function(e){return"Tab"===e.code||9===e.keyCode})(e)&&(0,c.default)(n.content,e),n.props.shouldCloseOnEsc&&function(e){return"Escape"===e.code||27===e.keyCode}(e)&&(e.stopPropagation(),n.requestClose(e))},n.handleOverlayOnClick=function(e){null===n.shouldClose&&(n.shouldClose=!0),n.shouldClose&&n.props.shouldCloseOnOverlayClick&&(n.ownerHandlesClose()?n.requestClose(e):n.focusContent()),n.shouldClose=null},n.handleContentOnMouseUp=function(){n.shouldClose=!1},n.handleOverlayOnMouseDown=function(e){n.props.shouldCloseOnOverlayClick||e.target!=n.overlay||e.preventDefault()},n.handleContentOnClick=function(){n.shouldClose=!1},n.handleContentOnMouseDown=function(){n.shouldClose=!1},n.requestClose=function(e){return n.ownerHandlesClose()&&n.props.onRequestClose(e)},n.ownerHandlesClose=function(){return n.props.onRequestClose},n.shouldBeClosed=function(){return!n.state.isOpen&&!n.state.beforeClose},n.contentHasFocus=function(){return document.activeElement===n.content||n.content.contains(document.activeElement)},n.buildClassName=function(e,t){var o="object"===(void 0===t?"undefined":r(t))?t:{base:b[e],afterOpen:b[e]+"--after-open",beforeClose:b[e]+"--before-close"},i=o.base;return n.state.afterOpen&&(i=i+" "+o.afterOpen),n.state.beforeClose&&(i=i+" "+o.beforeClose),"string"==typeof t&&t?i+" "+t:i},n.attributesFromObject=function(e,t){return Object.keys(t).reduce(function(n,r){return n[e+"-"+r]=t[r],n},{})},n.state={afterOpen:!1,beforeClose:!1},n.shouldClose=null,n.moveFromContentToOverlay=null,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"componentDidMount",value:function(){this.props.isOpen&&this.open()}},{key:"componentDidUpdate",value:function(e,t){"production"!==process.env.NODE_ENV&&(e.bodyOpenClassName!==this.props.bodyOpenClassName&&console.warn('React-Modal: "bodyOpenClassName" prop has been modified. This may cause unexpected behavior when multiple modals are open.'),e.htmlOpenClassName!==this.props.htmlOpenClassName&&console.warn('React-Modal: "htmlOpenClassName" prop has been modified. This may cause unexpected behavior when multiple modals are open.')),this.props.isOpen&&!e.isOpen?this.open():!this.props.isOpen&&e.isOpen&&this.close(),this.props.shouldFocusAfterRender&&this.state.isOpen&&!t.isOpen&&this.focusContent()}},{key:"componentWillUnmount",value:function(){this.state.isOpen&&this.afterClose(),clearTimeout(this.closeTimer),cancelAnimationFrame(this.openAnimationFrame)}},{key:"beforeOpen",value:function(){var e=this.props,t=e.appElement,n=e.ariaHideApp,r=e.htmlOpenClassName,o=e.bodyOpenClassName,i=e.parentSelector,a=i&&i().ownerDocument||document;o&&d.add(a.body,o),r&&d.add(a.getElementsByTagName("html")[0],r),n&&(v+=1,u.hide(t)),h.default.register(this)}},{key:"render",value:function(){var e=this.props,t=e.id,r=e.className,o=e.overlayClassName,i=e.defaultStyles,a=e.children,s=r?{}:i.content,l=o?{}:i.overlay;if(this.shouldBeClosed())return null;var c={ref:this.setOverlayRef,className:this.buildClassName("overlay",o),style:n({},l,this.props.style.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown},u=n({id:t,ref:this.setContentRef,style:n({},s,this.props.style.content),className:this.buildClassName("content",r),tabIndex:"-1",onKeyDown:this.handleKeyDown,onMouseDown:this.handleContentOnMouseDown,onMouseUp:this.handleContentOnMouseUp,onClick:this.handleContentOnClick,role:this.props.role,"aria-label":this.props.contentLabel},this.attributesFromObject("aria",n({modal:!0},this.props.aria)),this.attributesFromObject("data",this.props.data||{}),{"data-testid":this.props.testId}),d=this.props.contentElement(u,a);return this.props.overlayElement(c,d)}}]),t}(a.Component);y.defaultProps={style:{overlay:{},content:{}},defaultStyles:{}},y.propTypes={isOpen:s.default.bool.isRequired,defaultStyles:s.default.shape({content:s.default.object,overlay:s.default.object}),style:s.default.shape({content:s.default.object,overlay:s.default.object}),className:s.default.oneOfType([s.default.string,s.default.object]),overlayClassName:s.default.oneOfType([s.default.string,s.default.object]),parentSelector:s.default.func,bodyOpenClassName:s.default.string,htmlOpenClassName:s.default.string,ariaHideApp:s.default.bool,appElement:s.default.oneOfType([s.default.instanceOf(f.default),s.default.instanceOf(p.SafeHTMLCollection),s.default.instanceOf(p.SafeNodeList),s.default.arrayOf(s.default.instanceOf(f.default))]),onAfterOpen:s.default.func,onAfterClose:s.default.func,onRequestClose:s.default.func,closeTimeoutMS:s.default.number,shouldFocusAfterRender:s.default.bool,shouldCloseOnOverlayClick:s.default.bool,shouldReturnFocusAfterClose:s.default.bool,preventScroll:s.default.bool,role:s.default.string,contentLabel:s.default.string,aria:s.default.object,data:s.default.object,children:s.default.node,shouldCloseOnEsc:s.default.bool,overlayRef:s.default.func,contentRef:s.default.func,id:s.default.string,overlayElement:s.default.func,contentElement:s.default.func,testId:s.default.string},t.default=y,e.exports=t.default}(To,To.exports)),To.exports}function ni(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function ri(e){this.setState(function(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!=n?n:null}.bind(this))}function oi(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}ni.__suppressDeprecationWarning=!0,ri.__suppressDeprecationWarning=!0,oi.__suppressDeprecationWarning=!0;var ii,ai,si=Object.freeze({__proto__:null,polyfill:function(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var n=null,r=null,o=null;if("function"==typeof t.componentWillMount?n="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?r="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(r="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?o="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(o="UNSAFE_componentWillUpdate"),null!==n||null!==r||null!==o){var i=e.displayName||e.name,a="function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+i+" uses "+a+" but also contains the following legacy lifecycles:"+(null!==n?"\n "+n:"")+(null!==r?"\n "+r:"")+(null!==o?"\n "+o:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=ni,t.componentWillReceiveProps=ri),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=oi;var s=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var r=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;s.call(this,e,t,r)}}return e}}),li=We(si);function ci(){if(ii)return $r;ii=1,Object.defineProperty($r,"__esModule",{value:!0}),$r.bodyOpenClassName=$r.portalClassName=void 0;var e=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},t=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),n=o,r=p(n),i=p(C),a=p(Eo()),s=p(ti()),l=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(zo()),c=Xo(),u=p(c),d=li;function p(e){return e&&e.__esModule?e:{default:e}}function f(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var h=$r.portalClassName="ReactModalPortal",m=$r.bodyOpenClassName="ReactModal__Body--open",g=c.canUseDOM&&void 0!==i.default.createPortal,b=function(e){return document.createElement(e)},v=function(){return g?i.default.createPortal:i.default.unstable_renderSubtreeIntoContainer};function y(e){return e()}var x=function(n){function o(){var t,n,a;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o);for(var l=arguments.length,c=Array(l),u=0;u<l;u++)c[u]=arguments[u];return n=a=f(this,(t=o.__proto__||Object.getPrototypeOf(o)).call.apply(t,[this].concat(c))),a.removePortal=function(){!g&&i.default.unmountComponentAtNode(a.node);var e=y(a.props.parentSelector);e&&e.contains(a.node)?e.removeChild(a.node):console.warn('React-Modal: "parentSelector" prop did not returned any DOM element. Make sure that the parent element is unmounted to avoid any memory leaks.')},a.portalRef=function(e){a.portal=e},a.renderPortal=function(t){var n=v()(a,r.default.createElement(s.default,e({defaultStyles:o.defaultStyles},t)),a.node);a.portalRef(n)},f(a,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(o,n),t(o,[{key:"componentDidMount",value:function(){c.canUseDOM&&(g||(this.node=b("div")),this.node.className=this.props.portalClassName,y(this.props.parentSelector).appendChild(this.node),!g&&this.renderPortal(this.props))}},{key:"getSnapshotBeforeUpdate",value:function(e){return{prevParent:y(e.parentSelector),nextParent:y(this.props.parentSelector)}}},{key:"componentDidUpdate",value:function(e,t,n){if(c.canUseDOM){var r=this.props,o=r.isOpen,i=r.portalClassName;e.portalClassName!==i&&(this.node.className=i);var a=n.prevParent,s=n.nextParent;s!==a&&(a.removeChild(this.node),s.appendChild(this.node)),(e.isOpen||o)&&!g&&this.renderPortal(this.props)}}},{key:"componentWillUnmount",value:function(){if(c.canUseDOM&&this.node&&this.portal){var e=this.portal.state,t=Date.now(),n=e.isOpen&&this.props.closeTimeoutMS&&(e.closesAt||t+this.props.closeTimeoutMS);n?(e.beforeClose||this.portal.closeWithTimeout(),setTimeout(this.removePortal,n-t)):this.removePortal()}}},{key:"render",value:function(){return c.canUseDOM&&g?(!this.node&&g&&(this.node=b("div")),v()(r.default.createElement(s.default,e({ref:this.portalRef,defaultStyles:o.defaultStyles},this.props)),this.node)):null}}],[{key:"setAppElement",value:function(e){l.setElement(e)}}]),o}(n.Component);return x.propTypes={isOpen:a.default.bool.isRequired,style:a.default.shape({content:a.default.object,overlay:a.default.object}),portalClassName:a.default.string,bodyOpenClassName:a.default.string,htmlOpenClassName:a.default.string,className:a.default.oneOfType([a.default.string,a.default.shape({base:a.default.string.isRequired,afterOpen:a.default.string.isRequired,beforeClose:a.default.string.isRequired})]),overlayClassName:a.default.oneOfType([a.default.string,a.default.shape({base:a.default.string.isRequired,afterOpen:a.default.string.isRequired,beforeClose:a.default.string.isRequired})]),appElement:a.default.oneOfType([a.default.instanceOf(u.default),a.default.instanceOf(c.SafeHTMLCollection),a.default.instanceOf(c.SafeNodeList),a.default.arrayOf(a.default.instanceOf(u.default))]),onAfterOpen:a.default.func,onRequestClose:a.default.func,closeTimeoutMS:a.default.number,ariaHideApp:a.default.bool,shouldFocusAfterRender:a.default.bool,shouldCloseOnOverlayClick:a.default.bool,shouldReturnFocusAfterClose:a.default.bool,preventScroll:a.default.bool,parentSelector:a.default.func,aria:a.default.object,data:a.default.object,role:a.default.string,contentLabel:a.default.string,shouldCloseOnEsc:a.default.bool,overlayRef:a.default.func,contentRef:a.default.func,id:a.default.string,overlayElement:a.default.func,contentElement:a.default.func},x.defaultProps={isOpen:!1,portalClassName:h,bodyOpenClassName:m,role:"dialog",ariaHideApp:!0,closeTimeoutMS:0,shouldFocusAfterRender:!0,shouldCloseOnEsc:!0,shouldCloseOnOverlayClick:!0,shouldReturnFocusAfterClose:!0,preventScroll:!1,parentSelector:function(){return document.body},overlayElement:function(e,t){return r.default.createElement("div",e,t)},contentElement:function(e,t){return r.default.createElement("div",e,t)}},x.defaultStyles={overlay:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(255, 255, 255, 0.75)"},content:{position:"absolute",top:"40px",left:"40px",right:"40px",bottom:"40px",border:"1px solid #ccc",background:"#fff",overflow:"auto",WebkitOverflowScrolling:"touch",borderRadius:"4px",outline:"none",padding:"20px"}},(0,d.polyfill)(x),"production"!==process.env.NODE_ENV&&(x.setCreateHTMLElement=function(e){return b=e}),$r.default=x,$r}var ui=He((ai||(ai=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n,r=ci(),o=(n=r)&&n.__esModule?n:{default:n};t.default=o.default,e.exports=t.default}(Jr,Jr.exports)),Jr.exports));function di(){return di=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},di.apply(null,arguments)}function pi(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}function fi(e,t){return fi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},fi(e,t)}var hi=He(Eo()),mi=!1,gi="production"!==process.env.NODE_ENV?hi.oneOfType([hi.number,hi.shape({enter:hi.number,exit:hi.number,appear:hi.number}).isRequired]):null;"production"!==process.env.NODE_ENV&&hi.oneOfType([hi.string,hi.shape({enter:hi.string,exit:hi.string,active:hi.string}),hi.shape({enter:hi.string,enterDone:hi.string,enterActive:hi.string,exit:hi.string,exitDone:hi.string,exitActive:hi.string})]);var bi=o.createContext(null),vi="unmounted",yi="exited",xi="entering",Ii="entered",wi="exiting",Ci=function(e){var t,n;function r(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=yi,r.appearStatus=xi):o=Ii:o=t.unmountOnExit||t.mountOnEnter?vi:yi,r.state={status:o},r.nextCallback=null,r}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,fi(t,n),r.getDerivedStateFromProps=function(e,t){return e.in&&t.status===vi?{status:yi}:null};var i=r.prototype;return i.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},i.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==xi&&n!==Ii&&(t=xi):n!==xi&&n!==Ii||(t=wi)}this.updateStatus(!1,t)},i.componentWillUnmount=function(){this.cancelNextCallback()},i.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},i.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===xi){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:C.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===yi&&this.setState({status:vi})},i.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[C.findDOMNode(this),r],i=o[0],a=o[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||mi?this.safeSetState({status:Ii},function(){t.props.onEntered(i)}):(this.props.onEnter(i,a),this.safeSetState({status:xi},function(){t.props.onEntering(i,a),t.onTransitionEnd(l,function(){t.safeSetState({status:Ii},function(){t.props.onEntered(i,a)})})}))},i.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:C.findDOMNode(this);t&&!mi?(this.props.onExit(r),this.safeSetState({status:wi},function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,function(){e.safeSetState({status:yi},function(){e.props.onExited(r)})})})):this.safeSetState({status:yi},function(){e.props.onExited(r)})},i.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},i.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},i.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},i.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:C.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},i.render=function(){var e=this.state.status;if(e===vi)return null;var t=this.props,n=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var r=pi(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return o.createElement(bi.Provider,{value:null},"function"==typeof n?n(e,r):o.cloneElement(o.Children.only(n),r))},r}(o.Component);function Ei(){}Ci.contextType=bi,Ci.propTypes="production"!==process.env.NODE_ENV?{nodeRef:hi.shape({current:"undefined"==typeof Element?hi.any:function(e,t,n,r,o,i){var a=e[t];return hi.instanceOf(a&&"ownerDocument"in a?a.ownerDocument.defaultView.Element:Element)(e,t,n,r,o,i)}}),children:hi.oneOfType([hi.func.isRequired,hi.element.isRequired]).isRequired,in:hi.bool,mountOnEnter:hi.bool,unmountOnExit:hi.bool,appear:hi.bool,enter:hi.bool,exit:hi.bool,timeout:function(e){var t=gi;e.addEndListener||(t=t.isRequired);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return t.apply(void 0,[e].concat(r))},addEndListener:hi.func,onEnter:hi.func,onEntering:hi.func,onEntered:hi.func,onExit:hi.func,onExiting:hi.func,onExited:hi.func}:{},Ci.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Ei,onEntering:Ei,onEntered:Ei,onExit:Ei,onExiting:Ei,onExited:Ei},Ci.UNMOUNTED=vi,Ci.EXITED=yi,Ci.ENTERING=xi,Ci.ENTERED=Ii,Ci.EXITING=wi;const Ai=({size:n="md",shape:r="default",animation:o="popper",centered:i,title:s,isOpen:u,children:d,bodyStyle:p,className:f,bodyClassName:h,portalClassName:m,overlayClassName:g,closeButtonClassName:b,closeWrapperClassName:v,onRequestClose:y,parentSelector:x,hideScrollOnIsOpenFalse:I=!0,hideCloseButton:w=!1,...C})=>{Yr(u,I);const[E,A]=c(!1);a(()=>{A(u)},[u]);const S=l(()=>{if("undefined"==typeof document)return null;let e=document.querySelector("main")||document.body;return x&&(e=document.querySelector(x)||document.body),e},[x]);if(!S)return null;if(!u)return null;const T=e=>({xl:"inset-[5%] min-h-fit",lg:"inset-[10%] min-h-fit",md:"inset-[15%] min-h-fit",sm:"top-[18%] w-[640px]",xs:"w-[calc(100%-30px)]"}[e]),O=(e,t)=>{if("popper"===e){const e="transition-transform duration-300";return"entering"===t||"entered"===t?`${e} opacity-100 ${"entered"===t?"translate-y-0 pointer-events-auto":""}`:"exiting"===t||"exited"===t?`${e} opacity-0 translate-y-[-18px] duration-[180ms]`:`${e} opacity-0 translate-y-[-18px]`}if("bottomSheet"===e){const e="transition-transform duration-200 ease-in-out";return"entering"===t||"entered"===t?`${e} opacity-100 ${"entered"===t?"translate-y-0 pointer-events-auto":""}`:"exiting"===t||"exited"===t?`${e} opacity-0 translate-y-full duration-[180ms]`:`${e} opacity-0 translate-y-full`}return""};return e(Ci,{enter:!0,exit:!0,in:E,timeout:0,children:a=>t(ui,{ariaHideApp:!1,isOpen:u,onRequestClose:y,closeTimeoutMS:0,parentSelector:()=>S,className:je("absolute min-w-[150px] max-w-[calc(100vw-30px)] overflow-auto rounded-lg bg-white outline-none",T(n),"rounded"===r&&"rounded-3xl",i&&"top-0 translate-y-[calc(50vh-50%)]",O(o,a),f),portalClassName:je("z-80",m),overlayClassName:je("z-80 fixed inset-0 bg-black/50 flex items-center justify-center pb-[300px]",g),...C,children:[!w&&e("div",{className:je(v),children:e(Vr,{className:je("absolute right-0 top-0 float-right h-6 cursor-pointer p-5 text-text",b),onClick:y,"data-testid":"close-button","data-track-element-name":"modal_close_button","data-track-click-text":"Close Modal","data-track-element-clicked":"modal",children:e(kn,{name:"close",size:24})})}),s?e("div",{className:je("border-b border-border-secondary-on-bg-fill px-[7px] py-[7px] text-text"),children:s}):null,e("div",{className:je("p-5",h),style:p,"data-testid":C["data-testid"],"data-cy":C["data-cy"],children:d})]})})};Ai.displayName="Modal";const Si=t=>{const{open:n,children:r}=t,o=s(null),[i,l]=c(0);a(()=>{const e=o.current;if(!e)return;const t=()=>{l(n?e.scrollHeight:0)};let r;return t(),n&&(r=new ResizeObserver(()=>t()),r.observe(e)),()=>{r&&r.disconnect()}},[n,r]);return e("div",{className:"overflow-hidden transition-all duration-300 ease-in-out",style:{maxHeight:i,opacity:n?1:0},"aria-hidden":!n,...n?{}:{inert:""},children:e("div",{ref:o,children:r})})};Si.displayName="Collapse";const Ti=n=>{const{title:r,defaultOpen:o,children:i,containerClassName:s,titleClassName:l,className:u,buttonClassName:d,iconClassName:p,openOnlyOnDesktop:f,borderRadiusNone:h=!1}=n,[m,g]=c(Boolean(!1));return a(()=>{if(f){const e=window.innerWidth>=1024;g(e)}else g(Boolean(o))},[f,o]),t("div",{className:je(h?"rounded-none border":"rounded-surface-xs border",s),children:[t(Vr,{type:"button",className:je(h?"rounded-none":"rounded-t-surface-xs","flex w-full items-center justify-between gap-4 px-4 py-3 text-left",d),onClick:()=>g(e=>!e),children:[e("span",{className:je("label5 flex-1",l),children:r}),e(kn,{className:je("flex-shrink-0",p),name:m?"keyboard_arrow_up":"keyboard_arrow_down",fill:1,size:24})]}),e(Si,{open:m,children:e("div",{className:je("px-4 py-4",u),children:i})})]})};Ti.displayName="Accordion";const Oi=({state:n,checked:r=!1,onChange:o,className:i,label:a,labelClassName:s,containerClassName:l,name:c,value:d,id:p,disabled:f=!1,required:h=!1,error:m=!1,"data-cy":g,renderInfoIcon:b,...v})=>{var y,x;const I=f||"disabled"===n,w=p||c,C=je("flex items-center justify-center w-6 h-6 rounded-[4px] outline-offset-2","focus"===n&&"outline",i),E=u(e=>{I||o&&(1===o.length?o(e.target.checked):o())},[I,o]);return t("div",{className:je("flex items-center gap-3",l),children:[t("div",{className:"relative",children:[e("input",{type:"checkbox",id:w,name:c,value:d,checked:r,onChange:E,disabled:I,required:h,className:"peer sr-only","data-cy":g,...v}),e("label",{htmlFor:w,className:je("peer-focus:outline",C),style:{pointerEvents:I?"none":"auto"},children:t("svg",r?{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:[e("rect",{width:"24",height:"24",rx:"4",className:je(I?"fill-checkbox-bg-surface-selected-disabled":"fill-bg-fill-brand")}),e("path",{d:"M8 11.9593L11.0316 15L17 9",stroke:"white",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round"})]}:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:[e("rect",{x:"0.5",y:"0.5",width:"23",height:"23",rx:"3.5",className:je(I?"fill-checkbox-bg-surface-disabled":"fill-white")}),e("rect",{x:"0.5",y:"0.5",width:"23",height:"23",rx:"3.5",stroke:"#CECECE"})]})})]}),a&&e("label",{htmlFor:w,className:je("cursor-pointer",m&&"text-text-critical",s),children:a}),b&&e(Vr,{type:"button",onClick:b.onClick,"data-testid":b.dataTestId,className:"ml-2 cursor-pointer text-icon-info","aria-label":"More information",children:t("svg",{xmlns:"http://www.w3.org/2000/svg",width:null!==(y=b.iconSize)&&void 0!==y?y:24,height:null!==(x=b.iconSize)&&void 0!==x?x:24,viewBox:"0 0 24 24",fill:"none",children:[e("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"2"}),e("path",{d:"M12 16v-4",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),e("path",{d:"M12 8h.01",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})})]})};function Ni(e){return Ni="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},Ni(e)}function Pi(e){var t=function(e,t){if("object"!=Ni(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=Ni(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ni(t)?t:t+""}function Ri(e,t,n){return(t=Pi(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ki(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 Li(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ki(Object(n),!0).forEach(function(t){Ri(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ki(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Bi(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 Di(e,t){if(e){if("string"==typeof e)return Bi(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)?Bi(e,t):void 0}}function Gi(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)||Di(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 Mi(e,t){if(null==e)return{};var n,r,o=pi(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}Oi.displayName="Checkbox";var ji=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function Vi(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,Pi(r.key),r)}}function Fi(e){return Fi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Fi(e)}function _i(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(_i=function(){return!!e})()}function Hi(e,t){if(t&&("object"==Ni(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 Wi(e){return function(e){if(Array.isArray(e))return Bi(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Di(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 Xi=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}(),zi="-ms-",Zi="-moz-",Yi="-webkit-",Ui="comm",Ji="rule",$i="decl",Ki="@keyframes",Qi=Math.abs,qi=String.fromCharCode,ea=Object.assign;function ta(e){return e.trim()}function na(e,t,n){return e.replace(t,n)}function ra(e,t){return e.indexOf(t)}function oa(e,t){return 0|e.charCodeAt(t)}function ia(e,t,n){return e.slice(t,n)}function aa(e){return e.length}function sa(e){return e.length}function la(e,t){return t.push(e),e}var ca=1,ua=1,da=0,pa=0,fa=0,ha="";function ma(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:ca,column:ua,length:a,return:""}}function ga(e,t){return ea(ma("",null,null,"",null,null,0),e,{length:-e.length},t)}function ba(){return fa=pa>0?oa(ha,--pa):0,ua--,10===fa&&(ua=1,ca--),fa}function va(){return fa=pa<da?oa(ha,pa++):0,ua++,10===fa&&(ua=1,ca++),fa}function ya(){return oa(ha,pa)}function xa(){return pa}function Ia(e,t){return ia(ha,e,t)}function wa(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 Ca(e){return ca=ua=1,da=aa(ha=e),pa=0,[]}function Ea(e){return ha="",e}function Aa(e){return ta(Ia(pa-1,Oa(91===e?e+2:40===e?e+1:e)))}function Sa(e){for(;(fa=ya())&&fa<33;)va();return wa(e)>2||wa(fa)>3?"":" "}function Ta(e,t){for(;--t&&va()&&!(fa<48||fa>102||fa>57&&fa<65||fa>70&&fa<97););return Ia(e,xa()+(t<6&&32==ya()&&32==va()))}function Oa(e){for(;va();)switch(fa){case e:return pa;case 34:case 39:34!==e&&39!==e&&Oa(fa);break;case 40:41===e&&Oa(e);break;case 92:va()}return pa}function Na(e,t){for(;va()&&e+fa!==57&&(e+fa!==84||47!==ya()););return"/*"+Ia(t,pa-1)+"*"+qi(47===e?e:va())}function Pa(e){for(;!wa(ya());)va();return Ia(e,pa)}function Ra(e){return Ea(ka("",null,null,null,[""],e=Ca(e),0,[0],e))}function ka(e,t,n,r,o,i,a,s,l){for(var c=0,u=0,d=a,p=0,f=0,h=0,m=1,g=1,b=1,v=0,y="",x=o,I=i,w=r,C=y;g;)switch(h=v,v=va()){case 40:if(108!=h&&58==oa(C,d-1)){-1!=ra(C+=na(Aa(v),"&","&\f"),"&\f")&&(b=-1);break}case 34:case 39:case 91:C+=Aa(v);break;case 9:case 10:case 13:case 32:C+=Sa(h);break;case 92:C+=Ta(xa()-1,7);continue;case 47:switch(ya()){case 42:case 47:la(Ba(Na(va(),xa()),t,n),l);break;default:C+="/"}break;case 123*m:s[c++]=aa(C)*b;case 125*m:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+u:-1==b&&(C=na(C,/\f/g,"")),f>0&&aa(C)-d&&la(f>32?Da(C+";",r,n,d-1):Da(na(C," ","")+";",r,n,d-2),l);break;case 59:C+=";";default:if(la(w=La(C,t,n,c,u,o,s,y,x=[],I=[],d),i),123===v)if(0===u)ka(C,t,w,w,x,i,d,s,I);else switch(99===p&&110===oa(C,3)?100:p){case 100:case 108:case 109:case 115:ka(e,w,w,r&&la(La(e,w,w,0,0,o,s,y,o,x=[],d),I),o,I,d,s,r?x:I);break;default:ka(C,w,w,w,[""],I,0,s,I)}}c=u=f=0,m=b=1,y=C="",d=a;break;case 58:d=1+aa(C),f=h;default:if(m<1)if(123==v)--m;else if(125==v&&0==m++&&125==ba())continue;switch(C+=qi(v),v*m){case 38:b=u>0?1:(C+="\f",-1);break;case 44:s[c++]=(aa(C)-1)*b,b=1;break;case 64:45===ya()&&(C+=Aa(va())),p=ya(),u=d=aa(y=C+=Pa(xa())),v++;break;case 45:45===h&&2==aa(C)&&(m=0)}}return i}function La(e,t,n,r,o,i,a,s,l,c,u){for(var d=o-1,p=0===o?i:[""],f=sa(p),h=0,m=0,g=0;h<r;++h)for(var b=0,v=ia(e,d+1,d=Qi(m=a[h])),y=e;b<f;++b)(y=ta(m>0?p[b]+" "+v:na(v,/&\f/g,p[b])))&&(l[g++]=y);return ma(e,t,n,0===o?Ji:s,l,c,u)}function Ba(e,t,n){return ma(e,t,n,Ui,qi(fa),ia(e,2,-2),0)}function Da(e,t,n,r){return ma(e,t,n,$i,ia(e,0,r),ia(e,r+1,-1),r)}function Ga(e,t){for(var n="",r=sa(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function Ma(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case $i:return e.return=e.return||e.value;case Ui:return"";case Ki:return e.return=e.value+"{"+Ga(e.children,r)+"}";case Ji:e.value=e.props.join(",")}return aa(n=Ga(e.children,r))?e.return=e.value+"{"+n+"}":""}function ja(e){var t=sa(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 Va="undefined"!=typeof document,Fa=function(e,t,n){for(var r=0,o=0;r=o,o=ya(),38===r&&12===o&&(t[n]=1),!wa(o);)va();return Ia(e,pa)},_a=function(e,t){return Ea(function(e,t){var n=-1,r=44;do{switch(wa(r)){case 0:38===r&&12===ya()&&(t[n]=1),e[n]+=Fa(pa-1,t,n);break;case 2:e[n]+=Aa(r);break;case 4:if(44===r){e[++n]=58===ya()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=qi(r)}}while(r=va());return e}(Ca(e),t))},Ha=new WeakMap,Wa=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)||Ha.get(n))&&!r){Ha.set(e,!0);for(var o=[],i=_a(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]}}},Xa=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function za(e,t){switch(function(e,t){return 45^oa(e,0)?(((t<<2^oa(e,0))<<2^oa(e,1))<<2^oa(e,2))<<2^oa(e,3):0}(e,t)){case 5103:return Yi+"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 Yi+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Yi+e+Zi+e+zi+e+e;case 6828:case 4268:return Yi+e+zi+e+e;case 6165:return Yi+e+zi+"flex-"+e+e;case 5187:return Yi+e+na(e,/(\w+).+(:[^]+)/,Yi+"box-$1$2"+zi+"flex-$1$2")+e;case 5443:return Yi+e+zi+"flex-item-"+na(e,/flex-|-self/,"")+e;case 4675:return Yi+e+zi+"flex-line-pack"+na(e,/align-content|flex-|-self/,"")+e;case 5548:return Yi+e+zi+na(e,"shrink","negative")+e;case 5292:return Yi+e+zi+na(e,"basis","preferred-size")+e;case 6060:return Yi+"box-"+na(e,"-grow","")+Yi+e+zi+na(e,"grow","positive")+e;case 4554:return Yi+na(e,/([^-])(transform)/g,"$1"+Yi+"$2")+e;case 6187:return na(na(na(e,/(zoom-|grab)/,Yi+"$1"),/(image-set)/,Yi+"$1"),e,"")+e;case 5495:case 3959:return na(e,/(image-set\([^]*)/,Yi+"$1$`$1");case 4968:return na(na(e,/(.+:)(flex-)?(.*)/,Yi+"box-pack:$3"+zi+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Yi+e+e;case 4095:case 3583:case 4068:case 2532:return na(e,/(.+)-inline(.+)/,Yi+"$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(aa(e)-1-t>6)switch(oa(e,t+1)){case 109:if(45!==oa(e,t+4))break;case 102:return na(e,/(.+:)(.+)-([^]+)/,"$1"+Yi+"$2-$3$1"+Zi+(108==oa(e,t+3)?"$3":"$2-$3"))+e;case 115:return~ra(e,"stretch")?za(na(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==oa(e,t+1))break;case 6444:switch(oa(e,aa(e)-3-(~ra(e,"!important")&&10))){case 107:return na(e,":",":"+Yi)+e;case 101:return na(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Yi+(45===oa(e,14)?"inline-":"")+"box$3$1"+Yi+"$2$3$1"+zi+"$2box$3")+e}break;case 5936:switch(oa(e,t+11)){case 114:return Yi+e+zi+na(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Yi+e+zi+na(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Yi+e+zi+na(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Yi+e+zi+e+e}return e}var Za,Ya,Ua,Ja=Va?void 0:(Za=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},Ya=new WeakMap,function(e){if(Ya.has(e))return Ya.get(e);var t=Za(e);return Ya.set(e,t),t}),$a=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case $i:e.return=za(e.value,e.length);break;case Ki:return Ga([ga(e,{value:na(e.value,"@","@"+Yi)})],r);case Ji: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 Ga([ga(e,{props:[na(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return Ga([ga(e,{props:[na(t,/:(plac\w+)/,":"+Yi+"input-$1")]}),ga(e,{props:[na(t,/:(plac\w+)/,":-moz-$1")]}),ga(e,{props:[na(t,/:(plac\w+)/,zi+"input-$1")]})],r)}return""})}}],Ka=function(e){var t=e.key;if(Va&&"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||$a,a={},s=[];Va&&(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=[Wa,Xa];if(Ja){var u=[Ma],d=ja(c.concat(i,u)),p=Ja(i)(t),f=function(e,t){var n=t.name;return void 0===p[n]&&(p[n]=Ga(Ra(e?e+"{"+t.styles+"}":t.styles),d)),p[n]};o=function(e,t,n,r){var o=t.name,i=f(e,t);return void 0===b.compat?(r&&(b.inserted[o]=!0),i):r?void(b.inserted[o]=i):i}}else{var h,m=[Ma,(l=function(e){h.insert(e)},function(e){e.root||(e=e.return)&&l(e)})],g=ja(c.concat(i,m));o=function(e,t,n,r){h=n,Ga(Ra(e?e+"{"+t.styles+"}":t.styles),g),r&&(b.inserted[t.name]=!0)}}var b={key:t,sheet:new Xi({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},Qa={exports:{}},qa={};var es,ts,ns,rs,os={};
43
43
  /** @license React v16.13.1
44
44
  * react-is.development.js
45
45
  *
@@ -47,5 +47,5 @@ var n="none",r="contents",o=/^(input|select|textarea|button|object|iframe)$/;fun
47
47
  *
48
48
  * This source code is licensed under the MIT license found in the
49
49
  * LICENSE file in the root directory of this source tree.
50
- */function za(){return _a||(_a=1,"production"===process.env.NODE_ENV?Da.exports=function(){if(Ba)return Va;Ba=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,f=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function y(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case t:switch(e=e.type){case l:case c:case r:case i:case o:case d:return e;default:switch(e=e&&e.$$typeof){case s:case u:case h:case f:case a:return e;default:return p}}case n:return p}}}function x(e){return y(e)===c}return Va.AsyncMode=l,Va.ConcurrentMode=c,Va.ContextConsumer=s,Va.ContextProvider=a,Va.Element=t,Va.ForwardRef=u,Va.Fragment=r,Va.Lazy=h,Va.Memo=f,Va.Portal=n,Va.Profiler=i,Va.StrictMode=o,Va.Suspense=d,Va.isAsyncMode=function(e){return x(e)||y(e)===l},Va.isConcurrentMode=x,Va.isContextConsumer=function(e){return y(e)===s},Va.isContextProvider=function(e){return y(e)===a},Va.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Va.isForwardRef=function(e){return y(e)===u},Va.isFragment=function(e){return y(e)===r},Va.isLazy=function(e){return y(e)===h},Va.isMemo=function(e){return y(e)===f},Va.isPortal=function(e){return y(e)===n},Va.isProfiler=function(e){return y(e)===i},Va.isStrictMode=function(e){return y(e)===o},Va.isSuspense=function(e){return y(e)===d},Va.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===c||e===i||e===o||e===d||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===f||e.$$typeof===a||e.$$typeof===s||e.$$typeof===u||e.$$typeof===g||e.$$typeof===b||e.$$typeof===v||e.$$typeof===m)},Va.typeOf=y,Va}():Da.exports=(Fa||(Fa=1,"production"!==process.env.NODE_ENV&&function(){var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,f=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function y(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case t:var m=e.type;switch(m){case l:case c:case r:case i:case o:case d:return m;default:var g=m&&m.$$typeof;switch(g){case s:case u:case h:case f:case a:return g;default:return p}}case n:return p}}}var x=l,I=c,w=s,C=a,E=t,A=u,S=r,T=h,O=f,N=n,P=i,R=o,k=d,L=!1;function B(e){return y(e)===c}Xa.AsyncMode=x,Xa.ConcurrentMode=I,Xa.ContextConsumer=w,Xa.ContextProvider=C,Xa.Element=E,Xa.ForwardRef=A,Xa.Fragment=S,Xa.Lazy=T,Xa.Memo=O,Xa.Portal=N,Xa.Profiler=P,Xa.StrictMode=R,Xa.Suspense=k,Xa.isAsyncMode=function(e){return L||(L=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),B(e)||y(e)===l},Xa.isConcurrentMode=B,Xa.isContextConsumer=function(e){return y(e)===s},Xa.isContextProvider=function(e){return y(e)===a},Xa.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Xa.isForwardRef=function(e){return y(e)===u},Xa.isFragment=function(e){return y(e)===r},Xa.isLazy=function(e){return y(e)===h},Xa.isMemo=function(e){return y(e)===f},Xa.isPortal=function(e){return y(e)===n},Xa.isProfiler=function(e){return y(e)===i},Xa.isStrictMode=function(e){return y(e)===o},Xa.isSuspense=function(e){return y(e)===d},Xa.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===c||e===i||e===o||e===d||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===f||e.$$typeof===a||e.$$typeof===s||e.$$typeof===u||e.$$typeof===g||e.$$typeof===b||e.$$typeof===v||e.$$typeof===m)},Xa.typeOf=y}()),Xa)),Da.exports}!function(){if(Wa)return Ha;Wa=1;var e=za(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};function i(n){return e.isMemo(n)?r:o[n.$$typeof]||t}o[e.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o[e.Memo]=r;var a=Object.defineProperty,s=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols,c=Object.getOwnPropertyDescriptor,u=Object.getPrototypeOf,d=Object.prototype;Ha=function e(t,r,o){if("string"!=typeof r){if(d){var p=u(r);p&&p!==d&&e(t,p,o)}var f=s(r);l&&(f=f.concat(l(r)));for(var h=i(t),m=i(r),g=0;g<f.length;++g){var b=f[g];if(!(n[b]||o&&o[b]||m&&m[b]||h&&h[b])){var v=c(r,b);try{a(t,b,v)}catch(e){}}}}return t}}();var Za="undefined"!=typeof document;var Ya=function(e,t,n){var r=e.key+"-"+t.name;(!1===n||!1===Za&&void 0!==e.compat)&&void 0===e.registered[r]&&(e.registered[r]=t.styles)};var Ua={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function Ja(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var $a=/[A-Z]|^ms/g,Ka=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Qa=function(e){return 45===e.charCodeAt(1)},qa=function(e){return null!=e&&"boolean"!=typeof e},es=Ja(function(e){return Qa(e)?e:e.replace($a,"-$&").toLowerCase()}),ts=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Ka,function(e,t,n){return rs={name:t,styles:n,next:rs},t})}return 1===Ua[e]||Qa(e)||"number"!=typeof t||0===t?t:t+"px"};function ns(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var o=n;if(1===o.anim)return rs={name:o.name,styles:o.styles,next:rs},o.name;var i=n;if(void 0!==i.styles){var a=i.next;if(void 0!==a)for(;void 0!==a;)rs={name:a.name,styles:a.styles,next:rs},a=a.next;return i.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=ns(e,t,n[o])+";";else for(var i in n){var a=n[i];if("object"!=typeof a){var s=a;qa(s)&&(r+=es(i)+":"+ts(i,s)+";")}else if(Array.isArray(a)&&"string"==typeof a[0]&&null==t)for(var l=0;l<a.length;l++)qa(a[l])&&(r+=es(i)+":"+ts(i,a[l])+";");else{var c=ns(e,t,a);switch(i){case"animation":case"animationName":r+=es(i)+":"+c+";";break;default:r+=i+"{"+c+"}"}}}return r}(e,t,n);case"function":if(void 0!==e){var s=rs,l=n(e);return rs=s,ns(e,t,l)}}return n}var rs,os=/label:\s*([^\s;{]+)\s*(;|$)/g;function is(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";rs=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=ns(n,t,i)):o+=i[0];for(var a=1;a<e.length;a++){if(o+=ns(n,t,e[a]),r)o+=i[a]}os.lastIndex=0;for(var s,l="";null!==(s=os.exec(o));)l+="-"+s[1];var c=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+l;return{name:c,styles:o,next:rs}}var as="undefined"!=typeof document,ss=function(e){return e()},ls=!!r.useInsertionEffect&&r.useInsertionEffect,cs=as&&ls||ss,us="undefined"!=typeof document,ds=r.createContext("undefined"!=typeof HTMLElement?Ma({key:"css"}):null);ds.Provider;var ps=function(e){return i(function(t,n){var r=p(ds);return e(t,r,n)})};us||(ps=function(e){return function(t){var n=p(ds);return null===n?(n=Ma({key:"css"}),r.createElement(ds.Provider,{value:n},e(t,n))):e(t,n)}});var fs,hs,ms=r.createContext({}),gs={}.hasOwnProperty,bs="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",vs=function(e){var t=e.cache,n=e.serialized,o=e.isStringTag;Ya(t,n,o);var i=cs(function(){return function(e,t,n){Ya(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o="",i=t;do{var a=e.insert(t===i?"."+r:"",i,e.sheet,!0);Za||void 0===a||(o+=a),i=i.next}while(void 0!==i);if(!Za&&0!==o.length)return o}}(t,n,o)});if(!us&&void 0!==i){for(var a,s=n.name,l=n.next;void 0!==l;)s+=" "+l.name,l=l.next;return r.createElement("style",((a={})["data-emotion"]=t.key+" "+s,a.dangerouslySetInnerHTML={__html:i},a.nonce=t.sheet.nonce,a))}return null},ys=ps(function(e,t,n){var o=e.css;"string"==typeof o&&void 0!==t.registered[o]&&(o=t.registered[o]);var i=e[bs],a=[o],s="";"string"==typeof e.className?s=function(e,t,n){var r="";return n.split(" ").forEach(function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")}),r}(t.registered,a,e.className):null!=e.className&&(s=e.className+" ");var l=is(a,void 0,r.useContext(ms));s+=t.key+"-"+l.name;var c={};for(var u in e)gs.call(e,u)&&"css"!==u&&u!==bs&&(c[u]=e[u]);return c.className=s,n&&(c.ref=n),r.createElement(r.Fragment,null,r.createElement(vs,{cache:t,serialized:l,isStringTag:"string"==typeof i}),r.createElement(i,c))}),xs=ys,Is=function(e,t){var n=arguments;if(null==t||!gs.call(t,"css"))return r.createElement.apply(void 0,n);var o=n.length,i=new Array(o);i[0]=xs,i[1]=function(e,t){var n={};for(var r in t)gs.call(t,r)&&(n[r]=t[r]);return n[bs]=e,n}(e,t);for(var a=2;a<o;a++)i[a]=n[a];return r.createElement.apply(null,i)};function ws(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return is(t)}fs=Is||(Is={}),hs||(hs=fs.JSX||(fs.JSX={}));const Cs=Math.min,Es=Math.max,As=Math.round,Ss=Math.floor,Ts=e=>({x:e,y:e});function Os(){return"undefined"!=typeof window}function Ns(e){return ks(e)?(e.nodeName||"").toLowerCase():"#document"}function Ps(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Rs(e){var t;return null==(t=(ks(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function ks(e){return!!Os()&&(e instanceof Node||e instanceof Ps(e).Node)}function Ls(e){return!!Os()&&(e instanceof HTMLElement||e instanceof Ps(e).HTMLElement)}function Bs(e){return!(!Os()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof Ps(e).ShadowRoot)}const Gs=new Set(["inline","contents"]);function js(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Ds(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!Gs.has(o)}const Ms=new Set(["html","body","#document"]);function Ds(e){return Ps(e).getComputedStyle(e)}function Vs(e){const t=function(e){if("html"===Ns(e))return e;const t=e.assignedSlot||e.parentNode||Bs(e)&&e.host||Rs(e);return Bs(t)?t.host:t}(e);return function(e){return Ms.has(Ns(e))}(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ls(t)&&js(t)?t:Vs(t)}function Fs(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=Vs(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=Ps(o);if(i){const e=_s(a);return t.concat(a,a.visualViewport||[],js(o)?o:[],e&&n?Fs(e):[])}return t.concat(o,Fs(o,[],n))}function _s(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Hs(e){return t=e,Os()&&(t instanceof Element||t instanceof Ps(t).Element)?e:e.contextElement;var t}function Ws(e){const t=Hs(e);if(!Ls(t))return Ts(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=function(e){const t=Ds(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Ls(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,s=As(n)!==i||As(r)!==a;return s&&(n=i,r=a),{width:n,height:r,$:s}}(t);let a=(i?As(n.width):n.width)/r,s=(i?As(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}function Xs(e,t,n,r){void 0===t&&(t=!1);const o=e.getBoundingClientRect(),i=Hs(e);let a=Ts(1);t&&(a=Ws(e));const s=Ts(0);let l=(o.left+s.x)/a.x,c=(o.top+s.y)/a.y,u=o.width/a.x,d=o.height/a.y;if(i){const e=r;let t=Ps(i),n=_s(t);for(;n&&r&&e!==t;){const e=Ws(n),r=n.getBoundingClientRect(),o=Ds(n),i=r.left+(n.clientLeft+parseFloat(o.paddingLeft))*e.x,a=r.top+(n.clientTop+parseFloat(o.paddingTop))*e.y;l*=e.x,c*=e.y,u*=e.x,d*=e.y,l+=i,c+=a,t=Ps(n),n=_s(t)}}return function(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}({width:u,height:d,x:l,y:c})}function zs(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Zs(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,c=Hs(e),u=o||i?[...c?Fs(c):[],...Fs(t)]:[];u.forEach(e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)});const d=c&&s?function(e,t){let n,r=null;const o=Rs(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function a(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),i();const c=e.getBoundingClientRect(),{left:u,top:d,width:p,height:f}=c;if(s||t(),!p||!f)return;const h={rootMargin:-Ss(d)+"px "+-Ss(o.clientWidth-(u+p))+"px "+-Ss(o.clientHeight-(d+f))+"px "+-Ss(u)+"px",threshold:Es(0,Cs(1,l))||1};let m=!0;function g(t){const r=t[0].intersectionRatio;if(r!==l){if(!m)return a();r?a(!1,r):n=setTimeout(()=>{a(!1,1e-7)},1e3)}1!==r||zs(c,e.getBoundingClientRect())||a(),m=!1}try{r=new IntersectionObserver(g,{...h,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(g,h)}r.observe(e)}(!0),i}(c,n):null;let p,f=-1,h=null;a&&(h=new ResizeObserver(e=>{let[r]=e;r&&r.target===c&&h&&(h.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;null==(e=h)||e.observe(t)})),n()}),c&&!l&&h.observe(c),h.observe(t));let m=l?Xs(e):null;return l&&function t(){const r=Xs(e);m&&!zs(m,r)&&n();m=r,p=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach(e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)}),null==d||d(),null==(e=h)||e.disconnect(),h=null,l&&cancelAnimationFrame(p)}}var Ys="undefined"!=typeof document?f:function(){},Us=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],Js=function(){};function $s(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function Ks(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var i=[].concat(r);if(t&&e)for(var a in t)t.hasOwnProperty(a)&&t[a]&&i.push("".concat($s(e,a)));return i.filter(function(e){return e}).map(function(e){return String(e).trim()}).join(" ")}var Qs=function(e){return t=e,Array.isArray(t)?e.filter(Boolean):"object"===mi(e)&&null!==e?[e]:[];var t},qs=function(e){return e.className,e.clearValue,e.cx,e.getStyles,e.getClassNames,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme,yi({},Ci(e,Us))},el=function(e,t,n){var r=e.cx,o=e.getStyles,i=e.getClassNames,a=e.className;return{css:o(t,e),className:r(null!=n?n:{},i(t,e),a)}};function tl(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function nl(e){return tl(e)?window.pageYOffset:e.scrollTop}function rl(e,t){tl(e)?window.scrollTo(0,t):e.scrollTop=t}function ol(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Js,o=nl(e),i=t-o,a=0;!function t(){var s,l=i*((s=(s=a+=10)/n-1)*s*s+1)+o;rl(e,l),a<n?window.requestAnimationFrame(t):r(e)}()}function il(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),o=t.offsetHeight/3;r.bottom+o>n.bottom?rl(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+o,e.scrollHeight)):r.top-o<n.top&&rl(e,Math.max(t.offsetTop-o,0))}function al(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var sl=!1,ll={get passive(){return sl=!0}},cl="undefined"!=typeof window?window:{};cl.addEventListener&&cl.removeEventListener&&(cl.addEventListener("p",Js,ll),cl.removeEventListener("p",Js,!1));var ul=sl;function dl(e){return null!=e}function pl(e,t,n){return e?t:n}var fl=["children","innerProps"],hl=["children","innerProps"];function ml(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,o=e.placement,i=e.shouldScroll,a=e.isFixedPosition,s=e.controlHeight,l=function(e){var t=getComputedStyle(e),n="absolute"===t.position,r=/(auto|scroll)/;if("fixed"===t.position)return document.documentElement;for(var o=e;o=o.parentElement;)if(t=getComputedStyle(o),(!n||"static"!==t.position)&&r.test(t.overflow+t.overflowY+t.overflowX))return o;return document.documentElement}(n),c={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return c;var u,d=l.getBoundingClientRect().height,p=n.getBoundingClientRect(),f=p.bottom,h=p.height,m=p.top,g=n.offsetParent.getBoundingClientRect().top,b=a?window.innerHeight:tl(u=l)?window.innerHeight:u.clientHeight,v=nl(l),y=parseInt(getComputedStyle(n).marginBottom,10),x=parseInt(getComputedStyle(n).marginTop,10),I=g-x,w=b-m,C=I+v,E=d-v-m,A=f-b+v+y,S=v+m-x,T=160;switch(o){case"auto":case"bottom":if(w>=h)return{placement:"bottom",maxHeight:t};if(E>=h&&!a)return i&&ol(l,A,T),{placement:"bottom",maxHeight:t};if(!a&&E>=r||a&&w>=r)return i&&ol(l,A,T),{placement:"bottom",maxHeight:a?w-y:E-y};if("auto"===o||a){var O=t,N=a?I:C;return N>=r&&(O=Math.min(N-y-s,t)),{placement:"top",maxHeight:O}}if("bottom"===o)return i&&rl(l,A),{placement:"bottom",maxHeight:t};break;case"top":if(I>=h)return{placement:"top",maxHeight:t};if(C>=h&&!a)return i&&ol(l,S,T),{placement:"top",maxHeight:t};if(!a&&C>=r||a&&I>=r){var P=t;return(!a&&C>=r||a&&I>=r)&&(P=a?I-x:C-x),i&&ol(l,S,T),{placement:"top",maxHeight:P}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return c}var gl,bl=function(e){return"auto"===e?"bottom":e},vl=h(null),yl=function(e){var t=e.children,n=e.minMenuHeight,r=e.maxMenuHeight,o=e.menuPlacement,i=e.menuPosition,a=e.menuShouldScrollIntoView,l=e.theme,u=(p(vl)||{}).setPortalPlacement,d=s(null),f=wi(c(r),2),h=f[0],m=f[1],g=wi(c(null),2),b=g[0],v=g[1],y=l.spacing.controlHeight;return Ys(function(){var e=d.current;if(e){var t="fixed"===i,s=ml({maxHeight:r,menuEl:e,minHeight:n,placement:o,shouldScroll:a&&!t,isFixedPosition:t,controlHeight:y});m(s.maxHeight),v(s.placement),null==u||u(s.placement)}},[r,o,i,a,n,u,y]),t({ref:d,placerProps:yi(yi({},e),{},{placement:b||bl(o),maxHeight:h})})},xl=function(e){var t=e.children,n=e.innerRef,r=e.innerProps;return Is("div",Ko({},el(e,"menu",{menu:!0}),{ref:n},r),t)},Il=function(e,t){var n=e.theme,r=n.spacing.baseUnit,o=n.colors;return yi({textAlign:"center"},t?{}:{color:o.neutral40,padding:"".concat(2*r,"px ").concat(3*r,"px")})},wl=Il,Cl=Il,El=["size"],Al=["innerProps","isRtl","size"];var Sl,Tl,Ol="production"===process.env.NODE_ENV?{name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"}:{name:"tj5bde-Svg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;label:Svg;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLFxufSBmcm9tICcuLi90eXBlcyc7XG5pbXBvcnQgeyBnZXRTdHlsZVByb3BzIH0gZnJvbSAnLi4vdXRpbHMnO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgSWNvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBTdmcgPSAoe1xuICBzaXplLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZTogbnVtYmVyIH0pID0+IChcbiAgPHN2Z1xuICAgIGhlaWdodD17c2l6ZX1cbiAgICB3aWR0aD17c2l6ZX1cbiAgICB2aWV3Qm94PVwiMCAwIDIwIDIwXCJcbiAgICBhcmlhLWhpZGRlbj1cInRydWVcIlxuICAgIGZvY3VzYWJsZT1cImZhbHNlXCJcbiAgICBjc3M9e3tcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgZmlsbDogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBsaW5lSGVpZ2h0OiAxLFxuICAgICAgc3Ryb2tlOiAnY3VycmVudENvbG9yJyxcbiAgICAgIHN0cm9rZVdpZHRoOiAwLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IHR5cGUgQ3Jvc3NJY29uUHJvcHMgPSBKU1guSW50cmluc2ljRWxlbWVudHNbJ3N2ZyddICYgeyBzaXplPzogbnVtYmVyIH07XG5leHBvcnQgY29uc3QgQ3Jvc3NJY29uID0gKHByb3BzOiBDcm9zc0ljb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNMTQuMzQ4IDE0Ljg0OWMtMC40NjkgMC40NjktMS4yMjkgMC40NjktMS42OTcgMGwtMi42NTEtMy4wMzAtMi42NTEgMy4wMjljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDAtMC40NjktMC40NjktMC40NjktMS4yMjkgMC0xLjY5N2wyLjc1OC0zLjE1LTIuNzU5LTMuMTUyYy0wLjQ2OS0wLjQ2OS0wLjQ2OS0xLjIyOCAwLTEuNjk3czEuMjI4LTAuNDY5IDEuNjk3IDBsMi42NTIgMy4wMzEgMi42NTEtMy4wMzFjMC40NjktMC40NjkgMS4yMjgtMC40NjkgMS42OTcgMHMwLjQ2OSAxLjIyOSAwIDEuNjk3bC0yLjc1OCAzLjE1MiAyLjc1OCAzLjE1YzAuNDY5IDAuNDY5IDAuNDY5IDEuMjI5IDAgMS42OTh6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuZXhwb3J0IHR5cGUgRG93bkNoZXZyb25Qcm9wcyA9IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10gJiB7IHNpemU/OiBudW1iZXIgfTtcbmV4cG9ydCBjb25zdCBEb3duQ2hldnJvbiA9IChwcm9wczogRG93bkNoZXZyb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNNC41MTYgNy41NDhjMC40MzYtMC40NDYgMS4wNDMtMC40ODEgMS41NzYgMGwzLjkwOCAzLjc0NyAzLjkwOC0zLjc0N2MwLjUzMy0wLjQ4MSAxLjE0MS0wLjQ0NiAxLjU3NCAwIDAuNDM2IDAuNDQ1IDAuNDA4IDEuMTk3IDAgMS42MTUtMC40MDYgMC40MTgtNC42OTUgNC41MDItNC42OTUgNC41MDItMC4yMTcgMC4yMjMtMC41MDIgMC4zMzUtMC43ODcgMC4zMzVzLTAuNTctMC4xMTItMC43ODktMC4zMzVjMCAwLTQuMjg3LTQuMDg0LTQuNjk1LTQuNTAycy0wLjQzNi0xLjE3IDAtMS42MTV6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgQnV0dG9uc1xuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG5cbmV4cG9ydCBpbnRlcmZhY2UgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIC8qKiBUaGUgY2hpbGRyZW4gdG8gYmUgcmVuZGVyZWQgaW5zaWRlIHRoZSBpbmRpY2F0b3IuICovXG4gIGNoaWxkcmVuPzogUmVhY3ROb2RlO1xuICAvKiogUHJvcHMgdGhhdCB3aWxsIGJlIHBhc3NlZCBvbiB0byB0aGUgY2hpbGRyZW4uICovXG4gIGlubmVyUHJvcHM6IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snZGl2J107XG4gIC8qKiBUaGUgZm9jdXNlZCBzdGF0ZSBvZiB0aGUgc2VsZWN0LiAqL1xuICBpc0ZvY3VzZWQ6IGJvb2xlYW47XG4gIGlzRGlzYWJsZWQ6IGJvb2xlYW47XG59XG5cbmNvbnN0IGJhc2VDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgdGhlbWU6IHtcbiAgICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICAgIGNvbG9ycyxcbiAgICB9LFxuICB9OlxuICAgIHwgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuICAgIHwgQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2luZGljYXRvckNvbnRhaW5lcicsXG4gIGRpc3BsYXk6ICdmbGV4JyxcbiAgdHJhbnNpdGlvbjogJ2NvbG9yIDE1MG1zJyxcbiAgLi4uKHVuc3R5bGVkXG4gICAgPyB7fVxuICAgIDoge1xuICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw2MCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIHBhZGRpbmc6IGJhc2VVbml0ICogMixcbiAgICAgICAgJzpob3Zlcic6IHtcbiAgICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw4MCA6IGNvbG9ycy5uZXV0cmFsNDAsXG4gICAgICAgIH0sXG4gICAgICB9KSxcbn0pO1xuXG5leHBvcnQgY29uc3QgZHJvcGRvd25JbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IERyb3Bkb3duSW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnZHJvcGRvd25JbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2Ryb3Bkb3duLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8RG93bkNoZXZyb24gLz59XG4gICAgPC9kaXY+XG4gICk7XG59O1xuXG5leHBvcnQgaW50ZXJmYWNlIENsZWFySW5kaWNhdG9yUHJvcHM8XG4gIE9wdGlvbiA9IHVua25vd24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuID0gYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPiA9IEdyb3VwQmFzZTxPcHRpb24+XG4+IGV4dGVuZHMgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWU8T3B0aW9uLCBJc011bHRpLCBHcm91cD4ge1xuICAvKiogVGhlIGNoaWxkcmVuIHRvIGJlIHJlbmRlcmVkIGluc2lkZSB0aGUgaW5kaWNhdG9yLiAqL1xuICBjaGlsZHJlbj86IFJlYWN0Tm9kZTtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xufVxuXG5leHBvcnQgY29uc3QgY2xlYXJJbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IENsZWFySW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnY2xlYXJJbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2NsZWFyLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8Q3Jvc3NJY29uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBTZXBhcmF0b3Jcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5leHBvcnQgaW50ZXJmYWNlIEluZGljYXRvclNlcGFyYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgaXNEaXNhYmxlZDogYm9vbGVhbjtcbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpbm5lclByb3BzPzogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ107XG59XG5cbmV4cG9ydCBjb25zdCBpbmRpY2F0b3JTZXBhcmF0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0Rpc2FibGVkLFxuICAgIHRoZW1lOiB7XG4gICAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgICBjb2xvcnMsXG4gICAgfSxcbiAgfTogSW5kaWNhdG9yU2VwYXJhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdpbmRpY2F0b3JTZXBhcmF0b3InLFxuICBhbGlnblNlbGY6ICdzdHJldGNoJyxcbiAgd2lkdGg6IDEsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgYmFja2dyb3VuZENvbG9yOiBpc0Rpc2FibGVkID8gY29sb3JzLm5ldXRyYWwxMCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIG1hcmdpbkJvdHRvbTogYmFzZVVuaXQgKiAyLFxuICAgICAgICBtYXJnaW5Ub3A6IGJhc2VVbml0ICogMixcbiAgICAgIH0pLFxufSk7XG5cbmV4cG9ydCBjb25zdCBJbmRpY2F0b3JTZXBhcmF0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHByb3BzOiBJbmRpY2F0b3JTZXBhcmF0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgaW5uZXJQcm9wcyB9ID0gcHJvcHM7XG4gIHJldHVybiAoXG4gICAgPHNwYW5cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgICAgey4uLmdldFN0eWxlUHJvcHMocHJvcHMsICdpbmRpY2F0b3JTZXBhcmF0b3InLCB7XG4gICAgICAgICdpbmRpY2F0b3Itc2VwYXJhdG9yJzogdHJ1ZSxcbiAgICAgIH0pfVxuICAgIC8+XG4gICk7XG59O1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIExvYWRpbmdcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBsb2FkaW5nRG90QW5pbWF0aW9ucyA9IGtleWZyYW1lc2BcbiAgMCUsIDgwJSwgMTAwJSB7IG9wYWNpdHk6IDA7IH1cbiAgNDAlIHsgb3BhY2l0eTogMTsgfVxuYDtcblxuZXhwb3J0IGNvbnN0IGxvYWRpbmdJbmRpY2F0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgc2l6ZSxcbiAgICB0aGVtZToge1xuICAgICAgY29sb3JzLFxuICAgICAgc3BhY2luZzogeyBiYXNlVW5pdCB9LFxuICAgIH0sXG4gIH06IExvYWRpbmdJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2xvYWRpbmdJbmRpY2F0b3InLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHRyYW5zaXRpb246ICdjb2xvciAxNTBtcycsXG4gIGFsaWduU2VsZjogJ2NlbnRlcicsXG4gIGZvbnRTaXplOiBzaXplLFxuICBsaW5lSGVpZ2h0OiAxLFxuICBtYXJnaW5SaWdodDogc2l6ZSxcbiAgdGV4dEFsaWduOiAnY2VudGVyJyxcbiAgdmVydGljYWxBbGlnbjogJ21pZGRsZScsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBwYWRkaW5nOiBiYXNlVW5pdCAqIDIsXG4gICAgICB9KSxcbn0pO1xuXG5pbnRlcmZhY2UgTG9hZGluZ0RvdFByb3BzIHtcbiAgZGVsYXk6IG51bWJlcjtcbiAgb2Zmc2V0OiBib29sZWFuO1xufVxuY29uc3QgTG9hZGluZ0RvdCA9ICh7IGRlbGF5LCBvZmZzZXQgfTogTG9hZGluZ0RvdFByb3BzKSA9PiAoXG4gIDxzcGFuXG4gICAgY3NzPXt7XG4gICAgICBhbmltYXRpb246IGAke2xvYWRpbmdEb3RBbmltYXRpb25zfSAxcyBlYXNlLWluLW91dCAke2RlbGF5fW1zIGluZmluaXRlO2AsXG4gICAgICBiYWNrZ3JvdW5kQ29sb3I6ICdjdXJyZW50Q29sb3InLFxuICAgICAgYm9yZGVyUmFkaXVzOiAnMWVtJyxcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgbWFyZ2luTGVmdDogb2Zmc2V0ID8gJzFlbScgOiB1bmRlZmluZWQsXG4gICAgICBoZWlnaHQ6ICcxZW0nLFxuICAgICAgdmVydGljYWxBbGlnbjogJ3RvcCcsXG4gICAgICB3aWR0aDogJzFlbScsXG4gICAgfX1cbiAgLz5cbik7XG5cbmV4cG9ydCBpbnRlcmZhY2UgTG9hZGluZ0luZGljYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpc0Rpc2FibGVkOiBib29sZWFuO1xuICAvKiogU2V0IHNpemUgb2YgdGhlIGNvbnRhaW5lci4gKi9cbiAgc2l6ZTogbnVtYmVyO1xufVxuZXhwb3J0IGNvbnN0IExvYWRpbmdJbmRpY2F0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oe1xuICBpbm5lclByb3BzLFxuICBpc1J0bCxcbiAgc2l6ZSA9IDQsXG4gIC4uLnJlc3RQcm9wc1xufTogTG9hZGluZ0luZGljYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+KSA9PiB7XG4gIHJldHVybiAoXG4gICAgPGRpdlxuICAgICAgey4uLmdldFN0eWxlUHJvcHMoXG4gICAgICAgIHsgLi4ucmVzdFByb3BzLCBpbm5lclByb3BzLCBpc1J0bCwgc2l6ZSB9LFxuICAgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */",toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}},Nl=function(e){var t=e.size,n=Ci(e,El);return Is("svg",Ko({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:Ol},n))},Pl=function(e){return Is(Nl,Ko({size:20},e),Is("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},Rl=function(e){return Is(Nl,Ko({size:20},e),Is("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},kl=function(e,t){var n=e.isFocused,r=e.theme,o=r.spacing.baseUnit,i=r.colors;return yi({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?i.neutral60:i.neutral20,padding:2*o,":hover":{color:n?i.neutral80:i.neutral40}})},Ll=kl,Bl=kl,Gl=function(){var e=ws.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}(gl||(Sl=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],Tl||(Tl=Sl.slice(0)),gl=Object.freeze(Object.defineProperties(Sl,{raw:{value:Object.freeze(Tl)}})))),jl=function(e){var t=e.delay,n=e.offset;return Is("span",{css:ws({animation:"".concat(Gl," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"production"===process.env.NODE_ENV?"":";label:LoadingDot;","production"===process.env.NODE_ENV?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW1RSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLFxufSBmcm9tICcuLi90eXBlcyc7XG5pbXBvcnQgeyBnZXRTdHlsZVByb3BzIH0gZnJvbSAnLi4vdXRpbHMnO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgSWNvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBTdmcgPSAoe1xuICBzaXplLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZTogbnVtYmVyIH0pID0+IChcbiAgPHN2Z1xuICAgIGhlaWdodD17c2l6ZX1cbiAgICB3aWR0aD17c2l6ZX1cbiAgICB2aWV3Qm94PVwiMCAwIDIwIDIwXCJcbiAgICBhcmlhLWhpZGRlbj1cInRydWVcIlxuICAgIGZvY3VzYWJsZT1cImZhbHNlXCJcbiAgICBjc3M9e3tcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgZmlsbDogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBsaW5lSGVpZ2h0OiAxLFxuICAgICAgc3Ryb2tlOiAnY3VycmVudENvbG9yJyxcbiAgICAgIHN0cm9rZVdpZHRoOiAwLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IHR5cGUgQ3Jvc3NJY29uUHJvcHMgPSBKU1guSW50cmluc2ljRWxlbWVudHNbJ3N2ZyddICYgeyBzaXplPzogbnVtYmVyIH07XG5leHBvcnQgY29uc3QgQ3Jvc3NJY29uID0gKHByb3BzOiBDcm9zc0ljb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNMTQuMzQ4IDE0Ljg0OWMtMC40NjkgMC40NjktMS4yMjkgMC40NjktMS42OTcgMGwtMi42NTEtMy4wMzAtMi42NTEgMy4wMjljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDAtMC40NjktMC40NjktMC40NjktMS4yMjkgMC0xLjY5N2wyLjc1OC0zLjE1LTIuNzU5LTMuMTUyYy0wLjQ2OS0wLjQ2OS0wLjQ2OS0xLjIyOCAwLTEuNjk3czEuMjI4LTAuNDY5IDEuNjk3IDBsMi42NTIgMy4wMzEgMi42NTEtMy4wMzFjMC40NjktMC40NjkgMS4yMjgtMC40NjkgMS42OTcgMHMwLjQ2OSAxLjIyOSAwIDEuNjk3bC0yLjc1OCAzLjE1MiAyLjc1OCAzLjE1YzAuNDY5IDAuNDY5IDAuNDY5IDEuMjI5IDAgMS42OTh6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuZXhwb3J0IHR5cGUgRG93bkNoZXZyb25Qcm9wcyA9IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10gJiB7IHNpemU/OiBudW1iZXIgfTtcbmV4cG9ydCBjb25zdCBEb3duQ2hldnJvbiA9IChwcm9wczogRG93bkNoZXZyb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNNC41MTYgNy41NDhjMC40MzYtMC40NDYgMS4wNDMtMC40ODEgMS41NzYgMGwzLjkwOCAzLjc0NyAzLjkwOC0zLjc0N2MwLjUzMy0wLjQ4MSAxLjE0MS0wLjQ0NiAxLjU3NCAwIDAuNDM2IDAuNDQ1IDAuNDA4IDEuMTk3IDAgMS42MTUtMC40MDYgMC40MTgtNC42OTUgNC41MDItNC42OTUgNC41MDItMC4yMTcgMC4yMjMtMC41MDIgMC4zMzUtMC43ODcgMC4zMzVzLTAuNTctMC4xMTItMC43ODktMC4zMzVjMCAwLTQuMjg3LTQuMDg0LTQuNjk1LTQuNTAycy0wLjQzNi0xLjE3IDAtMS42MTV6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgQnV0dG9uc1xuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG5cbmV4cG9ydCBpbnRlcmZhY2UgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIC8qKiBUaGUgY2hpbGRyZW4gdG8gYmUgcmVuZGVyZWQgaW5zaWRlIHRoZSBpbmRpY2F0b3IuICovXG4gIGNoaWxkcmVuPzogUmVhY3ROb2RlO1xuICAvKiogUHJvcHMgdGhhdCB3aWxsIGJlIHBhc3NlZCBvbiB0byB0aGUgY2hpbGRyZW4uICovXG4gIGlubmVyUHJvcHM6IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snZGl2J107XG4gIC8qKiBUaGUgZm9jdXNlZCBzdGF0ZSBvZiB0aGUgc2VsZWN0LiAqL1xuICBpc0ZvY3VzZWQ6IGJvb2xlYW47XG4gIGlzRGlzYWJsZWQ6IGJvb2xlYW47XG59XG5cbmNvbnN0IGJhc2VDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgdGhlbWU6IHtcbiAgICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICAgIGNvbG9ycyxcbiAgICB9LFxuICB9OlxuICAgIHwgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuICAgIHwgQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2luZGljYXRvckNvbnRhaW5lcicsXG4gIGRpc3BsYXk6ICdmbGV4JyxcbiAgdHJhbnNpdGlvbjogJ2NvbG9yIDE1MG1zJyxcbiAgLi4uKHVuc3R5bGVkXG4gICAgPyB7fVxuICAgIDoge1xuICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw2MCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIHBhZGRpbmc6IGJhc2VVbml0ICogMixcbiAgICAgICAgJzpob3Zlcic6IHtcbiAgICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw4MCA6IGNvbG9ycy5uZXV0cmFsNDAsXG4gICAgICAgIH0sXG4gICAgICB9KSxcbn0pO1xuXG5leHBvcnQgY29uc3QgZHJvcGRvd25JbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IERyb3Bkb3duSW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnZHJvcGRvd25JbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2Ryb3Bkb3duLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8RG93bkNoZXZyb24gLz59XG4gICAgPC9kaXY+XG4gICk7XG59O1xuXG5leHBvcnQgaW50ZXJmYWNlIENsZWFySW5kaWNhdG9yUHJvcHM8XG4gIE9wdGlvbiA9IHVua25vd24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuID0gYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPiA9IEdyb3VwQmFzZTxPcHRpb24+XG4+IGV4dGVuZHMgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWU8T3B0aW9uLCBJc011bHRpLCBHcm91cD4ge1xuICAvKiogVGhlIGNoaWxkcmVuIHRvIGJlIHJlbmRlcmVkIGluc2lkZSB0aGUgaW5kaWNhdG9yLiAqL1xuICBjaGlsZHJlbj86IFJlYWN0Tm9kZTtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xufVxuXG5leHBvcnQgY29uc3QgY2xlYXJJbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IENsZWFySW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnY2xlYXJJbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2NsZWFyLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8Q3Jvc3NJY29uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBTZXBhcmF0b3Jcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5leHBvcnQgaW50ZXJmYWNlIEluZGljYXRvclNlcGFyYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgaXNEaXNhYmxlZDogYm9vbGVhbjtcbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpbm5lclByb3BzPzogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ107XG59XG5cbmV4cG9ydCBjb25zdCBpbmRpY2F0b3JTZXBhcmF0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0Rpc2FibGVkLFxuICAgIHRoZW1lOiB7XG4gICAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgICBjb2xvcnMsXG4gICAgfSxcbiAgfTogSW5kaWNhdG9yU2VwYXJhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdpbmRpY2F0b3JTZXBhcmF0b3InLFxuICBhbGlnblNlbGY6ICdzdHJldGNoJyxcbiAgd2lkdGg6IDEsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgYmFja2dyb3VuZENvbG9yOiBpc0Rpc2FibGVkID8gY29sb3JzLm5ldXRyYWwxMCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIG1hcmdpbkJvdHRvbTogYmFzZVVuaXQgKiAyLFxuICAgICAgICBtYXJnaW5Ub3A6IGJhc2VVbml0ICogMixcbiAgICAgIH0pLFxufSk7XG5cbmV4cG9ydCBjb25zdCBJbmRpY2F0b3JTZXBhcmF0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHByb3BzOiBJbmRpY2F0b3JTZXBhcmF0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgaW5uZXJQcm9wcyB9ID0gcHJvcHM7XG4gIHJldHVybiAoXG4gICAgPHNwYW5cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgICAgey4uLmdldFN0eWxlUHJvcHMocHJvcHMsICdpbmRpY2F0b3JTZXBhcmF0b3InLCB7XG4gICAgICAgICdpbmRpY2F0b3Itc2VwYXJhdG9yJzogdHJ1ZSxcbiAgICAgIH0pfVxuICAgIC8+XG4gICk7XG59O1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIExvYWRpbmdcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBsb2FkaW5nRG90QW5pbWF0aW9ucyA9IGtleWZyYW1lc2BcbiAgMCUsIDgwJSwgMTAwJSB7IG9wYWNpdHk6IDA7IH1cbiAgNDAlIHsgb3BhY2l0eTogMTsgfVxuYDtcblxuZXhwb3J0IGNvbnN0IGxvYWRpbmdJbmRpY2F0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgc2l6ZSxcbiAgICB0aGVtZToge1xuICAgICAgY29sb3JzLFxuICAgICAgc3BhY2luZzogeyBiYXNlVW5pdCB9LFxuICAgIH0sXG4gIH06IExvYWRpbmdJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2xvYWRpbmdJbmRpY2F0b3InLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHRyYW5zaXRpb246ICdjb2xvciAxNTBtcycsXG4gIGFsaWduU2VsZjogJ2NlbnRlcicsXG4gIGZvbnRTaXplOiBzaXplLFxuICBsaW5lSGVpZ2h0OiAxLFxuICBtYXJnaW5SaWdodDogc2l6ZSxcbiAgdGV4dEFsaWduOiAnY2VudGVyJyxcbiAgdmVydGljYWxBbGlnbjogJ21pZGRsZScsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBwYWRkaW5nOiBiYXNlVW5pdCAqIDIsXG4gICAgICB9KSxcbn0pO1xuXG5pbnRlcmZhY2UgTG9hZGluZ0RvdFByb3BzIHtcbiAgZGVsYXk6IG51bWJlcjtcbiAgb2Zmc2V0OiBib29sZWFuO1xufVxuY29uc3QgTG9hZGluZ0RvdCA9ICh7IGRlbGF5LCBvZmZzZXQgfTogTG9hZGluZ0RvdFByb3BzKSA9PiAoXG4gIDxzcGFuXG4gICAgY3NzPXt7XG4gICAgICBhbmltYXRpb246IGAke2xvYWRpbmdEb3RBbmltYXRpb25zfSAxcyBlYXNlLWluLW91dCAke2RlbGF5fW1zIGluZmluaXRlO2AsXG4gICAgICBiYWNrZ3JvdW5kQ29sb3I6ICdjdXJyZW50Q29sb3InLFxuICAgICAgYm9yZGVyUmFkaXVzOiAnMWVtJyxcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgbWFyZ2luTGVmdDogb2Zmc2V0ID8gJzFlbScgOiB1bmRlZmluZWQsXG4gICAgICBoZWlnaHQ6ICcxZW0nLFxuICAgICAgdmVydGljYWxBbGlnbjogJ3RvcCcsXG4gICAgICB3aWR0aDogJzFlbScsXG4gICAgfX1cbiAgLz5cbik7XG5cbmV4cG9ydCBpbnRlcmZhY2UgTG9hZGluZ0luZGljYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpc0Rpc2FibGVkOiBib29sZWFuO1xuICAvKiogU2V0IHNpemUgb2YgdGhlIGNvbnRhaW5lci4gKi9cbiAgc2l6ZTogbnVtYmVyO1xufVxuZXhwb3J0IGNvbnN0IExvYWRpbmdJbmRpY2F0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oe1xuICBpbm5lclByb3BzLFxuICBpc1J0bCxcbiAgc2l6ZSA9IDQsXG4gIC4uLnJlc3RQcm9wc1xufTogTG9hZGluZ0luZGljYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+KSA9PiB7XG4gIHJldHVybiAoXG4gICAgPGRpdlxuICAgICAgey4uLmdldFN0eWxlUHJvcHMoXG4gICAgICAgIHsgLi4ucmVzdFByb3BzLCBpbm5lclByb3BzLCBpc1J0bCwgc2l6ZSB9LFxuICAgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */")})},Ml=function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,o=e.innerRef,i=e.innerProps,a=e.menuIsOpen;return Is("div",Ko({ref:o},el(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":r,"control--menu-is-open":a}),i,{"aria-disabled":n||void 0}),t)},Dl=["data"],Vl=function(e){var t=e.children,n=e.cx,r=e.getStyles,o=e.getClassNames,i=e.Heading,a=e.headingProps,s=e.innerProps,l=e.label,c=e.theme,u=e.selectProps;return Is("div",Ko({},el(e,"group",{group:!0}),s),Is(i,Ko({},a,{selectProps:u,theme:c,getStyles:r,getClassNames:o,cx:n}),l),Is("div",null,t))},Fl=["innerRef","isDisabled","isHidden","inputClassName"],_l={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},Hl={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":yi({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},_l)},Wl=function(e){return yi({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},_l)},Xl=function(e){var t=e.cx,n=e.value,r=qs(e),o=r.innerRef,i=r.isDisabled,a=r.isHidden,s=r.inputClassName,l=Ci(r,Fl);return Is("div",Ko({},el(e,"input",{"input-container":!0}),{"data-value":n||""}),Is("input",Ko({className:t({input:!0},s),ref:o,style:Wl(a),disabled:i},l)))},zl=function(e){var t=e.children,n=e.innerProps;return Is("div",n,t)};var Zl=function(e){var t=e.children,n=e.components,r=e.data,o=e.innerProps,i=e.isDisabled,a=e.removeProps,s=e.selectProps,l=n.Container,c=n.Label,u=n.Remove;return Is(l,{data:r,innerProps:yi(yi({},el(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":i})),o),selectProps:s},Is(c,{data:r,innerProps:yi({},el(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:s},t),Is(u,{data:r,innerProps:yi(yi({},el(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},a),selectProps:s}))},Yl={ClearIndicator:function(e){var t=e.children,n=e.innerProps;return Is("div",Ko({},el(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||Is(Pl,null))},Control:Ml,DropdownIndicator:function(e){var t=e.children,n=e.innerProps;return Is("div",Ko({},el(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||Is(Rl,null))},DownChevron:Rl,CrossIcon:Pl,Group:Vl,GroupHeading:function(e){var t=qs(e);t.data;var n=Ci(t,Dl);return Is("div",Ko({},el(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return Is("div",Ko({},el(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return Is("span",Ko({},t,el(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:Xl,LoadingIndicator:function(e){var t=e.innerProps,n=e.isRtl,r=e.size,o=void 0===r?4:r,i=Ci(e,Al);return Is("div",Ko({},el(yi(yi({},i),{},{innerProps:t,isRtl:n,size:o}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),Is(jl,{delay:0,offset:n}),Is(jl,{delay:160,offset:!0}),Is(jl,{delay:320,offset:!n}))},Menu:xl,MenuList:function(e){var t=e.children,n=e.innerProps,r=e.innerRef,o=e.isMulti;return Is("div",Ko({},el(e,"menuList",{"menu-list":!0,"menu-list--is-multi":o}),{ref:r},n),t)},MenuPortal:function(e){var t=e.appendTo,n=e.children,r=e.controlElement,o=e.innerProps,i=e.menuPlacement,a=e.menuPosition,d=s(null),p=s(null),f=wi(c(bl(i)),2),h=f[0],m=f[1],g=l(function(){return{setPortalPlacement:m}},[]),b=wi(c(null),2),v=b[0],y=b[1],x=u(function(){if(r){var e=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(r),t="fixed"===a?0:window.pageYOffset,n=e[h]+t;n===(null==v?void 0:v.offset)&&e.left===(null==v?void 0:v.rect.left)&&e.width===(null==v?void 0:v.rect.width)||y({offset:n,rect:e})}},[r,a,h,null==v?void 0:v.offset,null==v?void 0:v.rect.left,null==v?void 0:v.rect.width]);Ys(function(){x()},[x]);var I=u(function(){"function"==typeof p.current&&(p.current(),p.current=null),r&&d.current&&(p.current=Zs(r,d.current,x,{elementResize:"ResizeObserver"in window}))},[r,x]);Ys(function(){I()},[I]);var w=u(function(e){d.current=e,I()},[I]);if(!t&&"fixed"!==a||!v)return null;var C=Is("div",Ko({ref:w},el(yi(yi({},e),{},{offset:v.offset,position:a,rect:v.rect}),"menuPortal",{"menu-portal":!0}),o),n);return Is(vl.Provider,{value:g},t?E(C,t):C)},LoadingMessage:function(e){var t=e.children,n=void 0===t?"Loading...":t,r=e.innerProps,o=Ci(e,hl);return Is("div",Ko({},el(yi(yi({},o),{},{children:n,innerProps:r}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),r),n)},NoOptionsMessage:function(e){var t=e.children,n=void 0===t?"No options":t,r=e.innerProps,o=Ci(e,fl);return Is("div",Ko({},el(yi(yi({},o),{},{children:n,innerProps:r}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),r),n)},MultiValue:Zl,MultiValueContainer:zl,MultiValueLabel:zl,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return Is("div",Ko({role:"button"},n),t||Is(Pl,{size:14}))},Option:function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,o=e.isSelected,i=e.innerRef,a=e.innerProps;return Is("div",Ko({},el(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":r,"option--is-selected":o}),{ref:i,"aria-disabled":n},a),t)},Placeholder:function(e){var t=e.children,n=e.innerProps;return Is("div",Ko({},el(e,"placeholder",{placeholder:!0}),n),t)},SelectContainer:function(e){var t=e.children,n=e.innerProps,r=e.isDisabled,o=e.isRtl;return Is("div",Ko({},el(e,"container",{"--is-disabled":r,"--is-rtl":o}),n),t)},SingleValue:function(e){var t=e.children,n=e.isDisabled,r=e.innerProps;return Is("div",Ko({},el(e,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),r),t)},ValueContainer:function(e){var t=e.children,n=e.innerProps,r=e.isMulti,o=e.hasValue;return Is("div",Ko({},el(e,"valueContainer",{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":o}),n),t)}},Ul=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function Jl(e,t){return e===t||!(!Ul(e)||!Ul(t))}function $l(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!Jl(e[n],t[n]))return!1;return!0}for(var Kl="production"===process.env.NODE_ENV?{name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"}:{name:"1f43avz-a11yText-A11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap;label:A11yText;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkExMXlUZXh0LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFPSSIsImZpbGUiOiJBMTF5VGV4dC50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKiogQGpzeCBqc3ggKi9cbmltcG9ydCB7IEpTWCB9IGZyb20gJ3JlYWN0JztcbmltcG9ydCB7IGpzeCB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuLy8gQXNzaXN0aXZlIHRleHQgdG8gZGVzY3JpYmUgdmlzdWFsIGVsZW1lbnRzLiBIaWRkZW4gZm9yIHNpZ2h0ZWQgdXNlcnMuXG5jb25zdCBBMTF5VGV4dCA9IChwcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ10pID0+IChcbiAgPHNwYW5cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAnYTExeVRleHQnLFxuICAgICAgekluZGV4OiA5OTk5LFxuICAgICAgYm9yZGVyOiAwLFxuICAgICAgY2xpcDogJ3JlY3QoMXB4LCAxcHgsIDFweCwgMXB4KScsXG4gICAgICBoZWlnaHQ6IDEsXG4gICAgICB3aWR0aDogMSxcbiAgICAgIHBvc2l0aW9uOiAnYWJzb2x1dGUnLFxuICAgICAgb3ZlcmZsb3c6ICdoaWRkZW4nLFxuICAgICAgcGFkZGluZzogMCxcbiAgICAgIHdoaXRlU3BhY2U6ICdub3dyYXAnLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IGRlZmF1bHQgQTExeVRleHQ7XG4iXX0= */",toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}},Ql=function(e){return Is("span",Ko({css:Kl},e))},ql={guidance:function(e){var t=e.isSearchable,n=e.isMulti,r=e.tabSelectsValue,o=e.context,i=e.isInitialFocus;switch(o){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(r?", press Tab to select the option and exit the menu":"",".");case"input":return i?"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,n=e.label,r=void 0===n?"":n,o=e.labels,i=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(r,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(o.length>1?"s":""," ").concat(o.join(","),", selected.");case"select-option":return"option ".concat(r,i?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,r=e.options,o=e.label,i=void 0===o?"":o,a=e.selectValue,s=e.isDisabled,l=e.isSelected,c=e.isAppleDevice,u=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&a)return"value ".concat(i," focused, ").concat(u(a,n),".");if("menu"===t&&c){var d=s?" disabled":"",p="".concat(l?" selected":"").concat(d);return"".concat(i).concat(p,", ").concat(u(r,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},ec=function(e){var t=e.ariaSelection,n=e.focusedOption,r=e.focusedValue,o=e.focusableOptions,i=e.isFocused,a=e.selectValue,s=e.selectProps,c=e.id,u=e.isAppleDevice,d=s.ariaLiveMessages,p=s.getOptionLabel,f=s.inputValue,h=s.isMulti,m=s.isOptionDisabled,b=s.isSearchable,v=s.menuIsOpen,y=s.options,x=s.screenReaderStatus,I=s.tabSelectsValue,w=s.isLoading,C=s["aria-label"],E=s["aria-live"],A=l(function(){return yi(yi({},ql),d||{})},[d]),S=l(function(){var e,n="";if(t&&A.onChange){var r=t.option,o=t.options,i=t.removedValue,s=t.removedValues,l=t.value,c=i||r||(e=l,Array.isArray(e)?null:e),u=c?p(c):"",d=o||s||void 0,f=d?d.map(p):[],h=yi({isDisabled:c&&m(c,a),label:u,labels:f},t);n=A.onChange(h)}return n},[t,A,m,a,p]),T=l(function(){var e="",t=n||r,i=!!(n&&a&&a.includes(n));if(t&&A.onFocus){var s={focused:t,label:p(t),isDisabled:m(t,a),isSelected:i,options:o,context:t===n?"menu":"value",selectValue:a,isAppleDevice:u};e=A.onFocus(s)}return e},[n,r,p,m,A,o,a,u]),O=l(function(){var e="";if(v&&y.length&&!w&&A.onFilter){var t=x({count:o.length});e=A.onFilter({inputValue:f,resultsMessage:t})}return e},[o,f,v,A,y,x,w]),N="initial-input-focus"===(null==t?void 0:t.action),P=l(function(){var e="";if(A.guidance){var t=r?"value":v?"menu":"input";e=A.guidance({"aria-label":C,context:t,isDisabled:n&&m(n,a),isMulti:h,isSearchable:b,tabSelectsValue:I,isInitialFocus:N})}return e},[C,n,r,h,m,b,v,A,a,I,N]),R=Is(g,null,Is("span",{id:"aria-selection"},S),Is("span",{id:"aria-focused"},T),Is("span",{id:"aria-results"},O),Is("span",{id:"aria-guidance"},P));return Is(g,null,Is(Ql,{id:c},N&&R),Is(Ql,{"aria-live":E,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},i&&!N&&R))},tc=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],nc=new RegExp("["+tc.map(function(e){return e.letters}).join("")+"]","g"),rc={},oc=0;oc<tc.length;oc++)for(var ic=tc[oc],ac=0;ac<ic.letters.length;ac++)rc[ic.letters[ac]]=ic.base;var sc=function(e){return e.replace(nc,function(e){return rc[e]})},lc=function(e,t){void 0===t&&(t=$l);var n=null;function r(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];if(n&&n.lastThis===this&&t(r,n.lastArgs))return n.lastResult;var i=e.apply(this,r);return n={lastResult:i,lastArgs:r,lastThis:this},i}return r.clear=function(){n=null},r}(sc),cc=function(e){return e.replace(/^\s+|\s+$/g,"")},uc=function(e){return"".concat(e.label," ").concat(e.value)},dc=function(e){return function(t,n){if(t.data.__isNew__)return!0;var r=yi({ignoreCase:!0,ignoreAccents:!0,stringify:uc,trim:!0,matchFrom:"any"},e),o=r.ignoreCase,i=r.ignoreAccents,a=r.stringify,s=r.trim,l=r.matchFrom,c=s?cc(n):n,u=s?cc(a(t)):a(t);return o&&(c=c.toLowerCase(),u=u.toLowerCase()),i&&(c=lc(c),u=sc(u)),"start"===l?u.substr(0,c.length)===c:u.indexOf(c)>-1}},pc=["innerRef"];function fc(e){var t=e.innerRef,n=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=Object.entries(e).filter(function(e){var t=wi(e,1)[0];return!n.includes(t)});return o.reduce(function(e,t){var n=wi(t,2),r=n[0],o=n[1];return e[r]=o,e},{})}(Ci(e,pc),"onExited","in","enter","exit","appear");return Is("input",Ko({ref:t},n,{css:ws({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"production"===process.env.NODE_ENV?"":";label:DummyInput;","production"===process.env.NODE_ENV?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkR1bW15SW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCTSIsImZpbGUiOiJEdW1teUlucHV0LnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWYgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5pbXBvcnQgeyByZW1vdmVQcm9wcyB9IGZyb20gJy4uL3V0aWxzJztcblxuZXhwb3J0IGRlZmF1bHQgZnVuY3Rpb24gRHVtbXlJbnB1dCh7XG4gIGlubmVyUmVmLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydpbnB1dCddICYge1xuICByZWFkb25seSBpbm5lclJlZjogUmVmPEhUTUxJbnB1dEVsZW1lbnQ+O1xufSkge1xuICAvLyBSZW1vdmUgYW5pbWF0aW9uIHByb3BzIG5vdCBtZWFudCBmb3IgSFRNTCBlbGVtZW50c1xuICBjb25zdCBmaWx0ZXJlZFByb3BzID0gcmVtb3ZlUHJvcHMoXG4gICAgcHJvcHMsXG4gICAgJ29uRXhpdGVkJyxcbiAgICAnaW4nLFxuICAgICdlbnRlcicsXG4gICAgJ2V4aXQnLFxuICAgICdhcHBlYXInXG4gICk7XG5cbiAgcmV0dXJuIChcbiAgICA8aW5wdXRcbiAgICAgIHJlZj17aW5uZXJSZWZ9XG4gICAgICB7Li4uZmlsdGVyZWRQcm9wc31cbiAgICAgIGNzcz17e1xuICAgICAgICBsYWJlbDogJ2R1bW15SW5wdXQnLFxuICAgICAgICAvLyBnZXQgcmlkIG9mIGFueSBkZWZhdWx0IHN0eWxlc1xuICAgICAgICBiYWNrZ3JvdW5kOiAwLFxuICAgICAgICBib3JkZXI6IDAsXG4gICAgICAgIC8vIGltcG9ydGFudCEgdGhpcyBoaWRlcyB0aGUgZmxhc2hpbmcgY3Vyc29yXG4gICAgICAgIGNhcmV0Q29sb3I6ICd0cmFuc3BhcmVudCcsXG4gICAgICAgIGZvbnRTaXplOiAnaW5oZXJpdCcsXG4gICAgICAgIGdyaWRBcmVhOiAnMSAvIDEgLyAyIC8gMycsXG4gICAgICAgIG91dGxpbmU6IDAsXG4gICAgICAgIHBhZGRpbmc6IDAsXG4gICAgICAgIC8vIGltcG9ydGFudCEgd2l0aG91dCBgd2lkdGhgIGJyb3dzZXJzIHdvbid0IGFsbG93IGZvY3VzXG4gICAgICAgIHdpZHRoOiAxLFxuXG4gICAgICAgIC8vIHJlbW92ZSBjdXJzb3Igb24gZGVza3RvcFxuICAgICAgICBjb2xvcjogJ3RyYW5zcGFyZW50JyxcblxuICAgICAgICAvLyByZW1vdmUgY3Vyc29yIG9uIG1vYmlsZSB3aGlsc3QgbWFpbnRhaW5pbmcgXCJzY3JvbGwgaW50byB2aWV3XCIgYmVoYXZpb3VyXG4gICAgICAgIGxlZnQ6IC0xMDAsXG4gICAgICAgIG9wYWNpdHk6IDAsXG4gICAgICAgIHBvc2l0aW9uOiAncmVsYXRpdmUnLFxuICAgICAgICB0cmFuc2Zvcm06ICdzY2FsZSguMDEpJyxcbiAgICAgIH19XG4gICAgLz5cbiAgKTtcbn1cbiJdfQ== */")}))}var hc=["boxSizing","height","overflow","paddingRight","position"],mc={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function gc(e){e.cancelable&&e.preventDefault()}function bc(e){e.stopPropagation()}function vc(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function yc(){return"ontouchstart"in window||navigator.maxTouchPoints}var xc=!("undefined"==typeof window||!window.document||!window.document.createElement),Ic=0,wc={capture:!1,passive:!1};var Cc=function(e){var t=e.target;return t.ownerDocument.activeElement&&t.ownerDocument.activeElement.blur()},Ec="production"===process.env.NODE_ENV?{name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"}:{name:"bp8cua-ScrollManager",styles:"position:fixed;left:0;bottom:0;right:0;top:0;label:ScrollManager;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNjcm9sbE1hbmFnZXIudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW9EVSIsImZpbGUiOiJTY3JvbGxNYW5hZ2VyLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgRnJhZ21lbnQsIFJlYWN0RWxlbWVudCwgUmVmQ2FsbGJhY2ssIE1vdXNlRXZlbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgdXNlU2Nyb2xsQ2FwdHVyZSBmcm9tICcuL3VzZVNjcm9sbENhcHR1cmUnO1xuaW1wb3J0IHVzZVNjcm9sbExvY2sgZnJvbSAnLi91c2VTY3JvbGxMb2NrJztcblxuaW50ZXJmYWNlIFByb3BzIHtcbiAgcmVhZG9ubHkgY2hpbGRyZW46IChyZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PikgPT4gUmVhY3RFbGVtZW50O1xuICByZWFkb25seSBsb2NrRW5hYmxlZDogYm9vbGVhbjtcbiAgcmVhZG9ubHkgY2FwdHVyZUVuYWJsZWQ6IGJvb2xlYW47XG4gIHJlYWRvbmx5IG9uQm90dG9tQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Cb3R0b21MZWF2ZT86IChldmVudDogV2hlZWxFdmVudCB8IFRvdWNoRXZlbnQpID0+IHZvaWQ7XG4gIHJlYWRvbmx5IG9uVG9wQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Ub3BMZWF2ZT86IChldmVudDogV2hlZWxFdmVudCB8IFRvdWNoRXZlbnQpID0+IHZvaWQ7XG59XG5cbmNvbnN0IGJsdXJTZWxlY3RJbnB1dCA9IChldmVudDogTW91c2VFdmVudDxIVE1MRGl2RWxlbWVudD4pID0+IHtcbiAgY29uc3QgZWxlbWVudCA9IGV2ZW50LnRhcmdldCBhcyBIVE1MRGl2RWxlbWVudDtcbiAgcmV0dXJuIChcbiAgICBlbGVtZW50Lm93bmVyRG9jdW1lbnQuYWN0aXZlRWxlbWVudCAmJlxuICAgIChlbGVtZW50Lm93bmVyRG9jdW1lbnQuYWN0aXZlRWxlbWVudCBhcyBIVE1MRWxlbWVudCkuYmx1cigpXG4gICk7XG59O1xuXG5leHBvcnQgZGVmYXVsdCBmdW5jdGlvbiBTY3JvbGxNYW5hZ2VyKHtcbiAgY2hpbGRyZW4sXG4gIGxvY2tFbmFibGVkLFxuICBjYXB0dXJlRW5hYmxlZCA9IHRydWUsXG4gIG9uQm90dG9tQXJyaXZlLFxuICBvbkJvdHRvbUxlYXZlLFxuICBvblRvcEFycml2ZSxcbiAgb25Ub3BMZWF2ZSxcbn06IFByb3BzKSB7XG4gIGNvbnN0IHNldFNjcm9sbENhcHR1cmVUYXJnZXQgPSB1c2VTY3JvbGxDYXB0dXJlKHtcbiAgICBpc0VuYWJsZWQ6IGNhcHR1cmVFbmFibGVkLFxuICAgIG9uQm90dG9tQXJyaXZlLFxuICAgIG9uQm90dG9tTGVhdmUsXG4gICAgb25Ub3BBcnJpdmUsXG4gICAgb25Ub3BMZWF2ZSxcbiAgfSk7XG4gIGNvbnN0IHNldFNjcm9sbExvY2tUYXJnZXQgPSB1c2VTY3JvbGxMb2NrKHsgaXNFbmFibGVkOiBsb2NrRW5hYmxlZCB9KTtcblxuICBjb25zdCB0YXJnZXRSZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PiA9IChlbGVtZW50KSA9PiB7XG4gICAgc2V0U2Nyb2xsQ2FwdHVyZVRhcmdldChlbGVtZW50KTtcbiAgICBzZXRTY3JvbGxMb2NrVGFyZ2V0KGVsZW1lbnQpO1xuICB9O1xuXG4gIHJldHVybiAoXG4gICAgPEZyYWdtZW50PlxuICAgICAge2xvY2tFbmFibGVkICYmIChcbiAgICAgICAgPGRpdlxuICAgICAgICAgIG9uQ2xpY2s9e2JsdXJTZWxlY3RJbnB1dH1cbiAgICAgICAgICBjc3M9e3sgcG9zaXRpb246ICdmaXhlZCcsIGxlZnQ6IDAsIGJvdHRvbTogMCwgcmlnaHQ6IDAsIHRvcDogMCB9fVxuICAgICAgICAvPlxuICAgICAgKX1cbiAgICAgIHtjaGlsZHJlbih0YXJnZXRSZWYpfVxuICAgIDwvRnJhZ21lbnQ+XG4gICk7XG59XG4iXX0= */",toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}};function Ac(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,o=function(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,o=e.onTopArrive,i=e.onTopLeave,l=s(!1),c=s(!1),d=s(0),p=s(null),f=u(function(e,t){if(null!==p.current){var a=p.current,s=a.scrollTop,u=a.scrollHeight,d=a.clientHeight,f=p.current,h=t>0,m=u-d-s,g=!1;m>t&&l.current&&(r&&r(e),l.current=!1),h&&c.current&&(i&&i(e),c.current=!1),h&&t>m?(n&&!l.current&&n(e),f.scrollTop=u,g=!0,l.current=!0):!h&&-t>s&&(o&&!c.current&&o(e),f.scrollTop=0,g=!0,c.current=!0),g&&function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()}(e)}},[n,r,o,i]),h=u(function(e){f(e,e.deltaY)},[f]),m=u(function(e){d.current=e.changedTouches[0].clientY},[]),g=u(function(e){var t=d.current-e.changedTouches[0].clientY;f(e,t)},[f]),b=u(function(e){if(e){var t=!!ul&&{passive:!1};e.addEventListener("wheel",h,t),e.addEventListener("touchstart",m,t),e.addEventListener("touchmove",g,t)}},[g,m,h]),v=u(function(e){e&&(e.removeEventListener("wheel",h,!1),e.removeEventListener("touchstart",m,!1),e.removeEventListener("touchmove",g,!1))},[g,m,h]);return a(function(){if(t){var e=p.current;return b(e),function(){v(e)}}},[t,b,v]),function(e){p.current=e}}({isEnabled:void 0===r||r,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),i=function(e){var t=e.isEnabled,n=e.accountForScrollbars,r=void 0===n||n,o=s({}),i=s(null),l=u(function(e){if(xc){var t=document.body,n=t&&t.style;if(r&&hc.forEach(function(e){var t=n&&n[e];o.current[e]=t}),r&&Ic<1){var i=parseInt(o.current.paddingRight,10)||0,a=document.body?document.body.clientWidth:0,s=window.innerWidth-a+i||0;Object.keys(mc).forEach(function(e){var t=mc[e];n&&(n[e]=t)}),n&&(n.paddingRight="".concat(s,"px"))}t&&yc()&&(t.addEventListener("touchmove",gc,wc),e&&(e.addEventListener("touchstart",vc,wc),e.addEventListener("touchmove",bc,wc))),Ic+=1}},[r]),c=u(function(e){if(xc){var t=document.body,n=t&&t.style;Ic=Math.max(Ic-1,0),r&&Ic<1&&hc.forEach(function(e){var t=o.current[e];n&&(n[e]=t)}),t&&yc()&&(t.removeEventListener("touchmove",gc,wc),e&&(e.removeEventListener("touchstart",vc,wc),e.removeEventListener("touchmove",bc,wc)))}},[r]);return a(function(){if(t){var e=i.current;return l(e),function(){c(e)}}},[t,l,c]),function(e){i.current=e}}({isEnabled:n});return Is(g,null,n&&Is("div",{onClick:Cc,css:Ec}),t(function(e){o(e),i(e)}))}var Sc="production"===process.env.NODE_ENV?{name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"}:{name:"5kkxb2-requiredInput-RequiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%;label:RequiredInput;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlJlcXVpcmVkSW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWNJIiwiZmlsZSI6IlJlcXVpcmVkSW5wdXQudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiLyoqIEBqc3gganN4ICovXG5pbXBvcnQgeyBGb2N1c0V2ZW50SGFuZGxlciwgRnVuY3Rpb25Db21wb25lbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmNvbnN0IFJlcXVpcmVkSW5wdXQ6IEZ1bmN0aW9uQ29tcG9uZW50PHtcbiAgcmVhZG9ubHkgbmFtZT86IHN0cmluZztcbiAgcmVhZG9ubHkgb25Gb2N1czogRm9jdXNFdmVudEhhbmRsZXI8SFRNTElucHV0RWxlbWVudD47XG59PiA9ICh7IG5hbWUsIG9uRm9jdXMgfSkgPT4gKFxuICA8aW5wdXRcbiAgICByZXF1aXJlZFxuICAgIG5hbWU9e25hbWV9XG4gICAgdGFiSW5kZXg9ey0xfVxuICAgIGFyaWEtaGlkZGVuPVwidHJ1ZVwiXG4gICAgb25Gb2N1cz17b25Gb2N1c31cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAncmVxdWlyZWRJbnB1dCcsXG4gICAgICBvcGFjaXR5OiAwLFxuICAgICAgcG9pbnRlckV2ZW50czogJ25vbmUnLFxuICAgICAgcG9zaXRpb246ICdhYnNvbHV0ZScsXG4gICAgICBib3R0b206IDAsXG4gICAgICBsZWZ0OiAwLFxuICAgICAgcmlnaHQ6IDAsXG4gICAgICB3aWR0aDogJzEwMCUnLFxuICAgIH19XG4gICAgLy8gUHJldmVudCBgU3dpdGNoaW5nIGZyb20gdW5jb250cm9sbGVkIHRvIGNvbnRyb2xsZWRgIGVycm9yXG4gICAgdmFsdWU9XCJcIlxuICAgIG9uQ2hhbmdlPXsoKSA9PiB7fX1cbiAgLz5cbik7XG5cbmV4cG9ydCBkZWZhdWx0IFJlcXVpcmVkSW5wdXQ7XG4iXX0= */",toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}},Tc=function(e){var t=e.name,n=e.onFocus;return Is("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:Sc,value:"",onChange:function(){}})};function Oc(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function Nc(){return Oc(/^Mac/i)}function Pc(){return Oc(/^iPhone/i)||Oc(/^iPad/i)||Nc()&&navigator.maxTouchPoints>1}var Rc={clearIndicator:Bl,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},control:function(e,t){var n=e.isDisabled,r=e.isFocused,o=e.theme,i=o.colors,a=o.borderRadius;return yi({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:o.spacing.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:n?i.neutral5:i.neutral0,borderColor:n?i.neutral10:r?i.primary:i.neutral20,borderRadius:a,borderStyle:"solid",borderWidth:1,boxShadow:r?"0 0 0 1px ".concat(i.primary):void 0,"&:hover":{borderColor:r?i.primary:i.neutral30}})},dropdownIndicator:Ll,group:function(e,t){var n=e.theme.spacing;return t?{}:{paddingBottom:2*n.baseUnit,paddingTop:2*n.baseUnit}},groupHeading:function(e,t){var n=e.theme,r=n.colors,o=n.spacing;return yi({label:"group",cursor:"default",display:"block"},t?{}:{color:r.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*o.baseUnit,paddingRight:3*o.baseUnit,textTransform:"uppercase"})},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e,t){var n=e.isDisabled,r=e.theme,o=r.spacing.baseUnit,i=r.colors;return yi({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:n?i.neutral10:i.neutral20,marginBottom:2*o,marginTop:2*o})},input:function(e,t){var n=e.isDisabled,r=e.value,o=e.theme,i=o.spacing,a=o.colors;return yi(yi({visibility:n?"hidden":"visible",transform:r?"translateZ(0)":""},Hl),t?{}:{margin:i.baseUnit/2,paddingBottom:i.baseUnit/2,paddingTop:i.baseUnit/2,color:a.neutral80})},loadingIndicator:function(e,t){var n=e.isFocused,r=e.size,o=e.theme,i=o.colors,a=o.spacing.baseUnit;return yi({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:r,lineHeight:1,marginRight:r,textAlign:"center",verticalAlign:"middle"},t?{}:{color:n?i.neutral60:i.neutral20,padding:2*a})},loadingMessage:Cl,menu:function(e,t){var n,r=e.placement,o=e.theme,i=o.borderRadius,a=o.spacing,s=o.colors;return yi((bi(n={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(r),"100%"),bi(n,"position","absolute"),bi(n,"width","100%"),bi(n,"zIndex",1),n),t?{}:{backgroundColor:s.neutral0,borderRadius:i,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:a.menuGutter,marginTop:a.menuGutter})},menuList:function(e,t){var n=e.maxHeight,r=e.theme.spacing.baseUnit;return yi({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:r,paddingTop:r})},menuPortal:function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},multiValue:function(e,t){var n=e.theme,r=n.spacing,o=n.borderRadius,i=n.colors;return yi({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:i.neutral10,borderRadius:o/2,margin:r.baseUnit/2})},multiValueLabel:function(e,t){var n=e.theme,r=n.borderRadius,o=n.colors,i=e.cropWithEllipsis;return yi({overflow:"hidden",textOverflow:i||void 0===i?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:r/2,color:o.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},multiValueRemove:function(e,t){var n=e.theme,r=n.spacing,o=n.borderRadius,i=n.colors,a=e.isFocused;return yi({alignItems:"center",display:"flex"},t?{}:{borderRadius:o/2,backgroundColor:a?i.dangerLight:void 0,paddingLeft:r.baseUnit,paddingRight:r.baseUnit,":hover":{backgroundColor:i.dangerLight,color:i.danger}})},noOptionsMessage:wl,option:function(e,t){var n=e.isDisabled,r=e.isFocused,o=e.isSelected,i=e.theme,a=i.spacing,s=i.colors;return yi({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:o?s.primary:r?s.primary25:"transparent",color:n?s.neutral20:o?s.neutral0:"inherit",padding:"".concat(2*a.baseUnit,"px ").concat(3*a.baseUnit,"px"),":active":{backgroundColor:n?void 0:o?s.primary:s.primary50}})},placeholder:function(e,t){var n=e.theme,r=n.spacing,o=n.colors;return yi({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:o.neutral50,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},singleValue:function(e,t){var n=e.isDisabled,r=e.theme,o=r.spacing,i=r.colors;return yi({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:n?i.neutral40:i.neutral80,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},valueContainer:function(e,t){var n=e.theme.spacing,r=e.isMulti,o=e.hasValue,i=e.selectProps.controlShouldRenderValue;return yi({alignItems:"center",display:r&&o&&i?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(2*n.baseUnit,"px")})}},kc={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},Lc={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:al(),captureMenuScroll:!al(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:dc(),formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function Bc(e,t,n,r){return{type:"option",data:t,isDisabled:Hc(e,t,n),isSelected:Wc(e,t,n),label:Fc(e,t),value:_c(e,t),index:r}}function Gc(e,t){return e.options.map(function(n,r){if("options"in n){var o=n.options.map(function(n,r){return Bc(e,n,t,r)}).filter(function(t){return Dc(e,t)});return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var i=Bc(e,n,t,r);return Dc(e,i)?i:void 0}).filter(dl)}function jc(e){return e.reduce(function(e,t){return"group"===t.type?e.push.apply(e,Ni(t.options.map(function(e){return e.data}))):e.push(t.data),e},[])}function Mc(e,t){return e.reduce(function(e,n){return"group"===n.type?e.push.apply(e,Ni(n.options.map(function(e){return{data:e.data,id:"".concat(t,"-").concat(n.index,"-").concat(e.index)}}))):e.push({data:n.data,id:"".concat(t,"-").concat(n.index)}),e},[])}function Dc(e,t){var n=e.inputValue,r=void 0===n?"":n,o=t.data,i=t.isSelected,a=t.label,s=t.value;return(!zc(e)||!i)&&Xc(e,{label:a,value:s,data:o},r)}var Vc=function(e,t){var n;return(null===(n=e.find(function(e){return e.data===t}))||void 0===n?void 0:n.id)||null},Fc=function(e,t){return e.getOptionLabel(t)},_c=function(e,t){return e.getOptionValue(t)};function Hc(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function Wc(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=_c(e,t);return n.some(function(t){return _c(e,t)===r})}function Xc(e,t,n){return!e.filterOption||e.filterOption(t,n)}var zc=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},Zc=1,Yc=function(){!function(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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&qo(e,t)}(t,m);var e=function(e){var t=Ti();return function(){var n,r=Si(e);if(t){var o=Si(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Oi(this,n)}}(t);function t(n){var r;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=e.call(this,n)).state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:"",isAppleDevice:!1},r.blockOptionHover=!1,r.isComposing=!1,r.commonProps=void 0,r.initialTouchX=0,r.initialTouchY=0,r.openAfterFocus=!1,r.scrollToFocusedOptionOnUpdate=!1,r.userIsDragging=void 0,r.controlRef=null,r.getControlRef=function(e){r.controlRef=e},r.focusedOptionRef=null,r.getFocusedOptionRef=function(e){r.focusedOptionRef=e},r.menuListRef=null,r.getMenuListRef=function(e){r.menuListRef=e},r.inputRef=null,r.getInputRef=function(e){r.inputRef=e},r.focus=r.focusInput,r.blur=r.blurInput,r.onChange=function(e,t){var n=r.props,o=n.onChange,i=n.name;t.name=i,r.ariaOnChange(e,t),o(e,t)},r.setValue=function(e,t,n){var o=r.props,i=o.closeMenuOnSelect,a=o.isMulti,s=o.inputValue;r.onInputChange("",{action:"set-value",prevInputValue:s}),i&&(r.setState({inputIsHiddenAfterUpdate:!a}),r.onMenuClose()),r.setState({clearFocusValueOnUpdate:!0}),r.onChange(e,{action:t,option:n})},r.selectOption=function(e){var t=r.props,n=t.blurInputOnSelect,o=t.isMulti,i=t.name,a=r.state.selectValue,s=o&&r.isOptionSelected(e,a),l=r.isOptionDisabled(e,a);if(s){var c=r.getOptionValue(e);r.setValue(a.filter(function(e){return r.getOptionValue(e)!==c}),"deselect-option",e)}else{if(l)return void r.ariaOnChange(e,{action:"select-option",option:e,name:i});o?r.setValue([].concat(Ni(a),[e]),"select-option",e):r.setValue(e,"select-option")}n&&r.blurInput()},r.removeValue=function(e){var t=r.props.isMulti,n=r.state.selectValue,o=r.getOptionValue(e),i=n.filter(function(e){return r.getOptionValue(e)!==o}),a=pl(t,i,i[0]||null);r.onChange(a,{action:"remove-value",removedValue:e}),r.focusInput()},r.clearValue=function(){var e=r.state.selectValue;r.onChange(pl(r.props.isMulti,[],null),{action:"clear",removedValues:e})},r.popValue=function(){var e=r.props.isMulti,t=r.state.selectValue,n=t[t.length-1],o=t.slice(0,t.length-1),i=pl(e,o,o[0]||null);n&&r.onChange(i,{action:"pop-value",removedValue:n})},r.getFocusedOptionId=function(e){return Vc(r.state.focusableOptionsWithIds,e)},r.getFocusableOptionsWithIds=function(){return Mc(Gc(r.props,r.state.selectValue),r.getElementId("option"))},r.getValue=function(){return r.state.selectValue},r.cx=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Ks.apply(void 0,[r.props.classNamePrefix].concat(t))},r.getOptionLabel=function(e){return Fc(r.props,e)},r.getOptionValue=function(e){return _c(r.props,e)},r.getStyles=function(e,t){var n=r.props.unstyled,o=Rc[e](t,n);o.boxSizing="border-box";var i=r.props.styles[e];return i?i(o,t):o},r.getClassNames=function(e,t){var n,o;return null===(n=(o=r.props.classNames)[e])||void 0===n?void 0:n.call(o,t)},r.getElementId=function(e){return"".concat(r.state.instancePrefix,"-").concat(e)},r.getComponents=function(){return e=r.props,yi(yi({},Yl),e.components);var e},r.buildCategorizedOptions=function(){return Gc(r.props,r.state.selectValue)},r.getCategorizedOptions=function(){return r.props.menuIsOpen?r.buildCategorizedOptions():[]},r.buildFocusableOptions=function(){return jc(r.buildCategorizedOptions())},r.getFocusableOptions=function(){return r.props.menuIsOpen?r.buildFocusableOptions():[]},r.ariaOnChange=function(e,t){r.setState({ariaSelection:yi({value:e},t)})},r.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),r.focusInput())},r.onMenuMouseMove=function(e){r.blockOptionHover=!1},r.onControlMouseDown=function(e){if(!e.defaultPrevented){var t=r.props.openMenuOnClick;r.state.isFocused?r.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&r.onMenuClose():t&&r.openMenu("first"):(t&&(r.openAfterFocus=!0),r.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()}},r.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||r.props.isDisabled)){var t=r.props,n=t.isMulti,o=t.menuIsOpen;r.focusInput(),o?(r.setState({inputIsHiddenAfterUpdate:!n}),r.onMenuClose()):r.openMenu("first"),e.preventDefault()}},r.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(r.clearValue(),e.preventDefault(),r.openAfterFocus=!1,"touchend"===e.type?r.focusInput():setTimeout(function(){return r.focusInput()}))},r.onScroll=function(e){"boolean"==typeof r.props.closeMenuOnScroll?e.target instanceof HTMLElement&&tl(e.target)&&r.props.onMenuClose():"function"==typeof r.props.closeMenuOnScroll&&r.props.closeMenuOnScroll(e)&&r.props.onMenuClose()},r.onCompositionStart=function(){r.isComposing=!0},r.onCompositionEnd=function(){r.isComposing=!1},r.onTouchStart=function(e){var t=e.touches,n=t&&t.item(0);n&&(r.initialTouchX=n.clientX,r.initialTouchY=n.clientY,r.userIsDragging=!1)},r.onTouchMove=function(e){var t=e.touches,n=t&&t.item(0);if(n){var o=Math.abs(n.clientX-r.initialTouchX),i=Math.abs(n.clientY-r.initialTouchY);r.userIsDragging=o>5||i>5}},r.onTouchEnd=function(e){r.userIsDragging||(r.controlRef&&!r.controlRef.contains(e.target)&&r.menuListRef&&!r.menuListRef.contains(e.target)&&r.blurInput(),r.initialTouchX=0,r.initialTouchY=0)},r.onControlTouchEnd=function(e){r.userIsDragging||r.onControlMouseDown(e)},r.onClearIndicatorTouchEnd=function(e){r.userIsDragging||r.onClearIndicatorMouseDown(e)},r.onDropdownIndicatorTouchEnd=function(e){r.userIsDragging||r.onDropdownIndicatorMouseDown(e)},r.handleInputChange=function(e){var t=r.props.inputValue,n=e.currentTarget.value;r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange(n,{action:"input-change",prevInputValue:t}),r.props.menuIsOpen||r.onMenuOpen()},r.onInputFocus=function(e){r.props.onFocus&&r.props.onFocus(e),r.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(r.openAfterFocus||r.props.openMenuOnFocus)&&r.openMenu("first"),r.openAfterFocus=!1},r.onInputBlur=function(e){var t=r.props.inputValue;r.menuListRef&&r.menuListRef.contains(document.activeElement)?r.inputRef.focus():(r.props.onBlur&&r.props.onBlur(e),r.onInputChange("",{action:"input-blur",prevInputValue:t}),r.onMenuClose(),r.setState({focusedValue:null,isFocused:!1}))},r.onOptionHover=function(e){if(!r.blockOptionHover&&r.state.focusedOption!==e){var t=r.getFocusableOptions().indexOf(e);r.setState({focusedOption:e,focusedOptionId:t>-1?r.getFocusedOptionId(e):null})}},r.shouldHideSelectedOptions=function(){return zc(r.props)},r.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),r.focus()},r.onKeyDown=function(e){var t=r.props,n=t.isMulti,o=t.backspaceRemovesValue,i=t.escapeClearsValue,a=t.inputValue,s=t.isClearable,l=t.isDisabled,c=t.menuIsOpen,u=t.onKeyDown,d=t.tabSelectsValue,p=t.openMenuOnFocus,f=r.state,h=f.focusedOption,m=f.focusedValue,g=f.selectValue;if(!(l||"function"==typeof u&&(u(e),e.defaultPrevented))){switch(r.blockOptionHover=!0,e.key){case"ArrowLeft":if(!n||a)return;r.focusValue("previous");break;case"ArrowRight":if(!n||a)return;r.focusValue("next");break;case"Delete":case"Backspace":if(a)return;if(m)r.removeValue(m);else{if(!o)return;n?r.popValue():s&&r.clearValue()}break;case"Tab":if(r.isComposing)return;if(e.shiftKey||!c||!d||!h||p&&r.isOptionSelected(h,g))return;r.selectOption(h);break;case"Enter":if(229===e.keyCode)break;if(c){if(!h)return;if(r.isComposing)return;r.selectOption(h);break}return;case"Escape":c?(r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange("",{action:"menu-close",prevInputValue:a}),r.onMenuClose()):s&&i&&r.clearValue();break;case" ":if(a)return;if(!c){r.openMenu("first");break}if(!h)return;r.selectOption(h);break;case"ArrowUp":c?r.focusOption("up"):r.openMenu("last");break;case"ArrowDown":c?r.focusOption("down"):r.openMenu("first");break;case"PageUp":if(!c)return;r.focusOption("pageup");break;case"PageDown":if(!c)return;r.focusOption("pagedown");break;case"Home":if(!c)return;r.focusOption("first");break;case"End":if(!c)return;r.focusOption("last");break;default:return}e.preventDefault()}},r.state.instancePrefix="react-select-"+(r.props.instanceId||++Zc),r.state.selectValue=Qs(n.value),n.menuIsOpen&&r.state.selectValue.length){var o=r.getFocusableOptionsWithIds(),i=r.buildFocusableOptions(),a=i.indexOf(r.state.selectValue[0]);r.state.focusableOptionsWithIds=o,r.state.focusedOption=i[a],r.state.focusedOptionId=Vc(o,i[a])}return r}return function(e,t,n){t&&Ai(e.prototype,t),n&&Ai(e,n),Object.defineProperty(e,"prototype",{writable:!1})}(t,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&il(this.menuListRef,this.focusedOptionRef),(Nc()||Pc())&&this.setState({isAppleDevice:!0})}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDisabled,r=t.menuIsOpen,o=this.state.isFocused;(o&&!n&&e.isDisabled||o&&r&&!e.menuIsOpen)&&this.focusInput(),o&&n&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):o||n||!e.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(il(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,r=n.selectValue,o=n.isFocused,i=this.buildFocusableOptions(),a="first"===e?0:i.length-1;if(!this.props.isMulti){var s=i.indexOf(r[0]);s>-1&&(a=s)}this.scrollToFocusedOptionOnUpdate=!(o&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:i[a],focusedOptionId:this.getFocusedOptionId(i[a])},function(){return t.onMenuOpen()})}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,r=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var o=n.indexOf(r);r||(o=-1);var i=n.length-1,a=-1;if(n.length){switch(e){case"previous":a=0===o?0:-1===o?i:o-1;break;case"next":o>-1&&o<i&&(a=o+1)}this.setState({inputIsHidden:-1!==a,focusedValue:n[a]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,r=this.getFocusableOptions();if(r.length){var o=0,i=r.indexOf(n);n||(i=-1),"up"===e?o=i>0?i-1:r.length-1:"down"===e?o=(i+1)%r.length:"pageup"===e?(o=i-t)<0&&(o=0):"pagedown"===e?(o=i+t)>r.length-1&&(o=r.length-1):"last"===e&&(o=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[o],focusedValue:null,focusedOptionId:this.getFocusedOptionId(r[o])})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(kc):yi(yi({},kc),this.props.theme):kc}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getClassNames,o=this.getValue,i=this.selectOption,a=this.setValue,s=this.props,l=s.isMulti,c=s.isRtl,u=s.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:r,getValue:o,hasValue:this.hasValue(),isMulti:l,isRtl:c,options:u,selectOption:i,selectProps:s,setValue:a,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return Hc(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return Wc(this.props,e,t)}},{key:"filterOption",value:function(e,t){return Xc(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,o=e.inputId,i=e.inputValue,a=e.tabIndex,s=e.form,l=e.menuIsOpen,c=e.required,u=this.getComponents().Input,d=this.state,p=d.inputIsHidden,f=d.ariaSelection,h=this.commonProps,m=o||this.getElementId("input"),g=yi(yi(yi({"aria-autocomplete":"list","aria-expanded":l,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":c,role:"combobox","aria-activedescendant":this.state.isAppleDevice?void 0:this.state.focusedOptionId||""},l&&{"aria-controls":this.getElementId("listbox")}),!n&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==f?void 0:f.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return n?r.createElement(u,Ko({},h,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:m,innerRef:this.getInputRef,isDisabled:t,isHidden:p,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:a,form:s,type:"text",value:i},g)):r.createElement(fc,Ko({id:m,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Js,onFocus:this.onInputFocus,disabled:t,tabIndex:a,inputMode:"none",form:s,value:""},g))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,o=t.MultiValueContainer,i=t.MultiValueLabel,a=t.MultiValueRemove,s=t.SingleValue,l=t.Placeholder,c=this.commonProps,u=this.props,d=u.controlShouldRenderValue,p=u.isDisabled,f=u.isMulti,h=u.inputValue,m=u.placeholder,g=this.state,b=g.selectValue,v=g.focusedValue,y=g.isFocused;if(!this.hasValue()||!d)return h?null:r.createElement(l,Ko({},c,{key:"placeholder",isDisabled:p,isFocused:y,innerProps:{id:this.getElementId("placeholder")}}),m);if(f)return b.map(function(t,s){var l=t===v,u="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return r.createElement(n,Ko({},c,{components:{Container:o,Label:i,Remove:a},isFocused:l,isDisabled:p,key:u,index:s,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault()}},data:t}),e.formatOptionLabel(t,"value"))});if(h)return null;var x=b[0];return r.createElement(s,Ko({},c,{data:x,isDisabled:p}),this.formatOptionLabel(x,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,o=n.isDisabled,i=n.isLoading,a=this.state.isFocused;if(!this.isClearable()||!e||o||!this.hasValue()||i)return null;var s={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return r.createElement(e,Ko({},t,{innerProps:s,isFocused:a}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,o=n.isDisabled,i=n.isLoading,a=this.state.isFocused;if(!e||!i)return null;return r.createElement(e,Ko({},t,{innerProps:{"aria-hidden":"true"},isDisabled:o,isFocused:a}))}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var o=this.commonProps,i=this.props.isDisabled,a=this.state.isFocused;return r.createElement(n,Ko({},o,{isDisabled:i,isFocused:a}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,o=this.state.isFocused,i={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return r.createElement(e,Ko({},t,{innerProps:i,isDisabled:n,isFocused:o}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),n=t.Group,o=t.GroupHeading,i=t.Menu,a=t.MenuList,s=t.MenuPortal,l=t.LoadingMessage,c=t.NoOptionsMessage,u=t.Option,d=this.commonProps,p=this.state.focusedOption,f=this.props,h=f.captureMenuScroll,m=f.inputValue,g=f.isLoading,b=f.loadingMessage,v=f.minMenuHeight,y=f.maxMenuHeight,x=f.menuIsOpen,I=f.menuPlacement,w=f.menuPosition,C=f.menuPortalTarget,E=f.menuShouldBlockScroll,A=f.menuShouldScrollIntoView,S=f.noOptionsMessage,T=f.onMenuScrollToTop,O=f.onMenuScrollToBottom;if(!x)return null;var N,P=function(t,n){var o=t.type,i=t.data,a=t.isDisabled,s=t.isSelected,l=t.label,c=t.value,f=p===i,h=a?void 0:function(){return e.onOptionHover(i)},m=a?void 0:function(){return e.selectOption(i)},g="".concat(e.getElementId("option"),"-").concat(n),b={id:g,onClick:m,onMouseMove:h,onMouseOver:h,tabIndex:-1,role:"option","aria-selected":e.state.isAppleDevice?void 0:s};return r.createElement(u,Ko({},d,{innerProps:b,data:i,isDisabled:a,isSelected:s,key:g,label:l,type:o,value:c,isFocused:f,innerRef:f?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())N=this.getCategorizedOptions().map(function(t){if("group"===t.type){var i=t.data,a=t.options,s=t.index,l="".concat(e.getElementId("group"),"-").concat(s),c="".concat(l,"-heading");return r.createElement(n,Ko({},d,{key:l,data:i,options:a,Heading:o,headingProps:{id:c,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map(function(e){return P(e,"".concat(s,"-").concat(e.index))}))}if("option"===t.type)return P(t,"".concat(t.index))});else if(g){var R=b({inputValue:m});if(null===R)return null;N=r.createElement(l,d,R)}else{var k=S({inputValue:m});if(null===k)return null;N=r.createElement(c,d,k)}var L={minMenuHeight:v,maxMenuHeight:y,menuPlacement:I,menuPosition:w,menuShouldScrollIntoView:A},B=r.createElement(yl,Ko({},d,L),function(t){var n=t.ref,o=t.placerProps,s=o.placement,l=o.maxHeight;return r.createElement(i,Ko({},d,L,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:g,placement:s}),r.createElement(Ac,{captureEnabled:h,onTopArrive:T,onBottomArrive:O,lockEnabled:E},function(t){return r.createElement(a,Ko({},d,{innerRef:function(n){e.getMenuListRef(n),t(n)},innerProps:{role:"listbox","aria-multiselectable":d.isMulti,id:e.getElementId("listbox")},isLoading:g,maxHeight:l,focusedOption:p}),N)}))});return C||"fixed"===w?r.createElement(s,Ko({},d,{appendTo:C,controlElement:this.controlRef,menuPlacement:I,menuPosition:w}),B):B}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,o=t.isDisabled,i=t.isMulti,a=t.name,s=t.required,l=this.state.selectValue;if(s&&!this.hasValue()&&!o)return r.createElement(Tc,{name:a,onFocus:this.onValueInputFocus});if(a&&!o){if(i){if(n){var c=l.map(function(t){return e.getOptionValue(t)}).join(n);return r.createElement("input",{name:a,type:"hidden",value:c})}var u=l.length>0?l.map(function(t,n){return r.createElement("input",{key:"i-".concat(n),name:a,type:"hidden",value:e.getOptionValue(t)})}):r.createElement("input",{name:a,type:"hidden",value:""});return r.createElement("div",null,u)}var d=l[0]?this.getOptionValue(l[0]):"";return r.createElement("input",{name:a,type:"hidden",value:d})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,o=t.focusedOption,i=t.focusedValue,a=t.isFocused,s=t.selectValue,l=this.getFocusableOptions();return r.createElement(ec,Ko({},e,{id:this.getElementId("live-region"),ariaSelection:n,focusedOption:o,focusedValue:i,isFocused:a,selectValue:s,focusableOptions:l,isAppleDevice:this.state.isAppleDevice}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,o=e.SelectContainer,i=e.ValueContainer,a=this.props,s=a.className,l=a.id,c=a.isDisabled,u=a.menuIsOpen,d=this.state.isFocused,p=this.commonProps=this.getCommonProps();return r.createElement(o,Ko({},p,{className:s,innerProps:{id:l,onKeyDown:this.onKeyDown},isDisabled:c,isFocused:d}),this.renderLiveRegion(),r.createElement(t,Ko({},p,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:c,isFocused:d,menuIsOpen:u}),r.createElement(i,Ko({},p,{isDisabled:c}),this.renderPlaceholderOrValue(),this.renderInput()),r.createElement(n,Ko({},p,{isDisabled:c}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=t.clearFocusValueOnUpdate,o=t.inputIsHiddenAfterUpdate,i=t.ariaSelection,a=t.isFocused,s=t.prevWasFocused,l=t.instancePrefix,c=e.options,u=e.value,d=e.menuIsOpen,p=e.inputValue,f=e.isMulti,h=Qs(u),m={};if(n&&(u!==n.value||c!==n.options||d!==n.menuIsOpen||p!==n.inputValue)){var g=d?function(e,t){return jc(Gc(e,t))}(e,h):[],b=d?Mc(Gc(e,h),"".concat(l,"-option")):[],v=r?function(e,t){var n=e.focusedValue,r=e.selectValue.indexOf(n);if(r>-1){if(t.indexOf(n)>-1)return n;if(r<t.length)return t[r]}return null}(t,h):null,y=function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,g);m={selectValue:h,focusedOption:y,focusedOptionId:Vc(b,y),focusableOptionsWithIds:b,focusedValue:v,clearFocusValueOnUpdate:!1}}var x=null!=o&&e!==n?{inputIsHidden:o,inputIsHiddenAfterUpdate:void 0}:{},I=i,w=a&&s;return a&&!w&&(I={value:pl(f,h,h[0]||null),options:h,action:"initial-input-focus"},w=!s),"initial-input-focus"===(null==i?void 0:i.action)&&(I=null),yi(yi(yi({},m),x),{},{prevProps:e,ariaSelection:I,prevWasFocused:w})}}]),t}();Yc.defaultProps=Lc;var Uc=i(function(e,t){var n=function(e){var t=e.defaultInputValue,n=void 0===t?"":t,r=e.defaultMenuIsOpen,o=void 0!==r&&r,i=e.defaultValue,a=void 0===i?null:i,s=e.inputValue,l=e.menuIsOpen,d=e.onChange,p=e.onInputChange,f=e.onMenuClose,h=e.onMenuOpen,m=e.value,g=Ci(e,Ei),b=wi(c(void 0!==s?s:n),2),v=b[0],y=b[1],x=wi(c(void 0!==l?l:o),2),I=x[0],w=x[1],C=wi(c(void 0!==m?m:a),2),E=C[0],A=C[1],S=u(function(e,t){"function"==typeof d&&d(e,t),A(e)},[d]),T=u(function(e,t){var n;"function"==typeof p&&(n=p(e,t)),y(void 0!==n?n:e)},[p]),O=u(function(){"function"==typeof h&&h(),w(!0)},[h]),N=u(function(){"function"==typeof f&&f(),w(!1)},[f]),P=void 0!==s?s:v,R=void 0!==l?l:I,k=void 0!==m?m:E;return yi(yi({},g),{},{inputValue:P,menuIsOpen:R,onChange:S,onInputChange:T,onMenuClose:N,onMenuOpen:O,value:k})}(e);return r.createElement(Yc,Ko({ref:t},n))}),Jc=Uc;const $c={sm:"h-12 px-3 rounded-lg",md:"h-14 px-3 rounded-xl",lg:"h-16 px-3 rounded-2xl"},Kc=o.memo(({options:n,className:r,controlClassName:o,value:i,isCustomStyle:a=!1,placeholder:s,required:c,onChange:u,filterOptions:d,hasError:p,error:f,menuClassName:h,helperText:m,label:g,labelClassName:b,singleValueClassName:v,size:y="md",variant:x="default","data-cy":I,"data-testid":w,...C})=>{const E=l(()=>dc(d),[d]),A=l(()=>({control:({isFocused:e})=>{var t;return De(null!==(t=$c[y])&&void 0!==t?t:$c.md,"border border-input-border bg-white hover:not-focus:border-input-border-hover",{"border-input-border-selected outline outline-2 outline-input-border-selected":e&&!p,"border-input-border-critical shadow-none":p},o)},indicatorSeparator:()=>"hidden",dropdownIndicator:({selectProps:e})=>a?e.value?"hidden":"block":"block text-icon-default "+(p?"text-icon-critical":""),singleValue:()=>De(a?"text-text text-body1 whitespace-normal":"text-text-secondary",v),menu:()=>De("z-20 mt-2 rounded-input-poppers bg-surface shadow-dark-drop",h),option:({isFocused:e,isSelected:t,label:r})=>{var o;return De("min-h-[40px] px-4 py-2 cursor-pointer",t?"bg-gray-200 text-text font-semibold":"bg-white text-text-secondary",!t&&"hover:bg-bg-surface-hover",!t&&e&&"bg-bg-surface-hover",a?"text-body1 text-text":"",a&&(null===(o=n[n.length-1])||void 0===o?void 0:o.label)!==r?"border-b border-border-brand":"")},placeholder:()=>"text-input-text-placeholder",input:()=>"text-text",valueContainer:()=>"px-0"}),[a,o,h,n,p,y,v]);return"unstyled"===x?e(Jc,{options:n,value:i,placeholder:c?`${s}*`:s,onChange:u,filterOption:E,className:De("rounded-xl",r),classNames:A,"data-cy":I,"data-testid":w,...C}):t("div",{className:"w-full",children:[g&&e("label",{className:De("mb-1 block text-sm font-medium text-text-secondary",b),children:g}),e(Jc,{options:n,value:i,placeholder:c?`${s}*`:s,onChange:u,filterOption:E,className:De("rounded-xl",r),classNames:A,"data-cy":I,"data-testid":w,...C}),f&&e(Nn,{className:"footnote mt-1 text-text-critical",children:f}),!f&&m&&e(Nn,{className:"footnote mt-1 text-text-info",children:m})]})});Kc.displayName="Select";const Qc=({errorMessage:n,className:r,iconClassName:o,iconSize:i=52,iconName:a="dangerous",textVariant:s})=>n?t("div",{className:De("flex flex-col items-center justify-center gap-5 rounded-surface-sm border-2 border-border-critical bg-bg-fill-critical-secondary px-4 py-6 md:flex-row md:py-4",r),"data-testid":"alert-card",children:[e("div",{children:e(On,{name:a,size:i,className:De("text-icon-critical",o)})}),e(Nn,{className:De("body2 text-text",s),children:n})]}):null;Qc.displayName="AlertCard";const qc=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()},eu="pop",tu=h({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),nu=h({}),ru=h(null),ou="undefined"!=typeof document,iu=ou?f:a,au=h({strict:!1});function su(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function lu(e){return"string"==typeof e||Array.isArray(e)}function cu(e){return"object"==typeof e&&"function"==typeof e.start}const uu=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],du=["initial",...uu];function pu(e){return cu(e.animate)||du.some(t=>lu(e[t]))}function fu(e){return Boolean(pu(e)||e.variants)}function hu(e){const{initial:t,animate:n}=function(e,t){if(pu(e)){const{initial:t,animate:n}=e;return{initial:!1===t||lu(t)?t:void 0,animate:lu(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,p(nu));return l(()=>({initial:t,animate:n}),[mu(t),mu(n)])}function mu(e){return Array.isArray(e)?e.join(" "):e}const gu={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"]},bu={};for(const e in gu)bu[e]={isEnabled:t=>gu[e].some(e=>!!t[e])};const vu=h({}),yu=h({}),xu=Symbol.for("motionComponentSymbol");function Iu({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:o,Component:l}){e&&function(e){for(const t in e)bu[t]={...bu[t],...e[t]}}(e);const c=i(function(i,c){let d;const f={...p(tu),...i,layoutId:wu(i)},{isStatic:h}=f,m=hu(i),g=o(i,h);if(!h&&ou){m.visualElement=function(e,t,n,r){const{visualElement:o}=p(nu),i=p(au),l=p(ru),c=p(tu).reducedMotion,u=s();r=r||i.renderer,!u.current&&r&&(u.current=r(e,{visualState:t,parent:o,props:n,presenceContext:l,blockInitialAnimation:!!l&&!1===l.initial,reducedMotionConfig:c}));const d=u.current;return b(()=>{d&&d.update(n,l)}),iu(()=>{d&&d.render()}),a(()=>{d&&d.updateFeatures()}),(window.HandoffAppearAnimations?iu:a)(()=>{d&&d.animationState&&d.animationState.animateChanges()}),d}(l,g,f,t);const n=p(yu),r=p(au).strict;m.visualElement&&(d=m.visualElement.loadFeatures(f,r,e,n))}return r.createElement(nu.Provider,{value:m},d&&m.visualElement?r.createElement(d,{visualElement:m.visualElement,...f}):null,n(l,i,function(e,t,n){return u(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&("function"==typeof n?n(r):su(n)&&(n.current=r))},[t])}(g,m.visualElement,c),g,h,m.visualElement))});return c[xu]=l,c}function wu({layoutId:e}){const t=p(vu).id;return t&&void 0!==e?t+"-"+e:e}function Cu(e){function t(t,n={}){return Iu(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 Eu=["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 Au(e){return"string"==typeof e&&!e.includes("-")&&!!(Eu.indexOf(e)>-1||/[A-Z]/.test(e))}const Su={};const Tu=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Ou=new Set(Tu);function Nu(e,{layout:t,layoutId:n}){return Ou.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!Su[e]||"opacity"===e)}const Pu=e=>Boolean(e&&e.getVelocity),Ru={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},ku=Tu.length;const Lu=e=>t=>"string"==typeof t&&t.startsWith(e),Bu=Lu("--"),Gu=Lu("var(--"),ju=(e,t)=>t&&"number"==typeof e?t.transform(e):e,Mu=(e,t,n)=>Math.min(Math.max(n,e),t),Du={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},Vu={...Du,transform:e=>Mu(0,1,e)},Fu={...Du,default:1},_u=e=>Math.round(1e5*e)/1e5,Hu=/(-)?([\d]*\.?[\d])+/g,Wu=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,Xu=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function zu(e){return"string"==typeof e}const Zu=e=>({test:t=>zu(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),Yu=Zu("deg"),Uu=Zu("%"),Ju=Zu("px"),$u=Zu("vh"),Ku=Zu("vw"),Qu={...Uu,parse:e=>Uu.parse(e)/100,transform:e=>Uu.transform(100*e)},qu={...Du,transform:Math.round},ed={borderWidth:Ju,borderTopWidth:Ju,borderRightWidth:Ju,borderBottomWidth:Ju,borderLeftWidth:Ju,borderRadius:Ju,radius:Ju,borderTopLeftRadius:Ju,borderTopRightRadius:Ju,borderBottomRightRadius:Ju,borderBottomLeftRadius:Ju,width:Ju,maxWidth:Ju,height:Ju,maxHeight:Ju,size:Ju,top:Ju,right:Ju,bottom:Ju,left:Ju,padding:Ju,paddingTop:Ju,paddingRight:Ju,paddingBottom:Ju,paddingLeft:Ju,margin:Ju,marginTop:Ju,marginRight:Ju,marginBottom:Ju,marginLeft:Ju,rotate:Yu,rotateX:Yu,rotateY:Yu,rotateZ:Yu,scale:Fu,scaleX:Fu,scaleY:Fu,scaleZ:Fu,skew:Yu,skewX:Yu,skewY:Yu,distance:Ju,translateX:Ju,translateY:Ju,translateZ:Ju,x:Ju,y:Ju,z:Ju,perspective:Ju,transformPerspective:Ju,opacity:Vu,originX:Qu,originY:Qu,originZ:Ju,zIndex:qu,fillOpacity:Vu,strokeOpacity:Vu,numOctaves:qu};function td(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(Bu(e)){i[e]=n;continue}const r=ed[e],d=ju(n,r);if(Ou.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<ku;t++){const n=Tu[t];void 0!==e[n]&&(i+=`${Ru[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 nd=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function rd(e,t,n){for(const r in t)Pu(t[r])||Nu(r,n)||(e[r]=t[r])}function od(e,t,n){const r={};return rd(r,e.style||{},e),Object.assign(r,function({transformTemplate:e},t,n){return l(()=>{const r={style:{},transform:{},transformOrigin:{},vars:{}};return td(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}(e,t,n)),e.transformValues?e.transformValues(r):r}function id(e,t,n){const r={},o=od(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 ad=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 sd(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||ad.has(e)}let ld=e=>!sd(e);try{(cd=require("@emotion/is-prop-valid").default)&&(ld=e=>e.startsWith("on")?!sd(e):cd(e))}catch(Rn){}var cd;function ud(e,t,n){return"string"==typeof e?e:Ju.transform(t+n*e)}const dd={offset:"stroke-dashoffset",array:"stroke-dasharray"},pd={offset:"strokeDashoffset",array:"strokeDasharray"};function fd(e,{attrX:t,attrY:n,attrScale:r,originX:o,originY:i,pathLength:a,pathSpacing:s=1,pathOffset:l=0,...c},u,d,p){if(td(e,c,u,p),d)return void(e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox));e.attrs=e.style,e.style={};const{attrs:f,style:h,dimensions:m}=e;f.transform&&(m&&(h.transform=f.transform),delete f.transform),m&&(void 0!==o||void 0!==i||h.transform)&&(h.transformOrigin=function(e,t,n){return`${ud(t,e.x,e.width)} ${ud(n,e.y,e.height)}`}(m,void 0!==o?o:.5,void 0!==i?i:.5)),void 0!==t&&(f.x=t),void 0!==n&&(f.y=n),void 0!==r&&(f.scale=r),void 0!==a&&function(e,t,n=1,r=0,o=!0){e.pathLength=1;const i=o?dd:pd;e[i.offset]=Ju.transform(-r);const a=Ju.transform(t),s=Ju.transform(n);e[i.array]=`${a} ${s}`}(f,a,s,l,!1)}const hd=()=>({style:{},transform:{},transformOrigin:{},vars:{},attrs:{}}),md=e=>"string"==typeof e&&"svg"===e.toLowerCase();function gd(e,t,n,r){const o=l(()=>{const n={style:{},transform:{},transformOrigin:{},vars:{},attrs:{}};return fd(n,t,{enableHardwareAcceleration:!1},md(r),e.transformTemplate),{...n.attrs,style:{...n.style}}},[t]);if(e.style){const t={};rd(t,e.style,e),o.style={...t,...o.style}}return o}function bd(e=!1){return(t,n,r,{latestValues:o},i)=>{const a=(Au(t)?gd:id)(n,o,i,t),s=function(e,t,n){const r={};for(const o in e)"values"===o&&"object"==typeof e.values||(ld(o)||!0===n&&sd(o)||!t&&!sd(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}(n,"string"==typeof t,e),c={...s,...a,ref:r},{children:u}=n,d=l(()=>Pu(u)?u.get():u,[u]);return v(t,{...c,children:d})}}const vd=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function yd(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 xd=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 Id(e,t,n,r){yd(e,t,void 0,r);for(const n in t.attrs)e.setAttribute(xd.has(n)?n:vd(n),t.attrs[n])}function wd(e,t){const{style:n}=e,r={};for(const o in n)(Pu(n[o])||t.style&&Pu(t.style[o])||Nu(o,e))&&(r[o]=n[o]);return r}function Cd(e,t){const n=wd(e,t);for(const r in e)if(Pu(e[r])||Pu(t[r])){n[-1!==Tu.indexOf(r)?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r]=e[r]}return n}function Ed(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}const Ad=e=>Array.isArray(e),Sd=e=>Ad(e)?e[e.length-1]||0:e;function Td(e){const t=Pu(e)?e.get():e;return n=t,Boolean(n&&"object"==typeof n&&n.mix&&n.toValue)?t.toValue():t;var n}const Od=e=>(t,n)=>{const r=p(nu),o=p(ru),i=()=>function({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,o,i){const a={latestValues:Nd(r,o,i,e),renderState:t()};return n&&(a.mount=e=>n(r,e,a)),a}(e,t,r,o);return n?i():function(e){const t=s(null);return null===t.current&&(t.current=e()),t.current}(i)};function Nd(e,t,n,r){const o={},i=r(e,{});for(const e in i)o[e]=Td(i[e]);let{initial:a,animate:s}=e;const l=pu(e),c=fu(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&&!cu(d)){(Array.isArray(d)?d:[d]).forEach(t=>{const n=Ed(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 Pd={useVisualState:Od({scrapeMotionValuesFromProps:Cd,createRenderState:hd,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}}fd(n,r,{enableHardwareAcceleration:!1},md(t.tagName),e.transformTemplate),Id(t,n)}})},Rd={useVisualState:Od({scrapeMotionValuesFromProps:wd,createRenderState:nd})};function kd(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const Ld=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function Bd(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}function Gd(e,t,n,r){return kd(e,t,(e=>t=>Ld(t)&&e(t,Bd(t)))(n),r)}const jd=(e,t)=>n=>t(e(n)),Md=(...e)=>e.reduce(jd);function Dd(e){let t=null;return()=>{const n=()=>{t=null};return null===t&&(t=e,n)}}const Vd=Dd("dragHorizontal"),Fd=Dd("dragVertical");function _d(e){let t=!1;if("y"===e)t=Fd();else if("x"===e)t=Vd();else{const e=Vd(),n=Fd();e&&n?t=()=>{e(),n()}:(e&&e(),n&&n())}return t}function Hd(){const e=_d(!0);return!e||(e(),!1)}class Wd{constructor(e){this.isMounted=!1,this.node=e}update(){}}const Xd={delta:0,timestamp:0,isProcessing:!1};let zd=!0,Zd=!1;const Yd=["read","update","preRender","render","postRender"],Ud=Yd.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}(()=>Zd=!0),e),{}),Jd=e=>Ud[e].process(Xd),$d=e=>{Zd=!1,Xd.delta=zd?1e3/60:Math.max(Math.min(e-Xd.timestamp,40),1),Xd.timestamp=e,Xd.isProcessing=!0,Yd.forEach(Jd),Xd.isProcessing=!1,Zd&&(zd=!1,requestAnimationFrame($d))},Kd=Yd.reduce((e,t)=>{const n=Ud[t];return e[t]=(e,t=!1,r=!1)=>(Zd||(Zd=!0,zd=!0,Xd.isProcessing||requestAnimationFrame($d)),n.schedule(e,t,r)),e},{});function Qd(e){Yd.forEach(t=>Ud[t].cancel(e))}function qd(e,t){const n="pointer"+(t?"enter":"leave"),r="onHover"+(t?"Start":"End");return Gd(e.current,n,(n,o)=>{if("touch"===n.type||Hd())return;const i=e.getProps();e.animationState&&i.whileHover&&e.animationState.setActive("whileHover",t),i[r]&&Kd.update(()=>i[r](n,o))},{passive:!e.getProps()[r]})}const ep=(e,t)=>!!t&&(e===t||ep(e,t.parentElement)),tp=e=>e;function np(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,Bd(n))}const rp=new WeakMap,op=new WeakMap,ip=e=>{const t=rp.get(e.target);t&&t(e)},ap=e=>{e.forEach(ip)};function sp(e,t,n){const r=function({root:e,...t}){const n=e||document;op.has(n)||op.set(n,{});const r=op.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(ap,{root:e,...t})),r[o]}(t);return rp.set(e,n),r.observe(e),()=>{rp.delete(e),r.unobserve(e)}}const lp={some:0,all:1};const cp={inView:{Feature:class extends Wd{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:lp[r]};return sp(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 Wd{constructor(){super(...arguments),this.removeStartListeners=tp,this.removeEndListeners=tp,this.removeAccessibleListeners=tp,this.startPointerPress=(e,t)=>{if(this.removeEndListeners(),this.isPressing)return;const n=this.node.getProps(),r=Gd(window,"pointerup",(e,t)=>{if(!this.checkPressEnd())return;const{onTap:n,onTapCancel:r}=this.node.getProps();Kd.update(()=>{ep(this.node.current,e.target)?n&&n(e,t):r&&r(e,t)})},{passive:!(n.onTap||n.onPointerUp)}),o=Gd(window,"pointercancel",(e,t)=>this.cancelPress(e,t),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=Md(r,o),this.startPress(e,t)},this.startAccessiblePress=()=>{const e=kd(this.node.current,"keydown",e=>{if("Enter"!==e.key||this.isPressing)return;this.removeEndListeners(),this.removeEndListeners=kd(this.node.current,"keyup",e=>{"Enter"===e.key&&this.checkPressEnd()&&np("up",(e,t)=>{const{onTap:n}=this.node.getProps();n&&Kd.update(()=>n(e,t))})}),np("down",(e,t)=>{this.startPress(e,t)})}),t=kd(this.node.current,"blur",()=>{this.isPressing&&np("cancel",(e,t)=>this.cancelPress(e,t))});this.removeAccessibleListeners=Md(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&&Kd.update(()=>n(e,t))}checkPressEnd(){this.removeEndListeners(),this.isPressing=!1;return this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!Hd()}cancelPress(e,t){if(!this.checkPressEnd())return;const{onTapCancel:n}=this.node.getProps();n&&Kd.update(()=>n(e,t))}mount(){const e=this.node.getProps(),t=Gd(this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),n=kd(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Md(t,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}},focus:{Feature:class extends Wd{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=Md(kd(this.node.current,"focus",()=>this.onFocus()),kd(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends Wd{mount(){this.unmount=Md(qd(this.node,!0),qd(this.node,!1))}unmount(){}}}};function up(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 dp(e,t,n){const r=e.getProps();return Ed(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 pp="data-"+vd("framerAppearId");let fp=tp,hp=tp;"production"!==process.env.NODE_ENV&&(fp=(e,t)=>{e||"undefined"==typeof console||console.warn(t)},hp=(e,t)=>{if(!e)throw new Error(t)});const mp=e=>1e3*e,gp=e=>e/1e3,bp=!1,vp=e=>Array.isArray(e)&&"number"==typeof e[0];function yp(e){return Boolean(!e||"string"==typeof e&&Ip[e]||vp(e)||Array.isArray(e)&&e.every(yp))}const xp=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Ip={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:xp([0,.65,.55,1]),circOut:xp([.55,0,1,.45]),backIn:xp([.31,.01,.66,-.59]),backOut:xp([.33,1.53,.69,.99])};function wp(e){if(e)return vp(e)?xp(e):Array.isArray(e)?e.map(wp):Ip[e]}const Cp={waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate")},Ep={},Ap={};for(const e in Cp)Ap[e]=()=>(void 0===Ep[e]&&(Ep[e]=Cp[e]()),Ep[e]);const Sp=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e;function Tp(e,t,n,r){if(e===t&&n===r)return tp;const o=t=>function(e,t,n,r,o){let i,a,s=0;do{a=t+(n-t)/2,i=Sp(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:Sp(o(e),t,r)}const Op=Tp(.42,0,1,1),Np=Tp(0,0,.58,1),Pp=Tp(.42,0,.58,1),Rp=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,kp=e=>t=>1-e(1-t),Lp=e=>1-Math.sin(Math.acos(e)),Bp=kp(Lp),Gp=Rp(Bp),jp=Tp(.33,1.53,.69,.99),Mp=kp(jp),Dp=Rp(Mp),Vp={linear:tp,easeIn:Op,easeInOut:Pp,easeOut:Np,circIn:Lp,circInOut:Gp,circOut:Bp,backIn:Mp,backInOut:Dp,backOut:jp,anticipate:e=>(e*=2)<1?.5*Mp(e):.5*(2-Math.pow(2,-10*(e-1)))},Fp=e=>{if(Array.isArray(e)){hp(4===e.length,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,o]=e;return Tp(t,n,r,o)}return"string"==typeof e?(hp(void 0!==Vp[e],`Invalid easing type '${e}'`),Vp[e]):e},_p=(e,t)=>n=>Boolean(zu(n)&&Xu.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),Hp=(e,t,n)=>r=>{if(!zu(r))return r;const[o,i,a,s]=r.match(Hu);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(a),alpha:void 0!==s?parseFloat(s):1}},Wp={...Du,transform:e=>Math.round((e=>Mu(0,255,e))(e))},Xp={test:_p("rgb","red"),parse:Hp("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Wp.transform(e)+", "+Wp.transform(t)+", "+Wp.transform(n)+", "+_u(Vu.transform(r))+")"};const zp={test:_p("#"),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:Xp.transform},Zp={test:_p("hsl","hue"),parse:Hp("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Uu.transform(_u(t))+", "+Uu.transform(_u(n))+", "+_u(Vu.transform(r))+")"},Yp={test:e=>Xp.test(e)||zp.test(e)||Zp.test(e),parse:e=>Xp.test(e)?Xp.parse(e):Zp.test(e)?Zp.parse(e):zp.parse(e),transform:e=>zu(e)?e:e.hasOwnProperty("red")?Xp.transform(e):Zp.transform(e)},Up=(e,t,n)=>-n*e+n*t+e;function Jp(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 $p=(e,t,n)=>{const r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},Kp=[zp,Xp,Zp];function Qp(e){const t=(n=e,Kp.find(e=>e.test(n)));var n;hp(Boolean(t),`'${e}' is not an animatable color. Use the equivalent color code instead.`);let r=t.parse(e);return t===Zp&&(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=Jp(s,r,e+1/3),i=Jp(s,r,e),a=Jp(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 qp=(e,t)=>{const n=Qp(e),r=Qp(t),o={...n};return e=>(o.red=$p(n.red,r.red,e),o.green=$p(n.green,r.green,e),o.blue=$p(n.blue,r.blue,e),o.alpha=Up(n.alpha,r.alpha,e),Xp.transform(o))};const ef={regex:/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,countKey:"Vars",token:"${v}",parse:tp},tf={regex:Wu,countKey:"Colors",token:"${c}",parse:Yp.parse},nf={regex:Hu,countKey:"Numbers",token:"${n}",parse:Du.parse};function rf(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 of(e){const t=e.toString(),n={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&rf(n,ef),rf(n,tf),rf(n,nf),n}function af(e){return of(e).values}function sf(e){const{values:t,numColors:n,numVars:r,tokenised:o}=of(e),i=t.length;return e=>{let t=o;for(let o=0;o<i;o++)t=o<r?t.replace(ef.token,e[o]):o<r+n?t.replace(tf.token,Yp.transform(e[o])):t.replace(nf.token,_u(e[o]));return t}}const lf=e=>"number"==typeof e?0:e;const cf={test:function(e){var t,n;return isNaN(e)&&zu(e)&&((null===(t=e.match(Hu))||void 0===t?void 0:t.length)||0)+((null===(n=e.match(Wu))||void 0===n?void 0:n.length)||0)>0},parse:af,createTransformer:sf,getAnimatableNone:function(e){const t=af(e);return sf(e)(t.map(lf))}},uf=(e,t)=>n=>`${n>0?t:e}`;function df(e,t){return"number"==typeof e?n=>Up(e,t,n):Yp.test(e)?qp(e,t):e.startsWith("var(")?uf(e,t):hf(e,t)}const pf=(e,t)=>{const n=[...e],r=n.length,o=e.map((e,n)=>df(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=o[t](e);return n}},ff=(e,t)=>{const n={...e,...t},r={};for(const o in n)void 0!==e[o]&&void 0!==t[o]&&(r[o]=df(e[o],t[o]));return e=>{for(const t in r)n[t]=r[t](e);return n}},hf=(e,t)=>{const n=cf.createTransformer(t),r=of(e),o=of(t);return r.numVars===o.numVars&&r.numColors===o.numColors&&r.numNumbers>=o.numNumbers?Md(pf(r.values,o.values),n):(fp(!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.`),uf(e,t))},mf=(e,t,n)=>{const r=t-e;return 0===r?1:(n-e)/r},gf=(e,t)=>n=>Up(e,t,n);function bf(e,t,n){const r=[],o=n||("number"==typeof(i=e[0])?gf:"string"==typeof i?Yp.test(i)?qp:hf:Array.isArray(i)?pf:"object"==typeof i?ff:gf);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]||tp:t;i=Md(e,i)}r.push(i)}return r}function vf(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const i=e.length;if(hp(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=bf(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=mf(e[n],e[n+1],t);return a[n](r)};return n?t=>l(Mu(e[0],e[i-1],t)):l}function yf(e){const t=[0];return function(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=mf(0,t,r);e.push(Up(n,1,o))}}(t,e.length-1),t}function xf({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=(e=>Array.isArray(e)&&"number"!=typeof e[0])(r)?r.map(Fp):Fp(r),i={done:!1,value:t[0]},a=function(e,t){return e.map(e=>e*t)}(n&&n.length===t.length?n:yf(t),e),s=vf(a,t,{ease:Array.isArray(o)?o:(l=t,c=o,l.map(()=>c||Pp).splice(0,l.length-1))});var l,c;return{calculatedDuration:e,next:t=>(i.value=s(t),i.done=t>=e,i)}}function If(e,t){return t?e*(1e3/t):0}function wf(e,t,n){const r=Math.max(t-5,0);return If(n-e(r),t-r)}const Cf=.001;function Ef({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let o,i;fp(e<=mp(10),"Spring duration must be 10 seconds or less");let a=1-t;a=Mu(.05,1,a),e=Mu(.01,10,gp(e)),a<1?(o=t=>{const r=t*a,o=r*e,i=r-n,s=Sf(t,a),l=Math.exp(-o);return Cf-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=Sf(Math.pow(t,2),a);return(-o(t)+Cf>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<Af;n++)r-=e(r)/t(r);return r}(o,i,5/e);if(e=mp(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 Af=12;function Sf(e,t){return e*Math.sqrt(1-t*t)}const Tf=["duration","bounce"],Of=["stiffness","damping","mass"];function Nf(e,t){return t.some(t=>void 0!==e[t])}function Pf({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(!Nf(e,Of)&&Nf(e,Tf)){const n=Ef(e);t={...t,...n,velocity:0,mass:1},t.isResolvedFromDuration=!0}return t}(r),f=u?-gp(u):0,h=l/(2*Math.sqrt(s*c)),m=i-o,g=gp(Math.sqrt(s/c)),b=Math.abs(m)<5;let v;if(n||(n=b?.01:2),t||(t=b?.005:.5),h<1){const e=Sf(g,h);v=t=>{const n=Math.exp(-h*g*t);return i-n*((f+h*g*m)/e*Math.sin(e*t)+m*Math.cos(e*t))}}else if(1===h)v=e=>i-Math.exp(-g*e)*(m+(f+g*m)*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*((f+h*g*m)*Math.sinh(r)+e*m*Math.cosh(r))/e}}return{calculatedDuration:p&&d||null,next:e=>{const r=v(e);if(p)a.done=e>=d;else{let o=f;0!==e&&(o=h<1?wf(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 Rf({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},f=e=>void 0===s?l:void 0===l||Math.abs(s-e)<Math.abs(l-e)?s:l;let h=n*t;const m=d+h,g=void 0===a?m:a(m);g!==m&&(h=g-d);const b=e=>-h*Math.exp(-e/r),v=e=>g+b(e),y=e=>{const t=b(e),n=v(e);p.done=Math.abs(t)<=c,p.value=p.done?g:n};let x,I;const w=e=>{var t;(t=p.value,void 0!==s&&t<s||void 0!==l&&t>l)&&(x=e,I=Pf({keyframes:[p.value,f(p.value)],velocity:wf(v,e,p.value),damping:o,stiffness:i,restDelta:c,restSpeed:u}))};return w(0),{calculatedDuration:null,next:e=>{let t=!1;return I||void 0!==x||(t=!0,y(e),w(e)),void 0!==x&&e>x?I.next(e-x):(!t&&y(e),p)}}}const kf=e=>{const t=({timestamp:t})=>e(t);return{start:()=>Kd.update(t,!0),stop:()=>Qd(t),now:()=>Xd.isProcessing?Xd.timestamp:performance.now()}};function Lf(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 Bf={decay:Rf,inertia:Rf,tween:xf,keyframes:xf,spring:Pf};function Gf({autoplay:e=!0,delay:t=0,driver:n=kf,keyframes:r,type:o="keyframes",repeat:i=0,repeatDelay:a=0,repeatType:s="loop",onPlay:l,onStop:c,onComplete:u,onUpdate:d,...p}){let f,h,m=1,g=!1;const b=()=>{f&&f(),h=new Promise(e=>{f=e})};let v;b();const y=Bf[o]||xf;let x;y!==xf&&"number"!=typeof r[0]&&(x=vf([0,100],r,{clamp:!1}),r=[0,100]);const I=y({...p,keyframes:r});let w;"mirror"===s&&(w=y({...p,keyframes:[...r].reverse(),velocity:-(p.velocity||0)}));let C="idle",E=null,A=null,S=null;null===I.calculatedDuration&&i&&(I.calculatedDuration=Lf(I));const{calculatedDuration:T}=I;let O=1/0,N=1/0;null!==T&&(O=T+a,N=O*(i+1)-a);let P=0;const R=e=>{if(null===A)return;m>0&&(A=Math.min(A,e)),P=null!==E?E:(e-A)*m;const n=P-t,o=n<0;P=Math.max(n,0),"finished"===C&&null===E&&(P=N);let l=P,c=I;if(i){const e=P/O;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/O)):"mirror"===s&&(c=w));let o=Mu(0,1,n);P>N&&(o="reverse"===s&&r?1:0),l=o*O}const u=o?{done:!1,value:r[0]}:c.next(l);x&&(u.value=x(u.value));let{done:p}=u;o||null===T||(p=P>=N);const f=null===E&&("finished"===C||"running"===C&&p||m<0&&P<=0);return d&&d(u.value),f&&B(),u},k=()=>{v&&v.stop(),v=void 0},L=()=>{C="idle",k(),b(),A=S=null},B=()=>{C="finished",u&&u(),k(),b()},G=()=>{if(g)return;v||(v=n(R));const e=v.now();l&&l(),null!==E?A=e-E:A&&"finished"!==C||(A=e),S=A,E=null,C="running",v.start()};e&&G();const j={then:(e,t)=>h.then(e,t),get time(){return gp(P)},set time(e){e=mp(e),P=e,null===E&&v&&0!==m?A=v.now()-e/m:E=e},get duration(){const e=null===I.calculatedDuration?Lf(I):I.calculatedDuration;return gp(e)},get speed(){return m},set speed(e){e!==m&&v&&(m=e,j.time=gp(P))},get state(){return C},play:G,pause:()=>{C="paused",E=P},stop:()=>{g=!0,"idle"!==C&&(C="idle",c&&c(),L())},cancel:()=>{null!==S&&R(S),L()},complete:()=>{C="finished"},sample:e=>(A=0,R(e))};return j}const jf=new Set(["opacity","clipPath","filter","transform","backgroundColor"]);function Mf(e,t,{onUpdate:n,onComplete:r,...o}){if(!(Ap.waapi()&&jf.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||!yp(t.ease))(t,o)){const e=Gf({...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 f=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=wp(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=()=>f.cancel(),m=()=>{Kd.update(h),i(),l()};return f.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(),m()},{then:(e,t)=>a.then(e,t),get time(){return gp(f.currentTime||0)},set time(e){f.currentTime=mp(e)},get speed(){return f.playbackRate},set speed(e){f.playbackRate=e},get duration(){return gp(u)},play:()=>{s||(f.play(),Qd(h))},pause:()=>f.pause(),stop:()=>{if(s=!0,"idle"===f.playState)return;const{currentTime:t}=f;if(t){const n=Gf({...o,autoplay:!1});e.setWithVelocity(n.sample(t-10).value,n.sample(t).value,10)}m()},complete:()=>f.finish(),cancel:m}}const Df={type:"spring",stiffness:500,damping:25,restSpeed:10},Vf={type:"keyframes",duration:.8},Ff={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},_f=(e,{keyframes:t})=>t.length>2?Vf:Ou.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:Df:Ff,Hf=(e,t)=>"zIndex"!==e&&(!("number"!=typeof t&&!Array.isArray(t))||!("string"!=typeof t||!cf.test(t)&&"0"!==t||t.startsWith("url("))),Wf=new Set(["brightness","contrast","saturate","opacity"]);function Xf(e){const[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[r]=n.match(Hu)||[];if(!r)return e;const o=n.replace(r,"");let i=Wf.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const zf=/([a-z-]*)\(.*?\)/g,Zf={...cf,getAnimatableNone:e=>{const t=e.match(zf);return t?t.map(Xf).join(" "):e}},Yf={...ed,color:Yp,backgroundColor:Yp,outlineColor:Yp,fill:Yp,stroke:Yp,borderColor:Yp,borderTopColor:Yp,borderRightColor:Yp,borderBottomColor:Yp,borderLeftColor:Yp,filter:Zf,WebkitFilter:Zf},Uf=e=>Yf[e];function Jf(e,t){let n=Uf(e);return n!==Zf&&(n=cf),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const $f=e=>/^0[^.\s]+$/.test(e);function Kf(e){return"number"==typeof e?0===e:null!==e?"none"===e||"0"===e||$f(e):void 0}function Qf(e,t){return e[t]||e.default||e}const qf=(e,t,n,r={})=>o=>{const i=Qf(r,e)||{},a=i.delay||r.delay||0;let{elapsed:s=0}=r;s-=mp(a);const l=function(e,t,n,r){const o=Hf(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]),Kf(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]]=Jf(t,s);return i}(t,e,n,i),c=l[0],u=l[l.length-1],d=Hf(e,c),p=Hf(e,u);fp(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 f={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)||(f={...f,..._f(e,f)}),f.duration&&(f.duration=mp(f.duration)),f.repeatDelay&&(f.repeatDelay=mp(f.repeatDelay)),!d||!p||bp||!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:tp,pause:tp,stop:tp,then:e=>(e(),Promise.resolve()),cancel:tp,complete:tp});return t?Gf({keyframes:[0,1],duration:0,delay:t,onComplete:o}):o()}(f);if(t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const n=Mf(t,e,f);if(n)return n}return Gf(f)};function eh(e){return Boolean(Pu(e)&&e.add)}const th=e=>/^\-?\d*\.?\d+$/.test(e);function nh(e,t){-1===e.indexOf(t)&&e.push(t)}function rh(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class oh{constructor(){this.subscriptions=[]}add(e){return nh(this.subscriptions,e),()=>rh(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 ih=new Set;function ah(e,t,n){e||ih.has(t)||(console.warn(t),ih.add(t))}class sh{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}=Xd;this.lastUpdated!==r&&(this.timeDelta=n,this.lastUpdated=r,Kd.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=()=>Kd.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&&ah(!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 oh);const n=this.events[e].add(t);return"change"===e?()=>{n(),Kd.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?If(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 lh(e,t){return new sh(e,t)}const ch=e=>t=>t.test(e),uh=[Du,Ju,Uu,Yu,Ku,$u,{test:e=>"auto"===e,parse:e=>e}],dh=e=>uh.find(ch(e)),ph=[...uh,Yp,cf],fh=e=>ph.find(ch(e));function hh(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,lh(n))}function mh(e,t){if(!t)return;return(t[e]||t.default||t).from}function gh({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,r}function bh(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&&gh(u,t))continue;const a={delay:n,elapsed:0,...i};if(window.HandoffAppearAnimations&&!r.hasAnimated){const n=e.getProps()[pp];n&&(a.elapsed=window.HandoffAppearAnimations(n,t,r,Kd))}r.start(qf(t,r,o,e.shouldReduceMotion&&Ou.has(t)?{type:!1}:a));const d=r.animation;eh(l)&&(l.add(t),d.then(()=>l.remove(t))),c.push(d)}return a&&Promise.all(c).then(()=>{a&&function(e,t){const n=dp(e,t);let{transitionEnd:r={},transition:o={},...i}=n?e.makeTargetAnimatable(n,!1):{};i={...i,...r};for(const t in i)hh(e,t,Sd(i[t]))}(e,a)}),c}function vh(e,t,n={}){const r=dp(e,t,n.custom);let{transition:o=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(o=n.transitionOverride);const i=r?()=>Promise.all(bh(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(yh).forEach((e,r)=>{e.notify("AnimationStart",t),a.push(vh(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 yh(e,t){return e.sortNodePosition(t)}const xh=[...uu].reverse(),Ih=uu.length;function wh(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=>vh(e,t,n));r=Promise.all(o)}else if("string"==typeof t)r=vh(e,t,n);else{const o="function"==typeof t?dp(e,t,n.custom):t;r=Promise.all(bh(e,o,n))}return r.then(()=>e.notify("AnimationComplete",t))}(e,t,n)))}function Ch(e){let t=wh(e);const n={animate:Ah(!0),whileInView:Ah(),whileHover:Ah(),whileTap:Ah(),whileDrag:Ah(),whileFocus:Ah(),exit:Ah()};let r=!0;const o=(t,n)=>{const r=dp(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<Ih;t++){const f=xh[t],h=n[f],m=void 0!==s[f]?s[f]:l[f],g=lu(m),b=f===a?h.isActive:null;!1===b&&(p=t);let v=m===l[f]&&m!==s[f]&&g;if(v&&r&&e.manuallyAnimateOnMount&&(v=!1),h.protectedKeys={...d},!h.isActive&&null===b||!m&&!h.prevProp||cu(m)||"boolean"==typeof m)continue;const y=Eh(h.prevProp,m);let x=y||f===a&&h.isActive&&!v&&g||t>p&&g;const I=Array.isArray(m)?m:[m];let w=I.reduce(o,{});!1===b&&(w={});const{prevResolvedValues:C={}}=h,E={...C,...w},A=e=>{x=!0,u.delete(e),h.needsAnimating[e]=!0};for(const e in E){const t=w[e],n=C[e];d.hasOwnProperty(e)||(t!==n?Ad(t)&&Ad(n)?!up(t,n)||y?A(e):h.protectedKeys[e]=!0:void 0!==t?A(e):u.add(e):void 0!==t&&u.has(e)?A(e):h.protectedKeys[e]=!0)}h.prevProp=m,h.prevResolvedValues=w,h.isActive&&(d={...d,...w}),r&&e.blockInitialAnimation&&(x=!1),x&&!v&&c.push(...I.map(e=>({animation:e,options:{type:f,...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 f=Boolean(c.length);return r&&!1===s.initial&&!e.manuallyAnimateOnMount&&(f=!1),r=!1,f?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 Eh(e,t){return"string"==typeof t?t!==e:!!Array.isArray(t)&&!up(t,e)}function Ah(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}let Sh=0;const Th={animation:{Feature:class extends Wd{constructor(e){super(e),e.animationState||(e.animationState=Ch(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();this.unmount(),cu(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 Wd{constructor(){super(...arguments),this.id=Sh++}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(){}}}},Oh=(e,t)=>Math.abs(e-t);class Nh{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=kh(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,n=function(e,t){const n=Oh(e.x,t.x),r=Oh(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}=Xd;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=Ph(t,this.transformPagePoint),Kd.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{if(this.end(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const{onEnd:n,onSessionEnd:r}=this.handlers,o=kh("pointercancel"===e.type?this.lastMoveEventInfo:Ph(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,o),r&&r(e,o)},!Ld(e))return;this.handlers=t,this.transformPagePoint=n;const r=Ph(Bd(e),this.transformPagePoint),{point:o}=r,{timestamp:i}=Xd;this.history=[{...o,timestamp:i}];const{onSessionStart:a}=t;a&&a(e,kh(r,this.history)),this.removeListeners=Md(Gd(window,"pointermove",this.handlePointerMove),Gd(window,"pointerup",this.handlePointerUp),Gd(window,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),Qd(this.updatePoint)}}function Ph(e,t){return t?{point:t(e.point)}:e}function Rh(e,t){return{x:e.x-t.x,y:e.y-t.y}}function kh({point:e},t){return{point:e,delta:Rh(e,Bh(t)),offset:Rh(e,Lh(t)),velocity:Gh(t,.1)}}function Lh(e){return e[0]}function Bh(e){return e[e.length-1]}function Gh(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=Bh(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>mp(t)));)n--;if(!r)return{x:0,y:0};const i=gp(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 jh(e){return e.max-e.min}function Mh(e,t=0,n=.01){return Math.abs(e-t)<=n}function Dh(e,t,n,r=.5){e.origin=r,e.originPoint=Up(t.min,t.max,e.origin),e.scale=jh(n)/jh(t),(Mh(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=Up(n.min,n.max,e.origin)-e.originPoint,(Mh(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Vh(e,t,n,r){Dh(e.x,t.x,n.x,r?r.originX:void 0),Dh(e.y,t.y,n.y,r?r.originY:void 0)}function Fh(e,t,n){e.min=n.min+t.min,e.max=e.min+jh(t)}function _h(e,t,n){e.min=t.min-n.min,e.max=e.min+jh(t)}function Hh(e,t,n){_h(e.x,t.x,n.x),_h(e.y,t.y,n.y)}function Wh(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 Xh(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 zh=.35;function Zh(e,t,n){return{min:Yh(e,t),max:Yh(e,n)}}function Yh(e,t){return"number"==typeof e?e:e[t]||0}const Uh=()=>({x:{min:0,max:0},y:{min:0,max:0}});function Jh(e){return[e("x"),e("y")]}function $h({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Kh(e){return void 0===e||1===e}function Qh({scale:e,scaleX:t,scaleY:n}){return!Kh(e)||!Kh(t)||!Kh(n)}function qh(e){return Qh(e)||em(e)||e.z||e.rotate||e.rotateX||e.rotateY}function em(e){return tm(e.x)||tm(e.y)}function tm(e){return e&&"0%"!==e}function nm(e,t,n){return n+t*(e-n)}function rm(e,t,n,r,o){return void 0!==o&&(e=nm(e,o,r)),nm(e,n,r)+t}function om(e,t=0,n=1,r,o){e.min=rm(e.min,t,n,r,o),e.max=rm(e.max,t,n,r,o)}function im(e,{x:t,y:n}){om(e.x,t.translate,t.scale,t.originPoint),om(e.y,n.translate,n.scale,n.originPoint)}function am(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function sm(e,t){e.min=e.min+t,e.max=e.max+t}function lm(e,t,[n,r,o]){const i=void 0!==t[o]?t[o]:.5,a=Up(e.min,e.max,i);om(e,t[n],t[r],a,t.scale)}const cm=["x","scaleX","originX"],um=["y","scaleY","originY"];function dm(e,t){lm(e.x,t,cm),lm(e.y,t,um)}function pm(e,t){return $h(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 fm=new WeakMap;class hm{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 Nh(e,{onSessionStart:e=>{this.stopAnimation(),t&&this.snapToCursor(Bd(e,"page").point)},onStart:(e,t)=>{const{drag:n,dragPropagation:r,onDragStart:o}=this.getProps();if(n&&!r&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=_d(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),Jh(e=>{let t=this.getAxisMotionValue(e).get()||0;if(Uu.test(t)){const{projection:n}=this.visualElement;if(n&&n.layout){const r=n.layout.layoutBox[e];if(r){t=jh(r)*(parseFloat(t)/100)}}}this.originPoint[e]=t}),o&&Kd.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&&Kd.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||!mm(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?Up(t,e,r.min):Math.max(e,t):void 0!==n&&e>n&&(e=r?Up(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&&su(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!e||!n)&&function(e,{top:t,left:n,bottom:r,right:o}){return{x:Wh(e.x,n,o),y:Wh(e.y,t,r)}}(n.layoutBox,e),this.elastic=function(e=zh){return!1===e?e=0:!0===e&&(e=zh),{x:Zh(e,"left","right"),y:Zh(e,"top","bottom")}}(t),r!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&Jh(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||!su(e))return!1;const n=e.current;hp(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=pm(e,n),{scroll:o}=t;return o&&(sm(r.x,o.offset.x),sm(r.y,o.offset.y)),r}(n,r.root,this.visualElement.getTransformPagePoint());let i=function(e,t){return{x:Xh(e.x,t.x),y:Xh(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=$h(e))}return i}startAnimation(e){const{drag:t,dragMomentum:n,dragElastic:r,dragTransition:o,dragSnapToOrigin:i,onDragTransitionEnd:a}=this.getProps(),s=this.constraints||{},l=Jh(a=>{if(!mm(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(qf(e,n,0,t))}stopAnimation(){Jh(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){Jh(t=>{const{drag:n}=this.getProps();if(!mm(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]-Up(n,i,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!su(t)||!n||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};Jh(e=>{const t=this.getAxisMotionValue(e);if(t){const n=t.get();r[e]=function(e,t){let n=.5;const r=jh(e),o=jh(t);return o>r?n=mf(t.min,t.max-r,e.min):r>o&&(n=mf(e.min,e.max-o,t.min)),Mu(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(),Jh(t=>{if(!mm(t,e,null))return;const n=this.getAxisMotionValue(t),{min:o,max:i}=this.constraints[t];n.set(Up(o,i,r[t]))})}addListeners(){if(!this.visualElement.current)return;fm.set(this.visualElement,this);const e=Gd(this.visualElement.current,"pointerdown",e=>{const{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)}),t=()=>{const{dragConstraints:e}=this.getProps();su(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=kd(window,"resize",()=>this.scalePositionWithinConstraints()),i=n.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(Jh(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=zh,dragMomentum:a=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:o,dragElastic:i,dragMomentum:a}}}function mm(e,t,n){return!(!0!==t&&t!==e||null!==n&&n!==e)}const gm=e=>(t,n)=>{e&&Kd.update(()=>e(t,n))};const bm={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function vm(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const ym={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!Ju.test(e))return e;e=parseFloat(e)}return`${vm(e,t.target.x)}% ${vm(e,t.target.y)}%`}},xm={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=cf.parse(e);if(o.length>5)return r;const i=cf.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=Up(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 Im extends o.Component{componentDidMount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:o}=e;var i;i=Cm,Object.assign(Su,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()})),bm.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()||Kd.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 wm(e){const[t,n]=function(){const e=p(ru);if(null===e)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,o=d();return a(()=>r(o),[]),!t&&n?[!1,()=>n&&n(o)]:[!0]}(),r=p(vu);return o.createElement(Im,{...e,layoutGroup:r,switchLayoutGroup:p(yu),isPresent:t,safeToRemove:n})}const Cm={borderRadius:{...ym,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ym,borderTopRightRadius:ym,borderBottomLeftRadius:ym,borderBottomRightRadius:ym,boxShadow:xm},Em=["TopLeft","TopRight","BottomLeft","BottomRight"],Am=Em.length,Sm=e=>"string"==typeof e?parseFloat(e):e,Tm=e=>"number"==typeof e||Ju.test(e);function Om(e,t){return void 0!==e[t]?e[t]:e.borderRadius}const Nm=Rm(0,.5,Bp),Pm=Rm(.5,.95,tp);function Rm(e,t,n){return r=>r<e?0:r>t?1:n(mf(e,t,r))}function km(e,t){e.min=t.min,e.max=t.max}function Lm(e,t){km(e.x,t.x),km(e.y,t.y)}function Bm(e,t,n,r,o){return e=nm(e-=t,1/n,r),void 0!==o&&(e=nm(e,1/o,r)),e}function Gm(e,t,[n,r,o],i,a){!function(e,t=0,n=1,r=.5,o,i=e,a=e){Uu.test(t)&&(t=parseFloat(t),t=Up(a.min,a.max,t/100)-a.min);if("number"!=typeof t)return;let s=Up(i.min,i.max,r);e===i&&(s-=t),e.min=Bm(e.min,t,n,s,o),e.max=Bm(e.max,t,n,s,o)}(e,t[n],t[r],t[o],t.scale,i,a)}const jm=["x","scaleX","originX"],Mm=["y","scaleY","originY"];function Dm(e,t,n,r){Gm(e.x,t,jm,n?n.x:void 0,r?r.x:void 0),Gm(e.y,t,Mm,n?n.y:void 0,r?r.y:void 0)}function Vm(e){return 0===e.translate&&1===e.scale}function Fm(e){return Vm(e.x)&&Vm(e.y)}function _m(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 Hm(e){return jh(e.x)/jh(e.y)}class Wm{constructor(){this.members=[]}add(e){nh(this.members,e),e.scheduleRender()}remove(e){if(rh(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 Xm(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 zm=(e,t)=>e.depth-t.depth;class Zm{constructor(){this.children=[],this.isDirty=!1}add(e){nh(this.children,e),this.isDirty=!0}remove(e){rh(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(zm),this.isDirty=!1,this.children.forEach(e)}}const Ym=["","X","Y","Z"];let Um=0;const Jm={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function $m({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(e={},n=(null==t?void 0:t())){this.id=Um++,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;Jm.totalNodes=Jm.resolvedTargetDeltas=Jm.recalculatedProjection=0,this.nodes.forEach(qm),this.nodes.forEach(ag),this.nodes.forEach(sg),this.nodes.forEach(eg),e=Jm,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 Zm)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new oh),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&&(Qd(r),e(i-t))};return Kd.read(r,!0),()=>Qd(r)}(r,250),bm.hasAnimatedSinceResize&&(bm.hasAnimatedSinceResize=!1,this.nodes.forEach(ig))})}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()||fg,{onLayoutAnimationStart:i,onLayoutAnimationComplete:s}=a.getProps(),l=!this.targetLayout||!_m(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={...Qf(o,"layout"),onPlay:i,onComplete:s};(a.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||ig(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,Qd(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(lg),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(ng);this.isUpdating||this.nodes.forEach(rg),this.isUpdating=!1,this.nodes.forEach(og),this.nodes.forEach(Km),this.nodes.forEach(Qm),this.clearAllSnapshots();const e=performance.now();Xd.delta=Mu(0,1e3/60,e-Xd.timestamp),Xd.timestamp=e,Xd.isProcessing=!0,Ud.update.process(Xd),Ud.preRender.process(Xd),Ud.render.process(Xd),Xd.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(tg),this.sharedNodes.forEach(cg)}scheduleUpdateProjection(){Kd.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){Kd.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&&!Fm(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,""):void 0,i=r!==this.prevTransformTemplateValue;e&&(t||qh(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)),hg((r=n).x),hg(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&&(sm(t.x,n.offset.x),sm(t.y,n.offset.y)),t}removeElementScroll(e){const t={x:{min:0,max:0},y:{min:0,max:0}};Lm(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){Lm(t,e);const{scroll:n}=this.root;n&&(sm(t.x,-n.offset.x),sm(t.y,-n.offset.y))}sm(t.x,o.offset.x),sm(t.y,o.offset.y)}}return t}applyTransform(e,t=!1){const n={x:{min:0,max:0},y:{min:0,max:0}};Lm(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&&dm(n,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),qh(r.latestValues)&&dm(n,r.latestValues)}return qh(this.latestValues)&&dm(n,this.latestValues),n}removeTransform(e){const t={x:{min:0,max:0},y:{min:0,max:0}};Lm(t,e);for(let e=0;e<this.path.length;e++){const n=this.path[e];if(!n.instance)continue;if(!qh(n.latestValues))continue;Qh(n.latestValues)&&n.updateSnapshot();const r=Uh();Lm(r,n.measurePageBox()),Dm(t,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,r)}return qh(this.latestValues)&&Dm(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!==Xd.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=Xd.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}},Hh(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),Lm(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,Fh(a.x,s.x,l.x),Fh(a.y,s.y,l.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):Lm(this.target,this.layout.layoutBox),im(this.target,this.targetDelta)):Lm(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}},Hh(this.relativeTargetOrigin,this.target,e.target),Lm(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Jm.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(this.parent&&!Qh(this.parent.latestValues)&&!em(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===Xd.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;Lm(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&&dm(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,im(e,a)),r&&qh(i.latestValues)&&dm(e,i.latestValues))}t.x=am(t.x),t.y=am(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;Vh(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.projectionTransform=Xm(this.projectionDelta,this.treeScale),this.projectionTransform===c&&this.treeScale.x===a&&this.treeScale.y===s||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),Jm.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(pg));let d;this.animationProgress=0,this.mixTargetDelta=t=>{const n=t/1e3;ug(i.x,e.x,n),ug(i.y,e.y,n),this.setTargetDelta(i),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Hh(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),function(e,t,n,r){dg(e.x,t.x,n.x,r),dg(e.y,t.y,n.y,r)}(this.relativeTarget,this.relativeTargetOrigin,a,n),d&&_m(this.relativeTarget,d)&&(this.isProjectionDirty=!1),d||(d={x:{min:0,max:0},y:{min:0,max:0}}),Lm(d,this.relativeTarget)),s&&(this.animationValues=o,function(e,t,n,r,o,i){o?(e.opacity=Up(0,void 0!==n.opacity?n.opacity:1,Nm(r)),e.opacityExit=Up(void 0!==t.opacity?t.opacity:1,0,Pm(r))):i&&(e.opacity=Up(void 0!==t.opacity?t.opacity:1,void 0!==n.opacity?n.opacity:1,r));for(let o=0;o<Am;o++){const i=`border${Em[o]}Radius`;let a=Om(t,i),s=Om(n,i);void 0===a&&void 0===s||(a||(a=0),s||(s=0),0===a||0===s||Tm(a)===Tm(s)?(e[i]=Math.max(Up(Sm(a),Sm(s),r),0),(Uu.test(s)||Uu.test(a))&&(e[i]+="%")):e[i]=s)}(t.rotate||n.rotate)&&(e.rotate=Up(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&&(Qd(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Kd.update(()=>{bm.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,n){const r=Pu(e)?e:lh(e);return r.start(qf("",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&&mg(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||{x:{min:0,max:0},y:{min:0,max:0}};const t=jh(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;const r=jh(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}Lm(t,n),dm(t,o),Vh(this.projectionDeltaWithTransform,this.layoutCorrected,t,o)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new Wm);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<Ym.length;t++){const o="rotate"+Ym[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=Td(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=Td(e.pointerEvents)||""),this.hasProjected&&!qh(this.latestValues)&&(t.transform=o?o({},""):"none",this.hasProjected=!1),t}const a=i.animationValues||i.latestValues;this.applyTransformsToTarget(),r.transform=Xm(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 Su){if(void 0===a[e])continue;const{correct:t,applyTo:n}=Su[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?Td(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(ng),this.root.sharedNodes.clear()}}}function Km(e){e.updateLayout()}function Qm(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?Jh(e=>{const r=i?n.measuredBox[e]:n.layoutBox[e],o=jh(r);r.min=t[e].min,r.max=r.min+o}):mg(o,n.layoutBox,t)&&Jh(r=>{const o=i?n.measuredBox[r]:n.layoutBox[r],a=jh(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}};Vh(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?Vh(s,e.applyTransform(r,!0),n.measuredBox):Vh(s,t,n.layoutBox);const l=!Fm(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}};Hh(a,n.layoutBox,o.layoutBox);const s={x:{min:0,max:0},y:{min:0,max:0}};Hh(s,t,i.layoutBox),_m(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 qm(e){Jm.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 eg(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function tg(e){e.clearSnapshot()}function ng(e){e.clearMeasurements()}function rg(e){e.isLayoutDirty=!1}function og(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function ig(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function ag(e){e.resolveTargetDelta()}function sg(e){e.calcProjection()}function lg(e){e.resetRotation()}function cg(e){e.removeLeadSnapshot()}function ug(e,t,n){e.translate=Up(t.translate,0,n),e.scale=Up(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function dg(e,t,n,r){e.min=Up(t.min,n.min,r),e.max=Up(t.max,n.max,r)}function pg(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}const fg={duration:.45,ease:[.4,0,.1,1]};function hg(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function mg(e,t,n){return"position"===e||"preserve-aspect"===e&&!Mh(Hm(t),Hm(n),.2)}const gg=$m({attachResizeListener:(e,t)=>kd(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),bg={current:void 0},vg=$m({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!bg.current){const e=new gg({});e.mount(window),e.setOptions({layoutScroll:!0}),bg.current=e}return bg.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>Boolean("fixed"===window.getComputedStyle(e).position)}),yg={pan:{Feature:class extends Wd{constructor(){super(...arguments),this.removePointerDownListener=tp}onPointerDown(e){this.session=new Nh(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:gm(e),onStart:gm(t),onMove:n,onEnd:(e,t)=>{delete this.session,r&&Kd.update(()=>r(e,t))}}}mount(){this.removePointerDownListener=Gd(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 Wd{constructor(e){super(e),this.removeGroupControls=tp,this.removeListeners=tp,this.controls=new hm(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||tp}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:vg,MeasureLayout:wm}},xg=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function Ig(e,t,n=1){hp(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=xg.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():Gu(o)?Ig(o,t,n+1):o}const wg=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Cg=e=>wg.has(e),Eg=e=>e===Du||e===Ju,Ag=(e,t)=>parseFloat(e.split(", ")[t]),Sg=(e,t)=>(n,{transform:r})=>{if("none"===r||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/);if(o)return Ag(o[1],t);{const t=r.match(/^matrix\((.+)\)$/);return t?Ag(t[1],e):0}},Tg=new Set(["x","y","z"]),Og=Tu.filter(e=>!Tg.has(e));const Ng={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:Sg(4,13),y:Sg(5,14)},Pg=(e,t,n={},r={})=>{t={...t},r={...r};const o=Object.keys(t).filter(Cg);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=dh(c);const d=t[o];let p;if(Ad(d)){const e=d.length,t=null===d[0]?1:0;c=d[t],u=dh(c);for(let n=t;n<e&&null!==d[n];n++)p?hp(dh(d[n])===p,"All keyframes must be of the same type"):(p=dh(d[n]),hp(p===u||Eg(u)&&Eg(p),"Keyframes must be of the same dimension as the current value"))}else p=dh(d);if(u!==p)if(Eg(u)&&Eg(p)){const e=l.get();"string"==typeof e&&l.set(parseFloat(e)),"string"==typeof d?t[o]=parseFloat(d):Array.isArray(d)&&p===Ju&&(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 Og.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]=Ng[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]=Ng[n](l,i)}),e})(t,e,s);return i.length&&i.forEach(([t,n])=>{e.getValue(t).set(n)}),e.render(),ou&&null!==n&&window.scrollTo({top:n}),{target:o,transitionEnd:r}}return{target:t,transitionEnd:r}};function Rg(e,t,n,r){return(e=>Object.keys(e).some(Cg))(t)?Pg(e,t,n,r):{target:t,transitionEnd:r}}const kg=(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(!Gu(t))return;const n=Ig(t,r);n&&e.set(n)});for(const e in t){const o=t[e];if(!Gu(o))continue;const i=Ig(o,r);i&&(t[e]=i,n||(n={}),void 0===n[e]&&(n[e]=o))}return{target:t,transitionEnd:n}}(e,t,r);return Rg(e,t=o.target,n,r=o.transitionEnd)},Lg={current:null},Bg={current:!1};function Gg(){if(Bg.current=!0,ou)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Lg.current=e.matches;e.addListener(t),t()}else Lg.current=!1}const jg=new WeakMap,Mg=Object.keys(bu),Dg=Mg.length,Vg=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],Fg=du.length;class _g{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=()=>Kd.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=pu(t),this.isVariantNode=fu(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]&&Pu(t)&&(t.set(a[e],!1),eh(l)&&l.add(e))}}scrapeMotionValuesFromProps(e,t){return{}}mount(e){this.current=e,jg.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)),Bg.current||Gg(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||Lg.current),"production"!==process.env.NODE_ENV&&ah(!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(){jg.delete(this.current),this.projection&&this.projection.unmount(),Qd(this.notifyUpdate),Qd(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=Ou.has(e),r=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&Kd.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?fp(!1,e):hp(!1,e)}for(let e=0;e<Dg;e++){const n=Mg[e],{isEnabled:r,Feature:o,ProjectionNode:s,MeasureLayout:l}=bu[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&&su(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<Vg.length;t++){const n=Vg[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(Pu(i))e.addValue(o,i),eh(r)&&r.add(o),"development"===process.env.NODE_ENV&&ah("10.12.16"===i.version,`Attempting to mix Framer Motion versions ${i.version} with 10.12.16 may not work as expected.`);else if(Pu(a))e.addValue(o,lh(i,{owner:e})),eh(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,lh(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<Fg;e++){const n=du[e],r=this.props[n];(lu(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=lh(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=Ed(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||Pu(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 oh),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}}class Hg extends _g{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=mh(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&&(th(c)||$f(c))?c=parseFloat(c):!fh(c)&&cf.test(l)&&(c=Jf(a,l)),e.addValue(a,lh(c,{owner:e})),void 0===n[a]&&(n[a]=c),null!==c&&e.setBaseTarget(a,c))}}(this,n,i);const e=kg(this,n,i,t);t=e.transitionEnd,n=e.target}return{transition:e,transitionEnd:t,...n}}}class Wg extends Hg{readValueFromInstance(e,t){if(Ou.has(t)){const e=Uf(t);return e&&e.default||0}{const r=(n=e,window.getComputedStyle(n)),o=(Bu(t)?r.getPropertyValue(t):r[t])||0;return"string"==typeof o?o.trim():o}var n}measureInstanceViewportBox(e,{transformPagePoint:t}){return pm(e,t)}build(e,t,n,r){td(e,t,n,r.transformTemplate)}scrapeMotionValuesFromProps(e,t){return wd(e,t)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;Pu(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}renderInstance(e,t,n,r){yd(e,t,n,r)}}class Xg extends Hg{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(Ou.has(t)){const e=Uf(t);return e&&e.default||0}return t=xd.has(t)?t:vd(t),e.getAttribute(t)}measureInstanceViewportBox(){return{x:{min:0,max:0},y:{min:0,max:0}}}scrapeMotionValuesFromProps(e,t){return Cd(e,t)}build(e,t,n,r){fd(e,t,n,this.isSVGTag,r.transformTemplate)}renderInstance(e,t,n,r){Id(e,t,0,r)}mount(e){this.isSVGTag=md(e.tagName),super.mount(e)}}const zg=(e,t)=>Au(e)?new Xg(t,{enableHardwareAcceleration:!1}):new Wg(t,{enableHardwareAcceleration:!0}),Zg={...Th,...cp,...yg,...{layout:{ProjectionNode:vg,MeasureLayout:wm}}},Yg=Cu((e,t)=>function(e,{forwardMotionProps:t=!1},n,r){return{...Au(e)?Pd:Rd,preloadedFeatures:n,useRender:bd(t),createVisualElement:r,Component:e}}(e,t,Zg,zg));function Ug(){!Bg.current&&Gg();const[e]=c(Lg.current);return"production"!==process.env.NODE_ENV&&ah(!0!==e,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),e}const Jg={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 $g({children:t,animationType:n=eu,disableAnimation:r=!0,whileHover:i,whileTap:a,transition:s,...l}){const c=Ug(),u=o.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=Jg[t];return{whileHover:{...e.whileHover,...n.whileHover},...e.whileTap||n.whileTap?{whileTap:{...e.whileTap,...n.whileTap}}:{},transition:{...e.transition,...n.transition}}},{whileHover:{},transition:{}}):void 0}(n),p=d?{...d.whileHover,...i}:i,f=(null==d?void 0:d.whileTap)||a?{...null==d?void 0:d.whileTap,...a}:void 0,h=d?{...d.transition,...s}:s;if("string"==typeof u.type){const t=Yg[u.type];return e(t,{...u.props,ref:u.ref,whileHover:p,whileTap:f,transition:h,...l})}return e(Yg.div,{whileHover:p,whileTap:f,transition:h,...l,children:u})}$g.displayName="AnimationWrapper";const Kg=i(({variant:r="primary_brand",isLoading:o=!1,text:i,label:a,disabled:s,fullWidth:l,buttonClassName:c,size:u={base:"medium"},iconName:d,iconSize:p=24,iconFill:f=0,disableAnimation:h,animationType:m=eu,as:g="button",...b},v)=>{const y=(()=>{const e=De((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()})(u),"rounded-button overflow-visible flex px-15 gap-2 items-center justify-center text-center outline-none focus:outline focus:outline-2 focus:outline-offset-2 cursor-pointer transition-colors duration-200 align-top whitespace-nowrap",l?"w-full":"lg:inline-flex w-full lg:w-auto"),t=De((s||o)&&"cursor-not-allowed",o&&"pl-7");return De(e,{primary_brand:"bg-bg-fill-brand text-text-brand-on-bg-fill [&:not(:disabled)]:hover:bg-bg-fill-brand-hover focus:outline-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:outline-bg-fill-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:outline-input-border-hover disabled:bg-bg-fill-secondary",secondary_inverse:"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:outline-border-inverse disabled:bg-bg-fill-secondary"}[r]||"",t,c)})();let x=`button--${r}`;o&&(x+=" button--loading"),s&&(x+=" button--disabled");const I=`${x} ${y}`,w=t(n,{children:[o?e(On,{name:"progress_activity",className:"animate-spin"}):null,a?t("span",{className:"flex flex-col",children:[e("span",{className:De(qc(u)),children:a}),i]}):i,d?e(On,{name:d,size:p,fill:f,weight:"200"}):null]});return e($g,"a"===g?{disableAnimation:h,animationType:m,children:e("a",{ref:v,className:De(I),...b,"data-component":"BrandButton","data-variant":"anchor",children:w})}:{disableAnimation:h,animationType:m,children:e("button",{ref:v,className:De(I),disabled:s||o,...b,"data-component":"BrandButton","data-variant":"button",children:w})})});Kg.displayName="BrandButton";const Qg=t=>{const{className:n,...r}=t;return e("div",{className:De("h-[1px] border-t-0 bg-bg-surface-tertiary-active opacity-100",n),...r})};Qg.displayName="Divider";const qg=n=>{const{name:r,value:o,label:i,subText:a,checked:s,onChange:l,className:c,variant:u="circle",hasError:d=!1,labelProps:p={},"data-cy":f,labelClassName:h="",disabled:m,...g}=n,b=()=>null==l?void 0:l(o||r);return t("label",{htmlFor:r,className:De("flex items-center",c),"data-cy":f,...p,children:[e("input",{className:"hidden",type:"radio",name:r,value:o,checked:s,readOnly:!0,disabled:m,...g}),e(Ar,{type:"button",onClick:b,disabled:m,className:De("mr-3 flex h-6 w-6 flex-shrink-0 items-center justify-center rounded-full border-[1px] border-solid border-border-secondary-on-bg-fill bg-bg outline-offset-4",s&&"border-[1px] border-solid border-border-brand",m&&"opacity-50"),children:s&&e("div",{className:"h-[0.875rem] w-[0.875rem] rounded-full bg-bg-fill-brand"})}),t(Ar,{type:"button",onClick:b,disabled:m,tabIndex:i?0:-1,children:[e("div",{className:De("text-body2 font-normal",h),children:i}),e("div",{className:"text-body1 text-text-info",children:a})]})]})};qg.displayName="RadioButton";const eb=n=>{const{list:r,text:o}=n,[i,a]=c(!0);return t("div",{className:"mt-3",children:[t(Ar,{type:"button",className:"flex items-center gap-2 text-base font-semibold text-gray-900","aria-expanded":i,onClick:e=>{e.stopPropagation(),a(e=>!e)},children:[e("span",{children:o||"See details"}),e(On,{name:i?"keyboard_arrow_down":"keyboard_arrow_up",fill:1,size:24})]}),e(pi,{open:i,children:e("div",{className:"pt-1",children:e(Pn,{listItemClassName:"body3",items:r})})})]})};eb.displayName="SeeMore";const tb=({onSelect:r,speed:o,isSelected:i=!1,renderCheckPlans:a,iconSize:s=24,iconClassName:l,cta:u,techType:d,isMax:p,twoColumn:f=!1})=>{const[h,m]=c(!1),g=`btn-medium rounded-button pl-15 pr-15 inline-flex gap-2 items-center justify-center outline-none focus:ring-2 focus:ring-offset-2 cursor-pointer transition-colors duration-200 align-top ${i?" bg-bg-surface text-text focus:ring-bg-fill-surface-inverse":" bg-bg-fill-brand text-text-brand-on-bg-fill enabled:hover:bg-bg-fill-brand-hover focus:ring-bg-fill-brand"} `,b=null==a?void 0:a({speedCardConfig:{isModalOpen:h,setModalOpen:()=>{m(!1)},speed:o,techType:d,isMax:p},cta:u});return t(n,{children:[t(Ar,{onClick:()=>{m(!0),r()},className:De(g,"w-full px-3 md:px-5",f?"justify-center md:justify-between":"justify-between"),"data-track-element-name":"speed_plan_select_button","data-track-click-text":`Select plan speed ${o}`,"data-track-element-clicked":"speed_plan_card",children:[e("span",{className:f?"label3 md:label1":"label1",children:"Select plan"}),e(On,{className:De(l,"!text-[24px] md:!text-[40px]",f&&"hidden md:inline-block",i?"text-icon":"text-icon-inverse"),name:"expand_circle_right",fill:1,size:s})]}),b]})},nb=({className:t="",count:n=1})=>e("div",{className:"animate-pulse space-y-4",children:Array.from({length:n}).map((n,r)=>e("div",{className:`h-8 rounded bg-skeleton-bg-start ${t}`,style:{opacity:1-.1*r}},r))});nb.displayName="Skeleton";const rb=()=>t("div",{className:"item-center mx-auto mt-4 flex animate-pulse flex-col justify-center gap-10 px-1 md:max-w-[48.375rem] md:gap-16 md:px-0","data-testid":"generic-skeleton",children:[e("div",{className:"h-12 w-full rounded-lg bg-skeleton-bg-start","data-testid":"title"}),t("div",{className:"item-center flex flex-col gap-6","data-testid":"subtitle",children:[e("div",{className:"h-5 w-full rounded-lg bg-skeleton-bg-start"}),e("div",{className:"h-5 w-full rounded-lg bg-skeleton-bg-start"})]}),t("div",{className:"item-center flex flex-col gap-3","data-testid":"content",children:[e("div",{className:"h-12 w-full rounded-lg bg-skeleton-bg-start"}),e("div",{className:"h-12 w-full rounded-lg bg-skeleton-bg-start"})]}),t("div",{className:"item-center flex flex-col gap-6","data-testid":"additional-info",children:[e("div",{className:"h-5 w-full rounded-lg bg-skeleton-bg-end"}),e("div",{className:"h-5 w-full rounded-lg bg-skeleton-bg-end"})]}),e("div",{className:"item-center flex justify-center","data-testid":"cta-button",children:e("div",{className:"h-12 w-full rounded-lg bg-skeleton-bg-end md:w-[22.125rem]"})})]});function ob({tooltipMsg:r,className:o,children:i}){return t(n,{children:[e("style",{children:'\n .tooltip-custom {\n position: relative;\n cursor: pointer;\n margin-top: 7px;\n }\n .tooltip-custom::after {\n display: none;\n position: absolute;\n text-align: center;\n z-index: 999;\n content: attr(data-text);\n top: 0;\n left: -200%;\n transform: translate(-50%, calc(-100% - 10px));\n line-height: 1.1rem;\n padding-left: 1rem;\n padding-right: 1rem;\n border-radius: 8px;\n color: white;\n background-color: black;\n padding-bottom: 0.75rem;\n padding-top: 0.75rem;\n width: 270px;\n font-size: 14px;\n }\n .tooltip-custom:hover::after {\n display: block;\n }\n .tooltip-custom::before {\n background-color: black;\n content: " ";\n display: none;\n position: absolute;\n width: 15px;\n height: 15px;\n z-index: 999;\n top: 0;\n left: 50%;\n transform: translate(-50%, calc(-100% - 5px)) rotate(45deg);\n }\n .tooltip-custom:hover::before {\n display: block;\n }\n @media (max-width: 640px) {\n .tooltip-custom::after {\n left: -124px;\n }\n }\n @media (max-width: 343px) {\n .tooltip-custom::after {\n left: 80px;\n width: 160px;\n }\n }\n '}),e("span",{className:`tooltip-custom ${o||""}`,"data-text":r,children:i})]})}var ib,ab;ob.displayName="Tooltip";var sb,lb,cb=function(){if(ab)return ib;function e(e){this._maxSize=e,this.clear()}ab=1,e.prototype.clear=function(){this._size=0,this._values=Object.create(null)},e.prototype.get=function(e){return this._values[e]},e.prototype.set=function(e,t){return this._size>=this._maxSize&&this.clear(),e in this._values||this._size++,this._values[e]=t};var t=/[^.^\]^[]+|(?=\[\]|\.\.)/g,n=/^\d+$/,r=/^\d/,o=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,i=/^\s*(['"]?)(.*?)(\1)\s*$/,a=new e(512),s=new e(512),l=new e(512);function c(e){return a.get(e)||a.set(e,u(e).map(function(e){return e.replace(i,"$2")}))}function u(e){return e.match(t)||[""]}function d(e){return"string"==typeof e&&e&&-1!==["'",'"'].indexOf(e.charAt(0))}function p(e){return!d(e)&&(function(e){return e.match(r)&&!e.match(n)}(e)||function(e){return o.test(e)}(e))}return ib={Cache:e,split:u,normalizePath:c,setter:function(e){var t=c(e);return s.get(e)||s.set(e,function(e,n){for(var r=0,o=t.length,i=e;r<o-1;){var a=t[r];if("__proto__"===a||"constructor"===a||"prototype"===a)return e;i=i[t[r++]]}i[t[r]]=n})},getter:function(e,t){var n=c(e);return l.get(e)||l.set(e,function(e){for(var r=0,o=n.length;r<o;){if(null==e&&t)return;e=e[n[r++]]}return e})},join:function(e){return e.reduce(function(e,t){return e+(d(t)||n.test(t)?"["+t+"]":(e?".":"")+t)},"")},forEach:function(e,t,n){!function(e,t,n){var r,o,i,a,s=e.length;for(o=0;o<s;o++)(r=e[o])&&(p(r)&&(r='"'+r+'"'),i=!(a=d(r))&&/^\d+$/.test(r),t.call(n,r,a,i,o,e))}(Array.isArray(e)?e:u(e),t,n)}},ib}();var ub,db=function(){if(lb)return sb;lb=1;const e=/[A-Z\xc0-\xd6\xd8-\xde]?[a-z\xdf-\xf6\xf8-\xff]+(?:['’](?:d|ll|m|re|s|t|ve))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde]|$)|(?:[A-Z\xc0-\xd6\xd8-\xde]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:D|LL|M|RE|S|T|VE))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde](?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])|$)|[A-Z\xc0-\xd6\xd8-\xde]?(?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:d|ll|m|re|s|t|ve))?|[A-Z\xc0-\xd6\xd8-\xde]+(?:['’](?:D|LL|M|RE|S|T|VE))?|\d*(?:1ST|2ND|3RD|(?![123])\dTH)(?=\b|[a-z_])|\d*(?:1st|2nd|3rd|(?![123])\dth)(?=\b|[A-Z_])|\d+|(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?(?:\u200d(?:[^\ud800-\udfff]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?)*/g,t=t=>t.match(e)||[],n=e=>e[0].toUpperCase()+e.slice(1),r=(e,n)=>t(e).join(n).toLowerCase(),o=e=>t(e).reduce((e,t)=>`${e}${e?t[0].toUpperCase()+t.slice(1).toLowerCase():t.toLowerCase()}`,"");return sb={words:t,upperFirst:n,camelCase:o,pascalCase:e=>n(o(e)),snakeCase:e=>r(e,"_"),kebabCase:e=>r(e,"-"),sentenceCase:e=>n(r(e," ")),titleCase:e=>t(e).map(n).join(" ")}}(),pb={exports:{}};var fb=function(){if(ub)return pb.exports;function e(e,t){var n=e.length,r=new Array(n),o={},i=n,a=function(e){for(var t=new Map,n=0,r=e.length;n<r;n++){var o=e[n];t.has(o[0])||t.set(o[0],new Set),t.has(o[1])||t.set(o[1],new Set),t.get(o[0]).add(o[1])}return t}(t),s=function(e){for(var t=new Map,n=0,r=e.length;n<r;n++)t.set(e[n],n);return t}(e);for(t.forEach(function(e){if(!s.has(e[0])||!s.has(e[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});i--;)o[i]||l(e[i],i,new Set);return r;function l(e,t,i){if(i.has(e)){var c;try{c=", node was:"+JSON.stringify(e)}catch(e){c=""}throw new Error("Cyclic dependency"+c)}if(!s.has(e))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(e));if(!o[t]){o[t]=!0;var u=a.get(e)||new Set;if(t=(u=Array.from(u)).length){i.add(e);do{var d=u[--t];l(d,s.get(d),i)}while(t);i.delete(e)}r[--n]=e}}}return ub=1,pb.exports=function(t){return e(function(e){for(var t=new Set,n=0,r=e.length;n<r;n++){var o=e[n];t.add(o[0]),t.add(o[1])}return Array.from(t)}(t),t)},pb.exports.array=e,pb.exports}(),hb=Fe(fb);const mb=Object.prototype.toString,gb=Error.prototype.toString,bb=RegExp.prototype.toString,vb="undefined"!=typeof Symbol?Symbol.prototype.toString:()=>"",yb=/^Symbol\((.*)\)(.*)$/;function xb(e,t=!1){if(null==e||!0===e||!1===e)return""+e;const n=typeof e;if("number"===n)return function(e){return e!=+e?"NaN":0===e&&1/e<0?"-0":""+e}(e);if("string"===n)return t?`"${e}"`:e;if("function"===n)return"[Function "+(e.name||"anonymous")+"]";if("symbol"===n)return vb.call(e).replace(yb,"Symbol($1)");const r=mb.call(e).slice(8,-1);return"Date"===r?isNaN(e.getTime())?""+e:e.toISOString(e):"Error"===r||e instanceof Error?"["+gb.call(e)+"]":"RegExp"===r?bb.call(e):null}function Ib(e,t){let n=xb(e,t);return null!==n?n:JSON.stringify(e,function(e,n){let r=xb(this[e],t);return null!==r?r:n},2)}function wb(e){return null==e?[]:[].concat(e)}let Cb,Eb,Ab,Sb=/\$\{\s*(\w+)\s*\}/g;Cb=Symbol.toStringTag;class Tb{constructor(e,t,n,r){this.name=void 0,this.message=void 0,this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=void 0,this.inner=void 0,this[Cb]="Error",this.name="ValidationError",this.value=t,this.path=n,this.type=r,this.errors=[],this.inner=[],wb(e).forEach(e=>{if(Ob.isError(e)){this.errors.push(...e.errors);const t=e.inner.length?e.inner:[e];this.inner.push(...t)}else this.errors.push(e)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0]}}Eb=Symbol.hasInstance,Ab=Symbol.toStringTag;class Ob extends Error{static formatError(e,t){const n=t.label||t.path||"this";return t=Object.assign({},t,{path:n,originalPath:t.path}),"string"==typeof e?e.replace(Sb,(e,n)=>Ib(t[n])):"function"==typeof e?e(t):e}static isError(e){return e&&"ValidationError"===e.name}constructor(e,t,n,r,o){const i=new Tb(e,t,n,r);if(o)return i;super(),this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=[],this.inner=[],this[Ab]="Error",this.name=i.name,this.message=i.message,this.type=i.type,this.value=i.value,this.path=i.path,this.errors=i.errors,this.inner=i.inner,Error.captureStackTrace&&Error.captureStackTrace(this,Ob)}static[Eb](e){return Tb[Symbol.hasInstance](e)||super[Symbol.hasInstance](e)}}let Nb={default:"${path} is invalid",required:"${path} is a required field",defined:"${path} must be defined",notNull:"${path} cannot be null",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:e,type:t,value:n,originalValue:r})=>{const o=null!=r&&r!==n?` (cast from the value \`${Ib(r,!0)}\`).`:".";return"mixed"!==t?`${e} must be a \`${t}\` type, but the final value was: \`${Ib(n,!0)}\``+o:`${e} must match the configured type. The validated value was: \`${Ib(n,!0)}\``+o}},Pb={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",datetime:"${path} must be a valid ISO date-time",datetime_precision:"${path} must be a valid ISO date-time with a sub-second precision of exactly ${precision} digits",datetime_offset:'${path} must be a valid ISO date-time with UTC "Z" timezone',trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},Rb={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},kb={isValue:"${path} field must be ${value}"},Lb={noUnknown:"${path} field has unspecified keys: ${unknown}",exact:"${path} object contains unknown properties: ${properties}"},Bb={notType:e=>{const{path:t,value:n,spec:r}=e,o=r.types.length;if(Array.isArray(n)){if(n.length<o)return`${t} tuple value has too few items, expected a length of ${o} but got ${n.length} for value: \`${Ib(n,!0)}\``;if(n.length>o)return`${t} tuple value has too many items, expected a length of ${o} but got ${n.length} for value: \`${Ib(n,!0)}\``}return Ob.formatError(Nb.notType,e)}};Object.assign(Object.create(null),{mixed:Nb,string:Pb,number:{min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},date:Rb,object:Lb,array:{min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"},boolean:kb,tuple:Bb});const Gb=e=>e&&e.__isYupSchema__;class jb{static fromOptions(e,t){if(!t.then&&!t.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:n,then:r,otherwise:o}=t,i="function"==typeof n?n:(...e)=>e.every(e=>e===n);return new jb(e,(e,t)=>{var n;let a=i(...e)?r:o;return null!=(n=null==a?void 0:a(t))?n:t})}constructor(e,t){this.fn=void 0,this.refs=e,this.refs=e,this.fn=t}resolve(e,t){let n=this.refs.map(e=>e.getValue(null==t?void 0:t.value,null==t?void 0:t.parent,null==t?void 0:t.context)),r=this.fn(n,e,t);if(void 0===r||r===e)return e;if(!Gb(r))throw new TypeError("conditions must return a schema object");return r.resolve(t)}}const Mb="$",Db=".";class Vb{constructor(e,t={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,"string"!=typeof e)throw new TypeError("ref must be a string, got: "+e);if(this.key=e.trim(),""===e)throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===Mb,this.isValue=this.key[0]===Db,this.isSibling=!this.isContext&&!this.isValue;let n=this.isContext?Mb:this.isValue?Db:"";this.path=this.key.slice(n.length),this.getter=this.path&&cb.getter(this.path,!0),this.map=t.map}getValue(e,t,n){let r=this.isContext?n:this.isValue?e:t;return this.getter&&(r=this.getter(r||{})),this.map&&(r=this.map(r)),r}cast(e,t){return this.getValue(e,null==t?void 0:t.parent,null==t?void 0:t.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(e){return e&&e.__isYupRef}}Vb.prototype.__isYupRef=!0;const Fb=e=>null==e;function _b(e){function t({value:t,path:n="",options:r,originalValue:o,schema:i},a,s){const{name:l,test:c,params:u,message:d,skipAbsent:p}=e;let{parent:f,context:h,abortEarly:m=i.spec.abortEarly,disableStackTrace:g=i.spec.disableStackTrace}=r;const b={value:t,parent:f,context:h};function v(e={}){const r=Hb(Object.assign({value:t,originalValue:o,label:i.spec.label,path:e.path||n,spec:i.spec,disableStackTrace:e.disableStackTrace||g},u,e.params),b),a=new Ob(Ob.formatError(e.message||d,r),t,r.path,e.type||l,r.disableStackTrace);return a.params=r,a}const y=m?a:s;let x={path:n,parent:f,type:l,from:r.from,createError:v,resolve:e=>Wb(e,b),options:r,originalValue:o,schema:i};const I=e=>{Ob.isError(e)?y(e):e?s(null):y(v())},w=e=>{Ob.isError(e)?y(e):a(e)};if(p&&Fb(t))return I(!0);let C;try{var E;if(C=c.call(x,t,x),"function"==typeof(null==(E=C)?void 0:E.then)){if(r.sync)throw new Error(`Validation test of type: "${x.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`);return Promise.resolve(C).then(I,w)}}catch(e){return void w(e)}I(C)}return t.OPTIONS=e,t}function Hb(e,t){if(!e)return e;for(const n of Object.keys(e))e[n]=Wb(e[n],t);return e}function Wb(e,t){return Vb.isRef(e)?e.getValue(t.value,t.parent,t.context):e}function Xb(e,t,n,r=n){let o,i,a;return t?(cb.forEach(t,(s,l,c)=>{let u=l?s.slice(1,s.length-1):s,d="tuple"===(e=e.resolve({context:r,parent:o,value:n})).type,p=c?parseInt(u,10):0;if(e.innerType||d){if(d&&!c)throw new Error(`Yup.reach cannot implicitly index into a tuple type. the path part "${a}" must contain an index to the tuple element, e.g. "${a}[0]"`);if(n&&p>=n.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${s}, in the path: ${t}. because there is no value at that index. `);o=n,n=n&&n[p],e=d?e.spec.types[p]:e.innerType}if(!c){if(!e.fields||!e.fields[u])throw new Error(`The schema does not contain the path: ${t}. (failed at: ${a} which is a type: "${e.type}")`);o=n,n=n&&n[u],e=e.fields[u]}i=u,a=l?"["+s+"]":"."+s}),{schema:e,parent:o,parentPath:i}):{parent:o,parentPath:t,schema:e}}class zb extends Set{describe(){const e=[];for(const t of this.values())e.push(Vb.isRef(t)?t.describe():t);return e}resolveAll(e){let t=[];for(const n of this.values())t.push(e(n));return t}clone(){return new zb(this.values())}merge(e,t){const n=this.clone();return e.forEach(e=>n.add(e)),t.forEach(e=>n.delete(e)),n}}function Zb(e,t=new Map){if(Gb(e)||!e||"object"!=typeof e)return e;if(t.has(e))return t.get(e);let n;if(e instanceof Date)n=new Date(e.getTime()),t.set(e,n);else if(e instanceof RegExp)n=new RegExp(e),t.set(e,n);else if(Array.isArray(e)){n=new Array(e.length),t.set(e,n);for(let r=0;r<e.length;r++)n[r]=Zb(e[r],t)}else if(e instanceof Map){n=new Map,t.set(e,n);for(const[r,o]of e.entries())n.set(r,Zb(o,t))}else if(e instanceof Set){n=new Set,t.set(e,n);for(const r of e)n.add(Zb(r,t))}else{if(!(e instanceof Object))throw Error(`Unable to clone ${e}`);n={},t.set(e,n);for(const[r,o]of Object.entries(e))n[r]=Zb(o,t)}return n}function Yb(e){if(null==e||!e.length)return;const t=[];let n="",r=!1,o=!1;for(let i=0;i<e.length;i++){const a=e[i];"["!==a||o?"]"!==a||o?'"'!==a?"."!==a||r||o?n+=a:n&&(t.push(n),n=""):o=!o:(n&&(/^\d+$/.test(n)?t.push(n):t.push(n.replace(/^"|"$/g,"")),n=""),r=!1):(n&&(t.push(...n.split(".").filter(Boolean)),n=""),r=!0)}return n&&t.push(...n.split(".").filter(Boolean)),t}function Ub(e,t){var n;if((null==(n=e.inner)||!n.length)&&e.errors.length)return function(e,t){const n=t?`${t}.${e.path}`:e.path;return e.errors.map(e=>({message:e,path:Yb(n)}))}(e,t);const r=t?`${t}.${e.path}`:e.path;return e.inner.flatMap(e=>Ub(e,r))}class Jb{constructor(e){this.type=void 0,this.deps=[],this.tests=void 0,this.transforms=void 0,this.conditions=[],this._mutate=void 0,this.internalTests={},this._whitelist=new zb,this._blacklist=new zb,this.exclusiveTests=Object.create(null),this._typeCheck=void 0,this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation(()=>{this.typeError(Nb.notType)}),this.type=e.type,this._typeCheck=e.check,this.spec=Object.assign({strip:!1,strict:!1,abortEarly:!0,recursive:!0,disableStackTrace:!1,nullable:!1,optional:!0,coerce:!0},null==e?void 0:e.spec),this.withMutation(e=>{e.nonNullable()})}get _type(){return this.type}clone(e){if(this._mutate)return e&&Object.assign(this.spec,e),this;const t=Object.create(Object.getPrototypeOf(this));return t.type=this.type,t._typeCheck=this._typeCheck,t._whitelist=this._whitelist.clone(),t._blacklist=this._blacklist.clone(),t.internalTests=Object.assign({},this.internalTests),t.exclusiveTests=Object.assign({},this.exclusiveTests),t.deps=[...this.deps],t.conditions=[...this.conditions],t.tests=[...this.tests],t.transforms=[...this.transforms],t.spec=Zb(Object.assign({},this.spec,e)),t}label(e){let t=this.clone();return t.spec.label=e,t}meta(...e){if(0===e.length)return this.spec.meta;let t=this.clone();return t.spec.meta=Object.assign(t.spec.meta||{},e[0]),t}withMutation(e){let t=this._mutate;this._mutate=!0;let n=e(this);return this._mutate=t,n}concat(e){if(!e||e===this)return this;if(e.type!==this.type&&"mixed"!==this.type)throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${e.type}`);let t=this,n=e.clone();const r=Object.assign({},t.spec,n.spec);return n.spec=r,n.internalTests=Object.assign({},t.internalTests,n.internalTests),n._whitelist=t._whitelist.merge(e._whitelist,e._blacklist),n._blacklist=t._blacklist.merge(e._blacklist,e._whitelist),n.tests=t.tests,n.exclusiveTests=t.exclusiveTests,n.withMutation(t=>{e.tests.forEach(e=>{t.test(e.OPTIONS)})}),n.transforms=[...t.transforms,...n.transforms],n}isType(e){return null==e?!(!this.spec.nullable||null!==e)||!(!this.spec.optional||void 0!==e):this._typeCheck(e)}resolve(e){let t=this;if(t.conditions.length){let n=t.conditions;t=t.clone(),t.conditions=[],t=n.reduce((t,n)=>n.resolve(t,e),t),t=t.resolve(e)}return t}resolveOptions(e){var t,n,r,o;return Object.assign({},e,{from:e.from||[],strict:null!=(t=e.strict)?t:this.spec.strict,abortEarly:null!=(n=e.abortEarly)?n:this.spec.abortEarly,recursive:null!=(r=e.recursive)?r:this.spec.recursive,disableStackTrace:null!=(o=e.disableStackTrace)?o:this.spec.disableStackTrace})}cast(e,t={}){let n=this.resolve(Object.assign({},t,{value:e})),r="ignore-optionality"===t.assert,o=n._cast(e,t);if(!1!==t.assert&&!n.isType(o)){if(r&&Fb(o))return o;let i=Ib(e),a=Ib(o);throw new TypeError(`The value of ${t.path||"field"} could not be cast to a value that satisfies the schema type: "${n.type}". \n\nattempted value: ${i} \n`+(a!==i?`result of cast: ${a}`:""))}return o}_cast(e,t){let n=void 0===e?e:this.transforms.reduce((n,r)=>r.call(this,n,e,this,t),e);return void 0===n&&(n=this.getDefault(t)),n}_validate(e,t={},n,r){let{path:o,originalValue:i=e,strict:a=this.spec.strict}=t,s=e;a||(s=this._cast(s,Object.assign({assert:!1},t)));let l=[];for(let e of Object.values(this.internalTests))e&&l.push(e);this.runTests({path:o,value:s,originalValue:i,options:t,tests:l},n,e=>{if(e.length)return r(e,s);this.runTests({path:o,value:s,originalValue:i,options:t,tests:this.tests},n,r)})}runTests(e,t,n){let r=!1,{tests:o,value:i,originalValue:a,path:s,options:l}=e,c=e=>{r||(r=!0,t(e,i))},u=e=>{r||(r=!0,n(e,i))},d=o.length,p=[];if(!d)return u([]);let f={value:i,originalValue:a,path:s,options:l,schema:this};for(let e=0;e<o.length;e++){(0,o[e])(f,c,function(e){e&&(Array.isArray(e)?p.push(...e):p.push(e)),--d<=0&&u(p)})}}asNestedTest({key:e,index:t,parent:n,parentPath:r,originalParent:o,options:i}){const a=null!=e?e:t;if(null==a)throw TypeError("Must include `key` or `index` for nested validations");const s="number"==typeof a;let l=n[a];const c=Object.assign({},i,{strict:!0,parent:n,value:l,originalValue:o[a],key:void 0,[s?"index":"key"]:a,path:s||a.includes(".")?`${r||""}[${s?a:`"${a}"`}]`:(r?`${r}.`:"")+e});return(e,t,n)=>this.resolve(c)._validate(l,c,t,n)}validate(e,t){var n;let r=this.resolve(Object.assign({},t,{value:e})),o=null!=(n=null==t?void 0:t.disableStackTrace)?n:r.spec.disableStackTrace;return new Promise((n,i)=>r._validate(e,t,(e,t)=>{Ob.isError(e)&&(e.value=t),i(e)},(e,t)=>{e.length?i(new Ob(e,t,void 0,void 0,o)):n(t)}))}validateSync(e,t){var n;let r,o=this.resolve(Object.assign({},t,{value:e})),i=null!=(n=null==t?void 0:t.disableStackTrace)?n:o.spec.disableStackTrace;return o._validate(e,Object.assign({},t,{sync:!0}),(e,t)=>{throw Ob.isError(e)&&(e.value=t),e},(t,n)=>{if(t.length)throw new Ob(t,e,void 0,void 0,i);r=n}),r}isValid(e,t){return this.validate(e,t).then(()=>!0,e=>{if(Ob.isError(e))return!1;throw e})}isValidSync(e,t){try{return this.validateSync(e,t),!0}catch(e){if(Ob.isError(e))return!1;throw e}}_getDefault(e){let t=this.spec.default;return null==t?t:"function"==typeof t?t.call(this,e):Zb(t)}getDefault(e){return this.resolve(e||{})._getDefault(e)}default(e){if(0===arguments.length)return this._getDefault();return this.clone({default:e})}strict(e=!0){return this.clone({strict:e})}nullability(e,t){const n=this.clone({nullable:e});return n.internalTests.nullable=_b({message:t,name:"nullable",test(e){return null!==e||this.schema.spec.nullable}}),n}optionality(e,t){const n=this.clone({optional:e});return n.internalTests.optionality=_b({message:t,name:"optionality",test(e){return void 0!==e||this.schema.spec.optional}}),n}optional(){return this.optionality(!0)}defined(e=Nb.defined){return this.optionality(!1,e)}nullable(){return this.nullability(!0)}nonNullable(e=Nb.notNull){return this.nullability(!1,e)}required(e=Nb.required){return this.clone().withMutation(t=>t.nonNullable(e).defined(e))}notRequired(){return this.clone().withMutation(e=>e.nullable().optional())}transform(e){let t=this.clone();return t.transforms.push(e),t}test(...e){let t;if(t=1===e.length?"function"==typeof e[0]?{test:e[0]}:e[0]:2===e.length?{name:e[0],test:e[1]}:{name:e[0],message:e[1],test:e[2]},void 0===t.message&&(t.message=Nb.default),"function"!=typeof t.test)throw new TypeError("`test` is a required parameters");let n=this.clone(),r=_b(t),o=t.exclusive||t.name&&!0===n.exclusiveTests[t.name];if(t.exclusive&&!t.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return t.name&&(n.exclusiveTests[t.name]=!!t.exclusive),n.tests=n.tests.filter(e=>{if(e.OPTIONS.name===t.name){if(o)return!1;if(e.OPTIONS.test===r.OPTIONS.test)return!1}return!0}),n.tests.push(r),n}when(e,t){Array.isArray(e)||"string"==typeof e||(t=e,e=".");let n=this.clone(),r=wb(e).map(e=>new Vb(e));return r.forEach(e=>{e.isSibling&&n.deps.push(e.key)}),n.conditions.push("function"==typeof t?new jb(r,t):jb.fromOptions(r,t)),n}typeError(e){let t=this.clone();return t.internalTests.typeError=_b({message:e,name:"typeError",skipAbsent:!0,test(e){return!!this.schema._typeCheck(e)||this.createError({params:{type:this.schema.type}})}}),t}oneOf(e,t=Nb.oneOf){let n=this.clone();return e.forEach(e=>{n._whitelist.add(e),n._blacklist.delete(e)}),n.internalTests.whiteList=_b({message:t,name:"oneOf",skipAbsent:!0,test(e){let t=this.schema._whitelist,n=t.resolveAll(this.resolve);return!!n.includes(e)||this.createError({params:{values:Array.from(t).join(", "),resolved:n}})}}),n}notOneOf(e,t=Nb.notOneOf){let n=this.clone();return e.forEach(e=>{n._blacklist.add(e),n._whitelist.delete(e)}),n.internalTests.blacklist=_b({message:t,name:"notOneOf",test(e){let t=this.schema._blacklist,n=t.resolveAll(this.resolve);return!n.includes(e)||this.createError({params:{values:Array.from(t).join(", "),resolved:n}})}}),n}strip(e=!0){let t=this.clone();return t.spec.strip=e,t}describe(e){const t=(e?this.resolve(e):this).clone(),{label:n,meta:r,optional:o,nullable:i}=t.spec;return{meta:r,label:n,optional:o,nullable:i,default:t.getDefault(e),type:t.type,oneOf:t._whitelist.describe(),notOneOf:t._blacklist.describe(),tests:t.tests.filter((e,t,n)=>n.findIndex(t=>t.OPTIONS.name===e.OPTIONS.name)===t).map(t=>{const n=t.OPTIONS.params&&e?Hb(Object.assign({},t.OPTIONS.params),e):t.OPTIONS.params;return{name:t.OPTIONS.name,params:n}})}}get"~standard"(){const e=this;return{version:1,vendor:"yup",async validate(t){try{return{value:await e.validate(t,{abortEarly:!1})}}catch(e){if(e instanceof Ob)return{issues:Ub(e)};throw e}}}}}Jb.prototype.__isYupSchema__=!0;for(const e of["validate","validateSync"])Jb.prototype[`${e}At`]=function(t,n,r={}){const{parent:o,parentPath:i,schema:a}=Xb(this,t,n,r.context);return a[e](o&&o[i],Object.assign({},r,{parent:o,path:t}))};for(const e of["equals","is"])Jb.prototype[e]=Jb.prototype.oneOf;for(const e of["not","nope"])Jb.prototype[e]=Jb.prototype.notOneOf;function $b(){return new Kb}class Kb extends Jb{constructor(){super({type:"boolean",check:e=>(e instanceof Boolean&&(e=e.valueOf()),"boolean"==typeof e)}),this.withMutation(()=>{this.transform((e,t)=>{if(this.spec.coerce&&!this.isType(e)){if(/^(true|1)$/i.test(String(e)))return!0;if(/^(false|0)$/i.test(String(e)))return!1}return e})})}isTrue(e=kb.isValue){return this.test({message:e,name:"is-value",exclusive:!0,params:{value:"true"},test:e=>Fb(e)||!0===e})}isFalse(e=kb.isValue){return this.test({message:e,name:"is-value",exclusive:!0,params:{value:"false"},test:e=>Fb(e)||!1===e})}default(e){return super.default(e)}defined(e){return super.defined(e)}optional(){return super.optional()}required(e){return super.required(e)}notRequired(){return super.notRequired()}nullable(){return super.nullable()}nonNullable(e){return super.nonNullable(e)}strip(e){return super.strip(e)}}$b.prototype=Kb.prototype;const Qb=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;function qb(e){var t,n;const r=Qb.exec(e);return r?{year:ev(r[1]),month:ev(r[2],1)-1,day:ev(r[3],1),hour:ev(r[4]),minute:ev(r[5]),second:ev(r[6]),millisecond:r[7]?ev(r[7].substring(0,3)):0,precision:null!=(t=null==(n=r[7])?void 0:n.length)?t:void 0,z:r[8]||void 0,plusMinus:r[9]||void 0,hourOffset:ev(r[10]),minuteOffset:ev(r[11])}:null}function ev(e,t=0){return Number(e)||t}let tv=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,nv=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,rv=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,ov=new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(([+-]\\d{2}(:?\\d{2})?)|Z)$"),iv=e=>Fb(e)||e===e.trim(),av={}.toString();function sv(){return new lv}class lv extends Jb{constructor(){super({type:"string",check:e=>(e instanceof String&&(e=e.valueOf()),"string"==typeof e)}),this.withMutation(()=>{this.transform((e,t)=>{if(!this.spec.coerce||this.isType(e))return e;if(Array.isArray(e))return e;const n=null!=e&&e.toString?e.toString():e;return n===av?e:n})})}required(e){return super.required(e).withMutation(t=>t.test({message:e||Nb.required,name:"required",skipAbsent:!0,test:e=>!!e.length}))}notRequired(){return super.notRequired().withMutation(e=>(e.tests=e.tests.filter(e=>"required"!==e.OPTIONS.name),e))}length(e,t=Pb.length){return this.test({message:t,name:"length",exclusive:!0,params:{length:e},skipAbsent:!0,test(t){return t.length===this.resolve(e)}})}min(e,t=Pb.min){return this.test({message:t,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(t){return t.length>=this.resolve(e)}})}max(e,t=Pb.max){return this.test({name:"max",exclusive:!0,message:t,params:{max:e},skipAbsent:!0,test(t){return t.length<=this.resolve(e)}})}matches(e,t){let n,r,o=!1;return t&&("object"==typeof t?({excludeEmptyString:o=!1,message:n,name:r}=t):n=t),this.test({name:r||"matches",message:n||Pb.matches,params:{regex:e},skipAbsent:!0,test:t=>""===t&&o||-1!==t.search(e)})}email(e=Pb.email){return this.matches(tv,{name:"email",message:e,excludeEmptyString:!0})}url(e=Pb.url){return this.matches(nv,{name:"url",message:e,excludeEmptyString:!0})}uuid(e=Pb.uuid){return this.matches(rv,{name:"uuid",message:e,excludeEmptyString:!1})}datetime(e){let t,n,r="";return e&&("object"==typeof e?({message:r="",allowOffset:t=!1,precision:n}=e):r=e),this.matches(ov,{name:"datetime",message:r||Pb.datetime,excludeEmptyString:!0}).test({name:"datetime_offset",message:r||Pb.datetime_offset,params:{allowOffset:t},skipAbsent:!0,test:e=>{if(!e||t)return!0;const n=qb(e);return!!n&&!!n.z}}).test({name:"datetime_precision",message:r||Pb.datetime_precision,params:{precision:n},skipAbsent:!0,test:e=>{if(!e||null==n)return!0;const t=qb(e);return!!t&&t.precision===n}})}ensure(){return this.default("").transform(e=>null===e?"":e)}trim(e=Pb.trim){return this.transform(e=>null!=e?e.trim():e).test({message:e,name:"trim",test:iv})}lowercase(e=Pb.lowercase){return this.transform(e=>Fb(e)?e:e.toLowerCase()).test({message:e,name:"string_case",exclusive:!0,skipAbsent:!0,test:e=>Fb(e)||e===e.toLowerCase()})}uppercase(e=Pb.uppercase){return this.transform(e=>Fb(e)?e:e.toUpperCase()).test({message:e,name:"string_case",exclusive:!0,skipAbsent:!0,test:e=>Fb(e)||e===e.toUpperCase()})}}sv.prototype=lv.prototype;let cv=new Date("");class uv extends Jb{constructor(){super({type:"date",check(e){return t=e,"[object Date]"===Object.prototype.toString.call(t)&&!isNaN(e.getTime());var t}}),this.withMutation(()=>{this.transform((e,t)=>!this.spec.coerce||this.isType(e)||null===e?e:(e=function(e){const t=qb(e);if(!t)return Date.parse?Date.parse(e):Number.NaN;if(void 0===t.z&&void 0===t.plusMinus)return new Date(t.year,t.month,t.day,t.hour,t.minute,t.second,t.millisecond).valueOf();let n=0;return"Z"!==t.z&&void 0!==t.plusMinus&&(n=60*t.hourOffset+t.minuteOffset,"+"===t.plusMinus&&(n=0-n)),Date.UTC(t.year,t.month,t.day,t.hour,t.minute+n,t.second,t.millisecond)}(e),isNaN(e)?uv.INVALID_DATE:new Date(e)))})}prepareParam(e,t){let n;if(Vb.isRef(e))n=e;else{let r=this.cast(e);if(!this._typeCheck(r))throw new TypeError(`\`${t}\` must be a Date or a value that can be \`cast()\` to a Date`);n=r}return n}min(e,t=Rb.min){let n=this.prepareParam(e,"min");return this.test({message:t,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(e){return e>=this.resolve(n)}})}max(e,t=Rb.max){let n=this.prepareParam(e,"max");return this.test({message:t,name:"max",exclusive:!0,params:{max:e},skipAbsent:!0,test(e){return e<=this.resolve(n)}})}}function dv(e,t){let n=1/0;return e.some((e,r)=>{var o;if(null!=(o=t.path)&&o.includes(e))return n=r,!0}),n}function pv(e){return(t,n)=>dv(e,t)-dv(e,n)}uv.INVALID_DATE=cv;const fv=(e,t,n)=>{if("string"!=typeof e)return e;let r=e;try{r=JSON.parse(e)}catch(e){}return n.isType(r)?r:e};function hv(e){if("fields"in e){const t={};for(const[n,r]of Object.entries(e.fields))t[n]=hv(r);return e.setFields(t)}if("array"===e.type){const t=e.optional();return t.innerType&&(t.innerType=hv(t.innerType)),t}return"tuple"===e.type?e.optional().clone({types:e.spec.types.map(hv)}):"optional"in e?e.optional():e}let mv=e=>"[object Object]"===Object.prototype.toString.call(e);function gv(e,t){let n=Object.keys(e.fields);return Object.keys(t).filter(e=>-1===n.indexOf(e))}const bv=pv([]);function vv(e){return new yv(e)}class yv extends Jb{constructor(e){super({type:"object",check:e=>mv(e)||"function"==typeof e}),this.fields=Object.create(null),this._sortErrors=bv,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{e&&this.shape(e)})}_cast(e,t={}){var n;let r=super._cast(e,t);if(void 0===r)return this.getDefault(t);if(!this._typeCheck(r))return r;let o=this.fields,i=null!=(n=t.stripUnknown)?n:this.spec.noUnknown,a=[].concat(this._nodes,Object.keys(r).filter(e=>!this._nodes.includes(e))),s={},l=Object.assign({},t,{parent:s,__validating:t.__validating||!1}),c=!1;for(const e of a){let n=o[e],a=e in r,u=r[e];if(n){let o;l.path=(t.path?`${t.path}.`:"")+e,n=n.resolve({value:u,context:t.context,parent:s});let i=n instanceof Jb?n.spec:void 0,a=null==i?void 0:i.strict;if(null!=i&&i.strip){c=c||e in r;continue}o=t.__validating&&a?u:n.cast(u,l),void 0!==o&&(s[e]=o)}else a&&!i&&(s[e]=u);a===e in s&&s[e]===u||(c=!0)}return c?s:r}_validate(e,t={},n,r){let{from:o=[],originalValue:i=e,recursive:a=this.spec.recursive}=t;t.from=[{schema:this,value:i},...o],t.__validating=!0,t.originalValue=i,super._validate(e,t,n,(e,o)=>{if(!a||!mv(o))return void r(e,o);i=i||o;let s=[];for(let e of this._nodes){let n=this.fields[e];n&&!Vb.isRef(n)&&s.push(n.asNestedTest({options:t,key:e,parent:o,parentPath:t.path,originalParent:i}))}this.runTests({tests:s,value:o,originalValue:i,options:t},n,t=>{r(t.sort(this._sortErrors).concat(e),o)})})}clone(e){const t=super.clone(e);return t.fields=Object.assign({},this.fields),t._nodes=this._nodes,t._excludedEdges=this._excludedEdges,t._sortErrors=this._sortErrors,t}concat(e){let t=super.concat(e),n=t.fields;for(let[e,t]of Object.entries(this.fields)){const r=n[e];n[e]=void 0===r?t:r}return t.withMutation(t=>t.setFields(n,[...this._excludedEdges,...e._excludedEdges]))}_getDefault(e){if("default"in this.spec)return super._getDefault(e);if(!this._nodes.length)return;let t={};return this._nodes.forEach(n=>{var r;const o=this.fields[n];let i=e;null!=(r=i)&&r.value&&(i=Object.assign({},i,{parent:i.value,value:i.value[n]})),t[n]=o&&"getDefault"in o?o.getDefault(i):void 0}),t}setFields(e,t){let n=this.clone();return n.fields=e,n._nodes=function(e,t=[]){let n=[],r=new Set,o=new Set(t.map(([e,t])=>`${e}-${t}`));function i(e,t){let i=cb.split(e)[0];r.add(i),o.has(`${t}-${i}`)||n.push([t,i])}for(const t of Object.keys(e)){let n=e[t];r.add(t),Vb.isRef(n)&&n.isSibling?i(n.path,t):Gb(n)&&"deps"in n&&n.deps.forEach(e=>i(e,t))}return hb.array(Array.from(r),n).reverse()}(e,t),n._sortErrors=pv(Object.keys(e)),t&&(n._excludedEdges=t),n}shape(e,t=[]){return this.clone().withMutation(n=>{let r=n._excludedEdges;return t.length&&(Array.isArray(t[0])||(t=[t]),r=[...n._excludedEdges,...t]),n.setFields(Object.assign(n.fields,e),r)})}partial(){const e={};for(const[t,n]of Object.entries(this.fields))e[t]="optional"in n&&n.optional instanceof Function?n.optional():n;return this.setFields(e)}deepPartial(){return hv(this)}pick(e){const t={};for(const n of e)this.fields[n]&&(t[n]=this.fields[n]);return this.setFields(t,this._excludedEdges.filter(([t,n])=>e.includes(t)&&e.includes(n)))}omit(e){const t=[];for(const n of Object.keys(this.fields))e.includes(n)||t.push(n);return this.pick(t)}from(e,t,n){let r=cb.getter(e,!0);return this.transform(o=>{if(!o)return o;let i=o;return((e,t)=>{const n=[...cb.normalizePath(t)];if(1===n.length)return n[0]in e;let r=n.pop(),o=cb.getter(cb.join(n),!0)(e);return!(!o||!(r in o))})(o,e)&&(i=Object.assign({},o),n||delete i[e],i[t]=r(o)),i})}json(){return this.transform(fv)}exact(e){return this.test({name:"exact",exclusive:!0,message:e||Lb.exact,test(e){if(null==e)return!0;const t=gv(this.schema,e);return 0===t.length||this.createError({params:{properties:t.join(", ")}})}})}stripUnknown(){return this.clone({noUnknown:!0})}noUnknown(e=!0,t=Lb.noUnknown){"boolean"!=typeof e&&(t=e,e=!0);let n=this.test({name:"noUnknown",exclusive:!0,message:t,test(t){if(null==t)return!0;const n=gv(this.schema,t);return!e||0===n.length||this.createError({params:{unknown:n.join(", ")}})}});return n.spec.noUnknown=e,n}unknown(e=!0,t=Lb.noUnknown){return this.noUnknown(!e,t)}transformKeys(e){return this.transform(t=>{if(!t)return t;const n={};for(const r of Object.keys(t))n[e(r)]=t[r];return n})}camelCase(){return this.transformKeys(db.camelCase)}snakeCase(){return this.transformKeys(db.snakeCase)}constantCase(){return this.transformKeys(e=>db.snakeCase(e).toUpperCase())}describe(e){const t=(e?this.resolve(e):this).clone(),n=super.describe(e);n.fields={};for(const[o,i]of Object.entries(t.fields)){var r;let t=e;null!=(r=t)&&r.value&&(t=Object.assign({},t,{parent:t.value,value:t.value[o]})),n.fields[o]=i.describe(t)}return n}}vv.prototype=yv.prototype;const xv={firstName:"",lastName:"",address:"",phone:"",email:"",unit:"",zip:"",isManualAddress:!1,isMarketingCom:!1,addressToSend:{},notes:"",referralCode:"",hasUnits:!1},Iv={firstName:{placeholder:"John"},lastName:{placeholder:"Doe"},address:{placeholder:"Street address"},phoneNumber:{placeholder:"Phone number"},emailAddress:{placeholder:"Email address"},unit:{placeholder:"Unit (optional)"},zip:{placeholder:"Zip"},notes:{placeholder:"Notes or Comments"},referralCode:{placeholder:"Referral Code"}},wv=vv({firstName:sv().required("First name is required").min(2,"Enter a valid First name").matches(/^[a-zA-Z\s]*$/,"Enter a valid First name"),lastName:sv().required("Last name is required").min(2,"Enter a valid Last name").matches(/^[a-zA-Z\s]*$/,"Enter a valid Last name"),isManualAddress:$b(),isMarketingCom:$b(),hasUnits:$b(),unit:sv().when("hasUnits",{is:!0,then:e=>e.required("Unit is required"),otherwise:e=>e.matches(/^[a-zA-Z0-9\s#]*$/,"Enter a valid Unit")}),zip:sv().when("isManualAddress",{is:!0,then:e=>e.required("Zip is required").matches(/^\d{5}$/,"Enter a valid Zip")}),address:sv().required("Enter your home address (street, city, state, and ZIP below)").when("isManualAddress",{is:!0,then:e=>e.matches(/^(\d{1,}) [a-zA-Z0-9\s]+(\,)? [a-zA-Z\s]+(\,)? [A-Z]{2}( [0-9]{5,6})?$/,"Enter your home address (street, city, state, and ZIP below)")}),phone:sv().required("Phone is required").matches(/^\([0-9]{3}\)\s[0-9]{3}-[0-9]{4}$/,"Please enter a valid phone number"),email:sv().email("Invalid email").matches(/^[^\s@]+@[^\s@]+\.[^\s@]+$/,"Invalid email").required("Email is required"),notes:sv(),referralCode:sv().max(50,"Referral code must not exceed 50 characters").matches(/^\S*$/,"Referral code must not contain spaces")});var Cv=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===Ev}(e)}(e)};var Ev="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function Av(e,t){return!1!==t.clone&&t.isMergeableObject(e)?Tv((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function Sv(e,t,n){return e.concat(t).map(function(e){return Av(e,n)})}function Tv(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||Sv,n.isMergeableObject=n.isMergeableObject||Cv;var r=Array.isArray(t);return r===Array.isArray(e)?r?n.arrayMerge(e,t,n):function(e,t,n){var r={};return n.isMergeableObject(e)&&Object.keys(e).forEach(function(t){r[t]=Av(e[t],n)}),Object.keys(t).forEach(function(o){n.isMergeableObject(t[o])&&e[o]?r[o]=Tv(e[o],t[o],n):r[o]=Av(t[o],n)}),r}(e,t,n):Av(t,n)}Tv.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,n){return Tv(e,n,t)},{})};var Ov=Tv,Nv="object"==typeof global&&global&&global.Object===Object&&global,Pv="object"==typeof self&&self&&self.Object===Object&&self,Rv=Nv||Pv||Function("return this")(),kv=Rv.Symbol,Lv=Object.prototype,Bv=Lv.hasOwnProperty,Gv=Lv.toString,jv=kv?kv.toStringTag:void 0;var Mv=Object.prototype.toString;var Dv=kv?kv.toStringTag:void 0;function Vv(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Dv&&Dv in Object(e)?function(e){var t=Bv.call(e,jv),n=e[jv];try{e[jv]=void 0;var r=!0}catch(e){}var o=Gv.call(e);return r&&(t?e[jv]=n:delete e[jv]),o}(e):function(e){return Mv.call(e)}(e)}function Fv(e,t){return function(n){return e(t(n))}}var _v=Fv(Object.getPrototypeOf,Object);function Hv(e){return null!=e&&"object"==typeof e}var Wv=Function.prototype,Xv=Object.prototype,zv=Wv.toString,Zv=Xv.hasOwnProperty,Yv=zv.call(Object);function Uv(e){if(!Hv(e)||"[object Object]"!=Vv(e))return!1;var t=_v(e);if(null===t)return!0;var n=Zv.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&zv.call(n)==Yv}function Jv(e,t){return e===t||e!=e&&t!=t}function $v(e,t){for(var n=e.length;n--;)if(Jv(e[n][0],t))return n;return-1}var Kv=Array.prototype.splice;function Qv(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function qv(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}Qv.prototype.clear=function(){this.__data__=[],this.size=0},Qv.prototype.delete=function(e){var t=this.__data__,n=$v(t,e);return!(n<0)&&(n==t.length-1?t.pop():Kv.call(t,n,1),--this.size,!0)},Qv.prototype.get=function(e){var t=this.__data__,n=$v(t,e);return n<0?void 0:t[n][1]},Qv.prototype.has=function(e){return $v(this.__data__,e)>-1},Qv.prototype.set=function(e,t){var n=this.__data__,r=$v(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function ey(e){if(!qv(e))return!1;var t=Vv(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}var ty,ny=Rv["__core-js_shared__"],ry=(ty=/[^.]+$/.exec(ny&&ny.keys&&ny.keys.IE_PROTO||""))?"Symbol(src)_1."+ty:"";var oy=Function.prototype.toString;function iy(e){if(null!=e){try{return oy.call(e)}catch(e){}try{return e+""}catch(e){}}return""}var ay=/^\[object .+?Constructor\]$/,sy=Function.prototype,ly=Object.prototype,cy=sy.toString,uy=ly.hasOwnProperty,dy=RegExp("^"+cy.call(uy).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function py(e){return!(!qv(e)||function(e){return!!ry&&ry in e}(e))&&(ey(e)?dy:ay).test(iy(e))}function fy(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return py(n)?n:void 0}var hy=fy(Rv,"Map"),my=fy(Object,"create");var gy=Object.prototype.hasOwnProperty;var by=Object.prototype.hasOwnProperty;function vy(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function yy(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function xy(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}vy.prototype.clear=function(){this.__data__=my?my(null):{},this.size=0},vy.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},vy.prototype.get=function(e){var t=this.__data__;if(my){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return gy.call(t,e)?t[e]:void 0},vy.prototype.has=function(e){var t=this.__data__;return my?void 0!==t[e]:by.call(t,e)},vy.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=my&&void 0===t?"__lodash_hash_undefined__":t,this},xy.prototype.clear=function(){this.size=0,this.__data__={hash:new vy,map:new(hy||Qv),string:new vy}},xy.prototype.delete=function(e){var t=yy(this,e).delete(e);return this.size-=t?1:0,t},xy.prototype.get=function(e){return yy(this,e).get(e)},xy.prototype.has=function(e){return yy(this,e).has(e)},xy.prototype.set=function(e,t){var n=yy(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};function Iy(e){var t=this.__data__=new Qv(e);this.size=t.size}Iy.prototype.clear=function(){this.__data__=new Qv,this.size=0},Iy.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Iy.prototype.get=function(e){return this.__data__.get(e)},Iy.prototype.has=function(e){return this.__data__.has(e)},Iy.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Qv){var r=n.__data__;if(!hy||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new xy(r)}return n.set(e,t),this.size=n.size,this};var wy=function(){try{var e=fy(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();function Cy(e,t,n){"__proto__"==t&&wy?wy(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var Ey=Object.prototype.hasOwnProperty;function Ay(e,t,n){var r=e[t];Ey.call(e,t)&&Jv(r,n)&&(void 0!==n||t in e)||Cy(e,t,n)}function Sy(e,t,n,r){var o=!n;n||(n={});for(var i=-1,a=t.length;++i<a;){var s=t[i],l=void 0;void 0===l&&(l=e[s]),o?Cy(n,s,l):Ay(n,s,l)}return n}function Ty(e){return Hv(e)&&"[object Arguments]"==Vv(e)}var Oy=Object.prototype,Ny=Oy.hasOwnProperty,Py=Oy.propertyIsEnumerable,Ry=Ty(function(){return arguments}())?Ty:function(e){return Hv(e)&&Ny.call(e,"callee")&&!Py.call(e,"callee")},ky=Array.isArray;var Ly="object"==typeof exports&&exports&&!exports.nodeType&&exports,By=Ly&&"object"==typeof module&&module&&!module.nodeType&&module,Gy=By&&By.exports===Ly?Rv.Buffer:void 0,jy=(Gy?Gy.isBuffer:void 0)||function(){return!1},My=/^(?:0|[1-9]\d*)$/;function Dy(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&My.test(e))&&e>-1&&e%1==0&&e<t}function Vy(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}var Fy={};function _y(e){return function(t){return e(t)}}Fy["[object Float32Array]"]=Fy["[object Float64Array]"]=Fy["[object Int8Array]"]=Fy["[object Int16Array]"]=Fy["[object Int32Array]"]=Fy["[object Uint8Array]"]=Fy["[object Uint8ClampedArray]"]=Fy["[object Uint16Array]"]=Fy["[object Uint32Array]"]=!0,Fy["[object Arguments]"]=Fy["[object Array]"]=Fy["[object ArrayBuffer]"]=Fy["[object Boolean]"]=Fy["[object DataView]"]=Fy["[object Date]"]=Fy["[object Error]"]=Fy["[object Function]"]=Fy["[object Map]"]=Fy["[object Number]"]=Fy["[object Object]"]=Fy["[object RegExp]"]=Fy["[object Set]"]=Fy["[object String]"]=Fy["[object WeakMap]"]=!1;var Hy="object"==typeof exports&&exports&&!exports.nodeType&&exports,Wy=Hy&&"object"==typeof module&&module&&!module.nodeType&&module,Xy=Wy&&Wy.exports===Hy&&Nv.process,zy=function(){try{var e=Wy&&Wy.require&&Wy.require("util").types;return e||Xy&&Xy.binding&&Xy.binding("util")}catch(e){}}(),Zy=zy&&zy.isTypedArray,Yy=Zy?_y(Zy):function(e){return Hv(e)&&Vy(e.length)&&!!Fy[Vv(e)]},Uy=Object.prototype.hasOwnProperty;function Jy(e,t){var n=ky(e),r=!n&&Ry(e),o=!n&&!r&&jy(e),i=!n&&!r&&!o&&Yy(e),a=n||r||o||i,s=a?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],l=s.length;for(var c in e)!t&&!Uy.call(e,c)||a&&("length"==c||o&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Dy(c,l))||s.push(c);return s}var $y=Object.prototype;function Ky(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||$y)}var Qy=Fv(Object.keys,Object),qy=Object.prototype.hasOwnProperty;function ex(e){return null!=e&&Vy(e.length)&&!ey(e)}function tx(e){return ex(e)?Jy(e):function(e){if(!Ky(e))return Qy(e);var t=[];for(var n in Object(e))qy.call(e,n)&&"constructor"!=n&&t.push(n);return t}(e)}var nx=Object.prototype.hasOwnProperty;function rx(e){if(!qv(e))return function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}(e);var t=Ky(e),n=[];for(var r in e)("constructor"!=r||!t&&nx.call(e,r))&&n.push(r);return n}function ox(e){return ex(e)?Jy(e,!0):rx(e)}var ix="object"==typeof exports&&exports&&!exports.nodeType&&exports,ax=ix&&"object"==typeof module&&module&&!module.nodeType&&module,sx=ax&&ax.exports===ix?Rv.Buffer:void 0,lx=sx?sx.allocUnsafe:void 0;function cx(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}function ux(){return[]}var dx=Object.prototype.propertyIsEnumerable,px=Object.getOwnPropertySymbols,fx=px?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}(px(e),function(t){return dx.call(e,t)}))}:ux;function hx(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}var mx=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)hx(t,fx(e)),e=_v(e);return t}:ux;function gx(e,t,n){var r=t(e);return ky(e)?r:hx(r,n(e))}function bx(e){return gx(e,tx,fx)}function vx(e){return gx(e,ox,mx)}var yx=fy(Rv,"DataView"),xx=fy(Rv,"Promise"),Ix=fy(Rv,"Set"),wx=fy(Rv,"WeakMap"),Cx="[object Map]",Ex="[object Promise]",Ax="[object Set]",Sx="[object WeakMap]",Tx="[object DataView]",Ox=iy(yx),Nx=iy(hy),Px=iy(xx),Rx=iy(Ix),kx=iy(wx),Lx=Vv;(yx&&Lx(new yx(new ArrayBuffer(1)))!=Tx||hy&&Lx(new hy)!=Cx||xx&&Lx(xx.resolve())!=Ex||Ix&&Lx(new Ix)!=Ax||wx&&Lx(new wx)!=Sx)&&(Lx=function(e){var t=Vv(e),n="[object Object]"==t?e.constructor:void 0,r=n?iy(n):"";if(r)switch(r){case Ox:return Tx;case Nx:return Cx;case Px:return Ex;case Rx:return Ax;case kx:return Sx}return t});var Bx=Object.prototype.hasOwnProperty;var Gx=Rv.Uint8Array;function jx(e){var t=new e.constructor(e.byteLength);return new Gx(t).set(new Gx(e)),t}var Mx=/\w*$/;var Dx=kv?kv.prototype:void 0,Vx=Dx?Dx.valueOf:void 0;function Fx(e,t,n){var r,o,i,a=e.constructor;switch(t){case"[object ArrayBuffer]":return jx(e);case"[object Boolean]":case"[object Date]":return new a(+e);case"[object DataView]":return function(e,t){var n=t?jx(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return function(e,t){var n=t?jx(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}(e,n);case"[object Map]":case"[object Set]":return new a;case"[object Number]":case"[object String]":return new a(e);case"[object RegExp]":return(i=new(o=e).constructor(o.source,Mx.exec(o))).lastIndex=o.lastIndex,i;case"[object Symbol]":return r=e,Vx?Object(Vx.call(r)):{}}}var _x=Object.create,Hx=function(){function e(){}return function(t){if(!qv(t))return{};if(_x)return _x(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();var Wx=zy&&zy.isMap,Xx=Wx?_y(Wx):function(e){return Hv(e)&&"[object Map]"==Lx(e)};var zx=zy&&zy.isSet,Zx=zx?_y(zx):function(e){return Hv(e)&&"[object Set]"==Lx(e)},Yx="[object Arguments]",Ux="[object Function]",Jx="[object Object]",$x={};function Kx(e,t,n,r,o,i){var a,s=1&t,l=2&t,c=4&t;if(void 0!==a)return a;if(!qv(e))return e;var u=ky(e);if(u){if(a=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&Bx.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!s)return cx(e,a)}else{var d=Lx(e),p=d==Ux||"[object GeneratorFunction]"==d;if(jy(e))return function(e,t){if(t)return e.slice();var n=e.length,r=lx?lx(n):new e.constructor(n);return e.copy(r),r}(e,s);if(d==Jx||d==Yx||p&&!o){if(a=l||p?{}:function(e){return"function"!=typeof e.constructor||Ky(e)?{}:Hx(_v(e))}(e),!s)return l?function(e,t){return Sy(e,mx(e),t)}(e,function(e,t){return e&&Sy(t,ox(t),e)}(a,e)):function(e,t){return Sy(e,fx(e),t)}(e,function(e,t){return e&&Sy(t,tx(t),e)}(a,e))}else{if(!$x[d])return o?e:{};a=Fx(e,d,s)}}i||(i=new Iy);var f=i.get(e);if(f)return f;i.set(e,a),Zx(e)?e.forEach(function(r){a.add(Kx(r,t,n,r,e,i))}):Xx(e)&&e.forEach(function(r,o){a.set(o,Kx(r,t,n,o,e,i))});var h=u?void 0:(c?l?vx:bx:l?ox:tx)(e);return function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););}(h||e,function(r,o){h&&(r=e[o=r]),Ay(a,o,Kx(r,t,n,o,e,i))}),a}$x[Yx]=$x["[object Array]"]=$x["[object ArrayBuffer]"]=$x["[object DataView]"]=$x["[object Boolean]"]=$x["[object Date]"]=$x["[object Float32Array]"]=$x["[object Float64Array]"]=$x["[object Int8Array]"]=$x["[object Int16Array]"]=$x["[object Int32Array]"]=$x["[object Map]"]=$x["[object Number]"]=$x[Jx]=$x["[object RegExp]"]=$x["[object Set]"]=$x["[object String]"]=$x["[object Symbol]"]=$x["[object Uint8Array]"]=$x["[object Uint8ClampedArray]"]=$x["[object Uint16Array]"]=$x["[object Uint32Array]"]=!0,$x["[object Error]"]=$x[Ux]=$x["[object WeakMap]"]=!1;var Qx,qx;function eI(e){return Kx(e,5)}var tI=function(){if(qx)return Qx;qx=1;var e=Array.isArray,t=Object.keys,n=Object.prototype.hasOwnProperty,r="undefined"!=typeof Element;function o(i,a){if(i===a)return!0;if(i&&a&&"object"==typeof i&&"object"==typeof a){var s,l,c,u=e(i),d=e(a);if(u&&d){if((l=i.length)!=a.length)return!1;for(s=l;0!==s--;)if(!o(i[s],a[s]))return!1;return!0}if(u!=d)return!1;var p=i instanceof Date,f=a instanceof Date;if(p!=f)return!1;if(p&&f)return i.getTime()==a.getTime();var h=i instanceof RegExp,m=a instanceof RegExp;if(h!=m)return!1;if(h&&m)return i.toString()==a.toString();var g=t(i);if((l=g.length)!==t(a).length)return!1;for(s=l;0!==s--;)if(!n.call(a,g[s]))return!1;if(r&&i instanceof Element&&a instanceof Element)return i===a;for(s=l;0!==s--;)if(!("_owner"===(c=g[s])&&i.$$typeof||o(i[c],a[c])))return!1;return!0}return i!=i&&a!=a}return Qx=function(e,t){try{return o(e,t)}catch(e){if(e.message&&e.message.match(/stack|recursion/i)||-2146828260===e.number)return console.warn("Warning: react-fast-compare does not handle circular references.",e.name,e.message),!1;throw e}}}(),nI=Fe(tI),rI="production"===process.env.NODE_ENV;function oI(e,t){if(!rI){var n="Warning: "+t;"undefined"!=typeof console&&console.warn(n);try{throw Error(n)}catch(e){}}}function iI(e){return Kx(e,4)}function aI(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}function sI(e){return"symbol"==typeof e||Hv(e)&&"[object Symbol]"==Vv(e)}function lI(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(lI.Cache||xy),n}lI.Cache=xy;var cI=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,uI=/\\(\\)?/g,dI=function(e){var t=lI(e,function(e){return 500===n.size&&n.clear(),e}),n=t.cache;return t}(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(cI,function(e,n,r,o){t.push(r?o.replace(uI,"$1"):n||e)}),t});function pI(e){if("string"==typeof e||sI(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}var fI=kv?kv.prototype:void 0,hI=fI?fI.toString:void 0;function mI(e){if("string"==typeof e)return e;if(ky(e))return aI(e,mI)+"";if(sI(e))return hI?hI.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function gI(e){return ky(e)?aI(e,pI):sI(e)?[e]:cx(dI(function(e){return null==e?"":mI(e)}(e)))}function bI(){return bI=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bI.apply(this,arguments)}function vI(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}var yI=h(void 0);yI.displayName="FormikContext";var xI=yI.Provider;function II(){var e=p(yI);return e||("production"!==process.env.NODE_ENV?oI(0,"Formik context is undefined, please verify you are calling useFormikContext() as child of a <Formik> component."):oI()),e}yI.Consumer;var wI=function(e){return"function"==typeof e},CI=function(e){return null!==e&&"object"==typeof e},EI=function(e){return String(Math.floor(Number(e)))===e},AI=function(e){return"[object String]"===Object.prototype.toString.call(e)},SI=function(e){return 0===x.count(e)},TI=function(e){return CI(e)&&wI(e.then)};function OI(e,t,n,r){void 0===r&&(r=0);for(var o=gI(t);e&&r<o.length;)e=e[o[r++]];return r===o.length||e?void 0===e?n:e:n}function NI(e,t,n){for(var r=iI(e),o=r,i=0,a=gI(t);i<a.length-1;i++){var s=a[i],l=OI(e,a.slice(0,i+1));if(l&&(CI(l)||Array.isArray(l)))o=o[s]=iI(l);else{var c=a[i+1];o=o[s]=EI(c)&&Number(c)>=0?[]:{}}}return(0===i?e:o)[a[i]]===n?e:(void 0===n?delete o[a[i]]:o[a[i]]=n,0===i&&void 0===n&&delete r[a[i]],r)}function PI(e,t,n,r){void 0===n&&(n=new WeakMap),void 0===r&&(r={});for(var o=0,i=Object.keys(e);o<i.length;o++){var a=i[o],s=e[a];CI(s)?n.get(s)||(n.set(s,!0),r[a]=Array.isArray(s)?[]:{},PI(s,t,n,r[a])):r[a]=t}return r}var RI={},kI={};function LI(e){var t=e.validateOnChange,n=void 0===t||t,r=e.validateOnBlur,o=void 0===r||r,i=e.validateOnMount,d=void 0!==i&&i,p=e.isInitialValid,f=e.enableReinitialize,h=void 0!==f&&f,m=e.onSubmit,g=vI(e,["validateOnChange","validateOnBlur","validateOnMount","isInitialValid","enableReinitialize","onSubmit"]),b=bI({validateOnChange:n,validateOnBlur:o,validateOnMount:d,onSubmit:m},g),v=s(b.initialValues),y=s(b.initialErrors||RI),x=s(b.initialTouched||kI),I=s(b.initialStatus),w=s(!1),C=s({});"production"!==process.env.NODE_ENV&&a(function(){void 0!==p&&("production"!==process.env.NODE_ENV?oI(0,"isInitialValid has been deprecated and will be removed in future versions of Formik. Please use initialErrors or validateOnMount instead."):oI())},[]),a(function(){return w.current=!0,function(){w.current=!1}},[]);var E=c(0)[1],A=s({values:eI(b.initialValues),errors:eI(b.initialErrors)||RI,touched:eI(b.initialTouched)||kI,status:eI(b.initialStatus),isSubmitting:!1,isValidating:!1,submitCount:0}),S=A.current,T=u(function(e){var t=A.current;A.current=function(e,t){switch(t.type){case"SET_VALUES":return bI({},e,{values:t.payload});case"SET_TOUCHED":return bI({},e,{touched:t.payload});case"SET_ERRORS":return nI(e.errors,t.payload)?e:bI({},e,{errors:t.payload});case"SET_STATUS":return bI({},e,{status:t.payload});case"SET_ISSUBMITTING":return bI({},e,{isSubmitting:t.payload});case"SET_ISVALIDATING":return bI({},e,{isValidating:t.payload});case"SET_FIELD_VALUE":return bI({},e,{values:NI(e.values,t.payload.field,t.payload.value)});case"SET_FIELD_TOUCHED":return bI({},e,{touched:NI(e.touched,t.payload.field,t.payload.value)});case"SET_FIELD_ERROR":return bI({},e,{errors:NI(e.errors,t.payload.field,t.payload.value)});case"RESET_FORM":return bI({},e,t.payload);case"SET_FORMIK_STATE":return t.payload(e);case"SUBMIT_ATTEMPT":return bI({},e,{touched:PI(e.values,!0),isSubmitting:!0,submitCount:e.submitCount+1});case"SUBMIT_FAILURE":case"SUBMIT_SUCCESS":return bI({},e,{isSubmitting:!1});default:return e}}(t,e),t!==A.current&&E(function(e){return e+1})},[]),O=u(function(e,t){return new Promise(function(n,r){var o=b.validate(e,t);null==o?n(RI):TI(o)?o.then(function(e){n(e||RI)},function(e){"production"!==process.env.NODE_ENV&&console.warn("Warning: An unhandled error was caught during validation in <Formik validate />",e),r(e)}):n(o)})},[b.validate]),N=u(function(e,t){var n=b.validationSchema,r=wI(n)?n(t):n,o=t&&r.validateAt?r.validateAt(t,e):function(e,t,n){void 0===n&&(n=!1);var r=jI(e);return t[n?"validateSync":"validate"](r,{abortEarly:!1,context:r})}(e,r);return new Promise(function(e,t){o.then(function(){e(RI)},function(n){"ValidationError"===n.name?e(function(e){var t={};if(e.inner){if(0===e.inner.length)return NI(t,e.path,e.message);var n=e.inner,r=Array.isArray(n),o=0;for(n=r?n:n[Symbol.iterator]();;){var i;if(r){if(o>=n.length)break;i=n[o++]}else{if((o=n.next()).done)break;i=o.value}var a=i;OI(t,a.path)||(t=NI(t,a.path,a.message))}}return t}(n)):("production"!==process.env.NODE_ENV&&console.warn("Warning: An unhandled error was caught during validation in <Formik validationSchema />",n),t(n))})})},[b.validationSchema]),P=u(function(e,t){return new Promise(function(n){return n(C.current[e].validate(t))})},[]),R=u(function(e){var t=Object.keys(C.current).filter(function(e){return wI(C.current[e].validate)}),n=t.length>0?t.map(function(t){return P(t,OI(e,t))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(n).then(function(e){return e.reduce(function(e,n,r){return"DO_NOT_DELETE_YOU_WILL_BE_FIRED"===n||n&&(e=NI(e,t[r],n)),e},{})})},[P]),k=u(function(e){return Promise.all([R(e),b.validationSchema?N(e):{},b.validate?O(e):{}]).then(function(e){var t=e[0],n=e[1],r=e[2];return Ov.all([t,n,r],{arrayMerge:MI})})},[b.validate,b.validationSchema,R,O,N]),L=VI(function(e){return void 0===e&&(e=S.values),T({type:"SET_ISVALIDATING",payload:!0}),k(e).then(function(e){return w.current&&(T({type:"SET_ISVALIDATING",payload:!1}),T({type:"SET_ERRORS",payload:e})),e})});a(function(){d&&!0===w.current&&nI(v.current,b.initialValues)&&L(v.current)},[d,L]);var B=u(function(e){var t=e&&e.values?e.values:v.current,n=e&&e.errors?e.errors:y.current?y.current:b.initialErrors||{},r=e&&e.touched?e.touched:x.current?x.current:b.initialTouched||{},o=e&&e.status?e.status:I.current?I.current:b.initialStatus;v.current=t,y.current=n,x.current=r,I.current=o;var i=function(){T({type:"RESET_FORM",payload:{isSubmitting:!!e&&!!e.isSubmitting,errors:n,touched:r,status:o,values:t,isValidating:!!e&&!!e.isValidating,submitCount:e&&e.submitCount&&"number"==typeof e.submitCount?e.submitCount:0}})};if(b.onReset){var a=b.onReset(S.values,q);TI(a)?a.then(i):i()}else i()},[b.initialErrors,b.initialStatus,b.initialTouched,b.onReset]);a(function(){!0!==w.current||nI(v.current,b.initialValues)||h&&(v.current=b.initialValues,B(),d&&L(v.current))},[h,b.initialValues,B,d,L]),a(function(){h&&!0===w.current&&!nI(y.current,b.initialErrors)&&(y.current=b.initialErrors||RI,T({type:"SET_ERRORS",payload:b.initialErrors||RI}))},[h,b.initialErrors]),a(function(){h&&!0===w.current&&!nI(x.current,b.initialTouched)&&(x.current=b.initialTouched||kI,T({type:"SET_TOUCHED",payload:b.initialTouched||kI}))},[h,b.initialTouched]),a(function(){h&&!0===w.current&&!nI(I.current,b.initialStatus)&&(I.current=b.initialStatus,T({type:"SET_STATUS",payload:b.initialStatus}))},[h,b.initialStatus,b.initialTouched]);var G=VI(function(e){if(C.current[e]&&wI(C.current[e].validate)){var t=OI(S.values,e),n=C.current[e].validate(t);return TI(n)?(T({type:"SET_ISVALIDATING",payload:!0}),n.then(function(e){return e}).then(function(t){T({type:"SET_FIELD_ERROR",payload:{field:e,value:t}}),T({type:"SET_ISVALIDATING",payload:!1})})):(T({type:"SET_FIELD_ERROR",payload:{field:e,value:n}}),Promise.resolve(n))}return b.validationSchema?(T({type:"SET_ISVALIDATING",payload:!0}),N(S.values,e).then(function(e){return e}).then(function(t){T({type:"SET_FIELD_ERROR",payload:{field:e,value:OI(t,e)}}),T({type:"SET_ISVALIDATING",payload:!1})})):Promise.resolve()}),j=u(function(e,t){var n=t.validate;C.current[e]={validate:n}},[]),M=u(function(e){delete C.current[e]},[]),D=VI(function(e,t){return T({type:"SET_TOUCHED",payload:e}),(void 0===t?o:t)?L(S.values):Promise.resolve()}),V=u(function(e){T({type:"SET_ERRORS",payload:e})},[]),F=VI(function(e,t){var r=wI(e)?e(S.values):e;return T({type:"SET_VALUES",payload:r}),(void 0===t?n:t)?L(r):Promise.resolve()}),_=u(function(e,t){T({type:"SET_FIELD_ERROR",payload:{field:e,value:t}})},[]),H=VI(function(e,t,r){var o=wI(t)?t(OI(S.values,e)):t;return T({type:"SET_FIELD_VALUE",payload:{field:e,value:o}}),(void 0===r?n:r)?L(NI(S.values,e,o)):Promise.resolve()}),W=u(function(e,t){var n,r=t,o=e;if(!AI(e)){e.persist&&e.persist();var i=e.target?e.target:e.currentTarget,a=i.type,s=i.name,l=i.id,c=i.value,u=i.checked,d=i.outerHTML,p=i.options,f=i.multiple;(r=t||(s||l))||"production"===process.env.NODE_ENV||GI({htmlContent:d,documentationAnchorLink:"handlechange-e-reactchangeeventany--void",handlerName:"handleChange"}),o=/number|range/.test(a)?(n=parseFloat(c),isNaN(n)?"":n):/checkbox/.test(a)?function(e,t,n){if("boolean"==typeof e)return Boolean(t);var r=[],o=!1,i=-1;if(Array.isArray(e))r=e,o=(i=e.indexOf(n))>=0;else if(!n||"true"==n||"false"==n)return Boolean(t);if(t&&n&&!o)return r.concat(n);if(!o)return r;return r.slice(0,i).concat(r.slice(i+1))}(OI(S.values,r),u,c):p&&f?function(e){return Array.from(e).filter(function(e){return e.selected}).map(function(e){return e.value})}(p):c}r&&H(r,o)},[H,S.values]),X=VI(function(e){if(AI(e))return function(t){return W(t,e)};W(e)}),z=VI(function(e,t,n){return void 0===t&&(t=!0),T({type:"SET_FIELD_TOUCHED",payload:{field:e,value:t}}),(void 0===n?o:n)?L(S.values):Promise.resolve()}),Z=u(function(e,t){e.persist&&e.persist();var n=e.target,r=n.name,o=n.id,i=n.outerHTML,a=t||(r||o);a||"production"===process.env.NODE_ENV||GI({htmlContent:i,documentationAnchorLink:"handleblur-e-any--void",handlerName:"handleBlur"}),z(a,!0)},[z]),Y=VI(function(e){if(AI(e))return function(t){return Z(t,e)};Z(e)}),U=u(function(e){wI(e)?T({type:"SET_FORMIK_STATE",payload:e}):T({type:"SET_FORMIK_STATE",payload:function(){return e}})},[]),J=u(function(e){T({type:"SET_STATUS",payload:e})},[]),$=u(function(e){T({type:"SET_ISSUBMITTING",payload:e})},[]),K=VI(function(){return T({type:"SUBMIT_ATTEMPT"}),L().then(function(e){var t=e instanceof Error;if(!t&&0===Object.keys(e).length){var n;try{if(void 0===(n=ee()))return}catch(e){throw e}return Promise.resolve(n).then(function(e){return w.current&&T({type:"SUBMIT_SUCCESS"}),e}).catch(function(e){if(w.current)throw T({type:"SUBMIT_FAILURE"}),e})}if(w.current&&(T({type:"SUBMIT_FAILURE"}),t))throw e})}),Q=VI(function(e){if(e&&e.preventDefault&&wI(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&wI(e.stopPropagation)&&e.stopPropagation(),"production"!==process.env.NODE_ENV&&"undefined"!=typeof document){var t=function(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}();null!==t&&t instanceof HTMLButtonElement&&(t.attributes&&t.attributes.getNamedItem("type")||("production"!==process.env.NODE_ENV?oI(0,'You submitted a Formik form using a button with an unspecified `type` attribute. Most browsers default button elements to `type="submit"`. If this is not a submit button, please add `type="button"`.'):oI()))}K().catch(function(e){console.warn("Warning: An unhandled error was caught from submitForm()",e)})}),q={resetForm:B,validateForm:L,validateField:G,setErrors:V,setFieldError:_,setFieldTouched:z,setFieldValue:H,setStatus:J,setSubmitting:$,setTouched:D,setValues:F,setFormikState:U,submitForm:K},ee=VI(function(){return m(S.values,q)}),te=VI(function(e){e&&e.preventDefault&&wI(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&wI(e.stopPropagation)&&e.stopPropagation(),B()}),ne=u(function(e){return{value:OI(S.values,e),error:OI(S.errors,e),touched:!!OI(S.touched,e),initialValue:OI(v.current,e),initialTouched:!!OI(x.current,e),initialError:OI(y.current,e)}},[S.errors,S.touched,S.values]),re=u(function(e){return{setValue:function(t,n){return H(e,t,n)},setTouched:function(t,n){return z(e,t,n)},setError:function(t){return _(e,t)}}},[H,z,_]),oe=u(function(e){var t=CI(e),n=t?e.name:e,r=OI(S.values,n),o={name:n,value:r,onChange:X,onBlur:Y};if(t){var i=e.type,a=e.value,s=e.as,l=e.multiple;"checkbox"===i?void 0===a?o.checked=!!r:(o.checked=!(!Array.isArray(r)||!~r.indexOf(a)),o.value=a):"radio"===i?(o.checked=r===a,o.value=a):"select"===s&&l&&(o.value=o.value||[],o.multiple=!0)}return o},[Y,X,S.values]),ie=l(function(){return!nI(v.current,S.values)},[v.current,S.values]),ae=l(function(){return void 0!==p?ie?S.errors&&0===Object.keys(S.errors).length:!1!==p&&wI(p)?p(b):p:S.errors&&0===Object.keys(S.errors).length},[p,ie,S.errors,b]);return bI({},S,{initialValues:v.current,initialErrors:y.current,initialTouched:x.current,initialStatus:I.current,handleBlur:Y,handleChange:X,handleReset:te,handleSubmit:Q,resetForm:B,setErrors:V,setFormikState:U,setFieldTouched:z,setFieldValue:H,setFieldError:_,setStatus:J,setSubmitting:$,setTouched:D,setValues:F,submitForm:K,validateForm:L,validateField:G,isValid:ae,dirty:ie,unregisterField:M,registerField:j,getFieldProps:oe,getFieldMeta:ne,getFieldHelpers:re,validateOnBlur:o,validateOnChange:n,validateOnMount:d})}function BI(e){var t=LI(e),n=e.component,r=e.children,o=e.render,i=e.innerRef;return y(i,function(){return t}),"production"!==process.env.NODE_ENV&&a(function(){e.render&&("production"!==process.env.NODE_ENV?oI(0,"<Formik render> has been deprecated and will be removed in future versions of Formik. Please use a child callback function instead. To get rid of this warning, replace <Formik render={(props) => ...} /> with <Formik>{(props) => ...}</Formik>"):oI())},[]),v(xI,{value:t},n?v(n,t):o?o(t):r?wI(r)?r(t):SI(r)?null:x.only(r):null)}function GI(e){var t=e.htmlContent,n=e.documentationAnchorLink,r=e.handlerName;console.warn("Warning: Formik called `"+r+"`, but you forgot to pass an `id` or `name` attribute to your input:\n "+t+"\n Formik cannot determine which value to update. For more info see https://formik.org/docs/api/formik#"+n+"\n ")}function jI(e){var t=Array.isArray(e)?[]:{};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=String(n);!0===Array.isArray(e[r])?t[r]=e[r].map(function(e){return!0===Array.isArray(e)||Uv(e)?jI(e):""!==e?e:void 0}):Uv(e[r])?t[r]=jI(e[r]):t[r]=""!==e[r]?e[r]:void 0}return t}function MI(e,t,n){var r=e.slice();return t.forEach(function(t,o){if(void 0===r[o]){var i=!1!==n.clone&&n.isMergeableObject(t);r[o]=i?Ov(Array.isArray(t)?[]:{},t,n):t}else n.isMergeableObject(t)?r[o]=Ov(e[o],t,n):-1===e.indexOf(t)&&r.push(t)}),r}var DI="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?f:a;function VI(e){var t=s(e);return DI(function(){t.current=e}),u(function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.current.apply(void 0,n)},[])}function FI(e){var t=e.validate,n=e.name,r=e.render,o=e.children,i=e.as,s=e.component,l=e.className,c=vI(e,["validate","name","render","children","as","component","className"]),u=vI(II(),["validate","validationSchema"]);"production"!==process.env.NODE_ENV&&a(function(){r&&("production"!==process.env.NODE_ENV?oI(0,'<Field render> has been deprecated and will be removed in future versions of Formik. Please use a child callback function instead. To get rid of this warning, replace <Field name="'+n+'" render={({field, form}) => ...} /> with <Field name="'+n+'">{({field, form, meta}) => ...}</Field>'):oI()),i&&o&&wI(o)&&("production"!==process.env.NODE_ENV?oI(0,"You should not use <Field as> and <Field children> as a function in the same <Field> component; <Field as> will be ignored."):oI()),s&&o&&wI(o)&&("production"!==process.env.NODE_ENV?oI(0,"You should not use <Field component> and <Field children> as a function in the same <Field> component; <Field component> will be ignored."):oI()),r&&o&&!SI(o)&&("production"!==process.env.NODE_ENV?oI(0,"You should not use <Field render> and <Field children> in the same <Field> component; <Field children> will be ignored"):oI())},[]);var d=u.registerField,p=u.unregisterField;a(function(){return d(n,{validate:t}),function(){p(n)}},[d,p,n,t]);var f=u.getFieldProps(bI({name:n},c)),h=u.getFieldMeta(n),m={field:f,form:u};if(r)return r(bI({},m,{meta:h}));if(wI(o))return o(bI({},m,{meta:h}));if(s){if("string"==typeof s){var g=c.innerRef,b=vI(c,["innerRef"]);return v(s,bI({ref:g},f,b,{className:l}),o)}return v(s,bI({field:f,form:u},c,{className:l}),o)}var y=i||"input";if("string"==typeof y){var x=c.innerRef,I=vI(c,["innerRef"]);return v(y,bI({ref:x},f,I,{className:l}),o)}return v(y,bI({},f,c,{className:l}),o)}var _I=i(function(e,t){var n=e.action,r=vI(e,["action"]),o=null!=n?n:"#",i=II(),a=i.handleReset,s=i.handleSubmit;return v("form",bI({onSubmit:s,ref:t,onReset:a,action:o},r))});_I.displayName="Form";const HI=/\D/g,WI=({name:t,errors:n,touched:r})=>{const o=n[t];return r[t]&&"string"==typeof o?e(Nn,{className:"mt-1 text-text-critical",children:o}):null},XI=({children:n,required:r=!1})=>t("label",{className:"mb-1 block text-sm font-medium text-text",children:[n,r&&e("span",{className:"text-text-critical",children:"*"})]}),zI=({InputComponent:n,AddressAutocomplete:r,initialValues:o=xv,inputList:i=Iv,formSchema:a=wv,onSubmit:s,lookupAddress:l,buttonText:u="See plans",buttonClassName:d,bottomTextDisclaimer:p,hideLegalCopy:f=!1,checkBoxEnabled:h=!0,copyRightLinks:m,className:g,onAddressEvent:b})=>{const v=null!=n?n:Tr,[y,x]=c([]),[I,w]=c(!1),[C,E]=c([]),[A,S]=c(),[T,O]=c(!1),N={fontSize:"1.125rem",lineHeight:"1.75rem",fontWeight:500};return e(BI,{initialValues:o,validationSchema:a,onSubmit:async(e,t)=>{await s(e),t.resetForm({values:o}),S(void 0),E([]),O(!1)},children:({errors:n,touched:o,isSubmitting:a,submitCount:s,setFieldValue:c,values:P})=>{var R,k,L;return t(_I,{className:De("fiber-form w-full",g),children:[t("div",{className:"flex flex-col gap-5 sm:flex-row",children:[i.firstName&&t("div",{className:"flex-1",children:[e(XI,{required:!0,children:"First name"}),e(FI,{as:v,style:N,name:"firstName",placeholder:null!==(R=i.firstName.placeholder)&&void 0!==R?R:"First name"}),e(WI,{name:"firstName",errors:n,touched:o})]}),i.lastName&&t("div",{className:"flex-1",children:[e(XI,{required:!0,children:"Last name"}),e(FI,{as:v,style:N,name:"lastName",placeholder:null!==(k=i.lastName.placeholder)&&void 0!==k?k:"Last name"}),e(WI,{name:"lastName",errors:n,touched:o})]})]}),i.address&&t("div",{className:"mt-8 flex flex-col gap-5 sm:flex-row",children:[t("div",{className:"sm:flex-[3]",children:[e(XI,{required:!0,children:"Address"}),e(FI,{name:"address",children:({field:t})=>e(r,{value:t.value||"",placeholder:"Address, city, state, ZIP",onChange:e=>{c("address",e,!1),c("isManualAddress",!0,!1),(async(e,t)=>{if(null==b||b(e),!l||e.length<3)return x([]),void w(!1);try{const n=await l(e,t);x(n),w(n.length>0)}catch(e){x([]),w(!1)}})(e,P)},onSelectAddress:e=>{var t,n;if(!e)return;const r=(null!==(t=e.addressToSend.units)&&void 0!==t?t:[]).filter(e=>e.addressLine2);c("address",e.address),c("addressToSend",e.addressToSend),c("unit",null!==(n=e.unit)&&void 0!==n?n:"",!1),c("isManualAddress",!1,!1),c("hasUnits",r.length>0,!1),E([...r.map(e=>{var t;return{label:e.addressLine2,value:null!==(t=e.dfAddressId)&&void 0!==t?t:"",data:e}}),...r.length>0?[{label:"I don't see my unit",value:"manual"},{label:"I don't have a unit",value:"no-unit"}]:[]])},onKeyDown:e=>{"Enter"===e.key&&e.preventDefault()}})}),e(WI,{name:"address",errors:n,touched:o}),I&&e("ul",{className:"shadow-dark-drop mt-2 max-h-56 overflow-auto rounded-lg border border-input-border bg-white",children:y.map((n,r)=>{var o;return e("li",{children:t("button",{type:"button",className:"body2 flex w-full items-center gap-2 px-4 py-3 text-left hover:bg-bg-surface-hover",onClick:()=>((e,t)=>{var n,r,o;const i=[e.addressLine1,e.city,e.state,e.postalCode].filter(Boolean).join(", "),a=(null!==(n=e.units)&&void 0!==n?n:[]).filter(e=>e.addressLine2);t("address",i),t("addressToSend",e),t("zip",null!==(r=e.postalCode)&&void 0!==r?r:"",!1),t("isManualAddress",!1,!1),t("hasUnits",a.length>0,!1),t("unit",a.length>0?"":null!==(o=e.addressLine2)&&void 0!==o?o:"",!1),x([]),w(!1),S(void 0),E([...a.map(e=>{var t;return{label:e.addressLine2,value:null!==(t=e.dfAddressId)&&void 0!==t?t:"",data:e}}),...a.length>0?[{label:"I don't see my unit",value:"manual"},{label:"I don't have a unit",value:"no-unit"}]:[]])})(n,c),children:[e(On,{name:"location_on",size:24,fill:1,className:"text-green-600"}),[n.addressLine1,n.city,n.state,n.postalCode].filter(Boolean).join(", ")]})},`${null!==(o=n.dfAddressId)&&void 0!==o?o:r}-${n.addressLine1}`)})})]}),t("div",{className:"w-full sm:w-[216px] sm:flex-none",children:[e("div",{className:"mb-1 hidden h-[20px] sm:block"}),e(Kc,{options:C,value:A,placeholder:"Apt, Suite, etc.",maxMenuHeight:200,components:{DropdownIndicator:()=>e("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:e("path",{d:"M5 7.5L10 12.5L15 7.5",stroke:"#1B2A4E",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})},styles:{option:e=>({...e,...N}),singleValue:e=>({...e,...N}),placeholder:e=>({...e,...N}),input:e=>({...e,...N}),indicatorsContainer:e=>({...e,alignItems:"center"})},className:"w-full sm:w-[216px]",controlClassName:"!h-[56px] !min-h-[56px] !gap-2 !rounded-[12px] !border !border-solid !border-[#CECECE] !bg-white !pl-4 !pr-4 !flex-nowrap [&>div:first-child]:!overflow-visible [&>div:first-child>div]:!max-w-none [&>div:first-child>div]:!overflow-visible [&>div:first-child>div]:!whitespace-nowrap",onChange:e=>{const t=e;if(t){if("manual"===t.value)return O(!0),c("hasUnits",!0,!1),c("unit","",!1),c("addressToSend",{...P.addressToSend,addressLine2:"",dfAddressId:void 0}),void S(t);if("no-unit"===t.value)return O(!1),c("unit","",!1),c("hasUnits",!1,!1),c("addressToSend",{...P.addressToSend,addressLine2:"",dfAddressId:void 0}),void S(t);O(!1),S(t),c("unit",t.label),c("hasUnits",!1,!1),c("addressToSend",{...P.addressToSend,addressLine2:t.label,dfAddressId:t.value})}}}),!T&&s>0&&null!==(L=P.hasUnits)&&void 0!==L&&L&&!A&&"string"==typeof n.unit&&e("span",{className:"mt-1 block text-sm font-medium text-red-500",children:n.unit}),T&&t("div",{className:"mt-5 w-full sm:w-[216px]",children:[t("label",{className:"mb-1 block text-sm font-medium text-neutral-900",children:["Unit",e("span",{className:"text-red-500",children:"*"})]}),e(FI,{as:v,style:N,name:"unit",placeholder:"Please enter your unit"}),s>0&&"string"==typeof n.unit&&e("span",{className:"mt-1 block text-sm font-medium text-red-500",children:n.unit})]})]})]}),t("div",{className:"mt-8 flex flex-col gap-5 sm:flex-row",children:[i.phoneNumber&&t("div",{className:"flex-1",children:[e(XI,{required:!0,children:"Phone number"}),e(FI,{name:"phone",children:({field:t,form:n})=>e(v,{...t,type:"tel",style:N,placeholder:"(555) 555-5555",onChange:e=>n.setFieldValue("phone",(e=>{const t=e.replace(HI,"").slice(0,10);return t.length<4?t:t.length<7?`(${t.slice(0,3)}) ${t.slice(3)}`:`(${t.slice(0,3)}) ${t.slice(3,6)}-${t.slice(6)}`})(e.currentTarget.value))})}),e(WI,{name:"phone",errors:n,touched:o})]}),i.emailAddress&&t("div",{className:"flex-1",children:[e(XI,{required:!0,children:"Email address"}),e(FI,{as:v,style:N,name:"email",type:"email",placeholder:"john.doe@example.com"}),e(WI,{name:"email",errors:n,touched:o})]})]}),t("div",{className:"mt-8 flex flex-col gap-5 sm:flex-row",children:[i.referralCode&&t("div",{className:"flex-1",children:[e(XI,{children:"Referral code"}),e(FI,{as:v,style:N,name:"referralCode",placeholder:"Optional"}),e(WI,{name:"referralCode",errors:n,touched:o})]}),i.notes&&t("div",{className:"flex-1",children:[e(XI,{children:"Notes or comments"}),e(FI,{as:v,style:N,name:"notes",placeholder:"Optional"})]})]}),h&&!f&&e("div",{className:"mt-16 text-neutral-600",children:e(FI,{name:"isMarketingCom",children:({field:n})=>t("div",{className:"mb-7 mt-4 flex items-center gap-1 pl-1",children:[e("input",{type:"checkbox",className:"h-4 w-4 cursor-pointer align-middle accent-[#1d9d77]",...n,checked:n.value,id:"recieve-message-checkbox"}),e("label",{htmlFor:"recieve-message-checkbox",className:"mx-1 mb-3 mr-0 cursor-pointer align-middle text-micro font-medium leading-6 text-neutral-600",children:"Receive text messages for installation, account updates, and marketing communications."}),e(ob,{tooltipMsg:"By opting in to receive text messages, you will receive automated text message related to service notifications including installations, service changes and updates, billing information, marketing offers from Kinetic including cart reminders. Consent is not a condition of purchase. Reply STOP at any time to unsubscribe. Message frequency varies. Msg & data rates may apply. To contact our Customer Support via email, chat, or phone, visit our Support page below.",className:"fiber-form-tooltip ff-NR mt-0",children:e(On,{name:"info",size:20,className:"tooltip",style:{verticalAlign:"top"}})})]})})}),!f&&e(Nn,{className:"body3 my-[32px] text-neutral-600 lg:mb-[64px] lg:mt-[32px]",children:"By submitting this form you consent to receive marketing messages from Kinetic by text, email or phone to the contact provided. Consent is not a condition of purchase. Msg & data rates may apply. Msg frequency varies. Unsubscribe at any time by replying STOP or clicking the unsubscribe link."}),p&&!f&&e(Nn,{className:"mt-2 text-center text-text-secondary",children:p}),m&&!f&&e("ul",{className:"mt-16 flex list-disc justify-center gap-8 text-text-secondary",children:m.map(t=>e("li",{children:e("a",{href:t.href,target:"_blank",rel:"noreferrer",className:"underline",children:t.title})},t.title))}),e("div",{className:"mt-8 flex items-center justify-center lg:mt-[64px]",children:e(Ar,{type:"submit",disabled:a,"aria-busy":a,className:De("flex h-16 w-[198px] max-w-full cursor-pointer items-center justify-center overflow-hidden rounded-button border border-brand bg-bg-fill-brand px-[60px] py-4 text-center font-black leading-7 text-text-brand-on-bg-fill no-underline transition-colors duration-300 ease-in-out enabled:hover:border-[var(--color-bg-fill-brand-hover)] enabled:hover:bg-bg-fill-brand-hover focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-border-brand disabled:cursor-not-allowed",a&&"opacity-75",d),children:t("span",{className:"relative flex w-full items-center justify-center",children:[a&&e(Rr,{size:"small",className:"!h-5 !w-5"}),e("span",{children:u})]})})})]})}})},ZI=n=>{const{cartTotalText:r,onClick:o,isOpen:i,...a}=n;return e(Ar,{className:De("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 border-2 border-border-secondary-on-bg-fill bg-bg text-text focus:ring-bg-surface-inverse","btn-small w-full border-border pl-6 pr-4 md:btn-medium"),onClick:o,...a,children:t("div",{className:"flex w-full items-center justify-center gap-2",children:[t("div",{className:"flex flex-col items-center justify-center",children:[e(Nn,{className:"label4 -mb-1 text-text",children:"View cart"}),e(Nn,{className:"label3 text-text md:label1","data-testid":"cart-total",children:r})]}),e(On,{name:"keyboard_arrow_up",size:24,fill:0,className:De("h-6 w-6 transition-transform",i?"rotate-180":"rotate-0")})]})})};function YI(e){const{itemCount:t,cardOffsetPercentage:n=105,swipeThreshold:r=.15,mobileBreakpoint:o=768,autoScrollInterval:i=8e3,enableAutoScroll:l=!0}=e,[d,p]=c(0),[f,h]=c(0),[m,g]=c(!1),[b,v]=c("undefined"!=typeof window?window.innerWidth:1),[y,x]=c(!1),I=s(null),w=s(0),C=s(null),E={CARD_OFFSET_PERCENTAGE:n,SWIPE_THRESHOLD:r,MOBILE_BREAKPOINT:o,AUTO_SCROLL_INTERVAL:i};a(()=>{const e=()=>{var e;v((null===(e=C.current)||void 0===e?void 0:e.offsetWidth)||window.innerWidth)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]);const A=u(()=>{0!==t&&p(e=>(e+1)%t)},[t]),S=u(()=>{0!==t&&p(e=>0===e?t-1:e-1)},[t]),T=u(e=>{e<0||e>=t||p(e)},[t]),O=u(e=>{w.current=e.touches[0].clientX,g(!0),I.current&&clearInterval(I.current)},[]),N=u(e=>{if(!m)return;const t=e.touches[0].clientX-w.current;h(t)},[m]),P=u(()=>{g(!1);const e=b*r;f>e?S():f<-e&&A(),h(0),l&&i>0&&(I.current=setInterval(()=>{A()},i))},[f,b,r,S,A,l,i]);return a(()=>{const e=()=>{x(window.innerWidth<o)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[o]),a(()=>{if(l&&0!==t&&0!==i)return I.current=setInterval(()=>{A()},i),()=>{I.current&&clearInterval(I.current)}},[A,t,l,i]),{currentIndex:d,swipeOffset:f,isSwiping:m,isMobile:y,containerWidth:b,containerRef:C,nextSlide:A,prevSlide:S,goToSlide:T,handleTouchStart:O,handleTouchMove:N,handleTouchEnd:P,constants:E}}export{fi as Accordion,Nr as AddressAutocomplete,Qc as AlertCard,$g as AnimationWrapper,Kg as BrandButton,Ar as Button,kr as CallButton,hi as Checkbox,Pn as Checklist,pi as Collapse,eu as DEFAULT_BUTTON_ANIMATION_TYPE,Qg as Divider,zI as FiberForm,Pr as Image,Tr as Input,Sr as InputField,Ln as Link,Tn as List,Sn as ListItem,On as MaterialIcon,di as Modal,wr as NextImage,rb as PageSkeleton,qg as RadioButton,eb as SeeMore,Kc as Select,tb as SelectPlanButton,nb as Skeleton,Rr as Spinner,Nn as Text,Tr as TextInput,ob as Tooltip,Er as VideoLink,ZI as ViewCartButton,S as clsx,De as cx,wv as fiberFormAddressCollectionFormSchema,xv as fiberFormInputInitialValues,Iv as fiberFormInputList,Lr as useBodyScrollLock,YI as useCarouselSwipe};
50
+ */function is(){return ts||(ts=1,"production"===process.env.NODE_ENV?Qa.exports=function(){if(Ua)return qa;Ua=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,f=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function y(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case t:switch(e=e.type){case l:case c:case r:case i:case o:case d:return e;default:switch(e=e&&e.$$typeof){case s:case u:case h:case f:case a:return e;default:return p}}case n:return p}}}function x(e){return y(e)===c}return qa.AsyncMode=l,qa.ConcurrentMode=c,qa.ContextConsumer=s,qa.ContextProvider=a,qa.Element=t,qa.ForwardRef=u,qa.Fragment=r,qa.Lazy=h,qa.Memo=f,qa.Portal=n,qa.Profiler=i,qa.StrictMode=o,qa.Suspense=d,qa.isAsyncMode=function(e){return x(e)||y(e)===l},qa.isConcurrentMode=x,qa.isContextConsumer=function(e){return y(e)===s},qa.isContextProvider=function(e){return y(e)===a},qa.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},qa.isForwardRef=function(e){return y(e)===u},qa.isFragment=function(e){return y(e)===r},qa.isLazy=function(e){return y(e)===h},qa.isMemo=function(e){return y(e)===f},qa.isPortal=function(e){return y(e)===n},qa.isProfiler=function(e){return y(e)===i},qa.isStrictMode=function(e){return y(e)===o},qa.isSuspense=function(e){return y(e)===d},qa.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===c||e===i||e===o||e===d||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===f||e.$$typeof===a||e.$$typeof===s||e.$$typeof===u||e.$$typeof===g||e.$$typeof===b||e.$$typeof===v||e.$$typeof===m)},qa.typeOf=y,qa}():Qa.exports=(es||(es=1,"production"!==process.env.NODE_ENV&&function(){var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,f=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function y(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case t:var m=e.type;switch(m){case l:case c:case r:case i:case o:case d:return m;default:var g=m&&m.$$typeof;switch(g){case s:case u:case h:case f:case a:return g;default:return p}}case n:return p}}}var x=l,I=c,w=s,C=a,E=t,A=u,S=r,T=h,O=f,N=n,P=i,R=o,k=d,L=!1;function B(e){return y(e)===c}os.AsyncMode=x,os.ConcurrentMode=I,os.ContextConsumer=w,os.ContextProvider=C,os.Element=E,os.ForwardRef=A,os.Fragment=S,os.Lazy=T,os.Memo=O,os.Portal=N,os.Profiler=P,os.StrictMode=R,os.Suspense=k,os.isAsyncMode=function(e){return L||(L=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),B(e)||y(e)===l},os.isConcurrentMode=B,os.isContextConsumer=function(e){return y(e)===s},os.isContextProvider=function(e){return y(e)===a},os.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},os.isForwardRef=function(e){return y(e)===u},os.isFragment=function(e){return y(e)===r},os.isLazy=function(e){return y(e)===h},os.isMemo=function(e){return y(e)===f},os.isPortal=function(e){return y(e)===n},os.isProfiler=function(e){return y(e)===i},os.isStrictMode=function(e){return y(e)===o},os.isSuspense=function(e){return y(e)===d},os.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===c||e===i||e===o||e===d||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===f||e.$$typeof===a||e.$$typeof===s||e.$$typeof===u||e.$$typeof===g||e.$$typeof===b||e.$$typeof===v||e.$$typeof===m)},os.typeOf=y}()),os)),Qa.exports}!function(){if(rs)return ns;rs=1;var e=is(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};function i(n){return e.isMemo(n)?r:o[n.$$typeof]||t}o[e.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o[e.Memo]=r;var a=Object.defineProperty,s=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols,c=Object.getOwnPropertyDescriptor,u=Object.getPrototypeOf,d=Object.prototype;ns=function e(t,r,o){if("string"!=typeof r){if(d){var p=u(r);p&&p!==d&&e(t,p,o)}var f=s(r);l&&(f=f.concat(l(r)));for(var h=i(t),m=i(r),g=0;g<f.length;++g){var b=f[g];if(!(n[b]||o&&o[b]||m&&m[b]||h&&h[b])){var v=c(r,b);try{a(t,b,v)}catch(e){}}}}return t}}();var as="undefined"!=typeof document;var ss=function(e,t,n){var r=e.key+"-"+t.name;(!1===n||!1===as&&void 0!==e.compat)&&void 0===e.registered[r]&&(e.registered[r]=t.styles)};var ls={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function cs(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var us=/[A-Z]|^ms/g,ds=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ps=function(e){return 45===e.charCodeAt(1)},fs=function(e){return null!=e&&"boolean"!=typeof e},hs=cs(function(e){return ps(e)?e:e.replace(us,"-$&").toLowerCase()}),ms=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(ds,function(e,t,n){return bs={name:t,styles:n,next:bs},t})}return 1===ls[e]||ps(e)||"number"!=typeof t||0===t?t:t+"px"};function gs(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var o=n;if(1===o.anim)return bs={name:o.name,styles:o.styles,next:bs},o.name;var i=n;if(void 0!==i.styles){var a=i.next;if(void 0!==a)for(;void 0!==a;)bs={name:a.name,styles:a.styles,next:bs},a=a.next;return i.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=gs(e,t,n[o])+";";else for(var i in n){var a=n[i];if("object"!=typeof a){var s=a;fs(s)&&(r+=hs(i)+":"+ms(i,s)+";")}else if(Array.isArray(a)&&"string"==typeof a[0]&&null==t)for(var l=0;l<a.length;l++)fs(a[l])&&(r+=hs(i)+":"+ms(i,a[l])+";");else{var c=gs(e,t,a);switch(i){case"animation":case"animationName":r+=hs(i)+":"+c+";";break;default:r+=i+"{"+c+"}"}}}return r}(e,t,n);case"function":if(void 0!==e){var s=bs,l=n(e);return bs=s,gs(e,t,l)}}return n}var bs,vs=/label:\s*([^\s;{]+)\s*(;|$)/g;function ys(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";bs=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=gs(n,t,i)):o+=i[0];for(var a=1;a<e.length;a++){if(o+=gs(n,t,e[a]),r)o+=i[a]}vs.lastIndex=0;for(var s,l="";null!==(s=vs.exec(o));)l+="-"+s[1];var c=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+l;return{name:c,styles:o,next:bs}}var xs="undefined"!=typeof document,Is=function(e){return e()},ws=!!r.useInsertionEffect&&r.useInsertionEffect,Cs=xs&&ws||Is,Es="undefined"!=typeof document,As=r.createContext("undefined"!=typeof HTMLElement?Ka({key:"css"}):null);As.Provider;var Ss=function(e){return i(function(t,n){var r=p(As);return e(t,r,n)})};Es||(Ss=function(e){return function(t){var n=p(As);return null===n?(n=Ka({key:"css"}),r.createElement(As.Provider,{value:n},e(t,n))):e(t,n)}});var Ts,Os,Ns=r.createContext({}),Ps={}.hasOwnProperty,Rs="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",ks=function(e){var t=e.cache,n=e.serialized,o=e.isStringTag;ss(t,n,o);var i=Cs(function(){return function(e,t,n){ss(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o="",i=t;do{var a=e.insert(t===i?"."+r:"",i,e.sheet,!0);as||void 0===a||(o+=a),i=i.next}while(void 0!==i);if(!as&&0!==o.length)return o}}(t,n,o)});if(!Es&&void 0!==i){for(var a,s=n.name,l=n.next;void 0!==l;)s+=" "+l.name,l=l.next;return r.createElement("style",((a={})["data-emotion"]=t.key+" "+s,a.dangerouslySetInnerHTML={__html:i},a.nonce=t.sheet.nonce,a))}return null},Ls=Ss(function(e,t,n){var o=e.css;"string"==typeof o&&void 0!==t.registered[o]&&(o=t.registered[o]);var i=e[Rs],a=[o],s="";"string"==typeof e.className?s=function(e,t,n){var r="";return n.split(" ").forEach(function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")}),r}(t.registered,a,e.className):null!=e.className&&(s=e.className+" ");var l=ys(a,void 0,r.useContext(Ns));s+=t.key+"-"+l.name;var c={};for(var u in e)Ps.call(e,u)&&"css"!==u&&u!==Rs&&(c[u]=e[u]);return c.className=s,n&&(c.ref=n),r.createElement(r.Fragment,null,r.createElement(ks,{cache:t,serialized:l,isStringTag:"string"==typeof i}),r.createElement(i,c))}),Bs=Ls,Ds=function(e,t){var n=arguments;if(null==t||!Ps.call(t,"css"))return r.createElement.apply(void 0,n);var o=n.length,i=new Array(o);i[0]=Bs,i[1]=function(e,t){var n={};for(var r in t)Ps.call(t,r)&&(n[r]=t[r]);return n[Rs]=e,n}(e,t);for(var a=2;a<o;a++)i[a]=n[a];return r.createElement.apply(null,i)};function Gs(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return ys(t)}Ts=Ds||(Ds={}),Os||(Os=Ts.JSX||(Ts.JSX={}));const Ms=Math.min,js=Math.max,Vs=Math.round,Fs=Math.floor,_s=e=>({x:e,y:e});function Hs(){return"undefined"!=typeof window}function Ws(e){return Zs(e)?(e.nodeName||"").toLowerCase():"#document"}function Xs(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function zs(e){var t;return null==(t=(Zs(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Zs(e){return!!Hs()&&(e instanceof Node||e instanceof Xs(e).Node)}function Ys(e){return!!Hs()&&(e instanceof HTMLElement||e instanceof Xs(e).HTMLElement)}function Us(e){return!(!Hs()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof Xs(e).ShadowRoot)}const Js=new Set(["inline","contents"]);function $s(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Qs(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!Js.has(o)}const Ks=new Set(["html","body","#document"]);function Qs(e){return Xs(e).getComputedStyle(e)}function qs(e){const t=function(e){if("html"===Ws(e))return e;const t=e.assignedSlot||e.parentNode||Us(e)&&e.host||zs(e);return Us(t)?t.host:t}(e);return function(e){return Ks.has(Ws(e))}(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ys(t)&&$s(t)?t:qs(t)}function el(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=qs(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=Xs(o);if(i){const e=tl(a);return t.concat(a,a.visualViewport||[],$s(o)?o:[],e&&n?el(e):[])}return t.concat(o,el(o,[],n))}function tl(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function nl(e){return t=e,Hs()&&(t instanceof Element||t instanceof Xs(t).Element)?e:e.contextElement;var t}function rl(e){const t=nl(e);if(!Ys(t))return _s(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=function(e){const t=Qs(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Ys(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,s=Vs(n)!==i||Vs(r)!==a;return s&&(n=i,r=a),{width:n,height:r,$:s}}(t);let a=(i?Vs(n.width):n.width)/r,s=(i?Vs(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}function ol(e,t,n,r){void 0===t&&(t=!1);const o=e.getBoundingClientRect(),i=nl(e);let a=_s(1);t&&(a=rl(e));const s=_s(0);let l=(o.left+s.x)/a.x,c=(o.top+s.y)/a.y,u=o.width/a.x,d=o.height/a.y;if(i){const e=r;let t=Xs(i),n=tl(t);for(;n&&r&&e!==t;){const e=rl(n),r=n.getBoundingClientRect(),o=Qs(n),i=r.left+(n.clientLeft+parseFloat(o.paddingLeft))*e.x,a=r.top+(n.clientTop+parseFloat(o.paddingTop))*e.y;l*=e.x,c*=e.y,u*=e.x,d*=e.y,l+=i,c+=a,t=Xs(n),n=tl(t)}}return function(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}({width:u,height:d,x:l,y:c})}function il(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function al(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,c=nl(e),u=o||i?[...c?el(c):[],...el(t)]:[];u.forEach(e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)});const d=c&&s?function(e,t){let n,r=null;const o=zs(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function a(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),i();const c=e.getBoundingClientRect(),{left:u,top:d,width:p,height:f}=c;if(s||t(),!p||!f)return;const h={rootMargin:-Fs(d)+"px "+-Fs(o.clientWidth-(u+p))+"px "+-Fs(o.clientHeight-(d+f))+"px "+-Fs(u)+"px",threshold:js(0,Ms(1,l))||1};let m=!0;function g(t){const r=t[0].intersectionRatio;if(r!==l){if(!m)return a();r?a(!1,r):n=setTimeout(()=>{a(!1,1e-7)},1e3)}1!==r||il(c,e.getBoundingClientRect())||a(),m=!1}try{r=new IntersectionObserver(g,{...h,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(g,h)}r.observe(e)}(!0),i}(c,n):null;let p,f=-1,h=null;a&&(h=new ResizeObserver(e=>{let[r]=e;r&&r.target===c&&h&&(h.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;null==(e=h)||e.observe(t)})),n()}),c&&!l&&h.observe(c),h.observe(t));let m=l?ol(e):null;return l&&function t(){const r=ol(e);m&&!il(m,r)&&n();m=r,p=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach(e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)}),null==d||d(),null==(e=h)||e.disconnect(),h=null,l&&cancelAnimationFrame(p)}}var sl="undefined"!=typeof document?f:function(){},ll=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],cl=function(){};function ul(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function dl(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var i=[].concat(r);if(t&&e)for(var a in t)t.hasOwnProperty(a)&&t[a]&&i.push("".concat(ul(e,a)));return i.filter(function(e){return e}).map(function(e){return String(e).trim()}).join(" ")}var pl=function(e){return t=e,Array.isArray(t)?e.filter(Boolean):"object"===Ni(e)&&null!==e?[e]:[];var t},fl=function(e){return e.className,e.clearValue,e.cx,e.getStyles,e.getClassNames,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme,Li({},Mi(e,ll))},hl=function(e,t,n){var r=e.cx,o=e.getStyles,i=e.getClassNames,a=e.className;return{css:o(t,e),className:r(null!=n?n:{},i(t,e),a)}};function ml(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function gl(e){return ml(e)?window.pageYOffset:e.scrollTop}function bl(e,t){ml(e)?window.scrollTo(0,t):e.scrollTop=t}function vl(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:cl,o=gl(e),i=t-o,a=0;!function t(){var s,l=i*((s=(s=a+=10)/n-1)*s*s+1)+o;bl(e,l),a<n?window.requestAnimationFrame(t):r(e)}()}function yl(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),o=t.offsetHeight/3;r.bottom+o>n.bottom?bl(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+o,e.scrollHeight)):r.top-o<n.top&&bl(e,Math.max(t.offsetTop-o,0))}function xl(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var Il=!1,wl={get passive(){return Il=!0}},Cl="undefined"!=typeof window?window:{};Cl.addEventListener&&Cl.removeEventListener&&(Cl.addEventListener("p",cl,wl),Cl.removeEventListener("p",cl,!1));var El=Il;function Al(e){return null!=e}function Sl(e,t,n){return e?t:n}var Tl=["children","innerProps"],Ol=["children","innerProps"];function Nl(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,o=e.placement,i=e.shouldScroll,a=e.isFixedPosition,s=e.controlHeight,l=function(e){var t=getComputedStyle(e),n="absolute"===t.position,r=/(auto|scroll)/;if("fixed"===t.position)return document.documentElement;for(var o=e;o=o.parentElement;)if(t=getComputedStyle(o),(!n||"static"!==t.position)&&r.test(t.overflow+t.overflowY+t.overflowX))return o;return document.documentElement}(n),c={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return c;var u,d=l.getBoundingClientRect().height,p=n.getBoundingClientRect(),f=p.bottom,h=p.height,m=p.top,g=n.offsetParent.getBoundingClientRect().top,b=a?window.innerHeight:ml(u=l)?window.innerHeight:u.clientHeight,v=gl(l),y=parseInt(getComputedStyle(n).marginBottom,10),x=parseInt(getComputedStyle(n).marginTop,10),I=g-x,w=b-m,C=I+v,E=d-v-m,A=f-b+v+y,S=v+m-x,T=160;switch(o){case"auto":case"bottom":if(w>=h)return{placement:"bottom",maxHeight:t};if(E>=h&&!a)return i&&vl(l,A,T),{placement:"bottom",maxHeight:t};if(!a&&E>=r||a&&w>=r)return i&&vl(l,A,T),{placement:"bottom",maxHeight:a?w-y:E-y};if("auto"===o||a){var O=t,N=a?I:C;return N>=r&&(O=Math.min(N-y-s,t)),{placement:"top",maxHeight:O}}if("bottom"===o)return i&&bl(l,A),{placement:"bottom",maxHeight:t};break;case"top":if(I>=h)return{placement:"top",maxHeight:t};if(C>=h&&!a)return i&&vl(l,S,T),{placement:"top",maxHeight:t};if(!a&&C>=r||a&&I>=r){var P=t;return(!a&&C>=r||a&&I>=r)&&(P=a?I-x:C-x),i&&vl(l,S,T),{placement:"top",maxHeight:P}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return c}var Pl,Rl=function(e){return"auto"===e?"bottom":e},kl=h(null),Ll=function(e){var t=e.children,n=e.minMenuHeight,r=e.maxMenuHeight,o=e.menuPlacement,i=e.menuPosition,a=e.menuShouldScrollIntoView,l=e.theme,u=(p(kl)||{}).setPortalPlacement,d=s(null),f=Gi(c(r),2),h=f[0],m=f[1],g=Gi(c(null),2),b=g[0],v=g[1],y=l.spacing.controlHeight;return sl(function(){var e=d.current;if(e){var t="fixed"===i,s=Nl({maxHeight:r,menuEl:e,minHeight:n,placement:o,shouldScroll:a&&!t,isFixedPosition:t,controlHeight:y});m(s.maxHeight),v(s.placement),null==u||u(s.placement)}},[r,o,i,a,n,u,y]),t({ref:d,placerProps:Li(Li({},e),{},{placement:b||Rl(o),maxHeight:h})})},Bl=function(e){var t=e.children,n=e.innerRef,r=e.innerProps;return Ds("div",di({},hl(e,"menu",{menu:!0}),{ref:n},r),t)},Dl=function(e,t){var n=e.theme,r=n.spacing.baseUnit,o=n.colors;return Li({textAlign:"center"},t?{}:{color:o.neutral40,padding:"".concat(2*r,"px ").concat(3*r,"px")})},Gl=Dl,Ml=Dl,jl=["size"],Vl=["innerProps","isRtl","size"];var Fl,_l,Hl="production"===process.env.NODE_ENV?{name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"}:{name:"tj5bde-Svg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;label:Svg;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLFxufSBmcm9tICcuLi90eXBlcyc7XG5pbXBvcnQgeyBnZXRTdHlsZVByb3BzIH0gZnJvbSAnLi4vdXRpbHMnO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgSWNvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBTdmcgPSAoe1xuICBzaXplLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZTogbnVtYmVyIH0pID0+IChcbiAgPHN2Z1xuICAgIGhlaWdodD17c2l6ZX1cbiAgICB3aWR0aD17c2l6ZX1cbiAgICB2aWV3Qm94PVwiMCAwIDIwIDIwXCJcbiAgICBhcmlhLWhpZGRlbj1cInRydWVcIlxuICAgIGZvY3VzYWJsZT1cImZhbHNlXCJcbiAgICBjc3M9e3tcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgZmlsbDogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBsaW5lSGVpZ2h0OiAxLFxuICAgICAgc3Ryb2tlOiAnY3VycmVudENvbG9yJyxcbiAgICAgIHN0cm9rZVdpZHRoOiAwLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IHR5cGUgQ3Jvc3NJY29uUHJvcHMgPSBKU1guSW50cmluc2ljRWxlbWVudHNbJ3N2ZyddICYgeyBzaXplPzogbnVtYmVyIH07XG5leHBvcnQgY29uc3QgQ3Jvc3NJY29uID0gKHByb3BzOiBDcm9zc0ljb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNMTQuMzQ4IDE0Ljg0OWMtMC40NjkgMC40NjktMS4yMjkgMC40NjktMS42OTcgMGwtMi42NTEtMy4wMzAtMi42NTEgMy4wMjljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDAtMC40NjktMC40NjktMC40NjktMS4yMjkgMC0xLjY5N2wyLjc1OC0zLjE1LTIuNzU5LTMuMTUyYy0wLjQ2OS0wLjQ2OS0wLjQ2OS0xLjIyOCAwLTEuNjk3czEuMjI4LTAuNDY5IDEuNjk3IDBsMi42NTIgMy4wMzEgMi42NTEtMy4wMzFjMC40NjktMC40NjkgMS4yMjgtMC40NjkgMS42OTcgMHMwLjQ2OSAxLjIyOSAwIDEuNjk3bC0yLjc1OCAzLjE1MiAyLjc1OCAzLjE1YzAuNDY5IDAuNDY5IDAuNDY5IDEuMjI5IDAgMS42OTh6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuZXhwb3J0IHR5cGUgRG93bkNoZXZyb25Qcm9wcyA9IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10gJiB7IHNpemU/OiBudW1iZXIgfTtcbmV4cG9ydCBjb25zdCBEb3duQ2hldnJvbiA9IChwcm9wczogRG93bkNoZXZyb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNNC41MTYgNy41NDhjMC40MzYtMC40NDYgMS4wNDMtMC40ODEgMS41NzYgMGwzLjkwOCAzLjc0NyAzLjkwOC0zLjc0N2MwLjUzMy0wLjQ4MSAxLjE0MS0wLjQ0NiAxLjU3NCAwIDAuNDM2IDAuNDQ1IDAuNDA4IDEuMTk3IDAgMS42MTUtMC40MDYgMC40MTgtNC42OTUgNC41MDItNC42OTUgNC41MDItMC4yMTcgMC4yMjMtMC41MDIgMC4zMzUtMC43ODcgMC4zMzVzLTAuNTctMC4xMTItMC43ODktMC4zMzVjMCAwLTQuMjg3LTQuMDg0LTQuNjk1LTQuNTAycy0wLjQzNi0xLjE3IDAtMS42MTV6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgQnV0dG9uc1xuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG5cbmV4cG9ydCBpbnRlcmZhY2UgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIC8qKiBUaGUgY2hpbGRyZW4gdG8gYmUgcmVuZGVyZWQgaW5zaWRlIHRoZSBpbmRpY2F0b3IuICovXG4gIGNoaWxkcmVuPzogUmVhY3ROb2RlO1xuICAvKiogUHJvcHMgdGhhdCB3aWxsIGJlIHBhc3NlZCBvbiB0byB0aGUgY2hpbGRyZW4uICovXG4gIGlubmVyUHJvcHM6IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snZGl2J107XG4gIC8qKiBUaGUgZm9jdXNlZCBzdGF0ZSBvZiB0aGUgc2VsZWN0LiAqL1xuICBpc0ZvY3VzZWQ6IGJvb2xlYW47XG4gIGlzRGlzYWJsZWQ6IGJvb2xlYW47XG59XG5cbmNvbnN0IGJhc2VDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgdGhlbWU6IHtcbiAgICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICAgIGNvbG9ycyxcbiAgICB9LFxuICB9OlxuICAgIHwgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuICAgIHwgQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2luZGljYXRvckNvbnRhaW5lcicsXG4gIGRpc3BsYXk6ICdmbGV4JyxcbiAgdHJhbnNpdGlvbjogJ2NvbG9yIDE1MG1zJyxcbiAgLi4uKHVuc3R5bGVkXG4gICAgPyB7fVxuICAgIDoge1xuICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw2MCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIHBhZGRpbmc6IGJhc2VVbml0ICogMixcbiAgICAgICAgJzpob3Zlcic6IHtcbiAgICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw4MCA6IGNvbG9ycy5uZXV0cmFsNDAsXG4gICAgICAgIH0sXG4gICAgICB9KSxcbn0pO1xuXG5leHBvcnQgY29uc3QgZHJvcGRvd25JbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IERyb3Bkb3duSW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnZHJvcGRvd25JbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2Ryb3Bkb3duLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8RG93bkNoZXZyb24gLz59XG4gICAgPC9kaXY+XG4gICk7XG59O1xuXG5leHBvcnQgaW50ZXJmYWNlIENsZWFySW5kaWNhdG9yUHJvcHM8XG4gIE9wdGlvbiA9IHVua25vd24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuID0gYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPiA9IEdyb3VwQmFzZTxPcHRpb24+XG4+IGV4dGVuZHMgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWU8T3B0aW9uLCBJc011bHRpLCBHcm91cD4ge1xuICAvKiogVGhlIGNoaWxkcmVuIHRvIGJlIHJlbmRlcmVkIGluc2lkZSB0aGUgaW5kaWNhdG9yLiAqL1xuICBjaGlsZHJlbj86IFJlYWN0Tm9kZTtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xufVxuXG5leHBvcnQgY29uc3QgY2xlYXJJbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IENsZWFySW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnY2xlYXJJbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2NsZWFyLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8Q3Jvc3NJY29uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBTZXBhcmF0b3Jcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5leHBvcnQgaW50ZXJmYWNlIEluZGljYXRvclNlcGFyYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgaXNEaXNhYmxlZDogYm9vbGVhbjtcbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpbm5lclByb3BzPzogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ107XG59XG5cbmV4cG9ydCBjb25zdCBpbmRpY2F0b3JTZXBhcmF0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0Rpc2FibGVkLFxuICAgIHRoZW1lOiB7XG4gICAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgICBjb2xvcnMsXG4gICAgfSxcbiAgfTogSW5kaWNhdG9yU2VwYXJhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdpbmRpY2F0b3JTZXBhcmF0b3InLFxuICBhbGlnblNlbGY6ICdzdHJldGNoJyxcbiAgd2lkdGg6IDEsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgYmFja2dyb3VuZENvbG9yOiBpc0Rpc2FibGVkID8gY29sb3JzLm5ldXRyYWwxMCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIG1hcmdpbkJvdHRvbTogYmFzZVVuaXQgKiAyLFxuICAgICAgICBtYXJnaW5Ub3A6IGJhc2VVbml0ICogMixcbiAgICAgIH0pLFxufSk7XG5cbmV4cG9ydCBjb25zdCBJbmRpY2F0b3JTZXBhcmF0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHByb3BzOiBJbmRpY2F0b3JTZXBhcmF0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgaW5uZXJQcm9wcyB9ID0gcHJvcHM7XG4gIHJldHVybiAoXG4gICAgPHNwYW5cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgICAgey4uLmdldFN0eWxlUHJvcHMocHJvcHMsICdpbmRpY2F0b3JTZXBhcmF0b3InLCB7XG4gICAgICAgICdpbmRpY2F0b3Itc2VwYXJhdG9yJzogdHJ1ZSxcbiAgICAgIH0pfVxuICAgIC8+XG4gICk7XG59O1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIExvYWRpbmdcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBsb2FkaW5nRG90QW5pbWF0aW9ucyA9IGtleWZyYW1lc2BcbiAgMCUsIDgwJSwgMTAwJSB7IG9wYWNpdHk6IDA7IH1cbiAgNDAlIHsgb3BhY2l0eTogMTsgfVxuYDtcblxuZXhwb3J0IGNvbnN0IGxvYWRpbmdJbmRpY2F0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgc2l6ZSxcbiAgICB0aGVtZToge1xuICAgICAgY29sb3JzLFxuICAgICAgc3BhY2luZzogeyBiYXNlVW5pdCB9LFxuICAgIH0sXG4gIH06IExvYWRpbmdJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2xvYWRpbmdJbmRpY2F0b3InLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHRyYW5zaXRpb246ICdjb2xvciAxNTBtcycsXG4gIGFsaWduU2VsZjogJ2NlbnRlcicsXG4gIGZvbnRTaXplOiBzaXplLFxuICBsaW5lSGVpZ2h0OiAxLFxuICBtYXJnaW5SaWdodDogc2l6ZSxcbiAgdGV4dEFsaWduOiAnY2VudGVyJyxcbiAgdmVydGljYWxBbGlnbjogJ21pZGRsZScsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBwYWRkaW5nOiBiYXNlVW5pdCAqIDIsXG4gICAgICB9KSxcbn0pO1xuXG5pbnRlcmZhY2UgTG9hZGluZ0RvdFByb3BzIHtcbiAgZGVsYXk6IG51bWJlcjtcbiAgb2Zmc2V0OiBib29sZWFuO1xufVxuY29uc3QgTG9hZGluZ0RvdCA9ICh7IGRlbGF5LCBvZmZzZXQgfTogTG9hZGluZ0RvdFByb3BzKSA9PiAoXG4gIDxzcGFuXG4gICAgY3NzPXt7XG4gICAgICBhbmltYXRpb246IGAke2xvYWRpbmdEb3RBbmltYXRpb25zfSAxcyBlYXNlLWluLW91dCAke2RlbGF5fW1zIGluZmluaXRlO2AsXG4gICAgICBiYWNrZ3JvdW5kQ29sb3I6ICdjdXJyZW50Q29sb3InLFxuICAgICAgYm9yZGVyUmFkaXVzOiAnMWVtJyxcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgbWFyZ2luTGVmdDogb2Zmc2V0ID8gJzFlbScgOiB1bmRlZmluZWQsXG4gICAgICBoZWlnaHQ6ICcxZW0nLFxuICAgICAgdmVydGljYWxBbGlnbjogJ3RvcCcsXG4gICAgICB3aWR0aDogJzFlbScsXG4gICAgfX1cbiAgLz5cbik7XG5cbmV4cG9ydCBpbnRlcmZhY2UgTG9hZGluZ0luZGljYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpc0Rpc2FibGVkOiBib29sZWFuO1xuICAvKiogU2V0IHNpemUgb2YgdGhlIGNvbnRhaW5lci4gKi9cbiAgc2l6ZTogbnVtYmVyO1xufVxuZXhwb3J0IGNvbnN0IExvYWRpbmdJbmRpY2F0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oe1xuICBpbm5lclByb3BzLFxuICBpc1J0bCxcbiAgc2l6ZSA9IDQsXG4gIC4uLnJlc3RQcm9wc1xufTogTG9hZGluZ0luZGljYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+KSA9PiB7XG4gIHJldHVybiAoXG4gICAgPGRpdlxuICAgICAgey4uLmdldFN0eWxlUHJvcHMoXG4gICAgICAgIHsgLi4ucmVzdFByb3BzLCBpbm5lclByb3BzLCBpc1J0bCwgc2l6ZSB9LFxuICAgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */",toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}},Wl=function(e){var t=e.size,n=Mi(e,jl);return Ds("svg",di({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:Hl},n))},Xl=function(e){return Ds(Wl,di({size:20},e),Ds("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},zl=function(e){return Ds(Wl,di({size:20},e),Ds("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},Zl=function(e,t){var n=e.isFocused,r=e.theme,o=r.spacing.baseUnit,i=r.colors;return Li({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?i.neutral60:i.neutral20,padding:2*o,":hover":{color:n?i.neutral80:i.neutral40}})},Yl=Zl,Ul=Zl,Jl=function(){var e=Gs.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}(Pl||(Fl=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],_l||(_l=Fl.slice(0)),Pl=Object.freeze(Object.defineProperties(Fl,{raw:{value:Object.freeze(_l)}})))),$l=function(e){var t=e.delay,n=e.offset;return Ds("span",{css:Gs({animation:"".concat(Jl," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"production"===process.env.NODE_ENV?"":";label:LoadingDot;","production"===process.env.NODE_ENV?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW1RSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLFxufSBmcm9tICcuLi90eXBlcyc7XG5pbXBvcnQgeyBnZXRTdHlsZVByb3BzIH0gZnJvbSAnLi4vdXRpbHMnO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgSWNvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBTdmcgPSAoe1xuICBzaXplLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZTogbnVtYmVyIH0pID0+IChcbiAgPHN2Z1xuICAgIGhlaWdodD17c2l6ZX1cbiAgICB3aWR0aD17c2l6ZX1cbiAgICB2aWV3Qm94PVwiMCAwIDIwIDIwXCJcbiAgICBhcmlhLWhpZGRlbj1cInRydWVcIlxuICAgIGZvY3VzYWJsZT1cImZhbHNlXCJcbiAgICBjc3M9e3tcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgZmlsbDogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBsaW5lSGVpZ2h0OiAxLFxuICAgICAgc3Ryb2tlOiAnY3VycmVudENvbG9yJyxcbiAgICAgIHN0cm9rZVdpZHRoOiAwLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IHR5cGUgQ3Jvc3NJY29uUHJvcHMgPSBKU1guSW50cmluc2ljRWxlbWVudHNbJ3N2ZyddICYgeyBzaXplPzogbnVtYmVyIH07XG5leHBvcnQgY29uc3QgQ3Jvc3NJY29uID0gKHByb3BzOiBDcm9zc0ljb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNMTQuMzQ4IDE0Ljg0OWMtMC40NjkgMC40NjktMS4yMjkgMC40NjktMS42OTcgMGwtMi42NTEtMy4wMzAtMi42NTEgMy4wMjljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDAtMC40NjktMC40NjktMC40NjktMS4yMjkgMC0xLjY5N2wyLjc1OC0zLjE1LTIuNzU5LTMuMTUyYy0wLjQ2OS0wLjQ2OS0wLjQ2OS0xLjIyOCAwLTEuNjk3czEuMjI4LTAuNDY5IDEuNjk3IDBsMi42NTIgMy4wMzEgMi42NTEtMy4wMzFjMC40NjktMC40NjkgMS4yMjgtMC40NjkgMS42OTcgMHMwLjQ2OSAxLjIyOSAwIDEuNjk3bC0yLjc1OCAzLjE1MiAyLjc1OCAzLjE1YzAuNDY5IDAuNDY5IDAuNDY5IDEuMjI5IDAgMS42OTh6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuZXhwb3J0IHR5cGUgRG93bkNoZXZyb25Qcm9wcyA9IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10gJiB7IHNpemU/OiBudW1iZXIgfTtcbmV4cG9ydCBjb25zdCBEb3duQ2hldnJvbiA9IChwcm9wczogRG93bkNoZXZyb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNNC41MTYgNy41NDhjMC40MzYtMC40NDYgMS4wNDMtMC40ODEgMS41NzYgMGwzLjkwOCAzLjc0NyAzLjkwOC0zLjc0N2MwLjUzMy0wLjQ4MSAxLjE0MS0wLjQ0NiAxLjU3NCAwIDAuNDM2IDAuNDQ1IDAuNDA4IDEuMTk3IDAgMS42MTUtMC40MDYgMC40MTgtNC42OTUgNC41MDItNC42OTUgNC41MDItMC4yMTcgMC4yMjMtMC41MDIgMC4zMzUtMC43ODcgMC4zMzVzLTAuNTctMC4xMTItMC43ODktMC4zMzVjMCAwLTQuMjg3LTQuMDg0LTQuNjk1LTQuNTAycy0wLjQzNi0xLjE3IDAtMS42MTV6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgQnV0dG9uc1xuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG5cbmV4cG9ydCBpbnRlcmZhY2UgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIC8qKiBUaGUgY2hpbGRyZW4gdG8gYmUgcmVuZGVyZWQgaW5zaWRlIHRoZSBpbmRpY2F0b3IuICovXG4gIGNoaWxkcmVuPzogUmVhY3ROb2RlO1xuICAvKiogUHJvcHMgdGhhdCB3aWxsIGJlIHBhc3NlZCBvbiB0byB0aGUgY2hpbGRyZW4uICovXG4gIGlubmVyUHJvcHM6IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snZGl2J107XG4gIC8qKiBUaGUgZm9jdXNlZCBzdGF0ZSBvZiB0aGUgc2VsZWN0LiAqL1xuICBpc0ZvY3VzZWQ6IGJvb2xlYW47XG4gIGlzRGlzYWJsZWQ6IGJvb2xlYW47XG59XG5cbmNvbnN0IGJhc2VDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgdGhlbWU6IHtcbiAgICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICAgIGNvbG9ycyxcbiAgICB9LFxuICB9OlxuICAgIHwgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuICAgIHwgQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2luZGljYXRvckNvbnRhaW5lcicsXG4gIGRpc3BsYXk6ICdmbGV4JyxcbiAgdHJhbnNpdGlvbjogJ2NvbG9yIDE1MG1zJyxcbiAgLi4uKHVuc3R5bGVkXG4gICAgPyB7fVxuICAgIDoge1xuICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw2MCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIHBhZGRpbmc6IGJhc2VVbml0ICogMixcbiAgICAgICAgJzpob3Zlcic6IHtcbiAgICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw4MCA6IGNvbG9ycy5uZXV0cmFsNDAsXG4gICAgICAgIH0sXG4gICAgICB9KSxcbn0pO1xuXG5leHBvcnQgY29uc3QgZHJvcGRvd25JbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IERyb3Bkb3duSW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnZHJvcGRvd25JbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2Ryb3Bkb3duLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8RG93bkNoZXZyb24gLz59XG4gICAgPC9kaXY+XG4gICk7XG59O1xuXG5leHBvcnQgaW50ZXJmYWNlIENsZWFySW5kaWNhdG9yUHJvcHM8XG4gIE9wdGlvbiA9IHVua25vd24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuID0gYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPiA9IEdyb3VwQmFzZTxPcHRpb24+XG4+IGV4dGVuZHMgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWU8T3B0aW9uLCBJc011bHRpLCBHcm91cD4ge1xuICAvKiogVGhlIGNoaWxkcmVuIHRvIGJlIHJlbmRlcmVkIGluc2lkZSB0aGUgaW5kaWNhdG9yLiAqL1xuICBjaGlsZHJlbj86IFJlYWN0Tm9kZTtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xufVxuXG5leHBvcnQgY29uc3QgY2xlYXJJbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IENsZWFySW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnY2xlYXJJbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2NsZWFyLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8Q3Jvc3NJY29uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBTZXBhcmF0b3Jcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5leHBvcnQgaW50ZXJmYWNlIEluZGljYXRvclNlcGFyYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgaXNEaXNhYmxlZDogYm9vbGVhbjtcbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpbm5lclByb3BzPzogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ107XG59XG5cbmV4cG9ydCBjb25zdCBpbmRpY2F0b3JTZXBhcmF0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0Rpc2FibGVkLFxuICAgIHRoZW1lOiB7XG4gICAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgICBjb2xvcnMsXG4gICAgfSxcbiAgfTogSW5kaWNhdG9yU2VwYXJhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdpbmRpY2F0b3JTZXBhcmF0b3InLFxuICBhbGlnblNlbGY6ICdzdHJldGNoJyxcbiAgd2lkdGg6IDEsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgYmFja2dyb3VuZENvbG9yOiBpc0Rpc2FibGVkID8gY29sb3JzLm5ldXRyYWwxMCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIG1hcmdpbkJvdHRvbTogYmFzZVVuaXQgKiAyLFxuICAgICAgICBtYXJnaW5Ub3A6IGJhc2VVbml0ICogMixcbiAgICAgIH0pLFxufSk7XG5cbmV4cG9ydCBjb25zdCBJbmRpY2F0b3JTZXBhcmF0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHByb3BzOiBJbmRpY2F0b3JTZXBhcmF0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgaW5uZXJQcm9wcyB9ID0gcHJvcHM7XG4gIHJldHVybiAoXG4gICAgPHNwYW5cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgICAgey4uLmdldFN0eWxlUHJvcHMocHJvcHMsICdpbmRpY2F0b3JTZXBhcmF0b3InLCB7XG4gICAgICAgICdpbmRpY2F0b3Itc2VwYXJhdG9yJzogdHJ1ZSxcbiAgICAgIH0pfVxuICAgIC8+XG4gICk7XG59O1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIExvYWRpbmdcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBsb2FkaW5nRG90QW5pbWF0aW9ucyA9IGtleWZyYW1lc2BcbiAgMCUsIDgwJSwgMTAwJSB7IG9wYWNpdHk6IDA7IH1cbiAgNDAlIHsgb3BhY2l0eTogMTsgfVxuYDtcblxuZXhwb3J0IGNvbnN0IGxvYWRpbmdJbmRpY2F0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgc2l6ZSxcbiAgICB0aGVtZToge1xuICAgICAgY29sb3JzLFxuICAgICAgc3BhY2luZzogeyBiYXNlVW5pdCB9LFxuICAgIH0sXG4gIH06IExvYWRpbmdJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2xvYWRpbmdJbmRpY2F0b3InLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHRyYW5zaXRpb246ICdjb2xvciAxNTBtcycsXG4gIGFsaWduU2VsZjogJ2NlbnRlcicsXG4gIGZvbnRTaXplOiBzaXplLFxuICBsaW5lSGVpZ2h0OiAxLFxuICBtYXJnaW5SaWdodDogc2l6ZSxcbiAgdGV4dEFsaWduOiAnY2VudGVyJyxcbiAgdmVydGljYWxBbGlnbjogJ21pZGRsZScsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBwYWRkaW5nOiBiYXNlVW5pdCAqIDIsXG4gICAgICB9KSxcbn0pO1xuXG5pbnRlcmZhY2UgTG9hZGluZ0RvdFByb3BzIHtcbiAgZGVsYXk6IG51bWJlcjtcbiAgb2Zmc2V0OiBib29sZWFuO1xufVxuY29uc3QgTG9hZGluZ0RvdCA9ICh7IGRlbGF5LCBvZmZzZXQgfTogTG9hZGluZ0RvdFByb3BzKSA9PiAoXG4gIDxzcGFuXG4gICAgY3NzPXt7XG4gICAgICBhbmltYXRpb246IGAke2xvYWRpbmdEb3RBbmltYXRpb25zfSAxcyBlYXNlLWluLW91dCAke2RlbGF5fW1zIGluZmluaXRlO2AsXG4gICAgICBiYWNrZ3JvdW5kQ29sb3I6ICdjdXJyZW50Q29sb3InLFxuICAgICAgYm9yZGVyUmFkaXVzOiAnMWVtJyxcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgbWFyZ2luTGVmdDogb2Zmc2V0ID8gJzFlbScgOiB1bmRlZmluZWQsXG4gICAgICBoZWlnaHQ6ICcxZW0nLFxuICAgICAgdmVydGljYWxBbGlnbjogJ3RvcCcsXG4gICAgICB3aWR0aDogJzFlbScsXG4gICAgfX1cbiAgLz5cbik7XG5cbmV4cG9ydCBpbnRlcmZhY2UgTG9hZGluZ0luZGljYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpc0Rpc2FibGVkOiBib29sZWFuO1xuICAvKiogU2V0IHNpemUgb2YgdGhlIGNvbnRhaW5lci4gKi9cbiAgc2l6ZTogbnVtYmVyO1xufVxuZXhwb3J0IGNvbnN0IExvYWRpbmdJbmRpY2F0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oe1xuICBpbm5lclByb3BzLFxuICBpc1J0bCxcbiAgc2l6ZSA9IDQsXG4gIC4uLnJlc3RQcm9wc1xufTogTG9hZGluZ0luZGljYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+KSA9PiB7XG4gIHJldHVybiAoXG4gICAgPGRpdlxuICAgICAgey4uLmdldFN0eWxlUHJvcHMoXG4gICAgICAgIHsgLi4ucmVzdFByb3BzLCBpbm5lclByb3BzLCBpc1J0bCwgc2l6ZSB9LFxuICAgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */")})},Kl=function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,o=e.innerRef,i=e.innerProps,a=e.menuIsOpen;return Ds("div",di({ref:o},hl(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":r,"control--menu-is-open":a}),i,{"aria-disabled":n||void 0}),t)},Ql=["data"],ql=function(e){var t=e.children,n=e.cx,r=e.getStyles,o=e.getClassNames,i=e.Heading,a=e.headingProps,s=e.innerProps,l=e.label,c=e.theme,u=e.selectProps;return Ds("div",di({},hl(e,"group",{group:!0}),s),Ds(i,di({},a,{selectProps:u,theme:c,getStyles:r,getClassNames:o,cx:n}),l),Ds("div",null,t))},ec=["innerRef","isDisabled","isHidden","inputClassName"],tc={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},nc={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":Li({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},tc)},rc=function(e){return Li({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},tc)},oc=function(e){var t=e.cx,n=e.value,r=fl(e),o=r.innerRef,i=r.isDisabled,a=r.isHidden,s=r.inputClassName,l=Mi(r,ec);return Ds("div",di({},hl(e,"input",{"input-container":!0}),{"data-value":n||""}),Ds("input",di({className:t({input:!0},s),ref:o,style:rc(a),disabled:i},l)))},ic=function(e){var t=e.children,n=e.innerProps;return Ds("div",n,t)};var ac=function(e){var t=e.children,n=e.components,r=e.data,o=e.innerProps,i=e.isDisabled,a=e.removeProps,s=e.selectProps,l=n.Container,c=n.Label,u=n.Remove;return Ds(l,{data:r,innerProps:Li(Li({},hl(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":i})),o),selectProps:s},Ds(c,{data:r,innerProps:Li({},hl(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:s},t),Ds(u,{data:r,innerProps:Li(Li({},hl(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},a),selectProps:s}))},sc={ClearIndicator:function(e){var t=e.children,n=e.innerProps;return Ds("div",di({},hl(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||Ds(Xl,null))},Control:Kl,DropdownIndicator:function(e){var t=e.children,n=e.innerProps;return Ds("div",di({},hl(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||Ds(zl,null))},DownChevron:zl,CrossIcon:Xl,Group:ql,GroupHeading:function(e){var t=fl(e);t.data;var n=Mi(t,Ql);return Ds("div",di({},hl(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return Ds("div",di({},hl(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return Ds("span",di({},t,hl(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:oc,LoadingIndicator:function(e){var t=e.innerProps,n=e.isRtl,r=e.size,o=void 0===r?4:r,i=Mi(e,Vl);return Ds("div",di({},hl(Li(Li({},i),{},{innerProps:t,isRtl:n,size:o}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),Ds($l,{delay:0,offset:n}),Ds($l,{delay:160,offset:!0}),Ds($l,{delay:320,offset:!n}))},Menu:Bl,MenuList:function(e){var t=e.children,n=e.innerProps,r=e.innerRef,o=e.isMulti;return Ds("div",di({},hl(e,"menuList",{"menu-list":!0,"menu-list--is-multi":o}),{ref:r},n),t)},MenuPortal:function(e){var t=e.appendTo,n=e.children,r=e.controlElement,o=e.innerProps,i=e.menuPlacement,a=e.menuPosition,d=s(null),p=s(null),f=Gi(c(Rl(i)),2),h=f[0],m=f[1],g=l(function(){return{setPortalPlacement:m}},[]),b=Gi(c(null),2),v=b[0],y=b[1],x=u(function(){if(r){var e=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(r),t="fixed"===a?0:window.pageYOffset,n=e[h]+t;n===(null==v?void 0:v.offset)&&e.left===(null==v?void 0:v.rect.left)&&e.width===(null==v?void 0:v.rect.width)||y({offset:n,rect:e})}},[r,a,h,null==v?void 0:v.offset,null==v?void 0:v.rect.left,null==v?void 0:v.rect.width]);sl(function(){x()},[x]);var I=u(function(){"function"==typeof p.current&&(p.current(),p.current=null),r&&d.current&&(p.current=al(r,d.current,x,{elementResize:"ResizeObserver"in window}))},[r,x]);sl(function(){I()},[I]);var w=u(function(e){d.current=e,I()},[I]);if(!t&&"fixed"!==a||!v)return null;var C=Ds("div",di({ref:w},hl(Li(Li({},e),{},{offset:v.offset,position:a,rect:v.rect}),"menuPortal",{"menu-portal":!0}),o),n);return Ds(kl.Provider,{value:g},t?E(C,t):C)},LoadingMessage:function(e){var t=e.children,n=void 0===t?"Loading...":t,r=e.innerProps,o=Mi(e,Ol);return Ds("div",di({},hl(Li(Li({},o),{},{children:n,innerProps:r}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),r),n)},NoOptionsMessage:function(e){var t=e.children,n=void 0===t?"No options":t,r=e.innerProps,o=Mi(e,Tl);return Ds("div",di({},hl(Li(Li({},o),{},{children:n,innerProps:r}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),r),n)},MultiValue:ac,MultiValueContainer:ic,MultiValueLabel:ic,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return Ds("div",di({role:"button"},n),t||Ds(Xl,{size:14}))},Option:function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,o=e.isSelected,i=e.innerRef,a=e.innerProps;return Ds("div",di({},hl(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":r,"option--is-selected":o}),{ref:i,"aria-disabled":n},a),t)},Placeholder:function(e){var t=e.children,n=e.innerProps;return Ds("div",di({},hl(e,"placeholder",{placeholder:!0}),n),t)},SelectContainer:function(e){var t=e.children,n=e.innerProps,r=e.isDisabled,o=e.isRtl;return Ds("div",di({},hl(e,"container",{"--is-disabled":r,"--is-rtl":o}),n),t)},SingleValue:function(e){var t=e.children,n=e.isDisabled,r=e.innerProps;return Ds("div",di({},hl(e,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),r),t)},ValueContainer:function(e){var t=e.children,n=e.innerProps,r=e.isMulti,o=e.hasValue;return Ds("div",di({},hl(e,"valueContainer",{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":o}),n),t)}},lc=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function cc(e,t){return e===t||!(!lc(e)||!lc(t))}function uc(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!cc(e[n],t[n]))return!1;return!0}for(var dc="production"===process.env.NODE_ENV?{name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"}:{name:"1f43avz-a11yText-A11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap;label:A11yText;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkExMXlUZXh0LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFPSSIsImZpbGUiOiJBMTF5VGV4dC50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKiogQGpzeCBqc3ggKi9cbmltcG9ydCB7IEpTWCB9IGZyb20gJ3JlYWN0JztcbmltcG9ydCB7IGpzeCB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuLy8gQXNzaXN0aXZlIHRleHQgdG8gZGVzY3JpYmUgdmlzdWFsIGVsZW1lbnRzLiBIaWRkZW4gZm9yIHNpZ2h0ZWQgdXNlcnMuXG5jb25zdCBBMTF5VGV4dCA9IChwcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ10pID0+IChcbiAgPHNwYW5cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAnYTExeVRleHQnLFxuICAgICAgekluZGV4OiA5OTk5LFxuICAgICAgYm9yZGVyOiAwLFxuICAgICAgY2xpcDogJ3JlY3QoMXB4LCAxcHgsIDFweCwgMXB4KScsXG4gICAgICBoZWlnaHQ6IDEsXG4gICAgICB3aWR0aDogMSxcbiAgICAgIHBvc2l0aW9uOiAnYWJzb2x1dGUnLFxuICAgICAgb3ZlcmZsb3c6ICdoaWRkZW4nLFxuICAgICAgcGFkZGluZzogMCxcbiAgICAgIHdoaXRlU3BhY2U6ICdub3dyYXAnLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IGRlZmF1bHQgQTExeVRleHQ7XG4iXX0= */",toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}},pc=function(e){return Ds("span",di({css:dc},e))},fc={guidance:function(e){var t=e.isSearchable,n=e.isMulti,r=e.tabSelectsValue,o=e.context,i=e.isInitialFocus;switch(o){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(r?", press Tab to select the option and exit the menu":"",".");case"input":return i?"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,n=e.label,r=void 0===n?"":n,o=e.labels,i=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(r,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(o.length>1?"s":""," ").concat(o.join(","),", selected.");case"select-option":return"option ".concat(r,i?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,r=e.options,o=e.label,i=void 0===o?"":o,a=e.selectValue,s=e.isDisabled,l=e.isSelected,c=e.isAppleDevice,u=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&a)return"value ".concat(i," focused, ").concat(u(a,n),".");if("menu"===t&&c){var d=s?" disabled":"",p="".concat(l?" selected":"").concat(d);return"".concat(i).concat(p,", ").concat(u(r,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},hc=function(e){var t=e.ariaSelection,n=e.focusedOption,r=e.focusedValue,o=e.focusableOptions,i=e.isFocused,a=e.selectValue,s=e.selectProps,c=e.id,u=e.isAppleDevice,d=s.ariaLiveMessages,p=s.getOptionLabel,f=s.inputValue,h=s.isMulti,m=s.isOptionDisabled,b=s.isSearchable,v=s.menuIsOpen,y=s.options,x=s.screenReaderStatus,I=s.tabSelectsValue,w=s.isLoading,C=s["aria-label"],E=s["aria-live"],A=l(function(){return Li(Li({},fc),d||{})},[d]),S=l(function(){var e,n="";if(t&&A.onChange){var r=t.option,o=t.options,i=t.removedValue,s=t.removedValues,l=t.value,c=i||r||(e=l,Array.isArray(e)?null:e),u=c?p(c):"",d=o||s||void 0,f=d?d.map(p):[],h=Li({isDisabled:c&&m(c,a),label:u,labels:f},t);n=A.onChange(h)}return n},[t,A,m,a,p]),T=l(function(){var e="",t=n||r,i=!!(n&&a&&a.includes(n));if(t&&A.onFocus){var s={focused:t,label:p(t),isDisabled:m(t,a),isSelected:i,options:o,context:t===n?"menu":"value",selectValue:a,isAppleDevice:u};e=A.onFocus(s)}return e},[n,r,p,m,A,o,a,u]),O=l(function(){var e="";if(v&&y.length&&!w&&A.onFilter){var t=x({count:o.length});e=A.onFilter({inputValue:f,resultsMessage:t})}return e},[o,f,v,A,y,x,w]),N="initial-input-focus"===(null==t?void 0:t.action),P=l(function(){var e="";if(A.guidance){var t=r?"value":v?"menu":"input";e=A.guidance({"aria-label":C,context:t,isDisabled:n&&m(n,a),isMulti:h,isSearchable:b,tabSelectsValue:I,isInitialFocus:N})}return e},[C,n,r,h,m,b,v,A,a,I,N]),R=Ds(g,null,Ds("span",{id:"aria-selection"},S),Ds("span",{id:"aria-focused"},T),Ds("span",{id:"aria-results"},O),Ds("span",{id:"aria-guidance"},P));return Ds(g,null,Ds(pc,{id:c},N&&R),Ds(pc,{"aria-live":E,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},i&&!N&&R))},mc=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],gc=new RegExp("["+mc.map(function(e){return e.letters}).join("")+"]","g"),bc={},vc=0;vc<mc.length;vc++)for(var yc=mc[vc],xc=0;xc<yc.letters.length;xc++)bc[yc.letters[xc]]=yc.base;var Ic=function(e){return e.replace(gc,function(e){return bc[e]})},wc=function(e,t){void 0===t&&(t=uc);var n=null;function r(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];if(n&&n.lastThis===this&&t(r,n.lastArgs))return n.lastResult;var i=e.apply(this,r);return n={lastResult:i,lastArgs:r,lastThis:this},i}return r.clear=function(){n=null},r}(Ic),Cc=function(e){return e.replace(/^\s+|\s+$/g,"")},Ec=function(e){return"".concat(e.label," ").concat(e.value)},Ac=function(e){return function(t,n){if(t.data.__isNew__)return!0;var r=Li({ignoreCase:!0,ignoreAccents:!0,stringify:Ec,trim:!0,matchFrom:"any"},e),o=r.ignoreCase,i=r.ignoreAccents,a=r.stringify,s=r.trim,l=r.matchFrom,c=s?Cc(n):n,u=s?Cc(a(t)):a(t);return o&&(c=c.toLowerCase(),u=u.toLowerCase()),i&&(c=wc(c),u=Ic(u)),"start"===l?u.substr(0,c.length)===c:u.indexOf(c)>-1}},Sc=["innerRef"];function Tc(e){var t=e.innerRef,n=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=Object.entries(e).filter(function(e){var t=Gi(e,1)[0];return!n.includes(t)});return o.reduce(function(e,t){var n=Gi(t,2),r=n[0],o=n[1];return e[r]=o,e},{})}(Mi(e,Sc),"onExited","in","enter","exit","appear");return Ds("input",di({ref:t},n,{css:Gs({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"production"===process.env.NODE_ENV?"":";label:DummyInput;","production"===process.env.NODE_ENV?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkR1bW15SW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCTSIsImZpbGUiOiJEdW1teUlucHV0LnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWYgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5pbXBvcnQgeyByZW1vdmVQcm9wcyB9IGZyb20gJy4uL3V0aWxzJztcblxuZXhwb3J0IGRlZmF1bHQgZnVuY3Rpb24gRHVtbXlJbnB1dCh7XG4gIGlubmVyUmVmLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydpbnB1dCddICYge1xuICByZWFkb25seSBpbm5lclJlZjogUmVmPEhUTUxJbnB1dEVsZW1lbnQ+O1xufSkge1xuICAvLyBSZW1vdmUgYW5pbWF0aW9uIHByb3BzIG5vdCBtZWFudCBmb3IgSFRNTCBlbGVtZW50c1xuICBjb25zdCBmaWx0ZXJlZFByb3BzID0gcmVtb3ZlUHJvcHMoXG4gICAgcHJvcHMsXG4gICAgJ29uRXhpdGVkJyxcbiAgICAnaW4nLFxuICAgICdlbnRlcicsXG4gICAgJ2V4aXQnLFxuICAgICdhcHBlYXInXG4gICk7XG5cbiAgcmV0dXJuIChcbiAgICA8aW5wdXRcbiAgICAgIHJlZj17aW5uZXJSZWZ9XG4gICAgICB7Li4uZmlsdGVyZWRQcm9wc31cbiAgICAgIGNzcz17e1xuICAgICAgICBsYWJlbDogJ2R1bW15SW5wdXQnLFxuICAgICAgICAvLyBnZXQgcmlkIG9mIGFueSBkZWZhdWx0IHN0eWxlc1xuICAgICAgICBiYWNrZ3JvdW5kOiAwLFxuICAgICAgICBib3JkZXI6IDAsXG4gICAgICAgIC8vIGltcG9ydGFudCEgdGhpcyBoaWRlcyB0aGUgZmxhc2hpbmcgY3Vyc29yXG4gICAgICAgIGNhcmV0Q29sb3I6ICd0cmFuc3BhcmVudCcsXG4gICAgICAgIGZvbnRTaXplOiAnaW5oZXJpdCcsXG4gICAgICAgIGdyaWRBcmVhOiAnMSAvIDEgLyAyIC8gMycsXG4gICAgICAgIG91dGxpbmU6IDAsXG4gICAgICAgIHBhZGRpbmc6IDAsXG4gICAgICAgIC8vIGltcG9ydGFudCEgd2l0aG91dCBgd2lkdGhgIGJyb3dzZXJzIHdvbid0IGFsbG93IGZvY3VzXG4gICAgICAgIHdpZHRoOiAxLFxuXG4gICAgICAgIC8vIHJlbW92ZSBjdXJzb3Igb24gZGVza3RvcFxuICAgICAgICBjb2xvcjogJ3RyYW5zcGFyZW50JyxcblxuICAgICAgICAvLyByZW1vdmUgY3Vyc29yIG9uIG1vYmlsZSB3aGlsc3QgbWFpbnRhaW5pbmcgXCJzY3JvbGwgaW50byB2aWV3XCIgYmVoYXZpb3VyXG4gICAgICAgIGxlZnQ6IC0xMDAsXG4gICAgICAgIG9wYWNpdHk6IDAsXG4gICAgICAgIHBvc2l0aW9uOiAncmVsYXRpdmUnLFxuICAgICAgICB0cmFuc2Zvcm06ICdzY2FsZSguMDEpJyxcbiAgICAgIH19XG4gICAgLz5cbiAgKTtcbn1cbiJdfQ== */")}))}var Oc=["boxSizing","height","overflow","paddingRight","position"],Nc={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function Pc(e){e.cancelable&&e.preventDefault()}function Rc(e){e.stopPropagation()}function kc(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function Lc(){return"ontouchstart"in window||navigator.maxTouchPoints}var Bc=!("undefined"==typeof window||!window.document||!window.document.createElement),Dc=0,Gc={capture:!1,passive:!1};var Mc=function(e){var t=e.target;return t.ownerDocument.activeElement&&t.ownerDocument.activeElement.blur()},jc="production"===process.env.NODE_ENV?{name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"}:{name:"bp8cua-ScrollManager",styles:"position:fixed;left:0;bottom:0;right:0;top:0;label:ScrollManager;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNjcm9sbE1hbmFnZXIudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW9EVSIsImZpbGUiOiJTY3JvbGxNYW5hZ2VyLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgRnJhZ21lbnQsIFJlYWN0RWxlbWVudCwgUmVmQ2FsbGJhY2ssIE1vdXNlRXZlbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgdXNlU2Nyb2xsQ2FwdHVyZSBmcm9tICcuL3VzZVNjcm9sbENhcHR1cmUnO1xuaW1wb3J0IHVzZVNjcm9sbExvY2sgZnJvbSAnLi91c2VTY3JvbGxMb2NrJztcblxuaW50ZXJmYWNlIFByb3BzIHtcbiAgcmVhZG9ubHkgY2hpbGRyZW46IChyZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PikgPT4gUmVhY3RFbGVtZW50O1xuICByZWFkb25seSBsb2NrRW5hYmxlZDogYm9vbGVhbjtcbiAgcmVhZG9ubHkgY2FwdHVyZUVuYWJsZWQ6IGJvb2xlYW47XG4gIHJlYWRvbmx5IG9uQm90dG9tQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Cb3R0b21MZWF2ZT86IChldmVudDogV2hlZWxFdmVudCB8IFRvdWNoRXZlbnQpID0+IHZvaWQ7XG4gIHJlYWRvbmx5IG9uVG9wQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Ub3BMZWF2ZT86IChldmVudDogV2hlZWxFdmVudCB8IFRvdWNoRXZlbnQpID0+IHZvaWQ7XG59XG5cbmNvbnN0IGJsdXJTZWxlY3RJbnB1dCA9IChldmVudDogTW91c2VFdmVudDxIVE1MRGl2RWxlbWVudD4pID0+IHtcbiAgY29uc3QgZWxlbWVudCA9IGV2ZW50LnRhcmdldCBhcyBIVE1MRGl2RWxlbWVudDtcbiAgcmV0dXJuIChcbiAgICBlbGVtZW50Lm93bmVyRG9jdW1lbnQuYWN0aXZlRWxlbWVudCAmJlxuICAgIChlbGVtZW50Lm93bmVyRG9jdW1lbnQuYWN0aXZlRWxlbWVudCBhcyBIVE1MRWxlbWVudCkuYmx1cigpXG4gICk7XG59O1xuXG5leHBvcnQgZGVmYXVsdCBmdW5jdGlvbiBTY3JvbGxNYW5hZ2VyKHtcbiAgY2hpbGRyZW4sXG4gIGxvY2tFbmFibGVkLFxuICBjYXB0dXJlRW5hYmxlZCA9IHRydWUsXG4gIG9uQm90dG9tQXJyaXZlLFxuICBvbkJvdHRvbUxlYXZlLFxuICBvblRvcEFycml2ZSxcbiAgb25Ub3BMZWF2ZSxcbn06IFByb3BzKSB7XG4gIGNvbnN0IHNldFNjcm9sbENhcHR1cmVUYXJnZXQgPSB1c2VTY3JvbGxDYXB0dXJlKHtcbiAgICBpc0VuYWJsZWQ6IGNhcHR1cmVFbmFibGVkLFxuICAgIG9uQm90dG9tQXJyaXZlLFxuICAgIG9uQm90dG9tTGVhdmUsXG4gICAgb25Ub3BBcnJpdmUsXG4gICAgb25Ub3BMZWF2ZSxcbiAgfSk7XG4gIGNvbnN0IHNldFNjcm9sbExvY2tUYXJnZXQgPSB1c2VTY3JvbGxMb2NrKHsgaXNFbmFibGVkOiBsb2NrRW5hYmxlZCB9KTtcblxuICBjb25zdCB0YXJnZXRSZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PiA9IChlbGVtZW50KSA9PiB7XG4gICAgc2V0U2Nyb2xsQ2FwdHVyZVRhcmdldChlbGVtZW50KTtcbiAgICBzZXRTY3JvbGxMb2NrVGFyZ2V0KGVsZW1lbnQpO1xuICB9O1xuXG4gIHJldHVybiAoXG4gICAgPEZyYWdtZW50PlxuICAgICAge2xvY2tFbmFibGVkICYmIChcbiAgICAgICAgPGRpdlxuICAgICAgICAgIG9uQ2xpY2s9e2JsdXJTZWxlY3RJbnB1dH1cbiAgICAgICAgICBjc3M9e3sgcG9zaXRpb246ICdmaXhlZCcsIGxlZnQ6IDAsIGJvdHRvbTogMCwgcmlnaHQ6IDAsIHRvcDogMCB9fVxuICAgICAgICAvPlxuICAgICAgKX1cbiAgICAgIHtjaGlsZHJlbih0YXJnZXRSZWYpfVxuICAgIDwvRnJhZ21lbnQ+XG4gICk7XG59XG4iXX0= */",toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}};function Vc(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,o=function(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,o=e.onTopArrive,i=e.onTopLeave,l=s(!1),c=s(!1),d=s(0),p=s(null),f=u(function(e,t){if(null!==p.current){var a=p.current,s=a.scrollTop,u=a.scrollHeight,d=a.clientHeight,f=p.current,h=t>0,m=u-d-s,g=!1;m>t&&l.current&&(r&&r(e),l.current=!1),h&&c.current&&(i&&i(e),c.current=!1),h&&t>m?(n&&!l.current&&n(e),f.scrollTop=u,g=!0,l.current=!0):!h&&-t>s&&(o&&!c.current&&o(e),f.scrollTop=0,g=!0,c.current=!0),g&&function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()}(e)}},[n,r,o,i]),h=u(function(e){f(e,e.deltaY)},[f]),m=u(function(e){d.current=e.changedTouches[0].clientY},[]),g=u(function(e){var t=d.current-e.changedTouches[0].clientY;f(e,t)},[f]),b=u(function(e){if(e){var t=!!El&&{passive:!1};e.addEventListener("wheel",h,t),e.addEventListener("touchstart",m,t),e.addEventListener("touchmove",g,t)}},[g,m,h]),v=u(function(e){e&&(e.removeEventListener("wheel",h,!1),e.removeEventListener("touchstart",m,!1),e.removeEventListener("touchmove",g,!1))},[g,m,h]);return a(function(){if(t){var e=p.current;return b(e),function(){v(e)}}},[t,b,v]),function(e){p.current=e}}({isEnabled:void 0===r||r,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),i=function(e){var t=e.isEnabled,n=e.accountForScrollbars,r=void 0===n||n,o=s({}),i=s(null),l=u(function(e){if(Bc){var t=document.body,n=t&&t.style;if(r&&Oc.forEach(function(e){var t=n&&n[e];o.current[e]=t}),r&&Dc<1){var i=parseInt(o.current.paddingRight,10)||0,a=document.body?document.body.clientWidth:0,s=window.innerWidth-a+i||0;Object.keys(Nc).forEach(function(e){var t=Nc[e];n&&(n[e]=t)}),n&&(n.paddingRight="".concat(s,"px"))}t&&Lc()&&(t.addEventListener("touchmove",Pc,Gc),e&&(e.addEventListener("touchstart",kc,Gc),e.addEventListener("touchmove",Rc,Gc))),Dc+=1}},[r]),c=u(function(e){if(Bc){var t=document.body,n=t&&t.style;Dc=Math.max(Dc-1,0),r&&Dc<1&&Oc.forEach(function(e){var t=o.current[e];n&&(n[e]=t)}),t&&Lc()&&(t.removeEventListener("touchmove",Pc,Gc),e&&(e.removeEventListener("touchstart",kc,Gc),e.removeEventListener("touchmove",Rc,Gc)))}},[r]);return a(function(){if(t){var e=i.current;return l(e),function(){c(e)}}},[t,l,c]),function(e){i.current=e}}({isEnabled:n});return Ds(g,null,n&&Ds("div",{onClick:Mc,css:jc}),t(function(e){o(e),i(e)}))}var Fc="production"===process.env.NODE_ENV?{name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"}:{name:"5kkxb2-requiredInput-RequiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%;label:RequiredInput;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlJlcXVpcmVkSW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWNJIiwiZmlsZSI6IlJlcXVpcmVkSW5wdXQudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiLyoqIEBqc3gganN4ICovXG5pbXBvcnQgeyBGb2N1c0V2ZW50SGFuZGxlciwgRnVuY3Rpb25Db21wb25lbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmNvbnN0IFJlcXVpcmVkSW5wdXQ6IEZ1bmN0aW9uQ29tcG9uZW50PHtcbiAgcmVhZG9ubHkgbmFtZT86IHN0cmluZztcbiAgcmVhZG9ubHkgb25Gb2N1czogRm9jdXNFdmVudEhhbmRsZXI8SFRNTElucHV0RWxlbWVudD47XG59PiA9ICh7IG5hbWUsIG9uRm9jdXMgfSkgPT4gKFxuICA8aW5wdXRcbiAgICByZXF1aXJlZFxuICAgIG5hbWU9e25hbWV9XG4gICAgdGFiSW5kZXg9ey0xfVxuICAgIGFyaWEtaGlkZGVuPVwidHJ1ZVwiXG4gICAgb25Gb2N1cz17b25Gb2N1c31cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAncmVxdWlyZWRJbnB1dCcsXG4gICAgICBvcGFjaXR5OiAwLFxuICAgICAgcG9pbnRlckV2ZW50czogJ25vbmUnLFxuICAgICAgcG9zaXRpb246ICdhYnNvbHV0ZScsXG4gICAgICBib3R0b206IDAsXG4gICAgICBsZWZ0OiAwLFxuICAgICAgcmlnaHQ6IDAsXG4gICAgICB3aWR0aDogJzEwMCUnLFxuICAgIH19XG4gICAgLy8gUHJldmVudCBgU3dpdGNoaW5nIGZyb20gdW5jb250cm9sbGVkIHRvIGNvbnRyb2xsZWRgIGVycm9yXG4gICAgdmFsdWU9XCJcIlxuICAgIG9uQ2hhbmdlPXsoKSA9PiB7fX1cbiAgLz5cbik7XG5cbmV4cG9ydCBkZWZhdWx0IFJlcXVpcmVkSW5wdXQ7XG4iXX0= */",toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}},_c=function(e){var t=e.name,n=e.onFocus;return Ds("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:Fc,value:"",onChange:function(){}})};function Hc(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function Wc(){return Hc(/^Mac/i)}function Xc(){return Hc(/^iPhone/i)||Hc(/^iPad/i)||Wc()&&navigator.maxTouchPoints>1}var zc={clearIndicator:Ul,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},control:function(e,t){var n=e.isDisabled,r=e.isFocused,o=e.theme,i=o.colors,a=o.borderRadius;return Li({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:o.spacing.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:n?i.neutral5:i.neutral0,borderColor:n?i.neutral10:r?i.primary:i.neutral20,borderRadius:a,borderStyle:"solid",borderWidth:1,boxShadow:r?"0 0 0 1px ".concat(i.primary):void 0,"&:hover":{borderColor:r?i.primary:i.neutral30}})},dropdownIndicator:Yl,group:function(e,t){var n=e.theme.spacing;return t?{}:{paddingBottom:2*n.baseUnit,paddingTop:2*n.baseUnit}},groupHeading:function(e,t){var n=e.theme,r=n.colors,o=n.spacing;return Li({label:"group",cursor:"default",display:"block"},t?{}:{color:r.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*o.baseUnit,paddingRight:3*o.baseUnit,textTransform:"uppercase"})},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e,t){var n=e.isDisabled,r=e.theme,o=r.spacing.baseUnit,i=r.colors;return Li({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:n?i.neutral10:i.neutral20,marginBottom:2*o,marginTop:2*o})},input:function(e,t){var n=e.isDisabled,r=e.value,o=e.theme,i=o.spacing,a=o.colors;return Li(Li({visibility:n?"hidden":"visible",transform:r?"translateZ(0)":""},nc),t?{}:{margin:i.baseUnit/2,paddingBottom:i.baseUnit/2,paddingTop:i.baseUnit/2,color:a.neutral80})},loadingIndicator:function(e,t){var n=e.isFocused,r=e.size,o=e.theme,i=o.colors,a=o.spacing.baseUnit;return Li({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:r,lineHeight:1,marginRight:r,textAlign:"center",verticalAlign:"middle"},t?{}:{color:n?i.neutral60:i.neutral20,padding:2*a})},loadingMessage:Ml,menu:function(e,t){var n,r=e.placement,o=e.theme,i=o.borderRadius,a=o.spacing,s=o.colors;return Li((Ri(n={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(r),"100%"),Ri(n,"position","absolute"),Ri(n,"width","100%"),Ri(n,"zIndex",1),n),t?{}:{backgroundColor:s.neutral0,borderRadius:i,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:a.menuGutter,marginTop:a.menuGutter})},menuList:function(e,t){var n=e.maxHeight,r=e.theme.spacing.baseUnit;return Li({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:r,paddingTop:r})},menuPortal:function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},multiValue:function(e,t){var n=e.theme,r=n.spacing,o=n.borderRadius,i=n.colors;return Li({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:i.neutral10,borderRadius:o/2,margin:r.baseUnit/2})},multiValueLabel:function(e,t){var n=e.theme,r=n.borderRadius,o=n.colors,i=e.cropWithEllipsis;return Li({overflow:"hidden",textOverflow:i||void 0===i?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:r/2,color:o.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},multiValueRemove:function(e,t){var n=e.theme,r=n.spacing,o=n.borderRadius,i=n.colors,a=e.isFocused;return Li({alignItems:"center",display:"flex"},t?{}:{borderRadius:o/2,backgroundColor:a?i.dangerLight:void 0,paddingLeft:r.baseUnit,paddingRight:r.baseUnit,":hover":{backgroundColor:i.dangerLight,color:i.danger}})},noOptionsMessage:Gl,option:function(e,t){var n=e.isDisabled,r=e.isFocused,o=e.isSelected,i=e.theme,a=i.spacing,s=i.colors;return Li({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:o?s.primary:r?s.primary25:"transparent",color:n?s.neutral20:o?s.neutral0:"inherit",padding:"".concat(2*a.baseUnit,"px ").concat(3*a.baseUnit,"px"),":active":{backgroundColor:n?void 0:o?s.primary:s.primary50}})},placeholder:function(e,t){var n=e.theme,r=n.spacing,o=n.colors;return Li({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:o.neutral50,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},singleValue:function(e,t){var n=e.isDisabled,r=e.theme,o=r.spacing,i=r.colors;return Li({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:n?i.neutral40:i.neutral80,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},valueContainer:function(e,t){var n=e.theme.spacing,r=e.isMulti,o=e.hasValue,i=e.selectProps.controlShouldRenderValue;return Li({alignItems:"center",display:r&&o&&i?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(2*n.baseUnit,"px")})}},Zc={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},Yc={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:xl(),captureMenuScroll:!xl(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:Ac(),formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function Uc(e,t,n,r){return{type:"option",data:t,isDisabled:nu(e,t,n),isSelected:ru(e,t,n),label:eu(e,t),value:tu(e,t),index:r}}function Jc(e,t){return e.options.map(function(n,r){if("options"in n){var o=n.options.map(function(n,r){return Uc(e,n,t,r)}).filter(function(t){return Qc(e,t)});return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var i=Uc(e,n,t,r);return Qc(e,i)?i:void 0}).filter(Al)}function $c(e){return e.reduce(function(e,t){return"group"===t.type?e.push.apply(e,Wi(t.options.map(function(e){return e.data}))):e.push(t.data),e},[])}function Kc(e,t){return e.reduce(function(e,n){return"group"===n.type?e.push.apply(e,Wi(n.options.map(function(e){return{data:e.data,id:"".concat(t,"-").concat(n.index,"-").concat(e.index)}}))):e.push({data:n.data,id:"".concat(t,"-").concat(n.index)}),e},[])}function Qc(e,t){var n=e.inputValue,r=void 0===n?"":n,o=t.data,i=t.isSelected,a=t.label,s=t.value;return(!iu(e)||!i)&&ou(e,{label:a,value:s,data:o},r)}var qc=function(e,t){var n;return(null===(n=e.find(function(e){return e.data===t}))||void 0===n?void 0:n.id)||null},eu=function(e,t){return e.getOptionLabel(t)},tu=function(e,t){return e.getOptionValue(t)};function nu(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function ru(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=tu(e,t);return n.some(function(t){return tu(e,t)===r})}function ou(e,t,n){return!e.filterOption||e.filterOption(t,n)}var iu=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},au=1,su=function(){!function(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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&fi(e,t)}(t,m);var e=function(e){var t=_i();return function(){var n,r=Fi(e);if(t){var o=Fi(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Hi(this,n)}}(t);function t(n){var r;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=e.call(this,n)).state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:"",isAppleDevice:!1},r.blockOptionHover=!1,r.isComposing=!1,r.commonProps=void 0,r.initialTouchX=0,r.initialTouchY=0,r.openAfterFocus=!1,r.scrollToFocusedOptionOnUpdate=!1,r.userIsDragging=void 0,r.controlRef=null,r.getControlRef=function(e){r.controlRef=e},r.focusedOptionRef=null,r.getFocusedOptionRef=function(e){r.focusedOptionRef=e},r.menuListRef=null,r.getMenuListRef=function(e){r.menuListRef=e},r.inputRef=null,r.getInputRef=function(e){r.inputRef=e},r.focus=r.focusInput,r.blur=r.blurInput,r.onChange=function(e,t){var n=r.props,o=n.onChange,i=n.name;t.name=i,r.ariaOnChange(e,t),o(e,t)},r.setValue=function(e,t,n){var o=r.props,i=o.closeMenuOnSelect,a=o.isMulti,s=o.inputValue;r.onInputChange("",{action:"set-value",prevInputValue:s}),i&&(r.setState({inputIsHiddenAfterUpdate:!a}),r.onMenuClose()),r.setState({clearFocusValueOnUpdate:!0}),r.onChange(e,{action:t,option:n})},r.selectOption=function(e){var t=r.props,n=t.blurInputOnSelect,o=t.isMulti,i=t.name,a=r.state.selectValue,s=o&&r.isOptionSelected(e,a),l=r.isOptionDisabled(e,a);if(s){var c=r.getOptionValue(e);r.setValue(a.filter(function(e){return r.getOptionValue(e)!==c}),"deselect-option",e)}else{if(l)return void r.ariaOnChange(e,{action:"select-option",option:e,name:i});o?r.setValue([].concat(Wi(a),[e]),"select-option",e):r.setValue(e,"select-option")}n&&r.blurInput()},r.removeValue=function(e){var t=r.props.isMulti,n=r.state.selectValue,o=r.getOptionValue(e),i=n.filter(function(e){return r.getOptionValue(e)!==o}),a=Sl(t,i,i[0]||null);r.onChange(a,{action:"remove-value",removedValue:e}),r.focusInput()},r.clearValue=function(){var e=r.state.selectValue;r.onChange(Sl(r.props.isMulti,[],null),{action:"clear",removedValues:e})},r.popValue=function(){var e=r.props.isMulti,t=r.state.selectValue,n=t[t.length-1],o=t.slice(0,t.length-1),i=Sl(e,o,o[0]||null);n&&r.onChange(i,{action:"pop-value",removedValue:n})},r.getFocusedOptionId=function(e){return qc(r.state.focusableOptionsWithIds,e)},r.getFocusableOptionsWithIds=function(){return Kc(Jc(r.props,r.state.selectValue),r.getElementId("option"))},r.getValue=function(){return r.state.selectValue},r.cx=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return dl.apply(void 0,[r.props.classNamePrefix].concat(t))},r.getOptionLabel=function(e){return eu(r.props,e)},r.getOptionValue=function(e){return tu(r.props,e)},r.getStyles=function(e,t){var n=r.props.unstyled,o=zc[e](t,n);o.boxSizing="border-box";var i=r.props.styles[e];return i?i(o,t):o},r.getClassNames=function(e,t){var n,o;return null===(n=(o=r.props.classNames)[e])||void 0===n?void 0:n.call(o,t)},r.getElementId=function(e){return"".concat(r.state.instancePrefix,"-").concat(e)},r.getComponents=function(){return e=r.props,Li(Li({},sc),e.components);var e},r.buildCategorizedOptions=function(){return Jc(r.props,r.state.selectValue)},r.getCategorizedOptions=function(){return r.props.menuIsOpen?r.buildCategorizedOptions():[]},r.buildFocusableOptions=function(){return $c(r.buildCategorizedOptions())},r.getFocusableOptions=function(){return r.props.menuIsOpen?r.buildFocusableOptions():[]},r.ariaOnChange=function(e,t){r.setState({ariaSelection:Li({value:e},t)})},r.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),r.focusInput())},r.onMenuMouseMove=function(e){r.blockOptionHover=!1},r.onControlMouseDown=function(e){if(!e.defaultPrevented){var t=r.props.openMenuOnClick;r.state.isFocused?r.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&r.onMenuClose():t&&r.openMenu("first"):(t&&(r.openAfterFocus=!0),r.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()}},r.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||r.props.isDisabled)){var t=r.props,n=t.isMulti,o=t.menuIsOpen;r.focusInput(),o?(r.setState({inputIsHiddenAfterUpdate:!n}),r.onMenuClose()):r.openMenu("first"),e.preventDefault()}},r.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(r.clearValue(),e.preventDefault(),r.openAfterFocus=!1,"touchend"===e.type?r.focusInput():setTimeout(function(){return r.focusInput()}))},r.onScroll=function(e){"boolean"==typeof r.props.closeMenuOnScroll?e.target instanceof HTMLElement&&ml(e.target)&&r.props.onMenuClose():"function"==typeof r.props.closeMenuOnScroll&&r.props.closeMenuOnScroll(e)&&r.props.onMenuClose()},r.onCompositionStart=function(){r.isComposing=!0},r.onCompositionEnd=function(){r.isComposing=!1},r.onTouchStart=function(e){var t=e.touches,n=t&&t.item(0);n&&(r.initialTouchX=n.clientX,r.initialTouchY=n.clientY,r.userIsDragging=!1)},r.onTouchMove=function(e){var t=e.touches,n=t&&t.item(0);if(n){var o=Math.abs(n.clientX-r.initialTouchX),i=Math.abs(n.clientY-r.initialTouchY);r.userIsDragging=o>5||i>5}},r.onTouchEnd=function(e){r.userIsDragging||(r.controlRef&&!r.controlRef.contains(e.target)&&r.menuListRef&&!r.menuListRef.contains(e.target)&&r.blurInput(),r.initialTouchX=0,r.initialTouchY=0)},r.onControlTouchEnd=function(e){r.userIsDragging||r.onControlMouseDown(e)},r.onClearIndicatorTouchEnd=function(e){r.userIsDragging||r.onClearIndicatorMouseDown(e)},r.onDropdownIndicatorTouchEnd=function(e){r.userIsDragging||r.onDropdownIndicatorMouseDown(e)},r.handleInputChange=function(e){var t=r.props.inputValue,n=e.currentTarget.value;r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange(n,{action:"input-change",prevInputValue:t}),r.props.menuIsOpen||r.onMenuOpen()},r.onInputFocus=function(e){r.props.onFocus&&r.props.onFocus(e),r.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(r.openAfterFocus||r.props.openMenuOnFocus)&&r.openMenu("first"),r.openAfterFocus=!1},r.onInputBlur=function(e){var t=r.props.inputValue;r.menuListRef&&r.menuListRef.contains(document.activeElement)?r.inputRef.focus():(r.props.onBlur&&r.props.onBlur(e),r.onInputChange("",{action:"input-blur",prevInputValue:t}),r.onMenuClose(),r.setState({focusedValue:null,isFocused:!1}))},r.onOptionHover=function(e){if(!r.blockOptionHover&&r.state.focusedOption!==e){var t=r.getFocusableOptions().indexOf(e);r.setState({focusedOption:e,focusedOptionId:t>-1?r.getFocusedOptionId(e):null})}},r.shouldHideSelectedOptions=function(){return iu(r.props)},r.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),r.focus()},r.onKeyDown=function(e){var t=r.props,n=t.isMulti,o=t.backspaceRemovesValue,i=t.escapeClearsValue,a=t.inputValue,s=t.isClearable,l=t.isDisabled,c=t.menuIsOpen,u=t.onKeyDown,d=t.tabSelectsValue,p=t.openMenuOnFocus,f=r.state,h=f.focusedOption,m=f.focusedValue,g=f.selectValue;if(!(l||"function"==typeof u&&(u(e),e.defaultPrevented))){switch(r.blockOptionHover=!0,e.key){case"ArrowLeft":if(!n||a)return;r.focusValue("previous");break;case"ArrowRight":if(!n||a)return;r.focusValue("next");break;case"Delete":case"Backspace":if(a)return;if(m)r.removeValue(m);else{if(!o)return;n?r.popValue():s&&r.clearValue()}break;case"Tab":if(r.isComposing)return;if(e.shiftKey||!c||!d||!h||p&&r.isOptionSelected(h,g))return;r.selectOption(h);break;case"Enter":if(229===e.keyCode)break;if(c){if(!h)return;if(r.isComposing)return;r.selectOption(h);break}return;case"Escape":c?(r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange("",{action:"menu-close",prevInputValue:a}),r.onMenuClose()):s&&i&&r.clearValue();break;case" ":if(a)return;if(!c){r.openMenu("first");break}if(!h)return;r.selectOption(h);break;case"ArrowUp":c?r.focusOption("up"):r.openMenu("last");break;case"ArrowDown":c?r.focusOption("down"):r.openMenu("first");break;case"PageUp":if(!c)return;r.focusOption("pageup");break;case"PageDown":if(!c)return;r.focusOption("pagedown");break;case"Home":if(!c)return;r.focusOption("first");break;case"End":if(!c)return;r.focusOption("last");break;default:return}e.preventDefault()}},r.state.instancePrefix="react-select-"+(r.props.instanceId||++au),r.state.selectValue=pl(n.value),n.menuIsOpen&&r.state.selectValue.length){var o=r.getFocusableOptionsWithIds(),i=r.buildFocusableOptions(),a=i.indexOf(r.state.selectValue[0]);r.state.focusableOptionsWithIds=o,r.state.focusedOption=i[a],r.state.focusedOptionId=qc(o,i[a])}return r}return function(e,t,n){t&&Vi(e.prototype,t),n&&Vi(e,n),Object.defineProperty(e,"prototype",{writable:!1})}(t,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&yl(this.menuListRef,this.focusedOptionRef),(Wc()||Xc())&&this.setState({isAppleDevice:!0})}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDisabled,r=t.menuIsOpen,o=this.state.isFocused;(o&&!n&&e.isDisabled||o&&r&&!e.menuIsOpen)&&this.focusInput(),o&&n&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):o||n||!e.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(yl(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,r=n.selectValue,o=n.isFocused,i=this.buildFocusableOptions(),a="first"===e?0:i.length-1;if(!this.props.isMulti){var s=i.indexOf(r[0]);s>-1&&(a=s)}this.scrollToFocusedOptionOnUpdate=!(o&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:i[a],focusedOptionId:this.getFocusedOptionId(i[a])},function(){return t.onMenuOpen()})}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,r=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var o=n.indexOf(r);r||(o=-1);var i=n.length-1,a=-1;if(n.length){switch(e){case"previous":a=0===o?0:-1===o?i:o-1;break;case"next":o>-1&&o<i&&(a=o+1)}this.setState({inputIsHidden:-1!==a,focusedValue:n[a]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,r=this.getFocusableOptions();if(r.length){var o=0,i=r.indexOf(n);n||(i=-1),"up"===e?o=i>0?i-1:r.length-1:"down"===e?o=(i+1)%r.length:"pageup"===e?(o=i-t)<0&&(o=0):"pagedown"===e?(o=i+t)>r.length-1&&(o=r.length-1):"last"===e&&(o=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[o],focusedValue:null,focusedOptionId:this.getFocusedOptionId(r[o])})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(Zc):Li(Li({},Zc),this.props.theme):Zc}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getClassNames,o=this.getValue,i=this.selectOption,a=this.setValue,s=this.props,l=s.isMulti,c=s.isRtl,u=s.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:r,getValue:o,hasValue:this.hasValue(),isMulti:l,isRtl:c,options:u,selectOption:i,selectProps:s,setValue:a,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return nu(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return ru(this.props,e,t)}},{key:"filterOption",value:function(e,t){return ou(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,o=e.inputId,i=e.inputValue,a=e.tabIndex,s=e.form,l=e.menuIsOpen,c=e.required,u=this.getComponents().Input,d=this.state,p=d.inputIsHidden,f=d.ariaSelection,h=this.commonProps,m=o||this.getElementId("input"),g=Li(Li(Li({"aria-autocomplete":"list","aria-expanded":l,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":c,role:"combobox","aria-activedescendant":this.state.isAppleDevice?void 0:this.state.focusedOptionId||""},l&&{"aria-controls":this.getElementId("listbox")}),!n&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==f?void 0:f.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return n?r.createElement(u,di({},h,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:m,innerRef:this.getInputRef,isDisabled:t,isHidden:p,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:a,form:s,type:"text",value:i},g)):r.createElement(Tc,di({id:m,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:cl,onFocus:this.onInputFocus,disabled:t,tabIndex:a,inputMode:"none",form:s,value:""},g))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,o=t.MultiValueContainer,i=t.MultiValueLabel,a=t.MultiValueRemove,s=t.SingleValue,l=t.Placeholder,c=this.commonProps,u=this.props,d=u.controlShouldRenderValue,p=u.isDisabled,f=u.isMulti,h=u.inputValue,m=u.placeholder,g=this.state,b=g.selectValue,v=g.focusedValue,y=g.isFocused;if(!this.hasValue()||!d)return h?null:r.createElement(l,di({},c,{key:"placeholder",isDisabled:p,isFocused:y,innerProps:{id:this.getElementId("placeholder")}}),m);if(f)return b.map(function(t,s){var l=t===v,u="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return r.createElement(n,di({},c,{components:{Container:o,Label:i,Remove:a},isFocused:l,isDisabled:p,key:u,index:s,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault()}},data:t}),e.formatOptionLabel(t,"value"))});if(h)return null;var x=b[0];return r.createElement(s,di({},c,{data:x,isDisabled:p}),this.formatOptionLabel(x,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,o=n.isDisabled,i=n.isLoading,a=this.state.isFocused;if(!this.isClearable()||!e||o||!this.hasValue()||i)return null;var s={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return r.createElement(e,di({},t,{innerProps:s,isFocused:a}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,o=n.isDisabled,i=n.isLoading,a=this.state.isFocused;if(!e||!i)return null;return r.createElement(e,di({},t,{innerProps:{"aria-hidden":"true"},isDisabled:o,isFocused:a}))}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var o=this.commonProps,i=this.props.isDisabled,a=this.state.isFocused;return r.createElement(n,di({},o,{isDisabled:i,isFocused:a}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,o=this.state.isFocused,i={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return r.createElement(e,di({},t,{innerProps:i,isDisabled:n,isFocused:o}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),n=t.Group,o=t.GroupHeading,i=t.Menu,a=t.MenuList,s=t.MenuPortal,l=t.LoadingMessage,c=t.NoOptionsMessage,u=t.Option,d=this.commonProps,p=this.state.focusedOption,f=this.props,h=f.captureMenuScroll,m=f.inputValue,g=f.isLoading,b=f.loadingMessage,v=f.minMenuHeight,y=f.maxMenuHeight,x=f.menuIsOpen,I=f.menuPlacement,w=f.menuPosition,C=f.menuPortalTarget,E=f.menuShouldBlockScroll,A=f.menuShouldScrollIntoView,S=f.noOptionsMessage,T=f.onMenuScrollToTop,O=f.onMenuScrollToBottom;if(!x)return null;var N,P=function(t,n){var o=t.type,i=t.data,a=t.isDisabled,s=t.isSelected,l=t.label,c=t.value,f=p===i,h=a?void 0:function(){return e.onOptionHover(i)},m=a?void 0:function(){return e.selectOption(i)},g="".concat(e.getElementId("option"),"-").concat(n),b={id:g,onClick:m,onMouseMove:h,onMouseOver:h,tabIndex:-1,role:"option","aria-selected":e.state.isAppleDevice?void 0:s};return r.createElement(u,di({},d,{innerProps:b,data:i,isDisabled:a,isSelected:s,key:g,label:l,type:o,value:c,isFocused:f,innerRef:f?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())N=this.getCategorizedOptions().map(function(t){if("group"===t.type){var i=t.data,a=t.options,s=t.index,l="".concat(e.getElementId("group"),"-").concat(s),c="".concat(l,"-heading");return r.createElement(n,di({},d,{key:l,data:i,options:a,Heading:o,headingProps:{id:c,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map(function(e){return P(e,"".concat(s,"-").concat(e.index))}))}if("option"===t.type)return P(t,"".concat(t.index))});else if(g){var R=b({inputValue:m});if(null===R)return null;N=r.createElement(l,d,R)}else{var k=S({inputValue:m});if(null===k)return null;N=r.createElement(c,d,k)}var L={minMenuHeight:v,maxMenuHeight:y,menuPlacement:I,menuPosition:w,menuShouldScrollIntoView:A},B=r.createElement(Ll,di({},d,L),function(t){var n=t.ref,o=t.placerProps,s=o.placement,l=o.maxHeight;return r.createElement(i,di({},d,L,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:g,placement:s}),r.createElement(Vc,{captureEnabled:h,onTopArrive:T,onBottomArrive:O,lockEnabled:E},function(t){return r.createElement(a,di({},d,{innerRef:function(n){e.getMenuListRef(n),t(n)},innerProps:{role:"listbox","aria-multiselectable":d.isMulti,id:e.getElementId("listbox")},isLoading:g,maxHeight:l,focusedOption:p}),N)}))});return C||"fixed"===w?r.createElement(s,di({},d,{appendTo:C,controlElement:this.controlRef,menuPlacement:I,menuPosition:w}),B):B}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,o=t.isDisabled,i=t.isMulti,a=t.name,s=t.required,l=this.state.selectValue;if(s&&!this.hasValue()&&!o)return r.createElement(_c,{name:a,onFocus:this.onValueInputFocus});if(a&&!o){if(i){if(n){var c=l.map(function(t){return e.getOptionValue(t)}).join(n);return r.createElement("input",{name:a,type:"hidden",value:c})}var u=l.length>0?l.map(function(t,n){return r.createElement("input",{key:"i-".concat(n),name:a,type:"hidden",value:e.getOptionValue(t)})}):r.createElement("input",{name:a,type:"hidden",value:""});return r.createElement("div",null,u)}var d=l[0]?this.getOptionValue(l[0]):"";return r.createElement("input",{name:a,type:"hidden",value:d})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,o=t.focusedOption,i=t.focusedValue,a=t.isFocused,s=t.selectValue,l=this.getFocusableOptions();return r.createElement(hc,di({},e,{id:this.getElementId("live-region"),ariaSelection:n,focusedOption:o,focusedValue:i,isFocused:a,selectValue:s,focusableOptions:l,isAppleDevice:this.state.isAppleDevice}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,o=e.SelectContainer,i=e.ValueContainer,a=this.props,s=a.className,l=a.id,c=a.isDisabled,u=a.menuIsOpen,d=this.state.isFocused,p=this.commonProps=this.getCommonProps();return r.createElement(o,di({},p,{className:s,innerProps:{id:l,onKeyDown:this.onKeyDown},isDisabled:c,isFocused:d}),this.renderLiveRegion(),r.createElement(t,di({},p,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:c,isFocused:d,menuIsOpen:u}),r.createElement(i,di({},p,{isDisabled:c}),this.renderPlaceholderOrValue(),this.renderInput()),r.createElement(n,di({},p,{isDisabled:c}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=t.clearFocusValueOnUpdate,o=t.inputIsHiddenAfterUpdate,i=t.ariaSelection,a=t.isFocused,s=t.prevWasFocused,l=t.instancePrefix,c=e.options,u=e.value,d=e.menuIsOpen,p=e.inputValue,f=e.isMulti,h=pl(u),m={};if(n&&(u!==n.value||c!==n.options||d!==n.menuIsOpen||p!==n.inputValue)){var g=d?function(e,t){return $c(Jc(e,t))}(e,h):[],b=d?Kc(Jc(e,h),"".concat(l,"-option")):[],v=r?function(e,t){var n=e.focusedValue,r=e.selectValue.indexOf(n);if(r>-1){if(t.indexOf(n)>-1)return n;if(r<t.length)return t[r]}return null}(t,h):null,y=function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,g);m={selectValue:h,focusedOption:y,focusedOptionId:qc(b,y),focusableOptionsWithIds:b,focusedValue:v,clearFocusValueOnUpdate:!1}}var x=null!=o&&e!==n?{inputIsHidden:o,inputIsHiddenAfterUpdate:void 0}:{},I=i,w=a&&s;return a&&!w&&(I={value:Sl(f,h,h[0]||null),options:h,action:"initial-input-focus"},w=!s),"initial-input-focus"===(null==i?void 0:i.action)&&(I=null),Li(Li(Li({},m),x),{},{prevProps:e,ariaSelection:I,prevWasFocused:w})}}]),t}();su.defaultProps=Yc;var lu=i(function(e,t){var n=function(e){var t=e.defaultInputValue,n=void 0===t?"":t,r=e.defaultMenuIsOpen,o=void 0!==r&&r,i=e.defaultValue,a=void 0===i?null:i,s=e.inputValue,l=e.menuIsOpen,d=e.onChange,p=e.onInputChange,f=e.onMenuClose,h=e.onMenuOpen,m=e.value,g=Mi(e,ji),b=Gi(c(void 0!==s?s:n),2),v=b[0],y=b[1],x=Gi(c(void 0!==l?l:o),2),I=x[0],w=x[1],C=Gi(c(void 0!==m?m:a),2),E=C[0],A=C[1],S=u(function(e,t){"function"==typeof d&&d(e,t),A(e)},[d]),T=u(function(e,t){var n;"function"==typeof p&&(n=p(e,t)),y(void 0!==n?n:e)},[p]),O=u(function(){"function"==typeof h&&h(),w(!0)},[h]),N=u(function(){"function"==typeof f&&f(),w(!1)},[f]),P=void 0!==s?s:v,R=void 0!==l?l:I,k=void 0!==m?m:E;return Li(Li({},g),{},{inputValue:P,menuIsOpen:R,onChange:S,onInputChange:T,onMenuClose:N,onMenuOpen:O,value:k})}(e);return r.createElement(su,di({ref:t},n))}),cu=lu;const uu={sm:"h-12 px-3 rounded-lg",md:"h-14 px-3 rounded-xl",lg:"h-16 px-3 rounded-2xl"},du=o.memo(({options:n,className:r,controlClassName:o,value:i,isCustomStyle:a=!1,placeholder:s,required:c,onChange:u,filterOptions:d,hasError:p,error:f,menuClassName:h,helperText:m,label:g,labelClassName:b,singleValueClassName:v,size:y="md",variant:x="default","data-cy":I,"data-testid":w,...C})=>{const E=l(()=>Ac(d),[d]),A=l(()=>({control:({isFocused:e})=>{var t;return je(null!==(t=uu[y])&&void 0!==t?t:uu.md,"border border-input-border bg-white hover:not-focus:border-input-border-hover",{"border-input-border-selected outline outline-2 outline-input-border-selected":e&&!p,"border-input-border-critical shadow-none":p},o)},indicatorSeparator:()=>"hidden",dropdownIndicator:({selectProps:e})=>a?e.value?"hidden":"block":"block text-icon-default "+(p?"text-icon-critical":""),singleValue:()=>je(a?"text-text text-body1 whitespace-normal":"text-text-secondary",v),menu:()=>je("z-20 mt-2 rounded-input-poppers bg-surface shadow-dark-drop",h),option:({isFocused:e,isSelected:t,label:r})=>{var o;return je("min-h-[40px] px-4 py-2 cursor-pointer",t?"bg-gray-200 text-text font-semibold":"bg-white text-text-secondary",!t&&"hover:bg-bg-surface-hover",!t&&e&&"bg-bg-surface-hover",a?"text-body1 text-text":"",a&&(null===(o=n[n.length-1])||void 0===o?void 0:o.label)!==r?"border-b border-border-brand":"")},placeholder:()=>"text-input-text-placeholder",input:()=>"text-text",valueContainer:()=>"px-0"}),[a,o,h,n,p,y,v]);return"unstyled"===x?e(cu,{options:n,value:i,placeholder:c?`${s}*`:s,onChange:u,filterOption:E,className:je("rounded-xl",r),classNames:A,"data-cy":I,"data-testid":w,...C}):t("div",{className:"w-full",children:[g&&e("label",{className:je("mb-1 block text-sm font-medium text-text-secondary",b),children:g}),e(cu,{options:n,value:i,placeholder:c?`${s}*`:s,onChange:u,filterOption:E,className:je("rounded-xl",r),classNames:A,"data-cy":I,"data-testid":w,...C}),f&&e(Ln,{className:"footnote mt-1 text-text-critical",children:f}),!f&&m&&e(Ln,{className:"footnote mt-1 text-text-info",children:m})]})});du.displayName="Select";const pu=({errorMessage:n,className:r,iconClassName:o,iconSize:i=52,iconName:a="dangerous",textVariant:s})=>n?t("div",{className:je("flex flex-col items-center justify-center gap-5 rounded-surface-sm border-2 border-border-critical bg-bg-fill-critical-secondary px-4 py-6 md:flex-row md:py-4",r),"data-testid":"alert-card",children:[e("div",{children:e(kn,{name:a,size:i,className:je("text-icon-critical",o)})}),e(Ln,{className:je("body2 text-text",s),children:n})]}):null;pu.displayName="AlertCard";const fu=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()},hu="pop",mu=h({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),gu=h({}),bu=h(null),vu="undefined"!=typeof document,yu=vu?f:a,xu=h({strict:!1});function Iu(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function wu(e){return"string"==typeof e||Array.isArray(e)}function Cu(e){return"object"==typeof e&&"function"==typeof e.start}const Eu=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Au=["initial",...Eu];function Su(e){return Cu(e.animate)||Au.some(t=>wu(e[t]))}function Tu(e){return Boolean(Su(e)||e.variants)}function Ou(e){const{initial:t,animate:n}=function(e,t){if(Su(e)){const{initial:t,animate:n}=e;return{initial:!1===t||wu(t)?t:void 0,animate:wu(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,p(gu));return l(()=>({initial:t,animate:n}),[Nu(t),Nu(n)])}function Nu(e){return Array.isArray(e)?e.join(" "):e}const Pu={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Ru={};for(const e in Pu)Ru[e]={isEnabled:t=>Pu[e].some(e=>!!t[e])};const ku=h({}),Lu=h({}),Bu=Symbol.for("motionComponentSymbol");function Du({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:o,Component:l}){e&&function(e){for(const t in e)Ru[t]={...Ru[t],...e[t]}}(e);const c=i(function(i,c){let d;const f={...p(mu),...i,layoutId:Gu(i)},{isStatic:h}=f,m=Ou(i),g=o(i,h);if(!h&&vu){m.visualElement=function(e,t,n,r){const{visualElement:o}=p(gu),i=p(xu),l=p(bu),c=p(mu).reducedMotion,u=s();r=r||i.renderer,!u.current&&r&&(u.current=r(e,{visualState:t,parent:o,props:n,presenceContext:l,blockInitialAnimation:!!l&&!1===l.initial,reducedMotionConfig:c}));const d=u.current;return b(()=>{d&&d.update(n,l)}),yu(()=>{d&&d.render()}),a(()=>{d&&d.updateFeatures()}),(window.HandoffAppearAnimations?yu:a)(()=>{d&&d.animationState&&d.animationState.animateChanges()}),d}(l,g,f,t);const n=p(Lu),r=p(xu).strict;m.visualElement&&(d=m.visualElement.loadFeatures(f,r,e,n))}return r.createElement(gu.Provider,{value:m},d&&m.visualElement?r.createElement(d,{visualElement:m.visualElement,...f}):null,n(l,i,function(e,t,n){return u(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&("function"==typeof n?n(r):Iu(n)&&(n.current=r))},[t])}(g,m.visualElement,c),g,h,m.visualElement))});return c[Bu]=l,c}function Gu({layoutId:e}){const t=p(ku).id;return t&&void 0!==e?t+"-"+e:e}function Mu(e){function t(t,n={}){return Du(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 ju=["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 Vu(e){return"string"==typeof e&&!e.includes("-")&&!!(ju.indexOf(e)>-1||/[A-Z]/.test(e))}const Fu={};const _u=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Hu=new Set(_u);function Wu(e,{layout:t,layoutId:n}){return Hu.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!Fu[e]||"opacity"===e)}const Xu=e=>Boolean(e&&e.getVelocity),zu={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Zu=_u.length;const Yu=e=>t=>"string"==typeof t&&t.startsWith(e),Uu=Yu("--"),Ju=Yu("var(--"),$u=(e,t)=>t&&"number"==typeof e?t.transform(e):e,Ku=(e,t,n)=>Math.min(Math.max(n,e),t),Qu={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},qu={...Qu,transform:e=>Ku(0,1,e)},ed={...Qu,default:1},td=e=>Math.round(1e5*e)/1e5,nd=/(-)?([\d]*\.?[\d])+/g,rd=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,od=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function id(e){return"string"==typeof e}const ad=e=>({test:t=>id(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),sd=ad("deg"),ld=ad("%"),cd=ad("px"),ud=ad("vh"),dd=ad("vw"),pd={...ld,parse:e=>ld.parse(e)/100,transform:e=>ld.transform(100*e)},fd={...Qu,transform:Math.round},hd={borderWidth:cd,borderTopWidth:cd,borderRightWidth:cd,borderBottomWidth:cd,borderLeftWidth:cd,borderRadius:cd,radius:cd,borderTopLeftRadius:cd,borderTopRightRadius:cd,borderBottomRightRadius:cd,borderBottomLeftRadius:cd,width:cd,maxWidth:cd,height:cd,maxHeight:cd,size:cd,top:cd,right:cd,bottom:cd,left:cd,padding:cd,paddingTop:cd,paddingRight:cd,paddingBottom:cd,paddingLeft:cd,margin:cd,marginTop:cd,marginRight:cd,marginBottom:cd,marginLeft:cd,rotate:sd,rotateX:sd,rotateY:sd,rotateZ:sd,scale:ed,scaleX:ed,scaleY:ed,scaleZ:ed,skew:sd,skewX:sd,skewY:sd,distance:cd,translateX:cd,translateY:cd,translateZ:cd,x:cd,y:cd,z:cd,perspective:cd,transformPerspective:cd,opacity:qu,originX:pd,originY:pd,originZ:cd,zIndex:fd,fillOpacity:qu,strokeOpacity:qu,numOctaves:fd};function md(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(Uu(e)){i[e]=n;continue}const r=hd[e],d=$u(n,r);if(Hu.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<Zu;t++){const n=_u[t];void 0!==e[n]&&(i+=`${zu[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 gd=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function bd(e,t,n){for(const r in t)Xu(t[r])||Wu(r,n)||(e[r]=t[r])}function vd(e,t,n){const r={};return bd(r,e.style||{},e),Object.assign(r,function({transformTemplate:e},t,n){return l(()=>{const r={style:{},transform:{},transformOrigin:{},vars:{}};return md(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}(e,t,n)),e.transformValues?e.transformValues(r):r}function yd(e,t,n){const r={},o=vd(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 xd=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 Id(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||xd.has(e)}let wd=e=>!Id(e);try{(Cd=require("@emotion/is-prop-valid").default)&&(wd=e=>e.startsWith("on")?!Id(e):Cd(e))}catch(Dn){}var Cd;function Ed(e,t,n){return"string"==typeof e?e:cd.transform(t+n*e)}const Ad={offset:"stroke-dashoffset",array:"stroke-dasharray"},Sd={offset:"strokeDashoffset",array:"strokeDasharray"};function Td(e,{attrX:t,attrY:n,attrScale:r,originX:o,originY:i,pathLength:a,pathSpacing:s=1,pathOffset:l=0,...c},u,d,p){if(md(e,c,u,p),d)return void(e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox));e.attrs=e.style,e.style={};const{attrs:f,style:h,dimensions:m}=e;f.transform&&(m&&(h.transform=f.transform),delete f.transform),m&&(void 0!==o||void 0!==i||h.transform)&&(h.transformOrigin=function(e,t,n){return`${Ed(t,e.x,e.width)} ${Ed(n,e.y,e.height)}`}(m,void 0!==o?o:.5,void 0!==i?i:.5)),void 0!==t&&(f.x=t),void 0!==n&&(f.y=n),void 0!==r&&(f.scale=r),void 0!==a&&function(e,t,n=1,r=0,o=!0){e.pathLength=1;const i=o?Ad:Sd;e[i.offset]=cd.transform(-r);const a=cd.transform(t),s=cd.transform(n);e[i.array]=`${a} ${s}`}(f,a,s,l,!1)}const Od=()=>({style:{},transform:{},transformOrigin:{},vars:{},attrs:{}}),Nd=e=>"string"==typeof e&&"svg"===e.toLowerCase();function Pd(e,t,n,r){const o=l(()=>{const n={style:{},transform:{},transformOrigin:{},vars:{},attrs:{}};return Td(n,t,{enableHardwareAcceleration:!1},Nd(r),e.transformTemplate),{...n.attrs,style:{...n.style}}},[t]);if(e.style){const t={};bd(t,e.style,e),o.style={...t,...o.style}}return o}function Rd(e=!1){return(t,n,r,{latestValues:o},i)=>{const a=(Vu(t)?Pd:yd)(n,o,i,t),s=function(e,t,n){const r={};for(const o in e)"values"===o&&"object"==typeof e.values||(wd(o)||!0===n&&Id(o)||!t&&!Id(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}(n,"string"==typeof t,e),c={...s,...a,ref:r},{children:u}=n,d=l(()=>Xu(u)?u.get():u,[u]);return v(t,{...c,children:d})}}const kd=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function Ld(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 Bd=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 Dd(e,t,n,r){Ld(e,t,void 0,r);for(const n in t.attrs)e.setAttribute(Bd.has(n)?n:kd(n),t.attrs[n])}function Gd(e,t){const{style:n}=e,r={};for(const o in n)(Xu(n[o])||t.style&&Xu(t.style[o])||Wu(o,e))&&(r[o]=n[o]);return r}function Md(e,t){const n=Gd(e,t);for(const r in e)if(Xu(e[r])||Xu(t[r])){n[-1!==_u.indexOf(r)?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r]=e[r]}return n}function jd(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}const Vd=e=>Array.isArray(e),Fd=e=>Vd(e)?e[e.length-1]||0:e;function _d(e){const t=Xu(e)?e.get():e;return n=t,Boolean(n&&"object"==typeof n&&n.mix&&n.toValue)?t.toValue():t;var n}const Hd=e=>(t,n)=>{const r=p(gu),o=p(bu),i=()=>function({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,o,i){const a={latestValues:Wd(r,o,i,e),renderState:t()};return n&&(a.mount=e=>n(r,e,a)),a}(e,t,r,o);return n?i():function(e){const t=s(null);return null===t.current&&(t.current=e()),t.current}(i)};function Wd(e,t,n,r){const o={},i=r(e,{});for(const e in i)o[e]=_d(i[e]);let{initial:a,animate:s}=e;const l=Su(e),c=Tu(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&&!Cu(d)){(Array.isArray(d)?d:[d]).forEach(t=>{const n=jd(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 Xd={useVisualState:Hd({scrapeMotionValuesFromProps:Md,createRenderState:Od,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}}Td(n,r,{enableHardwareAcceleration:!1},Nd(t.tagName),e.transformTemplate),Dd(t,n)}})},zd={useVisualState:Hd({scrapeMotionValuesFromProps:Gd,createRenderState:gd})};function Zd(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const Yd=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function Ud(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}function Jd(e,t,n,r){return Zd(e,t,(e=>t=>Yd(t)&&e(t,Ud(t)))(n),r)}const $d=(e,t)=>n=>t(e(n)),Kd=(...e)=>e.reduce($d);function Qd(e){let t=null;return()=>{const n=()=>{t=null};return null===t&&(t=e,n)}}const qd=Qd("dragHorizontal"),ep=Qd("dragVertical");function tp(e){let t=!1;if("y"===e)t=ep();else if("x"===e)t=qd();else{const e=qd(),n=ep();e&&n?t=()=>{e(),n()}:(e&&e(),n&&n())}return t}function np(){const e=tp(!0);return!e||(e(),!1)}class rp{constructor(e){this.isMounted=!1,this.node=e}update(){}}const op={delta:0,timestamp:0,isProcessing:!1};let ip=!0,ap=!1;const sp=["read","update","preRender","render","postRender"],lp=sp.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}(()=>ap=!0),e),{}),cp=e=>lp[e].process(op),up=e=>{ap=!1,op.delta=ip?1e3/60:Math.max(Math.min(e-op.timestamp,40),1),op.timestamp=e,op.isProcessing=!0,sp.forEach(cp),op.isProcessing=!1,ap&&(ip=!1,requestAnimationFrame(up))},dp=sp.reduce((e,t)=>{const n=lp[t];return e[t]=(e,t=!1,r=!1)=>(ap||(ap=!0,ip=!0,op.isProcessing||requestAnimationFrame(up)),n.schedule(e,t,r)),e},{});function pp(e){sp.forEach(t=>lp[t].cancel(e))}function fp(e,t){const n="pointer"+(t?"enter":"leave"),r="onHover"+(t?"Start":"End");return Jd(e.current,n,(n,o)=>{if("touch"===n.type||np())return;const i=e.getProps();e.animationState&&i.whileHover&&e.animationState.setActive("whileHover",t),i[r]&&dp.update(()=>i[r](n,o))},{passive:!e.getProps()[r]})}const hp=(e,t)=>!!t&&(e===t||hp(e,t.parentElement)),mp=e=>e;function gp(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,Ud(n))}const bp=new WeakMap,vp=new WeakMap,yp=e=>{const t=bp.get(e.target);t&&t(e)},xp=e=>{e.forEach(yp)};function Ip(e,t,n){const r=function({root:e,...t}){const n=e||document;vp.has(n)||vp.set(n,{});const r=vp.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(xp,{root:e,...t})),r[o]}(t);return bp.set(e,n),r.observe(e),()=>{bp.delete(e),r.unobserve(e)}}const wp={some:0,all:1};const Cp={inView:{Feature:class extends rp{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:wp[r]};return Ip(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 rp{constructor(){super(...arguments),this.removeStartListeners=mp,this.removeEndListeners=mp,this.removeAccessibleListeners=mp,this.startPointerPress=(e,t)=>{if(this.removeEndListeners(),this.isPressing)return;const n=this.node.getProps(),r=Jd(window,"pointerup",(e,t)=>{if(!this.checkPressEnd())return;const{onTap:n,onTapCancel:r}=this.node.getProps();dp.update(()=>{hp(this.node.current,e.target)?n&&n(e,t):r&&r(e,t)})},{passive:!(n.onTap||n.onPointerUp)}),o=Jd(window,"pointercancel",(e,t)=>this.cancelPress(e,t),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=Kd(r,o),this.startPress(e,t)},this.startAccessiblePress=()=>{const e=Zd(this.node.current,"keydown",e=>{if("Enter"!==e.key||this.isPressing)return;this.removeEndListeners(),this.removeEndListeners=Zd(this.node.current,"keyup",e=>{"Enter"===e.key&&this.checkPressEnd()&&gp("up",(e,t)=>{const{onTap:n}=this.node.getProps();n&&dp.update(()=>n(e,t))})}),gp("down",(e,t)=>{this.startPress(e,t)})}),t=Zd(this.node.current,"blur",()=>{this.isPressing&&gp("cancel",(e,t)=>this.cancelPress(e,t))});this.removeAccessibleListeners=Kd(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&&dp.update(()=>n(e,t))}checkPressEnd(){this.removeEndListeners(),this.isPressing=!1;return this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!np()}cancelPress(e,t){if(!this.checkPressEnd())return;const{onTapCancel:n}=this.node.getProps();n&&dp.update(()=>n(e,t))}mount(){const e=this.node.getProps(),t=Jd(this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),n=Zd(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Kd(t,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}},focus:{Feature:class extends rp{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=Kd(Zd(this.node.current,"focus",()=>this.onFocus()),Zd(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends rp{mount(){this.unmount=Kd(fp(this.node,!0),fp(this.node,!1))}unmount(){}}}};function Ep(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 Ap(e,t,n){const r=e.getProps();return jd(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 Sp="data-"+kd("framerAppearId");let Tp=mp,Op=mp;"production"!==process.env.NODE_ENV&&(Tp=(e,t)=>{e||"undefined"==typeof console||console.warn(t)},Op=(e,t)=>{if(!e)throw new Error(t)});const Np=e=>1e3*e,Pp=e=>e/1e3,Rp=!1,kp=e=>Array.isArray(e)&&"number"==typeof e[0];function Lp(e){return Boolean(!e||"string"==typeof e&&Dp[e]||kp(e)||Array.isArray(e)&&e.every(Lp))}const Bp=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Dp={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Bp([0,.65,.55,1]),circOut:Bp([.55,0,1,.45]),backIn:Bp([.31,.01,.66,-.59]),backOut:Bp([.33,1.53,.69,.99])};function Gp(e){if(e)return kp(e)?Bp(e):Array.isArray(e)?e.map(Gp):Dp[e]}const Mp={waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate")},jp={},Vp={};for(const e in Mp)Vp[e]=()=>(void 0===jp[e]&&(jp[e]=Mp[e]()),jp[e]);const Fp=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e;function _p(e,t,n,r){if(e===t&&n===r)return mp;const o=t=>function(e,t,n,r,o){let i,a,s=0;do{a=t+(n-t)/2,i=Fp(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:Fp(o(e),t,r)}const Hp=_p(.42,0,1,1),Wp=_p(0,0,.58,1),Xp=_p(.42,0,.58,1),zp=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Zp=e=>t=>1-e(1-t),Yp=e=>1-Math.sin(Math.acos(e)),Up=Zp(Yp),Jp=zp(Up),$p=_p(.33,1.53,.69,.99),Kp=Zp($p),Qp=zp(Kp),qp={linear:mp,easeIn:Hp,easeInOut:Xp,easeOut:Wp,circIn:Yp,circInOut:Jp,circOut:Up,backIn:Kp,backInOut:Qp,backOut:$p,anticipate:e=>(e*=2)<1?.5*Kp(e):.5*(2-Math.pow(2,-10*(e-1)))},ef=e=>{if(Array.isArray(e)){Op(4===e.length,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,o]=e;return _p(t,n,r,o)}return"string"==typeof e?(Op(void 0!==qp[e],`Invalid easing type '${e}'`),qp[e]):e},tf=(e,t)=>n=>Boolean(id(n)&&od.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),nf=(e,t,n)=>r=>{if(!id(r))return r;const[o,i,a,s]=r.match(nd);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(a),alpha:void 0!==s?parseFloat(s):1}},rf={...Qu,transform:e=>Math.round((e=>Ku(0,255,e))(e))},of={test:tf("rgb","red"),parse:nf("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+rf.transform(e)+", "+rf.transform(t)+", "+rf.transform(n)+", "+td(qu.transform(r))+")"};const af={test:tf("#"),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:of.transform},sf={test:tf("hsl","hue"),parse:nf("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+ld.transform(td(t))+", "+ld.transform(td(n))+", "+td(qu.transform(r))+")"},lf={test:e=>of.test(e)||af.test(e)||sf.test(e),parse:e=>of.test(e)?of.parse(e):sf.test(e)?sf.parse(e):af.parse(e),transform:e=>id(e)?e:e.hasOwnProperty("red")?of.transform(e):sf.transform(e)},cf=(e,t,n)=>-n*e+n*t+e;function uf(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 df=(e,t,n)=>{const r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},pf=[af,of,sf];function ff(e){const t=(n=e,pf.find(e=>e.test(n)));var n;Op(Boolean(t),`'${e}' is not an animatable color. Use the equivalent color code instead.`);let r=t.parse(e);return t===sf&&(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=uf(s,r,e+1/3),i=uf(s,r,e),a=uf(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 hf=(e,t)=>{const n=ff(e),r=ff(t),o={...n};return e=>(o.red=df(n.red,r.red,e),o.green=df(n.green,r.green,e),o.blue=df(n.blue,r.blue,e),o.alpha=cf(n.alpha,r.alpha,e),of.transform(o))};const mf={regex:/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,countKey:"Vars",token:"${v}",parse:mp},gf={regex:rd,countKey:"Colors",token:"${c}",parse:lf.parse},bf={regex:nd,countKey:"Numbers",token:"${n}",parse:Qu.parse};function vf(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 yf(e){const t=e.toString(),n={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&vf(n,mf),vf(n,gf),vf(n,bf),n}function xf(e){return yf(e).values}function If(e){const{values:t,numColors:n,numVars:r,tokenised:o}=yf(e),i=t.length;return e=>{let t=o;for(let o=0;o<i;o++)t=o<r?t.replace(mf.token,e[o]):o<r+n?t.replace(gf.token,lf.transform(e[o])):t.replace(bf.token,td(e[o]));return t}}const wf=e=>"number"==typeof e?0:e;const Cf={test:function(e){var t,n;return isNaN(e)&&id(e)&&((null===(t=e.match(nd))||void 0===t?void 0:t.length)||0)+((null===(n=e.match(rd))||void 0===n?void 0:n.length)||0)>0},parse:xf,createTransformer:If,getAnimatableNone:function(e){const t=xf(e);return If(e)(t.map(wf))}},Ef=(e,t)=>n=>`${n>0?t:e}`;function Af(e,t){return"number"==typeof e?n=>cf(e,t,n):lf.test(e)?hf(e,t):e.startsWith("var(")?Ef(e,t):Of(e,t)}const Sf=(e,t)=>{const n=[...e],r=n.length,o=e.map((e,n)=>Af(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=o[t](e);return n}},Tf=(e,t)=>{const n={...e,...t},r={};for(const o in n)void 0!==e[o]&&void 0!==t[o]&&(r[o]=Af(e[o],t[o]));return e=>{for(const t in r)n[t]=r[t](e);return n}},Of=(e,t)=>{const n=Cf.createTransformer(t),r=yf(e),o=yf(t);return r.numVars===o.numVars&&r.numColors===o.numColors&&r.numNumbers>=o.numNumbers?Kd(Sf(r.values,o.values),n):(Tp(!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.`),Ef(e,t))},Nf=(e,t,n)=>{const r=t-e;return 0===r?1:(n-e)/r},Pf=(e,t)=>n=>cf(e,t,n);function Rf(e,t,n){const r=[],o=n||("number"==typeof(i=e[0])?Pf:"string"==typeof i?lf.test(i)?hf:Of:Array.isArray(i)?Sf:"object"==typeof i?Tf:Pf);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]||mp:t;i=Kd(e,i)}r.push(i)}return r}function kf(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const i=e.length;if(Op(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=Rf(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=Nf(e[n],e[n+1],t);return a[n](r)};return n?t=>l(Ku(e[0],e[i-1],t)):l}function Lf(e){const t=[0];return function(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=Nf(0,t,r);e.push(cf(n,1,o))}}(t,e.length-1),t}function Bf({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=(e=>Array.isArray(e)&&"number"!=typeof e[0])(r)?r.map(ef):ef(r),i={done:!1,value:t[0]},a=function(e,t){return e.map(e=>e*t)}(n&&n.length===t.length?n:Lf(t),e),s=kf(a,t,{ease:Array.isArray(o)?o:(l=t,c=o,l.map(()=>c||Xp).splice(0,l.length-1))});var l,c;return{calculatedDuration:e,next:t=>(i.value=s(t),i.done=t>=e,i)}}function Df(e,t){return t?e*(1e3/t):0}function Gf(e,t,n){const r=Math.max(t-5,0);return Df(n-e(r),t-r)}const Mf=.001;function jf({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let o,i;Tp(e<=Np(10),"Spring duration must be 10 seconds or less");let a=1-t;a=Ku(.05,1,a),e=Ku(.01,10,Pp(e)),a<1?(o=t=>{const r=t*a,o=r*e,i=r-n,s=Ff(t,a),l=Math.exp(-o);return Mf-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=Ff(Math.pow(t,2),a);return(-o(t)+Mf>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<Vf;n++)r-=e(r)/t(r);return r}(o,i,5/e);if(e=Np(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 Vf=12;function Ff(e,t){return e*Math.sqrt(1-t*t)}const _f=["duration","bounce"],Hf=["stiffness","damping","mass"];function Wf(e,t){return t.some(t=>void 0!==e[t])}function Xf({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(!Wf(e,Hf)&&Wf(e,_f)){const n=jf(e);t={...t,...n,velocity:0,mass:1},t.isResolvedFromDuration=!0}return t}(r),f=u?-Pp(u):0,h=l/(2*Math.sqrt(s*c)),m=i-o,g=Pp(Math.sqrt(s/c)),b=Math.abs(m)<5;let v;if(n||(n=b?.01:2),t||(t=b?.005:.5),h<1){const e=Ff(g,h);v=t=>{const n=Math.exp(-h*g*t);return i-n*((f+h*g*m)/e*Math.sin(e*t)+m*Math.cos(e*t))}}else if(1===h)v=e=>i-Math.exp(-g*e)*(m+(f+g*m)*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*((f+h*g*m)*Math.sinh(r)+e*m*Math.cosh(r))/e}}return{calculatedDuration:p&&d||null,next:e=>{const r=v(e);if(p)a.done=e>=d;else{let o=f;0!==e&&(o=h<1?Gf(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 zf({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},f=e=>void 0===s?l:void 0===l||Math.abs(s-e)<Math.abs(l-e)?s:l;let h=n*t;const m=d+h,g=void 0===a?m:a(m);g!==m&&(h=g-d);const b=e=>-h*Math.exp(-e/r),v=e=>g+b(e),y=e=>{const t=b(e),n=v(e);p.done=Math.abs(t)<=c,p.value=p.done?g:n};let x,I;const w=e=>{var t;(t=p.value,void 0!==s&&t<s||void 0!==l&&t>l)&&(x=e,I=Xf({keyframes:[p.value,f(p.value)],velocity:Gf(v,e,p.value),damping:o,stiffness:i,restDelta:c,restSpeed:u}))};return w(0),{calculatedDuration:null,next:e=>{let t=!1;return I||void 0!==x||(t=!0,y(e),w(e)),void 0!==x&&e>x?I.next(e-x):(!t&&y(e),p)}}}const Zf=e=>{const t=({timestamp:t})=>e(t);return{start:()=>dp.update(t,!0),stop:()=>pp(t),now:()=>op.isProcessing?op.timestamp:performance.now()}};function Yf(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 Uf={decay:zf,inertia:zf,tween:Bf,keyframes:Bf,spring:Xf};function Jf({autoplay:e=!0,delay:t=0,driver:n=Zf,keyframes:r,type:o="keyframes",repeat:i=0,repeatDelay:a=0,repeatType:s="loop",onPlay:l,onStop:c,onComplete:u,onUpdate:d,...p}){let f,h,m=1,g=!1;const b=()=>{f&&f(),h=new Promise(e=>{f=e})};let v;b();const y=Uf[o]||Bf;let x;y!==Bf&&"number"!=typeof r[0]&&(x=kf([0,100],r,{clamp:!1}),r=[0,100]);const I=y({...p,keyframes:r});let w;"mirror"===s&&(w=y({...p,keyframes:[...r].reverse(),velocity:-(p.velocity||0)}));let C="idle",E=null,A=null,S=null;null===I.calculatedDuration&&i&&(I.calculatedDuration=Yf(I));const{calculatedDuration:T}=I;let O=1/0,N=1/0;null!==T&&(O=T+a,N=O*(i+1)-a);let P=0;const R=e=>{if(null===A)return;m>0&&(A=Math.min(A,e)),P=null!==E?E:(e-A)*m;const n=P-t,o=n<0;P=Math.max(n,0),"finished"===C&&null===E&&(P=N);let l=P,c=I;if(i){const e=P/O;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/O)):"mirror"===s&&(c=w));let o=Ku(0,1,n);P>N&&(o="reverse"===s&&r?1:0),l=o*O}const u=o?{done:!1,value:r[0]}:c.next(l);x&&(u.value=x(u.value));let{done:p}=u;o||null===T||(p=P>=N);const f=null===E&&("finished"===C||"running"===C&&p||m<0&&P<=0);return d&&d(u.value),f&&B(),u},k=()=>{v&&v.stop(),v=void 0},L=()=>{C="idle",k(),b(),A=S=null},B=()=>{C="finished",u&&u(),k(),b()},D=()=>{if(g)return;v||(v=n(R));const e=v.now();l&&l(),null!==E?A=e-E:A&&"finished"!==C||(A=e),S=A,E=null,C="running",v.start()};e&&D();const G={then:(e,t)=>h.then(e,t),get time(){return Pp(P)},set time(e){e=Np(e),P=e,null===E&&v&&0!==m?A=v.now()-e/m:E=e},get duration(){const e=null===I.calculatedDuration?Yf(I):I.calculatedDuration;return Pp(e)},get speed(){return m},set speed(e){e!==m&&v&&(m=e,G.time=Pp(P))},get state(){return C},play:D,pause:()=>{C="paused",E=P},stop:()=>{g=!0,"idle"!==C&&(C="idle",c&&c(),L())},cancel:()=>{null!==S&&R(S),L()},complete:()=>{C="finished"},sample:e=>(A=0,R(e))};return G}const $f=new Set(["opacity","clipPath","filter","transform","backgroundColor"]);function Kf(e,t,{onUpdate:n,onComplete:r,...o}){if(!(Vp.waapi()&&$f.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||!Lp(t.ease))(t,o)){const e=Jf({...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 f=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=Gp(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=()=>f.cancel(),m=()=>{dp.update(h),i(),l()};return f.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(),m()},{then:(e,t)=>a.then(e,t),get time(){return Pp(f.currentTime||0)},set time(e){f.currentTime=Np(e)},get speed(){return f.playbackRate},set speed(e){f.playbackRate=e},get duration(){return Pp(u)},play:()=>{s||(f.play(),pp(h))},pause:()=>f.pause(),stop:()=>{if(s=!0,"idle"===f.playState)return;const{currentTime:t}=f;if(t){const n=Jf({...o,autoplay:!1});e.setWithVelocity(n.sample(t-10).value,n.sample(t).value,10)}m()},complete:()=>f.finish(),cancel:m}}const Qf={type:"spring",stiffness:500,damping:25,restSpeed:10},qf={type:"keyframes",duration:.8},eh={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},th=(e,{keyframes:t})=>t.length>2?qf:Hu.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:Qf:eh,nh=(e,t)=>"zIndex"!==e&&(!("number"!=typeof t&&!Array.isArray(t))||!("string"!=typeof t||!Cf.test(t)&&"0"!==t||t.startsWith("url("))),rh=new Set(["brightness","contrast","saturate","opacity"]);function oh(e){const[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[r]=n.match(nd)||[];if(!r)return e;const o=n.replace(r,"");let i=rh.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const ih=/([a-z-]*)\(.*?\)/g,ah={...Cf,getAnimatableNone:e=>{const t=e.match(ih);return t?t.map(oh).join(" "):e}},sh={...hd,color:lf,backgroundColor:lf,outlineColor:lf,fill:lf,stroke:lf,borderColor:lf,borderTopColor:lf,borderRightColor:lf,borderBottomColor:lf,borderLeftColor:lf,filter:ah,WebkitFilter:ah},lh=e=>sh[e];function ch(e,t){let n=lh(e);return n!==ah&&(n=Cf),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const uh=e=>/^0[^.\s]+$/.test(e);function dh(e){return"number"==typeof e?0===e:null!==e?"none"===e||"0"===e||uh(e):void 0}function ph(e,t){return e[t]||e.default||e}const fh=(e,t,n,r={})=>o=>{const i=ph(r,e)||{},a=i.delay||r.delay||0;let{elapsed:s=0}=r;s-=Np(a);const l=function(e,t,n,r){const o=nh(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]),dh(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]]=ch(t,s);return i}(t,e,n,i),c=l[0],u=l[l.length-1],d=nh(e,c),p=nh(e,u);Tp(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 f={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)||(f={...f,...th(e,f)}),f.duration&&(f.duration=Np(f.duration)),f.repeatDelay&&(f.repeatDelay=Np(f.repeatDelay)),!d||!p||Rp||!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:mp,pause:mp,stop:mp,then:e=>(e(),Promise.resolve()),cancel:mp,complete:mp});return t?Jf({keyframes:[0,1],duration:0,delay:t,onComplete:o}):o()}(f);if(t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const n=Kf(t,e,f);if(n)return n}return Jf(f)};function hh(e){return Boolean(Xu(e)&&e.add)}const mh=e=>/^\-?\d*\.?\d+$/.test(e);function gh(e,t){-1===e.indexOf(t)&&e.push(t)}function bh(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class vh{constructor(){this.subscriptions=[]}add(e){return gh(this.subscriptions,e),()=>bh(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 yh=new Set;function xh(e,t,n){e||yh.has(t)||(console.warn(t),yh.add(t))}class Ih{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}=op;this.lastUpdated!==r&&(this.timeDelta=n,this.lastUpdated=r,dp.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=()=>dp.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&&xh(!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 vh);const n=this.events[e].add(t);return"change"===e?()=>{n(),dp.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?Df(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 wh(e,t){return new Ih(e,t)}const Ch=e=>t=>t.test(e),Eh=[Qu,cd,ld,sd,dd,ud,{test:e=>"auto"===e,parse:e=>e}],Ah=e=>Eh.find(Ch(e)),Sh=[...Eh,lf,Cf],Th=e=>Sh.find(Ch(e));function Oh(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,wh(n))}function Nh(e,t){if(!t)return;return(t[e]||t.default||t).from}function Ph({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,r}function Rh(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&&Ph(u,t))continue;const a={delay:n,elapsed:0,...i};if(window.HandoffAppearAnimations&&!r.hasAnimated){const n=e.getProps()[Sp];n&&(a.elapsed=window.HandoffAppearAnimations(n,t,r,dp))}r.start(fh(t,r,o,e.shouldReduceMotion&&Hu.has(t)?{type:!1}:a));const d=r.animation;hh(l)&&(l.add(t),d.then(()=>l.remove(t))),c.push(d)}return a&&Promise.all(c).then(()=>{a&&function(e,t){const n=Ap(e,t);let{transitionEnd:r={},transition:o={},...i}=n?e.makeTargetAnimatable(n,!1):{};i={...i,...r};for(const t in i)Oh(e,t,Fd(i[t]))}(e,a)}),c}function kh(e,t,n={}){const r=Ap(e,t,n.custom);let{transition:o=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(o=n.transitionOverride);const i=r?()=>Promise.all(Rh(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(Lh).forEach((e,r)=>{e.notify("AnimationStart",t),a.push(kh(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 Lh(e,t){return e.sortNodePosition(t)}const Bh=[...Eu].reverse(),Dh=Eu.length;function Gh(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=>kh(e,t,n));r=Promise.all(o)}else if("string"==typeof t)r=kh(e,t,n);else{const o="function"==typeof t?Ap(e,t,n.custom):t;r=Promise.all(Rh(e,o,n))}return r.then(()=>e.notify("AnimationComplete",t))}(e,t,n)))}function Mh(e){let t=Gh(e);const n={animate:Vh(!0),whileInView:Vh(),whileHover:Vh(),whileTap:Vh(),whileDrag:Vh(),whileFocus:Vh(),exit:Vh()};let r=!0;const o=(t,n)=>{const r=Ap(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<Dh;t++){const f=Bh[t],h=n[f],m=void 0!==s[f]?s[f]:l[f],g=wu(m),b=f===a?h.isActive:null;!1===b&&(p=t);let v=m===l[f]&&m!==s[f]&&g;if(v&&r&&e.manuallyAnimateOnMount&&(v=!1),h.protectedKeys={...d},!h.isActive&&null===b||!m&&!h.prevProp||Cu(m)||"boolean"==typeof m)continue;const y=jh(h.prevProp,m);let x=y||f===a&&h.isActive&&!v&&g||t>p&&g;const I=Array.isArray(m)?m:[m];let w=I.reduce(o,{});!1===b&&(w={});const{prevResolvedValues:C={}}=h,E={...C,...w},A=e=>{x=!0,u.delete(e),h.needsAnimating[e]=!0};for(const e in E){const t=w[e],n=C[e];d.hasOwnProperty(e)||(t!==n?Vd(t)&&Vd(n)?!Ep(t,n)||y?A(e):h.protectedKeys[e]=!0:void 0!==t?A(e):u.add(e):void 0!==t&&u.has(e)?A(e):h.protectedKeys[e]=!0)}h.prevProp=m,h.prevResolvedValues=w,h.isActive&&(d={...d,...w}),r&&e.blockInitialAnimation&&(x=!1),x&&!v&&c.push(...I.map(e=>({animation:e,options:{type:f,...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 f=Boolean(c.length);return r&&!1===s.initial&&!e.manuallyAnimateOnMount&&(f=!1),r=!1,f?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 jh(e,t){return"string"==typeof t?t!==e:!!Array.isArray(t)&&!Ep(t,e)}function Vh(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}let Fh=0;const _h={animation:{Feature:class extends rp{constructor(e){super(e),e.animationState||(e.animationState=Mh(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();this.unmount(),Cu(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 rp{constructor(){super(...arguments),this.id=Fh++}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(){}}}},Hh=(e,t)=>Math.abs(e-t);class Wh{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=Zh(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,n=function(e,t){const n=Hh(e.x,t.x),r=Hh(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}=op;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=Xh(t,this.transformPagePoint),dp.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{if(this.end(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const{onEnd:n,onSessionEnd:r}=this.handlers,o=Zh("pointercancel"===e.type?this.lastMoveEventInfo:Xh(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,o),r&&r(e,o)},!Yd(e))return;this.handlers=t,this.transformPagePoint=n;const r=Xh(Ud(e),this.transformPagePoint),{point:o}=r,{timestamp:i}=op;this.history=[{...o,timestamp:i}];const{onSessionStart:a}=t;a&&a(e,Zh(r,this.history)),this.removeListeners=Kd(Jd(window,"pointermove",this.handlePointerMove),Jd(window,"pointerup",this.handlePointerUp),Jd(window,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),pp(this.updatePoint)}}function Xh(e,t){return t?{point:t(e.point)}:e}function zh(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Zh({point:e},t){return{point:e,delta:zh(e,Uh(t)),offset:zh(e,Yh(t)),velocity:Jh(t,.1)}}function Yh(e){return e[0]}function Uh(e){return e[e.length-1]}function Jh(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=Uh(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>Np(t)));)n--;if(!r)return{x:0,y:0};const i=Pp(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 $h(e){return e.max-e.min}function Kh(e,t=0,n=.01){return Math.abs(e-t)<=n}function Qh(e,t,n,r=.5){e.origin=r,e.originPoint=cf(t.min,t.max,e.origin),e.scale=$h(n)/$h(t),(Kh(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=cf(n.min,n.max,e.origin)-e.originPoint,(Kh(e.translate)||isNaN(e.translate))&&(e.translate=0)}function qh(e,t,n,r){Qh(e.x,t.x,n.x,r?r.originX:void 0),Qh(e.y,t.y,n.y,r?r.originY:void 0)}function em(e,t,n){e.min=n.min+t.min,e.max=e.min+$h(t)}function tm(e,t,n){e.min=t.min-n.min,e.max=e.min+$h(t)}function nm(e,t,n){tm(e.x,t.x,n.x),tm(e.y,t.y,n.y)}function rm(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 om(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 im=.35;function am(e,t,n){return{min:sm(e,t),max:sm(e,n)}}function sm(e,t){return"number"==typeof e?e:e[t]||0}const lm=()=>({x:{min:0,max:0},y:{min:0,max:0}});function cm(e){return[e("x"),e("y")]}function um({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function dm(e){return void 0===e||1===e}function pm({scale:e,scaleX:t,scaleY:n}){return!dm(e)||!dm(t)||!dm(n)}function fm(e){return pm(e)||hm(e)||e.z||e.rotate||e.rotateX||e.rotateY}function hm(e){return mm(e.x)||mm(e.y)}function mm(e){return e&&"0%"!==e}function gm(e,t,n){return n+t*(e-n)}function bm(e,t,n,r,o){return void 0!==o&&(e=gm(e,o,r)),gm(e,n,r)+t}function vm(e,t=0,n=1,r,o){e.min=bm(e.min,t,n,r,o),e.max=bm(e.max,t,n,r,o)}function ym(e,{x:t,y:n}){vm(e.x,t.translate,t.scale,t.originPoint),vm(e.y,n.translate,n.scale,n.originPoint)}function xm(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function Im(e,t){e.min=e.min+t,e.max=e.max+t}function wm(e,t,[n,r,o]){const i=void 0!==t[o]?t[o]:.5,a=cf(e.min,e.max,i);vm(e,t[n],t[r],a,t.scale)}const Cm=["x","scaleX","originX"],Em=["y","scaleY","originY"];function Am(e,t){wm(e.x,t,Cm),wm(e.y,t,Em)}function Sm(e,t){return um(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 Tm=new WeakMap;class Om{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 Wh(e,{onSessionStart:e=>{this.stopAnimation(),t&&this.snapToCursor(Ud(e,"page").point)},onStart:(e,t)=>{const{drag:n,dragPropagation:r,onDragStart:o}=this.getProps();if(n&&!r&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=tp(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),cm(e=>{let t=this.getAxisMotionValue(e).get()||0;if(ld.test(t)){const{projection:n}=this.visualElement;if(n&&n.layout){const r=n.layout.layoutBox[e];if(r){t=$h(r)*(parseFloat(t)/100)}}}this.originPoint[e]=t}),o&&dp.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&&dp.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||!Nm(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?cf(t,e,r.min):Math.max(e,t):void 0!==n&&e>n&&(e=r?cf(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&&Iu(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!e||!n)&&function(e,{top:t,left:n,bottom:r,right:o}){return{x:rm(e.x,n,o),y:rm(e.y,t,r)}}(n.layoutBox,e),this.elastic=function(e=im){return!1===e?e=0:!0===e&&(e=im),{x:am(e,"left","right"),y:am(e,"top","bottom")}}(t),r!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&cm(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||!Iu(e))return!1;const n=e.current;Op(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=Sm(e,n),{scroll:o}=t;return o&&(Im(r.x,o.offset.x),Im(r.y,o.offset.y)),r}(n,r.root,this.visualElement.getTransformPagePoint());let i=function(e,t){return{x:om(e.x,t.x),y:om(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=um(e))}return i}startAnimation(e){const{drag:t,dragMomentum:n,dragElastic:r,dragTransition:o,dragSnapToOrigin:i,onDragTransitionEnd:a}=this.getProps(),s=this.constraints||{},l=cm(a=>{if(!Nm(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(fh(e,n,0,t))}stopAnimation(){cm(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){cm(t=>{const{drag:n}=this.getProps();if(!Nm(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]-cf(n,i,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!Iu(t)||!n||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};cm(e=>{const t=this.getAxisMotionValue(e);if(t){const n=t.get();r[e]=function(e,t){let n=.5;const r=$h(e),o=$h(t);return o>r?n=Nf(t.min,t.max-r,e.min):r>o&&(n=Nf(e.min,e.max-o,t.min)),Ku(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(),cm(t=>{if(!Nm(t,e,null))return;const n=this.getAxisMotionValue(t),{min:o,max:i}=this.constraints[t];n.set(cf(o,i,r[t]))})}addListeners(){if(!this.visualElement.current)return;Tm.set(this.visualElement,this);const e=Jd(this.visualElement.current,"pointerdown",e=>{const{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)}),t=()=>{const{dragConstraints:e}=this.getProps();Iu(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=Zd(window,"resize",()=>this.scalePositionWithinConstraints()),i=n.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(cm(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=im,dragMomentum:a=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:o,dragElastic:i,dragMomentum:a}}}function Nm(e,t,n){return!(!0!==t&&t!==e||null!==n&&n!==e)}const Pm=e=>(t,n)=>{e&&dp.update(()=>e(t,n))};const Rm={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function km(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Lm={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!cd.test(e))return e;e=parseFloat(e)}return`${km(e,t.target.x)}% ${km(e,t.target.y)}%`}},Bm={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=Cf.parse(e);if(o.length>5)return r;const i=Cf.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=cf(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 Dm extends o.Component{componentDidMount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:o}=e;var i;i=Mm,Object.assign(Fu,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()})),Rm.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()||dp.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 Gm(e){const[t,n]=function(){const e=p(bu);if(null===e)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,o=d();return a(()=>r(o),[]),!t&&n?[!1,()=>n&&n(o)]:[!0]}(),r=p(ku);return o.createElement(Dm,{...e,layoutGroup:r,switchLayoutGroup:p(Lu),isPresent:t,safeToRemove:n})}const Mm={borderRadius:{...Lm,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Lm,borderTopRightRadius:Lm,borderBottomLeftRadius:Lm,borderBottomRightRadius:Lm,boxShadow:Bm},jm=["TopLeft","TopRight","BottomLeft","BottomRight"],Vm=jm.length,Fm=e=>"string"==typeof e?parseFloat(e):e,_m=e=>"number"==typeof e||cd.test(e);function Hm(e,t){return void 0!==e[t]?e[t]:e.borderRadius}const Wm=zm(0,.5,Up),Xm=zm(.5,.95,mp);function zm(e,t,n){return r=>r<e?0:r>t?1:n(Nf(e,t,r))}function Zm(e,t){e.min=t.min,e.max=t.max}function Ym(e,t){Zm(e.x,t.x),Zm(e.y,t.y)}function Um(e,t,n,r,o){return e=gm(e-=t,1/n,r),void 0!==o&&(e=gm(e,1/o,r)),e}function Jm(e,t,[n,r,o],i,a){!function(e,t=0,n=1,r=.5,o,i=e,a=e){ld.test(t)&&(t=parseFloat(t),t=cf(a.min,a.max,t/100)-a.min);if("number"!=typeof t)return;let s=cf(i.min,i.max,r);e===i&&(s-=t),e.min=Um(e.min,t,n,s,o),e.max=Um(e.max,t,n,s,o)}(e,t[n],t[r],t[o],t.scale,i,a)}const $m=["x","scaleX","originX"],Km=["y","scaleY","originY"];function Qm(e,t,n,r){Jm(e.x,t,$m,n?n.x:void 0,r?r.x:void 0),Jm(e.y,t,Km,n?n.y:void 0,r?r.y:void 0)}function qm(e){return 0===e.translate&&1===e.scale}function eg(e){return qm(e.x)&&qm(e.y)}function tg(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 ng(e){return $h(e.x)/$h(e.y)}class rg{constructor(){this.members=[]}add(e){gh(this.members,e),e.scheduleRender()}remove(e){if(bh(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 og(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 ig=(e,t)=>e.depth-t.depth;class ag{constructor(){this.children=[],this.isDirty=!1}add(e){gh(this.children,e),this.isDirty=!0}remove(e){bh(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(ig),this.isDirty=!1,this.children.forEach(e)}}const sg=["","X","Y","Z"];let lg=0;const cg={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function ug({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(e={},n=(null==t?void 0:t())){this.id=lg++,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;cg.totalNodes=cg.resolvedTargetDeltas=cg.recalculatedProjection=0,this.nodes.forEach(fg),this.nodes.forEach(xg),this.nodes.forEach(Ig),this.nodes.forEach(hg),e=cg,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 ag)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new vh),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&&(pp(r),e(i-t))};return dp.read(r,!0),()=>pp(r)}(r,250),Rm.hasAnimatedSinceResize&&(Rm.hasAnimatedSinceResize=!1,this.nodes.forEach(yg))})}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()||Tg,{onLayoutAnimationStart:i,onLayoutAnimationComplete:s}=a.getProps(),l=!this.targetLayout||!tg(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={...ph(o,"layout"),onPlay:i,onComplete:s};(a.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||yg(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,pp(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(wg),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(gg);this.isUpdating||this.nodes.forEach(bg),this.isUpdating=!1,this.nodes.forEach(vg),this.nodes.forEach(dg),this.nodes.forEach(pg),this.clearAllSnapshots();const e=performance.now();op.delta=Ku(0,1e3/60,e-op.timestamp),op.timestamp=e,op.isProcessing=!0,lp.update.process(op),lp.preRender.process(op),lp.render.process(op),op.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(mg),this.sharedNodes.forEach(Cg)}scheduleUpdateProjection(){dp.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){dp.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&&!eg(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,""):void 0,i=r!==this.prevTransformTemplateValue;e&&(t||fm(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)),Og((r=n).x),Og(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&&(Im(t.x,n.offset.x),Im(t.y,n.offset.y)),t}removeElementScroll(e){const t={x:{min:0,max:0},y:{min:0,max:0}};Ym(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){Ym(t,e);const{scroll:n}=this.root;n&&(Im(t.x,-n.offset.x),Im(t.y,-n.offset.y))}Im(t.x,o.offset.x),Im(t.y,o.offset.y)}}return t}applyTransform(e,t=!1){const n={x:{min:0,max:0},y:{min:0,max:0}};Ym(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&&Am(n,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),fm(r.latestValues)&&Am(n,r.latestValues)}return fm(this.latestValues)&&Am(n,this.latestValues),n}removeTransform(e){const t={x:{min:0,max:0},y:{min:0,max:0}};Ym(t,e);for(let e=0;e<this.path.length;e++){const n=this.path[e];if(!n.instance)continue;if(!fm(n.latestValues))continue;pm(n.latestValues)&&n.updateSnapshot();const r=lm();Ym(r,n.measurePageBox()),Qm(t,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,r)}return fm(this.latestValues)&&Qm(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!==op.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=op.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}},nm(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),Ym(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,em(a.x,s.x,l.x),em(a.y,s.y,l.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):Ym(this.target,this.layout.layoutBox),ym(this.target,this.targetDelta)):Ym(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}},nm(this.relativeTargetOrigin,this.target,e.target),Ym(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}cg.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(this.parent&&!pm(this.parent.latestValues)&&!hm(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===op.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;Ym(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&&Am(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,ym(e,a)),r&&fm(i.latestValues)&&Am(e,i.latestValues))}t.x=xm(t.x),t.y=xm(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;qh(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.projectionTransform=og(this.projectionDelta,this.treeScale),this.projectionTransform===c&&this.treeScale.x===a&&this.treeScale.y===s||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),cg.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(Sg));let d;this.animationProgress=0,this.mixTargetDelta=t=>{const n=t/1e3;Eg(i.x,e.x,n),Eg(i.y,e.y,n),this.setTargetDelta(i),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(nm(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),function(e,t,n,r){Ag(e.x,t.x,n.x,r),Ag(e.y,t.y,n.y,r)}(this.relativeTarget,this.relativeTargetOrigin,a,n),d&&tg(this.relativeTarget,d)&&(this.isProjectionDirty=!1),d||(d={x:{min:0,max:0},y:{min:0,max:0}}),Ym(d,this.relativeTarget)),s&&(this.animationValues=o,function(e,t,n,r,o,i){o?(e.opacity=cf(0,void 0!==n.opacity?n.opacity:1,Wm(r)),e.opacityExit=cf(void 0!==t.opacity?t.opacity:1,0,Xm(r))):i&&(e.opacity=cf(void 0!==t.opacity?t.opacity:1,void 0!==n.opacity?n.opacity:1,r));for(let o=0;o<Vm;o++){const i=`border${jm[o]}Radius`;let a=Hm(t,i),s=Hm(n,i);void 0===a&&void 0===s||(a||(a=0),s||(s=0),0===a||0===s||_m(a)===_m(s)?(e[i]=Math.max(cf(Fm(a),Fm(s),r),0),(ld.test(s)||ld.test(a))&&(e[i]+="%")):e[i]=s)}(t.rotate||n.rotate)&&(e.rotate=cf(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&&(pp(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=dp.update(()=>{Rm.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,n){const r=Xu(e)?e:wh(e);return r.start(fh("",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&&Ng(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||{x:{min:0,max:0},y:{min:0,max:0}};const t=$h(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;const r=$h(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}Ym(t,n),Am(t,o),qh(this.projectionDeltaWithTransform,this.layoutCorrected,t,o)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new rg);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<sg.length;t++){const o="rotate"+sg[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=_d(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=_d(e.pointerEvents)||""),this.hasProjected&&!fm(this.latestValues)&&(t.transform=o?o({},""):"none",this.hasProjected=!1),t}const a=i.animationValues||i.latestValues;this.applyTransformsToTarget(),r.transform=og(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 Fu){if(void 0===a[e])continue;const{correct:t,applyTo:n}=Fu[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?_d(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(gg),this.root.sharedNodes.clear()}}}function dg(e){e.updateLayout()}function pg(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?cm(e=>{const r=i?n.measuredBox[e]:n.layoutBox[e],o=$h(r);r.min=t[e].min,r.max=r.min+o}):Ng(o,n.layoutBox,t)&&cm(r=>{const o=i?n.measuredBox[r]:n.layoutBox[r],a=$h(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}};qh(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?qh(s,e.applyTransform(r,!0),n.measuredBox):qh(s,t,n.layoutBox);const l=!eg(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}};nm(a,n.layoutBox,o.layoutBox);const s={x:{min:0,max:0},y:{min:0,max:0}};nm(s,t,i.layoutBox),tg(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 fg(e){cg.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 hg(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function mg(e){e.clearSnapshot()}function gg(e){e.clearMeasurements()}function bg(e){e.isLayoutDirty=!1}function vg(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function yg(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function xg(e){e.resolveTargetDelta()}function Ig(e){e.calcProjection()}function wg(e){e.resetRotation()}function Cg(e){e.removeLeadSnapshot()}function Eg(e,t,n){e.translate=cf(t.translate,0,n),e.scale=cf(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Ag(e,t,n,r){e.min=cf(t.min,n.min,r),e.max=cf(t.max,n.max,r)}function Sg(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}const Tg={duration:.45,ease:[.4,0,.1,1]};function Og(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function Ng(e,t,n){return"position"===e||"preserve-aspect"===e&&!Kh(ng(t),ng(n),.2)}const Pg=ug({attachResizeListener:(e,t)=>Zd(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Rg={current:void 0},kg=ug({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Rg.current){const e=new Pg({});e.mount(window),e.setOptions({layoutScroll:!0}),Rg.current=e}return Rg.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>Boolean("fixed"===window.getComputedStyle(e).position)}),Lg={pan:{Feature:class extends rp{constructor(){super(...arguments),this.removePointerDownListener=mp}onPointerDown(e){this.session=new Wh(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:Pm(e),onStart:Pm(t),onMove:n,onEnd:(e,t)=>{delete this.session,r&&dp.update(()=>r(e,t))}}}mount(){this.removePointerDownListener=Jd(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 rp{constructor(e){super(e),this.removeGroupControls=mp,this.removeListeners=mp,this.controls=new Om(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||mp}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:kg,MeasureLayout:Gm}},Bg=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function Dg(e,t,n=1){Op(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=Bg.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():Ju(o)?Dg(o,t,n+1):o}const Gg=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Mg=e=>Gg.has(e),jg=e=>e===Qu||e===cd,Vg=(e,t)=>parseFloat(e.split(", ")[t]),Fg=(e,t)=>(n,{transform:r})=>{if("none"===r||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/);if(o)return Vg(o[1],t);{const t=r.match(/^matrix\((.+)\)$/);return t?Vg(t[1],e):0}},_g=new Set(["x","y","z"]),Hg=_u.filter(e=>!_g.has(e));const Wg={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:Fg(4,13),y:Fg(5,14)},Xg=(e,t,n={},r={})=>{t={...t},r={...r};const o=Object.keys(t).filter(Mg);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=Ah(c);const d=t[o];let p;if(Vd(d)){const e=d.length,t=null===d[0]?1:0;c=d[t],u=Ah(c);for(let n=t;n<e&&null!==d[n];n++)p?Op(Ah(d[n])===p,"All keyframes must be of the same type"):(p=Ah(d[n]),Op(p===u||jg(u)&&jg(p),"Keyframes must be of the same dimension as the current value"))}else p=Ah(d);if(u!==p)if(jg(u)&&jg(p)){const e=l.get();"string"==typeof e&&l.set(parseFloat(e)),"string"==typeof d?t[o]=parseFloat(d):Array.isArray(d)&&p===cd&&(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 Hg.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]=Wg[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]=Wg[n](l,i)}),e})(t,e,s);return i.length&&i.forEach(([t,n])=>{e.getValue(t).set(n)}),e.render(),vu&&null!==n&&window.scrollTo({top:n}),{target:o,transitionEnd:r}}return{target:t,transitionEnd:r}};function zg(e,t,n,r){return(e=>Object.keys(e).some(Mg))(t)?Xg(e,t,n,r):{target:t,transitionEnd:r}}const Zg=(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(!Ju(t))return;const n=Dg(t,r);n&&e.set(n)});for(const e in t){const o=t[e];if(!Ju(o))continue;const i=Dg(o,r);i&&(t[e]=i,n||(n={}),void 0===n[e]&&(n[e]=o))}return{target:t,transitionEnd:n}}(e,t,r);return zg(e,t=o.target,n,r=o.transitionEnd)},Yg={current:null},Ug={current:!1};function Jg(){if(Ug.current=!0,vu)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Yg.current=e.matches;e.addListener(t),t()}else Yg.current=!1}const $g=new WeakMap,Kg=Object.keys(Ru),Qg=Kg.length,qg=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],eb=Au.length;class tb{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=()=>dp.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=Su(t),this.isVariantNode=Tu(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]&&Xu(t)&&(t.set(a[e],!1),hh(l)&&l.add(e))}}scrapeMotionValuesFromProps(e,t){return{}}mount(e){this.current=e,$g.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)),Ug.current||Jg(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||Yg.current),"production"!==process.env.NODE_ENV&&xh(!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(){$g.delete(this.current),this.projection&&this.projection.unmount(),pp(this.notifyUpdate),pp(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=Hu.has(e),r=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&dp.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?Tp(!1,e):Op(!1,e)}for(let e=0;e<Qg;e++){const n=Kg[e],{isEnabled:r,Feature:o,ProjectionNode:s,MeasureLayout:l}=Ru[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&&Iu(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<qg.length;t++){const n=qg[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(Xu(i))e.addValue(o,i),hh(r)&&r.add(o),"development"===process.env.NODE_ENV&&xh("10.12.16"===i.version,`Attempting to mix Framer Motion versions ${i.version} with 10.12.16 may not work as expected.`);else if(Xu(a))e.addValue(o,wh(i,{owner:e})),hh(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,wh(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<eb;e++){const n=Au[e],r=this.props[n];(wu(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=wh(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=jd(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||Xu(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 vh),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}}class nb extends tb{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=Nh(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&&(mh(c)||uh(c))?c=parseFloat(c):!Th(c)&&Cf.test(l)&&(c=ch(a,l)),e.addValue(a,wh(c,{owner:e})),void 0===n[a]&&(n[a]=c),null!==c&&e.setBaseTarget(a,c))}}(this,n,i);const e=Zg(this,n,i,t);t=e.transitionEnd,n=e.target}return{transition:e,transitionEnd:t,...n}}}class rb extends nb{readValueFromInstance(e,t){if(Hu.has(t)){const e=lh(t);return e&&e.default||0}{const r=(n=e,window.getComputedStyle(n)),o=(Uu(t)?r.getPropertyValue(t):r[t])||0;return"string"==typeof o?o.trim():o}var n}measureInstanceViewportBox(e,{transformPagePoint:t}){return Sm(e,t)}build(e,t,n,r){md(e,t,n,r.transformTemplate)}scrapeMotionValuesFromProps(e,t){return Gd(e,t)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;Xu(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}renderInstance(e,t,n,r){Ld(e,t,n,r)}}class ob extends nb{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(Hu.has(t)){const e=lh(t);return e&&e.default||0}return t=Bd.has(t)?t:kd(t),e.getAttribute(t)}measureInstanceViewportBox(){return{x:{min:0,max:0},y:{min:0,max:0}}}scrapeMotionValuesFromProps(e,t){return Md(e,t)}build(e,t,n,r){Td(e,t,n,this.isSVGTag,r.transformTemplate)}renderInstance(e,t,n,r){Dd(e,t,0,r)}mount(e){this.isSVGTag=Nd(e.tagName),super.mount(e)}}const ib=(e,t)=>Vu(e)?new ob(t,{enableHardwareAcceleration:!1}):new rb(t,{enableHardwareAcceleration:!0}),ab={..._h,...Cp,...Lg,...{layout:{ProjectionNode:kg,MeasureLayout:Gm}}},sb=Mu((e,t)=>function(e,{forwardMotionProps:t=!1},n,r){return{...Vu(e)?Xd:zd,preloadedFeatures:n,useRender:Rd(t),createVisualElement:r,Component:e}}(e,t,ab,ib));function lb(){!Ug.current&&Jg();const[e]=c(Yg.current);return"production"!==process.env.NODE_ENV&&xh(!0!==e,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),e}const cb={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 ub({children:t,animationType:n=hu,disableAnimation:r=!0,whileHover:i,whileTap:a,transition:s,...l}){const c=lb(),u=o.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=cb[t];return{whileHover:{...e.whileHover,...n.whileHover},...e.whileTap||n.whileTap?{whileTap:{...e.whileTap,...n.whileTap}}:{},transition:{...e.transition,...n.transition}}},{whileHover:{},transition:{}}):void 0}(n),p=d?{...d.whileHover,...i}:i,f=(null==d?void 0:d.whileTap)||a?{...null==d?void 0:d.whileTap,...a}:void 0,h=d?{...d.transition,...s}:s;if("string"==typeof u.type){const t=sb[u.type];return e(t,{...u.props,ref:u.ref,whileHover:p,whileTap:f,transition:h,...l})}return e(sb.div,{whileHover:p,whileTap:f,transition:h,...l,children:u})}ub.displayName="AnimationWrapper";const db=i(({variant:r="primary_brand",isLoading:o=!1,text:i,label:a,disabled:s,fullWidth:l,buttonClassName:c,size:u={base:"medium"},iconName:d,iconSize:p=24,iconFill:f=0,disableAnimation:h,animationType:m=hu,as:g="button",...b},v)=>{const y=(()=>{const e=je((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()})(u),"rounded-button overflow-visible flex px-15 gap-2 items-center justify-center text-center outline-none focus:outline focus:outline-2 focus:outline-offset-2 cursor-pointer transition-colors duration-200 align-top whitespace-nowrap",l?"w-full":"lg:inline-flex w-full lg:w-auto"),t=je((s||o)&&"cursor-not-allowed",o&&"pl-7");return je(e,{primary_brand:"bg-bg-fill-brand text-text-brand-on-bg-fill [&:not(:disabled)]:hover:bg-bg-fill-brand-hover focus:outline-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:outline-bg-fill-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:outline-input-border-hover disabled:bg-bg-fill-secondary",secondary_inverse:"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:outline-border-inverse disabled:bg-bg-fill-secondary"}[r]||"",t,c)})();let x=`button--${r}`;o&&(x+=" button--loading"),s&&(x+=" button--disabled");const I=`${x} ${y}`,w=t(n,{children:[o?e(kn,{name:"progress_activity",className:"animate-spin"}):null,a?t("span",{className:"flex flex-col",children:[e("span",{className:je(fu(u)),children:a}),i]}):i,d?e(kn,{name:d,size:p,fill:f,weight:"200"}):null]});return e(ub,"a"===g?{disableAnimation:h,animationType:m,children:e("a",{ref:v,className:je(I),...b,"data-component":"BrandButton","data-variant":"anchor",children:w})}:{disableAnimation:h,animationType:m,children:e("button",{ref:v,className:je(I),disabled:s||o,...b,"data-component":"BrandButton","data-variant":"button",children:w})})});db.displayName="BrandButton";const pb=t=>{const{className:n,...r}=t;return e("div",{className:je("h-[1px] border-t-0 bg-bg-surface-tertiary-active opacity-100",n),...r})};pb.displayName="Divider";const fb=n=>{const{name:r,value:o,label:i,subText:a,checked:s,onChange:l,className:c,variant:u="circle",hasError:d=!1,labelProps:p={},"data-cy":f,labelClassName:h="",disabled:m,...g}=n,b=()=>null==l?void 0:l(o||r);return t("label",{htmlFor:r,className:je("flex items-center",c),"data-cy":f,...p,children:[e("input",{className:"hidden",type:"radio",name:r,value:o,checked:s,readOnly:!0,disabled:m,...g}),e(Vr,{type:"button",onClick:b,disabled:m,className:je("mr-3 flex h-6 w-6 flex-shrink-0 items-center justify-center rounded-full border-[1px] border-solid border-border-secondary-on-bg-fill bg-bg outline-offset-4",s&&"border-[1px] border-solid border-border-brand",m&&"opacity-50"),children:s&&e("div",{className:"h-[0.875rem] w-[0.875rem] rounded-full bg-bg-fill-brand"})}),t(Vr,{type:"button",onClick:b,disabled:m,tabIndex:i?0:-1,children:[e("div",{className:je("text-body2 font-normal",h),children:i}),e("div",{className:"text-body1 text-text-info",children:a})]})]})};fb.displayName="RadioButton";const hb=n=>{const{list:r,text:o}=n,[i,a]=c(!0);return t("div",{className:"mt-3",children:[t(Vr,{type:"button",className:"flex items-center gap-2 text-base font-semibold text-gray-900","aria-expanded":i,onClick:e=>{e.stopPropagation(),a(e=>!e)},children:[e("span",{children:o||"See details"}),e(kn,{name:i?"keyboard_arrow_down":"keyboard_arrow_up",fill:1,size:24})]}),e(Si,{open:i,children:e("div",{className:"pt-1",children:e(Bn,{listItemClassName:"body3",items:r})})})]})};hb.displayName="SeeMore";const mb=({onSelect:r,speed:o,isSelected:i=!1,renderCheckPlans:a,iconSize:s=24,iconClassName:l,cta:u,techType:d,isMax:p,twoColumn:f=!1})=>{const[h,m]=c(!1),g=`btn-medium rounded-button pl-15 pr-15 inline-flex gap-2 items-center justify-center outline-none focus:ring-2 focus:ring-offset-2 cursor-pointer transition-colors duration-200 align-top ${i?" bg-bg-surface text-text focus:ring-bg-fill-surface-inverse":" bg-bg-fill-brand text-text-brand-on-bg-fill enabled:hover:bg-bg-fill-brand-hover focus:ring-bg-fill-brand"} `,b=null==a?void 0:a({speedCardConfig:{isModalOpen:h,setModalOpen:()=>{m(!1)},speed:o,techType:d,isMax:p},cta:u});return t(n,{children:[t(Vr,{onClick:()=>{m(!0),r()},className:je(g,"w-full px-3 md:px-5",f?"justify-center md:justify-between":"justify-between"),"data-track-element-name":"speed_plan_select_button","data-track-click-text":`Select plan speed ${o}`,"data-track-element-clicked":"speed_plan_card",children:[e("span",{className:f?"label3 md:label1":"label1",children:"Select plan"}),e(kn,{className:je(l,"!text-[24px] md:!text-[40px]",f&&"hidden md:inline-block",i?"text-icon":"text-icon-inverse"),name:"expand_circle_right",fill:1,size:s})]}),b]})},gb=({className:t="",count:n=1})=>e("div",{className:"animate-pulse space-y-4",children:Array.from({length:n}).map((n,r)=>e("div",{className:`h-8 rounded bg-skeleton-bg-start ${t}`,style:{opacity:1-.1*r}},r))});gb.displayName="Skeleton";const bb=()=>t("div",{className:"item-center mx-auto mt-4 flex animate-pulse flex-col justify-center gap-10 px-1 md:max-w-[48.375rem] md:gap-16 md:px-0","data-testid":"generic-skeleton",children:[e("div",{className:"h-12 w-full rounded-lg bg-skeleton-bg-start","data-testid":"title"}),t("div",{className:"item-center flex flex-col gap-6","data-testid":"subtitle",children:[e("div",{className:"h-5 w-full rounded-lg bg-skeleton-bg-start"}),e("div",{className:"h-5 w-full rounded-lg bg-skeleton-bg-start"})]}),t("div",{className:"item-center flex flex-col gap-3","data-testid":"content",children:[e("div",{className:"h-12 w-full rounded-lg bg-skeleton-bg-start"}),e("div",{className:"h-12 w-full rounded-lg bg-skeleton-bg-start"})]}),t("div",{className:"item-center flex flex-col gap-6","data-testid":"additional-info",children:[e("div",{className:"h-5 w-full rounded-lg bg-skeleton-bg-end"}),e("div",{className:"h-5 w-full rounded-lg bg-skeleton-bg-end"})]}),e("div",{className:"item-center flex justify-center","data-testid":"cta-button",children:e("div",{className:"h-12 w-full rounded-lg bg-skeleton-bg-end md:w-[22.125rem]"})})]});function vb({tooltipMsg:r,className:o,children:i}){return t(n,{children:[e("style",{children:'\n .tooltip-custom {\n position: relative;\n cursor: pointer;\n margin-top: 7px;\n }\n .tooltip-custom::after {\n display: none;\n position: absolute;\n text-align: center;\n z-index: 999;\n content: attr(data-text);\n top: 0;\n left: -200%;\n transform: translate(-50%, calc(-100% - 10px));\n line-height: 1.1rem;\n padding-left: 1rem;\n padding-right: 1rem;\n border-radius: 8px;\n color: white;\n background-color: black;\n padding-bottom: 0.75rem;\n padding-top: 0.75rem;\n width: 270px;\n font-size: 14px;\n }\n .tooltip-custom:hover::after {\n display: block;\n }\n .tooltip-custom::before {\n background-color: black;\n content: " ";\n display: none;\n position: absolute;\n width: 15px;\n height: 15px;\n z-index: 999;\n top: 0;\n left: 50%;\n transform: translate(-50%, calc(-100% - 5px)) rotate(45deg);\n }\n .tooltip-custom:hover::before {\n display: block;\n }\n @media (max-width: 640px) {\n .tooltip-custom::after {\n left: -124px;\n }\n }\n @media (max-width: 343px) {\n .tooltip-custom::after {\n left: 80px;\n width: 160px;\n }\n }\n '}),e("span",{className:`tooltip-custom ${o||""}`,"data-text":r,children:i})]})}vb.displayName="Tooltip";const yb=e=>{if(!e||!Array.isArray(e.content))return e;const t=[];for(const n of e.content){const e=t[t.length-1];"text"===(null==n?void 0:n.nodeType)&&"text"===(null==e?void 0:e.nodeType)&&JSON.stringify(e.marks)===JSON.stringify(n.marks)?t[t.length-1]={...e,value:e.value+n.value}:t.push("text"===(null==n?void 0:n.nodeType)?n:yb(n))}return{...e,content:t}},xb=e=>!!e&&(e.nodeType===Mt.TABLE||!!Array.isArray(e.content)&&e.content.some(e=>xb(e))),Ib=r=>{const{options:o,textProps:i,isTargetBlank:a,className:s,linkClassName:l,headerColor:c="grey",enableMaxWidth:u,headingClass:d,"data-testid":p}=r,f=yb(_e(r)),h=(null==s?void 0:s.includes("tableLayout"))||xb(f)?function(r,o){if(!r||!Array.isArray(r.content))return null;const i=Mr(o),a={...i,renderMark:{...i.renderMark,[Vt.BOLD]:t=>e("strong",{className:"label4 md:label2",children:t})},renderNode:{...i.renderNode,[Mt.PARAGRAPH]:(t,r)=>e(n,{children:r}),[Mt.TABLE]:(t,n)=>{var r,o;return e("div",{className:"comparison-table-wrapper w-full overflow-x-auto border-none md:overflow-hidden",children:e("table",{className:"responsive-table w-full table-fixed border-collapse "+((null===(o=null===(r=t.content[0])||void 0===r?void 0:r.content)||void 0===o?void 0:o.length)>2?"min-w-[100.1%]":"min-w-full"),children:e("tbody",{children:n})})})},[Mt.TABLE_ROW]:(t,n)=>e("tr",{className:"border-b border-gray-200 last:border-0",children:n}),[Mt.TABLE_HEADER_CELL]:(t,n)=>{var r;const o=(null===(r=t.parent)||void 0===r?void 0:r.content.length)>2;return e("th",{className:`label4 break-words py-4 text-center md:label2 ${o?"sticky left-0 z-20 w-[50vw] min-w-[50vw] first:z-30 first:w-[50vw] first:min-w-[50vw] first:border-r":"w-1/4 first:w-1/2"} `,children:n})},[Mt.TABLE_CELL]:(r,o)=>{var i,a,s,l;const c=(null===(i=r.parent)||void 0===i?void 0:i.content.length)>2,u=null===(l=null===(s=null===(a=r.content[0])||void 0===a?void 0:a.content[0])||void 0===s?void 0:s.value)||void 0===l?void 0:l.toLowerCase().trim();return e("td",{className:`rt-table-cell footnote break-words bg-white py-2 text-center align-top leading-5 text-text md:body2 first:text-left md:py-4 md:leading-7 ${c?"w-[50vw] min-w-[50vw] first:sticky first:left-0 first:z-10 first:w-[50vw] first:min-w-[50vw] first:border-r":"w-1/4 first:w-1/2"} `,children:t(n,{children:[" ","yes"===u?e(kn,{name:"check_circle",color:"#24A76A",fill:1}):"no"===u?e(kn,{name:"cancel",color:"#CECECE",fill:1}):o]})})},[jt.EMBEDDED_ENTRY]:t=>{var n,r,i,a;const s=t.data.target.sys.id,l=null===(r=null===(n=null==o?void 0:o.entries)||void 0===n?void 0:n.inline)||void 0===r?void 0:r.find(e=>e.sys.id===s);if(!l)return null;if("ComponentCheckList"===l.__typename){const t=(null===(a=null===(i=l.list)||void 0===i?void 0:i.items)||void 0===a?void 0:a.map(e=>{var t;return jr(_e(null!==(t=null==e?void 0:e.checkListTitle)&&void 0!==t?t:""),!0,"")}))||[];return e(Bn,{items:t,listIconName:"disc",listItemClassName:"items-baseline footnote md:body2 leading-5 md:leading-7 text-text"})}return e("span",{children:l.title||""})}}};return Gt.documentToReactComponents(r,a)}(f,r.links):jr(f,a,s,l,void 0,r.links);return e("div",{style:{...null==i?void 0:i.style,"--tw-prose-bullets":"white","--tw-prose-counters":"white"},className:je("last:[&_p]:mb-0","text-body1 leading-normal","[&_b]:font-bold [&_strong]:font-bold [&_i]:italic [&_em]:italic",s,!u&&"max-w-none"),"data-testid":p,children:h})};var wb,Cb;var Eb,Ab,Sb=function(){if(Cb)return wb;function e(e){this._maxSize=e,this.clear()}Cb=1,e.prototype.clear=function(){this._size=0,this._values=Object.create(null)},e.prototype.get=function(e){return this._values[e]},e.prototype.set=function(e,t){return this._size>=this._maxSize&&this.clear(),e in this._values||this._size++,this._values[e]=t};var t=/[^.^\]^[]+|(?=\[\]|\.\.)/g,n=/^\d+$/,r=/^\d/,o=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,i=/^\s*(['"]?)(.*?)(\1)\s*$/,a=new e(512),s=new e(512),l=new e(512);function c(e){return a.get(e)||a.set(e,u(e).map(function(e){return e.replace(i,"$2")}))}function u(e){return e.match(t)||[""]}function d(e){return"string"==typeof e&&e&&-1!==["'",'"'].indexOf(e.charAt(0))}function p(e){return!d(e)&&(function(e){return e.match(r)&&!e.match(n)}(e)||function(e){return o.test(e)}(e))}return wb={Cache:e,split:u,normalizePath:c,setter:function(e){var t=c(e);return s.get(e)||s.set(e,function(e,n){for(var r=0,o=t.length,i=e;r<o-1;){var a=t[r];if("__proto__"===a||"constructor"===a||"prototype"===a)return e;i=i[t[r++]]}i[t[r]]=n})},getter:function(e,t){var n=c(e);return l.get(e)||l.set(e,function(e){for(var r=0,o=n.length;r<o;){if(null==e&&t)return;e=e[n[r++]]}return e})},join:function(e){return e.reduce(function(e,t){return e+(d(t)||n.test(t)?"["+t+"]":(e?".":"")+t)},"")},forEach:function(e,t,n){!function(e,t,n){var r,o,i,a,s=e.length;for(o=0;o<s;o++)(r=e[o])&&(p(r)&&(r='"'+r+'"'),i=!(a=d(r))&&/^\d+$/.test(r),t.call(n,r,a,i,o,e))}(Array.isArray(e)?e:u(e),t,n)}},wb}();var Tb,Ob=function(){if(Ab)return Eb;Ab=1;const e=/[A-Z\xc0-\xd6\xd8-\xde]?[a-z\xdf-\xf6\xf8-\xff]+(?:['’](?:d|ll|m|re|s|t|ve))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde]|$)|(?:[A-Z\xc0-\xd6\xd8-\xde]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:D|LL|M|RE|S|T|VE))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde](?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])|$)|[A-Z\xc0-\xd6\xd8-\xde]?(?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:d|ll|m|re|s|t|ve))?|[A-Z\xc0-\xd6\xd8-\xde]+(?:['’](?:D|LL|M|RE|S|T|VE))?|\d*(?:1ST|2ND|3RD|(?![123])\dTH)(?=\b|[a-z_])|\d*(?:1st|2nd|3rd|(?![123])\dth)(?=\b|[A-Z_])|\d+|(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?(?:\u200d(?:[^\ud800-\udfff]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?)*/g,t=t=>t.match(e)||[],n=e=>e[0].toUpperCase()+e.slice(1),r=(e,n)=>t(e).join(n).toLowerCase(),o=e=>t(e).reduce((e,t)=>`${e}${e?t[0].toUpperCase()+t.slice(1).toLowerCase():t.toLowerCase()}`,"");return Eb={words:t,upperFirst:n,camelCase:o,pascalCase:e=>n(o(e)),snakeCase:e=>r(e,"_"),kebabCase:e=>r(e,"-"),sentenceCase:e=>n(r(e," ")),titleCase:e=>t(e).map(n).join(" ")}}(),Nb={exports:{}};var Pb=function(){if(Tb)return Nb.exports;function e(e,t){var n=e.length,r=new Array(n),o={},i=n,a=function(e){for(var t=new Map,n=0,r=e.length;n<r;n++){var o=e[n];t.has(o[0])||t.set(o[0],new Set),t.has(o[1])||t.set(o[1],new Set),t.get(o[0]).add(o[1])}return t}(t),s=function(e){for(var t=new Map,n=0,r=e.length;n<r;n++)t.set(e[n],n);return t}(e);for(t.forEach(function(e){if(!s.has(e[0])||!s.has(e[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});i--;)o[i]||l(e[i],i,new Set);return r;function l(e,t,i){if(i.has(e)){var c;try{c=", node was:"+JSON.stringify(e)}catch(e){c=""}throw new Error("Cyclic dependency"+c)}if(!s.has(e))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(e));if(!o[t]){o[t]=!0;var u=a.get(e)||new Set;if(t=(u=Array.from(u)).length){i.add(e);do{var d=u[--t];l(d,s.get(d),i)}while(t);i.delete(e)}r[--n]=e}}}return Tb=1,Nb.exports=function(t){return e(function(e){for(var t=new Set,n=0,r=e.length;n<r;n++){var o=e[n];t.add(o[0]),t.add(o[1])}return Array.from(t)}(t),t)},Nb.exports.array=e,Nb.exports}(),Rb=He(Pb);const kb=Object.prototype.toString,Lb=Error.prototype.toString,Bb=RegExp.prototype.toString,Db="undefined"!=typeof Symbol?Symbol.prototype.toString:()=>"",Gb=/^Symbol\((.*)\)(.*)$/;function Mb(e,t=!1){if(null==e||!0===e||!1===e)return""+e;const n=typeof e;if("number"===n)return function(e){return e!=+e?"NaN":0===e&&1/e<0?"-0":""+e}(e);if("string"===n)return t?`"${e}"`:e;if("function"===n)return"[Function "+(e.name||"anonymous")+"]";if("symbol"===n)return Db.call(e).replace(Gb,"Symbol($1)");const r=kb.call(e).slice(8,-1);return"Date"===r?isNaN(e.getTime())?""+e:e.toISOString(e):"Error"===r||e instanceof Error?"["+Lb.call(e)+"]":"RegExp"===r?Bb.call(e):null}function jb(e,t){let n=Mb(e,t);return null!==n?n:JSON.stringify(e,function(e,n){let r=Mb(this[e],t);return null!==r?r:n},2)}function Vb(e){return null==e?[]:[].concat(e)}let Fb,_b,Hb,Wb=/\$\{\s*(\w+)\s*\}/g;Fb=Symbol.toStringTag;class Xb{constructor(e,t,n,r){this.name=void 0,this.message=void 0,this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=void 0,this.inner=void 0,this[Fb]="Error",this.name="ValidationError",this.value=t,this.path=n,this.type=r,this.errors=[],this.inner=[],Vb(e).forEach(e=>{if(zb.isError(e)){this.errors.push(...e.errors);const t=e.inner.length?e.inner:[e];this.inner.push(...t)}else this.errors.push(e)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0]}}_b=Symbol.hasInstance,Hb=Symbol.toStringTag;class zb extends Error{static formatError(e,t){const n=t.label||t.path||"this";return t=Object.assign({},t,{path:n,originalPath:t.path}),"string"==typeof e?e.replace(Wb,(e,n)=>jb(t[n])):"function"==typeof e?e(t):e}static isError(e){return e&&"ValidationError"===e.name}constructor(e,t,n,r,o){const i=new Xb(e,t,n,r);if(o)return i;super(),this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=[],this.inner=[],this[Hb]="Error",this.name=i.name,this.message=i.message,this.type=i.type,this.value=i.value,this.path=i.path,this.errors=i.errors,this.inner=i.inner,Error.captureStackTrace&&Error.captureStackTrace(this,zb)}static[_b](e){return Xb[Symbol.hasInstance](e)||super[Symbol.hasInstance](e)}}let Zb={default:"${path} is invalid",required:"${path} is a required field",defined:"${path} must be defined",notNull:"${path} cannot be null",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:e,type:t,value:n,originalValue:r})=>{const o=null!=r&&r!==n?` (cast from the value \`${jb(r,!0)}\`).`:".";return"mixed"!==t?`${e} must be a \`${t}\` type, but the final value was: \`${jb(n,!0)}\``+o:`${e} must match the configured type. The validated value was: \`${jb(n,!0)}\``+o}},Yb={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",datetime:"${path} must be a valid ISO date-time",datetime_precision:"${path} must be a valid ISO date-time with a sub-second precision of exactly ${precision} digits",datetime_offset:'${path} must be a valid ISO date-time with UTC "Z" timezone',trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},Ub={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},Jb={isValue:"${path} field must be ${value}"},$b={noUnknown:"${path} field has unspecified keys: ${unknown}",exact:"${path} object contains unknown properties: ${properties}"},Kb={notType:e=>{const{path:t,value:n,spec:r}=e,o=r.types.length;if(Array.isArray(n)){if(n.length<o)return`${t} tuple value has too few items, expected a length of ${o} but got ${n.length} for value: \`${jb(n,!0)}\``;if(n.length>o)return`${t} tuple value has too many items, expected a length of ${o} but got ${n.length} for value: \`${jb(n,!0)}\``}return zb.formatError(Zb.notType,e)}};Object.assign(Object.create(null),{mixed:Zb,string:Yb,number:{min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},date:Ub,object:$b,array:{min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"},boolean:Jb,tuple:Kb});const Qb=e=>e&&e.__isYupSchema__;class qb{static fromOptions(e,t){if(!t.then&&!t.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:n,then:r,otherwise:o}=t,i="function"==typeof n?n:(...e)=>e.every(e=>e===n);return new qb(e,(e,t)=>{var n;let a=i(...e)?r:o;return null!=(n=null==a?void 0:a(t))?n:t})}constructor(e,t){this.fn=void 0,this.refs=e,this.refs=e,this.fn=t}resolve(e,t){let n=this.refs.map(e=>e.getValue(null==t?void 0:t.value,null==t?void 0:t.parent,null==t?void 0:t.context)),r=this.fn(n,e,t);if(void 0===r||r===e)return e;if(!Qb(r))throw new TypeError("conditions must return a schema object");return r.resolve(t)}}const ev="$",tv=".";class nv{constructor(e,t={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,"string"!=typeof e)throw new TypeError("ref must be a string, got: "+e);if(this.key=e.trim(),""===e)throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===ev,this.isValue=this.key[0]===tv,this.isSibling=!this.isContext&&!this.isValue;let n=this.isContext?ev:this.isValue?tv:"";this.path=this.key.slice(n.length),this.getter=this.path&&Sb.getter(this.path,!0),this.map=t.map}getValue(e,t,n){let r=this.isContext?n:this.isValue?e:t;return this.getter&&(r=this.getter(r||{})),this.map&&(r=this.map(r)),r}cast(e,t){return this.getValue(e,null==t?void 0:t.parent,null==t?void 0:t.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(e){return e&&e.__isYupRef}}nv.prototype.__isYupRef=!0;const rv=e=>null==e;function ov(e){function t({value:t,path:n="",options:r,originalValue:o,schema:i},a,s){const{name:l,test:c,params:u,message:d,skipAbsent:p}=e;let{parent:f,context:h,abortEarly:m=i.spec.abortEarly,disableStackTrace:g=i.spec.disableStackTrace}=r;const b={value:t,parent:f,context:h};function v(e={}){const r=iv(Object.assign({value:t,originalValue:o,label:i.spec.label,path:e.path||n,spec:i.spec,disableStackTrace:e.disableStackTrace||g},u,e.params),b),a=new zb(zb.formatError(e.message||d,r),t,r.path,e.type||l,r.disableStackTrace);return a.params=r,a}const y=m?a:s;let x={path:n,parent:f,type:l,from:r.from,createError:v,resolve:e=>av(e,b),options:r,originalValue:o,schema:i};const I=e=>{zb.isError(e)?y(e):e?s(null):y(v())},w=e=>{zb.isError(e)?y(e):a(e)};if(p&&rv(t))return I(!0);let C;try{var E;if(C=c.call(x,t,x),"function"==typeof(null==(E=C)?void 0:E.then)){if(r.sync)throw new Error(`Validation test of type: "${x.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`);return Promise.resolve(C).then(I,w)}}catch(e){return void w(e)}I(C)}return t.OPTIONS=e,t}function iv(e,t){if(!e)return e;for(const n of Object.keys(e))e[n]=av(e[n],t);return e}function av(e,t){return nv.isRef(e)?e.getValue(t.value,t.parent,t.context):e}function sv(e,t,n,r=n){let o,i,a;return t?(Sb.forEach(t,(s,l,c)=>{let u=l?s.slice(1,s.length-1):s,d="tuple"===(e=e.resolve({context:r,parent:o,value:n})).type,p=c?parseInt(u,10):0;if(e.innerType||d){if(d&&!c)throw new Error(`Yup.reach cannot implicitly index into a tuple type. the path part "${a}" must contain an index to the tuple element, e.g. "${a}[0]"`);if(n&&p>=n.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${s}, in the path: ${t}. because there is no value at that index. `);o=n,n=n&&n[p],e=d?e.spec.types[p]:e.innerType}if(!c){if(!e.fields||!e.fields[u])throw new Error(`The schema does not contain the path: ${t}. (failed at: ${a} which is a type: "${e.type}")`);o=n,n=n&&n[u],e=e.fields[u]}i=u,a=l?"["+s+"]":"."+s}),{schema:e,parent:o,parentPath:i}):{parent:o,parentPath:t,schema:e}}class lv extends Set{describe(){const e=[];for(const t of this.values())e.push(nv.isRef(t)?t.describe():t);return e}resolveAll(e){let t=[];for(const n of this.values())t.push(e(n));return t}clone(){return new lv(this.values())}merge(e,t){const n=this.clone();return e.forEach(e=>n.add(e)),t.forEach(e=>n.delete(e)),n}}function cv(e,t=new Map){if(Qb(e)||!e||"object"!=typeof e)return e;if(t.has(e))return t.get(e);let n;if(e instanceof Date)n=new Date(e.getTime()),t.set(e,n);else if(e instanceof RegExp)n=new RegExp(e),t.set(e,n);else if(Array.isArray(e)){n=new Array(e.length),t.set(e,n);for(let r=0;r<e.length;r++)n[r]=cv(e[r],t)}else if(e instanceof Map){n=new Map,t.set(e,n);for(const[r,o]of e.entries())n.set(r,cv(o,t))}else if(e instanceof Set){n=new Set,t.set(e,n);for(const r of e)n.add(cv(r,t))}else{if(!(e instanceof Object))throw Error(`Unable to clone ${e}`);n={},t.set(e,n);for(const[r,o]of Object.entries(e))n[r]=cv(o,t)}return n}function uv(e){if(null==e||!e.length)return;const t=[];let n="",r=!1,o=!1;for(let i=0;i<e.length;i++){const a=e[i];"["!==a||o?"]"!==a||o?'"'!==a?"."!==a||r||o?n+=a:n&&(t.push(n),n=""):o=!o:(n&&(/^\d+$/.test(n)?t.push(n):t.push(n.replace(/^"|"$/g,"")),n=""),r=!1):(n&&(t.push(...n.split(".").filter(Boolean)),n=""),r=!0)}return n&&t.push(...n.split(".").filter(Boolean)),t}function dv(e,t){var n;if((null==(n=e.inner)||!n.length)&&e.errors.length)return function(e,t){const n=t?`${t}.${e.path}`:e.path;return e.errors.map(e=>({message:e,path:uv(n)}))}(e,t);const r=t?`${t}.${e.path}`:e.path;return e.inner.flatMap(e=>dv(e,r))}class pv{constructor(e){this.type=void 0,this.deps=[],this.tests=void 0,this.transforms=void 0,this.conditions=[],this._mutate=void 0,this.internalTests={},this._whitelist=new lv,this._blacklist=new lv,this.exclusiveTests=Object.create(null),this._typeCheck=void 0,this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation(()=>{this.typeError(Zb.notType)}),this.type=e.type,this._typeCheck=e.check,this.spec=Object.assign({strip:!1,strict:!1,abortEarly:!0,recursive:!0,disableStackTrace:!1,nullable:!1,optional:!0,coerce:!0},null==e?void 0:e.spec),this.withMutation(e=>{e.nonNullable()})}get _type(){return this.type}clone(e){if(this._mutate)return e&&Object.assign(this.spec,e),this;const t=Object.create(Object.getPrototypeOf(this));return t.type=this.type,t._typeCheck=this._typeCheck,t._whitelist=this._whitelist.clone(),t._blacklist=this._blacklist.clone(),t.internalTests=Object.assign({},this.internalTests),t.exclusiveTests=Object.assign({},this.exclusiveTests),t.deps=[...this.deps],t.conditions=[...this.conditions],t.tests=[...this.tests],t.transforms=[...this.transforms],t.spec=cv(Object.assign({},this.spec,e)),t}label(e){let t=this.clone();return t.spec.label=e,t}meta(...e){if(0===e.length)return this.spec.meta;let t=this.clone();return t.spec.meta=Object.assign(t.spec.meta||{},e[0]),t}withMutation(e){let t=this._mutate;this._mutate=!0;let n=e(this);return this._mutate=t,n}concat(e){if(!e||e===this)return this;if(e.type!==this.type&&"mixed"!==this.type)throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${e.type}`);let t=this,n=e.clone();const r=Object.assign({},t.spec,n.spec);return n.spec=r,n.internalTests=Object.assign({},t.internalTests,n.internalTests),n._whitelist=t._whitelist.merge(e._whitelist,e._blacklist),n._blacklist=t._blacklist.merge(e._blacklist,e._whitelist),n.tests=t.tests,n.exclusiveTests=t.exclusiveTests,n.withMutation(t=>{e.tests.forEach(e=>{t.test(e.OPTIONS)})}),n.transforms=[...t.transforms,...n.transforms],n}isType(e){return null==e?!(!this.spec.nullable||null!==e)||!(!this.spec.optional||void 0!==e):this._typeCheck(e)}resolve(e){let t=this;if(t.conditions.length){let n=t.conditions;t=t.clone(),t.conditions=[],t=n.reduce((t,n)=>n.resolve(t,e),t),t=t.resolve(e)}return t}resolveOptions(e){var t,n,r,o;return Object.assign({},e,{from:e.from||[],strict:null!=(t=e.strict)?t:this.spec.strict,abortEarly:null!=(n=e.abortEarly)?n:this.spec.abortEarly,recursive:null!=(r=e.recursive)?r:this.spec.recursive,disableStackTrace:null!=(o=e.disableStackTrace)?o:this.spec.disableStackTrace})}cast(e,t={}){let n=this.resolve(Object.assign({},t,{value:e})),r="ignore-optionality"===t.assert,o=n._cast(e,t);if(!1!==t.assert&&!n.isType(o)){if(r&&rv(o))return o;let i=jb(e),a=jb(o);throw new TypeError(`The value of ${t.path||"field"} could not be cast to a value that satisfies the schema type: "${n.type}". \n\nattempted value: ${i} \n`+(a!==i?`result of cast: ${a}`:""))}return o}_cast(e,t){let n=void 0===e?e:this.transforms.reduce((n,r)=>r.call(this,n,e,this,t),e);return void 0===n&&(n=this.getDefault(t)),n}_validate(e,t={},n,r){let{path:o,originalValue:i=e,strict:a=this.spec.strict}=t,s=e;a||(s=this._cast(s,Object.assign({assert:!1},t)));let l=[];for(let e of Object.values(this.internalTests))e&&l.push(e);this.runTests({path:o,value:s,originalValue:i,options:t,tests:l},n,e=>{if(e.length)return r(e,s);this.runTests({path:o,value:s,originalValue:i,options:t,tests:this.tests},n,r)})}runTests(e,t,n){let r=!1,{tests:o,value:i,originalValue:a,path:s,options:l}=e,c=e=>{r||(r=!0,t(e,i))},u=e=>{r||(r=!0,n(e,i))},d=o.length,p=[];if(!d)return u([]);let f={value:i,originalValue:a,path:s,options:l,schema:this};for(let e=0;e<o.length;e++){(0,o[e])(f,c,function(e){e&&(Array.isArray(e)?p.push(...e):p.push(e)),--d<=0&&u(p)})}}asNestedTest({key:e,index:t,parent:n,parentPath:r,originalParent:o,options:i}){const a=null!=e?e:t;if(null==a)throw TypeError("Must include `key` or `index` for nested validations");const s="number"==typeof a;let l=n[a];const c=Object.assign({},i,{strict:!0,parent:n,value:l,originalValue:o[a],key:void 0,[s?"index":"key"]:a,path:s||a.includes(".")?`${r||""}[${s?a:`"${a}"`}]`:(r?`${r}.`:"")+e});return(e,t,n)=>this.resolve(c)._validate(l,c,t,n)}validate(e,t){var n;let r=this.resolve(Object.assign({},t,{value:e})),o=null!=(n=null==t?void 0:t.disableStackTrace)?n:r.spec.disableStackTrace;return new Promise((n,i)=>r._validate(e,t,(e,t)=>{zb.isError(e)&&(e.value=t),i(e)},(e,t)=>{e.length?i(new zb(e,t,void 0,void 0,o)):n(t)}))}validateSync(e,t){var n;let r,o=this.resolve(Object.assign({},t,{value:e})),i=null!=(n=null==t?void 0:t.disableStackTrace)?n:o.spec.disableStackTrace;return o._validate(e,Object.assign({},t,{sync:!0}),(e,t)=>{throw zb.isError(e)&&(e.value=t),e},(t,n)=>{if(t.length)throw new zb(t,e,void 0,void 0,i);r=n}),r}isValid(e,t){return this.validate(e,t).then(()=>!0,e=>{if(zb.isError(e))return!1;throw e})}isValidSync(e,t){try{return this.validateSync(e,t),!0}catch(e){if(zb.isError(e))return!1;throw e}}_getDefault(e){let t=this.spec.default;return null==t?t:"function"==typeof t?t.call(this,e):cv(t)}getDefault(e){return this.resolve(e||{})._getDefault(e)}default(e){if(0===arguments.length)return this._getDefault();return this.clone({default:e})}strict(e=!0){return this.clone({strict:e})}nullability(e,t){const n=this.clone({nullable:e});return n.internalTests.nullable=ov({message:t,name:"nullable",test(e){return null!==e||this.schema.spec.nullable}}),n}optionality(e,t){const n=this.clone({optional:e});return n.internalTests.optionality=ov({message:t,name:"optionality",test(e){return void 0!==e||this.schema.spec.optional}}),n}optional(){return this.optionality(!0)}defined(e=Zb.defined){return this.optionality(!1,e)}nullable(){return this.nullability(!0)}nonNullable(e=Zb.notNull){return this.nullability(!1,e)}required(e=Zb.required){return this.clone().withMutation(t=>t.nonNullable(e).defined(e))}notRequired(){return this.clone().withMutation(e=>e.nullable().optional())}transform(e){let t=this.clone();return t.transforms.push(e),t}test(...e){let t;if(t=1===e.length?"function"==typeof e[0]?{test:e[0]}:e[0]:2===e.length?{name:e[0],test:e[1]}:{name:e[0],message:e[1],test:e[2]},void 0===t.message&&(t.message=Zb.default),"function"!=typeof t.test)throw new TypeError("`test` is a required parameters");let n=this.clone(),r=ov(t),o=t.exclusive||t.name&&!0===n.exclusiveTests[t.name];if(t.exclusive&&!t.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return t.name&&(n.exclusiveTests[t.name]=!!t.exclusive),n.tests=n.tests.filter(e=>{if(e.OPTIONS.name===t.name){if(o)return!1;if(e.OPTIONS.test===r.OPTIONS.test)return!1}return!0}),n.tests.push(r),n}when(e,t){Array.isArray(e)||"string"==typeof e||(t=e,e=".");let n=this.clone(),r=Vb(e).map(e=>new nv(e));return r.forEach(e=>{e.isSibling&&n.deps.push(e.key)}),n.conditions.push("function"==typeof t?new qb(r,t):qb.fromOptions(r,t)),n}typeError(e){let t=this.clone();return t.internalTests.typeError=ov({message:e,name:"typeError",skipAbsent:!0,test(e){return!!this.schema._typeCheck(e)||this.createError({params:{type:this.schema.type}})}}),t}oneOf(e,t=Zb.oneOf){let n=this.clone();return e.forEach(e=>{n._whitelist.add(e),n._blacklist.delete(e)}),n.internalTests.whiteList=ov({message:t,name:"oneOf",skipAbsent:!0,test(e){let t=this.schema._whitelist,n=t.resolveAll(this.resolve);return!!n.includes(e)||this.createError({params:{values:Array.from(t).join(", "),resolved:n}})}}),n}notOneOf(e,t=Zb.notOneOf){let n=this.clone();return e.forEach(e=>{n._blacklist.add(e),n._whitelist.delete(e)}),n.internalTests.blacklist=ov({message:t,name:"notOneOf",test(e){let t=this.schema._blacklist,n=t.resolveAll(this.resolve);return!n.includes(e)||this.createError({params:{values:Array.from(t).join(", "),resolved:n}})}}),n}strip(e=!0){let t=this.clone();return t.spec.strip=e,t}describe(e){const t=(e?this.resolve(e):this).clone(),{label:n,meta:r,optional:o,nullable:i}=t.spec;return{meta:r,label:n,optional:o,nullable:i,default:t.getDefault(e),type:t.type,oneOf:t._whitelist.describe(),notOneOf:t._blacklist.describe(),tests:t.tests.filter((e,t,n)=>n.findIndex(t=>t.OPTIONS.name===e.OPTIONS.name)===t).map(t=>{const n=t.OPTIONS.params&&e?iv(Object.assign({},t.OPTIONS.params),e):t.OPTIONS.params;return{name:t.OPTIONS.name,params:n}})}}get"~standard"(){const e=this;return{version:1,vendor:"yup",async validate(t){try{return{value:await e.validate(t,{abortEarly:!1})}}catch(e){if(e instanceof zb)return{issues:dv(e)};throw e}}}}}pv.prototype.__isYupSchema__=!0;for(const e of["validate","validateSync"])pv.prototype[`${e}At`]=function(t,n,r={}){const{parent:o,parentPath:i,schema:a}=sv(this,t,n,r.context);return a[e](o&&o[i],Object.assign({},r,{parent:o,path:t}))};for(const e of["equals","is"])pv.prototype[e]=pv.prototype.oneOf;for(const e of["not","nope"])pv.prototype[e]=pv.prototype.notOneOf;function fv(){return new hv}class hv extends pv{constructor(){super({type:"boolean",check:e=>(e instanceof Boolean&&(e=e.valueOf()),"boolean"==typeof e)}),this.withMutation(()=>{this.transform((e,t)=>{if(this.spec.coerce&&!this.isType(e)){if(/^(true|1)$/i.test(String(e)))return!0;if(/^(false|0)$/i.test(String(e)))return!1}return e})})}isTrue(e=Jb.isValue){return this.test({message:e,name:"is-value",exclusive:!0,params:{value:"true"},test:e=>rv(e)||!0===e})}isFalse(e=Jb.isValue){return this.test({message:e,name:"is-value",exclusive:!0,params:{value:"false"},test:e=>rv(e)||!1===e})}default(e){return super.default(e)}defined(e){return super.defined(e)}optional(){return super.optional()}required(e){return super.required(e)}notRequired(){return super.notRequired()}nullable(){return super.nullable()}nonNullable(e){return super.nonNullable(e)}strip(e){return super.strip(e)}}fv.prototype=hv.prototype;const mv=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;function gv(e){var t,n;const r=mv.exec(e);return r?{year:bv(r[1]),month:bv(r[2],1)-1,day:bv(r[3],1),hour:bv(r[4]),minute:bv(r[5]),second:bv(r[6]),millisecond:r[7]?bv(r[7].substring(0,3)):0,precision:null!=(t=null==(n=r[7])?void 0:n.length)?t:void 0,z:r[8]||void 0,plusMinus:r[9]||void 0,hourOffset:bv(r[10]),minuteOffset:bv(r[11])}:null}function bv(e,t=0){return Number(e)||t}let vv=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,yv=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,xv=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,Iv=new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(([+-]\\d{2}(:?\\d{2})?)|Z)$"),wv=e=>rv(e)||e===e.trim(),Cv={}.toString();function Ev(){return new Av}class Av extends pv{constructor(){super({type:"string",check:e=>(e instanceof String&&(e=e.valueOf()),"string"==typeof e)}),this.withMutation(()=>{this.transform((e,t)=>{if(!this.spec.coerce||this.isType(e))return e;if(Array.isArray(e))return e;const n=null!=e&&e.toString?e.toString():e;return n===Cv?e:n})})}required(e){return super.required(e).withMutation(t=>t.test({message:e||Zb.required,name:"required",skipAbsent:!0,test:e=>!!e.length}))}notRequired(){return super.notRequired().withMutation(e=>(e.tests=e.tests.filter(e=>"required"!==e.OPTIONS.name),e))}length(e,t=Yb.length){return this.test({message:t,name:"length",exclusive:!0,params:{length:e},skipAbsent:!0,test(t){return t.length===this.resolve(e)}})}min(e,t=Yb.min){return this.test({message:t,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(t){return t.length>=this.resolve(e)}})}max(e,t=Yb.max){return this.test({name:"max",exclusive:!0,message:t,params:{max:e},skipAbsent:!0,test(t){return t.length<=this.resolve(e)}})}matches(e,t){let n,r,o=!1;return t&&("object"==typeof t?({excludeEmptyString:o=!1,message:n,name:r}=t):n=t),this.test({name:r||"matches",message:n||Yb.matches,params:{regex:e},skipAbsent:!0,test:t=>""===t&&o||-1!==t.search(e)})}email(e=Yb.email){return this.matches(vv,{name:"email",message:e,excludeEmptyString:!0})}url(e=Yb.url){return this.matches(yv,{name:"url",message:e,excludeEmptyString:!0})}uuid(e=Yb.uuid){return this.matches(xv,{name:"uuid",message:e,excludeEmptyString:!1})}datetime(e){let t,n,r="";return e&&("object"==typeof e?({message:r="",allowOffset:t=!1,precision:n}=e):r=e),this.matches(Iv,{name:"datetime",message:r||Yb.datetime,excludeEmptyString:!0}).test({name:"datetime_offset",message:r||Yb.datetime_offset,params:{allowOffset:t},skipAbsent:!0,test:e=>{if(!e||t)return!0;const n=gv(e);return!!n&&!!n.z}}).test({name:"datetime_precision",message:r||Yb.datetime_precision,params:{precision:n},skipAbsent:!0,test:e=>{if(!e||null==n)return!0;const t=gv(e);return!!t&&t.precision===n}})}ensure(){return this.default("").transform(e=>null===e?"":e)}trim(e=Yb.trim){return this.transform(e=>null!=e?e.trim():e).test({message:e,name:"trim",test:wv})}lowercase(e=Yb.lowercase){return this.transform(e=>rv(e)?e:e.toLowerCase()).test({message:e,name:"string_case",exclusive:!0,skipAbsent:!0,test:e=>rv(e)||e===e.toLowerCase()})}uppercase(e=Yb.uppercase){return this.transform(e=>rv(e)?e:e.toUpperCase()).test({message:e,name:"string_case",exclusive:!0,skipAbsent:!0,test:e=>rv(e)||e===e.toUpperCase()})}}Ev.prototype=Av.prototype;let Sv=new Date("");class Tv extends pv{constructor(){super({type:"date",check(e){return t=e,"[object Date]"===Object.prototype.toString.call(t)&&!isNaN(e.getTime());var t}}),this.withMutation(()=>{this.transform((e,t)=>!this.spec.coerce||this.isType(e)||null===e?e:(e=function(e){const t=gv(e);if(!t)return Date.parse?Date.parse(e):Number.NaN;if(void 0===t.z&&void 0===t.plusMinus)return new Date(t.year,t.month,t.day,t.hour,t.minute,t.second,t.millisecond).valueOf();let n=0;return"Z"!==t.z&&void 0!==t.plusMinus&&(n=60*t.hourOffset+t.minuteOffset,"+"===t.plusMinus&&(n=0-n)),Date.UTC(t.year,t.month,t.day,t.hour,t.minute+n,t.second,t.millisecond)}(e),isNaN(e)?Tv.INVALID_DATE:new Date(e)))})}prepareParam(e,t){let n;if(nv.isRef(e))n=e;else{let r=this.cast(e);if(!this._typeCheck(r))throw new TypeError(`\`${t}\` must be a Date or a value that can be \`cast()\` to a Date`);n=r}return n}min(e,t=Ub.min){let n=this.prepareParam(e,"min");return this.test({message:t,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(e){return e>=this.resolve(n)}})}max(e,t=Ub.max){let n=this.prepareParam(e,"max");return this.test({message:t,name:"max",exclusive:!0,params:{max:e},skipAbsent:!0,test(e){return e<=this.resolve(n)}})}}function Ov(e,t){let n=1/0;return e.some((e,r)=>{var o;if(null!=(o=t.path)&&o.includes(e))return n=r,!0}),n}function Nv(e){return(t,n)=>Ov(e,t)-Ov(e,n)}Tv.INVALID_DATE=Sv;const Pv=(e,t,n)=>{if("string"!=typeof e)return e;let r=e;try{r=JSON.parse(e)}catch(e){}return n.isType(r)?r:e};function Rv(e){if("fields"in e){const t={};for(const[n,r]of Object.entries(e.fields))t[n]=Rv(r);return e.setFields(t)}if("array"===e.type){const t=e.optional();return t.innerType&&(t.innerType=Rv(t.innerType)),t}return"tuple"===e.type?e.optional().clone({types:e.spec.types.map(Rv)}):"optional"in e?e.optional():e}let kv=e=>"[object Object]"===Object.prototype.toString.call(e);function Lv(e,t){let n=Object.keys(e.fields);return Object.keys(t).filter(e=>-1===n.indexOf(e))}const Bv=Nv([]);function Dv(e){return new Gv(e)}class Gv extends pv{constructor(e){super({type:"object",check:e=>kv(e)||"function"==typeof e}),this.fields=Object.create(null),this._sortErrors=Bv,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{e&&this.shape(e)})}_cast(e,t={}){var n;let r=super._cast(e,t);if(void 0===r)return this.getDefault(t);if(!this._typeCheck(r))return r;let o=this.fields,i=null!=(n=t.stripUnknown)?n:this.spec.noUnknown,a=[].concat(this._nodes,Object.keys(r).filter(e=>!this._nodes.includes(e))),s={},l=Object.assign({},t,{parent:s,__validating:t.__validating||!1}),c=!1;for(const e of a){let n=o[e],a=e in r,u=r[e];if(n){let o;l.path=(t.path?`${t.path}.`:"")+e,n=n.resolve({value:u,context:t.context,parent:s});let i=n instanceof pv?n.spec:void 0,a=null==i?void 0:i.strict;if(null!=i&&i.strip){c=c||e in r;continue}o=t.__validating&&a?u:n.cast(u,l),void 0!==o&&(s[e]=o)}else a&&!i&&(s[e]=u);a===e in s&&s[e]===u||(c=!0)}return c?s:r}_validate(e,t={},n,r){let{from:o=[],originalValue:i=e,recursive:a=this.spec.recursive}=t;t.from=[{schema:this,value:i},...o],t.__validating=!0,t.originalValue=i,super._validate(e,t,n,(e,o)=>{if(!a||!kv(o))return void r(e,o);i=i||o;let s=[];for(let e of this._nodes){let n=this.fields[e];n&&!nv.isRef(n)&&s.push(n.asNestedTest({options:t,key:e,parent:o,parentPath:t.path,originalParent:i}))}this.runTests({tests:s,value:o,originalValue:i,options:t},n,t=>{r(t.sort(this._sortErrors).concat(e),o)})})}clone(e){const t=super.clone(e);return t.fields=Object.assign({},this.fields),t._nodes=this._nodes,t._excludedEdges=this._excludedEdges,t._sortErrors=this._sortErrors,t}concat(e){let t=super.concat(e),n=t.fields;for(let[e,t]of Object.entries(this.fields)){const r=n[e];n[e]=void 0===r?t:r}return t.withMutation(t=>t.setFields(n,[...this._excludedEdges,...e._excludedEdges]))}_getDefault(e){if("default"in this.spec)return super._getDefault(e);if(!this._nodes.length)return;let t={};return this._nodes.forEach(n=>{var r;const o=this.fields[n];let i=e;null!=(r=i)&&r.value&&(i=Object.assign({},i,{parent:i.value,value:i.value[n]})),t[n]=o&&"getDefault"in o?o.getDefault(i):void 0}),t}setFields(e,t){let n=this.clone();return n.fields=e,n._nodes=function(e,t=[]){let n=[],r=new Set,o=new Set(t.map(([e,t])=>`${e}-${t}`));function i(e,t){let i=Sb.split(e)[0];r.add(i),o.has(`${t}-${i}`)||n.push([t,i])}for(const t of Object.keys(e)){let n=e[t];r.add(t),nv.isRef(n)&&n.isSibling?i(n.path,t):Qb(n)&&"deps"in n&&n.deps.forEach(e=>i(e,t))}return Rb.array(Array.from(r),n).reverse()}(e,t),n._sortErrors=Nv(Object.keys(e)),t&&(n._excludedEdges=t),n}shape(e,t=[]){return this.clone().withMutation(n=>{let r=n._excludedEdges;return t.length&&(Array.isArray(t[0])||(t=[t]),r=[...n._excludedEdges,...t]),n.setFields(Object.assign(n.fields,e),r)})}partial(){const e={};for(const[t,n]of Object.entries(this.fields))e[t]="optional"in n&&n.optional instanceof Function?n.optional():n;return this.setFields(e)}deepPartial(){return Rv(this)}pick(e){const t={};for(const n of e)this.fields[n]&&(t[n]=this.fields[n]);return this.setFields(t,this._excludedEdges.filter(([t,n])=>e.includes(t)&&e.includes(n)))}omit(e){const t=[];for(const n of Object.keys(this.fields))e.includes(n)||t.push(n);return this.pick(t)}from(e,t,n){let r=Sb.getter(e,!0);return this.transform(o=>{if(!o)return o;let i=o;return((e,t)=>{const n=[...Sb.normalizePath(t)];if(1===n.length)return n[0]in e;let r=n.pop(),o=Sb.getter(Sb.join(n),!0)(e);return!(!o||!(r in o))})(o,e)&&(i=Object.assign({},o),n||delete i[e],i[t]=r(o)),i})}json(){return this.transform(Pv)}exact(e){return this.test({name:"exact",exclusive:!0,message:e||$b.exact,test(e){if(null==e)return!0;const t=Lv(this.schema,e);return 0===t.length||this.createError({params:{properties:t.join(", ")}})}})}stripUnknown(){return this.clone({noUnknown:!0})}noUnknown(e=!0,t=$b.noUnknown){"boolean"!=typeof e&&(t=e,e=!0);let n=this.test({name:"noUnknown",exclusive:!0,message:t,test(t){if(null==t)return!0;const n=Lv(this.schema,t);return!e||0===n.length||this.createError({params:{unknown:n.join(", ")}})}});return n.spec.noUnknown=e,n}unknown(e=!0,t=$b.noUnknown){return this.noUnknown(!e,t)}transformKeys(e){return this.transform(t=>{if(!t)return t;const n={};for(const r of Object.keys(t))n[e(r)]=t[r];return n})}camelCase(){return this.transformKeys(Ob.camelCase)}snakeCase(){return this.transformKeys(Ob.snakeCase)}constantCase(){return this.transformKeys(e=>Ob.snakeCase(e).toUpperCase())}describe(e){const t=(e?this.resolve(e):this).clone(),n=super.describe(e);n.fields={};for(const[o,i]of Object.entries(t.fields)){var r;let t=e;null!=(r=t)&&r.value&&(t=Object.assign({},t,{parent:t.value,value:t.value[o]})),n.fields[o]=i.describe(t)}return n}}Dv.prototype=Gv.prototype;const Mv={firstName:"",lastName:"",address:"",phone:"",email:"",unit:"",zip:"",isManualAddress:!1,isMarketingCom:!1,addressToSend:{},notes:"",referralCode:"",hasUnits:!1},jv={firstName:{placeholder:"John"},lastName:{placeholder:"Doe"},address:{placeholder:"Street address"},phoneNumber:{placeholder:"Phone number"},emailAddress:{placeholder:"Email address"},unit:{placeholder:"Unit (optional)"},zip:{placeholder:"Zip"},notes:{placeholder:"Notes or Comments"},referralCode:{placeholder:"Referral Code"}},Vv=Dv({firstName:Ev().required("First name is required").min(2,"Enter a valid First name").matches(/^[a-zA-Z\s]*$/,"Enter a valid First name"),lastName:Ev().required("Last name is required").min(2,"Enter a valid Last name").matches(/^[a-zA-Z\s]*$/,"Enter a valid Last name"),isManualAddress:fv(),isMarketingCom:fv(),hasUnits:fv(),unit:Ev().when("hasUnits",{is:!0,then:e=>e.required("Unit is required"),otherwise:e=>e.matches(/^[a-zA-Z0-9\s#]*$/,"Enter a valid Unit")}),zip:Ev().when("isManualAddress",{is:!0,then:e=>e.required("Zip is required").matches(/^\d{5}$/,"Enter a valid Zip")}),address:Ev().required("Enter your home address (street, city, state, and ZIP below)").when("isManualAddress",{is:!0,then:e=>e.matches(/^(\d{1,}) [a-zA-Z0-9\s]+(\,)? [a-zA-Z\s]+(\,)? [A-Z]{2}( [0-9]{5,6})?$/,"Enter your home address (street, city, state, and ZIP below)")}),phone:Ev().required("Phone is required").matches(/^\([0-9]{3}\)\s[0-9]{3}-[0-9]{4}$/,"Please enter a valid phone number"),email:Ev().email("Invalid email").matches(/^[^\s@]+@[^\s@]+\.[^\s@]+$/,"Invalid email").required("Email is required"),notes:Ev(),referralCode:Ev().max(50,"Referral code must not exceed 50 characters").matches(/^\S*$/,"Referral code must not contain spaces")});var Fv=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===_v}(e)}(e)};var _v="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function Hv(e,t){return!1!==t.clone&&t.isMergeableObject(e)?Xv((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function Wv(e,t,n){return e.concat(t).map(function(e){return Hv(e,n)})}function Xv(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||Wv,n.isMergeableObject=n.isMergeableObject||Fv;var r=Array.isArray(t);return r===Array.isArray(e)?r?n.arrayMerge(e,t,n):function(e,t,n){var r={};return n.isMergeableObject(e)&&Object.keys(e).forEach(function(t){r[t]=Hv(e[t],n)}),Object.keys(t).forEach(function(o){n.isMergeableObject(t[o])&&e[o]?r[o]=Xv(e[o],t[o],n):r[o]=Hv(t[o],n)}),r}(e,t,n):Hv(t,n)}Xv.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,n){return Xv(e,n,t)},{})};var zv=Xv,Zv="object"==typeof global&&global&&global.Object===Object&&global,Yv="object"==typeof self&&self&&self.Object===Object&&self,Uv=Zv||Yv||Function("return this")(),Jv=Uv.Symbol,$v=Object.prototype,Kv=$v.hasOwnProperty,Qv=$v.toString,qv=Jv?Jv.toStringTag:void 0;var ey=Object.prototype.toString;var ty=Jv?Jv.toStringTag:void 0;function ny(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":ty&&ty in Object(e)?function(e){var t=Kv.call(e,qv),n=e[qv];try{e[qv]=void 0;var r=!0}catch(e){}var o=Qv.call(e);return r&&(t?e[qv]=n:delete e[qv]),o}(e):function(e){return ey.call(e)}(e)}function ry(e,t){return function(n){return e(t(n))}}var oy=ry(Object.getPrototypeOf,Object);function iy(e){return null!=e&&"object"==typeof e}var ay=Function.prototype,sy=Object.prototype,ly=ay.toString,cy=sy.hasOwnProperty,uy=ly.call(Object);function dy(e){if(!iy(e)||"[object Object]"!=ny(e))return!1;var t=oy(e);if(null===t)return!0;var n=cy.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&ly.call(n)==uy}function py(e,t){return e===t||e!=e&&t!=t}function fy(e,t){for(var n=e.length;n--;)if(py(e[n][0],t))return n;return-1}var hy=Array.prototype.splice;function my(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function gy(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}my.prototype.clear=function(){this.__data__=[],this.size=0},my.prototype.delete=function(e){var t=this.__data__,n=fy(t,e);return!(n<0)&&(n==t.length-1?t.pop():hy.call(t,n,1),--this.size,!0)},my.prototype.get=function(e){var t=this.__data__,n=fy(t,e);return n<0?void 0:t[n][1]},my.prototype.has=function(e){return fy(this.__data__,e)>-1},my.prototype.set=function(e,t){var n=this.__data__,r=fy(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function by(e){if(!gy(e))return!1;var t=ny(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}var vy,yy=Uv["__core-js_shared__"],xy=(vy=/[^.]+$/.exec(yy&&yy.keys&&yy.keys.IE_PROTO||""))?"Symbol(src)_1."+vy:"";var Iy=Function.prototype.toString;function wy(e){if(null!=e){try{return Iy.call(e)}catch(e){}try{return e+""}catch(e){}}return""}var Cy=/^\[object .+?Constructor\]$/,Ey=Function.prototype,Ay=Object.prototype,Sy=Ey.toString,Ty=Ay.hasOwnProperty,Oy=RegExp("^"+Sy.call(Ty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Ny(e){return!(!gy(e)||function(e){return!!xy&&xy in e}(e))&&(by(e)?Oy:Cy).test(wy(e))}function Py(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return Ny(n)?n:void 0}var Ry=Py(Uv,"Map"),ky=Py(Object,"create");var Ly=Object.prototype.hasOwnProperty;var By=Object.prototype.hasOwnProperty;function Dy(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Gy(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function My(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Dy.prototype.clear=function(){this.__data__=ky?ky(null):{},this.size=0},Dy.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Dy.prototype.get=function(e){var t=this.__data__;if(ky){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return Ly.call(t,e)?t[e]:void 0},Dy.prototype.has=function(e){var t=this.__data__;return ky?void 0!==t[e]:By.call(t,e)},Dy.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=ky&&void 0===t?"__lodash_hash_undefined__":t,this},My.prototype.clear=function(){this.size=0,this.__data__={hash:new Dy,map:new(Ry||my),string:new Dy}},My.prototype.delete=function(e){var t=Gy(this,e).delete(e);return this.size-=t?1:0,t},My.prototype.get=function(e){return Gy(this,e).get(e)},My.prototype.has=function(e){return Gy(this,e).has(e)},My.prototype.set=function(e,t){var n=Gy(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};function jy(e){var t=this.__data__=new my(e);this.size=t.size}jy.prototype.clear=function(){this.__data__=new my,this.size=0},jy.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},jy.prototype.get=function(e){return this.__data__.get(e)},jy.prototype.has=function(e){return this.__data__.has(e)},jy.prototype.set=function(e,t){var n=this.__data__;if(n instanceof my){var r=n.__data__;if(!Ry||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new My(r)}return n.set(e,t),this.size=n.size,this};var Vy=function(){try{var e=Py(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();function Fy(e,t,n){"__proto__"==t&&Vy?Vy(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var _y=Object.prototype.hasOwnProperty;function Hy(e,t,n){var r=e[t];_y.call(e,t)&&py(r,n)&&(void 0!==n||t in e)||Fy(e,t,n)}function Wy(e,t,n,r){var o=!n;n||(n={});for(var i=-1,a=t.length;++i<a;){var s=t[i],l=void 0;void 0===l&&(l=e[s]),o?Fy(n,s,l):Hy(n,s,l)}return n}function Xy(e){return iy(e)&&"[object Arguments]"==ny(e)}var zy=Object.prototype,Zy=zy.hasOwnProperty,Yy=zy.propertyIsEnumerable,Uy=Xy(function(){return arguments}())?Xy:function(e){return iy(e)&&Zy.call(e,"callee")&&!Yy.call(e,"callee")},Jy=Array.isArray;var $y="object"==typeof exports&&exports&&!exports.nodeType&&exports,Ky=$y&&"object"==typeof module&&module&&!module.nodeType&&module,Qy=Ky&&Ky.exports===$y?Uv.Buffer:void 0,qy=(Qy?Qy.isBuffer:void 0)||function(){return!1},ex=/^(?:0|[1-9]\d*)$/;function tx(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&ex.test(e))&&e>-1&&e%1==0&&e<t}function nx(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}var rx={};function ox(e){return function(t){return e(t)}}rx["[object Float32Array]"]=rx["[object Float64Array]"]=rx["[object Int8Array]"]=rx["[object Int16Array]"]=rx["[object Int32Array]"]=rx["[object Uint8Array]"]=rx["[object Uint8ClampedArray]"]=rx["[object Uint16Array]"]=rx["[object Uint32Array]"]=!0,rx["[object Arguments]"]=rx["[object Array]"]=rx["[object ArrayBuffer]"]=rx["[object Boolean]"]=rx["[object DataView]"]=rx["[object Date]"]=rx["[object Error]"]=rx["[object Function]"]=rx["[object Map]"]=rx["[object Number]"]=rx["[object Object]"]=rx["[object RegExp]"]=rx["[object Set]"]=rx["[object String]"]=rx["[object WeakMap]"]=!1;var ix="object"==typeof exports&&exports&&!exports.nodeType&&exports,ax=ix&&"object"==typeof module&&module&&!module.nodeType&&module,sx=ax&&ax.exports===ix&&Zv.process,lx=function(){try{var e=ax&&ax.require&&ax.require("util").types;return e||sx&&sx.binding&&sx.binding("util")}catch(e){}}(),cx=lx&&lx.isTypedArray,ux=cx?ox(cx):function(e){return iy(e)&&nx(e.length)&&!!rx[ny(e)]},dx=Object.prototype.hasOwnProperty;function px(e,t){var n=Jy(e),r=!n&&Uy(e),o=!n&&!r&&qy(e),i=!n&&!r&&!o&&ux(e),a=n||r||o||i,s=a?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],l=s.length;for(var c in e)!t&&!dx.call(e,c)||a&&("length"==c||o&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||tx(c,l))||s.push(c);return s}var fx=Object.prototype;function hx(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||fx)}var mx=ry(Object.keys,Object),gx=Object.prototype.hasOwnProperty;function bx(e){return null!=e&&nx(e.length)&&!by(e)}function vx(e){return bx(e)?px(e):function(e){if(!hx(e))return mx(e);var t=[];for(var n in Object(e))gx.call(e,n)&&"constructor"!=n&&t.push(n);return t}(e)}var yx=Object.prototype.hasOwnProperty;function xx(e){if(!gy(e))return function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}(e);var t=hx(e),n=[];for(var r in e)("constructor"!=r||!t&&yx.call(e,r))&&n.push(r);return n}function Ix(e){return bx(e)?px(e,!0):xx(e)}var wx="object"==typeof exports&&exports&&!exports.nodeType&&exports,Cx=wx&&"object"==typeof module&&module&&!module.nodeType&&module,Ex=Cx&&Cx.exports===wx?Uv.Buffer:void 0,Ax=Ex?Ex.allocUnsafe:void 0;function Sx(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}function Tx(){return[]}var Ox=Object.prototype.propertyIsEnumerable,Nx=Object.getOwnPropertySymbols,Px=Nx?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}(Nx(e),function(t){return Ox.call(e,t)}))}:Tx;function Rx(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}var kx=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)Rx(t,Px(e)),e=oy(e);return t}:Tx;function Lx(e,t,n){var r=t(e);return Jy(e)?r:Rx(r,n(e))}function Bx(e){return Lx(e,vx,Px)}function Dx(e){return Lx(e,Ix,kx)}var Gx=Py(Uv,"DataView"),Mx=Py(Uv,"Promise"),jx=Py(Uv,"Set"),Vx=Py(Uv,"WeakMap"),Fx="[object Map]",_x="[object Promise]",Hx="[object Set]",Wx="[object WeakMap]",Xx="[object DataView]",zx=wy(Gx),Zx=wy(Ry),Yx=wy(Mx),Ux=wy(jx),Jx=wy(Vx),$x=ny;(Gx&&$x(new Gx(new ArrayBuffer(1)))!=Xx||Ry&&$x(new Ry)!=Fx||Mx&&$x(Mx.resolve())!=_x||jx&&$x(new jx)!=Hx||Vx&&$x(new Vx)!=Wx)&&($x=function(e){var t=ny(e),n="[object Object]"==t?e.constructor:void 0,r=n?wy(n):"";if(r)switch(r){case zx:return Xx;case Zx:return Fx;case Yx:return _x;case Ux:return Hx;case Jx:return Wx}return t});var Kx=Object.prototype.hasOwnProperty;var Qx=Uv.Uint8Array;function qx(e){var t=new e.constructor(e.byteLength);return new Qx(t).set(new Qx(e)),t}var eI=/\w*$/;var tI=Jv?Jv.prototype:void 0,nI=tI?tI.valueOf:void 0;function rI(e,t,n){var r,o,i,a=e.constructor;switch(t){case"[object ArrayBuffer]":return qx(e);case"[object Boolean]":case"[object Date]":return new a(+e);case"[object DataView]":return function(e,t){var n=t?qx(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return function(e,t){var n=t?qx(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}(e,n);case"[object Map]":case"[object Set]":return new a;case"[object Number]":case"[object String]":return new a(e);case"[object RegExp]":return(i=new(o=e).constructor(o.source,eI.exec(o))).lastIndex=o.lastIndex,i;case"[object Symbol]":return r=e,nI?Object(nI.call(r)):{}}}var oI=Object.create,iI=function(){function e(){}return function(t){if(!gy(t))return{};if(oI)return oI(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();var aI=lx&&lx.isMap,sI=aI?ox(aI):function(e){return iy(e)&&"[object Map]"==$x(e)};var lI=lx&&lx.isSet,cI=lI?ox(lI):function(e){return iy(e)&&"[object Set]"==$x(e)},uI="[object Arguments]",dI="[object Function]",pI="[object Object]",fI={};function hI(e,t,n,r,o,i){var a,s=1&t,l=2&t,c=4&t;if(void 0!==a)return a;if(!gy(e))return e;var u=Jy(e);if(u){if(a=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&Kx.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!s)return Sx(e,a)}else{var d=$x(e),p=d==dI||"[object GeneratorFunction]"==d;if(qy(e))return function(e,t){if(t)return e.slice();var n=e.length,r=Ax?Ax(n):new e.constructor(n);return e.copy(r),r}(e,s);if(d==pI||d==uI||p&&!o){if(a=l||p?{}:function(e){return"function"!=typeof e.constructor||hx(e)?{}:iI(oy(e))}(e),!s)return l?function(e,t){return Wy(e,kx(e),t)}(e,function(e,t){return e&&Wy(t,Ix(t),e)}(a,e)):function(e,t){return Wy(e,Px(e),t)}(e,function(e,t){return e&&Wy(t,vx(t),e)}(a,e))}else{if(!fI[d])return o?e:{};a=rI(e,d,s)}}i||(i=new jy);var f=i.get(e);if(f)return f;i.set(e,a),cI(e)?e.forEach(function(r){a.add(hI(r,t,n,r,e,i))}):sI(e)&&e.forEach(function(r,o){a.set(o,hI(r,t,n,o,e,i))});var h=u?void 0:(c?l?Dx:Bx:l?Ix:vx)(e);return function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););}(h||e,function(r,o){h&&(r=e[o=r]),Hy(a,o,hI(r,t,n,o,e,i))}),a}fI[uI]=fI["[object Array]"]=fI["[object ArrayBuffer]"]=fI["[object DataView]"]=fI["[object Boolean]"]=fI["[object Date]"]=fI["[object Float32Array]"]=fI["[object Float64Array]"]=fI["[object Int8Array]"]=fI["[object Int16Array]"]=fI["[object Int32Array]"]=fI["[object Map]"]=fI["[object Number]"]=fI[pI]=fI["[object RegExp]"]=fI["[object Set]"]=fI["[object String]"]=fI["[object Symbol]"]=fI["[object Uint8Array]"]=fI["[object Uint8ClampedArray]"]=fI["[object Uint16Array]"]=fI["[object Uint32Array]"]=!0,fI["[object Error]"]=fI[dI]=fI["[object WeakMap]"]=!1;var mI,gI;function bI(e){return hI(e,5)}var vI=function(){if(gI)return mI;gI=1;var e=Array.isArray,t=Object.keys,n=Object.prototype.hasOwnProperty,r="undefined"!=typeof Element;function o(i,a){if(i===a)return!0;if(i&&a&&"object"==typeof i&&"object"==typeof a){var s,l,c,u=e(i),d=e(a);if(u&&d){if((l=i.length)!=a.length)return!1;for(s=l;0!==s--;)if(!o(i[s],a[s]))return!1;return!0}if(u!=d)return!1;var p=i instanceof Date,f=a instanceof Date;if(p!=f)return!1;if(p&&f)return i.getTime()==a.getTime();var h=i instanceof RegExp,m=a instanceof RegExp;if(h!=m)return!1;if(h&&m)return i.toString()==a.toString();var g=t(i);if((l=g.length)!==t(a).length)return!1;for(s=l;0!==s--;)if(!n.call(a,g[s]))return!1;if(r&&i instanceof Element&&a instanceof Element)return i===a;for(s=l;0!==s--;)if(!("_owner"===(c=g[s])&&i.$$typeof||o(i[c],a[c])))return!1;return!0}return i!=i&&a!=a}return mI=function(e,t){try{return o(e,t)}catch(e){if(e.message&&e.message.match(/stack|recursion/i)||-2146828260===e.number)return console.warn("Warning: react-fast-compare does not handle circular references.",e.name,e.message),!1;throw e}}}(),yI=He(vI),xI="production"===process.env.NODE_ENV;function II(e,t){if(!xI){var n="Warning: "+t;"undefined"!=typeof console&&console.warn(n);try{throw Error(n)}catch(e){}}}function wI(e){return hI(e,4)}function CI(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}function EI(e){return"symbol"==typeof e||iy(e)&&"[object Symbol]"==ny(e)}function AI(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(AI.Cache||My),n}AI.Cache=My;var SI=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,TI=/\\(\\)?/g,OI=function(e){var t=AI(e,function(e){return 500===n.size&&n.clear(),e}),n=t.cache;return t}(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(SI,function(e,n,r,o){t.push(r?o.replace(TI,"$1"):n||e)}),t});function NI(e){if("string"==typeof e||EI(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}var PI=Jv?Jv.prototype:void 0,RI=PI?PI.toString:void 0;function kI(e){if("string"==typeof e)return e;if(Jy(e))return CI(e,kI)+"";if(EI(e))return RI?RI.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function LI(e){return Jy(e)?CI(e,NI):EI(e)?[e]:Sx(OI(function(e){return null==e?"":kI(e)}(e)))}function BI(){return BI=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},BI.apply(this,arguments)}function DI(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}var GI=h(void 0);GI.displayName="FormikContext";var MI=GI.Provider;function jI(){var e=p(GI);return e||("production"!==process.env.NODE_ENV?II(0,"Formik context is undefined, please verify you are calling useFormikContext() as child of a <Formik> component."):II()),e}GI.Consumer;var VI=function(e){return"function"==typeof e},FI=function(e){return null!==e&&"object"==typeof e},_I=function(e){return String(Math.floor(Number(e)))===e},HI=function(e){return"[object String]"===Object.prototype.toString.call(e)},WI=function(e){return 0===x.count(e)},XI=function(e){return FI(e)&&VI(e.then)};function zI(e,t,n,r){void 0===r&&(r=0);for(var o=LI(t);e&&r<o.length;)e=e[o[r++]];return r===o.length||e?void 0===e?n:e:n}function ZI(e,t,n){for(var r=wI(e),o=r,i=0,a=LI(t);i<a.length-1;i++){var s=a[i],l=zI(e,a.slice(0,i+1));if(l&&(FI(l)||Array.isArray(l)))o=o[s]=wI(l);else{var c=a[i+1];o=o[s]=_I(c)&&Number(c)>=0?[]:{}}}return(0===i?e:o)[a[i]]===n?e:(void 0===n?delete o[a[i]]:o[a[i]]=n,0===i&&void 0===n&&delete r[a[i]],r)}function YI(e,t,n,r){void 0===n&&(n=new WeakMap),void 0===r&&(r={});for(var o=0,i=Object.keys(e);o<i.length;o++){var a=i[o],s=e[a];FI(s)?n.get(s)||(n.set(s,!0),r[a]=Array.isArray(s)?[]:{},YI(s,t,n,r[a])):r[a]=t}return r}var UI={},JI={};function $I(e){var t=e.validateOnChange,n=void 0===t||t,r=e.validateOnBlur,o=void 0===r||r,i=e.validateOnMount,d=void 0!==i&&i,p=e.isInitialValid,f=e.enableReinitialize,h=void 0!==f&&f,m=e.onSubmit,g=DI(e,["validateOnChange","validateOnBlur","validateOnMount","isInitialValid","enableReinitialize","onSubmit"]),b=BI({validateOnChange:n,validateOnBlur:o,validateOnMount:d,onSubmit:m},g),v=s(b.initialValues),y=s(b.initialErrors||UI),x=s(b.initialTouched||JI),I=s(b.initialStatus),w=s(!1),C=s({});"production"!==process.env.NODE_ENV&&a(function(){void 0!==p&&("production"!==process.env.NODE_ENV?II(0,"isInitialValid has been deprecated and will be removed in future versions of Formik. Please use initialErrors or validateOnMount instead."):II())},[]),a(function(){return w.current=!0,function(){w.current=!1}},[]);var E=c(0)[1],A=s({values:bI(b.initialValues),errors:bI(b.initialErrors)||UI,touched:bI(b.initialTouched)||JI,status:bI(b.initialStatus),isSubmitting:!1,isValidating:!1,submitCount:0}),S=A.current,T=u(function(e){var t=A.current;A.current=function(e,t){switch(t.type){case"SET_VALUES":return BI({},e,{values:t.payload});case"SET_TOUCHED":return BI({},e,{touched:t.payload});case"SET_ERRORS":return yI(e.errors,t.payload)?e:BI({},e,{errors:t.payload});case"SET_STATUS":return BI({},e,{status:t.payload});case"SET_ISSUBMITTING":return BI({},e,{isSubmitting:t.payload});case"SET_ISVALIDATING":return BI({},e,{isValidating:t.payload});case"SET_FIELD_VALUE":return BI({},e,{values:ZI(e.values,t.payload.field,t.payload.value)});case"SET_FIELD_TOUCHED":return BI({},e,{touched:ZI(e.touched,t.payload.field,t.payload.value)});case"SET_FIELD_ERROR":return BI({},e,{errors:ZI(e.errors,t.payload.field,t.payload.value)});case"RESET_FORM":return BI({},e,t.payload);case"SET_FORMIK_STATE":return t.payload(e);case"SUBMIT_ATTEMPT":return BI({},e,{touched:YI(e.values,!0),isSubmitting:!0,submitCount:e.submitCount+1});case"SUBMIT_FAILURE":case"SUBMIT_SUCCESS":return BI({},e,{isSubmitting:!1});default:return e}}(t,e),t!==A.current&&E(function(e){return e+1})},[]),O=u(function(e,t){return new Promise(function(n,r){var o=b.validate(e,t);null==o?n(UI):XI(o)?o.then(function(e){n(e||UI)},function(e){"production"!==process.env.NODE_ENV&&console.warn("Warning: An unhandled error was caught during validation in <Formik validate />",e),r(e)}):n(o)})},[b.validate]),N=u(function(e,t){var n=b.validationSchema,r=VI(n)?n(t):n,o=t&&r.validateAt?r.validateAt(t,e):function(e,t,n){void 0===n&&(n=!1);var r=qI(e);return t[n?"validateSync":"validate"](r,{abortEarly:!1,context:r})}(e,r);return new Promise(function(e,t){o.then(function(){e(UI)},function(n){"ValidationError"===n.name?e(function(e){var t={};if(e.inner){if(0===e.inner.length)return ZI(t,e.path,e.message);var n=e.inner,r=Array.isArray(n),o=0;for(n=r?n:n[Symbol.iterator]();;){var i;if(r){if(o>=n.length)break;i=n[o++]}else{if((o=n.next()).done)break;i=o.value}var a=i;zI(t,a.path)||(t=ZI(t,a.path,a.message))}}return t}(n)):("production"!==process.env.NODE_ENV&&console.warn("Warning: An unhandled error was caught during validation in <Formik validationSchema />",n),t(n))})})},[b.validationSchema]),P=u(function(e,t){return new Promise(function(n){return n(C.current[e].validate(t))})},[]),R=u(function(e){var t=Object.keys(C.current).filter(function(e){return VI(C.current[e].validate)}),n=t.length>0?t.map(function(t){return P(t,zI(e,t))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(n).then(function(e){return e.reduce(function(e,n,r){return"DO_NOT_DELETE_YOU_WILL_BE_FIRED"===n||n&&(e=ZI(e,t[r],n)),e},{})})},[P]),k=u(function(e){return Promise.all([R(e),b.validationSchema?N(e):{},b.validate?O(e):{}]).then(function(e){var t=e[0],n=e[1],r=e[2];return zv.all([t,n,r],{arrayMerge:ew})})},[b.validate,b.validationSchema,R,O,N]),L=nw(function(e){return void 0===e&&(e=S.values),T({type:"SET_ISVALIDATING",payload:!0}),k(e).then(function(e){return w.current&&(T({type:"SET_ISVALIDATING",payload:!1}),T({type:"SET_ERRORS",payload:e})),e})});a(function(){d&&!0===w.current&&yI(v.current,b.initialValues)&&L(v.current)},[d,L]);var B=u(function(e){var t=e&&e.values?e.values:v.current,n=e&&e.errors?e.errors:y.current?y.current:b.initialErrors||{},r=e&&e.touched?e.touched:x.current?x.current:b.initialTouched||{},o=e&&e.status?e.status:I.current?I.current:b.initialStatus;v.current=t,y.current=n,x.current=r,I.current=o;var i=function(){T({type:"RESET_FORM",payload:{isSubmitting:!!e&&!!e.isSubmitting,errors:n,touched:r,status:o,values:t,isValidating:!!e&&!!e.isValidating,submitCount:e&&e.submitCount&&"number"==typeof e.submitCount?e.submitCount:0}})};if(b.onReset){var a=b.onReset(S.values,q);XI(a)?a.then(i):i()}else i()},[b.initialErrors,b.initialStatus,b.initialTouched,b.onReset]);a(function(){!0!==w.current||yI(v.current,b.initialValues)||h&&(v.current=b.initialValues,B(),d&&L(v.current))},[h,b.initialValues,B,d,L]),a(function(){h&&!0===w.current&&!yI(y.current,b.initialErrors)&&(y.current=b.initialErrors||UI,T({type:"SET_ERRORS",payload:b.initialErrors||UI}))},[h,b.initialErrors]),a(function(){h&&!0===w.current&&!yI(x.current,b.initialTouched)&&(x.current=b.initialTouched||JI,T({type:"SET_TOUCHED",payload:b.initialTouched||JI}))},[h,b.initialTouched]),a(function(){h&&!0===w.current&&!yI(I.current,b.initialStatus)&&(I.current=b.initialStatus,T({type:"SET_STATUS",payload:b.initialStatus}))},[h,b.initialStatus,b.initialTouched]);var D=nw(function(e){if(C.current[e]&&VI(C.current[e].validate)){var t=zI(S.values,e),n=C.current[e].validate(t);return XI(n)?(T({type:"SET_ISVALIDATING",payload:!0}),n.then(function(e){return e}).then(function(t){T({type:"SET_FIELD_ERROR",payload:{field:e,value:t}}),T({type:"SET_ISVALIDATING",payload:!1})})):(T({type:"SET_FIELD_ERROR",payload:{field:e,value:n}}),Promise.resolve(n))}return b.validationSchema?(T({type:"SET_ISVALIDATING",payload:!0}),N(S.values,e).then(function(e){return e}).then(function(t){T({type:"SET_FIELD_ERROR",payload:{field:e,value:zI(t,e)}}),T({type:"SET_ISVALIDATING",payload:!1})})):Promise.resolve()}),G=u(function(e,t){var n=t.validate;C.current[e]={validate:n}},[]),M=u(function(e){delete C.current[e]},[]),j=nw(function(e,t){return T({type:"SET_TOUCHED",payload:e}),(void 0===t?o:t)?L(S.values):Promise.resolve()}),V=u(function(e){T({type:"SET_ERRORS",payload:e})},[]),F=nw(function(e,t){var r=VI(e)?e(S.values):e;return T({type:"SET_VALUES",payload:r}),(void 0===t?n:t)?L(r):Promise.resolve()}),_=u(function(e,t){T({type:"SET_FIELD_ERROR",payload:{field:e,value:t}})},[]),H=nw(function(e,t,r){var o=VI(t)?t(zI(S.values,e)):t;return T({type:"SET_FIELD_VALUE",payload:{field:e,value:o}}),(void 0===r?n:r)?L(ZI(S.values,e,o)):Promise.resolve()}),W=u(function(e,t){var n,r=t,o=e;if(!HI(e)){e.persist&&e.persist();var i=e.target?e.target:e.currentTarget,a=i.type,s=i.name,l=i.id,c=i.value,u=i.checked,d=i.outerHTML,p=i.options,f=i.multiple;(r=t||(s||l))||"production"===process.env.NODE_ENV||QI({htmlContent:d,documentationAnchorLink:"handlechange-e-reactchangeeventany--void",handlerName:"handleChange"}),o=/number|range/.test(a)?(n=parseFloat(c),isNaN(n)?"":n):/checkbox/.test(a)?function(e,t,n){if("boolean"==typeof e)return Boolean(t);var r=[],o=!1,i=-1;if(Array.isArray(e))r=e,o=(i=e.indexOf(n))>=0;else if(!n||"true"==n||"false"==n)return Boolean(t);if(t&&n&&!o)return r.concat(n);if(!o)return r;return r.slice(0,i).concat(r.slice(i+1))}(zI(S.values,r),u,c):p&&f?function(e){return Array.from(e).filter(function(e){return e.selected}).map(function(e){return e.value})}(p):c}r&&H(r,o)},[H,S.values]),X=nw(function(e){if(HI(e))return function(t){return W(t,e)};W(e)}),z=nw(function(e,t,n){return void 0===t&&(t=!0),T({type:"SET_FIELD_TOUCHED",payload:{field:e,value:t}}),(void 0===n?o:n)?L(S.values):Promise.resolve()}),Z=u(function(e,t){e.persist&&e.persist();var n=e.target,r=n.name,o=n.id,i=n.outerHTML,a=t||(r||o);a||"production"===process.env.NODE_ENV||QI({htmlContent:i,documentationAnchorLink:"handleblur-e-any--void",handlerName:"handleBlur"}),z(a,!0)},[z]),Y=nw(function(e){if(HI(e))return function(t){return Z(t,e)};Z(e)}),U=u(function(e){VI(e)?T({type:"SET_FORMIK_STATE",payload:e}):T({type:"SET_FORMIK_STATE",payload:function(){return e}})},[]),J=u(function(e){T({type:"SET_STATUS",payload:e})},[]),$=u(function(e){T({type:"SET_ISSUBMITTING",payload:e})},[]),K=nw(function(){return T({type:"SUBMIT_ATTEMPT"}),L().then(function(e){var t=e instanceof Error;if(!t&&0===Object.keys(e).length){var n;try{if(void 0===(n=ee()))return}catch(e){throw e}return Promise.resolve(n).then(function(e){return w.current&&T({type:"SUBMIT_SUCCESS"}),e}).catch(function(e){if(w.current)throw T({type:"SUBMIT_FAILURE"}),e})}if(w.current&&(T({type:"SUBMIT_FAILURE"}),t))throw e})}),Q=nw(function(e){if(e&&e.preventDefault&&VI(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&VI(e.stopPropagation)&&e.stopPropagation(),"production"!==process.env.NODE_ENV&&"undefined"!=typeof document){var t=function(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}();null!==t&&t instanceof HTMLButtonElement&&(t.attributes&&t.attributes.getNamedItem("type")||("production"!==process.env.NODE_ENV?II(0,'You submitted a Formik form using a button with an unspecified `type` attribute. Most browsers default button elements to `type="submit"`. If this is not a submit button, please add `type="button"`.'):II()))}K().catch(function(e){console.warn("Warning: An unhandled error was caught from submitForm()",e)})}),q={resetForm:B,validateForm:L,validateField:D,setErrors:V,setFieldError:_,setFieldTouched:z,setFieldValue:H,setStatus:J,setSubmitting:$,setTouched:j,setValues:F,setFormikState:U,submitForm:K},ee=nw(function(){return m(S.values,q)}),te=nw(function(e){e&&e.preventDefault&&VI(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&VI(e.stopPropagation)&&e.stopPropagation(),B()}),ne=u(function(e){return{value:zI(S.values,e),error:zI(S.errors,e),touched:!!zI(S.touched,e),initialValue:zI(v.current,e),initialTouched:!!zI(x.current,e),initialError:zI(y.current,e)}},[S.errors,S.touched,S.values]),re=u(function(e){return{setValue:function(t,n){return H(e,t,n)},setTouched:function(t,n){return z(e,t,n)},setError:function(t){return _(e,t)}}},[H,z,_]),oe=u(function(e){var t=FI(e),n=t?e.name:e,r=zI(S.values,n),o={name:n,value:r,onChange:X,onBlur:Y};if(t){var i=e.type,a=e.value,s=e.as,l=e.multiple;"checkbox"===i?void 0===a?o.checked=!!r:(o.checked=!(!Array.isArray(r)||!~r.indexOf(a)),o.value=a):"radio"===i?(o.checked=r===a,o.value=a):"select"===s&&l&&(o.value=o.value||[],o.multiple=!0)}return o},[Y,X,S.values]),ie=l(function(){return!yI(v.current,S.values)},[v.current,S.values]),ae=l(function(){return void 0!==p?ie?S.errors&&0===Object.keys(S.errors).length:!1!==p&&VI(p)?p(b):p:S.errors&&0===Object.keys(S.errors).length},[p,ie,S.errors,b]);return BI({},S,{initialValues:v.current,initialErrors:y.current,initialTouched:x.current,initialStatus:I.current,handleBlur:Y,handleChange:X,handleReset:te,handleSubmit:Q,resetForm:B,setErrors:V,setFormikState:U,setFieldTouched:z,setFieldValue:H,setFieldError:_,setStatus:J,setSubmitting:$,setTouched:j,setValues:F,submitForm:K,validateForm:L,validateField:D,isValid:ae,dirty:ie,unregisterField:M,registerField:G,getFieldProps:oe,getFieldMeta:ne,getFieldHelpers:re,validateOnBlur:o,validateOnChange:n,validateOnMount:d})}function KI(e){var t=$I(e),n=e.component,r=e.children,o=e.render,i=e.innerRef;return y(i,function(){return t}),"production"!==process.env.NODE_ENV&&a(function(){e.render&&("production"!==process.env.NODE_ENV?II(0,"<Formik render> has been deprecated and will be removed in future versions of Formik. Please use a child callback function instead. To get rid of this warning, replace <Formik render={(props) => ...} /> with <Formik>{(props) => ...}</Formik>"):II())},[]),v(MI,{value:t},n?v(n,t):o?o(t):r?VI(r)?r(t):WI(r)?null:x.only(r):null)}function QI(e){var t=e.htmlContent,n=e.documentationAnchorLink,r=e.handlerName;console.warn("Warning: Formik called `"+r+"`, but you forgot to pass an `id` or `name` attribute to your input:\n "+t+"\n Formik cannot determine which value to update. For more info see https://formik.org/docs/api/formik#"+n+"\n ")}function qI(e){var t=Array.isArray(e)?[]:{};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=String(n);!0===Array.isArray(e[r])?t[r]=e[r].map(function(e){return!0===Array.isArray(e)||dy(e)?qI(e):""!==e?e:void 0}):dy(e[r])?t[r]=qI(e[r]):t[r]=""!==e[r]?e[r]:void 0}return t}function ew(e,t,n){var r=e.slice();return t.forEach(function(t,o){if(void 0===r[o]){var i=!1!==n.clone&&n.isMergeableObject(t);r[o]=i?zv(Array.isArray(t)?[]:{},t,n):t}else n.isMergeableObject(t)?r[o]=zv(e[o],t,n):-1===e.indexOf(t)&&r.push(t)}),r}var tw="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?f:a;function nw(e){var t=s(e);return tw(function(){t.current=e}),u(function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.current.apply(void 0,n)},[])}function rw(e){var t=e.validate,n=e.name,r=e.render,o=e.children,i=e.as,s=e.component,l=e.className,c=DI(e,["validate","name","render","children","as","component","className"]),u=DI(jI(),["validate","validationSchema"]);"production"!==process.env.NODE_ENV&&a(function(){r&&("production"!==process.env.NODE_ENV?II(0,'<Field render> has been deprecated and will be removed in future versions of Formik. Please use a child callback function instead. To get rid of this warning, replace <Field name="'+n+'" render={({field, form}) => ...} /> with <Field name="'+n+'">{({field, form, meta}) => ...}</Field>'):II()),i&&o&&VI(o)&&("production"!==process.env.NODE_ENV?II(0,"You should not use <Field as> and <Field children> as a function in the same <Field> component; <Field as> will be ignored."):II()),s&&o&&VI(o)&&("production"!==process.env.NODE_ENV?II(0,"You should not use <Field component> and <Field children> as a function in the same <Field> component; <Field component> will be ignored."):II()),r&&o&&!WI(o)&&("production"!==process.env.NODE_ENV?II(0,"You should not use <Field render> and <Field children> in the same <Field> component; <Field children> will be ignored"):II())},[]);var d=u.registerField,p=u.unregisterField;a(function(){return d(n,{validate:t}),function(){p(n)}},[d,p,n,t]);var f=u.getFieldProps(BI({name:n},c)),h=u.getFieldMeta(n),m={field:f,form:u};if(r)return r(BI({},m,{meta:h}));if(VI(o))return o(BI({},m,{meta:h}));if(s){if("string"==typeof s){var g=c.innerRef,b=DI(c,["innerRef"]);return v(s,BI({ref:g},f,b,{className:l}),o)}return v(s,BI({field:f,form:u},c,{className:l}),o)}var y=i||"input";if("string"==typeof y){var x=c.innerRef,I=DI(c,["innerRef"]);return v(y,BI({ref:x},f,I,{className:l}),o)}return v(y,BI({},f,c,{className:l}),o)}var ow=i(function(e,t){var n=e.action,r=DI(e,["action"]),o=null!=n?n:"#",i=jI(),a=i.handleReset,s=i.handleSubmit;return v("form",BI({onSubmit:s,ref:t,onReset:a,action:o},r))});ow.displayName="Form";const iw=/\D/g,aw=({name:t,errors:n,touched:r})=>{const o=n[t];return r[t]&&"string"==typeof o?e(Ln,{className:"mt-1 text-text-critical",children:o}):null},sw=({children:n,required:r=!1})=>t("label",{className:"mb-1 block text-sm font-medium text-text",children:[n,r&&e("span",{className:"text-text-critical",children:"*"})]}),lw=({InputComponent:n,AddressAutocomplete:r,initialValues:o=Mv,inputList:i=jv,formSchema:a=Vv,onSubmit:s,lookupAddress:l,buttonText:u="See plans",buttonClassName:d,bottomTextDisclaimer:p,hideLegalCopy:f=!1,checkBoxEnabled:h=!0,copyRightLinks:m,className:g,onAddressEvent:b})=>{const v=null!=n?n:_r,[y,x]=c([]),[I,w]=c(!1),[C,E]=c([]),[A,S]=c(),[T,O]=c(!1),N={fontSize:"1.125rem",lineHeight:"1.75rem",fontWeight:500};return e(KI,{initialValues:o,validationSchema:a,onSubmit:async(e,t)=>{await s(e),t.resetForm({values:o}),S(void 0),E([]),O(!1)},children:({errors:n,touched:o,isSubmitting:a,submitCount:s,setFieldValue:c,values:P})=>{var R,k,L;return t(ow,{className:je("fiber-form w-full",g),children:[t("div",{className:"flex flex-col gap-5 sm:flex-row",children:[i.firstName&&t("div",{className:"flex-1",children:[e(sw,{required:!0,children:"First name"}),e(rw,{as:v,style:N,name:"firstName",placeholder:null!==(R=i.firstName.placeholder)&&void 0!==R?R:"First name"}),e(aw,{name:"firstName",errors:n,touched:o})]}),i.lastName&&t("div",{className:"flex-1",children:[e(sw,{required:!0,children:"Last name"}),e(rw,{as:v,style:N,name:"lastName",placeholder:null!==(k=i.lastName.placeholder)&&void 0!==k?k:"Last name"}),e(aw,{name:"lastName",errors:n,touched:o})]})]}),i.address&&t("div",{className:"mt-8 flex flex-col gap-5 sm:flex-row",children:[t("div",{className:"sm:flex-[3]",children:[e(sw,{required:!0,children:"Address"}),e(rw,{name:"address",children:({field:t})=>e(r,{value:t.value||"",placeholder:"Address, city, state, ZIP",onChange:e=>{c("address",e,!1),c("isManualAddress",!0,!1),(async(e,t)=>{if(null==b||b(e),!l||e.length<3)return x([]),void w(!1);try{const n=await l(e,t);x(n),w(n.length>0)}catch(e){x([]),w(!1)}})(e,P)},onSelectAddress:e=>{var t,n;if(!e)return;const r=(null!==(t=e.addressToSend.units)&&void 0!==t?t:[]).filter(e=>e.addressLine2);c("address",e.address),c("addressToSend",e.addressToSend),c("unit",null!==(n=e.unit)&&void 0!==n?n:"",!1),c("isManualAddress",!1,!1),c("hasUnits",r.length>0,!1),E([...r.map(e=>{var t;return{label:e.addressLine2,value:null!==(t=e.dfAddressId)&&void 0!==t?t:"",data:e}}),...r.length>0?[{label:"I don't see my unit",value:"manual"},{label:"I don't have a unit",value:"no-unit"}]:[]])},onKeyDown:e=>{"Enter"===e.key&&e.preventDefault()}})}),e(aw,{name:"address",errors:n,touched:o}),I&&e("ul",{className:"shadow-dark-drop mt-2 max-h-56 overflow-auto rounded-lg border border-input-border bg-white",children:y.map((n,r)=>{var o;return e("li",{children:t("button",{type:"button",className:"body2 flex w-full items-center gap-2 px-4 py-3 text-left hover:bg-bg-surface-hover",onClick:()=>((e,t)=>{var n,r,o;const i=[e.addressLine1,e.city,e.state,e.postalCode].filter(Boolean).join(", "),a=(null!==(n=e.units)&&void 0!==n?n:[]).filter(e=>e.addressLine2);t("address",i),t("addressToSend",e),t("zip",null!==(r=e.postalCode)&&void 0!==r?r:"",!1),t("isManualAddress",!1,!1),t("hasUnits",a.length>0,!1),t("unit",a.length>0?"":null!==(o=e.addressLine2)&&void 0!==o?o:"",!1),x([]),w(!1),S(void 0),E([...a.map(e=>{var t;return{label:e.addressLine2,value:null!==(t=e.dfAddressId)&&void 0!==t?t:"",data:e}}),...a.length>0?[{label:"I don't see my unit",value:"manual"},{label:"I don't have a unit",value:"no-unit"}]:[]])})(n,c),children:[e(kn,{name:"location_on",size:24,fill:1,className:"text-green-600"}),[n.addressLine1,n.city,n.state,n.postalCode].filter(Boolean).join(", ")]})},`${null!==(o=n.dfAddressId)&&void 0!==o?o:r}-${n.addressLine1}`)})})]}),t("div",{className:"w-full sm:w-[216px] sm:flex-none",children:[e("div",{className:"mb-1 hidden h-[20px] sm:block"}),e(du,{options:C,value:A,placeholder:"Apt, Suite, etc.",maxMenuHeight:200,components:{DropdownIndicator:()=>e("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:e("path",{d:"M5 7.5L10 12.5L15 7.5",stroke:"#1B2A4E",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})},styles:{option:e=>({...e,...N}),singleValue:e=>({...e,...N}),placeholder:e=>({...e,...N}),input:e=>({...e,...N}),indicatorsContainer:e=>({...e,alignItems:"center"})},className:"w-full sm:w-[216px]",controlClassName:"!h-[56px] !min-h-[56px] !gap-2 !rounded-[12px] !border !border-solid !border-[#CECECE] !bg-white !pl-4 !pr-4 !flex-nowrap [&>div:first-child]:!overflow-visible [&>div:first-child>div]:!max-w-none [&>div:first-child>div]:!overflow-visible [&>div:first-child>div]:!whitespace-nowrap",onChange:e=>{const t=e;if(t){if("manual"===t.value)return O(!0),c("hasUnits",!0,!1),c("unit","",!1),c("addressToSend",{...P.addressToSend,addressLine2:"",dfAddressId:void 0}),void S(t);if("no-unit"===t.value)return O(!1),c("unit","",!1),c("hasUnits",!1,!1),c("addressToSend",{...P.addressToSend,addressLine2:"",dfAddressId:void 0}),void S(t);O(!1),S(t),c("unit",t.label),c("hasUnits",!1,!1),c("addressToSend",{...P.addressToSend,addressLine2:t.label,dfAddressId:t.value})}}}),!T&&s>0&&null!==(L=P.hasUnits)&&void 0!==L&&L&&!A&&"string"==typeof n.unit&&e("span",{className:"mt-1 block text-sm font-medium text-red-500",children:n.unit}),T&&t("div",{className:"mt-5 w-full sm:w-[216px]",children:[t("label",{className:"mb-1 block text-sm font-medium text-neutral-900",children:["Unit",e("span",{className:"text-red-500",children:"*"})]}),e(rw,{as:v,style:N,name:"unit",placeholder:"Please enter your unit"}),s>0&&"string"==typeof n.unit&&e("span",{className:"mt-1 block text-sm font-medium text-red-500",children:n.unit})]})]})]}),t("div",{className:"mt-8 flex flex-col gap-5 sm:flex-row",children:[i.phoneNumber&&t("div",{className:"flex-1",children:[e(sw,{required:!0,children:"Phone number"}),e(rw,{name:"phone",children:({field:t,form:n})=>e(v,{...t,type:"tel",style:N,placeholder:"(555) 555-5555",onChange:e=>n.setFieldValue("phone",(e=>{const t=e.replace(iw,"").slice(0,10);return t.length<4?t:t.length<7?`(${t.slice(0,3)}) ${t.slice(3)}`:`(${t.slice(0,3)}) ${t.slice(3,6)}-${t.slice(6)}`})(e.currentTarget.value))})}),e(aw,{name:"phone",errors:n,touched:o})]}),i.emailAddress&&t("div",{className:"flex-1",children:[e(sw,{required:!0,children:"Email address"}),e(rw,{as:v,style:N,name:"email",type:"email",placeholder:"john.doe@example.com"}),e(aw,{name:"email",errors:n,touched:o})]})]}),t("div",{className:"mt-8 flex flex-col gap-5 sm:flex-row",children:[i.referralCode&&t("div",{className:"flex-1",children:[e(sw,{children:"Referral code"}),e(rw,{as:v,style:N,name:"referralCode",placeholder:"Optional"}),e(aw,{name:"referralCode",errors:n,touched:o})]}),i.notes&&t("div",{className:"flex-1",children:[e(sw,{children:"Notes or comments"}),e(rw,{as:v,style:N,name:"notes",placeholder:"Optional"})]})]}),h&&!f&&e("div",{className:"mt-16 text-neutral-600",children:e(rw,{name:"isMarketingCom",children:({field:n})=>t("div",{className:"mb-7 mt-4 flex items-center gap-1 pl-1",children:[e("input",{type:"checkbox",className:"h-4 w-4 cursor-pointer align-middle accent-[#1d9d77]",...n,checked:n.value,id:"recieve-message-checkbox"}),e("label",{htmlFor:"recieve-message-checkbox",className:"mx-1 mb-3 mr-0 cursor-pointer align-middle text-micro font-medium leading-6 text-neutral-600",children:"Receive text messages for installation, account updates, and marketing communications."}),e(vb,{tooltipMsg:"By opting in to receive text messages, you will receive automated text message related to service notifications including installations, service changes and updates, billing information, marketing offers from Kinetic including cart reminders. Consent is not a condition of purchase. Reply STOP at any time to unsubscribe. Message frequency varies. Msg & data rates may apply. To contact our Customer Support via email, chat, or phone, visit our Support page below.",className:"fiber-form-tooltip ff-NR mt-0",children:e(kn,{name:"info",size:20,className:"tooltip",style:{verticalAlign:"top"}})})]})})}),!f&&e(Ln,{className:"body3 my-[32px] text-neutral-600 lg:mb-[64px] lg:mt-[32px]",children:"By submitting this form you consent to receive marketing messages from Kinetic by text, email or phone to the contact provided. Consent is not a condition of purchase. Msg & data rates may apply. Msg frequency varies. Unsubscribe at any time by replying STOP or clicking the unsubscribe link."}),p&&!f&&e(Ln,{className:"mt-2 text-center text-text-secondary",children:p}),m&&!f&&e("ul",{className:"mt-16 flex list-disc justify-center gap-8 text-text-secondary",children:m.map(t=>e("li",{children:e("a",{href:t.href,target:"_blank",rel:"noreferrer",className:"underline",children:t.title})},t.title))}),e("div",{className:"mt-8 flex items-center justify-center lg:mt-[64px]",children:e(Vr,{type:"submit",disabled:a,"aria-busy":a,className:je("flex h-16 w-[198px] max-w-full cursor-pointer items-center justify-center overflow-hidden rounded-button border border-brand bg-bg-fill-brand px-[60px] py-4 text-center font-black leading-7 text-text-brand-on-bg-fill no-underline transition-colors duration-300 ease-in-out enabled:hover:border-[var(--color-bg-fill-brand-hover)] enabled:hover:bg-bg-fill-brand-hover focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-border-brand disabled:cursor-not-allowed",a&&"opacity-75",d),children:t("span",{className:"relative flex w-full items-center justify-center",children:[a&&e(zr,{size:"small",className:"!h-5 !w-5"}),e("span",{children:u})]})})})]})}})},cw=n=>{const{cartTotalText:r,onClick:o,isOpen:i,...a}=n;return e(Vr,{className:je("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 border-2 border-border-secondary-on-bg-fill bg-bg text-text focus:ring-bg-surface-inverse","btn-small w-full border-border pl-6 pr-4 md:btn-medium"),onClick:o,...a,children:t("div",{className:"flex w-full items-center justify-center gap-2",children:[t("div",{className:"flex flex-col items-center justify-center",children:[e(Ln,{className:"label4 -mb-1 text-text",children:"View cart"}),e(Ln,{className:"label3 text-text md:label1","data-testid":"cart-total",children:r})]}),e(kn,{name:"keyboard_arrow_up",size:24,fill:0,className:je("h-6 w-6 transition-transform",i?"rotate-180":"rotate-0")})]})})};function uw(e){const{itemCount:t,cardOffsetPercentage:n=105,swipeThreshold:r=.15,mobileBreakpoint:o=768,autoScrollInterval:i=8e3,enableAutoScroll:l=!0}=e,[d,p]=c(0),[f,h]=c(0),[m,g]=c(!1),[b,v]=c("undefined"!=typeof window?window.innerWidth:1),[y,x]=c(!1),I=s(null),w=s(0),C=s(null),E={CARD_OFFSET_PERCENTAGE:n,SWIPE_THRESHOLD:r,MOBILE_BREAKPOINT:o,AUTO_SCROLL_INTERVAL:i};a(()=>{const e=()=>{var e;v((null===(e=C.current)||void 0===e?void 0:e.offsetWidth)||window.innerWidth)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]);const A=u(()=>{0!==t&&p(e=>(e+1)%t)},[t]),S=u(()=>{0!==t&&p(e=>0===e?t-1:e-1)},[t]),T=u(e=>{e<0||e>=t||p(e)},[t]),O=u(e=>{w.current=e.touches[0].clientX,g(!0),I.current&&clearInterval(I.current)},[]),N=u(e=>{if(!m)return;const t=e.touches[0].clientX-w.current;h(t)},[m]),P=u(()=>{g(!1);const e=b*r;f>e?S():f<-e&&A(),h(0),l&&i>0&&(I.current=setInterval(()=>{A()},i))},[f,b,r,S,A,l,i]);return a(()=>{const e=()=>{x(window.innerWidth<o)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[o]),a(()=>{if(l&&0!==t&&0!==i)return I.current=setInterval(()=>{A()},i),()=>{I.current&&clearInterval(I.current)}},[A,t,l,i]),{currentIndex:d,swipeOffset:f,isSwiping:m,isMobile:y,containerWidth:b,containerRef:C,nextSlide:A,prevSlide:S,goToSlide:T,handleTouchStart:O,handleTouchMove:N,handleTouchEnd:P,constants:E}}export{Ti as Accordion,Wr as AddressAutocomplete,pu as AlertCard,ub as AnimationWrapper,db as BrandButton,Vr as Button,Zr as CallButton,Oi as Checkbox,Bn as Checklist,Si as Collapse,hu as DEFAULT_BUTTON_ANIMATION_TYPE,pb as Divider,lw as FiberForm,Xr as Image,_r as Input,Fr as InputField,Mn as Link,Rn as List,Pn as ListItem,kn as MaterialIcon,Ai as Modal,Sr as NextImage,bb as PageSkeleton,fb as RadioButton,Ib as RichTextBasic,hb as SeeMore,du as Select,mb as SelectPlanButton,gb as Skeleton,zr as Spinner,Ln as Text,_r as TextInput,vb as Tooltip,Or as VideoLink,cw as ViewCartButton,S as clsx,je as cx,Vv as fiberFormAddressCollectionFormSchema,Mv as fiberFormInputInitialValues,jv as fiberFormInputList,Yr as useBodyScrollLock,uw as useCarouselSwipe};
51
51
  //# sourceMappingURL=index.esm.js.map