@biznext-ui/react 0.1.2 → 0.1.3
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/LICENSE.txt +1 -1
- package/dist/index.es.d.ts +10 -37
- package/dist/index.es.js +222 -223
- package/dist/index.umd.js +3 -3
- package/package.json +1 -1
package/dist/index.umd.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Copyright (c) 2018 Jed Watson.
|
|
3
3
|
Licensed under the MIT License (MIT), see
|
|
4
4
|
http://jedwatson.github.io/classnames
|
|
5
|
-
*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var o="",s=0;s<arguments.length;s++){var u=arguments[s];u&&(o=r(o,i(u)))}return o}function i(o){if(typeof o=="string"||typeof o=="number")return o;if(typeof o!="object")return"";if(Array.isArray(o))return n.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var s="";for(var u in o)t.call(o,u)&&o[u]&&(s=r(s,u));return s}function r(o,s){return s?o?o+" "+s:o+s:o}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(qr);var Hl=qr.exports;const It=$r(Hl);var eo={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},to=x.createContext&&x.createContext(eo),kl=["attr","size","title"];function zl(e,t){if(e==null)return{};var n=jl(e,t),i,r;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)i=o[r],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(n[i]=e[i])}return n}function jl(e,t){if(e==null)return{};var n={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){if(t.indexOf(i)>=0)continue;n[i]=e[i]}return n}function un(){return un=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},un.apply(this,arguments)}function no(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,i)}return n}function ln(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?no(Object(n),!0).forEach(function(i){Yl(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):no(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function Yl(e,t,n){return t=Jl(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Jl(e){var t=Ul(e,"string");return typeof t=="symbol"?t:t+""}function Ul(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function io(e){return e&&e.map((t,n)=>x.createElement(t.tag,ln({key:n},t.attr),io(t.child)))}function dt(e){return t=>x.createElement(_l,un({attr:ln({},e.attr)},t),io(e.child))}function _l(e){var t=n=>{var{attr:i,size:r,title:o}=e,s=zl(e,kl),u=r||n.size||"1em",a;return n.className&&(a=n.className),e.className&&(a=(a?a+" ":"")+e.className),x.createElement("svg",un({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,i,s,{className:a,style:ln(ln({color:e.color||n.color},n.style),e.style),height:u,width:u,xmlns:"http://www.w3.org/2000/svg"}),o&&x.createElement("title",null,o),e.children)};return to!==void 0?x.createElement(to.Consumer,null,n=>t(n)):t(eo)}function Ql(e){return dt({tag:"svg",attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M12 0C5.383 0 0 5.383 0 12s5.383 12 12 12 12-5.383 12-12h-2.7c0 5.128-4.172 9.3-9.3 9.3-5.128 0-9.3-4.172-9.3-9.3 0-5.128 4.172-9.3 9.3-9.3V0Zm7.4 2.583-7.505 9.371L8.388 9.08l-2.002 2.436 4.741 3.888a1.573 1.573 0 0 0 2.231-.233l8.504-10.617L19.4 2.583Z"},child:[]}]})(e)}function Kl(e){return dt({tag:"svg",attr:{viewBox:"0 0 15 15",fill:"none"},child:[{tag:"path",attr:{fillRule:"evenodd",clipRule:"evenodd",d:"M0.877075 7.49988C0.877075 3.84219 3.84222 0.877045 7.49991 0.877045C11.1576 0.877045 14.1227 3.84219 14.1227 7.49988C14.1227 11.1575 11.1576 14.1227 7.49991 14.1227C3.84222 14.1227 0.877075 11.1575 0.877075 7.49988ZM7.49991 1.82704C4.36689 1.82704 1.82708 4.36686 1.82708 7.49988C1.82708 10.6329 4.36689 13.1727 7.49991 13.1727C10.6329 13.1727 13.1727 10.6329 13.1727 7.49988C13.1727 4.36686 10.6329 1.82704 7.49991 1.82704ZM9.85358 5.14644C10.0488 5.3417 10.0488 5.65829 9.85358 5.85355L8.20713 7.49999L9.85358 9.14644C10.0488 9.3417 10.0488 9.65829 9.85358 9.85355C9.65832 10.0488 9.34173 10.0488 9.14647 9.85355L7.50002 8.2071L5.85358 9.85355C5.65832 10.0488 5.34173 10.0488 5.14647 9.85355C4.95121 9.65829 4.95121 9.3417 5.14647 9.14644L6.79292 7.49999L5.14647 5.85355C4.95121 5.65829 4.95121 5.3417 5.14647 5.14644C5.34173 4.95118 5.65832 4.95118 5.85358 5.14644L7.50002 6.79289L9.14647 5.14644C9.34173 4.95118 9.65832 4.95118 9.85358 5.14644Z",fill:"currentColor"},child:[]}]})(e)}function $l(e){return dt({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M464 256A208 208 0 1 0 48 256a208 208 0 1 0 416 0zM0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256zm169.8-90.7c7.9-22.3 29.1-37.3 52.8-37.3h58.3c34.9 0 63.1 28.3 63.1 63.1c0 22.6-12.1 43.5-31.7 54.8L280 264.4c-.2 13-10.9 23.6-24 23.6c-13.3 0-24-10.7-24-24V250.5c0-8.6 4.6-16.5 12.1-20.8l44.3-25.4c4.7-2.7 7.6-7.7 7.6-13.1c0-8.4-6.8-15.1-15.1-15.1H222.6c-3.4 0-6.4 2.1-7.5 5.3l-.4 1.2c-4.4 12.5-18.2 19-30.6 14.6s-19-18.2-14.6-30.6l.4-1.2zM224 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"},child:[]}]})(e)}function ql(e){return dt({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"},child:[]}]})(e)}function ec(e){return dt({tag:"svg",attr:{version:"1.1",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M15.854 12.854c-0-0-0-0-0-0l-4.854-4.854 4.854-4.854c0-0 0-0 0-0 0.052-0.052 0.090-0.113 0.114-0.178 0.066-0.178 0.028-0.386-0.114-0.529l-2.293-2.293c-0.143-0.143-0.351-0.181-0.529-0.114-0.065 0.024-0.126 0.062-0.178 0.114 0 0-0 0-0 0l-4.854 4.854-4.854-4.854c-0-0-0-0-0-0-0.052-0.052-0.113-0.090-0.178-0.114-0.178-0.066-0.386-0.029-0.529 0.114l-2.293 2.293c-0.143 0.143-0.181 0.351-0.114 0.529 0.024 0.065 0.062 0.126 0.114 0.178 0 0 0 0 0 0l4.854 4.854-4.854 4.854c-0 0-0 0-0 0-0.052 0.052-0.090 0.113-0.114 0.178-0.066 0.178-0.029 0.386 0.114 0.529l2.293 2.293c0.143 0.143 0.351 0.181 0.529 0.114 0.065-0.024 0.126-0.062 0.178-0.114 0-0 0-0 0-0l4.854-4.854 4.854 4.854c0 0 0 0 0 0 0.052 0.052 0.113 0.090 0.178 0.114 0.178 0.066 0.386 0.029 0.529-0.114l2.293-2.293c0.143-0.143 0.181-0.351 0.114-0.529-0.024-0.065-0.062-0.126-0.114-0.178z"},child:[]}]})(e)}const oi=x.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),cn=x.createContext({}),dn=x.createContext(null),si=typeof document<"u",ai=si?x.useLayoutEffect:x.useEffect,ro=x.createContext({strict:!1}),fn=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),oo="data-"+fn("framerAppearId"),tc={skipAnimations:!1,useManualTiming:!1};function nc(e){let t=new Set,n=new Set,i=!1,r=!1;const o=new WeakSet;let s={delta:0,timestamp:0,isProcessing:!1};function u(l){o.has(l)&&(a.schedule(l),e()),l(s)}const a={schedule:(l,c=!1,d=!1)=>{const p=d&&i?t:n;return c&&o.add(l),p.has(l)||p.add(l),l},cancel:l=>{n.delete(l),o.delete(l)},process:l=>{if(s=l,i){r=!0;return}i=!0,[t,n]=[n,t],n.clear(),t.forEach(u),i=!1,r&&(r=!1,a.process(l))}};return a}const hn=["read","resolveKeyframes","update","preRender","render","postRender"],ic=40;function so(e,t){let n=!1,i=!0;const r={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,s=hn.reduce((C,y)=>(C[y]=nc(o),C),{}),{read:u,resolveKeyframes:a,update:l,preRender:c,render:d,postRender:f}=s,p=()=>{const C=performance.now();n=!1,r.delta=i?1e3/60:Math.max(Math.min(C-r.timestamp,ic),1),r.timestamp=C,r.isProcessing=!0,u.process(r),a.process(r),l.process(r),c.process(r),d.process(r),f.process(r),r.isProcessing=!1,n&&t&&(i=!1,e(p))},b=()=>{n=!0,i=!0,r.isProcessing||e(p)};return{schedule:hn.reduce((C,y)=>{const m=s[y];return C[y]=(I,h=!1,S=!1)=>(n||b(),m.schedule(I,h,S)),C},{}),cancel:C=>{for(let y=0;y<hn.length;y++)s[hn[y]].cancel(C)},state:r,steps:s}}const{schedule:ui,cancel:Kv}=so(queueMicrotask,!1);function xt(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}const ao=x.createContext({});let uo=!1;function rc(e,t,n,i,r){const{visualElement:o}=x.useContext(cn),s=x.useContext(ro),u=x.useContext(dn),a=x.useContext(oi).reducedMotion,l=x.useRef();i=i||s.renderer,!l.current&&i&&(l.current=i(e,{visualState:t,parent:o,props:n,presenceContext:u,blockInitialAnimation:u?u.initial===!1:!1,reducedMotionConfig:a}));const c=l.current,d=x.useContext(ao);c&&!c.projection&&r&&(c.type==="html"||c.type==="svg")&&sc(l.current,n,r,d),x.useInsertionEffect(()=>{c&&c.update(n,u)});const f=x.useRef(!!(n[oo]&&!window.HandoffComplete));return ai(()=>{c&&(c.updateFeatures(),ui.render(c.render),f.current&&c.animationState&&c.animationState.animateChanges())}),x.useEffect(()=>{c&&(!f.current&&c.animationState&&c.animationState.animateChanges(),f.current&&(f.current=!1,uo||(uo=!0,queueMicrotask(oc))))}),c}function oc(){window.HandoffComplete=!0}function sc(e,t,n,i){const{layoutId:r,layout:o,drag:s,dragConstraints:u,layoutScroll:a,layoutRoot:l}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:lo(e.parent)),e.projection.setOptions({layoutId:r,layout:o,alwaysMeasureLayout:!!s||u&&xt(u),visualElement:e,scheduleRender:()=>e.scheduleRender(),animationType:typeof o=="string"?o:"both",initialPromotionConfig:i,layoutScroll:a,layoutRoot:l})}function lo(e){if(e)return e.options.allowProjection!==!1?e.projection:lo(e.parent)}function ac(e,t,n){return x.useCallback(i=>{i&&e.mount&&e.mount(i),t&&(i?t.mount(i):t.unmount()),n&&(typeof n=="function"?n(i):xt(n)&&(n.current=i))},[t])}function Nt(e){return typeof e=="string"||Array.isArray(e)}function Rt(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const li=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],ci=["initial",...li];function pn(e){return Rt(e.animate)||ci.some(t=>Nt(e[t]))}function co(e){return!!(pn(e)||e.variants)}function uc(e,t){if(pn(e)){const{initial:n,animate:i}=e;return{initial:n===!1||Nt(n)?n:void 0,animate:Nt(i)?i:void 0}}return e.inherit!==!1?t:{}}function lc(e){const{initial:t,animate:n}=uc(e,x.useContext(cn));return x.useMemo(()=>({initial:t,animate:n}),[fo(t),fo(n)])}function fo(e){return Array.isArray(e)?e.join(" "):e}const ho={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"]},At={};for(const e in ho)At[e]={isEnabled:t=>ho[e].some(n=>!!t[n])};function cc(e){for(const t in e)At[t]={...At[t],...e[t]}}const di=x.createContext({}),dc=Symbol.for("motionComponentSymbol"),he=e=>e;let St=he,je=he;process.env.NODE_ENV!=="production"&&(St=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},je=(e,t)=>{if(!e)throw new Error(t)});function fc({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:i,Component:r}){e&&cc(e);function o(u,a){let l;const c={...x.useContext(oi),...u,layoutId:hc(u)},{isStatic:d}=c,f=lc(u),p=i(u,d);if(!d&&si){pc(c,e);const b=mc(c);l=b.MeasureLayout,f.visualElement=rc(r,p,c,t,b.ProjectionNode)}return w.jsxs(cn.Provider,{value:f,children:[l&&f.visualElement?w.jsx(l,{visualElement:f.visualElement,...c}):null,n(r,u,ac(p,f.visualElement,a),p,d,f.visualElement)]})}const s=x.forwardRef(o);return s[dc]=r,s}function hc({layoutId:e}){const t=x.useContext(di).id;return t&&e!==void 0?t+"-"+e:e}function pc(e,t){const n=x.useContext(ro).strict;if(process.env.NODE_ENV!=="production"&&t&&n){const i="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?St(!1,i):je(!1,i)}}function mc(e){const{drag:t,layout:n}=At;if(!t&&!n)return{};const i={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}function gc(e){function t(i,r={}){return fc(e(i,r))}if(typeof Proxy>"u")return t;const n=new Map;return new Proxy(t,{get:(i,r)=>(n.has(r)||n.set(r,t(r)),n.get(r))})}const bc=["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 fi(e){return typeof e!="string"||e.includes("-")?!1:!!(bc.indexOf(e)>-1||/[A-Z]/u.test(e))}const mn={};function vc(e){Object.assign(mn,e)}const Wt=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],tt=new Set(Wt);function po(e,{layout:t,layoutId:n}){return tt.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!mn[e]||e==="opacity")}const ve=e=>!!(e&&e.getVelocity),yc={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Cc=Wt.length;function Ic(e,t,n){let i="";for(let r=0;r<Cc;r++){const o=Wt[r];if(e[o]!==void 0){const s=yc[o]||o;i+=`${s}(${e[o]}) `}}return i=i.trim(),n?i=n(e,t?"":i):t&&(i="none"),i}const mo=e=>t=>typeof t=="string"&&t.startsWith(e),go=mo("--"),xc=mo("var(--"),hi=e=>xc(e)?Ac.test(e.split("/*")[0].trim()):!1,Ac=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Sc=(e,t)=>t&&typeof e=="number"?t.transform(e):e,nt=(e,t,n)=>n>t?t:n<e?e:n,Tt={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Lt={...Tt,transform:e=>nt(0,1,e)},gn={...Tt,default:1},Xt=e=>Math.round(e*1e5)/1e5,pi=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,Tc=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,Ec=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;function Zt(e){return typeof e=="string"}function Pc(e){return e==null}const Ht=e=>({test:t=>Zt(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),it=Ht("deg"),Le=Ht("%"),R=Ht("px"),wc=Ht("vh"),Vc=Ht("vw"),bo={...Le,parse:e=>Le.parse(e)/100,transform:e=>Le.transform(e*100)},vo={...Tt,transform:Math.round},yo={borderWidth:R,borderTopWidth:R,borderRightWidth:R,borderBottomWidth:R,borderLeftWidth:R,borderRadius:R,radius:R,borderTopLeftRadius:R,borderTopRightRadius:R,borderBottomRightRadius:R,borderBottomLeftRadius:R,width:R,maxWidth:R,height:R,maxHeight:R,size:R,top:R,right:R,bottom:R,left:R,padding:R,paddingTop:R,paddingRight:R,paddingBottom:R,paddingLeft:R,margin:R,marginTop:R,marginRight:R,marginBottom:R,marginLeft:R,rotate:it,rotateX:it,rotateY:it,rotateZ:it,scale:gn,scaleX:gn,scaleY:gn,scaleZ:gn,skew:it,skewX:it,skewY:it,distance:R,translateX:R,translateY:R,translateZ:R,x:R,y:R,z:R,perspective:R,transformPerspective:R,opacity:Lt,originX:bo,originY:bo,originZ:R,zIndex:vo,backgroundPositionX:R,backgroundPositionY:R,fillOpacity:Lt,strokeOpacity:Lt,numOctaves:vo};function mi(e,t,n){const{style:i,vars:r,transform:o,transformOrigin:s}=e;let u=!1,a=!1,l=!0;for(const c in t){const d=t[c];if(go(c)){r[c]=d;continue}const f=yo[c],p=Sc(d,f);if(tt.has(c)){if(u=!0,o[c]=p,!l)continue;d!==(f.default||0)&&(l=!1)}else c.startsWith("origin")?(a=!0,s[c]=p):i[c]=p}if(t.transform||(u||n?i.transform=Ic(e.transform,l,n):i.transform&&(i.transform="none")),a){const{originX:c="50%",originY:d="50%",originZ:f=0}=s;i.transformOrigin=`${c} ${d} ${f}`}}const gi=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Co(e,t,n){for(const i in t)!ve(t[i])&&!po(i,n)&&(e[i]=t[i])}function Dc({transformTemplate:e},t){return x.useMemo(()=>{const n=gi();return mi(n,t,e),Object.assign({},n.vars,n.style)},[t])}function Fc(e,t){const n=e.style||{},i={};return Co(i,n,e),Object.assign(i,Dc(e,t)),i}function Mc(e,t){const n={},i=Fc(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=i,n}const Bc=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function bn(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Bc.has(e)}let Io=e=>!bn(e);function Gc(e){e&&(Io=t=>t.startsWith("on")?!bn(t):e(t))}try{Gc(require("@emotion/is-prop-valid").default)}catch{}function Oc(e,t,n){const i={};for(const r in e)r==="values"&&typeof e.values=="object"||(Io(r)||n===!0&&bn(r)||!t&&!bn(r)||e.draggable&&r.startsWith("onDrag"))&&(i[r]=e[r]);return i}function xo(e,t,n){return typeof e=="string"?e:R.transform(t+n*e)}function Nc(e,t,n){const i=xo(t,e.x,e.width),r=xo(n,e.y,e.height);return`${i} ${r}`}const Rc={offset:"stroke-dashoffset",array:"stroke-dasharray"},Wc={offset:"strokeDashoffset",array:"strokeDasharray"};function Lc(e,t,n=1,i=0,r=!0){e.pathLength=1;const o=r?Rc:Wc;e[o.offset]=R.transform(-i);const s=R.transform(t),u=R.transform(n);e[o.array]=`${s} ${u}`}function bi(e,{attrX:t,attrY:n,attrScale:i,originX:r,originY:o,pathLength:s,pathSpacing:u=1,pathOffset:a=0,...l},c,d){if(mi(e,l,d),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:f,style:p,dimensions:b}=e;f.transform&&(b&&(p.transform=f.transform),delete f.transform),b&&(r!==void 0||o!==void 0||p.transform)&&(p.transformOrigin=Nc(b,r!==void 0?r:.5,o!==void 0?o:.5)),t!==void 0&&(f.x=t),n!==void 0&&(f.y=n),i!==void 0&&(f.scale=i),s!==void 0&&Lc(f,s,u,a,!1)}const Ao=()=>({...gi(),attrs:{}}),vi=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Xc(e,t,n,i){const r=x.useMemo(()=>{const o=Ao();return bi(o,t,vi(i),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};Co(o,e.style,e),r.style={...o,...r.style}}return r}function Zc(e=!1){return(n,i,r,{latestValues:o},s)=>{const a=(fi(n)?Xc:Mc)(i,o,s,n),l=Oc(i,typeof n=="string",e),c=n!==x.Fragment?{...l,...a,ref:r}:{},{children:d}=i,f=x.useMemo(()=>ve(d)?d.get():d,[d]);return x.createElement(n,{...c,children:f})}}function So(e,{style:t,vars:n},i,r){Object.assign(e.style,t,r&&r.getProjectionStyles(i));for(const o in n)e.style.setProperty(o,n[o])}const To=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 Eo(e,t,n,i){So(e,t,void 0,i);for(const r in t.attrs)e.setAttribute(To.has(r)?r:fn(r),t.attrs[r])}function yi(e,t,n){var i;const{style:r}=e,o={};for(const s in r)(ve(r[s])||t.style&&ve(t.style[s])||po(s,e)||((i=n==null?void 0:n.getValue(s))===null||i===void 0?void 0:i.liveStyle)!==void 0)&&(o[s]=r[s]);return n&&r&&typeof r.willChange=="string"&&(n.applyWillChange=!1),o}function Po(e,t,n){const i=yi(e,t,n);for(const r in e)if(ve(e[r])||ve(t[r])){const o=Wt.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;i[o]=e[r]}return i}function wo(e){const t=[{},{}];return e==null||e.values.forEach((n,i)=>{t[0][i]=n.get(),t[1][i]=n.getVelocity()}),t}function Ci(e,t,n,i){if(typeof t=="function"){const[r,o]=wo(i);t=t(n!==void 0?n:e.custom,r,o)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[r,o]=wo(i);t=t(n!==void 0?n:e.custom,r,o)}return t}function Vo(e){const t=x.useRef(null);return t.current===null&&(t.current=e()),t.current}const Ii=e=>Array.isArray(e),Hc=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),kc=e=>Ii(e)?e[e.length-1]||0:e;function vn(e){const t=ve(e)?e.get():e;return Hc(t)?t.toValue():t}const Do=new Set(["opacity","clipPath","filter","transform"]);function Fo(e){if(tt.has(e))return"transform";if(Do.has(e))return fn(e)}function yn(e,t){e.indexOf(t)===-1&&e.push(t)}function Cn(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}function zc({applyWillChange:e=!1,scrapeMotionValuesFromProps:t,createRenderState:n,onMount:i},r,o,s,u){const a={latestValues:Yc(r,o,s,u?!1:e,t),renderState:n()};return i&&(a.mount=l=>i(r,l,a)),a}const Mo=e=>(t,n)=>{const i=x.useContext(cn),r=x.useContext(dn),o=()=>zc(e,t,i,r,n);return n?o():Vo(o)};function jc(e,t){const n=Fo(t);n&&yn(e,n)}function Bo(e,t,n){const i=Array.isArray(t)?t:[t];for(let r=0;r<i.length;r++){const o=Ci(e,i[r]);if(o){const{transitionEnd:s,transition:u,...a}=o;n(a,s)}}}function Yc(e,t,n,i,r){var o;const s={},u=[],a=i&&((o=e.style)===null||o===void 0?void 0:o.willChange)===void 0,l=r(e,{});for(const v in l)s[v]=vn(l[v]);let{initial:c,animate:d}=e;const f=pn(e),p=co(e);t&&p&&!f&&e.inherit!==!1&&(c===void 0&&(c=t.initial),d===void 0&&(d=t.animate));let b=n?n.initial===!1:!1;b=b||c===!1;const g=b?d:c;return g&&typeof g!="boolean"&&!Rt(g)&&Bo(e,g,(v,C)=>{for(const y in v){let m=v[y];if(Array.isArray(m)){const I=b?m.length-1:0;m=m[I]}m!==null&&(s[y]=m)}for(const y in C)s[y]=C[y]}),a&&(d&&c!==!1&&!Rt(d)&&Bo(e,d,v=>{for(const C in v)jc(u,C)}),u.length&&(s.willChange=u.join(","))),s}const{schedule:K,cancel:Ye,state:pe,steps:xi}=so(typeof requestAnimationFrame<"u"?requestAnimationFrame:he,!0),Jc={useVisualState:Mo({scrapeMotionValuesFromProps:Po,createRenderState:Ao,onMount:(e,t,{renderState:n,latestValues:i})=>{K.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),K.render(()=>{bi(n,i,vi(t.tagName),e.transformTemplate),Eo(t,n)})}})},Uc={useVisualState:Mo({applyWillChange:!0,scrapeMotionValuesFromProps:yi,createRenderState:gi})};function _c(e,{forwardMotionProps:t=!1},n,i){return{...fi(e)?Jc:Uc,preloadedFeatures:n,useRender:Zc(t),createVisualElement:i,Component:e}}function Je(e,t,n,i={passive:!0}){return e.addEventListener(t,n,i),()=>e.removeEventListener(t,n)}const Go=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function In(e,t="page"){return{point:{x:e[`${t}X`],y:e[`${t}Y`]}}}const Qc=e=>t=>Go(t)&&e(t,In(t));function Ue(e,t,n,i){return Je(e,t,Qc(n),i)}const Kc=(e,t)=>n=>t(e(n)),_e=(...e)=>e.reduce(Kc);function Oo(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const No=Oo("dragHorizontal"),Ro=Oo("dragVertical");function Wo(e){let t=!1;if(e==="y")t=Ro();else if(e==="x")t=No();else{const n=No(),i=Ro();n&&i?t=()=>{n(),i()}:(n&&n(),i&&i())}return t}function Lo(){const e=Wo(!0);return e?(e(),!1):!0}class rt{constructor(t){this.isMounted=!1,this.node=t}update(){}}function Xo(e,t){const n=t?"pointerenter":"pointerleave",i=t?"onHoverStart":"onHoverEnd",r=(o,s)=>{if(o.pointerType==="touch"||Lo())return;const u=e.getProps();e.animationState&&u.whileHover&&e.animationState.setActive("whileHover",t);const a=u[i];a&&K.postRender(()=>a(o,s))};return Ue(e.current,n,r,{passive:!e.getProps()[i]})}class $c extends rt{mount(){this.unmount=_e(Xo(this.node,!0),Xo(this.node,!1))}unmount(){}}class qc extends rt{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!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=_e(Je(this.node.current,"focus",()=>this.onFocus()),Je(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const Zo=(e,t)=>t?e===t?!0:Zo(e,t.parentElement):!1;function Ai(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,In(n))}class ed extends rt{constructor(){super(...arguments),this.removeStartListeners=he,this.removeEndListeners=he,this.removeAccessibleListeners=he,this.startPointerPress=(t,n)=>{if(this.isPressing)return;this.removeEndListeners();const i=this.node.getProps(),o=Ue(window,"pointerup",(u,a)=>{if(!this.checkPressEnd())return;const{onTap:l,onTapCancel:c,globalTapTarget:d}=this.node.getProps(),f=!d&&!Zo(this.node.current,u.target)?c:l;f&&K.update(()=>f(u,a))},{passive:!(i.onTap||i.onPointerUp)}),s=Ue(window,"pointercancel",(u,a)=>this.cancelPress(u,a),{passive:!(i.onTapCancel||i.onPointerCancel)});this.removeEndListeners=_e(o,s),this.startPress(t,n)},this.startAccessiblePress=()=>{const t=o=>{if(o.key!=="Enter"||this.isPressing)return;const s=u=>{u.key!=="Enter"||!this.checkPressEnd()||Ai("up",(a,l)=>{const{onTap:c}=this.node.getProps();c&&K.postRender(()=>c(a,l))})};this.removeEndListeners(),this.removeEndListeners=Je(this.node.current,"keyup",s),Ai("down",(u,a)=>{this.startPress(u,a)})},n=Je(this.node.current,"keydown",t),i=()=>{this.isPressing&&Ai("cancel",(o,s)=>this.cancelPress(o,s))},r=Je(this.node.current,"blur",i);this.removeAccessibleListeners=_e(n,r)}}startPress(t,n){this.isPressing=!0;const{onTapStart:i,whileTap:r}=this.node.getProps();r&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),i&&K.postRender(()=>i(t,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!Lo()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:i}=this.node.getProps();i&&K.postRender(()=>i(t,n))}mount(){const t=this.node.getProps(),n=Ue(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),i=Je(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=_e(n,i)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const Si=new WeakMap,Ti=new WeakMap,td=e=>{const t=Si.get(e.target);t&&t(e)},nd=e=>{e.forEach(td)};function id({root:e,...t}){const n=e||document;Ti.has(n)||Ti.set(n,{});const i=Ti.get(n),r=JSON.stringify(t);return i[r]||(i[r]=new IntersectionObserver(nd,{root:e,...t})),i[r]}function rd(e,t,n){const i=id(t);return Si.set(e,n),i.observe(e),()=>{Si.delete(e),i.unobserve(e)}}const od={some:0,all:1};class sd extends rt{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:i,amount:r="some",once:o}=t,s={root:n?n.current:void 0,rootMargin:i,threshold:typeof r=="number"?r:od[r]},u=a=>{const{isIntersecting:l}=a;if(this.isInView===l||(this.isInView=l,o&&!l&&this.hasEnteredView))return;l&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",l);const{onViewportEnter:c,onViewportLeave:d}=this.node.getProps(),f=l?c:d;f&&f(a)};return rd(this.node.current,s,u)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(ad(t,n))&&this.startObserver()}unmount(){}}function ad({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const ud={inView:{Feature:sd},tap:{Feature:ed},focus:{Feature:qc},hover:{Feature:$c}};function Ho(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let i=0;i<n;i++)if(t[i]!==e[i])return!1;return!0}function xn(e,t,n){const i=e.getProps();return Ci(i,t,n!==void 0?n:i.custom,e)}const Qe=e=>e*1e3,Ke=e=>e/1e3,ld={type:"spring",stiffness:500,damping:25,restSpeed:10},cd=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),dd={type:"keyframes",duration:.8},fd={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},hd=(e,{keyframes:t})=>t.length>2?dd:tt.has(e)?e.startsWith("scale")?cd(t[1]):ld:fd;function pd({when:e,delay:t,delayChildren:n,staggerChildren:i,staggerDirection:r,repeat:o,repeatType:s,repeatDelay:u,from:a,elapsed:l,...c}){return!!Object.keys(c).length}function Ei(e,t){return e[t]||e.default||e}const md=e=>e!==null;function An(e,{repeat:t,repeatType:n="loop"},i){const r=e.filter(md),o=t&&n!=="loop"&&t%2===1?0:r.length-1;return!o||i===void 0?r[o]:i}let Sn;function gd(){Sn=void 0}const ot={now:()=>(Sn===void 0&&ot.set(pe.isProcessing||tc.useManualTiming?pe.timestamp:performance.now()),Sn),set:e=>{Sn=e,queueMicrotask(gd)}},ko=e=>/^0[^.\s]+$/u.test(e);function bd(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||ko(e):!0}const zo=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),vd=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function yd(e){const t=vd.exec(e);if(!t)return[,];const[,n,i,r]=t;return[`--${n??i}`,r]}const Cd=4;function jo(e,t,n=1){je(n<=Cd,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[i,r]=yd(e);if(!i)return;const o=window.getComputedStyle(t).getPropertyValue(i);if(o){const s=o.trim();return zo(s)?parseFloat(s):s}return hi(r)?jo(r,t,n+1):r}const Id=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Yo=e=>e===Tt||e===R,Jo=(e,t)=>parseFloat(e.split(", ")[t]),Uo=(e,t)=>(n,{transform:i})=>{if(i==="none"||!i)return 0;const r=i.match(/^matrix3d\((.+)\)$/u);if(r)return Jo(r[1],t);{const o=i.match(/^matrix\((.+)\)$/u);return o?Jo(o[1],e):0}},xd=new Set(["x","y","z"]),Ad=Wt.filter(e=>!xd.has(e));function Sd(e){const t=[];return Ad.forEach(n=>{const i=e.getValue(n);i!==void 0&&(t.push([n,i.get()]),i.set(n.startsWith("scale")?1:0))}),t}const Et={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:Uo(4,13),y:Uo(5,14)};Et.translateX=Et.x,Et.translateY=Et.y;const _o=e=>t=>t.test(e),Qo=[Tt,R,Le,it,Vc,wc,{test:e=>e==="auto",parse:e=>e}],Ko=e=>Qo.find(_o(e)),ft=new Set;let Pi=!1,wi=!1;function $o(){if(wi){const e=Array.from(ft).filter(i=>i.needsMeasurement),t=new Set(e.map(i=>i.element)),n=new Map;t.forEach(i=>{const r=Sd(i);r.length&&(n.set(i,r),i.render())}),e.forEach(i=>i.measureInitialState()),t.forEach(i=>{i.render();const r=n.get(i);r&&r.forEach(([o,s])=>{var u;(u=i.getValue(o))===null||u===void 0||u.set(s)})}),e.forEach(i=>i.measureEndState()),e.forEach(i=>{i.suspendedScrollY!==void 0&&window.scrollTo(0,i.suspendedScrollY)})}wi=!1,Pi=!1,ft.forEach(e=>e.complete()),ft.clear()}function qo(){ft.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(wi=!0)})}function Td(){qo(),$o()}class Vi{constructor(t,n,i,r,o,s=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=i,this.motionValue=r,this.element=o,this.isAsync=s}scheduleResolve(){this.isScheduled=!0,this.isAsync?(ft.add(this),Pi||(Pi=!0,K.read(qo),K.resolveKeyframes($o))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:i,motionValue:r}=this;for(let o=0;o<t.length;o++)if(t[o]===null)if(o===0){const s=r==null?void 0:r.get(),u=t[t.length-1];if(s!==void 0)t[0]=s;else if(i&&n){const a=i.readValue(n,u);a!=null&&(t[0]=a)}t[0]===void 0&&(t[0]=u),r&&s===void 0&&r.set(t[0])}else t[o]=t[o-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),ft.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,ft.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const Di=(e,t)=>n=>!!(Zt(n)&&Ec.test(n)&&n.startsWith(e)||t&&!Pc(n)&&Object.prototype.hasOwnProperty.call(n,t)),es=(e,t,n)=>i=>{if(!Zt(i))return i;const[r,o,s,u]=i.match(pi);return{[e]:parseFloat(r),[t]:parseFloat(o),[n]:parseFloat(s),alpha:u!==void 0?parseFloat(u):1}},Ed=e=>nt(0,255,e),Fi={...Tt,transform:e=>Math.round(Ed(e))},ht={test:Di("rgb","red"),parse:es("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:i=1})=>"rgba("+Fi.transform(e)+", "+Fi.transform(t)+", "+Fi.transform(n)+", "+Xt(Lt.transform(i))+")"};function Pd(e){let t="",n="",i="",r="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),i=e.substring(5,7),r=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),i=e.substring(3,4),r=e.substring(4,5),t+=t,n+=n,i+=i,r+=r),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(i,16),alpha:r?parseInt(r,16)/255:1}}const Mi={test:Di("#"),parse:Pd,transform:ht.transform},Pt={test:Di("hsl","hue"),parse:es("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:i=1})=>"hsla("+Math.round(e)+", "+Le.transform(Xt(t))+", "+Le.transform(Xt(n))+", "+Xt(Lt.transform(i))+")"},ye={test:e=>ht.test(e)||Mi.test(e)||Pt.test(e),parse:e=>ht.test(e)?ht.parse(e):Pt.test(e)?Pt.parse(e):Mi.parse(e),transform:e=>Zt(e)?e:e.hasOwnProperty("red")?ht.transform(e):Pt.transform(e)};function wd(e){var t,n;return isNaN(e)&&Zt(e)&&(((t=e.match(pi))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(Tc))===null||n===void 0?void 0:n.length)||0)>0}const ts="number",ns="color",Vd="var",Dd="var(",is="${}",Fd=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function kt(e){const t=e.toString(),n=[],i={color:[],number:[],var:[]},r=[];let o=0;const u=t.replace(Fd,a=>(ye.test(a)?(i.color.push(o),r.push(ns),n.push(ye.parse(a))):a.startsWith(Dd)?(i.var.push(o),r.push(Vd),n.push(a)):(i.number.push(o),r.push(ts),n.push(parseFloat(a))),++o,is)).split(is);return{values:n,split:u,indexes:i,types:r}}function rs(e){return kt(e).values}function os(e){const{split:t,types:n}=kt(e),i=t.length;return r=>{let o="";for(let s=0;s<i;s++)if(o+=t[s],r[s]!==void 0){const u=n[s];u===ts?o+=Xt(r[s]):u===ns?o+=ye.transform(r[s]):o+=r[s]}return o}}const Md=e=>typeof e=="number"?0:e;function Bd(e){const t=rs(e);return os(e)(t.map(Md))}const st={test:wd,parse:rs,createTransformer:os,getAnimatableNone:Bd},Gd=new Set(["brightness","contrast","saturate","opacity"]);function Od(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[i]=n.match(pi)||[];if(!i)return e;const r=n.replace(i,"");let o=Gd.has(t)?1:0;return i!==n&&(o*=100),t+"("+o+r+")"}const Nd=/\b([a-z-]*)\(.*?\)/gu,Bi={...st,getAnimatableNone:e=>{const t=e.match(Nd);return t?t.map(Od).join(" "):e}},Rd={...yo,color:ye,backgroundColor:ye,outlineColor:ye,fill:ye,stroke:ye,borderColor:ye,borderTopColor:ye,borderRightColor:ye,borderBottomColor:ye,borderLeftColor:ye,filter:Bi,WebkitFilter:Bi},Gi=e=>Rd[e];function ss(e,t){let n=Gi(e);return n!==Bi&&(n=st),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Wd=new Set(["auto","none","0"]);function Ld(e,t,n){let i=0,r;for(;i<e.length&&!r;){const o=e[i];typeof o=="string"&&!Wd.has(o)&&kt(o).values.length&&(r=e[i]),i++}if(r&&n)for(const o of t)e[o]=ss(n,r)}class as extends Vi{constructor(t,n,i,r){super(t,n,i,r,r==null?void 0:r.owner,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:i}=this;if(!n.current)return;super.readKeyframes();for(let a=0;a<t.length;a++){let l=t[a];if(typeof l=="string"&&(l=l.trim(),hi(l))){const c=jo(l,n.current);c!==void 0&&(t[a]=c),a===t.length-1&&(this.finalKeyframe=l)}}if(this.resolveNoneKeyframes(),!Id.has(i)||t.length!==2)return;const[r,o]=t,s=Ko(r),u=Ko(o);if(s!==u)if(Yo(s)&&Yo(u))for(let a=0;a<t.length;a++){const l=t[a];typeof l=="string"&&(t[a]=parseFloat(l))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,i=[];for(let r=0;r<t.length;r++)bd(t[r])&&i.push(r);i.length&&Ld(t,i,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:i}=this;if(!t.current)return;i==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Et[i](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const r=n[n.length-1];r!==void 0&&t.getValue(i,r).jump(r,!1)}measureEndState(){var t;const{element:n,name:i,unresolvedKeyframes:r}=this;if(!n.current)return;const o=n.getValue(i);o&&o.jump(this.measuredOrigin,!1);const s=r.length-1,u=r[s];r[s]=Et[i](n.measureViewportBox(),window.getComputedStyle(n.current)),u!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=u),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([a,l])=>{n.getValue(a).set(l)}),this.resolveNoneKeyframes()}}function us(e){let t;return()=>(t===void 0&&(t=e()),t)}const ls=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(st.test(e)||e==="0")&&!e.startsWith("url("));function Xd(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function Zd(e,t,n,i){const r=e[0];if(r===null)return!1;if(t==="display"||t==="visibility")return!0;const o=e[e.length-1],s=ls(r,t),u=ls(o,t);return St(s===u,`You are trying to animate ${t} from "${r}" to "${o}". ${r} is not an animatable value - to enable this animation set ${r} to a value animatable to ${o} via the \`style\` property.`),!s||!u?!1:Xd(e)||n==="spring"&&i}class cs{constructor({autoplay:t=!0,delay:n=0,type:i="keyframes",repeat:r=0,repeatDelay:o=0,repeatType:s="loop",...u}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.options={autoplay:t,delay:n,type:i,repeat:r,repeatDelay:o,repeatType:s,...u},this.updateFinishedPromise()}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&Td(),this._resolved}onKeyframesResolved(t,n){this.hasAttemptedResolve=!0;const{name:i,type:r,velocity:o,delay:s,onComplete:u,onUpdate:a,isGenerator:l}=this.options;if(!l&&!Zd(t,i,r,o))if(s)this.options.duration=0;else{a==null||a(An(t,this.options,n)),u==null||u(),this.resolveFinishedPromise();return}const c=this.initPlayback(t,n);c!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...c},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}function ds(e,t){return t?e*(1e3/t):0}const Hd=5;function fs(e,t,n){const i=Math.max(t-Hd,0);return ds(n-e(i),t-i)}const Oi=.001,kd=.01,hs=10,zd=.05,jd=1;function Yd({duration:e=800,bounce:t=.25,velocity:n=0,mass:i=1}){let r,o;St(e<=Qe(hs),"Spring duration must be 10 seconds or less");let s=1-t;s=nt(zd,jd,s),e=nt(kd,hs,Ke(e)),s<1?(r=l=>{const c=l*s,d=c*e,f=c-n,p=Ni(l,s),b=Math.exp(-d);return Oi-f/p*b},o=l=>{const d=l*s*e,f=d*n+n,p=Math.pow(s,2)*Math.pow(l,2)*e,b=Math.exp(-d),g=Ni(Math.pow(l,2),s);return(-r(l)+Oi>0?-1:1)*((f-p)*b)/g}):(r=l=>{const c=Math.exp(-l*e),d=(l-n)*e+1;return-Oi+c*d},o=l=>{const c=Math.exp(-l*e),d=(n-l)*(e*e);return c*d});const u=5/e,a=Ud(r,o,u);if(e=Qe(e),isNaN(a))return{stiffness:100,damping:10,duration:e};{const l=Math.pow(a,2)*i;return{stiffness:l,damping:s*2*Math.sqrt(i*l),duration:e}}}const Jd=12;function Ud(e,t,n){let i=n;for(let r=1;r<Jd;r++)i=i-e(i)/t(i);return i}function Ni(e,t){return e*Math.sqrt(1-t*t)}const _d=["duration","bounce"],Qd=["stiffness","damping","mass"];function ps(e,t){return t.some(n=>e[n]!==void 0)}function Kd(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!ps(e,Qd)&&ps(e,_d)){const n=Yd(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}function ms({keyframes:e,restDelta:t,restSpeed:n,...i}){const r=e[0],o=e[e.length-1],s={done:!1,value:r},{stiffness:u,damping:a,mass:l,duration:c,velocity:d,isResolvedFromDuration:f}=Kd({...i,velocity:-Ke(i.velocity||0)}),p=d||0,b=a/(2*Math.sqrt(u*l)),g=o-r,v=Ke(Math.sqrt(u/l)),C=Math.abs(g)<5;n||(n=C?.01:2),t||(t=C?.005:.5);let y;if(b<1){const m=Ni(v,b);y=I=>{const h=Math.exp(-b*v*I);return o-h*((p+b*v*g)/m*Math.sin(m*I)+g*Math.cos(m*I))}}else if(b===1)y=m=>o-Math.exp(-v*m)*(g+(p+v*g)*m);else{const m=v*Math.sqrt(b*b-1);y=I=>{const h=Math.exp(-b*v*I),S=Math.min(m*I,300);return o-h*((p+b*v*g)*Math.sinh(S)+m*g*Math.cosh(S))/m}}return{calculatedDuration:f&&c||null,next:m=>{const I=y(m);if(f)s.done=m>=c;else{let h=p;m!==0&&(b<1?h=fs(y,m,I):h=0);const S=Math.abs(h)<=n,T=Math.abs(o-I)<=t;s.done=S&&T}return s.value=s.done?o:I,s}}}function gs({keyframes:e,velocity:t=0,power:n=.8,timeConstant:i=325,bounceDamping:r=10,bounceStiffness:o=500,modifyTarget:s,min:u,max:a,restDelta:l=.5,restSpeed:c}){const d=e[0],f={done:!1,value:d},p=P=>u!==void 0&&P<u||a!==void 0&&P>a,b=P=>u===void 0?a:a===void 0||Math.abs(u-P)<Math.abs(a-P)?u:a;let g=n*t;const v=d+g,C=s===void 0?v:s(v);C!==v&&(g=C-d);const y=P=>-g*Math.exp(-P/i),m=P=>C+y(P),I=P=>{const M=y(P),X=m(P);f.done=Math.abs(M)<=l,f.value=f.done?C:X};let h,S;const T=P=>{p(f.value)&&(h=P,S=ms({keyframes:[f.value,b(f.value)],velocity:fs(m,P,f.value),damping:r,stiffness:o,restDelta:l,restSpeed:c}))};return T(0),{calculatedDuration:null,next:P=>{let M=!1;return!S&&h===void 0&&(M=!0,I(P),T(P)),h!==void 0&&P>=h?S.next(P-h):(!M&&I(P),f)}}}const bs=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,$d=1e-7,qd=12;function ef(e,t,n,i,r){let o,s,u=0;do s=t+(n-t)/2,o=bs(s,i,r)-e,o>0?n=s:t=s;while(Math.abs(o)>$d&&++u<qd);return s}function zt(e,t,n,i){if(e===t&&n===i)return he;const r=o=>ef(o,0,1,e,n);return o=>o===0||o===1?o:bs(r(o),t,i)}const tf=zt(.42,0,1,1),nf=zt(0,0,.58,1),vs=zt(.42,0,.58,1),rf=e=>Array.isArray(e)&&typeof e[0]!="number",ys=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Cs=e=>t=>1-e(1-t),Ri=e=>1-Math.sin(Math.acos(e)),Is=Cs(Ri),of=ys(Ri),xs=zt(.33,1.53,.69,.99),Wi=Cs(xs),sf=ys(Wi),As={linear:he,easeIn:tf,easeInOut:vs,easeOut:nf,circIn:Ri,circInOut:of,circOut:Is,backIn:Wi,backInOut:sf,backOut:xs,anticipate:e=>(e*=2)<1?.5*Wi(e):.5*(2-Math.pow(2,-10*(e-1)))},Ss=e=>{if(Array.isArray(e)){je(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,i,r]=e;return zt(t,n,i,r)}else if(typeof e=="string")return je(As[e]!==void 0,`Invalid easing type '${e}'`),As[e];return e},jt=(e,t,n)=>{const i=t-e;return i===0?1:(n-e)/i},se=(e,t,n)=>e+(t-e)*n;function Li(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function af({hue:e,saturation:t,lightness:n,alpha:i}){e/=360,t/=100,n/=100;let r=0,o=0,s=0;if(!t)r=o=s=n;else{const u=n<.5?n*(1+t):n+t-n*t,a=2*n-u;r=Li(a,u,e+1/3),o=Li(a,u,e),s=Li(a,u,e-1/3)}return{red:Math.round(r*255),green:Math.round(o*255),blue:Math.round(s*255),alpha:i}}function Tn(e,t){return n=>n>0?t:e}const Xi=(e,t,n)=>{const i=e*e,r=n*(t*t-i)+i;return r<0?0:Math.sqrt(r)},uf=[Mi,ht,Pt],lf=e=>uf.find(t=>t.test(e));function Ts(e){const t=lf(e);if(St(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===Pt&&(n=af(n)),n}const Es=(e,t)=>{const n=Ts(e),i=Ts(t);if(!n||!i)return Tn(e,t);const r={...n};return o=>(r.red=Xi(n.red,i.red,o),r.green=Xi(n.green,i.green,o),r.blue=Xi(n.blue,i.blue,o),r.alpha=se(n.alpha,i.alpha,o),ht.transform(r))},Zi=new Set(["none","hidden"]);function cf(e,t){return Zi.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function df(e,t){return n=>se(e,t,n)}function Hi(e){return typeof e=="number"?df:typeof e=="string"?hi(e)?Tn:ye.test(e)?Es:pf:Array.isArray(e)?Ps:typeof e=="object"?ye.test(e)?Es:ff:Tn}function Ps(e,t){const n=[...e],i=n.length,r=e.map((o,s)=>Hi(o)(o,t[s]));return o=>{for(let s=0;s<i;s++)n[s]=r[s](o);return n}}function ff(e,t){const n={...e,...t},i={};for(const r in n)e[r]!==void 0&&t[r]!==void 0&&(i[r]=Hi(e[r])(e[r],t[r]));return r=>{for(const o in i)n[o]=i[o](r);return n}}function hf(e,t){var n;const i=[],r={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const s=t.types[o],u=e.indexes[s][r[s]],a=(n=e.values[u])!==null&&n!==void 0?n:0;i[o]=a,r[s]++}return i}const pf=(e,t)=>{const n=st.createTransformer(t),i=kt(e),r=kt(t);return i.indexes.var.length===r.indexes.var.length&&i.indexes.color.length===r.indexes.color.length&&i.indexes.number.length>=r.indexes.number.length?Zi.has(e)&&!r.values.length||Zi.has(t)&&!i.values.length?cf(e,t):_e(Ps(hf(i,r),r.values),n):(St(!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.`),Tn(e,t))};function ws(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?se(e,t,n):Hi(e)(e,t)}function mf(e,t,n){const i=[],r=n||ws,o=e.length-1;for(let s=0;s<o;s++){let u=r(e[s],e[s+1]);if(t){const a=Array.isArray(t)?t[s]||he:t;u=_e(a,u)}i.push(u)}return i}function gf(e,t,{clamp:n=!0,ease:i,mixer:r}={}){const o=e.length;if(je(o===t.length,"Both input and output ranges must be the same length"),o===1)return()=>t[0];if(o===2&&e[0]===e[1])return()=>t[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=mf(t,i,r),u=s.length,a=l=>{let c=0;if(u>1)for(;c<e.length-2&&!(l<e[c+1]);c++);const d=jt(e[c],e[c+1],l);return s[c](d)};return n?l=>a(nt(e[0],e[o-1],l)):a}function bf(e,t){const n=e[e.length-1];for(let i=1;i<=t;i++){const r=jt(0,t,i);e.push(se(n,1,r))}}function vf(e){const t=[0];return bf(t,e.length-1),t}function yf(e,t){return e.map(n=>n*t)}function Cf(e,t){return e.map(()=>t||vs).splice(0,e.length-1)}function En({duration:e=300,keyframes:t,times:n,ease:i="easeInOut"}){const r=rf(i)?i.map(Ss):Ss(i),o={done:!1,value:t[0]},s=yf(n&&n.length===t.length?n:vf(t),e),u=gf(s,t,{ease:Array.isArray(r)?r:Cf(t,r)});return{calculatedDuration:e,next:a=>(o.value=u(a),o.done=a>=e,o)}}const Vs=2e4;function If(e){let t=0;const n=50;let i=e.next(t);for(;!i.done&&t<Vs;)t+=n,i=e.next(t);return t>=Vs?1/0:t}const xf=e=>{const t=({timestamp:n})=>e(n);return{start:()=>K.update(t,!0),stop:()=>Ye(t),now:()=>pe.isProcessing?pe.timestamp:ot.now()}},Af={decay:gs,inertia:gs,tween:En,keyframes:En,spring:ms},Sf=e=>e/100;class ki extends cs{constructor({KeyframeResolver:t=Vi,...n}){super(n),this.holdTime=null,this.startTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:u}=this.options;u&&u()};const{name:i,motionValue:r,keyframes:o}=this.options,s=(u,a)=>this.onKeyframesResolved(u,a);i&&r&&r.owner?this.resolver=r.owner.resolveKeyframes(o,s,i,r):this.resolver=new t(o,s,i,r),this.resolver.scheduleResolve()}initPlayback(t){const{type:n="keyframes",repeat:i=0,repeatDelay:r=0,repeatType:o,velocity:s=0}=this.options,u=Af[n]||En;let a,l;u!==En&&typeof t[0]!="number"&&(process.env.NODE_ENV!=="production"&&je(t.length===2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`),a=_e(Sf,ws(t[0],t[1])),t=[0,100]);const c=u({...this.options,keyframes:t});o==="mirror"&&(l=u({...this.options,keyframes:[...t].reverse(),velocity:-s})),c.calculatedDuration===null&&(c.calculatedDuration=If(c));const{calculatedDuration:d}=c,f=d+r,p=f*(i+1)-r;return{generator:c,mirroredGenerator:l,mapPercentToKeyframes:a,calculatedDuration:d,resolvedDuration:f,totalDuration:p}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:i}=this;if(!i){const{keyframes:P}=this.options;return{done:!0,value:P[P.length-1]}}const{finalKeyframe:r,generator:o,mirroredGenerator:s,mapPercentToKeyframes:u,keyframes:a,calculatedDuration:l,totalDuration:c,resolvedDuration:d}=i;if(this.startTime===null)return o.next(0);const{delay:f,repeat:p,repeatType:b,repeatDelay:g,onUpdate:v}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-c/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const C=this.currentTime-f*(this.speed>=0?1:-1),y=this.speed>=0?C<0:C>c;this.currentTime=Math.max(C,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let m=this.currentTime,I=o;if(p){const P=Math.min(this.currentTime,c)/d;let M=Math.floor(P),X=P%1;!X&&P>=1&&(X=1),X===1&&M--,M=Math.min(M,p+1),!!(M%2)&&(b==="reverse"?(X=1-X,g&&(X-=g/d)):b==="mirror"&&(I=s)),m=nt(0,1,X)*d}const h=y?{done:!1,value:a[0]}:I.next(m);u&&(h.value=u(h.value));let{done:S}=h;!y&&l!==null&&(S=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const T=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&S);return T&&r!==void 0&&(h.value=An(a,this.options,r)),v&&v(h.value),T&&this.finish(),h}get duration(){const{resolved:t}=this;return t?Ke(t.calculatedDuration):0}get time(){return Ke(this.currentTime)}set time(t){t=Qe(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Ke(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=xf,onPlay:n}=this.options;this.driver||(this.driver=t(r=>this.tick(r))),n&&n();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:(!this.startTime||this.state==="finished")&&(this.startTime=i),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const Ds=e=>Array.isArray(e)&&typeof e[0]=="number";function Fs(e){return!!(!e||typeof e=="string"&&e in zi||Ds(e)||Array.isArray(e)&&e.every(Fs))}const Yt=([e,t,n,i])=>`cubic-bezier(${e}, ${t}, ${n}, ${i})`,zi={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Yt([0,.65,.55,1]),circOut:Yt([.55,0,1,.45]),backIn:Yt([.31,.01,.66,-.59]),backOut:Yt([.33,1.53,.69,.99])};function Tf(e){return Ms(e)||zi.easeOut}function Ms(e){if(e)return Ds(e)?Yt(e):Array.isArray(e)?e.map(Tf):zi[e]}function Ef(e,t,n,{delay:i=0,duration:r=300,repeat:o=0,repeatType:s="loop",ease:u,times:a}={}){const l={[t]:n};a&&(l.offset=a);const c=Ms(u);return Array.isArray(c)&&(l.easing=c),e.animate(l,{delay:i,duration:r,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:o+1,direction:s==="reverse"?"alternate":"normal"})}const Pf=us(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Pn=10,wf=2e4;function Vf(e){return e.type==="spring"||!Fs(e.ease)}function Df(e,t){const n=new ki({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let i={done:!1,value:e[0]};const r=[];let o=0;for(;!i.done&&o<wf;)i=n.sample(o),r.push(i.value),o+=Pn;return{times:void 0,keyframes:r,duration:o-Pn,ease:"linear"}}class Bs extends cs{constructor(t){super(t);const{name:n,motionValue:i,keyframes:r}=this.options;this.resolver=new as(r,(o,s)=>this.onKeyframesResolved(o,s),n,i),this.resolver.scheduleResolve()}initPlayback(t,n){var i;let{duration:r=300,times:o,ease:s,type:u,motionValue:a,name:l}=this.options;if(!(!((i=a.owner)===null||i===void 0)&&i.current))return!1;if(Vf(this.options)){const{onComplete:d,onUpdate:f,motionValue:p,...b}=this.options,g=Df(t,b);t=g.keyframes,t.length===1&&(t[1]=t[0]),r=g.duration,o=g.times,s=g.ease,u="keyframes"}const c=Ef(a.owner.current,l,t,{...this.options,duration:r,times:o,ease:s});return c.startTime=ot.now(),this.pendingTimeline?(c.timeline=this.pendingTimeline,this.pendingTimeline=void 0):c.onfinish=()=>{const{onComplete:d}=this.options;a.set(An(t,this.options,n)),d&&d(),this.cancel(),this.resolveFinishedPromise()},{animation:c,duration:r,times:o,type:u,ease:s,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return Ke(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return Ke(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:i}=n;i.currentTime=Qe(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:i}=n;i.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return he;const{animation:i}=n;i.timeline=t,i.onfinish=null}return he}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:i,duration:r,type:o,ease:s,times:u}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:l,onUpdate:c,onComplete:d,...f}=this.options,p=new ki({...f,keyframes:i,duration:r,type:o,ease:s,times:u,isGenerator:!0}),b=Qe(this.time);l.setWithVelocity(p.sample(b-Pn).value,p.sample(b).value,Pn)}const{onStop:a}=this.options;a&&a(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:i,repeatDelay:r,repeatType:o,damping:s,type:u}=t;return Pf()&&i&&Do.has(i)&&n&&n.owner&&n.owner.current instanceof HTMLElement&&!n.owner.getProps().onUpdate&&!r&&o!=="mirror"&&s!==0&&u!=="inertia"}}function Ff(e,t){let n;const i=()=>{const{currentTime:r}=t,s=(r===null?0:r.value)/100;n!==s&&e(s),n=s};return K.update(i,!0),()=>Ye(i)}const Mf=us(()=>window.ScrollTimeline!==void 0);class Bf{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}then(t,n){return Promise.all(this.animations).then(t).catch(n)}getAll(t){return this.animations[0][t]}setAll(t,n){for(let i=0;i<this.animations.length;i++)this.animations[i][t]=n}attachTimeline(t){const n=this.animations.map(i=>{if(Mf()&&i.attachTimeline)i.attachTimeline(t);else return i.pause(),Ff(r=>{i.time=i.duration*r},t)});return()=>{n.forEach((i,r)=>{i&&i(),this.animations[r].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get duration(){let t=0;for(let n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}const ji=(e,t,n,i={},r,o,s)=>u=>{const a=Ei(i,e)||{},l=a.delay||i.delay||0;let{elapsed:c=0}=i;c=c-Qe(l);let d={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-c,onUpdate:p=>{t.set(p),a.onUpdate&&a.onUpdate(p)},onComplete:()=>{u(),a.onComplete&&a.onComplete(),s&&s()},onStop:s,name:e,motionValue:t,element:o?void 0:r};pd(a)||(d={...d,...hd(e,d)}),d.duration&&(d.duration=Qe(d.duration)),d.repeatDelay&&(d.repeatDelay=Qe(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let f=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(d.duration=0,d.delay===0&&(f=!0)),f&&!o&&t.get()!==void 0){const p=An(d.keyframes,a);if(p!==void 0)return K.update(()=>{d.onUpdate(p),d.onComplete()}),new Bf([])}return!o&&Bs.supports(d)?new Bs(d):new ki(d)};class Yi{constructor(){this.subscriptions=[]}add(t){return yn(this.subscriptions,t),()=>Cn(this.subscriptions,t)}notify(t,n,i){const r=this.subscriptions.length;if(r)if(r===1)this.subscriptions[0](t,n,i);else for(let o=0;o<r;o++){const s=this.subscriptions[o];s&&s(t,n,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Gs=new Set;function Ji(e,t,n){e||Gs.has(t)||(console.warn(t),Gs.add(t))}const Os=30,Gf=e=>!isNaN(parseFloat(e));class Ns{constructor(t,n={}){this.version="11.3.8",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(i,r=!0)=>{const o=ot.now();this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(i),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),r&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=ot.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=Gf(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&Ji(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Yi);const i=this.events[t].add(n);return t==="change"?()=>{i(),K.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,i){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-i}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=ot.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Os)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Os);return ds(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),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 Jt(e,t){return new Ns(e,t)}function Of(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Jt(n))}function Nf(e,t){const n=xn(e,t);let{transitionEnd:i={},transition:r={},...o}=n||{};o={...o,...i};for(const s in o){const u=kc(o[s]);Of(e,s,u)}}function Rs(e){return e.getProps()[oo]}class Rf extends Ns{constructor(){super(...arguments),this.output=[],this.counts=new Map}add(t){const n=Fo(t);if(!n)return;const i=this.counts.get(n)||0;this.counts.set(n,i+1),i===0&&(this.output.push(n),this.update());let r=!1;return()=>{if(r)return;r=!0;const o=this.counts.get(n)-1;this.counts.set(n,o),o===0&&(Cn(this.output,n),this.update())}}update(){this.set(this.output.length?this.output.join(", "):"auto")}}function Wf(e){return!!(ve(e)&&e.add)}function Ui(e,t){var n;if(!e.applyWillChange)return;let i=e.getValue("willChange");if(!i&&!(!((n=e.props.style)===null||n===void 0)&&n.willChange)&&(i=new Rf("auto"),e.addValue("willChange",i)),Wf(i))return i.add(t)}function Lf({protectedKeys:e,needsAnimating:t},n){const i=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,i}function Ws(e,t,{delay:n=0,transitionOverride:i,type:r}={}){var o;let{transition:s=e.getDefaultTransition(),transitionEnd:u,...a}=t;i&&(s=i);const l=[],c=r&&e.animationState&&e.animationState.getState()[r];for(const d in a){const f=e.getValue(d,(o=e.latestValues[d])!==null&&o!==void 0?o:null),p=a[d];if(p===void 0||c&&Lf(c,d))continue;const b={delay:n,elapsed:0,...Ei(s||{},d)};let g=!1;if(window.HandoffAppearAnimations){const C=Rs(e);if(C){const y=window.HandoffAppearAnimations(C,d,f,K);y!==null&&(b.elapsed=y,g=!0)}}f.start(ji(d,f,p,e.shouldReduceMotion&&tt.has(d)?{type:!1}:b,e,g,Ui(e,d)));const v=f.animation;v&&l.push(v)}return u&&Promise.all(l).then(()=>{K.update(()=>{u&&Nf(e,u)})}),l}function _i(e,t,n={}){var i;const r=xn(e,t,n.type==="exit"?(i=e.presenceContext)===null||i===void 0?void 0:i.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(o=n.transitionOverride);const s=r?()=>Promise.all(Ws(e,r,n)):()=>Promise.resolve(),u=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:c=0,staggerChildren:d,staggerDirection:f}=o;return Xf(e,t,c+l,d,f,n)}:()=>Promise.resolve(),{when:a}=o;if(a){const[l,c]=a==="beforeChildren"?[s,u]:[u,s];return l().then(()=>c())}else return Promise.all([s(),u(n.delay)])}function Xf(e,t,n=0,i=0,r=1,o){const s=[],u=(e.variantChildren.size-1)*i,a=r===1?(l=0)=>l*i:(l=0)=>u-l*i;return Array.from(e.variantChildren).sort(Zf).forEach((l,c)=>{l.notify("AnimationStart",t),s.push(_i(l,t,{...o,delay:n+a(c)}).then(()=>l.notify("AnimationComplete",t)))}),Promise.all(s)}function Zf(e,t){return e.sortNodePosition(t)}function Hf(e,t,n={}){e.notify("AnimationStart",t);let i;if(Array.isArray(t)){const r=t.map(o=>_i(e,o,n));i=Promise.all(r)}else if(typeof t=="string")i=_i(e,t,n);else{const r=typeof t=="function"?xn(e,t,n.custom):t;i=Promise.all(Ws(e,r,n))}return i.then(()=>{K.postRender(()=>{e.notify("AnimationComplete",t)})})}const kf=[...li].reverse(),zf=li.length;function jf(e){return t=>Promise.all(t.map(({animation:n,options:i})=>Hf(e,n,i)))}function Yf(e){let t=jf(e),n=Ls(),i=!0;const r=a=>(l,c)=>{var d;const f=xn(e,c,a==="exit"?(d=e.presenceContext)===null||d===void 0?void 0:d.custom:void 0);if(f){const{transition:p,transitionEnd:b,...g}=f;l={...l,...g,...b}}return l};function o(a){t=a(e)}function s(a){const l=e.getProps(),c=e.getVariantContext(!0)||{},d=[],f=new Set;let p={},b=1/0;for(let v=0;v<zf;v++){const C=kf[v],y=n[C],m=l[C]!==void 0?l[C]:c[C],I=Nt(m),h=C===a?y.isActive:null;h===!1&&(b=v);let S=m===c[C]&&m!==l[C]&&I;if(S&&i&&e.manuallyAnimateOnMount&&(S=!1),y.protectedKeys={...p},!y.isActive&&h===null||!m&&!y.prevProp||Rt(m)||typeof m=="boolean")continue;let P=Jf(y.prevProp,m)||C===a&&y.isActive&&!S&&I||v>b&&I,M=!1;const X=Array.isArray(m)?m:[m];let U=X.reduce(r(C),{});h===!1&&(U={});const{prevResolvedValues:ne={}}=y,de={...ne,...U},oe=k=>{P=!0,f.has(k)&&(M=!0,f.delete(k)),y.needsAnimating[k]=!0;const z=e.getValue(k);z&&(z.liveStyle=!1)};for(const k in de){const z=U[k],ie=ne[k];if(p.hasOwnProperty(k))continue;let re=!1;Ii(z)&&Ii(ie)?re=!Ho(z,ie):re=z!==ie,re?z!=null?oe(k):f.add(k):z!==void 0&&f.has(k)?oe(k):y.protectedKeys[k]=!0}y.prevProp=m,y.prevResolvedValues=U,y.isActive&&(p={...p,...U}),i&&e.blockInitialAnimation&&(P=!1),P&&(!S||M)&&d.push(...X.map(k=>({animation:k,options:{type:C}})))}if(f.size){const v={};f.forEach(C=>{const y=e.getBaseTarget(C),m=e.getValue(C);m&&(m.liveStyle=!0),v[C]=y??null}),d.push({animation:v})}let g=!!d.length;return i&&(l.initial===!1||l.initial===l.animate)&&!e.manuallyAnimateOnMount&&(g=!1),i=!1,g?t(d):Promise.resolve()}function u(a,l){var c;if(n[a].isActive===l)return Promise.resolve();(c=e.variantChildren)===null||c===void 0||c.forEach(f=>{var p;return(p=f.animationState)===null||p===void 0?void 0:p.setActive(a,l)}),n[a].isActive=l;const d=s(a);for(const f in n)n[f].protectedKeys={};return d}return{animateChanges:s,setActive:u,setAnimateFunction:o,getState:()=>n,reset:()=>{n=Ls(),i=!0}}}function Jf(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Ho(t,e):!1}function pt(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Ls(){return{animate:pt(!0),whileInView:pt(),whileHover:pt(),whileTap:pt(),whileDrag:pt(),whileFocus:pt(),exit:pt()}}class Uf extends rt{constructor(t){super(t),t.animationState||(t.animationState=Yf(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Rt(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let _f=0;class Qf extends rt{constructor(){super(...arguments),this.id=_f++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;const r=this.node.animationState.setActive("exit",!t);n&&!t&&r.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const Kf={animation:{Feature:Uf},exit:{Feature:Qf}},Xs=(e,t)=>Math.abs(e-t);function $f(e,t){const n=Xs(e.x,t.x),i=Xs(e.y,t.y);return Math.sqrt(n**2+i**2)}class Zs{constructor(t,n,{transformPagePoint:i,contextWindow:r,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const d=Ki(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,p=$f(d.offset,{x:0,y:0})>=3;if(!f&&!p)return;const{point:b}=d,{timestamp:g}=pe;this.history.push({...b,timestamp:g});const{onStart:v,onMove:C}=this.handlers;f||(v&&v(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),C&&C(this.lastMoveEvent,d)},this.handlePointerMove=(d,f)=>{this.lastMoveEvent=d,this.lastMoveEventInfo=Qi(f,this.transformPagePoint),K.update(this.updatePoint,!0)},this.handlePointerUp=(d,f)=>{this.end();const{onEnd:p,onSessionEnd:b,resumeAnimation:g}=this.handlers;if(this.dragSnapToOrigin&&g&&g(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const v=Ki(d.type==="pointercancel"?this.lastMoveEventInfo:Qi(f,this.transformPagePoint),this.history);this.startEvent&&p&&p(d,v),b&&b(d,v)},!Go(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=i,this.contextWindow=r||window;const s=In(t),u=Qi(s,this.transformPagePoint),{point:a}=u,{timestamp:l}=pe;this.history=[{...a,timestamp:l}];const{onSessionStart:c}=n;c&&c(t,Ki(u,this.history)),this.removeListeners=_e(Ue(this.contextWindow,"pointermove",this.handlePointerMove),Ue(this.contextWindow,"pointerup",this.handlePointerUp),Ue(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Ye(this.updatePoint)}}function Qi(e,t){return t?{point:t(e.point)}:e}function Hs(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Ki({point:e},t){return{point:e,delta:Hs(e,ks(t)),offset:Hs(e,qf(t)),velocity:eh(t,.1)}}function qf(e){return e[0]}function ks(e){return e[e.length-1]}function eh(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,i=null;const r=ks(e);for(;n>=0&&(i=e[n],!(r.timestamp-i.timestamp>Qe(t)));)n--;if(!i)return{x:0,y:0};const o=Ke(r.timestamp-i.timestamp);if(o===0)return{x:0,y:0};const s={x:(r.x-i.x)/o,y:(r.y-i.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}const zs=1e-4,th=1-zs,nh=1+zs,js=.01,ih=0-js,rh=0+js;function Pe(e){return e.max-e.min}function oh(e,t,n){return Math.abs(e-t)<=n}function Ys(e,t,n,i=.5){e.origin=i,e.originPoint=se(t.min,t.max,e.origin),e.scale=Pe(n)/Pe(t),e.translate=se(n.min,n.max,e.origin)-e.originPoint,(e.scale>=th&&e.scale<=nh||isNaN(e.scale))&&(e.scale=1),(e.translate>=ih&&e.translate<=rh||isNaN(e.translate))&&(e.translate=0)}function Ut(e,t,n,i){Ys(e.x,t.x,n.x,i?i.originX:void 0),Ys(e.y,t.y,n.y,i?i.originY:void 0)}function Js(e,t,n){e.min=n.min+t.min,e.max=e.min+Pe(t)}function sh(e,t,n){Js(e.x,t.x,n.x),Js(e.y,t.y,n.y)}function Us(e,t,n){e.min=t.min-n.min,e.max=e.min+Pe(t)}function _t(e,t,n){Us(e.x,t.x,n.x),Us(e.y,t.y,n.y)}function ah(e,{min:t,max:n},i){return t!==void 0&&e<t?e=i?se(t,e,i.min):Math.max(e,t):n!==void 0&&e>n&&(e=i?se(n,e,i.max):Math.min(e,n)),e}function _s(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function uh(e,{top:t,left:n,bottom:i,right:r}){return{x:_s(e.x,n,r),y:_s(e.y,t,i)}}function Qs(e,t){let n=t.min-e.min,i=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,i]=[i,n]),{min:n,max:i}}function lh(e,t){return{x:Qs(e.x,t.x),y:Qs(e.y,t.y)}}function ch(e,t){let n=.5;const i=Pe(e),r=Pe(t);return r>i?n=jt(t.min,t.max-i,e.min):i>r&&(n=jt(e.min,e.max-r,t.min)),nt(0,1,n)}function dh(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const $i=.35;function fh(e=$i){return e===!1?e=0:e===!0&&(e=$i),{x:Ks(e,"left","right"),y:Ks(e,"top","bottom")}}function Ks(e,t,n){return{min:$s(e,t),max:$s(e,n)}}function $s(e,t){return typeof e=="number"?e:e[t]||0}const qs=()=>({translate:0,scale:1,origin:0,originPoint:0}),wt=()=>({x:qs(),y:qs()}),ea=()=>({min:0,max:0}),le=()=>({x:ea(),y:ea()});function Fe(e){return[e("x"),e("y")]}function ta({top:e,left:t,right:n,bottom:i}){return{x:{min:t,max:n},y:{min:e,max:i}}}function hh({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function ph(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),i=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:i.y,right:i.x}}function qi(e){return e===void 0||e===1}function er({scale:e,scaleX:t,scaleY:n}){return!qi(e)||!qi(t)||!qi(n)}function mt(e){return er(e)||na(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function na(e){return ia(e.x)||ia(e.y)}function ia(e){return e&&e!=="0%"}function wn(e,t,n){const i=e-n,r=t*i;return n+r}function ra(e,t,n,i,r){return r!==void 0&&(e=wn(e,r,i)),wn(e,n,i)+t}function tr(e,t=0,n=1,i,r){e.min=ra(e.min,t,n,i,r),e.max=ra(e.max,t,n,i,r)}function oa(e,{x:t,y:n}){tr(e.x,t.translate,t.scale,t.originPoint),tr(e.y,n.translate,n.scale,n.originPoint)}const sa=.999999999999,aa=1.0000000000001;function mh(e,t,n,i=!1){const r=n.length;if(!r)return;t.x=t.y=1;let o,s;for(let u=0;u<r;u++){o=n[u],s=o.projectionDelta;const{visualElement:a}=o.options;a&&a.props.style&&a.props.style.display==="contents"||(i&&o.options.layoutScroll&&o.scroll&&o!==o.root&&Vt(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,oa(e,s)),i&&mt(o.latestValues)&&Vt(e,o.latestValues))}t.x<aa&&t.x>sa&&(t.x=1),t.y<aa&&t.y>sa&&(t.y=1)}function at(e,t){e.min=e.min+t,e.max=e.max+t}function ua(e,t,n,i,r=.5){const o=se(e.min,e.max,r);tr(e,t,n,o,i)}function Vt(e,t){ua(e.x,t.x,t.scaleX,t.scale,t.originX),ua(e.y,t.y,t.scaleY,t.scale,t.originY)}function la(e,t){return ta(ph(e.getBoundingClientRect(),t))}function gh(e,t,n){const i=la(e,n),{scroll:r}=t;return r&&(at(i.x,r.offset.x),at(i.y,r.offset.y)),i}const ca=({current:e})=>e?e.ownerDocument.defaultView:null,bh=new WeakMap;class vh{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=le(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const r=c=>{const{dragSnapToOrigin:d}=this.getProps();d?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(In(c,"page").point)},o=(c,d)=>{var f;const{drag:p,dragPropagation:b,onDragStart:g}=this.getProps();if(p&&!b&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=Wo(p),!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),Fe(C=>{let y=this.getAxisMotionValue(C).get()||0;if(Le.test(y)){const{projection:m}=this.visualElement;if(m&&m.layout){const I=m.layout.layoutBox[C];I&&(y=Pe(I)*(parseFloat(y)/100))}}this.originPoint[C]=y}),g&&K.postRender(()=>g(c,d)),(f=this.removeWillChange)===null||f===void 0||f.call(this),this.removeWillChange=Ui(this.visualElement,"transform");const{animationState:v}=this.visualElement;v&&v.setActive("whileDrag",!0)},s=(c,d)=>{const{dragPropagation:f,dragDirectionLock:p,onDirectionLock:b,onDrag:g}=this.getProps();if(!f&&!this.openGlobalLock)return;const{offset:v}=d;if(p&&this.currentDirection===null){this.currentDirection=yh(v),this.currentDirection!==null&&b&&b(this.currentDirection);return}this.updateAxis("x",d.point,v),this.updateAxis("y",d.point,v),this.visualElement.render(),g&&g(c,d)},u=(c,d)=>this.stop(c,d),a=()=>Fe(c=>{var d;return this.getAnimationState(c)==="paused"&&((d=this.getAxisMotionValue(c).animation)===null||d===void 0?void 0:d.play())}),{dragSnapToOrigin:l}=this.getProps();this.panSession=new Zs(t,{onSessionStart:r,onStart:o,onMove:s,onSessionEnd:u,resumeAnimation:a},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,contextWindow:ca(this.visualElement)})}stop(t,n){var i;(i=this.removeWillChange)===null||i===void 0||i.call(this);const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:o}=n;this.startAnimation(o);const{onDragEnd:s}=this.getProps();s&&K.postRender(()=>s(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:i}=this.getProps();!i&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,i){const{drag:r}=this.getProps();if(!i||!Vn(t,r,this.currentDirection))return;const o=this.getAxisMotionValue(t);let s=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(s=ah(s,this.constraints[t],this.elastic[t])),o.set(s)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:i}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,o=this.constraints;n&&xt(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&r?this.constraints=uh(r.layoutBox,n):this.constraints=!1,this.elastic=fh(i),o!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&Fe(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=dh(r.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!xt(t))return!1;const i=t.current;je(i!==null,"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=gh(i,r.root,this.visualElement.getTransformPagePoint());let s=lh(r.layout.layoutBox,o);if(n){const u=n(hh(s));this.hasMutatedConstraints=!!u,u&&(s=ta(u))}return s}startAnimation(t){const{drag:n,dragMomentum:i,dragElastic:r,dragTransition:o,dragSnapToOrigin:s,onDragTransitionEnd:u}=this.getProps(),a=this.constraints||{},l=Fe(c=>{if(!Vn(c,n,this.currentDirection))return;let d=a&&a[c]||{};s&&(d={min:0,max:0});const f=r?200:1e6,p=r?40:1e7,b={type:"inertia",velocity:i?t[c]:0,bounceStiffness:f,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10,...o,...d};return this.startAxisValueAnimation(c,b)});return Promise.all(l).then(u)}startAxisValueAnimation(t,n){const i=this.getAxisMotionValue(t);return i.start(ji(t,i,0,n,this.visualElement,!1,Ui(this.visualElement,t)))}stopAnimation(){Fe(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Fe(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,i=this.visualElement.getProps(),r=i[n];return r||this.visualElement.getValue(t,(i.initial?i.initial[t]:void 0)||0)}snapToCursor(t){Fe(n=>{const{drag:i}=this.getProps();if(!Vn(n,i,this.currentDirection))return;const{projection:r}=this.visualElement,o=this.getAxisMotionValue(n);if(r&&r.layout){const{min:s,max:u}=r.layout.layoutBox[n];o.set(t[n]-se(s,u,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:i}=this.visualElement;if(!xt(n)||!i||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};Fe(s=>{const u=this.getAxisMotionValue(s);if(u&&this.constraints!==!1){const a=u.get();r[s]=ch({min:a,max:a},this.constraints[s])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),Fe(s=>{if(!Vn(s,t,null))return;const u=this.getAxisMotionValue(s),{min:a,max:l}=this.constraints[s];u.set(se(a,l,r[s]))})}addListeners(){if(!this.visualElement.current)return;bh.set(this.visualElement,this);const t=this.visualElement.current,n=Ue(t,"pointerdown",a=>{const{drag:l,dragListener:c=!0}=this.getProps();l&&c&&this.start(a)}),i=()=>{const{dragConstraints:a}=this.getProps();xt(a)&&a.current&&(this.constraints=this.resolveRefConstraints())},{projection:r}=this.visualElement,o=r.addEventListener("measure",i);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),K.read(i);const s=Je(window,"resize",()=>this.scalePositionWithinConstraints()),u=r.addEventListener("didUpdate",({delta:a,hasLayoutChanged:l})=>{this.isDragging&&l&&(Fe(c=>{const d=this.getAxisMotionValue(c);d&&(this.originPoint[c]+=a[c].translate,d.set(d.get()+a[c].translate))}),this.visualElement.render())});return()=>{s(),n(),o(),u&&u()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:i=!1,dragPropagation:r=!1,dragConstraints:o=!1,dragElastic:s=$i,dragMomentum:u=!0}=t;return{...t,drag:n,dragDirectionLock:i,dragPropagation:r,dragConstraints:o,dragElastic:s,dragMomentum:u}}}function Vn(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function yh(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class Ch extends rt{constructor(t){super(t),this.removeGroupControls=he,this.removeListeners=he,this.controls=new vh(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||he}unmount(){this.removeGroupControls(),this.removeListeners()}}const da=e=>(t,n)=>{e&&K.postRender(()=>e(t,n))};class Ih extends rt{constructor(){super(...arguments),this.removePointerDownListener=he}onPointerDown(t){this.session=new Zs(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:ca(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:i,onPanEnd:r}=this.node.getProps();return{onSessionStart:da(t),onStart:da(n),onMove:i,onEnd:(o,s)=>{delete this.session,r&&K.postRender(()=>r(o,s))}}}mount(){this.removePointerDownListener=Ue(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function xh(){const e=x.useContext(dn);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:i}=e,r=x.useId();return x.useEffect(()=>i(r),[]),!t&&n?[!1,()=>n&&n(r)]:[!0]}const Dn={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function fa(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Qt={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(R.test(e))e=parseFloat(e);else return e;const n=fa(e,t.target.x),i=fa(e,t.target.y);return`${n}% ${i}%`}},Ah={correct:(e,{treeScale:t,projectionDelta:n})=>{const i=e,r=st.parse(e);if(r.length>5)return i;const o=st.createTransformer(e),s=typeof r[0]!="number"?1:0,u=n.x.scale*t.x,a=n.y.scale*t.y;r[0+s]/=u,r[1+s]/=a;const l=se(u,a,.5);return typeof r[2+s]=="number"&&(r[2+s]/=l),typeof r[3+s]=="number"&&(r[3+s]/=l),o(r)}};class Sh extends x.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:i,layoutId:r}=this.props,{projection:o}=t;vc(Th),o&&(n.group&&n.group.add(o),i&&i.register&&r&&i.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),Dn.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:i,drag:r,isPresent:o}=this.props,s=i.projection;return s&&(s.isPresent=o,r||t.layoutDependency!==n||n===void 0?s.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?s.promote():s.relegate()||K.postRender(()=>{const u=s.getStack();(!u||!u.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),ui.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:i}=this.props,{projection:r}=t;r&&(r.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(r),i&&i.deregister&&i.deregister(r))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function ha(e){const[t,n]=xh(),i=x.useContext(di);return w.jsx(Sh,{...e,layoutGroup:i,switchLayoutGroup:x.useContext(ao),isPresent:t,safeToRemove:n})}const Th={borderRadius:{...Qt,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Qt,borderTopRightRadius:Qt,borderBottomLeftRadius:Qt,borderBottomRightRadius:Qt,boxShadow:Ah},pa=["TopLeft","TopRight","BottomLeft","BottomRight"],Eh=pa.length,ma=e=>typeof e=="string"?parseFloat(e):e,ga=e=>typeof e=="number"||R.test(e);function Ph(e,t,n,i,r,o){r?(e.opacity=se(0,n.opacity!==void 0?n.opacity:1,wh(i)),e.opacityExit=se(t.opacity!==void 0?t.opacity:1,0,Vh(i))):o&&(e.opacity=se(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,i));for(let s=0;s<Eh;s++){const u=`border${pa[s]}Radius`;let a=ba(t,u),l=ba(n,u);if(a===void 0&&l===void 0)continue;a||(a=0),l||(l=0),a===0||l===0||ga(a)===ga(l)?(e[u]=Math.max(se(ma(a),ma(l),i),0),(Le.test(l)||Le.test(a))&&(e[u]+="%")):e[u]=l}(t.rotate||n.rotate)&&(e.rotate=se(t.rotate||0,n.rotate||0,i))}function ba(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const wh=va(0,.5,Is),Vh=va(.5,.95,he);function va(e,t,n){return i=>i<e?0:i>t?1:n(jt(e,t,i))}function ya(e,t){e.min=t.min,e.max=t.max}function Me(e,t){ya(e.x,t.x),ya(e.y,t.y)}function Ca(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Ia(e,t,n,i,r){return e-=t,e=wn(e,1/n,i),r!==void 0&&(e=wn(e,1/r,i)),e}function Dh(e,t=0,n=1,i=.5,r,o=e,s=e){if(Le.test(t)&&(t=parseFloat(t),t=se(s.min,s.max,t/100)-s.min),typeof t!="number")return;let u=se(o.min,o.max,i);e===o&&(u-=t),e.min=Ia(e.min,t,n,u,r),e.max=Ia(e.max,t,n,u,r)}function xa(e,t,[n,i,r],o,s){Dh(e,t[n],t[i],t[r],t.scale,o,s)}const Fh=["x","scaleX","originX"],Mh=["y","scaleY","originY"];function Aa(e,t,n,i){xa(e.x,t,Fh,n?n.x:void 0,i?i.x:void 0),xa(e.y,t,Mh,n?n.y:void 0,i?i.y:void 0)}function Sa(e){return e.translate===0&&e.scale===1}function Ta(e){return Sa(e.x)&&Sa(e.y)}function Bh(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 Ea(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function Pa(e){return Pe(e.x)/Pe(e.y)}function wa(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class Gh{constructor(){this.members=[]}add(t){yn(this.members,t),t.scheduleRender()}remove(t){if(Cn(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(r=>t===r);if(n===0)return!1;let i;for(let r=n;r>=0;r--){const o=this.members[r];if(o.isPresent!==!1){i=o;break}}return i?(this.promote(i),!0):!1}promote(t,n){const i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender(),t.resumeFrom=i,n&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:r}=t.options;r===!1&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:i}=t;n.onExitComplete&&n.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Oh(e,t,n){let i="";const r=e.x.translate/t.x,o=e.y.translate/t.y,s=(n==null?void 0:n.z)||0;if((r||o||s)&&(i=`translate3d(${r}px, ${o}px, ${s}px) `),(t.x!==1||t.y!==1)&&(i+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:l,rotate:c,rotateX:d,rotateY:f,skewX:p,skewY:b}=n;l&&(i=`perspective(${l}px) ${i}`),c&&(i+=`rotate(${c}deg) `),d&&(i+=`rotateX(${d}deg) `),f&&(i+=`rotateY(${f}deg) `),p&&(i+=`skewX(${p}deg) `),b&&(i+=`skewY(${b}deg) `)}const u=e.x.scale*t.x,a=e.y.scale*t.y;return(u!==1||a!==1)&&(i+=`scale(${u}, ${a})`),i||"none"}const Nh=(e,t)=>e.depth-t.depth;class Rh{constructor(){this.children=[],this.isDirty=!1}add(t){yn(this.children,t),this.isDirty=!0}remove(t){Cn(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Nh),this.isDirty=!1,this.children.forEach(t)}}function Wh(e,t){const n=ot.now(),i=({timestamp:r})=>{const o=r-n;o>=t&&(Ye(i),e(o-t))};return K.read(i,!0),()=>Ye(i)}function Lh(e){return e instanceof SVGElement&&e.tagName!=="svg"}function Xh(e,t,n){const i=ve(e)?e:Jt(e);return i.start(ji("",i,t,n)),i.animation}const gt={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},nr=["","X","Y","Z"],Zh={visibility:"hidden"},Va=1e3;let Hh=0;function ir(e,t,n,i){const{latestValues:r}=t;r[e]&&(n[e]=r[e],t.setStaticValue(e,0),i&&(i[e]=0))}function Da(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return!1;const{visualElement:t}=e.options;return t?Rs(t)?!0:e.parent&&!e.parent.hasCheckedOptimisedAppear?Da(e.parent):!1:!1}function Fa({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:i,resetTransform:r}){return class{constructor(s={},u=t==null?void 0:t()){this.id=Hh++,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.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,window.MotionDebug&&(gt.totalNodes=gt.resolvedTargetDeltas=gt.recalculatedProjection=0),this.nodes.forEach(jh),this.nodes.forEach(Qh),this.nodes.forEach(Kh),this.nodes.forEach(Yh),window.MotionDebug&&window.MotionDebug.record(gt)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=u?u.root||u:this,this.path=u?[...u.path,u]:[],this.parent=u,this.depth=u?u.depth+1:0;for(let a=0;a<this.path.length;a++)this.path[a].shouldResetTransform=!0;this.root===this&&(this.nodes=new Rh)}addEventListener(s,u){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new Yi),this.eventHandlers.get(s).add(u)}notifyListeners(s,...u){const a=this.eventHandlers.get(s);a&&a.notify(...u)}hasListeners(s){return this.eventHandlers.has(s)}mount(s,u=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=Lh(s),this.instance=s;const{layoutId:a,layout:l,visualElement:c}=this.options;if(c&&!c.current&&c.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),u&&(l||a)&&(this.isLayoutDirty=!0),e){let d;const f=()=>this.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,d&&d(),d=Wh(f,250),Dn.hasAnimatedSinceResize&&(Dn.hasAnimatedSinceResize=!1,this.nodes.forEach(Ba))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&c&&(a||l)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:f,hasRelativeTargetChanged:p,layout:b})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const g=this.options.transition||c.getDefaultTransition()||np,{onLayoutAnimationStart:v,onLayoutAnimationComplete:C}=c.getProps(),y=!this.targetLayout||!Ea(this.targetLayout,b)||p,m=!f&&p;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||m||f&&(y||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(d,m);const I={...Ei(g,"layout"),onPlay:v,onComplete:C};(c.shouldReduceMotion||this.options.layoutRoot)&&(I.delay=0,I.type=!1),this.startAnimation(I)}else f||Ba(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=b})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Ye(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($h),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.HandoffCancelAllAnimations&&Da(this)&&window.HandoffCancelAllAnimations(),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c<this.path.length;c++){const d=this.path[c];d.shouldResetTransform=!0,d.updateScroll("snapshot"),d.options.layoutRoot&&d.willUpdate(!1)}const{layoutId:u,layout:a}=this.options;if(u===void 0&&!a)return;const l=this.getTransformTemplate();this.prevTransformTemplateValue=l?l(this.latestValues,""):void 0,this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Ma);return}this.isUpdating||this.nodes.forEach(Uh),this.isUpdating=!1,this.nodes.forEach(_h),this.nodes.forEach(kh),this.nodes.forEach(zh),this.clearAllSnapshots();const u=ot.now();pe.delta=nt(0,1e3/60,u-pe.timestamp),pe.timestamp=u,pe.isProcessing=!0,xi.update.process(pe),xi.preRender.process(pe),xi.render.process(pe),pe.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,ui.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Jh),this.sharedNodes.forEach(qh)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,K.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){K.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let a=0;a<this.path.length;a++)this.path[a].updateScroll();const s=this.layout;this.layout=this.measure(!1),this.layoutCorrected=le(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:u}=this.options;u&&u.notify("LayoutMeasure",this.layout.layoutBox,s?s.layoutBox:void 0)}updateScroll(s="measure"){let u=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(u=!1),u&&(this.scroll={animationId:this.root.animationId,phase:s,isRoot:i(this.instance),offset:n(this.instance)})}resetTransform(){if(!r)return;const s=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,u=this.projectionDelta&&!Ta(this.projectionDelta),a=this.getTransformTemplate(),l=a?a(this.latestValues,""):void 0,c=l!==this.prevTransformTemplateValue;s&&(u||mt(this.latestValues)||c)&&(r(this.instance,l),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){const u=this.measurePageBox();let a=this.removeElementScroll(u);return s&&(a=this.removeTransform(a)),ip(a),{animationId:this.root.animationId,measuredBox:u,layoutBox:a,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:s}=this.options;if(!s)return le();const u=s.measureViewportBox(),{scroll:a}=this.root;return a&&(at(u.x,a.offset.x),at(u.y,a.offset.y)),u}removeElementScroll(s){const u=le();Me(u,s);for(let a=0;a<this.path.length;a++){const l=this.path[a],{scroll:c,options:d}=l;if(l!==this.root&&c&&d.layoutScroll){if(c.isRoot){Me(u,s);const{scroll:f}=this.root;f&&(at(u.x,-f.offset.x),at(u.y,-f.offset.y))}at(u.x,c.offset.x),at(u.y,c.offset.y)}}return u}applyTransform(s,u=!1){const a=le();Me(a,s);for(let l=0;l<this.path.length;l++){const c=this.path[l];!u&&c.options.layoutScroll&&c.scroll&&c!==c.root&&Vt(a,{x:-c.scroll.offset.x,y:-c.scroll.offset.y}),mt(c.latestValues)&&Vt(a,c.latestValues)}return mt(this.latestValues)&&Vt(a,this.latestValues),a}removeTransform(s){const u=le();Me(u,s);for(let a=0;a<this.path.length;a++){const l=this.path[a];if(!l.instance||!mt(l.latestValues))continue;er(l.latestValues)&&l.updateSnapshot();const c=le(),d=l.measurePageBox();Me(c,d),Aa(u,l.latestValues,l.snapshot?l.snapshot.layoutBox:void 0,c)}return mt(this.latestValues)&&Aa(u,this.latestValues),u}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(s){this.options={...this.options,...s,crossfade:s.crossfade!==void 0?s.crossfade:!0}}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!==pe.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!1){var u;const a=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=a.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=a.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=a.isSharedProjectionDirty);const l=!!this.resumingFrom||this!==a;if(!(s||l&&this.isSharedProjectionDirty||this.isProjectionDirty||!((u=this.parent)===null||u===void 0)&&u.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:d,layoutId:f}=this.options;if(!(!this.layout||!(d||f))){if(this.resolvedRelativeTargetAt=pe.timestamp,!this.targetDelta&&!this.relativeTarget){const p=this.getClosestProjectingParent();p&&p.layout&&this.animationProgress!==1?(this.relativeParent=p,this.forceRelativeParentToResolveTarget(),this.relativeTarget=le(),this.relativeTargetOrigin=le(),_t(this.relativeTargetOrigin,this.layout.layoutBox,p.layout.layoutBox),Me(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=le(),this.targetWithTransforms=le()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),sh(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Me(this.target,this.layout.layoutBox),oa(this.target,this.targetDelta)):Me(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const p=this.getClosestProjectingParent();p&&!!p.resumingFrom==!!this.resumingFrom&&!p.options.layoutScroll&&p.target&&this.animationProgress!==1?(this.relativeParent=p,this.forceRelativeParentToResolveTarget(),this.relativeTarget=le(),this.relativeTargetOrigin=le(),_t(this.relativeTargetOrigin,this.target,p.target),Me(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}window.MotionDebug&>.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||er(this.parent.latestValues)||na(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var s;const u=this.getLead(),a=!!this.resumingFrom||this!==u;let l=!0;if((this.isProjectionDirty||!((s=this.parent)===null||s===void 0)&&s.isProjectionDirty)&&(l=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===pe.timestamp&&(l=!1),l)return;const{layout:c,layoutId:d}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(c||d))return;Me(this.layoutCorrected,this.layout.layoutBox);const f=this.treeScale.x,p=this.treeScale.y;mh(this.layoutCorrected,this.treeScale,this.path,a),u.layout&&!u.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(u.target=u.layout.layoutBox,u.targetWithTransforms=le());const{target:b}=u;if(!b){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Ca(this.prevProjectionDelta.x,this.projectionDelta.x),Ca(this.prevProjectionDelta.y,this.projectionDelta.y)),Ut(this.projectionDelta,this.layoutCorrected,b,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==p||!wa(this.projectionDelta.x,this.prevProjectionDelta.x)||!wa(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",b)),window.MotionDebug&>.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),s){const u=this.getStack();u&&u.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=wt(),this.projectionDelta=wt(),this.projectionDeltaWithTransform=wt()}setAnimationOrigin(s,u=!1){const a=this.snapshot,l=a?a.latestValues:{},c={...this.latestValues},d=wt();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!u;const f=le(),p=a?a.source:void 0,b=this.layout?this.layout.source:void 0,g=p!==b,v=this.getStack(),C=!v||v.members.length<=1,y=!!(g&&!C&&this.options.crossfade===!0&&!this.path.some(tp));this.animationProgress=0;let m;this.mixTargetDelta=I=>{const h=I/1e3;Ga(d.x,s.x,h),Ga(d.y,s.y,h),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(_t(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),ep(this.relativeTarget,this.relativeTargetOrigin,f,h),m&&Bh(this.relativeTarget,m)&&(this.isProjectionDirty=!1),m||(m=le()),Me(m,this.relativeTarget)),g&&(this.animationValues=c,Ph(c,l,this.latestValues,h,y,C)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=h},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Ye(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=K.update(()=>{Dn.hasAnimatedSinceResize=!0,this.currentAnimation=Xh(0,Va,{...s,onUpdate:u=>{this.mixTargetDelta(u),s.onUpdate&&s.onUpdate(u)},onComplete:()=>{s.onComplete&&s.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 s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Va),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:u,target:a,layout:l,latestValues:c}=s;if(!(!u||!a||!l)){if(this!==s&&this.layout&&l&&La(this.options.animationType,this.layout.layoutBox,l.layoutBox)){a=this.target||le();const d=Pe(this.layout.layoutBox.x);a.x.min=s.target.x.min,a.x.max=a.x.min+d;const f=Pe(this.layout.layoutBox.y);a.y.min=s.target.y.min,a.y.max=a.y.min+f}Me(u,a),Vt(u,c),Ut(this.projectionDeltaWithTransform,this.layoutCorrected,u,c)}}registerSharedNode(s,u){this.sharedNodes.has(s)||this.sharedNodes.set(s,new Gh),this.sharedNodes.get(s).add(u);const l=u.options.initialPromotionConfig;u.promote({transition:l?l.transition:void 0,preserveFollowOpacity:l&&l.shouldPreserveFollowOpacity?l.shouldPreserveFollowOpacity(u):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var s;const{layoutId:u}=this.options;return u?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:u}=this.options;return u?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:u,preserveFollowOpacity:a}={}){const l=this.getStack();l&&l.promote(this,a),s&&(this.projectionDelta=void 0,this.needsReset=!0),u&&this.setOptions({transition:u})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetSkewAndRotation(){const{visualElement:s}=this.options;if(!s)return;let u=!1;const{latestValues:a}=s;if((a.z||a.rotate||a.rotateX||a.rotateY||a.rotateZ||a.skewX||a.skewY)&&(u=!0),!u)return;const l={};a.z&&ir("z",s,l,this.animationValues);for(let c=0;c<nr.length;c++)ir(`rotate${nr[c]}`,s,l,this.animationValues),ir(`skew${nr[c]}`,s,l,this.animationValues);s.render();for(const c in l)s.setStaticValue(c,l[c]),this.animationValues&&(this.animationValues[c]=l[c]);s.scheduleRender()}getProjectionStyles(s){var u,a;if(!this.instance||this.isSVG)return;if(!this.isVisible)return Zh;const l={visibility:""},c=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,l.opacity="",l.pointerEvents=vn(s==null?void 0:s.pointerEvents)||"",l.transform=c?c(this.latestValues,""):"none",l;const d=this.getLead();if(!this.projectionDelta||!this.layout||!d.target){const g={};return this.options.layoutId&&(g.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,g.pointerEvents=vn(s==null?void 0:s.pointerEvents)||""),this.hasProjected&&!mt(this.latestValues)&&(g.transform=c?c({},""):"none",this.hasProjected=!1),g}const f=d.animationValues||d.latestValues;this.applyTransformsToTarget(),l.transform=Oh(this.projectionDeltaWithTransform,this.treeScale,f),c&&(l.transform=c(f,l.transform));const{x:p,y:b}=this.projectionDelta;l.transformOrigin=`${p.origin*100}% ${b.origin*100}% 0`,d.animationValues?l.opacity=d===this?(a=(u=f.opacity)!==null&&u!==void 0?u:this.latestValues.opacity)!==null&&a!==void 0?a:1:this.preserveOpacity?this.latestValues.opacity:f.opacityExit:l.opacity=d===this?f.opacity!==void 0?f.opacity:"":f.opacityExit!==void 0?f.opacityExit:0;for(const g in mn){if(f[g]===void 0)continue;const{correct:v,applyTo:C}=mn[g],y=l.transform==="none"?f[g]:v(f[g],d);if(C){const m=C.length;for(let I=0;I<m;I++)l[C[I]]=y}else l[g]=y}return this.options.layoutId&&(l.pointerEvents=d===this?vn(s==null?void 0:s.pointerEvents)||"":"none"),l}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>{var u;return(u=s.currentAnimation)===null||u===void 0?void 0:u.stop()}),this.root.nodes.forEach(Ma),this.root.sharedNodes.clear()}}}function kh(e){e.updateLayout()}function zh(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:i,measuredBox:r}=e.layout,{animationType:o}=e.options,s=n.source!==e.layout.source;o==="size"?Fe(d=>{const f=s?n.measuredBox[d]:n.layoutBox[d],p=Pe(f);f.min=i[d].min,f.max=f.min+p}):La(o,n.layoutBox,i)&&Fe(d=>{const f=s?n.measuredBox[d]:n.layoutBox[d],p=Pe(i[d]);f.max=f.min+p,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+p)});const u=wt();Ut(u,i,n.layoutBox);const a=wt();s?Ut(a,e.applyTransform(r,!0),n.measuredBox):Ut(a,i,n.layoutBox);const l=!Ta(u);let c=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:f,layout:p}=d;if(f&&p){const b=le();_t(b,n.layoutBox,f.layoutBox);const g=le();_t(g,i,p.layoutBox),Ea(b,g)||(c=!0),d.options.layoutRoot&&(e.relativeTarget=g,e.relativeTargetOrigin=b,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:i,snapshot:n,delta:a,layoutDelta:u,hasLayoutChanged:l,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:i}=e.options;i&&i()}e.options.transition=void 0}function jh(e){window.MotionDebug&>.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function Yh(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Jh(e){e.clearSnapshot()}function Ma(e){e.clearMeasurements()}function Uh(e){e.isLayoutDirty=!1}function _h(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Ba(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Qh(e){e.resolveTargetDelta()}function Kh(e){e.calcProjection()}function $h(e){e.resetSkewAndRotation()}function qh(e){e.removeLeadSnapshot()}function Ga(e,t,n){e.translate=se(t.translate,0,n),e.scale=se(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Oa(e,t,n,i){e.min=se(t.min,n.min,i),e.max=se(t.max,n.max,i)}function ep(e,t,n,i){Oa(e.x,t.x,n.x,i),Oa(e.y,t.y,n.y,i)}function tp(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const np={duration:.45,ease:[.4,0,.1,1]},Na=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Ra=Na("applewebkit/")&&!Na("chrome/")?Math.round:he;function Wa(e){e.min=Ra(e.min),e.max=Ra(e.max)}function ip(e){Wa(e.x),Wa(e.y)}function La(e,t,n){return e==="position"||e==="preserve-aspect"&&!oh(Pa(t),Pa(n),.2)}const rp=Fa({attachResizeListener:(e,t)=>Je(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),rr={current:void 0},Xa=Fa({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!rr.current){const e=new rp({});e.mount(window),e.setOptions({layoutScroll:!0}),rr.current=e}return rr.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),op={pan:{Feature:Ih},drag:{Feature:Ch,ProjectionNode:Xa,MeasureLayout:ha}},or={current:null},Za={current:!1};function sp(){if(Za.current=!0,!!si)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>or.current=e.matches;e.addListener(t),t()}else or.current=!1}function ap(e,t,n){for(const i in t){const r=t[i],o=n[i];if(ve(r))e.addValue(i,r),process.env.NODE_ENV==="development"&&Ji(r.version==="11.3.8",`Attempting to mix Framer Motion versions ${r.version} with 11.3.8 may not work as expected.`);else if(ve(o))e.addValue(i,Jt(r,{owner:e}));else if(o!==r)if(e.hasValue(i)){const s=e.getValue(i);s.liveStyle===!0?s.jump(r):s.hasAnimated||s.set(r)}else{const s=e.getStaticValue(i);e.addValue(i,Jt(s!==void 0?s:r,{owner:e}))}}for(const i in n)t[i]===void 0&&e.removeValue(i);return t}const Ha=new WeakMap,up=[...Qo,ye,st],lp=e=>up.find(_o(e)),ka=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],cp=ci.length;class dp{scrapeMotionValuesFromProps(t,n,i){return{}}constructor({parent:t,props:n,presenceContext:i,reducedMotionConfig:r,blockInitialAnimation:o,visualState:s},u={}){this.applyWillChange=!1,this.resolveKeyframes=(f,p,b,g)=>new this.KeyframeResolver(f,p,b,g,this),this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Vi,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.isRenderScheduled=!1,this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.isRenderScheduled=!1,this.scheduleRender=()=>{this.isRenderScheduled||(this.isRenderScheduled=!0,K.render(this.render,!1,!0))};const{latestValues:a,renderState:l}=s;this.latestValues=a,this.baseTarget={...a},this.initialValues=n.initial?{...a}:{},this.renderState=l,this.parent=t,this.props=n,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=r,this.options=u,this.blockInitialAnimation=!!o,this.isControllingVariants=pn(n),this.isVariantNode=co(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:c,...d}=this.scrapeMotionValuesFromProps(n,{},this);for(const f in d){const p=d[f];a[f]!==void 0&&ve(p)&&p.set(a[f],!1)}}mount(t){this.current=t,Ha.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,i)=>this.bindToMotionValue(i,n)),Za.current||sp(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:or.current,process.env.NODE_ENV!=="production"&&Ji(this.shouldReduceMotion!==!0,"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(){Ha.delete(this.current),this.projection&&this.projection.unmount(),Ye(this.notifyUpdate),Ye(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){const i=tt.has(t),r=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&K.preRender(this.notifyUpdate),i&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{r(),o(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in At){const n=At[t];if(!n)continue;const{isEnabled:i,Feature:r}=n;if(!this.features[t]&&r&&i(this.props)&&(this.features[t]=new r(this)),this.features[t]){const o=this.features[t];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):le()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let i=0;i<ka.length;i++){const r=ka[i];this.propEventSubscriptions[r]&&(this.propEventSubscriptions[r](),delete this.propEventSubscriptions[r]);const o="on"+r,s=t[o];s&&(this.propEventSubscriptions[r]=this.on(r,s))}this.prevMotionValues=ap(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]: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(t=!1){if(t)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const i=this.parent?this.parent.getVariantContext()||{}:{};return this.props.initial!==void 0&&(i.initial=this.props.initial),i}const n={};for(let i=0;i<cp;i++){const r=ci[i],o=this.props[r];(Nt(o)||o===!1)&&(n[r]=o)}return n}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const i=this.values.get(t);n!==i&&(i&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let i=this.values.get(t);return i===void 0&&n!==void 0&&(i=Jt(n===null?void 0:n,{owner:this}),this.addValue(t,i)),i}readValue(t,n){var i;let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(i=this.getBaseTargetFromProps(this.props,t))!==null&&i!==void 0?i:this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(zo(r)||ko(r))?r=parseFloat(r):!lp(r)&&st.test(n)&&(r=ss(t,n)),this.setBaseTarget(t,ve(r)?r.get():r)),ve(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:i}=this.props;let r;if(typeof i=="string"||typeof i=="object"){const s=Ci(this.props,i,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);s&&(r=s[t])}if(i&&r!==void 0)return r;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!ve(o)?o:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Yi),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class za extends dp{constructor(){super(...arguments),this.KeyframeResolver=as}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:i}){delete n[t],delete i[t]}}function fp(e){return window.getComputedStyle(e)}class hp extends za{constructor(){super(...arguments),this.type="html",this.applyWillChange=!0,this.renderInstance=So}readValueFromInstance(t,n){if(tt.has(n)){const i=Gi(n);return i&&i.default||0}else{const i=fp(t),r=(go(n)?i.getPropertyValue(n):i[n])||0;return typeof r=="string"?r.trim():r}}measureInstanceViewportBox(t,{transformPagePoint:n}){return la(t,n)}build(t,n,i){mi(t,n,i.transformTemplate)}scrapeMotionValuesFromProps(t,n,i){return yi(t,n,i)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;ve(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class pp extends za{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=le}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(tt.has(n)){const i=Gi(n);return i&&i.default||0}return n=To.has(n)?n:fn(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,i){return Po(t,n,i)}build(t,n,i){bi(t,n,this.isSVGTag,i.transformTemplate)}renderInstance(t,n,i,r){Eo(t,n,i,r)}mount(t){this.isSVGTag=vi(t.tagName),super.mount(t)}}const mp=(e,t)=>fi(e)?new pp(t):new hp(t,{allowProjection:e!==x.Fragment}),gp={...Kf,...ud,...op,...{layout:{ProjectionNode:Xa,MeasureLayout:ha}}},Kt=gc((e,t)=>_c(e,t,gp,mp));function ja(){const e=x.useRef(!1);return ai(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function bp(){const e=ja(),[t,n]=x.useState(0),i=x.useCallback(()=>{e.current&&n(t+1)},[t]);return[x.useCallback(()=>K.postRender(i),[i]),t]}class vp extends Z.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const i=this.props.sizeRef.current;i.height=n.offsetHeight||0,i.width=n.offsetWidth||0,i.top=n.offsetTop,i.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function yp({children:e,isPresent:t}){const n=x.useId(),i=x.useRef(null),r=x.useRef({width:0,height:0,top:0,left:0}),{nonce:o}=x.useContext(oi);return x.useInsertionEffect(()=>{const{width:s,height:u,top:a,left:l}=r.current;if(t||!i.current||!s||!u)return;i.current.dataset.motionPopId=n;const c=document.createElement("style");return o&&(c.nonce=o),document.head.appendChild(c),c.sheet&&c.sheet.insertRule(`
|
|
5
|
+
*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var o="",s=0;s<arguments.length;s++){var u=arguments[s];u&&(o=r(o,i(u)))}return o}function i(o){if(typeof o=="string"||typeof o=="number")return o;if(typeof o!="object")return"";if(Array.isArray(o))return n.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var s="";for(var u in o)t.call(o,u)&&o[u]&&(s=r(s,u));return s}function r(o,s){return s?o?o+" "+s:o+s:o}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(qr);var Hl=qr.exports;const It=$r(Hl);var eo={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},to=x.createContext&&x.createContext(eo),kl=["attr","size","title"];function zl(e,t){if(e==null)return{};var n=jl(e,t),i,r;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)i=o[r],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(n[i]=e[i])}return n}function jl(e,t){if(e==null)return{};var n={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){if(t.indexOf(i)>=0)continue;n[i]=e[i]}return n}function un(){return un=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},un.apply(this,arguments)}function no(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,i)}return n}function ln(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?no(Object(n),!0).forEach(function(i){Yl(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):no(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function Yl(e,t,n){return t=Jl(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Jl(e){var t=Ul(e,"string");return typeof t=="symbol"?t:t+""}function Ul(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function io(e){return e&&e.map((t,n)=>x.createElement(t.tag,ln({key:n},t.attr),io(t.child)))}function dt(e){return t=>x.createElement(_l,un({attr:ln({},e.attr)},t),io(e.child))}function _l(e){var t=n=>{var{attr:i,size:r,title:o}=e,s=zl(e,kl),u=r||n.size||"1em",a;return n.className&&(a=n.className),e.className&&(a=(a?a+" ":"")+e.className),x.createElement("svg",un({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,i,s,{className:a,style:ln(ln({color:e.color||n.color},n.style),e.style),height:u,width:u,xmlns:"http://www.w3.org/2000/svg"}),o&&x.createElement("title",null,o),e.children)};return to!==void 0?x.createElement(to.Consumer,null,n=>t(n)):t(eo)}function Ql(e){return dt({tag:"svg",attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M12 0C5.383 0 0 5.383 0 12s5.383 12 12 12 12-5.383 12-12h-2.7c0 5.128-4.172 9.3-9.3 9.3-5.128 0-9.3-4.172-9.3-9.3 0-5.128 4.172-9.3 9.3-9.3V0Zm7.4 2.583-7.505 9.371L8.388 9.08l-2.002 2.436 4.741 3.888a1.573 1.573 0 0 0 2.231-.233l8.504-10.617L19.4 2.583Z"},child:[]}]})(e)}function Kl(e){return dt({tag:"svg",attr:{viewBox:"0 0 15 15",fill:"none"},child:[{tag:"path",attr:{fillRule:"evenodd",clipRule:"evenodd",d:"M0.877075 7.49988C0.877075 3.84219 3.84222 0.877045 7.49991 0.877045C11.1576 0.877045 14.1227 3.84219 14.1227 7.49988C14.1227 11.1575 11.1576 14.1227 7.49991 14.1227C3.84222 14.1227 0.877075 11.1575 0.877075 7.49988ZM7.49991 1.82704C4.36689 1.82704 1.82708 4.36686 1.82708 7.49988C1.82708 10.6329 4.36689 13.1727 7.49991 13.1727C10.6329 13.1727 13.1727 10.6329 13.1727 7.49988C13.1727 4.36686 10.6329 1.82704 7.49991 1.82704ZM9.85358 5.14644C10.0488 5.3417 10.0488 5.65829 9.85358 5.85355L8.20713 7.49999L9.85358 9.14644C10.0488 9.3417 10.0488 9.65829 9.85358 9.85355C9.65832 10.0488 9.34173 10.0488 9.14647 9.85355L7.50002 8.2071L5.85358 9.85355C5.65832 10.0488 5.34173 10.0488 5.14647 9.85355C4.95121 9.65829 4.95121 9.3417 5.14647 9.14644L6.79292 7.49999L5.14647 5.85355C4.95121 5.65829 4.95121 5.3417 5.14647 5.14644C5.34173 4.95118 5.65832 4.95118 5.85358 5.14644L7.50002 6.79289L9.14647 5.14644C9.34173 4.95118 9.65832 4.95118 9.85358 5.14644Z",fill:"currentColor"},child:[]}]})(e)}function $l(e){return dt({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M464 256A208 208 0 1 0 48 256a208 208 0 1 0 416 0zM0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256zm169.8-90.7c7.9-22.3 29.1-37.3 52.8-37.3h58.3c34.9 0 63.1 28.3 63.1 63.1c0 22.6-12.1 43.5-31.7 54.8L280 264.4c-.2 13-10.9 23.6-24 23.6c-13.3 0-24-10.7-24-24V250.5c0-8.6 4.6-16.5 12.1-20.8l44.3-25.4c4.7-2.7 7.6-7.7 7.6-13.1c0-8.4-6.8-15.1-15.1-15.1H222.6c-3.4 0-6.4 2.1-7.5 5.3l-.4 1.2c-4.4 12.5-18.2 19-30.6 14.6s-19-18.2-14.6-30.6l.4-1.2zM224 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"},child:[]}]})(e)}function ql(e){return dt({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"},child:[]}]})(e)}function ec(e){return dt({tag:"svg",attr:{version:"1.1",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M15.854 12.854c-0-0-0-0-0-0l-4.854-4.854 4.854-4.854c0-0 0-0 0-0 0.052-0.052 0.090-0.113 0.114-0.178 0.066-0.178 0.028-0.386-0.114-0.529l-2.293-2.293c-0.143-0.143-0.351-0.181-0.529-0.114-0.065 0.024-0.126 0.062-0.178 0.114 0 0-0 0-0 0l-4.854 4.854-4.854-4.854c-0-0-0-0-0-0-0.052-0.052-0.113-0.090-0.178-0.114-0.178-0.066-0.386-0.029-0.529 0.114l-2.293 2.293c-0.143 0.143-0.181 0.351-0.114 0.529 0.024 0.065 0.062 0.126 0.114 0.178 0 0 0 0 0 0l4.854 4.854-4.854 4.854c-0 0-0 0-0 0-0.052 0.052-0.090 0.113-0.114 0.178-0.066 0.178-0.029 0.386 0.114 0.529l2.293 2.293c0.143 0.143 0.351 0.181 0.529 0.114 0.065-0.024 0.126-0.062 0.178-0.114 0-0 0-0 0-0l4.854-4.854 4.854 4.854c0 0 0 0 0 0 0.052 0.052 0.113 0.090 0.178 0.114 0.178 0.066 0.386 0.029 0.529-0.114l2.293-2.293c0.143-0.143 0.181-0.351 0.114-0.529-0.024-0.065-0.062-0.126-0.114-0.178z"},child:[]}]})(e)}const oi=x.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),cn=x.createContext({}),dn=x.createContext(null),si=typeof document<"u",ai=si?x.useLayoutEffect:x.useEffect,ro=x.createContext({strict:!1}),fn=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),oo="data-"+fn("framerAppearId"),tc={skipAnimations:!1,useManualTiming:!1};function nc(e){let t=new Set,n=new Set,i=!1,r=!1;const o=new WeakSet;let s={delta:0,timestamp:0,isProcessing:!1};function u(l){o.has(l)&&(a.schedule(l),e()),l(s)}const a={schedule:(l,c=!1,d=!1)=>{const p=d&&i?t:n;return c&&o.add(l),p.has(l)||p.add(l),l},cancel:l=>{n.delete(l),o.delete(l)},process:l=>{if(s=l,i){r=!0;return}i=!0,[t,n]=[n,t],n.clear(),t.forEach(u),i=!1,r&&(r=!1,a.process(l))}};return a}const hn=["read","resolveKeyframes","update","preRender","render","postRender"],ic=40;function so(e,t){let n=!1,i=!0;const r={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,s=hn.reduce((C,y)=>(C[y]=nc(o),C),{}),{read:u,resolveKeyframes:a,update:l,preRender:c,render:d,postRender:f}=s,p=()=>{const C=performance.now();n=!1,r.delta=i?1e3/60:Math.max(Math.min(C-r.timestamp,ic),1),r.timestamp=C,r.isProcessing=!0,u.process(r),a.process(r),l.process(r),c.process(r),d.process(r),f.process(r),r.isProcessing=!1,n&&t&&(i=!1,e(p))},b=()=>{n=!0,i=!0,r.isProcessing||e(p)};return{schedule:hn.reduce((C,y)=>{const m=s[y];return C[y]=(I,h=!1,S=!1)=>(n||b(),m.schedule(I,h,S)),C},{}),cancel:C=>{for(let y=0;y<hn.length;y++)s[hn[y]].cancel(C)},state:r,steps:s}}const{schedule:ui,cancel:$v}=so(queueMicrotask,!1);function xt(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}const ao=x.createContext({});let uo=!1;function rc(e,t,n,i,r){const{visualElement:o}=x.useContext(cn),s=x.useContext(ro),u=x.useContext(dn),a=x.useContext(oi).reducedMotion,l=x.useRef();i=i||s.renderer,!l.current&&i&&(l.current=i(e,{visualState:t,parent:o,props:n,presenceContext:u,blockInitialAnimation:u?u.initial===!1:!1,reducedMotionConfig:a}));const c=l.current,d=x.useContext(ao);c&&!c.projection&&r&&(c.type==="html"||c.type==="svg")&&sc(l.current,n,r,d),x.useInsertionEffect(()=>{c&&c.update(n,u)});const f=x.useRef(!!(n[oo]&&!window.HandoffComplete));return ai(()=>{c&&(c.updateFeatures(),ui.render(c.render),f.current&&c.animationState&&c.animationState.animateChanges())}),x.useEffect(()=>{c&&(!f.current&&c.animationState&&c.animationState.animateChanges(),f.current&&(f.current=!1,uo||(uo=!0,queueMicrotask(oc))))}),c}function oc(){window.HandoffComplete=!0}function sc(e,t,n,i){const{layoutId:r,layout:o,drag:s,dragConstraints:u,layoutScroll:a,layoutRoot:l}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:lo(e.parent)),e.projection.setOptions({layoutId:r,layout:o,alwaysMeasureLayout:!!s||u&&xt(u),visualElement:e,scheduleRender:()=>e.scheduleRender(),animationType:typeof o=="string"?o:"both",initialPromotionConfig:i,layoutScroll:a,layoutRoot:l})}function lo(e){if(e)return e.options.allowProjection!==!1?e.projection:lo(e.parent)}function ac(e,t,n){return x.useCallback(i=>{i&&e.mount&&e.mount(i),t&&(i?t.mount(i):t.unmount()),n&&(typeof n=="function"?n(i):xt(n)&&(n.current=i))},[t])}function Nt(e){return typeof e=="string"||Array.isArray(e)}function Rt(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const li=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],ci=["initial",...li];function pn(e){return Rt(e.animate)||ci.some(t=>Nt(e[t]))}function co(e){return!!(pn(e)||e.variants)}function uc(e,t){if(pn(e)){const{initial:n,animate:i}=e;return{initial:n===!1||Nt(n)?n:void 0,animate:Nt(i)?i:void 0}}return e.inherit!==!1?t:{}}function lc(e){const{initial:t,animate:n}=uc(e,x.useContext(cn));return x.useMemo(()=>({initial:t,animate:n}),[fo(t),fo(n)])}function fo(e){return Array.isArray(e)?e.join(" "):e}const ho={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"]},At={};for(const e in ho)At[e]={isEnabled:t=>ho[e].some(n=>!!t[n])};function cc(e){for(const t in e)At[t]={...At[t],...e[t]}}const di=x.createContext({}),dc=Symbol.for("motionComponentSymbol"),he=e=>e;let St=he,je=he;process.env.NODE_ENV!=="production"&&(St=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},je=(e,t)=>{if(!e)throw new Error(t)});function fc({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:i,Component:r}){e&&cc(e);function o(u,a){let l;const c={...x.useContext(oi),...u,layoutId:hc(u)},{isStatic:d}=c,f=lc(u),p=i(u,d);if(!d&&si){pc(c,e);const b=mc(c);l=b.MeasureLayout,f.visualElement=rc(r,p,c,t,b.ProjectionNode)}return w.jsxs(cn.Provider,{value:f,children:[l&&f.visualElement?w.jsx(l,{visualElement:f.visualElement,...c}):null,n(r,u,ac(p,f.visualElement,a),p,d,f.visualElement)]})}const s=x.forwardRef(o);return s[dc]=r,s}function hc({layoutId:e}){const t=x.useContext(di).id;return t&&e!==void 0?t+"-"+e:e}function pc(e,t){const n=x.useContext(ro).strict;if(process.env.NODE_ENV!=="production"&&t&&n){const i="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?St(!1,i):je(!1,i)}}function mc(e){const{drag:t,layout:n}=At;if(!t&&!n)return{};const i={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}function gc(e){function t(i,r={}){return fc(e(i,r))}if(typeof Proxy>"u")return t;const n=new Map;return new Proxy(t,{get:(i,r)=>(n.has(r)||n.set(r,t(r)),n.get(r))})}const bc=["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 fi(e){return typeof e!="string"||e.includes("-")?!1:!!(bc.indexOf(e)>-1||/[A-Z]/u.test(e))}const mn={};function vc(e){Object.assign(mn,e)}const Wt=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],tt=new Set(Wt);function po(e,{layout:t,layoutId:n}){return tt.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!mn[e]||e==="opacity")}const ve=e=>!!(e&&e.getVelocity),yc={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Cc=Wt.length;function Ic(e,t,n){let i="";for(let r=0;r<Cc;r++){const o=Wt[r];if(e[o]!==void 0){const s=yc[o]||o;i+=`${s}(${e[o]}) `}}return i=i.trim(),n?i=n(e,t?"":i):t&&(i="none"),i}const mo=e=>t=>typeof t=="string"&&t.startsWith(e),go=mo("--"),xc=mo("var(--"),hi=e=>xc(e)?Ac.test(e.split("/*")[0].trim()):!1,Ac=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Sc=(e,t)=>t&&typeof e=="number"?t.transform(e):e,nt=(e,t,n)=>n>t?t:n<e?e:n,Tt={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Lt={...Tt,transform:e=>nt(0,1,e)},gn={...Tt,default:1},Xt=e=>Math.round(e*1e5)/1e5,pi=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,Tc=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,Ec=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;function Zt(e){return typeof e=="string"}function Pc(e){return e==null}const Ht=e=>({test:t=>Zt(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),it=Ht("deg"),Le=Ht("%"),R=Ht("px"),wc=Ht("vh"),Vc=Ht("vw"),bo={...Le,parse:e=>Le.parse(e)/100,transform:e=>Le.transform(e*100)},vo={...Tt,transform:Math.round},yo={borderWidth:R,borderTopWidth:R,borderRightWidth:R,borderBottomWidth:R,borderLeftWidth:R,borderRadius:R,radius:R,borderTopLeftRadius:R,borderTopRightRadius:R,borderBottomRightRadius:R,borderBottomLeftRadius:R,width:R,maxWidth:R,height:R,maxHeight:R,size:R,top:R,right:R,bottom:R,left:R,padding:R,paddingTop:R,paddingRight:R,paddingBottom:R,paddingLeft:R,margin:R,marginTop:R,marginRight:R,marginBottom:R,marginLeft:R,rotate:it,rotateX:it,rotateY:it,rotateZ:it,scale:gn,scaleX:gn,scaleY:gn,scaleZ:gn,skew:it,skewX:it,skewY:it,distance:R,translateX:R,translateY:R,translateZ:R,x:R,y:R,z:R,perspective:R,transformPerspective:R,opacity:Lt,originX:bo,originY:bo,originZ:R,zIndex:vo,backgroundPositionX:R,backgroundPositionY:R,fillOpacity:Lt,strokeOpacity:Lt,numOctaves:vo};function mi(e,t,n){const{style:i,vars:r,transform:o,transformOrigin:s}=e;let u=!1,a=!1,l=!0;for(const c in t){const d=t[c];if(go(c)){r[c]=d;continue}const f=yo[c],p=Sc(d,f);if(tt.has(c)){if(u=!0,o[c]=p,!l)continue;d!==(f.default||0)&&(l=!1)}else c.startsWith("origin")?(a=!0,s[c]=p):i[c]=p}if(t.transform||(u||n?i.transform=Ic(e.transform,l,n):i.transform&&(i.transform="none")),a){const{originX:c="50%",originY:d="50%",originZ:f=0}=s;i.transformOrigin=`${c} ${d} ${f}`}}const gi=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Co(e,t,n){for(const i in t)!ve(t[i])&&!po(i,n)&&(e[i]=t[i])}function Dc({transformTemplate:e},t){return x.useMemo(()=>{const n=gi();return mi(n,t,e),Object.assign({},n.vars,n.style)},[t])}function Fc(e,t){const n=e.style||{},i={};return Co(i,n,e),Object.assign(i,Dc(e,t)),i}function Mc(e,t){const n={},i=Fc(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=i,n}const Bc=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function bn(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Bc.has(e)}let Io=e=>!bn(e);function Gc(e){e&&(Io=t=>t.startsWith("on")?!bn(t):e(t))}try{Gc(require("@emotion/is-prop-valid").default)}catch{}function Oc(e,t,n){const i={};for(const r in e)r==="values"&&typeof e.values=="object"||(Io(r)||n===!0&&bn(r)||!t&&!bn(r)||e.draggable&&r.startsWith("onDrag"))&&(i[r]=e[r]);return i}function xo(e,t,n){return typeof e=="string"?e:R.transform(t+n*e)}function Nc(e,t,n){const i=xo(t,e.x,e.width),r=xo(n,e.y,e.height);return`${i} ${r}`}const Rc={offset:"stroke-dashoffset",array:"stroke-dasharray"},Wc={offset:"strokeDashoffset",array:"strokeDasharray"};function Lc(e,t,n=1,i=0,r=!0){e.pathLength=1;const o=r?Rc:Wc;e[o.offset]=R.transform(-i);const s=R.transform(t),u=R.transform(n);e[o.array]=`${s} ${u}`}function bi(e,{attrX:t,attrY:n,attrScale:i,originX:r,originY:o,pathLength:s,pathSpacing:u=1,pathOffset:a=0,...l},c,d){if(mi(e,l,d),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:f,style:p,dimensions:b}=e;f.transform&&(b&&(p.transform=f.transform),delete f.transform),b&&(r!==void 0||o!==void 0||p.transform)&&(p.transformOrigin=Nc(b,r!==void 0?r:.5,o!==void 0?o:.5)),t!==void 0&&(f.x=t),n!==void 0&&(f.y=n),i!==void 0&&(f.scale=i),s!==void 0&&Lc(f,s,u,a,!1)}const Ao=()=>({...gi(),attrs:{}}),vi=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Xc(e,t,n,i){const r=x.useMemo(()=>{const o=Ao();return bi(o,t,vi(i),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};Co(o,e.style,e),r.style={...o,...r.style}}return r}function Zc(e=!1){return(n,i,r,{latestValues:o},s)=>{const a=(fi(n)?Xc:Mc)(i,o,s,n),l=Oc(i,typeof n=="string",e),c=n!==x.Fragment?{...l,...a,ref:r}:{},{children:d}=i,f=x.useMemo(()=>ve(d)?d.get():d,[d]);return x.createElement(n,{...c,children:f})}}function So(e,{style:t,vars:n},i,r){Object.assign(e.style,t,r&&r.getProjectionStyles(i));for(const o in n)e.style.setProperty(o,n[o])}const To=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 Eo(e,t,n,i){So(e,t,void 0,i);for(const r in t.attrs)e.setAttribute(To.has(r)?r:fn(r),t.attrs[r])}function yi(e,t,n){var i;const{style:r}=e,o={};for(const s in r)(ve(r[s])||t.style&&ve(t.style[s])||po(s,e)||((i=n==null?void 0:n.getValue(s))===null||i===void 0?void 0:i.liveStyle)!==void 0)&&(o[s]=r[s]);return n&&r&&typeof r.willChange=="string"&&(n.applyWillChange=!1),o}function Po(e,t,n){const i=yi(e,t,n);for(const r in e)if(ve(e[r])||ve(t[r])){const o=Wt.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;i[o]=e[r]}return i}function wo(e){const t=[{},{}];return e==null||e.values.forEach((n,i)=>{t[0][i]=n.get(),t[1][i]=n.getVelocity()}),t}function Ci(e,t,n,i){if(typeof t=="function"){const[r,o]=wo(i);t=t(n!==void 0?n:e.custom,r,o)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[r,o]=wo(i);t=t(n!==void 0?n:e.custom,r,o)}return t}function Vo(e){const t=x.useRef(null);return t.current===null&&(t.current=e()),t.current}const Ii=e=>Array.isArray(e),Hc=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),kc=e=>Ii(e)?e[e.length-1]||0:e;function vn(e){const t=ve(e)?e.get():e;return Hc(t)?t.toValue():t}const Do=new Set(["opacity","clipPath","filter","transform"]);function Fo(e){if(tt.has(e))return"transform";if(Do.has(e))return fn(e)}function yn(e,t){e.indexOf(t)===-1&&e.push(t)}function Cn(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}function zc({applyWillChange:e=!1,scrapeMotionValuesFromProps:t,createRenderState:n,onMount:i},r,o,s,u){const a={latestValues:Yc(r,o,s,u?!1:e,t),renderState:n()};return i&&(a.mount=l=>i(r,l,a)),a}const Mo=e=>(t,n)=>{const i=x.useContext(cn),r=x.useContext(dn),o=()=>zc(e,t,i,r,n);return n?o():Vo(o)};function jc(e,t){const n=Fo(t);n&&yn(e,n)}function Bo(e,t,n){const i=Array.isArray(t)?t:[t];for(let r=0;r<i.length;r++){const o=Ci(e,i[r]);if(o){const{transitionEnd:s,transition:u,...a}=o;n(a,s)}}}function Yc(e,t,n,i,r){var o;const s={},u=[],a=i&&((o=e.style)===null||o===void 0?void 0:o.willChange)===void 0,l=r(e,{});for(const v in l)s[v]=vn(l[v]);let{initial:c,animate:d}=e;const f=pn(e),p=co(e);t&&p&&!f&&e.inherit!==!1&&(c===void 0&&(c=t.initial),d===void 0&&(d=t.animate));let b=n?n.initial===!1:!1;b=b||c===!1;const g=b?d:c;return g&&typeof g!="boolean"&&!Rt(g)&&Bo(e,g,(v,C)=>{for(const y in v){let m=v[y];if(Array.isArray(m)){const I=b?m.length-1:0;m=m[I]}m!==null&&(s[y]=m)}for(const y in C)s[y]=C[y]}),a&&(d&&c!==!1&&!Rt(d)&&Bo(e,d,v=>{for(const C in v)jc(u,C)}),u.length&&(s.willChange=u.join(","))),s}const{schedule:K,cancel:Ye,state:pe,steps:xi}=so(typeof requestAnimationFrame<"u"?requestAnimationFrame:he,!0),Jc={useVisualState:Mo({scrapeMotionValuesFromProps:Po,createRenderState:Ao,onMount:(e,t,{renderState:n,latestValues:i})=>{K.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),K.render(()=>{bi(n,i,vi(t.tagName),e.transformTemplate),Eo(t,n)})}})},Uc={useVisualState:Mo({applyWillChange:!0,scrapeMotionValuesFromProps:yi,createRenderState:gi})};function _c(e,{forwardMotionProps:t=!1},n,i){return{...fi(e)?Jc:Uc,preloadedFeatures:n,useRender:Zc(t),createVisualElement:i,Component:e}}function Je(e,t,n,i={passive:!0}){return e.addEventListener(t,n,i),()=>e.removeEventListener(t,n)}const Go=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function In(e,t="page"){return{point:{x:e[`${t}X`],y:e[`${t}Y`]}}}const Qc=e=>t=>Go(t)&&e(t,In(t));function Ue(e,t,n,i){return Je(e,t,Qc(n),i)}const Kc=(e,t)=>n=>t(e(n)),_e=(...e)=>e.reduce(Kc);function Oo(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const No=Oo("dragHorizontal"),Ro=Oo("dragVertical");function Wo(e){let t=!1;if(e==="y")t=Ro();else if(e==="x")t=No();else{const n=No(),i=Ro();n&&i?t=()=>{n(),i()}:(n&&n(),i&&i())}return t}function Lo(){const e=Wo(!0);return e?(e(),!1):!0}class rt{constructor(t){this.isMounted=!1,this.node=t}update(){}}function Xo(e,t){const n=t?"pointerenter":"pointerleave",i=t?"onHoverStart":"onHoverEnd",r=(o,s)=>{if(o.pointerType==="touch"||Lo())return;const u=e.getProps();e.animationState&&u.whileHover&&e.animationState.setActive("whileHover",t);const a=u[i];a&&K.postRender(()=>a(o,s))};return Ue(e.current,n,r,{passive:!e.getProps()[i]})}class $c extends rt{mount(){this.unmount=_e(Xo(this.node,!0),Xo(this.node,!1))}unmount(){}}class qc extends rt{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!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=_e(Je(this.node.current,"focus",()=>this.onFocus()),Je(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const Zo=(e,t)=>t?e===t?!0:Zo(e,t.parentElement):!1;function Ai(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,In(n))}class ed extends rt{constructor(){super(...arguments),this.removeStartListeners=he,this.removeEndListeners=he,this.removeAccessibleListeners=he,this.startPointerPress=(t,n)=>{if(this.isPressing)return;this.removeEndListeners();const i=this.node.getProps(),o=Ue(window,"pointerup",(u,a)=>{if(!this.checkPressEnd())return;const{onTap:l,onTapCancel:c,globalTapTarget:d}=this.node.getProps(),f=!d&&!Zo(this.node.current,u.target)?c:l;f&&K.update(()=>f(u,a))},{passive:!(i.onTap||i.onPointerUp)}),s=Ue(window,"pointercancel",(u,a)=>this.cancelPress(u,a),{passive:!(i.onTapCancel||i.onPointerCancel)});this.removeEndListeners=_e(o,s),this.startPress(t,n)},this.startAccessiblePress=()=>{const t=o=>{if(o.key!=="Enter"||this.isPressing)return;const s=u=>{u.key!=="Enter"||!this.checkPressEnd()||Ai("up",(a,l)=>{const{onTap:c}=this.node.getProps();c&&K.postRender(()=>c(a,l))})};this.removeEndListeners(),this.removeEndListeners=Je(this.node.current,"keyup",s),Ai("down",(u,a)=>{this.startPress(u,a)})},n=Je(this.node.current,"keydown",t),i=()=>{this.isPressing&&Ai("cancel",(o,s)=>this.cancelPress(o,s))},r=Je(this.node.current,"blur",i);this.removeAccessibleListeners=_e(n,r)}}startPress(t,n){this.isPressing=!0;const{onTapStart:i,whileTap:r}=this.node.getProps();r&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),i&&K.postRender(()=>i(t,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!Lo()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:i}=this.node.getProps();i&&K.postRender(()=>i(t,n))}mount(){const t=this.node.getProps(),n=Ue(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),i=Je(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=_e(n,i)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const Si=new WeakMap,Ti=new WeakMap,td=e=>{const t=Si.get(e.target);t&&t(e)},nd=e=>{e.forEach(td)};function id({root:e,...t}){const n=e||document;Ti.has(n)||Ti.set(n,{});const i=Ti.get(n),r=JSON.stringify(t);return i[r]||(i[r]=new IntersectionObserver(nd,{root:e,...t})),i[r]}function rd(e,t,n){const i=id(t);return Si.set(e,n),i.observe(e),()=>{Si.delete(e),i.unobserve(e)}}const od={some:0,all:1};class sd extends rt{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:i,amount:r="some",once:o}=t,s={root:n?n.current:void 0,rootMargin:i,threshold:typeof r=="number"?r:od[r]},u=a=>{const{isIntersecting:l}=a;if(this.isInView===l||(this.isInView=l,o&&!l&&this.hasEnteredView))return;l&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",l);const{onViewportEnter:c,onViewportLeave:d}=this.node.getProps(),f=l?c:d;f&&f(a)};return rd(this.node.current,s,u)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(ad(t,n))&&this.startObserver()}unmount(){}}function ad({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const ud={inView:{Feature:sd},tap:{Feature:ed},focus:{Feature:qc},hover:{Feature:$c}};function Ho(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let i=0;i<n;i++)if(t[i]!==e[i])return!1;return!0}function xn(e,t,n){const i=e.getProps();return Ci(i,t,n!==void 0?n:i.custom,e)}const Qe=e=>e*1e3,Ke=e=>e/1e3,ld={type:"spring",stiffness:500,damping:25,restSpeed:10},cd=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),dd={type:"keyframes",duration:.8},fd={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},hd=(e,{keyframes:t})=>t.length>2?dd:tt.has(e)?e.startsWith("scale")?cd(t[1]):ld:fd;function pd({when:e,delay:t,delayChildren:n,staggerChildren:i,staggerDirection:r,repeat:o,repeatType:s,repeatDelay:u,from:a,elapsed:l,...c}){return!!Object.keys(c).length}function Ei(e,t){return e[t]||e.default||e}const md=e=>e!==null;function An(e,{repeat:t,repeatType:n="loop"},i){const r=e.filter(md),o=t&&n!=="loop"&&t%2===1?0:r.length-1;return!o||i===void 0?r[o]:i}let Sn;function gd(){Sn=void 0}const ot={now:()=>(Sn===void 0&&ot.set(pe.isProcessing||tc.useManualTiming?pe.timestamp:performance.now()),Sn),set:e=>{Sn=e,queueMicrotask(gd)}},ko=e=>/^0[^.\s]+$/u.test(e);function bd(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||ko(e):!0}const zo=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),vd=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function yd(e){const t=vd.exec(e);if(!t)return[,];const[,n,i,r]=t;return[`--${n??i}`,r]}const Cd=4;function jo(e,t,n=1){je(n<=Cd,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[i,r]=yd(e);if(!i)return;const o=window.getComputedStyle(t).getPropertyValue(i);if(o){const s=o.trim();return zo(s)?parseFloat(s):s}return hi(r)?jo(r,t,n+1):r}const Id=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Yo=e=>e===Tt||e===R,Jo=(e,t)=>parseFloat(e.split(", ")[t]),Uo=(e,t)=>(n,{transform:i})=>{if(i==="none"||!i)return 0;const r=i.match(/^matrix3d\((.+)\)$/u);if(r)return Jo(r[1],t);{const o=i.match(/^matrix\((.+)\)$/u);return o?Jo(o[1],e):0}},xd=new Set(["x","y","z"]),Ad=Wt.filter(e=>!xd.has(e));function Sd(e){const t=[];return Ad.forEach(n=>{const i=e.getValue(n);i!==void 0&&(t.push([n,i.get()]),i.set(n.startsWith("scale")?1:0))}),t}const Et={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:Uo(4,13),y:Uo(5,14)};Et.translateX=Et.x,Et.translateY=Et.y;const _o=e=>t=>t.test(e),Qo=[Tt,R,Le,it,Vc,wc,{test:e=>e==="auto",parse:e=>e}],Ko=e=>Qo.find(_o(e)),ft=new Set;let Pi=!1,wi=!1;function $o(){if(wi){const e=Array.from(ft).filter(i=>i.needsMeasurement),t=new Set(e.map(i=>i.element)),n=new Map;t.forEach(i=>{const r=Sd(i);r.length&&(n.set(i,r),i.render())}),e.forEach(i=>i.measureInitialState()),t.forEach(i=>{i.render();const r=n.get(i);r&&r.forEach(([o,s])=>{var u;(u=i.getValue(o))===null||u===void 0||u.set(s)})}),e.forEach(i=>i.measureEndState()),e.forEach(i=>{i.suspendedScrollY!==void 0&&window.scrollTo(0,i.suspendedScrollY)})}wi=!1,Pi=!1,ft.forEach(e=>e.complete()),ft.clear()}function qo(){ft.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(wi=!0)})}function Td(){qo(),$o()}class Vi{constructor(t,n,i,r,o,s=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=i,this.motionValue=r,this.element=o,this.isAsync=s}scheduleResolve(){this.isScheduled=!0,this.isAsync?(ft.add(this),Pi||(Pi=!0,K.read(qo),K.resolveKeyframes($o))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:i,motionValue:r}=this;for(let o=0;o<t.length;o++)if(t[o]===null)if(o===0){const s=r==null?void 0:r.get(),u=t[t.length-1];if(s!==void 0)t[0]=s;else if(i&&n){const a=i.readValue(n,u);a!=null&&(t[0]=a)}t[0]===void 0&&(t[0]=u),r&&s===void 0&&r.set(t[0])}else t[o]=t[o-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),ft.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,ft.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const Di=(e,t)=>n=>!!(Zt(n)&&Ec.test(n)&&n.startsWith(e)||t&&!Pc(n)&&Object.prototype.hasOwnProperty.call(n,t)),es=(e,t,n)=>i=>{if(!Zt(i))return i;const[r,o,s,u]=i.match(pi);return{[e]:parseFloat(r),[t]:parseFloat(o),[n]:parseFloat(s),alpha:u!==void 0?parseFloat(u):1}},Ed=e=>nt(0,255,e),Fi={...Tt,transform:e=>Math.round(Ed(e))},ht={test:Di("rgb","red"),parse:es("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:i=1})=>"rgba("+Fi.transform(e)+", "+Fi.transform(t)+", "+Fi.transform(n)+", "+Xt(Lt.transform(i))+")"};function Pd(e){let t="",n="",i="",r="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),i=e.substring(5,7),r=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),i=e.substring(3,4),r=e.substring(4,5),t+=t,n+=n,i+=i,r+=r),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(i,16),alpha:r?parseInt(r,16)/255:1}}const Mi={test:Di("#"),parse:Pd,transform:ht.transform},Pt={test:Di("hsl","hue"),parse:es("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:i=1})=>"hsla("+Math.round(e)+", "+Le.transform(Xt(t))+", "+Le.transform(Xt(n))+", "+Xt(Lt.transform(i))+")"},ye={test:e=>ht.test(e)||Mi.test(e)||Pt.test(e),parse:e=>ht.test(e)?ht.parse(e):Pt.test(e)?Pt.parse(e):Mi.parse(e),transform:e=>Zt(e)?e:e.hasOwnProperty("red")?ht.transform(e):Pt.transform(e)};function wd(e){var t,n;return isNaN(e)&&Zt(e)&&(((t=e.match(pi))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(Tc))===null||n===void 0?void 0:n.length)||0)>0}const ts="number",ns="color",Vd="var",Dd="var(",is="${}",Fd=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function kt(e){const t=e.toString(),n=[],i={color:[],number:[],var:[]},r=[];let o=0;const u=t.replace(Fd,a=>(ye.test(a)?(i.color.push(o),r.push(ns),n.push(ye.parse(a))):a.startsWith(Dd)?(i.var.push(o),r.push(Vd),n.push(a)):(i.number.push(o),r.push(ts),n.push(parseFloat(a))),++o,is)).split(is);return{values:n,split:u,indexes:i,types:r}}function rs(e){return kt(e).values}function os(e){const{split:t,types:n}=kt(e),i=t.length;return r=>{let o="";for(let s=0;s<i;s++)if(o+=t[s],r[s]!==void 0){const u=n[s];u===ts?o+=Xt(r[s]):u===ns?o+=ye.transform(r[s]):o+=r[s]}return o}}const Md=e=>typeof e=="number"?0:e;function Bd(e){const t=rs(e);return os(e)(t.map(Md))}const st={test:wd,parse:rs,createTransformer:os,getAnimatableNone:Bd},Gd=new Set(["brightness","contrast","saturate","opacity"]);function Od(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[i]=n.match(pi)||[];if(!i)return e;const r=n.replace(i,"");let o=Gd.has(t)?1:0;return i!==n&&(o*=100),t+"("+o+r+")"}const Nd=/\b([a-z-]*)\(.*?\)/gu,Bi={...st,getAnimatableNone:e=>{const t=e.match(Nd);return t?t.map(Od).join(" "):e}},Rd={...yo,color:ye,backgroundColor:ye,outlineColor:ye,fill:ye,stroke:ye,borderColor:ye,borderTopColor:ye,borderRightColor:ye,borderBottomColor:ye,borderLeftColor:ye,filter:Bi,WebkitFilter:Bi},Gi=e=>Rd[e];function ss(e,t){let n=Gi(e);return n!==Bi&&(n=st),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Wd=new Set(["auto","none","0"]);function Ld(e,t,n){let i=0,r;for(;i<e.length&&!r;){const o=e[i];typeof o=="string"&&!Wd.has(o)&&kt(o).values.length&&(r=e[i]),i++}if(r&&n)for(const o of t)e[o]=ss(n,r)}class as extends Vi{constructor(t,n,i,r){super(t,n,i,r,r==null?void 0:r.owner,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:i}=this;if(!n.current)return;super.readKeyframes();for(let a=0;a<t.length;a++){let l=t[a];if(typeof l=="string"&&(l=l.trim(),hi(l))){const c=jo(l,n.current);c!==void 0&&(t[a]=c),a===t.length-1&&(this.finalKeyframe=l)}}if(this.resolveNoneKeyframes(),!Id.has(i)||t.length!==2)return;const[r,o]=t,s=Ko(r),u=Ko(o);if(s!==u)if(Yo(s)&&Yo(u))for(let a=0;a<t.length;a++){const l=t[a];typeof l=="string"&&(t[a]=parseFloat(l))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,i=[];for(let r=0;r<t.length;r++)bd(t[r])&&i.push(r);i.length&&Ld(t,i,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:i}=this;if(!t.current)return;i==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Et[i](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const r=n[n.length-1];r!==void 0&&t.getValue(i,r).jump(r,!1)}measureEndState(){var t;const{element:n,name:i,unresolvedKeyframes:r}=this;if(!n.current)return;const o=n.getValue(i);o&&o.jump(this.measuredOrigin,!1);const s=r.length-1,u=r[s];r[s]=Et[i](n.measureViewportBox(),window.getComputedStyle(n.current)),u!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=u),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([a,l])=>{n.getValue(a).set(l)}),this.resolveNoneKeyframes()}}function us(e){let t;return()=>(t===void 0&&(t=e()),t)}const ls=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(st.test(e)||e==="0")&&!e.startsWith("url("));function Xd(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function Zd(e,t,n,i){const r=e[0];if(r===null)return!1;if(t==="display"||t==="visibility")return!0;const o=e[e.length-1],s=ls(r,t),u=ls(o,t);return St(s===u,`You are trying to animate ${t} from "${r}" to "${o}". ${r} is not an animatable value - to enable this animation set ${r} to a value animatable to ${o} via the \`style\` property.`),!s||!u?!1:Xd(e)||n==="spring"&&i}class cs{constructor({autoplay:t=!0,delay:n=0,type:i="keyframes",repeat:r=0,repeatDelay:o=0,repeatType:s="loop",...u}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.options={autoplay:t,delay:n,type:i,repeat:r,repeatDelay:o,repeatType:s,...u},this.updateFinishedPromise()}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&Td(),this._resolved}onKeyframesResolved(t,n){this.hasAttemptedResolve=!0;const{name:i,type:r,velocity:o,delay:s,onComplete:u,onUpdate:a,isGenerator:l}=this.options;if(!l&&!Zd(t,i,r,o))if(s)this.options.duration=0;else{a==null||a(An(t,this.options,n)),u==null||u(),this.resolveFinishedPromise();return}const c=this.initPlayback(t,n);c!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...c},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}function ds(e,t){return t?e*(1e3/t):0}const Hd=5;function fs(e,t,n){const i=Math.max(t-Hd,0);return ds(n-e(i),t-i)}const Oi=.001,kd=.01,hs=10,zd=.05,jd=1;function Yd({duration:e=800,bounce:t=.25,velocity:n=0,mass:i=1}){let r,o;St(e<=Qe(hs),"Spring duration must be 10 seconds or less");let s=1-t;s=nt(zd,jd,s),e=nt(kd,hs,Ke(e)),s<1?(r=l=>{const c=l*s,d=c*e,f=c-n,p=Ni(l,s),b=Math.exp(-d);return Oi-f/p*b},o=l=>{const d=l*s*e,f=d*n+n,p=Math.pow(s,2)*Math.pow(l,2)*e,b=Math.exp(-d),g=Ni(Math.pow(l,2),s);return(-r(l)+Oi>0?-1:1)*((f-p)*b)/g}):(r=l=>{const c=Math.exp(-l*e),d=(l-n)*e+1;return-Oi+c*d},o=l=>{const c=Math.exp(-l*e),d=(n-l)*(e*e);return c*d});const u=5/e,a=Ud(r,o,u);if(e=Qe(e),isNaN(a))return{stiffness:100,damping:10,duration:e};{const l=Math.pow(a,2)*i;return{stiffness:l,damping:s*2*Math.sqrt(i*l),duration:e}}}const Jd=12;function Ud(e,t,n){let i=n;for(let r=1;r<Jd;r++)i=i-e(i)/t(i);return i}function Ni(e,t){return e*Math.sqrt(1-t*t)}const _d=["duration","bounce"],Qd=["stiffness","damping","mass"];function ps(e,t){return t.some(n=>e[n]!==void 0)}function Kd(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!ps(e,Qd)&&ps(e,_d)){const n=Yd(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}function ms({keyframes:e,restDelta:t,restSpeed:n,...i}){const r=e[0],o=e[e.length-1],s={done:!1,value:r},{stiffness:u,damping:a,mass:l,duration:c,velocity:d,isResolvedFromDuration:f}=Kd({...i,velocity:-Ke(i.velocity||0)}),p=d||0,b=a/(2*Math.sqrt(u*l)),g=o-r,v=Ke(Math.sqrt(u/l)),C=Math.abs(g)<5;n||(n=C?.01:2),t||(t=C?.005:.5);let y;if(b<1){const m=Ni(v,b);y=I=>{const h=Math.exp(-b*v*I);return o-h*((p+b*v*g)/m*Math.sin(m*I)+g*Math.cos(m*I))}}else if(b===1)y=m=>o-Math.exp(-v*m)*(g+(p+v*g)*m);else{const m=v*Math.sqrt(b*b-1);y=I=>{const h=Math.exp(-b*v*I),S=Math.min(m*I,300);return o-h*((p+b*v*g)*Math.sinh(S)+m*g*Math.cosh(S))/m}}return{calculatedDuration:f&&c||null,next:m=>{const I=y(m);if(f)s.done=m>=c;else{let h=p;m!==0&&(b<1?h=fs(y,m,I):h=0);const S=Math.abs(h)<=n,T=Math.abs(o-I)<=t;s.done=S&&T}return s.value=s.done?o:I,s}}}function gs({keyframes:e,velocity:t=0,power:n=.8,timeConstant:i=325,bounceDamping:r=10,bounceStiffness:o=500,modifyTarget:s,min:u,max:a,restDelta:l=.5,restSpeed:c}){const d=e[0],f={done:!1,value:d},p=P=>u!==void 0&&P<u||a!==void 0&&P>a,b=P=>u===void 0?a:a===void 0||Math.abs(u-P)<Math.abs(a-P)?u:a;let g=n*t;const v=d+g,C=s===void 0?v:s(v);C!==v&&(g=C-d);const y=P=>-g*Math.exp(-P/i),m=P=>C+y(P),I=P=>{const M=y(P),X=m(P);f.done=Math.abs(M)<=l,f.value=f.done?C:X};let h,S;const T=P=>{p(f.value)&&(h=P,S=ms({keyframes:[f.value,b(f.value)],velocity:fs(m,P,f.value),damping:r,stiffness:o,restDelta:l,restSpeed:c}))};return T(0),{calculatedDuration:null,next:P=>{let M=!1;return!S&&h===void 0&&(M=!0,I(P),T(P)),h!==void 0&&P>=h?S.next(P-h):(!M&&I(P),f)}}}const bs=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,$d=1e-7,qd=12;function ef(e,t,n,i,r){let o,s,u=0;do s=t+(n-t)/2,o=bs(s,i,r)-e,o>0?n=s:t=s;while(Math.abs(o)>$d&&++u<qd);return s}function zt(e,t,n,i){if(e===t&&n===i)return he;const r=o=>ef(o,0,1,e,n);return o=>o===0||o===1?o:bs(r(o),t,i)}const tf=zt(.42,0,1,1),nf=zt(0,0,.58,1),vs=zt(.42,0,.58,1),rf=e=>Array.isArray(e)&&typeof e[0]!="number",ys=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Cs=e=>t=>1-e(1-t),Ri=e=>1-Math.sin(Math.acos(e)),Is=Cs(Ri),of=ys(Ri),xs=zt(.33,1.53,.69,.99),Wi=Cs(xs),sf=ys(Wi),As={linear:he,easeIn:tf,easeInOut:vs,easeOut:nf,circIn:Ri,circInOut:of,circOut:Is,backIn:Wi,backInOut:sf,backOut:xs,anticipate:e=>(e*=2)<1?.5*Wi(e):.5*(2-Math.pow(2,-10*(e-1)))},Ss=e=>{if(Array.isArray(e)){je(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,i,r]=e;return zt(t,n,i,r)}else if(typeof e=="string")return je(As[e]!==void 0,`Invalid easing type '${e}'`),As[e];return e},jt=(e,t,n)=>{const i=t-e;return i===0?1:(n-e)/i},se=(e,t,n)=>e+(t-e)*n;function Li(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function af({hue:e,saturation:t,lightness:n,alpha:i}){e/=360,t/=100,n/=100;let r=0,o=0,s=0;if(!t)r=o=s=n;else{const u=n<.5?n*(1+t):n+t-n*t,a=2*n-u;r=Li(a,u,e+1/3),o=Li(a,u,e),s=Li(a,u,e-1/3)}return{red:Math.round(r*255),green:Math.round(o*255),blue:Math.round(s*255),alpha:i}}function Tn(e,t){return n=>n>0?t:e}const Xi=(e,t,n)=>{const i=e*e,r=n*(t*t-i)+i;return r<0?0:Math.sqrt(r)},uf=[Mi,ht,Pt],lf=e=>uf.find(t=>t.test(e));function Ts(e){const t=lf(e);if(St(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===Pt&&(n=af(n)),n}const Es=(e,t)=>{const n=Ts(e),i=Ts(t);if(!n||!i)return Tn(e,t);const r={...n};return o=>(r.red=Xi(n.red,i.red,o),r.green=Xi(n.green,i.green,o),r.blue=Xi(n.blue,i.blue,o),r.alpha=se(n.alpha,i.alpha,o),ht.transform(r))},Zi=new Set(["none","hidden"]);function cf(e,t){return Zi.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function df(e,t){return n=>se(e,t,n)}function Hi(e){return typeof e=="number"?df:typeof e=="string"?hi(e)?Tn:ye.test(e)?Es:pf:Array.isArray(e)?Ps:typeof e=="object"?ye.test(e)?Es:ff:Tn}function Ps(e,t){const n=[...e],i=n.length,r=e.map((o,s)=>Hi(o)(o,t[s]));return o=>{for(let s=0;s<i;s++)n[s]=r[s](o);return n}}function ff(e,t){const n={...e,...t},i={};for(const r in n)e[r]!==void 0&&t[r]!==void 0&&(i[r]=Hi(e[r])(e[r],t[r]));return r=>{for(const o in i)n[o]=i[o](r);return n}}function hf(e,t){var n;const i=[],r={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const s=t.types[o],u=e.indexes[s][r[s]],a=(n=e.values[u])!==null&&n!==void 0?n:0;i[o]=a,r[s]++}return i}const pf=(e,t)=>{const n=st.createTransformer(t),i=kt(e),r=kt(t);return i.indexes.var.length===r.indexes.var.length&&i.indexes.color.length===r.indexes.color.length&&i.indexes.number.length>=r.indexes.number.length?Zi.has(e)&&!r.values.length||Zi.has(t)&&!i.values.length?cf(e,t):_e(Ps(hf(i,r),r.values),n):(St(!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.`),Tn(e,t))};function ws(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?se(e,t,n):Hi(e)(e,t)}function mf(e,t,n){const i=[],r=n||ws,o=e.length-1;for(let s=0;s<o;s++){let u=r(e[s],e[s+1]);if(t){const a=Array.isArray(t)?t[s]||he:t;u=_e(a,u)}i.push(u)}return i}function gf(e,t,{clamp:n=!0,ease:i,mixer:r}={}){const o=e.length;if(je(o===t.length,"Both input and output ranges must be the same length"),o===1)return()=>t[0];if(o===2&&e[0]===e[1])return()=>t[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=mf(t,i,r),u=s.length,a=l=>{let c=0;if(u>1)for(;c<e.length-2&&!(l<e[c+1]);c++);const d=jt(e[c],e[c+1],l);return s[c](d)};return n?l=>a(nt(e[0],e[o-1],l)):a}function bf(e,t){const n=e[e.length-1];for(let i=1;i<=t;i++){const r=jt(0,t,i);e.push(se(n,1,r))}}function vf(e){const t=[0];return bf(t,e.length-1),t}function yf(e,t){return e.map(n=>n*t)}function Cf(e,t){return e.map(()=>t||vs).splice(0,e.length-1)}function En({duration:e=300,keyframes:t,times:n,ease:i="easeInOut"}){const r=rf(i)?i.map(Ss):Ss(i),o={done:!1,value:t[0]},s=yf(n&&n.length===t.length?n:vf(t),e),u=gf(s,t,{ease:Array.isArray(r)?r:Cf(t,r)});return{calculatedDuration:e,next:a=>(o.value=u(a),o.done=a>=e,o)}}const Vs=2e4;function If(e){let t=0;const n=50;let i=e.next(t);for(;!i.done&&t<Vs;)t+=n,i=e.next(t);return t>=Vs?1/0:t}const xf=e=>{const t=({timestamp:n})=>e(n);return{start:()=>K.update(t,!0),stop:()=>Ye(t),now:()=>pe.isProcessing?pe.timestamp:ot.now()}},Af={decay:gs,inertia:gs,tween:En,keyframes:En,spring:ms},Sf=e=>e/100;class ki extends cs{constructor({KeyframeResolver:t=Vi,...n}){super(n),this.holdTime=null,this.startTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:u}=this.options;u&&u()};const{name:i,motionValue:r,keyframes:o}=this.options,s=(u,a)=>this.onKeyframesResolved(u,a);i&&r&&r.owner?this.resolver=r.owner.resolveKeyframes(o,s,i,r):this.resolver=new t(o,s,i,r),this.resolver.scheduleResolve()}initPlayback(t){const{type:n="keyframes",repeat:i=0,repeatDelay:r=0,repeatType:o,velocity:s=0}=this.options,u=Af[n]||En;let a,l;u!==En&&typeof t[0]!="number"&&(process.env.NODE_ENV!=="production"&&je(t.length===2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`),a=_e(Sf,ws(t[0],t[1])),t=[0,100]);const c=u({...this.options,keyframes:t});o==="mirror"&&(l=u({...this.options,keyframes:[...t].reverse(),velocity:-s})),c.calculatedDuration===null&&(c.calculatedDuration=If(c));const{calculatedDuration:d}=c,f=d+r,p=f*(i+1)-r;return{generator:c,mirroredGenerator:l,mapPercentToKeyframes:a,calculatedDuration:d,resolvedDuration:f,totalDuration:p}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:i}=this;if(!i){const{keyframes:P}=this.options;return{done:!0,value:P[P.length-1]}}const{finalKeyframe:r,generator:o,mirroredGenerator:s,mapPercentToKeyframes:u,keyframes:a,calculatedDuration:l,totalDuration:c,resolvedDuration:d}=i;if(this.startTime===null)return o.next(0);const{delay:f,repeat:p,repeatType:b,repeatDelay:g,onUpdate:v}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-c/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const C=this.currentTime-f*(this.speed>=0?1:-1),y=this.speed>=0?C<0:C>c;this.currentTime=Math.max(C,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let m=this.currentTime,I=o;if(p){const P=Math.min(this.currentTime,c)/d;let M=Math.floor(P),X=P%1;!X&&P>=1&&(X=1),X===1&&M--,M=Math.min(M,p+1),!!(M%2)&&(b==="reverse"?(X=1-X,g&&(X-=g/d)):b==="mirror"&&(I=s)),m=nt(0,1,X)*d}const h=y?{done:!1,value:a[0]}:I.next(m);u&&(h.value=u(h.value));let{done:S}=h;!y&&l!==null&&(S=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const T=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&S);return T&&r!==void 0&&(h.value=An(a,this.options,r)),v&&v(h.value),T&&this.finish(),h}get duration(){const{resolved:t}=this;return t?Ke(t.calculatedDuration):0}get time(){return Ke(this.currentTime)}set time(t){t=Qe(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Ke(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=xf,onPlay:n}=this.options;this.driver||(this.driver=t(r=>this.tick(r))),n&&n();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:(!this.startTime||this.state==="finished")&&(this.startTime=i),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const Ds=e=>Array.isArray(e)&&typeof e[0]=="number";function Fs(e){return!!(!e||typeof e=="string"&&e in zi||Ds(e)||Array.isArray(e)&&e.every(Fs))}const Yt=([e,t,n,i])=>`cubic-bezier(${e}, ${t}, ${n}, ${i})`,zi={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Yt([0,.65,.55,1]),circOut:Yt([.55,0,1,.45]),backIn:Yt([.31,.01,.66,-.59]),backOut:Yt([.33,1.53,.69,.99])};function Tf(e){return Ms(e)||zi.easeOut}function Ms(e){if(e)return Ds(e)?Yt(e):Array.isArray(e)?e.map(Tf):zi[e]}function Ef(e,t,n,{delay:i=0,duration:r=300,repeat:o=0,repeatType:s="loop",ease:u,times:a}={}){const l={[t]:n};a&&(l.offset=a);const c=Ms(u);return Array.isArray(c)&&(l.easing=c),e.animate(l,{delay:i,duration:r,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:o+1,direction:s==="reverse"?"alternate":"normal"})}const Pf=us(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Pn=10,wf=2e4;function Vf(e){return e.type==="spring"||!Fs(e.ease)}function Df(e,t){const n=new ki({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let i={done:!1,value:e[0]};const r=[];let o=0;for(;!i.done&&o<wf;)i=n.sample(o),r.push(i.value),o+=Pn;return{times:void 0,keyframes:r,duration:o-Pn,ease:"linear"}}class Bs extends cs{constructor(t){super(t);const{name:n,motionValue:i,keyframes:r}=this.options;this.resolver=new as(r,(o,s)=>this.onKeyframesResolved(o,s),n,i),this.resolver.scheduleResolve()}initPlayback(t,n){var i;let{duration:r=300,times:o,ease:s,type:u,motionValue:a,name:l}=this.options;if(!(!((i=a.owner)===null||i===void 0)&&i.current))return!1;if(Vf(this.options)){const{onComplete:d,onUpdate:f,motionValue:p,...b}=this.options,g=Df(t,b);t=g.keyframes,t.length===1&&(t[1]=t[0]),r=g.duration,o=g.times,s=g.ease,u="keyframes"}const c=Ef(a.owner.current,l,t,{...this.options,duration:r,times:o,ease:s});return c.startTime=ot.now(),this.pendingTimeline?(c.timeline=this.pendingTimeline,this.pendingTimeline=void 0):c.onfinish=()=>{const{onComplete:d}=this.options;a.set(An(t,this.options,n)),d&&d(),this.cancel(),this.resolveFinishedPromise()},{animation:c,duration:r,times:o,type:u,ease:s,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return Ke(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return Ke(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:i}=n;i.currentTime=Qe(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:i}=n;i.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return he;const{animation:i}=n;i.timeline=t,i.onfinish=null}return he}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:i,duration:r,type:o,ease:s,times:u}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:l,onUpdate:c,onComplete:d,...f}=this.options,p=new ki({...f,keyframes:i,duration:r,type:o,ease:s,times:u,isGenerator:!0}),b=Qe(this.time);l.setWithVelocity(p.sample(b-Pn).value,p.sample(b).value,Pn)}const{onStop:a}=this.options;a&&a(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:i,repeatDelay:r,repeatType:o,damping:s,type:u}=t;return Pf()&&i&&Do.has(i)&&n&&n.owner&&n.owner.current instanceof HTMLElement&&!n.owner.getProps().onUpdate&&!r&&o!=="mirror"&&s!==0&&u!=="inertia"}}function Ff(e,t){let n;const i=()=>{const{currentTime:r}=t,s=(r===null?0:r.value)/100;n!==s&&e(s),n=s};return K.update(i,!0),()=>Ye(i)}const Mf=us(()=>window.ScrollTimeline!==void 0);class Bf{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}then(t,n){return Promise.all(this.animations).then(t).catch(n)}getAll(t){return this.animations[0][t]}setAll(t,n){for(let i=0;i<this.animations.length;i++)this.animations[i][t]=n}attachTimeline(t){const n=this.animations.map(i=>{if(Mf()&&i.attachTimeline)i.attachTimeline(t);else return i.pause(),Ff(r=>{i.time=i.duration*r},t)});return()=>{n.forEach((i,r)=>{i&&i(),this.animations[r].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get duration(){let t=0;for(let n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}const ji=(e,t,n,i={},r,o,s)=>u=>{const a=Ei(i,e)||{},l=a.delay||i.delay||0;let{elapsed:c=0}=i;c=c-Qe(l);let d={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-c,onUpdate:p=>{t.set(p),a.onUpdate&&a.onUpdate(p)},onComplete:()=>{u(),a.onComplete&&a.onComplete(),s&&s()},onStop:s,name:e,motionValue:t,element:o?void 0:r};pd(a)||(d={...d,...hd(e,d)}),d.duration&&(d.duration=Qe(d.duration)),d.repeatDelay&&(d.repeatDelay=Qe(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let f=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(d.duration=0,d.delay===0&&(f=!0)),f&&!o&&t.get()!==void 0){const p=An(d.keyframes,a);if(p!==void 0)return K.update(()=>{d.onUpdate(p),d.onComplete()}),new Bf([])}return!o&&Bs.supports(d)?new Bs(d):new ki(d)};class Yi{constructor(){this.subscriptions=[]}add(t){return yn(this.subscriptions,t),()=>Cn(this.subscriptions,t)}notify(t,n,i){const r=this.subscriptions.length;if(r)if(r===1)this.subscriptions[0](t,n,i);else for(let o=0;o<r;o++){const s=this.subscriptions[o];s&&s(t,n,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Gs=new Set;function Ji(e,t,n){e||Gs.has(t)||(console.warn(t),Gs.add(t))}const Os=30,Gf=e=>!isNaN(parseFloat(e));class Ns{constructor(t,n={}){this.version="11.3.8",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(i,r=!0)=>{const o=ot.now();this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(i),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),r&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=ot.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=Gf(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&Ji(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Yi);const i=this.events[t].add(n);return t==="change"?()=>{i(),K.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,i){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-i}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=ot.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Os)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Os);return ds(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),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 Jt(e,t){return new Ns(e,t)}function Of(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Jt(n))}function Nf(e,t){const n=xn(e,t);let{transitionEnd:i={},transition:r={},...o}=n||{};o={...o,...i};for(const s in o){const u=kc(o[s]);Of(e,s,u)}}function Rs(e){return e.getProps()[oo]}class Rf extends Ns{constructor(){super(...arguments),this.output=[],this.counts=new Map}add(t){const n=Fo(t);if(!n)return;const i=this.counts.get(n)||0;this.counts.set(n,i+1),i===0&&(this.output.push(n),this.update());let r=!1;return()=>{if(r)return;r=!0;const o=this.counts.get(n)-1;this.counts.set(n,o),o===0&&(Cn(this.output,n),this.update())}}update(){this.set(this.output.length?this.output.join(", "):"auto")}}function Wf(e){return!!(ve(e)&&e.add)}function Ui(e,t){var n;if(!e.applyWillChange)return;let i=e.getValue("willChange");if(!i&&!(!((n=e.props.style)===null||n===void 0)&&n.willChange)&&(i=new Rf("auto"),e.addValue("willChange",i)),Wf(i))return i.add(t)}function Lf({protectedKeys:e,needsAnimating:t},n){const i=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,i}function Ws(e,t,{delay:n=0,transitionOverride:i,type:r}={}){var o;let{transition:s=e.getDefaultTransition(),transitionEnd:u,...a}=t;i&&(s=i);const l=[],c=r&&e.animationState&&e.animationState.getState()[r];for(const d in a){const f=e.getValue(d,(o=e.latestValues[d])!==null&&o!==void 0?o:null),p=a[d];if(p===void 0||c&&Lf(c,d))continue;const b={delay:n,elapsed:0,...Ei(s||{},d)};let g=!1;if(window.HandoffAppearAnimations){const C=Rs(e);if(C){const y=window.HandoffAppearAnimations(C,d,f,K);y!==null&&(b.elapsed=y,g=!0)}}f.start(ji(d,f,p,e.shouldReduceMotion&&tt.has(d)?{type:!1}:b,e,g,Ui(e,d)));const v=f.animation;v&&l.push(v)}return u&&Promise.all(l).then(()=>{K.update(()=>{u&&Nf(e,u)})}),l}function _i(e,t,n={}){var i;const r=xn(e,t,n.type==="exit"?(i=e.presenceContext)===null||i===void 0?void 0:i.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(o=n.transitionOverride);const s=r?()=>Promise.all(Ws(e,r,n)):()=>Promise.resolve(),u=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:c=0,staggerChildren:d,staggerDirection:f}=o;return Xf(e,t,c+l,d,f,n)}:()=>Promise.resolve(),{when:a}=o;if(a){const[l,c]=a==="beforeChildren"?[s,u]:[u,s];return l().then(()=>c())}else return Promise.all([s(),u(n.delay)])}function Xf(e,t,n=0,i=0,r=1,o){const s=[],u=(e.variantChildren.size-1)*i,a=r===1?(l=0)=>l*i:(l=0)=>u-l*i;return Array.from(e.variantChildren).sort(Zf).forEach((l,c)=>{l.notify("AnimationStart",t),s.push(_i(l,t,{...o,delay:n+a(c)}).then(()=>l.notify("AnimationComplete",t)))}),Promise.all(s)}function Zf(e,t){return e.sortNodePosition(t)}function Hf(e,t,n={}){e.notify("AnimationStart",t);let i;if(Array.isArray(t)){const r=t.map(o=>_i(e,o,n));i=Promise.all(r)}else if(typeof t=="string")i=_i(e,t,n);else{const r=typeof t=="function"?xn(e,t,n.custom):t;i=Promise.all(Ws(e,r,n))}return i.then(()=>{K.postRender(()=>{e.notify("AnimationComplete",t)})})}const kf=[...li].reverse(),zf=li.length;function jf(e){return t=>Promise.all(t.map(({animation:n,options:i})=>Hf(e,n,i)))}function Yf(e){let t=jf(e),n=Ls(),i=!0;const r=a=>(l,c)=>{var d;const f=xn(e,c,a==="exit"?(d=e.presenceContext)===null||d===void 0?void 0:d.custom:void 0);if(f){const{transition:p,transitionEnd:b,...g}=f;l={...l,...g,...b}}return l};function o(a){t=a(e)}function s(a){const l=e.getProps(),c=e.getVariantContext(!0)||{},d=[],f=new Set;let p={},b=1/0;for(let v=0;v<zf;v++){const C=kf[v],y=n[C],m=l[C]!==void 0?l[C]:c[C],I=Nt(m),h=C===a?y.isActive:null;h===!1&&(b=v);let S=m===c[C]&&m!==l[C]&&I;if(S&&i&&e.manuallyAnimateOnMount&&(S=!1),y.protectedKeys={...p},!y.isActive&&h===null||!m&&!y.prevProp||Rt(m)||typeof m=="boolean")continue;let P=Jf(y.prevProp,m)||C===a&&y.isActive&&!S&&I||v>b&&I,M=!1;const X=Array.isArray(m)?m:[m];let U=X.reduce(r(C),{});h===!1&&(U={});const{prevResolvedValues:ne={}}=y,de={...ne,...U},oe=k=>{P=!0,f.has(k)&&(M=!0,f.delete(k)),y.needsAnimating[k]=!0;const z=e.getValue(k);z&&(z.liveStyle=!1)};for(const k in de){const z=U[k],ie=ne[k];if(p.hasOwnProperty(k))continue;let re=!1;Ii(z)&&Ii(ie)?re=!Ho(z,ie):re=z!==ie,re?z!=null?oe(k):f.add(k):z!==void 0&&f.has(k)?oe(k):y.protectedKeys[k]=!0}y.prevProp=m,y.prevResolvedValues=U,y.isActive&&(p={...p,...U}),i&&e.blockInitialAnimation&&(P=!1),P&&(!S||M)&&d.push(...X.map(k=>({animation:k,options:{type:C}})))}if(f.size){const v={};f.forEach(C=>{const y=e.getBaseTarget(C),m=e.getValue(C);m&&(m.liveStyle=!0),v[C]=y??null}),d.push({animation:v})}let g=!!d.length;return i&&(l.initial===!1||l.initial===l.animate)&&!e.manuallyAnimateOnMount&&(g=!1),i=!1,g?t(d):Promise.resolve()}function u(a,l){var c;if(n[a].isActive===l)return Promise.resolve();(c=e.variantChildren)===null||c===void 0||c.forEach(f=>{var p;return(p=f.animationState)===null||p===void 0?void 0:p.setActive(a,l)}),n[a].isActive=l;const d=s(a);for(const f in n)n[f].protectedKeys={};return d}return{animateChanges:s,setActive:u,setAnimateFunction:o,getState:()=>n,reset:()=>{n=Ls(),i=!0}}}function Jf(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Ho(t,e):!1}function pt(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Ls(){return{animate:pt(!0),whileInView:pt(),whileHover:pt(),whileTap:pt(),whileDrag:pt(),whileFocus:pt(),exit:pt()}}class Uf extends rt{constructor(t){super(t),t.animationState||(t.animationState=Yf(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Rt(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let _f=0;class Qf extends rt{constructor(){super(...arguments),this.id=_f++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;const r=this.node.animationState.setActive("exit",!t);n&&!t&&r.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const Kf={animation:{Feature:Uf},exit:{Feature:Qf}},Xs=(e,t)=>Math.abs(e-t);function $f(e,t){const n=Xs(e.x,t.x),i=Xs(e.y,t.y);return Math.sqrt(n**2+i**2)}class Zs{constructor(t,n,{transformPagePoint:i,contextWindow:r,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const d=Ki(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,p=$f(d.offset,{x:0,y:0})>=3;if(!f&&!p)return;const{point:b}=d,{timestamp:g}=pe;this.history.push({...b,timestamp:g});const{onStart:v,onMove:C}=this.handlers;f||(v&&v(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),C&&C(this.lastMoveEvent,d)},this.handlePointerMove=(d,f)=>{this.lastMoveEvent=d,this.lastMoveEventInfo=Qi(f,this.transformPagePoint),K.update(this.updatePoint,!0)},this.handlePointerUp=(d,f)=>{this.end();const{onEnd:p,onSessionEnd:b,resumeAnimation:g}=this.handlers;if(this.dragSnapToOrigin&&g&&g(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const v=Ki(d.type==="pointercancel"?this.lastMoveEventInfo:Qi(f,this.transformPagePoint),this.history);this.startEvent&&p&&p(d,v),b&&b(d,v)},!Go(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=i,this.contextWindow=r||window;const s=In(t),u=Qi(s,this.transformPagePoint),{point:a}=u,{timestamp:l}=pe;this.history=[{...a,timestamp:l}];const{onSessionStart:c}=n;c&&c(t,Ki(u,this.history)),this.removeListeners=_e(Ue(this.contextWindow,"pointermove",this.handlePointerMove),Ue(this.contextWindow,"pointerup",this.handlePointerUp),Ue(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Ye(this.updatePoint)}}function Qi(e,t){return t?{point:t(e.point)}:e}function Hs(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Ki({point:e},t){return{point:e,delta:Hs(e,ks(t)),offset:Hs(e,qf(t)),velocity:eh(t,.1)}}function qf(e){return e[0]}function ks(e){return e[e.length-1]}function eh(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,i=null;const r=ks(e);for(;n>=0&&(i=e[n],!(r.timestamp-i.timestamp>Qe(t)));)n--;if(!i)return{x:0,y:0};const o=Ke(r.timestamp-i.timestamp);if(o===0)return{x:0,y:0};const s={x:(r.x-i.x)/o,y:(r.y-i.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}const zs=1e-4,th=1-zs,nh=1+zs,js=.01,ih=0-js,rh=0+js;function Pe(e){return e.max-e.min}function oh(e,t,n){return Math.abs(e-t)<=n}function Ys(e,t,n,i=.5){e.origin=i,e.originPoint=se(t.min,t.max,e.origin),e.scale=Pe(n)/Pe(t),e.translate=se(n.min,n.max,e.origin)-e.originPoint,(e.scale>=th&&e.scale<=nh||isNaN(e.scale))&&(e.scale=1),(e.translate>=ih&&e.translate<=rh||isNaN(e.translate))&&(e.translate=0)}function Ut(e,t,n,i){Ys(e.x,t.x,n.x,i?i.originX:void 0),Ys(e.y,t.y,n.y,i?i.originY:void 0)}function Js(e,t,n){e.min=n.min+t.min,e.max=e.min+Pe(t)}function sh(e,t,n){Js(e.x,t.x,n.x),Js(e.y,t.y,n.y)}function Us(e,t,n){e.min=t.min-n.min,e.max=e.min+Pe(t)}function _t(e,t,n){Us(e.x,t.x,n.x),Us(e.y,t.y,n.y)}function ah(e,{min:t,max:n},i){return t!==void 0&&e<t?e=i?se(t,e,i.min):Math.max(e,t):n!==void 0&&e>n&&(e=i?se(n,e,i.max):Math.min(e,n)),e}function _s(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function uh(e,{top:t,left:n,bottom:i,right:r}){return{x:_s(e.x,n,r),y:_s(e.y,t,i)}}function Qs(e,t){let n=t.min-e.min,i=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,i]=[i,n]),{min:n,max:i}}function lh(e,t){return{x:Qs(e.x,t.x),y:Qs(e.y,t.y)}}function ch(e,t){let n=.5;const i=Pe(e),r=Pe(t);return r>i?n=jt(t.min,t.max-i,e.min):i>r&&(n=jt(e.min,e.max-r,t.min)),nt(0,1,n)}function dh(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const $i=.35;function fh(e=$i){return e===!1?e=0:e===!0&&(e=$i),{x:Ks(e,"left","right"),y:Ks(e,"top","bottom")}}function Ks(e,t,n){return{min:$s(e,t),max:$s(e,n)}}function $s(e,t){return typeof e=="number"?e:e[t]||0}const qs=()=>({translate:0,scale:1,origin:0,originPoint:0}),wt=()=>({x:qs(),y:qs()}),ea=()=>({min:0,max:0}),le=()=>({x:ea(),y:ea()});function Fe(e){return[e("x"),e("y")]}function ta({top:e,left:t,right:n,bottom:i}){return{x:{min:t,max:n},y:{min:e,max:i}}}function hh({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function ph(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),i=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:i.y,right:i.x}}function qi(e){return e===void 0||e===1}function er({scale:e,scaleX:t,scaleY:n}){return!qi(e)||!qi(t)||!qi(n)}function mt(e){return er(e)||na(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function na(e){return ia(e.x)||ia(e.y)}function ia(e){return e&&e!=="0%"}function wn(e,t,n){const i=e-n,r=t*i;return n+r}function ra(e,t,n,i,r){return r!==void 0&&(e=wn(e,r,i)),wn(e,n,i)+t}function tr(e,t=0,n=1,i,r){e.min=ra(e.min,t,n,i,r),e.max=ra(e.max,t,n,i,r)}function oa(e,{x:t,y:n}){tr(e.x,t.translate,t.scale,t.originPoint),tr(e.y,n.translate,n.scale,n.originPoint)}const sa=.999999999999,aa=1.0000000000001;function mh(e,t,n,i=!1){const r=n.length;if(!r)return;t.x=t.y=1;let o,s;for(let u=0;u<r;u++){o=n[u],s=o.projectionDelta;const{visualElement:a}=o.options;a&&a.props.style&&a.props.style.display==="contents"||(i&&o.options.layoutScroll&&o.scroll&&o!==o.root&&Vt(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,oa(e,s)),i&&mt(o.latestValues)&&Vt(e,o.latestValues))}t.x<aa&&t.x>sa&&(t.x=1),t.y<aa&&t.y>sa&&(t.y=1)}function at(e,t){e.min=e.min+t,e.max=e.max+t}function ua(e,t,n,i,r=.5){const o=se(e.min,e.max,r);tr(e,t,n,o,i)}function Vt(e,t){ua(e.x,t.x,t.scaleX,t.scale,t.originX),ua(e.y,t.y,t.scaleY,t.scale,t.originY)}function la(e,t){return ta(ph(e.getBoundingClientRect(),t))}function gh(e,t,n){const i=la(e,n),{scroll:r}=t;return r&&(at(i.x,r.offset.x),at(i.y,r.offset.y)),i}const ca=({current:e})=>e?e.ownerDocument.defaultView:null,bh=new WeakMap;class vh{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=le(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const r=c=>{const{dragSnapToOrigin:d}=this.getProps();d?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(In(c,"page").point)},o=(c,d)=>{var f;const{drag:p,dragPropagation:b,onDragStart:g}=this.getProps();if(p&&!b&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=Wo(p),!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),Fe(C=>{let y=this.getAxisMotionValue(C).get()||0;if(Le.test(y)){const{projection:m}=this.visualElement;if(m&&m.layout){const I=m.layout.layoutBox[C];I&&(y=Pe(I)*(parseFloat(y)/100))}}this.originPoint[C]=y}),g&&K.postRender(()=>g(c,d)),(f=this.removeWillChange)===null||f===void 0||f.call(this),this.removeWillChange=Ui(this.visualElement,"transform");const{animationState:v}=this.visualElement;v&&v.setActive("whileDrag",!0)},s=(c,d)=>{const{dragPropagation:f,dragDirectionLock:p,onDirectionLock:b,onDrag:g}=this.getProps();if(!f&&!this.openGlobalLock)return;const{offset:v}=d;if(p&&this.currentDirection===null){this.currentDirection=yh(v),this.currentDirection!==null&&b&&b(this.currentDirection);return}this.updateAxis("x",d.point,v),this.updateAxis("y",d.point,v),this.visualElement.render(),g&&g(c,d)},u=(c,d)=>this.stop(c,d),a=()=>Fe(c=>{var d;return this.getAnimationState(c)==="paused"&&((d=this.getAxisMotionValue(c).animation)===null||d===void 0?void 0:d.play())}),{dragSnapToOrigin:l}=this.getProps();this.panSession=new Zs(t,{onSessionStart:r,onStart:o,onMove:s,onSessionEnd:u,resumeAnimation:a},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,contextWindow:ca(this.visualElement)})}stop(t,n){var i;(i=this.removeWillChange)===null||i===void 0||i.call(this);const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:o}=n;this.startAnimation(o);const{onDragEnd:s}=this.getProps();s&&K.postRender(()=>s(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:i}=this.getProps();!i&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,i){const{drag:r}=this.getProps();if(!i||!Vn(t,r,this.currentDirection))return;const o=this.getAxisMotionValue(t);let s=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(s=ah(s,this.constraints[t],this.elastic[t])),o.set(s)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:i}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,o=this.constraints;n&&xt(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&r?this.constraints=uh(r.layoutBox,n):this.constraints=!1,this.elastic=fh(i),o!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&Fe(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=dh(r.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!xt(t))return!1;const i=t.current;je(i!==null,"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=gh(i,r.root,this.visualElement.getTransformPagePoint());let s=lh(r.layout.layoutBox,o);if(n){const u=n(hh(s));this.hasMutatedConstraints=!!u,u&&(s=ta(u))}return s}startAnimation(t){const{drag:n,dragMomentum:i,dragElastic:r,dragTransition:o,dragSnapToOrigin:s,onDragTransitionEnd:u}=this.getProps(),a=this.constraints||{},l=Fe(c=>{if(!Vn(c,n,this.currentDirection))return;let d=a&&a[c]||{};s&&(d={min:0,max:0});const f=r?200:1e6,p=r?40:1e7,b={type:"inertia",velocity:i?t[c]:0,bounceStiffness:f,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10,...o,...d};return this.startAxisValueAnimation(c,b)});return Promise.all(l).then(u)}startAxisValueAnimation(t,n){const i=this.getAxisMotionValue(t);return i.start(ji(t,i,0,n,this.visualElement,!1,Ui(this.visualElement,t)))}stopAnimation(){Fe(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Fe(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,i=this.visualElement.getProps(),r=i[n];return r||this.visualElement.getValue(t,(i.initial?i.initial[t]:void 0)||0)}snapToCursor(t){Fe(n=>{const{drag:i}=this.getProps();if(!Vn(n,i,this.currentDirection))return;const{projection:r}=this.visualElement,o=this.getAxisMotionValue(n);if(r&&r.layout){const{min:s,max:u}=r.layout.layoutBox[n];o.set(t[n]-se(s,u,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:i}=this.visualElement;if(!xt(n)||!i||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};Fe(s=>{const u=this.getAxisMotionValue(s);if(u&&this.constraints!==!1){const a=u.get();r[s]=ch({min:a,max:a},this.constraints[s])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),Fe(s=>{if(!Vn(s,t,null))return;const u=this.getAxisMotionValue(s),{min:a,max:l}=this.constraints[s];u.set(se(a,l,r[s]))})}addListeners(){if(!this.visualElement.current)return;bh.set(this.visualElement,this);const t=this.visualElement.current,n=Ue(t,"pointerdown",a=>{const{drag:l,dragListener:c=!0}=this.getProps();l&&c&&this.start(a)}),i=()=>{const{dragConstraints:a}=this.getProps();xt(a)&&a.current&&(this.constraints=this.resolveRefConstraints())},{projection:r}=this.visualElement,o=r.addEventListener("measure",i);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),K.read(i);const s=Je(window,"resize",()=>this.scalePositionWithinConstraints()),u=r.addEventListener("didUpdate",({delta:a,hasLayoutChanged:l})=>{this.isDragging&&l&&(Fe(c=>{const d=this.getAxisMotionValue(c);d&&(this.originPoint[c]+=a[c].translate,d.set(d.get()+a[c].translate))}),this.visualElement.render())});return()=>{s(),n(),o(),u&&u()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:i=!1,dragPropagation:r=!1,dragConstraints:o=!1,dragElastic:s=$i,dragMomentum:u=!0}=t;return{...t,drag:n,dragDirectionLock:i,dragPropagation:r,dragConstraints:o,dragElastic:s,dragMomentum:u}}}function Vn(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function yh(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class Ch extends rt{constructor(t){super(t),this.removeGroupControls=he,this.removeListeners=he,this.controls=new vh(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||he}unmount(){this.removeGroupControls(),this.removeListeners()}}const da=e=>(t,n)=>{e&&K.postRender(()=>e(t,n))};class Ih extends rt{constructor(){super(...arguments),this.removePointerDownListener=he}onPointerDown(t){this.session=new Zs(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:ca(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:i,onPanEnd:r}=this.node.getProps();return{onSessionStart:da(t),onStart:da(n),onMove:i,onEnd:(o,s)=>{delete this.session,r&&K.postRender(()=>r(o,s))}}}mount(){this.removePointerDownListener=Ue(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function xh(){const e=x.useContext(dn);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:i}=e,r=x.useId();return x.useEffect(()=>i(r),[]),!t&&n?[!1,()=>n&&n(r)]:[!0]}const Dn={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function fa(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Qt={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(R.test(e))e=parseFloat(e);else return e;const n=fa(e,t.target.x),i=fa(e,t.target.y);return`${n}% ${i}%`}},Ah={correct:(e,{treeScale:t,projectionDelta:n})=>{const i=e,r=st.parse(e);if(r.length>5)return i;const o=st.createTransformer(e),s=typeof r[0]!="number"?1:0,u=n.x.scale*t.x,a=n.y.scale*t.y;r[0+s]/=u,r[1+s]/=a;const l=se(u,a,.5);return typeof r[2+s]=="number"&&(r[2+s]/=l),typeof r[3+s]=="number"&&(r[3+s]/=l),o(r)}};class Sh extends x.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:i,layoutId:r}=this.props,{projection:o}=t;vc(Th),o&&(n.group&&n.group.add(o),i&&i.register&&r&&i.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),Dn.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:i,drag:r,isPresent:o}=this.props,s=i.projection;return s&&(s.isPresent=o,r||t.layoutDependency!==n||n===void 0?s.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?s.promote():s.relegate()||K.postRender(()=>{const u=s.getStack();(!u||!u.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),ui.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:i}=this.props,{projection:r}=t;r&&(r.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(r),i&&i.deregister&&i.deregister(r))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function ha(e){const[t,n]=xh(),i=x.useContext(di);return w.jsx(Sh,{...e,layoutGroup:i,switchLayoutGroup:x.useContext(ao),isPresent:t,safeToRemove:n})}const Th={borderRadius:{...Qt,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Qt,borderTopRightRadius:Qt,borderBottomLeftRadius:Qt,borderBottomRightRadius:Qt,boxShadow:Ah},pa=["TopLeft","TopRight","BottomLeft","BottomRight"],Eh=pa.length,ma=e=>typeof e=="string"?parseFloat(e):e,ga=e=>typeof e=="number"||R.test(e);function Ph(e,t,n,i,r,o){r?(e.opacity=se(0,n.opacity!==void 0?n.opacity:1,wh(i)),e.opacityExit=se(t.opacity!==void 0?t.opacity:1,0,Vh(i))):o&&(e.opacity=se(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,i));for(let s=0;s<Eh;s++){const u=`border${pa[s]}Radius`;let a=ba(t,u),l=ba(n,u);if(a===void 0&&l===void 0)continue;a||(a=0),l||(l=0),a===0||l===0||ga(a)===ga(l)?(e[u]=Math.max(se(ma(a),ma(l),i),0),(Le.test(l)||Le.test(a))&&(e[u]+="%")):e[u]=l}(t.rotate||n.rotate)&&(e.rotate=se(t.rotate||0,n.rotate||0,i))}function ba(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const wh=va(0,.5,Is),Vh=va(.5,.95,he);function va(e,t,n){return i=>i<e?0:i>t?1:n(jt(e,t,i))}function ya(e,t){e.min=t.min,e.max=t.max}function Me(e,t){ya(e.x,t.x),ya(e.y,t.y)}function Ca(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Ia(e,t,n,i,r){return e-=t,e=wn(e,1/n,i),r!==void 0&&(e=wn(e,1/r,i)),e}function Dh(e,t=0,n=1,i=.5,r,o=e,s=e){if(Le.test(t)&&(t=parseFloat(t),t=se(s.min,s.max,t/100)-s.min),typeof t!="number")return;let u=se(o.min,o.max,i);e===o&&(u-=t),e.min=Ia(e.min,t,n,u,r),e.max=Ia(e.max,t,n,u,r)}function xa(e,t,[n,i,r],o,s){Dh(e,t[n],t[i],t[r],t.scale,o,s)}const Fh=["x","scaleX","originX"],Mh=["y","scaleY","originY"];function Aa(e,t,n,i){xa(e.x,t,Fh,n?n.x:void 0,i?i.x:void 0),xa(e.y,t,Mh,n?n.y:void 0,i?i.y:void 0)}function Sa(e){return e.translate===0&&e.scale===1}function Ta(e){return Sa(e.x)&&Sa(e.y)}function Bh(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 Ea(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function Pa(e){return Pe(e.x)/Pe(e.y)}function wa(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class Gh{constructor(){this.members=[]}add(t){yn(this.members,t),t.scheduleRender()}remove(t){if(Cn(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(r=>t===r);if(n===0)return!1;let i;for(let r=n;r>=0;r--){const o=this.members[r];if(o.isPresent!==!1){i=o;break}}return i?(this.promote(i),!0):!1}promote(t,n){const i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender(),t.resumeFrom=i,n&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:r}=t.options;r===!1&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:i}=t;n.onExitComplete&&n.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Oh(e,t,n){let i="";const r=e.x.translate/t.x,o=e.y.translate/t.y,s=(n==null?void 0:n.z)||0;if((r||o||s)&&(i=`translate3d(${r}px, ${o}px, ${s}px) `),(t.x!==1||t.y!==1)&&(i+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:l,rotate:c,rotateX:d,rotateY:f,skewX:p,skewY:b}=n;l&&(i=`perspective(${l}px) ${i}`),c&&(i+=`rotate(${c}deg) `),d&&(i+=`rotateX(${d}deg) `),f&&(i+=`rotateY(${f}deg) `),p&&(i+=`skewX(${p}deg) `),b&&(i+=`skewY(${b}deg) `)}const u=e.x.scale*t.x,a=e.y.scale*t.y;return(u!==1||a!==1)&&(i+=`scale(${u}, ${a})`),i||"none"}const Nh=(e,t)=>e.depth-t.depth;class Rh{constructor(){this.children=[],this.isDirty=!1}add(t){yn(this.children,t),this.isDirty=!0}remove(t){Cn(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Nh),this.isDirty=!1,this.children.forEach(t)}}function Wh(e,t){const n=ot.now(),i=({timestamp:r})=>{const o=r-n;o>=t&&(Ye(i),e(o-t))};return K.read(i,!0),()=>Ye(i)}function Lh(e){return e instanceof SVGElement&&e.tagName!=="svg"}function Xh(e,t,n){const i=ve(e)?e:Jt(e);return i.start(ji("",i,t,n)),i.animation}const gt={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},nr=["","X","Y","Z"],Zh={visibility:"hidden"},Va=1e3;let Hh=0;function ir(e,t,n,i){const{latestValues:r}=t;r[e]&&(n[e]=r[e],t.setStaticValue(e,0),i&&(i[e]=0))}function Da(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return!1;const{visualElement:t}=e.options;return t?Rs(t)?!0:e.parent&&!e.parent.hasCheckedOptimisedAppear?Da(e.parent):!1:!1}function Fa({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:i,resetTransform:r}){return class{constructor(s={},u=t==null?void 0:t()){this.id=Hh++,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.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,window.MotionDebug&&(gt.totalNodes=gt.resolvedTargetDeltas=gt.recalculatedProjection=0),this.nodes.forEach(jh),this.nodes.forEach(Qh),this.nodes.forEach(Kh),this.nodes.forEach(Yh),window.MotionDebug&&window.MotionDebug.record(gt)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=u?u.root||u:this,this.path=u?[...u.path,u]:[],this.parent=u,this.depth=u?u.depth+1:0;for(let a=0;a<this.path.length;a++)this.path[a].shouldResetTransform=!0;this.root===this&&(this.nodes=new Rh)}addEventListener(s,u){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new Yi),this.eventHandlers.get(s).add(u)}notifyListeners(s,...u){const a=this.eventHandlers.get(s);a&&a.notify(...u)}hasListeners(s){return this.eventHandlers.has(s)}mount(s,u=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=Lh(s),this.instance=s;const{layoutId:a,layout:l,visualElement:c}=this.options;if(c&&!c.current&&c.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),u&&(l||a)&&(this.isLayoutDirty=!0),e){let d;const f=()=>this.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,d&&d(),d=Wh(f,250),Dn.hasAnimatedSinceResize&&(Dn.hasAnimatedSinceResize=!1,this.nodes.forEach(Ba))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&c&&(a||l)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:f,hasRelativeTargetChanged:p,layout:b})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const g=this.options.transition||c.getDefaultTransition()||np,{onLayoutAnimationStart:v,onLayoutAnimationComplete:C}=c.getProps(),y=!this.targetLayout||!Ea(this.targetLayout,b)||p,m=!f&&p;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||m||f&&(y||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(d,m);const I={...Ei(g,"layout"),onPlay:v,onComplete:C};(c.shouldReduceMotion||this.options.layoutRoot)&&(I.delay=0,I.type=!1),this.startAnimation(I)}else f||Ba(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=b})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Ye(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($h),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.HandoffCancelAllAnimations&&Da(this)&&window.HandoffCancelAllAnimations(),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c<this.path.length;c++){const d=this.path[c];d.shouldResetTransform=!0,d.updateScroll("snapshot"),d.options.layoutRoot&&d.willUpdate(!1)}const{layoutId:u,layout:a}=this.options;if(u===void 0&&!a)return;const l=this.getTransformTemplate();this.prevTransformTemplateValue=l?l(this.latestValues,""):void 0,this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Ma);return}this.isUpdating||this.nodes.forEach(Uh),this.isUpdating=!1,this.nodes.forEach(_h),this.nodes.forEach(kh),this.nodes.forEach(zh),this.clearAllSnapshots();const u=ot.now();pe.delta=nt(0,1e3/60,u-pe.timestamp),pe.timestamp=u,pe.isProcessing=!0,xi.update.process(pe),xi.preRender.process(pe),xi.render.process(pe),pe.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,ui.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Jh),this.sharedNodes.forEach(qh)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,K.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){K.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let a=0;a<this.path.length;a++)this.path[a].updateScroll();const s=this.layout;this.layout=this.measure(!1),this.layoutCorrected=le(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:u}=this.options;u&&u.notify("LayoutMeasure",this.layout.layoutBox,s?s.layoutBox:void 0)}updateScroll(s="measure"){let u=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(u=!1),u&&(this.scroll={animationId:this.root.animationId,phase:s,isRoot:i(this.instance),offset:n(this.instance)})}resetTransform(){if(!r)return;const s=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,u=this.projectionDelta&&!Ta(this.projectionDelta),a=this.getTransformTemplate(),l=a?a(this.latestValues,""):void 0,c=l!==this.prevTransformTemplateValue;s&&(u||mt(this.latestValues)||c)&&(r(this.instance,l),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){const u=this.measurePageBox();let a=this.removeElementScroll(u);return s&&(a=this.removeTransform(a)),ip(a),{animationId:this.root.animationId,measuredBox:u,layoutBox:a,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:s}=this.options;if(!s)return le();const u=s.measureViewportBox(),{scroll:a}=this.root;return a&&(at(u.x,a.offset.x),at(u.y,a.offset.y)),u}removeElementScroll(s){const u=le();Me(u,s);for(let a=0;a<this.path.length;a++){const l=this.path[a],{scroll:c,options:d}=l;if(l!==this.root&&c&&d.layoutScroll){if(c.isRoot){Me(u,s);const{scroll:f}=this.root;f&&(at(u.x,-f.offset.x),at(u.y,-f.offset.y))}at(u.x,c.offset.x),at(u.y,c.offset.y)}}return u}applyTransform(s,u=!1){const a=le();Me(a,s);for(let l=0;l<this.path.length;l++){const c=this.path[l];!u&&c.options.layoutScroll&&c.scroll&&c!==c.root&&Vt(a,{x:-c.scroll.offset.x,y:-c.scroll.offset.y}),mt(c.latestValues)&&Vt(a,c.latestValues)}return mt(this.latestValues)&&Vt(a,this.latestValues),a}removeTransform(s){const u=le();Me(u,s);for(let a=0;a<this.path.length;a++){const l=this.path[a];if(!l.instance||!mt(l.latestValues))continue;er(l.latestValues)&&l.updateSnapshot();const c=le(),d=l.measurePageBox();Me(c,d),Aa(u,l.latestValues,l.snapshot?l.snapshot.layoutBox:void 0,c)}return mt(this.latestValues)&&Aa(u,this.latestValues),u}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(s){this.options={...this.options,...s,crossfade:s.crossfade!==void 0?s.crossfade:!0}}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!==pe.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!1){var u;const a=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=a.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=a.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=a.isSharedProjectionDirty);const l=!!this.resumingFrom||this!==a;if(!(s||l&&this.isSharedProjectionDirty||this.isProjectionDirty||!((u=this.parent)===null||u===void 0)&&u.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:d,layoutId:f}=this.options;if(!(!this.layout||!(d||f))){if(this.resolvedRelativeTargetAt=pe.timestamp,!this.targetDelta&&!this.relativeTarget){const p=this.getClosestProjectingParent();p&&p.layout&&this.animationProgress!==1?(this.relativeParent=p,this.forceRelativeParentToResolveTarget(),this.relativeTarget=le(),this.relativeTargetOrigin=le(),_t(this.relativeTargetOrigin,this.layout.layoutBox,p.layout.layoutBox),Me(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=le(),this.targetWithTransforms=le()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),sh(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Me(this.target,this.layout.layoutBox),oa(this.target,this.targetDelta)):Me(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const p=this.getClosestProjectingParent();p&&!!p.resumingFrom==!!this.resumingFrom&&!p.options.layoutScroll&&p.target&&this.animationProgress!==1?(this.relativeParent=p,this.forceRelativeParentToResolveTarget(),this.relativeTarget=le(),this.relativeTargetOrigin=le(),_t(this.relativeTargetOrigin,this.target,p.target),Me(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}window.MotionDebug&>.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||er(this.parent.latestValues)||na(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var s;const u=this.getLead(),a=!!this.resumingFrom||this!==u;let l=!0;if((this.isProjectionDirty||!((s=this.parent)===null||s===void 0)&&s.isProjectionDirty)&&(l=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===pe.timestamp&&(l=!1),l)return;const{layout:c,layoutId:d}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(c||d))return;Me(this.layoutCorrected,this.layout.layoutBox);const f=this.treeScale.x,p=this.treeScale.y;mh(this.layoutCorrected,this.treeScale,this.path,a),u.layout&&!u.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(u.target=u.layout.layoutBox,u.targetWithTransforms=le());const{target:b}=u;if(!b){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Ca(this.prevProjectionDelta.x,this.projectionDelta.x),Ca(this.prevProjectionDelta.y,this.projectionDelta.y)),Ut(this.projectionDelta,this.layoutCorrected,b,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==p||!wa(this.projectionDelta.x,this.prevProjectionDelta.x)||!wa(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",b)),window.MotionDebug&>.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),s){const u=this.getStack();u&&u.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=wt(),this.projectionDelta=wt(),this.projectionDeltaWithTransform=wt()}setAnimationOrigin(s,u=!1){const a=this.snapshot,l=a?a.latestValues:{},c={...this.latestValues},d=wt();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!u;const f=le(),p=a?a.source:void 0,b=this.layout?this.layout.source:void 0,g=p!==b,v=this.getStack(),C=!v||v.members.length<=1,y=!!(g&&!C&&this.options.crossfade===!0&&!this.path.some(tp));this.animationProgress=0;let m;this.mixTargetDelta=I=>{const h=I/1e3;Ga(d.x,s.x,h),Ga(d.y,s.y,h),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(_t(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),ep(this.relativeTarget,this.relativeTargetOrigin,f,h),m&&Bh(this.relativeTarget,m)&&(this.isProjectionDirty=!1),m||(m=le()),Me(m,this.relativeTarget)),g&&(this.animationValues=c,Ph(c,l,this.latestValues,h,y,C)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=h},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Ye(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=K.update(()=>{Dn.hasAnimatedSinceResize=!0,this.currentAnimation=Xh(0,Va,{...s,onUpdate:u=>{this.mixTargetDelta(u),s.onUpdate&&s.onUpdate(u)},onComplete:()=>{s.onComplete&&s.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 s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Va),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:u,target:a,layout:l,latestValues:c}=s;if(!(!u||!a||!l)){if(this!==s&&this.layout&&l&&La(this.options.animationType,this.layout.layoutBox,l.layoutBox)){a=this.target||le();const d=Pe(this.layout.layoutBox.x);a.x.min=s.target.x.min,a.x.max=a.x.min+d;const f=Pe(this.layout.layoutBox.y);a.y.min=s.target.y.min,a.y.max=a.y.min+f}Me(u,a),Vt(u,c),Ut(this.projectionDeltaWithTransform,this.layoutCorrected,u,c)}}registerSharedNode(s,u){this.sharedNodes.has(s)||this.sharedNodes.set(s,new Gh),this.sharedNodes.get(s).add(u);const l=u.options.initialPromotionConfig;u.promote({transition:l?l.transition:void 0,preserveFollowOpacity:l&&l.shouldPreserveFollowOpacity?l.shouldPreserveFollowOpacity(u):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var s;const{layoutId:u}=this.options;return u?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:u}=this.options;return u?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:u,preserveFollowOpacity:a}={}){const l=this.getStack();l&&l.promote(this,a),s&&(this.projectionDelta=void 0,this.needsReset=!0),u&&this.setOptions({transition:u})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetSkewAndRotation(){const{visualElement:s}=this.options;if(!s)return;let u=!1;const{latestValues:a}=s;if((a.z||a.rotate||a.rotateX||a.rotateY||a.rotateZ||a.skewX||a.skewY)&&(u=!0),!u)return;const l={};a.z&&ir("z",s,l,this.animationValues);for(let c=0;c<nr.length;c++)ir(`rotate${nr[c]}`,s,l,this.animationValues),ir(`skew${nr[c]}`,s,l,this.animationValues);s.render();for(const c in l)s.setStaticValue(c,l[c]),this.animationValues&&(this.animationValues[c]=l[c]);s.scheduleRender()}getProjectionStyles(s){var u,a;if(!this.instance||this.isSVG)return;if(!this.isVisible)return Zh;const l={visibility:""},c=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,l.opacity="",l.pointerEvents=vn(s==null?void 0:s.pointerEvents)||"",l.transform=c?c(this.latestValues,""):"none",l;const d=this.getLead();if(!this.projectionDelta||!this.layout||!d.target){const g={};return this.options.layoutId&&(g.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,g.pointerEvents=vn(s==null?void 0:s.pointerEvents)||""),this.hasProjected&&!mt(this.latestValues)&&(g.transform=c?c({},""):"none",this.hasProjected=!1),g}const f=d.animationValues||d.latestValues;this.applyTransformsToTarget(),l.transform=Oh(this.projectionDeltaWithTransform,this.treeScale,f),c&&(l.transform=c(f,l.transform));const{x:p,y:b}=this.projectionDelta;l.transformOrigin=`${p.origin*100}% ${b.origin*100}% 0`,d.animationValues?l.opacity=d===this?(a=(u=f.opacity)!==null&&u!==void 0?u:this.latestValues.opacity)!==null&&a!==void 0?a:1:this.preserveOpacity?this.latestValues.opacity:f.opacityExit:l.opacity=d===this?f.opacity!==void 0?f.opacity:"":f.opacityExit!==void 0?f.opacityExit:0;for(const g in mn){if(f[g]===void 0)continue;const{correct:v,applyTo:C}=mn[g],y=l.transform==="none"?f[g]:v(f[g],d);if(C){const m=C.length;for(let I=0;I<m;I++)l[C[I]]=y}else l[g]=y}return this.options.layoutId&&(l.pointerEvents=d===this?vn(s==null?void 0:s.pointerEvents)||"":"none"),l}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>{var u;return(u=s.currentAnimation)===null||u===void 0?void 0:u.stop()}),this.root.nodes.forEach(Ma),this.root.sharedNodes.clear()}}}function kh(e){e.updateLayout()}function zh(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:i,measuredBox:r}=e.layout,{animationType:o}=e.options,s=n.source!==e.layout.source;o==="size"?Fe(d=>{const f=s?n.measuredBox[d]:n.layoutBox[d],p=Pe(f);f.min=i[d].min,f.max=f.min+p}):La(o,n.layoutBox,i)&&Fe(d=>{const f=s?n.measuredBox[d]:n.layoutBox[d],p=Pe(i[d]);f.max=f.min+p,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+p)});const u=wt();Ut(u,i,n.layoutBox);const a=wt();s?Ut(a,e.applyTransform(r,!0),n.measuredBox):Ut(a,i,n.layoutBox);const l=!Ta(u);let c=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:f,layout:p}=d;if(f&&p){const b=le();_t(b,n.layoutBox,f.layoutBox);const g=le();_t(g,i,p.layoutBox),Ea(b,g)||(c=!0),d.options.layoutRoot&&(e.relativeTarget=g,e.relativeTargetOrigin=b,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:i,snapshot:n,delta:a,layoutDelta:u,hasLayoutChanged:l,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:i}=e.options;i&&i()}e.options.transition=void 0}function jh(e){window.MotionDebug&>.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function Yh(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Jh(e){e.clearSnapshot()}function Ma(e){e.clearMeasurements()}function Uh(e){e.isLayoutDirty=!1}function _h(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Ba(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Qh(e){e.resolveTargetDelta()}function Kh(e){e.calcProjection()}function $h(e){e.resetSkewAndRotation()}function qh(e){e.removeLeadSnapshot()}function Ga(e,t,n){e.translate=se(t.translate,0,n),e.scale=se(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Oa(e,t,n,i){e.min=se(t.min,n.min,i),e.max=se(t.max,n.max,i)}function ep(e,t,n,i){Oa(e.x,t.x,n.x,i),Oa(e.y,t.y,n.y,i)}function tp(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const np={duration:.45,ease:[.4,0,.1,1]},Na=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Ra=Na("applewebkit/")&&!Na("chrome/")?Math.round:he;function Wa(e){e.min=Ra(e.min),e.max=Ra(e.max)}function ip(e){Wa(e.x),Wa(e.y)}function La(e,t,n){return e==="position"||e==="preserve-aspect"&&!oh(Pa(t),Pa(n),.2)}const rp=Fa({attachResizeListener:(e,t)=>Je(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),rr={current:void 0},Xa=Fa({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!rr.current){const e=new rp({});e.mount(window),e.setOptions({layoutScroll:!0}),rr.current=e}return rr.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),op={pan:{Feature:Ih},drag:{Feature:Ch,ProjectionNode:Xa,MeasureLayout:ha}},or={current:null},Za={current:!1};function sp(){if(Za.current=!0,!!si)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>or.current=e.matches;e.addListener(t),t()}else or.current=!1}function ap(e,t,n){for(const i in t){const r=t[i],o=n[i];if(ve(r))e.addValue(i,r),process.env.NODE_ENV==="development"&&Ji(r.version==="11.3.8",`Attempting to mix Framer Motion versions ${r.version} with 11.3.8 may not work as expected.`);else if(ve(o))e.addValue(i,Jt(r,{owner:e}));else if(o!==r)if(e.hasValue(i)){const s=e.getValue(i);s.liveStyle===!0?s.jump(r):s.hasAnimated||s.set(r)}else{const s=e.getStaticValue(i);e.addValue(i,Jt(s!==void 0?s:r,{owner:e}))}}for(const i in n)t[i]===void 0&&e.removeValue(i);return t}const Ha=new WeakMap,up=[...Qo,ye,st],lp=e=>up.find(_o(e)),ka=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],cp=ci.length;class dp{scrapeMotionValuesFromProps(t,n,i){return{}}constructor({parent:t,props:n,presenceContext:i,reducedMotionConfig:r,blockInitialAnimation:o,visualState:s},u={}){this.applyWillChange=!1,this.resolveKeyframes=(f,p,b,g)=>new this.KeyframeResolver(f,p,b,g,this),this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Vi,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.isRenderScheduled=!1,this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.isRenderScheduled=!1,this.scheduleRender=()=>{this.isRenderScheduled||(this.isRenderScheduled=!0,K.render(this.render,!1,!0))};const{latestValues:a,renderState:l}=s;this.latestValues=a,this.baseTarget={...a},this.initialValues=n.initial?{...a}:{},this.renderState=l,this.parent=t,this.props=n,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=r,this.options=u,this.blockInitialAnimation=!!o,this.isControllingVariants=pn(n),this.isVariantNode=co(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:c,...d}=this.scrapeMotionValuesFromProps(n,{},this);for(const f in d){const p=d[f];a[f]!==void 0&&ve(p)&&p.set(a[f],!1)}}mount(t){this.current=t,Ha.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,i)=>this.bindToMotionValue(i,n)),Za.current||sp(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:or.current,process.env.NODE_ENV!=="production"&&Ji(this.shouldReduceMotion!==!0,"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(){Ha.delete(this.current),this.projection&&this.projection.unmount(),Ye(this.notifyUpdate),Ye(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){const i=tt.has(t),r=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&K.preRender(this.notifyUpdate),i&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{r(),o(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in At){const n=At[t];if(!n)continue;const{isEnabled:i,Feature:r}=n;if(!this.features[t]&&r&&i(this.props)&&(this.features[t]=new r(this)),this.features[t]){const o=this.features[t];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):le()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let i=0;i<ka.length;i++){const r=ka[i];this.propEventSubscriptions[r]&&(this.propEventSubscriptions[r](),delete this.propEventSubscriptions[r]);const o="on"+r,s=t[o];s&&(this.propEventSubscriptions[r]=this.on(r,s))}this.prevMotionValues=ap(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]: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(t=!1){if(t)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const i=this.parent?this.parent.getVariantContext()||{}:{};return this.props.initial!==void 0&&(i.initial=this.props.initial),i}const n={};for(let i=0;i<cp;i++){const r=ci[i],o=this.props[r];(Nt(o)||o===!1)&&(n[r]=o)}return n}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const i=this.values.get(t);n!==i&&(i&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let i=this.values.get(t);return i===void 0&&n!==void 0&&(i=Jt(n===null?void 0:n,{owner:this}),this.addValue(t,i)),i}readValue(t,n){var i;let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(i=this.getBaseTargetFromProps(this.props,t))!==null&&i!==void 0?i:this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(zo(r)||ko(r))?r=parseFloat(r):!lp(r)&&st.test(n)&&(r=ss(t,n)),this.setBaseTarget(t,ve(r)?r.get():r)),ve(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:i}=this.props;let r;if(typeof i=="string"||typeof i=="object"){const s=Ci(this.props,i,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);s&&(r=s[t])}if(i&&r!==void 0)return r;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!ve(o)?o:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Yi),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class za extends dp{constructor(){super(...arguments),this.KeyframeResolver=as}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:i}){delete n[t],delete i[t]}}function fp(e){return window.getComputedStyle(e)}class hp extends za{constructor(){super(...arguments),this.type="html",this.applyWillChange=!0,this.renderInstance=So}readValueFromInstance(t,n){if(tt.has(n)){const i=Gi(n);return i&&i.default||0}else{const i=fp(t),r=(go(n)?i.getPropertyValue(n):i[n])||0;return typeof r=="string"?r.trim():r}}measureInstanceViewportBox(t,{transformPagePoint:n}){return la(t,n)}build(t,n,i){mi(t,n,i.transformTemplate)}scrapeMotionValuesFromProps(t,n,i){return yi(t,n,i)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;ve(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class pp extends za{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=le}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(tt.has(n)){const i=Gi(n);return i&&i.default||0}return n=To.has(n)?n:fn(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,i){return Po(t,n,i)}build(t,n,i){bi(t,n,this.isSVGTag,i.transformTemplate)}renderInstance(t,n,i,r){Eo(t,n,i,r)}mount(t){this.isSVGTag=vi(t.tagName),super.mount(t)}}const mp=(e,t)=>fi(e)?new pp(t):new hp(t,{allowProjection:e!==x.Fragment}),gp={...Kf,...ud,...op,...{layout:{ProjectionNode:Xa,MeasureLayout:ha}}},Kt=gc((e,t)=>_c(e,t,gp,mp));function ja(){const e=x.useRef(!1);return ai(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function bp(){const e=ja(),[t,n]=x.useState(0),i=x.useCallback(()=>{e.current&&n(t+1)},[t]);return[x.useCallback(()=>K.postRender(i),[i]),t]}class vp extends Z.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const i=this.props.sizeRef.current;i.height=n.offsetHeight||0,i.width=n.offsetWidth||0,i.top=n.offsetTop,i.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function yp({children:e,isPresent:t}){const n=x.useId(),i=x.useRef(null),r=x.useRef({width:0,height:0,top:0,left:0}),{nonce:o}=x.useContext(oi);return x.useInsertionEffect(()=>{const{width:s,height:u,top:a,left:l}=r.current;if(t||!i.current||!s||!u)return;i.current.dataset.motionPopId=n;const c=document.createElement("style");return o&&(c.nonce=o),document.head.appendChild(c),c.sheet&&c.sheet.insertRule(`
|
|
6
6
|
[data-motion-pop-id="${n}"] {
|
|
7
7
|
position: absolute !important;
|
|
8
8
|
width: ${s}px !important;
|
|
@@ -47,7 +47,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
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
|
-
*/var Gu;function Gg(){return Gu||(Gu=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,r=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,u=e?Symbol.for("react.context"):60110,a=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,b=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,C=e?Symbol.for("react.responder"):60118,y=e?Symbol.for("react.scope"):60119;function m(A){return typeof A=="string"||typeof A=="function"||A===i||A===l||A===o||A===r||A===d||A===f||typeof A=="object"&&A!==null&&(A.$$typeof===b||A.$$typeof===p||A.$$typeof===s||A.$$typeof===u||A.$$typeof===c||A.$$typeof===v||A.$$typeof===C||A.$$typeof===y||A.$$typeof===g)}function I(A){if(typeof A=="object"&&A!==null){var xe=A.$$typeof;switch(xe){case t:var Be=A.type;switch(Be){case a:case l:case i:case o:case r:case d:return Be;default:var Ct=Be&&Be.$$typeof;switch(Ct){case u:case c:case b:case p:case s:return Ct;default:return xe}}case n:return xe}}}var h=a,S=l,T=u,P=s,M=t,X=c,U=i,ne=b,de=p,oe=n,k=o,z=r,ie=d,re=!1;function be(A){return re||(re=!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.")),E(A)||I(A)===a}function E(A){return I(A)===l}function V(A){return I(A)===u}function D(A){return I(A)===s}function G(A){return typeof A=="object"&&A!==null&&A.$$typeof===t}function O(A){return I(A)===c}function j(A){return I(A)===i}function N(A){return I(A)===b}function L(A){return I(A)===p}function H(A){return I(A)===n}function Y(A){return I(A)===o}function J(A){return I(A)===r}function fe(A){return I(A)===d}te.AsyncMode=h,te.ConcurrentMode=S,te.ContextConsumer=T,te.ContextProvider=P,te.Element=M,te.ForwardRef=X,te.Fragment=U,te.Lazy=ne,te.Memo=de,te.Portal=oe,te.Profiler=k,te.StrictMode=z,te.Suspense=ie,te.isAsyncMode=be,te.isConcurrentMode=E,te.isContextConsumer=V,te.isContextProvider=D,te.isElement=G,te.isForwardRef=O,te.isFragment=j,te.isLazy=N,te.isMemo=L,te.isPortal=H,te.isProfiler=Y,te.isStrictMode=J,te.isSuspense=fe,te.isValidElementType=m,te.typeOf=I}()),te}process.env.NODE_ENV==="production"?Mr.exports=Bg():Mr.exports=Gg();var Og=Mr.exports,Ou=Og,Ng={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Rg={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Nu={};Nu[Ou.ForwardRef]=Ng,Nu[Ou.Memo]=Rg;var Wg=!0;function Lg(e,t,n){var i="";return n.split(" ").forEach(function(r){e[r]!==void 0?t.push(e[r]+";"):i+=r+" "}),i}var Ru=function(t,n,i){var r=t.key+"-"+n.name;(i===!1||Wg===!1)&&t.registered[r]===void 0&&(t.registered[r]=n.styles)},Xg=function(t,n,i){Ru(t,n,i);var r=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var o=n;do t.insert(n===o?"."+r:"",o,t.sheet,!0),o=o.next;while(o!==void 0)}};function Zg(e){for(var t=0,n,i=0,r=e.length;r>=4;++i,r-=4)n=e.charCodeAt(i)&255|(e.charCodeAt(++i)&255)<<8|(e.charCodeAt(++i)&255)<<16|(e.charCodeAt(++i)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(r){case 3:t^=(e.charCodeAt(i+2)&255)<<16;case 2:t^=(e.charCodeAt(i+1)&255)<<8;case 1:t^=e.charCodeAt(i)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Hg={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,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},kg=!1,zg=/[A-Z]|^ms/g,jg=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Wu=function(t){return t.charCodeAt(1)===45},Lu=function(t){return t!=null&&typeof t!="boolean"},Br=Sg(function(e){return Wu(e)?e:e.replace(zg,"-$&").toLowerCase()}),Xu=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(jg,function(i,r,o){return ze={name:r,styles:o,next:ze},r})}return Hg[t]!==1&&!Wu(t)&&typeof n=="number"&&n!==0?n+"px":n},Yg="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function on(e,t,n){if(n==null)return"";var i=n;if(i.__emotion_styles!==void 0)return i;switch(typeof n){case"boolean":return"";case"object":{var r=n;if(r.anim===1)return ze={name:r.name,styles:r.styles,next:ze},r.name;var o=n;if(o.styles!==void 0){var s=o.next;if(s!==void 0)for(;s!==void 0;)ze={name:s.name,styles:s.styles,next:ze},s=s.next;var u=o.styles+";";return u}return Jg(e,t,n)}case"function":{if(e!==void 0){var a=ze,l=n(e);return ze=a,on(e,t,l)}break}}var c=n;return c}function Jg(e,t,n){var i="";if(Array.isArray(n))for(var r=0;r<n.length;r++)i+=on(e,t,n[r])+";";else for(var o in n){var s=n[o];if(typeof s!="object"){var u=s;Lu(u)&&(i+=Br(o)+":"+Xu(o,u)+";")}else{if(o==="NO_COMPONENT_SELECTOR"&&kg)throw new Error(Yg);if(Array.isArray(s)&&typeof s[0]=="string"&&t==null)for(var a=0;a<s.length;a++)Lu(s[a])&&(i+=Br(o)+":"+Xu(o,s[a])+";");else{var l=on(e,t,s);switch(o){case"animation":case"animationName":{i+=Br(o)+":"+l+";";break}default:i+=o+"{"+l+"}"}}}}return i}var Zu=/label:\s*([^\s;\n{]+)\s*(;|$)/g,ze;function Hu(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var i=!0,r="";ze=void 0;var o=e[0];if(o==null||o.raw===void 0)i=!1,r+=on(n,t,o);else{var s=o;r+=s[0]}for(var u=1;u<e.length;u++)if(r+=on(n,t,e[u]),i){var a=o;r+=a[u]}Zu.lastIndex=0;for(var l="",c;(c=Zu.exec(r))!==null;)l+="-"+c[1];var d=Zg(r)+l;return{name:d,styles:r,next:ze}}var Ug=function(t){return t()},_g=Z.useInsertionEffect?Z.useInsertionEffect:!1,Qg=_g||Ug,Kg=!1,ku=Z.createContext(typeof HTMLElement<"u"?Mg({key:"css"}):null);ku.Provider;var $g=function(t){return x.forwardRef(function(n,i){var r=x.useContext(ku);return t(n,r,i)})},qg=Z.createContext({}),Gr={}.hasOwnProperty,Or="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",eb=function(t,n){var i={};for(var r in n)Gr.call(n,r)&&(i[r]=n[r]);return i[Or]=t,i},tb=function(t){var n=t.cache,i=t.serialized,r=t.isStringTag;return Ru(n,i,r),Qg(function(){return Xg(n,i,r)}),null},nb=$g(function(e,t,n){var i=e.css;typeof i=="string"&&t.registered[i]!==void 0&&(i=t.registered[i]);var r=e[Or],o=[i],s="";typeof e.className=="string"?s=Lg(t.registered,o,e.className):e.className!=null&&(s=e.className+" ");var u=Hu(o,void 0,Z.useContext(qg));s+=t.key+"-"+u.name;var a={};for(var l in e)Gr.call(e,l)&&l!=="css"&&l!==Or&&!Kg&&(a[l]=e[l]);return a.className=s,n&&(a.ref=n),Z.createElement(Z.Fragment,null,Z.createElement(tb,{cache:t,serialized:u,isStringTag:typeof r=="string"}),Z.createElement(r,a))}),ib=nb,F=function(t,n){var i=arguments;if(n==null||!Gr.call(n,"css"))return Z.createElement.apply(void 0,i);var r=i.length,o=new Array(r);o[0]=ib,o[1]=eb(t,n);for(var s=2;s<r;s++)o[s]=i[s];return Z.createElement.apply(null,o)};function Nr(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Hu(t)}var rb=function(){var t=Nr.apply(void 0,arguments),n="animation-"+t.name;return{name:n,styles:"@keyframes "+n+"{"+t.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}};function ob(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}const sb=Math.min,ab=Math.max,Jn=Math.round,Un=Math.floor,_n=e=>({x:e,y:e});function ub(e){const{x:t,y:n,width:i,height:r}=e;return{width:i,height:r,top:n,left:t,right:t+i,bottom:n+r,x:t,y:n}}function zu(e){return Yu(e)?(e.nodeName||"").toLowerCase():"#document"}function et(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ju(e){var t;return(t=(Yu(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Yu(e){return e instanceof Node||e instanceof et(e).Node}function lb(e){return e instanceof Element||e instanceof et(e).Element}function Rr(e){return e instanceof HTMLElement||e instanceof et(e).HTMLElement}function Ju(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof et(e).ShadowRoot}function Uu(e){const{overflow:t,overflowX:n,overflowY:i,display:r}=Wr(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+n)&&!["inline","contents"].includes(r)}function cb(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function db(e){return["html","body","#document"].includes(zu(e))}function Wr(e){return et(e).getComputedStyle(e)}function fb(e){if(zu(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Ju(e)&&e.host||ju(e);return Ju(t)?t.host:t}function _u(e){const t=fb(e);return db(t)?e.ownerDocument?e.ownerDocument.body:e.body:Rr(t)&&Uu(t)?t:_u(t)}function Qn(e,t,n){var i;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=_u(e),o=r===((i=e.ownerDocument)==null?void 0:i.body),s=et(r);return o?t.concat(s,s.visualViewport||[],Uu(r)?r:[],s.frameElement&&n?Qn(s.frameElement):[]):t.concat(r,Qn(r,[],n))}function hb(e){const t=Wr(e);let n=parseFloat(t.width)||0,i=parseFloat(t.height)||0;const r=Rr(e),o=r?e.offsetWidth:n,s=r?e.offsetHeight:i,u=Jn(n)!==o||Jn(i)!==s;return u&&(n=o,i=s),{width:n,height:i,$:u}}function Lr(e){return lb(e)?e:e.contextElement}function Qu(e){const t=Lr(e);if(!Rr(t))return _n(1);const n=t.getBoundingClientRect(),{width:i,height:r,$:o}=hb(t);let s=(o?Jn(n.width):n.width)/i,u=(o?Jn(n.height):n.height)/r;return(!s||!Number.isFinite(s))&&(s=1),(!u||!Number.isFinite(u))&&(u=1),{x:s,y:u}}const pb=_n(0);function mb(e){const t=et(e);return!cb()||!t.visualViewport?pb:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function gb(e,t,n){return!1}function Ku(e,t,n,i){t===void 0&&(t=!1);const r=e.getBoundingClientRect(),o=Lr(e);let s=_n(1);t&&(s=Qu(e));const u=gb()?mb(o):_n(0);let a=(r.left+u.x)/s.x,l=(r.top+u.y)/s.y,c=r.width/s.x,d=r.height/s.y;if(o){const f=et(o),p=i;let b=f,g=b.frameElement;for(;g&&i&&p!==b;){const v=Qu(g),C=g.getBoundingClientRect(),y=Wr(g),m=C.left+(g.clientLeft+parseFloat(y.paddingLeft))*v.x,I=C.top+(g.clientTop+parseFloat(y.paddingTop))*v.y;a*=v.x,l*=v.y,c*=v.x,d*=v.y,a+=m,l+=I,b=et(g),g=b.frameElement}}return ub({width:c,height:d,x:a,y:l})}function bb(e,t){let n=null,i;const r=ju(e);function o(){var u;clearTimeout(i),(u=n)==null||u.disconnect(),n=null}function s(u,a){u===void 0&&(u=!1),a===void 0&&(a=1),o();const{left:l,top:c,width:d,height:f}=e.getBoundingClientRect();if(u||t(),!d||!f)return;const p=Un(c),b=Un(r.clientWidth-(l+d)),g=Un(r.clientHeight-(c+f)),v=Un(l),y={rootMargin:-p+"px "+-b+"px "+-g+"px "+-v+"px",threshold:ab(0,sb(1,a))||1};let m=!0;function I(h){const S=h[0].intersectionRatio;if(S!==a){if(!m)return s();S?s(!1,S):i=setTimeout(()=>{s(!1,1e-7)},1e3)}m=!1}try{n=new IntersectionObserver(I,{...y,root:r.ownerDocument})}catch{n=new IntersectionObserver(I,y)}n.observe(e)}return s(!0),o}function vb(e,t,n,i){i===void 0&&(i={});const{ancestorScroll:r=!0,ancestorResize:o=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:u=typeof IntersectionObserver=="function",animationFrame:a=!1}=i,l=Lr(e),c=r||o?[...l?Qn(l):[],...Qn(t)]:[];c.forEach(C=>{r&&C.addEventListener("scroll",n,{passive:!0}),o&&C.addEventListener("resize",n)});const d=l&&u?bb(l,n):null;let f=-1,p=null;s&&(p=new ResizeObserver(C=>{let[y]=C;y&&y.target===l&&p&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var m;(m=p)==null||m.observe(t)})),n()}),l&&!a&&p.observe(l),p.observe(t));let b,g=a?Ku(e):null;a&&v();function v(){const C=Ku(e);g&&(C.x!==g.x||C.y!==g.y||C.width!==g.width||C.height!==g.height)&&n(),g=C,b=requestAnimationFrame(v)}return n(),()=>{var C;c.forEach(y=>{r&&y.removeEventListener("scroll",n),o&&y.removeEventListener("resize",n)}),d==null||d(),(C=p)==null||C.disconnect(),p=null,a&&cancelAnimationFrame(b)}}var Xr=x.useLayoutEffect,yb=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],Kn=function(){};function Cb(e,t){return t?t[0]==="-"?e+t:e+"__"+t:e}function Ib(e,t){for(var n=arguments.length,i=new Array(n>2?n-2:0),r=2;r<n;r++)i[r-2]=arguments[r];var o=[].concat(i);if(t&&e)for(var s in t)t.hasOwnProperty(s)&&t[s]&&o.push("".concat(Cb(e,s)));return o.filter(function(u){return u}).map(function(u){return String(u).trim()}).join(" ")}var $u=function(t){return Db(t)?t.filter(Boolean):yt(t)==="object"&&t!==null?[t]:[]},qu=function(t){t.className,t.clearValue,t.cx,t.getStyles,t.getClassNames,t.getValue,t.hasValue,t.isMulti,t.isRtl,t.options,t.selectOption,t.selectProps,t.setValue,t.theme;var n=qe(t,yb);return B({},n)},ue=function(t,n,i){var r=t.cx,o=t.getStyles,s=t.getClassNames,u=t.className;return{css:o(n,t),className:r(i??{},s(n,t),u)}};function $n(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function xb(e){return $n(e)?window.innerHeight:e.clientHeight}function el(e){return $n(e)?window.pageYOffset:e.scrollTop}function qn(e,t){if($n(e)){window.scrollTo(0,t);return}e.scrollTop=t}function Ab(e){var t=getComputedStyle(e),n=t.position==="absolute",i=/(auto|scroll)/;if(t.position==="fixed")return document.documentElement;for(var r=e;r=r.parentElement;)if(t=getComputedStyle(r),!(n&&t.position==="static")&&i.test(t.overflow+t.overflowY+t.overflowX))return r;return document.documentElement}function Sb(e,t,n,i){return n*((e=e/i-1)*e*e+1)+t}function ei(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Kn,r=el(e),o=t-r,s=10,u=0;function a(){u+=s;var l=Sb(u,r,o,n);qn(e,l),u<n?window.requestAnimationFrame(a):i(e)}a()}function tl(e,t){var n=e.getBoundingClientRect(),i=t.getBoundingClientRect(),r=t.offsetHeight/3;i.bottom+r>n.bottom?qn(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+r,e.scrollHeight)):i.top-r<n.top&&qn(e,Math.max(t.offsetTop-r,0))}function Tb(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}function nl(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function Eb(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var il=!1,Pb={get passive(){return il=!0}},ti=typeof window<"u"?window:{};ti.addEventListener&&ti.removeEventListener&&(ti.addEventListener("p",Kn,Pb),ti.removeEventListener("p",Kn,!1));var wb=il;function Vb(e){return e!=null}function Db(e){return Array.isArray(e)}function ni(e,t,n){return e?t:n}function my(e){return e}function gy(e){return e}var Fb=function(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];var o=Object.entries(t).filter(function(s){var u=$e(s,1),a=u[0];return!i.includes(a)});return o.reduce(function(s,u){var a=$e(u,2),l=a[0],c=a[1];return s[l]=c,s},{})},Mb=["children","innerProps"],Bb=["children","innerProps"];function Gb(e){var t=e.maxHeight,n=e.menuEl,i=e.minHeight,r=e.placement,o=e.shouldScroll,s=e.isFixedPosition,u=e.controlHeight,a=Ab(n),l={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return l;var c=a.getBoundingClientRect(),d=c.height,f=n.getBoundingClientRect(),p=f.bottom,b=f.height,g=f.top,v=n.offsetParent.getBoundingClientRect(),C=v.top,y=s?window.innerHeight:xb(a),m=el(a),I=parseInt(getComputedStyle(n).marginBottom,10),h=parseInt(getComputedStyle(n).marginTop,10),S=C-h,T=y-g,P=S+m,M=d-m-g,X=p-y+m+I,U=m+g-h,ne=160;switch(r){case"auto":case"bottom":if(T>=b)return{placement:"bottom",maxHeight:t};if(M>=b&&!s)return o&&ei(a,X,ne),{placement:"bottom",maxHeight:t};if(!s&&M>=i||s&&T>=i){o&&ei(a,X,ne);var de=s?T-I:M-I;return{placement:"bottom",maxHeight:de}}if(r==="auto"||s){var oe=t,k=s?S:P;return k>=i&&(oe=Math.min(k-I-u,t)),{placement:"top",maxHeight:oe}}if(r==="bottom")return o&&qn(a,X),{placement:"bottom",maxHeight:t};break;case"top":if(S>=b)return{placement:"top",maxHeight:t};if(P>=b&&!s)return o&&ei(a,U,ne),{placement:"top",maxHeight:t};if(!s&&P>=i||s&&S>=i){var z=t;return(!s&&P>=i||s&&S>=i)&&(z=s?S-h:P-h),o&&ei(a,U,ne),{placement:"top",maxHeight:z}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(r,'".'))}return l}function Ob(e){var t={bottom:"top",top:"bottom"};return e?t[e]:"bottom"}var rl=function(t){return t==="auto"?"bottom":t},Nb=function(t,n){var i,r=t.placement,o=t.theme,s=o.borderRadius,u=o.spacing,a=o.colors;return B((i={label:"menu"},qt(i,Ob(r),"100%"),qt(i,"position","absolute"),qt(i,"width","100%"),qt(i,"zIndex",1),i),n?{}:{backgroundColor:a.neutral0,borderRadius:s,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:u.menuGutter,marginTop:u.menuGutter})},ol=x.createContext(null),Rb=function(t){var n=t.children,i=t.minMenuHeight,r=t.maxMenuHeight,o=t.menuPlacement,s=t.menuPosition,u=t.menuShouldScrollIntoView,a=t.theme,l=x.useContext(ol)||{},c=l.setPortalPlacement,d=x.useRef(null),f=x.useState(r),p=$e(f,2),b=p[0],g=p[1],v=x.useState(null),C=$e(v,2),y=C[0],m=C[1],I=a.spacing.controlHeight;return Xr(function(){var h=d.current;if(h){var S=s==="fixed",T=u&&!S,P=Gb({maxHeight:r,menuEl:h,minHeight:i,placement:o,shouldScroll:T,isFixedPosition:S,controlHeight:I});g(P.maxHeight),m(P.placement),c==null||c(P.placement)}},[r,o,s,u,i,c,I]),n({ref:d,placerProps:B(B({},t),{},{placement:y||rl(o),maxHeight:b})})},Wb=function(t){var n=t.children,i=t.innerRef,r=t.innerProps;return F("div",W({},ue(t,"menu",{menu:!0}),{ref:i},r),n)},Lb=Wb,Xb=function(t,n){var i=t.maxHeight,r=t.theme.spacing.baseUnit;return B({maxHeight:i,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},n?{}:{paddingBottom:r,paddingTop:r})},Zb=function(t){var n=t.children,i=t.innerProps,r=t.innerRef,o=t.isMulti;return F("div",W({},ue(t,"menuList",{"menu-list":!0,"menu-list--is-multi":o}),{ref:r},i),n)},sl=function(t,n){var i=t.theme,r=i.spacing.baseUnit,o=i.colors;return B({textAlign:"center"},n?{}:{color:o.neutral40,padding:"".concat(r*2,"px ").concat(r*3,"px")})},Hb=sl,kb=sl,zb=function(t){var n=t.children,i=n===void 0?"No options":n,r=t.innerProps,o=qe(t,Mb);return F("div",W({},ue(B(B({},o),{},{children:i,innerProps:r}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),r),i)},jb=function(t){var n=t.children,i=n===void 0?"Loading...":n,r=t.innerProps,o=qe(t,Bb);return F("div",W({},ue(B(B({},o),{},{children:i,innerProps:r}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),r),i)},Yb=function(t){var n=t.rect,i=t.offset,r=t.position;return{left:n.left,position:r,top:i,width:n.width,zIndex:1}},Jb=function(t){var n=t.appendTo,i=t.children,r=t.controlElement,o=t.innerProps,s=t.menuPlacement,u=t.menuPosition,a=x.useRef(null),l=x.useRef(null),c=x.useState(rl(s)),d=$e(c,2),f=d[0],p=d[1],b=x.useMemo(function(){return{setPortalPlacement:p}},[]),g=x.useState(null),v=$e(g,2),C=v[0],y=v[1],m=x.useCallback(function(){if(r){var T=Tb(r),P=u==="fixed"?0:window.pageYOffset,M=T[f]+P;(M!==(C==null?void 0:C.offset)||T.left!==(C==null?void 0:C.rect.left)||T.width!==(C==null?void 0:C.rect.width))&&y({offset:M,rect:T})}},[r,u,f,C==null?void 0:C.offset,C==null?void 0:C.rect.left,C==null?void 0:C.rect.width]);Xr(function(){m()},[m]);var I=x.useCallback(function(){typeof l.current=="function"&&(l.current(),l.current=null),r&&a.current&&(l.current=vb(r,a.current,m,{elementResize:"ResizeObserver"in window}))},[r,m]);Xr(function(){I()},[I]);var h=x.useCallback(function(T){a.current=T,I()},[I]);if(!n&&u!=="fixed"||!C)return null;var S=F("div",W({ref:h},ue(B(B({},t),{},{offset:C.offset,position:u,rect:C.rect}),"menuPortal",{"menu-portal":!0}),o),i);return F(ol.Provider,{value:b},n?Re.createPortal(S,n):S)},Ub=function(t){var n=t.isDisabled,i=t.isRtl;return{label:"container",direction:i?"rtl":void 0,pointerEvents:n?"none":void 0,position:"relative"}},_b=function(t){var n=t.children,i=t.innerProps,r=t.isDisabled,o=t.isRtl;return F("div",W({},ue(t,"container",{"--is-disabled":r,"--is-rtl":o}),i),n)},Qb=function(t,n){var i=t.theme.spacing,r=t.isMulti,o=t.hasValue,s=t.selectProps.controlShouldRenderValue;return B({alignItems:"center",display:r&&o&&s?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},n?{}:{padding:"".concat(i.baseUnit/2,"px ").concat(i.baseUnit*2,"px")})},Kb=function(t){var n=t.children,i=t.innerProps,r=t.isMulti,o=t.hasValue;return F("div",W({},ue(t,"valueContainer",{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":o}),i),n)},$b=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},qb=function(t){var n=t.children,i=t.innerProps;return F("div",W({},ue(t,"indicatorsContainer",{indicators:!0}),i),n)},al,e0=["size"],t0=["innerProps","isRtl","size"];function n0(){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)."}var i0=process.env.NODE_ENV==="production"?{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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgUmVhY3ROb2RlIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsganN4LCBrZXlmcmFtZXMgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmltcG9ydCB7XG4gIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lLFxuICBDU1NPYmplY3RXaXRoTGFiZWwsXG4gIEdyb3VwQmFzZSxcbn0gZnJvbSAnLi4vdHlwZXMnO1xuaW1wb3J0IHsgZ2V0U3R5bGVQcm9wcyB9IGZyb20gJy4uL3V0aWxzJztcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBEcm9wZG93biAmIENsZWFyIEljb25zXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgU3ZnID0gKHtcbiAgc2l6ZSxcbiAgLi4ucHJvcHNcbn06IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10gJiB7IHNp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cbiAgaW5uZXJQcm9wcyxcbiAgaXNSdGwsXG4gIHNpemUgPSA0LFxuICAuLi5yZXN0UHJvcHNcbn06IExvYWRpbmdJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPikgPT4ge1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKFxuICAgICAgICB7IC4uLnJlc3RQcm9wcywgaW5uZXJQcm9wcywgaXNSdGwsIHNpemUgfSxcbiAgICAgICAgJ2xvYWRpbmdJbmRpY2F0b3InLFxuICAgICAgICB7XG4gICAgICAgICAgaW5kaWNhdG9yOiB0cnVlLFxuICAgICAgICAgICdsb2FkaW5nLWluZGljYXRvcic6IHRydWUsXG4gICAgICAgIH1cbiAgICAgICl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MH0gb2Zmc2V0PXtpc1J0bH0gLz5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXsxNjB9IG9mZnNldCAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezMyMH0gb2Zmc2V0PXshaXNSdGx9IC8+XG4gICAgPC9kaXY+XG4gICk7XG59O1xuIl19 */",toString:n0},ul=function(t){var n=t.size,i=qe(t,e0);return F("svg",W({height:n,width:n,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:i0},i))},Zr=function(t){return F(ul,W({size:20},t),F("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"}))},ll=function(t){return F(ul,W({size:20},t),F("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"}))},cl=function(t,n){var i=t.isFocused,r=t.theme,o=r.spacing.baseUnit,s=r.colors;return B({label:"indicatorContainer",display:"flex",transition:"color 150ms"},n?{}:{color:i?s.neutral60:s.neutral20,padding:o*2,":hover":{color:i?s.neutral80:s.neutral40}})},r0=cl,o0=function(t){var n=t.children,i=t.innerProps;return F("div",W({},ue(t,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),i),n||F(ll,null))},s0=cl,a0=function(t){var n=t.children,i=t.innerProps;return F("div",W({},ue(t,"clearIndicator",{indicator:!0,"clear-indicator":!0}),i),n||F(Zr,null))},u0=function(t,n){var i=t.isDisabled,r=t.theme,o=r.spacing.baseUnit,s=r.colors;return B({label:"indicatorSeparator",alignSelf:"stretch",width:1},n?{}:{backgroundColor:i?s.neutral10:s.neutral20,marginBottom:o*2,marginTop:o*2})},l0=function(t){var n=t.innerProps;return F("span",W({},n,ue(t,"indicatorSeparator",{"indicator-separator":!0})))},c0=rb(al||(al=ob([`
|
|
50
|
+
*/var Gu;function Gg(){return Gu||(Gu=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,r=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,u=e?Symbol.for("react.context"):60110,a=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,b=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,C=e?Symbol.for("react.responder"):60118,y=e?Symbol.for("react.scope"):60119;function m(A){return typeof A=="string"||typeof A=="function"||A===i||A===l||A===o||A===r||A===d||A===f||typeof A=="object"&&A!==null&&(A.$$typeof===b||A.$$typeof===p||A.$$typeof===s||A.$$typeof===u||A.$$typeof===c||A.$$typeof===v||A.$$typeof===C||A.$$typeof===y||A.$$typeof===g)}function I(A){if(typeof A=="object"&&A!==null){var xe=A.$$typeof;switch(xe){case t:var Be=A.type;switch(Be){case a:case l:case i:case o:case r:case d:return Be;default:var Ct=Be&&Be.$$typeof;switch(Ct){case u:case c:case b:case p:case s:return Ct;default:return xe}}case n:return xe}}}var h=a,S=l,T=u,P=s,M=t,X=c,U=i,ne=b,de=p,oe=n,k=o,z=r,ie=d,re=!1;function be(A){return re||(re=!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.")),E(A)||I(A)===a}function E(A){return I(A)===l}function V(A){return I(A)===u}function D(A){return I(A)===s}function G(A){return typeof A=="object"&&A!==null&&A.$$typeof===t}function O(A){return I(A)===c}function j(A){return I(A)===i}function N(A){return I(A)===b}function L(A){return I(A)===p}function H(A){return I(A)===n}function Y(A){return I(A)===o}function J(A){return I(A)===r}function fe(A){return I(A)===d}te.AsyncMode=h,te.ConcurrentMode=S,te.ContextConsumer=T,te.ContextProvider=P,te.Element=M,te.ForwardRef=X,te.Fragment=U,te.Lazy=ne,te.Memo=de,te.Portal=oe,te.Profiler=k,te.StrictMode=z,te.Suspense=ie,te.isAsyncMode=be,te.isConcurrentMode=E,te.isContextConsumer=V,te.isContextProvider=D,te.isElement=G,te.isForwardRef=O,te.isFragment=j,te.isLazy=N,te.isMemo=L,te.isPortal=H,te.isProfiler=Y,te.isStrictMode=J,te.isSuspense=fe,te.isValidElementType=m,te.typeOf=I}()),te}process.env.NODE_ENV==="production"?Mr.exports=Bg():Mr.exports=Gg();var Og=Mr.exports,Ou=Og,Ng={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Rg={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Nu={};Nu[Ou.ForwardRef]=Ng,Nu[Ou.Memo]=Rg;var Wg=!0;function Lg(e,t,n){var i="";return n.split(" ").forEach(function(r){e[r]!==void 0?t.push(e[r]+";"):i+=r+" "}),i}var Ru=function(t,n,i){var r=t.key+"-"+n.name;(i===!1||Wg===!1)&&t.registered[r]===void 0&&(t.registered[r]=n.styles)},Xg=function(t,n,i){Ru(t,n,i);var r=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var o=n;do t.insert(n===o?"."+r:"",o,t.sheet,!0),o=o.next;while(o!==void 0)}};function Zg(e){for(var t=0,n,i=0,r=e.length;r>=4;++i,r-=4)n=e.charCodeAt(i)&255|(e.charCodeAt(++i)&255)<<8|(e.charCodeAt(++i)&255)<<16|(e.charCodeAt(++i)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(r){case 3:t^=(e.charCodeAt(i+2)&255)<<16;case 2:t^=(e.charCodeAt(i+1)&255)<<8;case 1:t^=e.charCodeAt(i)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Hg={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,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},kg=!1,zg=/[A-Z]|^ms/g,jg=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Wu=function(t){return t.charCodeAt(1)===45},Lu=function(t){return t!=null&&typeof t!="boolean"},Br=Sg(function(e){return Wu(e)?e:e.replace(zg,"-$&").toLowerCase()}),Xu=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(jg,function(i,r,o){return ze={name:r,styles:o,next:ze},r})}return Hg[t]!==1&&!Wu(t)&&typeof n=="number"&&n!==0?n+"px":n},Yg="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function on(e,t,n){if(n==null)return"";var i=n;if(i.__emotion_styles!==void 0)return i;switch(typeof n){case"boolean":return"";case"object":{var r=n;if(r.anim===1)return ze={name:r.name,styles:r.styles,next:ze},r.name;var o=n;if(o.styles!==void 0){var s=o.next;if(s!==void 0)for(;s!==void 0;)ze={name:s.name,styles:s.styles,next:ze},s=s.next;var u=o.styles+";";return u}return Jg(e,t,n)}case"function":{if(e!==void 0){var a=ze,l=n(e);return ze=a,on(e,t,l)}break}}var c=n;return c}function Jg(e,t,n){var i="";if(Array.isArray(n))for(var r=0;r<n.length;r++)i+=on(e,t,n[r])+";";else for(var o in n){var s=n[o];if(typeof s!="object"){var u=s;Lu(u)&&(i+=Br(o)+":"+Xu(o,u)+";")}else{if(o==="NO_COMPONENT_SELECTOR"&&kg)throw new Error(Yg);if(Array.isArray(s)&&typeof s[0]=="string"&&t==null)for(var a=0;a<s.length;a++)Lu(s[a])&&(i+=Br(o)+":"+Xu(o,s[a])+";");else{var l=on(e,t,s);switch(o){case"animation":case"animationName":{i+=Br(o)+":"+l+";";break}default:i+=o+"{"+l+"}"}}}}return i}var Zu=/label:\s*([^\s;\n{]+)\s*(;|$)/g,ze;function Hu(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var i=!0,r="";ze=void 0;var o=e[0];if(o==null||o.raw===void 0)i=!1,r+=on(n,t,o);else{var s=o;r+=s[0]}for(var u=1;u<e.length;u++)if(r+=on(n,t,e[u]),i){var a=o;r+=a[u]}Zu.lastIndex=0;for(var l="",c;(c=Zu.exec(r))!==null;)l+="-"+c[1];var d=Zg(r)+l;return{name:d,styles:r,next:ze}}var Ug=function(t){return t()},_g=Z.useInsertionEffect?Z.useInsertionEffect:!1,Qg=_g||Ug,Kg=!1,ku=Z.createContext(typeof HTMLElement<"u"?Mg({key:"css"}):null);ku.Provider;var $g=function(t){return x.forwardRef(function(n,i){var r=x.useContext(ku);return t(n,r,i)})},qg=Z.createContext({}),Gr={}.hasOwnProperty,Or="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",eb=function(t,n){var i={};for(var r in n)Gr.call(n,r)&&(i[r]=n[r]);return i[Or]=t,i},tb=function(t){var n=t.cache,i=t.serialized,r=t.isStringTag;return Ru(n,i,r),Qg(function(){return Xg(n,i,r)}),null},nb=$g(function(e,t,n){var i=e.css;typeof i=="string"&&t.registered[i]!==void 0&&(i=t.registered[i]);var r=e[Or],o=[i],s="";typeof e.className=="string"?s=Lg(t.registered,o,e.className):e.className!=null&&(s=e.className+" ");var u=Hu(o,void 0,Z.useContext(qg));s+=t.key+"-"+u.name;var a={};for(var l in e)Gr.call(e,l)&&l!=="css"&&l!==Or&&!Kg&&(a[l]=e[l]);return a.className=s,n&&(a.ref=n),Z.createElement(Z.Fragment,null,Z.createElement(tb,{cache:t,serialized:u,isStringTag:typeof r=="string"}),Z.createElement(r,a))}),ib=nb,F=function(t,n){var i=arguments;if(n==null||!Gr.call(n,"css"))return Z.createElement.apply(void 0,i);var r=i.length,o=new Array(r);o[0]=ib,o[1]=eb(t,n);for(var s=2;s<r;s++)o[s]=i[s];return Z.createElement.apply(null,o)};function Nr(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Hu(t)}var rb=function(){var t=Nr.apply(void 0,arguments),n="animation-"+t.name;return{name:n,styles:"@keyframes "+n+"{"+t.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}};function ob(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}const sb=Math.min,ab=Math.max,Jn=Math.round,Un=Math.floor,_n=e=>({x:e,y:e});function ub(e){const{x:t,y:n,width:i,height:r}=e;return{width:i,height:r,top:n,left:t,right:t+i,bottom:n+r,x:t,y:n}}function zu(e){return Yu(e)?(e.nodeName||"").toLowerCase():"#document"}function et(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ju(e){var t;return(t=(Yu(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Yu(e){return e instanceof Node||e instanceof et(e).Node}function lb(e){return e instanceof Element||e instanceof et(e).Element}function Rr(e){return e instanceof HTMLElement||e instanceof et(e).HTMLElement}function Ju(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof et(e).ShadowRoot}function Uu(e){const{overflow:t,overflowX:n,overflowY:i,display:r}=Wr(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+n)&&!["inline","contents"].includes(r)}function cb(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function db(e){return["html","body","#document"].includes(zu(e))}function Wr(e){return et(e).getComputedStyle(e)}function fb(e){if(zu(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Ju(e)&&e.host||ju(e);return Ju(t)?t.host:t}function _u(e){const t=fb(e);return db(t)?e.ownerDocument?e.ownerDocument.body:e.body:Rr(t)&&Uu(t)?t:_u(t)}function Qn(e,t,n){var i;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=_u(e),o=r===((i=e.ownerDocument)==null?void 0:i.body),s=et(r);return o?t.concat(s,s.visualViewport||[],Uu(r)?r:[],s.frameElement&&n?Qn(s.frameElement):[]):t.concat(r,Qn(r,[],n))}function hb(e){const t=Wr(e);let n=parseFloat(t.width)||0,i=parseFloat(t.height)||0;const r=Rr(e),o=r?e.offsetWidth:n,s=r?e.offsetHeight:i,u=Jn(n)!==o||Jn(i)!==s;return u&&(n=o,i=s),{width:n,height:i,$:u}}function Lr(e){return lb(e)?e:e.contextElement}function Qu(e){const t=Lr(e);if(!Rr(t))return _n(1);const n=t.getBoundingClientRect(),{width:i,height:r,$:o}=hb(t);let s=(o?Jn(n.width):n.width)/i,u=(o?Jn(n.height):n.height)/r;return(!s||!Number.isFinite(s))&&(s=1),(!u||!Number.isFinite(u))&&(u=1),{x:s,y:u}}const pb=_n(0);function mb(e){const t=et(e);return!cb()||!t.visualViewport?pb:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function gb(e,t,n){return!1}function Ku(e,t,n,i){t===void 0&&(t=!1);const r=e.getBoundingClientRect(),o=Lr(e);let s=_n(1);t&&(s=Qu(e));const u=gb()?mb(o):_n(0);let a=(r.left+u.x)/s.x,l=(r.top+u.y)/s.y,c=r.width/s.x,d=r.height/s.y;if(o){const f=et(o),p=i;let b=f,g=b.frameElement;for(;g&&i&&p!==b;){const v=Qu(g),C=g.getBoundingClientRect(),y=Wr(g),m=C.left+(g.clientLeft+parseFloat(y.paddingLeft))*v.x,I=C.top+(g.clientTop+parseFloat(y.paddingTop))*v.y;a*=v.x,l*=v.y,c*=v.x,d*=v.y,a+=m,l+=I,b=et(g),g=b.frameElement}}return ub({width:c,height:d,x:a,y:l})}function bb(e,t){let n=null,i;const r=ju(e);function o(){var u;clearTimeout(i),(u=n)==null||u.disconnect(),n=null}function s(u,a){u===void 0&&(u=!1),a===void 0&&(a=1),o();const{left:l,top:c,width:d,height:f}=e.getBoundingClientRect();if(u||t(),!d||!f)return;const p=Un(c),b=Un(r.clientWidth-(l+d)),g=Un(r.clientHeight-(c+f)),v=Un(l),y={rootMargin:-p+"px "+-b+"px "+-g+"px "+-v+"px",threshold:ab(0,sb(1,a))||1};let m=!0;function I(h){const S=h[0].intersectionRatio;if(S!==a){if(!m)return s();S?s(!1,S):i=setTimeout(()=>{s(!1,1e-7)},1e3)}m=!1}try{n=new IntersectionObserver(I,{...y,root:r.ownerDocument})}catch{n=new IntersectionObserver(I,y)}n.observe(e)}return s(!0),o}function vb(e,t,n,i){i===void 0&&(i={});const{ancestorScroll:r=!0,ancestorResize:o=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:u=typeof IntersectionObserver=="function",animationFrame:a=!1}=i,l=Lr(e),c=r||o?[...l?Qn(l):[],...Qn(t)]:[];c.forEach(C=>{r&&C.addEventListener("scroll",n,{passive:!0}),o&&C.addEventListener("resize",n)});const d=l&&u?bb(l,n):null;let f=-1,p=null;s&&(p=new ResizeObserver(C=>{let[y]=C;y&&y.target===l&&p&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var m;(m=p)==null||m.observe(t)})),n()}),l&&!a&&p.observe(l),p.observe(t));let b,g=a?Ku(e):null;a&&v();function v(){const C=Ku(e);g&&(C.x!==g.x||C.y!==g.y||C.width!==g.width||C.height!==g.height)&&n(),g=C,b=requestAnimationFrame(v)}return n(),()=>{var C;c.forEach(y=>{r&&y.removeEventListener("scroll",n),o&&y.removeEventListener("resize",n)}),d==null||d(),(C=p)==null||C.disconnect(),p=null,a&&cancelAnimationFrame(b)}}var Xr=x.useLayoutEffect,yb=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],Kn=function(){};function Cb(e,t){return t?t[0]==="-"?e+t:e+"__"+t:e}function Ib(e,t){for(var n=arguments.length,i=new Array(n>2?n-2:0),r=2;r<n;r++)i[r-2]=arguments[r];var o=[].concat(i);if(t&&e)for(var s in t)t.hasOwnProperty(s)&&t[s]&&o.push("".concat(Cb(e,s)));return o.filter(function(u){return u}).map(function(u){return String(u).trim()}).join(" ")}var $u=function(t){return Db(t)?t.filter(Boolean):yt(t)==="object"&&t!==null?[t]:[]},qu=function(t){t.className,t.clearValue,t.cx,t.getStyles,t.getClassNames,t.getValue,t.hasValue,t.isMulti,t.isRtl,t.options,t.selectOption,t.selectProps,t.setValue,t.theme;var n=qe(t,yb);return B({},n)},ue=function(t,n,i){var r=t.cx,o=t.getStyles,s=t.getClassNames,u=t.className;return{css:o(n,t),className:r(i??{},s(n,t),u)}};function $n(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function xb(e){return $n(e)?window.innerHeight:e.clientHeight}function el(e){return $n(e)?window.pageYOffset:e.scrollTop}function qn(e,t){if($n(e)){window.scrollTo(0,t);return}e.scrollTop=t}function Ab(e){var t=getComputedStyle(e),n=t.position==="absolute",i=/(auto|scroll)/;if(t.position==="fixed")return document.documentElement;for(var r=e;r=r.parentElement;)if(t=getComputedStyle(r),!(n&&t.position==="static")&&i.test(t.overflow+t.overflowY+t.overflowX))return r;return document.documentElement}function Sb(e,t,n,i){return n*((e=e/i-1)*e*e+1)+t}function ei(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Kn,r=el(e),o=t-r,s=10,u=0;function a(){u+=s;var l=Sb(u,r,o,n);qn(e,l),u<n?window.requestAnimationFrame(a):i(e)}a()}function tl(e,t){var n=e.getBoundingClientRect(),i=t.getBoundingClientRect(),r=t.offsetHeight/3;i.bottom+r>n.bottom?qn(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+r,e.scrollHeight)):i.top-r<n.top&&qn(e,Math.max(t.offsetTop-r,0))}function Tb(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}function nl(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function Eb(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var il=!1,Pb={get passive(){return il=!0}},ti=typeof window<"u"?window:{};ti.addEventListener&&ti.removeEventListener&&(ti.addEventListener("p",Kn,Pb),ti.removeEventListener("p",Kn,!1));var wb=il;function Vb(e){return e!=null}function Db(e){return Array.isArray(e)}function ni(e,t,n){return e?t:n}function gy(e){return e}function by(e){return e}var Fb=function(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];var o=Object.entries(t).filter(function(s){var u=$e(s,1),a=u[0];return!i.includes(a)});return o.reduce(function(s,u){var a=$e(u,2),l=a[0],c=a[1];return s[l]=c,s},{})},Mb=["children","innerProps"],Bb=["children","innerProps"];function Gb(e){var t=e.maxHeight,n=e.menuEl,i=e.minHeight,r=e.placement,o=e.shouldScroll,s=e.isFixedPosition,u=e.controlHeight,a=Ab(n),l={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return l;var c=a.getBoundingClientRect(),d=c.height,f=n.getBoundingClientRect(),p=f.bottom,b=f.height,g=f.top,v=n.offsetParent.getBoundingClientRect(),C=v.top,y=s?window.innerHeight:xb(a),m=el(a),I=parseInt(getComputedStyle(n).marginBottom,10),h=parseInt(getComputedStyle(n).marginTop,10),S=C-h,T=y-g,P=S+m,M=d-m-g,X=p-y+m+I,U=m+g-h,ne=160;switch(r){case"auto":case"bottom":if(T>=b)return{placement:"bottom",maxHeight:t};if(M>=b&&!s)return o&&ei(a,X,ne),{placement:"bottom",maxHeight:t};if(!s&&M>=i||s&&T>=i){o&&ei(a,X,ne);var de=s?T-I:M-I;return{placement:"bottom",maxHeight:de}}if(r==="auto"||s){var oe=t,k=s?S:P;return k>=i&&(oe=Math.min(k-I-u,t)),{placement:"top",maxHeight:oe}}if(r==="bottom")return o&&qn(a,X),{placement:"bottom",maxHeight:t};break;case"top":if(S>=b)return{placement:"top",maxHeight:t};if(P>=b&&!s)return o&&ei(a,U,ne),{placement:"top",maxHeight:t};if(!s&&P>=i||s&&S>=i){var z=t;return(!s&&P>=i||s&&S>=i)&&(z=s?S-h:P-h),o&&ei(a,U,ne),{placement:"top",maxHeight:z}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(r,'".'))}return l}function Ob(e){var t={bottom:"top",top:"bottom"};return e?t[e]:"bottom"}var rl=function(t){return t==="auto"?"bottom":t},Nb=function(t,n){var i,r=t.placement,o=t.theme,s=o.borderRadius,u=o.spacing,a=o.colors;return B((i={label:"menu"},qt(i,Ob(r),"100%"),qt(i,"position","absolute"),qt(i,"width","100%"),qt(i,"zIndex",1),i),n?{}:{backgroundColor:a.neutral0,borderRadius:s,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:u.menuGutter,marginTop:u.menuGutter})},ol=x.createContext(null),Rb=function(t){var n=t.children,i=t.minMenuHeight,r=t.maxMenuHeight,o=t.menuPlacement,s=t.menuPosition,u=t.menuShouldScrollIntoView,a=t.theme,l=x.useContext(ol)||{},c=l.setPortalPlacement,d=x.useRef(null),f=x.useState(r),p=$e(f,2),b=p[0],g=p[1],v=x.useState(null),C=$e(v,2),y=C[0],m=C[1],I=a.spacing.controlHeight;return Xr(function(){var h=d.current;if(h){var S=s==="fixed",T=u&&!S,P=Gb({maxHeight:r,menuEl:h,minHeight:i,placement:o,shouldScroll:T,isFixedPosition:S,controlHeight:I});g(P.maxHeight),m(P.placement),c==null||c(P.placement)}},[r,o,s,u,i,c,I]),n({ref:d,placerProps:B(B({},t),{},{placement:y||rl(o),maxHeight:b})})},Wb=function(t){var n=t.children,i=t.innerRef,r=t.innerProps;return F("div",W({},ue(t,"menu",{menu:!0}),{ref:i},r),n)},Lb=Wb,Xb=function(t,n){var i=t.maxHeight,r=t.theme.spacing.baseUnit;return B({maxHeight:i,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},n?{}:{paddingBottom:r,paddingTop:r})},Zb=function(t){var n=t.children,i=t.innerProps,r=t.innerRef,o=t.isMulti;return F("div",W({},ue(t,"menuList",{"menu-list":!0,"menu-list--is-multi":o}),{ref:r},i),n)},sl=function(t,n){var i=t.theme,r=i.spacing.baseUnit,o=i.colors;return B({textAlign:"center"},n?{}:{color:o.neutral40,padding:"".concat(r*2,"px ").concat(r*3,"px")})},Hb=sl,kb=sl,zb=function(t){var n=t.children,i=n===void 0?"No options":n,r=t.innerProps,o=qe(t,Mb);return F("div",W({},ue(B(B({},o),{},{children:i,innerProps:r}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),r),i)},jb=function(t){var n=t.children,i=n===void 0?"Loading...":n,r=t.innerProps,o=qe(t,Bb);return F("div",W({},ue(B(B({},o),{},{children:i,innerProps:r}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),r),i)},Yb=function(t){var n=t.rect,i=t.offset,r=t.position;return{left:n.left,position:r,top:i,width:n.width,zIndex:1}},Jb=function(t){var n=t.appendTo,i=t.children,r=t.controlElement,o=t.innerProps,s=t.menuPlacement,u=t.menuPosition,a=x.useRef(null),l=x.useRef(null),c=x.useState(rl(s)),d=$e(c,2),f=d[0],p=d[1],b=x.useMemo(function(){return{setPortalPlacement:p}},[]),g=x.useState(null),v=$e(g,2),C=v[0],y=v[1],m=x.useCallback(function(){if(r){var T=Tb(r),P=u==="fixed"?0:window.pageYOffset,M=T[f]+P;(M!==(C==null?void 0:C.offset)||T.left!==(C==null?void 0:C.rect.left)||T.width!==(C==null?void 0:C.rect.width))&&y({offset:M,rect:T})}},[r,u,f,C==null?void 0:C.offset,C==null?void 0:C.rect.left,C==null?void 0:C.rect.width]);Xr(function(){m()},[m]);var I=x.useCallback(function(){typeof l.current=="function"&&(l.current(),l.current=null),r&&a.current&&(l.current=vb(r,a.current,m,{elementResize:"ResizeObserver"in window}))},[r,m]);Xr(function(){I()},[I]);var h=x.useCallback(function(T){a.current=T,I()},[I]);if(!n&&u!=="fixed"||!C)return null;var S=F("div",W({ref:h},ue(B(B({},t),{},{offset:C.offset,position:u,rect:C.rect}),"menuPortal",{"menu-portal":!0}),o),i);return F(ol.Provider,{value:b},n?Re.createPortal(S,n):S)},Ub=function(t){var n=t.isDisabled,i=t.isRtl;return{label:"container",direction:i?"rtl":void 0,pointerEvents:n?"none":void 0,position:"relative"}},_b=function(t){var n=t.children,i=t.innerProps,r=t.isDisabled,o=t.isRtl;return F("div",W({},ue(t,"container",{"--is-disabled":r,"--is-rtl":o}),i),n)},Qb=function(t,n){var i=t.theme.spacing,r=t.isMulti,o=t.hasValue,s=t.selectProps.controlShouldRenderValue;return B({alignItems:"center",display:r&&o&&s?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},n?{}:{padding:"".concat(i.baseUnit/2,"px ").concat(i.baseUnit*2,"px")})},Kb=function(t){var n=t.children,i=t.innerProps,r=t.isMulti,o=t.hasValue;return F("div",W({},ue(t,"valueContainer",{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":o}),i),n)},$b=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},qb=function(t){var n=t.children,i=t.innerProps;return F("div",W({},ue(t,"indicatorsContainer",{indicators:!0}),i),n)},al,e0=["size"],t0=["innerProps","isRtl","size"];function n0(){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)."}var i0=process.env.NODE_ENV==="production"?{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,eyJ2ZXJz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GljYXRvcic6IHRydWUsXG4gICAgICAgIH1cbiAgICAgICl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MH0gb2Zmc2V0PXtpc1J0bH0gLz5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXsxNjB9IG9mZnNldCAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezMyMH0gb2Zmc2V0PXshaXNSdGx9IC8+XG4gICAgPC9kaXY+XG4gICk7XG59O1xuIl19 */",toString:n0},ul=function(t){var n=t.size,i=qe(t,e0);return F("svg",W({height:n,width:n,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:i0},i))},Zr=function(t){return F(ul,W({size:20},t),F("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"}))},ll=function(t){return F(ul,W({size:20},t),F("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"}))},cl=function(t,n){var i=t.isFocused,r=t.theme,o=r.spacing.baseUnit,s=r.colors;return B({label:"indicatorContainer",display:"flex",transition:"color 150ms"},n?{}:{color:i?s.neutral60:s.neutral20,padding:o*2,":hover":{color:i?s.neutral80:s.neutral40}})},r0=cl,o0=function(t){var n=t.children,i=t.innerProps;return F("div",W({},ue(t,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),i),n||F(ll,null))},s0=cl,a0=function(t){var n=t.children,i=t.innerProps;return F("div",W({},ue(t,"clearIndicator",{indicator:!0,"clear-indicator":!0}),i),n||F(Zr,null))},u0=function(t,n){var i=t.isDisabled,r=t.theme,o=r.spacing.baseUnit,s=r.colors;return B({label:"indicatorSeparator",alignSelf:"stretch",width:1},n?{}:{backgroundColor:i?s.neutral10:s.neutral20,marginBottom:o*2,marginTop:o*2})},l0=function(t){var n=t.innerProps;return F("span",W({},n,ue(t,"indicatorSeparator",{"indicator-separator":!0})))},c0=rb(al||(al=ob([`
|
|
51
51
|
0%, 80%, 100% { opacity: 0; }
|
|
52
52
|
40% { opacity: 1; }
|
|
53
|
-
`]))),d0=function(t,n){var i=t.isFocused,r=t.size,o=t.theme,s=o.colors,u=o.spacing.baseUnit;return B({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:r,lineHeight:1,marginRight:r,textAlign:"center",verticalAlign:"middle"},n?{}:{color:i?s.neutral60:s.neutral20,padding:u*2})},Hr=function(t){var n=t.delay,i=t.offset;return F("span",{css:Nr({animation:"".concat(c0," 1s ease-in-out ").concat(n,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:i?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},process.env.NODE_ENV==="production"?"":";label:LoadingDot;",process.env.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW1RSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgUmVhY3ROb2RlIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsganN4L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ezMyMH0gb2Zmc2V0PXshaXNSdGx9IC8+XG4gICAgPC9kaXY+XG4gICk7XG59O1xuIl19 */")})},f0=function(t){var n=t.innerProps,i=t.isRtl,r=t.size,o=r===void 0?4:r,s=qe(t,t0);return F("div",W({},ue(B(B({},s),{},{innerProps:n,isRtl:i,size:o}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),n),F(Hr,{delay:0,offset:i}),F(Hr,{delay:160,offset:!0}),F(Hr,{delay:320,offset:!i}))},h0=function(t,n){var i=t.isDisabled,r=t.isFocused,o=t.theme,s=o.colors,u=o.borderRadius,a=o.spacing;return B({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:a.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},n?{}:{backgroundColor:i?s.neutral5:s.neutral0,borderColor:i?s.neutral10:r?s.primary:s.neutral20,borderRadius:u,borderStyle:"solid",borderWidth:1,boxShadow:r?"0 0 0 1px ".concat(s.primary):void 0,"&:hover":{borderColor:r?s.primary:s.neutral30}})},p0=function(t){var n=t.children,i=t.isDisabled,r=t.isFocused,o=t.innerRef,s=t.innerProps,u=t.menuIsOpen;return F("div",W({ref:o},ue(t,"control",{control:!0,"control--is-disabled":i,"control--is-focused":r,"control--menu-is-open":u}),s,{"aria-disabled":i||void 0}),n)},m0=p0,g0=["data"],b0=function(t,n){var i=t.theme.spacing;return n?{}:{paddingBottom:i.baseUnit*2,paddingTop:i.baseUnit*2}},v0=function(t){var n=t.children,i=t.cx,r=t.getStyles,o=t.getClassNames,s=t.Heading,u=t.headingProps,a=t.innerProps,l=t.label,c=t.theme,d=t.selectProps;return F("div",W({},ue(t,"group",{group:!0}),a),F(s,W({},u,{selectProps:d,theme:c,getStyles:r,getClassNames:o,cx:i}),l),F("div",null,n))},y0=function(t,n){var i=t.theme,r=i.colors,o=i.spacing;return B({label:"group",cursor:"default",display:"block"},n?{}:{color:r.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:o.baseUnit*3,paddingRight:o.baseUnit*3,textTransform:"uppercase"})},C0=function(t){var n=qu(t);n.data;var i=qe(n,g0);return F("div",W({},ue(t,"groupHeading",{"group-heading":!0}),i))},I0=v0,x0=["innerRef","isDisabled","isHidden","inputClassName"],A0=function(t,n){var i=t.isDisabled,r=t.value,o=t.theme,s=o.spacing,u=o.colors;return B(B({visibility:i?"hidden":"visible",transform:r?"translateZ(0)":""},S0),n?{}:{margin:s.baseUnit/2,paddingBottom:s.baseUnit/2,paddingTop:s.baseUnit/2,color:u.neutral80})},dl={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},S0={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":B({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},dl)},T0=function(t){return B({label:"input",color:"inherit",background:0,opacity:t?0:1,width:"100%"},dl)},E0=function(t){var n=t.cx,i=t.value,r=qu(t),o=r.innerRef,s=r.isDisabled,u=r.isHidden,a=r.inputClassName,l=qe(r,x0);return F("div",W({},ue(t,"input",{"input-container":!0}),{"data-value":i||""}),F("input",W({className:n({input:!0},a),ref:o,style:T0(u),disabled:s},l)))},P0=E0,w0=function(t,n){var i=t.theme,r=i.spacing,o=i.borderRadius,s=i.colors;return B({label:"multiValue",display:"flex",minWidth:0},n?{}:{backgroundColor:s.neutral10,borderRadius:o/2,margin:r.baseUnit/2})},V0=function(t,n){var i=t.theme,r=i.borderRadius,o=i.colors,s=t.cropWithEllipsis;return B({overflow:"hidden",textOverflow:s||s===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},n?{}:{borderRadius:r/2,color:o.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},D0=function(t,n){var i=t.theme,r=i.spacing,o=i.borderRadius,s=i.colors,u=t.isFocused;return B({alignItems:"center",display:"flex"},n?{}:{borderRadius:o/2,backgroundColor:u?s.dangerLight:void 0,paddingLeft:r.baseUnit,paddingRight:r.baseUnit,":hover":{backgroundColor:s.dangerLight,color:s.danger}})},fl=function(t){var n=t.children,i=t.innerProps;return F("div",i,n)},F0=fl,M0=fl;function B0(e){var t=e.children,n=e.innerProps;return F("div",W({role:"button"},n),t||F(Zr,{size:14}))}var G0=function(t){var n=t.children,i=t.components,r=t.data,o=t.innerProps,s=t.isDisabled,u=t.removeProps,a=t.selectProps,l=i.Container,c=i.Label,d=i.Remove;return F(l,{data:r,innerProps:B(B({},ue(t,"multiValue",{"multi-value":!0,"multi-value--is-disabled":s})),o),selectProps:a},F(c,{data:r,innerProps:B({},ue(t,"multiValueLabel",{"multi-value__label":!0})),selectProps:a},n),F(d,{data:r,innerProps:B(B({},ue(t,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(n||"option")},u),selectProps:a}))},O0=G0,N0=function(t,n){var i=t.isDisabled,r=t.isFocused,o=t.isSelected,s=t.theme,u=s.spacing,a=s.colors;return B({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},n?{}:{backgroundColor:o?a.primary:r?a.primary25:"transparent",color:i?a.neutral20:o?a.neutral0:"inherit",padding:"".concat(u.baseUnit*2,"px ").concat(u.baseUnit*3,"px"),":active":{backgroundColor:i?void 0:o?a.primary:a.primary50}})},R0=function(t){var n=t.children,i=t.isDisabled,r=t.isFocused,o=t.isSelected,s=t.innerRef,u=t.innerProps;return F("div",W({},ue(t,"option",{option:!0,"option--is-disabled":i,"option--is-focused":r,"option--is-selected":o}),{ref:s,"aria-disabled":i},u),n)},W0=R0,L0=function(t,n){var i=t.theme,r=i.spacing,o=i.colors;return B({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},n?{}:{color:o.neutral50,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},X0=function(t){var n=t.children,i=t.innerProps;return F("div",W({},ue(t,"placeholder",{placeholder:!0}),i),n)},Z0=X0,H0=function(t,n){var i=t.isDisabled,r=t.theme,o=r.spacing,s=r.colors;return B({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},n?{}:{color:i?s.neutral40:s.neutral80,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},k0=function(t){var n=t.children,i=t.isDisabled,r=t.innerProps;return F("div",W({},ue(t,"singleValue",{"single-value":!0,"single-value--is-disabled":i}),r),n)},z0=k0,j0={ClearIndicator:a0,Control:m0,DropdownIndicator:o0,DownChevron:ll,CrossIcon:Zr,Group:I0,GroupHeading:C0,IndicatorsContainer:qb,IndicatorSeparator:l0,Input:P0,LoadingIndicator:f0,Menu:Lb,MenuList:Zb,MenuPortal:Jb,LoadingMessage:jb,NoOptionsMessage:zb,MultiValue:O0,MultiValueContainer:F0,MultiValueLabel:M0,MultiValueRemove:B0,Option:W0,Placeholder:Z0,SelectContainer:_b,SingleValue:z0,ValueContainer:Kb},Y0=function(t){return B(B({},j0),t.components)},hl=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function J0(e,t){return!!(e===t||hl(e)&&hl(t))}function U0(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!J0(e[n],t[n]))return!1;return!0}function _0(e,t){t===void 0&&(t=U0);var n=null;function i(){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 s=e.apply(this,r);return n={lastResult:s,lastArgs:r,lastThis:this},s}return i.clear=function(){n=null},i}function Q0(){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)."}for(var K0=process.env.NODE_ENV==="production"?{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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkExMXlUZXh0LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFNSSIsImZpbGUiOiJBMTF5VGV4dC50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKiogQGpzeCBqc3ggKi9cbmltcG9ydCB7IGpzeCB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuLy8gQXNzaXN0aXZlIHRleHQgdG8gZGVzY3JpYmUgdmlzdWFsIGVsZW1lbnRzLiBIaWRkZW4gZm9yIHNpZ2h0ZWQgdXNlcnMuXG5jb25zdCBBMTF5VGV4dCA9IChwcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ10pID0+IChcbiAgPHNwYW5cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAnYTExeVRleHQnLFxuICAgICAgekluZGV4OiA5OTk5LFxuICAgICAgYm9yZGVyOiAwLFxuICAgICAgY2xpcDogJ3JlY3QoMXB4LCAxcHgsIDFweCwgMXB4KScsXG4gICAgICBoZWlnaHQ6IDEsXG4gICAgICB3aWR0aDogMSxcbiAgICAgIHBvc2l0aW9uOiAnYWJzb2x1dGUnLFxuICAgICAgb3ZlcmZsb3c6ICdoaWRkZW4nLFxuICAgICAgcGFkZGluZzogMCxcbiAgICAgIHdoaXRlU3BhY2U6ICdub3dyYXAnLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IGRlZmF1bHQgQTExeVRleHQ7XG4iXX0= */",toString:Q0},$0=function(t){return F("span",W({css:K0},t))},pl=$0,q0={guidance:function(t){var n=t.isSearchable,i=t.isMulti,r=t.tabSelectsValue,o=t.context,s=t.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 s?"".concat(t["aria-label"]||"Select"," is focused ").concat(n?",type to refine list":"",", press Down to open the menu, ").concat(i?" 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(t){var n=t.action,i=t.label,r=i===void 0?"":i,o=t.labels,s=t.isDisabled;switch(n){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 s?"option ".concat(r," is disabled. Select another option."):"option ".concat(r,", selected.");default:return""}},onFocus:function(t){var n=t.context,i=t.focused,r=t.options,o=t.label,s=o===void 0?"":o,u=t.selectValue,a=t.isDisabled,l=t.isSelected,c=t.isAppleDevice,d=function(g,v){return g&&g.length?"".concat(g.indexOf(v)+1," of ").concat(g.length):""};if(n==="value"&&u)return"value ".concat(s," focused, ").concat(d(u,i),".");if(n==="menu"&&c){var f=a?" disabled":"",p="".concat(l?" selected":"").concat(f);return"".concat(s).concat(p,", ").concat(d(r,i),".")}return""},onFilter:function(t){var n=t.inputValue,i=t.resultsMessage;return"".concat(i).concat(n?" for search term "+n:"",".")}},ev=function(t){var n=t.ariaSelection,i=t.focusedOption,r=t.focusedValue,o=t.focusableOptions,s=t.isFocused,u=t.selectValue,a=t.selectProps,l=t.id,c=t.isAppleDevice,d=a.ariaLiveMessages,f=a.getOptionLabel,p=a.inputValue,b=a.isMulti,g=a.isOptionDisabled,v=a.isSearchable,C=a.menuIsOpen,y=a.options,m=a.screenReaderStatus,I=a.tabSelectsValue,h=a.isLoading,S=a["aria-label"],T=a["aria-live"],P=x.useMemo(function(){return B(B({},q0),d||{})},[d]),M=x.useMemo(function(){var k="";if(n&&P.onChange){var z=n.option,ie=n.options,re=n.removedValue,be=n.removedValues,E=n.value,V=function(H){return Array.isArray(H)?null:H},D=re||z||V(E),G=D?f(D):"",O=ie||be||void 0,j=O?O.map(f):[],N=B({isDisabled:D&&g(D,u),label:G,labels:j},n);k=P.onChange(N)}return k},[n,P,g,u,f]),X=x.useMemo(function(){var k="",z=i||r,ie=!!(i&&u&&u.includes(i));if(z&&P.onFocus){var re={focused:z,label:f(z),isDisabled:g(z,u),isSelected:ie,options:o,context:z===i?"menu":"value",selectValue:u,isAppleDevice:c};k=P.onFocus(re)}return k},[i,r,f,g,P,o,u,c]),U=x.useMemo(function(){var k="";if(C&&y.length&&!h&&P.onFilter){var z=m({count:o.length});k=P.onFilter({inputValue:p,resultsMessage:z})}return k},[o,p,C,P,y,m,h]),ne=(n==null?void 0:n.action)==="initial-input-focus",de=x.useMemo(function(){var k="";if(P.guidance){var z=r?"value":C?"menu":"input";k=P.guidance({"aria-label":S,context:z,isDisabled:i&&g(i,u),isMulti:b,isSearchable:v,tabSelectsValue:I,isInitialFocus:ne})}return k},[S,i,r,b,g,v,C,P,u,I,ne]),oe=F(x.Fragment,null,F("span",{id:"aria-selection"},M),F("span",{id:"aria-focused"},X),F("span",{id:"aria-results"},U),F("span",{id:"aria-guidance"},de));return F(x.Fragment,null,F(pl,{id:l},ne&&oe),F(pl,{"aria-live":T,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},s&&!ne&&oe))},tv=ev,kr=[{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źẑżžẓẕƶȥɀⱬꝣ"}],nv=new RegExp("["+kr.map(function(e){return e.letters}).join("")+"]","g"),ml={},zr=0;zr<kr.length;zr++)for(var jr=kr[zr],Yr=0;Yr<jr.letters.length;Yr++)ml[jr.letters[Yr]]=jr.base;var gl=function(t){return t.replace(nv,function(n){return ml[n]})},iv=_0(gl),bl=function(t){return t.replace(/^\s+|\s+$/g,"")},rv=function(t){return"".concat(t.label," ").concat(t.value)},ov=function(t){return function(n,i){if(n.data.__isNew__)return!0;var r=B({ignoreCase:!0,ignoreAccents:!0,stringify:rv,trim:!0,matchFrom:"any"},t),o=r.ignoreCase,s=r.ignoreAccents,u=r.stringify,a=r.trim,l=r.matchFrom,c=a?bl(i):i,d=a?bl(u(n)):u(n);return o&&(c=c.toLowerCase(),d=d.toLowerCase()),s&&(c=iv(c),d=gl(d)),l==="start"?d.substr(0,c.length)===c:d.indexOf(c)>-1}},sv=["innerRef"];function av(e){var t=e.innerRef,n=qe(e,sv),i=Fb(n,"onExited","in","enter","exit","appear");return F("input",W({ref:t},i,{css:Nr({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)"},process.env.NODE_ENV==="production"?"":";label:DummyInput;",process.env.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkR1bW15SW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCTSIsImZpbGUiOiJEdW1teUlucHV0LnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgUmVmIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgcmVtb3ZlUHJvcHMgfSBmcm9tICcuLi91dGlscyc7XG5cbmV4cG9ydCBkZWZhdWx0IGZ1bmN0aW9uIER1bW15SW5wdXQoe1xuICBpbm5lclJlZixcbiAgLi4ucHJvcHNcbn06IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snaW5wdXQnXSAmIHtcbiAgcmVhZG9ubHkgaW5uZXJSZWY6IFJlZjxIVE1MSW5wdXRFbGVtZW50Pjtcbn0pIHtcbiAgLy8gUmVtb3ZlIGFuaW1hdGlvbiBwcm9wcyBub3QgbWVhbnQgZm9yIEhUTUwgZWxlbWVudHNcbiAgY29uc3QgZmlsdGVyZWRQcm9wcyA9IHJlbW92ZVByb3BzKFxuICAgIHByb3BzLFxuICAgICdvbkV4aXRlZCcsXG4gICAgJ2luJyxcbiAgICAnZW50ZXInLFxuICAgICdleGl0JyxcbiAgICAnYXBwZWFyJ1xuICApO1xuXG4gIHJldHVybiAoXG4gICAgPGlucHV0XG4gICAgICByZWY9e2lubmVyUmVmfVxuICAgICAgey4uLmZpbHRlcmVkUHJvcHN9XG4gICAgICBjc3M9e3tcbiAgICAgICAgbGFiZWw6ICdkdW1teUlucHV0JyxcbiAgICAgICAgLy8gZ2V0IHJpZCBvZiBhbnkgZGVmYXVsdCBzdHlsZXNcbiAgICAgICAgYmFja2dyb3VuZDogMCxcbiAgICAgICAgYm9yZGVyOiAwLFxuICAgICAgICAvLyBpbXBvcnRhbnQhIHRoaXMgaGlkZXMgdGhlIGZsYXNoaW5nIGN1cnNvclxuICAgICAgICBjYXJldENvbG9yOiAndHJhbnNwYXJlbnQnLFxuICAgICAgICBmb250U2l6ZTogJ2luaGVyaXQnLFxuICAgICAgICBncmlkQXJlYTogJzEgLyAxIC8gMiAvIDMnLFxuICAgICAgICBvdXRsaW5lOiAwLFxuICAgICAgICBwYWRkaW5nOiAwLFxuICAgICAgICAvLyBpbXBvcnRhbnQhIHdpdGhvdXQgYHdpZHRoYCBicm93c2VycyB3b24ndCBhbGxvdyBmb2N1c1xuICAgICAgICB3aWR0aDogMSxcblxuICAgICAgICAvLyByZW1vdmUgY3Vyc29yIG9uIGRlc2t0b3BcbiAgICAgICAgY29sb3I6ICd0cmFuc3BhcmVudCcsXG5cbiAgICAgICAgLy8gcmVtb3ZlIGN1cnNvciBvbiBtb2JpbGUgd2hpbHN0IG1haW50YWluaW5nIFwic2Nyb2xsIGludG8gdmlld1wiIGJlaGF2aW91clxuICAgICAgICBsZWZ0OiAtMTAwLFxuICAgICAgICBvcGFjaXR5OiAwLFxuICAgICAgICBwb3NpdGlvbjogJ3JlbGF0aXZlJyxcbiAgICAgICAgdHJhbnNmb3JtOiAnc2NhbGUoLjAxKScsXG4gICAgICB9fVxuICAgIC8+XG4gICk7XG59XG4iXX0= */")}))}var uv=function(t){t.cancelable&&t.preventDefault(),t.stopPropagation()};function lv(e){var t=e.isEnabled,n=e.onBottomArrive,i=e.onBottomLeave,r=e.onTopArrive,o=e.onTopLeave,s=x.useRef(!1),u=x.useRef(!1),a=x.useRef(0),l=x.useRef(null),c=x.useCallback(function(v,C){if(l.current!==null){var y=l.current,m=y.scrollTop,I=y.scrollHeight,h=y.clientHeight,S=l.current,T=C>0,P=I-h-m,M=!1;P>C&&s.current&&(i&&i(v),s.current=!1),T&&u.current&&(o&&o(v),u.current=!1),T&&C>P?(n&&!s.current&&n(v),S.scrollTop=I,M=!0,s.current=!0):!T&&-C>m&&(r&&!u.current&&r(v),S.scrollTop=0,M=!0,u.current=!0),M&&uv(v)}},[n,i,r,o]),d=x.useCallback(function(v){c(v,v.deltaY)},[c]),f=x.useCallback(function(v){a.current=v.changedTouches[0].clientY},[]),p=x.useCallback(function(v){var C=a.current-v.changedTouches[0].clientY;c(v,C)},[c]),b=x.useCallback(function(v){if(v){var C=wb?{passive:!1}:!1;v.addEventListener("wheel",d,C),v.addEventListener("touchstart",f,C),v.addEventListener("touchmove",p,C)}},[p,f,d]),g=x.useCallback(function(v){v&&(v.removeEventListener("wheel",d,!1),v.removeEventListener("touchstart",f,!1),v.removeEventListener("touchmove",p,!1))},[p,f,d]);return x.useEffect(function(){if(t){var v=l.current;return b(v),function(){g(v)}}},[t,b,g]),function(v){l.current=v}}var vl=["boxSizing","height","overflow","paddingRight","position"],yl={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function Cl(e){e.preventDefault()}function Il(e){e.stopPropagation()}function xl(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;e===0?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function Al(){return"ontouchstart"in window||navigator.maxTouchPoints}var Sl=!!(typeof window<"u"&&window.document&&window.document.createElement),sn=0,Ot={capture:!1,passive:!1};function cv(e){var t=e.isEnabled,n=e.accountForScrollbars,i=n===void 0?!0:n,r=x.useRef({}),o=x.useRef(null),s=x.useCallback(function(a){if(Sl){var l=document.body,c=l&&l.style;if(i&&vl.forEach(function(b){var g=c&&c[b];r.current[b]=g}),i&&sn<1){var d=parseInt(r.current.paddingRight,10)||0,f=document.body?document.body.clientWidth:0,p=window.innerWidth-f+d||0;Object.keys(yl).forEach(function(b){var g=yl[b];c&&(c[b]=g)}),c&&(c.paddingRight="".concat(p,"px"))}l&&Al()&&(l.addEventListener("touchmove",Cl,Ot),a&&(a.addEventListener("touchstart",xl,Ot),a.addEventListener("touchmove",Il,Ot))),sn+=1}},[i]),u=x.useCallback(function(a){if(Sl){var l=document.body,c=l&&l.style;sn=Math.max(sn-1,0),i&&sn<1&&vl.forEach(function(d){var f=r.current[d];c&&(c[d]=f)}),l&&Al()&&(l.removeEventListener("touchmove",Cl,Ot),a&&(a.removeEventListener("touchstart",xl,Ot),a.removeEventListener("touchmove",Il,Ot)))}},[i]);return x.useEffect(function(){if(t){var a=o.current;return s(a),function(){u(a)}}},[t,s,u]),function(a){o.current=a}}function dv(){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)."}var fv=function(t){var n=t.target;return n.ownerDocument.activeElement&&n.ownerDocument.activeElement.blur()},hv=process.env.NODE_ENV==="production"?{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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNjcm9sbE1hbmFnZXIudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW9EVSIsImZpbGUiOiJTY3JvbGxNYW5hZ2VyLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgRnJhZ21lbnQsIFJlYWN0RWxlbWVudCwgUmVmQ2FsbGJhY2ssIE1vdXNlRXZlbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgdXNlU2Nyb2xsQ2FwdHVyZSBmcm9tICcuL3VzZVNjcm9sbENhcHR1cmUnO1xuaW1wb3J0IHVzZVNjc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lZCA9IHRydWUsXG4gIG9uQm90dG9tQXJyaXZlLFxuICBvbkJvdHRvbUxlYXZlLFxuICBvblRvcEFycml2ZSxcbiAgb25Ub3BMZWF2ZSxcbn06IFByb3BzKSB7XG4gIGNvbnN0IHNldFNjcm9sbENhcHR1cmVUYXJnZXQgPSB1c2VTY3JvbGxDYXB0dXJlKHtcbiAgICBpc0VuYWJsZWQ6IGNhcHR1cmVFbmFibGVkLFxuICAgIG9uQm90dG9tQXJyaXZlLFxuICAgIG9uQm90dG9tTGVhdmUsXG4gICAgb25Ub3BBcnJpdmUsXG4gICAgb25Ub3BMZWF2ZSxcbiAgfSk7XG4gIGNvbnN0IHNldFNjcm9sbExvY2tUYXJnZXQgPSB1c2VTY3JvbGxMb2NrKHsgaXNFbmFibGVkOiBsb2NrRW5hYmxlZCB9KTtcblxuICBjb25zdCB0YXJnZXRSZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PiA9IChlbGVtZW50KSA9PiB7XG4gICAgc2V0U2Nyb2xsQ2FwdHVyZVRhcmdldChlbGVtZW50KTtcbiAgICBzZXRTY3JvbGxMb2NrVGFyZ2V0KGVsZW1lbnQpO1xuICB9O1xuXG4gIHJldHVybiAoXG4gICAgPEZyYWdtZW50PlxuICAgICAge2xvY2tFbmFibGVkICYmIChcbiAgICAgICAgPGRpdlxuICAgICAgICAgIG9uQ2xpY2s9e2JsdXJTZWxlY3RJbnB1dH1cbiAgICAgICAgICBjc3M9e3sgcG9zaXRpb246ICdmaXhlZCcsIGxlZnQ6IDAsIGJvdHRvbTogMCwgcmlnaHQ6IDAsIHRvcDogMCB9fVxuICAgICAgICAvPlxuICAgICAgKX1cbiAgICAgIHtjaGlsZHJlbih0YXJnZXRSZWYpfVxuICAgIDwvRnJhZ21lbnQ+XG4gICk7XG59XG4iXX0= */",toString:dv};function pv(e){var t=e.children,n=e.lockEnabled,i=e.captureEnabled,r=i===void 0?!0:i,o=e.onBottomArrive,s=e.onBottomLeave,u=e.onTopArrive,a=e.onTopLeave,l=lv({isEnabled:r,onBottomArrive:o,onBottomLeave:s,onTopArrive:u,onTopLeave:a}),c=cv({isEnabled:n}),d=function(p){l(p),c(p)};return F(x.Fragment,null,n&&F("div",{onClick:fv,css:hv}),t(d))}function mv(){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)."}var gv=process.env.NODE_ENV==="production"?{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:mv},bv=function(t){var n=t.name,i=t.onFocus;return F("input",{required:!0,name:n,tabIndex:-1,"aria-hidden":"true",onFocus:i,css:gv,value:"",onChange:function(){}})},vv=bv;function Jr(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function yv(){return Jr(/^iPhone/i)}function Tl(){return Jr(/^Mac/i)}function Cv(){return Jr(/^iPad/i)||Tl()&&navigator.maxTouchPoints>1}function Iv(){return yv()||Cv()}function xv(){return Tl()||Iv()}var Av=function(t){return t.label},Sv=function(t){return t.label},Tv=function(t){return t.value},Ev=function(t){return!!t.isDisabled},Pv={clearIndicator:s0,container:Ub,control:h0,dropdownIndicator:r0,group:b0,groupHeading:y0,indicatorsContainer:$b,indicatorSeparator:u0,input:A0,loadingIndicator:d0,loadingMessage:kb,menu:Nb,menuList:Xb,menuPortal:Yb,multiValue:w0,multiValueLabel:V0,multiValueRemove:D0,noOptionsMessage:Hb,option:N0,placeholder:L0,singleValue:H0,valueContainer:Qb},wv={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%)"},Vv=4,El=4,Dv=38,Fv=El*2,Mv={baseUnit:El,controlHeight:Dv,menuGutter:Fv},Ur={borderRadius:Vv,colors:wv,spacing:Mv},Bv={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:nl(),captureMenuScroll:!nl(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:ov(),formatGroupLabel:Av,getOptionLabel:Sv,getOptionValue:Tv,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:Ev,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!Eb(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(t){var n=t.count;return"".concat(n," result").concat(n!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function Pl(e,t,n,i){var r=Ml(e,t,n),o=Bl(e,t,n),s=Fl(e,t),u=ri(e,t);return{type:"option",data:t,isDisabled:r,isSelected:o,label:s,value:u,index:i}}function ii(e,t){return e.options.map(function(n,i){if("options"in n){var r=n.options.map(function(s,u){return Pl(e,s,t,u)}).filter(function(s){return Dl(e,s)});return r.length>0?{type:"group",data:n,options:r,index:i}:void 0}var o=Pl(e,n,t,i);return Dl(e,o)?o:void 0}).filter(Vb)}function wl(e){return e.reduce(function(t,n){return n.type==="group"?t.push.apply(t,Er(n.options.map(function(i){return i.data}))):t.push(n.data),t},[])}function Vl(e,t){return e.reduce(function(n,i){return i.type==="group"?n.push.apply(n,Er(i.options.map(function(r){return{data:r.data,id:"".concat(t,"-").concat(i.index,"-").concat(r.index)}}))):n.push({data:i.data,id:"".concat(t,"-").concat(i.index)}),n},[])}function Gv(e,t){return wl(ii(e,t))}function Dl(e,t){var n=e.inputValue,i=n===void 0?"":n,r=t.data,o=t.isSelected,s=t.label,u=t.value;return(!Ol(e)||!o)&&Gl(e,{label:s,value:u,data:r},i)}function Ov(e,t){var n=e.focusedValue,i=e.selectValue,r=i.indexOf(n);if(r>-1){var o=t.indexOf(n);if(o>-1)return n;if(r<t.length)return t[r]}return null}function Nv(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}var _r=function(t,n){var i,r=(i=t.find(function(o){return o.data===n}))===null||i===void 0?void 0:i.id;return r||null},Fl=function(t,n){return t.getOptionLabel(n)},ri=function(t,n){return t.getOptionValue(n)};function Ml(e,t,n){return typeof e.isOptionDisabled=="function"?e.isOptionDisabled(t,n):!1}function Bl(e,t,n){if(n.indexOf(t)>-1)return!0;if(typeof e.isOptionSelected=="function")return e.isOptionSelected(t,n);var i=ri(e,t);return n.some(function(r){return ri(e,r)===i})}function Gl(e,t,n){return e.filterOption?e.filterOption(t,n):!0}var Ol=function(t){var n=t.hideSelectedOptions,i=t.isMulti;return n===void 0?i:n},Rv=1,Nl=function(e){_m(n,e);var t=$m(n);function n(i){var r;if(Jm(this,n),r=t.call(this,i),r.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:""},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.isAppleDevice=xv(),r.controlRef=null,r.getControlRef=function(a){r.controlRef=a},r.focusedOptionRef=null,r.getFocusedOptionRef=function(a){r.focusedOptionRef=a},r.menuListRef=null,r.getMenuListRef=function(a){r.menuListRef=a},r.inputRef=null,r.getInputRef=function(a){r.inputRef=a},r.focus=r.focusInput,r.blur=r.blurInput,r.onChange=function(a,l){var c=r.props,d=c.onChange,f=c.name;l.name=f,r.ariaOnChange(a,l),d(a,l)},r.setValue=function(a,l,c){var d=r.props,f=d.closeMenuOnSelect,p=d.isMulti,b=d.inputValue;r.onInputChange("",{action:"set-value",prevInputValue:b}),f&&(r.setState({inputIsHiddenAfterUpdate:!p}),r.onMenuClose()),r.setState({clearFocusValueOnUpdate:!0}),r.onChange(a,{action:l,option:c})},r.selectOption=function(a){var l=r.props,c=l.blurInputOnSelect,d=l.isMulti,f=l.name,p=r.state.selectValue,b=d&&r.isOptionSelected(a,p),g=r.isOptionDisabled(a,p);if(b){var v=r.getOptionValue(a);r.setValue(p.filter(function(C){return r.getOptionValue(C)!==v}),"deselect-option",a)}else if(!g)d?r.setValue([].concat(Er(p),[a]),"select-option",a):r.setValue(a,"select-option");else{r.ariaOnChange(a,{action:"select-option",option:a,name:f});return}c&&r.blurInput()},r.removeValue=function(a){var l=r.props.isMulti,c=r.state.selectValue,d=r.getOptionValue(a),f=c.filter(function(b){return r.getOptionValue(b)!==d}),p=ni(l,f,f[0]||null);r.onChange(p,{action:"remove-value",removedValue:a}),r.focusInput()},r.clearValue=function(){var a=r.state.selectValue;r.onChange(ni(r.props.isMulti,[],null),{action:"clear",removedValues:a})},r.popValue=function(){var a=r.props.isMulti,l=r.state.selectValue,c=l[l.length-1],d=l.slice(0,l.length-1),f=ni(a,d,d[0]||null);r.onChange(f,{action:"pop-value",removedValue:c})},r.getFocusedOptionId=function(a){return _r(r.state.focusableOptionsWithIds,a)},r.getFocusableOptionsWithIds=function(){return Vl(ii(r.props,r.state.selectValue),r.getElementId("option"))},r.getValue=function(){return r.state.selectValue},r.cx=function(){for(var a=arguments.length,l=new Array(a),c=0;c<a;c++)l[c]=arguments[c];return Ib.apply(void 0,[r.props.classNamePrefix].concat(l))},r.getOptionLabel=function(a){return Fl(r.props,a)},r.getOptionValue=function(a){return ri(r.props,a)},r.getStyles=function(a,l){var c=r.props.unstyled,d=Pv[a](l,c);d.boxSizing="border-box";var f=r.props.styles[a];return f?f(d,l):d},r.getClassNames=function(a,l){var c,d;return(c=(d=r.props.classNames)[a])===null||c===void 0?void 0:c.call(d,l)},r.getElementId=function(a){return"".concat(r.state.instancePrefix,"-").concat(a)},r.getComponents=function(){return Y0(r.props)},r.buildCategorizedOptions=function(){return ii(r.props,r.state.selectValue)},r.getCategorizedOptions=function(){return r.props.menuIsOpen?r.buildCategorizedOptions():[]},r.buildFocusableOptions=function(){return wl(r.buildCategorizedOptions())},r.getFocusableOptions=function(){return r.props.menuIsOpen?r.buildFocusableOptions():[]},r.ariaOnChange=function(a,l){r.setState({ariaSelection:B({value:a},l)})},r.onMenuMouseDown=function(a){a.button===0&&(a.stopPropagation(),a.preventDefault(),r.focusInput())},r.onMenuMouseMove=function(a){r.blockOptionHover=!1},r.onControlMouseDown=function(a){if(!a.defaultPrevented){var l=r.props.openMenuOnClick;r.state.isFocused?r.props.menuIsOpen?a.target.tagName!=="INPUT"&&a.target.tagName!=="TEXTAREA"&&r.onMenuClose():l&&r.openMenu("first"):(l&&(r.openAfterFocus=!0),r.focusInput()),a.target.tagName!=="INPUT"&&a.target.tagName!=="TEXTAREA"&&a.preventDefault()}},r.onDropdownIndicatorMouseDown=function(a){if(!(a&&a.type==="mousedown"&&a.button!==0)&&!r.props.isDisabled){var l=r.props,c=l.isMulti,d=l.menuIsOpen;r.focusInput(),d?(r.setState({inputIsHiddenAfterUpdate:!c}),r.onMenuClose()):r.openMenu("first"),a.preventDefault()}},r.onClearIndicatorMouseDown=function(a){a&&a.type==="mousedown"&&a.button!==0||(r.clearValue(),a.preventDefault(),r.openAfterFocus=!1,a.type==="touchend"?r.focusInput():setTimeout(function(){return r.focusInput()}))},r.onScroll=function(a){typeof r.props.closeMenuOnScroll=="boolean"?a.target instanceof HTMLElement&&$n(a.target)&&r.props.onMenuClose():typeof r.props.closeMenuOnScroll=="function"&&r.props.closeMenuOnScroll(a)&&r.props.onMenuClose()},r.onCompositionStart=function(){r.isComposing=!0},r.onCompositionEnd=function(){r.isComposing=!1},r.onTouchStart=function(a){var l=a.touches,c=l&&l.item(0);c&&(r.initialTouchX=c.clientX,r.initialTouchY=c.clientY,r.userIsDragging=!1)},r.onTouchMove=function(a){var l=a.touches,c=l&&l.item(0);if(c){var d=Math.abs(c.clientX-r.initialTouchX),f=Math.abs(c.clientY-r.initialTouchY),p=5;r.userIsDragging=d>p||f>p}},r.onTouchEnd=function(a){r.userIsDragging||(r.controlRef&&!r.controlRef.contains(a.target)&&r.menuListRef&&!r.menuListRef.contains(a.target)&&r.blurInput(),r.initialTouchX=0,r.initialTouchY=0)},r.onControlTouchEnd=function(a){r.userIsDragging||r.onControlMouseDown(a)},r.onClearIndicatorTouchEnd=function(a){r.userIsDragging||r.onClearIndicatorMouseDown(a)},r.onDropdownIndicatorTouchEnd=function(a){r.userIsDragging||r.onDropdownIndicatorMouseDown(a)},r.handleInputChange=function(a){var l=r.props.inputValue,c=a.currentTarget.value;r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange(c,{action:"input-change",prevInputValue:l}),r.props.menuIsOpen||r.onMenuOpen()},r.onInputFocus=function(a){r.props.onFocus&&r.props.onFocus(a),r.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(r.openAfterFocus||r.props.openMenuOnFocus)&&r.openMenu("first"),r.openAfterFocus=!1},r.onInputBlur=function(a){var l=r.props.inputValue;if(r.menuListRef&&r.menuListRef.contains(document.activeElement)){r.inputRef.focus();return}r.props.onBlur&&r.props.onBlur(a),r.onInputChange("",{action:"input-blur",prevInputValue:l}),r.onMenuClose(),r.setState({focusedValue:null,isFocused:!1})},r.onOptionHover=function(a){if(!(r.blockOptionHover||r.state.focusedOption===a)){var l=r.getFocusableOptions(),c=l.indexOf(a);r.setState({focusedOption:a,focusedOptionId:c>-1?r.getFocusedOptionId(a):null})}},r.shouldHideSelectedOptions=function(){return Ol(r.props)},r.onValueInputFocus=function(a){a.preventDefault(),a.stopPropagation(),r.focus()},r.onKeyDown=function(a){var l=r.props,c=l.isMulti,d=l.backspaceRemovesValue,f=l.escapeClearsValue,p=l.inputValue,b=l.isClearable,g=l.isDisabled,v=l.menuIsOpen,C=l.onKeyDown,y=l.tabSelectsValue,m=l.openMenuOnFocus,I=r.state,h=I.focusedOption,S=I.focusedValue,T=I.selectValue;if(!g&&!(typeof C=="function"&&(C(a),a.defaultPrevented))){switch(r.blockOptionHover=!0,a.key){case"ArrowLeft":if(!c||p)return;r.focusValue("previous");break;case"ArrowRight":if(!c||p)return;r.focusValue("next");break;case"Delete":case"Backspace":if(p)return;if(S)r.removeValue(S);else{if(!d)return;c?r.popValue():b&&r.clearValue()}break;case"Tab":if(r.isComposing||a.shiftKey||!v||!y||!h||m&&r.isOptionSelected(h,T))return;r.selectOption(h);break;case"Enter":if(a.keyCode===229)break;if(v){if(!h||r.isComposing)return;r.selectOption(h);break}return;case"Escape":v?(r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange("",{action:"menu-close",prevInputValue:p}),r.onMenuClose()):b&&f&&r.clearValue();break;case" ":if(p)return;if(!v){r.openMenu("first");break}if(!h)return;r.selectOption(h);break;case"ArrowUp":v?r.focusOption("up"):r.openMenu("last");break;case"ArrowDown":v?r.focusOption("down"):r.openMenu("first");break;case"PageUp":if(!v)return;r.focusOption("pageup");break;case"PageDown":if(!v)return;r.focusOption("pagedown");break;case"Home":if(!v)return;r.focusOption("first");break;case"End":if(!v)return;r.focusOption("last");break;default:return}a.preventDefault()}},r.state.instancePrefix="react-select-"+(r.props.instanceId||++Rv),r.state.selectValue=$u(i.value),i.menuIsOpen&&r.state.selectValue.length){var o=r.getFocusableOptionsWithIds(),s=r.buildFocusableOptions(),u=s.indexOf(r.state.selectValue[0]);r.state.focusableOptionsWithIds=o,r.state.focusedOption=s[u],r.state.focusedOptionId=_r(o,s[u])}return r}return Um(n,[{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&&tl(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(r){var o=this.props,s=o.isDisabled,u=o.menuIsOpen,a=this.state.isFocused;(a&&!s&&r.isDisabled||a&&u&&!r.menuIsOpen)&&this.focusInput(),a&&s&&!r.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!a&&!s&&r.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(tl(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(r,o){this.props.onInputChange(r,o)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(r){var o=this,s=this.state,u=s.selectValue,a=s.isFocused,l=this.buildFocusableOptions(),c=r==="first"?0:l.length-1;if(!this.props.isMulti){var d=l.indexOf(u[0]);d>-1&&(c=d)}this.scrollToFocusedOptionOnUpdate=!(a&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:l[c],focusedOptionId:this.getFocusedOptionId(l[c])},function(){return o.onMenuOpen()})}},{key:"focusValue",value:function(r){var o=this.state,s=o.selectValue,u=o.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var a=s.indexOf(u);u||(a=-1);var l=s.length-1,c=-1;if(s.length){switch(r){case"previous":a===0?c=0:a===-1?c=l:c=a-1;break;case"next":a>-1&&a<l&&(c=a+1);break}this.setState({inputIsHidden:c!==-1,focusedValue:s[c]})}}}},{key:"focusOption",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"first",o=this.props.pageSize,s=this.state.focusedOption,u=this.getFocusableOptions();if(u.length){var a=0,l=u.indexOf(s);s||(l=-1),r==="up"?a=l>0?l-1:u.length-1:r==="down"?a=(l+1)%u.length:r==="pageup"?(a=l-o,a<0&&(a=0)):r==="pagedown"?(a=l+o,a>u.length-1&&(a=u.length-1)):r==="last"&&(a=u.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:u[a],focusedValue:null,focusedOptionId:this.getFocusedOptionId(u[a])})}}},{key:"getTheme",value:function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(Ur):B(B({},Ur),this.props.theme):Ur}},{key:"getCommonProps",value:function(){var r=this.clearValue,o=this.cx,s=this.getStyles,u=this.getClassNames,a=this.getValue,l=this.selectOption,c=this.setValue,d=this.props,f=d.isMulti,p=d.isRtl,b=d.options,g=this.hasValue();return{clearValue:r,cx:o,getStyles:s,getClassNames:u,getValue:a,hasValue:g,isMulti:f,isRtl:p,options:b,selectOption:l,selectProps:d,setValue:c,theme:this.getTheme()}}},{key:"hasValue",value:function(){var r=this.state.selectValue;return r.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var r=this.props,o=r.isClearable,s=r.isMulti;return o===void 0?s:o}},{key:"isOptionDisabled",value:function(r,o){return Ml(this.props,r,o)}},{key:"isOptionSelected",value:function(r,o){return Bl(this.props,r,o)}},{key:"filterOption",value:function(r,o){return Gl(this.props,r,o)}},{key:"formatOptionLabel",value:function(r,o){if(typeof this.props.formatOptionLabel=="function"){var s=this.props.inputValue,u=this.state.selectValue;return this.props.formatOptionLabel(r,{context:o,inputValue:s,selectValue:u})}else return this.getOptionLabel(r)}},{key:"formatGroupLabel",value:function(r){return this.props.formatGroupLabel(r)}},{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 r=this.props,o=r.isDisabled,s=r.isSearchable,u=r.inputId,a=r.inputValue,l=r.tabIndex,c=r.form,d=r.menuIsOpen,f=r.required,p=this.getComponents(),b=p.Input,g=this.state,v=g.inputIsHidden,C=g.ariaSelection,y=this.commonProps,m=u||this.getElementId("input"),I=B(B(B({"aria-autocomplete":"list","aria-expanded":d,"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":f,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},d&&{"aria-controls":this.getElementId("listbox")}),!s&&{"aria-readonly":!0}),this.hasValue()?(C==null?void 0:C.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return s?Z.createElement(b,W({},y,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:m,innerRef:this.getInputRef,isDisabled:o,isHidden:v,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:l,form:c,type:"text",value:a},I)):Z.createElement(av,W({id:m,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Kn,onFocus:this.onInputFocus,disabled:o,tabIndex:l,inputMode:"none",form:c,value:""},I))}},{key:"renderPlaceholderOrValue",value:function(){var r=this,o=this.getComponents(),s=o.MultiValue,u=o.MultiValueContainer,a=o.MultiValueLabel,l=o.MultiValueRemove,c=o.SingleValue,d=o.Placeholder,f=this.commonProps,p=this.props,b=p.controlShouldRenderValue,g=p.isDisabled,v=p.isMulti,C=p.inputValue,y=p.placeholder,m=this.state,I=m.selectValue,h=m.focusedValue,S=m.isFocused;if(!this.hasValue()||!b)return C?null:Z.createElement(d,W({},f,{key:"placeholder",isDisabled:g,isFocused:S,innerProps:{id:this.getElementId("placeholder")}}),y);if(v)return I.map(function(P,M){var X=P===h,U="".concat(r.getOptionLabel(P),"-").concat(r.getOptionValue(P));return Z.createElement(s,W({},f,{components:{Container:u,Label:a,Remove:l},isFocused:X,isDisabled:g,key:U,index:M,removeProps:{onClick:function(){return r.removeValue(P)},onTouchEnd:function(){return r.removeValue(P)},onMouseDown:function(de){de.preventDefault()}},data:P}),r.formatOptionLabel(P,"value"))});if(C)return null;var T=I[0];return Z.createElement(c,W({},f,{data:T,isDisabled:g}),this.formatOptionLabel(T,"value"))}},{key:"renderClearIndicator",value:function(){var r=this.getComponents(),o=r.ClearIndicator,s=this.commonProps,u=this.props,a=u.isDisabled,l=u.isLoading,c=this.state.isFocused;if(!this.isClearable()||!o||a||!this.hasValue()||l)return null;var d={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return Z.createElement(o,W({},s,{innerProps:d,isFocused:c}))}},{key:"renderLoadingIndicator",value:function(){var r=this.getComponents(),o=r.LoadingIndicator,s=this.commonProps,u=this.props,a=u.isDisabled,l=u.isLoading,c=this.state.isFocused;if(!o||!l)return null;var d={"aria-hidden":"true"};return Z.createElement(o,W({},s,{innerProps:d,isDisabled:a,isFocused:c}))}},{key:"renderIndicatorSeparator",value:function(){var r=this.getComponents(),o=r.DropdownIndicator,s=r.IndicatorSeparator;if(!o||!s)return null;var u=this.commonProps,a=this.props.isDisabled,l=this.state.isFocused;return Z.createElement(s,W({},u,{isDisabled:a,isFocused:l}))}},{key:"renderDropdownIndicator",value:function(){var r=this.getComponents(),o=r.DropdownIndicator;if(!o)return null;var s=this.commonProps,u=this.props.isDisabled,a=this.state.isFocused,l={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return Z.createElement(o,W({},s,{innerProps:l,isDisabled:u,isFocused:a}))}},{key:"renderMenu",value:function(){var r=this,o=this.getComponents(),s=o.Group,u=o.GroupHeading,a=o.Menu,l=o.MenuList,c=o.MenuPortal,d=o.LoadingMessage,f=o.NoOptionsMessage,p=o.Option,b=this.commonProps,g=this.state.focusedOption,v=this.props,C=v.captureMenuScroll,y=v.inputValue,m=v.isLoading,I=v.loadingMessage,h=v.minMenuHeight,S=v.maxMenuHeight,T=v.menuIsOpen,P=v.menuPlacement,M=v.menuPosition,X=v.menuPortalTarget,U=v.menuShouldBlockScroll,ne=v.menuShouldScrollIntoView,de=v.noOptionsMessage,oe=v.onMenuScrollToTop,k=v.onMenuScrollToBottom;if(!T)return null;var z=function(G,O){var j=G.type,N=G.data,L=G.isDisabled,H=G.isSelected,Y=G.label,J=G.value,fe=g===N,A=L?void 0:function(){return r.onOptionHover(N)},xe=L?void 0:function(){return r.selectOption(N)},Be="".concat(r.getElementId("option"),"-").concat(O),Ct={id:Be,onClick:xe,onMouseMove:A,onMouseOver:A,tabIndex:-1,role:"option","aria-selected":r.isAppleDevice?void 0:H};return Z.createElement(p,W({},b,{innerProps:Ct,data:N,isDisabled:L,isSelected:H,key:Be,label:Y,type:j,value:J,isFocused:fe,innerRef:fe?r.getFocusedOptionRef:void 0}),r.formatOptionLabel(G.data,"menu"))},ie;if(this.hasOptions())ie=this.getCategorizedOptions().map(function(D){if(D.type==="group"){var G=D.data,O=D.options,j=D.index,N="".concat(r.getElementId("group"),"-").concat(j),L="".concat(N,"-heading");return Z.createElement(s,W({},b,{key:N,data:G,options:O,Heading:u,headingProps:{id:L,data:D.data},label:r.formatGroupLabel(D.data)}),D.options.map(function(H){return z(H,"".concat(j,"-").concat(H.index))}))}else if(D.type==="option")return z(D,"".concat(D.index))});else if(m){var re=I({inputValue:y});if(re===null)return null;ie=Z.createElement(d,b,re)}else{var be=de({inputValue:y});if(be===null)return null;ie=Z.createElement(f,b,be)}var E={minMenuHeight:h,maxMenuHeight:S,menuPlacement:P,menuPosition:M,menuShouldScrollIntoView:ne},V=Z.createElement(Rb,W({},b,E),function(D){var G=D.ref,O=D.placerProps,j=O.placement,N=O.maxHeight;return Z.createElement(a,W({},b,E,{innerRef:G,innerProps:{onMouseDown:r.onMenuMouseDown,onMouseMove:r.onMenuMouseMove},isLoading:m,placement:j}),Z.createElement(pv,{captureEnabled:C,onTopArrive:oe,onBottomArrive:k,lockEnabled:U},function(L){return Z.createElement(l,W({},b,{innerRef:function(Y){r.getMenuListRef(Y),L(Y)},innerProps:{role:"listbox","aria-multiselectable":b.isMulti,id:r.getElementId("listbox")},isLoading:m,maxHeight:N,focusedOption:g}),ie)}))});return X||M==="fixed"?Z.createElement(c,W({},b,{appendTo:X,controlElement:this.controlRef,menuPlacement:P,menuPosition:M}),V):V}},{key:"renderFormField",value:function(){var r=this,o=this.props,s=o.delimiter,u=o.isDisabled,a=o.isMulti,l=o.name,c=o.required,d=this.state.selectValue;if(c&&!this.hasValue()&&!u)return Z.createElement(vv,{name:l,onFocus:this.onValueInputFocus});if(!(!l||u))if(a)if(s){var f=d.map(function(g){return r.getOptionValue(g)}).join(s);return Z.createElement("input",{name:l,type:"hidden",value:f})}else{var p=d.length>0?d.map(function(g,v){return Z.createElement("input",{key:"i-".concat(v),name:l,type:"hidden",value:r.getOptionValue(g)})}):Z.createElement("input",{name:l,type:"hidden",value:""});return Z.createElement("div",null,p)}else{var b=d[0]?this.getOptionValue(d[0]):"";return Z.createElement("input",{name:l,type:"hidden",value:b})}}},{key:"renderLiveRegion",value:function(){var r=this.commonProps,o=this.state,s=o.ariaSelection,u=o.focusedOption,a=o.focusedValue,l=o.isFocused,c=o.selectValue,d=this.getFocusableOptions();return Z.createElement(tv,W({},r,{id:this.getElementId("live-region"),ariaSelection:s,focusedOption:u,focusedValue:a,isFocused:l,selectValue:c,focusableOptions:d,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var r=this.getComponents(),o=r.Control,s=r.IndicatorsContainer,u=r.SelectContainer,a=r.ValueContainer,l=this.props,c=l.className,d=l.id,f=l.isDisabled,p=l.menuIsOpen,b=this.state.isFocused,g=this.commonProps=this.getCommonProps();return Z.createElement(u,W({},g,{className:c,innerProps:{id:d,onKeyDown:this.onKeyDown},isDisabled:f,isFocused:b}),this.renderLiveRegion(),Z.createElement(o,W({},g,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:f,isFocused:b,menuIsOpen:p}),Z.createElement(a,W({},g,{isDisabled:f}),this.renderPlaceholderOrValue(),this.renderInput()),Z.createElement(s,W({},g,{isDisabled:f}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(r,o){var s=o.prevProps,u=o.clearFocusValueOnUpdate,a=o.inputIsHiddenAfterUpdate,l=o.ariaSelection,c=o.isFocused,d=o.prevWasFocused,f=o.instancePrefix,p=r.options,b=r.value,g=r.menuIsOpen,v=r.inputValue,C=r.isMulti,y=$u(b),m={};if(s&&(b!==s.value||p!==s.options||g!==s.menuIsOpen||v!==s.inputValue)){var I=g?Gv(r,y):[],h=g?Vl(ii(r,y),"".concat(f,"-option")):[],S=u?Ov(o,y):null,T=Nv(o,I),P=_r(h,T);m={selectValue:y,focusedOption:T,focusedOptionId:P,focusableOptionsWithIds:h,focusedValue:S,clearFocusValueOnUpdate:!1}}var M=a!=null&&r!==s?{inputIsHidden:a,inputIsHiddenAfterUpdate:void 0}:{},X=l,U=c&&d;return c&&!U&&(X={value:ni(C,y,y[0]||null),options:y,action:"initial-input-focus"},U=!d),(l==null?void 0:l.action)==="initial-input-focus"&&(X=null),B(B(B({},m),M),{},{prevProps:r,ariaSelection:X,prevWasFocused:U})}}]),n}(x.Component);Nl.defaultProps=Bv;var Wv=x.forwardRef(function(e,t){var n=Ym(e);return Z.createElement(Nl,W({ref:t},n))}),Lv=Wv;function an(e){const{children:t,sx:n,...i}=e;return w.jsx("div",{className:ct.form,style:n,...i,children:t})}const Xv={menuPortal:e=>({...e,zIndex:"9999999999 !important"}),control:(e,t)=>({...e,background:t.isDisabled?"#e9ecef !important":"#fff!important",minHeight:"26px!important",boxShadow:t.isFocused?"0 0 0 2px rgba(0 125 250 / 30%)":null,borderColor:t.isFocused?"#0071e3":"#D6DBDF!important",fontSize:"12px!important",padding:"0px 0px 0px 6px!important",color:"#3f4254!important",borderRadius:"0px !important"}),valueContainer:e=>({...e,height:"26px!important",padding:"0 6px 0 2px!important"}),input:e=>({...e,margin:"0px!important",fontSize:"12px!important",color:"#3f4254"}),placeholder:e=>({...e,margin:"0px!important",fontSize:"12px!important",color:"#aeaeae !important"}),indicatorsContainer:e=>({...e,height:"26px!important"}),option:(e,t)=>({...e,backgroundColor:t.isSelected?"#50c6d0":null,color:t.isSelected?"#fff":"#3f4254",fontSize:"12px!important",padding:"6px 12px 5px 12px!important",fontWeight:"400",fontFamily:"Poppins, Helvetica, 'sans-serif'",borderRadius:"2px !important"}),noOptionsMessage:e=>({...e,fontSize:"12px!important",padding:"5px 8px!important",color:"#3f4254!important"}),menu:e=>({...e,padding:"1px 4px",zIndex:"99999999",position:"absolute",borderRadius:"0px !important"})},Zv=e=>{const{children:t,sx:n,...i}=e;return w.jsx("div",{className:ct["form-group"],style:n,...i,children:t})},Hv=e=>{const{children:t,sx:n,...i}=e,r=x.Children.toArray(t).filter(s=>s.type.displayName==="biznext-ui-input-label"),o=x.Children.toArray(t).filter(s=>s.type.displayName==="biznext-ui-input-control");return w.jsxs("div",{className:It(ct["form-input-group"]),style:n,...i,children:[r,w.jsxs("div",{className:ct["form-input-control-group"],children:[o,w.jsx("span",{className:ct["form-input-group-error-text"],children:"error message"})]})]})},Rl=e=>{const{required:t=!1,children:n,sx:i,...r}=e;return w.jsx("label",{className:It(ct["form-input-group-label"],t&&ct.required),style:i,...r,children:n})},Wl=x.forwardRef((e,t)=>{const{type:n,focus:i,sx:r,...o}=e;let s=w.jsx(w.Fragment,{});const u=x.useRef(null);switch(x.useEffect(()=>{u.current&&u.current.focus()},[i]),n){case"input":s=w.jsx("input",{type:"input",className:ct["form-input-control"],ref:i?u:t,style:r,...o});break;case"select":s=w.jsx(Lv,{styles:Xv,...o});break;default:s=w.jsx(w.Fragment,{});break}return s});Rl.displayName="biznext-ui-input-label",Wl.displayName="biznext-ui-input-control",an.Group=Zv,an.InputGroup=Hv,an.Label=Rl,an.Control=Wl,Ee.BiznextUIProvider=Rp,Ee.Form=an,Ee.Modal=Bm,Ee.useConfirmDialog=Lm,Ee.useToast=Kr,Object.defineProperty(Ee,Symbol.toStringTag,{value:"Module"})});
|
|
53
|
+
`]))),d0=function(t,n){var i=t.isFocused,r=t.size,o=t.theme,s=o.colors,u=o.spacing.baseUnit;return B({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:r,lineHeight:1,marginRight:r,textAlign:"center",verticalAlign:"middle"},n?{}:{color:i?s.neutral60:s.neutral20,padding:u*2})},Hr=function(t){var n=t.delay,i=t.offset;return F("span",{css:Nr({animation:"".concat(c0," 1s ease-in-out ").concat(n,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:i?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},process.env.NODE_ENV==="production"?"":";label:LoadingDot;",process.env.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW1RSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgUmVhY3ROb2RlIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsganN4LCBrZXlmcmFtZXMgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmltcG9ydCB7XG4gIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lLFxuICBDU1NPYmplY3RXaXRoTGFiZWwsXG4gIEdyb3VwQmFzZSxcbn0gZnJvbSAnLi4vdHlwZXMnO1xuaW1wb3J0IHsgZ2V0U3R5bGVQcm9wcyB9IGZyb20gJy4uL3V0aWxzJztcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBEcm9wZG93biAmIENsZWFyIEljb25zXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgU3ZnID0gKHtcbiAgc2l6ZSxcbiAgLi4ucHJvcHNcbn06IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10gJiB7IHNpemU6IG51bWJlciB9KSA9PiAoXG4gIDxzdmdcbiAgICBoZWlnaHQ9e3NpemV9XG4gICAgd2lkdGg9e3NpemV9XG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pbmdJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPikgPT4ge1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKFxuICAgICAgICB7IC4uLnJlc3RQcm9wcywgaW5uZXJQcm9wcywgaXNSdGwsIHNpemUgfSxcbiAgICAgICAgJ2xvYWRpbmdJbmRpY2F0b3InLFxuICAgICAgICB7XG4gICAgICAgICAgaW5kaWNhdG9yOiB0cnVlLFxuICAgICAgICAgICdsb2FkaW5nLWluZGljYXRvcic6IHRydWUsXG4gICAgICAgIH1cbiAgICAgICl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MH0gb2Zmc2V0PXtpc1J0bH0gLz5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXsxNjB9IG9mZnNldCAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezMyMH0gb2Zmc2V0PXshaXNSdGx9IC8+XG4gICAgPC9kaXY+XG4gICk7XG59O1xuIl19 */")})},f0=function(t){var n=t.innerProps,i=t.isRtl,r=t.size,o=r===void 0?4:r,s=qe(t,t0);return F("div",W({},ue(B(B({},s),{},{innerProps:n,isRtl:i,size:o}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),n),F(Hr,{delay:0,offset:i}),F(Hr,{delay:160,offset:!0}),F(Hr,{delay:320,offset:!i}))},h0=function(t,n){var i=t.isDisabled,r=t.isFocused,o=t.theme,s=o.colors,u=o.borderRadius,a=o.spacing;return B({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:a.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},n?{}:{backgroundColor:i?s.neutral5:s.neutral0,borderColor:i?s.neutral10:r?s.primary:s.neutral20,borderRadius:u,borderStyle:"solid",borderWidth:1,boxShadow:r?"0 0 0 1px ".concat(s.primary):void 0,"&:hover":{borderColor:r?s.primary:s.neutral30}})},p0=function(t){var n=t.children,i=t.isDisabled,r=t.isFocused,o=t.innerRef,s=t.innerProps,u=t.menuIsOpen;return F("div",W({ref:o},ue(t,"control",{control:!0,"control--is-disabled":i,"control--is-focused":r,"control--menu-is-open":u}),s,{"aria-disabled":i||void 0}),n)},m0=p0,g0=["data"],b0=function(t,n){var i=t.theme.spacing;return n?{}:{paddingBottom:i.baseUnit*2,paddingTop:i.baseUnit*2}},v0=function(t){var n=t.children,i=t.cx,r=t.getStyles,o=t.getClassNames,s=t.Heading,u=t.headingProps,a=t.innerProps,l=t.label,c=t.theme,d=t.selectProps;return F("div",W({},ue(t,"group",{group:!0}),a),F(s,W({},u,{selectProps:d,theme:c,getStyles:r,getClassNames:o,cx:i}),l),F("div",null,n))},y0=function(t,n){var i=t.theme,r=i.colors,o=i.spacing;return B({label:"group",cursor:"default",display:"block"},n?{}:{color:r.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:o.baseUnit*3,paddingRight:o.baseUnit*3,textTransform:"uppercase"})},C0=function(t){var n=qu(t);n.data;var i=qe(n,g0);return F("div",W({},ue(t,"groupHeading",{"group-heading":!0}),i))},I0=v0,x0=["innerRef","isDisabled","isHidden","inputClassName"],A0=function(t,n){var i=t.isDisabled,r=t.value,o=t.theme,s=o.spacing,u=o.colors;return B(B({visibility:i?"hidden":"visible",transform:r?"translateZ(0)":""},S0),n?{}:{margin:s.baseUnit/2,paddingBottom:s.baseUnit/2,paddingTop:s.baseUnit/2,color:u.neutral80})},dl={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},S0={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":B({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},dl)},T0=function(t){return B({label:"input",color:"inherit",background:0,opacity:t?0:1,width:"100%"},dl)},E0=function(t){var n=t.cx,i=t.value,r=qu(t),o=r.innerRef,s=r.isDisabled,u=r.isHidden,a=r.inputClassName,l=qe(r,x0);return F("div",W({},ue(t,"input",{"input-container":!0}),{"data-value":i||""}),F("input",W({className:n({input:!0},a),ref:o,style:T0(u),disabled:s},l)))},P0=E0,w0=function(t,n){var i=t.theme,r=i.spacing,o=i.borderRadius,s=i.colors;return B({label:"multiValue",display:"flex",minWidth:0},n?{}:{backgroundColor:s.neutral10,borderRadius:o/2,margin:r.baseUnit/2})},V0=function(t,n){var i=t.theme,r=i.borderRadius,o=i.colors,s=t.cropWithEllipsis;return B({overflow:"hidden",textOverflow:s||s===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},n?{}:{borderRadius:r/2,color:o.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},D0=function(t,n){var i=t.theme,r=i.spacing,o=i.borderRadius,s=i.colors,u=t.isFocused;return B({alignItems:"center",display:"flex"},n?{}:{borderRadius:o/2,backgroundColor:u?s.dangerLight:void 0,paddingLeft:r.baseUnit,paddingRight:r.baseUnit,":hover":{backgroundColor:s.dangerLight,color:s.danger}})},fl=function(t){var n=t.children,i=t.innerProps;return F("div",i,n)},F0=fl,M0=fl;function B0(e){var t=e.children,n=e.innerProps;return F("div",W({role:"button"},n),t||F(Zr,{size:14}))}var G0=function(t){var n=t.children,i=t.components,r=t.data,o=t.innerProps,s=t.isDisabled,u=t.removeProps,a=t.selectProps,l=i.Container,c=i.Label,d=i.Remove;return F(l,{data:r,innerProps:B(B({},ue(t,"multiValue",{"multi-value":!0,"multi-value--is-disabled":s})),o),selectProps:a},F(c,{data:r,innerProps:B({},ue(t,"multiValueLabel",{"multi-value__label":!0})),selectProps:a},n),F(d,{data:r,innerProps:B(B({},ue(t,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(n||"option")},u),selectProps:a}))},O0=G0,N0=function(t,n){var i=t.isDisabled,r=t.isFocused,o=t.isSelected,s=t.theme,u=s.spacing,a=s.colors;return B({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},n?{}:{backgroundColor:o?a.primary:r?a.primary25:"transparent",color:i?a.neutral20:o?a.neutral0:"inherit",padding:"".concat(u.baseUnit*2,"px ").concat(u.baseUnit*3,"px"),":active":{backgroundColor:i?void 0:o?a.primary:a.primary50}})},R0=function(t){var n=t.children,i=t.isDisabled,r=t.isFocused,o=t.isSelected,s=t.innerRef,u=t.innerProps;return F("div",W({},ue(t,"option",{option:!0,"option--is-disabled":i,"option--is-focused":r,"option--is-selected":o}),{ref:s,"aria-disabled":i},u),n)},W0=R0,L0=function(t,n){var i=t.theme,r=i.spacing,o=i.colors;return B({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},n?{}:{color:o.neutral50,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},X0=function(t){var n=t.children,i=t.innerProps;return F("div",W({},ue(t,"placeholder",{placeholder:!0}),i),n)},Z0=X0,H0=function(t,n){var i=t.isDisabled,r=t.theme,o=r.spacing,s=r.colors;return B({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},n?{}:{color:i?s.neutral40:s.neutral80,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},k0=function(t){var n=t.children,i=t.isDisabled,r=t.innerProps;return F("div",W({},ue(t,"singleValue",{"single-value":!0,"single-value--is-disabled":i}),r),n)},z0=k0,j0={ClearIndicator:a0,Control:m0,DropdownIndicator:o0,DownChevron:ll,CrossIcon:Zr,Group:I0,GroupHeading:C0,IndicatorsContainer:qb,IndicatorSeparator:l0,Input:P0,LoadingIndicator:f0,Menu:Lb,MenuList:Zb,MenuPortal:Jb,LoadingMessage:jb,NoOptionsMessage:zb,MultiValue:O0,MultiValueContainer:F0,MultiValueLabel:M0,MultiValueRemove:B0,Option:W0,Placeholder:Z0,SelectContainer:_b,SingleValue:z0,ValueContainer:Kb},Y0=function(t){return B(B({},j0),t.components)},hl=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function J0(e,t){return!!(e===t||hl(e)&&hl(t))}function U0(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!J0(e[n],t[n]))return!1;return!0}function _0(e,t){t===void 0&&(t=U0);var n=null;function i(){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 s=e.apply(this,r);return n={lastResult:s,lastArgs:r,lastThis:this},s}return i.clear=function(){n=null},i}function Q0(){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)."}for(var K0=process.env.NODE_ENV==="production"?{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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkExMXlUZXh0LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFNSSIsImZpbGUiOiJBMTF5VGV4dC50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKiogQGpzeCBqc3ggKi9cbmltcG9ydCB7IGpzeCB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuLy8gQXNzaXN0aXZlIHRleHQgdG8gZGVzY3JpYmUgdmlzdWFsIGVsZW1lbnRzLiBIaWRkZW4gZm9yIHNpZ2h0ZWQgdXNlcnMuXG5jb25zdCBBMTF5VGV4dCA9IChwcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ10pID0+IChcbiAgPHNwYW5cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAnYTExeVRleHQnLFxuICAgICAgekluZGV4OiA5OTk5LFxuICAgICAgYm9yZGVyOiAwLFxuICAgICAgY2xpcDogJ3JlY3QoMXB4LCAxcHgsIDFweCwgMXB4KScsXG4gICAgICBoZWlnaHQ6IDEsXG4gICAgICB3aWR0aDogMSxcbiAgICAgIHBvc2l0aW9uOiAnYWJzb2x1dGUnLFxuICAgICAgb3ZlcmZsb3c6ICdoaWRkZW4nLFxuICAgICAgcGFkZGluZzogMCxcbiAgICAgIHdoaXRlU3BhY2U6ICdub3dyYXAnLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IGRlZmF1bHQgQTExeVRleHQ7XG4iXX0= */",toString:Q0},$0=function(t){return F("span",W({css:K0},t))},pl=$0,q0={guidance:function(t){var n=t.isSearchable,i=t.isMulti,r=t.tabSelectsValue,o=t.context,s=t.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 s?"".concat(t["aria-label"]||"Select"," is focused ").concat(n?",type to refine list":"",", press Down to open the menu, ").concat(i?" 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(t){var n=t.action,i=t.label,r=i===void 0?"":i,o=t.labels,s=t.isDisabled;switch(n){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 s?"option ".concat(r," is disabled. Select another option."):"option ".concat(r,", selected.");default:return""}},onFocus:function(t){var n=t.context,i=t.focused,r=t.options,o=t.label,s=o===void 0?"":o,u=t.selectValue,a=t.isDisabled,l=t.isSelected,c=t.isAppleDevice,d=function(g,v){return g&&g.length?"".concat(g.indexOf(v)+1," of ").concat(g.length):""};if(n==="value"&&u)return"value ".concat(s," focused, ").concat(d(u,i),".");if(n==="menu"&&c){var f=a?" disabled":"",p="".concat(l?" selected":"").concat(f);return"".concat(s).concat(p,", ").concat(d(r,i),".")}return""},onFilter:function(t){var n=t.inputValue,i=t.resultsMessage;return"".concat(i).concat(n?" for search term "+n:"",".")}},ev=function(t){var n=t.ariaSelection,i=t.focusedOption,r=t.focusedValue,o=t.focusableOptions,s=t.isFocused,u=t.selectValue,a=t.selectProps,l=t.id,c=t.isAppleDevice,d=a.ariaLiveMessages,f=a.getOptionLabel,p=a.inputValue,b=a.isMulti,g=a.isOptionDisabled,v=a.isSearchable,C=a.menuIsOpen,y=a.options,m=a.screenReaderStatus,I=a.tabSelectsValue,h=a.isLoading,S=a["aria-label"],T=a["aria-live"],P=x.useMemo(function(){return B(B({},q0),d||{})},[d]),M=x.useMemo(function(){var k="";if(n&&P.onChange){var z=n.option,ie=n.options,re=n.removedValue,be=n.removedValues,E=n.value,V=function(H){return Array.isArray(H)?null:H},D=re||z||V(E),G=D?f(D):"",O=ie||be||void 0,j=O?O.map(f):[],N=B({isDisabled:D&&g(D,u),label:G,labels:j},n);k=P.onChange(N)}return k},[n,P,g,u,f]),X=x.useMemo(function(){var k="",z=i||r,ie=!!(i&&u&&u.includes(i));if(z&&P.onFocus){var re={focused:z,label:f(z),isDisabled:g(z,u),isSelected:ie,options:o,context:z===i?"menu":"value",selectValue:u,isAppleDevice:c};k=P.onFocus(re)}return k},[i,r,f,g,P,o,u,c]),U=x.useMemo(function(){var k="";if(C&&y.length&&!h&&P.onFilter){var z=m({count:o.length});k=P.onFilter({inputValue:p,resultsMessage:z})}return k},[o,p,C,P,y,m,h]),ne=(n==null?void 0:n.action)==="initial-input-focus",de=x.useMemo(function(){var k="";if(P.guidance){var z=r?"value":C?"menu":"input";k=P.guidance({"aria-label":S,context:z,isDisabled:i&&g(i,u),isMulti:b,isSearchable:v,tabSelectsValue:I,isInitialFocus:ne})}return k},[S,i,r,b,g,v,C,P,u,I,ne]),oe=F(x.Fragment,null,F("span",{id:"aria-selection"},M),F("span",{id:"aria-focused"},X),F("span",{id:"aria-results"},U),F("span",{id:"aria-guidance"},de));return F(x.Fragment,null,F(pl,{id:l},ne&&oe),F(pl,{"aria-live":T,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},s&&!ne&&oe))},tv=ev,kr=[{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źẑżžẓẕƶȥɀⱬꝣ"}],nv=new RegExp("["+kr.map(function(e){return e.letters}).join("")+"]","g"),ml={},zr=0;zr<kr.length;zr++)for(var jr=kr[zr],Yr=0;Yr<jr.letters.length;Yr++)ml[jr.letters[Yr]]=jr.base;var gl=function(t){return t.replace(nv,function(n){return ml[n]})},iv=_0(gl),bl=function(t){return t.replace(/^\s+|\s+$/g,"")},rv=function(t){return"".concat(t.label," ").concat(t.value)},ov=function(t){return function(n,i){if(n.data.__isNew__)return!0;var r=B({ignoreCase:!0,ignoreAccents:!0,stringify:rv,trim:!0,matchFrom:"any"},t),o=r.ignoreCase,s=r.ignoreAccents,u=r.stringify,a=r.trim,l=r.matchFrom,c=a?bl(i):i,d=a?bl(u(n)):u(n);return o&&(c=c.toLowerCase(),d=d.toLowerCase()),s&&(c=iv(c),d=gl(d)),l==="start"?d.substr(0,c.length)===c:d.indexOf(c)>-1}},sv=["innerRef"];function av(e){var t=e.innerRef,n=qe(e,sv),i=Fb(n,"onExited","in","enter","exit","appear");return F("input",W({ref:t},i,{css:Nr({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)"},process.env.NODE_ENV==="production"?"":";label:DummyInput;",process.env.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkR1bW15SW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCTSIsImZpbGUiOiJEdW1teUlucHV0LnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgUmVmIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgcmVtb3ZlUHJvcHMgfSBmcm9tICcuLi91dGlscyc7XG5cbmV4cG9ydCBkZWZhdWx0IGZ1bmN0aW9uIER1bW15SW5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gICAgY29sb3I6ICd0cmFuc3BhcmVudCcsXG5cbiAgICAgICAgLy8gcmVtb3ZlIGN1cnNvciBvbiBtb2JpbGUgd2hpbHN0IG1haW50YWluaW5nIFwic2Nyb2xsIGludG8gdmlld1wiIGJlaGF2aW91clxuICAgICAgICBsZWZ0OiAtMTAwLFxuICAgICAgICBvcGFjaXR5OiAwLFxuICAgICAgICBwb3NpdGlvbjogJ3JlbGF0aXZlJyxcbiAgICAgICAgdHJhbnNmb3JtOiAnc2NhbGUoLjAxKScsXG4gICAgICB9fVxuICAgIC8+XG4gICk7XG59XG4iXX0= */")}))}var uv=function(t){t.cancelable&&t.preventDefault(),t.stopPropagation()};function lv(e){var t=e.isEnabled,n=e.onBottomArrive,i=e.onBottomLeave,r=e.onTopArrive,o=e.onTopLeave,s=x.useRef(!1),u=x.useRef(!1),a=x.useRef(0),l=x.useRef(null),c=x.useCallback(function(v,C){if(l.current!==null){var y=l.current,m=y.scrollTop,I=y.scrollHeight,h=y.clientHeight,S=l.current,T=C>0,P=I-h-m,M=!1;P>C&&s.current&&(i&&i(v),s.current=!1),T&&u.current&&(o&&o(v),u.current=!1),T&&C>P?(n&&!s.current&&n(v),S.scrollTop=I,M=!0,s.current=!0):!T&&-C>m&&(r&&!u.current&&r(v),S.scrollTop=0,M=!0,u.current=!0),M&&uv(v)}},[n,i,r,o]),d=x.useCallback(function(v){c(v,v.deltaY)},[c]),f=x.useCallback(function(v){a.current=v.changedTouches[0].clientY},[]),p=x.useCallback(function(v){var C=a.current-v.changedTouches[0].clientY;c(v,C)},[c]),b=x.useCallback(function(v){if(v){var C=wb?{passive:!1}:!1;v.addEventListener("wheel",d,C),v.addEventListener("touchstart",f,C),v.addEventListener("touchmove",p,C)}},[p,f,d]),g=x.useCallback(function(v){v&&(v.removeEventListener("wheel",d,!1),v.removeEventListener("touchstart",f,!1),v.removeEventListener("touchmove",p,!1))},[p,f,d]);return x.useEffect(function(){if(t){var v=l.current;return b(v),function(){g(v)}}},[t,b,g]),function(v){l.current=v}}var vl=["boxSizing","height","overflow","paddingRight","position"],yl={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function Cl(e){e.preventDefault()}function Il(e){e.stopPropagation()}function xl(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;e===0?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function Al(){return"ontouchstart"in window||navigator.maxTouchPoints}var Sl=!!(typeof window<"u"&&window.document&&window.document.createElement),sn=0,Ot={capture:!1,passive:!1};function cv(e){var t=e.isEnabled,n=e.accountForScrollbars,i=n===void 0?!0:n,r=x.useRef({}),o=x.useRef(null),s=x.useCallback(function(a){if(Sl){var l=document.body,c=l&&l.style;if(i&&vl.forEach(function(b){var g=c&&c[b];r.current[b]=g}),i&&sn<1){var d=parseInt(r.current.paddingRight,10)||0,f=document.body?document.body.clientWidth:0,p=window.innerWidth-f+d||0;Object.keys(yl).forEach(function(b){var g=yl[b];c&&(c[b]=g)}),c&&(c.paddingRight="".concat(p,"px"))}l&&Al()&&(l.addEventListener("touchmove",Cl,Ot),a&&(a.addEventListener("touchstart",xl,Ot),a.addEventListener("touchmove",Il,Ot))),sn+=1}},[i]),u=x.useCallback(function(a){if(Sl){var l=document.body,c=l&&l.style;sn=Math.max(sn-1,0),i&&sn<1&&vl.forEach(function(d){var f=r.current[d];c&&(c[d]=f)}),l&&Al()&&(l.removeEventListener("touchmove",Cl,Ot),a&&(a.removeEventListener("touchstart",xl,Ot),a.removeEventListener("touchmove",Il,Ot)))}},[i]);return x.useEffect(function(){if(t){var a=o.current;return s(a),function(){u(a)}}},[t,s,u]),function(a){o.current=a}}function dv(){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)."}var fv=function(t){var n=t.target;return n.ownerDocument.activeElement&&n.ownerDocument.activeElement.blur()},hv=process.env.NODE_ENV==="production"?{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+IHZvaWQ7XG4gIHJlYWRvbmx5IG9uVG9wQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiA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U2Nyb2xsQ2FwdHVyZVRhcmdldChlbGVtZW50KTtcbiAgICBzZXRTY3JvbGxMb2NrVGFyZ2V0KGVsZW1lbnQpO1xuICB9O1xuXG4gIHJldHVybiAoXG4gICAgPEZyYWdtZW50PlxuICAgICAge2xvY2tFbmFibGVkICYmIChcbiAgICAgICAgPGRpdlxuICAgICAgICAgIG9uQ2xpY2s9e2JsdXJTZWxlY3RJbnB1dH1cbiAgICAgICAgICBjc3M9e3sgcG9zaXRpb246ICdmaXhlZCcsIGxlZnQ6IDAsIGJvdHRvbTogMCwgcmlnaHQ6IDAsIHRvcDogMCB9fVxuICAgICAgICAvPlxuICAgICAgKX1cbiAgICAgIHtjaGlsZHJlbih0YXJnZXRSZWYpfVxuICAgIDwvRnJhZ21lbnQ+XG4gICk7XG59XG4iXX0= */",toString:dv};function pv(e){var t=e.children,n=e.lockEnabled,i=e.captureEnabled,r=i===void 0?!0:i,o=e.onBottomArrive,s=e.onBottomLeave,u=e.onTopArrive,a=e.onTopLeave,l=lv({isEnabled:r,onBottomArrive:o,onBottomLeave:s,onTopArrive:u,onTopLeave:a}),c=cv({isEnabled:n}),d=function(p){l(p),c(p)};return F(x.Fragment,null,n&&F("div",{onClick:fv,css:hv}),t(d))}function mv(){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)."}var gv=process.env.NODE_ENV==="production"?{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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlJlcXVpcmVkSW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWNJ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F("input",{required:!0,name:n,tabIndex:-1,"aria-hidden":"true",onFocus:i,css:gv,value:"",onChange:function(){}})},vv=bv;function Jr(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function yv(){return Jr(/^iPhone/i)}function Tl(){return Jr(/^Mac/i)}function Cv(){return Jr(/^iPad/i)||Tl()&&navigator.maxTouchPoints>1}function Iv(){return yv()||Cv()}function xv(){return Tl()||Iv()}var Av=function(t){return t.label},Sv=function(t){return t.label},Tv=function(t){return t.value},Ev=function(t){return!!t.isDisabled},Pv={clearIndicator:s0,container:Ub,control:h0,dropdownIndicator:r0,group:b0,groupHeading:y0,indicatorsContainer:$b,indicatorSeparator:u0,input:A0,loadingIndicator:d0,loadingMessage:kb,menu:Nb,menuList:Xb,menuPortal:Yb,multiValue:w0,multiValueLabel:V0,multiValueRemove:D0,noOptionsMessage:Hb,option:N0,placeholder:L0,singleValue:H0,valueContainer:Qb},wv={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%)"},Vv=4,El=4,Dv=38,Fv=El*2,Mv={baseUnit:El,controlHeight:Dv,menuGutter:Fv},Ur={borderRadius:Vv,colors:wv,spacing:Mv},Bv={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:nl(),captureMenuScroll:!nl(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:ov(),formatGroupLabel:Av,getOptionLabel:Sv,getOptionValue:Tv,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:Ev,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!Eb(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(t){var n=t.count;return"".concat(n," result").concat(n!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function Pl(e,t,n,i){var r=Ml(e,t,n),o=Bl(e,t,n),s=Fl(e,t),u=ri(e,t);return{type:"option",data:t,isDisabled:r,isSelected:o,label:s,value:u,index:i}}function ii(e,t){return e.options.map(function(n,i){if("options"in n){var r=n.options.map(function(s,u){return Pl(e,s,t,u)}).filter(function(s){return Dl(e,s)});return r.length>0?{type:"group",data:n,options:r,index:i}:void 0}var o=Pl(e,n,t,i);return Dl(e,o)?o:void 0}).filter(Vb)}function wl(e){return e.reduce(function(t,n){return n.type==="group"?t.push.apply(t,Er(n.options.map(function(i){return i.data}))):t.push(n.data),t},[])}function Vl(e,t){return e.reduce(function(n,i){return i.type==="group"?n.push.apply(n,Er(i.options.map(function(r){return{data:r.data,id:"".concat(t,"-").concat(i.index,"-").concat(r.index)}}))):n.push({data:i.data,id:"".concat(t,"-").concat(i.index)}),n},[])}function Gv(e,t){return wl(ii(e,t))}function Dl(e,t){var n=e.inputValue,i=n===void 0?"":n,r=t.data,o=t.isSelected,s=t.label,u=t.value;return(!Ol(e)||!o)&&Gl(e,{label:s,value:u,data:r},i)}function Ov(e,t){var n=e.focusedValue,i=e.selectValue,r=i.indexOf(n);if(r>-1){var o=t.indexOf(n);if(o>-1)return n;if(r<t.length)return t[r]}return null}function Nv(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}var _r=function(t,n){var i,r=(i=t.find(function(o){return o.data===n}))===null||i===void 0?void 0:i.id;return r||null},Fl=function(t,n){return t.getOptionLabel(n)},ri=function(t,n){return t.getOptionValue(n)};function Ml(e,t,n){return typeof e.isOptionDisabled=="function"?e.isOptionDisabled(t,n):!1}function Bl(e,t,n){if(n.indexOf(t)>-1)return!0;if(typeof e.isOptionSelected=="function")return e.isOptionSelected(t,n);var i=ri(e,t);return n.some(function(r){return ri(e,r)===i})}function Gl(e,t,n){return e.filterOption?e.filterOption(t,n):!0}var Ol=function(t){var n=t.hideSelectedOptions,i=t.isMulti;return n===void 0?i:n},Rv=1,Nl=function(e){_m(n,e);var t=$m(n);function n(i){var r;if(Jm(this,n),r=t.call(this,i),r.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:""},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.isAppleDevice=xv(),r.controlRef=null,r.getControlRef=function(a){r.controlRef=a},r.focusedOptionRef=null,r.getFocusedOptionRef=function(a){r.focusedOptionRef=a},r.menuListRef=null,r.getMenuListRef=function(a){r.menuListRef=a},r.inputRef=null,r.getInputRef=function(a){r.inputRef=a},r.focus=r.focusInput,r.blur=r.blurInput,r.onChange=function(a,l){var c=r.props,d=c.onChange,f=c.name;l.name=f,r.ariaOnChange(a,l),d(a,l)},r.setValue=function(a,l,c){var d=r.props,f=d.closeMenuOnSelect,p=d.isMulti,b=d.inputValue;r.onInputChange("",{action:"set-value",prevInputValue:b}),f&&(r.setState({inputIsHiddenAfterUpdate:!p}),r.onMenuClose()),r.setState({clearFocusValueOnUpdate:!0}),r.onChange(a,{action:l,option:c})},r.selectOption=function(a){var l=r.props,c=l.blurInputOnSelect,d=l.isMulti,f=l.name,p=r.state.selectValue,b=d&&r.isOptionSelected(a,p),g=r.isOptionDisabled(a,p);if(b){var v=r.getOptionValue(a);r.setValue(p.filter(function(C){return r.getOptionValue(C)!==v}),"deselect-option",a)}else if(!g)d?r.setValue([].concat(Er(p),[a]),"select-option",a):r.setValue(a,"select-option");else{r.ariaOnChange(a,{action:"select-option",option:a,name:f});return}c&&r.blurInput()},r.removeValue=function(a){var l=r.props.isMulti,c=r.state.selectValue,d=r.getOptionValue(a),f=c.filter(function(b){return r.getOptionValue(b)!==d}),p=ni(l,f,f[0]||null);r.onChange(p,{action:"remove-value",removedValue:a}),r.focusInput()},r.clearValue=function(){var a=r.state.selectValue;r.onChange(ni(r.props.isMulti,[],null),{action:"clear",removedValues:a})},r.popValue=function(){var a=r.props.isMulti,l=r.state.selectValue,c=l[l.length-1],d=l.slice(0,l.length-1),f=ni(a,d,d[0]||null);r.onChange(f,{action:"pop-value",removedValue:c})},r.getFocusedOptionId=function(a){return _r(r.state.focusableOptionsWithIds,a)},r.getFocusableOptionsWithIds=function(){return Vl(ii(r.props,r.state.selectValue),r.getElementId("option"))},r.getValue=function(){return r.state.selectValue},r.cx=function(){for(var a=arguments.length,l=new Array(a),c=0;c<a;c++)l[c]=arguments[c];return Ib.apply(void 0,[r.props.classNamePrefix].concat(l))},r.getOptionLabel=function(a){return Fl(r.props,a)},r.getOptionValue=function(a){return ri(r.props,a)},r.getStyles=function(a,l){var c=r.props.unstyled,d=Pv[a](l,c);d.boxSizing="border-box";var f=r.props.styles[a];return f?f(d,l):d},r.getClassNames=function(a,l){var c,d;return(c=(d=r.props.classNames)[a])===null||c===void 0?void 0:c.call(d,l)},r.getElementId=function(a){return"".concat(r.state.instancePrefix,"-").concat(a)},r.getComponents=function(){return Y0(r.props)},r.buildCategorizedOptions=function(){return ii(r.props,r.state.selectValue)},r.getCategorizedOptions=function(){return r.props.menuIsOpen?r.buildCategorizedOptions():[]},r.buildFocusableOptions=function(){return wl(r.buildCategorizedOptions())},r.getFocusableOptions=function(){return r.props.menuIsOpen?r.buildFocusableOptions():[]},r.ariaOnChange=function(a,l){r.setState({ariaSelection:B({value:a},l)})},r.onMenuMouseDown=function(a){a.button===0&&(a.stopPropagation(),a.preventDefault(),r.focusInput())},r.onMenuMouseMove=function(a){r.blockOptionHover=!1},r.onControlMouseDown=function(a){if(!a.defaultPrevented){var l=r.props.openMenuOnClick;r.state.isFocused?r.props.menuIsOpen?a.target.tagName!=="INPUT"&&a.target.tagName!=="TEXTAREA"&&r.onMenuClose():l&&r.openMenu("first"):(l&&(r.openAfterFocus=!0),r.focusInput()),a.target.tagName!=="INPUT"&&a.target.tagName!=="TEXTAREA"&&a.preventDefault()}},r.onDropdownIndicatorMouseDown=function(a){if(!(a&&a.type==="mousedown"&&a.button!==0)&&!r.props.isDisabled){var l=r.props,c=l.isMulti,d=l.menuIsOpen;r.focusInput(),d?(r.setState({inputIsHiddenAfterUpdate:!c}),r.onMenuClose()):r.openMenu("first"),a.preventDefault()}},r.onClearIndicatorMouseDown=function(a){a&&a.type==="mousedown"&&a.button!==0||(r.clearValue(),a.preventDefault(),r.openAfterFocus=!1,a.type==="touchend"?r.focusInput():setTimeout(function(){return r.focusInput()}))},r.onScroll=function(a){typeof r.props.closeMenuOnScroll=="boolean"?a.target instanceof HTMLElement&&$n(a.target)&&r.props.onMenuClose():typeof r.props.closeMenuOnScroll=="function"&&r.props.closeMenuOnScroll(a)&&r.props.onMenuClose()},r.onCompositionStart=function(){r.isComposing=!0},r.onCompositionEnd=function(){r.isComposing=!1},r.onTouchStart=function(a){var l=a.touches,c=l&&l.item(0);c&&(r.initialTouchX=c.clientX,r.initialTouchY=c.clientY,r.userIsDragging=!1)},r.onTouchMove=function(a){var l=a.touches,c=l&&l.item(0);if(c){var d=Math.abs(c.clientX-r.initialTouchX),f=Math.abs(c.clientY-r.initialTouchY),p=5;r.userIsDragging=d>p||f>p}},r.onTouchEnd=function(a){r.userIsDragging||(r.controlRef&&!r.controlRef.contains(a.target)&&r.menuListRef&&!r.menuListRef.contains(a.target)&&r.blurInput(),r.initialTouchX=0,r.initialTouchY=0)},r.onControlTouchEnd=function(a){r.userIsDragging||r.onControlMouseDown(a)},r.onClearIndicatorTouchEnd=function(a){r.userIsDragging||r.onClearIndicatorMouseDown(a)},r.onDropdownIndicatorTouchEnd=function(a){r.userIsDragging||r.onDropdownIndicatorMouseDown(a)},r.handleInputChange=function(a){var l=r.props.inputValue,c=a.currentTarget.value;r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange(c,{action:"input-change",prevInputValue:l}),r.props.menuIsOpen||r.onMenuOpen()},r.onInputFocus=function(a){r.props.onFocus&&r.props.onFocus(a),r.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(r.openAfterFocus||r.props.openMenuOnFocus)&&r.openMenu("first"),r.openAfterFocus=!1},r.onInputBlur=function(a){var l=r.props.inputValue;if(r.menuListRef&&r.menuListRef.contains(document.activeElement)){r.inputRef.focus();return}r.props.onBlur&&r.props.onBlur(a),r.onInputChange("",{action:"input-blur",prevInputValue:l}),r.onMenuClose(),r.setState({focusedValue:null,isFocused:!1})},r.onOptionHover=function(a){if(!(r.blockOptionHover||r.state.focusedOption===a)){var l=r.getFocusableOptions(),c=l.indexOf(a);r.setState({focusedOption:a,focusedOptionId:c>-1?r.getFocusedOptionId(a):null})}},r.shouldHideSelectedOptions=function(){return Ol(r.props)},r.onValueInputFocus=function(a){a.preventDefault(),a.stopPropagation(),r.focus()},r.onKeyDown=function(a){var l=r.props,c=l.isMulti,d=l.backspaceRemovesValue,f=l.escapeClearsValue,p=l.inputValue,b=l.isClearable,g=l.isDisabled,v=l.menuIsOpen,C=l.onKeyDown,y=l.tabSelectsValue,m=l.openMenuOnFocus,I=r.state,h=I.focusedOption,S=I.focusedValue,T=I.selectValue;if(!g&&!(typeof C=="function"&&(C(a),a.defaultPrevented))){switch(r.blockOptionHover=!0,a.key){case"ArrowLeft":if(!c||p)return;r.focusValue("previous");break;case"ArrowRight":if(!c||p)return;r.focusValue("next");break;case"Delete":case"Backspace":if(p)return;if(S)r.removeValue(S);else{if(!d)return;c?r.popValue():b&&r.clearValue()}break;case"Tab":if(r.isComposing||a.shiftKey||!v||!y||!h||m&&r.isOptionSelected(h,T))return;r.selectOption(h);break;case"Enter":if(a.keyCode===229)break;if(v){if(!h||r.isComposing)return;r.selectOption(h);break}return;case"Escape":v?(r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange("",{action:"menu-close",prevInputValue:p}),r.onMenuClose()):b&&f&&r.clearValue();break;case" ":if(p)return;if(!v){r.openMenu("first");break}if(!h)return;r.selectOption(h);break;case"ArrowUp":v?r.focusOption("up"):r.openMenu("last");break;case"ArrowDown":v?r.focusOption("down"):r.openMenu("first");break;case"PageUp":if(!v)return;r.focusOption("pageup");break;case"PageDown":if(!v)return;r.focusOption("pagedown");break;case"Home":if(!v)return;r.focusOption("first");break;case"End":if(!v)return;r.focusOption("last");break;default:return}a.preventDefault()}},r.state.instancePrefix="react-select-"+(r.props.instanceId||++Rv),r.state.selectValue=$u(i.value),i.menuIsOpen&&r.state.selectValue.length){var o=r.getFocusableOptionsWithIds(),s=r.buildFocusableOptions(),u=s.indexOf(r.state.selectValue[0]);r.state.focusableOptionsWithIds=o,r.state.focusedOption=s[u],r.state.focusedOptionId=_r(o,s[u])}return r}return Um(n,[{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&&tl(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(r){var o=this.props,s=o.isDisabled,u=o.menuIsOpen,a=this.state.isFocused;(a&&!s&&r.isDisabled||a&&u&&!r.menuIsOpen)&&this.focusInput(),a&&s&&!r.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!a&&!s&&r.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(tl(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(r,o){this.props.onInputChange(r,o)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(r){var o=this,s=this.state,u=s.selectValue,a=s.isFocused,l=this.buildFocusableOptions(),c=r==="first"?0:l.length-1;if(!this.props.isMulti){var d=l.indexOf(u[0]);d>-1&&(c=d)}this.scrollToFocusedOptionOnUpdate=!(a&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:l[c],focusedOptionId:this.getFocusedOptionId(l[c])},function(){return o.onMenuOpen()})}},{key:"focusValue",value:function(r){var o=this.state,s=o.selectValue,u=o.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var a=s.indexOf(u);u||(a=-1);var l=s.length-1,c=-1;if(s.length){switch(r){case"previous":a===0?c=0:a===-1?c=l:c=a-1;break;case"next":a>-1&&a<l&&(c=a+1);break}this.setState({inputIsHidden:c!==-1,focusedValue:s[c]})}}}},{key:"focusOption",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"first",o=this.props.pageSize,s=this.state.focusedOption,u=this.getFocusableOptions();if(u.length){var a=0,l=u.indexOf(s);s||(l=-1),r==="up"?a=l>0?l-1:u.length-1:r==="down"?a=(l+1)%u.length:r==="pageup"?(a=l-o,a<0&&(a=0)):r==="pagedown"?(a=l+o,a>u.length-1&&(a=u.length-1)):r==="last"&&(a=u.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:u[a],focusedValue:null,focusedOptionId:this.getFocusedOptionId(u[a])})}}},{key:"getTheme",value:function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(Ur):B(B({},Ur),this.props.theme):Ur}},{key:"getCommonProps",value:function(){var r=this.clearValue,o=this.cx,s=this.getStyles,u=this.getClassNames,a=this.getValue,l=this.selectOption,c=this.setValue,d=this.props,f=d.isMulti,p=d.isRtl,b=d.options,g=this.hasValue();return{clearValue:r,cx:o,getStyles:s,getClassNames:u,getValue:a,hasValue:g,isMulti:f,isRtl:p,options:b,selectOption:l,selectProps:d,setValue:c,theme:this.getTheme()}}},{key:"hasValue",value:function(){var r=this.state.selectValue;return r.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var r=this.props,o=r.isClearable,s=r.isMulti;return o===void 0?s:o}},{key:"isOptionDisabled",value:function(r,o){return Ml(this.props,r,o)}},{key:"isOptionSelected",value:function(r,o){return Bl(this.props,r,o)}},{key:"filterOption",value:function(r,o){return Gl(this.props,r,o)}},{key:"formatOptionLabel",value:function(r,o){if(typeof this.props.formatOptionLabel=="function"){var s=this.props.inputValue,u=this.state.selectValue;return this.props.formatOptionLabel(r,{context:o,inputValue:s,selectValue:u})}else return this.getOptionLabel(r)}},{key:"formatGroupLabel",value:function(r){return this.props.formatGroupLabel(r)}},{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 r=this.props,o=r.isDisabled,s=r.isSearchable,u=r.inputId,a=r.inputValue,l=r.tabIndex,c=r.form,d=r.menuIsOpen,f=r.required,p=this.getComponents(),b=p.Input,g=this.state,v=g.inputIsHidden,C=g.ariaSelection,y=this.commonProps,m=u||this.getElementId("input"),I=B(B(B({"aria-autocomplete":"list","aria-expanded":d,"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":f,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},d&&{"aria-controls":this.getElementId("listbox")}),!s&&{"aria-readonly":!0}),this.hasValue()?(C==null?void 0:C.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return s?Z.createElement(b,W({},y,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:m,innerRef:this.getInputRef,isDisabled:o,isHidden:v,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:l,form:c,type:"text",value:a},I)):Z.createElement(av,W({id:m,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Kn,onFocus:this.onInputFocus,disabled:o,tabIndex:l,inputMode:"none",form:c,value:""},I))}},{key:"renderPlaceholderOrValue",value:function(){var r=this,o=this.getComponents(),s=o.MultiValue,u=o.MultiValueContainer,a=o.MultiValueLabel,l=o.MultiValueRemove,c=o.SingleValue,d=o.Placeholder,f=this.commonProps,p=this.props,b=p.controlShouldRenderValue,g=p.isDisabled,v=p.isMulti,C=p.inputValue,y=p.placeholder,m=this.state,I=m.selectValue,h=m.focusedValue,S=m.isFocused;if(!this.hasValue()||!b)return C?null:Z.createElement(d,W({},f,{key:"placeholder",isDisabled:g,isFocused:S,innerProps:{id:this.getElementId("placeholder")}}),y);if(v)return I.map(function(P,M){var X=P===h,U="".concat(r.getOptionLabel(P),"-").concat(r.getOptionValue(P));return Z.createElement(s,W({},f,{components:{Container:u,Label:a,Remove:l},isFocused:X,isDisabled:g,key:U,index:M,removeProps:{onClick:function(){return r.removeValue(P)},onTouchEnd:function(){return r.removeValue(P)},onMouseDown:function(de){de.preventDefault()}},data:P}),r.formatOptionLabel(P,"value"))});if(C)return null;var T=I[0];return Z.createElement(c,W({},f,{data:T,isDisabled:g}),this.formatOptionLabel(T,"value"))}},{key:"renderClearIndicator",value:function(){var r=this.getComponents(),o=r.ClearIndicator,s=this.commonProps,u=this.props,a=u.isDisabled,l=u.isLoading,c=this.state.isFocused;if(!this.isClearable()||!o||a||!this.hasValue()||l)return null;var d={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return Z.createElement(o,W({},s,{innerProps:d,isFocused:c}))}},{key:"renderLoadingIndicator",value:function(){var r=this.getComponents(),o=r.LoadingIndicator,s=this.commonProps,u=this.props,a=u.isDisabled,l=u.isLoading,c=this.state.isFocused;if(!o||!l)return null;var d={"aria-hidden":"true"};return Z.createElement(o,W({},s,{innerProps:d,isDisabled:a,isFocused:c}))}},{key:"renderIndicatorSeparator",value:function(){var r=this.getComponents(),o=r.DropdownIndicator,s=r.IndicatorSeparator;if(!o||!s)return null;var u=this.commonProps,a=this.props.isDisabled,l=this.state.isFocused;return Z.createElement(s,W({},u,{isDisabled:a,isFocused:l}))}},{key:"renderDropdownIndicator",value:function(){var r=this.getComponents(),o=r.DropdownIndicator;if(!o)return null;var s=this.commonProps,u=this.props.isDisabled,a=this.state.isFocused,l={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return Z.createElement(o,W({},s,{innerProps:l,isDisabled:u,isFocused:a}))}},{key:"renderMenu",value:function(){var r=this,o=this.getComponents(),s=o.Group,u=o.GroupHeading,a=o.Menu,l=o.MenuList,c=o.MenuPortal,d=o.LoadingMessage,f=o.NoOptionsMessage,p=o.Option,b=this.commonProps,g=this.state.focusedOption,v=this.props,C=v.captureMenuScroll,y=v.inputValue,m=v.isLoading,I=v.loadingMessage,h=v.minMenuHeight,S=v.maxMenuHeight,T=v.menuIsOpen,P=v.menuPlacement,M=v.menuPosition,X=v.menuPortalTarget,U=v.menuShouldBlockScroll,ne=v.menuShouldScrollIntoView,de=v.noOptionsMessage,oe=v.onMenuScrollToTop,k=v.onMenuScrollToBottom;if(!T)return null;var z=function(G,O){var j=G.type,N=G.data,L=G.isDisabled,H=G.isSelected,Y=G.label,J=G.value,fe=g===N,A=L?void 0:function(){return r.onOptionHover(N)},xe=L?void 0:function(){return r.selectOption(N)},Be="".concat(r.getElementId("option"),"-").concat(O),Ct={id:Be,onClick:xe,onMouseMove:A,onMouseOver:A,tabIndex:-1,role:"option","aria-selected":r.isAppleDevice?void 0:H};return Z.createElement(p,W({},b,{innerProps:Ct,data:N,isDisabled:L,isSelected:H,key:Be,label:Y,type:j,value:J,isFocused:fe,innerRef:fe?r.getFocusedOptionRef:void 0}),r.formatOptionLabel(G.data,"menu"))},ie;if(this.hasOptions())ie=this.getCategorizedOptions().map(function(D){if(D.type==="group"){var G=D.data,O=D.options,j=D.index,N="".concat(r.getElementId("group"),"-").concat(j),L="".concat(N,"-heading");return Z.createElement(s,W({},b,{key:N,data:G,options:O,Heading:u,headingProps:{id:L,data:D.data},label:r.formatGroupLabel(D.data)}),D.options.map(function(H){return z(H,"".concat(j,"-").concat(H.index))}))}else if(D.type==="option")return z(D,"".concat(D.index))});else if(m){var re=I({inputValue:y});if(re===null)return null;ie=Z.createElement(d,b,re)}else{var be=de({inputValue:y});if(be===null)return null;ie=Z.createElement(f,b,be)}var E={minMenuHeight:h,maxMenuHeight:S,menuPlacement:P,menuPosition:M,menuShouldScrollIntoView:ne},V=Z.createElement(Rb,W({},b,E),function(D){var G=D.ref,O=D.placerProps,j=O.placement,N=O.maxHeight;return Z.createElement(a,W({},b,E,{innerRef:G,innerProps:{onMouseDown:r.onMenuMouseDown,onMouseMove:r.onMenuMouseMove},isLoading:m,placement:j}),Z.createElement(pv,{captureEnabled:C,onTopArrive:oe,onBottomArrive:k,lockEnabled:U},function(L){return Z.createElement(l,W({},b,{innerRef:function(Y){r.getMenuListRef(Y),L(Y)},innerProps:{role:"listbox","aria-multiselectable":b.isMulti,id:r.getElementId("listbox")},isLoading:m,maxHeight:N,focusedOption:g}),ie)}))});return X||M==="fixed"?Z.createElement(c,W({},b,{appendTo:X,controlElement:this.controlRef,menuPlacement:P,menuPosition:M}),V):V}},{key:"renderFormField",value:function(){var r=this,o=this.props,s=o.delimiter,u=o.isDisabled,a=o.isMulti,l=o.name,c=o.required,d=this.state.selectValue;if(c&&!this.hasValue()&&!u)return Z.createElement(vv,{name:l,onFocus:this.onValueInputFocus});if(!(!l||u))if(a)if(s){var f=d.map(function(g){return r.getOptionValue(g)}).join(s);return Z.createElement("input",{name:l,type:"hidden",value:f})}else{var p=d.length>0?d.map(function(g,v){return Z.createElement("input",{key:"i-".concat(v),name:l,type:"hidden",value:r.getOptionValue(g)})}):Z.createElement("input",{name:l,type:"hidden",value:""});return Z.createElement("div",null,p)}else{var b=d[0]?this.getOptionValue(d[0]):"";return Z.createElement("input",{name:l,type:"hidden",value:b})}}},{key:"renderLiveRegion",value:function(){var r=this.commonProps,o=this.state,s=o.ariaSelection,u=o.focusedOption,a=o.focusedValue,l=o.isFocused,c=o.selectValue,d=this.getFocusableOptions();return Z.createElement(tv,W({},r,{id:this.getElementId("live-region"),ariaSelection:s,focusedOption:u,focusedValue:a,isFocused:l,selectValue:c,focusableOptions:d,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var r=this.getComponents(),o=r.Control,s=r.IndicatorsContainer,u=r.SelectContainer,a=r.ValueContainer,l=this.props,c=l.className,d=l.id,f=l.isDisabled,p=l.menuIsOpen,b=this.state.isFocused,g=this.commonProps=this.getCommonProps();return Z.createElement(u,W({},g,{className:c,innerProps:{id:d,onKeyDown:this.onKeyDown},isDisabled:f,isFocused:b}),this.renderLiveRegion(),Z.createElement(o,W({},g,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:f,isFocused:b,menuIsOpen:p}),Z.createElement(a,W({},g,{isDisabled:f}),this.renderPlaceholderOrValue(),this.renderInput()),Z.createElement(s,W({},g,{isDisabled:f}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(r,o){var s=o.prevProps,u=o.clearFocusValueOnUpdate,a=o.inputIsHiddenAfterUpdate,l=o.ariaSelection,c=o.isFocused,d=o.prevWasFocused,f=o.instancePrefix,p=r.options,b=r.value,g=r.menuIsOpen,v=r.inputValue,C=r.isMulti,y=$u(b),m={};if(s&&(b!==s.value||p!==s.options||g!==s.menuIsOpen||v!==s.inputValue)){var I=g?Gv(r,y):[],h=g?Vl(ii(r,y),"".concat(f,"-option")):[],S=u?Ov(o,y):null,T=Nv(o,I),P=_r(h,T);m={selectValue:y,focusedOption:T,focusedOptionId:P,focusableOptionsWithIds:h,focusedValue:S,clearFocusValueOnUpdate:!1}}var M=a!=null&&r!==s?{inputIsHidden:a,inputIsHiddenAfterUpdate:void 0}:{},X=l,U=c&&d;return c&&!U&&(X={value:ni(C,y,y[0]||null),options:y,action:"initial-input-focus"},U=!d),(l==null?void 0:l.action)==="initial-input-focus"&&(X=null),B(B(B({},m),M),{},{prevProps:r,ariaSelection:X,prevWasFocused:U})}}]),n}(x.Component);Nl.defaultProps=Bv;var Wv=x.forwardRef(function(e,t){var n=Ym(e);return Z.createElement(Nl,W({ref:t},n))}),Lv=Wv;const an=e=>{const{children:t,sx:n,...i}=e;return w.jsx("div",{className:ct.form,style:n,...i,children:t})},Xv=an,Zv={menuPortal:e=>({...e,zIndex:"9999999999 !important"}),control:(e,t)=>({...e,background:t.isDisabled?"#e9ecef !important":"#fff!important",minHeight:"26px!important",boxShadow:t.isFocused?"0 0 0 2px rgba(0 125 250 / 30%)":null,borderColor:t.isFocused?"#0071e3":"#D6DBDF!important",fontSize:"12px!important",padding:"0px 0px 0px 6px!important",color:"#3f4254!important",borderRadius:"0px !important"}),valueContainer:e=>({...e,height:"26px!important",padding:"0 6px 0 2px!important"}),input:e=>({...e,margin:"0px!important",fontSize:"12px!important",color:"#3f4254"}),placeholder:e=>({...e,margin:"0px!important",fontSize:"12px!important",color:"#aeaeae !important"}),indicatorsContainer:e=>({...e,height:"26px!important"}),option:(e,t)=>({...e,backgroundColor:t.isSelected?"#50c6d0":null,color:t.isSelected?"#fff":"#3f4254",fontSize:"12px!important",padding:"6px 12px 5px 12px!important",fontWeight:"400",fontFamily:"Poppins, Helvetica, 'sans-serif'",borderRadius:"2px !important"}),noOptionsMessage:e=>({...e,fontSize:"12px!important",padding:"5px 8px!important",color:"#3f4254!important"}),menu:e=>({...e,padding:"1px 4px",zIndex:"99999999",position:"absolute",borderRadius:"0px !important"})},Hv=e=>{const{children:t,sx:n,...i}=e;return w.jsx("div",{className:ct["form-group"],style:n,...i,children:t})},kv=e=>{const{children:t,sx:n,...i}=e,r=x.Children.toArray(t).filter(s=>s.type.displayName==="biznext-ui-input-label"),o=x.Children.toArray(t).filter(s=>s.type.displayName==="biznext-ui-input-control");return w.jsxs("div",{className:It(ct["form-input-group"]),style:n,...i,children:[r,w.jsxs("div",{className:ct["form-input-control-group"],children:[o,w.jsx("span",{className:ct["form-input-group-error-text"],children:"error message"})]})]})},Rl=e=>{const{required:t=!1,children:n,sx:i,...r}=e;return w.jsx("label",{className:It(ct["form-input-group-label"],t&&ct.required),style:i,...r,children:n})},Wl=x.forwardRef((e,t)=>{const{type:n,focus:i,sx:r,...o}=e;let s=w.jsx(w.Fragment,{});const u=x.useRef(null);switch(x.useEffect(()=>{u.current&&u.current.focus()},[i]),n){case"input":s=w.jsx("input",{type:"input",className:ct["form-input-control"],ref:i?u:t,style:r,...o});break;case"select":s=w.jsx(Lv,{styles:Zv,...o});break;default:s=w.jsx(w.Fragment,{});break}return s});Rl.displayName="biznext-ui-input-label",Wl.displayName="biznext-ui-input-control",an.Group=Hv,an.InputGroup=kv,an.Label=Rl,an.Control=Wl,Ee.BiznextUIProvider=Rp,Ee.Form=Xv,Ee.Modal=Bm,Ee.useConfirmDialog=Lm,Ee.useToast=Kr,Object.defineProperty(Ee,Symbol.toStringTag,{value:"Module"})});
|