@biznext-ui/react 0.6.2 → 0.6.4
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/biznext-style.css +1 -1
- package/dist/index.es.js +1669 -1638
- package/dist/index.umd.js +8 -8
- package/package.json +10 -23
package/dist/index.umd.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
(function(ce,
|
|
1
|
+
(function(ce,E){typeof exports=="object"&&typeof module<"u"?E(exports,require("react/jsx-runtime"),require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","react-dom"],E):(ce=typeof globalThis<"u"?globalThis:ce||self,E(ce["biznext-ui-react"]={},ce["react/jsx-runtime"],ce.React,ce.ReactDOM))})(this,function(ce,E,y,Ne){"use strict";function Qu(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const M=Qu(y),Pr=y.createContext({}),Ku=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.payload,...e.toasts]};case"DELETE_TOAST":return{...e,toasts:e.toasts.filter(n=>n.id!==t.payload.id)};default:console.error(`Biznext-UI-Toast: Unhandled action type: ${t.type}`)}},Vr=()=>y.useContext(Pr),de={"toasts-container":"biznext-ui-Voj91bwiOQ0-5","top-left":"biznext-ui-r8K3Yfg1a0k-a","top-center":"biznext-ui-hLBI-yY3XZg-8","top-right":"biznext-ui-McMmb-sS6LE-3","bottom-left":"biznext-ui-lX4jcK0Szv4-9","bottom-center":"biznext-ui-Ee7khmzQluU-1","bottom-right":"biznext-ui-8KE-IEqqaMQ-f",toast:"biznext-ui-HNUcjKVTeyM-1",fadein:"biznext-ui-HDMPjvBSEyg-1","toast-icon":"biznext-ui--tFdGazkGSA-f","toast-content":"biznext-ui-ymhtH9nUp6I-c","toast-title":"biznext-ui-KpFZjCXKdcg-2","toast-close":"biznext-ui-BzxmwExZEIc-0","toast-close-btn":"biznext-ui-2vYXLFQRSLY-d","toast-close-btn-icon":"biznext-ui-fnjPMKE33W8-7","toast-count":"biznext-ui-PGnSqC3fwN4-3","toast-wrapper":"biznext-ui-g5CASl7JMIU-8","toast-stack-layer":"biznext-ui-iwVPv1bazVw-8",success:"biznext-ui-gWJh5oSUaH4-8",info:"biznext-ui-KprtriQR6do-2",warning:"biznext-ui-u0IYuYPu1og-b",error:"biznext-ui-DMi33WPhK2I-0"};function qu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Wn={exports:{}};/*!
|
|
2
2
|
Copyright (c) 2018 Jed Watson.
|
|
3
3
|
Licensed under the MIT License (MIT), see
|
|
4
4
|
http://jedwatson.github.io/classnames
|
|
5
|
-
*/var Tr;function el(){return Tr||(Tr=1,function(e){(function(){var t={}.hasOwnProperty;function n(){for(var s="",o=0;o<arguments.length;o++){var u=arguments[o];u&&(s=
|
|
5
|
+
*/var Tr;function el(){return Tr||(Tr=1,function(e){(function(){var t={}.hasOwnProperty;function n(){for(var s="",o=0;o<arguments.length;o++){var u=arguments[o];u&&(s=i(s,r(u)))}return s}function r(s){if(typeof s=="string"||typeof s=="number")return s;if(typeof s!="object")return"";if(Array.isArray(s))return n.apply(null,s);if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]"))return s.toString();var o="";for(var u in s)t.call(s,u)&&s[u]&&(o=i(o,u));return o}function i(s,o){return o?s?s+" "+o:s+o:s}e.exports?(n.default=n,e.exports=n):window.classNames=n})()}(Wn)),Wn.exports}var tl=el();const ze=qu(tl);var wr={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Gr=y.createContext&&y.createContext(wr),nl=["attr","size","title"];function il(e,t){if(e==null)return{};var n=rl(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function rl(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function kt(){return kt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},kt.apply(this,arguments)}function Br(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Yt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Br(Object(n),!0).forEach(function(r){sl(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Br(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function sl(e,t,n){return t=ol(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ol(e){var t=al(e,"string");return typeof t=="symbol"?t:t+""}function al(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Mr(e){return e&&e.map((t,n)=>y.createElement(t.tag,Yt({key:n},t.attr),Mr(t.child)))}function ke(e){return t=>y.createElement(ul,kt({attr:Yt({},e.attr)},t),Mr(e.child))}function ul(e){var t=n=>{var{attr:r,size:i,title:s}=e,o=il(e,nl),u=i||n.size||"1em",a;return n.className&&(a=n.className),e.className&&(a=(a?a+" ":"")+e.className),y.createElement("svg",kt({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,r,o,{className:a,style:Yt(Yt({color:e.color||n.color},n.style),e.style),height:u,width:u,xmlns:"http://www.w3.org/2000/svg"}),s&&y.createElement("title",null,s),e.children)};return Gr!==void 0?y.createElement(Gr.Consumer,null,n=>t(n)):t(wr)}function ll(e){return ke({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 cl(e){return ke({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 dl(e){return ke({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.3l58.3 0c34.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-24l0-13.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.1l-58.3 0c-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 fl(e){return ke({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 hl(e){return ke({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 Zn=y.createContext({});function Hn(e){const t=y.useRef(null);return t.current===null&&(t.current=e()),t.current}const jt=y.createContext(null),zn=y.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class pl extends M.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=this.props.sizeRef.current;r.height=n.offsetHeight||0,r.width=n.offsetWidth||0,r.top=n.offsetTop,r.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function ml({children:e,isPresent:t}){const n=y.useId(),r=y.useRef(null),i=y.useRef({width:0,height:0,top:0,left:0}),{nonce:s}=y.useContext(zn);return y.useInsertionEffect(()=>{const{width:o,height:u,top:a,left:l}=i.current;if(t||!r.current||!o||!u)return;r.current.dataset.motionPopId=n;const c=document.createElement("style");return s&&(c.nonce=s),document.head.appendChild(c),c.sheet&&c.sheet.insertRule(`
|
|
6
6
|
[data-motion-pop-id="${n}"] {
|
|
7
7
|
position: absolute !important;
|
|
8
8
|
width: ${o}px !important;
|
|
@@ -10,23 +10,23 @@
|
|
|
10
10
|
top: ${a}px !important;
|
|
11
11
|
left: ${l}px !important;
|
|
12
12
|
}
|
|
13
|
-
`),()=>{document.head.removeChild(c)}},[t]),P.jsx(pl,{isPresent:t,childRef:i,sizeRef:r,children:F.cloneElement(e,{ref:i})})}const gl=({children:e,initial:t,isPresent:n,onExitComplete:i,custom:r,presenceAffectsLayout:s,mode:o})=>{const u=Hn(bl),a=y.useId(),l=y.useCallback(d=>{u.set(d,!0);for(const f of u.values())if(!f)return;i&&i()},[u,i]),c=y.useMemo(()=>({id:a,initial:t,isPresent:n,custom:r,onExitComplete:l,register:d=>(u.set(d,!1),()=>u.delete(d))}),s?[Math.random(),l]:[n,l]);return y.useMemo(()=>{u.forEach((d,f)=>u.set(f,!1))},[n]),F.useEffect(()=>{!n&&!u.size&&i&&i()},[n]),o==="popLayout"&&(e=P.jsx(ml,{isPresent:n,children:e})),P.jsx(jt.Provider,{value:c,children:e})};function bl(){return new Map}function Mr(e=!0){const t=y.useContext(jt);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:i,register:r}=t,s=y.useId();y.useEffect(()=>{e&&r(s)},[e]);const o=y.useCallback(()=>e&&i&&i(s),[s,i,e]);return!n&&i?[!1,o]:[!0]}const Jt=e=>e.key||"";function Dr(e){const t=[];return y.Children.forEach(e,n=>{y.isValidElement(n)&&t.push(n)}),t}const kn=typeof window<"u",Rr=kn?y.useLayoutEffect:y.useEffect,Yn=({children:e,custom:t,initial:n=!0,onExitComplete:i,presenceAffectsLayout:r=!0,mode:s="sync",propagate:o=!1})=>{const[u,a]=Mr(o),l=y.useMemo(()=>Dr(e),[e]),c=o&&!u?[]:l.map(Jt),d=y.useRef(!0),f=y.useRef(l),h=Hn(()=>new Map),[g,m]=y.useState(l),[p,b]=y.useState(l);Rr(()=>{d.current=!1,f.current=l;for(let x=0;x<p.length;x++){const v=Jt(p[x]);c.includes(v)?h.delete(v):h.get(v)!==!0&&h.set(v,!1)}},[p,c.length,c.join("-")]);const C=[];if(l!==g){let x=[...l];for(let v=0;v<p.length;v++){const A=p[v],S=Jt(A);c.includes(S)||(x.splice(v,0,A),C.push(A))}s==="wait"&&C.length&&(x=C),b(Dr(x)),m(l);return}process.env.NODE_ENV!=="production"&&s==="wait"&&p.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);const{forceRender:I}=y.useContext(Zn);return P.jsx(P.Fragment,{children:p.map(x=>{const v=Jt(x),A=o&&!u?!1:l===p||c.includes(v),S=()=>{if(h.has(v))h.set(v,!0);else return;let E=!0;h.forEach(M=>{M||(E=!1)}),E&&(I==null||I(),b(f.current),o&&(a==null||a()),i&&i())};return P.jsx(gl,{isPresent:A,initial:!d.current||n?void 0:!1,custom:A?void 0:t,presenceAffectsLayout:r,mode:s,onExitComplete:A?void 0:S,children:x},v)})})},oe=e=>e;let qe=oe,Le=oe;process.env.NODE_ENV!=="production"&&(qe=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},Le=(e,t)=>{if(!e)throw new Error(t)});function jn(e){let t;return()=>(t===void 0&&(t=e()),t)}const et=(e,t,n)=>{const i=t-e;return i===0?1:(n-e)/i},Se=e=>e*1e3,Fe=e=>e/1e3,vl={useManualTiming:!1};function yl(e){let t=new Set,n=new Set,i=!1,r=!1;const s=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1};function u(l){s.has(l)&&(a.schedule(l),e()),l(o)}const a={schedule:(l,c=!1,d=!1)=>{const h=d&&i?t:n;return c&&s.add(l),h.has(l)||h.add(l),l},cancel:l=>{n.delete(l),s.delete(l)},process:l=>{if(o=l,i){r=!0;return}i=!0,[t,n]=[n,t],t.forEach(u),t.clear(),i=!1,r&&(r=!1,a.process(l))}};return a}const Ut=["read","resolveKeyframes","update","preRender","render","postRender"],Il=40;function Or(e,t){let n=!1,i=!0;const r={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,o=Ut.reduce((b,C)=>(b[C]=yl(s),b),{}),{read:u,resolveKeyframes:a,update:l,preRender:c,render:d,postRender:f}=o,h=()=>{const b=performance.now();n=!1,r.delta=i?1e3/60:Math.max(Math.min(b-r.timestamp,Il),1),r.timestamp=b,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(h))},g=()=>{n=!0,i=!0,r.isProcessing||e(h)};return{schedule:Ut.reduce((b,C)=>{const I=o[C];return b[C]=(x,v=!1,A=!1)=>(n||g(),I.schedule(x,v,A)),b},{}),cancel:b=>{for(let C=0;C<Ut.length;C++)o[Ut[C]].cancel(b)},state:r,steps:o}}const{schedule:W,cancel:Xe,state:K,steps:Jn}=Or(typeof requestAnimationFrame<"u"?requestAnimationFrame:oe,!0),Nr=y.createContext({strict:!1}),Lr={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"]},tt={};for(const e in Lr)tt[e]={isEnabled:t=>Lr[e].some(n=>!!t[n])};function Cl(e){for(const t in e)tt[t]={...tt[t],...e[t]}}const xl=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 _t(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||xl.has(e)}let Xr=e=>!_t(e);function Al(e){e&&(Xr=t=>t.startsWith("on")?!_t(t):e(t))}try{Al(require("@emotion/is-prop-valid").default)}catch{}function Sl(e,t,n){const i={};for(const r in e)r==="values"&&typeof e.values=="object"||(Xr(r)||n===!0&&_t(r)||!t&&!_t(r)||e.draggable&&r.startsWith("onDrag"))&&(i[r]=e[r]);return i}const Wr=new Set;function $t(e,t,n){e||Wr.has(t)||(console.warn(t),Wr.add(t))}function El(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...i)=>(process.env.NODE_ENV!=="production"&&$t(!1,"motion() is deprecated. Use motion.create() instead."),e(...i));return new Proxy(n,{get:(i,r)=>r==="create"?e:(t.has(r)||t.set(r,e(r)),t.get(r))})}const Qt=y.createContext({});function vt(e){return typeof e=="string"||Array.isArray(e)}function Kt(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const Un=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],_n=["initial",...Un];function qt(e){return Kt(e.animate)||_n.some(t=>vt(e[t]))}function Zr(e){return!!(qt(e)||e.variants)}function Pl(e,t){if(qt(e)){const{initial:n,animate:i}=e;return{initial:n===!1||vt(n)?n:void 0,animate:vt(i)?i:void 0}}return e.inherit!==!1?t:{}}function Vl(e){const{initial:t,animate:n}=Pl(e,y.useContext(Qt));return y.useMemo(()=>({initial:t,animate:n}),[Hr(t),Hr(n)])}function Hr(e){return Array.isArray(e)?e.join(" "):e}const Tl=Symbol.for("motionComponentSymbol");function nt(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function wl(e,t,n){return y.useCallback(i=>{i&&e.onMount&&e.onMount(i),t&&(i?t.mount(i):t.unmount()),n&&(typeof n=="function"?n(i):nt(n)&&(n.current=i))},[t])}const $n=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),zr="data-"+$n("framerAppearId"),{schedule:Qn}=Or(queueMicrotask,!1),kr=y.createContext({});function Gl(e,t,n,i,r){var s,o;const{visualElement:u}=y.useContext(Qt),a=y.useContext(Nr),l=y.useContext(jt),c=y.useContext(zn).reducedMotion,d=y.useRef(null);i=i||a.renderer,!d.current&&i&&(d.current=i(e,{visualState:t,parent:u,props:n,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:c}));const f=d.current,h=y.useContext(kr);f&&!f.projection&&r&&(f.type==="html"||f.type==="svg")&&Bl(d.current,n,r,h);const g=y.useRef(!1);y.useInsertionEffect(()=>{f&&g.current&&f.update(n,l)});const m=n[zr],p=y.useRef(!!m&&!(!((s=window.MotionHandoffIsComplete)===null||s===void 0)&&s.call(window,m))&&((o=window.MotionHasOptimisedAnimation)===null||o===void 0?void 0:o.call(window,m)));return Rr(()=>{f&&(g.current=!0,window.MotionIsMounted=!0,f.updateFeatures(),Qn.render(f.render),p.current&&f.animationState&&f.animationState.animateChanges())}),y.useEffect(()=>{f&&(!p.current&&f.animationState&&f.animationState.animateChanges(),p.current&&(queueMicrotask(()=>{var b;(b=window.MotionHandoffMarkAsComplete)===null||b===void 0||b.call(window,m)}),p.current=!1))}),f}function Bl(e,t,n,i){const{layoutId:r,layout:s,drag:o,dragConstraints:u,layoutScroll:a,layoutRoot:l}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Yr(e.parent)),e.projection.setOptions({layoutId:r,layout:s,alwaysMeasureLayout:!!o||u&&nt(u),visualElement:e,animationType:typeof s=="string"?s:"both",initialPromotionConfig:i,layoutScroll:a,layoutRoot:l})}function Yr(e){if(e)return e.options.allowProjection!==!1?e.projection:Yr(e.parent)}function Fl({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:i,Component:r}){var s,o;e&&Cl(e);function u(l,c){let d;const f={...y.useContext(zn),...l,layoutId:Ml(l)},{isStatic:h}=f,g=Vl(l),m=i(l,h);if(!h&&kn){Dl(f,e);const p=Rl(f);d=p.MeasureLayout,g.visualElement=Gl(r,m,f,t,p.ProjectionNode)}return P.jsxs(Qt.Provider,{value:g,children:[d&&g.visualElement?P.jsx(d,{visualElement:g.visualElement,...f}):null,n(r,l,wl(m,g.visualElement,c),m,h,g.visualElement)]})}u.displayName=`motion.${typeof r=="string"?r:`create(${(o=(s=r.displayName)!==null&&s!==void 0?s:r.name)!==null&&o!==void 0?o:""})`}`;const a=y.forwardRef(u);return a[Tl]=r,a}function Ml({layoutId:e}){const t=y.useContext(Zn).id;return t&&e!==void 0?t+"-"+e:e}function Dl(e,t){const n=y.useContext(Nr).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?qe(!1,i):Le(!1,i)}}function Rl(e){const{drag:t,layout:n}=tt;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}}const Ol=["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 Kn(e){return typeof e!="string"||e.includes("-")?!1:!!(Ol.indexOf(e)>-1||/[A-Z]/u.test(e))}function jr(e){const t=[{},{}];return e==null||e.values.forEach((n,i)=>{t[0][i]=n.get(),t[1][i]=n.getVelocity()}),t}function qn(e,t,n,i){if(typeof t=="function"){const[r,s]=jr(i);t=t(n!==void 0?n:e.custom,r,s)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[r,s]=jr(i);t=t(n!==void 0?n:e.custom,r,s)}return t}const ei=e=>Array.isArray(e),Nl=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),Ll=e=>ei(e)?e[e.length-1]||0:e,te=e=>!!(e&&e.getVelocity);function en(e){const t=te(e)?e.get():e;return Nl(t)?t.toValue():t}function Xl({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},i,r,s){const o={latestValues:Wl(i,r,s,e),renderState:t()};return n&&(o.onMount=u=>n({props:i,current:u,...o}),o.onUpdate=u=>n(u)),o}const Jr=e=>(t,n)=>{const i=y.useContext(Qt),r=y.useContext(jt),s=()=>Xl(e,t,i,r);return n?s():Hn(s)};function Wl(e,t,n,i){const r={},s=i(e,{});for(const f in s)r[f]=en(s[f]);let{initial:o,animate:u}=e;const a=qt(e),l=Zr(e);t&&l&&!a&&e.inherit!==!1&&(o===void 0&&(o=t.initial),u===void 0&&(u=t.animate));let c=n?n.initial===!1:!1;c=c||o===!1;const d=c?u:o;if(d&&typeof d!="boolean"&&!Kt(d)){const f=Array.isArray(d)?d:[d];for(let h=0;h<f.length;h++){const g=qn(e,f[h]);if(g){const{transitionEnd:m,transition:p,...b}=g;for(const C in b){let I=b[C];if(Array.isArray(I)){const x=c?I.length-1:0;I=I[x]}I!==null&&(r[C]=I)}for(const C in m)r[C]=m[C]}}}return r}const it=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Ye=new Set(it),Ur=e=>t=>typeof t=="string"&&t.startsWith(e),_r=Ur("--"),Zl=Ur("var(--"),ti=e=>Zl(e)?Hl.test(e.split("/*")[0].trim()):!1,Hl=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,$r=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Me=(e,t,n)=>n>t?t:n<e?e:n,rt={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},yt={...rt,transform:e=>Me(0,1,e)},tn={...rt,default:1},It=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),We=It("deg"),Ee=It("%"),G=It("px"),zl=It("vh"),kl=It("vw"),Qr={...Ee,parse:e=>Ee.parse(e)/100,transform:e=>Ee.transform(e*100)},Yl={borderWidth:G,borderTopWidth:G,borderRightWidth:G,borderBottomWidth:G,borderLeftWidth:G,borderRadius:G,radius:G,borderTopLeftRadius:G,borderTopRightRadius:G,borderBottomRightRadius:G,borderBottomLeftRadius:G,width:G,maxWidth:G,height:G,maxHeight:G,top:G,right:G,bottom:G,left:G,padding:G,paddingTop:G,paddingRight:G,paddingBottom:G,paddingLeft:G,margin:G,marginTop:G,marginRight:G,marginBottom:G,marginLeft:G,backgroundPositionX:G,backgroundPositionY:G},jl={rotate:We,rotateX:We,rotateY:We,rotateZ:We,scale:tn,scaleX:tn,scaleY:tn,scaleZ:tn,skew:We,skewX:We,skewY:We,distance:G,translateX:G,translateY:G,translateZ:G,x:G,y:G,z:G,perspective:G,transformPerspective:G,opacity:yt,originX:Qr,originY:Qr,originZ:G},Kr={...rt,transform:Math.round},ni={...Yl,...jl,zIndex:Kr,size:G,fillOpacity:yt,strokeOpacity:yt,numOctaves:Kr},Jl={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Ul=it.length;function _l(e,t,n){let i="",r=!0;for(let s=0;s<Ul;s++){const o=it[s],u=e[o];if(u===void 0)continue;let a=!0;if(typeof u=="number"?a=u===(o.startsWith("scale")?1:0):a=parseFloat(u)===0,!a||n){const l=$r(u,ni[o]);if(!a){r=!1;const c=Jl[o]||o;i+=`${c}(${l}) `}n&&(t[o]=l)}}return i=i.trim(),n?i=n(t,r?"":i):r&&(i="none"),i}function ii(e,t,n){const{style:i,vars:r,transformOrigin:s}=e;let o=!1,u=!1;for(const a in t){const l=t[a];if(Ye.has(a)){o=!0;continue}else if(_r(a)){r[a]=l;continue}else{const c=$r(l,ni[a]);a.startsWith("origin")?(u=!0,s[a]=c):i[a]=c}}if(t.transform||(o||n?i.transform=_l(t,e.transform,n):i.transform&&(i.transform="none")),u){const{originX:a="50%",originY:l="50%",originZ:c=0}=s;i.transformOrigin=`${a} ${l} ${c}`}}const $l={offset:"stroke-dashoffset",array:"stroke-dasharray"},Ql={offset:"strokeDashoffset",array:"strokeDasharray"};function Kl(e,t,n=1,i=0,r=!0){e.pathLength=1;const s=r?$l:Ql;e[s.offset]=G.transform(-i);const o=G.transform(t),u=G.transform(n);e[s.array]=`${o} ${u}`}function qr(e,t,n){return typeof e=="string"?e:G.transform(t+n*e)}function ql(e,t,n){const i=qr(t,e.x,e.width),r=qr(n,e.y,e.height);return`${i} ${r}`}function ri(e,{attrX:t,attrY:n,attrScale:i,originX:r,originY:s,pathLength:o,pathSpacing:u=1,pathOffset:a=0,...l},c,d){if(ii(e,l,d),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:f,style:h,dimensions:g}=e;f.transform&&(g&&(h.transform=f.transform),delete f.transform),g&&(r!==void 0||s!==void 0||h.transform)&&(h.transformOrigin=ql(g,r!==void 0?r:.5,s!==void 0?s:.5)),t!==void 0&&(f.x=t),n!==void 0&&(f.y=n),i!==void 0&&(f.scale=i),o!==void 0&&Kl(f,o,u,a,!1)}const si=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),es=()=>({...si(),attrs:{}}),oi=e=>typeof e=="string"&&e.toLowerCase()==="svg";function ts(e,{style:t,vars:n},i,r){Object.assign(e.style,t,r&&r.getProjectionStyles(i));for(const s in n)e.style.setProperty(s,n[s])}const ns=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 is(e,t,n,i){ts(e,t,void 0,i);for(const r in t.attrs)e.setAttribute(ns.has(r)?r:$n(r),t.attrs[r])}const nn={};function ec(e){Object.assign(nn,e)}function rs(e,{layout:t,layoutId:n}){return Ye.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!nn[e]||e==="opacity")}function ai(e,t,n){var i;const{style:r}=e,s={};for(const o in r)(te(r[o])||t.style&&te(t.style[o])||rs(o,e)||((i=n==null?void 0:n.getValue(o))===null||i===void 0?void 0:i.liveStyle)!==void 0)&&(s[o]=r[o]);return s}function ss(e,t,n){const i=ai(e,t,n);for(const r in e)if(te(e[r])||te(t[r])){const s=it.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;i[s]=e[r]}return i}function tc(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}const os=["x","y","width","height","cx","cy","r"],nc={useVisualState:Jr({scrapeMotionValuesFromProps:ss,createRenderState:es,onUpdate:({props:e,prevProps:t,current:n,renderState:i,latestValues:r})=>{if(!n)return;let s=!!e.drag;if(!s){for(const u in r)if(Ye.has(u)){s=!0;break}}if(!s)return;let o=!t;if(t)for(let u=0;u<os.length;u++){const a=os[u];e[a]!==t[a]&&(o=!0)}o&&W.read(()=>{tc(n,i),W.render(()=>{ri(i,r,oi(n.tagName),e.transformTemplate),is(n,i)})})}})},ic={useVisualState:Jr({scrapeMotionValuesFromProps:ai,createRenderState:si})};function as(e,t,n){for(const i in t)!te(t[i])&&!rs(i,n)&&(e[i]=t[i])}function rc({transformTemplate:e},t){return y.useMemo(()=>{const n=si();return ii(n,t,e),Object.assign({},n.vars,n.style)},[t])}function sc(e,t){const n=e.style||{},i={};return as(i,n,e),Object.assign(i,rc(e,t)),i}function oc(e,t){const n={},i=sc(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}function ac(e,t,n,i){const r=y.useMemo(()=>{const s=es();return ri(s,t,oi(i),e.transformTemplate),{...s.attrs,style:{...s.style}}},[t]);if(e.style){const s={};as(s,e.style,e),r.style={...s,...r.style}}return r}function uc(e=!1){return(n,i,r,{latestValues:s},o)=>{const a=(Kn(n)?ac:oc)(i,s,o,n),l=Sl(i,typeof n=="string",e),c=n!==y.Fragment?{...l,...a,ref:r}:{},{children:d}=i,f=y.useMemo(()=>te(d)?d.get():d,[d]);return y.createElement(n,{...c,children:f})}}function lc(e,t){return function(i,{forwardMotionProps:r}={forwardMotionProps:!1}){const o={...Kn(i)?nc:ic,preloadedFeatures:e,useRender:uc(r),createVisualElement:t,Component:i};return Fl(o)}}function us(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 rn(e,t,n){const i=e.getProps();return qn(i,t,n!==void 0?n:i.custom,e)}const cc=jn(()=>window.ScrollTimeline!==void 0);class dc{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}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,n){const i=this.animations.map(r=>{if(cc()&&r.attachTimeline)return r.attachTimeline(t);if(typeof n=="function")return n(r)});return()=>{i.forEach((r,s)=>{r&&r(),this.animations[s].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 startTime(){return this.getAll("startTime")}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]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class fc extends dc{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}function ui(e,t){return e?e[t]||e.default||e:void 0}const li=2e4;function ls(e){let t=0;const n=50;let i=e.next(t);for(;!i.done&&t<li;)t+=n,i=e.next(t);return t>=li?1/0:t}function ci(e){return typeof e=="function"}function cs(e,t){e.timeline=t,e.onfinish=null}const di=e=>Array.isArray(e)&&typeof e[0]=="number",hc={linearEasing:void 0};function pc(e,t){const n=jn(e);return()=>{var i;return(i=hc[t])!==null&&i!==void 0?i:n()}}const sn=pc(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),ds=(e,t,n=10)=>{let i="";const r=Math.max(Math.round(t/n),2);for(let s=0;s<r;s++)i+=e(et(0,r-1,s))+", ";return`linear(${i.substring(0,i.length-2)})`};function fs(e){return!!(typeof e=="function"&&sn()||!e||typeof e=="string"&&(e in fi||sn())||di(e)||Array.isArray(e)&&e.every(fs))}const Ct=([e,t,n,i])=>`cubic-bezier(${e}, ${t}, ${n}, ${i})`,fi={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ct([0,.65,.55,1]),circOut:Ct([.55,0,1,.45]),backIn:Ct([.31,.01,.66,-.59]),backOut:Ct([.33,1.53,.69,.99])};function hs(e,t){if(e)return typeof e=="function"&&sn()?ds(e,t):di(e)?Ct(e):Array.isArray(e)?e.map(n=>hs(n,t)||fi.easeOut):fi[e]}const ve={x:!1,y:!1};function ps(){return ve.x||ve.y}function mc(e,t,n){var i;if(e instanceof Element)return[e];if(typeof e=="string"){let r=document;const s=(i=void 0)!==null&&i!==void 0?i:r.querySelectorAll(e);return s?Array.from(s):[]}return Array.from(e)}function ms(e,t){const n=mc(e),i=new AbortController,r={passive:!0,...t,signal:i.signal};return[n,r,()=>i.abort()]}function gs(e){return t=>{t.pointerType==="touch"||ps()||e(t)}}function gc(e,t,n={}){const[i,r,s]=ms(e,n),o=gs(u=>{const{target:a}=u,l=t(u);if(typeof l!="function"||!a)return;const c=gs(d=>{l(d),a.removeEventListener("pointerleave",c)});a.addEventListener("pointerleave",c,r)});return i.forEach(u=>{u.addEventListener("pointerenter",o,r)}),s}const bs=(e,t)=>t?e===t?!0:bs(e,t.parentElement):!1,hi=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,bc=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function vc(e){return bc.has(e.tagName)||e.tabIndex!==-1}const xt=new WeakSet;function vs(e){return t=>{t.key==="Enter"&&e(t)}}function pi(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const yc=(e,t)=>{const n=e.currentTarget;if(!n)return;const i=vs(()=>{if(xt.has(n))return;pi(n,"down");const r=vs(()=>{pi(n,"up")}),s=()=>pi(n,"cancel");n.addEventListener("keyup",r,t),n.addEventListener("blur",s,t)});n.addEventListener("keydown",i,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",i),t)};function ys(e){return hi(e)&&!ps()}function Ic(e,t,n={}){const[i,r,s]=ms(e,n),o=u=>{const a=u.currentTarget;if(!ys(u)||xt.has(a))return;xt.add(a);const l=t(u),c=(h,g)=>{window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",f),!(!ys(h)||!xt.has(a))&&(xt.delete(a),typeof l=="function"&&l(h,{success:g}))},d=h=>{c(h,n.useGlobalTarget||bs(a,h.target))},f=h=>{c(h,!1)};window.addEventListener("pointerup",d,r),window.addEventListener("pointercancel",f,r)};return i.forEach(u=>{!vc(u)&&u.getAttribute("tabindex")===null&&(u.tabIndex=0),(n.useGlobalTarget?window:u).addEventListener("pointerdown",o,r),u.addEventListener("focus",l=>yc(l,r),r)}),s}function Cc(e){return e==="x"||e==="y"?ve[e]?null:(ve[e]=!0,()=>{ve[e]=!1}):ve.x||ve.y?null:(ve.x=ve.y=!0,()=>{ve.x=ve.y=!1})}const Is=new Set(["width","height","top","left","right","bottom",...it]);let on;function xc(){on=void 0}const Pe={now:()=>(on===void 0&&Pe.set(K.isProcessing||vl.useManualTiming?K.timestamp:performance.now()),on),set:e=>{on=e,queueMicrotask(xc)}};function mi(e,t){e.indexOf(t)===-1&&e.push(t)}function gi(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class bi{constructor(){this.subscriptions=[]}add(t){return mi(this.subscriptions,t),()=>gi(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 s=0;s<r;s++){const o=this.subscriptions[s];o&&o(t,n,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function Cs(e,t){return t?e*(1e3/t):0}const xs=30,Ac=e=>!isNaN(parseFloat(e));class Sc{constructor(t,n={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(i,r=!0)=>{const s=Pe.now();this.updatedAt!==s&&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=Pe.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=Ac(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&$t(!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 bi);const i=this.events[t].add(n);return t==="change"?()=>{i(),W.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=Pe.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>xs)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,xs);return Cs(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 At(e,t){return new Sc(e,t)}function Ec(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,At(n))}function Pc(e,t){const n=rn(e,t);let{transitionEnd:i={},transition:r={},...s}=n||{};s={...s,...i};for(const o in s){const u=Ll(s[o]);Ec(e,o,u)}}function Vc(e){return!!(te(e)&&e.add)}function vi(e,t){const n=e.getValue("willChange");if(Vc(n))return n.add(t)}function As(e){return e.props[zr]}const Ss=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Tc=1e-7,wc=12;function Gc(e,t,n,i,r){let s,o,u=0;do o=t+(n-t)/2,s=Ss(o,i,r)-e,s>0?n=o:t=o;while(Math.abs(s)>Tc&&++u<wc);return o}function St(e,t,n,i){if(e===t&&n===i)return oe;const r=s=>Gc(s,0,1,e,n);return s=>s===0||s===1?s:Ss(r(s),t,i)}const Es=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Ps=e=>t=>1-e(1-t),Vs=St(.33,1.53,.69,.99),yi=Ps(Vs),Ts=Es(yi),ws=e=>(e*=2)<1?.5*yi(e):.5*(2-Math.pow(2,-10*(e-1))),Ii=e=>1-Math.sin(Math.acos(e)),Gs=Ps(Ii),Bs=Es(Ii),Fs=e=>/^0[^.\s]+$/u.test(e);function Bc(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Fs(e):!0}const Et=e=>Math.round(e*1e5)/1e5,Ci=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Fc(e){return e==null}const Mc=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,xi=(e,t)=>n=>!!(typeof n=="string"&&Mc.test(n)&&n.startsWith(e)||t&&!Fc(n)&&Object.prototype.hasOwnProperty.call(n,t)),Ms=(e,t,n)=>i=>{if(typeof i!="string")return i;const[r,s,o,u]=i.match(Ci);return{[e]:parseFloat(r),[t]:parseFloat(s),[n]:parseFloat(o),alpha:u!==void 0?parseFloat(u):1}},Dc=e=>Me(0,255,e),Ai={...rt,transform:e=>Math.round(Dc(e))},je={test:xi("rgb","red"),parse:Ms("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:i=1})=>"rgba("+Ai.transform(e)+", "+Ai.transform(t)+", "+Ai.transform(n)+", "+Et(yt.transform(i))+")"};function Rc(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 Si={test:xi("#"),parse:Rc,transform:je.transform},st={test:xi("hsl","hue"),parse:Ms("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:i=1})=>"hsla("+Math.round(e)+", "+Ee.transform(Et(t))+", "+Ee.transform(Et(n))+", "+Et(yt.transform(i))+")"},ne={test:e=>je.test(e)||Si.test(e)||st.test(e),parse:e=>je.test(e)?je.parse(e):st.test(e)?st.parse(e):Si.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?je.transform(e):st.transform(e)},Oc=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Nc(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Ci))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(Oc))===null||n===void 0?void 0:n.length)||0)>0}const Ds="number",Rs="color",Lc="var",Xc="var(",Os="${}",Wc=/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 Pt(e){const t=e.toString(),n=[],i={color:[],number:[],var:[]},r=[];let s=0;const u=t.replace(Wc,a=>(ne.test(a)?(i.color.push(s),r.push(Rs),n.push(ne.parse(a))):a.startsWith(Xc)?(i.var.push(s),r.push(Lc),n.push(a)):(i.number.push(s),r.push(Ds),n.push(parseFloat(a))),++s,Os)).split(Os);return{values:n,split:u,indexes:i,types:r}}function Ns(e){return Pt(e).values}function Ls(e){const{split:t,types:n}=Pt(e),i=t.length;return r=>{let s="";for(let o=0;o<i;o++)if(s+=t[o],r[o]!==void 0){const u=n[o];u===Ds?s+=Et(r[o]):u===Rs?s+=ne.transform(r[o]):s+=r[o]}return s}}const Zc=e=>typeof e=="number"?0:e;function Hc(e){const t=Ns(e);return Ls(e)(t.map(Zc))}const Ze={test:Nc,parse:Ns,createTransformer:Ls,getAnimatableNone:Hc},zc=new Set(["brightness","contrast","saturate","opacity"]);function kc(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[i]=n.match(Ci)||[];if(!i)return e;const r=n.replace(i,"");let s=zc.has(t)?1:0;return i!==n&&(s*=100),t+"("+s+r+")"}const Yc=/\b([a-z-]*)\(.*?\)/gu,Ei={...Ze,getAnimatableNone:e=>{const t=e.match(Yc);return t?t.map(kc).join(" "):e}},jc={...ni,color:ne,backgroundColor:ne,outlineColor:ne,fill:ne,stroke:ne,borderColor:ne,borderTopColor:ne,borderRightColor:ne,borderBottomColor:ne,borderLeftColor:ne,filter:Ei,WebkitFilter:Ei},Pi=e=>jc[e];function Xs(e,t){let n=Pi(e);return n!==Ei&&(n=Ze),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Jc=new Set(["auto","none","0"]);function Uc(e,t,n){let i=0,r;for(;i<e.length&&!r;){const s=e[i];typeof s=="string"&&!Jc.has(s)&&Pt(s).values.length&&(r=e[i]),i++}if(r&&n)for(const s of t)e[s]=Xs(n,r)}const Ws=e=>e===rt||e===G,Zs=(e,t)=>parseFloat(e.split(", ")[t]),Hs=(e,t)=>(n,{transform:i})=>{if(i==="none"||!i)return 0;const r=i.match(/^matrix3d\((.+)\)$/u);if(r)return Zs(r[1],t);{const s=i.match(/^matrix\((.+)\)$/u);return s?Zs(s[1],e):0}},_c=new Set(["x","y","z"]),$c=it.filter(e=>!_c.has(e));function Qc(e){const t=[];return $c.forEach(n=>{const i=e.getValue(n);i!==void 0&&(t.push([n,i.get()]),i.set(n.startsWith("scale")?1:0))}),t}const ot={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:Hs(4,13),y:Hs(5,14)};ot.translateX=ot.x,ot.translateY=ot.y;const Je=new Set;let Vi=!1,Ti=!1;function zs(){if(Ti){const e=Array.from(Je).filter(i=>i.needsMeasurement),t=new Set(e.map(i=>i.element)),n=new Map;t.forEach(i=>{const r=Qc(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(([s,o])=>{var u;(u=i.getValue(s))===null||u===void 0||u.set(o)})}),e.forEach(i=>i.measureEndState()),e.forEach(i=>{i.suspendedScrollY!==void 0&&window.scrollTo(0,i.suspendedScrollY)})}Ti=!1,Vi=!1,Je.forEach(e=>e.complete()),Je.clear()}function ks(){Je.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Ti=!0)})}function Kc(){ks(),zs()}class wi{constructor(t,n,i,r,s,o=!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=s,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Je.add(this),Vi||(Vi=!0,W.read(ks),W.resolveKeyframes(zs))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:i,motionValue:r}=this;for(let s=0;s<t.length;s++)if(t[s]===null)if(s===0){const o=r==null?void 0:r.get(),u=t[t.length-1];if(o!==void 0)t[0]=o;else if(i&&n){const a=i.readValue(n,u);a!=null&&(t[0]=a)}t[0]===void 0&&(t[0]=u),r&&o===void 0&&r.set(t[0])}else t[s]=t[s-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Je.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Je.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const Ys=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),qc=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function ed(e){const t=qc.exec(e);if(!t)return[,];const[,n,i,r]=t;return[`--${n??i}`,r]}const td=4;function js(e,t,n=1){Le(n<=td,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[i,r]=ed(e);if(!i)return;const s=window.getComputedStyle(t).getPropertyValue(i);if(s){const o=s.trim();return Ys(o)?parseFloat(o):o}return ti(r)?js(r,t,n+1):r}const Js=e=>t=>t.test(e),Us=[rt,G,Ee,We,kl,zl,{test:e=>e==="auto",parse:e=>e}],_s=e=>Us.find(Js(e));class $s extends wi{constructor(t,n,i,r,s){super(t,n,i,r,s,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:i}=this;if(!n||!n.current)return;super.readKeyframes();for(let a=0;a<t.length;a++){let l=t[a];if(typeof l=="string"&&(l=l.trim(),ti(l))){const c=js(l,n.current);c!==void 0&&(t[a]=c),a===t.length-1&&(this.finalKeyframe=l)}}if(this.resolveNoneKeyframes(),!Is.has(i)||t.length!==2)return;const[r,s]=t,o=_s(r),u=_s(s);if(o!==u)if(Ws(o)&&Ws(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++)Bc(t[r])&&i.push(r);i.length&&Uc(t,i,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:i}=this;if(!t||!t.current)return;i==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=ot[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||!n.current)return;const s=n.getValue(i);s&&s.jump(this.measuredOrigin,!1);const o=r.length-1,u=r[o];r[o]=ot[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()}}const Qs=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Ze.test(e)||e==="0")&&!e.startsWith("url("));function nd(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 id(e,t,n,i){const r=e[0];if(r===null)return!1;if(t==="display"||t==="visibility")return!0;const s=e[e.length-1],o=Qs(r,t),u=Qs(s,t);return qe(o===u,`You are trying to animate ${t} from "${r}" to "${s}". ${r} is not an animatable value - to enable this animation set ${r} to a value animatable to ${s} via the \`style\` property.`),!o||!u?!1:nd(e)||(n==="spring"||ci(n))&&i}const rd=e=>e!==null;function an(e,{repeat:t,repeatType:n="loop"},i){const r=e.filter(rd),s=t&&n!=="loop"&&t%2===1?0:r.length-1;return!s||i===void 0?r[s]:i}const sd=40;class Ks{constructor({autoplay:t=!0,delay:n=0,type:i="keyframes",repeat:r=0,repeatDelay:s=0,repeatType:o="loop",...u}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Pe.now(),this.options={autoplay:t,delay:n,type:i,repeat:r,repeatDelay:s,repeatType:o,...u},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>sd?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&Kc(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=Pe.now(),this.hasAttemptedResolve=!0;const{name:i,type:r,velocity:s,delay:o,onComplete:u,onUpdate:a,isGenerator:l}=this.options;if(!l&&!id(t,i,r,s))if(o)this.options.duration=0;else{a&&a(an(t,this.options,n)),u&&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)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const H=(e,t,n)=>e+(t-e)*n;function Gi(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 od({hue:e,saturation:t,lightness:n,alpha:i}){e/=360,t/=100,n/=100;let r=0,s=0,o=0;if(!t)r=s=o=n;else{const u=n<.5?n*(1+t):n+t-n*t,a=2*n-u;r=Gi(a,u,e+1/3),s=Gi(a,u,e),o=Gi(a,u,e-1/3)}return{red:Math.round(r*255),green:Math.round(s*255),blue:Math.round(o*255),alpha:i}}function un(e,t){return n=>n>0?t:e}const Bi=(e,t,n)=>{const i=e*e,r=n*(t*t-i)+i;return r<0?0:Math.sqrt(r)},ad=[Si,je,st],ud=e=>ad.find(t=>t.test(e));function qs(e){const t=ud(e);if(qe(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===st&&(n=od(n)),n}const eo=(e,t)=>{const n=qs(e),i=qs(t);if(!n||!i)return un(e,t);const r={...n};return s=>(r.red=Bi(n.red,i.red,s),r.green=Bi(n.green,i.green,s),r.blue=Bi(n.blue,i.blue,s),r.alpha=H(n.alpha,i.alpha,s),je.transform(r))},ld=(e,t)=>n=>t(e(n)),Vt=(...e)=>e.reduce(ld),Fi=new Set(["none","hidden"]);function cd(e,t){return Fi.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function dd(e,t){return n=>H(e,t,n)}function Mi(e){return typeof e=="number"?dd:typeof e=="string"?ti(e)?un:ne.test(e)?eo:pd:Array.isArray(e)?to:typeof e=="object"?ne.test(e)?eo:fd:un}function to(e,t){const n=[...e],i=n.length,r=e.map((s,o)=>Mi(s)(s,t[o]));return s=>{for(let o=0;o<i;o++)n[o]=r[o](s);return n}}function fd(e,t){const n={...e,...t},i={};for(const r in n)e[r]!==void 0&&t[r]!==void 0&&(i[r]=Mi(e[r])(e[r],t[r]));return r=>{for(const s in i)n[s]=i[s](r);return n}}function hd(e,t){var n;const i=[],r={color:0,var:0,number:0};for(let s=0;s<t.values.length;s++){const o=t.types[s],u=e.indexes[o][r[o]],a=(n=e.values[u])!==null&&n!==void 0?n:0;i[s]=a,r[o]++}return i}const pd=(e,t)=>{const n=Ze.createTransformer(t),i=Pt(e),r=Pt(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?Fi.has(e)&&!r.values.length||Fi.has(t)&&!i.values.length?cd(e,t):Vt(to(hd(i,r),r.values),n):(qe(!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.`),un(e,t))};function no(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?H(e,t,n):Mi(e)(e,t)}const md=5;function io(e,t,n){const i=Math.max(t-md,0);return Cs(n-e(i),t-i)}const z={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},ro=.001;function gd({duration:e=z.duration,bounce:t=z.bounce,velocity:n=z.velocity,mass:i=z.mass}){let r,s;qe(e<=Se(z.maxDuration),"Spring duration must be 10 seconds or less");let o=1-t;o=Me(z.minDamping,z.maxDamping,o),e=Me(z.minDuration,z.maxDuration,Fe(e)),o<1?(r=l=>{const c=l*o,d=c*e,f=c-n,h=Di(l,o),g=Math.exp(-d);return ro-f/h*g},s=l=>{const d=l*o*e,f=d*n+n,h=Math.pow(o,2)*Math.pow(l,2)*e,g=Math.exp(-d),m=Di(Math.pow(l,2),o);return(-r(l)+ro>0?-1:1)*((f-h)*g)/m}):(r=l=>{const c=Math.exp(-l*e),d=(l-n)*e+1;return-.001+c*d},s=l=>{const c=Math.exp(-l*e),d=(n-l)*(e*e);return c*d});const u=5/e,a=vd(r,s,u);if(e=Se(e),isNaN(a))return{stiffness:z.stiffness,damping:z.damping,duration:e};{const l=Math.pow(a,2)*i;return{stiffness:l,damping:o*2*Math.sqrt(i*l),duration:e}}}const bd=12;function vd(e,t,n){let i=n;for(let r=1;r<bd;r++)i=i-e(i)/t(i);return i}function Di(e,t){return e*Math.sqrt(1-t*t)}const yd=["duration","bounce"],Id=["stiffness","damping","mass"];function so(e,t){return t.some(n=>e[n]!==void 0)}function Cd(e){let t={velocity:z.velocity,stiffness:z.stiffness,damping:z.damping,mass:z.mass,isResolvedFromDuration:!1,...e};if(!so(e,Id)&&so(e,yd))if(e.visualDuration){const n=e.visualDuration,i=2*Math.PI/(n*1.2),r=i*i,s=2*Me(.05,1,1-(e.bounce||0))*Math.sqrt(r);t={...t,mass:z.mass,stiffness:r,damping:s}}else{const n=gd(e);t={...t,...n,mass:z.mass},t.isResolvedFromDuration=!0}return t}function oo(e=z.visualDuration,t=z.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:i,restDelta:r}=n;const s=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],u={done:!1,value:s},{stiffness:a,damping:l,mass:c,duration:d,velocity:f,isResolvedFromDuration:h}=Cd({...n,velocity:-Fe(n.velocity||0)}),g=f||0,m=l/(2*Math.sqrt(a*c)),p=o-s,b=Fe(Math.sqrt(a/c)),C=Math.abs(p)<5;i||(i=C?z.restSpeed.granular:z.restSpeed.default),r||(r=C?z.restDelta.granular:z.restDelta.default);let I;if(m<1){const v=Di(b,m);I=A=>{const S=Math.exp(-m*b*A);return o-S*((g+m*b*p)/v*Math.sin(v*A)+p*Math.cos(v*A))}}else if(m===1)I=v=>o-Math.exp(-b*v)*(p+(g+b*p)*v);else{const v=b*Math.sqrt(m*m-1);I=A=>{const S=Math.exp(-m*b*A),E=Math.min(v*A,300);return o-S*((g+m*b*p)*Math.sinh(E)+v*p*Math.cosh(E))/v}}const x={calculatedDuration:h&&d||null,next:v=>{const A=I(v);if(h)u.done=v>=d;else{let S=0;m<1&&(S=v===0?Se(g):io(I,v,A));const E=Math.abs(S)<=i,M=Math.abs(o-A)<=r;u.done=E&&M}return u.value=u.done?o:A,u},toString:()=>{const v=Math.min(ls(x),li),A=ds(S=>x.next(v*S).value,v,30);return v+"ms "+A}};return x}function ao({keyframes:e,velocity:t=0,power:n=.8,timeConstant:i=325,bounceDamping:r=10,bounceStiffness:s=500,modifyTarget:o,min:u,max:a,restDelta:l=.5,restSpeed:c}){const d=e[0],f={done:!1,value:d},h=E=>u!==void 0&&E<u||a!==void 0&&E>a,g=E=>u===void 0?a:a===void 0||Math.abs(u-E)<Math.abs(a-E)?u:a;let m=n*t;const p=d+m,b=o===void 0?p:o(p);b!==p&&(m=b-d);const C=E=>-m*Math.exp(-E/i),I=E=>b+C(E),x=E=>{const M=C(E),O=I(E);f.done=Math.abs(M)<=l,f.value=f.done?b:O};let v,A;const S=E=>{h(f.value)&&(v=E,A=oo({keyframes:[f.value,g(f.value)],velocity:io(I,E,f.value),damping:r,stiffness:s,restDelta:l,restSpeed:c}))};return S(0),{calculatedDuration:null,next:E=>{let M=!1;return!A&&v===void 0&&(M=!0,x(E),S(E)),v!==void 0&&E>=v?A.next(E-v):(!M&&x(E),f)}}}const xd=St(.42,0,1,1),Ad=St(0,0,.58,1),uo=St(.42,0,.58,1),Sd=e=>Array.isArray(e)&&typeof e[0]!="number",lo={linear:oe,easeIn:xd,easeInOut:uo,easeOut:Ad,circIn:Ii,circInOut:Bs,circOut:Gs,backIn:yi,backInOut:Ts,backOut:Vs,anticipate:ws},co=e=>{if(di(e)){Le(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,i,r]=e;return St(t,n,i,r)}else if(typeof e=="string")return Le(lo[e]!==void 0,`Invalid easing type '${e}'`),lo[e];return e};function Ed(e,t,n){const i=[],r=n||no,s=e.length-1;for(let o=0;o<s;o++){let u=r(e[o],e[o+1]);if(t){const a=Array.isArray(t)?t[o]||oe:t;u=Vt(a,u)}i.push(u)}return i}function Pd(e,t,{clamp:n=!0,ease:i,mixer:r}={}){const s=e.length;if(Le(s===t.length,"Both input and output ranges must be the same length"),s===1)return()=>t[0];if(s===2&&t[0]===t[1])return()=>t[1];const o=e[0]===e[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());const u=Ed(t,i,r),a=u.length,l=c=>{if(o&&c<e[0])return t[0];let d=0;if(a>1)for(;d<e.length-2&&!(c<e[d+1]);d++);const f=et(e[d],e[d+1],c);return u[d](f)};return n?c=>l(Me(e[0],e[s-1],c)):l}function Vd(e,t){const n=e[e.length-1];for(let i=1;i<=t;i++){const r=et(0,t,i);e.push(H(n,1,r))}}function Td(e){const t=[0];return Vd(t,e.length-1),t}function wd(e,t){return e.map(n=>n*t)}function Gd(e,t){return e.map(()=>t||uo).splice(0,e.length-1)}function ln({duration:e=300,keyframes:t,times:n,ease:i="easeInOut"}){const r=Sd(i)?i.map(co):co(i),s={done:!1,value:t[0]},o=wd(n&&n.length===t.length?n:Td(t),e),u=Pd(o,t,{ease:Array.isArray(r)?r:Gd(t,r)});return{calculatedDuration:e,next:a=>(s.value=u(a),s.done=a>=e,s)}}const Bd=e=>{const t=({timestamp:n})=>e(n);return{start:()=>W.update(t,!0),stop:()=>Xe(t),now:()=>K.isProcessing?K.timestamp:Pe.now()}},Fd={decay:ao,inertia:ao,tween:ln,keyframes:ln,spring:oo},Md=e=>e/100;class Ri extends Ks{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:a}=this.options;a&&a()};const{name:n,motionValue:i,element:r,keyframes:s}=this.options,o=(r==null?void 0:r.KeyframeResolver)||wi,u=(a,l)=>this.onKeyframesResolved(a,l);this.resolver=new o(s,u,n,i,r),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:i=0,repeatDelay:r=0,repeatType:s,velocity:o=0}=this.options,u=ci(n)?n:Fd[n]||ln;let a,l;u!==ln&&typeof t[0]!="number"&&(process.env.NODE_ENV!=="production"&&Le(t.length===2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`),a=Vt(Md,no(t[0],t[1])),t=[0,100]);const c=u({...this.options,keyframes:t});s==="mirror"&&(l=u({...this.options,keyframes:[...t].reverse(),velocity:-o})),c.calculatedDuration===null&&(c.calculatedDuration=ls(c));const{calculatedDuration:d}=c,f=d+r,h=f*(i+1)-r;return{generator:c,mirroredGenerator:l,mapPercentToKeyframes:a,calculatedDuration:d,resolvedDuration:f,totalDuration:h}}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:E}=this.options;return{done:!0,value:E[E.length-1]}}const{finalKeyframe:r,generator:s,mirroredGenerator:o,mapPercentToKeyframes:u,keyframes:a,calculatedDuration:l,totalDuration:c,resolvedDuration:d}=i;if(this.startTime===null)return s.next(0);const{delay:f,repeat:h,repeatType:g,repeatDelay:m,onUpdate:p}=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 b=this.currentTime-f*(this.speed>=0?1:-1),C=this.speed>=0?b<0:b>c;this.currentTime=Math.max(b,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let I=this.currentTime,x=s;if(h){const E=Math.min(this.currentTime,c)/d;let M=Math.floor(E),O=E%1;!O&&E>=1&&(O=1),O===1&&M--,M=Math.min(M,h+1),!!(M%2)&&(g==="reverse"?(O=1-O,m&&(O-=m/d)):g==="mirror"&&(x=o)),I=Me(0,1,O)*d}const v=C?{done:!1,value:a[0]}:x.next(I);u&&(v.value=u(v.value));let{done:A}=v;!C&&l!==null&&(A=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const S=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&A);return S&&r!==void 0&&(v.value=an(a,this.options,r)),p&&p(v.value),S&&this.finish(),v}get duration(){const{resolved:t}=this;return t?Fe(t.calculatedDuration):0}get time(){return Fe(this.currentTime)}set time(t){t=Se(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=Fe(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=Bd,onPlay:n,startTime:i}=this.options;this.driver||(this.driver=t(s=>this.tick(s))),n&&n();const r=this.driver.now();this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=r):this.startTime=i??this.calcStartTime(),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 Dd=new Set(["opacity","clipPath","filter","transform"]);function Rd(e,t,n,{delay:i=0,duration:r=300,repeat:s=0,repeatType:o="loop",ease:u="easeInOut",times:a}={}){const l={[t]:n};a&&(l.offset=a);const c=hs(u,r);return Array.isArray(c)&&(l.easing=c),e.animate(l,{delay:i,duration:r,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:s+1,direction:o==="reverse"?"alternate":"normal"})}const Od=jn(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),cn=10,Nd=2e4;function Ld(e){return ci(e.type)||e.type==="spring"||!fs(e.ease)}function Xd(e,t){const n=new Ri({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let i={done:!1,value:e[0]};const r=[];let s=0;for(;!i.done&&s<Nd;)i=n.sample(s),r.push(i.value),s+=cn;return{times:void 0,keyframes:r,duration:s-cn,ease:"linear"}}const fo={anticipate:ws,backInOut:Ts,circInOut:Bs};function Wd(e){return e in fo}class ho extends Ks{constructor(t){super(t);const{name:n,motionValue:i,element:r,keyframes:s}=this.options;this.resolver=new $s(s,(o,u)=>this.onKeyframesResolved(o,u),n,i,r),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:i=300,times:r,ease:s,type:o,motionValue:u,name:a,startTime:l}=this.options;if(!u.owner||!u.owner.current)return!1;if(typeof s=="string"&&sn()&&Wd(s)&&(s=fo[s]),Ld(this.options)){const{onComplete:d,onUpdate:f,motionValue:h,element:g,...m}=this.options,p=Xd(t,m);t=p.keyframes,t.length===1&&(t[1]=t[0]),i=p.duration,r=p.times,s=p.ease,o="keyframes"}const c=Rd(u.owner.current,a,t,{...this.options,duration:i,times:r,ease:s});return c.startTime=l??this.calcStartTime(),this.pendingTimeline?(cs(c,this.pendingTimeline),this.pendingTimeline=void 0):c.onfinish=()=>{const{onComplete:d}=this.options;u.set(an(t,this.options,n)),d&&d(),this.cancel(),this.resolveFinishedPromise()},{animation:c,duration:i,times:r,type:o,ease:s,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return Fe(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return Fe(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:i}=n;i.currentTime=Se(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}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return oe;const{animation:i}=n;cs(i,t)}return oe}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;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:i,duration:r,type:s,ease:o,times:u}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:l,onUpdate:c,onComplete:d,element:f,...h}=this.options,g=new Ri({...h,keyframes:i,duration:r,type:s,ease:o,times:u,isGenerator:!0}),m=Se(this.time);l.setWithVelocity(g.sample(m-cn).value,g.sample(m).value,cn)}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:s,damping:o,type:u}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:a,transformTemplate:l}=n.owner.getProps();return Od()&&i&&Dd.has(i)&&!a&&!l&&!r&&s!=="mirror"&&o!==0&&u!=="inertia"}}const Zd={type:"spring",stiffness:500,damping:25,restSpeed:10},Hd=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),zd={type:"keyframes",duration:.8},kd={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Yd=(e,{keyframes:t})=>t.length>2?zd:Ye.has(e)?e.startsWith("scale")?Hd(t[1]):Zd:kd;function jd({when:e,delay:t,delayChildren:n,staggerChildren:i,staggerDirection:r,repeat:s,repeatType:o,repeatDelay:u,from:a,elapsed:l,...c}){return!!Object.keys(c).length}const Oi=(e,t,n,i={},r,s)=>o=>{const u=ui(i,e)||{},a=u.delay||i.delay||0;let{elapsed:l=0}=i;l=l-Se(a);let c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...u,delay:-l,onUpdate:f=>{t.set(f),u.onUpdate&&u.onUpdate(f)},onComplete:()=>{o(),u.onComplete&&u.onComplete()},name:e,motionValue:t,element:s?void 0:r};jd(u)||(c={...c,...Yd(e,c)}),c.duration&&(c.duration=Se(c.duration)),c.repeatDelay&&(c.repeatDelay=Se(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let d=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(c.duration=0,c.delay===0&&(d=!0)),d&&!s&&t.get()!==void 0){const f=an(c.keyframes,u);if(f!==void 0)return W.update(()=>{c.onUpdate(f),c.onComplete()}),new fc([])}return!s&&ho.supports(c)?new ho(c):new Ri(c)};function Jd({protectedKeys:e,needsAnimating:t},n){const i=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,i}function po(e,t,{delay:n=0,transitionOverride:i,type:r}={}){var s;let{transition:o=e.getDefaultTransition(),transitionEnd:u,...a}=t;i&&(o=i);const l=[],c=r&&e.animationState&&e.animationState.getState()[r];for(const d in a){const f=e.getValue(d,(s=e.latestValues[d])!==null&&s!==void 0?s:null),h=a[d];if(h===void 0||c&&Jd(c,d))continue;const g={delay:n,...ui(o||{},d)};let m=!1;if(window.MotionHandoffAnimation){const b=As(e);if(b){const C=window.MotionHandoffAnimation(b,d,W);C!==null&&(g.startTime=C,m=!0)}}vi(e,d),f.start(Oi(d,f,h,e.shouldReduceMotion&&Is.has(d)?{type:!1}:g,e,m));const p=f.animation;p&&l.push(p)}return u&&Promise.all(l).then(()=>{W.update(()=>{u&&Pc(e,u)})}),l}function Ni(e,t,n={}){var i;const r=rn(e,t,n.type==="exit"?(i=e.presenceContext)===null||i===void 0?void 0:i.custom:void 0);let{transition:s=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(s=n.transitionOverride);const o=r?()=>Promise.all(po(e,r,n)):()=>Promise.resolve(),u=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:c=0,staggerChildren:d,staggerDirection:f}=s;return Ud(e,t,c+l,d,f,n)}:()=>Promise.resolve(),{when:a}=s;if(a){const[l,c]=a==="beforeChildren"?[o,u]:[u,o];return l().then(()=>c())}else return Promise.all([o(),u(n.delay)])}function Ud(e,t,n=0,i=0,r=1,s){const o=[],u=(e.variantChildren.size-1)*i,a=r===1?(l=0)=>l*i:(l=0)=>u-l*i;return Array.from(e.variantChildren).sort(_d).forEach((l,c)=>{l.notify("AnimationStart",t),o.push(Ni(l,t,{...s,delay:n+a(c)}).then(()=>l.notify("AnimationComplete",t)))}),Promise.all(o)}function _d(e,t){return e.sortNodePosition(t)}function $d(e,t,n={}){e.notify("AnimationStart",t);let i;if(Array.isArray(t)){const r=t.map(s=>Ni(e,s,n));i=Promise.all(r)}else if(typeof t=="string")i=Ni(e,t,n);else{const r=typeof t=="function"?rn(e,t,n.custom):t;i=Promise.all(po(e,r,n))}return i.then(()=>{e.notify("AnimationComplete",t)})}const Qd=_n.length;function mo(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?mo(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<Qd;n++){const i=_n[n],r=e.props[i];(vt(r)||r===!1)&&(t[i]=r)}return t}const Kd=[...Un].reverse(),qd=Un.length;function ef(e){return t=>Promise.all(t.map(({animation:n,options:i})=>$d(e,n,i)))}function tf(e){let t=ef(e),n=go(),i=!0;const r=a=>(l,c)=>{var d;const f=rn(e,c,a==="exit"?(d=e.presenceContext)===null||d===void 0?void 0:d.custom:void 0);if(f){const{transition:h,transitionEnd:g,...m}=f;l={...l,...m,...g}}return l};function s(a){t=a(e)}function o(a){const{props:l}=e,c=mo(e.parent)||{},d=[],f=new Set;let h={},g=1/0;for(let p=0;p<qd;p++){const b=Kd[p],C=n[b],I=l[b]!==void 0?l[b]:c[b],x=vt(I),v=b===a?C.isActive:null;v===!1&&(g=p);let A=I===c[b]&&I!==l[b]&&x;if(A&&i&&e.manuallyAnimateOnMount&&(A=!1),C.protectedKeys={...h},!C.isActive&&v===null||!I&&!C.prevProp||Kt(I)||typeof I=="boolean")continue;const S=nf(C.prevProp,I);let E=S||b===a&&C.isActive&&!A&&x||p>g&&x,M=!1;const O=Array.isArray(I)?I:[I];let k=O.reduce(r(b),{});v===!1&&(k={});const{prevResolvedValues:U={}}=C,he={...U,...k},ue=X=>{E=!0,f.has(X)&&(M=!0,f.delete(X)),C.needsAnimating[X]=!0;const Z=e.getValue(X);Z&&(Z.liveStyle=!1)};for(const X in he){const Z=k[X],le=U[X];if(h.hasOwnProperty(X))continue;let re=!1;ei(Z)&&ei(le)?re=!us(Z,le):re=Z!==le,re?Z!=null?ue(X):f.add(X):Z!==void 0&&f.has(X)?ue(X):C.protectedKeys[X]=!0}C.prevProp=I,C.prevResolvedValues=k,C.isActive&&(h={...h,...k}),i&&e.blockInitialAnimation&&(E=!1),E&&(!(A&&S)||M)&&d.push(...O.map(X=>({animation:X,options:{type:b}})))}if(f.size){const p={};f.forEach(b=>{const C=e.getBaseTarget(b),I=e.getValue(b);I&&(I.liveStyle=!0),p[b]=C??null}),d.push({animation:p})}let m=!!d.length;return i&&(l.initial===!1||l.initial===l.animate)&&!e.manuallyAnimateOnMount&&(m=!1),i=!1,m?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 h;return(h=f.animationState)===null||h===void 0?void 0:h.setActive(a,l)}),n[a].isActive=l;const d=o(a);for(const f in n)n[f].protectedKeys={};return d}return{animateChanges:o,setActive:u,setAnimateFunction:s,getState:()=>n,reset:()=>{n=go(),i=!0}}}function nf(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!us(t,e):!1}function Ue(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function go(){return{animate:Ue(!0),whileInView:Ue(),whileHover:Ue(),whileTap:Ue(),whileDrag:Ue(),whileFocus:Ue(),exit:Ue()}}class He{constructor(t){this.isMounted=!1,this.node=t}update(){}}class rf extends He{constructor(t){super(t),t.animationState||(t.animationState=tf(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Kt(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 sf=0;class of extends He{constructor(){super(...arguments),this.id=sf++}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 af={animation:{Feature:rf},exit:{Feature:of}};function Tt(e,t,n,i={passive:!0}){return e.addEventListener(t,n,i),()=>e.removeEventListener(t,n)}function wt(e){return{point:{x:e.pageX,y:e.pageY}}}const uf=e=>t=>hi(t)&&e(t,wt(t));function Gt(e,t,n,i){return Tt(e,t,uf(n),i)}const bo=(e,t)=>Math.abs(e-t);function lf(e,t){const n=bo(e.x,t.x),i=bo(e.y,t.y);return Math.sqrt(n**2+i**2)}class vo{constructor(t,n,{transformPagePoint:i,contextWindow:r,dragSnapToOrigin:s=!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=Xi(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,h=lf(d.offset,{x:0,y:0})>=3;if(!f&&!h)return;const{point:g}=d,{timestamp:m}=K;this.history.push({...g,timestamp:m});const{onStart:p,onMove:b}=this.handlers;f||(p&&p(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),b&&b(this.lastMoveEvent,d)},this.handlePointerMove=(d,f)=>{this.lastMoveEvent=d,this.lastMoveEventInfo=Li(f,this.transformPagePoint),W.update(this.updatePoint,!0)},this.handlePointerUp=(d,f)=>{this.end();const{onEnd:h,onSessionEnd:g,resumeAnimation:m}=this.handlers;if(this.dragSnapToOrigin&&m&&m(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const p=Xi(d.type==="pointercancel"?this.lastMoveEventInfo:Li(f,this.transformPagePoint),this.history);this.startEvent&&h&&h(d,p),g&&g(d,p)},!hi(t))return;this.dragSnapToOrigin=s,this.handlers=n,this.transformPagePoint=i,this.contextWindow=r||window;const o=wt(t),u=Li(o,this.transformPagePoint),{point:a}=u,{timestamp:l}=K;this.history=[{...a,timestamp:l}];const{onSessionStart:c}=n;c&&c(t,Xi(u,this.history)),this.removeListeners=Vt(Gt(this.contextWindow,"pointermove",this.handlePointerMove),Gt(this.contextWindow,"pointerup",this.handlePointerUp),Gt(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Xe(this.updatePoint)}}function Li(e,t){return t?{point:t(e.point)}:e}function yo(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Xi({point:e},t){return{point:e,delta:yo(e,Io(t)),offset:yo(e,cf(t)),velocity:df(t,.1)}}function cf(e){return e[0]}function Io(e){return e[e.length-1]}function df(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,i=null;const r=Io(e);for(;n>=0&&(i=e[n],!(r.timestamp-i.timestamp>Se(t)));)n--;if(!i)return{x:0,y:0};const s=Fe(r.timestamp-i.timestamp);if(s===0)return{x:0,y:0};const o={x:(r.x-i.x)/s,y:(r.y-i.y)/s};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}const Co=1e-4,ff=1-Co,hf=1+Co,xo=.01,pf=0-xo,mf=0+xo;function de(e){return e.max-e.min}function gf(e,t,n){return Math.abs(e-t)<=n}function Ao(e,t,n,i=.5){e.origin=i,e.originPoint=H(t.min,t.max,e.origin),e.scale=de(n)/de(t),e.translate=H(n.min,n.max,e.origin)-e.originPoint,(e.scale>=ff&&e.scale<=hf||isNaN(e.scale))&&(e.scale=1),(e.translate>=pf&&e.translate<=mf||isNaN(e.translate))&&(e.translate=0)}function Bt(e,t,n,i){Ao(e.x,t.x,n.x,i?i.originX:void 0),Ao(e.y,t.y,n.y,i?i.originY:void 0)}function So(e,t,n){e.min=n.min+t.min,e.max=e.min+de(t)}function bf(e,t,n){So(e.x,t.x,n.x),So(e.y,t.y,n.y)}function Eo(e,t,n){e.min=t.min-n.min,e.max=e.min+de(t)}function Ft(e,t,n){Eo(e.x,t.x,n.x),Eo(e.y,t.y,n.y)}function vf(e,{min:t,max:n},i){return t!==void 0&&e<t?e=i?H(t,e,i.min):Math.max(e,t):n!==void 0&&e>n&&(e=i?H(n,e,i.max):Math.min(e,n)),e}function Po(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 yf(e,{top:t,left:n,bottom:i,right:r}){return{x:Po(e.x,n,r),y:Po(e.y,t,i)}}function Vo(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 If(e,t){return{x:Vo(e.x,t.x),y:Vo(e.y,t.y)}}function Cf(e,t){let n=.5;const i=de(e),r=de(t);return r>i?n=et(t.min,t.max-i,e.min):i>r&&(n=et(e.min,e.max-r,t.min)),Me(0,1,n)}function xf(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 Wi=.35;function Af(e=Wi){return e===!1?e=0:e===!0&&(e=Wi),{x:To(e,"left","right"),y:To(e,"top","bottom")}}function To(e,t,n){return{min:wo(e,t),max:wo(e,n)}}function wo(e,t){return typeof e=="number"?e:e[t]||0}const Go=()=>({translate:0,scale:1,origin:0,originPoint:0}),at=()=>({x:Go(),y:Go()}),Bo=()=>({min:0,max:0}),J=()=>({x:Bo(),y:Bo()});function me(e){return[e("x"),e("y")]}function Fo({top:e,left:t,right:n,bottom:i}){return{x:{min:t,max:n},y:{min:e,max:i}}}function Sf({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Ef(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 Zi(e){return e===void 0||e===1}function Hi({scale:e,scaleX:t,scaleY:n}){return!Zi(e)||!Zi(t)||!Zi(n)}function _e(e){return Hi(e)||Mo(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Mo(e){return Do(e.x)||Do(e.y)}function Do(e){return e&&e!=="0%"}function dn(e,t,n){const i=e-n,r=t*i;return n+r}function Ro(e,t,n,i,r){return r!==void 0&&(e=dn(e,r,i)),dn(e,n,i)+t}function zi(e,t=0,n=1,i,r){e.min=Ro(e.min,t,n,i,r),e.max=Ro(e.max,t,n,i,r)}function Oo(e,{x:t,y:n}){zi(e.x,t.translate,t.scale,t.originPoint),zi(e.y,n.translate,n.scale,n.originPoint)}const No=.999999999999,Lo=1.0000000000001;function Pf(e,t,n,i=!1){const r=n.length;if(!r)return;t.x=t.y=1;let s,o;for(let u=0;u<r;u++){s=n[u],o=s.projectionDelta;const{visualElement:a}=s.options;a&&a.props.style&&a.props.style.display==="contents"||(i&&s.options.layoutScroll&&s.scroll&&s!==s.root&<(e,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,Oo(e,o)),i&&_e(s.latestValues)&<(e,s.latestValues))}t.x<Lo&&t.x>No&&(t.x=1),t.y<Lo&&t.y>No&&(t.y=1)}function ut(e,t){e.min=e.min+t,e.max=e.max+t}function Xo(e,t,n,i,r=.5){const s=H(e.min,e.max,r);zi(e,t,n,s,i)}function lt(e,t){Xo(e.x,t.x,t.scaleX,t.scale,t.originX),Xo(e.y,t.y,t.scaleY,t.scale,t.originY)}function Wo(e,t){return Fo(Ef(e.getBoundingClientRect(),t))}function Vf(e,t,n){const i=Wo(e,n),{scroll:r}=t;return r&&(ut(i.x,r.offset.x),ut(i.y,r.offset.y)),i}const Zo=({current:e})=>e?e.ownerDocument.defaultView:null,Tf=new WeakMap;class wf{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=J(),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(wt(c).point)},s=(c,d)=>{const{drag:f,dragPropagation:h,onDragStart:g}=this.getProps();if(f&&!h&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Cc(f),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),me(p=>{let b=this.getAxisMotionValue(p).get()||0;if(Ee.test(b)){const{projection:C}=this.visualElement;if(C&&C.layout){const I=C.layout.layoutBox[p];I&&(b=de(I)*(parseFloat(b)/100))}}this.originPoint[p]=b}),g&&W.postRender(()=>g(c,d)),vi(this.visualElement,"transform");const{animationState:m}=this.visualElement;m&&m.setActive("whileDrag",!0)},o=(c,d)=>{const{dragPropagation:f,dragDirectionLock:h,onDirectionLock:g,onDrag:m}=this.getProps();if(!f&&!this.openDragLock)return;const{offset:p}=d;if(h&&this.currentDirection===null){this.currentDirection=Gf(p),this.currentDirection!==null&&g&&g(this.currentDirection);return}this.updateAxis("x",d.point,p),this.updateAxis("y",d.point,p),this.visualElement.render(),m&&m(c,d)},u=(c,d)=>this.stop(c,d),a=()=>me(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 vo(t,{onSessionStart:r,onStart:s,onMove:o,onSessionEnd:u,resumeAnimation:a},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,contextWindow:Zo(this.visualElement)})}stop(t,n){const i=this.isDragging;if(this.cancel(),!i)return;const{velocity:r}=n;this.startAnimation(r);const{onDragEnd:s}=this.getProps();s&&W.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.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,i){const{drag:r}=this.getProps();if(!i||!fn(t,r,this.currentDirection))return;const s=this.getAxisMotionValue(t);let o=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(o=vf(o,this.constraints[t],this.elastic[t])),s.set(o)}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,s=this.constraints;n&&nt(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&r?this.constraints=yf(r.layoutBox,n):this.constraints=!1,this.elastic=Af(i),s!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&me(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=xf(r.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!nt(t))return!1;const i=t.current;Le(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 s=Vf(i,r.root,this.visualElement.getTransformPagePoint());let o=If(r.layout.layoutBox,s);if(n){const u=n(Sf(o));this.hasMutatedConstraints=!!u,u&&(o=Fo(u))}return o}startAnimation(t){const{drag:n,dragMomentum:i,dragElastic:r,dragTransition:s,dragSnapToOrigin:o,onDragTransitionEnd:u}=this.getProps(),a=this.constraints||{},l=me(c=>{if(!fn(c,n,this.currentDirection))return;let d=a&&a[c]||{};o&&(d={min:0,max:0});const f=r?200:1e6,h=r?40:1e7,g={type:"inertia",velocity:i?t[c]:0,bounceStiffness:f,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...s,...d};return this.startAxisValueAnimation(c,g)});return Promise.all(l).then(u)}startAxisValueAnimation(t,n){const i=this.getAxisMotionValue(t);return vi(this.visualElement,t),i.start(Oi(t,i,0,n,this.visualElement,!1))}stopAnimation(){me(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){me(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){me(n=>{const{drag:i}=this.getProps();if(!fn(n,i,this.currentDirection))return;const{projection:r}=this.visualElement,s=this.getAxisMotionValue(n);if(r&&r.layout){const{min:o,max:u}=r.layout.layoutBox[n];s.set(t[n]-H(o,u,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:i}=this.visualElement;if(!nt(n)||!i||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};me(o=>{const u=this.getAxisMotionValue(o);if(u&&this.constraints!==!1){const a=u.get();r[o]=Cf({min:a,max:a},this.constraints[o])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),me(o=>{if(!fn(o,t,null))return;const u=this.getAxisMotionValue(o),{min:a,max:l}=this.constraints[o];u.set(H(a,l,r[o]))})}addListeners(){if(!this.visualElement.current)return;Tf.set(this.visualElement,this);const t=this.visualElement.current,n=Gt(t,"pointerdown",a=>{const{drag:l,dragListener:c=!0}=this.getProps();l&&c&&this.start(a)}),i=()=>{const{dragConstraints:a}=this.getProps();nt(a)&&a.current&&(this.constraints=this.resolveRefConstraints())},{projection:r}=this.visualElement,s=r.addEventListener("measure",i);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),W.read(i);const o=Tt(window,"resize",()=>this.scalePositionWithinConstraints()),u=r.addEventListener("didUpdate",({delta:a,hasLayoutChanged:l})=>{this.isDragging&&l&&(me(c=>{const d=this.getAxisMotionValue(c);d&&(this.originPoint[c]+=a[c].translate,d.set(d.get()+a[c].translate))}),this.visualElement.render())});return()=>{o(),n(),s(),u&&u()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:i=!1,dragPropagation:r=!1,dragConstraints:s=!1,dragElastic:o=Wi,dragMomentum:u=!0}=t;return{...t,drag:n,dragDirectionLock:i,dragPropagation:r,dragConstraints:s,dragElastic:o,dragMomentum:u}}}function fn(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function Gf(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class Bf extends He{constructor(t){super(t),this.removeGroupControls=oe,this.removeListeners=oe,this.controls=new wf(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||oe}unmount(){this.removeGroupControls(),this.removeListeners()}}const Ho=e=>(t,n)=>{e&&W.postRender(()=>e(t,n))};class Ff extends He{constructor(){super(...arguments),this.removePointerDownListener=oe}onPointerDown(t){this.session=new vo(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Zo(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:i,onPanEnd:r}=this.node.getProps();return{onSessionStart:Ho(t),onStart:Ho(n),onMove:i,onEnd:(s,o)=>{delete this.session,r&&W.postRender(()=>r(s,o))}}}mount(){this.removePointerDownListener=Gt(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const hn={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function zo(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Mt={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(G.test(e))e=parseFloat(e);else return e;const n=zo(e,t.target.x),i=zo(e,t.target.y);return`${n}% ${i}%`}},Mf={correct:(e,{treeScale:t,projectionDelta:n})=>{const i=e,r=Ze.parse(e);if(r.length>5)return i;const s=Ze.createTransformer(e),o=typeof r[0]!="number"?1:0,u=n.x.scale*t.x,a=n.y.scale*t.y;r[0+o]/=u,r[1+o]/=a;const l=H(u,a,.5);return typeof r[2+o]=="number"&&(r[2+o]/=l),typeof r[3+o]=="number"&&(r[3+o]/=l),s(r)}};class Df extends y.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:i,layoutId:r}=this.props,{projection:s}=t;ec(Rf),s&&(n.group&&n.group.add(s),i&&i.register&&r&&i.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),hn.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:i,drag:r,isPresent:s}=this.props,o=i.projection;return o&&(o.isPresent=s,r||t.layoutDependency!==n||n===void 0?o.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?o.promote():o.relegate()||W.postRender(()=>{const u=o.getStack();(!u||!u.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Qn.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 ko(e){const[t,n]=Mr(),i=y.useContext(Zn);return P.jsx(Df,{...e,layoutGroup:i,switchLayoutGroup:y.useContext(kr),isPresent:t,safeToRemove:n})}const Rf={borderRadius:{...Mt,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Mt,borderTopRightRadius:Mt,borderBottomLeftRadius:Mt,borderBottomRightRadius:Mt,boxShadow:Mf};function Of(e,t,n){const i=te(e)?e:At(e);return i.start(Oi("",i,t,n)),i.animation}function Nf(e){return e instanceof SVGElement&&e.tagName!=="svg"}const Lf=(e,t)=>e.depth-t.depth;class Xf{constructor(){this.children=[],this.isDirty=!1}add(t){mi(this.children,t),this.isDirty=!0}remove(t){gi(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Lf),this.isDirty=!1,this.children.forEach(t)}}function Wf(e,t){const n=Pe.now(),i=({timestamp:r})=>{const s=r-n;s>=t&&(Xe(i),e(s-t))};return W.read(i,!0),()=>Xe(i)}const Yo=["TopLeft","TopRight","BottomLeft","BottomRight"],Zf=Yo.length,jo=e=>typeof e=="string"?parseFloat(e):e,Jo=e=>typeof e=="number"||G.test(e);function Hf(e,t,n,i,r,s){r?(e.opacity=H(0,n.opacity!==void 0?n.opacity:1,zf(i)),e.opacityExit=H(t.opacity!==void 0?t.opacity:1,0,kf(i))):s&&(e.opacity=H(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,i));for(let o=0;o<Zf;o++){const u=`border${Yo[o]}Radius`;let a=Uo(t,u),l=Uo(n,u);if(a===void 0&&l===void 0)continue;a||(a=0),l||(l=0),a===0||l===0||Jo(a)===Jo(l)?(e[u]=Math.max(H(jo(a),jo(l),i),0),(Ee.test(l)||Ee.test(a))&&(e[u]+="%")):e[u]=l}(t.rotate||n.rotate)&&(e.rotate=H(t.rotate||0,n.rotate||0,i))}function Uo(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const zf=_o(0,.5,Gs),kf=_o(.5,.95,oe);function _o(e,t,n){return i=>i<e?0:i>t?1:n(et(e,t,i))}function $o(e,t){e.min=t.min,e.max=t.max}function ge(e,t){$o(e.x,t.x),$o(e.y,t.y)}function Qo(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Ko(e,t,n,i,r){return e-=t,e=dn(e,1/n,i),r!==void 0&&(e=dn(e,1/r,i)),e}function Yf(e,t=0,n=1,i=.5,r,s=e,o=e){if(Ee.test(t)&&(t=parseFloat(t),t=H(o.min,o.max,t/100)-o.min),typeof t!="number")return;let u=H(s.min,s.max,i);e===s&&(u-=t),e.min=Ko(e.min,t,n,u,r),e.max=Ko(e.max,t,n,u,r)}function qo(e,t,[n,i,r],s,o){Yf(e,t[n],t[i],t[r],t.scale,s,o)}const jf=["x","scaleX","originX"],Jf=["y","scaleY","originY"];function ea(e,t,n,i){qo(e.x,t,jf,n?n.x:void 0,i?i.x:void 0),qo(e.y,t,Jf,n?n.y:void 0,i?i.y:void 0)}function ta(e){return e.translate===0&&e.scale===1}function na(e){return ta(e.x)&&ta(e.y)}function ia(e,t){return e.min===t.min&&e.max===t.max}function Uf(e,t){return ia(e.x,t.x)&&ia(e.y,t.y)}function ra(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function sa(e,t){return ra(e.x,t.x)&&ra(e.y,t.y)}function oa(e){return de(e.x)/de(e.y)}function aa(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class _f{constructor(){this.members=[]}add(t){mi(this.members,t),t.scheduleRender()}remove(t){if(gi(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 s=this.members[r];if(s.isPresent!==!1){i=s;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 $f(e,t,n){let i="";const r=e.x.translate/t.x,s=e.y.translate/t.y,o=(n==null?void 0:n.z)||0;if((r||s||o)&&(i=`translate3d(${r}px, ${s}px, ${o}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:h,skewY:g}=n;l&&(i=`perspective(${l}px) ${i}`),c&&(i+=`rotate(${c}deg) `),d&&(i+=`rotateX(${d}deg) `),f&&(i+=`rotateY(${f}deg) `),h&&(i+=`skewX(${h}deg) `),g&&(i+=`skewY(${g}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 $e={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Dt=typeof window<"u"&&window.MotionDebug!==void 0,ki=["","X","Y","Z"],Qf={visibility:"hidden"},ua=1e3;let Kf=0;function Yi(e,t,n,i){const{latestValues:r}=t;r[e]&&(n[e]=r[e],t.setStaticValue(e,0),i&&(i[e]=0))}function la(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=As(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:r,layoutId:s}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",W,!(r||s))}const{parent:i}=e;i&&!i.hasCheckedOptimisedAppear&&la(i)}function ca({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:i,resetTransform:r}){return class{constructor(o={},u=t==null?void 0:t()){this.id=Kf++,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,Dt&&($e.totalNodes=$e.resolvedTargetDeltas=$e.recalculatedProjection=0),this.nodes.forEach(th),this.nodes.forEach(oh),this.nodes.forEach(ah),this.nodes.forEach(nh),Dt&&window.MotionDebug.record($e)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,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 Xf)}addEventListener(o,u){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new bi),this.eventHandlers.get(o).add(u)}notifyListeners(o,...u){const a=this.eventHandlers.get(o);a&&a.notify(...u)}hasListeners(o){return this.eventHandlers.has(o)}mount(o,u=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=Nf(o),this.instance=o;const{layoutId:a,layout:l,visualElement:c}=this.options;if(c&&!c.current&&c.mount(o),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(o,()=>{this.root.updateBlockedByResize=!0,d&&d(),d=Wf(f,250),hn.hasAnimatedSinceResize&&(hn.hasAnimatedSinceResize=!1,this.nodes.forEach(fa))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&c&&(a||l)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:f,hasRelativeTargetChanged:h,layout:g})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const m=this.options.transition||c.getDefaultTransition()||fh,{onLayoutAnimationStart:p,onLayoutAnimationComplete:b}=c.getProps(),C=!this.targetLayout||!sa(this.targetLayout,g)||h,I=!f&&h;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||I||f&&(C||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(d,I);const x={...ui(m,"layout"),onPlay:p,onComplete:b};(c.shouldReduceMotion||this.options.layoutRoot)&&(x.delay=0,x.type=!1),this.startAnimation(x)}else f||fa(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=g})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Xe(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(uh),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&la(this),!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(),o&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(da);return}this.isUpdating||this.nodes.forEach(rh),this.isUpdating=!1,this.nodes.forEach(sh),this.nodes.forEach(qf),this.nodes.forEach(eh),this.clearAllSnapshots();const u=Pe.now();K.delta=Me(0,1e3/60,u-K.timestamp),K.timestamp=u,K.isProcessing=!0,Jn.update.process(K),Jn.preRender.process(K),Jn.render.process(K),K.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Qn.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(ih),this.sharedNodes.forEach(lh)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,W.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){W.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 o=this.layout;this.layout=this.measure(!1),this.layoutCorrected=J(),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,o?o.layoutBox:void 0)}updateScroll(o="measure"){let u=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(u=!1),u){const a=i(this.instance);this.scroll={animationId:this.root.animationId,phase:o,isRoot:a,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:a}}}resetTransform(){if(!r)return;const o=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,u=this.projectionDelta&&!na(this.projectionDelta),a=this.getTransformTemplate(),l=a?a(this.latestValues,""):void 0,c=l!==this.prevTransformTemplateValue;o&&(u||_e(this.latestValues)||c)&&(r(this.instance,l),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const u=this.measurePageBox();let a=this.removeElementScroll(u);return o&&(a=this.removeTransform(a)),hh(a),{animationId:this.root.animationId,measuredBox:u,layoutBox:a,latestValues:{},source:this.id}}measurePageBox(){var o;const{visualElement:u}=this.options;if(!u)return J();const a=u.measureViewportBox();if(!(((o=this.scroll)===null||o===void 0?void 0:o.wasRoot)||this.path.some(ph))){const{scroll:c}=this.root;c&&(ut(a.x,c.offset.x),ut(a.y,c.offset.y))}return a}removeElementScroll(o){var u;const a=J();if(ge(a,o),!((u=this.scroll)===null||u===void 0)&&u.wasRoot)return a;for(let l=0;l<this.path.length;l++){const c=this.path[l],{scroll:d,options:f}=c;c!==this.root&&d&&f.layoutScroll&&(d.wasRoot&&ge(a,o),ut(a.x,d.offset.x),ut(a.y,d.offset.y))}return a}applyTransform(o,u=!1){const a=J();ge(a,o);for(let l=0;l<this.path.length;l++){const c=this.path[l];!u&&c.options.layoutScroll&&c.scroll&&c!==c.root&<(a,{x:-c.scroll.offset.x,y:-c.scroll.offset.y}),_e(c.latestValues)&<(a,c.latestValues)}return _e(this.latestValues)&<(a,this.latestValues),a}removeTransform(o){const u=J();ge(u,o);for(let a=0;a<this.path.length;a++){const l=this.path[a];if(!l.instance||!_e(l.latestValues))continue;Hi(l.latestValues)&&l.updateSnapshot();const c=J(),d=l.measurePageBox();ge(c,d),ea(u,l.latestValues,l.snapshot?l.snapshot.layoutBox:void 0,c)}return _e(this.latestValues)&&ea(u,this.latestValues),u}setTargetDelta(o){this.targetDelta=o,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(o){this.options={...this.options,...o,crossfade:o.crossfade!==void 0?o.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!==K.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!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(!(o||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=K.timestamp,!this.targetDelta&&!this.relativeTarget){const h=this.getClosestProjectingParent();h&&h.layout&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=J(),this.relativeTargetOrigin=J(),Ft(this.relativeTargetOrigin,this.layout.layoutBox,h.layout.layoutBox),ge(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=J(),this.targetWithTransforms=J()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),bf(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):ge(this.target,this.layout.layoutBox),Oo(this.target,this.targetDelta)):ge(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const h=this.getClosestProjectingParent();h&&!!h.resumingFrom==!!this.resumingFrom&&!h.options.layoutScroll&&h.target&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=J(),this.relativeTargetOrigin=J(),Ft(this.relativeTargetOrigin,this.target,h.target),ge(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Dt&&$e.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||Hi(this.parent.latestValues)||Mo(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 o;const u=this.getLead(),a=!!this.resumingFrom||this!==u;let l=!0;if((this.isProjectionDirty||!((o=this.parent)===null||o===void 0)&&o.isProjectionDirty)&&(l=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===K.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;ge(this.layoutCorrected,this.layout.layoutBox);const f=this.treeScale.x,h=this.treeScale.y;Pf(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=J());const{target:g}=u;if(!g){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Qo(this.prevProjectionDelta.x,this.projectionDelta.x),Qo(this.prevProjectionDelta.y,this.projectionDelta.y)),Bt(this.projectionDelta,this.layoutCorrected,g,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==h||!aa(this.projectionDelta.x,this.prevProjectionDelta.x)||!aa(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",g)),Dt&&$e.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){var u;if((u=this.options.visualElement)===null||u===void 0||u.scheduleRender(),o){const a=this.getStack();a&&a.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=at(),this.projectionDelta=at(),this.projectionDeltaWithTransform=at()}setAnimationOrigin(o,u=!1){const a=this.snapshot,l=a?a.latestValues:{},c={...this.latestValues},d=at();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!u;const f=J(),h=a?a.source:void 0,g=this.layout?this.layout.source:void 0,m=h!==g,p=this.getStack(),b=!p||p.members.length<=1,C=!!(m&&!b&&this.options.crossfade===!0&&!this.path.some(dh));this.animationProgress=0;let I;this.mixTargetDelta=x=>{const v=x/1e3;ha(d.x,o.x,v),ha(d.y,o.y,v),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Ft(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),ch(this.relativeTarget,this.relativeTargetOrigin,f,v),I&&Uf(this.relativeTarget,I)&&(this.isProjectionDirty=!1),I||(I=J()),ge(I,this.relativeTarget)),m&&(this.animationValues=c,Hf(c,l,this.latestValues,v,C,b)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=v},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Xe(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=W.update(()=>{hn.hasAnimatedSinceResize=!0,this.currentAnimation=Of(0,ua,{...o,onUpdate:u=>{this.mixTargetDelta(u),o.onUpdate&&o.onUpdate(u)},onComplete:()=>{o.onComplete&&o.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 o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(ua),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:u,target:a,layout:l,latestValues:c}=o;if(!(!u||!a||!l)){if(this!==o&&this.layout&&l&&va(this.options.animationType,this.layout.layoutBox,l.layoutBox)){a=this.target||J();const d=de(this.layout.layoutBox.x);a.x.min=o.target.x.min,a.x.max=a.x.min+d;const f=de(this.layout.layoutBox.y);a.y.min=o.target.y.min,a.y.max=a.y.min+f}ge(u,a),lt(u,c),Bt(this.projectionDeltaWithTransform,this.layoutCorrected,u,c)}}registerSharedNode(o,u){this.sharedNodes.has(o)||this.sharedNodes.set(o,new _f),this.sharedNodes.get(o).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 o=this.getStack();return o?o.lead===this:!0}getLead(){var o;const{layoutId:u}=this.options;return u?((o=this.getStack())===null||o===void 0?void 0:o.lead)||this:this}getPrevLead(){var o;const{layoutId:u}=this.options;return u?(o=this.getStack())===null||o===void 0?void 0:o.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:u,preserveFollowOpacity:a}={}){const l=this.getStack();l&&l.promote(this,a),o&&(this.projectionDelta=void 0,this.needsReset=!0),u&&this.setOptions({transition:u})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let u=!1;const{latestValues:a}=o;if((a.z||a.rotate||a.rotateX||a.rotateY||a.rotateZ||a.skewX||a.skewY)&&(u=!0),!u)return;const l={};a.z&&Yi("z",o,l,this.animationValues);for(let c=0;c<ki.length;c++)Yi(`rotate${ki[c]}`,o,l,this.animationValues),Yi(`skew${ki[c]}`,o,l,this.animationValues);o.render();for(const c in l)o.setStaticValue(c,l[c]),this.animationValues&&(this.animationValues[c]=l[c]);o.scheduleRender()}getProjectionStyles(o){var u,a;if(!this.instance||this.isSVG)return;if(!this.isVisible)return Qf;const l={visibility:""},c=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,l.opacity="",l.pointerEvents=en(o==null?void 0:o.pointerEvents)||"",l.transform=c?c(this.latestValues,""):"none",l;const d=this.getLead();if(!this.projectionDelta||!this.layout||!d.target){const m={};return this.options.layoutId&&(m.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,m.pointerEvents=en(o==null?void 0:o.pointerEvents)||""),this.hasProjected&&!_e(this.latestValues)&&(m.transform=c?c({},""):"none",this.hasProjected=!1),m}const f=d.animationValues||d.latestValues;this.applyTransformsToTarget(),l.transform=$f(this.projectionDeltaWithTransform,this.treeScale,f),c&&(l.transform=c(f,l.transform));const{x:h,y:g}=this.projectionDelta;l.transformOrigin=`${h.origin*100}% ${g.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 m in nn){if(f[m]===void 0)continue;const{correct:p,applyTo:b}=nn[m],C=l.transform==="none"?f[m]:p(f[m],d);if(b){const I=b.length;for(let x=0;x<I;x++)l[b[x]]=C}else l[m]=C}return this.options.layoutId&&(l.pointerEvents=d===this?en(o==null?void 0:o.pointerEvents)||"":"none"),l}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>{var u;return(u=o.currentAnimation)===null||u===void 0?void 0:u.stop()}),this.root.nodes.forEach(da),this.root.sharedNodes.clear()}}}function qf(e){e.updateLayout()}function eh(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:s}=e.options,o=n.source!==e.layout.source;s==="size"?me(d=>{const f=o?n.measuredBox[d]:n.layoutBox[d],h=de(f);f.min=i[d].min,f.max=f.min+h}):va(s,n.layoutBox,i)&&me(d=>{const f=o?n.measuredBox[d]:n.layoutBox[d],h=de(i[d]);f.max=f.min+h,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+h)});const u=at();Bt(u,i,n.layoutBox);const a=at();o?Bt(a,e.applyTransform(r,!0),n.measuredBox):Bt(a,i,n.layoutBox);const l=!na(u);let c=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:f,layout:h}=d;if(f&&h){const g=J();Ft(g,n.layoutBox,f.layoutBox);const m=J();Ft(m,i,h.layoutBox),sa(g,m)||(c=!0),d.options.layoutRoot&&(e.relativeTarget=m,e.relativeTargetOrigin=g,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 th(e){Dt&&$e.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 nh(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function ih(e){e.clearSnapshot()}function da(e){e.clearMeasurements()}function rh(e){e.isLayoutDirty=!1}function sh(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function fa(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function oh(e){e.resolveTargetDelta()}function ah(e){e.calcProjection()}function uh(e){e.resetSkewAndRotation()}function lh(e){e.removeLeadSnapshot()}function ha(e,t,n){e.translate=H(t.translate,0,n),e.scale=H(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function pa(e,t,n,i){e.min=H(t.min,n.min,i),e.max=H(t.max,n.max,i)}function ch(e,t,n,i){pa(e.x,t.x,n.x,i),pa(e.y,t.y,n.y,i)}function dh(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const fh={duration:.45,ease:[.4,0,.1,1]},ma=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),ga=ma("applewebkit/")&&!ma("chrome/")?Math.round:oe;function ba(e){e.min=ga(e.min),e.max=ga(e.max)}function hh(e){ba(e.x),ba(e.y)}function va(e,t,n){return e==="position"||e==="preserve-aspect"&&!gf(oa(t),oa(n),.2)}function ph(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const mh=ca({attachResizeListener:(e,t)=>Tt(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),ji={current:void 0},ya=ca({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!ji.current){const e=new mh({});e.mount(window),e.setOptions({layoutScroll:!0}),ji.current=e}return ji.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),gh={pan:{Feature:Ff},drag:{Feature:Bf,ProjectionNode:ya,MeasureLayout:ko}};function Ia(e,t,n){const{props:i}=e;e.animationState&&i.whileHover&&e.animationState.setActive("whileHover",n==="Start");const r="onHover"+n,s=i[r];s&&W.postRender(()=>s(t,wt(t)))}class bh extends He{mount(){const{current:t}=this.node;t&&(this.unmount=gc(t,n=>(Ia(this.node,n,"Start"),i=>Ia(this.node,i,"End"))))}unmount(){}}class vh extends He{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=Vt(Tt(this.node.current,"focus",()=>this.onFocus()),Tt(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Ca(e,t,n){const{props:i}=e;e.animationState&&i.whileTap&&e.animationState.setActive("whileTap",n==="Start");const r="onTap"+(n==="End"?"":n),s=i[r];s&&W.postRender(()=>s(t,wt(t)))}class yh extends He{mount(){const{current:t}=this.node;t&&(this.unmount=Ic(t,n=>(Ca(this.node,n,"Start"),(i,{success:r})=>Ca(this.node,i,r?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Ji=new WeakMap,Ui=new WeakMap,Ih=e=>{const t=Ji.get(e.target);t&&t(e)},Ch=e=>{e.forEach(Ih)};function xh({root:e,...t}){const n=e||document;Ui.has(n)||Ui.set(n,{});const i=Ui.get(n),r=JSON.stringify(t);return i[r]||(i[r]=new IntersectionObserver(Ch,{root:e,...t})),i[r]}function Ah(e,t,n){const i=xh(t);return Ji.set(e,n),i.observe(e),()=>{Ji.delete(e),i.unobserve(e)}}const Sh={some:0,all:1};class Eh extends He{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:s}=t,o={root:n?n.current:void 0,rootMargin:i,threshold:typeof r=="number"?r:Sh[r]},u=a=>{const{isIntersecting:l}=a;if(this.isInView===l||(this.isInView=l,s&&!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 Ah(this.node.current,o,u)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(Ph(t,n))&&this.startObserver()}unmount(){}}function Ph({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Vh={inView:{Feature:Eh},tap:{Feature:yh},focus:{Feature:vh},hover:{Feature:bh}},Th={layout:{ProjectionNode:ya,MeasureLayout:ko}},_i={current:null},xa={current:!1};function wh(){if(xa.current=!0,!!kn)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>_i.current=e.matches;e.addListener(t),t()}else _i.current=!1}const Gh=[...Us,ne,Ze],Bh=e=>Gh.find(Js(e)),Aa=new WeakMap;function Fh(e,t,n){for(const i in t){const r=t[i],s=n[i];if(te(r))e.addValue(i,r),process.env.NODE_ENV==="development"&&$t(r.version==="11.18.2",`Attempting to mix Motion versions ${r.version} with 11.18.2 may not work as expected.`);else if(te(s))e.addValue(i,At(r,{owner:e}));else if(s!==r)if(e.hasValue(i)){const o=e.getValue(i);o.liveStyle===!0?o.jump(r):o.hasAnimated||o.set(r)}else{const o=e.getStaticValue(i);e.addValue(i,At(o!==void 0?o:r,{owner:e}))}}for(const i in n)t[i]===void 0&&e.removeValue(i);return t}const Sa=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Mh{scrapeMotionValuesFromProps(t,n,i){return{}}constructor({parent:t,props:n,presenceContext:i,reducedMotionConfig:r,blockInitialAnimation:s,visualState:o},u={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=wi,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const h=Pe.now();this.renderScheduledAt<h&&(this.renderScheduledAt=h,W.render(this.render,!1,!0))};const{latestValues:a,renderState:l,onUpdate:c}=o;this.onUpdate=c,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=!!s,this.isControllingVariants=qt(n),this.isVariantNode=Zr(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:d,...f}=this.scrapeMotionValuesFromProps(n,{},this);for(const h in f){const g=f[h];a[h]!==void 0&&te(g)&&g.set(a[h],!1)}}mount(t){this.current=t,Aa.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)),xa.current||wh(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:_i.current,process.env.NODE_ENV!=="production"&&$t(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(){Aa.delete(this.current),this.projection&&this.projection.unmount(),Xe(this.notifyUpdate),Xe(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),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){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const i=Ye.has(t),r=n.on("change",u=>{this.latestValues[t]=u,this.props.onUpdate&&W.preRender(this.notifyUpdate),i&&this.projection&&(this.projection.isTransformDirty=!0)}),s=n.on("renderRequest",this.scheduleRender);let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{r(),s(),o&&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 tt){const n=tt[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 s=this.features[t];s.isMounted?s.update():(s.mount(),s.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):J()}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<Sa.length;i++){const r=Sa[i];this.propEventSubscriptions[r]&&(this.propEventSubscriptions[r](),delete this.propEventSubscriptions[r]);const s="on"+r,o=t[s];o&&(this.propEventSubscriptions[r]=this.on(r,o))}this.prevMotionValues=Fh(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}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}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=At(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"&&(Ys(r)||Fs(r))?r=parseFloat(r):!Bh(r)&&Ze.test(n)&&(r=Xs(t,n)),this.setBaseTarget(t,te(r)?r.get():r)),te(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 o=qn(this.props,i,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);o&&(r=o[t])}if(i&&r!==void 0)return r;const s=this.getBaseTargetFromProps(this.props,t);return s!==void 0&&!te(s)?s:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new bi),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class Ea extends Mh{constructor(){super(...arguments),this.KeyframeResolver=$s}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]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;te(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function Dh(e){return window.getComputedStyle(e)}class Rh extends Ea{constructor(){super(...arguments),this.type="html",this.renderInstance=ts}readValueFromInstance(t,n){if(Ye.has(n)){const i=Pi(n);return i&&i.default||0}else{const i=Dh(t),r=(_r(n)?i.getPropertyValue(n):i[n])||0;return typeof r=="string"?r.trim():r}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Wo(t,n)}build(t,n,i){ii(t,n,i.transformTemplate)}scrapeMotionValuesFromProps(t,n,i){return ai(t,n,i)}}class Oh extends Ea{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=J}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Ye.has(n)){const i=Pi(n);return i&&i.default||0}return n=ns.has(n)?n:$n(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,i){return ss(t,n,i)}build(t,n,i){ri(t,n,this.isSVGTag,i.transformTemplate)}renderInstance(t,n,i,r){is(t,n,i,r)}mount(t){this.isSVGTag=oi(t.tagName),super.mount(t)}}const Nh=(e,t)=>Kn(e)?new Oh(t):new Rh(t,{allowProjection:e!==y.Fragment}),Lh=lc({...af,...Vh,...gh,...Th},Nh),Rt=El(Lh),Xh=e=>{let t=P.jsx(P.Fragment,{});switch(e){case"success":t=P.jsx(ll,{});break;case"info":t=P.jsx(dl,{});break;case"warning":t=P.jsx(fl,{});break;case"error":t=P.jsx(cl,{});break}return{icon:t}},Wh=e=>{const{id:t,type:n,title:i}=e,{icon:r}=Xh(n),s=4e3,o=Vr(),u=y.useCallback(()=>{o.removeToast(t)},[t,o]);return y.useEffect(()=>{const a=setTimeout(()=>{setTimeout(()=>{u()},1e3)},s);return()=>{clearTimeout(a)}},[]),P.jsx(Rt.div,{layout:!0,initial:{opacity:0,y:50,scale:.3},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:0,scale:.8},children:P.jsxs("div",{className:ze(Ae.toast,Ae[n]),children:[P.jsx("div",{className:Ae["toast-icon"],children:r}),P.jsx("div",{className:Ae["toast-content"],children:P.jsx("p",{className:Ae["toast-title"],children:i})}),P.jsx("div",{className:Ae["toast-close"],children:P.jsx("button",{type:"button",className:Ae["toast-close-btn"],onClick:u,children:P.jsx("span",{className:Ae["toast-close-btn-icon"],children:P.jsx(hl,{})})})})]})},t)};function Zh(e){const{children:t}=e,[n,i]=y.useState(!1);y.useEffect(()=>{i(!0)},[]);const r=document.getElementById("biznext-ui-toast-portal");return n&&r?Ne.createPortal(t,r):Ne.createPortal(t,document.body)}const Hh=e=>{const{toasts:t,toastPosition:n="top-center"}=e;return P.jsx(Zh,{children:P.jsx("div",{className:ze(Ae["toasts-container"],Ae[n]),children:P.jsx(Yn,{children:t.map(i=>P.jsx(Wh,{id:i.id,type:i.type,title:i.title},i.id))})})})};for(var q=[],$i=0;$i<256;++$i)q.push(($i+256).toString(16).slice(1));function zh(e,t=0){return(q[e[t+0]]+q[e[t+1]]+q[e[t+2]]+q[e[t+3]]+"-"+q[e[t+4]]+q[e[t+5]]+"-"+q[e[t+6]]+q[e[t+7]]+"-"+q[e[t+8]]+q[e[t+9]]+"-"+q[e[t+10]]+q[e[t+11]]+q[e[t+12]]+q[e[t+13]]+q[e[t+14]]+q[e[t+15]]).toLowerCase()}var pn,kh=new Uint8Array(16);function Yh(){if(!pn&&(pn=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!pn))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return pn(kh)}var jh=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);const Pa={randomUUID:jh};function Jh(e,t,n){if(Pa.randomUUID&&!e)return Pa.randomUUID();e=e||{};var i=e.random||(e.rng||Yh)();return i[6]=i[6]&15|64,i[8]=i[8]&63|128,zh(i)}function Uh(){return Ne.createPortal(P.jsxs("div",{id:"biznext-ui-portal",children:[P.jsx("div",{id:"biznext-ui-modal-portal"}),P.jsx("div",{id:"biznext-ui-toast-portal"}),P.jsx("div",{id:"biznext-ui-confirm-dialog-portal"})]}),document.body)}function _h(e){return ke({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M7 4V2H17V4H22V6H20V21C20 21.5523 19.5523 22 19 22H5C4.44772 22 4 21.5523 4 21V6H2V4H7ZM6 6V20H18V6H6ZM9 9H11V17H9V9ZM13 9H15V17H13V9Z"},child:[]}]})(e)}const ye={"confirm-dialog":"biznext-ui-4yyscqDACxw-e","confirm-dialog-overlay":"biznext-ui-ylpaWxEFaTU-c","confirm-dialog-content":"biznext-ui-xwshXokj5ZA-c","confirm-dialog-body":"biznext-ui-K3-i0eWEQi8-2","confirm-dialog-icon-container":"biznext-ui-W86o6InrK1E-5","confirm-dialog-icon":"biznext-ui-PSIKxZhvjyo-3","confirm-dialog-footer":"biznext-ui-ffcW632vEe0-7","confirm-dialog-footer-close-btn":"biznext-ui-hDNTUYM-ra0-8","confirm-dialog-footer-confirm-btn":"biznext-ui-bFmcSx3W8Rs-6",info:"biznext-ui-wec4qWkj9NU-c",warning:"biznext-ui-mcehjNn9Nl0-9",danger:"biznext-ui-pYq-UQoFMHM-a",success:"biznext-ui-bgVORylkzc0-6"};function $h(e){const{children:t}=e,[n,i]=y.useState(!1);y.useEffect(()=>{i(!0)},[]);const r=document.getElementById("biznext-ui-confirm-dialog-portal");return n&&r?Ne.createPortal(t,r):Ne.createPortal(t,document.body)}const Qh=e=>{const{isOpen:t,onClose:n,config:i}=e,{type:r,title:s,description:o,icon:u,onConfirm:a,buttonContent:l}=i,c=()=>{n()},d=()=>{a(),n()};return P.jsx($h,{children:P.jsx("div",{className:ye["confirm-dialog-wrapper"],children:P.jsx(Yn,{children:t&&P.jsx(Rt.div,{className:ye["confirm-dialog-overlay"],initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},children:P.jsx(Rt.div,{className:ze(ye["confirm-dialog"],ye[r]),initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.95},children:P.jsxs("div",{className:ye["confirm-dialog-content"],children:[P.jsxs("div",{className:ye["confirm-dialog-body"],children:[P.jsx("div",{className:ye["confirm-dialog-icon-container"],children:P.jsx("div",{className:ye["confirm-dialog-icon"],children:u||P.jsx(_h,{})})}),P.jsxs("div",{children:[P.jsx("h2",{children:s}),P.jsx("p",{children:o})]})]}),P.jsxs("div",{className:ye["confirm-dialog-footer"],children:[P.jsx("button",{type:"button",className:ye["confirm-dialog-footer-close-btn"],onClick:c,children:l&&l.onCloseTitle?l.onCloseTitle:"Cancel"}),P.jsx("button",{type:"button",className:ye["confirm-dialog-footer-confirm-btn"],onClick:d,children:l&&l.onConfirmTitle?l.onConfirmTitle:"Confirm"})]})]})})})})})})},Va=y.createContext({}),Kh=({children:e,toastPosition:t})=>{const n={toasts:[]},[i,r]=y.useReducer(Ku,n),s=(I,x,v)=>{const A=Jh();r({type:"ADD_TOAST",payload:{id:A,title:x,type:I,config:v}})},d={success:(I,x)=>{s("success",I,x)},warning:(I,x)=>{s("warning",I,x)},info:(I,x)=>{s("info",I,x)},error:(I,x)=>{s("error",I,x)},removeToast:I=>{r({type:"DELETE_TOAST",payload:{id:I,title:"",type:""}})}},[f,h]=y.useState({}),[g,m]=y.useState(!1),p=I=>{h(I),m(!0)},b=()=>{m(!1)},C=p;return P.jsx(Pr.Provider,{value:d,children:P.jsxs(Va.Provider,{value:C,children:[P.jsx(Uh,{}),P.jsx(Hh,{toasts:i.toasts,toastPosition:t}),P.jsx(Qh,{isOpen:g,onClose:b,config:f}),e]})})},be={"modal-wrapper":"biznext-ui-n2Vjx4mdikE-9","modal-overlay":"biznext-ui-6sKjk6L11EQ-e",modal:"biznext-ui-Mao59ye15po-3","scale-zoom-in":"biznext-ui-a7p3n176fMY-6",left:"biznext-ui-5bDq6-PrHF4-e","left-slider":"biznext-ui-dhv7A0opLyg-7",right:"biznext-ui-X9XXG3R3kc4-5","right-slider":"biznext-ui-EXk9iqQoKIU-1","top-left":"biznext-ui-agEjPkJufuY-6","top-center":"biznext-ui-CzoFpYQH5r0-0","top-right":"biznext-ui-e0SRVasbx2Q-7","bottom-left":"biznext-ui-jMdhucf3jH4-8","bottom-center":"biznext-ui-1ruLnzU-7Mg-d","bottom-right":"biznext-ui-IBxY5gMZXAs-2",center:"biznext-ui-g7IKSnXitqg-8",full:"biznext-ui-T4NhvYHqFMo-4","modal-content":"biznext-ui-1F-uEUK7Izg-d","modal-header":"biznext-ui-nWO9WSw4Ix8-9","module-header-close-btn":"biznext-ui-kCEeyonkTlE-9","modal-title":"biznext-ui-r-WKlIAFS20-a","modal-body":"biznext-ui-7AJhK9Yn-KQ-e","modal-footer":"biznext-ui-lUyv0bpMUw4-9","modal-footer-close-btn":"biznext-ui-acScPNehEic-6"};function qh(e){return ke({attr:{viewBox:"0 0 352 512"},child:[{tag:"path",attr:{d:"M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z"},child:[]}]})(e)}function ep(e){const{children:t}=e,[n,i]=y.useState(!1);y.useEffect(()=>{i(!0)},[]);const r=document.getElementById("biznext-ui-modal-portal");return n&&r?Ne.createPortal(t,r):Ne.createPortal(t,document.body)}const Qi=y.createContext({onClose:()=>console.warn("Biznext-UI-Modal: Close Function not Implemented!")}),ct=e=>{const{type:t,index:n,height:i,width:r,sx:s,isOpen:o,onClose:u,children:a}=e,l=9999+(n||0),[c,d]=y.useState(!1),[f,h]=y.useState(!1);y.useEffect(()=>{d(!0)},[]);const g=()=>{h(!0),setTimeout(()=>{h(!1)},100)};return P.jsx(Qi.Provider,{value:{onClose:u},children:c?P.jsx(ep,{children:P.jsx(Yn,{children:o&&P.jsxs("div",{className:be["modal-wrapper"],children:[P.jsx(Rt.div,{className:ze(be["modal-overlay"]),style:{zIndex:l},onClick:g,initial:{opacity:0},animate:{opacity:1},exit:{opacity:0}}),P.jsx(Rt.div,{className:ze(be.modal,f&&be["scale-zoom-in"],be[t]),style:{height:i,width:r,zIndex:l,...s},initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.95},children:a})]})})}):null})},tp=({children:e})=>P.jsx("div",{className:be["modal-content"],children:e}),np=({children:e})=>{const{onClose:t}=y.useContext(Qi);return P.jsxs("header",{id:"handle",className:be["modal-header"],children:[e,P.jsx("button",{type:"button",className:be["module-header-close-btn"],onClick:t,children:P.jsx(qh,{})})]})},ip=({children:e})=>P.jsx("h2",{className:be["modal-title"],children:e}),rp=({children:e})=>P.jsx("div",{className:be["modal-body"],children:e}),sp=e=>{const{children:t,closeTitle:n}=e,{onClose:i}=y.useContext(Qi);return P.jsxs("footer",{className:be["modal-footer"],children:[t,P.jsx("button",{type:"button",className:be["modal-footer-close-btn"],onClick:i,children:n||"Cancel"})]})};ct.Content=tp,ct.Header=np,ct.Title=ip,ct.Body=rp,ct.Footer=sp;const op=()=>y.useContext(Va),Ie={form:"biznext-ui-WgISRe1bJDU-5","form-group":"biznext-ui-PDYbgOuoFL0-3","form-input-group":"biznext-ui-7dIDGqcfwy4-e","form-input-group-label":"biznext-ui-3qrluRcbSyQ-d",required:"biznext-ui-S1AWtF9fE-s-4","form-input-control-group":"biznext-ui-GQweSyKURD4-1","form-input-control":"biznext-ui-Pxa8kMsnvaQ-3","validation-error":"biznext-ui-B7sgFlayyBI-0","form-select-control":"biznext-ui-TyZSBF2HLh0-4","form-input-group-error-text":"biznext-ui-npOI3UC2M38-9"};function Qe(e){"@babel/helpers - typeof";return Qe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qe(e)}function ap(e,t){if(Qe(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t);if(Qe(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ta(e){var t=ap(e,"string");return Qe(t)=="symbol"?t:t+""}function Ot(e,t,n){return(t=Ta(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wa(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 w(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?wa(Object(n),!0).forEach(function(i){Ot(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wa(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function up(e){if(Array.isArray(e))return e}function lp(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var i,r,s,o,u=[],a=!0,l=!1;try{if(s=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;a=!1}else for(;!(a=(i=s.call(n)).done)&&(u.push(i.value),u.length!==t);a=!0);}catch(c){l=!0,r=c}finally{try{if(!a&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw r}}return u}}function Ki(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function Ga(e,t){if(e){if(typeof e=="string")return Ki(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ki(e,t):void 0}}function cp(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
14
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function De(e,t){return up(e)||lp(e,t)||Ga(e,t)||cp()}function dp(e,t){if(e==null)return{};var n={};for(var
|
|
15
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function er(e){return Ip(e)||Cp(e)||Ga(e)||xp()}function Ap(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function Sp(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var Ep=function(){function e(n){var i=this;this._insertTag=function(r){var s;i.tags.length===0?i.insertionPoint?s=i.insertionPoint.nextSibling:i.prepend?s=i.container.firstChild:s=i.before:s=i.tags[i.tags.length-1].nextSibling,i.container.insertBefore(r,s),i.tags.push(r)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(i){i.forEach(this._insertTag)},t.insert=function(i){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Sp(this));var r=this.tags[this.tags.length-1];if(this.isSpeedy){var s=Ap(r);try{s.insertRule(i,s.cssRules.length)}catch{}}else r.appendChild(document.createTextNode(i));this.ctr++},t.flush=function(){this.tags.forEach(function(i){var r;return(r=i.parentNode)==null?void 0:r.removeChild(i)}),this.tags=[],this.ctr=0},e}(),ie="-ms-",gn="-moz-",D="-webkit-",Ma="comm",tr="rule",nr="decl",Pp="@import",Da="@keyframes",Vp="@layer",Tp=Math.abs,bn=String.fromCharCode,wp=Object.assign;function Gp(e,t){return ee(e,0)^45?(((t<<2^ee(e,0))<<2^ee(e,1))<<2^ee(e,2))<<2^ee(e,3):0}function Ra(e){return e.trim()}function Bp(e,t){return(e=t.exec(e))?e[0]:e}function R(e,t,n){return e.replace(t,n)}function ir(e,t){return e.indexOf(t)}function ee(e,t){return e.charCodeAt(t)|0}function Nt(e,t,n){return e.slice(t,n)}function Ve(e){return e.length}function rr(e){return e.length}function vn(e,t){return t.push(e),e}function Fp(e,t){return e.map(t).join("")}var yn=1,dt=1,Oa=0,ae=0,Q=0,ft="";function In(e,t,n,i,r,s,o){return{value:e,root:t,parent:n,type:i,props:r,children:s,line:yn,column:dt,length:o,return:""}}function Lt(e,t){return wp(In("",null,null,"",null,null,0),e,{length:-e.length},t)}function Mp(){return Q}function Dp(){return Q=ae>0?ee(ft,--ae):0,dt--,Q===10&&(dt=1,yn--),Q}function fe(){return Q=ae<Oa?ee(ft,ae++):0,dt++,Q===10&&(dt=1,yn++),Q}function Te(){return ee(ft,ae)}function Cn(){return ae}function Xt(e,t){return Nt(ft,e,t)}function Wt(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Na(e){return yn=dt=1,Oa=Ve(ft=e),ae=0,[]}function La(e){return ft="",e}function xn(e){return Ra(Xt(ae-1,sr(e===91?e+2:e===40?e+1:e)))}function Rp(e){for(;(Q=Te())&&Q<33;)fe();return Wt(e)>2||Wt(Q)>3?"":" "}function Op(e,t){for(;--t&&fe()&&!(Q<48||Q>102||Q>57&&Q<65||Q>70&&Q<97););return Xt(e,Cn()+(t<6&&Te()==32&&fe()==32))}function sr(e){for(;fe();)switch(Q){case e:return ae;case 34:case 39:e!==34&&e!==39&&sr(Q);break;case 40:e===41&&sr(e);break;case 92:fe();break}return ae}function Np(e,t){for(;fe()&&e+Q!==57;)if(e+Q===84&&Te()===47)break;return"/*"+Xt(t,ae-1)+"*"+bn(e===47?e:fe())}function Lp(e){for(;!Wt(Te());)fe();return Xt(e,ae)}function Xp(e){return La(An("",null,null,null,[""],e=Na(e),0,[0],e))}function An(e,t,n,i,r,s,o,u,a){for(var l=0,c=0,d=o,f=0,h=0,g=0,m=1,p=1,b=1,C=0,I="",x=r,v=s,A=i,S=I;p;)switch(g=C,C=fe()){case 40:if(g!=108&&ee(S,d-1)==58){ir(S+=R(xn(C),"&","&\f"),"&\f")!=-1&&(b=-1);break}case 34:case 39:case 91:S+=xn(C);break;case 9:case 10:case 13:case 32:S+=Rp(g);break;case 92:S+=Op(Cn()-1,7);continue;case 47:switch(Te()){case 42:case 47:vn(Wp(Np(fe(),Cn()),t,n),a);break;default:S+="/"}break;case 123*m:u[l++]=Ve(S)*b;case 125*m:case 59:case 0:switch(C){case 0:case 125:p=0;case 59+c:b==-1&&(S=R(S,/\f/g,"")),h>0&&Ve(S)-d&&vn(h>32?Wa(S+";",i,n,d-1):Wa(R(S," ","")+";",i,n,d-2),a);break;case 59:S+=";";default:if(vn(A=Xa(S,t,n,l,c,r,u,I,x=[],v=[],d),s),C===123)if(c===0)An(S,t,A,A,x,s,d,u,v);else switch(f===99&&ee(S,3)===110?100:f){case 100:case 108:case 109:case 115:An(e,A,A,i&&vn(Xa(e,A,A,0,0,r,u,I,r,x=[],d),v),r,v,d,u,i?x:v);break;default:An(S,A,A,A,[""],v,0,u,v)}}l=c=h=0,m=b=1,I=S="",d=o;break;case 58:d=1+Ve(S),h=g;default:if(m<1){if(C==123)--m;else if(C==125&&m++==0&&Dp()==125)continue}switch(S+=bn(C),C*m){case 38:b=c>0?1:(S+="\f",-1);break;case 44:u[l++]=(Ve(S)-1)*b,b=1;break;case 64:Te()===45&&(S+=xn(fe())),f=Te(),c=d=Ve(I=S+=Lp(Cn())),C++;break;case 45:g===45&&Ve(S)==2&&(m=0)}}return s}function Xa(e,t,n,i,r,s,o,u,a,l,c){for(var d=r-1,f=r===0?s:[""],h=rr(f),g=0,m=0,p=0;g<i;++g)for(var b=0,C=Nt(e,d+1,d=Tp(m=o[g])),I=e;b<h;++b)(I=Ra(m>0?f[b]+" "+C:R(C,/&\f/g,f[b])))&&(a[p++]=I);return In(e,t,n,r===0?tr:u,a,l,c)}function Wp(e,t,n){return In(e,t,n,Ma,bn(Mp()),Nt(e,2,-2),0)}function Wa(e,t,n,i){return In(e,t,n,nr,Nt(e,0,i),Nt(e,i+1,-1),i)}function ht(e,t){for(var n="",i=rr(e),r=0;r<i;r++)n+=t(e[r],r,e,t)||"";return n}function Zp(e,t,n,i){switch(e.type){case Vp:if(e.children.length)break;case Pp:case nr:return e.return=e.return||e.value;case Ma:return"";case Da:return e.return=e.value+"{"+ht(e.children,i)+"}";case tr:e.value=e.props.join(",")}return Ve(n=ht(e.children,i))?e.return=e.value+"{"+n+"}":""}function Hp(e){var t=rr(e);return function(n,i,r,s){for(var o="",u=0;u<t;u++)o+=e[u](n,i,r,s)||"";return o}}function zp(e){return function(t){t.root||(t=t.return)&&e(t)}}function kp(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Yp=function(t,n,i){for(var r=0,s=0;r=s,s=Te(),r===38&&s===12&&(n[i]=1),!Wt(s);)fe();return Xt(t,ae)},jp=function(t,n){var i=-1,r=44;do switch(Wt(r)){case 0:r===38&&Te()===12&&(n[i]=1),t[i]+=Yp(ae-1,n,i);break;case 2:t[i]+=xn(r);break;case 4:if(r===44){t[++i]=Te()===58?"&\f":"",n[i]=t[i].length;break}default:t[i]+=bn(r)}while(r=fe());return t},Jp=function(t,n){return La(jp(Na(t),n))},Za=new WeakMap,Up=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,i=t.parent,r=t.column===i.column&&t.line===i.line;i.type!=="rule";)if(i=i.parent,!i)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!Za.get(i))&&!r){Za.set(t,!0);for(var s=[],o=Jp(n,s),u=i.props,a=0,l=0;a<o.length;a++)for(var c=0;c<u.length;c++,l++)t.props[l]=s[a]?o[a].replace(/&\f/g,u[c]):u[c]+" "+o[a]}}},_p=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function Ha(e,t){switch(Gp(e,t)){case 5103:return D+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return D+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return D+e+gn+e+ie+e+e;case 6828:case 4268:return D+e+ie+e+e;case 6165:return D+e+ie+"flex-"+e+e;case 5187:return D+e+R(e,/(\w+).+(:[^]+)/,D+"box-$1$2"+ie+"flex-$1$2")+e;case 5443:return D+e+ie+"flex-item-"+R(e,/flex-|-self/,"")+e;case 4675:return D+e+ie+"flex-line-pack"+R(e,/align-content|flex-|-self/,"")+e;case 5548:return D+e+ie+R(e,"shrink","negative")+e;case 5292:return D+e+ie+R(e,"basis","preferred-size")+e;case 6060:return D+"box-"+R(e,"-grow","")+D+e+ie+R(e,"grow","positive")+e;case 4554:return D+R(e,/([^-])(transform)/g,"$1"+D+"$2")+e;case 6187:return R(R(R(e,/(zoom-|grab)/,D+"$1"),/(image-set)/,D+"$1"),e,"")+e;case 5495:case 3959:return R(e,/(image-set\([^]*)/,D+"$1$`$1");case 4968:return R(R(e,/(.+:)(flex-)?(.*)/,D+"box-pack:$3"+ie+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+D+e+e;case 4095:case 3583:case 4068:case 2532:return R(e,/(.+)-inline(.+)/,D+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Ve(e)-1-t>6)switch(ee(e,t+1)){case 109:if(ee(e,t+4)!==45)break;case 102:return R(e,/(.+:)(.+)-([^]+)/,"$1"+D+"$2-$3$1"+gn+(ee(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~ir(e,"stretch")?Ha(R(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(ee(e,t+1)!==115)break;case 6444:switch(ee(e,Ve(e)-3-(~ir(e,"!important")&&10))){case 107:return R(e,":",":"+D)+e;case 101:return R(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+D+(ee(e,14)===45?"inline-":"")+"box$3$1"+D+"$2$3$1"+ie+"$2box$3")+e}break;case 5936:switch(ee(e,t+11)){case 114:return D+e+ie+R(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return D+e+ie+R(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return D+e+ie+R(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return D+e+ie+e+e}return e}var $p=function(t,n,i,r){if(t.length>-1&&!t.return)switch(t.type){case nr:t.return=Ha(t.value,t.length);break;case Da:return ht([Lt(t,{value:R(t.value,"@","@"+D)})],r);case tr:if(t.length)return Fp(t.props,function(s){switch(Bp(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ht([Lt(t,{props:[R(s,/:(read-\w+)/,":"+gn+"$1")]})],r);case"::placeholder":return ht([Lt(t,{props:[R(s,/:(plac\w+)/,":"+D+"input-$1")]}),Lt(t,{props:[R(s,/:(plac\w+)/,":"+gn+"$1")]}),Lt(t,{props:[R(s,/:(plac\w+)/,ie+"input-$1")]})],r)}return""})}},Qp=[$p],Kp=function(t){var n=t.key;if(n==="css"){var i=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(i,function(m){var p=m.getAttribute("data-emotion");p.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var r=t.stylisPlugins||Qp,s={},o,u=[];o=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(m){for(var p=m.getAttribute("data-emotion").split(" "),b=1;b<p.length;b++)s[p[b]]=!0;u.push(m)});var a,l=[Up,_p];{var c,d=[Zp,zp(function(m){c.insert(m)})],f=Hp(l.concat(r,d)),h=function(p){return ht(Xp(p),f)};a=function(p,b,C,I){c=C,h(p?p+"{"+b.styles+"}":b.styles),I&&(g.inserted[b.name]=!0)}}var g={key:n,sheet:new Ep({key:n,container:o,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:s,registered:{},insert:a};return g.sheet.hydrate(u),g},Sn={exports:{}},N={};/** @license React v16.13.1
|
|
13
|
+
`),()=>{document.head.removeChild(c)}},[t]),E.jsx(pl,{isPresent:t,childRef:r,sizeRef:i,children:M.cloneElement(e,{ref:r})})}const gl=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:s,mode:o})=>{const u=Hn(bl),a=y.useId(),l=y.useCallback(d=>{u.set(d,!0);for(const f of u.values())if(!f)return;r&&r()},[u,r]),c=y.useMemo(()=>({id:a,initial:t,isPresent:n,custom:i,onExitComplete:l,register:d=>(u.set(d,!1),()=>u.delete(d))}),s?[Math.random(),l]:[n,l]);return y.useMemo(()=>{u.forEach((d,f)=>u.set(f,!1))},[n]),M.useEffect(()=>{!n&&!u.size&&r&&r()},[n]),o==="popLayout"&&(e=E.jsx(ml,{isPresent:n,children:e})),E.jsx(jt.Provider,{value:c,children:e})};function bl(){return new Map}function Fr(e=!0){const t=y.useContext(jt);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,s=y.useId();y.useEffect(()=>{e&&i(s)},[e]);const o=y.useCallback(()=>e&&r&&r(s),[s,r,e]);return!n&&r?[!1,o]:[!0]}const Jt=e=>e.key||"";function Dr(e){const t=[];return y.Children.forEach(e,n=>{y.isValidElement(n)&&t.push(n)}),t}const kn=typeof window<"u",Rr=kn?y.useLayoutEffect:y.useEffect,Yn=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:s="sync",propagate:o=!1})=>{const[u,a]=Fr(o),l=y.useMemo(()=>Dr(e),[e]),c=o&&!u?[]:l.map(Jt),d=y.useRef(!0),f=y.useRef(l),h=Hn(()=>new Map),[g,m]=y.useState(l),[p,b]=y.useState(l);Rr(()=>{d.current=!1,f.current=l;for(let x=0;x<p.length;x++){const v=Jt(p[x]);c.includes(v)?h.delete(v):h.get(v)!==!0&&h.set(v,!1)}},[p,c.length,c.join("-")]);const C=[];if(l!==g){let x=[...l];for(let v=0;v<p.length;v++){const A=p[v],S=Jt(A);c.includes(S)||(x.splice(v,0,A),C.push(A))}s==="wait"&&C.length&&(x=C),b(Dr(x)),m(l);return}process.env.NODE_ENV!=="production"&&s==="wait"&&p.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);const{forceRender:I}=y.useContext(Zn);return E.jsx(E.Fragment,{children:p.map(x=>{const v=Jt(x),A=o&&!u?!1:l===p||c.includes(v),S=()=>{if(h.has(v))h.set(v,!0);else return;let P=!0;h.forEach(F=>{F||(P=!1)}),P&&(I==null||I(),b(f.current),o&&(a==null||a()),r&&r())};return E.jsx(gl,{isPresent:A,initial:!d.current||n?void 0:!1,custom:A?void 0:t,presenceAffectsLayout:i,mode:s,onExitComplete:A?void 0:S,children:x},v)})})},oe=e=>e;let qe=oe,Le=oe;process.env.NODE_ENV!=="production"&&(qe=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},Le=(e,t)=>{if(!e)throw new Error(t)});function jn(e){let t;return()=>(t===void 0&&(t=e()),t)}const et=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},Se=e=>e*1e3,Me=e=>e/1e3,vl={useManualTiming:!1};function yl(e){let t=new Set,n=new Set,r=!1,i=!1;const s=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1};function u(l){s.has(l)&&(a.schedule(l),e()),l(o)}const a={schedule:(l,c=!1,d=!1)=>{const h=d&&r?t:n;return c&&s.add(l),h.has(l)||h.add(l),l},cancel:l=>{n.delete(l),s.delete(l)},process:l=>{if(o=l,r){i=!0;return}r=!0,[t,n]=[n,t],t.forEach(u),t.clear(),r=!1,i&&(i=!1,a.process(l))}};return a}const Ut=["read","resolveKeyframes","update","preRender","render","postRender"],Il=40;function Or(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,o=Ut.reduce((b,C)=>(b[C]=yl(s),b),{}),{read:u,resolveKeyframes:a,update:l,preRender:c,render:d,postRender:f}=o,h=()=>{const b=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(b-i.timestamp,Il),1),i.timestamp=b,i.isProcessing=!0,u.process(i),a.process(i),l.process(i),c.process(i),d.process(i),f.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(h))},g=()=>{n=!0,r=!0,i.isProcessing||e(h)};return{schedule:Ut.reduce((b,C)=>{const I=o[C];return b[C]=(x,v=!1,A=!1)=>(n||g(),I.schedule(x,v,A)),b},{}),cancel:b=>{for(let C=0;C<Ut.length;C++)o[Ut[C]].cancel(b)},state:i,steps:o}}const{schedule:W,cancel:Xe,state:K,steps:Jn}=Or(typeof requestAnimationFrame<"u"?requestAnimationFrame:oe,!0),Nr=y.createContext({strict:!1}),Lr={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"]},tt={};for(const e in Lr)tt[e]={isEnabled:t=>Lr[e].some(n=>!!t[n])};function Cl(e){for(const t in e)tt[t]={...tt[t],...e[t]}}const xl=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 _t(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||xl.has(e)}let Xr=e=>!_t(e);function Al(e){e&&(Xr=t=>t.startsWith("on")?!_t(t):e(t))}try{Al(require("@emotion/is-prop-valid").default)}catch{}function Sl(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(Xr(i)||n===!0&&_t(i)||!t&&!_t(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}const Wr=new Set;function $t(e,t,n){e||Wr.has(t)||(console.warn(t),Wr.add(t))}function El(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>(process.env.NODE_ENV!=="production"&&$t(!1,"motion() is deprecated. Use motion.create() instead."),e(...r));return new Proxy(n,{get:(r,i)=>i==="create"?e:(t.has(i)||t.set(i,e(i)),t.get(i))})}const Qt=y.createContext({});function vt(e){return typeof e=="string"||Array.isArray(e)}function Kt(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const Un=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],_n=["initial",...Un];function qt(e){return Kt(e.animate)||_n.some(t=>vt(e[t]))}function Zr(e){return!!(qt(e)||e.variants)}function Pl(e,t){if(qt(e)){const{initial:n,animate:r}=e;return{initial:n===!1||vt(n)?n:void 0,animate:vt(r)?r:void 0}}return e.inherit!==!1?t:{}}function Vl(e){const{initial:t,animate:n}=Pl(e,y.useContext(Qt));return y.useMemo(()=>({initial:t,animate:n}),[Hr(t),Hr(n)])}function Hr(e){return Array.isArray(e)?e.join(" "):e}const Tl=Symbol.for("motionComponentSymbol");function nt(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function wl(e,t,n){return y.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):nt(n)&&(n.current=r))},[t])}const $n=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),zr="data-"+$n("framerAppearId"),{schedule:Qn}=Or(queueMicrotask,!1),kr=y.createContext({});function Gl(e,t,n,r,i){var s,o;const{visualElement:u}=y.useContext(Qt),a=y.useContext(Nr),l=y.useContext(jt),c=y.useContext(zn).reducedMotion,d=y.useRef(null);r=r||a.renderer,!d.current&&r&&(d.current=r(e,{visualState:t,parent:u,props:n,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:c}));const f=d.current,h=y.useContext(kr);f&&!f.projection&&i&&(f.type==="html"||f.type==="svg")&&Bl(d.current,n,i,h);const g=y.useRef(!1);y.useInsertionEffect(()=>{f&&g.current&&f.update(n,l)});const m=n[zr],p=y.useRef(!!m&&!(!((s=window.MotionHandoffIsComplete)===null||s===void 0)&&s.call(window,m))&&((o=window.MotionHasOptimisedAnimation)===null||o===void 0?void 0:o.call(window,m)));return Rr(()=>{f&&(g.current=!0,window.MotionIsMounted=!0,f.updateFeatures(),Qn.render(f.render),p.current&&f.animationState&&f.animationState.animateChanges())}),y.useEffect(()=>{f&&(!p.current&&f.animationState&&f.animationState.animateChanges(),p.current&&(queueMicrotask(()=>{var b;(b=window.MotionHandoffMarkAsComplete)===null||b===void 0||b.call(window,m)}),p.current=!1))}),f}function Bl(e,t,n,r){const{layoutId:i,layout:s,drag:o,dragConstraints:u,layoutScroll:a,layoutRoot:l}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Yr(e.parent)),e.projection.setOptions({layoutId:i,layout:s,alwaysMeasureLayout:!!o||u&&nt(u),visualElement:e,animationType:typeof s=="string"?s:"both",initialPromotionConfig:r,layoutScroll:a,layoutRoot:l})}function Yr(e){if(e)return e.options.allowProjection!==!1?e.projection:Yr(e.parent)}function Ml({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){var s,o;e&&Cl(e);function u(l,c){let d;const f={...y.useContext(zn),...l,layoutId:Fl(l)},{isStatic:h}=f,g=Vl(l),m=r(l,h);if(!h&&kn){Dl(f,e);const p=Rl(f);d=p.MeasureLayout,g.visualElement=Gl(i,m,f,t,p.ProjectionNode)}return E.jsxs(Qt.Provider,{value:g,children:[d&&g.visualElement?E.jsx(d,{visualElement:g.visualElement,...f}):null,n(i,l,wl(m,g.visualElement,c),m,h,g.visualElement)]})}u.displayName=`motion.${typeof i=="string"?i:`create(${(o=(s=i.displayName)!==null&&s!==void 0?s:i.name)!==null&&o!==void 0?o:""})`}`;const a=y.forwardRef(u);return a[Tl]=i,a}function Fl({layoutId:e}){const t=y.useContext(Zn).id;return t&&e!==void 0?t+"-"+e:e}function Dl(e,t){const n=y.useContext(Nr).strict;if(process.env.NODE_ENV!=="production"&&t&&n){const r="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?qe(!1,r):Le(!1,r)}}function Rl(e){const{drag:t,layout:n}=tt;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const Ol=["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 Kn(e){return typeof e!="string"||e.includes("-")?!1:!!(Ol.indexOf(e)>-1||/[A-Z]/u.test(e))}function jr(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function qn(e,t,n,r){if(typeof t=="function"){const[i,s]=jr(r);t=t(n!==void 0?n:e.custom,i,s)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,s]=jr(r);t=t(n!==void 0?n:e.custom,i,s)}return t}const ei=e=>Array.isArray(e),Nl=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),Ll=e=>ei(e)?e[e.length-1]||0:e,te=e=>!!(e&&e.getVelocity);function en(e){const t=te(e)?e.get():e;return Nl(t)?t.toValue():t}function Xl({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,i,s){const o={latestValues:Wl(r,i,s,e),renderState:t()};return n&&(o.onMount=u=>n({props:r,current:u,...o}),o.onUpdate=u=>n(u)),o}const Jr=e=>(t,n)=>{const r=y.useContext(Qt),i=y.useContext(jt),s=()=>Xl(e,t,r,i);return n?s():Hn(s)};function Wl(e,t,n,r){const i={},s=r(e,{});for(const f in s)i[f]=en(s[f]);let{initial:o,animate:u}=e;const a=qt(e),l=Zr(e);t&&l&&!a&&e.inherit!==!1&&(o===void 0&&(o=t.initial),u===void 0&&(u=t.animate));let c=n?n.initial===!1:!1;c=c||o===!1;const d=c?u:o;if(d&&typeof d!="boolean"&&!Kt(d)){const f=Array.isArray(d)?d:[d];for(let h=0;h<f.length;h++){const g=qn(e,f[h]);if(g){const{transitionEnd:m,transition:p,...b}=g;for(const C in b){let I=b[C];if(Array.isArray(I)){const x=c?I.length-1:0;I=I[x]}I!==null&&(i[C]=I)}for(const C in m)i[C]=m[C]}}}return i}const it=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Ye=new Set(it),Ur=e=>t=>typeof t=="string"&&t.startsWith(e),_r=Ur("--"),Zl=Ur("var(--"),ti=e=>Zl(e)?Hl.test(e.split("/*")[0].trim()):!1,Hl=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,$r=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Fe=(e,t,n)=>n>t?t:n<e?e:n,rt={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},yt={...rt,transform:e=>Fe(0,1,e)},tn={...rt,default:1},It=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),We=It("deg"),Ee=It("%"),G=It("px"),zl=It("vh"),kl=It("vw"),Qr={...Ee,parse:e=>Ee.parse(e)/100,transform:e=>Ee.transform(e*100)},Yl={borderWidth:G,borderTopWidth:G,borderRightWidth:G,borderBottomWidth:G,borderLeftWidth:G,borderRadius:G,radius:G,borderTopLeftRadius:G,borderTopRightRadius:G,borderBottomRightRadius:G,borderBottomLeftRadius:G,width:G,maxWidth:G,height:G,maxHeight:G,top:G,right:G,bottom:G,left:G,padding:G,paddingTop:G,paddingRight:G,paddingBottom:G,paddingLeft:G,margin:G,marginTop:G,marginRight:G,marginBottom:G,marginLeft:G,backgroundPositionX:G,backgroundPositionY:G},jl={rotate:We,rotateX:We,rotateY:We,rotateZ:We,scale:tn,scaleX:tn,scaleY:tn,scaleZ:tn,skew:We,skewX:We,skewY:We,distance:G,translateX:G,translateY:G,translateZ:G,x:G,y:G,z:G,perspective:G,transformPerspective:G,opacity:yt,originX:Qr,originY:Qr,originZ:G},Kr={...rt,transform:Math.round},ni={...Yl,...jl,zIndex:Kr,size:G,fillOpacity:yt,strokeOpacity:yt,numOctaves:Kr},Jl={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Ul=it.length;function _l(e,t,n){let r="",i=!0;for(let s=0;s<Ul;s++){const o=it[s],u=e[o];if(u===void 0)continue;let a=!0;if(typeof u=="number"?a=u===(o.startsWith("scale")?1:0):a=parseFloat(u)===0,!a||n){const l=$r(u,ni[o]);if(!a){i=!1;const c=Jl[o]||o;r+=`${c}(${l}) `}n&&(t[o]=l)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function ii(e,t,n){const{style:r,vars:i,transformOrigin:s}=e;let o=!1,u=!1;for(const a in t){const l=t[a];if(Ye.has(a)){o=!0;continue}else if(_r(a)){i[a]=l;continue}else{const c=$r(l,ni[a]);a.startsWith("origin")?(u=!0,s[a]=c):r[a]=c}}if(t.transform||(o||n?r.transform=_l(t,e.transform,n):r.transform&&(r.transform="none")),u){const{originX:a="50%",originY:l="50%",originZ:c=0}=s;r.transformOrigin=`${a} ${l} ${c}`}}const $l={offset:"stroke-dashoffset",array:"stroke-dasharray"},Ql={offset:"strokeDashoffset",array:"strokeDasharray"};function Kl(e,t,n=1,r=0,i=!0){e.pathLength=1;const s=i?$l:Ql;e[s.offset]=G.transform(-r);const o=G.transform(t),u=G.transform(n);e[s.array]=`${o} ${u}`}function qr(e,t,n){return typeof e=="string"?e:G.transform(t+n*e)}function ql(e,t,n){const r=qr(t,e.x,e.width),i=qr(n,e.y,e.height);return`${r} ${i}`}function ri(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:s,pathLength:o,pathSpacing:u=1,pathOffset:a=0,...l},c,d){if(ii(e,l,d),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:f,style:h,dimensions:g}=e;f.transform&&(g&&(h.transform=f.transform),delete f.transform),g&&(i!==void 0||s!==void 0||h.transform)&&(h.transformOrigin=ql(g,i!==void 0?i:.5,s!==void 0?s:.5)),t!==void 0&&(f.x=t),n!==void 0&&(f.y=n),r!==void 0&&(f.scale=r),o!==void 0&&Kl(f,o,u,a,!1)}const si=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),es=()=>({...si(),attrs:{}}),oi=e=>typeof e=="string"&&e.toLowerCase()==="svg";function ts(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const s in n)e.style.setProperty(s,n[s])}const ns=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 is(e,t,n,r){ts(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(ns.has(i)?i:$n(i),t.attrs[i])}const nn={};function ec(e){Object.assign(nn,e)}function rs(e,{layout:t,layoutId:n}){return Ye.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!nn[e]||e==="opacity")}function ai(e,t,n){var r;const{style:i}=e,s={};for(const o in i)(te(i[o])||t.style&&te(t.style[o])||rs(o,e)||((r=n==null?void 0:n.getValue(o))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(s[o]=i[o]);return s}function ss(e,t,n){const r=ai(e,t,n);for(const i in e)if(te(e[i])||te(t[i])){const s=it.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[s]=e[i]}return r}function tc(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}const os=["x","y","width","height","cx","cy","r"],nc={useVisualState:Jr({scrapeMotionValuesFromProps:ss,createRenderState:es,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:i})=>{if(!n)return;let s=!!e.drag;if(!s){for(const u in i)if(Ye.has(u)){s=!0;break}}if(!s)return;let o=!t;if(t)for(let u=0;u<os.length;u++){const a=os[u];e[a]!==t[a]&&(o=!0)}o&&W.read(()=>{tc(n,r),W.render(()=>{ri(r,i,oi(n.tagName),e.transformTemplate),is(n,r)})})}})},ic={useVisualState:Jr({scrapeMotionValuesFromProps:ai,createRenderState:si})};function as(e,t,n){for(const r in t)!te(t[r])&&!rs(r,n)&&(e[r]=t[r])}function rc({transformTemplate:e},t){return y.useMemo(()=>{const n=si();return ii(n,t,e),Object.assign({},n.vars,n.style)},[t])}function sc(e,t){const n=e.style||{},r={};return as(r,n,e),Object.assign(r,rc(e,t)),r}function oc(e,t){const n={},r=sc(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.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=r,n}function ac(e,t,n,r){const i=y.useMemo(()=>{const s=es();return ri(s,t,oi(r),e.transformTemplate),{...s.attrs,style:{...s.style}}},[t]);if(e.style){const s={};as(s,e.style,e),i.style={...s,...i.style}}return i}function uc(e=!1){return(n,r,i,{latestValues:s},o)=>{const a=(Kn(n)?ac:oc)(r,s,o,n),l=Sl(r,typeof n=="string",e),c=n!==y.Fragment?{...l,...a,ref:i}:{},{children:d}=r,f=y.useMemo(()=>te(d)?d.get():d,[d]);return y.createElement(n,{...c,children:f})}}function lc(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const o={...Kn(r)?nc:ic,preloadedFeatures:e,useRender:uc(i),createVisualElement:t,Component:r};return Ml(o)}}function us(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function rn(e,t,n){const r=e.getProps();return qn(r,t,n!==void 0?n:r.custom,e)}const cc=jn(()=>window.ScrollTimeline!==void 0);class dc{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=n}attachTimeline(t,n){const r=this.animations.map(i=>{if(cc()&&i.attachTimeline)return i.attachTimeline(t);if(typeof n=="function")return n(i)});return()=>{r.forEach((i,s)=>{i&&i(),this.animations[s].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 startTime(){return this.getAll("startTime")}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]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class fc extends dc{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}function ui(e,t){return e?e[t]||e.default||e:void 0}const li=2e4;function ls(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<li;)t+=n,r=e.next(t);return t>=li?1/0:t}function ci(e){return typeof e=="function"}function cs(e,t){e.timeline=t,e.onfinish=null}const di=e=>Array.isArray(e)&&typeof e[0]=="number",hc={linearEasing:void 0};function pc(e,t){const n=jn(e);return()=>{var r;return(r=hc[t])!==null&&r!==void 0?r:n()}}const sn=pc(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),ds=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let s=0;s<i;s++)r+=e(et(0,i-1,s))+", ";return`linear(${r.substring(0,r.length-2)})`};function fs(e){return!!(typeof e=="function"&&sn()||!e||typeof e=="string"&&(e in fi||sn())||di(e)||Array.isArray(e)&&e.every(fs))}const Ct=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,fi={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ct([0,.65,.55,1]),circOut:Ct([.55,0,1,.45]),backIn:Ct([.31,.01,.66,-.59]),backOut:Ct([.33,1.53,.69,.99])};function hs(e,t){if(e)return typeof e=="function"&&sn()?ds(e,t):di(e)?Ct(e):Array.isArray(e)?e.map(n=>hs(n,t)||fi.easeOut):fi[e]}const ye={x:!1,y:!1};function ps(){return ye.x||ye.y}function mc(e,t,n){var r;if(e instanceof Element)return[e];if(typeof e=="string"){let i=document;const s=(r=void 0)!==null&&r!==void 0?r:i.querySelectorAll(e);return s?Array.from(s):[]}return Array.from(e)}function ms(e,t){const n=mc(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function gs(e){return t=>{t.pointerType==="touch"||ps()||e(t)}}function gc(e,t,n={}){const[r,i,s]=ms(e,n),o=gs(u=>{const{target:a}=u,l=t(u);if(typeof l!="function"||!a)return;const c=gs(d=>{l(d),a.removeEventListener("pointerleave",c)});a.addEventListener("pointerleave",c,i)});return r.forEach(u=>{u.addEventListener("pointerenter",o,i)}),s}const bs=(e,t)=>t?e===t?!0:bs(e,t.parentElement):!1,hi=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,bc=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function vc(e){return bc.has(e.tagName)||e.tabIndex!==-1}const xt=new WeakSet;function vs(e){return t=>{t.key==="Enter"&&e(t)}}function pi(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const yc=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=vs(()=>{if(xt.has(n))return;pi(n,"down");const i=vs(()=>{pi(n,"up")}),s=()=>pi(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",s,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function ys(e){return hi(e)&&!ps()}function Ic(e,t,n={}){const[r,i,s]=ms(e,n),o=u=>{const a=u.currentTarget;if(!ys(u)||xt.has(a))return;xt.add(a);const l=t(u),c=(h,g)=>{window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",f),!(!ys(h)||!xt.has(a))&&(xt.delete(a),typeof l=="function"&&l(h,{success:g}))},d=h=>{c(h,n.useGlobalTarget||bs(a,h.target))},f=h=>{c(h,!1)};window.addEventListener("pointerup",d,i),window.addEventListener("pointercancel",f,i)};return r.forEach(u=>{!vc(u)&&u.getAttribute("tabindex")===null&&(u.tabIndex=0),(n.useGlobalTarget?window:u).addEventListener("pointerdown",o,i),u.addEventListener("focus",l=>yc(l,i),i)}),s}function Cc(e){return e==="x"||e==="y"?ye[e]?null:(ye[e]=!0,()=>{ye[e]=!1}):ye.x||ye.y?null:(ye.x=ye.y=!0,()=>{ye.x=ye.y=!1})}const Is=new Set(["width","height","top","left","right","bottom",...it]);let on;function xc(){on=void 0}const Pe={now:()=>(on===void 0&&Pe.set(K.isProcessing||vl.useManualTiming?K.timestamp:performance.now()),on),set:e=>{on=e,queueMicrotask(xc)}};function mi(e,t){e.indexOf(t)===-1&&e.push(t)}function gi(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class bi{constructor(){this.subscriptions=[]}add(t){return mi(this.subscriptions,t),()=>gi(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let s=0;s<i;s++){const o=this.subscriptions[s];o&&o(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function Cs(e,t){return t?e*(1e3/t):0}const xs=30,Ac=e=>!isNaN(parseFloat(e));class Sc{constructor(t,n={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const s=Pe.now();this.updatedAt!==s&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&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=Pe.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=Ac(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&$t(!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 bi);const r=this.events[t].add(n);return t==="change"?()=>{r(),W.read(()=>{this.events.change.getSize()||this.stop()})}:r}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,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}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=Pe.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>xs)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,xs);return Cs(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 At(e,t){return new Sc(e,t)}function Ec(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,At(n))}function Pc(e,t){const n=rn(e,t);let{transitionEnd:r={},transition:i={},...s}=n||{};s={...s,...r};for(const o in s){const u=Ll(s[o]);Ec(e,o,u)}}function Vc(e){return!!(te(e)&&e.add)}function vi(e,t){const n=e.getValue("willChange");if(Vc(n))return n.add(t)}function As(e){return e.props[zr]}const Ss=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Tc=1e-7,wc=12;function Gc(e,t,n,r,i){let s,o,u=0;do o=t+(n-t)/2,s=Ss(o,r,i)-e,s>0?n=o:t=o;while(Math.abs(s)>Tc&&++u<wc);return o}function St(e,t,n,r){if(e===t&&n===r)return oe;const i=s=>Gc(s,0,1,e,n);return s=>s===0||s===1?s:Ss(i(s),t,r)}const Es=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Ps=e=>t=>1-e(1-t),Vs=St(.33,1.53,.69,.99),yi=Ps(Vs),Ts=Es(yi),ws=e=>(e*=2)<1?.5*yi(e):.5*(2-Math.pow(2,-10*(e-1))),Ii=e=>1-Math.sin(Math.acos(e)),Gs=Ps(Ii),Bs=Es(Ii),Ms=e=>/^0[^.\s]+$/u.test(e);function Bc(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Ms(e):!0}const Et=e=>Math.round(e*1e5)/1e5,Ci=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Mc(e){return e==null}const Fc=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,xi=(e,t)=>n=>!!(typeof n=="string"&&Fc.test(n)&&n.startsWith(e)||t&&!Mc(n)&&Object.prototype.hasOwnProperty.call(n,t)),Fs=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,s,o,u]=r.match(Ci);return{[e]:parseFloat(i),[t]:parseFloat(s),[n]:parseFloat(o),alpha:u!==void 0?parseFloat(u):1}},Dc=e=>Fe(0,255,e),Ai={...rt,transform:e=>Math.round(Dc(e))},je={test:xi("rgb","red"),parse:Fs("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Ai.transform(e)+", "+Ai.transform(t)+", "+Ai.transform(n)+", "+Et(yt.transform(r))+")"};function Rc(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const Si={test:xi("#"),parse:Rc,transform:je.transform},st={test:xi("hsl","hue"),parse:Fs("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Ee.transform(Et(t))+", "+Ee.transform(Et(n))+", "+Et(yt.transform(r))+")"},ne={test:e=>je.test(e)||Si.test(e)||st.test(e),parse:e=>je.test(e)?je.parse(e):st.test(e)?st.parse(e):Si.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?je.transform(e):st.transform(e)},Oc=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Nc(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Ci))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(Oc))===null||n===void 0?void 0:n.length)||0)>0}const Ds="number",Rs="color",Lc="var",Xc="var(",Os="${}",Wc=/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 Pt(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let s=0;const u=t.replace(Wc,a=>(ne.test(a)?(r.color.push(s),i.push(Rs),n.push(ne.parse(a))):a.startsWith(Xc)?(r.var.push(s),i.push(Lc),n.push(a)):(r.number.push(s),i.push(Ds),n.push(parseFloat(a))),++s,Os)).split(Os);return{values:n,split:u,indexes:r,types:i}}function Ns(e){return Pt(e).values}function Ls(e){const{split:t,types:n}=Pt(e),r=t.length;return i=>{let s="";for(let o=0;o<r;o++)if(s+=t[o],i[o]!==void 0){const u=n[o];u===Ds?s+=Et(i[o]):u===Rs?s+=ne.transform(i[o]):s+=i[o]}return s}}const Zc=e=>typeof e=="number"?0:e;function Hc(e){const t=Ns(e);return Ls(e)(t.map(Zc))}const Ze={test:Nc,parse:Ns,createTransformer:Ls,getAnimatableNone:Hc},zc=new Set(["brightness","contrast","saturate","opacity"]);function kc(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Ci)||[];if(!r)return e;const i=n.replace(r,"");let s=zc.has(t)?1:0;return r!==n&&(s*=100),t+"("+s+i+")"}const Yc=/\b([a-z-]*)\(.*?\)/gu,Ei={...Ze,getAnimatableNone:e=>{const t=e.match(Yc);return t?t.map(kc).join(" "):e}},jc={...ni,color:ne,backgroundColor:ne,outlineColor:ne,fill:ne,stroke:ne,borderColor:ne,borderTopColor:ne,borderRightColor:ne,borderBottomColor:ne,borderLeftColor:ne,filter:Ei,WebkitFilter:Ei},Pi=e=>jc[e];function Xs(e,t){let n=Pi(e);return n!==Ei&&(n=Ze),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Jc=new Set(["auto","none","0"]);function Uc(e,t,n){let r=0,i;for(;r<e.length&&!i;){const s=e[r];typeof s=="string"&&!Jc.has(s)&&Pt(s).values.length&&(i=e[r]),r++}if(i&&n)for(const s of t)e[s]=Xs(n,i)}const Ws=e=>e===rt||e===G,Zs=(e,t)=>parseFloat(e.split(", ")[t]),Hs=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/u);if(i)return Zs(i[1],t);{const s=r.match(/^matrix\((.+)\)$/u);return s?Zs(s[1],e):0}},_c=new Set(["x","y","z"]),$c=it.filter(e=>!_c.has(e));function Qc(e){const t=[];return $c.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const ot={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:Hs(4,13),y:Hs(5,14)};ot.translateX=ot.x,ot.translateY=ot.y;const Je=new Set;let Vi=!1,Ti=!1;function zs(){if(Ti){const e=Array.from(Je).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=Qc(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([s,o])=>{var u;(u=r.getValue(s))===null||u===void 0||u.set(o)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Ti=!1,Vi=!1,Je.forEach(e=>e.complete()),Je.clear()}function ks(){Je.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Ti=!0)})}function Kc(){ks(),zs()}class wi{constructor(t,n,r,i,s,o=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=s,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Je.add(this),Vi||(Vi=!0,W.read(ks),W.resolveKeyframes(zs))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;for(let s=0;s<t.length;s++)if(t[s]===null)if(s===0){const o=i==null?void 0:i.get(),u=t[t.length-1];if(o!==void 0)t[0]=o;else if(r&&n){const a=r.readValue(n,u);a!=null&&(t[0]=a)}t[0]===void 0&&(t[0]=u),i&&o===void 0&&i.set(t[0])}else t[s]=t[s-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Je.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Je.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const Ys=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),qc=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function ed(e){const t=qc.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}const td=4;function js(e,t,n=1){Le(n<=td,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,i]=ed(e);if(!r)return;const s=window.getComputedStyle(t).getPropertyValue(r);if(s){const o=s.trim();return Ys(o)?parseFloat(o):o}return ti(i)?js(i,t,n+1):i}const Js=e=>t=>t.test(e),Us=[rt,G,Ee,We,kl,zl,{test:e=>e==="auto",parse:e=>e}],_s=e=>Us.find(Js(e));class $s extends wi{constructor(t,n,r,i,s){super(t,n,r,i,s,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let a=0;a<t.length;a++){let l=t[a];if(typeof l=="string"&&(l=l.trim(),ti(l))){const c=js(l,n.current);c!==void 0&&(t[a]=c),a===t.length-1&&(this.finalKeyframe=l)}}if(this.resolveNoneKeyframes(),!Is.has(r)||t.length!==2)return;const[i,s]=t,o=_s(i),u=_s(s);if(o!==u)if(Ws(o)&&Ws(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,r=[];for(let i=0;i<t.length;i++)Bc(t[i])&&r.push(i);r.length&&Uc(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=ot[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(r,i).jump(i,!1)}measureEndState(){var t;const{element:n,name:r,unresolvedKeyframes:i}=this;if(!n||!n.current)return;const s=n.getValue(r);s&&s.jump(this.measuredOrigin,!1);const o=i.length-1,u=i[o];i[o]=ot[r](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()}}const Qs=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Ze.test(e)||e==="0")&&!e.startsWith("url("));function nd(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 id(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const s=e[e.length-1],o=Qs(i,t),u=Qs(s,t);return qe(o===u,`You are trying to animate ${t} from "${i}" to "${s}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${s} via the \`style\` property.`),!o||!u?!1:nd(e)||(n==="spring"||ci(n))&&r}const rd=e=>e!==null;function an(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(rd),s=t&&n!=="loop"&&t%2===1?0:i.length-1;return!s||r===void 0?i[s]:r}const sd=40;class Ks{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:o="loop",...u}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Pe.now(),this.options={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:s,repeatType:o,...u},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>sd?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&Kc(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=Pe.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:s,delay:o,onComplete:u,onUpdate:a,isGenerator:l}=this.options;if(!l&&!id(t,r,i,s))if(o)this.options.duration=0;else{a&&a(an(t,this.options,n)),u&&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)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const H=(e,t,n)=>e+(t-e)*n;function Gi(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 od({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,s=0,o=0;if(!t)i=s=o=n;else{const u=n<.5?n*(1+t):n+t-n*t,a=2*n-u;i=Gi(a,u,e+1/3),s=Gi(a,u,e),o=Gi(a,u,e-1/3)}return{red:Math.round(i*255),green:Math.round(s*255),blue:Math.round(o*255),alpha:r}}function un(e,t){return n=>n>0?t:e}const Bi=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},ad=[Si,je,st],ud=e=>ad.find(t=>t.test(e));function qs(e){const t=ud(e);if(qe(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===st&&(n=od(n)),n}const eo=(e,t)=>{const n=qs(e),r=qs(t);if(!n||!r)return un(e,t);const i={...n};return s=>(i.red=Bi(n.red,r.red,s),i.green=Bi(n.green,r.green,s),i.blue=Bi(n.blue,r.blue,s),i.alpha=H(n.alpha,r.alpha,s),je.transform(i))},ld=(e,t)=>n=>t(e(n)),Vt=(...e)=>e.reduce(ld),Mi=new Set(["none","hidden"]);function cd(e,t){return Mi.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function dd(e,t){return n=>H(e,t,n)}function Fi(e){return typeof e=="number"?dd:typeof e=="string"?ti(e)?un:ne.test(e)?eo:pd:Array.isArray(e)?to:typeof e=="object"?ne.test(e)?eo:fd:un}function to(e,t){const n=[...e],r=n.length,i=e.map((s,o)=>Fi(s)(s,t[o]));return s=>{for(let o=0;o<r;o++)n[o]=i[o](s);return n}}function fd(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=Fi(e[i])(e[i],t[i]));return i=>{for(const s in r)n[s]=r[s](i);return n}}function hd(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let s=0;s<t.values.length;s++){const o=t.types[s],u=e.indexes[o][i[o]],a=(n=e.values[u])!==null&&n!==void 0?n:0;r[s]=a,i[o]++}return r}const pd=(e,t)=>{const n=Ze.createTransformer(t),r=Pt(e),i=Pt(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?Mi.has(e)&&!i.values.length||Mi.has(t)&&!r.values.length?cd(e,t):Vt(to(hd(r,i),i.values),n):(qe(!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.`),un(e,t))};function no(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?H(e,t,n):Fi(e)(e,t)}const md=5;function io(e,t,n){const r=Math.max(t-md,0);return Cs(n-e(r),t-r)}const z={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},ro=.001;function gd({duration:e=z.duration,bounce:t=z.bounce,velocity:n=z.velocity,mass:r=z.mass}){let i,s;qe(e<=Se(z.maxDuration),"Spring duration must be 10 seconds or less");let o=1-t;o=Fe(z.minDamping,z.maxDamping,o),e=Fe(z.minDuration,z.maxDuration,Me(e)),o<1?(i=l=>{const c=l*o,d=c*e,f=c-n,h=Di(l,o),g=Math.exp(-d);return ro-f/h*g},s=l=>{const d=l*o*e,f=d*n+n,h=Math.pow(o,2)*Math.pow(l,2)*e,g=Math.exp(-d),m=Di(Math.pow(l,2),o);return(-i(l)+ro>0?-1:1)*((f-h)*g)/m}):(i=l=>{const c=Math.exp(-l*e),d=(l-n)*e+1;return-.001+c*d},s=l=>{const c=Math.exp(-l*e),d=(n-l)*(e*e);return c*d});const u=5/e,a=vd(i,s,u);if(e=Se(e),isNaN(a))return{stiffness:z.stiffness,damping:z.damping,duration:e};{const l=Math.pow(a,2)*r;return{stiffness:l,damping:o*2*Math.sqrt(r*l),duration:e}}}const bd=12;function vd(e,t,n){let r=n;for(let i=1;i<bd;i++)r=r-e(r)/t(r);return r}function Di(e,t){return e*Math.sqrt(1-t*t)}const yd=["duration","bounce"],Id=["stiffness","damping","mass"];function so(e,t){return t.some(n=>e[n]!==void 0)}function Cd(e){let t={velocity:z.velocity,stiffness:z.stiffness,damping:z.damping,mass:z.mass,isResolvedFromDuration:!1,...e};if(!so(e,Id)&&so(e,yd))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,s=2*Fe(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:z.mass,stiffness:i,damping:s}}else{const n=gd(e);t={...t,...n,mass:z.mass},t.isResolvedFromDuration=!0}return t}function oo(e=z.visualDuration,t=z.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const s=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],u={done:!1,value:s},{stiffness:a,damping:l,mass:c,duration:d,velocity:f,isResolvedFromDuration:h}=Cd({...n,velocity:-Me(n.velocity||0)}),g=f||0,m=l/(2*Math.sqrt(a*c)),p=o-s,b=Me(Math.sqrt(a/c)),C=Math.abs(p)<5;r||(r=C?z.restSpeed.granular:z.restSpeed.default),i||(i=C?z.restDelta.granular:z.restDelta.default);let I;if(m<1){const v=Di(b,m);I=A=>{const S=Math.exp(-m*b*A);return o-S*((g+m*b*p)/v*Math.sin(v*A)+p*Math.cos(v*A))}}else if(m===1)I=v=>o-Math.exp(-b*v)*(p+(g+b*p)*v);else{const v=b*Math.sqrt(m*m-1);I=A=>{const S=Math.exp(-m*b*A),P=Math.min(v*A,300);return o-S*((g+m*b*p)*Math.sinh(P)+v*p*Math.cosh(P))/v}}const x={calculatedDuration:h&&d||null,next:v=>{const A=I(v);if(h)u.done=v>=d;else{let S=0;m<1&&(S=v===0?Se(g):io(I,v,A));const P=Math.abs(S)<=r,F=Math.abs(o-A)<=i;u.done=P&&F}return u.value=u.done?o:A,u},toString:()=>{const v=Math.min(ls(x),li),A=ds(S=>x.next(v*S).value,v,30);return v+"ms "+A}};return x}function ao({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:s=500,modifyTarget:o,min:u,max:a,restDelta:l=.5,restSpeed:c}){const d=e[0],f={done:!1,value:d},h=P=>u!==void 0&&P<u||a!==void 0&&P>a,g=P=>u===void 0?a:a===void 0||Math.abs(u-P)<Math.abs(a-P)?u:a;let m=n*t;const p=d+m,b=o===void 0?p:o(p);b!==p&&(m=b-d);const C=P=>-m*Math.exp(-P/r),I=P=>b+C(P),x=P=>{const F=C(P),O=I(P);f.done=Math.abs(F)<=l,f.value=f.done?b:O};let v,A;const S=P=>{h(f.value)&&(v=P,A=oo({keyframes:[f.value,g(f.value)],velocity:io(I,P,f.value),damping:i,stiffness:s,restDelta:l,restSpeed:c}))};return S(0),{calculatedDuration:null,next:P=>{let F=!1;return!A&&v===void 0&&(F=!0,x(P),S(P)),v!==void 0&&P>=v?A.next(P-v):(!F&&x(P),f)}}}const xd=St(.42,0,1,1),Ad=St(0,0,.58,1),uo=St(.42,0,.58,1),Sd=e=>Array.isArray(e)&&typeof e[0]!="number",lo={linear:oe,easeIn:xd,easeInOut:uo,easeOut:Ad,circIn:Ii,circInOut:Bs,circOut:Gs,backIn:yi,backInOut:Ts,backOut:Vs,anticipate:ws},co=e=>{if(di(e)){Le(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,i]=e;return St(t,n,r,i)}else if(typeof e=="string")return Le(lo[e]!==void 0,`Invalid easing type '${e}'`),lo[e];return e};function Ed(e,t,n){const r=[],i=n||no,s=e.length-1;for(let o=0;o<s;o++){let u=i(e[o],e[o+1]);if(t){const a=Array.isArray(t)?t[o]||oe:t;u=Vt(a,u)}r.push(u)}return r}function Pd(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const s=e.length;if(Le(s===t.length,"Both input and output ranges must be the same length"),s===1)return()=>t[0];if(s===2&&t[0]===t[1])return()=>t[1];const o=e[0]===e[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());const u=Ed(t,r,i),a=u.length,l=c=>{if(o&&c<e[0])return t[0];let d=0;if(a>1)for(;d<e.length-2&&!(c<e[d+1]);d++);const f=et(e[d],e[d+1],c);return u[d](f)};return n?c=>l(Fe(e[0],e[s-1],c)):l}function Vd(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=et(0,t,r);e.push(H(n,1,i))}}function Td(e){const t=[0];return Vd(t,e.length-1),t}function wd(e,t){return e.map(n=>n*t)}function Gd(e,t){return e.map(()=>t||uo).splice(0,e.length-1)}function ln({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=Sd(r)?r.map(co):co(r),s={done:!1,value:t[0]},o=wd(n&&n.length===t.length?n:Td(t),e),u=Pd(o,t,{ease:Array.isArray(i)?i:Gd(t,i)});return{calculatedDuration:e,next:a=>(s.value=u(a),s.done=a>=e,s)}}const Bd=e=>{const t=({timestamp:n})=>e(n);return{start:()=>W.update(t,!0),stop:()=>Xe(t),now:()=>K.isProcessing?K.timestamp:Pe.now()}},Md={decay:ao,inertia:ao,tween:ln,keyframes:ln,spring:oo},Fd=e=>e/100;class Ri extends Ks{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:a}=this.options;a&&a()};const{name:n,motionValue:r,element:i,keyframes:s}=this.options,o=(i==null?void 0:i.KeyframeResolver)||wi,u=(a,l)=>this.onKeyframesResolved(a,l);this.resolver=new o(s,u,n,r,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:s,velocity:o=0}=this.options,u=ci(n)?n:Md[n]||ln;let a,l;u!==ln&&typeof t[0]!="number"&&(process.env.NODE_ENV!=="production"&&Le(t.length===2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`),a=Vt(Fd,no(t[0],t[1])),t=[0,100]);const c=u({...this.options,keyframes:t});s==="mirror"&&(l=u({...this.options,keyframes:[...t].reverse(),velocity:-o})),c.calculatedDuration===null&&(c.calculatedDuration=ls(c));const{calculatedDuration:d}=c,f=d+i,h=f*(r+1)-i;return{generator:c,mirroredGenerator:l,mapPercentToKeyframes:a,calculatedDuration:d,resolvedDuration:f,totalDuration:h}}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:r}=this;if(!r){const{keyframes:P}=this.options;return{done:!0,value:P[P.length-1]}}const{finalKeyframe:i,generator:s,mirroredGenerator:o,mapPercentToKeyframes:u,keyframes:a,calculatedDuration:l,totalDuration:c,resolvedDuration:d}=r;if(this.startTime===null)return s.next(0);const{delay:f,repeat:h,repeatType:g,repeatDelay:m,onUpdate:p}=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 b=this.currentTime-f*(this.speed>=0?1:-1),C=this.speed>=0?b<0:b>c;this.currentTime=Math.max(b,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let I=this.currentTime,x=s;if(h){const P=Math.min(this.currentTime,c)/d;let F=Math.floor(P),O=P%1;!O&&P>=1&&(O=1),O===1&&F--,F=Math.min(F,h+1),!!(F%2)&&(g==="reverse"?(O=1-O,m&&(O-=m/d)):g==="mirror"&&(x=o)),I=Fe(0,1,O)*d}const v=C?{done:!1,value:a[0]}:x.next(I);u&&(v.value=u(v.value));let{done:A}=v;!C&&l!==null&&(A=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const S=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&A);return S&&i!==void 0&&(v.value=an(a,this.options,i)),p&&p(v.value),S&&this.finish(),v}get duration(){const{resolved:t}=this;return t?Me(t.calculatedDuration):0}get time(){return Me(this.currentTime)}set time(t){t=Se(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=Me(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=Bd,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(s=>this.tick(s))),n&&n();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=r??this.calcStartTime(),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 Dd=new Set(["opacity","clipPath","filter","transform"]);function Rd(e,t,n,{delay:r=0,duration:i=300,repeat:s=0,repeatType:o="loop",ease:u="easeInOut",times:a}={}){const l={[t]:n};a&&(l.offset=a);const c=hs(u,i);return Array.isArray(c)&&(l.easing=c),e.animate(l,{delay:r,duration:i,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:s+1,direction:o==="reverse"?"alternate":"normal"})}const Od=jn(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),cn=10,Nd=2e4;function Ld(e){return ci(e.type)||e.type==="spring"||!fs(e.ease)}function Xd(e,t){const n=new Ri({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const i=[];let s=0;for(;!r.done&&s<Nd;)r=n.sample(s),i.push(r.value),s+=cn;return{times:void 0,keyframes:i,duration:s-cn,ease:"linear"}}const fo={anticipate:ws,backInOut:Ts,circInOut:Bs};function Wd(e){return e in fo}class ho extends Ks{constructor(t){super(t);const{name:n,motionValue:r,element:i,keyframes:s}=this.options;this.resolver=new $s(s,(o,u)=>this.onKeyframesResolved(o,u),n,r,i),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:r=300,times:i,ease:s,type:o,motionValue:u,name:a,startTime:l}=this.options;if(!u.owner||!u.owner.current)return!1;if(typeof s=="string"&&sn()&&Wd(s)&&(s=fo[s]),Ld(this.options)){const{onComplete:d,onUpdate:f,motionValue:h,element:g,...m}=this.options,p=Xd(t,m);t=p.keyframes,t.length===1&&(t[1]=t[0]),r=p.duration,i=p.times,s=p.ease,o="keyframes"}const c=Rd(u.owner.current,a,t,{...this.options,duration:r,times:i,ease:s});return c.startTime=l??this.calcStartTime(),this.pendingTimeline?(cs(c,this.pendingTimeline),this.pendingTimeline=void 0):c.onfinish=()=>{const{onComplete:d}=this.options;u.set(an(t,this.options,n)),d&&d(),this.cancel(),this.resolveFinishedPromise()},{animation:c,duration:r,times:i,type:o,ease:s,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return Me(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return Me(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=Se(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:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return oe;const{animation:r}=n;cs(r,t)}return oe}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;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:i,type:s,ease:o,times:u}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:l,onUpdate:c,onComplete:d,element:f,...h}=this.options,g=new Ri({...h,keyframes:r,duration:i,type:s,ease:o,times:u,isGenerator:!0}),m=Se(this.time);l.setWithVelocity(g.sample(m-cn).value,g.sample(m).value,cn)}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:r,repeatDelay:i,repeatType:s,damping:o,type:u}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:a,transformTemplate:l}=n.owner.getProps();return Od()&&r&&Dd.has(r)&&!a&&!l&&!i&&s!=="mirror"&&o!==0&&u!=="inertia"}}const Zd={type:"spring",stiffness:500,damping:25,restSpeed:10},Hd=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),zd={type:"keyframes",duration:.8},kd={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Yd=(e,{keyframes:t})=>t.length>2?zd:Ye.has(e)?e.startsWith("scale")?Hd(t[1]):Zd:kd;function jd({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:s,repeatType:o,repeatDelay:u,from:a,elapsed:l,...c}){return!!Object.keys(c).length}const Oi=(e,t,n,r={},i,s)=>o=>{const u=ui(r,e)||{},a=u.delay||r.delay||0;let{elapsed:l=0}=r;l=l-Se(a);let c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...u,delay:-l,onUpdate:f=>{t.set(f),u.onUpdate&&u.onUpdate(f)},onComplete:()=>{o(),u.onComplete&&u.onComplete()},name:e,motionValue:t,element:s?void 0:i};jd(u)||(c={...c,...Yd(e,c)}),c.duration&&(c.duration=Se(c.duration)),c.repeatDelay&&(c.repeatDelay=Se(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let d=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(c.duration=0,c.delay===0&&(d=!0)),d&&!s&&t.get()!==void 0){const f=an(c.keyframes,u);if(f!==void 0)return W.update(()=>{c.onUpdate(f),c.onComplete()}),new fc([])}return!s&&ho.supports(c)?new ho(c):new Ri(c)};function Jd({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function po(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var s;let{transition:o=e.getDefaultTransition(),transitionEnd:u,...a}=t;r&&(o=r);const l=[],c=i&&e.animationState&&e.animationState.getState()[i];for(const d in a){const f=e.getValue(d,(s=e.latestValues[d])!==null&&s!==void 0?s:null),h=a[d];if(h===void 0||c&&Jd(c,d))continue;const g={delay:n,...ui(o||{},d)};let m=!1;if(window.MotionHandoffAnimation){const b=As(e);if(b){const C=window.MotionHandoffAnimation(b,d,W);C!==null&&(g.startTime=C,m=!0)}}vi(e,d),f.start(Oi(d,f,h,e.shouldReduceMotion&&Is.has(d)?{type:!1}:g,e,m));const p=f.animation;p&&l.push(p)}return u&&Promise.all(l).then(()=>{W.update(()=>{u&&Pc(e,u)})}),l}function Ni(e,t,n={}){var r;const i=rn(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:s=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(s=n.transitionOverride);const o=i?()=>Promise.all(po(e,i,n)):()=>Promise.resolve(),u=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:c=0,staggerChildren:d,staggerDirection:f}=s;return Ud(e,t,c+l,d,f,n)}:()=>Promise.resolve(),{when:a}=s;if(a){const[l,c]=a==="beforeChildren"?[o,u]:[u,o];return l().then(()=>c())}else return Promise.all([o(),u(n.delay)])}function Ud(e,t,n=0,r=0,i=1,s){const o=[],u=(e.variantChildren.size-1)*r,a=i===1?(l=0)=>l*r:(l=0)=>u-l*r;return Array.from(e.variantChildren).sort(_d).forEach((l,c)=>{l.notify("AnimationStart",t),o.push(Ni(l,t,{...s,delay:n+a(c)}).then(()=>l.notify("AnimationComplete",t)))}),Promise.all(o)}function _d(e,t){return e.sortNodePosition(t)}function $d(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(s=>Ni(e,s,n));r=Promise.all(i)}else if(typeof t=="string")r=Ni(e,t,n);else{const i=typeof t=="function"?rn(e,t,n.custom):t;r=Promise.all(po(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const Qd=_n.length;function mo(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?mo(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<Qd;n++){const r=_n[n],i=e.props[r];(vt(i)||i===!1)&&(t[r]=i)}return t}const Kd=[...Un].reverse(),qd=Un.length;function ef(e){return t=>Promise.all(t.map(({animation:n,options:r})=>$d(e,n,r)))}function tf(e){let t=ef(e),n=go(),r=!0;const i=a=>(l,c)=>{var d;const f=rn(e,c,a==="exit"?(d=e.presenceContext)===null||d===void 0?void 0:d.custom:void 0);if(f){const{transition:h,transitionEnd:g,...m}=f;l={...l,...m,...g}}return l};function s(a){t=a(e)}function o(a){const{props:l}=e,c=mo(e.parent)||{},d=[],f=new Set;let h={},g=1/0;for(let p=0;p<qd;p++){const b=Kd[p],C=n[b],I=l[b]!==void 0?l[b]:c[b],x=vt(I),v=b===a?C.isActive:null;v===!1&&(g=p);let A=I===c[b]&&I!==l[b]&&x;if(A&&r&&e.manuallyAnimateOnMount&&(A=!1),C.protectedKeys={...h},!C.isActive&&v===null||!I&&!C.prevProp||Kt(I)||typeof I=="boolean")continue;const S=nf(C.prevProp,I);let P=S||b===a&&C.isActive&&!A&&x||p>g&&x,F=!1;const O=Array.isArray(I)?I:[I];let k=O.reduce(i(b),{});v===!1&&(k={});const{prevResolvedValues:U={}}=C,pe={...U,...k},ue=X=>{P=!0,f.has(X)&&(F=!0,f.delete(X)),C.needsAnimating[X]=!0;const Z=e.getValue(X);Z&&(Z.liveStyle=!1)};for(const X in pe){const Z=k[X],le=U[X];if(h.hasOwnProperty(X))continue;let re=!1;ei(Z)&&ei(le)?re=!us(Z,le):re=Z!==le,re?Z!=null?ue(X):f.add(X):Z!==void 0&&f.has(X)?ue(X):C.protectedKeys[X]=!0}C.prevProp=I,C.prevResolvedValues=k,C.isActive&&(h={...h,...k}),r&&e.blockInitialAnimation&&(P=!1),P&&(!(A&&S)||F)&&d.push(...O.map(X=>({animation:X,options:{type:b}})))}if(f.size){const p={};f.forEach(b=>{const C=e.getBaseTarget(b),I=e.getValue(b);I&&(I.liveStyle=!0),p[b]=C??null}),d.push({animation:p})}let m=!!d.length;return r&&(l.initial===!1||l.initial===l.animate)&&!e.manuallyAnimateOnMount&&(m=!1),r=!1,m?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 h;return(h=f.animationState)===null||h===void 0?void 0:h.setActive(a,l)}),n[a].isActive=l;const d=o(a);for(const f in n)n[f].protectedKeys={};return d}return{animateChanges:o,setActive:u,setAnimateFunction:s,getState:()=>n,reset:()=>{n=go(),r=!0}}}function nf(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!us(t,e):!1}function Ue(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function go(){return{animate:Ue(!0),whileInView:Ue(),whileHover:Ue(),whileTap:Ue(),whileDrag:Ue(),whileFocus:Ue(),exit:Ue()}}class He{constructor(t){this.isMounted=!1,this.node=t}update(){}}class rf extends He{constructor(t){super(t),t.animationState||(t.animationState=tf(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Kt(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 sf=0;class of extends He{constructor(){super(...arguments),this.id=sf++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const af={animation:{Feature:rf},exit:{Feature:of}};function Tt(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function wt(e){return{point:{x:e.pageX,y:e.pageY}}}const uf=e=>t=>hi(t)&&e(t,wt(t));function Gt(e,t,n,r){return Tt(e,t,uf(n),r)}const bo=(e,t)=>Math.abs(e-t);function lf(e,t){const n=bo(e.x,t.x),r=bo(e.y,t.y);return Math.sqrt(n**2+r**2)}class vo{constructor(t,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:s=!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=Xi(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,h=lf(d.offset,{x:0,y:0})>=3;if(!f&&!h)return;const{point:g}=d,{timestamp:m}=K;this.history.push({...g,timestamp:m});const{onStart:p,onMove:b}=this.handlers;f||(p&&p(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),b&&b(this.lastMoveEvent,d)},this.handlePointerMove=(d,f)=>{this.lastMoveEvent=d,this.lastMoveEventInfo=Li(f,this.transformPagePoint),W.update(this.updatePoint,!0)},this.handlePointerUp=(d,f)=>{this.end();const{onEnd:h,onSessionEnd:g,resumeAnimation:m}=this.handlers;if(this.dragSnapToOrigin&&m&&m(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const p=Xi(d.type==="pointercancel"?this.lastMoveEventInfo:Li(f,this.transformPagePoint),this.history);this.startEvent&&h&&h(d,p),g&&g(d,p)},!hi(t))return;this.dragSnapToOrigin=s,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const o=wt(t),u=Li(o,this.transformPagePoint),{point:a}=u,{timestamp:l}=K;this.history=[{...a,timestamp:l}];const{onSessionStart:c}=n;c&&c(t,Xi(u,this.history)),this.removeListeners=Vt(Gt(this.contextWindow,"pointermove",this.handlePointerMove),Gt(this.contextWindow,"pointerup",this.handlePointerUp),Gt(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Xe(this.updatePoint)}}function Li(e,t){return t?{point:t(e.point)}:e}function yo(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Xi({point:e},t){return{point:e,delta:yo(e,Io(t)),offset:yo(e,cf(t)),velocity:df(t,.1)}}function cf(e){return e[0]}function Io(e){return e[e.length-1]}function df(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=Io(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Se(t)));)n--;if(!r)return{x:0,y:0};const s=Me(i.timestamp-r.timestamp);if(s===0)return{x:0,y:0};const o={x:(i.x-r.x)/s,y:(i.y-r.y)/s};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}const Co=1e-4,ff=1-Co,hf=1+Co,xo=.01,pf=0-xo,mf=0+xo;function fe(e){return e.max-e.min}function gf(e,t,n){return Math.abs(e-t)<=n}function Ao(e,t,n,r=.5){e.origin=r,e.originPoint=H(t.min,t.max,e.origin),e.scale=fe(n)/fe(t),e.translate=H(n.min,n.max,e.origin)-e.originPoint,(e.scale>=ff&&e.scale<=hf||isNaN(e.scale))&&(e.scale=1),(e.translate>=pf&&e.translate<=mf||isNaN(e.translate))&&(e.translate=0)}function Bt(e,t,n,r){Ao(e.x,t.x,n.x,r?r.originX:void 0),Ao(e.y,t.y,n.y,r?r.originY:void 0)}function So(e,t,n){e.min=n.min+t.min,e.max=e.min+fe(t)}function bf(e,t,n){So(e.x,t.x,n.x),So(e.y,t.y,n.y)}function Eo(e,t,n){e.min=t.min-n.min,e.max=e.min+fe(t)}function Mt(e,t,n){Eo(e.x,t.x,n.x),Eo(e.y,t.y,n.y)}function vf(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?H(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?H(n,e,r.max):Math.min(e,n)),e}function Po(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 yf(e,{top:t,left:n,bottom:r,right:i}){return{x:Po(e.x,n,i),y:Po(e.y,t,r)}}function Vo(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function If(e,t){return{x:Vo(e.x,t.x),y:Vo(e.y,t.y)}}function Cf(e,t){let n=.5;const r=fe(e),i=fe(t);return i>r?n=et(t.min,t.max-r,e.min):r>i&&(n=et(e.min,e.max-i,t.min)),Fe(0,1,n)}function xf(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 Wi=.35;function Af(e=Wi){return e===!1?e=0:e===!0&&(e=Wi),{x:To(e,"left","right"),y:To(e,"top","bottom")}}function To(e,t,n){return{min:wo(e,t),max:wo(e,n)}}function wo(e,t){return typeof e=="number"?e:e[t]||0}const Go=()=>({translate:0,scale:1,origin:0,originPoint:0}),at=()=>({x:Go(),y:Go()}),Bo=()=>({min:0,max:0}),J=()=>({x:Bo(),y:Bo()});function ge(e){return[e("x"),e("y")]}function Mo({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Sf({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Ef(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Zi(e){return e===void 0||e===1}function Hi({scale:e,scaleX:t,scaleY:n}){return!Zi(e)||!Zi(t)||!Zi(n)}function _e(e){return Hi(e)||Fo(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Fo(e){return Do(e.x)||Do(e.y)}function Do(e){return e&&e!=="0%"}function dn(e,t,n){const r=e-n,i=t*r;return n+i}function Ro(e,t,n,r,i){return i!==void 0&&(e=dn(e,i,r)),dn(e,n,r)+t}function zi(e,t=0,n=1,r,i){e.min=Ro(e.min,t,n,r,i),e.max=Ro(e.max,t,n,r,i)}function Oo(e,{x:t,y:n}){zi(e.x,t.translate,t.scale,t.originPoint),zi(e.y,n.translate,n.scale,n.originPoint)}const No=.999999999999,Lo=1.0000000000001;function Pf(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let s,o;for(let u=0;u<i;u++){s=n[u],o=s.projectionDelta;const{visualElement:a}=s.options;a&&a.props.style&&a.props.style.display==="contents"||(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&<(e,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,Oo(e,o)),r&&_e(s.latestValues)&<(e,s.latestValues))}t.x<Lo&&t.x>No&&(t.x=1),t.y<Lo&&t.y>No&&(t.y=1)}function ut(e,t){e.min=e.min+t,e.max=e.max+t}function Xo(e,t,n,r,i=.5){const s=H(e.min,e.max,i);zi(e,t,n,s,r)}function lt(e,t){Xo(e.x,t.x,t.scaleX,t.scale,t.originX),Xo(e.y,t.y,t.scaleY,t.scale,t.originY)}function Wo(e,t){return Mo(Ef(e.getBoundingClientRect(),t))}function Vf(e,t,n){const r=Wo(e,n),{scroll:i}=t;return i&&(ut(r.x,i.offset.x),ut(r.y,i.offset.y)),r}const Zo=({current:e})=>e?e.ownerDocument.defaultView:null,Tf=new WeakMap;class wf{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=J(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=c=>{const{dragSnapToOrigin:d}=this.getProps();d?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(wt(c).point)},s=(c,d)=>{const{drag:f,dragPropagation:h,onDragStart:g}=this.getProps();if(f&&!h&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Cc(f),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),ge(p=>{let b=this.getAxisMotionValue(p).get()||0;if(Ee.test(b)){const{projection:C}=this.visualElement;if(C&&C.layout){const I=C.layout.layoutBox[p];I&&(b=fe(I)*(parseFloat(b)/100))}}this.originPoint[p]=b}),g&&W.postRender(()=>g(c,d)),vi(this.visualElement,"transform");const{animationState:m}=this.visualElement;m&&m.setActive("whileDrag",!0)},o=(c,d)=>{const{dragPropagation:f,dragDirectionLock:h,onDirectionLock:g,onDrag:m}=this.getProps();if(!f&&!this.openDragLock)return;const{offset:p}=d;if(h&&this.currentDirection===null){this.currentDirection=Gf(p),this.currentDirection!==null&&g&&g(this.currentDirection);return}this.updateAxis("x",d.point,p),this.updateAxis("y",d.point,p),this.visualElement.render(),m&&m(c,d)},u=(c,d)=>this.stop(c,d),a=()=>ge(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 vo(t,{onSessionStart:i,onStart:s,onMove:o,onSessionEnd:u,resumeAnimation:a},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,contextWindow:Zo(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:s}=this.getProps();s&&W.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:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!fn(t,i,this.currentDirection))return;const s=this.getAxisMotionValue(t);let o=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(o=vf(o,this.constraints[t],this.elastic[t])),s.set(o)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,s=this.constraints;n&&nt(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=yf(i.layoutBox,n):this.constraints=!1,this.elastic=Af(r),s!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&ge(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=xf(i.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!nt(t))return!1;const r=t.current;Le(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const s=Vf(r,i.root,this.visualElement.getTransformPagePoint());let o=If(i.layout.layoutBox,s);if(n){const u=n(Sf(o));this.hasMutatedConstraints=!!u,u&&(o=Mo(u))}return o}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:s,dragSnapToOrigin:o,onDragTransitionEnd:u}=this.getProps(),a=this.constraints||{},l=ge(c=>{if(!fn(c,n,this.currentDirection))return;let d=a&&a[c]||{};o&&(d={min:0,max:0});const f=i?200:1e6,h=i?40:1e7,g={type:"inertia",velocity:r?t[c]:0,bounceStiffness:f,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...s,...d};return this.startAxisValueAnimation(c,g)});return Promise.all(l).then(u)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return vi(this.visualElement,t),r.start(Oi(t,r,0,n,this.visualElement,!1))}stopAnimation(){ge(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){ge(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()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){ge(n=>{const{drag:r}=this.getProps();if(!fn(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,s=this.getAxisMotionValue(n);if(i&&i.layout){const{min:o,max:u}=i.layout.layoutBox[n];s.set(t[n]-H(o,u,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!nt(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};ge(o=>{const u=this.getAxisMotionValue(o);if(u&&this.constraints!==!1){const a=u.get();i[o]=Cf({min:a,max:a},this.constraints[o])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),ge(o=>{if(!fn(o,t,null))return;const u=this.getAxisMotionValue(o),{min:a,max:l}=this.constraints[o];u.set(H(a,l,i[o]))})}addListeners(){if(!this.visualElement.current)return;Tf.set(this.visualElement,this);const t=this.visualElement.current,n=Gt(t,"pointerdown",a=>{const{drag:l,dragListener:c=!0}=this.getProps();l&&c&&this.start(a)}),r=()=>{const{dragConstraints:a}=this.getProps();nt(a)&&a.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,s=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),W.read(r);const o=Tt(window,"resize",()=>this.scalePositionWithinConstraints()),u=i.addEventListener("didUpdate",({delta:a,hasLayoutChanged:l})=>{this.isDragging&&l&&(ge(c=>{const d=this.getAxisMotionValue(c);d&&(this.originPoint[c]+=a[c].translate,d.set(d.get()+a[c].translate))}),this.visualElement.render())});return()=>{o(),n(),s(),u&&u()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:s=!1,dragElastic:o=Wi,dragMomentum:u=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:s,dragElastic:o,dragMomentum:u}}}function fn(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function Gf(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class Bf extends He{constructor(t){super(t),this.removeGroupControls=oe,this.removeListeners=oe,this.controls=new wf(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||oe}unmount(){this.removeGroupControls(),this.removeListeners()}}const Ho=e=>(t,n)=>{e&&W.postRender(()=>e(t,n))};class Mf extends He{constructor(){super(...arguments),this.removePointerDownListener=oe}onPointerDown(t){this.session=new vo(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Zo(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:Ho(t),onStart:Ho(n),onMove:r,onEnd:(s,o)=>{delete this.session,i&&W.postRender(()=>i(s,o))}}}mount(){this.removePointerDownListener=Gt(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const hn={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function zo(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Ft={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(G.test(e))e=parseFloat(e);else return e;const n=zo(e,t.target.x),r=zo(e,t.target.y);return`${n}% ${r}%`}},Ff={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=Ze.parse(e);if(i.length>5)return r;const s=Ze.createTransformer(e),o=typeof i[0]!="number"?1:0,u=n.x.scale*t.x,a=n.y.scale*t.y;i[0+o]/=u,i[1+o]/=a;const l=H(u,a,.5);return typeof i[2+o]=="number"&&(i[2+o]/=l),typeof i[3+o]=="number"&&(i[3+o]/=l),s(i)}};class Df extends y.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:s}=t;ec(Rf),s&&(n.group&&n.group.add(s),r&&r.register&&i&&r.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),hn.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:s}=this.props,o=r.projection;return o&&(o.isPresent=s,i||t.layoutDependency!==n||n===void 0?o.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?o.promote():o.relegate()||W.postRender(()=>{const u=o.getStack();(!u||!u.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Qn.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function ko(e){const[t,n]=Fr(),r=y.useContext(Zn);return E.jsx(Df,{...e,layoutGroup:r,switchLayoutGroup:y.useContext(kr),isPresent:t,safeToRemove:n})}const Rf={borderRadius:{...Ft,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Ft,borderTopRightRadius:Ft,borderBottomLeftRadius:Ft,borderBottomRightRadius:Ft,boxShadow:Ff};function Of(e,t,n){const r=te(e)?e:At(e);return r.start(Oi("",r,t,n)),r.animation}function Nf(e){return e instanceof SVGElement&&e.tagName!=="svg"}const Lf=(e,t)=>e.depth-t.depth;class Xf{constructor(){this.children=[],this.isDirty=!1}add(t){mi(this.children,t),this.isDirty=!0}remove(t){gi(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Lf),this.isDirty=!1,this.children.forEach(t)}}function Wf(e,t){const n=Pe.now(),r=({timestamp:i})=>{const s=i-n;s>=t&&(Xe(r),e(s-t))};return W.read(r,!0),()=>Xe(r)}const Yo=["TopLeft","TopRight","BottomLeft","BottomRight"],Zf=Yo.length,jo=e=>typeof e=="string"?parseFloat(e):e,Jo=e=>typeof e=="number"||G.test(e);function Hf(e,t,n,r,i,s){i?(e.opacity=H(0,n.opacity!==void 0?n.opacity:1,zf(r)),e.opacityExit=H(t.opacity!==void 0?t.opacity:1,0,kf(r))):s&&(e.opacity=H(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let o=0;o<Zf;o++){const u=`border${Yo[o]}Radius`;let a=Uo(t,u),l=Uo(n,u);if(a===void 0&&l===void 0)continue;a||(a=0),l||(l=0),a===0||l===0||Jo(a)===Jo(l)?(e[u]=Math.max(H(jo(a),jo(l),r),0),(Ee.test(l)||Ee.test(a))&&(e[u]+="%")):e[u]=l}(t.rotate||n.rotate)&&(e.rotate=H(t.rotate||0,n.rotate||0,r))}function Uo(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const zf=_o(0,.5,Gs),kf=_o(.5,.95,oe);function _o(e,t,n){return r=>r<e?0:r>t?1:n(et(e,t,r))}function $o(e,t){e.min=t.min,e.max=t.max}function be(e,t){$o(e.x,t.x),$o(e.y,t.y)}function Qo(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Ko(e,t,n,r,i){return e-=t,e=dn(e,1/n,r),i!==void 0&&(e=dn(e,1/i,r)),e}function Yf(e,t=0,n=1,r=.5,i,s=e,o=e){if(Ee.test(t)&&(t=parseFloat(t),t=H(o.min,o.max,t/100)-o.min),typeof t!="number")return;let u=H(s.min,s.max,r);e===s&&(u-=t),e.min=Ko(e.min,t,n,u,i),e.max=Ko(e.max,t,n,u,i)}function qo(e,t,[n,r,i],s,o){Yf(e,t[n],t[r],t[i],t.scale,s,o)}const jf=["x","scaleX","originX"],Jf=["y","scaleY","originY"];function ea(e,t,n,r){qo(e.x,t,jf,n?n.x:void 0,r?r.x:void 0),qo(e.y,t,Jf,n?n.y:void 0,r?r.y:void 0)}function ta(e){return e.translate===0&&e.scale===1}function na(e){return ta(e.x)&&ta(e.y)}function ia(e,t){return e.min===t.min&&e.max===t.max}function Uf(e,t){return ia(e.x,t.x)&&ia(e.y,t.y)}function ra(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function sa(e,t){return ra(e.x,t.x)&&ra(e.y,t.y)}function oa(e){return fe(e.x)/fe(e.y)}function aa(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class _f{constructor(){this.members=[]}add(t){mi(this.members,t),t.scheduleRender()}remove(t){if(gi(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(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const s=this.members[i];if(s.isPresent!==!1){r=s;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function $f(e,t,n){let r="";const i=e.x.translate/t.x,s=e.y.translate/t.y,o=(n==null?void 0:n.z)||0;if((i||s||o)&&(r=`translate3d(${i}px, ${s}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:l,rotate:c,rotateX:d,rotateY:f,skewX:h,skewY:g}=n;l&&(r=`perspective(${l}px) ${r}`),c&&(r+=`rotate(${c}deg) `),d&&(r+=`rotateX(${d}deg) `),f&&(r+=`rotateY(${f}deg) `),h&&(r+=`skewX(${h}deg) `),g&&(r+=`skewY(${g}deg) `)}const u=e.x.scale*t.x,a=e.y.scale*t.y;return(u!==1||a!==1)&&(r+=`scale(${u}, ${a})`),r||"none"}const $e={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Dt=typeof window<"u"&&window.MotionDebug!==void 0,ki=["","X","Y","Z"],Qf={visibility:"hidden"},ua=1e3;let Kf=0;function Yi(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function la(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=As(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:s}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",W,!(i||s))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&la(r)}function ca({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(o={},u=t==null?void 0:t()){this.id=Kf++,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,Dt&&($e.totalNodes=$e.resolvedTargetDeltas=$e.recalculatedProjection=0),this.nodes.forEach(th),this.nodes.forEach(oh),this.nodes.forEach(ah),this.nodes.forEach(nh),Dt&&window.MotionDebug.record($e)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,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 Xf)}addEventListener(o,u){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new bi),this.eventHandlers.get(o).add(u)}notifyListeners(o,...u){const a=this.eventHandlers.get(o);a&&a.notify(...u)}hasListeners(o){return this.eventHandlers.has(o)}mount(o,u=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=Nf(o),this.instance=o;const{layoutId:a,layout:l,visualElement:c}=this.options;if(c&&!c.current&&c.mount(o),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(o,()=>{this.root.updateBlockedByResize=!0,d&&d(),d=Wf(f,250),hn.hasAnimatedSinceResize&&(hn.hasAnimatedSinceResize=!1,this.nodes.forEach(fa))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&c&&(a||l)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:f,hasRelativeTargetChanged:h,layout:g})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const m=this.options.transition||c.getDefaultTransition()||fh,{onLayoutAnimationStart:p,onLayoutAnimationComplete:b}=c.getProps(),C=!this.targetLayout||!sa(this.targetLayout,g)||h,I=!f&&h;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||I||f&&(C||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(d,I);const x={...ui(m,"layout"),onPlay:p,onComplete:b};(c.shouldReduceMotion||this.options.layoutRoot)&&(x.delay=0,x.type=!1),this.startAnimation(x)}else f||fa(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=g})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Xe(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(uh),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&la(this),!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(),o&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(da);return}this.isUpdating||this.nodes.forEach(rh),this.isUpdating=!1,this.nodes.forEach(sh),this.nodes.forEach(qf),this.nodes.forEach(eh),this.clearAllSnapshots();const u=Pe.now();K.delta=Fe(0,1e3/60,u-K.timestamp),K.timestamp=u,K.isProcessing=!0,Jn.update.process(K),Jn.preRender.process(K),Jn.render.process(K),K.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Qn.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(ih),this.sharedNodes.forEach(lh)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,W.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){W.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 o=this.layout;this.layout=this.measure(!1),this.layoutCorrected=J(),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,o?o.layoutBox:void 0)}updateScroll(o="measure"){let u=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(u=!1),u){const a=r(this.instance);this.scroll={animationId:this.root.animationId,phase:o,isRoot:a,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:a}}}resetTransform(){if(!i)return;const o=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,u=this.projectionDelta&&!na(this.projectionDelta),a=this.getTransformTemplate(),l=a?a(this.latestValues,""):void 0,c=l!==this.prevTransformTemplateValue;o&&(u||_e(this.latestValues)||c)&&(i(this.instance,l),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const u=this.measurePageBox();let a=this.removeElementScroll(u);return o&&(a=this.removeTransform(a)),hh(a),{animationId:this.root.animationId,measuredBox:u,layoutBox:a,latestValues:{},source:this.id}}measurePageBox(){var o;const{visualElement:u}=this.options;if(!u)return J();const a=u.measureViewportBox();if(!(((o=this.scroll)===null||o===void 0?void 0:o.wasRoot)||this.path.some(ph))){const{scroll:c}=this.root;c&&(ut(a.x,c.offset.x),ut(a.y,c.offset.y))}return a}removeElementScroll(o){var u;const a=J();if(be(a,o),!((u=this.scroll)===null||u===void 0)&&u.wasRoot)return a;for(let l=0;l<this.path.length;l++){const c=this.path[l],{scroll:d,options:f}=c;c!==this.root&&d&&f.layoutScroll&&(d.wasRoot&&be(a,o),ut(a.x,d.offset.x),ut(a.y,d.offset.y))}return a}applyTransform(o,u=!1){const a=J();be(a,o);for(let l=0;l<this.path.length;l++){const c=this.path[l];!u&&c.options.layoutScroll&&c.scroll&&c!==c.root&<(a,{x:-c.scroll.offset.x,y:-c.scroll.offset.y}),_e(c.latestValues)&<(a,c.latestValues)}return _e(this.latestValues)&<(a,this.latestValues),a}removeTransform(o){const u=J();be(u,o);for(let a=0;a<this.path.length;a++){const l=this.path[a];if(!l.instance||!_e(l.latestValues))continue;Hi(l.latestValues)&&l.updateSnapshot();const c=J(),d=l.measurePageBox();be(c,d),ea(u,l.latestValues,l.snapshot?l.snapshot.layoutBox:void 0,c)}return _e(this.latestValues)&&ea(u,this.latestValues),u}setTargetDelta(o){this.targetDelta=o,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(o){this.options={...this.options,...o,crossfade:o.crossfade!==void 0?o.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!==K.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!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(!(o||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=K.timestamp,!this.targetDelta&&!this.relativeTarget){const h=this.getClosestProjectingParent();h&&h.layout&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=J(),this.relativeTargetOrigin=J(),Mt(this.relativeTargetOrigin,this.layout.layoutBox,h.layout.layoutBox),be(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=J(),this.targetWithTransforms=J()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),bf(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):be(this.target,this.layout.layoutBox),Oo(this.target,this.targetDelta)):be(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const h=this.getClosestProjectingParent();h&&!!h.resumingFrom==!!this.resumingFrom&&!h.options.layoutScroll&&h.target&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=J(),this.relativeTargetOrigin=J(),Mt(this.relativeTargetOrigin,this.target,h.target),be(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Dt&&$e.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||Hi(this.parent.latestValues)||Fo(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 o;const u=this.getLead(),a=!!this.resumingFrom||this!==u;let l=!0;if((this.isProjectionDirty||!((o=this.parent)===null||o===void 0)&&o.isProjectionDirty)&&(l=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===K.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;be(this.layoutCorrected,this.layout.layoutBox);const f=this.treeScale.x,h=this.treeScale.y;Pf(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=J());const{target:g}=u;if(!g){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Qo(this.prevProjectionDelta.x,this.projectionDelta.x),Qo(this.prevProjectionDelta.y,this.projectionDelta.y)),Bt(this.projectionDelta,this.layoutCorrected,g,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==h||!aa(this.projectionDelta.x,this.prevProjectionDelta.x)||!aa(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",g)),Dt&&$e.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){var u;if((u=this.options.visualElement)===null||u===void 0||u.scheduleRender(),o){const a=this.getStack();a&&a.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=at(),this.projectionDelta=at(),this.projectionDeltaWithTransform=at()}setAnimationOrigin(o,u=!1){const a=this.snapshot,l=a?a.latestValues:{},c={...this.latestValues},d=at();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!u;const f=J(),h=a?a.source:void 0,g=this.layout?this.layout.source:void 0,m=h!==g,p=this.getStack(),b=!p||p.members.length<=1,C=!!(m&&!b&&this.options.crossfade===!0&&!this.path.some(dh));this.animationProgress=0;let I;this.mixTargetDelta=x=>{const v=x/1e3;ha(d.x,o.x,v),ha(d.y,o.y,v),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Mt(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),ch(this.relativeTarget,this.relativeTargetOrigin,f,v),I&&Uf(this.relativeTarget,I)&&(this.isProjectionDirty=!1),I||(I=J()),be(I,this.relativeTarget)),m&&(this.animationValues=c,Hf(c,l,this.latestValues,v,C,b)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=v},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Xe(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=W.update(()=>{hn.hasAnimatedSinceResize=!0,this.currentAnimation=Of(0,ua,{...o,onUpdate:u=>{this.mixTargetDelta(u),o.onUpdate&&o.onUpdate(u)},onComplete:()=>{o.onComplete&&o.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 o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(ua),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:u,target:a,layout:l,latestValues:c}=o;if(!(!u||!a||!l)){if(this!==o&&this.layout&&l&&va(this.options.animationType,this.layout.layoutBox,l.layoutBox)){a=this.target||J();const d=fe(this.layout.layoutBox.x);a.x.min=o.target.x.min,a.x.max=a.x.min+d;const f=fe(this.layout.layoutBox.y);a.y.min=o.target.y.min,a.y.max=a.y.min+f}be(u,a),lt(u,c),Bt(this.projectionDeltaWithTransform,this.layoutCorrected,u,c)}}registerSharedNode(o,u){this.sharedNodes.has(o)||this.sharedNodes.set(o,new _f),this.sharedNodes.get(o).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 o=this.getStack();return o?o.lead===this:!0}getLead(){var o;const{layoutId:u}=this.options;return u?((o=this.getStack())===null||o===void 0?void 0:o.lead)||this:this}getPrevLead(){var o;const{layoutId:u}=this.options;return u?(o=this.getStack())===null||o===void 0?void 0:o.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:u,preserveFollowOpacity:a}={}){const l=this.getStack();l&&l.promote(this,a),o&&(this.projectionDelta=void 0,this.needsReset=!0),u&&this.setOptions({transition:u})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let u=!1;const{latestValues:a}=o;if((a.z||a.rotate||a.rotateX||a.rotateY||a.rotateZ||a.skewX||a.skewY)&&(u=!0),!u)return;const l={};a.z&&Yi("z",o,l,this.animationValues);for(let c=0;c<ki.length;c++)Yi(`rotate${ki[c]}`,o,l,this.animationValues),Yi(`skew${ki[c]}`,o,l,this.animationValues);o.render();for(const c in l)o.setStaticValue(c,l[c]),this.animationValues&&(this.animationValues[c]=l[c]);o.scheduleRender()}getProjectionStyles(o){var u,a;if(!this.instance||this.isSVG)return;if(!this.isVisible)return Qf;const l={visibility:""},c=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,l.opacity="",l.pointerEvents=en(o==null?void 0:o.pointerEvents)||"",l.transform=c?c(this.latestValues,""):"none",l;const d=this.getLead();if(!this.projectionDelta||!this.layout||!d.target){const m={};return this.options.layoutId&&(m.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,m.pointerEvents=en(o==null?void 0:o.pointerEvents)||""),this.hasProjected&&!_e(this.latestValues)&&(m.transform=c?c({},""):"none",this.hasProjected=!1),m}const f=d.animationValues||d.latestValues;this.applyTransformsToTarget(),l.transform=$f(this.projectionDeltaWithTransform,this.treeScale,f),c&&(l.transform=c(f,l.transform));const{x:h,y:g}=this.projectionDelta;l.transformOrigin=`${h.origin*100}% ${g.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 m in nn){if(f[m]===void 0)continue;const{correct:p,applyTo:b}=nn[m],C=l.transform==="none"?f[m]:p(f[m],d);if(b){const I=b.length;for(let x=0;x<I;x++)l[b[x]]=C}else l[m]=C}return this.options.layoutId&&(l.pointerEvents=d===this?en(o==null?void 0:o.pointerEvents)||"":"none"),l}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>{var u;return(u=o.currentAnimation)===null||u===void 0?void 0:u.stop()}),this.root.nodes.forEach(da),this.root.sharedNodes.clear()}}}function qf(e){e.updateLayout()}function eh(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:r,measuredBox:i}=e.layout,{animationType:s}=e.options,o=n.source!==e.layout.source;s==="size"?ge(d=>{const f=o?n.measuredBox[d]:n.layoutBox[d],h=fe(f);f.min=r[d].min,f.max=f.min+h}):va(s,n.layoutBox,r)&&ge(d=>{const f=o?n.measuredBox[d]:n.layoutBox[d],h=fe(r[d]);f.max=f.min+h,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+h)});const u=at();Bt(u,r,n.layoutBox);const a=at();o?Bt(a,e.applyTransform(i,!0),n.measuredBox):Bt(a,r,n.layoutBox);const l=!na(u);let c=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:f,layout:h}=d;if(f&&h){const g=J();Mt(g,n.layoutBox,f.layoutBox);const m=J();Mt(m,r,h.layoutBox),sa(g,m)||(c=!0),d.options.layoutRoot&&(e.relativeTarget=m,e.relativeTargetOrigin=g,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:a,layoutDelta:u,hasLayoutChanged:l,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function th(e){Dt&&$e.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 nh(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function ih(e){e.clearSnapshot()}function da(e){e.clearMeasurements()}function rh(e){e.isLayoutDirty=!1}function sh(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function fa(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function oh(e){e.resolveTargetDelta()}function ah(e){e.calcProjection()}function uh(e){e.resetSkewAndRotation()}function lh(e){e.removeLeadSnapshot()}function ha(e,t,n){e.translate=H(t.translate,0,n),e.scale=H(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function pa(e,t,n,r){e.min=H(t.min,n.min,r),e.max=H(t.max,n.max,r)}function ch(e,t,n,r){pa(e.x,t.x,n.x,r),pa(e.y,t.y,n.y,r)}function dh(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const fh={duration:.45,ease:[.4,0,.1,1]},ma=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),ga=ma("applewebkit/")&&!ma("chrome/")?Math.round:oe;function ba(e){e.min=ga(e.min),e.max=ga(e.max)}function hh(e){ba(e.x),ba(e.y)}function va(e,t,n){return e==="position"||e==="preserve-aspect"&&!gf(oa(t),oa(n),.2)}function ph(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const mh=ca({attachResizeListener:(e,t)=>Tt(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),ji={current:void 0},ya=ca({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!ji.current){const e=new mh({});e.mount(window),e.setOptions({layoutScroll:!0}),ji.current=e}return ji.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),gh={pan:{Feature:Mf},drag:{Feature:Bf,ProjectionNode:ya,MeasureLayout:ko}};function Ia(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,s=r[i];s&&W.postRender(()=>s(t,wt(t)))}class bh extends He{mount(){const{current:t}=this.node;t&&(this.unmount=gc(t,n=>(Ia(this.node,n,"Start"),r=>Ia(this.node,r,"End"))))}unmount(){}}class vh extends He{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=Vt(Tt(this.node.current,"focus",()=>this.onFocus()),Tt(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Ca(e,t,n){const{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),s=r[i];s&&W.postRender(()=>s(t,wt(t)))}class yh extends He{mount(){const{current:t}=this.node;t&&(this.unmount=Ic(t,n=>(Ca(this.node,n,"Start"),(r,{success:i})=>Ca(this.node,r,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Ji=new WeakMap,Ui=new WeakMap,Ih=e=>{const t=Ji.get(e.target);t&&t(e)},Ch=e=>{e.forEach(Ih)};function xh({root:e,...t}){const n=e||document;Ui.has(n)||Ui.set(n,{});const r=Ui.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(Ch,{root:e,...t})),r[i]}function Ah(e,t,n){const r=xh(t);return Ji.set(e,n),r.observe(e),()=>{Ji.delete(e),r.unobserve(e)}}const Sh={some:0,all:1};class Eh extends He{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:s}=t,o={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:Sh[i]},u=a=>{const{isIntersecting:l}=a;if(this.isInView===l||(this.isInView=l,s&&!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 Ah(this.node.current,o,u)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(Ph(t,n))&&this.startObserver()}unmount(){}}function Ph({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Vh={inView:{Feature:Eh},tap:{Feature:yh},focus:{Feature:vh},hover:{Feature:bh}},Th={layout:{ProjectionNode:ya,MeasureLayout:ko}},_i={current:null},xa={current:!1};function wh(){if(xa.current=!0,!!kn)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>_i.current=e.matches;e.addListener(t),t()}else _i.current=!1}const Gh=[...Us,ne,Ze],Bh=e=>Gh.find(Js(e)),Aa=new WeakMap;function Mh(e,t,n){for(const r in t){const i=t[r],s=n[r];if(te(i))e.addValue(r,i),process.env.NODE_ENV==="development"&&$t(i.version==="11.18.2",`Attempting to mix Motion versions ${i.version} with 11.18.2 may not work as expected.`);else if(te(s))e.addValue(r,At(i,{owner:e}));else if(s!==i)if(e.hasValue(r)){const o=e.getValue(r);o.liveStyle===!0?o.jump(i):o.hasAnimated||o.set(i)}else{const o=e.getStaticValue(r);e.addValue(r,At(o!==void 0?o:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const Sa=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Fh{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:s,visualState:o},u={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=wi,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const h=Pe.now();this.renderScheduledAt<h&&(this.renderScheduledAt=h,W.render(this.render,!1,!0))};const{latestValues:a,renderState:l,onUpdate:c}=o;this.onUpdate=c,this.latestValues=a,this.baseTarget={...a},this.initialValues=n.initial?{...a}:{},this.renderState=l,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=u,this.blockInitialAnimation=!!s,this.isControllingVariants=qt(n),this.isVariantNode=Zr(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:d,...f}=this.scrapeMotionValuesFromProps(n,{},this);for(const h in f){const g=f[h];a[h]!==void 0&&te(g)&&g.set(a[h],!1)}}mount(t){this.current=t,Aa.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,r)=>this.bindToMotionValue(r,n)),xa.current||wh(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:_i.current,process.env.NODE_ENV!=="production"&&$t(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(){Aa.delete(this.current),this.projection&&this.projection.unmount(),Xe(this.notifyUpdate),Xe(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),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){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=Ye.has(t),i=n.on("change",u=>{this.latestValues[t]=u,this.props.onUpdate&&W.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),s=n.on("renderRequest",this.scheduleRender);let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),s(),o&&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 tt){const n=tt[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const s=this.features[t];s.isMounted?s.update():(s.mount(),s.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):J()}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 r=0;r<Sa.length;r++){const i=Sa[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const s="on"+i,o=t[s];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=Mh(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}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}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&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 r=this.values.get(t);return r===void 0&&n!==void 0&&(r=At(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let i=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return i!=null&&(typeof i=="string"&&(Ys(i)||Ms(i))?i=parseFloat(i):!Bh(i)&&Ze.test(n)&&(i=Xs(t,n)),this.setBaseTarget(t,te(i)?i.get():i)),te(i)?i.get():i}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let i;if(typeof r=="string"||typeof r=="object"){const o=qn(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);o&&(i=o[t])}if(r&&i!==void 0)return i;const s=this.getBaseTargetFromProps(this.props,t);return s!==void 0&&!te(s)?s:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new bi),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class Ea extends Fh{constructor(){super(...arguments),this.KeyframeResolver=$s}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:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;te(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function Dh(e){return window.getComputedStyle(e)}class Rh extends Ea{constructor(){super(...arguments),this.type="html",this.renderInstance=ts}readValueFromInstance(t,n){if(Ye.has(n)){const r=Pi(n);return r&&r.default||0}else{const r=Dh(t),i=(_r(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Wo(t,n)}build(t,n,r){ii(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return ai(t,n,r)}}class Oh extends Ea{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=J}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Ye.has(n)){const r=Pi(n);return r&&r.default||0}return n=ns.has(n)?n:$n(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return ss(t,n,r)}build(t,n,r){ri(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,i){is(t,n,r,i)}mount(t){this.isSVGTag=oi(t.tagName),super.mount(t)}}const Nh=(e,t)=>Kn(e)?new Oh(t):new Rh(t,{allowProjection:e!==y.Fragment}),Lh=lc({...af,...Vh,...gh,...Th},Nh),Rt=El(Lh),Xh=e=>{let t=E.jsx(E.Fragment,{});switch(e){case"success":t=E.jsx(ll,{});break;case"info":t=E.jsx(dl,{});break;case"warning":t=E.jsx(fl,{});break;case"error":t=E.jsx(cl,{});break}return{icon:t}},Wh=e=>{const{id:t,type:n,title:r,count:i=1}=e,{icon:s}=Xh(n),o=4e3,u=Vr(),[a,l]=y.useState(!1),[c,d]=y.useState(!1),f=y.useRef(null),h=y.useCallback(()=>{u.removeToast(t)},[t,u]),g=()=>{f.current&&(clearTimeout(f.current),f.current=null)};y.useEffect(()=>(f.current=setTimeout(()=>{a?d(!0):h()},o),()=>{g()}),[a,h]);const m=()=>{l(!0)},p=()=>{l(!1),c&&h()},b=()=>{const C=Math.min(i-1,3);return[...Array(C)].map((I,x)=>{const v=(x+1)*6,A=1-(x+1)*.04,S=(x+1)*2;return E.jsx("div",{className:de["toast-stack-layer"],style:{transform:`translate(${S}px, ${v}px) scale(${A})`,zIndex:-1*(x+1)}},x)})};return E.jsxs("div",{className:de["toast-wrapper"],onMouseEnter:m,onMouseLeave:p,children:[b(),E.jsx(Rt.div,{layout:!0,initial:{opacity:0,y:50,scale:.95},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:0,scale:.95},children:E.jsxs("div",{className:ze(de.toast,de[n]),children:[i>1&&E.jsx("span",{className:de["toast-count"],children:i}),E.jsx("div",{className:de["toast-icon"],children:s}),E.jsx("div",{className:de["toast-content"],children:E.jsx("p",{className:de["toast-title"],children:r})}),E.jsx("div",{className:de["toast-close"],children:E.jsx("button",{type:"button",className:de["toast-close-btn"],onClick:h,children:E.jsx("span",{className:de["toast-close-btn-icon"],children:E.jsx(hl,{})})})})]})})]})};function Zh(e){const{children:t}=e,[n,r]=y.useState(!1);y.useEffect(()=>{r(!0)},[]);const i=document.getElementById("biznext-ui-toast-portal");return n&&i?Ne.createPortal(t,i):Ne.createPortal(t,document.body)}const Hh=({toasts:e,toastPosition:t="top-center"})=>{const n=new Map;e.forEach(i=>{const s=`${i.type}|${i.title}`;n.has(s)?n.get(s).count+=1:n.set(s,{...i,count:1})});const r=Array.from(n.values());return E.jsx(Zh,{children:E.jsx("div",{className:ze(de["toasts-container"],de[t]),children:E.jsx(Yn,{initial:!1,children:r.map(i=>E.jsx(Wh,{id:i.id,type:i.type,title:i.title,count:i.count},`${i.type}|${i.title}`))})})})};for(var q=[],$i=0;$i<256;++$i)q.push(($i+256).toString(16).slice(1));function zh(e,t=0){return(q[e[t+0]]+q[e[t+1]]+q[e[t+2]]+q[e[t+3]]+"-"+q[e[t+4]]+q[e[t+5]]+"-"+q[e[t+6]]+q[e[t+7]]+"-"+q[e[t+8]]+q[e[t+9]]+"-"+q[e[t+10]]+q[e[t+11]]+q[e[t+12]]+q[e[t+13]]+q[e[t+14]]+q[e[t+15]]).toLowerCase()}var pn,kh=new Uint8Array(16);function Yh(){if(!pn&&(pn=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!pn))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return pn(kh)}var jh=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);const Pa={randomUUID:jh};function Jh(e,t,n){if(Pa.randomUUID&&!e)return Pa.randomUUID();e=e||{};var r=e.random||(e.rng||Yh)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,zh(r)}function Uh(){return Ne.createPortal(E.jsxs("div",{id:"biznext-ui-portal",children:[E.jsx("div",{id:"biznext-ui-modal-portal"}),E.jsx("div",{id:"biznext-ui-toast-portal"}),E.jsx("div",{id:"biznext-ui-confirm-dialog-portal"})]}),document.body)}function _h(e){return ke({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M7 4V2H17V4H22V6H20V21C20 21.5523 19.5523 22 19 22H5C4.44772 22 4 21.5523 4 21V6H2V4H7ZM6 6V20H18V6H6ZM9 9H11V17H9V9ZM13 9H15V17H13V9Z"},child:[]}]})(e)}const Ie={"confirm-dialog":"biznext-ui-4yyscqDACxw-e","confirm-dialog-overlay":"biznext-ui-ylpaWxEFaTU-c","confirm-dialog-content":"biznext-ui-xwshXokj5ZA-c","confirm-dialog-body":"biznext-ui-K3-i0eWEQi8-2","confirm-dialog-icon-container":"biznext-ui-W86o6InrK1E-5","confirm-dialog-icon":"biznext-ui-PSIKxZhvjyo-3","confirm-dialog-footer":"biznext-ui-ffcW632vEe0-7","confirm-dialog-footer-close-btn":"biznext-ui-hDNTUYM-ra0-8","confirm-dialog-footer-confirm-btn":"biznext-ui-bFmcSx3W8Rs-6",info:"biznext-ui-wec4qWkj9NU-c",warning:"biznext-ui-mcehjNn9Nl0-9",danger:"biznext-ui-pYq-UQoFMHM-a",success:"biznext-ui-bgVORylkzc0-6"};function $h(e){const{children:t}=e,[n,r]=y.useState(!1);y.useEffect(()=>{r(!0)},[]);const i=document.getElementById("biznext-ui-confirm-dialog-portal");return n&&i?Ne.createPortal(t,i):Ne.createPortal(t,document.body)}const Qh=e=>{const{isOpen:t,onClose:n,config:r}=e,{type:i,title:s,description:o,icon:u,onConfirm:a,buttonContent:l}=r,c=()=>{n()},d=()=>{a(),n()};return E.jsx($h,{children:E.jsx("div",{className:Ie["confirm-dialog-wrapper"],children:E.jsx(Yn,{children:t&&E.jsx(Rt.div,{className:Ie["confirm-dialog-overlay"],initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},children:E.jsx(Rt.div,{className:ze(Ie["confirm-dialog"],Ie[i]),initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.95},children:E.jsxs("div",{className:Ie["confirm-dialog-content"],children:[E.jsxs("div",{className:Ie["confirm-dialog-body"],children:[E.jsx("div",{className:Ie["confirm-dialog-icon-container"],children:E.jsx("div",{className:Ie["confirm-dialog-icon"],children:u||E.jsx(_h,{})})}),E.jsxs("div",{children:[E.jsx("h2",{children:s}),E.jsx("p",{children:o})]})]}),E.jsxs("div",{className:Ie["confirm-dialog-footer"],children:[E.jsx("button",{type:"button",className:Ie["confirm-dialog-footer-close-btn"],onClick:c,children:l&&l.onCloseTitle?l.onCloseTitle:"Cancel"}),E.jsx("button",{type:"button",className:Ie["confirm-dialog-footer-confirm-btn"],onClick:d,children:l&&l.onConfirmTitle?l.onConfirmTitle:"Confirm"})]})]})})})})})})},Va=y.createContext({}),Kh=({children:e,toastPosition:t})=>{const n={toasts:[]},[r,i]=y.useReducer(Ku,n),s=(I,x,v)=>{const A=Jh();i({type:"ADD_TOAST",payload:{id:A,title:x,type:I,config:v}})},d={success:(I,x)=>{s("success",I,x)},warning:(I,x)=>{s("warning",I,x)},info:(I,x)=>{s("info",I,x)},error:(I,x)=>{s("error",I,x)},removeToast:I=>{i({type:"DELETE_TOAST",payload:{id:I,title:"",type:""}})}},[f,h]=y.useState({}),[g,m]=y.useState(!1),p=I=>{h(I),m(!0)},b=()=>{m(!1)},C=p;return E.jsx(Pr.Provider,{value:d,children:E.jsxs(Va.Provider,{value:C,children:[E.jsx(Uh,{}),E.jsx(Hh,{toasts:r.toasts,toastPosition:t}),E.jsx(Qh,{isOpen:g,onClose:b,config:f}),e]})})},ve={"modal-wrapper":"biznext-ui-n2Vjx4mdikE-9","modal-overlay":"biznext-ui-6sKjk6L11EQ-e",modal:"biznext-ui-Mao59ye15po-3","scale-zoom-in":"biznext-ui-a7p3n176fMY-6",left:"biznext-ui-5bDq6-PrHF4-e","left-slider":"biznext-ui-dhv7A0opLyg-7",right:"biznext-ui-X9XXG3R3kc4-5","right-slider":"biznext-ui-EXk9iqQoKIU-1","top-left":"biznext-ui-agEjPkJufuY-6","top-center":"biznext-ui-CzoFpYQH5r0-0","top-right":"biznext-ui-e0SRVasbx2Q-7","bottom-left":"biznext-ui-jMdhucf3jH4-8","bottom-center":"biznext-ui-1ruLnzU-7Mg-d","bottom-right":"biznext-ui-IBxY5gMZXAs-2",center:"biznext-ui-g7IKSnXitqg-8",full:"biznext-ui-T4NhvYHqFMo-4","modal-content":"biznext-ui-1F-uEUK7Izg-d","modal-header":"biznext-ui-nWO9WSw4Ix8-9","module-header-close-btn":"biznext-ui-kCEeyonkTlE-9","modal-title":"biznext-ui-r-WKlIAFS20-a","modal-body":"biznext-ui-7AJhK9Yn-KQ-e","modal-footer":"biznext-ui-lUyv0bpMUw4-9","modal-footer-close-btn":"biznext-ui-acScPNehEic-6"};function qh(e){return ke({attr:{viewBox:"0 0 352 512"},child:[{tag:"path",attr:{d:"M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z"},child:[]}]})(e)}function ep(e){const{children:t}=e,[n,r]=y.useState(!1);y.useEffect(()=>{r(!0)},[]);const i=document.getElementById("biznext-ui-modal-portal");return n&&i?Ne.createPortal(t,i):Ne.createPortal(t,document.body)}const Qi=y.createContext({onClose:()=>console.warn("Biznext-UI-Modal: Close Function not Implemented!")}),ct=e=>{const{type:t,index:n,height:r,width:i,sx:s,isOpen:o,onClose:u,children:a}=e,l=9999+(n||0),[c,d]=y.useState(!1),[f,h]=y.useState(!1);y.useEffect(()=>{d(!0)},[]);const g=()=>{h(!0),setTimeout(()=>{h(!1)},100)};return E.jsx(Qi.Provider,{value:{onClose:u},children:c?E.jsx(ep,{children:E.jsx(Yn,{children:o&&E.jsxs("div",{className:ve["modal-wrapper"],children:[E.jsx(Rt.div,{className:ze(ve["modal-overlay"]),style:{zIndex:l},onClick:g,initial:{opacity:0},animate:{opacity:1},exit:{opacity:0}}),E.jsx(Rt.div,{className:ze(ve.modal,f&&ve["scale-zoom-in"],ve[t]),style:{height:r,width:i,zIndex:l,...s},initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.95},children:a})]})})}):null})},tp=({children:e})=>E.jsx("div",{className:ve["modal-content"],children:e}),np=({children:e})=>{const{onClose:t}=y.useContext(Qi);return E.jsxs("header",{id:"handle",className:ve["modal-header"],children:[e,E.jsx("button",{type:"button",className:ve["module-header-close-btn"],onClick:t,children:E.jsx(qh,{})})]})},ip=({children:e})=>E.jsx("h2",{className:ve["modal-title"],children:e}),rp=({children:e})=>E.jsx("div",{className:ve["modal-body"],children:e}),sp=e=>{const{children:t,closeTitle:n}=e,{onClose:r}=y.useContext(Qi);return E.jsxs("footer",{className:ve["modal-footer"],children:[t,E.jsx("button",{type:"button",className:ve["modal-footer-close-btn"],onClick:r,children:n||"Cancel"})]})};ct.Content=tp,ct.Header=np,ct.Title=ip,ct.Body=rp,ct.Footer=sp;const op=()=>y.useContext(Va),Ce={form:"biznext-ui-WgISRe1bJDU-5","form-group":"biznext-ui-PDYbgOuoFL0-3","form-input-group":"biznext-ui-7dIDGqcfwy4-e","form-input-group-label":"biznext-ui-3qrluRcbSyQ-d",required:"biznext-ui-S1AWtF9fE-s-4","form-input-control-group":"biznext-ui-GQweSyKURD4-1","form-input-control":"biznext-ui-Pxa8kMsnvaQ-3","validation-error":"biznext-ui-B7sgFlayyBI-0","form-select-control":"biznext-ui-TyZSBF2HLh0-4","form-input-group-error-text":"biznext-ui-npOI3UC2M38-9"};function Qe(e){"@babel/helpers - typeof";return Qe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qe(e)}function ap(e,t){if(Qe(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Qe(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ta(e){var t=ap(e,"string");return Qe(t)=="symbol"?t:t+""}function Ot(e,t,n){return(t=Ta(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function w(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?wa(Object(n),!0).forEach(function(r){Ot(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wa(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function up(e){if(Array.isArray(e))return e}function lp(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,o,u=[],a=!0,l=!1;try{if(s=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;a=!1}else for(;!(a=(r=s.call(n)).done)&&(u.push(r.value),u.length!==t);a=!0);}catch(c){l=!0,i=c}finally{try{if(!a&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return u}}function Ki(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Ga(e,t){if(e){if(typeof e=="string")return Ki(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ki(e,t):void 0}}function cp(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
14
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function De(e,t){return up(e)||lp(e,t)||Ga(e,t)||cp()}function dp(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Re(e,t){if(e==null)return{};var n,r,i=dp(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var fp=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function hp(e){var t=e.defaultInputValue,n=t===void 0?"":t,r=e.defaultMenuIsOpen,i=r===void 0?!1:r,s=e.defaultValue,o=s===void 0?null:s,u=e.inputValue,a=e.menuIsOpen,l=e.onChange,c=e.onInputChange,d=e.onMenuClose,f=e.onMenuOpen,h=e.value,g=Re(e,fp),m=y.useState(u!==void 0?u:n),p=De(m,2),b=p[0],C=p[1],I=y.useState(a!==void 0?a:i),x=De(I,2),v=x[0],A=x[1],S=y.useState(h!==void 0?h:o),P=De(S,2),F=P[0],O=P[1],k=y.useCallback(function(Z,le){typeof l=="function"&&l(Z,le),O(Z)},[l]),U=y.useCallback(function(Z,le){var re;typeof c=="function"&&(re=c(Z,le)),C(re!==void 0?re:Z)},[c]),pe=y.useCallback(function(){typeof f=="function"&&f(),A(!0)},[f]),ue=y.useCallback(function(){typeof d=="function"&&d(),A(!1)},[d]),_=u!==void 0?u:b,j=a!==void 0?a:v,X=h!==void 0?h:F;return w(w({},g),{},{inputValue:_,menuIsOpen:j,onChange:k,onInputChange:U,onMenuClose:ue,onMenuOpen:pe,value:X})}function B(){return B=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},B.apply(null,arguments)}function pp(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ba(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ta(r.key),r)}}function mp(e,t,n){return t&&Ba(e.prototype,t),n&&Ba(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function qi(e,t){return qi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},qi(e,t)}function gp(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&qi(e,t)}function mn(e){return mn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},mn(e)}function Ma(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Ma=function(){return!!e})()}function bp(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function vp(e,t){if(t&&(Qe(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return bp(e)}function yp(e){var t=Ma();return function(){var n,r=mn(e);if(t){var i=mn(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return vp(this,n)}}function Ip(e){if(Array.isArray(e))return Ki(e)}function Cp(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function xp(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
15
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function er(e){return Ip(e)||Cp(e)||Ga(e)||xp()}function Ap(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function Sp(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var Ep=function(){function e(n){var r=this;this._insertTag=function(i){var s;r.tags.length===0?r.insertionPoint?s=r.insertionPoint.nextSibling:r.prepend?s=r.container.firstChild:s=r.before:s=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(i,s),r.tags.push(i)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Sp(this));var i=this.tags[this.tags.length-1];if(this.isSpeedy){var s=Ap(i);try{s.insertRule(r,s.cssRules.length)}catch{}}else i.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var i;return(i=r.parentNode)==null?void 0:i.removeChild(r)}),this.tags=[],this.ctr=0},e}(),ie="-ms-",gn="-moz-",D="-webkit-",Fa="comm",tr="rule",nr="decl",Pp="@import",Da="@keyframes",Vp="@layer",Tp=Math.abs,bn=String.fromCharCode,wp=Object.assign;function Gp(e,t){return ee(e,0)^45?(((t<<2^ee(e,0))<<2^ee(e,1))<<2^ee(e,2))<<2^ee(e,3):0}function Ra(e){return e.trim()}function Bp(e,t){return(e=t.exec(e))?e[0]:e}function R(e,t,n){return e.replace(t,n)}function ir(e,t){return e.indexOf(t)}function ee(e,t){return e.charCodeAt(t)|0}function Nt(e,t,n){return e.slice(t,n)}function Ve(e){return e.length}function rr(e){return e.length}function vn(e,t){return t.push(e),e}function Mp(e,t){return e.map(t).join("")}var yn=1,dt=1,Oa=0,ae=0,Q=0,ft="";function In(e,t,n,r,i,s,o){return{value:e,root:t,parent:n,type:r,props:i,children:s,line:yn,column:dt,length:o,return:""}}function Lt(e,t){return wp(In("",null,null,"",null,null,0),e,{length:-e.length},t)}function Fp(){return Q}function Dp(){return Q=ae>0?ee(ft,--ae):0,dt--,Q===10&&(dt=1,yn--),Q}function he(){return Q=ae<Oa?ee(ft,ae++):0,dt++,Q===10&&(dt=1,yn++),Q}function Te(){return ee(ft,ae)}function Cn(){return ae}function Xt(e,t){return Nt(ft,e,t)}function Wt(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Na(e){return yn=dt=1,Oa=Ve(ft=e),ae=0,[]}function La(e){return ft="",e}function xn(e){return Ra(Xt(ae-1,sr(e===91?e+2:e===40?e+1:e)))}function Rp(e){for(;(Q=Te())&&Q<33;)he();return Wt(e)>2||Wt(Q)>3?"":" "}function Op(e,t){for(;--t&&he()&&!(Q<48||Q>102||Q>57&&Q<65||Q>70&&Q<97););return Xt(e,Cn()+(t<6&&Te()==32&&he()==32))}function sr(e){for(;he();)switch(Q){case e:return ae;case 34:case 39:e!==34&&e!==39&&sr(Q);break;case 40:e===41&&sr(e);break;case 92:he();break}return ae}function Np(e,t){for(;he()&&e+Q!==57;)if(e+Q===84&&Te()===47)break;return"/*"+Xt(t,ae-1)+"*"+bn(e===47?e:he())}function Lp(e){for(;!Wt(Te());)he();return Xt(e,ae)}function Xp(e){return La(An("",null,null,null,[""],e=Na(e),0,[0],e))}function An(e,t,n,r,i,s,o,u,a){for(var l=0,c=0,d=o,f=0,h=0,g=0,m=1,p=1,b=1,C=0,I="",x=i,v=s,A=r,S=I;p;)switch(g=C,C=he()){case 40:if(g!=108&&ee(S,d-1)==58){ir(S+=R(xn(C),"&","&\f"),"&\f")!=-1&&(b=-1);break}case 34:case 39:case 91:S+=xn(C);break;case 9:case 10:case 13:case 32:S+=Rp(g);break;case 92:S+=Op(Cn()-1,7);continue;case 47:switch(Te()){case 42:case 47:vn(Wp(Np(he(),Cn()),t,n),a);break;default:S+="/"}break;case 123*m:u[l++]=Ve(S)*b;case 125*m:case 59:case 0:switch(C){case 0:case 125:p=0;case 59+c:b==-1&&(S=R(S,/\f/g,"")),h>0&&Ve(S)-d&&vn(h>32?Wa(S+";",r,n,d-1):Wa(R(S," ","")+";",r,n,d-2),a);break;case 59:S+=";";default:if(vn(A=Xa(S,t,n,l,c,i,u,I,x=[],v=[],d),s),C===123)if(c===0)An(S,t,A,A,x,s,d,u,v);else switch(f===99&&ee(S,3)===110?100:f){case 100:case 108:case 109:case 115:An(e,A,A,r&&vn(Xa(e,A,A,0,0,i,u,I,i,x=[],d),v),i,v,d,u,r?x:v);break;default:An(S,A,A,A,[""],v,0,u,v)}}l=c=h=0,m=b=1,I=S="",d=o;break;case 58:d=1+Ve(S),h=g;default:if(m<1){if(C==123)--m;else if(C==125&&m++==0&&Dp()==125)continue}switch(S+=bn(C),C*m){case 38:b=c>0?1:(S+="\f",-1);break;case 44:u[l++]=(Ve(S)-1)*b,b=1;break;case 64:Te()===45&&(S+=xn(he())),f=Te(),c=d=Ve(I=S+=Lp(Cn())),C++;break;case 45:g===45&&Ve(S)==2&&(m=0)}}return s}function Xa(e,t,n,r,i,s,o,u,a,l,c){for(var d=i-1,f=i===0?s:[""],h=rr(f),g=0,m=0,p=0;g<r;++g)for(var b=0,C=Nt(e,d+1,d=Tp(m=o[g])),I=e;b<h;++b)(I=Ra(m>0?f[b]+" "+C:R(C,/&\f/g,f[b])))&&(a[p++]=I);return In(e,t,n,i===0?tr:u,a,l,c)}function Wp(e,t,n){return In(e,t,n,Fa,bn(Fp()),Nt(e,2,-2),0)}function Wa(e,t,n,r){return In(e,t,n,nr,Nt(e,0,r),Nt(e,r+1,-1),r)}function ht(e,t){for(var n="",r=rr(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function Zp(e,t,n,r){switch(e.type){case Vp:if(e.children.length)break;case Pp:case nr:return e.return=e.return||e.value;case Fa:return"";case Da:return e.return=e.value+"{"+ht(e.children,r)+"}";case tr:e.value=e.props.join(",")}return Ve(n=ht(e.children,r))?e.return=e.value+"{"+n+"}":""}function Hp(e){var t=rr(e);return function(n,r,i,s){for(var o="",u=0;u<t;u++)o+=e[u](n,r,i,s)||"";return o}}function zp(e){return function(t){t.root||(t=t.return)&&e(t)}}function kp(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Yp=function(t,n,r){for(var i=0,s=0;i=s,s=Te(),i===38&&s===12&&(n[r]=1),!Wt(s);)he();return Xt(t,ae)},jp=function(t,n){var r=-1,i=44;do switch(Wt(i)){case 0:i===38&&Te()===12&&(n[r]=1),t[r]+=Yp(ae-1,n,r);break;case 2:t[r]+=xn(i);break;case 4:if(i===44){t[++r]=Te()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=bn(i)}while(i=he());return t},Jp=function(t,n){return La(jp(Na(t),n))},Za=new WeakMap,Up=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,i=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!Za.get(r))&&!i){Za.set(t,!0);for(var s=[],o=Jp(n,s),u=r.props,a=0,l=0;a<o.length;a++)for(var c=0;c<u.length;c++,l++)t.props[l]=s[a]?o[a].replace(/&\f/g,u[c]):u[c]+" "+o[a]}}},_p=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function Ha(e,t){switch(Gp(e,t)){case 5103:return D+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return D+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return D+e+gn+e+ie+e+e;case 6828:case 4268:return D+e+ie+e+e;case 6165:return D+e+ie+"flex-"+e+e;case 5187:return D+e+R(e,/(\w+).+(:[^]+)/,D+"box-$1$2"+ie+"flex-$1$2")+e;case 5443:return D+e+ie+"flex-item-"+R(e,/flex-|-self/,"")+e;case 4675:return D+e+ie+"flex-line-pack"+R(e,/align-content|flex-|-self/,"")+e;case 5548:return D+e+ie+R(e,"shrink","negative")+e;case 5292:return D+e+ie+R(e,"basis","preferred-size")+e;case 6060:return D+"box-"+R(e,"-grow","")+D+e+ie+R(e,"grow","positive")+e;case 4554:return D+R(e,/([^-])(transform)/g,"$1"+D+"$2")+e;case 6187:return R(R(R(e,/(zoom-|grab)/,D+"$1"),/(image-set)/,D+"$1"),e,"")+e;case 5495:case 3959:return R(e,/(image-set\([^]*)/,D+"$1$`$1");case 4968:return R(R(e,/(.+:)(flex-)?(.*)/,D+"box-pack:$3"+ie+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+D+e+e;case 4095:case 3583:case 4068:case 2532:return R(e,/(.+)-inline(.+)/,D+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Ve(e)-1-t>6)switch(ee(e,t+1)){case 109:if(ee(e,t+4)!==45)break;case 102:return R(e,/(.+:)(.+)-([^]+)/,"$1"+D+"$2-$3$1"+gn+(ee(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~ir(e,"stretch")?Ha(R(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(ee(e,t+1)!==115)break;case 6444:switch(ee(e,Ve(e)-3-(~ir(e,"!important")&&10))){case 107:return R(e,":",":"+D)+e;case 101:return R(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+D+(ee(e,14)===45?"inline-":"")+"box$3$1"+D+"$2$3$1"+ie+"$2box$3")+e}break;case 5936:switch(ee(e,t+11)){case 114:return D+e+ie+R(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return D+e+ie+R(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return D+e+ie+R(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return D+e+ie+e+e}return e}var $p=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case nr:t.return=Ha(t.value,t.length);break;case Da:return ht([Lt(t,{value:R(t.value,"@","@"+D)})],i);case tr:if(t.length)return Mp(t.props,function(s){switch(Bp(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ht([Lt(t,{props:[R(s,/:(read-\w+)/,":"+gn+"$1")]})],i);case"::placeholder":return ht([Lt(t,{props:[R(s,/:(plac\w+)/,":"+D+"input-$1")]}),Lt(t,{props:[R(s,/:(plac\w+)/,":"+gn+"$1")]}),Lt(t,{props:[R(s,/:(plac\w+)/,ie+"input-$1")]})],i)}return""})}},Qp=[$p],Kp=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(m){var p=m.getAttribute("data-emotion");p.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var i=t.stylisPlugins||Qp,s={},o,u=[];o=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(m){for(var p=m.getAttribute("data-emotion").split(" "),b=1;b<p.length;b++)s[p[b]]=!0;u.push(m)});var a,l=[Up,_p];{var c,d=[Zp,zp(function(m){c.insert(m)})],f=Hp(l.concat(i,d)),h=function(p){return ht(Xp(p),f)};a=function(p,b,C,I){c=C,h(p?p+"{"+b.styles+"}":b.styles),I&&(g.inserted[b.name]=!0)}}var g={key:n,sheet:new Ep({key:n,container:o,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:s,registered:{},insert:a};return g.sheet.hydrate(u),g},Sn={exports:{}},N={};/** @license React v16.13.1
|
|
16
16
|
* react-is.production.min.js
|
|
17
17
|
*
|
|
18
18
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
19
19
|
*
|
|
20
20
|
* This source code is licensed under the MIT license found in the
|
|
21
21
|
* LICENSE file in the root directory of this source tree.
|
|
22
|
-
*/var za;function qp(){if(za)return N;za=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,
|
|
22
|
+
*/var za;function qp(){if(za)return N;za=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,o=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,h=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,p=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,C=e?Symbol.for("react.scope"):60119;function I(v){if(typeof v=="object"&&v!==null){var A=v.$$typeof;switch(A){case t:switch(v=v.type,v){case a:case l:case r:case s:case i:case d:return v;default:switch(v=v&&v.$$typeof,v){case u:case c:case g:case h:case o:return v;default:return A}}case n:return A}}}function x(v){return I(v)===l}return N.AsyncMode=a,N.ConcurrentMode=l,N.ContextConsumer=u,N.ContextProvider=o,N.Element=t,N.ForwardRef=c,N.Fragment=r,N.Lazy=g,N.Memo=h,N.Portal=n,N.Profiler=s,N.StrictMode=i,N.Suspense=d,N.isAsyncMode=function(v){return x(v)||I(v)===a},N.isConcurrentMode=x,N.isContextConsumer=function(v){return I(v)===u},N.isContextProvider=function(v){return I(v)===o},N.isElement=function(v){return typeof v=="object"&&v!==null&&v.$$typeof===t},N.isForwardRef=function(v){return I(v)===c},N.isFragment=function(v){return I(v)===r},N.isLazy=function(v){return I(v)===g},N.isMemo=function(v){return I(v)===h},N.isPortal=function(v){return I(v)===n},N.isProfiler=function(v){return I(v)===s},N.isStrictMode=function(v){return I(v)===i},N.isSuspense=function(v){return I(v)===d},N.isValidElementType=function(v){return typeof v=="string"||typeof v=="function"||v===r||v===l||v===s||v===i||v===d||v===f||typeof v=="object"&&v!==null&&(v.$$typeof===g||v.$$typeof===h||v.$$typeof===o||v.$$typeof===u||v.$$typeof===c||v.$$typeof===p||v.$$typeof===b||v.$$typeof===C||v.$$typeof===m)},N.typeOf=I,N}var L={};/** @license React v16.13.1
|
|
23
23
|
* react-is.development.js
|
|
24
24
|
*
|
|
25
25
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
26
26
|
*
|
|
27
27
|
* This source code is licensed under the MIT license found in the
|
|
28
28
|
* LICENSE file in the root directory of this source tree.
|
|
29
|
-
*/var ka;function em(){return ka||(ka=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,s=e?Symbol.for("react.profiler"):60114,o=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,h=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,p=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,C=e?Symbol.for("react.scope"):60119;function I(V){return typeof V=="string"||typeof V=="function"||V===i||V===l||V===s||V===r||V===d||V===f||typeof V=="object"&&V!==null&&(V.$$typeof===g||V.$$typeof===h||V.$$typeof===o||V.$$typeof===u||V.$$typeof===c||V.$$typeof===p||V.$$typeof===b||V.$$typeof===C||V.$$typeof===m)}function x(V){if(typeof V=="object"&&V!==null){var zt=V.$$typeof;switch(zt){case t:var Ke=V.type;switch(Ke){case a:case l:case i:case s:case r:case d:return Ke;default:var Xn=Ke&&Ke.$$typeof;switch(Xn){case u:case c:case g:case h:case o:return Xn;default:return zt}}case n:return zt}}}var v=a,A=l,S=u,E=o,M=t,O=c,k=i,U=g,he=h,ue=n,_=s,j=r,X=d,Z=!1;function le(V){return Z||(Z=!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.")),re(V)||x(V)===a}function re(V){return x(V)===l}function gt(V){return x(V)===u}function $(V){return x(V)===o}function se(V){return typeof V=="object"&&V!==null&&V.$$typeof===t}function Ce(V){return x(V)===c}function Ge(V){return x(V)===i}function pe(V){return x(V)===g}function Be(V){return x(V)===h}function xe(V){return x(V)===n}function bt(V){return x(V)===s}function Er(V){return x(V)===r}function Ln(V){return x(V)===d}L.AsyncMode=v,L.ConcurrentMode=A,L.ContextConsumer=S,L.ContextProvider=E,L.Element=M,L.ForwardRef=O,L.Fragment=k,L.Lazy=U,L.Memo=he,L.Portal=ue,L.Profiler=_,L.StrictMode=j,L.Suspense=X,L.isAsyncMode=le,L.isConcurrentMode=re,L.isContextConsumer=gt,L.isContextProvider=$,L.isElement=se,L.isForwardRef=Ce,L.isFragment=Ge,L.isLazy=pe,L.isMemo=Be,L.isPortal=xe,L.isProfiler=bt,L.isStrictMode=Er,L.isSuspense=Ln,L.isValidElementType=I,L.typeOf=x}()),L}var Ya;function tm(){return Ya||(Ya=1,process.env.NODE_ENV==="production"?Sn.exports=qp():Sn.exports=em()),Sn.exports}var or,ja;function nm(){if(ja)return or;ja=1;var e=tm(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},r={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};s[e.ForwardRef]=i,s[e.Memo]=r;function o(g){return e.isMemo(g)?r:s[g.$$typeof]||t}var u=Object.defineProperty,a=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols,c=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,f=Object.prototype;function h(g,m,p){if(typeof m!="string"){if(f){var b=d(m);b&&b!==f&&h(g,b,p)}var C=a(m);l&&(C=C.concat(l(m)));for(var I=o(g),x=o(m),v=0;v<C.length;++v){var A=C[v];if(!n[A]&&!(p&&p[A])&&!(x&&x[A])&&!(I&&I[A])){var S=c(m,A);try{u(g,A,S)}catch{}}}}return g}return or=h,or}nm();var im=!0;function rm(e,t,n){var i="";return n.split(" ").forEach(function(r){e[r]!==void 0?t.push(e[r]+";"):r&&(i+=r+" ")}),i}var Ja=function(t,n,i){var r=t.key+"-"+n.name;(i===!1||im===!1)&&t.registered[r]===void 0&&(t.registered[r]=n.styles)},sm=function(t,n,i){Ja(t,n,i);var r=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var s=n;do t.insert(n===s?"."+r:"",s,t.sheet,!0),s=s.next;while(s!==void 0)}};function om(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 am={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},um=/[A-Z]|^ms/g,lm=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Ua=function(t){return t.charCodeAt(1)===45},_a=function(t){return t!=null&&typeof t!="boolean"},ar=kp(function(e){return Ua(e)?e:e.replace(um,"-$&").toLowerCase()}),$a=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(lm,function(i,r,s){return we={name:r,styles:s,next:we},r})}return am[t]!==1&&!Ua(t)&&typeof n=="number"&&n!==0?n+"px":n};function Zt(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 we={name:r.name,styles:r.styles,next:we},r.name;var s=n;if(s.styles!==void 0){var o=s.next;if(o!==void 0)for(;o!==void 0;)we={name:o.name,styles:o.styles,next:we},o=o.next;var u=s.styles+";";return u}return cm(e,t,n)}case"function":{if(e!==void 0){var a=we,l=n(e);return we=a,Zt(e,t,l)}break}}var c=n;return c}function cm(e,t,n){var i="";if(Array.isArray(n))for(var r=0;r<n.length;r++)i+=Zt(e,t,n[r])+";";else for(var s in n){var o=n[s];if(typeof o!="object"){var u=o;_a(u)&&(i+=ar(s)+":"+$a(s,u)+";")}else if(Array.isArray(o)&&typeof o[0]=="string"&&t==null)for(var a=0;a<o.length;a++)_a(o[a])&&(i+=ar(s)+":"+$a(s,o[a])+";");else{var l=Zt(e,t,o);switch(s){case"animation":case"animationName":{i+=ar(s)+":"+l+";";break}default:i+=s+"{"+l+"}"}}}return i}var Qa=/label:\s*([^\s;{]+)\s*(;|$)/g,we;function Ka(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="";we=void 0;var s=e[0];if(s==null||s.raw===void 0)i=!1,r+=Zt(n,t,s);else{var o=s;r+=o[0]}for(var u=1;u<e.length;u++)if(r+=Zt(n,t,e[u]),i){var a=s;r+=a[u]}Qa.lastIndex=0;for(var l="",c;(c=Qa.exec(r))!==null;)l+="-"+c[1];var d=om(r)+l;return{name:d,styles:r,next:we}}var dm=function(t){return t()},fm=F.useInsertionEffect?F.useInsertionEffect:!1,hm=fm||dm,qa=F.createContext(typeof HTMLElement<"u"?Kp({key:"css"}):null);qa.Provider;var pm=function(t){return y.forwardRef(function(n,i){var r=y.useContext(qa);return t(n,r,i)})},mm=F.createContext({}),ur={}.hasOwnProperty,lr="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",gm=function(t,n){var i={};for(var r in n)ur.call(n,r)&&(i[r]=n[r]);return i[lr]=t,i},bm=function(t){var n=t.cache,i=t.serialized,r=t.isStringTag;return Ja(n,i,r),hm(function(){return sm(n,i,r)}),null},vm=pm(function(e,t,n){var i=e.css;typeof i=="string"&&t.registered[i]!==void 0&&(i=t.registered[i]);var r=e[lr],s=[i],o="";typeof e.className=="string"?o=rm(t.registered,s,e.className):e.className!=null&&(o=e.className+" ");var u=Ka(s,void 0,F.useContext(mm));o+=t.key+"-"+u.name;var a={};for(var l in e)ur.call(e,l)&&l!=="css"&&l!==lr&&(a[l]=e[l]);return a.className=o,n&&(a.ref=n),F.createElement(F.Fragment,null,F.createElement(bm,{cache:t,serialized:u,isStringTag:typeof r=="string"}),F.createElement(r,a))}),ym=vm,T=function(t,n){var i=arguments;if(n==null||!ur.call(n,"css"))return F.createElement.apply(void 0,i);var r=i.length,s=new Array(r);s[0]=ym,s[1]=gm(t,n);for(var o=2;o<r;o++)s[o]=i[o];return F.createElement.apply(null,s)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(T||(T={}));function cr(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Ka(t)}function Im(){var e=cr.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}function Cm(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}const xm=Math.min,Am=Math.max,En=Math.round,Pn=Math.floor,Vn=e=>({x:e,y:e});function Sm(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 Tn(){return typeof window<"u"}function eu(e){return nu(e)?(e.nodeName||"").toLowerCase():"#document"}function Oe(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function tu(e){var t;return(t=(nu(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function nu(e){return Tn()?e instanceof Node||e instanceof Oe(e).Node:!1}function Em(e){return Tn()?e instanceof Element||e instanceof Oe(e).Element:!1}function dr(e){return Tn()?e instanceof HTMLElement||e instanceof Oe(e).HTMLElement:!1}function iu(e){return!Tn()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Oe(e).ShadowRoot}function ru(e){const{overflow:t,overflowX:n,overflowY:i,display:r}=fr(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+n)&&!["inline","contents"].includes(r)}function Pm(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Vm(e){return["html","body","#document"].includes(eu(e))}function fr(e){return Oe(e).getComputedStyle(e)}function Tm(e){if(eu(e)==="html")return e;const t=e.assignedSlot||e.parentNode||iu(e)&&e.host||tu(e);return iu(t)?t.host:t}function su(e){const t=Tm(e);return Vm(t)?e.ownerDocument?e.ownerDocument.body:e.body:dr(t)&&ru(t)?t:su(t)}function wn(e,t,n){var i;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=su(e),s=r===((i=e.ownerDocument)==null?void 0:i.body),o=Oe(r);if(s){const u=hr(o);return t.concat(o,o.visualViewport||[],ru(r)?r:[],u&&n?wn(u):[])}return t.concat(r,wn(r,[],n))}function hr(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function wm(e){const t=fr(e);let n=parseFloat(t.width)||0,i=parseFloat(t.height)||0;const r=dr(e),s=r?e.offsetWidth:n,o=r?e.offsetHeight:i,u=En(n)!==s||En(i)!==o;return u&&(n=s,i=o),{width:n,height:i,$:u}}function pr(e){return Em(e)?e:e.contextElement}function ou(e){const t=pr(e);if(!dr(t))return Vn(1);const n=t.getBoundingClientRect(),{width:i,height:r,$:s}=wm(t);let o=(s?En(n.width):n.width)/i,u=(s?En(n.height):n.height)/r;return(!o||!Number.isFinite(o))&&(o=1),(!u||!Number.isFinite(u))&&(u=1),{x:o,y:u}}const Gm=Vn(0);function Bm(e){const t=Oe(e);return!Pm()||!t.visualViewport?Gm:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Fm(e,t,n){return!1}function au(e,t,n,i){t===void 0&&(t=!1);const r=e.getBoundingClientRect(),s=pr(e);let o=Vn(1);t&&(o=ou(e));const u=Fm()?Bm(s):Vn(0);let a=(r.left+u.x)/o.x,l=(r.top+u.y)/o.y,c=r.width/o.x,d=r.height/o.y;if(s){const f=Oe(s),h=i;let g=f,m=hr(g);for(;m&&i&&h!==g;){const p=ou(m),b=m.getBoundingClientRect(),C=fr(m),I=b.left+(m.clientLeft+parseFloat(C.paddingLeft))*p.x,x=b.top+(m.clientTop+parseFloat(C.paddingTop))*p.y;a*=p.x,l*=p.y,c*=p.x,d*=p.y,a+=I,l+=x,g=Oe(m),m=hr(g)}}return Sm({width:c,height:d,x:a,y:l})}function uu(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Mm(e,t){let n=null,i;const r=tu(e);function s(){var u;clearTimeout(i),(u=n)==null||u.disconnect(),n=null}function o(u,a){u===void 0&&(u=!1),a===void 0&&(a=1),s();const l=e.getBoundingClientRect(),{left:c,top:d,width:f,height:h}=l;if(u||t(),!f||!h)return;const g=Pn(d),m=Pn(r.clientWidth-(c+f)),p=Pn(r.clientHeight-(d+h)),b=Pn(c),I={rootMargin:-g+"px "+-m+"px "+-p+"px "+-b+"px",threshold:Am(0,xm(1,a))||1};let x=!0;function v(A){const S=A[0].intersectionRatio;if(S!==a){if(!x)return o();S?o(!1,S):i=setTimeout(()=>{o(!1,1e-7)},1e3)}S===1&&!uu(l,e.getBoundingClientRect())&&o(),x=!1}try{n=new IntersectionObserver(v,{...I,root:r.ownerDocument})}catch{n=new IntersectionObserver(v,I)}n.observe(e)}return o(!0),s}function Dm(e,t,n,i){i===void 0&&(i={});const{ancestorScroll:r=!0,ancestorResize:s=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:u=typeof IntersectionObserver=="function",animationFrame:a=!1}=i,l=pr(e),c=r||s?[...l?wn(l):[],...wn(t)]:[];c.forEach(b=>{r&&b.addEventListener("scroll",n,{passive:!0}),s&&b.addEventListener("resize",n)});const d=l&&u?Mm(l,n):null;let f=-1,h=null;o&&(h=new ResizeObserver(b=>{let[C]=b;C&&C.target===l&&h&&(h.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var I;(I=h)==null||I.observe(t)})),n()}),l&&!a&&h.observe(l),h.observe(t));let g,m=a?au(e):null;a&&p();function p(){const b=au(e);m&&!uu(m,b)&&n(),m=b,g=requestAnimationFrame(p)}return n(),()=>{var b;c.forEach(C=>{r&&C.removeEventListener("scroll",n),s&&C.removeEventListener("resize",n)}),d==null||d(),(b=h)==null||b.disconnect(),h=null,a&&cancelAnimationFrame(g)}}var mr=y.useLayoutEffect,Rm=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],Gn=function(){};function Om(e,t){return t?t[0]==="-"?e+t:e+"__"+t:e}function Nm(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 s=[].concat(i);if(t&&e)for(var o in t)t.hasOwnProperty(o)&&t[o]&&s.push("".concat(Om(e,o)));return s.filter(function(u){return u}).map(function(u){return String(u).trim()}).join(" ")}var lu=function(t){return jm(t)?t.filter(Boolean):Qe(t)==="object"&&t!==null?[t]:[]},cu=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=Re(t,Rm);return w({},n)},Y=function(t,n,i){var r=t.cx,s=t.getStyles,o=t.getClassNames,u=t.className;return{css:s(n,t),className:r(i??{},o(n,t),u)}};function Bn(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function Lm(e){return Bn(e)?window.innerHeight:e.clientHeight}function du(e){return Bn(e)?window.pageYOffset:e.scrollTop}function Fn(e,t){if(Bn(e)){window.scrollTo(0,t);return}e.scrollTop=t}function Xm(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 Wm(e,t,n,i){return n*((e=e/i-1)*e*e+1)+t}function Mn(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Gn,r=du(e),s=t-r,o=10,u=0;function a(){u+=o;var l=Wm(u,r,s,n);Fn(e,l),u<n?window.requestAnimationFrame(a):i(e)}a()}function fu(e,t){var n=e.getBoundingClientRect(),i=t.getBoundingClientRect(),r=t.offsetHeight/3;i.bottom+r>n.bottom?Fn(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+r,e.scrollHeight)):i.top-r<n.top&&Fn(e,Math.max(t.offsetTop-r,0))}function Zm(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 hu(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function Hm(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var pu=!1,zm={get passive(){return pu=!0}},Dn=typeof window<"u"?window:{};Dn.addEventListener&&Dn.removeEventListener&&(Dn.addEventListener("p",Gn,zm),Dn.removeEventListener("p",Gn,!1));var km=pu;function Ym(e){return e!=null}function jm(e){return Array.isArray(e)}function Rn(e,t,n){return e?t:n}function S0(e){return e}function E0(e){return e}var Jm=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 s=Object.entries(t).filter(function(o){var u=De(o,1),a=u[0];return!i.includes(a)});return s.reduce(function(o,u){var a=De(u,2),l=a[0],c=a[1];return o[l]=c,o},{})},Um=["children","innerProps"],_m=["children","innerProps"];function $m(e){var t=e.maxHeight,n=e.menuEl,i=e.minHeight,r=e.placement,s=e.shouldScroll,o=e.isFixedPosition,u=e.controlHeight,a=Xm(n),l={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return l;var c=a.getBoundingClientRect(),d=c.height,f=n.getBoundingClientRect(),h=f.bottom,g=f.height,m=f.top,p=n.offsetParent.getBoundingClientRect(),b=p.top,C=o?window.innerHeight:Lm(a),I=du(a),x=parseInt(getComputedStyle(n).marginBottom,10),v=parseInt(getComputedStyle(n).marginTop,10),A=b-v,S=C-m,E=A+I,M=d-I-m,O=h-C+I+x,k=I+m-v,U=160;switch(r){case"auto":case"bottom":if(S>=g)return{placement:"bottom",maxHeight:t};if(M>=g&&!o)return s&&Mn(a,O,U),{placement:"bottom",maxHeight:t};if(!o&&M>=i||o&&S>=i){s&&Mn(a,O,U);var he=o?S-x:M-x;return{placement:"bottom",maxHeight:he}}if(r==="auto"||o){var ue=t,_=o?A:E;return _>=i&&(ue=Math.min(_-x-u,t)),{placement:"top",maxHeight:ue}}if(r==="bottom")return s&&Fn(a,O),{placement:"bottom",maxHeight:t};break;case"top":if(A>=g)return{placement:"top",maxHeight:t};if(E>=g&&!o)return s&&Mn(a,k,U),{placement:"top",maxHeight:t};if(!o&&E>=i||o&&A>=i){var j=t;return(!o&&E>=i||o&&A>=i)&&(j=o?A-v:E-v),s&&Mn(a,k,U),{placement:"top",maxHeight:j}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(r,'".'))}return l}function Qm(e){var t={bottom:"top",top:"bottom"};return e?t[e]:"bottom"}var mu=function(t){return t==="auto"?"bottom":t},Km=function(t,n){var i,r=t.placement,s=t.theme,o=s.borderRadius,u=s.spacing,a=s.colors;return w((i={label:"menu"},Ot(i,Qm(r),"100%"),Ot(i,"position","absolute"),Ot(i,"width","100%"),Ot(i,"zIndex",1),i),n?{}:{backgroundColor:a.neutral0,borderRadius:o,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})},gu=y.createContext(null),qm=function(t){var n=t.children,i=t.minMenuHeight,r=t.maxMenuHeight,s=t.menuPlacement,o=t.menuPosition,u=t.menuShouldScrollIntoView,a=t.theme,l=y.useContext(gu)||{},c=l.setPortalPlacement,d=y.useRef(null),f=y.useState(r),h=De(f,2),g=h[0],m=h[1],p=y.useState(null),b=De(p,2),C=b[0],I=b[1],x=a.spacing.controlHeight;return mr(function(){var v=d.current;if(v){var A=o==="fixed",S=u&&!A,E=$m({maxHeight:r,menuEl:v,minHeight:i,placement:s,shouldScroll:S,isFixedPosition:A,controlHeight:x});m(E.maxHeight),I(E.placement),c==null||c(E.placement)}},[r,s,o,u,i,c,x]),n({ref:d,placerProps:w(w({},t),{},{placement:C||mu(s),maxHeight:g})})},eg=function(t){var n=t.children,i=t.innerRef,r=t.innerProps;return T("div",B({},Y(t,"menu",{menu:!0}),{ref:i},r),n)},tg=eg,ng=function(t,n){var i=t.maxHeight,r=t.theme.spacing.baseUnit;return w({maxHeight:i,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},n?{}:{paddingBottom:r,paddingTop:r})},ig=function(t){var n=t.children,i=t.innerProps,r=t.innerRef,s=t.isMulti;return T("div",B({},Y(t,"menuList",{"menu-list":!0,"menu-list--is-multi":s}),{ref:r},i),n)},bu=function(t,n){var i=t.theme,r=i.spacing.baseUnit,s=i.colors;return w({textAlign:"center"},n?{}:{color:s.neutral40,padding:"".concat(r*2,"px ").concat(r*3,"px")})},rg=bu,sg=bu,og=function(t){var n=t.children,i=n===void 0?"No options":n,r=t.innerProps,s=Re(t,Um);return T("div",B({},Y(w(w({},s),{},{children:i,innerProps:r}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),r),i)},ag=function(t){var n=t.children,i=n===void 0?"Loading...":n,r=t.innerProps,s=Re(t,_m);return T("div",B({},Y(w(w({},s),{},{children:i,innerProps:r}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),r),i)},ug=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}},lg=function(t){var n=t.appendTo,i=t.children,r=t.controlElement,s=t.innerProps,o=t.menuPlacement,u=t.menuPosition,a=y.useRef(null),l=y.useRef(null),c=y.useState(mu(o)),d=De(c,2),f=d[0],h=d[1],g=y.useMemo(function(){return{setPortalPlacement:h}},[]),m=y.useState(null),p=De(m,2),b=p[0],C=p[1],I=y.useCallback(function(){if(r){var S=Zm(r),E=u==="fixed"?0:window.pageYOffset,M=S[f]+E;(M!==(b==null?void 0:b.offset)||S.left!==(b==null?void 0:b.rect.left)||S.width!==(b==null?void 0:b.rect.width))&&C({offset:M,rect:S})}},[r,u,f,b==null?void 0:b.offset,b==null?void 0:b.rect.left,b==null?void 0:b.rect.width]);mr(function(){I()},[I]);var x=y.useCallback(function(){typeof l.current=="function"&&(l.current(),l.current=null),r&&a.current&&(l.current=Dm(r,a.current,I,{elementResize:"ResizeObserver"in window}))},[r,I]);mr(function(){x()},[x]);var v=y.useCallback(function(S){a.current=S,x()},[x]);if(!n&&u!=="fixed"||!b)return null;var A=T("div",B({ref:v},Y(w(w({},t),{},{offset:b.offset,position:u,rect:b.rect}),"menuPortal",{"menu-portal":!0}),s),i);return T(gu.Provider,{value:g},n?Ne.createPortal(A,n):A)},cg=function(t){var n=t.isDisabled,i=t.isRtl;return{label:"container",direction:i?"rtl":void 0,pointerEvents:n?"none":void 0,position:"relative"}},dg=function(t){var n=t.children,i=t.innerProps,r=t.isDisabled,s=t.isRtl;return T("div",B({},Y(t,"container",{"--is-disabled":r,"--is-rtl":s}),i),n)},fg=function(t,n){var i=t.theme.spacing,r=t.isMulti,s=t.hasValue,o=t.selectProps.controlShouldRenderValue;return w({alignItems:"center",display:r&&s&&o?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},n?{}:{padding:"".concat(i.baseUnit/2,"px ").concat(i.baseUnit*2,"px")})},hg=function(t){var n=t.children,i=t.innerProps,r=t.isMulti,s=t.hasValue;return T("div",B({},Y(t,"valueContainer",{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":s}),i),n)},pg=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},mg=function(t){var n=t.children,i=t.innerProps;return T("div",B({},Y(t,"indicatorsContainer",{indicators:!0}),i),n)},vu,gg=["size"],bg=["innerProps","isRtl","size"];function vg(){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 yg=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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLFxufSBmcm9tICcuLi90eXBlcyc7XG5pbXBvcnQgeyBnZXRTdHlsZVByb3BzIH0gZnJvbSAnLi4vdXRpbHMnO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgSWNvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBTdmcgPSAoe1xuICBzaXplLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZTogbnVtYmVyIH0pID0+IChcbiAgPHN2Z1xuICAgIGhlaWdodD17c2l6ZX1cbiAgICB3aWR0aD17c2l6ZX1cbiAgICB2aWV3Qm94PVwiMCAwIDIwIDIwXCJcbiAgICBhcmlhLWhpZGR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XRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+KSA9PiB7XG4gIHJldHVybiAoXG4gICAgPGRpdlxuICAgICAgey4uLmdldFN0eWxlUHJvcHMoXG4gICAgICAgIHsgLi4ucmVzdFByb3BzLCBpbm5lclByb3BzLCBpc1J0bCwgc2l6ZSB9LFxuICAgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */",toString:vg},yu=function(t){var n=t.size,i=Re(t,gg);return T("svg",B({height:n,width:n,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:yg},i))},gr=function(t){return T(yu,B({size:20},t),T("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"}))},Iu=function(t){return T(yu,B({size:20},t),T("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"}))},Cu=function(t,n){var i=t.isFocused,r=t.theme,s=r.spacing.baseUnit,o=r.colors;return w({label:"indicatorContainer",display:"flex",transition:"color 150ms"},n?{}:{color:i?o.neutral60:o.neutral20,padding:s*2,":hover":{color:i?o.neutral80:o.neutral40}})},Ig=Cu,Cg=function(t){var n=t.children,i=t.innerProps;return T("div",B({},Y(t,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),i),n||T(Iu,null))},xg=Cu,Ag=function(t){var n=t.children,i=t.innerProps;return T("div",B({},Y(t,"clearIndicator",{indicator:!0,"clear-indicator":!0}),i),n||T(gr,null))},Sg=function(t,n){var i=t.isDisabled,r=t.theme,s=r.spacing.baseUnit,o=r.colors;return w({label:"indicatorSeparator",alignSelf:"stretch",width:1},n?{}:{backgroundColor:i?o.neutral10:o.neutral20,marginBottom:s*2,marginTop:s*2})},Eg=function(t){var n=t.innerProps;return T("span",B({},n,Y(t,"indicatorSeparator",{"indicator-separator":!0})))},Pg=Im(vu||(vu=Cm([`
|
|
29
|
+
*/var ka;function em(){return ka||(ka=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,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,o=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,h=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,p=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,C=e?Symbol.for("react.scope"):60119;function I(V){return typeof V=="string"||typeof V=="function"||V===r||V===l||V===s||V===i||V===d||V===f||typeof V=="object"&&V!==null&&(V.$$typeof===g||V.$$typeof===h||V.$$typeof===o||V.$$typeof===u||V.$$typeof===c||V.$$typeof===p||V.$$typeof===b||V.$$typeof===C||V.$$typeof===m)}function x(V){if(typeof V=="object"&&V!==null){var zt=V.$$typeof;switch(zt){case t:var Ke=V.type;switch(Ke){case a:case l:case r:case s:case i:case d:return Ke;default:var Xn=Ke&&Ke.$$typeof;switch(Xn){case u:case c:case g:case h:case o:return Xn;default:return zt}}case n:return zt}}}var v=a,A=l,S=u,P=o,F=t,O=c,k=r,U=g,pe=h,ue=n,_=s,j=i,X=d,Z=!1;function le(V){return Z||(Z=!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.")),re(V)||x(V)===a}function re(V){return x(V)===l}function gt(V){return x(V)===u}function $(V){return x(V)===o}function se(V){return typeof V=="object"&&V!==null&&V.$$typeof===t}function xe(V){return x(V)===c}function Ge(V){return x(V)===r}function me(V){return x(V)===g}function Be(V){return x(V)===h}function Ae(V){return x(V)===n}function bt(V){return x(V)===s}function Er(V){return x(V)===i}function Ln(V){return x(V)===d}L.AsyncMode=v,L.ConcurrentMode=A,L.ContextConsumer=S,L.ContextProvider=P,L.Element=F,L.ForwardRef=O,L.Fragment=k,L.Lazy=U,L.Memo=pe,L.Portal=ue,L.Profiler=_,L.StrictMode=j,L.Suspense=X,L.isAsyncMode=le,L.isConcurrentMode=re,L.isContextConsumer=gt,L.isContextProvider=$,L.isElement=se,L.isForwardRef=xe,L.isFragment=Ge,L.isLazy=me,L.isMemo=Be,L.isPortal=Ae,L.isProfiler=bt,L.isStrictMode=Er,L.isSuspense=Ln,L.isValidElementType=I,L.typeOf=x}()),L}var Ya;function tm(){return Ya||(Ya=1,process.env.NODE_ENV==="production"?Sn.exports=qp():Sn.exports=em()),Sn.exports}var or,ja;function nm(){if(ja)return or;ja=1;var e=tm(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};s[e.ForwardRef]=r,s[e.Memo]=i;function o(g){return e.isMemo(g)?i:s[g.$$typeof]||t}var u=Object.defineProperty,a=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols,c=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,f=Object.prototype;function h(g,m,p){if(typeof m!="string"){if(f){var b=d(m);b&&b!==f&&h(g,b,p)}var C=a(m);l&&(C=C.concat(l(m)));for(var I=o(g),x=o(m),v=0;v<C.length;++v){var A=C[v];if(!n[A]&&!(p&&p[A])&&!(x&&x[A])&&!(I&&I[A])){var S=c(m,A);try{u(g,A,S)}catch{}}}}return g}return or=h,or}nm();var im=!0;function rm(e,t,n){var r="";return n.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):i&&(r+=i+" ")}),r}var Ja=function(t,n,r){var i=t.key+"-"+n.name;(r===!1||im===!1)&&t.registered[i]===void 0&&(t.registered[i]=n.styles)},sm=function(t,n,r){Ja(t,n,r);var i=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var s=n;do t.insert(n===s?"."+i:"",s,t.sheet,!0),s=s.next;while(s!==void 0)}};function om(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&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(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&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 am={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},um=/[A-Z]|^ms/g,lm=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Ua=function(t){return t.charCodeAt(1)===45},_a=function(t){return t!=null&&typeof t!="boolean"},ar=kp(function(e){return Ua(e)?e:e.replace(um,"-$&").toLowerCase()}),$a=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(lm,function(r,i,s){return we={name:i,styles:s,next:we},i})}return am[t]!==1&&!Ua(t)&&typeof n=="number"&&n!==0?n+"px":n};function Zt(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var i=n;if(i.anim===1)return we={name:i.name,styles:i.styles,next:we},i.name;var s=n;if(s.styles!==void 0){var o=s.next;if(o!==void 0)for(;o!==void 0;)we={name:o.name,styles:o.styles,next:we},o=o.next;var u=s.styles+";";return u}return cm(e,t,n)}case"function":{if(e!==void 0){var a=we,l=n(e);return we=a,Zt(e,t,l)}break}}var c=n;return c}function cm(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=Zt(e,t,n[i])+";";else for(var s in n){var o=n[s];if(typeof o!="object"){var u=o;_a(u)&&(r+=ar(s)+":"+$a(s,u)+";")}else if(Array.isArray(o)&&typeof o[0]=="string"&&t==null)for(var a=0;a<o.length;a++)_a(o[a])&&(r+=ar(s)+":"+$a(s,o[a])+";");else{var l=Zt(e,t,o);switch(s){case"animation":case"animationName":{r+=ar(s)+":"+l+";";break}default:r+=s+"{"+l+"}"}}}return r}var Qa=/label:\s*([^\s;{]+)\s*(;|$)/g,we;function Ka(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,i="";we=void 0;var s=e[0];if(s==null||s.raw===void 0)r=!1,i+=Zt(n,t,s);else{var o=s;i+=o[0]}for(var u=1;u<e.length;u++)if(i+=Zt(n,t,e[u]),r){var a=s;i+=a[u]}Qa.lastIndex=0;for(var l="",c;(c=Qa.exec(i))!==null;)l+="-"+c[1];var d=om(i)+l;return{name:d,styles:i,next:we}}var dm=function(t){return t()},fm=M.useInsertionEffect?M.useInsertionEffect:!1,hm=fm||dm,qa=M.createContext(typeof HTMLElement<"u"?Kp({key:"css"}):null);qa.Provider;var pm=function(t){return y.forwardRef(function(n,r){var i=y.useContext(qa);return t(n,i,r)})},mm=M.createContext({}),ur={}.hasOwnProperty,lr="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",gm=function(t,n){var r={};for(var i in n)ur.call(n,i)&&(r[i]=n[i]);return r[lr]=t,r},bm=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return Ja(n,r,i),hm(function(){return sm(n,r,i)}),null},vm=pm(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var i=e[lr],s=[r],o="";typeof e.className=="string"?o=rm(t.registered,s,e.className):e.className!=null&&(o=e.className+" ");var u=Ka(s,void 0,M.useContext(mm));o+=t.key+"-"+u.name;var a={};for(var l in e)ur.call(e,l)&&l!=="css"&&l!==lr&&(a[l]=e[l]);return a.className=o,n&&(a.ref=n),M.createElement(M.Fragment,null,M.createElement(bm,{cache:t,serialized:u,isStringTag:typeof i=="string"}),M.createElement(i,a))}),ym=vm,T=function(t,n){var r=arguments;if(n==null||!ur.call(n,"css"))return M.createElement.apply(void 0,r);var i=r.length,s=new Array(i);s[0]=ym,s[1]=gm(t,n);for(var o=2;o<i;o++)s[o]=r[o];return M.createElement.apply(null,s)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(T||(T={}));function cr(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Ka(t)}function Im(){var e=cr.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}function Cm(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}const xm=Math.min,Am=Math.max,En=Math.round,Pn=Math.floor,Vn=e=>({x:e,y:e});function Sm(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function Tn(){return typeof window<"u"}function eu(e){return nu(e)?(e.nodeName||"").toLowerCase():"#document"}function Oe(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function tu(e){var t;return(t=(nu(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function nu(e){return Tn()?e instanceof Node||e instanceof Oe(e).Node:!1}function Em(e){return Tn()?e instanceof Element||e instanceof Oe(e).Element:!1}function dr(e){return Tn()?e instanceof HTMLElement||e instanceof Oe(e).HTMLElement:!1}function iu(e){return!Tn()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Oe(e).ShadowRoot}function ru(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=fr(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function Pm(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Vm(e){return["html","body","#document"].includes(eu(e))}function fr(e){return Oe(e).getComputedStyle(e)}function Tm(e){if(eu(e)==="html")return e;const t=e.assignedSlot||e.parentNode||iu(e)&&e.host||tu(e);return iu(t)?t.host:t}function su(e){const t=Tm(e);return Vm(t)?e.ownerDocument?e.ownerDocument.body:e.body:dr(t)&&ru(t)?t:su(t)}function wn(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=su(e),s=i===((r=e.ownerDocument)==null?void 0:r.body),o=Oe(i);if(s){const u=hr(o);return t.concat(o,o.visualViewport||[],ru(i)?i:[],u&&n?wn(u):[])}return t.concat(i,wn(i,[],n))}function hr(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function wm(e){const t=fr(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=dr(e),s=i?e.offsetWidth:n,o=i?e.offsetHeight:r,u=En(n)!==s||En(r)!==o;return u&&(n=s,r=o),{width:n,height:r,$:u}}function pr(e){return Em(e)?e:e.contextElement}function ou(e){const t=pr(e);if(!dr(t))return Vn(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:s}=wm(t);let o=(s?En(n.width):n.width)/r,u=(s?En(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!u||!Number.isFinite(u))&&(u=1),{x:o,y:u}}const Gm=Vn(0);function Bm(e){const t=Oe(e);return!Pm()||!t.visualViewport?Gm:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Mm(e,t,n){return!1}function au(e,t,n,r){t===void 0&&(t=!1);const i=e.getBoundingClientRect(),s=pr(e);let o=Vn(1);t&&(o=ou(e));const u=Mm()?Bm(s):Vn(0);let a=(i.left+u.x)/o.x,l=(i.top+u.y)/o.y,c=i.width/o.x,d=i.height/o.y;if(s){const f=Oe(s),h=r;let g=f,m=hr(g);for(;m&&r&&h!==g;){const p=ou(m),b=m.getBoundingClientRect(),C=fr(m),I=b.left+(m.clientLeft+parseFloat(C.paddingLeft))*p.x,x=b.top+(m.clientTop+parseFloat(C.paddingTop))*p.y;a*=p.x,l*=p.y,c*=p.x,d*=p.y,a+=I,l+=x,g=Oe(m),m=hr(g)}}return Sm({width:c,height:d,x:a,y:l})}function uu(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Fm(e,t){let n=null,r;const i=tu(e);function s(){var u;clearTimeout(r),(u=n)==null||u.disconnect(),n=null}function o(u,a){u===void 0&&(u=!1),a===void 0&&(a=1),s();const l=e.getBoundingClientRect(),{left:c,top:d,width:f,height:h}=l;if(u||t(),!f||!h)return;const g=Pn(d),m=Pn(i.clientWidth-(c+f)),p=Pn(i.clientHeight-(d+h)),b=Pn(c),I={rootMargin:-g+"px "+-m+"px "+-p+"px "+-b+"px",threshold:Am(0,xm(1,a))||1};let x=!0;function v(A){const S=A[0].intersectionRatio;if(S!==a){if(!x)return o();S?o(!1,S):r=setTimeout(()=>{o(!1,1e-7)},1e3)}S===1&&!uu(l,e.getBoundingClientRect())&&o(),x=!1}try{n=new IntersectionObserver(v,{...I,root:i.ownerDocument})}catch{n=new IntersectionObserver(v,I)}n.observe(e)}return o(!0),s}function Dm(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:u=typeof IntersectionObserver=="function",animationFrame:a=!1}=r,l=pr(e),c=i||s?[...l?wn(l):[],...wn(t)]:[];c.forEach(b=>{i&&b.addEventListener("scroll",n,{passive:!0}),s&&b.addEventListener("resize",n)});const d=l&&u?Fm(l,n):null;let f=-1,h=null;o&&(h=new ResizeObserver(b=>{let[C]=b;C&&C.target===l&&h&&(h.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var I;(I=h)==null||I.observe(t)})),n()}),l&&!a&&h.observe(l),h.observe(t));let g,m=a?au(e):null;a&&p();function p(){const b=au(e);m&&!uu(m,b)&&n(),m=b,g=requestAnimationFrame(p)}return n(),()=>{var b;c.forEach(C=>{i&&C.removeEventListener("scroll",n),s&&C.removeEventListener("resize",n)}),d==null||d(),(b=h)==null||b.disconnect(),h=null,a&&cancelAnimationFrame(g)}}var mr=y.useLayoutEffect,Rm=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],Gn=function(){};function Om(e,t){return t?t[0]==="-"?e+t:e+"__"+t:e}function Nm(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];var s=[].concat(r);if(t&&e)for(var o in t)t.hasOwnProperty(o)&&t[o]&&s.push("".concat(Om(e,o)));return s.filter(function(u){return u}).map(function(u){return String(u).trim()}).join(" ")}var lu=function(t){return jm(t)?t.filter(Boolean):Qe(t)==="object"&&t!==null?[t]:[]},cu=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=Re(t,Rm);return w({},n)},Y=function(t,n,r){var i=t.cx,s=t.getStyles,o=t.getClassNames,u=t.className;return{css:s(n,t),className:i(r??{},o(n,t),u)}};function Bn(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function Lm(e){return Bn(e)?window.innerHeight:e.clientHeight}function du(e){return Bn(e)?window.pageYOffset:e.scrollTop}function Mn(e,t){if(Bn(e)){window.scrollTo(0,t);return}e.scrollTop=t}function Xm(e){var t=getComputedStyle(e),n=t.position==="absolute",r=/(auto|scroll)/;if(t.position==="fixed")return document.documentElement;for(var i=e;i=i.parentElement;)if(t=getComputedStyle(i),!(n&&t.position==="static")&&r.test(t.overflow+t.overflowY+t.overflowX))return i;return document.documentElement}function Wm(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}function Fn(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Gn,i=du(e),s=t-i,o=10,u=0;function a(){u+=o;var l=Wm(u,i,s,n);Mn(e,l),u<n?window.requestAnimationFrame(a):r(e)}a()}function fu(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),i=t.offsetHeight/3;r.bottom+i>n.bottom?Mn(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+i,e.scrollHeight)):r.top-i<n.top&&Mn(e,Math.max(t.offsetTop-i,0))}function Zm(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 hu(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function Hm(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var pu=!1,zm={get passive(){return pu=!0}},Dn=typeof window<"u"?window:{};Dn.addEventListener&&Dn.removeEventListener&&(Dn.addEventListener("p",Gn,zm),Dn.removeEventListener("p",Gn,!1));var km=pu;function Ym(e){return e!=null}function jm(e){return Array.isArray(e)}function Rn(e,t,n){return e?t:n}function S0(e){return e}function E0(e){return e}var Jm=function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];var s=Object.entries(t).filter(function(o){var u=De(o,1),a=u[0];return!r.includes(a)});return s.reduce(function(o,u){var a=De(u,2),l=a[0],c=a[1];return o[l]=c,o},{})},Um=["children","innerProps"],_m=["children","innerProps"];function $m(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,i=e.placement,s=e.shouldScroll,o=e.isFixedPosition,u=e.controlHeight,a=Xm(n),l={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return l;var c=a.getBoundingClientRect(),d=c.height,f=n.getBoundingClientRect(),h=f.bottom,g=f.height,m=f.top,p=n.offsetParent.getBoundingClientRect(),b=p.top,C=o?window.innerHeight:Lm(a),I=du(a),x=parseInt(getComputedStyle(n).marginBottom,10),v=parseInt(getComputedStyle(n).marginTop,10),A=b-v,S=C-m,P=A+I,F=d-I-m,O=h-C+I+x,k=I+m-v,U=160;switch(i){case"auto":case"bottom":if(S>=g)return{placement:"bottom",maxHeight:t};if(F>=g&&!o)return s&&Fn(a,O,U),{placement:"bottom",maxHeight:t};if(!o&&F>=r||o&&S>=r){s&&Fn(a,O,U);var pe=o?S-x:F-x;return{placement:"bottom",maxHeight:pe}}if(i==="auto"||o){var ue=t,_=o?A:P;return _>=r&&(ue=Math.min(_-x-u,t)),{placement:"top",maxHeight:ue}}if(i==="bottom")return s&&Mn(a,O),{placement:"bottom",maxHeight:t};break;case"top":if(A>=g)return{placement:"top",maxHeight:t};if(P>=g&&!o)return s&&Fn(a,k,U),{placement:"top",maxHeight:t};if(!o&&P>=r||o&&A>=r){var j=t;return(!o&&P>=r||o&&A>=r)&&(j=o?A-v:P-v),s&&Fn(a,k,U),{placement:"top",maxHeight:j}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(i,'".'))}return l}function Qm(e){var t={bottom:"top",top:"bottom"};return e?t[e]:"bottom"}var mu=function(t){return t==="auto"?"bottom":t},Km=function(t,n){var r,i=t.placement,s=t.theme,o=s.borderRadius,u=s.spacing,a=s.colors;return w((r={label:"menu"},Ot(r,Qm(i),"100%"),Ot(r,"position","absolute"),Ot(r,"width","100%"),Ot(r,"zIndex",1),r),n?{}:{backgroundColor:a.neutral0,borderRadius:o,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})},gu=y.createContext(null),qm=function(t){var n=t.children,r=t.minMenuHeight,i=t.maxMenuHeight,s=t.menuPlacement,o=t.menuPosition,u=t.menuShouldScrollIntoView,a=t.theme,l=y.useContext(gu)||{},c=l.setPortalPlacement,d=y.useRef(null),f=y.useState(i),h=De(f,2),g=h[0],m=h[1],p=y.useState(null),b=De(p,2),C=b[0],I=b[1],x=a.spacing.controlHeight;return mr(function(){var v=d.current;if(v){var A=o==="fixed",S=u&&!A,P=$m({maxHeight:i,menuEl:v,minHeight:r,placement:s,shouldScroll:S,isFixedPosition:A,controlHeight:x});m(P.maxHeight),I(P.placement),c==null||c(P.placement)}},[i,s,o,u,r,c,x]),n({ref:d,placerProps:w(w({},t),{},{placement:C||mu(s),maxHeight:g})})},eg=function(t){var n=t.children,r=t.innerRef,i=t.innerProps;return T("div",B({},Y(t,"menu",{menu:!0}),{ref:r},i),n)},tg=eg,ng=function(t,n){var r=t.maxHeight,i=t.theme.spacing.baseUnit;return w({maxHeight:r,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},n?{}:{paddingBottom:i,paddingTop:i})},ig=function(t){var n=t.children,r=t.innerProps,i=t.innerRef,s=t.isMulti;return T("div",B({},Y(t,"menuList",{"menu-list":!0,"menu-list--is-multi":s}),{ref:i},r),n)},bu=function(t,n){var r=t.theme,i=r.spacing.baseUnit,s=r.colors;return w({textAlign:"center"},n?{}:{color:s.neutral40,padding:"".concat(i*2,"px ").concat(i*3,"px")})},rg=bu,sg=bu,og=function(t){var n=t.children,r=n===void 0?"No options":n,i=t.innerProps,s=Re(t,Um);return T("div",B({},Y(w(w({},s),{},{children:r,innerProps:i}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),i),r)},ag=function(t){var n=t.children,r=n===void 0?"Loading...":n,i=t.innerProps,s=Re(t,_m);return T("div",B({},Y(w(w({},s),{},{children:r,innerProps:i}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),i),r)},ug=function(t){var n=t.rect,r=t.offset,i=t.position;return{left:n.left,position:i,top:r,width:n.width,zIndex:1}},lg=function(t){var n=t.appendTo,r=t.children,i=t.controlElement,s=t.innerProps,o=t.menuPlacement,u=t.menuPosition,a=y.useRef(null),l=y.useRef(null),c=y.useState(mu(o)),d=De(c,2),f=d[0],h=d[1],g=y.useMemo(function(){return{setPortalPlacement:h}},[]),m=y.useState(null),p=De(m,2),b=p[0],C=p[1],I=y.useCallback(function(){if(i){var S=Zm(i),P=u==="fixed"?0:window.pageYOffset,F=S[f]+P;(F!==(b==null?void 0:b.offset)||S.left!==(b==null?void 0:b.rect.left)||S.width!==(b==null?void 0:b.rect.width))&&C({offset:F,rect:S})}},[i,u,f,b==null?void 0:b.offset,b==null?void 0:b.rect.left,b==null?void 0:b.rect.width]);mr(function(){I()},[I]);var x=y.useCallback(function(){typeof l.current=="function"&&(l.current(),l.current=null),i&&a.current&&(l.current=Dm(i,a.current,I,{elementResize:"ResizeObserver"in window}))},[i,I]);mr(function(){x()},[x]);var v=y.useCallback(function(S){a.current=S,x()},[x]);if(!n&&u!=="fixed"||!b)return null;var A=T("div",B({ref:v},Y(w(w({},t),{},{offset:b.offset,position:u,rect:b.rect}),"menuPortal",{"menu-portal":!0}),s),r);return T(gu.Provider,{value:g},n?Ne.createPortal(A,n):A)},cg=function(t){var n=t.isDisabled,r=t.isRtl;return{label:"container",direction:r?"rtl":void 0,pointerEvents:n?"none":void 0,position:"relative"}},dg=function(t){var n=t.children,r=t.innerProps,i=t.isDisabled,s=t.isRtl;return T("div",B({},Y(t,"container",{"--is-disabled":i,"--is-rtl":s}),r),n)},fg=function(t,n){var r=t.theme.spacing,i=t.isMulti,s=t.hasValue,o=t.selectProps.controlShouldRenderValue;return w({alignItems:"center",display:i&&s&&o?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},n?{}:{padding:"".concat(r.baseUnit/2,"px ").concat(r.baseUnit*2,"px")})},hg=function(t){var n=t.children,r=t.innerProps,i=t.isMulti,s=t.hasValue;return T("div",B({},Y(t,"valueContainer",{"value-container":!0,"value-container--is-multi":i,"value-container--has-value":s}),r),n)},pg=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},mg=function(t){var n=t.children,r=t.innerProps;return T("div",B({},Y(t,"indicatorsContainer",{indicators:!0}),r),n)},vu,gg=["size"],bg=["innerProps","isRtl","size"];function vg(){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 yg=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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLFxufSBmcm9tICcuLi90eXBlcyc7XG5pbXBvcnQgeyBnZXRTdHlsZVByb3BzIH0gZnJvbSAnLi4vdXRpbHMnO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgSWNvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBTdmcgPSAoe1xu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pY2F0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oe1xuICBpbm5lclByb3BzLFxuICBpc1J0bCxcbiAgc2l6ZSA9IDQsXG4gIC4uLnJlc3RQcm9wc1xufTogTG9hZGluZ0luZGljYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+KSA9PiB7XG4gIHJldHVybiAoXG4gICAgPGRpdlxuICAgICAgey4uLmdldFN0eWxlUHJvcHMoXG4gICAgICAgIHsgLi4ucmVzdFByb3BzLCBpbm5lclByb3BzLCBpc1J0bCwgc2l6ZSB9LFxuICAgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */",toString:vg},yu=function(t){var n=t.size,r=Re(t,gg);return T("svg",B({height:n,width:n,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:yg},r))},gr=function(t){return T(yu,B({size:20},t),T("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"}))},Iu=function(t){return T(yu,B({size:20},t),T("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"}))},Cu=function(t,n){var r=t.isFocused,i=t.theme,s=i.spacing.baseUnit,o=i.colors;return w({label:"indicatorContainer",display:"flex",transition:"color 150ms"},n?{}:{color:r?o.neutral60:o.neutral20,padding:s*2,":hover":{color:r?o.neutral80:o.neutral40}})},Ig=Cu,Cg=function(t){var n=t.children,r=t.innerProps;return T("div",B({},Y(t,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),r),n||T(Iu,null))},xg=Cu,Ag=function(t){var n=t.children,r=t.innerProps;return T("div",B({},Y(t,"clearIndicator",{indicator:!0,"clear-indicator":!0}),r),n||T(gr,null))},Sg=function(t,n){var r=t.isDisabled,i=t.theme,s=i.spacing.baseUnit,o=i.colors;return w({label:"indicatorSeparator",alignSelf:"stretch",width:1},n?{}:{backgroundColor:r?o.neutral10:o.neutral20,marginBottom:s*2,marginTop:s*2})},Eg=function(t){var n=t.innerProps;return T("span",B({},n,Y(t,"indicatorSeparator",{"indicator-separator":!0})))},Pg=Im(vu||(vu=Cm([`
|
|
30
30
|
0%, 80%, 100% { opacity: 0; }
|
|
31
31
|
40% { opacity: 1; }
|
|
32
|
-
`]))),Vg=function(t,n){var i=t.isFocused,r=t.size,s=t.theme,o=s.colors,u=s.spacing.baseUnit;return w({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:r,lineHeight:1,marginRight:r,textAlign:"center",verticalAlign:"middle"},n?{}:{color:i?o.neutral60:o.neutral20,padding:u*2})},br=function(t){var n=t.delay,i=t.offset;return T("span",{css:cr({animation:"".concat(Pg," 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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW1RSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLFxufSBmcm9tICcuLi90eXBlcyc7XG5pbXBvcnQgeyBnZXRTdHlsZVByb3BzIH0gZnJvbSAnLi4vdXRpbHMnO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgSWNvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBTdmcgPSAoe1xuICBzaXplLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZTogbnVtYmVyIH0pID0+IChcbiAgPHN2Z1xuICAgIGhlaWdodD17c2l6ZX1cbiAgICB3aWR0aD17c2l6ZX1cbi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6ZSA9IDQsXG4gIC4uLnJlc3RQcm9wc1xufTogTG9hZGluZ0luZGljYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+KSA9PiB7XG4gIHJldHVybiAoXG4gICAgPGRpdlxuICAgICAgey4uLmdldFN0eWxlUHJvcHMoXG4gICAgICAgIHsgLi4ucmVzdFByb3BzLCBpbm5lclByb3BzLCBpc1J0bCwgc2l6ZSB9LFxuICAgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */")})},Tg=function(t){var n=t.innerProps,i=t.isRtl,r=t.size,s=r===void 0?4:r,o=Re(t,bg);return T("div",B({},Y(w(w({},o),{},{innerProps:n,isRtl:i,size:s}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),n),T(br,{delay:0,offset:i}),T(br,{delay:160,offset:!0}),T(br,{delay:320,offset:!i}))},wg=function(t,n){var i=t.isDisabled,r=t.isFocused,s=t.theme,o=s.colors,u=s.borderRadius,a=s.spacing;return w({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?o.neutral5:o.neutral0,borderColor:i?o.neutral10:r?o.primary:o.neutral20,borderRadius:u,borderStyle:"solid",borderWidth:1,boxShadow:r?"0 0 0 1px ".concat(o.primary):void 0,"&:hover":{borderColor:r?o.primary:o.neutral30}})},Gg=function(t){var n=t.children,i=t.isDisabled,r=t.isFocused,s=t.innerRef,o=t.innerProps,u=t.menuIsOpen;return T("div",B({ref:s},Y(t,"control",{control:!0,"control--is-disabled":i,"control--is-focused":r,"control--menu-is-open":u}),o,{"aria-disabled":i||void 0}),n)},Bg=Gg,Fg=["data"],Mg=function(t,n){var i=t.theme.spacing;return n?{}:{paddingBottom:i.baseUnit*2,paddingTop:i.baseUnit*2}},Dg=function(t){var n=t.children,i=t.cx,r=t.getStyles,s=t.getClassNames,o=t.Heading,u=t.headingProps,a=t.innerProps,l=t.label,c=t.theme,d=t.selectProps;return T("div",B({},Y(t,"group",{group:!0}),a),T(o,B({},u,{selectProps:d,theme:c,getStyles:r,getClassNames:s,cx:i}),l),T("div",null,n))},Rg=function(t,n){var i=t.theme,r=i.colors,s=i.spacing;return w({label:"group",cursor:"default",display:"block"},n?{}:{color:r.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:s.baseUnit*3,paddingRight:s.baseUnit*3,textTransform:"uppercase"})},Og=function(t){var n=cu(t);n.data;var i=Re(n,Fg);return T("div",B({},Y(t,"groupHeading",{"group-heading":!0}),i))},Ng=Dg,Lg=["innerRef","isDisabled","isHidden","inputClassName"],Xg=function(t,n){var i=t.isDisabled,r=t.value,s=t.theme,o=s.spacing,u=s.colors;return w(w({visibility:i?"hidden":"visible",transform:r?"translateZ(0)":""},Wg),n?{}:{margin:o.baseUnit/2,paddingBottom:o.baseUnit/2,paddingTop:o.baseUnit/2,color:u.neutral80})},xu={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},Wg={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":w({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},xu)},Zg=function(t){return w({label:"input",color:"inherit",background:0,opacity:t?0:1,width:"100%"},xu)},Hg=function(t){var n=t.cx,i=t.value,r=cu(t),s=r.innerRef,o=r.isDisabled,u=r.isHidden,a=r.inputClassName,l=Re(r,Lg);return T("div",B({},Y(t,"input",{"input-container":!0}),{"data-value":i||""}),T("input",B({className:n({input:!0},a),ref:s,style:Zg(u),disabled:o},l)))},zg=Hg,kg=function(t,n){var i=t.theme,r=i.spacing,s=i.borderRadius,o=i.colors;return w({label:"multiValue",display:"flex",minWidth:0},n?{}:{backgroundColor:o.neutral10,borderRadius:s/2,margin:r.baseUnit/2})},Yg=function(t,n){var i=t.theme,r=i.borderRadius,s=i.colors,o=t.cropWithEllipsis;return w({overflow:"hidden",textOverflow:o||o===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},n?{}:{borderRadius:r/2,color:s.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},jg=function(t,n){var i=t.theme,r=i.spacing,s=i.borderRadius,o=i.colors,u=t.isFocused;return w({alignItems:"center",display:"flex"},n?{}:{borderRadius:s/2,backgroundColor:u?o.dangerLight:void 0,paddingLeft:r.baseUnit,paddingRight:r.baseUnit,":hover":{backgroundColor:o.dangerLight,color:o.danger}})},Au=function(t){var n=t.children,i=t.innerProps;return T("div",i,n)},Jg=Au,Ug=Au;function _g(e){var t=e.children,n=e.innerProps;return T("div",B({role:"button"},n),t||T(gr,{size:14}))}var $g=function(t){var n=t.children,i=t.components,r=t.data,s=t.innerProps,o=t.isDisabled,u=t.removeProps,a=t.selectProps,l=i.Container,c=i.Label,d=i.Remove;return T(l,{data:r,innerProps:w(w({},Y(t,"multiValue",{"multi-value":!0,"multi-value--is-disabled":o})),s),selectProps:a},T(c,{data:r,innerProps:w({},Y(t,"multiValueLabel",{"multi-value__label":!0})),selectProps:a},n),T(d,{data:r,innerProps:w(w({},Y(t,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(n||"option")},u),selectProps:a}))},Qg=$g,Kg=function(t,n){var i=t.isDisabled,r=t.isFocused,s=t.isSelected,o=t.theme,u=o.spacing,a=o.colors;return w({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},n?{}:{backgroundColor:s?a.primary:r?a.primary25:"transparent",color:i?a.neutral20:s?a.neutral0:"inherit",padding:"".concat(u.baseUnit*2,"px ").concat(u.baseUnit*3,"px"),":active":{backgroundColor:i?void 0:s?a.primary:a.primary50}})},qg=function(t){var n=t.children,i=t.isDisabled,r=t.isFocused,s=t.isSelected,o=t.innerRef,u=t.innerProps;return T("div",B({},Y(t,"option",{option:!0,"option--is-disabled":i,"option--is-focused":r,"option--is-selected":s}),{ref:o,"aria-disabled":i},u),n)},eb=qg,tb=function(t,n){var i=t.theme,r=i.spacing,s=i.colors;return w({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},n?{}:{color:s.neutral50,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},nb=function(t){var n=t.children,i=t.innerProps;return T("div",B({},Y(t,"placeholder",{placeholder:!0}),i),n)},ib=nb,rb=function(t,n){var i=t.isDisabled,r=t.theme,s=r.spacing,o=r.colors;return w({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},n?{}:{color:i?o.neutral40:o.neutral80,marginLeft:s.baseUnit/2,marginRight:s.baseUnit/2})},sb=function(t){var n=t.children,i=t.isDisabled,r=t.innerProps;return T("div",B({},Y(t,"singleValue",{"single-value":!0,"single-value--is-disabled":i}),r),n)},ob=sb,ab={ClearIndicator:Ag,Control:Bg,DropdownIndicator:Cg,DownChevron:Iu,CrossIcon:gr,Group:Ng,GroupHeading:Og,IndicatorsContainer:mg,IndicatorSeparator:Eg,Input:zg,LoadingIndicator:Tg,Menu:tg,MenuList:ig,MenuPortal:lg,LoadingMessage:ag,NoOptionsMessage:og,MultiValue:Qg,MultiValueContainer:Jg,MultiValueLabel:Ug,MultiValueRemove:_g,Option:eb,Placeholder:ib,SelectContainer:dg,SingleValue:ob,ValueContainer:hg},ub=function(t){return w(w({},ab),t.components)},Su=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function lb(e,t){return!!(e===t||Su(e)&&Su(t))}function cb(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!lb(e[n],t[n]))return!1;return!0}function db(e,t){t===void 0&&(t=cb);var n=null;function i(){for(var r=[],s=0;s<arguments.length;s++)r[s]=arguments[s];if(n&&n.lastThis===this&&t(r,n.lastArgs))return n.lastResult;var o=e.apply(this,r);return n={lastResult:o,lastArgs:r,lastThis:this},o}return i.clear=function(){n=null},i}function fb(){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 hb=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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkExMXlUZXh0LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFPSSIsImZpbGUiOiJBMTF5VGV4dC50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKiogQGpzeCBqc3ggKi9cbmltcG9ydCB7IEpTWCB9IGZyb20gJ3JlYWN0JztcbmltcG9ydCB7IGpzeCB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuLy8gQXNzaXN0aXZlIHRleHQgdG8gZGVzY3JpYmUgdmlzdWFsIGVsZW1lbnRzLiBIaWRkZW4gZm9yIHNpZ2h0ZWQgdXNlcnMuXG5jb25zdCBBMTF5VGV4dCA9IChwcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ10pID0+IChcbiAgPHNwYW5cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAnYTExeVRleHQnLFxuICAgICAgekluZGV4OiA5OTk5LFxuICAgICAgYm9yZGVyOiAwLFxuICAgICAgY2xpcDogJ3JlY3QoMXB4LCAxcHgsIDFweCwgMXB4KScsXG4gICAgICBoZWlnaHQ6IDEsXG4gICAgICB3aWR0aDogMSxcbiAgICAgIHBvc2l0aW9uOiAnYWJzb2x1dGUnLFxuICAgICAgb3ZlcmZsb3c6ICdoaWRkZW4nLFxuICAgICAgcGFkZGluZzogMCxcbiAgICAgIHdoaXRlU3BhY2U6ICdub3dyYXAnLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IGRlZmF1bHQgQTExeVRleHQ7XG4iXX0= */",toString:fb},pb=function(t){return T("span",B({css:hb},t))},Eu=pb,mb={guidance:function(t){var n=t.isSearchable,i=t.isMulti,r=t.tabSelectsValue,s=t.context,o=t.isInitialFocus;switch(s){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 o?"".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,s=t.labels,o=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(s.length>1?"s":""," ").concat(s.join(","),", selected.");case"select-option":return o?"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,s=t.label,o=s===void 0?"":s,u=t.selectValue,a=t.isDisabled,l=t.isSelected,c=t.isAppleDevice,d=function(m,p){return m&&m.length?"".concat(m.indexOf(p)+1," of ").concat(m.length):""};if(n==="value"&&u)return"value ".concat(o," focused, ").concat(d(u,i),".");if(n==="menu"&&c){var f=a?" disabled":"",h="".concat(l?" selected":"").concat(f);return"".concat(o).concat(h,", ").concat(d(r,i),".")}return""},onFilter:function(t){var n=t.inputValue,i=t.resultsMessage;return"".concat(i).concat(n?" for search term "+n:"",".")}},gb=function(t){var n=t.ariaSelection,i=t.focusedOption,r=t.focusedValue,s=t.focusableOptions,o=t.isFocused,u=t.selectValue,a=t.selectProps,l=t.id,c=t.isAppleDevice,d=a.ariaLiveMessages,f=a.getOptionLabel,h=a.inputValue,g=a.isMulti,m=a.isOptionDisabled,p=a.isSearchable,b=a.menuIsOpen,C=a.options,I=a.screenReaderStatus,x=a.tabSelectsValue,v=a.isLoading,A=a["aria-label"],S=a["aria-live"],E=y.useMemo(function(){return w(w({},mb),d||{})},[d]),M=y.useMemo(function(){var _="";if(n&&E.onChange){var j=n.option,X=n.options,Z=n.removedValue,le=n.removedValues,re=n.value,gt=function(xe){return Array.isArray(xe)?null:xe},$=Z||j||gt(re),se=$?f($):"",Ce=X||le||void 0,Ge=Ce?Ce.map(f):[],pe=w({isDisabled:$&&m($,u),label:se,labels:Ge},n);_=E.onChange(pe)}return _},[n,E,m,u,f]),O=y.useMemo(function(){var _="",j=i||r,X=!!(i&&u&&u.includes(i));if(j&&E.onFocus){var Z={focused:j,label:f(j),isDisabled:m(j,u),isSelected:X,options:s,context:j===i?"menu":"value",selectValue:u,isAppleDevice:c};_=E.onFocus(Z)}return _},[i,r,f,m,E,s,u,c]),k=y.useMemo(function(){var _="";if(b&&C.length&&!v&&E.onFilter){var j=I({count:s.length});_=E.onFilter({inputValue:h,resultsMessage:j})}return _},[s,h,b,E,C,I,v]),U=(n==null?void 0:n.action)==="initial-input-focus",he=y.useMemo(function(){var _="";if(E.guidance){var j=r?"value":b?"menu":"input";_=E.guidance({"aria-label":A,context:j,isDisabled:i&&m(i,u),isMulti:g,isSearchable:p,tabSelectsValue:x,isInitialFocus:U})}return _},[A,i,r,g,m,p,b,E,u,x,U]),ue=T(y.Fragment,null,T("span",{id:"aria-selection"},M),T("span",{id:"aria-focused"},O),T("span",{id:"aria-results"},k),T("span",{id:"aria-guidance"},he));return T(y.Fragment,null,T(Eu,{id:l},U&&ue),T(Eu,{"aria-live":S,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},o&&!U&&ue))},bb=gb,vr=[{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źẑżžẓẕƶȥɀⱬꝣ"}],vb=new RegExp("["+vr.map(function(e){return e.letters}).join("")+"]","g"),Pu={},yr=0;yr<vr.length;yr++)for(var Ir=vr[yr],Cr=0;Cr<Ir.letters.length;Cr++)Pu[Ir.letters[Cr]]=Ir.base;var Vu=function(t){return t.replace(vb,function(n){return Pu[n]})},yb=db(Vu),Tu=function(t){return t.replace(/^\s+|\s+$/g,"")},Ib=function(t){return"".concat(t.label," ").concat(t.value)},Cb=function(t){return function(n,i){if(n.data.__isNew__)return!0;var r=w({ignoreCase:!0,ignoreAccents:!0,stringify:Ib,trim:!0,matchFrom:"any"},t),s=r.ignoreCase,o=r.ignoreAccents,u=r.stringify,a=r.trim,l=r.matchFrom,c=a?Tu(i):i,d=a?Tu(u(n)):u(n);return s&&(c=c.toLowerCase(),d=d.toLowerCase()),o&&(c=yb(c),d=Vu(d)),l==="start"?d.substr(0,c.length)===c:d.indexOf(c)>-1}},xb=["innerRef"];function Ab(e){var t=e.innerRef,n=Re(e,xb),i=Jm(n,"onExited","in","enter","exit","appear");return T("input",B({ref:t},i,{css:cr({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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkR1bW15SW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCTSIsImZpbGUiOiJEdW1teUlucHV0LnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWYgfSBmcm9tICdyZWFjdCc7XG5pbXBvcn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ydGFudCEgd2l0aG91dCBgd2lkdGhgIGJyb3dzZXJzIHdvbid0IGFsbG93IGZvY3VzXG4gICAgICAgIHdpZHRoOiAxLFxuXG4gICAgICAgIC8vIHJlbW92ZSBjdXJzb3Igb24gZGVza3RvcFxuICAgICAgICBjb2xvcjogJ3RyYW5zcGFyZW50JyxcblxuICAgICAgICAvLyByZW1vdmUgY3Vyc29yIG9uIG1vYmlsZSB3aGlsc3QgbWFpbnRhaW5pbmcgXCJzY3JvbGwgaW50byB2aWV3XCIgYmVoYXZpb3VyXG4gICAgICAgIGxlZnQ6IC0xMDAsXG4gICAgICAgIG9wYWNpdHk6IDAsXG4gICAgICAgIHBvc2l0aW9uOiAncmVsYXRpdmUnLFxuICAgICAgICB0cmFuc2Zvcm06ICdzY2FsZSguMDEpJyxcbiAgICAgIH19XG4gICAgLz5cbiAgKTtcbn1cbiJdfQ== */")}))}var Sb=function(t){t.cancelable&&t.preventDefault(),t.stopPropagation()};function Eb(e){var t=e.isEnabled,n=e.onBottomArrive,i=e.onBottomLeave,r=e.onTopArrive,s=e.onTopLeave,o=y.useRef(!1),u=y.useRef(!1),a=y.useRef(0),l=y.useRef(null),c=y.useCallback(function(p,b){if(l.current!==null){var C=l.current,I=C.scrollTop,x=C.scrollHeight,v=C.clientHeight,A=l.current,S=b>0,E=x-v-I,M=!1;E>b&&o.current&&(i&&i(p),o.current=!1),S&&u.current&&(s&&s(p),u.current=!1),S&&b>E?(n&&!o.current&&n(p),A.scrollTop=x,M=!0,o.current=!0):!S&&-b>I&&(r&&!u.current&&r(p),A.scrollTop=0,M=!0,u.current=!0),M&&Sb(p)}},[n,i,r,s]),d=y.useCallback(function(p){c(p,p.deltaY)},[c]),f=y.useCallback(function(p){a.current=p.changedTouches[0].clientY},[]),h=y.useCallback(function(p){var b=a.current-p.changedTouches[0].clientY;c(p,b)},[c]),g=y.useCallback(function(p){if(p){var b=km?{passive:!1}:!1;p.addEventListener("wheel",d,b),p.addEventListener("touchstart",f,b),p.addEventListener("touchmove",h,b)}},[h,f,d]),m=y.useCallback(function(p){p&&(p.removeEventListener("wheel",d,!1),p.removeEventListener("touchstart",f,!1),p.removeEventListener("touchmove",h,!1))},[h,f,d]);return y.useEffect(function(){if(t){var p=l.current;return g(p),function(){m(p)}}},[t,g,m]),function(p){l.current=p}}var wu=["boxSizing","height","overflow","paddingRight","position"],Gu={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function Bu(e){e.cancelable&&e.preventDefault()}function Fu(e){e.stopPropagation()}function Mu(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;e===0?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function Du(){return"ontouchstart"in window||navigator.maxTouchPoints}var Ru=!!(typeof window<"u"&&window.document&&window.document.createElement),Ht=0,pt={capture:!1,passive:!1};function Pb(e){var t=e.isEnabled,n=e.accountForScrollbars,i=n===void 0?!0:n,r=y.useRef({}),s=y.useRef(null),o=y.useCallback(function(a){if(Ru){var l=document.body,c=l&&l.style;if(i&&wu.forEach(function(g){var m=c&&c[g];r.current[g]=m}),i&&Ht<1){var d=parseInt(r.current.paddingRight,10)||0,f=document.body?document.body.clientWidth:0,h=window.innerWidth-f+d||0;Object.keys(Gu).forEach(function(g){var m=Gu[g];c&&(c[g]=m)}),c&&(c.paddingRight="".concat(h,"px"))}l&&Du()&&(l.addEventListener("touchmove",Bu,pt),a&&(a.addEventListener("touchstart",Mu,pt),a.addEventListener("touchmove",Fu,pt))),Ht+=1}},[i]),u=y.useCallback(function(a){if(Ru){var l=document.body,c=l&&l.style;Ht=Math.max(Ht-1,0),i&&Ht<1&&wu.forEach(function(d){var f=r.current[d];c&&(c[d]=f)}),l&&Du()&&(l.removeEventListener("touchmove",Bu,pt),a&&(a.removeEventListener("touchstart",Mu,pt),a.removeEventListener("touchmove",Fu,pt)))}},[i]);return y.useEffect(function(){if(t){var a=s.current;return o(a),function(){u(a)}}},[t,o,u]),function(a){s.current=a}}function Vb(){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 Tb=function(t){var n=t.target;return n.ownerDocument.activeElement&&n.ownerDocument.activeElement.blur()},wb=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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNjcm9sbE1hbmFnZXIudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW9EVSIsImZpbGUiOiJTY3JvbGxNYW5hZ2VyLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgRnJhZ21lbnQsIFJlYWN0RWxlbWVudCwgUmVmQ2FsbGJhY2ssIE1vdXNlRXZlbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgdXNlU2Nyb2xsQ2FwdHVyZSBmcm9tICcuL3VzZVNjcm9sbENhcHR1cmUnO1xuaW1wb3J0IHVzZVNjcm9sbExvY2sgZnJvbSAnLi91c2VTY3JvbGxMb2NrJztcblxuaW50ZXJmYWNlIFByb3BzIHtcbiAgcmVhZG9ubHkgY2hpbGRyZW46IChyZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PikgPT4gUmVhY3RFbGVtZW50O1xuICByZWFkb25seSBsb2NrRW5hYmxlZDogYm9vbGVhbjtcbiAgcmVhZG9ubHkgY2FwdHVyZUVuYWJsZWQ6IGJvb2xlYW47XG4gIHJlYWRvbmx5IG9uQm90dG9tQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9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jcm9sbExvY2tUYXJnZXQgPSB1c2VTY3JvbGxMb2NrKHsgaXNFbmFibGVkOiBsb2NrRW5hYmxlZCB9KTtcblxuICBjb25zdCB0YXJnZXRSZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PiA9IChlbGVtZW50KSA9PiB7XG4gICAgc2V0U2Nyb2xsQ2FwdHVyZVRhcmdldChlbGVtZW50KTtcbiAgICBzZXRTY3JvbGxMb2NrVGFyZ2V0KGVsZW1lbnQpO1xuICB9O1xuXG4gIHJldHVybiAoXG4gICAgPEZyYWdtZW50PlxuICAgICAge2xvY2tFbmFibGVkICYmIChcbiAgICAgICAgPGRpdlxuICAgICAgICAgIG9uQ2xpY2s9e2JsdXJTZWxlY3RJbnB1dH1cbiAgICAgICAgICBjc3M9e3sgcG9zaXRpb246ICdmaXhlZCcsIGxlZnQ6IDAsIGJvdHRvbTogMCwgcmlnaHQ6IDAsIHRvcDogMCB9fVxuICAgICAgICAvPlxuICAgICAgKX1cbiAgICAgIHtjaGlsZHJlbih0YXJnZXRSZWYpfVxuICAgIDwvRnJhZ21lbnQ+XG4gICk7XG59XG4iXX0= */",toString:Vb};function Gb(e){var t=e.children,n=e.lockEnabled,i=e.captureEnabled,r=i===void 0?!0:i,s=e.onBottomArrive,o=e.onBottomLeave,u=e.onTopArrive,a=e.onTopLeave,l=Eb({isEnabled:r,onBottomArrive:s,onBottomLeave:o,onTopArrive:u,onTopLeave:a}),c=Pb({isEnabled:n}),d=function(h){l(h),c(h)};return T(y.Fragment,null,n&&T("div",{onClick:Tb,css:wb}),t(d))}function Bb(){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 Fb=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:Bb},Mb=function(t){var n=t.name,i=t.onFocus;return T("input",{required:!0,name:n,tabIndex:-1,"aria-hidden":"true",onFocus:i,css:Fb,value:"",onChange:function(){}})},Db=Mb;function xr(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 Rb(){return xr(/^iPhone/i)}function Ou(){return xr(/^Mac/i)}function Ob(){return xr(/^iPad/i)||Ou()&&navigator.maxTouchPoints>1}function Nb(){return Rb()||Ob()}function Lb(){return Ou()||Nb()}var Xb=function(t){return t.label},Wb=function(t){return t.label},Zb=function(t){return t.value},Hb=function(t){return!!t.isDisabled},zb={clearIndicator:xg,container:cg,control:wg,dropdownIndicator:Ig,group:Mg,groupHeading:Rg,indicatorsContainer:pg,indicatorSeparator:Sg,input:Xg,loadingIndicator:Vg,loadingMessage:sg,menu:Km,menuList:ng,menuPortal:ug,multiValue:kg,multiValueLabel:Yg,multiValueRemove:jg,noOptionsMessage:rg,option:Kg,placeholder:tb,singleValue:rb,valueContainer:fg},kb={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%)"},Yb=4,Nu=4,jb=38,Jb=Nu*2,Ub={baseUnit:Nu,controlHeight:jb,menuGutter:Jb},Ar={borderRadius:Yb,colors:kb,spacing:Ub},_b={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:hu(),captureMenuScroll:!hu(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:Cb(),formatGroupLabel:Xb,getOptionLabel:Wb,getOptionValue:Zb,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:Hb,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!Hm(),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 Lu(e,t,n,i){var r=zu(e,t,n),s=ku(e,t,n),o=Hu(e,t),u=Nn(e,t);return{type:"option",data:t,isDisabled:r,isSelected:s,label:o,value:u,index:i}}function On(e,t){return e.options.map(function(n,i){if("options"in n){var r=n.options.map(function(o,u){return Lu(e,o,t,u)}).filter(function(o){return Zu(e,o)});return r.length>0?{type:"group",data:n,options:r,index:i}:void 0}var s=Lu(e,n,t,i);return Zu(e,s)?s:void 0}).filter(Ym)}function Xu(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 Wu(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 $b(e,t){return Xu(On(e,t))}function Zu(e,t){var n=e.inputValue,i=n===void 0?"":n,r=t.data,s=t.isSelected,o=t.label,u=t.value;return(!ju(e)||!s)&&Yu(e,{label:o,value:u,data:r},i)}function Qb(e,t){var n=e.focusedValue,i=e.selectValue,r=i.indexOf(n);if(r>-1){var s=t.indexOf(n);if(s>-1)return n;if(r<t.length)return t[r]}return null}function Kb(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}var Sr=function(t,n){var i,r=(i=t.find(function(s){return s.data===n}))===null||i===void 0?void 0:i.id;return r||null},Hu=function(t,n){return t.getOptionLabel(n)},Nn=function(t,n){return t.getOptionValue(n)};function zu(e,t,n){return typeof e.isOptionDisabled=="function"?e.isOptionDisabled(t,n):!1}function ku(e,t,n){if(n.indexOf(t)>-1)return!0;if(typeof e.isOptionSelected=="function")return e.isOptionSelected(t,n);var i=Nn(e,t);return n.some(function(r){return Nn(e,r)===i})}function Yu(e,t,n){return e.filterOption?e.filterOption(t,n):!0}var ju=function(t){var n=t.hideSelectedOptions,i=t.isMulti;return n===void 0?i:n},qb=1,Ju=function(e){gp(n,e);var t=yp(n);function n(i){var r;if(pp(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=Lb(),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,h=d.isMulti,g=d.inputValue;r.onInputChange("",{action:"set-value",prevInputValue:g}),f&&(r.setState({inputIsHiddenAfterUpdate:!h}),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,h=r.state.selectValue,g=d&&r.isOptionSelected(a,h),m=r.isOptionDisabled(a,h);if(g){var p=r.getOptionValue(a);r.setValue(h.filter(function(b){return r.getOptionValue(b)!==p}),"deselect-option",a)}else if(!m)d?r.setValue([].concat(er(h),[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(g){return r.getOptionValue(g)!==d}),h=Rn(l,f,f[0]||null);r.onChange(h,{action:"remove-value",removedValue:a}),r.focusInput()},r.clearValue=function(){var a=r.state.selectValue;r.onChange(Rn(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=Rn(a,d,d[0]||null);c&&r.onChange(f,{action:"pop-value",removedValue:c})},r.getFocusedOptionId=function(a){return Sr(r.state.focusableOptionsWithIds,a)},r.getFocusableOptionsWithIds=function(){return Wu(On(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 Nm.apply(void 0,[r.props.classNamePrefix].concat(l))},r.getOptionLabel=function(a){return Hu(r.props,a)},r.getOptionValue=function(a){return Nn(r.props,a)},r.getStyles=function(a,l){var c=r.props.unstyled,d=zb[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 ub(r.props)},r.buildCategorizedOptions=function(){return On(r.props,r.state.selectValue)},r.getCategorizedOptions=function(){return r.props.menuIsOpen?r.buildCategorizedOptions():[]},r.buildFocusableOptions=function(){return Xu(r.buildCategorizedOptions())},r.getFocusableOptions=function(){return r.props.menuIsOpen?r.buildFocusableOptions():[]},r.ariaOnChange=function(a,l){r.setState({ariaSelection:w({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&&Bn(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),h=5;r.userIsDragging=d>h||f>h}},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 ju(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,h=l.inputValue,g=l.isClearable,m=l.isDisabled,p=l.menuIsOpen,b=l.onKeyDown,C=l.tabSelectsValue,I=l.openMenuOnFocus,x=r.state,v=x.focusedOption,A=x.focusedValue,S=x.selectValue;if(!m&&!(typeof b=="function"&&(b(a),a.defaultPrevented))){switch(r.blockOptionHover=!0,a.key){case"ArrowLeft":if(!c||h)return;r.focusValue("previous");break;case"ArrowRight":if(!c||h)return;r.focusValue("next");break;case"Delete":case"Backspace":if(h)return;if(A)r.removeValue(A);else{if(!d)return;c?r.popValue():g&&r.clearValue()}break;case"Tab":if(r.isComposing||a.shiftKey||!p||!C||!v||I&&r.isOptionSelected(v,S))return;r.selectOption(v);break;case"Enter":if(a.keyCode===229)break;if(p){if(!v||r.isComposing)return;r.selectOption(v);break}return;case"Escape":p?(r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange("",{action:"menu-close",prevInputValue:h}),r.onMenuClose()):g&&f&&r.clearValue();break;case" ":if(h)return;if(!p){r.openMenu("first");break}if(!v)return;r.selectOption(v);break;case"ArrowUp":p?r.focusOption("up"):r.openMenu("last");break;case"ArrowDown":p?r.focusOption("down"):r.openMenu("first");break;case"PageUp":if(!p)return;r.focusOption("pageup");break;case"PageDown":if(!p)return;r.focusOption("pagedown");break;case"Home":if(!p)return;r.focusOption("first");break;case"End":if(!p)return;r.focusOption("last");break;default:return}a.preventDefault()}},r.state.instancePrefix="react-select-"+(r.props.instanceId||++qb),r.state.selectValue=lu(i.value),i.menuIsOpen&&r.state.selectValue.length){var s=r.getFocusableOptionsWithIds(),o=r.buildFocusableOptions(),u=o.indexOf(r.state.selectValue[0]);r.state.focusableOptionsWithIds=s,r.state.focusedOption=o[u],r.state.focusedOptionId=Sr(s,o[u])}return r}return mp(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&&fu(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(r){var s=this.props,o=s.isDisabled,u=s.menuIsOpen,a=this.state.isFocused;(a&&!o&&r.isDisabled||a&&u&&!r.menuIsOpen)&&this.focusInput(),a&&o&&!r.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!a&&!o&&r.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(fu(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,s){this.props.onInputChange(r,s)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(r){var s=this,o=this.state,u=o.selectValue,a=o.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 s.onMenuOpen()})}},{key:"focusValue",value:function(r){var s=this.state,o=s.selectValue,u=s.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var a=o.indexOf(u);u||(a=-1);var l=o.length-1,c=-1;if(o.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:o[c]})}}}},{key:"focusOption",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"first",s=this.props.pageSize,o=this.state.focusedOption,u=this.getFocusableOptions();if(u.length){var a=0,l=u.indexOf(o);o||(l=-1),r==="up"?a=l>0?l-1:u.length-1:r==="down"?a=(l+1)%u.length:r==="pageup"?(a=l-s,a<0&&(a=0)):r==="pagedown"?(a=l+s,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(Ar):w(w({},Ar),this.props.theme):Ar}},{key:"getCommonProps",value:function(){var r=this.clearValue,s=this.cx,o=this.getStyles,u=this.getClassNames,a=this.getValue,l=this.selectOption,c=this.setValue,d=this.props,f=d.isMulti,h=d.isRtl,g=d.options,m=this.hasValue();return{clearValue:r,cx:s,getStyles:o,getClassNames:u,getValue:a,hasValue:m,isMulti:f,isRtl:h,options:g,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,s=r.isClearable,o=r.isMulti;return s===void 0?o:s}},{key:"isOptionDisabled",value:function(r,s){return zu(this.props,r,s)}},{key:"isOptionSelected",value:function(r,s){return ku(this.props,r,s)}},{key:"filterOption",value:function(r,s){return Yu(this.props,r,s)}},{key:"formatOptionLabel",value:function(r,s){if(typeof this.props.formatOptionLabel=="function"){var o=this.props.inputValue,u=this.state.selectValue;return this.props.formatOptionLabel(r,{context:s,inputValue:o,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,s=r.isDisabled,o=r.isSearchable,u=r.inputId,a=r.inputValue,l=r.tabIndex,c=r.form,d=r.menuIsOpen,f=r.required,h=this.getComponents(),g=h.Input,m=this.state,p=m.inputIsHidden,b=m.ariaSelection,C=this.commonProps,I=u||this.getElementId("input"),x=w(w(w({"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")}),!o&&{"aria-readonly":!0}),this.hasValue()?(b==null?void 0:b.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return o?F.createElement(g,B({},C,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:I,innerRef:this.getInputRef,isDisabled:s,isHidden:p,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:l,form:c,type:"text",value:a},x)):F.createElement(Ab,B({id:I,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Gn,onFocus:this.onInputFocus,disabled:s,tabIndex:l,inputMode:"none",form:c,value:""},x))}},{key:"renderPlaceholderOrValue",value:function(){var r=this,s=this.getComponents(),o=s.MultiValue,u=s.MultiValueContainer,a=s.MultiValueLabel,l=s.MultiValueRemove,c=s.SingleValue,d=s.Placeholder,f=this.commonProps,h=this.props,g=h.controlShouldRenderValue,m=h.isDisabled,p=h.isMulti,b=h.inputValue,C=h.placeholder,I=this.state,x=I.selectValue,v=I.focusedValue,A=I.isFocused;if(!this.hasValue()||!g)return b?null:F.createElement(d,B({},f,{key:"placeholder",isDisabled:m,isFocused:A,innerProps:{id:this.getElementId("placeholder")}}),C);if(p)return x.map(function(E,M){var O=E===v,k="".concat(r.getOptionLabel(E),"-").concat(r.getOptionValue(E));return F.createElement(o,B({},f,{components:{Container:u,Label:a,Remove:l},isFocused:O,isDisabled:m,key:k,index:M,removeProps:{onClick:function(){return r.removeValue(E)},onTouchEnd:function(){return r.removeValue(E)},onMouseDown:function(he){he.preventDefault()}},data:E}),r.formatOptionLabel(E,"value"))});if(b)return null;var S=x[0];return F.createElement(c,B({},f,{data:S,isDisabled:m}),this.formatOptionLabel(S,"value"))}},{key:"renderClearIndicator",value:function(){var r=this.getComponents(),s=r.ClearIndicator,o=this.commonProps,u=this.props,a=u.isDisabled,l=u.isLoading,c=this.state.isFocused;if(!this.isClearable()||!s||a||!this.hasValue()||l)return null;var d={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return F.createElement(s,B({},o,{innerProps:d,isFocused:c}))}},{key:"renderLoadingIndicator",value:function(){var r=this.getComponents(),s=r.LoadingIndicator,o=this.commonProps,u=this.props,a=u.isDisabled,l=u.isLoading,c=this.state.isFocused;if(!s||!l)return null;var d={"aria-hidden":"true"};return F.createElement(s,B({},o,{innerProps:d,isDisabled:a,isFocused:c}))}},{key:"renderIndicatorSeparator",value:function(){var r=this.getComponents(),s=r.DropdownIndicator,o=r.IndicatorSeparator;if(!s||!o)return null;var u=this.commonProps,a=this.props.isDisabled,l=this.state.isFocused;return F.createElement(o,B({},u,{isDisabled:a,isFocused:l}))}},{key:"renderDropdownIndicator",value:function(){var r=this.getComponents(),s=r.DropdownIndicator;if(!s)return null;var o=this.commonProps,u=this.props.isDisabled,a=this.state.isFocused,l={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return F.createElement(s,B({},o,{innerProps:l,isDisabled:u,isFocused:a}))}},{key:"renderMenu",value:function(){var r=this,s=this.getComponents(),o=s.Group,u=s.GroupHeading,a=s.Menu,l=s.MenuList,c=s.MenuPortal,d=s.LoadingMessage,f=s.NoOptionsMessage,h=s.Option,g=this.commonProps,m=this.state.focusedOption,p=this.props,b=p.captureMenuScroll,C=p.inputValue,I=p.isLoading,x=p.loadingMessage,v=p.minMenuHeight,A=p.maxMenuHeight,S=p.menuIsOpen,E=p.menuPlacement,M=p.menuPosition,O=p.menuPortalTarget,k=p.menuShouldBlockScroll,U=p.menuShouldScrollIntoView,he=p.noOptionsMessage,ue=p.onMenuScrollToTop,_=p.onMenuScrollToBottom;if(!S)return null;var j=function(se,Ce){var Ge=se.type,pe=se.data,Be=se.isDisabled,xe=se.isSelected,bt=se.label,Er=se.value,Ln=m===pe,V=Be?void 0:function(){return r.onOptionHover(pe)},zt=Be?void 0:function(){return r.selectOption(pe)},Ke="".concat(r.getElementId("option"),"-").concat(Ce),Xn={id:Ke,onClick:zt,onMouseMove:V,onMouseOver:V,tabIndex:-1,role:"option","aria-selected":r.isAppleDevice?void 0:xe};return F.createElement(h,B({},g,{innerProps:Xn,data:pe,isDisabled:Be,isSelected:xe,key:Ke,label:bt,type:Ge,value:Er,isFocused:Ln,innerRef:Ln?r.getFocusedOptionRef:void 0}),r.formatOptionLabel(se.data,"menu"))},X;if(this.hasOptions())X=this.getCategorizedOptions().map(function($){if($.type==="group"){var se=$.data,Ce=$.options,Ge=$.index,pe="".concat(r.getElementId("group"),"-").concat(Ge),Be="".concat(pe,"-heading");return F.createElement(o,B({},g,{key:pe,data:se,options:Ce,Heading:u,headingProps:{id:Be,data:$.data},label:r.formatGroupLabel($.data)}),$.options.map(function(xe){return j(xe,"".concat(Ge,"-").concat(xe.index))}))}else if($.type==="option")return j($,"".concat($.index))});else if(I){var Z=x({inputValue:C});if(Z===null)return null;X=F.createElement(d,g,Z)}else{var le=he({inputValue:C});if(le===null)return null;X=F.createElement(f,g,le)}var re={minMenuHeight:v,maxMenuHeight:A,menuPlacement:E,menuPosition:M,menuShouldScrollIntoView:U},gt=F.createElement(qm,B({},g,re),function($){var se=$.ref,Ce=$.placerProps,Ge=Ce.placement,pe=Ce.maxHeight;return F.createElement(a,B({},g,re,{innerRef:se,innerProps:{onMouseDown:r.onMenuMouseDown,onMouseMove:r.onMenuMouseMove},isLoading:I,placement:Ge}),F.createElement(Gb,{captureEnabled:b,onTopArrive:ue,onBottomArrive:_,lockEnabled:k},function(Be){return F.createElement(l,B({},g,{innerRef:function(bt){r.getMenuListRef(bt),Be(bt)},innerProps:{role:"listbox","aria-multiselectable":g.isMulti,id:r.getElementId("listbox")},isLoading:I,maxHeight:pe,focusedOption:m}),X)}))});return O||M==="fixed"?F.createElement(c,B({},g,{appendTo:O,controlElement:this.controlRef,menuPlacement:E,menuPosition:M}),gt):gt}},{key:"renderFormField",value:function(){var r=this,s=this.props,o=s.delimiter,u=s.isDisabled,a=s.isMulti,l=s.name,c=s.required,d=this.state.selectValue;if(c&&!this.hasValue()&&!u)return F.createElement(Db,{name:l,onFocus:this.onValueInputFocus});if(!(!l||u))if(a)if(o){var f=d.map(function(m){return r.getOptionValue(m)}).join(o);return F.createElement("input",{name:l,type:"hidden",value:f})}else{var h=d.length>0?d.map(function(m,p){return F.createElement("input",{key:"i-".concat(p),name:l,type:"hidden",value:r.getOptionValue(m)})}):F.createElement("input",{name:l,type:"hidden",value:""});return F.createElement("div",null,h)}else{var g=d[0]?this.getOptionValue(d[0]):"";return F.createElement("input",{name:l,type:"hidden",value:g})}}},{key:"renderLiveRegion",value:function(){var r=this.commonProps,s=this.state,o=s.ariaSelection,u=s.focusedOption,a=s.focusedValue,l=s.isFocused,c=s.selectValue,d=this.getFocusableOptions();return F.createElement(bb,B({},r,{id:this.getElementId("live-region"),ariaSelection:o,focusedOption:u,focusedValue:a,isFocused:l,selectValue:c,focusableOptions:d,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var r=this.getComponents(),s=r.Control,o=r.IndicatorsContainer,u=r.SelectContainer,a=r.ValueContainer,l=this.props,c=l.className,d=l.id,f=l.isDisabled,h=l.menuIsOpen,g=this.state.isFocused,m=this.commonProps=this.getCommonProps();return F.createElement(u,B({},m,{className:c,innerProps:{id:d,onKeyDown:this.onKeyDown},isDisabled:f,isFocused:g}),this.renderLiveRegion(),F.createElement(s,B({},m,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:f,isFocused:g,menuIsOpen:h}),F.createElement(a,B({},m,{isDisabled:f}),this.renderPlaceholderOrValue(),this.renderInput()),F.createElement(o,B({},m,{isDisabled:f}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(r,s){var o=s.prevProps,u=s.clearFocusValueOnUpdate,a=s.inputIsHiddenAfterUpdate,l=s.ariaSelection,c=s.isFocused,d=s.prevWasFocused,f=s.instancePrefix,h=r.options,g=r.value,m=r.menuIsOpen,p=r.inputValue,b=r.isMulti,C=lu(g),I={};if(o&&(g!==o.value||h!==o.options||m!==o.menuIsOpen||p!==o.inputValue)){var x=m?$b(r,C):[],v=m?Wu(On(r,C),"".concat(f,"-option")):[],A=u?Qb(s,C):null,S=Kb(s,x),E=Sr(v,S);I={selectValue:C,focusedOption:S,focusedOptionId:E,focusableOptionsWithIds:v,focusedValue:A,clearFocusValueOnUpdate:!1}}var M=a!=null&&r!==o?{inputIsHidden:a,inputIsHiddenAfterUpdate:void 0}:{},O=l,k=c&&d;return c&&!k&&(O={value:Rn(b,C,C[0]||null),options:C,action:"initial-input-focus"},k=!d),(l==null?void 0:l.action)==="initial-input-focus"&&(O=null),w(w(w({},I),M),{},{prevProps:r,ariaSelection:O,prevWasFocused:k})}}]),n}(y.Component);Ju.defaultProps=_b;var e0=y.forwardRef(function(e,t){var n=hp(e);return F.createElement(Ju,B({ref:t},n))}),t0=e0;const mt=e=>{const{children:t,sx:n,...i}=e;return P.jsx("div",{className:Ie.form,style:n,...i,children:t})},n0={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":t.isFocused?"#e6e7ea":null,color:t.isSelected?"#ffffff":(t.isFocused,"#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"})},i0=e=>{const{children:t,sx:n,...i}=e;return P.jsx("div",{className:Ie["form-group"],style:n,...i,children:t})},r0=e=>{const{children:t,sx:n,...i}=e,r=y.Children.toArray(t).filter(a=>a.type.displayName==="biznext-ui-input-label"),s=y.Children.toArray(t).filter(a=>a.type.displayName==="biznext-ui-input-control"),o=y.Children.toArray(t).filter(a=>a.type.displayName==="biznext-ui-input-error-message"),u=o[0]&&o[0].props.children&&o[0].props.children.length>0;return P.jsxs("div",{className:ze(Ie["form-input-group"],u&&Ie["validation-error"]),style:n,...i,children:[r,P.jsxs("div",{className:Ie["form-input-control-group"],children:[s,P.jsx("span",{className:Ie["form-input-group-error-text"],children:o})]})]})},Uu=e=>{const{required:t=!1,children:n,sx:i,...r}=e;return P.jsx("label",{className:ze(Ie["form-input-group-label"],t&&Ie.required),style:i,...r,children:n})},_u=y.forwardRef((e,t)=>{const{controlType:n,focus:i,focusElement:r,sx:s,placeholder:o="",isSearchable:u=!0,isClearable:a=!0,...l}=e;let c=P.jsx(P.Fragment,{});const d=y.useRef(null);switch(y.useEffect(()=>{d.current&&d.current.focus()},[i]),y.useEffect(()=>{d.current&&d.current.focus()},[r]),n){case"input":c=P.jsx("input",{className:Ie["form-input-control"],placeholder:o,ref:i?d:t,style:s,...l});break;case"select":c=P.jsx(t0,{styles:n0,className:Ie["form-select-control"],classNamePrefix:"biznext-ui-",menuPortalTarget:document.body,menuPosition:"absolute",menuShouldScrollIntoView:!1,ref:i?d:t,placeholder:o?`Select ${o}`:"Select...",isSearchable:u,isClearable:a,noOptionsMessage:()=>"No Results Found!",...l});break;case"textarea":c=P.jsx("textarea",{className:Ie["form-input-control"],placeholder:o,style:s,ref:i?d:t,...l});break;default:c=P.jsx(P.Fragment,{});break}return c}),$u=e=>{const{children:t}=e;return t};Uu.displayName="biznext-ui-input-label",_u.displayName="biznext-ui-input-control",$u.displayName="biznext-ui-input-error-message",mt.Group=i0,mt.InputGroup=r0,mt.Label=Uu,mt.Control=_u,mt.ErrorMessage=$u,ce.BiznextUIProvider=Kh,ce.Form=mt,ce.Modal=ct,ce.useConfirmDialog=op,ce.useToast=Vr,Object.defineProperty(ce,Symbol.toStringTag,{value:"Module"})});
|
|
32
|
+
`]))),Vg=function(t,n){var r=t.isFocused,i=t.size,s=t.theme,o=s.colors,u=s.spacing.baseUnit;return w({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:i,lineHeight:1,marginRight:i,textAlign:"center",verticalAlign:"middle"},n?{}:{color:r?o.neutral60:o.neutral20,padding:u*2})},br=function(t){var n=t.delay,r=t.offset;return T("span",{css:cr({animation:"".concat(Pg," 1s ease-in-out ").concat(n,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:r?"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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW1RSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLFxufSBmcm9tICcuLi90eXBlcyc7XG5pbXBvcnQgeyBnZXRTdHlsZVByb3BzIH0gZnJvbSAnLi4vdXRpbHMnO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgSWNvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBTdmcgPSAoe1xuICBzaXplLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0V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HRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oe1xuICBpbm5lclByb3BzLFxuICBpc1J0bCxcbiAgc2l6ZSA9IDQsXG4gIC4uLnJlc3RQcm9wc1xufTogTG9hZGluZ0luZGljYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+KSA9PiB7XG4gIHJldHVybiAoXG4gICAgPGRpdlxuICAgICAgey4uLmdldFN0eWxlUHJvcHMoXG4gICAgICAgIHsgLi4ucmVzdFByb3BzLCBpbm5lclByb3BzLCBpc1J0bCwgc2l6ZSB9LFxuICAgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */")})},Tg=function(t){var n=t.innerProps,r=t.isRtl,i=t.size,s=i===void 0?4:i,o=Re(t,bg);return T("div",B({},Y(w(w({},o),{},{innerProps:n,isRtl:r,size:s}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),n),T(br,{delay:0,offset:r}),T(br,{delay:160,offset:!0}),T(br,{delay:320,offset:!r}))},wg=function(t,n){var r=t.isDisabled,i=t.isFocused,s=t.theme,o=s.colors,u=s.borderRadius,a=s.spacing;return w({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:r?o.neutral5:o.neutral0,borderColor:r?o.neutral10:i?o.primary:o.neutral20,borderRadius:u,borderStyle:"solid",borderWidth:1,boxShadow:i?"0 0 0 1px ".concat(o.primary):void 0,"&:hover":{borderColor:i?o.primary:o.neutral30}})},Gg=function(t){var n=t.children,r=t.isDisabled,i=t.isFocused,s=t.innerRef,o=t.innerProps,u=t.menuIsOpen;return T("div",B({ref:s},Y(t,"control",{control:!0,"control--is-disabled":r,"control--is-focused":i,"control--menu-is-open":u}),o,{"aria-disabled":r||void 0}),n)},Bg=Gg,Mg=["data"],Fg=function(t,n){var r=t.theme.spacing;return n?{}:{paddingBottom:r.baseUnit*2,paddingTop:r.baseUnit*2}},Dg=function(t){var n=t.children,r=t.cx,i=t.getStyles,s=t.getClassNames,o=t.Heading,u=t.headingProps,a=t.innerProps,l=t.label,c=t.theme,d=t.selectProps;return T("div",B({},Y(t,"group",{group:!0}),a),T(o,B({},u,{selectProps:d,theme:c,getStyles:i,getClassNames:s,cx:r}),l),T("div",null,n))},Rg=function(t,n){var r=t.theme,i=r.colors,s=r.spacing;return w({label:"group",cursor:"default",display:"block"},n?{}:{color:i.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:s.baseUnit*3,paddingRight:s.baseUnit*3,textTransform:"uppercase"})},Og=function(t){var n=cu(t);n.data;var r=Re(n,Mg);return T("div",B({},Y(t,"groupHeading",{"group-heading":!0}),r))},Ng=Dg,Lg=["innerRef","isDisabled","isHidden","inputClassName"],Xg=function(t,n){var r=t.isDisabled,i=t.value,s=t.theme,o=s.spacing,u=s.colors;return w(w({visibility:r?"hidden":"visible",transform:i?"translateZ(0)":""},Wg),n?{}:{margin:o.baseUnit/2,paddingBottom:o.baseUnit/2,paddingTop:o.baseUnit/2,color:u.neutral80})},xu={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},Wg={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":w({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},xu)},Zg=function(t){return w({label:"input",color:"inherit",background:0,opacity:t?0:1,width:"100%"},xu)},Hg=function(t){var n=t.cx,r=t.value,i=cu(t),s=i.innerRef,o=i.isDisabled,u=i.isHidden,a=i.inputClassName,l=Re(i,Lg);return T("div",B({},Y(t,"input",{"input-container":!0}),{"data-value":r||""}),T("input",B({className:n({input:!0},a),ref:s,style:Zg(u),disabled:o},l)))},zg=Hg,kg=function(t,n){var r=t.theme,i=r.spacing,s=r.borderRadius,o=r.colors;return w({label:"multiValue",display:"flex",minWidth:0},n?{}:{backgroundColor:o.neutral10,borderRadius:s/2,margin:i.baseUnit/2})},Yg=function(t,n){var r=t.theme,i=r.borderRadius,s=r.colors,o=t.cropWithEllipsis;return w({overflow:"hidden",textOverflow:o||o===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},n?{}:{borderRadius:i/2,color:s.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},jg=function(t,n){var r=t.theme,i=r.spacing,s=r.borderRadius,o=r.colors,u=t.isFocused;return w({alignItems:"center",display:"flex"},n?{}:{borderRadius:s/2,backgroundColor:u?o.dangerLight:void 0,paddingLeft:i.baseUnit,paddingRight:i.baseUnit,":hover":{backgroundColor:o.dangerLight,color:o.danger}})},Au=function(t){var n=t.children,r=t.innerProps;return T("div",r,n)},Jg=Au,Ug=Au;function _g(e){var t=e.children,n=e.innerProps;return T("div",B({role:"button"},n),t||T(gr,{size:14}))}var $g=function(t){var n=t.children,r=t.components,i=t.data,s=t.innerProps,o=t.isDisabled,u=t.removeProps,a=t.selectProps,l=r.Container,c=r.Label,d=r.Remove;return T(l,{data:i,innerProps:w(w({},Y(t,"multiValue",{"multi-value":!0,"multi-value--is-disabled":o})),s),selectProps:a},T(c,{data:i,innerProps:w({},Y(t,"multiValueLabel",{"multi-value__label":!0})),selectProps:a},n),T(d,{data:i,innerProps:w(w({},Y(t,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(n||"option")},u),selectProps:a}))},Qg=$g,Kg=function(t,n){var r=t.isDisabled,i=t.isFocused,s=t.isSelected,o=t.theme,u=o.spacing,a=o.colors;return w({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},n?{}:{backgroundColor:s?a.primary:i?a.primary25:"transparent",color:r?a.neutral20:s?a.neutral0:"inherit",padding:"".concat(u.baseUnit*2,"px ").concat(u.baseUnit*3,"px"),":active":{backgroundColor:r?void 0:s?a.primary:a.primary50}})},qg=function(t){var n=t.children,r=t.isDisabled,i=t.isFocused,s=t.isSelected,o=t.innerRef,u=t.innerProps;return T("div",B({},Y(t,"option",{option:!0,"option--is-disabled":r,"option--is-focused":i,"option--is-selected":s}),{ref:o,"aria-disabled":r},u),n)},eb=qg,tb=function(t,n){var r=t.theme,i=r.spacing,s=r.colors;return w({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},n?{}:{color:s.neutral50,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},nb=function(t){var n=t.children,r=t.innerProps;return T("div",B({},Y(t,"placeholder",{placeholder:!0}),r),n)},ib=nb,rb=function(t,n){var r=t.isDisabled,i=t.theme,s=i.spacing,o=i.colors;return w({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},n?{}:{color:r?o.neutral40:o.neutral80,marginLeft:s.baseUnit/2,marginRight:s.baseUnit/2})},sb=function(t){var n=t.children,r=t.isDisabled,i=t.innerProps;return T("div",B({},Y(t,"singleValue",{"single-value":!0,"single-value--is-disabled":r}),i),n)},ob=sb,ab={ClearIndicator:Ag,Control:Bg,DropdownIndicator:Cg,DownChevron:Iu,CrossIcon:gr,Group:Ng,GroupHeading:Og,IndicatorsContainer:mg,IndicatorSeparator:Eg,Input:zg,LoadingIndicator:Tg,Menu:tg,MenuList:ig,MenuPortal:lg,LoadingMessage:ag,NoOptionsMessage:og,MultiValue:Qg,MultiValueContainer:Jg,MultiValueLabel:Ug,MultiValueRemove:_g,Option:eb,Placeholder:ib,SelectContainer:dg,SingleValue:ob,ValueContainer:hg},ub=function(t){return w(w({},ab),t.components)},Su=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function lb(e,t){return!!(e===t||Su(e)&&Su(t))}function cb(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!lb(e[n],t[n]))return!1;return!0}function db(e,t){t===void 0&&(t=cb);var n=null;function r(){for(var i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];if(n&&n.lastThis===this&&t(i,n.lastArgs))return n.lastResult;var o=e.apply(this,i);return n={lastResult:o,lastArgs:i,lastThis:this},o}return r.clear=function(){n=null},r}function fb(){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 hb=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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkExMXlUZXh0LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFPSSIsImZpbGUiOiJBMTF5VGV4dC50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKiogQGpzeCBqc3ggKi9cbmltcG9ydCB7IEpTWCB9IGZyb20gJ3JlYWN0JztcbmltcG9ydCB7IGpzeCB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuLy8gQXNzaXN0aXZlIHRleHQgdG8gZGVzY3JpYmUgdmlzdWFsIGVsZW1lbnRzLiBIaWRkZW4gZm9yIHNpZ2h0ZWQgdXNlcnMuXG5jb25zdCBBMTF5VGV4dCA9IChwcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ10pID0+IChcbiAgPHNwYW5cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAnYTExeVRleHQnLFxuICAgICAgekluZGV4OiA5OTk5LFxuICAgICAgYm9yZGVyOiAwLFxuICAgICAgY2xpcDogJ3JlY3QoMXB4LCAxcHgsIDFweCwgMXB4KScsXG4gICAgICBoZWlnaHQ6IDEsXG4gICAgICB3aWR0aDogMSxcbiAgICAgIHBvc2l0aW9uOiAnYWJzb2x1dGUnLFxuICAgICAgb3ZlcmZsb3c6ICdoaWRkZW4nLFxuICAgICAgcGFkZGluZzogMCxcbiAgICAgIHdoaXRlU3BhY2U6ICdub3dyYXAnLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IGRlZmF1bHQgQTExeVRleHQ7XG4iXX0= */",toString:fb},pb=function(t){return T("span",B({css:hb},t))},Eu=pb,mb={guidance:function(t){var n=t.isSearchable,r=t.isMulti,i=t.tabSelectsValue,s=t.context,o=t.isInitialFocus;switch(s){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(i?", press Tab to select the option and exit the menu":"",".");case"input":return o?"".concat(t["aria-label"]||"Select"," is focused ").concat(n?",type to refine list":"",", press Down to open the menu, ").concat(r?" 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,r=t.label,i=r===void 0?"":r,s=t.labels,o=t.isDisabled;switch(n){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(i,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(s.length>1?"s":""," ").concat(s.join(","),", selected.");case"select-option":return o?"option ".concat(i," is disabled. Select another option."):"option ".concat(i,", selected.");default:return""}},onFocus:function(t){var n=t.context,r=t.focused,i=t.options,s=t.label,o=s===void 0?"":s,u=t.selectValue,a=t.isDisabled,l=t.isSelected,c=t.isAppleDevice,d=function(m,p){return m&&m.length?"".concat(m.indexOf(p)+1," of ").concat(m.length):""};if(n==="value"&&u)return"value ".concat(o," focused, ").concat(d(u,r),".");if(n==="menu"&&c){var f=a?" disabled":"",h="".concat(l?" selected":"").concat(f);return"".concat(o).concat(h,", ").concat(d(i,r),".")}return""},onFilter:function(t){var n=t.inputValue,r=t.resultsMessage;return"".concat(r).concat(n?" for search term "+n:"",".")}},gb=function(t){var n=t.ariaSelection,r=t.focusedOption,i=t.focusedValue,s=t.focusableOptions,o=t.isFocused,u=t.selectValue,a=t.selectProps,l=t.id,c=t.isAppleDevice,d=a.ariaLiveMessages,f=a.getOptionLabel,h=a.inputValue,g=a.isMulti,m=a.isOptionDisabled,p=a.isSearchable,b=a.menuIsOpen,C=a.options,I=a.screenReaderStatus,x=a.tabSelectsValue,v=a.isLoading,A=a["aria-label"],S=a["aria-live"],P=y.useMemo(function(){return w(w({},mb),d||{})},[d]),F=y.useMemo(function(){var _="";if(n&&P.onChange){var j=n.option,X=n.options,Z=n.removedValue,le=n.removedValues,re=n.value,gt=function(Ae){return Array.isArray(Ae)?null:Ae},$=Z||j||gt(re),se=$?f($):"",xe=X||le||void 0,Ge=xe?xe.map(f):[],me=w({isDisabled:$&&m($,u),label:se,labels:Ge},n);_=P.onChange(me)}return _},[n,P,m,u,f]),O=y.useMemo(function(){var _="",j=r||i,X=!!(r&&u&&u.includes(r));if(j&&P.onFocus){var Z={focused:j,label:f(j),isDisabled:m(j,u),isSelected:X,options:s,context:j===r?"menu":"value",selectValue:u,isAppleDevice:c};_=P.onFocus(Z)}return _},[r,i,f,m,P,s,u,c]),k=y.useMemo(function(){var _="";if(b&&C.length&&!v&&P.onFilter){var j=I({count:s.length});_=P.onFilter({inputValue:h,resultsMessage:j})}return _},[s,h,b,P,C,I,v]),U=(n==null?void 0:n.action)==="initial-input-focus",pe=y.useMemo(function(){var _="";if(P.guidance){var j=i?"value":b?"menu":"input";_=P.guidance({"aria-label":A,context:j,isDisabled:r&&m(r,u),isMulti:g,isSearchable:p,tabSelectsValue:x,isInitialFocus:U})}return _},[A,r,i,g,m,p,b,P,u,x,U]),ue=T(y.Fragment,null,T("span",{id:"aria-selection"},F),T("span",{id:"aria-focused"},O),T("span",{id:"aria-results"},k),T("span",{id:"aria-guidance"},pe));return T(y.Fragment,null,T(Eu,{id:l},U&&ue),T(Eu,{"aria-live":S,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},o&&!U&&ue))},bb=gb,vr=[{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źẑżžẓẕƶȥɀⱬꝣ"}],vb=new RegExp("["+vr.map(function(e){return e.letters}).join("")+"]","g"),Pu={},yr=0;yr<vr.length;yr++)for(var Ir=vr[yr],Cr=0;Cr<Ir.letters.length;Cr++)Pu[Ir.letters[Cr]]=Ir.base;var Vu=function(t){return t.replace(vb,function(n){return Pu[n]})},yb=db(Vu),Tu=function(t){return t.replace(/^\s+|\s+$/g,"")},Ib=function(t){return"".concat(t.label," ").concat(t.value)},Cb=function(t){return function(n,r){if(n.data.__isNew__)return!0;var i=w({ignoreCase:!0,ignoreAccents:!0,stringify:Ib,trim:!0,matchFrom:"any"},t),s=i.ignoreCase,o=i.ignoreAccents,u=i.stringify,a=i.trim,l=i.matchFrom,c=a?Tu(r):r,d=a?Tu(u(n)):u(n);return s&&(c=c.toLowerCase(),d=d.toLowerCase()),o&&(c=yb(c),d=Vu(d)),l==="start"?d.substr(0,c.length)===c:d.indexOf(c)>-1}},xb=["innerRef"];function Ab(e){var t=e.innerRef,n=Re(e,xb),r=Jm(n,"onExited","in","enter","exit","appear");return T("input",B({ref:t},r,{css:cr({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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkR1bW15SW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCTSIsImZpbGUiOiJEdW1teU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gICAgIGdyaWRBcmVhOiAnMSAvIDEgLyAyIC8gMycsXG4gICAgICAgIG91dGxpbmU6IDAsXG4gICAgICAgIHBhZGRpbmc6IDAsXG4gICAgICAgIC8vIGltcG9ydGFudCEgd2l0aG91dCBgd2lkdGhgIGJyb3dzZXJzIHdvbid0IGFsbG93IGZvY3VzXG4gICAgICAgIHdpZHRoOiAxLFxuXG4gICAgICAgIC8vIHJlbW92ZSBjdXJzb3Igb24gZGVza3RvcFxuICAgICAgICBjb2xvcjogJ3RyYW5zcGFyZW50JyxcblxuICAgICAgICAvLyByZW1vdmUgY3Vyc29yIG9uIG1vYmlsZSB3aGlsc3QgbWFpbnRhaW5pbmcgXCJzY3JvbGwgaW50byB2aWV3XCIgYmVoYXZpb3VyXG4gICAgICAgIGxlZnQ6IC0xMDAsXG4gICAgICAgIG9wYWNpdHk6IDAsXG4gICAgICAgIHBvc2l0aW9uOiAncmVsYXRpdmUnLFxuICAgICAgICB0cmFuc2Zvcm06ICdzY2FsZSguMDEpJyxcbiAgICAgIH19XG4gICAgLz5cbiAgKTtcbn1cbiJdfQ== */")}))}var Sb=function(t){t.cancelable&&t.preventDefault(),t.stopPropagation()};function Eb(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,i=e.onTopArrive,s=e.onTopLeave,o=y.useRef(!1),u=y.useRef(!1),a=y.useRef(0),l=y.useRef(null),c=y.useCallback(function(p,b){if(l.current!==null){var C=l.current,I=C.scrollTop,x=C.scrollHeight,v=C.clientHeight,A=l.current,S=b>0,P=x-v-I,F=!1;P>b&&o.current&&(r&&r(p),o.current=!1),S&&u.current&&(s&&s(p),u.current=!1),S&&b>P?(n&&!o.current&&n(p),A.scrollTop=x,F=!0,o.current=!0):!S&&-b>I&&(i&&!u.current&&i(p),A.scrollTop=0,F=!0,u.current=!0),F&&Sb(p)}},[n,r,i,s]),d=y.useCallback(function(p){c(p,p.deltaY)},[c]),f=y.useCallback(function(p){a.current=p.changedTouches[0].clientY},[]),h=y.useCallback(function(p){var b=a.current-p.changedTouches[0].clientY;c(p,b)},[c]),g=y.useCallback(function(p){if(p){var b=km?{passive:!1}:!1;p.addEventListener("wheel",d,b),p.addEventListener("touchstart",f,b),p.addEventListener("touchmove",h,b)}},[h,f,d]),m=y.useCallback(function(p){p&&(p.removeEventListener("wheel",d,!1),p.removeEventListener("touchstart",f,!1),p.removeEventListener("touchmove",h,!1))},[h,f,d]);return y.useEffect(function(){if(t){var p=l.current;return g(p),function(){m(p)}}},[t,g,m]),function(p){l.current=p}}var wu=["boxSizing","height","overflow","paddingRight","position"],Gu={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function Bu(e){e.cancelable&&e.preventDefault()}function Mu(e){e.stopPropagation()}function Fu(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;e===0?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function Du(){return"ontouchstart"in window||navigator.maxTouchPoints}var Ru=!!(typeof window<"u"&&window.document&&window.document.createElement),Ht=0,pt={capture:!1,passive:!1};function Pb(e){var t=e.isEnabled,n=e.accountForScrollbars,r=n===void 0?!0:n,i=y.useRef({}),s=y.useRef(null),o=y.useCallback(function(a){if(Ru){var l=document.body,c=l&&l.style;if(r&&wu.forEach(function(g){var m=c&&c[g];i.current[g]=m}),r&&Ht<1){var d=parseInt(i.current.paddingRight,10)||0,f=document.body?document.body.clientWidth:0,h=window.innerWidth-f+d||0;Object.keys(Gu).forEach(function(g){var m=Gu[g];c&&(c[g]=m)}),c&&(c.paddingRight="".concat(h,"px"))}l&&Du()&&(l.addEventListener("touchmove",Bu,pt),a&&(a.addEventListener("touchstart",Fu,pt),a.addEventListener("touchmove",Mu,pt))),Ht+=1}},[r]),u=y.useCallback(function(a){if(Ru){var l=document.body,c=l&&l.style;Ht=Math.max(Ht-1,0),r&&Ht<1&&wu.forEach(function(d){var f=i.current[d];c&&(c[d]=f)}),l&&Du()&&(l.removeEventListener("touchmove",Bu,pt),a&&(a.removeEventListener("touchstart",Fu,pt),a.removeEventListener("touchmove",Mu,pt)))}},[r]);return y.useEffect(function(){if(t){var a=s.current;return o(a),function(){u(a)}}},[t,o,u]),function(a){s.current=a}}function Vb(){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 Tb=function(t){var n=t.target;return n.ownerDocument.activeElement&&n.ownerDocument.activeElement.blur()},wb=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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNjcm9sbE1hbmFnZXIudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW9EVSIsImZpbGUiOiJTY3JvbGxNYW5hZ2VyLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgRnJhZ21lbnQsIFJlYWN0RWxlbWVudCwgUmVmQ2FsbGJhY2ssIE1vdXNlRXZlbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgdXNlU2Nyb2xsQ2FwdHVyZSBmcm9tICcuL3VzZVNjcm9sbENhcHR1cmUnO1xuaW1wb3J0IHVzZVNjcm9sbExvY2sgZnJvbSAnLi91c2VTY3JvbGxMb2NrJztcblxuaW50ZXJmYWNlIFByb3BzIHtcbiAgcmVhZG9ubHkgY2hpbGRyZW46IChyZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PikgPT4gUmVhY3RFbGVtZW50O1xuICByZWFkb25seSBsb2NrRW5hYmxlZDogYm9vbGVhbjtcbiAgcmVhZG9ubHkgY2FwdHVyZUVuYWJsZWQ6IGJvb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G9tQXJyaXZlLFxuICAgIG9uQm90dG9tTGVhdmUsXG4gICAgb25Ub3BBcnJpdmUsXG4gICAgb25Ub3BMZWF2ZSxcbiAgfSk7XG4gIGNvbnN0IHNldFNjcm9sbExvY2tUYXJnZXQgPSB1c2VTY3JvbGxMb2NrKHsgaXNFbmFibGVkOiBsb2NrRW5hYmxlZCB9KTtcblxuICBjb25zdCB0YXJnZXRSZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PiA9IChlbGVtZW50KSA9PiB7XG4gICAgc2V0U2Nyb2xsQ2FwdHVyZVRhcmdldChlbGVtZW50KTtcbiAgICBzZXRTY3JvbGxMb2NrVGFyZ2V0KGVsZW1lbnQpO1xuICB9O1xuXG4gIHJldHVybiAoXG4gICAgPEZyYWdtZW50PlxuICAgICAge2xvY2tFbmFibGVkICYmIChcbiAgICAgICAgPGRpdlxuICAgICAgICAgIG9uQ2xpY2s9e2JsdXJTZWxlY3RJbnB1dH1cbiAgICAgICAgICBjc3M9e3sgcG9zaXRpb246ICdmaXhlZCcsIGxlZnQ6IDAsIGJvdHRvbTogMCwgcmlnaHQ6IDAsIHRvcDogMCB9fVxuICAgICAgICAvPlxuICAgICAgKX1cbiAgICAgIHtjaGlsZHJlbih0YXJnZXRSZWYpfVxuICAgIDwvRnJhZ21lbnQ+XG4gICk7XG59XG4iXX0= */",toString:Vb};function Gb(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,i=r===void 0?!0:r,s=e.onBottomArrive,o=e.onBottomLeave,u=e.onTopArrive,a=e.onTopLeave,l=Eb({isEnabled:i,onBottomArrive:s,onBottomLeave:o,onTopArrive:u,onTopLeave:a}),c=Pb({isEnabled:n}),d=function(h){l(h),c(h)};return T(y.Fragment,null,n&&T("div",{onClick:Tb,css:wb}),t(d))}function Bb(){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 Mb=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:Bb},Fb=function(t){var n=t.name,r=t.onFocus;return T("input",{required:!0,name:n,tabIndex:-1,"aria-hidden":"true",onFocus:r,css:Mb,value:"",onChange:function(){}})},Db=Fb;function xr(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 Rb(){return xr(/^iPhone/i)}function Ou(){return xr(/^Mac/i)}function Ob(){return xr(/^iPad/i)||Ou()&&navigator.maxTouchPoints>1}function Nb(){return Rb()||Ob()}function Lb(){return Ou()||Nb()}var Xb=function(t){return t.label},Wb=function(t){return t.label},Zb=function(t){return t.value},Hb=function(t){return!!t.isDisabled},zb={clearIndicator:xg,container:cg,control:wg,dropdownIndicator:Ig,group:Fg,groupHeading:Rg,indicatorsContainer:pg,indicatorSeparator:Sg,input:Xg,loadingIndicator:Vg,loadingMessage:sg,menu:Km,menuList:ng,menuPortal:ug,multiValue:kg,multiValueLabel:Yg,multiValueRemove:jg,noOptionsMessage:rg,option:Kg,placeholder:tb,singleValue:rb,valueContainer:fg},kb={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%)"},Yb=4,Nu=4,jb=38,Jb=Nu*2,Ub={baseUnit:Nu,controlHeight:jb,menuGutter:Jb},Ar={borderRadius:Yb,colors:kb,spacing:Ub},_b={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:hu(),captureMenuScroll:!hu(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:Cb(),formatGroupLabel:Xb,getOptionLabel:Wb,getOptionValue:Zb,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:Hb,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!Hm(),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 Lu(e,t,n,r){var i=zu(e,t,n),s=ku(e,t,n),o=Hu(e,t),u=Nn(e,t);return{type:"option",data:t,isDisabled:i,isSelected:s,label:o,value:u,index:r}}function On(e,t){return e.options.map(function(n,r){if("options"in n){var i=n.options.map(function(o,u){return Lu(e,o,t,u)}).filter(function(o){return Zu(e,o)});return i.length>0?{type:"group",data:n,options:i,index:r}:void 0}var s=Lu(e,n,t,r);return Zu(e,s)?s:void 0}).filter(Ym)}function Xu(e){return e.reduce(function(t,n){return n.type==="group"?t.push.apply(t,er(n.options.map(function(r){return r.data}))):t.push(n.data),t},[])}function Wu(e,t){return e.reduce(function(n,r){return r.type==="group"?n.push.apply(n,er(r.options.map(function(i){return{data:i.data,id:"".concat(t,"-").concat(r.index,"-").concat(i.index)}}))):n.push({data:r.data,id:"".concat(t,"-").concat(r.index)}),n},[])}function $b(e,t){return Xu(On(e,t))}function Zu(e,t){var n=e.inputValue,r=n===void 0?"":n,i=t.data,s=t.isSelected,o=t.label,u=t.value;return(!ju(e)||!s)&&Yu(e,{label:o,value:u,data:i},r)}function Qb(e,t){var n=e.focusedValue,r=e.selectValue,i=r.indexOf(n);if(i>-1){var s=t.indexOf(n);if(s>-1)return n;if(i<t.length)return t[i]}return null}function Kb(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}var Sr=function(t,n){var r,i=(r=t.find(function(s){return s.data===n}))===null||r===void 0?void 0:r.id;return i||null},Hu=function(t,n){return t.getOptionLabel(n)},Nn=function(t,n){return t.getOptionValue(n)};function zu(e,t,n){return typeof e.isOptionDisabled=="function"?e.isOptionDisabled(t,n):!1}function ku(e,t,n){if(n.indexOf(t)>-1)return!0;if(typeof e.isOptionSelected=="function")return e.isOptionSelected(t,n);var r=Nn(e,t);return n.some(function(i){return Nn(e,i)===r})}function Yu(e,t,n){return e.filterOption?e.filterOption(t,n):!0}var ju=function(t){var n=t.hideSelectedOptions,r=t.isMulti;return n===void 0?r:n},qb=1,Ju=function(e){gp(n,e);var t=yp(n);function n(r){var i;if(pp(this,n),i=t.call(this,r),i.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:""},i.blockOptionHover=!1,i.isComposing=!1,i.commonProps=void 0,i.initialTouchX=0,i.initialTouchY=0,i.openAfterFocus=!1,i.scrollToFocusedOptionOnUpdate=!1,i.userIsDragging=void 0,i.isAppleDevice=Lb(),i.controlRef=null,i.getControlRef=function(a){i.controlRef=a},i.focusedOptionRef=null,i.getFocusedOptionRef=function(a){i.focusedOptionRef=a},i.menuListRef=null,i.getMenuListRef=function(a){i.menuListRef=a},i.inputRef=null,i.getInputRef=function(a){i.inputRef=a},i.focus=i.focusInput,i.blur=i.blurInput,i.onChange=function(a,l){var c=i.props,d=c.onChange,f=c.name;l.name=f,i.ariaOnChange(a,l),d(a,l)},i.setValue=function(a,l,c){var d=i.props,f=d.closeMenuOnSelect,h=d.isMulti,g=d.inputValue;i.onInputChange("",{action:"set-value",prevInputValue:g}),f&&(i.setState({inputIsHiddenAfterUpdate:!h}),i.onMenuClose()),i.setState({clearFocusValueOnUpdate:!0}),i.onChange(a,{action:l,option:c})},i.selectOption=function(a){var l=i.props,c=l.blurInputOnSelect,d=l.isMulti,f=l.name,h=i.state.selectValue,g=d&&i.isOptionSelected(a,h),m=i.isOptionDisabled(a,h);if(g){var p=i.getOptionValue(a);i.setValue(h.filter(function(b){return i.getOptionValue(b)!==p}),"deselect-option",a)}else if(!m)d?i.setValue([].concat(er(h),[a]),"select-option",a):i.setValue(a,"select-option");else{i.ariaOnChange(a,{action:"select-option",option:a,name:f});return}c&&i.blurInput()},i.removeValue=function(a){var l=i.props.isMulti,c=i.state.selectValue,d=i.getOptionValue(a),f=c.filter(function(g){return i.getOptionValue(g)!==d}),h=Rn(l,f,f[0]||null);i.onChange(h,{action:"remove-value",removedValue:a}),i.focusInput()},i.clearValue=function(){var a=i.state.selectValue;i.onChange(Rn(i.props.isMulti,[],null),{action:"clear",removedValues:a})},i.popValue=function(){var a=i.props.isMulti,l=i.state.selectValue,c=l[l.length-1],d=l.slice(0,l.length-1),f=Rn(a,d,d[0]||null);c&&i.onChange(f,{action:"pop-value",removedValue:c})},i.getFocusedOptionId=function(a){return Sr(i.state.focusableOptionsWithIds,a)},i.getFocusableOptionsWithIds=function(){return Wu(On(i.props,i.state.selectValue),i.getElementId("option"))},i.getValue=function(){return i.state.selectValue},i.cx=function(){for(var a=arguments.length,l=new Array(a),c=0;c<a;c++)l[c]=arguments[c];return Nm.apply(void 0,[i.props.classNamePrefix].concat(l))},i.getOptionLabel=function(a){return Hu(i.props,a)},i.getOptionValue=function(a){return Nn(i.props,a)},i.getStyles=function(a,l){var c=i.props.unstyled,d=zb[a](l,c);d.boxSizing="border-box";var f=i.props.styles[a];return f?f(d,l):d},i.getClassNames=function(a,l){var c,d;return(c=(d=i.props.classNames)[a])===null||c===void 0?void 0:c.call(d,l)},i.getElementId=function(a){return"".concat(i.state.instancePrefix,"-").concat(a)},i.getComponents=function(){return ub(i.props)},i.buildCategorizedOptions=function(){return On(i.props,i.state.selectValue)},i.getCategorizedOptions=function(){return i.props.menuIsOpen?i.buildCategorizedOptions():[]},i.buildFocusableOptions=function(){return Xu(i.buildCategorizedOptions())},i.getFocusableOptions=function(){return i.props.menuIsOpen?i.buildFocusableOptions():[]},i.ariaOnChange=function(a,l){i.setState({ariaSelection:w({value:a},l)})},i.onMenuMouseDown=function(a){a.button===0&&(a.stopPropagation(),a.preventDefault(),i.focusInput())},i.onMenuMouseMove=function(a){i.blockOptionHover=!1},i.onControlMouseDown=function(a){if(!a.defaultPrevented){var l=i.props.openMenuOnClick;i.state.isFocused?i.props.menuIsOpen?a.target.tagName!=="INPUT"&&a.target.tagName!=="TEXTAREA"&&i.onMenuClose():l&&i.openMenu("first"):(l&&(i.openAfterFocus=!0),i.focusInput()),a.target.tagName!=="INPUT"&&a.target.tagName!=="TEXTAREA"&&a.preventDefault()}},i.onDropdownIndicatorMouseDown=function(a){if(!(a&&a.type==="mousedown"&&a.button!==0)&&!i.props.isDisabled){var l=i.props,c=l.isMulti,d=l.menuIsOpen;i.focusInput(),d?(i.setState({inputIsHiddenAfterUpdate:!c}),i.onMenuClose()):i.openMenu("first"),a.preventDefault()}},i.onClearIndicatorMouseDown=function(a){a&&a.type==="mousedown"&&a.button!==0||(i.clearValue(),a.preventDefault(),i.openAfterFocus=!1,a.type==="touchend"?i.focusInput():setTimeout(function(){return i.focusInput()}))},i.onScroll=function(a){typeof i.props.closeMenuOnScroll=="boolean"?a.target instanceof HTMLElement&&Bn(a.target)&&i.props.onMenuClose():typeof i.props.closeMenuOnScroll=="function"&&i.props.closeMenuOnScroll(a)&&i.props.onMenuClose()},i.onCompositionStart=function(){i.isComposing=!0},i.onCompositionEnd=function(){i.isComposing=!1},i.onTouchStart=function(a){var l=a.touches,c=l&&l.item(0);c&&(i.initialTouchX=c.clientX,i.initialTouchY=c.clientY,i.userIsDragging=!1)},i.onTouchMove=function(a){var l=a.touches,c=l&&l.item(0);if(c){var d=Math.abs(c.clientX-i.initialTouchX),f=Math.abs(c.clientY-i.initialTouchY),h=5;i.userIsDragging=d>h||f>h}},i.onTouchEnd=function(a){i.userIsDragging||(i.controlRef&&!i.controlRef.contains(a.target)&&i.menuListRef&&!i.menuListRef.contains(a.target)&&i.blurInput(),i.initialTouchX=0,i.initialTouchY=0)},i.onControlTouchEnd=function(a){i.userIsDragging||i.onControlMouseDown(a)},i.onClearIndicatorTouchEnd=function(a){i.userIsDragging||i.onClearIndicatorMouseDown(a)},i.onDropdownIndicatorTouchEnd=function(a){i.userIsDragging||i.onDropdownIndicatorMouseDown(a)},i.handleInputChange=function(a){var l=i.props.inputValue,c=a.currentTarget.value;i.setState({inputIsHiddenAfterUpdate:!1}),i.onInputChange(c,{action:"input-change",prevInputValue:l}),i.props.menuIsOpen||i.onMenuOpen()},i.onInputFocus=function(a){i.props.onFocus&&i.props.onFocus(a),i.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(i.openAfterFocus||i.props.openMenuOnFocus)&&i.openMenu("first"),i.openAfterFocus=!1},i.onInputBlur=function(a){var l=i.props.inputValue;if(i.menuListRef&&i.menuListRef.contains(document.activeElement)){i.inputRef.focus();return}i.props.onBlur&&i.props.onBlur(a),i.onInputChange("",{action:"input-blur",prevInputValue:l}),i.onMenuClose(),i.setState({focusedValue:null,isFocused:!1})},i.onOptionHover=function(a){if(!(i.blockOptionHover||i.state.focusedOption===a)){var l=i.getFocusableOptions(),c=l.indexOf(a);i.setState({focusedOption:a,focusedOptionId:c>-1?i.getFocusedOptionId(a):null})}},i.shouldHideSelectedOptions=function(){return ju(i.props)},i.onValueInputFocus=function(a){a.preventDefault(),a.stopPropagation(),i.focus()},i.onKeyDown=function(a){var l=i.props,c=l.isMulti,d=l.backspaceRemovesValue,f=l.escapeClearsValue,h=l.inputValue,g=l.isClearable,m=l.isDisabled,p=l.menuIsOpen,b=l.onKeyDown,C=l.tabSelectsValue,I=l.openMenuOnFocus,x=i.state,v=x.focusedOption,A=x.focusedValue,S=x.selectValue;if(!m&&!(typeof b=="function"&&(b(a),a.defaultPrevented))){switch(i.blockOptionHover=!0,a.key){case"ArrowLeft":if(!c||h)return;i.focusValue("previous");break;case"ArrowRight":if(!c||h)return;i.focusValue("next");break;case"Delete":case"Backspace":if(h)return;if(A)i.removeValue(A);else{if(!d)return;c?i.popValue():g&&i.clearValue()}break;case"Tab":if(i.isComposing||a.shiftKey||!p||!C||!v||I&&i.isOptionSelected(v,S))return;i.selectOption(v);break;case"Enter":if(a.keyCode===229)break;if(p){if(!v||i.isComposing)return;i.selectOption(v);break}return;case"Escape":p?(i.setState({inputIsHiddenAfterUpdate:!1}),i.onInputChange("",{action:"menu-close",prevInputValue:h}),i.onMenuClose()):g&&f&&i.clearValue();break;case" ":if(h)return;if(!p){i.openMenu("first");break}if(!v)return;i.selectOption(v);break;case"ArrowUp":p?i.focusOption("up"):i.openMenu("last");break;case"ArrowDown":p?i.focusOption("down"):i.openMenu("first");break;case"PageUp":if(!p)return;i.focusOption("pageup");break;case"PageDown":if(!p)return;i.focusOption("pagedown");break;case"Home":if(!p)return;i.focusOption("first");break;case"End":if(!p)return;i.focusOption("last");break;default:return}a.preventDefault()}},i.state.instancePrefix="react-select-"+(i.props.instanceId||++qb),i.state.selectValue=lu(r.value),r.menuIsOpen&&i.state.selectValue.length){var s=i.getFocusableOptionsWithIds(),o=i.buildFocusableOptions(),u=o.indexOf(i.state.selectValue[0]);i.state.focusableOptionsWithIds=s,i.state.focusedOption=o[u],i.state.focusedOptionId=Sr(s,o[u])}return i}return mp(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&&fu(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(i){var s=this.props,o=s.isDisabled,u=s.menuIsOpen,a=this.state.isFocused;(a&&!o&&i.isDisabled||a&&u&&!i.menuIsOpen)&&this.focusInput(),a&&o&&!i.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!a&&!o&&i.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(fu(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(i,s){this.props.onInputChange(i,s)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(i){var s=this,o=this.state,u=o.selectValue,a=o.isFocused,l=this.buildFocusableOptions(),c=i==="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 s.onMenuOpen()})}},{key:"focusValue",value:function(i){var s=this.state,o=s.selectValue,u=s.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var a=o.indexOf(u);u||(a=-1);var l=o.length-1,c=-1;if(o.length){switch(i){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:o[c]})}}}},{key:"focusOption",value:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"first",s=this.props.pageSize,o=this.state.focusedOption,u=this.getFocusableOptions();if(u.length){var a=0,l=u.indexOf(o);o||(l=-1),i==="up"?a=l>0?l-1:u.length-1:i==="down"?a=(l+1)%u.length:i==="pageup"?(a=l-s,a<0&&(a=0)):i==="pagedown"?(a=l+s,a>u.length-1&&(a=u.length-1)):i==="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(Ar):w(w({},Ar),this.props.theme):Ar}},{key:"getCommonProps",value:function(){var i=this.clearValue,s=this.cx,o=this.getStyles,u=this.getClassNames,a=this.getValue,l=this.selectOption,c=this.setValue,d=this.props,f=d.isMulti,h=d.isRtl,g=d.options,m=this.hasValue();return{clearValue:i,cx:s,getStyles:o,getClassNames:u,getValue:a,hasValue:m,isMulti:f,isRtl:h,options:g,selectOption:l,selectProps:d,setValue:c,theme:this.getTheme()}}},{key:"hasValue",value:function(){var i=this.state.selectValue;return i.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var i=this.props,s=i.isClearable,o=i.isMulti;return s===void 0?o:s}},{key:"isOptionDisabled",value:function(i,s){return zu(this.props,i,s)}},{key:"isOptionSelected",value:function(i,s){return ku(this.props,i,s)}},{key:"filterOption",value:function(i,s){return Yu(this.props,i,s)}},{key:"formatOptionLabel",value:function(i,s){if(typeof this.props.formatOptionLabel=="function"){var o=this.props.inputValue,u=this.state.selectValue;return this.props.formatOptionLabel(i,{context:s,inputValue:o,selectValue:u})}else return this.getOptionLabel(i)}},{key:"formatGroupLabel",value:function(i){return this.props.formatGroupLabel(i)}},{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 i=this.props,s=i.isDisabled,o=i.isSearchable,u=i.inputId,a=i.inputValue,l=i.tabIndex,c=i.form,d=i.menuIsOpen,f=i.required,h=this.getComponents(),g=h.Input,m=this.state,p=m.inputIsHidden,b=m.ariaSelection,C=this.commonProps,I=u||this.getElementId("input"),x=w(w(w({"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")}),!o&&{"aria-readonly":!0}),this.hasValue()?(b==null?void 0:b.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return o?M.createElement(g,B({},C,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:I,innerRef:this.getInputRef,isDisabled:s,isHidden:p,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:l,form:c,type:"text",value:a},x)):M.createElement(Ab,B({id:I,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Gn,onFocus:this.onInputFocus,disabled:s,tabIndex:l,inputMode:"none",form:c,value:""},x))}},{key:"renderPlaceholderOrValue",value:function(){var i=this,s=this.getComponents(),o=s.MultiValue,u=s.MultiValueContainer,a=s.MultiValueLabel,l=s.MultiValueRemove,c=s.SingleValue,d=s.Placeholder,f=this.commonProps,h=this.props,g=h.controlShouldRenderValue,m=h.isDisabled,p=h.isMulti,b=h.inputValue,C=h.placeholder,I=this.state,x=I.selectValue,v=I.focusedValue,A=I.isFocused;if(!this.hasValue()||!g)return b?null:M.createElement(d,B({},f,{key:"placeholder",isDisabled:m,isFocused:A,innerProps:{id:this.getElementId("placeholder")}}),C);if(p)return x.map(function(P,F){var O=P===v,k="".concat(i.getOptionLabel(P),"-").concat(i.getOptionValue(P));return M.createElement(o,B({},f,{components:{Container:u,Label:a,Remove:l},isFocused:O,isDisabled:m,key:k,index:F,removeProps:{onClick:function(){return i.removeValue(P)},onTouchEnd:function(){return i.removeValue(P)},onMouseDown:function(pe){pe.preventDefault()}},data:P}),i.formatOptionLabel(P,"value"))});if(b)return null;var S=x[0];return M.createElement(c,B({},f,{data:S,isDisabled:m}),this.formatOptionLabel(S,"value"))}},{key:"renderClearIndicator",value:function(){var i=this.getComponents(),s=i.ClearIndicator,o=this.commonProps,u=this.props,a=u.isDisabled,l=u.isLoading,c=this.state.isFocused;if(!this.isClearable()||!s||a||!this.hasValue()||l)return null;var d={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return M.createElement(s,B({},o,{innerProps:d,isFocused:c}))}},{key:"renderLoadingIndicator",value:function(){var i=this.getComponents(),s=i.LoadingIndicator,o=this.commonProps,u=this.props,a=u.isDisabled,l=u.isLoading,c=this.state.isFocused;if(!s||!l)return null;var d={"aria-hidden":"true"};return M.createElement(s,B({},o,{innerProps:d,isDisabled:a,isFocused:c}))}},{key:"renderIndicatorSeparator",value:function(){var i=this.getComponents(),s=i.DropdownIndicator,o=i.IndicatorSeparator;if(!s||!o)return null;var u=this.commonProps,a=this.props.isDisabled,l=this.state.isFocused;return M.createElement(o,B({},u,{isDisabled:a,isFocused:l}))}},{key:"renderDropdownIndicator",value:function(){var i=this.getComponents(),s=i.DropdownIndicator;if(!s)return null;var o=this.commonProps,u=this.props.isDisabled,a=this.state.isFocused,l={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return M.createElement(s,B({},o,{innerProps:l,isDisabled:u,isFocused:a}))}},{key:"renderMenu",value:function(){var i=this,s=this.getComponents(),o=s.Group,u=s.GroupHeading,a=s.Menu,l=s.MenuList,c=s.MenuPortal,d=s.LoadingMessage,f=s.NoOptionsMessage,h=s.Option,g=this.commonProps,m=this.state.focusedOption,p=this.props,b=p.captureMenuScroll,C=p.inputValue,I=p.isLoading,x=p.loadingMessage,v=p.minMenuHeight,A=p.maxMenuHeight,S=p.menuIsOpen,P=p.menuPlacement,F=p.menuPosition,O=p.menuPortalTarget,k=p.menuShouldBlockScroll,U=p.menuShouldScrollIntoView,pe=p.noOptionsMessage,ue=p.onMenuScrollToTop,_=p.onMenuScrollToBottom;if(!S)return null;var j=function(se,xe){var Ge=se.type,me=se.data,Be=se.isDisabled,Ae=se.isSelected,bt=se.label,Er=se.value,Ln=m===me,V=Be?void 0:function(){return i.onOptionHover(me)},zt=Be?void 0:function(){return i.selectOption(me)},Ke="".concat(i.getElementId("option"),"-").concat(xe),Xn={id:Ke,onClick:zt,onMouseMove:V,onMouseOver:V,tabIndex:-1,role:"option","aria-selected":i.isAppleDevice?void 0:Ae};return M.createElement(h,B({},g,{innerProps:Xn,data:me,isDisabled:Be,isSelected:Ae,key:Ke,label:bt,type:Ge,value:Er,isFocused:Ln,innerRef:Ln?i.getFocusedOptionRef:void 0}),i.formatOptionLabel(se.data,"menu"))},X;if(this.hasOptions())X=this.getCategorizedOptions().map(function($){if($.type==="group"){var se=$.data,xe=$.options,Ge=$.index,me="".concat(i.getElementId("group"),"-").concat(Ge),Be="".concat(me,"-heading");return M.createElement(o,B({},g,{key:me,data:se,options:xe,Heading:u,headingProps:{id:Be,data:$.data},label:i.formatGroupLabel($.data)}),$.options.map(function(Ae){return j(Ae,"".concat(Ge,"-").concat(Ae.index))}))}else if($.type==="option")return j($,"".concat($.index))});else if(I){var Z=x({inputValue:C});if(Z===null)return null;X=M.createElement(d,g,Z)}else{var le=pe({inputValue:C});if(le===null)return null;X=M.createElement(f,g,le)}var re={minMenuHeight:v,maxMenuHeight:A,menuPlacement:P,menuPosition:F,menuShouldScrollIntoView:U},gt=M.createElement(qm,B({},g,re),function($){var se=$.ref,xe=$.placerProps,Ge=xe.placement,me=xe.maxHeight;return M.createElement(a,B({},g,re,{innerRef:se,innerProps:{onMouseDown:i.onMenuMouseDown,onMouseMove:i.onMenuMouseMove},isLoading:I,placement:Ge}),M.createElement(Gb,{captureEnabled:b,onTopArrive:ue,onBottomArrive:_,lockEnabled:k},function(Be){return M.createElement(l,B({},g,{innerRef:function(bt){i.getMenuListRef(bt),Be(bt)},innerProps:{role:"listbox","aria-multiselectable":g.isMulti,id:i.getElementId("listbox")},isLoading:I,maxHeight:me,focusedOption:m}),X)}))});return O||F==="fixed"?M.createElement(c,B({},g,{appendTo:O,controlElement:this.controlRef,menuPlacement:P,menuPosition:F}),gt):gt}},{key:"renderFormField",value:function(){var i=this,s=this.props,o=s.delimiter,u=s.isDisabled,a=s.isMulti,l=s.name,c=s.required,d=this.state.selectValue;if(c&&!this.hasValue()&&!u)return M.createElement(Db,{name:l,onFocus:this.onValueInputFocus});if(!(!l||u))if(a)if(o){var f=d.map(function(m){return i.getOptionValue(m)}).join(o);return M.createElement("input",{name:l,type:"hidden",value:f})}else{var h=d.length>0?d.map(function(m,p){return M.createElement("input",{key:"i-".concat(p),name:l,type:"hidden",value:i.getOptionValue(m)})}):M.createElement("input",{name:l,type:"hidden",value:""});return M.createElement("div",null,h)}else{var g=d[0]?this.getOptionValue(d[0]):"";return M.createElement("input",{name:l,type:"hidden",value:g})}}},{key:"renderLiveRegion",value:function(){var i=this.commonProps,s=this.state,o=s.ariaSelection,u=s.focusedOption,a=s.focusedValue,l=s.isFocused,c=s.selectValue,d=this.getFocusableOptions();return M.createElement(bb,B({},i,{id:this.getElementId("live-region"),ariaSelection:o,focusedOption:u,focusedValue:a,isFocused:l,selectValue:c,focusableOptions:d,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var i=this.getComponents(),s=i.Control,o=i.IndicatorsContainer,u=i.SelectContainer,a=i.ValueContainer,l=this.props,c=l.className,d=l.id,f=l.isDisabled,h=l.menuIsOpen,g=this.state.isFocused,m=this.commonProps=this.getCommonProps();return M.createElement(u,B({},m,{className:c,innerProps:{id:d,onKeyDown:this.onKeyDown},isDisabled:f,isFocused:g}),this.renderLiveRegion(),M.createElement(s,B({},m,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:f,isFocused:g,menuIsOpen:h}),M.createElement(a,B({},m,{isDisabled:f}),this.renderPlaceholderOrValue(),this.renderInput()),M.createElement(o,B({},m,{isDisabled:f}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(i,s){var o=s.prevProps,u=s.clearFocusValueOnUpdate,a=s.inputIsHiddenAfterUpdate,l=s.ariaSelection,c=s.isFocused,d=s.prevWasFocused,f=s.instancePrefix,h=i.options,g=i.value,m=i.menuIsOpen,p=i.inputValue,b=i.isMulti,C=lu(g),I={};if(o&&(g!==o.value||h!==o.options||m!==o.menuIsOpen||p!==o.inputValue)){var x=m?$b(i,C):[],v=m?Wu(On(i,C),"".concat(f,"-option")):[],A=u?Qb(s,C):null,S=Kb(s,x),P=Sr(v,S);I={selectValue:C,focusedOption:S,focusedOptionId:P,focusableOptionsWithIds:v,focusedValue:A,clearFocusValueOnUpdate:!1}}var F=a!=null&&i!==o?{inputIsHidden:a,inputIsHiddenAfterUpdate:void 0}:{},O=l,k=c&&d;return c&&!k&&(O={value:Rn(b,C,C[0]||null),options:C,action:"initial-input-focus"},k=!d),(l==null?void 0:l.action)==="initial-input-focus"&&(O=null),w(w(w({},I),F),{},{prevProps:i,ariaSelection:O,prevWasFocused:k})}}]),n}(y.Component);Ju.defaultProps=_b;var e0=y.forwardRef(function(e,t){var n=hp(e);return M.createElement(Ju,B({ref:t},n))}),t0=e0;const mt=e=>{const{children:t,sx:n,...r}=e;return E.jsx("div",{className:Ce.form,style:n,...r,children:t})},n0={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":t.isFocused?"#e6e7ea":null,color:t.isSelected?"#ffffff":(t.isFocused,"#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"})},i0=e=>{const{children:t,sx:n,...r}=e;return E.jsx("div",{className:Ce["form-group"],style:n,...r,children:t})},r0=e=>{const{children:t,sx:n,...r}=e,i=y.Children.toArray(t).filter(a=>a.type.displayName==="biznext-ui-input-label"),s=y.Children.toArray(t).filter(a=>a.type.displayName==="biznext-ui-input-control"),o=y.Children.toArray(t).filter(a=>a.type.displayName==="biznext-ui-input-error-message"),u=o[0]&&o[0].props.children&&o[0].props.children.length>0;return E.jsxs("div",{className:ze(Ce["form-input-group"],u&&Ce["validation-error"]),style:n,...r,children:[i,E.jsxs("div",{className:Ce["form-input-control-group"],children:[s,E.jsx("span",{className:Ce["form-input-group-error-text"],children:o})]})]})},Uu=e=>{const{required:t=!1,children:n,sx:r,...i}=e;return E.jsx("label",{className:ze(Ce["form-input-group-label"],t&&Ce.required),style:r,...i,children:n})},_u=y.forwardRef((e,t)=>{const{controlType:n,focus:r,focusElement:i,sx:s,placeholder:o="",isSearchable:u=!0,isClearable:a=!0,...l}=e;let c=E.jsx(E.Fragment,{});const d=y.useRef(null);switch(y.useEffect(()=>{d.current&&d.current.focus()},[r]),y.useEffect(()=>{d.current&&d.current.focus()},[i]),n){case"input":c=E.jsx("input",{className:Ce["form-input-control"],placeholder:o,ref:r?d:t,style:s,...l});break;case"select":c=E.jsx(t0,{styles:n0,className:Ce["form-select-control"],classNamePrefix:"biznext-ui-",menuPortalTarget:document.body,menuPosition:"absolute",menuShouldScrollIntoView:!1,ref:r?d:t,placeholder:o?`Select ${o}`:"Select...",isSearchable:u,isClearable:a,noOptionsMessage:()=>"No Results Found!",...l});break;case"textarea":c=E.jsx("textarea",{className:Ce["form-input-control"],placeholder:o,style:s,ref:r?d:t,...l});break;default:c=E.jsx(E.Fragment,{});break}return c}),$u=e=>{const{children:t}=e;return t};Uu.displayName="biznext-ui-input-label",_u.displayName="biznext-ui-input-control",$u.displayName="biznext-ui-input-error-message",mt.Group=i0,mt.InputGroup=r0,mt.Label=Uu,mt.Control=_u,mt.ErrorMessage=$u,ce.BiznextUIProvider=Kh,ce.Form=mt,ce.Modal=ct,ce.useConfirmDialog=op,ce.useToast=Vr,Object.defineProperty(ce,Symbol.toStringTag,{value:"Module"})});
|