1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[648],{4147:function(t,e,n){"use strict";n.d(e,{o:function(){return g}});var i=n(9585),r=n(5440),o=n.n(r),s=n(2784),a=n(1085),l=n(1201),u=n(7383),c=n(6577),h=n.n(c),d=n(368),f=n(2454),p=n(2796),m=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&0>e.indexOf(i)&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,i=Object.getOwnPropertySymbols(t);r<i.length;r++)0>e.indexOf(i[r])&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]]);return n};let g=(0,a.K)((0,d.c)(t=>{var e,{editable:n=!0,imageParams:r,field:o,mediaUrlPrefix:a,fill:c,priority:d}=t,f=m(t,["editable","imageParams","field","mediaUrlPrefix","fill","priority"]);let g=s.useContext(l.sy);if(f.src)throw Error("Detected src prop. If you wish to use src, use next/image directly.");if(!o||!o.editable&&(0,p.isFieldValueEmpty)(o))return null;if(n&&o.editable)return(0,u.Y)(o,r,a,f);let v=o.src?o:o.value;if(!v)return null;let y=f.unoptimized||(null===(e=g.context)||void 0===e?void 0:e.pageState)!==p.LayoutServicePageState.Normal,w=Object.assign(Object.assign(Object.assign({},v),f),{fill:c,priority:d,src:i.mediaApi.updateImageUrl(v.src,r,a),unoptimized:y}),b=Object.assign(Object.assign({},w),{src:i.mediaApi.replaceMediaUrlPrefix(w.src,a)});return(b.fill&&(delete b.width,delete b.height),w)?s.createElement(h(),Object.assign({alt:""},b)):null},{defaultEmptyFieldEditingComponent:f.w}));g.propTypes={field:o().oneOfType([o().shape({src:o().string.isRequired}),o().shape({value:o().object,editable:o().string})]),editable:o().bool,mediaUrlPrefix:o().instanceOf(RegExp),imageParams:o().objectOf(o().oneOfType([o().number.isRequired,o().string.isRequired]).isRequired),emptyFieldEditingComponent:o().oneOfType([o().object,o().func])},g.displayName="NextImage"},7383:function(t,e,n){"use strict";n.d(e,{E:function(){return g},Y:function(){return m}});var i=n(9585),r=n(5440),o=n.n(r),s=n(2784),a=n(2835),l=n(1085),u=n(368),c=n(2454),h=n(2796),d=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&0>e.indexOf(i)&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,i=Object.getOwnPropertySymbols(t);r<i.length;r++)0>e.indexOf(i[r])&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]]);return n};let f=(t,...e)=>s.createElement("span",Object.assign({className:"sc-image-wrapper"},e,{dangerouslySetInnerHTML:{__html:t}})),p=(t,e,n)=>{var{src:r,srcSet:o}=t,s=d(t,["src","srcSet"]);if(!r)return null;(0,a.yn)(s);let l=Object.assign({},s),u=i.mediaApi.updateImageUrl(r,e,n);return o&&(l.srcSet=i.mediaApi.getSrcSet(u,o,e,n)),l.src=u,l},m=(t,e,n,r)=>{let o=i.mediaApi.findEditorImageTag(t.editable);if(!o)return f(t.editable);let s=p(Object.assign(Object.assign({},(0,a.WF)(o.attrs)),r),e,n);if(!s)return f(t.editable);let l=`<img ${(0,a.No)(s)} />`;return f(t.editable.replace(o.imgTag,l))},g=(0,l.K)((0,u.c)(t=>{var{editable:e=!0,imageParams:n,field:i,mediaUrlPrefix:r}=t,o=d(t,["editable","imageParams","field","mediaUrlPrefix"]);if(!i||!i.editable&&(0,h.isFieldValueEmpty)(i))return null;if(e&&i.editable)return m(i,n,r,o);let a=i.src?i:i.value;if(!a)return null;a.metadata&&delete a.metadata;let l=p(Object.assign(Object.assign({},a),o),n,r);return l?s.createElement("img",Object.assign({},l)):null},{defaultEmptyFieldEditingComponent:c.w}));g.propTypes={field:o().oneOfType([o().shape({src:o().string}),o().shape({value:o().object,editable:o().string})]),editable:o().bool,mediaUrlPrefix:o().instanceOf(RegExp),imageParams:o().objectOf(o().oneOfType([o().number.isRequired,o().string.isRequired]).isRequired),emptyFieldEditingComponent:o().oneOfType([o().object,o().func])},g.displayName="Image"},2835:function(t,e,n){"use strict";n.d(e,{No:function(){return c},WF:function(){return l},jw:function(){return h},yn:function(){return u}});var i=n(2796),r=n(6664),o=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&0>e.indexOf(i)&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,i=Object.getOwnPropertySymbols(t);r<i.length;r++)0>e.indexOf(i[r])&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]]);return n};let s=t=>t.replace(/^.|-./g,(t,e)=>0===e?t.toLowerCase():t.substr(1).toUpperCase()),a=(t="")=>{let e=(0,r.Qc)(t,{preserveNumbers:!0});return Object.keys(e).reduce((t,n)=>(t[s(n)]=e[n],t),{})},l=t=>t?Object.keys(t).reduce((e,n)=>{switch(n){case"class":e.className=t.class;break;case"style":e.style=a(t.style);break;default:e[n]=t[n]}return e},{}):[],u=t=>{if(t.class){if(t.className){let e=t.className;e+=` ${t.class}`,t.className=e}else t.className=t.class;delete t.class}},c=t=>{let{className:e}=t,n=Object.entries(o(t,["className"])).map(([t,e])=>{if("object"==typeof e){let n=JSON.stringify(e).replace(/"|{|}/g,"").replace(/,/g,";");return`${t}="${n}"`}return`${t}="${e}"`});return e&&n.push(`class="${e}"`),n.join(" ")},h=t=>Object.entries(t).reduce((e,[n])=>(e[n]=(0,i.getFieldValue)(t,n),e),{})},9585:function(t,e,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(t,e,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(e,n);(!r||("get"in r?!e.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,r)}:function(t,e,n,i){void 0===i&&(i=n),t[i]=e[n]}),r=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),o=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&i(e,t,n
1);return r(e,t),e};Object.defineProperty(e,"__esModule",{value:!0}),e.mediaApi=void 0;let s=o(n(9409));e.mediaApi=s},9409:function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.getSrcSet=e.updateImageUrl=e.replaceMediaUrlPrefix=e.getRequiredParams=e.findEditorImageTag=void 0;let r=i(n(5681)),o=i(n(4846)),s=/<img([^>]+)\/>/i,a=/([^=\s]+)(="([^"]*)")?/gi,l=/\/([-~]{1})\/media\//i;e.findEditorImageTag=t=>{let e=t.match(s);if(!e||e.length<2)return null;let n={},i=a.exec(e[1]);for(;null!==i;)n[i[1]]=(0,r.default)(i[3]),i=a.exec(e[1]);return{imgTag:e[0],attrs:n}},e.getRequiredParams=t=>{let{rev:e,db:n,la:i,vs:r,ts:o}=t;return{rev:e,db:n,la:i,vs:r,ts:o}},e.replaceMediaUrlPrefix=(t,e=l)=>{let n=(0,o.default)(t,{},!0),i=e.exec(n.pathname);return i&&i.length>1&&n.set("pathname",n.pathname.replace(e,`/${i[1]}/jssmedia/`)),n.toString()},e.updateImageUrl=(t,n,i=l)=>{if(!n||0===Object.keys(n).length)return t;"undefined"==typeof window||window.global||(window.global={});let r=(0,o.default)((0,e.replaceMediaUrlPrefix)(t,i),{},!0),s=(0,e.getRequiredParams)(r.query),a=Object.assign({},n);return Object.entries(s).forEach(([t,e])=>{e&&(a[t]=e)}),r.set("query",a),r.toString()},e.getSrcSet=(t,n,i,r)=>n.map(n=>{let o=Object.assign(Object.assign({},i),n),s=o.w||o.mw;return s?`${(0,e.updateImageUrl)(t,o,r)} ${s}w`:null}).filter(t=>t).join(", ")},5681:function(t,e,n){var i,r=1/0,o=/&(?:amp|lt|gt|quot|#39|#96);/g,s=RegExp(o.source),a="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,l="object"==typeof self&&self&&self.Object===Object&&self,u=a||l||Function("return this")(),c=(i={"&":"&","<":"<",">":">",""":'"',"'":"'","`":"`"},function(t){return null==i?void 0:i[t]}),h=Object.prototype.toString,d=u.Symbol,f=d?d.prototype:void 0,p=f?f.toString:void 0;t.exports=function(t){var e;return(t=null==(e=t)?"":function(t){if("string"==typeof t)return t;if("symbol"==typeof(e=t)||e&&"object"==typeof e&&"[object Symbol]"==h.call(e))return p?p.call(t):"";var e,n=t+"";return"0"==n&&1/t==-r?"-0":n}(e))&&s.test(t)?t.replace(o,c):t}},7375:function(t,e){"use strict";var n,i=Object.prototype.hasOwnProperty;function r(t){try{return decodeURIComponent(t.replace(/\+/g," "))}catch(t){return null}}function o(t){try{return encodeURIComponent(t)}catch(t){return null}}e.stringify=function(t,e){var r,s,a=[];for(s in"string"!=typeof(e=e||"")&&(e="?"),t)if(i.call(t,s)){if(!(r=t[s])&&(null===r||r===n||isNaN(r))&&(r=""),s=o(s),r=o(r),null===s||null===r)continue;a.push(s+"="+r)}return a.length?e+a.join("&"):""},e.parse=function(t){for(var e,n=/([^=?#&]+)=?([^&]*)/g,i={};e=n.exec(t);){var o=r(e[1]),s=r(e[2]);null===o||null===s||o in i||(i[o]=s)}return i}},7245:function(t){"use strict";t.exports=function(t,e){if(e=e.split(":")[0],!(t=+t))return!1;switch(e){case"http":case"ws":return 80!==t;case"https":case"wss":return 443!==t;case"ftp":return 21!==t;case"gopher":return 70!==t;case"file":return!1}return 0!==t}},6664:function(t){t.exports.Qc=function(t,e){var n=(e=e||{}).preserveNumbers,i={};return(function(t){for(var e,n=[],i=0,r=/url\([^\)]+$/,o="";i<t.length;){if(-1===(e=t.indexOf(";",i))&&(e=t.length),o+=t.substring(i,e),r.test(o)){o+=";",i=e+1;continue}n.push(o),o="",i=e+1}return n})(t).map(function(t){return t.trim()}).filter(Boolean).forEach(function(t){var e,r=t.indexOf(":"),o=t.substr(0,r).trim(),s=t.substr(r+1).trim();n&&!isNaN(parseFloat(e=s))&&isFinite(e)&&(s=Number(s)),i[o]=s}),i}},4846:function(t,e,n){"use strict";var i=n(7245),r=n(7375),o=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,s=/[\n\r\t]/g,a=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,l=/:\d+$/,u=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,c=/^[a-zA-Z]:/;function h(t){return(t||"").toString().replace(o,"")}var d=[["#","hash"],["?","query"],function(t,e){return m(e.protocol)?t.replace(/\\/g,"/"):t},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],f={hash:1,query:1};function p(t){"undefined"!=typeof window?e=window:void 0!==n.g?e=n.g:"undefined"!=typeof self?e=self:e={};var e,i,r=e.location||{},o={},s=typeof(t=t||r);if("blob:"===t.protocol)o=new v(unescape(t.pathname),{});else if("string"===s)for(i in o=new v(t,{}),f)delete o[i];else if("object"===s){for(i in t)i in f||(o[i]=t[i]);void 0===o.slashes&&(o.slashes=a.test(t.href))}return o}function m(t){return"file:"===t||"ftp:"===t||"http:"===t||"https:"===t||"ws:"===t||"wss:"===t}function g(t,e){t=(t=h(t)).replace(s,""),e=e||{};var n,i=u.exec(t),r=i[1]?i[1].toLowerCase():"",o=!!i[2],a=!!i[3],l=0;return o?a?(n=i[2]+i[3]+i[4],l=i[2].length+i[3].length):(n=i[2]+i[4],l=i[2].length):a?(n=i[3]+i[4],l=i[3].length):n=i[4],"file:"===r?l>=2&&(n=n.slice(2)):m(r)?n=i[4]:r?o&&(n=n.slice(2)):l>=2&&m(e.protocol)&&(n=i[4]),{protocol:r,slashes:o||m(r),slashesCount:l,rest:n}}function v(t,e,n){if(t=(t=h(t)).replace(s,""),!(this instanceof v))return new v(t,e,n);var o,a,l,u,f,y,w=d.slice(),b=typeof e,x=0;for("object"!==b&&"string"!==b&&(n=e,e=null),n&&"function"!=typeof n&&(n=r.parse),o=!(a=g(t||"",e=p(e))).protocol&&!a.slashes,this.slashes=a.slashes||o&&e.slashes,this.protocol=a.protocol||e.protocol||"",t=a.rest,("file:"===a.protocol&&(2!==a.slashesCount||c.test(t))||!a.slashes&&(a.protocol||a.slashesCount<2||!m(this.protocol)))&&(w[3]=[/(.*)/,"pathname"]);x<w.length;x++){if("function"==typeof(u=w[x])){t=u(t,this);continue}l=u[0],y=u[1],l!=l?this[y]=t:"string"==typeof l?~(f="@"===l?t.lastIndexOf(l):t.indexOf(l))&&("number"==typeof u[2]?(this[y]=t.slice(0,f),t=t.slice(f+u[2])):(this[y]=t.slice(f),t=t.slice(0,f))):(f=l.exec(t))&&(this[y]=f[1],t=t.slice(0,f.index)),this[y]=this[y]||o&&u[3]&&e[y]||"",u[4]&&(this[y]=this[y].toLowerCase())}n&&(this.query=n(this.query)),o&&e.slashes&&"/"!==this.pathname.charAt(0)&&(""!==this.pathname||""!==e.pathname)&&(this.pathname=function(t,e){if(""===t)return e;for(var n=(e||"/").split("/").slice(0,-1).concat(t.split("/")),i=n.length,r=n[i-1],o=!1,s=0;i--;)"."===n[i]?n.splice(i,1):".."===n[i]?(n.splice(i,1),s++):s&&(0===i&&(o=!0),n.splice(i,1),s--);return o&&n.unshift(""),("."===r||".."===r)&&n.push(""),n.join("/")}(this.pathname,e.pathname)),"/"!==this.pathname.charAt(0)&&m(this.protocol)&&(this.pathname="/"+this.pathname),i(this.port,this.protocol)||(this.host=this.hostname,this.port=""),this.username=this.password="",this.auth&&(~(f=this.auth.indexOf(":"))?(this.username=this.auth.slice(0,f),this.username=encodeURIComponent(decodeURIComponent(this.username)),this.password=this.auth.slice(f+1),this.password=encodeURIComponent(decodeURIComponent(this.password))):this.username=encodeURIComponent(decodeURIComponent(this.auth)),this.auth=this.password?this.username+":"+this.password:this.username),this.origin="file:"!==this.protocol&&m(this.protocol)&&this.host?this.protocol+"//"+this.host:"null",this.href=this.toString()}v.prototype={set:function(t,e,n){switch(t){case"query":"string"==typeof e&&e.length&&(e=(n||r.parse)(e)),this[t]=e;break;case"port":this[t]=e,i(e,this.protocol)?e&&(this.host=this.hostname+":"+e):(this.host=this.hostname,this[t]="");break;case"hostname":this[t]=e,this.port&&(e+=":"+this.port),this.host=e;break;case"host":this[t]=e,l.test(e)?(e=e.split(":"),this.port=e.pop(),this.hostname=e.join(":")):(this.hostname=e,this.port="");break;case"protocol":this.protocol=e.toLowerCase(),this.slashes=!n;break;case"pathname":case"hash":if(e){var o="pathname"===t?"/":"#";this[t]=e.charAt(0)!==o?o+e:e}else this[t]=e;break;case"username":case"password":this[t]=encodeURIComponent(e);break;case"auth":var s=e.indexOf(":");~s?(this.username=e.slice(0,s),this.username=encodeURIComponent(decodeURIComponent(this.username)),this.password=e.slice(s+1),this.password=encodeURIComponent(decodeURIComponent(this.password))):this.username=encodeURIComponent(decodeURIComponent(e))}for(var a=0;a<d.length;a++){var u=d[a];u[4]&&(this[u[1]]=this[u[1]].toLowerCase())}return this.auth=this.password?this.username+":"+this.password:this.username,this.origin="file:"!==this.protocol&&m(this.protocol)&&this.host?this.protocol+"//"+this.host:"null",this.href=this.toString(),this},toString:function(t){t&&"function"==typeof t||(t=r.stringify);var e,n=this.host,i=this.protocol;i&&":"!==i.charAt(i.length-1)&&(i+=":");var o=i+(this.protocol&&this.slashes||m(this.protocol)?"//":"");return this.username?(o+=this.username,this.password&&(o+=":"+this.password),o+="@"):this.password?o+=":"+this.password+"@":"file:"!==this.protocol&&m(this.protocol)&&!n&&"/"!==this.pathname&&(o+="@"),(":"===n[n.length-1]||l.test(this.hostname)&&!this.port)&&(n+=":"),o+=n+this.pathname,(e="object"==typeof this.query?t(this.query):this.query)&&(o+="?"!==e.charAt(0)?"?"+e:e),this.hash&&(o+=this.hash),o}},v.extractProtocol=g,v.location=p,v.trimLeft=h,v.qs=r,t.exports=v},3114:function(t,e,n){"use strict";n.d(e,{M:function(){return y}});var i=n(2322),r=n(2784),o=n(5364),s=n(6681),a=n(8868),l=n(240),u=n(3243),c=n(6014);class h extends r.Component{getSnapshotBeforeUpdate(t){let e=this.props.childRef.current;if(e&&t.isPresent&&!this.props.isPresent){let t=e.offsetParent,n=(0,u.R)(t)&&t.offsetWidth||0,i=this.props.sizeRef.current;i.height=e.offsetHeight||0,i.width=e.offsetWidth||0,i.top=e.offsetTop,i.left=e.offsetLeft,i.right=n-i.width-i.left}return null}componentDidUpdate(){}render(){return this.props.children}}function d({children:t,isPresent:e,anchorX:n,root:o}){let s=(0,r.useId)(),a=(0,r.useRef)(null),l=(0,r.useRef)({width:0,height:0,top:0,left:0,right:0}),{nonce:u}=(0,r.useContext)(c._);return(0,r.useInsertionEffect)(()=>{let{width:t,height:i,top:r,left:c,right:h}=l.current;if(e||!a.current||!t||!i)return;let d="left"===n?`left: ${c}`:`right: ${h}`;a.current.dataset.motionPopId=s;let f=document.createElement("style");u&&(f.nonce=u);let p=o??document.head;return p.appendChild(f),f.sheet&&f.sheet.insertRule(` 2 [data-motion-pop-id="${s}"] { 3 position: absolute !important; 4 width: ${t}px !important; 5 height: ${i}px !important; 6 ${d}px !important; 7 top: ${r}px !important; 8 } 9 `),()=>{p.contains(f)&&p.removeChild(f)}},[e]),(0,i.jsx)(h,{isPresent:e,childRef:a,sizeRef:l,children:r.cloneElement(t,{ref:a})})}let f=({children:t,initial:e,isPresent:n,onExitComplete:o,custom:a,presenceAffectsLayout:u,mode:c,anch
9orX:h,root:f})=>{let m=(0,s.h)(p),g=(0,r.useId)(),v=!0,y=(0,r.useMemo)(()=>(v=!1,{id:g,initial:e,isPresent:n,custom:a,onExitComplete:t=>{for(let e of(m.set(t,!0),m.values()))if(!e)return;o&&o()},register:t=>(m.set(t,!1),()=>m.delete(t))}),[n,m,o]);return u&&v&&(y={...y}),(0,r.useMemo)(()=>{m.forEach((t,e)=>m.set(e,!1))},[n]),r.useEffect(()=>{n||m.size||!o||o()},[n]),"popLayout"===c&&(t=(0,i.jsx)(d,{isPresent:n,anchorX:h,root:f,children:t})),(0,i.jsx)(l.O.Provider,{value:y,children:t})};function p(){return new Map}var m=n(5947);let g=t=>t.key||"";function v(t){let e=[];return r.Children.forEach(t,t=>{(0,r.isValidElement)(t)&&e.push(t)}),e}let y=({children:t,custom:e,initial:n=!0,onExitComplete:l,presenceAffectsLayout:u=!0,mode:c="sync",propagate:h=!1,anchorX:d="left",root:p})=>{let[y,w]=(0,m.oO)(h),b=(0,r.useMemo)(()=>v(t),[t]),x=h&&!y?[]:b.map(g),E=(0,r.useRef)(!0),S=(0,r.useRef)(b),T=(0,s.h)(()=>new Map),[P,C]=(0,r.useState)(b),[A,M]=(0,r.useState)(b);(0,a.L)(()=>{E.current=!1,S.current=b;for(let t=0;t<A.length;t++){let e=g(A[t]);x.includes(e)?T.delete(e):!0!==T.get(e)&&T.set(e,!1)}},[A,x.length,x.join("-")]);let R=[];if(b!==P){let t=[...b];for(let e=0;e<A.length;e++){let n=A[e],i=g(n);x.includes(i)||(t.splice(e,0,n),R.push(n))}return"wait"===c&&R.length&&(t=R),M(v(t)),C(b),null}let{forceRender:k}=(0,r.useContext)(o.p);return(0,i.jsx)(i.Fragment,{children:A.map(t=>{let r=g(t),o=(!h||!!y)&&(b===A||x.includes(r));return(0,i.jsx)(f,{isPresent:o,initial:(!E.current||!!n)&&void 0,custom:e,presenceAffectsLayout:u,mode:c,root:p,onExitComplete:o?void 0:()=>{if(!T.has(r))return;T.set(r,!0);let t=!0;T.forEach(e=>{e||(t=!1)}),t&&(k?.(),M(S.current),h&&w?.(),l&&l())},anchorX:d,children:t},r)})})}},5947:function(t,e,n){"use strict";n.d(e,{oO:function(){return o}});var i=n(2784),r=n(240);function o(t=!0){let e=(0,i.useContext)(r.O);if(null===e)return[!0,null];let{isPresent:n,onExitComplete:o,register:s}=e,a=(0,i.useId)();(0,i.useEffect)(()=>{if(t)return s(a)},[t]);let l=(0,i.useCallback)(()=>t&&o&&o(a),[a,o,t]);return!n&&o?[!1,l]:[!0]}},5364:function(t,e,n){"use strict";n.d(e,{p:function(){return i}});let i=(0,n(2784).createContext)({})},6014:function(t,e,n){"use strict";n.d(e,{_:function(){return i}});let i=(0,n(2784).createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"})},240:function(t,e,n){"use strict";n.d(e,{O:function(){return i}});let i=(0,n(2784).createContext)(null)},9681:function(t,e,n){"use strict";let i;n.d(e,{E:function(){return oR}});var r,o=n(2784);let s=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],a=new Set(s),l=t=>180*t/Math.PI,u=t=>h(l(Math.atan2(t[1],t[0]))),c={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:u,rotateZ:u,skewX:t=>l(Math.atan(t[1])),skewY:t=>l(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},h=t=>((t%=360)<0&&(t+=360),t),d=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),f=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),p={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:d,scaleY:f,scale:t=>(d(t)+f(t))/2,rotateX:t=>h(l(Math.atan2(t[6],t[5]))),rotateY:t=>h(l(Math.atan2(-t[2],t[0]))),rotateZ:u,rotate:u,skewX:t=>l(Math.atan(t[4])),skewY:t=>l(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function m(t){return t.includes("scale")?1:0}function g(t,e){let n,i;if(!t||"none"===t)return m(e);let r=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(r)n=p,i=r;else{let e=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);n=c,i=e}if(!i)return m(e);let o=n[e],s=i[1].split(",").map(y);return"function"==typeof o?o(s):s[o]}let v=(t,e)=>{let{transform:n="none"}=getComputedStyle(t);return g(n,e)};function y(t){return parseFloat(t.trim())}let w=t=>e=>"string"==typeof e&&e.startsWith(t),b=w("--"),x=w("var(--"),E=t=>!!x(t)&&S.test(t.split("/*")[0].trim()),S=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function T({top:t,left:e,right:n,bottom:i}){return{x:{min:e,max:n},y:{min:t,max:i}}}let P=(t,e,n)=>t+(e-t)*n;function C(t){return void 0===t||1===t}function A({scale:t,scaleX:e,scaleY:n}){return!C(t)||!C(e)||!C(n)}function M(t){return A(t)||R(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function R(t){var e,n;return(e=t.x)&&"0%"!==e||(n=t.y)&&"0%"!==n}function k(t,e,n,i,r){return void 0!==r&&(t=i+r*(t-i)),i+n*(t-i)+e}function D(t,e=0,n=1,i,r){t.min=k(t.min,e,n,i,r),t.max=k(t.max,e,n,i,r)}function O(t,{x:e,y:n}){D(t.x,e.translate,e.scale,e.originPoint),D(t.y,n.translate,n.scale,n.originPoint)}function V(t,e){t.min=t.min+e,t.max=t.max+e}function L(t,e,n,i,r=.5){let o=P(t.min,t.max,r);D(t,e,n,o,i)}function j(t,e){L(t.x,e.x,e.scaleX,e.scale,e.originX),L(t.y,e.y,e.scaleY,e.scale,e.originY)}function I(t,e){return T(function(t,e){if(!e)return t;let n=e({x:t.left,y:t.top}),i=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:i.y,right:i.x}}(t.getBoundingClientRect(),e))}let F=new Set(["width","height","top","left","right","bottom",...s]),B=(t,e,n)=>n>e?e:n<t?t:n,N={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},W={...N,transform:t=>B(0,1,t)},U={...N,default:1},$=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),_=$("deg"),H=$("%"),z=$("px"),K=$("vh"),q=$("vw"),Y={...H,parse:t=>H.parse(t)/100,transform:t=>H.transform(100*t)},X=t=>e=>e.test(t),Z=[N,z,H,_,q,K,{test:t=>"auto"===t,parse:t=>t}],G=t=>Z.find(X(t)),J=()=>{},Q=()=>{},tt=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),te=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,tn=t=>t===N||t===z,ti=new Set(["x","y","z"]),tr=s.filter(t=>!ti.has(t)),to={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>g(e,"x"),y:(t,{transform:e})=>g(e,"y")};to.translateX=to.x,to.translateY=to.y;let ts=t=>t,ta={},tl=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"],tu={value:null,addProjectionMetrics:null};function tc(t,e){let n=!1,i=!0,r={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,s=tl.reduce((t,n)=>(t[n]=function(t,e){let n=new Set,i=new Set,r=!1,o=!1,s=new WeakSet,a={delta:0,timestamp:0,isProcessing:!1},l=0;function u(e){s.has(e)&&(c.schedule(e),t()),l++,e(a)}let c={schedule:(t,e=!1,o=!1)=>{let a=o&&r?n:i;return e&&s.add(t),a.has(t)||a.add(t),t},cancel:t=>{i.delete(t),s.delete(t)},process:t=>{if(a=t,r){o=!0;return}
9r=!0,[n,i]=[i,n],n.forEach(u),e&&tu.value&&tu.value.frameloop[e].push(l),l=0,n.clear(),r=!1,o&&(o=!1,c.process(t))}};return c}(o,e?n:void 0),t),{}),{setup:a,read:l,resolveKeyframes:u,preUpdate:c,update:h,preRender:d,render:f,postRender:p}=s,m=()=>{let o=ta.useManualTiming?r.timestamp:performance.now();n=!1,ta.useManualTiming||(r.delta=i?1e3/60:Math.max(Math.min(o-r.timestamp,40),1)),r.timestamp=o,r.isProcessing=!0,a.process(r),l.process(r),u.process(r),c.process(r),h.process(r),d.process(r),f.process(r),p.process(r),r.isProcessing=!1,n&&e&&(i=!1,t(m))},g=()=>{n=!0,i=!0,r.isProcessing||t(m)};return{schedule:tl.reduce((t,e)=>{let i=s[e];return t[e]=(t,e=!1,r=!1)=>(n||g(),i.schedule(t,e,r)),t},{}),cancel:t=>{for(let e=0;e<tl.length;e++)s[tl[e]].cancel(t)},state:r,steps:s}}let{schedule:th,cancel:td,state:tf,steps:tp}=tc("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:ts,!0),tm=new Set,tg=!1,tv=!1,ty=!1;function tw(){if(tv){let t=Array.from(tm).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),n=new Map;e.forEach(t=>{let e=function(t){let e=[];return tr.forEach(n=>{let i=t.getValue(n);void 0!==i&&(e.push([n,i.get()]),i.set(n.startsWith("scale")?1:0))}),e}(t);e.length&&(n.set(t,e),t.render())}),t.forEach(t=>t.measureInitialState()),e.forEach(t=>{t.render();let e=n.get(t);e&&e.forEach(([e,n])=>{t.getValue(e)?.set(n)})}),t.forEach(t=>t.measureEndState()),t.forEach(t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)})}tv=!1,tg=!1,tm.forEach(t=>t.complete(ty)),tm.clear()}function tb(){tm.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(tv=!0)})}class tx{constructor(t,e,n,i,r,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=n,this.motionValue=i,this.element=r,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(tm.add(this),tg||(tg=!0,th.read(tb),th.resolveKeyframes(tw))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:n,motionValue:i}=this;if(null===t[0]){let r=i?.get(),o=t[t.length-1];if(void 0!==r)t[0]=r;else if(n&&e){let i=n.readValue(e,o);null!=i&&(t[0]=i)}void 0===t[0]&&(t[0]=o),i&&void 0===r&&i.set(t[0])}!function(t){for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),tm.delete(this)}cancel(){"scheduled"===this.state&&(tm.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}let tE=t=>/^0[^.\s]+$/u.test(t),tS=t=>Math.round(1e5*t)/1e5,tT=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,tP=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,tC=(t,e)=>n=>!!("string"==typeof n&&tP.test(n)&&n.startsWith(t)||e&&null!=n&&Object.prototype.hasOwnProperty.call(n,e)),tA=(t,e,n)=>i=>{if("string"!=typeof i)return i;let[r,o,s,a]=i.match(tT);return{[t]:parseFloat(r),[e]:parseFloat(o),[n]:parseFloat(s),alpha:void 0!==a?parseFloat(a):1}},tM=t=>B(0,255,t),tR={...N,transform:t=>Math.round(tM(t))},tk={test:tC("rgb","red"),parse:tA("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:i=1})=>"rgba("+tR.transform(t)+", "+tR.transform(e)+", "+tR.transform(n)+", "+tS(W.transform(i))+")"},tD={test:tC("#"),parse:function(t){let e="",n="",i="",r="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),i=t.substring(5,7),r=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),i=t.substring(3,4),r=t.substring(4,5),e+=e,n+=n,i+=i,r+=r),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(i,16),alpha:r?parseInt(r,16)/255:1}},transform:tk.transform},tO={test:tC("hsl","hue"),parse:tA("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:i=1})=>"hsla("+Math.round(t)+", "+H.transform(tS(e))+", "+H.transform(tS(n))+", "+tS(W.transform(i))+")"},tV={test:t=>tk.test(t)||tD.test(t)||tO.test(t),parse:t=>tk.test(t)?tk.parse(t):tO.test(t)?tO.parse(t):tD.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?tk.transform(t):tO.transform(t),getAnimatableNone:t=>{let e=tV.parse(t);return e.alpha=0,tV.transform(e)}},tL=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,tj="number",tI="color",tF=/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 tB(t){let e=t.toString(),n=[],i={color:[],number:[],var:[]},r=[],o=0,s=e.replace(tF,t=>(tV.test(t)?(i.color.push(o),r.push(tI),n.push(tV.parse(t))):t.startsWith("var(")?(i.var.push(o),r.push("var"),n.push(t)):(i.number.push(o),r.push(tj),n.push(parseFloat(t))),++o,"${}")).split("${}");return{values:n,split:s,indexes:i,types:r}}function tN(t){return tB(t).values}function tW(t){let{split:e,types:n}=tB(t),i=e.length;return t=>{let r="";for(let o=0;o<i;o++)if(r+=e[o],void 0!==t[o]){let e=n[o];e===tj?r+=tS(t[o]):e===tI?r+=tV.transform(t[o]):r+=t[o]}return r}}let tU=t=>"number"==typeof t?0:tV.test(t)?tV.getAnimatableNone(t):t,t$={test:function(t){return isNaN(t)&&"string"==typeof t&&(t.match(tT)?.length||0)+(t.match(tL)?.length||0)>0},parse:tN,createTransformer:tW,getAnimatableNone:function(t){let e=tN(t);return tW(t)(e.map(tU))}},t_=new Set(["brightness","contrast","saturate","opacity"]);function tH(t){let[e,n]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[i]=n.match(tT)||[];if(!i)return t;let r=n.replace(i,""),o=t_.has(e)?1:0;return i!==n&&(o*=100),e+"("+o+r+")"}let tz=/\b([a-z-]*)\(.*?\)/gu,tK={...t$,getAnimatableNone:t=>{let e=t.match(tz);return e?e.map(tH).join(" "):t}},tq={...N,transform:Math.round},tY={borderWidth:z,borderTopWidth:z,borderRightWidth:z,borderBottomWidth:z,borderLeftWidth:z,borderRadius:z,radius:z,borderTopLeftRadius:z,borderTopRightRadius:z,borderBottomRightRadius:z,borderBottomLeftRadius:z,width:z,maxWidth:z,height:z,maxHeight:z,top:z,right:z,bottom:z,left:z,padding:z,paddingTop:z,paddingRight:z,paddingBottom:z,paddingLeft:z,margin:z,marginTop:z,marginRight:z,marginBottom:z,marginLeft:z,backgroundPositionX:z,backgroundPositionY:z,rotate:_,rotateX:_,rotateY:_,rotateZ:_,scale:U,scaleX:U,scaleY:U,scaleZ:U,skew:_,skewX:_,skewY:_,distance:z,translateX:z,translateY:z,translateZ:z,x:z,y:z,z:z,perspective:z,transformPerspective:z,opacity:W,originX:Y,originY:Y,originZ:z,zIndex:tq,fillOpacity:W,strokeOpacity:W,numOctaves:tq},tX={...tY,color:tV,backgroundColor:tV,outlineColor:tV,fill:tV,stroke:tV,borderColor:tV,borderTopColor:tV,borderRightColor:tV,borderBottomColor:tV,borderLeftColor:tV,filter:tK,WebkitFilter:tK},tZ=t=>tX[t];function tG(t,e){let n=tZ(t);return n!==tK&&(n=t$),n.getAnimatableNone?n.getAnimatableNone(e):void 0}
9let tJ=new Set(["auto","none","0"]);class tQ extends tx{constructor(t,e,n,i,r){super(t,e,n,i,r,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:e,name:n}=this;if(!e||!e.current)return;super.readKeyframes();for(let n=0;n<t.length;n++){let i=t[n];if("string"==typeof i&&E(i=i.trim())){let r=function t(e,n,i=1){Q(i<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");let[r,o]=function(t){let e=te.exec(t);if(!e)return[,];let[,n,i,r]=e;return[`--${n??i}`,r]}(e);if(!r)return;let s=window.getComputedStyle(n).getPropertyValue(r);if(s){let t=s.trim();return tt(t)?parseFloat(t):t}return E(o)?t(o,n,i+1):o}(i,e.current);void 0!==r&&(t[n]=r),n===t.length-1&&(this.finalKeyframe=i)}}if(this.resolveNoneKeyframes(),!F.has(n)||2!==t.length)return;let[i,r]=t,o=G(i),s=G(r);if(o!==s){if(tn(o)&&tn(s))for(let e=0;e<t.length;e++){let n=t[e];"string"==typeof n&&(t[e]=parseFloat(n))}else to[n]&&(this.needsMeasurement=!0)}}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:e}=this,n=[];for(let e=0;e<t.length;e++){var i;(null===t[e]||("number"==typeof(i=t[e])?0===i:null===i||"none"===i||"0"===i||tE(i)))&&n.push(e)}n.length&&function(t,e,n){let i,r=0;for(;r<t.length&&!i;){let e=t[r];"string"==typeof e&&!tJ.has(e)&&tB(e).values.length&&(i=t[r]),r++}if(i&&n)for(let r of e)t[r]=tG(n,i)}(t,n,e)}measureInitialState(){let{element:t,unresolvedKeyframes:e,name:n}=this;if(!t||!t.current)return;"height"===n&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=to[n](t.measureViewportBox(),window.getComputedStyle(t.current)),e[0]=this.measuredOrigin;let i=e[e.length-1];void 0!==i&&t.getValue(n,i).jump(i,!1)}measureEndState(){let{element:t,name:e,unresolvedKeyframes:n}=this;if(!t||!t.current)return;let i=t.getValue(e);i&&i.jump(this.measuredOrigin,!1);let r=n.length-1,o=n[r];n[r]=to[e](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==o&&void 0===this.finalKeyframe&&(this.finalKeyframe=o),this.removedTransforms?.length&&this.removedTransforms.forEac
9h(([e,n])=>{t.getValue(e).set(n)}),this.resolveNoneKeyframes()}}let t0=t=>!!(t&&t.getVelocity);function t1(){i=void 0}let t2={now:()=>(void 0===i&&t2.set(tf.isProcessing||ta.useManualTiming?tf.timestamp:performance.now()),i),set:t=>{i=t,queueMicrotask(t1)}};function t5(t,e){-1===t.indexOf(e)&&t.push(e)}function t3(t,e){let n=t.indexOf(e);n>-1&&t.splice(n,1)}class t4{constructor(){this.subscriptions=[]}add(t){return t5(this.subscriptions,t),()=>t3(this.subscriptions,t)}notify(t,e,n){let i=this.subscriptions.length;if(i){if(1===i)this.subscriptions[0](t,e,n);else for(let r=0;r<i;r++){let i=this.subscriptions[r];i&&i(t,e,n)}}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}let t6=t=>!isNaN(parseFloat(t)),t9={current:void 0};class t8{constructor(t,e={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=t=>{let e=t2.now();if(this.updatedAt!==e&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let t of this.dependents)t.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}setCurrent(t){this.current=t,this.updatedAt=t2.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=t6(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new t4);let n=this.events[t].add(e);return"change"===t?()=>{n(),th.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,e,n){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-n}jump(t,e=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return t9.current&&t9.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){var t;let e=t2.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;let n=Math.min(this.updatedAt-this.prevUpdatedAt,30);return t=parseFloat(this.current)-parseFloat(this.prevFrameValue),n?1e3/n*t:0}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.animation=t(e),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.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function t7(t,e){return new t8(t,e)}let et=[...Z,tV,t$],ee=t=>et.find(X(t)),{schedule:en,cancel:ei}=tc(queueMicrotask,!1),er={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"]},eo={};for(let t in er)eo[t]={isEnabled:e=>er[t].some(t=>!!e[t])};let es=()=>({translate:0,scale:1,origin:0,originPoint:0}),ea=()=>({x:es(),y:es()}),el=()=>({min:0,max:0}),eu=()=>({x:el(),y:el()});var ec=n(1741);let eh={current:null},ed={current:!1},ef=new WeakMap;function ep(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}function em(t){return"string"==typeof t||Array.isArray(t)}let eg=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],ev=["initial",...eg];function ey(t){return ep(t.animate)||ev.some(e=>em(t[e]))}function ew(t){return!!(ey(t)||t.variants)}function eb(t){let e=[{},{}];
9return t?.values.forEach((t,n)=>{e[0][n]=t.get(),e[1][n]=t.getVelocity()}),e}function ex(t,e,n,i){if("function"==typeof e){let[r,o]=eb(i);e=e(void 0!==n?n:t.custom,r,o)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){let[r,o]=eb(i);e=e(void 0!==n?n:t.custom,r,o)}return e}let eE=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class eS{scrapeMotionValuesFromProps(t,e,n){return{}}constructor({parent:t,props:e,presenceContext:n,reducedMotionConfig:i,blockInitialAnimation:r,visualState:o},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=tx,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=()=>{let t=t2.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,th.render(this.render,!1,!0))};let{latestValues:a,renderState:l}=o;this.latestValues=a,this.baseTarget={...a},this.initialValues=e.initial?{...a}:{},this.renderState=l,this.parent=t,this.props=e,this.presenceContext=n,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=s,this.blockInitialAnimation=!!r,this.isControllingVariants=ey(e),this.isVariantNode=ew(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);let{willChange:u,...c}=this.scrapeMotionValuesFromProps(e,{},this);for(let t in c){let e=c[t];void 0!==a[t]&&t0(e)&&e.set(a[t])}}mount(t){this.current=t,ef.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((t,e)=>this.bindToMotionValue(e,t)),ed.current||function(){if(ed.current=!0,ec.j){if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>eh.current=t.matches;t.addEventListener("change",e),e()}else eh.current=!1}}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||eh.current),this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){for(let t in this.projection&&this.projection.unmount(),td(this.notifyUpdate),td(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this),this.events)this.events[t].clear();for(let t in this.features){let e=this.features[t];e&&(e.unmount(),e.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,e){let n;this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();let i=a.has(t);i&&this.onBindTransform&&this.onBindTransform();let r=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&th.preRender(this.notifyUpdate),i&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});window.MotionCheckAppearSync&&(n=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{r(),n&&n(),e.owner&&e.stop()})}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}updateFeatures(){let t="animation";for(t in eo){let e=eo[t];if(!e)continue;let{isEnabled:n,Feature:i}=e;if(!this.features[t]&&i&&n(this.props)&&(this.features[t]=new i(this)),this.features[t]){let e=this.features[t];e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):eu()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let e=0;e<eE.length;e++){let n=eE[e];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let i=t["on"+n];i&&(this.propEventSubscriptions[n]=this.on(n,i))}this.prevMotionValues=function(t,e,n){for(let i in e){let r=e[i],o=n[i];if(t0(r))t.addValue(i,r);else if(t0(o))t.addValue(i,t7(r,{owner:t}));else if(o!==r){if(t.hasValue(i)){let e=t.getValue(i);!0===e.liveStyle?e.jump(r):e.hasAnimated||e.set(r)}else{let e=t.getStaticValue(i);t.addValue(i,t7(void 0!==e?e:r,{owner:t}))}}}for(let i in n)void 0===e[i]&&t.removeValue(i);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}
9addVariantChild(t){let e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){let n=this.values.get(t);e!==n&&(n&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get())}removeValue(t){this.values.delete(t);let e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return void 0===n&&void 0!==e&&(n=t7(null===e?void 0:e,{owner:this}),this.addValue(t,n)),n}readValue(t,e){let n=void 0===this.latestValues[t]&&this.current?this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];return null!=n&&("string"==typeof n&&(tt(n)||tE(n))?n=parseFloat(n):!ee(n)&&t$.test(e)&&(n=tG(t,e)),this.setBaseTarget(t,t0(n)?n.get():n)),t0(n)?n.get():n}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){let e;let{initial:n}=this.props;if("string"==typeof n||"object"==typeof n){let i=ex(this.props,n,this.presenceContext?.custom);i&&(e=i[t])}if(n&&void 0!==e)return e;let i=this.getBaseTargetFromProps(this.props,t);return void 0===i||t0(i)?void 0!==this.initialValues[t]&&void 0===e?void 0:this.baseTarget[t]:i}on(t,e){return this.events[t]||(this.events[t]=new t4),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}scheduleRenderMicrotask(){en.render(this.render)}}class eT extends eS{constructor(){super(...arguments),this.KeyframeResolver=tQ}sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){return t.style?t.style[e]:void 0}removeValueFromRenderState(t,{vars:e,style:n}){delete e[t],delete n[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;t0(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}let eP=(t,e)=>e&&"number"==typeof t?e.transform(t):t,eC={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},eA=s.length;function eM(t,e,n){let{style:i,vars:r,transformOrigin:o}=t,l=!1,u=!1;for(let t in e){let n=e[t];if(a.has(t)){l=!0;continue}if(b(t)){r[t]=n;continue}{let e=eP(n,tY[t]);t.startsWith("origin")?(u=!0,o[t]=e):i[t]=e}}if(!e.transform&&(l||n?i.transform=function(t,e,n){let i="",r=!0;for(let o=0;o<eA;o++){let a=s[o],l=t[a];if(void 0===l)continue;let u=!0;if(!(u="number"==typeof l?l===(a.startsWith("scale")?1:0):0===parseFloat(l))||n){let t=eP(l,tY[a]);if(!u){r=!1;let e=eC[a]||a;i+=`${e}(${t}) `}n&&(e[a]=t)}}return i=i.trim(),n?i=n(e,r?"":i):r&&(i="none"),i}(e,t.transform,n):i.transform&&(i.transform="none")),u){let{originX:t="50%",originY:e="50%",originZ:n=0}=o;i.transformOrigin=`${t} ${e} ${n}`}}function eR(t,{style:e,vars:n},i,r){let o;let s=t.style;for(o in e)s[o]=e[o];for(o in r?.applyProjectionStyles(s,i),n)s.setProperty(o,n[o])}let ek={};function eD(t,{layout:e,layoutId:n}){return a.has(t)||t.startsWith("origin")||(e||void 0!==n)&&(!!ek[t]||"opacity"===t)}function eO(t,e,n){let{style:i}=t,r={};for(let o in i)(t0(i[o])||e.style&&t0(e.style[o])||eD(o,t)||n?.getValue(o)?.liveStyle!==void 0)&&(r[o]=i[o]);return r}class eV extends eT{constructor(){super(...arguments),this.type="html",this.renderInstance=eR}readValueFromInstance(t,e){if(a.has(e))return this.projection?.isProjecting?m(e):v(t,e);{let n=window.getComputedStyle(t),i=(b(e)?n.getPropertyValue(e):n[e])||0;return"string"==typeof i?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:e}){return I(t,e)}build(t,e,n){eM(t,e,n.transformTemplate)}scrapeMotionValuesFromProps(t,e,n){return eO(t,e,n)}}let eL=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),ej={offset:"stroke-dashoffset",array:"stroke-dasharray"},eI={offset:"strokeDashoffset",array:"strokeDasharray"};function eF(t,{attrX:e,attrY:n,attrScale:i,pathLength:r,pathSpacing:o=1,pathOffset:s=0,...a}
9,l,u,c){if(eM(t,a,u),l){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:h,style:d}=t;h.transform&&(d.transform=h.transform,delete h.transform),(d.transform||h.transformOrigin)&&(d.transformOrigin=h.transformOrigin??"50% 50%",delete h.transformOrigin),d.transform&&(d.transformBox=c?.transformBox??"fill-box",delete h.transformBox),void 0!==e&&(h.x=e),void 0!==n&&(h.y=n),void 0!==i&&(h.scale=i),void 0!==r&&function(t,e,n=1,i=0,r=!0){t.pathLength=1;let o=r?ej:eI;t[o.offset]=z.transform(-i);let s=z.transform(e),a=z.transform(n);t[o.array]=`${s} ${a}`}(h,r,o,s,!1)}let eB=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"]),eN=t=>"string"==typeof t&&"svg"===t.toLowerCase();function eW(t,e,n){let i=eO(t,e,n);for(let n in t)(t0(t[n])||t0(e[n]))&&(i[-1!==s.indexOf(n)?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n]=t[n]);return i}class eU extends eT{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=eu}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(a.has(e)){let t=tZ(e);return t&&t.default||0}return e=eB.has(e)?e:eL(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,n){return eW(t,e,n)}
9build(t,e,n){eF(t,e,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(t,e,n,i){!function(t,e,n,i){for(let n in eR(t,e,void 0,i),e.attrs)t.setAttribute(eB.has(n)?n:eL(n),e.attrs[n])}(t,e,0,i)}mount(t){this.isSVGTag=eN(t.tagName),super.mount(t)}}let e$=["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 e_(t){if("string"!=typeof t||t.includes("-"));else if(e$.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}var eH=n(2322),ez=n(5364);let eK=(0,o.createContext)({strict:!1});var eq=n(6014);let eY=(0,o.createContext)({});function eX(t){return Array.isArray(t)?t.join(" "):t}let eZ=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function eG(t,e,n){for(let i in e)t0(e[i])||eD(i,n)||(t[i]=e[i])}let eJ=()=>({...eZ(),attrs:{}}),eQ=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 e0(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||eQ.has(t)}let e1=t=>!e0(t);try{r=require("@emotion/is-prop-valid").default,"function"==typeof r&&(e1=t=>t.startsWith("on")?!e0(t):r(t))}catch{}var e2=n(240),e5=n(6681);function e3(t){return t0(t)?t.get():t}let e4=t=>(e,n)=>{let i=(0,o.useContext)(eY),r=(0,o.useContext)(e2.O),s=()=>(function({scrapeMotionValuesFromProps:t,createRenderState:e},n,i,r){return{latestValues:function(t,e,n,i){let r={},o=i(t,{});for(let t in o)r[t]=e3(o[t]);let{initial:s,animate:a}=t,l=ey(t),u=ew(t);e&&u&&!l&&!1!==t.inherit&&(void 0===s&&(s=e.initial),void 0===a&&(a=e.animate));let c=!!n&&!1===n.initial,h=(c=c||!1===s)?a:s;if(h&&"boolean"!=typeof h&&!ep(h)){let e=Array.isArray(h)?h:[h];for(let n=0;n<e.length;n++){let i=ex(t,e[n]);if(i){let{transitionEnd:t,transition:e,...n}=i;for(let t in n){let e=n[t];if(Array.isArray(e)){let t=c?e.length-1:0;e=e[t]}null!==e&&(r[t]=e)}for(let e in t)r[e]=t[e]}}}return r}(n,i,r,t),renderState:e()}})(t,e,i,r);return n?s():(0,e5.h)(s)},e6=e4({scrapeMotionValuesFromProps:eO,createRenderState:eZ}),e9=e4({scrapeMotionValuesFromProps:eW,createRenderState:eJ}),e8=Symbol.for("motionComponentSymbol");function e7(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}let nt="data-"+eL("framerAppearId"),ne=(0,o.createContext)({});var nn=n(8868);function ni(t,{forwardMotionProps:e=!1}={},n,i){n&&function(t){for(let e in t)eo[e]={...eo[e],...t[e]}}(n);let r=e_(t)?e9:e6;function s(n,s){var a;let l;let u={...(0,o.useContext)(eq._),...n,layoutId:function({layoutId:t}){let e=(0,o.useContext)(ez.p).id;return e&&void 0!==t?e+"-"+t:t}(n)},{isStatic:c}=u,h=function(t){let{initial:e,animate:n}=function(t,e){if(ey(t)){let{initial:e,animate:n}=t;return{initial:!1===e||em(e)?e:void 0,animate:em(n)?n:void 0}}return!1!==t.inherit?e:{}}(t,(0,o.useContext)(eY));return(0,o.useMemo)(()=>({initial:e,animate:n}),[eX(e),eX(n)])}(n),d=r(n,c);if(!c&&ec.j){(0,o.useContext)(eK).strict;let e=function(t){let{drag:e,layout:n}=eo;if(!e&&!n)return{};let i={...e,...n};return{MeasureLayout:e?.isEnabled(t)||n?.isEnabled(t)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}(u);l=e.MeasureLayout,h.visualElement=function(t,e,n,i,r){let{visualElement:s}=(0,o.useContext)(eY),a=(0,o.useContext)(eK),l=(0,o.useContext)(e2.O),u=(0,o.useContext)(eq._).reducedMotion,c=(0,o.useRef)(null);i=i||a.renderer,!c.current&&i&&(c.current=i(t,{visualState:e,parent:s,props:n,presenceContext:l,blockInitialAnimation:!!l&&!1===l.initial,reducedMotionConfig:u}));let h=c.current,d=(0,o.useContext)(ne);h&&!h.projection&&r&&("html"===h.type||"svg"===h.type)&&function(t,e,n,i){let{layoutId:r,layout:o,drag:s,dragConstraints:a,layoutScroll:l,layoutRoot:u,layoutCrossfade:c}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:function t(e){if(e)return!1!==e.options.allowProjection?e.projection:t(e.parent)}(t.parent)),t.projection.setOptions({layoutId:r,layout:o,alwaysMeasureLayout:!!s||a&&e7(a),visualElement:t,animationType:"string"==typeof o?o:"both",initialPromotionConfig:i,crossfade:c,layoutScroll:l,layoutRoot:u})}(c.current,n,r,d);let f=(0,o.useRef)(!1);(0,o.useInsertionEffect)(()=>{h&&f.current&&h.update(n,l)});let p=n[nt],m=(0,o.useRef)(!!p&&!window.MotionHandoffIsComplete?.(p)&&window.MotionHasOptimisedAnimation?.(p));return(0,nn.L)(()=>{h&&(f.current=!0,window.MotionIsMounted=!0,h.updateFeatures(),h.scheduleRenderMicrotask(),m.current&&h.animationState&&h.animationState.animateChanges())}),(0,o.useEffect)(()=>{h&&(!m.current&&h.animationState&&h.animationState.animateChanges(),m.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(p)}),m.current=!1),h.enteringChildren=void 0)}),h}(t,d,u,i,e.ProjectionNode)}return(0,eH.jsxs)(eY.Provider,{value:h,children:[l&&h.visualElement?(0,eH.jsx)(l,{visualElement:h.visualElement,...u}):null,function(t,e,n,{latestValues:i},r,s=!1){let a=(e_(t)?function(t,e,n,i){let r=(0,o.useMemo)(()=>{let n=eJ();return eF(n,e,eN(i),t.transformTemplate,t.style),{...n.attrs,style:{...n.style}}},[e]);if(t.style){let e={};eG(e,t.style,t),r.style={...e,...r.style}}return r}:function(t,e){let n={},i=function(t,e){let n=t.style||{},i={};return eG(i,n,t),Object.assign(i,function({transformTemplate:t},e){return(0,o.useMemo)(()=>{let n=eZ();return eM(n,e,t),Object.assign({},n.vars,n.style)},[e])}(t,e)),i}(t,e);return t.drag&&!1!==t.dragListener&&(n.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=!0===t.drag?"none":`pan-${"x"===t.drag?"y":"x"}`),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=i,n})(e,i,r,t),l=function(t,e,n){let i={};for(let r in t)("values"!==r||"object"!=typeof t.values)&&(e1(r)||!0===n&&e0(r)||!e&&!e0(r)||t.draggable&&r.startsWith("onDrag"))&&(i[r]=t[r]);return i}(e,"string"==typeof t,s),u=t!==o.Fragment?{...l,...a,ref:n}:{},{children:c}=e,h=(0,o.useMemo)(()=>t0(c)?c.get():c,[c]);return(0,o.createElement)(t,{...u,children:h})}(t,n,(a=h.visualElement,(0,o.useCallback)(t=>{t&&d.onMount&&d.onMount(t),a&&(t?a.mount(t):a.unmount()),s&&("function"==typeof s?s(t):e7(s)&&(s.current=t))},[a])),d,c,e)]})}s.displayName=`motion.${"string"==typeof t?t:`create(${t.displayName??t.name??""})`}`;let a=(0,o.forwardRef)(s);return a[e8]=t,a}function nr(t,e,n){let i=t.getProps();return ex(i,e,void 0!==n?n:i.custom,t)}function no(t,e){return t?.[e]??t?.default??t}let ns=t=>Array.isArray(t);function na(t,e){let n=t.getValue("willChange");if(t0(n)&&n.add)return n.add(e);if(!n&&ta.WillChange){let n=new ta.WillChange("auto");t.addValue("willChange",n),n.add(e)}}function nl(t){t.duration=0,t.type}let nu=(t,e)=>n=>e(t(n)),nc=(...t)=>t.reduce(nu),nh=t=>1e3*t,nd=t=>t/1e3,nf={layout:0,mainThread:0,waapi:0};function np(t,e,n){return(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?t+(e-t)*6*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function nm(t,e){return n=>n>0?e:t}let ng=(t,e,n)=>{let i=t*t,r=n*(e*e-i)+i;return r<0?0:Math.sqrt(r)},nv=[tD,tk,tO],ny=t=>nv.find(e=>e.test(t));function nw(t){let e=ny(t);if(J(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!e)return!1;let n=e.parse(t);return e===tO&&(n=function({hue:t,saturation:e,lightness:n,alpha:i}
9){t/=360,n/=100;let r=0,o=0,s=0;if(e/=100){let i=n<.5?n*(1+e):n+e-n*e,a=2*n-i;r=np(a,i,t+1/3),o=np(a,i,t),s=np(a,i,t-1/3)}else r=o=s=n;return{red:Math.round(255*r),green:Math.round(255*o),blue:Math.round(255*s),alpha:i}}(n)),n}let nb=(t,e)=>{let n=nw(t),i=nw(e);if(!n||!i)return nm(t,e);let r={...n};return t=>(r.red=ng(n.red,i.red,t),r.green=ng(n.green,i.green,t),r.blue=ng(n.blue,i.blue,t),r.alpha=P(n.alpha,i.alpha,t),tk.transform(r))},nx=new Set(["none","hidden"]);function nE(t,e){return n=>P(t,e,n)}function nS(t){return"number"==typeof t?nE:"string"==typeof t?E(t)?nm:tV.test(t)?nb:nC:Array.isArray(t)?nT:"object"==typeof t?tV.test(t)?nb:nP:nm}function nT(t,e){let n=[...t],i=n.length,r=t.map((t,n)=>nS(t)(t,e[n]));return t=>{for(let e=0;e<i;e++)n[e]=r[e](t);return n}}function nP(t,e){let n={...t,...e},i={};for(let r in n)void 0!==t[r]&&void 0!==e[r]&&(i[r]=nS(t[r])(t[r],e[r]));return t=>{for(let e in i)n[e]=i[e](t);return n}}let nC=(t,e)=>{let n=t$.createTransformer(e),i=tB(t),r=tB(e);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?nx.has(t)&&!r.values.length||nx.has(e)&&!i.values.length?nx.has(t)?n=>n<=0?t:e:n=>n>=1?e:t:nc(nT(function(t,e){let n=[],i={color:0,var:0,number:0};for(let r=0;r<e.values.length;r++){let o=e.types[r],s=t.indexes[o][i[o]],a=t.values[s]??0;n[r]=a,i[o]++}return n}(i,r),r.values),n):(J(!0,`Complex values '${t}' and '${e}' 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.`,"complex-values-different"),nm(t,e))};function nA(t,e,n){return"number"==typeof t&&"number"==typeof e&&"number"==typeof n?P(t,e,n):nS(t)(t,e)}let nM=t=>{let e=({timestamp:e})=>t(e);return{start:(t=!0)=>th.update(e,t),stop:()=>td(e),now:()=>tf.isProcessing?tf.timestamp:t2.now()}},nR=(t,e,n=10)=>{let i="",r=Math.max(Math.round(e/n),2);for(let e=0;e<r;e++)i+=Math.round(1e4*t(e/(r-1)))/1e4+", ";return`linear(${i.substring(0,i.length-2)})`};function nk(t){let e=0,n=t.next(e);for(;!n.done&&e<2e4;)e+=50,n=t.next(e);return e>=2e4?1/0:e}function nD(t,e,n){var i,r;let o=Math.max(e-5,0);return i=n-t(o),(r=e-o)?1e3/r*i:0}let nO={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};function nV(t,e){return t*Math.sqrt(1-e*e)}let nL=["duration","bounce"],nj=["stiffness","damping","mass"];function nI(t,e){return e.some(e=>void 0!==t[e])}function nF(t=nO.visualDuration,e=nO.bounce){let n;let i="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t,{restSpeed:r,restDelta:o}=i,s=i.keyframes[0],a=i.keyframes[i.keyframes.length-1],l={done:!1,value:s},{stiffness:u,damping:c,mass:h,duration:d,velocity:f,isResolvedFromDuration:p}=function(t){let e={velocity:nO.velocity,stiffness:nO.stiffness,damping:nO.damping,mass:nO.mass,isResolvedFromDuration:!1,...t};if(!nI(t,nj)&&nI(t,nL)){if(t.visualDuration){let n=2*Math.PI/(1.2*t.visualDuration),i=n*n,r=2*B(.05,1,1-(t.bounce||0))*Math.sqrt(i);e={...e,mass:nO.mass,stiffness:i,damping:r}}else{let n=function({duration:t=nO.duration,bounce:e=nO.bounce,velocity:n=nO.velocity,mass:i=nO.mass}){let r,o;J(t<=nh(nO.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let s=1-e;s=B(nO.minDamping,nO.maxDamping,s),t=B(nO.minDuration,nO.maxDuration,nd(t)),s<1?(r=e=>{let i=e*s,r=i*t;return .001-(i-n)/nV(e,s)*Math.exp(-r)},o=e=>{let i=e*s*t,o=Math.pow(s,2)*Math.pow(e,2)*t,a=nV(Math.pow(e,2),s);return(i*n+n-o)*Math.exp(-i)*(-r(e)+.001>0?-1:1)/a}):(r=e=>-.001+Math.exp(-e*t)*((e-n)*t+1),o=e=>t*t*(n-e)*Math.exp(-e*t));let a=function(t,e,n){let i=n;for(let n=1;n<12;n++)i-=t(i)/e(i);return i}(r,o,5/t);if(t=nh(t),isNaN(a))return{stiffness:nO.stiffness,damping:nO.damping,duration:t};{let e=Math.pow(a,2)*i;return{stiffness:e,damping:2*s*Math.sqrt(i*e),duration:t}}}(t);(e={...e,...n,mass:nO.mass}).isResolvedFromDuration=!0}}return e}({...i,velocity:-nd(i.velocity||0)}
9),m=f||0,g=c/(2*Math.sqrt(u*h)),v=a-s,y=nd(Math.sqrt(u/h)),w=5>Math.abs(v);if(r||(r=w?nO.restSpeed.granular:nO.restSpeed.default),o||(o=w?nO.restDelta.granular:nO.restDelta.default),g<1){let t=nV(y,g);n=e=>a-Math.exp(-g*y*e)*((m+g*y*v)/t*Math.sin(t*e)+v*Math.cos(t*e))}else if(1===g)n=t=>a-Math.exp(-y*t)*(v+(m+y*v)*t);else{let t=y*Math.sqrt(g*g-1);n=e=>{let n=Math.exp(-g*y*e),i=Math.min(t*e,300);return a-n*((m+g*y*v)*Math.sinh(i)+t*v*Math.cosh(i))/t}}let b={calculatedDuration:p&&d||null,next:t=>{let e=n(t);if(p)l.done=t>=d;else{let i=0===t?m:0;g<1&&(i=0===t?nh(m):nD(n,t,e));let s=Math.abs(i)<=r,u=Math.abs(a-e)<=o;l.done=s&&u}return l.value=l.done?a:e,l},toString:()=>{let t=Math.min(nk(b),2e4),e=nR(e=>b.next(t*e).value,t,30);return t+"ms "+e},toTransition:()=>{}};return b}function nB({keyframes:t,velocity:e=0,power:n=.8,timeConstant:i=325,bounceDamping:r=10,bounceStiffness:o=500,modifyTarget:s,min:a,max:l,restDelta:u=.5,restSpeed:c}){let h,d;let f=t[0],p={done:!1,value:f},m=t=>void 0!==a&&t<a||void 0!==l&&t>l,g=t=>void 0===a?l:void 0===l?a:Math.abs(a-t)<Math.abs(l-t)?a:l,v=n*e,y=f+v,w=void 0===s?y:s(y);w!==y&&(v=w-f);let b=t=>-v*Math.exp(-t/i),x=t=>w+b(t),E=t=>{let e=b(t),n=x(t);p.done=Math.abs(e)<=u,p.value=p.done?w:n},S=t=>{m(p.value)&&(h=t,d=nF({keyframes:[p.value,g(p.value)],velocity:nD(x,t,p.value),damping:r,stiffness:o,restDelta:u,restSpeed:c}))};return S(0),{calculatedDuration:null,next:t=>{let e=!1;return(d||void 0!==h||(e=!0,E(t),S(t)),void 0!==h&&t>=h)?d.next(t-h):(e||E(t),p)}}}nF.applyToOptions=t=>{let e=function(t,e=100,n){let i=n({...t,keyframes:[0,e]}),r=Math.min(nk(i),2e4);return{type:"keyframes",ease:t=>i.next(r*t).value/e,duration:nd(r)}}(t,100,nF);return t.ease=e.ease,t.duration=nh(e.duration),t.type="keyframes",t};let nN=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t;function nW(t,e,n,i){if(t===e&&n===i)return ts;let r=e=>(function(t,e,n,i,r){let o,s;let a=0;do(o=nN(s=e+(n-e)/2,i,r)-t)>0?n=s:e=s;while(Math.abs(o)>1e-7&&++a<12);return s})(e,0,1,t,n);return t=>0===t||1===t?t:nN(r(t),e,i)}let nU=nW(.42,0,1,1),n$=nW(0,0,.58,1),n_=nW(.42,0,.58,1),nH=t=>Array.isArray(t)&&"number"!=typeof t[0],nz=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,nK=t=>e=>1-t(1-e),nq=nW(.33,1.53,.69,.99),nY=nK(nq),nX=nz(nY),nZ=t=>(t*=2)<1?.5*nY(t):.5*(2-Math.pow(2,-10*(t-1))),nG=t=>1-Math.sin(Math.acos(t)),nJ=nK(nG),nQ=nz(nG),n0=t=>Array.isArray(t)&&"number"==typeof t[0],n1={linear:ts,easeIn:nU,easeInOut:n_,easeOut:n$,circIn:nG,circInOut:nQ,circOut:nJ,backIn:nY,backInOut:nX,backOut:nq,anticipate:nZ},n2=t=>"string"==typeof t,n5=t=>{if(n0(t)){Q(4===t.length,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[e,n,i,r]=t;return nW(e,n,i,r)}return n2(t)?(Q(void 0!==n1[t],`Invalid easing type '${t}'`,"invalid-easing-type"),n1[t]):t},n3=(t,e,n)=>{let i=e-t;return 0===i?1:(n-t)/i};function n4({duration:t=300,keyframes:e,times:n,ease:i="easeInOut"}){let r=nH(i)?i.map(n5):n5(i),o={done:!1,value:e[0]},s=function(t,e,{clamp:n=!0,ease:i,mixer:r}={}){let o=t.length;if(Q(o===e.length,"Both input and output ranges must be the same length","range-length"),1===o)return()=>e[0];if(2===o&&e[0]===e[1])return()=>e[1];let s=t[0]===t[1];t[0]>t[o-1]&&(t=[...t].reverse(),e=[...e].reverse());let a=function(t,e,n){let i=[],r=n||ta.mix||nA,o=t.length-1;for(let n=0;n<o;n++){let o=r(t[n],t[n+1]);e&&(o=nc(Array.isArray(e)?e[n]||ts:e,o)),i.push(o)}return i}(e,i,r),l=a.length,u=n=>{if(s&&n<t[0])return e[0];let i=0;if(l>1)for(;i<t.length-2&&!(n<t[i+1]);i++);let r=n3(t[i],t[i+1],n);return a[i](r)};return n?e=>u(B(t[0],t[o-1],e)):u}((n&&n.length===e.length?n:function(t){let e=[0];return function(t,e){let n=t[t.length-1];for(let i=1;i<=e;i++){let r=n3(0,e,i);t.push(P(n,1,r))}}(e,t.length-1),e}(e)).map(e=>e*t),e,{ease:Array.isArray(r)?r:e.map(()=>r||n_).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(o.value=s(e),o.done=e>=t,o)}}let n6=t=>null!==t;function n9(t,{repeat:e,repeatType:n="loop"},i,r=1){let o=t.filter(n6),s=r<0||e&&"loop"!==n&&e%2==1?0:o.length-1;return s&&void 0!==i?i:o[s]}let n8={decay:nB,inertia:nB,tween:n4,keyframes:n4,spring:nF};function n7(t){"string"==typeof t.type&&(t.type=n8[t.type])}class it{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,e){return this.finished.then(t,e)}}let ie=t=>t/100;class ii extends it{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{let{motionValue:t}=this.options;t&&t.updatedAt!==t2.now()&&this.tick(t2.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},nf.mainThread++,this.options=t,this.initAnimation(),this.play(),!1===t.autoplay&&this.pause()}initAnimation(){let{options:t}=this;
9n7(t);let{type:e=n4,repeat:n=0,repeatDelay:i=0,repeatType:r,velocity:o=0}=t,{keyframes:s}=t,a=e||n4;a!==n4&&"number"!=typeof s[0]&&(this.mixKeyframes=nc(ie,nA(s[0],s[1])),s=[0,100]);let l=a({...t,keyframes:s});"mirror"===r&&(this.mirroredGenerator=a({...t,keyframes:[...s].reverse(),velocity:-o})),null===l.calculatedDuration&&(l.calculatedDuration=nk(l));let{calculatedDuration:u}=l;this.calculatedDuration=u,this.resolvedDuration=u+i,this.totalDuration=this.resolvedDuration*(n+1)-i,this.generator=l}updateTime(t){let e=Math.round(t-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=e}tick(t,e=!1){let{generator:n,totalDuration:i,mixKeyframes:r,mirroredGenerator:o,resolvedDuration:s,calculatedDuration:a}=this;if(null===this.startTime)return n.next(0);let{delay:l=0,keyframes:u,repeat:c,repeatType:h,repeatDelay:d,type:f,onUpdate:p,finalKeyframe:m}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-i/this.speed,this.startTime)),e?this.currentTime=t:this.updateTime(t);let g=this.currentTime-l*(this.playbackSpeed>=0?1:-1),v=this.playbackSpeed>=0?g<0:g>i;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=i);let y=this.currentTime,w=n;if(c){let t=Math.min(this.currentTime,i)/s,e=Math.floor(t),n=t%1;!n&&t>=1&&(n=1),1===n&&e--,(e=Math.min(e,c+1))%2&&("reverse"===h?(n=1-n,d&&(n-=d/s)):"mirror"===h&&(w=o)),y=B(0,1,n)*s}let b=v?{done:!1,value:u[0]}:w.next(y);r&&(b.value=r(b.value));let{done:x}=b;v||null===a||(x=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);let E=null===this.holdTime&&("finished"===this.state||"running"===this.state&&x);return E&&f!==nB&&(b.value=n9(u,this.options,m,this.speed)),p&&p(b.value),E&&this.finish(),b}then(t,e){return this.finished.then(t,e)}get duration(){return nd(this.calculatedDuration)}get time(){return nd(this.currentTime)}set time(t){t=nh(t),this.currentTime=t,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(t2.now());let e=this.playbackSpeed!==t;this.playbackSpeed=t,e&&(this.time=nd(this.currentTime))}play(){if(this.isStopped)return;let{driver:t=nM,startTime:e}=this.options;this.driver||(this.driver=t(t=>this.tick(t))),this.options.onPlay?.();let n=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=n):null!==this.holdTime?this.startTime=n-this.holdTime:this.startTime||(this.startTime=e??n),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(t2.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null,nf.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}let ir=t=>t.startsWith("--");function io(t){let e;return()=>(void 0===e&&(e=t()),e)}let is=io(()=>void 0!==window.ScrollTimeline),ia={},il=function(t,e){let n=io(t);return()=>ia[e]??n()}(()=>{try{document.createElement("div").animate({opacity:0}
9,{easing:"linear(0, 1)"})}catch(t){return!1}return!0},"linearEasing"),iu=([t,e,n,i])=>`cubic-bezier(${t}, ${e}, ${n}, ${i})`,ic={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:iu([0,.65,.55,1]),circOut:iu([.55,0,1,.45]),backIn:iu([.31,.01,.66,-.59]),backOut:iu([.33,1.53,.69,.99])};function ih(t){return"function"==typeof t&&"applyToOptions"in t}class id extends it{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;let{element:e,name:n,keyframes:i,pseudoElement:r,allowFlatten:o=!1,finalKeyframe:s,onComplete:a}=t;this.isPseudoElement=!!r,this.allowFlatten=o,this.options=t,Q("string"!=typeof t.type,'Mini animate() doesn\'t support "type" as a string.',"mini-spring");let l=function({type:t,...e}){return ih(t)&&il()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}(t);this.animation=function(t,e,n,{delay:i=0,duration:r=300,repeat:o=0,repeatType:s="loop",ease:a="easeOut",times:l}={},u){let c={[e]:n};l&&(c.offset=l);let h=function t(e,n){if(e)return"function"==typeof e?il()?nR(e,n):"ease-out":n0(e)?iu(e):Array.isArray(e)?e.map(e=>t(e,n)||ic.easeOut):ic[e]}(a,r);Array.isArray(h)&&(c.easing=h),tu.value&&nf.waapi++;let d={delay:i,duration:r,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:o+1,direction:"reverse"===s?"alternate":"normal"};u&&(d.pseudoElement=u);let f=t.animate(c,d);return tu.value&&f.finished.finally(()=>{nf.waapi--}),f}(e,n,i,l,r),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!r){let t=n9(i,this.options,s,this.speed);this.updateMotionValue?this.updateMotionValue(t):ir(n)?e.style.setProperty(n,t):e.style[n]=t,this.animation.cancel()}a?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(t){}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:t}=this;"idle"!==t&&"finished"!==t&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){return nd(Number(this.animation.effect?.getComputedTiming?.().duration||0))}get time(){return nd(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=nh(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:e}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&is())?(this.animation.timeline=t,ts):e(this)}}let ip={anticipate:nZ,backInOut:nX,circInOut:nQ};class im extends id{constructor(t){"string"==typeof t.ease&&t.ease in ip&&(t.ease=ip[t.ease]),n7(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){let{motionValue:e,onUpdate:n,onComplete:i,element:r,...o}=this.options;if(!e)return;if(void 0!==t){e.set(t);return}let s=new ii({...o,autoplay:!1}),a=nh(this.finishedTime??this.time);e.setWithVelocity(s.sample(a-10).value,s.sample(a).value,10),s.stop()}}let ig=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(t$.test(t)||"0"===t)&&!t.startsWith("url(")),iv=new Set(["opacity","clipPath","filter","transform"]),iy=io(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class iw extends it{constructor({autoplay:t=!0,delay:e=0,type:n="keyframes",repeat:i=0,repeatDelay:r=0,repeatType:o="loop",keyframes:s,name:a,motionValue:l,element:u,...c}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=t2.now();let h={autoplay:t,delay:e,type:n,repeat:i,repeatDelay:r,repeatType:o,name:a,motionValue:l,element:u,...c},d=u?.KeyframeResolver||tx;this.keyframeResolver=new d(s,(t,e,n)=>this.onKeyframesResolved(t,e,h,!n),a,l,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,e,n,i){this.keyframeResolver=void 0;let{name:r,type:o,velocity:s,delay:a,isHandoff:l,onUpdate:u}=n;this.resolvedAt=t2.now(),!function(t,e,n,i){let r=t[0];if(null===r)return!1;if("display"===e||"visibility"===e)return!0;let o=t[t.length-1],s=ig(r,e),a=ig(o,e);return J(s===a,`You are trying to animate ${e} from "${r}" to "${o}". "${s?o:r}" is not an animatable value.`,"value-not-animatable"),!!s&&!!a&&(function(t){let e=t[0];if(1===t.length)return!0;for(let n=0;n<t.length;n++)if(t[n]!==e)return!0}(t)||("spring"===n||ih(n))&&i)}(t,r,o,s)&&((ta.instantAnimations||!a)&&u?.(n9(t,n,e)),t[0]=t[t.length-1],nl(n),n.repeat=0);let c={startTime:i?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:e,...n,keyframes:t},h=!l&&function(t){let{motionValue:e,name:n,repeatDelay:i,repeatType:r,damping:o,type:s}=t;if(!(e?.owner?.current instanceof HTMLElement))return!1;
9let{onUpdate:a,transformTemplate:l}=e.owner.getProps();return iy()&&n&&iv.has(n)&&("transform"!==n||!l)&&!a&&!i&&"mirror"!==r&&0!==o&&"inertia"!==s}(c)?new im({...c,element:c.motionValue.owner.current}):new ii(c);h.finished.then(()=>this.notifyFinished()).catch(ts),this.pendingTimeline&&(this.stopTimeline=h.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=h}get finished(){return this._animation?this.animation.finished:this._finished}then(t,e){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),ty=!0,tb(),tw(),ty=!1),this._animation}get duration(){return this.animation.duration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}let ib=t=>null!==t,ix={type:"spring",stiffness:500,damping:25,restSpeed:10},iE=t=>({type:"spring",stiffness:550,damping:0===t?2*Math.sqrt(550):30,restSpeed:10}),iS={type:"keyframes",duration:.8},iT={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},iP=(t,{keyframes:e})=>e.length>2?iS:a.has(t)?t.startsWith("scale")?iE(e[1]):ix:iT,iC=(t,e,n,i={},r,o)=>s=>{let a=no(i,t)||{},l=a.delay||i.delay||0,{elapsed:u=0}=i;u-=nh(l);let c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-u,onUpdate:t=>{e.set(t),a.onUpdate&&a.onUpdate(t)},onComplete:()=>{s(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:o?void 0:r};!function({when:t,delay:e,delayChildren:n,staggerChildren:i,staggerDirection:r,repeat:o,repeatType:s,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length}(a)&&Object.assign(c,iP(t,c)),c.duration&&(c.duration=nh(c.duration)),c.repeatDelay&&(c.repeatDelay=nh(c.repeatDelay)),void 0!==c.from&&(c.keyframes[0]=c.from);let h=!1;if(!1!==c.type&&(0!==c.duration||c.repeatDelay)||(nl(c),0!==c.delay||(h=!0)),(ta.instantAnimations||ta.skipAnimations)&&(h=!0,nl(c),c.delay=0),c.allowFlatten=!a.type&&!a.ease,h&&!o&&void 0!==e.get()){let t=function(t,{repeat:e,repeatType:n="loop"},i){let r=t.filter(ib),o=e&&"loop"!==n&&e%2==1?0:r.length-1;return r[o]}(c.keyframes,a);if(void 0!==t){th.update(()=>{c.onUpdate(t),c.onComplete()});return}}return a.isSync?new ii(c):new iw(c)};function iA(t,e,{delay:n=0,transitionOverride:i,type:r}={}){let{transition:o=t.getDefaultTransition(),transitionEnd:s,...a}=e;i&&(o=i);let l=[],u=r&&t.animationState&&t.animationState.getState()[r];for(let e in a){let i=t.getValue(e,t.latestValues[e]??null),r=a[e];if(void 0===r||u&&function({protectedKeys:t,needsAnimating:e},n){let i=t.hasOwnProperty(n)&&!0!==e[n];return e[n]=!1,i}(u,e))continue;let s={delay:n,...no(o||{},e)},c=i.get();if(void 0!==c&&!i.isAnimating&&!Array.isArray(r)&&r===c&&!s.velocity)continue;let h=!1;if(window.MotionHandoffAnimation){let n=t.props[nt];if(n){let t=window.MotionHandoffAnimation(n,e,th);null!==t&&(s.startTime=t,h=!0)}}na(t,e),i.start(iC(e,i,r,t.shouldReduceMotion&&F.has(e)?{type:!1}:s,t,h));let d=i.animation;d&&l.push(d)}return s&&Promise.all(l).then(()=>{th.update(()=>{s&&function(t,e){let{transitionEnd:n={},transition:i={},...r}=nr(t,e)||{};for(let e in r={...r,...n}){var o;let n=ns(o=r[e])?o[o.length-1]||0:o;t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,t7(n))}}(t,s)})}),l}function iM(t,e,n,i=0,r=1){let o=Array.from(t).sort((t,e)=>t.sortNodePosition(e)).indexOf(e),s=t.size,a=(s-1)*i;return"function"==typeof n?n(o,s):1===r?o*i:a-o*i}function iR(t,e,n={}){let i=nr(t,e,"exit"===n.type?t.presenceContext?.custom:void 0),{transition:r=t.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(r=n.transitionOverride);let o=i?()=>Promise.all(iA(t,i,n)):()=>Promise.resolve(),s=t.variantChildren&&t.variantChildren.size?(i=0)=>{let{delayChildren:o=0,staggerChildren:s,staggerDirection:a}=r;return function(t,e,n=0,i=0,r=0,o=1,s){let a=[];for(let l of t.variantChildren)l.notify("AnimationStart",e),a.push(iR(l,e,{...s,delay:n+("function"==typeof i?0:i)+iM(t.variantChildren,l,i,r,o)}).then(()=>l.notify("AnimationComplete",e)));return Promise.all(a)}(t,e,i,o,s,a,n)}:()=>Promise.resolve(),{when:a}=r;if(!a)return Promise.all([o(),s(n.delay)]);{let[t,e]="beforeChildren"===a?[o,s]:[s,o];return t().then(()=>e())}}function ik(t,e){if(!Array.isArray(e))return!1;let n=e.length;if(n!==t.length)return!1;for(let i=0;i<n;i++)if(e[i]!==t[i])return!1;return!0}let iD=ev.length,iO=[...eg].reverse(),iV=eg.length;function iL(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function ij(){return{animate:iL(!0),whileInView:iL(),whileHover:iL(),whileTap:iL(),whileDrag:iL(),whileFocus:iL(),exit:iL()}}class iI{constructor(t){this.isMounted=!1,this.node=t}update(){}}class iF extends iI{constructor(t){super(t),t.animationState||(t.animationState=function(t){let e=e=>Promise.all(e.map(({animation:e,options:n})=>(function(t,e,n={}){let i;if(t.notify("AnimationStart",e),Array.isArray(e))i=Promise.all(e.map(e=>iR(t,e,n)));else if("string"==typeof e)i=iR(t,e,n);else{let r="function"==typeof e?nr(t,e,n.custom):e;i=Promise.all(iA(t,r,n))}return i.then(()=>{t.notify("AnimationComplete",e)})})(t,e,n))),n=ij(),i=!0,r=e=>(n,i)=>{let r=nr(t,i,"exit"===e?t.presenceContext?.custom:void 0);if(r){let{transition:t,transitionEnd:e,...i}=r;n={...n,...i,...e}}return n};function o(o){let{props:s}=t,a=function t(e){if(!e)return;if(!e.isControllingVariants){let n=e.parent&&t(e.parent)||{};return void 0!==e.props.initial&&(n.initial=e.props.initial),n}let n={};for(let t=0;t<iD;t++){let i=ev[t],r=e.props[i];(em(r)||!1===r)&&(n[i]=r)}return n}(t.parent)||{},l=[],u=new Set,c={},h=1/0;for(let e=0;e<iV;e++){var d;
9let f=iO[e],p=n[f],m=void 0!==s[f]?s[f]:a[f],g=em(m),v=f===o?p.isActive:null;!1===v&&(h=e);let y=m===a[f]&&m!==s[f]&&g;if(y&&i&&t.manuallyAnimateOnMount&&(y=!1),p.protectedKeys={...c},!p.isActive&&null===v||!m&&!p.prevProp||ep(m)||"boolean"==typeof m)continue;let w=(d=p.prevProp,"string"==typeof m?m!==d:!!Array.isArray(m)&&!ik(m,d)),b=w||f===o&&p.isActive&&!y&&g||e>h&&g,x=!1,E=Array.isArray(m)?m:[m],S=E.reduce(r(f),{});!1===v&&(S={});let{prevResolvedValues:T={}}=p,P={...T,...S},C=e=>{b=!0,u.has(e)&&(x=!0,u.delete(e)),p.needsAnimating[e]=!0;let n=t.getValue(e);n&&(n.liveStyle=!1)};for(let t in P){let e=S[t],n=T[t];if(!c.hasOwnProperty(t))(ns(e)&&ns(n)?ik(e,n):e===n)?void 0!==e&&u.has(t)?C(t):p.protectedKeys[t]=!0:null!=e?C(t):u.add(t)}p.prevProp=m,p.prevResolvedValues=S,p.isActive&&(c={...c,...S}),i&&t.blockInitialAnimation&&(b=!1);let A=y&&w,M=!A||x;b&&M&&l.push(...E.map(e=>{let n={type:f};if("string"==typeof e&&i&&!A&&t.manuallyAnimateOnMount&&t.parent){let{parent:i}=t,r=nr(i,e);if(i.enteringChildren&&r){let{delayChildren:e}=r.transition||{};n.delay=iM(i.enteringChildren,t,e)}}return{animation:e,options:n}}))}if(u.size){let e={};if("boolean"!=typeof s.initial){let n=nr(t,Array.isArray(s.initial)?s.initial[0]:s.initial);n&&n.transition&&(e.transition=n.transition)}u.forEach(n=>{let i=t.getBaseTarget(n),r=t.getValue(n);r&&(r.liveStyle=!0),e[n]=i??null}),l.push({animation:e})}let f=!!l.length;return i&&(!1===s.initial||s.initial===s.animate)&&!t.manuallyAnimateOnMount&&(f=!1),i=!1,f?e(l):Promise.resolve()}return{animateChanges:o,setActive:function(e,i){if(n[e].isActive===i)return Promise.resolve();t.variantChildren?.forEach(t=>t.animationState?.setActive(e,i)),n[e].isActive=i;let r=o(e);for(let t in n)n[t].protectedKeys={};return r},setAnimateFunction:function(n){e=n(t)},getState:()=>n,reset:()=>{n=ij(),i=!0}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();ep(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let iB=0;class iN extends iI{constructor(){super(...arguments),this.id=iB++}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===n)return;let i=this.node.animationState.setActive("exit",!t);e&&!t&&i.then(()=>{e(this.id)})}mount(){let{register:t,onExitComplete:e}=this.node.presenceContext||{};
9e&&e(this.id),t&&(this.unmount=t(this.id))}unmount(){}}let iW={x:!1,y:!1};function iU(t,e,n,i={passive:!0}){return t.addEventListener(e,n,i),()=>t.removeEventListener(e,n)}let i$=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function i_(t){return{point:{x:t.pageX,y:t.pageY}}}let iH=t=>e=>i$(e)&&t(e,i_(e));function iz(t,e,n,i){return iU(t,e,iH(n),i)}function iK(t){return t.max-t.min}function iq(t,e,n,i=.5){t.origin=i,t.originPoint=P(e.min,e.max,t.origin),t.scale=iK(n)/iK(e),t.translate=P(n.min,n.max,t.origin)-t.originPoint,(t.scale>=.9999&&t.scale<=1.0001||isNaN(t.scale))&&(t.scale=1),(t.translate>=-.01&&t.translate<=.01||isNaN(t.translate))&&(t.translate=0)}function iY(t,e,n,i){iq(t.x,e.x,n.x,i?i.originX:void 0),iq(t.y,e.y,n.y,i?i.originY:void 0)}function iX(t,e,n){t.min=n.min+e.min,t.max=t.min+iK(e)}function iZ(t,e,n){t.min=e.min-n.min,t.max=t.min+iK(e)}function iG(t,e,n){iZ(t.x,e.x,n.x),iZ(t.y,e.y,n.y)}function iJ(t){return[t("x"),t("y")]}let iQ=({current:t})=>t?t.ownerDocument.defaultView:null,i0=(t,e)=>Math.abs(t-e);class i1{constructor(t,e,{transformPagePoint:n,contextWindow:i=window,dragSnapToOrigin:r=!1,distanceThreshold:o=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{var t,e;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let n=i3(this.lastMoveEventInfo,this.history),i=null!==this.startEvent,r=(t=n.offset,e={x:0,y:0},Math.sqrt(i0(t.x,e.x)**2+i0(t.y,e.y)**2)>=this.distanceThreshold);if(!i&&!r)return;let{point:o}=n,{timestamp:s}=tf;this.history.push({...o,timestamp:s});let{onStart:a,onMove:l}=this.handlers;
9i||(a&&a(this.lastMoveEvent,n),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,n)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=i2(e,this.transformPagePoint),th.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:n,onSessionEnd:i,resumeAnimation:r}=this.handlers;if(this.dragSnapToOrigin&&r&&r(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let o=i3("pointercancel"===t.type?this.lastMoveEventInfo:i2(e,this.transformPagePoint),this.history);this.startEvent&&n&&n(t,o),i&&i(t,o)},!i$(t))return;this.dragSnapToOrigin=r,this.handlers=e,this.transformPagePoint=n,this.distanceThreshold=o,this.contextWindow=i||window;let s=i2(i_(t),this.transformPagePoint),{point:a}=s,{timestamp:l}=tf;this.history=[{...a,timestamp:l}];let{onSessionStart:u}=e;u&&u(t,i3(s,this.history)),this.removeListeners=nc(iz(this.contextWindow,"pointermove",this.handlePointerMove),iz(this.contextWindow,"pointerup",this.handlePointerUp),iz(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),td(this.updatePoint)}}function i2(t,e){return e?{point:e(t.point)}:t}function i5(t,e){return{x:t.x-e.x,y:t.y-e.y}}function i3({point:t},e){return{point:t,delta:i5(t,i4(e)),offset:i5(t,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,i=null,r=i4(t);for(;n>=0&&(i=t[n],!(r.timestamp-i.timestamp>nh(.1)));)n--;if(!i)return{x:0,y:0};let o=nd(r.timestamp-i.timestamp);if(0===o)return{x:0,y:0};let s={x:(r.x-i.x)/o,y:(r.y-i.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}(e,0)}}function i4(t){return t[t.length-1]}function i6(t,e,n){return{min:void 0!==e?t.min+e:void 0,max:void 0!==n?t.max+n-(t.max-t.min):void 0}}function i9(t,e){let n=e.min-t.min,i=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,i]=[i,n]),{min:n,max:i}}function i8(t,e,n){return{min:i7(t,e),max:i7(t,n)}}function i7(t,e){return"number"==typeof t?t:t[e]||0}let rt=new WeakMap;class re{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=eu(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:e=!1,distanceThreshold:n}={}){let{presenceContext:i}=this.visualElement;if(i&&!1===i.isPresent)return;let{dragSnapToOrigin:r}=this.getProps();this.panSession=new i1(t,{onSessionStart:t=>{let{dragSnapToOrigin:n}=this.getProps();n?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor(i_(t).point)},onStart:(t,e)=>{let{drag:n,dragPropagation:i,onDragStart:r}=this.getProps();if(n&&!i&&(this.openDragLock&&this.openDragLock(),this.openDragLock="x"===n||"y"===n?iW[n]?null:(iW[n]=!0,()=>{iW[n]=!1}):iW.x||iW.y?null:(iW.x=iW.y=!0,()=>{iW.x=iW.y=!1}),!this.openDragLock))return;this.latestPointerEvent=t,this.latestPanInfo=e,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),iJ(t=>{let e=this.getAxisMotionValue(t).get()||0;if(H.test(e)){let{projection:n}=this.visualElement;if(n&&n.layout){let i=n.layout.layoutBox[t];if(i){let t=iK(i);e=parseFloat(e)/100*t}}}this.originPoint[t]=e}),r&&th.postRender(()=>r(t,e)),na(this.visualElement,"transform");let{animationState:o}=this.visualElement;o&&o.setActive("whileDrag",!0)},onMove:(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e;let{dragPropagation:n,dragDirectionLock:i,onDirectionLock:r,onDrag:o}=this.getProps();if(!n&&!this.openDragLock)return;let{offset:s}=e;if(i&&null===this.currentDirection){this.currentDirection=function(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}(s),null!==this.currentDirection&&r&&r(this.currentDirection);return}this.updateAxis("x",e.point,s),this.updateAxis("y",e.point,s),this.visualElement.render(),o&&o(t,e)},onSessionEnd:(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e,this.stop(t,e),this.latestPointerEvent=null,this.latestPanInfo=null},resumeAnimation:()=>iJ(t=>"paused"===this.getAnimationState(t)&&this.getAxisMotionValue(t).animation?.play())},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:r,distanceThreshold:n,contextWindow:iQ(this.visualElement)})}stop(t,e){let n=t||this.latestPointerEvent,i=e||this.latestPanInfo,r=this.isDragging;if(this.cancel(),!r||!i||!n)return;let{velocity:o}=i;this.startAnimation(o);let{onDragEnd:s}=this.getProps();s&&th.postRender(()=>s(n,i))}cancel(){this.isDragging=!1;let{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),e&&e.setActive("whileDrag",!1)}updateAxis(t,e,n){let{drag:i}=this.getProps();if(!n||!rn(t,i,this.currentDirection))return;let r=this.getAxisMotionValue(t),o=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(o=function(t,{min:e,max:n},i){return void 0!==e&&t<e?t=i?P(e,t,i.min):Math.max(t,e):void 0!==n&&t>n&&(t=i?P(n,t,i.max):Math.min(t,n)),t}(o,this.constraints[t],this.elastic[t])),r.set(o)}resolveConstraints(){let{dragConstraints:t,dragElastic:e}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,i=this.constraints;t&&e7(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&n?this.constraints=function(t,{top:e,left:n,bottom:i,right:r}){return{x:i6(t.x,n,r),y:i6(t.y,e,i)}}(n.layoutBox,t):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:i8(t,"left","right"),y:i8(t,"top","bottom")}}(e),i!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&iJ(t=>{!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=function(t,e){let n={};return void 0!==e.min&&(n.min=e.min-t.min),void 0!==e.max&&(n.max=e.max-t.min),n}(n.layoutBox[t],this.constraints[t]))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!e7(e))return!1;let i=e.current;Q(null!==i,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");let{projection:r}=this.visualElement;if(!r||!r.layout)return!1;let o=function(t,e,n){let i=I(t,n),{scroll:r}=e;return r&&(V(i.x,r.offset.x),V(i.y,r.offset.y)),i}(i,r.root,this.visualElement.getTransformPagePoint()),s={x:i9((t=r.layout.layoutBox).x,o.x),y:i9(t.y,o.y)};if(n){let t=n(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(s));this.hasMutatedConstraints=!!t,t&&(s=T(t))}return s}startAnimation(t){let{drag:e,dragMomentum:n,dragElastic:i,dragTransition:r,dragSnapToOrigin:o,onDragTransitionEnd:s}=this.getProps(),a=this.constraints||{};return Promise.all(iJ(s=>{if(!rn(s,e,this.currentDirection))return;let l=a&&a[s]||{};o&&(l={min:0,max:0});let u={type:"inertia",velocity:n?t[s]:0,bounceStiffness:i?200:1e6,bounceDamping:i?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...r,...l};return this.startAxisValueAnimation(s,u)})).then(s)}startAxisValueAnimation(t,e){let n=this.getAxisMotionValue(t);return na(this.visualElement,t),n.start(iC(t,n,0,e,this.visualElement,!1))}stopAnimation(){iJ(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){iJ(t=>this.getAxisMotionValue(t).animation?.pause())}getAnimationState(t){return this.getAxisMotionValue(t).animation?.state}getAxisMotionValue(t){let e=`_drag${t.toUpperCase()}`,n=this.visualElement.getProps();return n[e]||this.visualElement.getValue(t,(n.initial?n.initial[t]:void 0)||0)}snapToCursor(t){iJ(e=>{let{drag:n}=this.getProps();if(!rn(e,n,this.currentDirection))return;let{projection:i}=this.visualElement,r=this.getAxisMotionValue(e);if(i&&i.layout){let{min:n,max:o}=i.layout.layoutBox[e];r.set(t[e]-P(n,o,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:n}=this.visualElement;if(!e7(e)||!n||!this.constraints)return;this.stopAnimation();let i={x:0,y:0};iJ(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){let n=e.get();i[t]=function(t,e){let n=.5,i=iK(t),r=iK(e);return r>i?n=n3(e.min,e.max-i,t.min):i>r&&(n=n3(t.min,t.max-r,e.min)),B(0,1,n)}({min:n,max:n},this.constraints[t])}});let{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),iJ(e=>{if(!rn(e,t,null))return;let n=this.getAxisMotionValue(e),{min:r,max:o}=this.constraints[e];n.set(P(r,o,i[e]))})}addListeners(){if(!this.visualElement.current)return;rt.set(this.visualElement,this);let t=iz(this.visualElement.current,"pointerdown",t=>{let{drag:e,dragListener:n=!0}
9=this.getProps();e&&n&&this.start(t)}),e=()=>{let{dragConstraints:t}=this.getProps();e7(t)&&t.current&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,i=n.addEventListener("measure",e);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),th.read(e);let r=iU(window,"resize",()=>this.scalePositionWithinConstraints()),o=n.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(iJ(e=>{let n=this.getAxisMotionValue(e);n&&(this.originPoint[e]+=t[e].translate,n.set(n.get()+t[e].translate))}),this.visualElement.render())});return()=>{r(),t(),i(),o&&o()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:n=!1,dragPropagation:i=!1,dragConstraints:r=!1,dragElastic:o=.35,dragMomentum:s=!0}=t;return{...t,drag:e,dragDirectionLock:n,dragPropagation:i,dragConstraints:r,dragElastic:o,dragMomentum:s}}}function rn(t,e,n){return(!0===e||e===t)&&(null===n||n===t)}class ri extends iI{constructor(t){super(t),this.removeGroupControls=ts,this.removeListeners=ts,this.controls=new re(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ts}unmount(){this.removeGroupControls(),this.removeListeners()}}let rr=t=>(e,n)=>{t&&th.postRender(()=>t(e,n))};class ro extends iI{constructor(){super(...arguments),this.removePointerDownListener=ts}onPointerDown(t){this.session=new i1(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:iQ(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:n,onPanEnd:i}=this.node.getProps();return{onSessionStart:rr(t),onStart:rr(e),onMove:n,onEnd:(t,e)=>{delete this.session,i&&th.postRender(()=>i(t,e))}}}mount(){this.removePointerDownListener=iz(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}var rs=n(5947);let ra={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function rl(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let ru={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t){if(!z.test(t))return t;t=parseFloat(t)}let n=rl(t,e.target.x),i=rl(t,e.target.y);return`${n}% ${i}%`}},rc=!1;class rh extends o.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:n,layoutId:i}=this.props,{projection:r}=t;!function(t){for(let e in t)ek[e]=t[e],b(e)&&(ek[e].isCSSVariable=!0)}(rf),r&&(e.group&&e.group.add(r),n&&n.register&&i&&n.register(r),rc&&r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,onExitComplete:()=>this.safeToRemove()})),ra.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:n,drag:i,isPresent:r}=this.props,{projection:o}=n;return o&&(o.isPresent=r,rc=!0,i||t.layoutDependency!==e||void 0===e||t.isPresent!==r?o.willUpdate():this.safeToRemove(),t.isPresent===r||(r?o.promote():o.relegate()||th.postRender(()=>{let t=o.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),en.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:n}=this.props,{projection:i}=t;rc=!0,i&&(i.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(i),n&&n.deregister&&n.deregister(i))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}}function rd(t){let[e,n]=(0,rs.oO)(),i=(0,o.useContext)(ez.p);return(0,eH.jsx)(rh,{...t,layoutGroup:i,switchLayoutGroup:(0,o.useContext)(ne),isPresent:e,safeToRemove:n})}let rf={borderRadius:{...ru,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ru,borderTopRightRadius:ru,borderBottomLeftRadius:ru,borderBottomRightRadius:ru,boxShadow:{correct:(t,{treeScale:e,projectionDelta:n})=>{let i=t$.parse(t);if(i.length>5)return t;let r=t$.createTransformer(t),o="number"!=typeof i[0]?1:0,s=n.x.scale*e.x,a=n.y.scale*e.y;i[0+o]/=s,i[1+o]/=a;let l=P(s,a,.5);return"number"==typeof i[2+o]&&(i[2+o]/=l),"number"==typeof i[3+o]&&(i[3+o]/=l),r(i)}}};var rp=n(6464);function rm(t){return(0,rp.K)(t)&&"ownerSVGElement"in t}let rg=(t,e)=>t.depth-e.depth;class rv{constructor(){this.children=[],this.isDirty=!1}add(t){t5(this.children,t),this.isDirty=!0}remove(t){t3(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(rg),this.isDirty=!1,this.children.forEac
9h(t)}}let ry=["TopLeft","TopRight","BottomLeft","BottomRight"],rw=ry.length,rb=t=>"string"==typeof t?parseFloat(t):t,rx=t=>"number"==typeof t||z.test(t);function rE(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let rS=rP(0,.5,nJ),rT=rP(.5,.95,ts);function rP(t,e,n){return i=>i<t?0:i>e?1:n(n3(t,e,i))}function rC(t,e){t.min=e.min,t.max=e.max}function rA(t,e){rC(t.x,e.x),rC(t.y,e.y)}function rM(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function rR(t,e,n,i,r){return t-=e,t=i+1/n*(t-i),void 0!==r&&(t=i+1/r*(t-i)),t}function rk(t,e,[n,i,r],o,s){!function(t,e=0,n=1,i=.5,r,o=t,s=t){if(H.test(e)&&(e=parseFloat(e),e=P(s.min,s.max,e/100)-s.min),"number"!=typeof e)return;let a=P(o.min,o.max,i);t===o&&(a-=e),t.min=rR(t.min,e,n,a,r),t.max=rR(t.max,e,n,a,r)}(t,e[n],e[i],e[r],e.scale,o,s)}let rD=["x","scaleX","originX"],rO=["y","scaleY","originY"];function rV(t,e,n,i){rk(t.x,e,rD,n?n.x:void 0,i?i.x:void 0),rk(t.y,e,rO,n?n.y:void 0,i?i.y:void 0)}function rL(t){return 0===t.translate&&1===t.scale}function rj(t){return rL(t.x)&&rL(t.y)}function rI(t,e){return t.min===e.min&&t.max===e.max}function rF(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function rB(t,e){return rF(t.x,e.x)&&rF(t.y,e.y)}function rN(t){return iK(t.x)/iK(t.y)}function rW(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class rU{constructor(){this.members=[]}add(t){t5(this.members,t),t.scheduleRender()}remove(t){if(t3(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){let e;let n=this.members.findIndex(e=>t===e);if(0===n)return!1;for(let t=n;t>=0;t--){let n=this.members[t];if(!1!==n.isPresent){e=n;break}}return!!e&&(this.promote(e),!0)}promote(t,e){let n=this.lead;if(t!==n&&(this.prevLead=n,this.lead=t,t.show(),n)){n.instance&&n.scheduleRender(),t.scheduleRender(),t.resumeFrom=n,e&&(t.resumeFrom.preserveOpacity=!0),n.snapshot&&(t.snapshot=n.snapshot,t.snapshot.latestValues=n.animationValues||n.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);let{crossfade:i}=t.options;!1===i&&n.hide()}}exitAnimationComplete(){this.members.forEach(t=>{let{options:e,resumingFrom:n}=t;e.onExitComplete&&e.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}let r$={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},r_=["","X","Y","Z"],rH=0;function rz(t,e,n,i){let{latestValues:r}=e;r[t]&&(n[t]=r[t],e.setStaticValue(t,0),i&&(i[t]=0))}function rK({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:i,resetTransform:r}){return class{constructor(t={},n=e?.()){this.id=rH++,this.animationId=0,this.animationCommitId=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,tu.value&&(r$.nodes=r$.calculatedTargetDeltas=r$.calculatedProjections=0),this.nodes.forEach(rX),this.nodes.forEach(r2),this.nodes.forEach(r5),this.nodes.forEach(rZ),tu.addProjectionMetrics&&tu.addProjectionMetrics(r$)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new rv)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new t4),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){let n=this.eventHandlers.get(t);n&&n.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}mount(e){if(this.instance)return;this.isSVG=rm(e)&&!(rm(e)&&"svg"===e.tagName),this.instance=e;let{layoutId:n,layout:i,visualElement:r}=this.options;if(r&&!r.current&&r.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(i||n)&&(this.isLayoutDirty=!0),t){let n;let i=0,r=()=>this.root.updateBlockedByResize=!1;th.read(()=>{i=window.innerWidth}),t(e,()=>{let t=window.innerWidth;t!==i&&(i=t,this.root.updateBlockedByResize=!0,n&&n(),n=function(t,e){let n=t2.now(),i=({timestamp:e})=>{let r=e-n;r>=250&&(td(i),t(r-250))};return th.setup(i,!0),()=>td(i)}(r,0),ra.hasAnimatedSinceResize&&(ra.hasAnimatedSinceResize=!1,this.nodes.forEac
9h(r1)))})}n&&this.root.registerSharedNode(n,this),!1!==this.options.animate&&r&&(n||i)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeLayoutChanged:n,layout:i})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let o=this.options.transition||r.getDefaultTransition()||r7,{onLayoutAnimationStart:s,onLayoutAnimationComplete:a}=r.getProps(),l=!this.targetLayout||!rB(this.targetLayout,i),u=!e&&n;if(this.options.layoutRoot||this.resumeFrom||u||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let e={...no(o,"layout"),onPlay:s,onComplete:a};(r.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e),this.setAnimationOrigin(t,u)}else e||r1(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=i})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),td(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(r3),this.animationId++)}getTransformTemplate(){let{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function t(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:n}=e.options;if(!n)return;let i=n.props[nt];if(window.MotionHasOptimisedAnimation(i,"transform")){let{layout:t,layoutId:n}=e.options;window.MotionCancelOptimisedAnimation(i,"transform",th,!(t||n))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&t(r)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t<this.path.length;t++){let e=this.path[t];e.shouldResetTransform=!0,e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}let{layoutId:e,layout:n}=this.options;if(void 0===e&&!n)return;let i=this.getTransformTemplate();this.prevTransformTemplateValue=i?i(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(rJ);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(rQ);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(r0),this.nodes.forEach(rq),this.nodes.forEach(rY)):this.nodes.forEach(rQ),this.clearAllSnapshots();let t=t2.now();tf.delta=B(0,1e3/60,t-tf.timestamp),tf.timestamp=t,tf.isProcessing=!0,tp.update.process(tf),tp.preRender.process(tf),tp.render.process(tf),tf.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,en.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(rG),this.sharedNodes.forEach(r4)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,th.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){th.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),!this.snapshot||iK(this.snapshot.measuredBox.x)||iK(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let t=0;t<this.path.length;t++)this.path[t].updateScroll();let t=this.layout;this.layout=this.measure(!1),this.layoutCorrected=eu(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:e}=this.options;e&&e.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(t="measure"){let e=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e&&this.instance){let e=i(this.instance);this.scroll={animationId:this.root.animationId,phase:t,isRoot:e,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:e}}}resetTransform(){if(!r)return;let t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!rj(this.projectionDelta),n=this.getTransformTemplate(),i=n?n(this.latestValues,""):void 0,o=i!==this.prevTransformTemplateValue;t&&this.instance&&(e||M(this.latestValues)||o)&&(r(this.instance,i),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){var e;let n=this.measurePageBox(),i=this.removeElementScroll(n);return t&&(i=this.removeTransform(i)),on((e=i).x),on(e.y),{animationId:this.root.animationId,measuredBox:n,layoutBox:i,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:t}=this.options;if(!t)return eu();let e=t.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(or))){let{scroll:t}=this.root;t&&(V(e.x,t.offset.x),V(e.y,t.offset.y))}return e}removeElementScroll(t){let e=eu();if(rA(e,t),this.scroll?.wasRoot)return e;for(let n=0;n<this.path.length;n++){let i=this.path[n],{scroll:r,options:o}=i;i!==this.root&&r&&o.layoutScroll&&(r.wasRoot&&rA(e,t),V(e.x,r.offset.x),V(e.y,r.offset.y))}return e}applyTransform(t,e=!1){let n=eu();rA(n,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];!e&&i.options.layoutScroll&&i.scroll&&i!==i.root&&j(n,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),M(i.latestValues)&&j(n,i.latestValues)}return M(this.latestValues)&&j(n,this.latestValues),n}removeTransform(t){let e=eu();rA(e,t);for(let t=0;t<this.path.length;t++){let n=this.path[t];if(!n.instance||!M(n.latestValues))continue;A(n.latestValues)&&n.updateSnapshot();let i=eu();rA(i,n.measurePageBox()),rV(e,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,i)}return M(this.latestValues)&&rV(e,this.latestValues),e}setTargetDelta(t){this.targetDelta=t,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(t){this.options={...this.options,...t,crossfade:void 0===t.crossfade||t.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==tf.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){let e=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=e.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=e.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=e.isSharedProjectionDirty);let n=!!this.resumingFrom||this!==e;if(!(t||n&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:i,layoutId:r}=this.options;if(this.layout&&(i||r)){if(this.resolvedRelativeTargetAt=tf.timestamp,!this.targetDelta&&!this.relativeTarget){let t=this.getClosestProjectingParent();t&&t.layout&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=eu(),this.relativeTargetOrigin=eu(),iG(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),rA(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if(this.target||(this.target=eu(),this.targetWithTransforms=eu()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target){var o,s,a;this.forceRelativeParentToResolveTarget(),o=this.target,s=this.relativeTarget,a=this.relativeParent.target,iX(o.x,s.x,a.x),iX(o.y,s.y,a.y)}else this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):rA(this.target,this.layout.layoutBox),O(this.target,this.targetDelta)):rA(this.target,this.layout.layoutBox);if(this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let t=this.getClosestProjectingParent();t&&!!t.resumingFrom==!!this.resumingFrom&&!t.options.layoutScroll&&t.target&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=eu(),this.relativeTargetOrigin=eu(),iG(this.relativeTargetOrigin,this.target,t.target),rA(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}tu.value&&r$.calculatedTargetDeltas++}}}getClosestProjectingParent(){return!this.parent||A(this.parent.latestValues)||R(this.parent.latestValues)?void 0:this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){let t=this.getLead(),e=!!this.resumingFrom||this!==t,n=!0;
9if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(n=!1),e&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===tf.timestamp&&(n=!1),n)return;let{layout:i,layoutId:r}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(i||r))return;rA(this.layoutCorrected,this.layout.layoutBox);let o=this.treeScale.x,s=this.treeScale.y;!function(t,e,n,i=!1){let r,o;let s=n.length;if(s){e.x=e.y=1;for(let a=0;a<s;a++){o=(r=n[a]).projectionDelta;let{visualElement:s}=r.options;(!s||!s.props.style||"contents"!==s.props.style.display)&&(i&&r.options.layoutScroll&&r.scroll&&r!==r.root&&j(t,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),o&&(e.x*=o.x.scale,e.y*=o.y.scale,O(t,o)),i&&M(r.latestValues)&&j(t,r.latestValues))}e.x<1.0000000000001&&e.x>.999999999999&&(e.x=1),e.y<1.0000000000001&&e.y>.999999999999&&(e.y=1)}}(this.layoutCorrected,this.treeScale,this.path,e),t.layout&&!t.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(t.target=t.layout.layoutBox,t.targetWithTransforms=eu());let{target:a}=t;if(!a){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(rM(this.prevProjectionDelta.x,this.projectionDelta.x),rM(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),iY(this.projectionDelta,this.layoutCorrected,a,this.latestValues),this.treeScale.x===o&&this.treeScale.y===s&&rW(this.projectionDelta.x,this.prevProjectionDelta.x)&&rW(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",a)),tu.value&&r$.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){if(this.options.visualElement?.scheduleRender(),t){let t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=ea(),this.projectionDelta=ea(),this.projectionDeltaWithTransform=ea()}setAnimationOrigin(t,e=!1){let n;let i=this.snapshot,r=i?i.latestValues:{},o={...this.latestValues},s=ea();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let a=eu(),l=(i?i.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),c=!u||u.members.length<=1,h=!!(l&&!c&&!0===this.options.crossfade&&!this.path.some(r8));this.animationProgress=0,this.mixTargetDelta=e=>{let i=e/1e3;if(r6(s.x,t.x,i),r6(s.y,t.y,i),this.setTargetDelta(s),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,d,f,p;iG(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),f=this.relativeTarget,p=this.relativeTargetOrigin,r9(f.x,p.x,a.x,i),r9(f.y,p.y,a.y,i),n&&(u=this.relativeTarget,d=n,rI(u.x,d.x)&&rI(u.y,d.y))&&(this.isProjectionDirty=!1),n||(n=eu()),rA(n,this.relativeTarget)}l&&(this.animationValues=o,function(t,e,n,i,r,o){r?(t.opacity=P(0,n.opacity??1,rS(i)),t.opacityExit=P(e.opacity??1,0,rT(i))):o&&(t.opacity=P(e.opacity??1,n.opacity??1,i));for(let r=0;r<rw;r++){let o=`border${ry[r]}Radius`,s=rE(e,o),a=rE(n,o);(void 0!==s||void 0!==a)&&(s||(s=0),a||(a=0),0===s||0===a||rx(s)===rx(a)?(t[o]=Math.max(P(rb(s),rb(a),i),0),(H.test(a)||H.test(s))&&(t[o]+="%")):t[o]=a)}(e.rotate||n.rotate)&&(t.rotate=P(e.rotate||0,n.rotate||0,i))}(o,r,this.latestValues,i,h,c)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=i},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(td(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=th.update(()=>{ra.hasAnimatedSinceResize=!0,nf.layout++,this.motionValue||(this.motionValue=t7(0)),this.currentAnimation=function(t,e,n){let i=t0(t)?t:t7(t);return i.start(iC("",i,e,n)),i.animation}(this.motionValue,[0,1e3],{...t,velocity:0,isSync:!0,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onStop:()=>{nf.layout--},onComplete:()=>{nf.layout--,t.onComplete&&t.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);let t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let t=this.getLead(),{targetWithTransforms:e,target:n,layout:i,latestValues:r}=t;
9if(e&&n&&i){if(this!==t&&this.layout&&i&&oi(this.options.animationType,this.layout.layoutBox,i.layoutBox)){n=this.target||eu();let e=iK(this.layout.layoutBox.x);n.x.min=t.target.x.min,n.x.max=n.x.min+e;let i=iK(this.layout.layoutBox.y);n.y.min=t.target.y.min,n.y.max=n.y.min+i}rA(e,n),j(e,r),iY(this.projectionDeltaWithTransform,this.layoutCorrected,e,r)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new rU),this.sharedNodes.get(t).add(e);let n=e.options.initialPromotionConfig;e.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(e):void 0})}isLead(){let t=this.getStack();return!t||t.lead===this}getLead(){let{layoutId:t}=this.options;return t&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:t}=this.options;return t?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:n}={}){let i=this.getStack();i&&i.promote(this,n),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){let t=this.getStack();return!!t&&t.relegate(this)}resetSkewAndRotation(){let{visualElement:t}=this.options;if(!t)return;let e=!1,{latestValues:n}=t;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(e=!0),!e)return;let i={};n.z&&rz("z",t,i,this.animationValues);for(let e=0;e<r_.length;e++)rz(`rotate${r_[e]}`,t,i,this.animationValues),rz(`skew${r_[e]}`,t,i,this.animationValues);for(let e in t.render(),i)t.setStaticValue(e,i[e]),this.animationValues&&(this.animationValues[e]=i[e]);t.scheduleRender()}applyProjectionStyles(t,e){if(!this.instance||this.isSVG)return;if(!this.isVisible){t.visibility="hidden";return}let n=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,t.visibility="",t.opacity="",t.pointerEvents=e3(e?.pointerEvents)||"",t.transform=n?n(this.latestValues,""):"none";return}let i=this.getLead();if(!this.projectionDelta||!this.layout||!i.target){this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=e3(e?.pointerEvents)||""),this.hasProjected&&!M(this.latestValues)&&(t.transform=n?n({},""):"none",this.hasProjected=!1);return}t.visibility="";let r=i.animationValues||i.latestValues;this.applyTransformsToTarget();let o=function(t,e,n){let i="",r=t.x.translate/e.x,o=t.y.translate/e.y,s=n?.z||0;if((r||o||s)&&(i=`translate3d(${r}px, ${o}px, ${s}px) `),(1!==e.x||1!==e.y)&&(i+=`scale(${1/e.x}, ${1/e.y}) `),n){let{transformPerspective:t,rotate:e,rotateX:r,rotateY:o,skewX:s,skewY:a}=n;t&&(i=`perspective(${t}px) ${i}`),e&&(i+=`rotate(${e}deg) `),r&&(i+=`rotateX(${r}deg) `),o&&(i+=`rotateY(${o}deg) `),s&&(i+=`skewX(${s}deg) `),a&&(i+=`skewY(${a}deg) `)}let a=t.x.scale*e.x,l=t.y.scale*e.y;return(1!==a||1!==l)&&(i+=`scale(${a}, ${l})`),i||"none"}(this.projectionDeltaWithTransform,this.treeScale,r);n&&(o=n(r,o)),t.transform=o;let{x:s,y:a}=this.projectionDelta;for(let e in t.transformOrigin=`${100*s.origin}% ${100*a.origin}% 0`,i.animationValues?t.opacity=i===this?r.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:r.opacityExit:t.opacity=i===this?void 0!==r.opacity?r.opacity:"":void 0!==r.opacityExit?r.opacityExit:0,ek){if(void 0===r[e])continue;let{correct:n,applyTo:s,isCSSVariable:a}=ek[e],l="none"===o?r[e]:n(r[e],i);if(s){let e=s.length;for(let n=0;n<e;n++)t[s[n]]=l}else a?this.options.visualElement.renderState.vars[e]=l:t[e]=l}this.options.layoutId&&(t.pointerEvents=i===this?e3(e?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>t.currentAnimation?.stop()),this.root.nodes.forEach(rJ),this.root.sharedNodes.clear()}}}function rq(t){t.updateLayout()}function rY(t){let e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){let{layoutBox:n,measuredBox:i}=t.layout,{animationType:r}=t.options,o=e.source!==t.layout.source;"size"===r?iJ(t=>{let i=o?e.measuredBox[t]:e.layoutBox[t],r=iK(i);i.min=n[t].min,i.max=i.min+r}):oi(r,e.layoutBox,n)&&iJ(i=>{let r=o?e.measuredBox[i]:e.layoutBox[i],s=iK(n[i]);r.max=r.min+s,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[i].max=t.relativeTarget[i].min+s)});let s=ea();iY(s,n,e.layoutBox);let a=ea();o?iY(a,t.applyTransform(i,!0),e.measuredBox):iY(a,n,e.layoutBox);let l=!rj(s),u=!1;if(!t.resumeFrom){let i=t.getClosestProjectingParent();if(i&&!i.resumeFrom){let{snapshot:r,layout:o}=i;if(r&&o){let s=eu();iG(s,e.layoutBox,r.layoutBox);let a=eu();iG(a,n,o.layoutBox),rB(s,a)||(u=!0),i.options.layoutRoot&&(t.relativeTarget=a,t.relativeTargetOrigin=s,t.relativeParent=i)}}}t.notifyListeners("didUpdate",{layout:n,snapshot:e,delta:a,layoutDelta:s,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function rX(t){tu.value&&r$.nodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.
9isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function rZ(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function rG(t){t.clearSnapshot()}function rJ(t){t.clearMeasurements()}function rQ(t){t.isLayoutDirty=!1}function r0(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function r1(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function r2(t){t.resolveTargetDelta()}function r5(t){t.calcProjection()}function r3(t){t.resetSkewAndRotation()}function r4(t){t.removeLeadSnapshot()}function r6(t,e,n){t.translate=P(e.translate,0,n),t.scale=P(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function r9(t,e,n,i){t.min=P(e.min,n.min,i),t.max=P(e.max,n.max,i)}function r8(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let r7={duration:.45,ease:[.4,0,.1,1]},ot=t=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),oe=ot("applewebkit/")&&!ot("chrome/")?Math.round:ts;function on(t){t.min=oe(t.min),t.max=oe(t.max)}function oi(t,e,n){return"position"===t||"preserve-aspect"===t&&!(.2>=Math.abs(rN(e)-rN(n)))}function or(t){return t!==t.root&&t.scroll?.wasRoot}let oo=rK({attachResizeListener:(t,e)=>iU(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),os={current:void 0},oa=rK({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!os.current){let t=new oo({});t.mount(window),t.setOptions({layoutScroll:!0}),os.current=t}return os.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});function ol(t,e){let n=function(t,e,n){if(t instanceof EventTarget)return[t];if("string"==typeof t){let e=document,n=(void 0)??e.querySelectorAll(t);return n?Array.from(n):[]}return Array.from(t)}(t),i=new AbortController;return[n,{passive:!0,...e,signal:i.signal},()=>i.abort()]}function ou(t){return!("touch"===t.pointerType||iW.x||iW.y)}function oc(t,e,n){let{props:i}=t;t.animationState&&i.whileHover&&t.animationState.setActive("whileHover","Start"===n);let r=i["onHover"+n];r&&th.postRender(()=>r(e,i_(e)))}class oh extends iI{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,n={}){let[i,r,o]=ol(t,n),s=t=>{if(!ou(t))return;let{target:n}=t,i=e(n,t);if("function"!=typeof i||!n)return;let o=t=>{ou(t)&&(i(t),n.removeEventListener("pointerleave",o))};n.addEventListener("pointerleave",o,r)};return i.forEach(t=>{t.addEventListener("pointerenter",s,r)}),o}(t,(t,e)=>(oc(this.node,e,"Start"),t=>oc(this.node,t,"End"))))}unmount(){}}class od extends iI{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(e){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=nc(iU(this.node.current,"focus",()=>this.onFocus()),iU(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}var of=n(3243);let op=(t,e)=>!!e&&(t===e||op(t,e.parentElement)),om=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),og=new WeakSet;function ov(t){return e=>{"Enter"===e.key&&t(e)}}function oy(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}let ow=(t,e)=>{let n=t.currentTarget;if(!n)return;let i=ov(()=>{if(og.has(n))return;oy(n,"down");let t=ov(()=>{oy(n,"up")});n.addEventListener("keyup",t,e),n.addEventListener("blur",()=>oy(n,"cancel"),e)});n.addEventListener("keydown",i,e),n.addEventListener("blur",()=>n.removeEventListener("keydown",i),e)};function ob(t){return i$(t)&&!(iW.x||iW.y)}function ox(t,e,n){let{props:i}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&i.whileTap&&t.animationState.setActive("whileTap","Start"===n);let r=i["onTap"+("End"===n?"":n)];r&&th.postRender(()=>r(e,i_(e)))}class oE extends iI{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,n={}){let[i,r,o]=ol(t,n),s=t=>{let i=t.currentTarget;if(!ob(t))return;og.add(i);let o=e(i,t),s=(t,e)=>{window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",l),og.has(i)&&og.delete(i),ob(t)&&"function"==typeof o&&o(t,{success:e})},a=t=>{s(t,i===window||i===document||n.useGlobalTarget||op(i,t.target))},l=t=>{s(t,!1)};window.addEventListener("pointerup",a,r),window.addEventListener("pointercancel",l,r)};
9return i.forEach(t=>{(n.useGlobalTarget?window:t).addEventListener("pointerdown",s,r),(0,of.R)(t)&&(t.addEventListener("focus",t=>ow(t,r)),om.has(t.tagName)||-1!==t.tabIndex||t.hasAttribute("tabindex")||(t.tabIndex=0))}),o}(t,(t,e)=>(ox(this.node,e,"Start"),(t,{success:e})=>ox(this.node,t,e?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}let oS=new WeakMap,oT=new WeakMap,oP=t=>{let e=oS.get(t.target);e&&e(t)},oC=t=>{t.forEach(oP)},oA={some:0,all:1};class oM extends iI{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:t={}}=this.node.getProps(),{root:e,margin:n,amount:i="some",once:r}=t,o={root:e?e.current:void 0,rootMargin:n,threshold:"number"==typeof i?i:oA[i]};return function(t,e,n){let i=function({root:t,...e}){let n=t||document;oT.has(n)||oT.set(n,{});let i=oT.get(n),r=JSON.stringify(e);return i[r]||(i[r]=new IntersectionObserver(oC,{root:t,...e})),i[r]}(e);return oS.set(t,n),i.observe(t),()=>{oS.delete(t),i.unobserve(t)}}(this.node.current,o,t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,r&&!e&&this.hasEnteredView))return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);let{onViewportEnter:n,onViewportLeave:i}=this.node.getProps(),o=e?n:i;o&&o(t)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}(t,e))&&this.startObserver()}unmount(){}}let oR=function(t,e){if("undefined"==typeof Proxy)return ni;let n=new Map,i=(n,i)=>ni(n,i,t,e);return new Proxy((t,e)=>i(t,e),{get:(r,o)=>"create"===o?i:(n.has(o)||n.set(o,ni(o,void 0,t,e)),n.get(o))})}({animation:{Feature:iF},exit:{Feature:iN},inView:{Feature:oM},tap:{Feature:oE},focus:{Feature:od},hover:{Feature:oh},pan:{Feature:ro},drag:{Feature:ri,ProjectionNode:oa,MeasureLayout:rd},layout:{ProjectionNode:oa,MeasureLayout:rd}},(t,e)=>e_(t)?new eU(e):new eV(e,{allowProjection:t!==o.Fragment}))},1741:function(t,e,n){"use strict";n.d(e,{j:function(){return i}});let i="undefined"!=typeof window},6681:function(t,e,n){"use strict";n.d(e,{h:function(){return r}});var i=n(2784);function r(t){let e=(0,i.useRef)(null);return null===e.current&&(e.current=t()),e.current}},8868:function(t,e,n){"use strict";n.d(e,{L:function(){return r}});var i=n(2784);let r=n(1741).j?i.useLayoutEffect:i.useEffect},3243:function(t,e,n){"use strict";n.d(e,{R:function(){return r}});var i=n(6464);function r(t){return(0,i.K)(t)&&"offsetHeight"in t}},6464:function(t,e,n){"use strict";function i(t){return"object"==typeof t&&null!==t}n.d(e,{K:function(){return i}})},5889:function(t,e,n){"use strict";let i,r,o;n.d(e,{VY:function(){return nQ},JO:function(){return nG},ck:function(){return n1},eT:function(){return n2},h_:function(){return nJ},fC:function(){return nY},$G:function(){return n3},u_:function(){return n5},xz:function(){return nX},B4:function(){return nZ},l_:function(){return n0}});var s,a,l,u,c,h,d,f=n(7896),p=n(2784),m=n(8316);function g(t,[e,n]){return Math.min(n,Math.max(e,t))}var v=n(7998),y=n(2172),w=n(2656),b=n(2211),x=n(9241),E=n(2714),S=n(7757);let T="dismissableLayer.update",P=(0,p.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),C=(0,p.forwardRef)((t,e)=>{var n;let{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:s,onFocusOutside:a,onInteractOutside:l,onDismiss:u,...c}=t,h=(0,p.useContext)(P),[d,m]=(0,p.useState)(null),g=null!==(n=null==d?void 0:d.ownerDocument)&&void 0!==n?n:null==globalThis?void 0:globalThis.document,[,y]=(0,p.useState)({}),b=(0,w.e)(e,t=>m(t)),x=Array.from(h.layers),[C]=[...h.layersWithOutsidePointerEventsDisabled].slice(-1),R=x.indexOf(C),k=d?x.indexOf(d):-1,D=h.layersWithOutsidePointerEventsDisabled.size>0,O=k>=R,V=function(t,e=null==globalThis?void 0:globalThis.document){let n=(0,S.W)(t),i=(0,p.useRef)(!1),r=(0,p.useRef)(()=>{});return(0,p.useEffect)(()=>{let t=t=>{if(t.target&&!i.current){let i={originalEvent:t};function o(){M("dismissableLayer.pointerDownOutside",n,i,{discrete:!0})}"touch"===t.pointerType?(e.removeEventListener("click",r.current),r.current=o,e.addEventListener("click",r.current,{once:!0})):o()}else e.removeEventListener("click",r.current);i.current=!1},o=window.setTimeout(()=>{e.addEventListener("pointerdown",t)},0);return()=>{window.clearTimeout(o),e.removeEventListener("pointerdown",t),e.removeEventListener("click",r.current)}},[e,n]),{onPointerDownCapture:()=>i.current=!0}}(t=>{let e=t.target,n=[...h.branches].some(t=>t.contains(e));!O||n||(null==s||s(t),null==l||l(t),t.defaultPrevented||null==u||u())},g),L=function(t,e=null==globalThis?void 0:globalThis.document){let n=(0,S.W)(t),i=(0,p.useRef)(!1);return(0,p.useEffect)(()=>{let t=t=>{t.target&&!i.current&&M("dismissableLayer.focusOutside",n,{originalEvent:t},{discrete:!1})};return e.addEventListener("focusin",t),()=>e.removeEventListener("focusin",t)},[e,n]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}(t=>{let e=t.target;[...h.branches].some(t=>t.contains(e))||(null==a||a(t),null==l||l(t),t.defaultPrevented||null==u||u())},g);return!function(t,e=null==globalThis?void 0:globalThis.document){let n=(0,S.W)(t);(0,p.useEffect)(()=>{let t=t=>{"Escape"===t.key&&n(t)};return e.addEventListener("keydown",t),()=>e.removeEventListener("keydown",t)},[n,e])}(t=>{k!==h.layers.size-1||(null==o||o(t),!t.defaultPrevented&&u&&(t.preventDefault(),u()))},g),(0,p.useEffect)(()=>
9{if(d)return r&&(0===h.layersWithOutsidePointerEventsDisabled.size&&(i=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),h.layersWithOutsidePointerEventsDisabled.add(d)),h.layers.add(d),A(),()=>{r&&1===h.layersWithOutsidePointerEventsDisabled.size&&(g.body.style.pointerEvents=i)}},[d,g,r,h]),(0,p.useEffect)(()=>()=>{d&&(h.layers.delete(d),h.layersWithOutsidePointerEventsDisabled.delete(d),A())},[d,h]),(0,p.useEffect)(()=>{let t=()=>y({});return document.addEventListener(T,t),()=>document.removeEventListener(T,t)},[]),(0,p.createElement)(E.WV.div,(0,f.Z)({},c,{ref:b,style:{pointerEvents:D?O?"auto":"none":void 0,...t.style},onFocusCapture:(0,v.M)(t.onFocusCapture,L.onFocusCapture),onBlurCapture:(0,v.M)(t.onBlurCapture,L.onBlurCapture),onPointerDownCapture:(0,v.M)(t.onPointerDownCapture,V.onPointerDownCapture)}))});function A(){let t=new CustomEvent(T);document.dispatchEvent(t)}function M(t,e,n,{discrete:i}){let r=n.originalEvent.target,o=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:n});e&&r.addEventListener(t,e,{once:!0}),i?(0,E.jH)(r,o):r.dispatchEvent(o)}let R=0;function k(){let t=document.createElement("span");return t.setAttribute("data-radix-focus-guard",""),t.tabIndex=0,t.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",t}let D="focusScope.autoFocusOnMount",O="focusScope.autoFocusOnUnmount",V={bubbles:!1,cancelable:!0},L=(0,p.forwardRef)((t,e)=>{let{loop:n=!1,trapped:i=!1,onMountAutoFocus:r,onUnmountAutoFocus:o,...s}=t,[a,l]=(0,p.useState)(null),u=(0,S.W)(r),c=(0,S.W)(o),h=(0,p.useRef)(null),d=(0,w.e)(e,t=>l(t)),m=(0,p.useRef)({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;(0,p.useEffect)(()=>{if(i){function t(t){if(m.paused||!a)return;let e=t.target;a.contains(e)?h.current=e:F(h.current,{select:!0})}function e(t){if(m.paused||!a)return;let e=t.relatedTarget;null===e||a.contains(e)||F(h.current,{select:!0})}document.addEventListener("focusin",t),document.addEventListener("focusout",e);let n=new MutationObserver(function(t){if(document.activeElement===document.body)for(let e of t)e.removedNodes.length>0&&F(a)});return a&&n.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",t),document.removeEventListener("focusout",e),n.disconnect()}}},[i,a,m.paused]),(0,p.useEffect)(()=>{if(a){B.add(m);let t=document.activeElement;if(!a.contains(t)){let e=new CustomEvent(D,V);a.addEventListener(D,u),a.dispatchEvent(e),e.defaultPrevented||(function(t,{select:e=!1}={}){let n=document.activeElement;for(let i of t)if(F(i,{select:e}),document.activeElement!==n)return}(j(a).filter(t=>"A"!==t.tagName),{select:!0}),document.activeElement===t&&F(a))}return()=>{a.removeEventListener(D,u),setTimeout(()=>{let e=new CustomEvent(O,V);a.addEventListener(O,c),a.dispatchEvent(e),e.defaultPrevented||F(null!=t?t:document.body,{select:!0}),a.removeEventListener(O,c),B.remove(m)},0)}}},[a,u,c,m]);let g=(0,p.useCallback)(t=>{if(!n&&!i||m.paused)return;let e="Tab"===t.key&&!t.altKey&&!t.ctrlKey&&!t.metaKey,r=document.activeElement;if(e&&r){let e=t.currentTarget,[i,o]=function(t){let e=j(t);return[I(e,t),I(e.reverse(),t)]}(e);i&&o?t.shiftKey||r!==o?t.shiftKey&&r===i&&(t.preventDefault(),n&&F(o,{select:!0})):(t.preventDefault(),n&&F(i,{select:!0})):r===e&&t.preventDefault()}},[n,i,m.paused]);return(0,p.createElement)(E.WV.div,(0,f.Z)({tabIndex:-1},s,{ref:d,onKeyDown:g}))});function j(t){let e=[],n=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:t=>{let e="INPUT"===t.tagName&&"hidden"===t.type;return t.disabled||t.hidden||e?NodeFilter.FILTER_SKIP:t.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)e.push(n.currentNode);return e}function I(t,e){for(let n of t)if(!function(t,{upTo:e}){if("hidden"===getComputedStyle(t).visibility)return!0;for(;t&&(void 0===e||t!==e);){if("none"===getComputedStyle(t).display)return!0;t=t.parentElement}return!1}(n,{upTo:e}))return n}function F(t,{select:e=!1}={}){if(t&&t.focus){var n;let i=document.activeElement;t.focus({preventScroll:!0}),t!==i&&(n=t)instanceof HTMLInputElement&&"select"in n&&e&&t.select()}}let B=(o=[],{add(t){let e=o[0];t!==e&&(null==e||e.pause()),(o=N(o,t)).unshift(t)},remove(t){var e;null===(e=(o=N(o,t))[0])||void 0===e||e.resume()}});function N(t,e){let n=[...t],i=n.indexOf(e);return -1!==i&&n.splice(i,1),n}var W=n(3372);let U=["top","right","bottom","left"],$=Math.min,_=Math.max,H=Math.round,z=Math.floor,K=t=>({x:t,y:t}
9),q={left:"right",right:"left",bottom:"top",top:"bottom"};function Y(t,e){return"function"==typeof t?t(e):t}function X(t){return t.split("-")[0]}function Z(t){return t.split("-")[1]}function G(t){return"x"===t?"y":"x"}function J(t){return"y"===t?"height":"width"}function Q(t){let e=t[0];return"t"===e||"b"===e?"y":"x"}function tt(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}let te=["left","right"],tn=["right","left"],ti=["top","bottom"],tr=["bottom","top"];function to(t){let e=X(t);return q[e]+t.slice(e.length)}function ts(t){return"number"!=typeof t?{top:0,right:0,bottom:0,left:0,...t}:{top:t,right:t,bottom:t,left:t}}function ta(t){let{x:e,y:n,width:i,height:r}=t;return{width:i,height:r,top:n,left:e,right:e+i,bottom:n+r,x:e,y:n}}function tl(t,e,n){let i,{reference:r,floating:o}=t,s=Q(e),a=G(Q(e)),l=J(a),u=X(e),c="y"===s,h=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,f=r[l]/2-o[l]/2;switch(u){case"top":i={x:h,y:r.y-o.height};break;case"bottom":i={x:h,y:r.y+r.height};break;case"right":i={x:r.x+r.width,y:d};break;case"left":i={x:r.x-o.width,y:d};break;default:i={x:r.x,y:r.y}}switch(Z(e)){case"start":i[a]-=f*(n&&c?-1:1);break;case"end":i[a]+=f*(n&&c?-1:1)}return i}let tu=async(t,e,n)=>{let{placement:i="bottom",strategy:r="absolute",middleware:o=[],platform:s}=n,a=o.filter(Boolean),l=await (null==s.isRTL?void 0:s.isRTL(e)),u=await s.getElementRects({reference:t,floating:e,strategy:r}),{x:c,y:h}=tl(u,i,l),d=i,f={},p=0;for(let n=0;n<a.length;n++){let{name:o,fn:m}=a[n],{x:g,y:v,data:y,reset:w}=await m({x:c,y:h,initialPlacement:i,placement:d,strategy:r,middlewareData:f,re
9cts:u,platform:s,elements:{reference:t,floating:e}});c=null!=g?g:c,h=null!=v?v:h,f={...f,[o]:{...f[o],...y}},w&&p<=50&&(p++,"object"==typeof w&&(w.placement&&(d=w.placement),w.rects&&(u=!0===w.rects?await s.getElementRects({reference:t,floating:e,strategy:r}):w.rects),{x:c,y:h}=tl(u,d,l)),n=-1)}return{x:c,y:h,placement:d,strategy:r,middlewareData:f}};async function tc(t,e){var n;void 0===e&&(e={});let{x:i,y:r,platform:o,rects:s,elements:a,strategy:l}=t,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:h="floating",altBoundary:d=!1,padding:f=0}=Y(e,t),p=ts(f),m=a[d?"floating"===h?"reference":"floating":h],g=ta(await o.getClippingRect({element:null==(n=await (null==o.isElement?void 0:o.isElement(m)))||n?m:m.contextElement||await (null==o.getDocumentElement?void 0:o.getDocumentElement(a.floating)),boundary:u,rootBoundary:c,strategy:l})),v="floating"===h?{x:i,y:r,width:s.floating.width,height:s.floating.height}:s.reference,y=await (null==o.getOffsetParent?void 0:o.getOffsetParent(a.floating)),w=await (null==o.isElement?void 0:o.isElement(y))&&await (null==o.getScale?void 0:o.getScale(y))||{x:1,y:1},b=ta(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:v,offsetParent:y,strategy:l}):v);return{top:(g.top-b.top+p.top)/w.y,bottom:(b.bottom-g.bottom+p.bottom)/w.y,left:(g.left-b.left+p.left)/w.x,right:(b.right-g.right+p.right)/w.x}}function th(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function td(t){return U.some(e=>t[e]>=0)}async function tf(t,e){let{placement:n,platform:i,elements:r}=t,o=await (null==i.isRTL?void 0:i.isRTL(r.floating)),s=X(n),a=Z(n),l="y"===Q(n),u=["left","top"].includes(s)?-1:1,c=o&&l?-1:1,h=Y(e,t),{mainAxis:d,crossAxis:f,alignmentAxis:p}="number"==typeof h?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return a&&"number"==typeof p&&(f="end"===a?-1*p:p),l?{x:f*c,y:d*u}:{x:d*u,y:f*c}}function tp(){return"undefined"!=typeof window}function tm(t){return ty(t)?(t.nodeName||"").toLowerCase():"#document"}function tg(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function tv(t){var e;return null==(e=(ty(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function ty(t){return!!tp()&&(t instanceof Node||t instanceof tg(t).Node)}function tw(t){return!!tp()&&(t instanceof Element||t instanceof tg(t).Element)}function tb(t){return!!tp()&&(t instanceof HTMLElement||t instanceof tg(t).HTMLElement)}function tx(t){return!!tp()&&"undefined"!=typeof ShadowRoot&&(t instanceof ShadowRoot||t instanceof tg(t).ShadowRoot)}function tE(t){let{overflow:e,overflowX:n,overflowY:i,display:r}=tk(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+n)&&"inline"!==r&&"contents"!==r}function tS(t){try{if(t.matches(":popover-open"))return!0}catch(t){}try{return t.matches(":modal")}catch(t){return!1}}let tT=/transform|translate|scale|rotate|perspective|filter/,tP=/paint|layout|strict|content/,tC=t=>!!t&&"none"!==t;function tA(t){let e=tw(t)?tk(t):t;return tC(e.transform)||tC(e.translate)||tC(e.scale)||tC(e.rotate)||tC(e.perspective)||!tM()&&(tC(e.backdropFilter)||tC(e.filter))||tT.test(e.willChange||"")||tP.test(e.contain||"")}function tM(){return null==r&&(r="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),r}function tR(t){return/^(html|body|#document)$/.test(tm(t))}function tk(t){return tg(t).getComputedStyle(t)}function tD(t){return tw(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function tO(t){if("html"===tm(t))return t;let e=t.assignedSlot||t.parentNode||tx(t)&&t.host||tv(t);return tx(e)?e.host:e}function tV(t,e,n){var i;void 0===e&&(e=[]),void 0===n&&(n=!0);let r=function t(e){let n=tO(e);return tR(n)?e.ownerDocument?e.ownerDocument.body:e.body:tb(n)&&tE(n)?n:t(n)}(t),o=r===(null==(i=t.ownerDocument)?void 0:i.body),s=tg(r);if(!o)return e.concat(r,tV(r,[],n));{let t=tL(s);
9return e.concat(s,s.visualViewport||[],tE(r)?r:[],t&&n?tV(t):[])}}function tL(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function tj(t){let e=tk(t),n=parseFloat(e.width)||0,i=parseFloat(e.height)||0,r=tb(t),o=r?t.offsetWidth:n,s=r?t.offsetHeight:i,a=H(n)!==o||H(i)!==s;return a&&(n=o,i=s),{width:n,height:i,$:a}}function tI(t){return tw(t)?t:t.contextElement}function tF(t){let e=tI(t);if(!tb(e))return K(1);let n=e.getBoundingClientRect(),{width:i,height:r,$:o}=tj(e),s=(o?H(n.width):n.width)/i,a=(o?H(n.height):n.height)/r;return s&&Number.isFinite(s)||(s=1),a&&Number.isFinite(a)||(a=1),{x:s,y:a}}let tB=K(0);function tN(t){let e=tg(t);return tM()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:tB}function tW(t,e,n,i){var r;void 0===e&&(e=!1),void 0===n&&(n=!1);let o=t.getBoundingClientRect(),s=tI(t),a=K(1);e&&(i?tw(i)&&(a=tF(i)):a=tF(t));let l=(void 0===(r=n)&&(r=!1),i&&(!r||i===tg(s))&&r)?tN(s):K(0),u=(o.left+l.x)/a.x,c=(o.top+l.y)/a.y,h=o.width/a.x,d=o.height/a.y;if(s){let t=tg(s),e=i&&tw(i)?tg(i):i,n=t,r=tL(n);for(;r&&i&&e!==n;){let t=tF(r),e=r.getBoundingClientRect(),i=tk(r),o=e.left+(r.clientLeft+parseFloat(i.paddingLeft))*t.x,s=e.top+(r.clientTop+parseFloat(i.paddingTop))*t.y;u*=t.x,c*=t.y,h*=t.x,d*=t.y,u+=o,c+=s,r=tL(n=tg(r))}}return ta({width:h,height:d,x:u,y:c})}function tU(t,e){let n=tD(t).scrollLeft;return e?e.left+n:tW(tv(t)).left+n}function t$(t,e,n){void 0===n&&(n=!1);let i=t.getBoundingClientRect();return{x:i.left+e.scrollLeft-(n?0:tU(t,i)),y:i.top+e.scrollTop}}function t_(t,e,n){let i;if("viewport"===e)i=function(t,e){let n=tg(t),i=tv(t),r=n.visualViewport,o=i.clientWidth,s=i.clientHeight,a=0,l=0;if(r){o=r.width,s=r.height;let t=tM();(!t||t&&"fixed"===e)&&(a=r.offsetLeft,l=r.offsetTop)}return{width:o,height:s,x:a,y:l}}(t,n);else if("document"===e)i=function(t){let e=tv(t),n=tD(t),i=t.ownerDocument.body,r=_(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),o=_(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight),s=-n.scrollLeft+tU(t),a=-n.scrollTop;return"rtl"===tk(i).direction&&(s+=_(e.clientWidth,i.clientWidth)-r),{width:r,height:o,x:s,y:a}}(tv(t));else if(tw(e))i=function(t,e){let n=tW(t,!0,"fixed"===e),i=n.top+t.clientTop,r=n.left+t.clientLeft,o=tb(t)?tF(t):K(1),s=t.clientWidth*o.x;return{width:s,height:t.clientHeight*o.y,x:r*o.x,y:i*o.y}}(e,n);else{let n=tN(t);i={x:e.x-n.x,y:e.y-n.y,width:e.width,height:e.height}}return ta(i)}function tH(t){return"static"===tk(t).position}function tz(t,e){if(!tb(t)||"fixed"===tk(t).position)return null;if(e)return e(t);let n=t.offsetParent;return tv(t)===n&&(n=n.ownerDocument.body),n}function tK(t,e){var n;let i=tg(t);if(tS(t))return i;if(!tb(t)){let e=tO(t);for(;e&&!tR(e);){if(tw(e)&&!tH(e))return e;e=tO(e)}return i}let r=tz(t,e);for(;r&&(n=r,/^(table|td|th)$/.test(tm(n)))&&tH(r);)r=tz(r,e);return r&&tR(r)&&tH(r)&&!tA(r)?i:r||function(t){let e=tO(t);for(;tb(e)&&!tR(e);){if(tA(e))return e;if(tS(e))break;e=tO(e)}return null}(t)||i}let tq=async function(t){let e=this.getOffsetParent||tK,n=this.getDimensions,i=await n(t.floating);return{reference:function(t,e,n){let i=tb(e),r=tv(e),o="fixed"===n,s=tW(t,!0,o,e),a={scrollLeft:0,scrollTop:0},l=K(0);if(i||!i&&!o){if(("body"!==tm(e)||tE(r))&&(a=tD(e)),i){let t=tW(e,!0,o,e);l.x=t.x+e.clientLeft,l.y=t.y+e.clientTop}else r&&(l.x=tU(r))}let u=!r||i||o?K(0):t$(r,a);return{x:s.left+a.scrollLeft-l.x-u.x,y:s.top+a.scrollTop-l.y-u.y,width:s.width,height:s.height}}(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}},tY={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{elements:e,rect:n,offsetParent:i,strategy:r}=t,o="fixed"===r,s=tv(i),a=!!e&&tS(e.floating);if(i===s||a&&o)return n;let l={scrollLeft:0,scrollTop:0},u=K(1),c=K(0),h=tb(i);if((h||!h&&!o)&&(("body"!==tm(i)||tE(s))&&(l=tD(i)),tb(i))){let t=tW(i);u=tF(i),c.x=t.x+i.clientLeft,c.y=t.y+i.clientTop}let d=!s||h||o?K(0):t$(s,l,!0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+c.x+d.x,y:n.y*u.y-l.scrollTop*u.y+c.y+d.y}},getDocumentElement:tv,getClippingRect:function(t){let{element:e,boundary:n,rootBoundary:i,strategy:r}=t,o=[..."clippingAncestors"===n?tS(e)?[]:function(t,e){let n=e.get(t);if(n)return n;let i=tV(t,[],!1).filter(t=>tw(t)&&"body"!==tm(t)),r=null,o="fixed"===tk(t).position,s=o?tO(t):t;for(;tw(s)&&!tR(s);){let e=tk(s),n=tA(s);n||"fixed"!==e.position||(r=null),(o?!n&&!r:!n&&"static"===e.position&&!!r&&["absolute","fixed"].includes(r.position)||tE(s)&&!n&&function t(e,n){let i=tO(e);return!(i===n||!tw(i)||tR(i))&&("fixed"===tk(i).position||t(i,n))}(t,s))?i=i.filter(t=>t!==s):r=e,s=tO(s)}return e.set(t,i),i}(e,this._c):[].concat(n),i],s=o[0],a=o.reduce((t,n)=>{let i=t_(e,n,r);return t.top=_(i.top,t.top),t.right=$(i.right,t.right),t.bottom=$(i.bottom,t.bottom),t.left=_(i.left,t.left),t},t_(e,s,r));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},getOffsetParent:tK,getElementRects:tq,getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){let{width:e,height:n}=tj(t);return{width:e,height:n}},getScale:tF,isElement:tw,isRTL:function(t){return"rtl"===tk(t).direction}};function tX(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}let tZ=t=>({name:"arrow",options:t,async fn(e){let{x:n,y:i,placement:r,rects:o,platform:s,elements:a,middlewareData:l}=e,{element:u,padding:c=0}=Y(t,e)||{};if(null==u)return{};let h=ts(c),d={x:n,y:i},f=G(Q(r)),p=J(f),m=await s.getDimensions(u),g="y"===f,v=g?"clientHeight":"clientWidth",y=o.reference[p]+o.reference[f]-d[f]-o.floating[p],w=d[f]-o.reference[f],b=await (null==s.getOffsetParent?void 0:s.getOffsetParent(u)),x=b?b[v]:0;x&&await (null==s.isElement?void 0:s.isElement(b))||(x=a.floating[v]||o.floating[p]);let E=x/2-m[p]/2-1,S=$(h[g?"top":"left"],E),T=$(h[g?"bottom":"right"],E),P=x-m[p]-T,C=x/2-m[p]/2+(y/2-w/2),A=_(S,$(C,P)),M=!l.arrow&&null!=Z(r)&&C!==A&&o.reference[p]/2-(C<S?S:T)-m[p]/2<0,R=M?C<S?C-S:C-P:0;return{[f]:d[f]+R,data:{[f]:A,centerOffset:C-A-R,...M&&{alignmentOffset:R}},reset:M}}}),tG=(t,e,n)=>{let i=new Map,r={platform:tY,...n},o={...r.platform,_c:i};return tu(t,e,{...r,platform:o})};var tJ="undefined"!=typeof document?p.useLayoutEffect:p.useEffect;function tQ(t,e){let n,i,r;if(t===e)return!0;
9if(typeof t!=typeof e)return!1;if("function"==typeof t&&t.toString()===e.toString())return!0;if(t&&e&&"object"==typeof t){if(Array.isArray(t)){if((n=t.length)!==e.length)return!1;for(i=n;0!=i--;)if(!tQ(t[i],e[i]))return!1;return!0}if((n=(r=Object.keys(t)).length)!==Object.keys(e).length)return!1;for(i=n;0!=i--;)if(!({}).hasOwnProperty.call(e,r[i]))return!1;for(i=n;0!=i--;){let n=r[i];if(("_owner"!==n||!t.$$typeof)&&!tQ(t[n],e[n]))return!1}return!0}return t!=t&&e!=e}function t0(t){return"undefined"==typeof window?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function t1(t,e){let n=t0(t);return Math.round(e*n)/n}function t2(t){let e=p.useRef(t);return tJ(()=>{e.current=t}),e}let t5=t=>({name:"arrow",options:t,fn(e){let{element:n,padding:i}="function"==typeof t?t(e):t;return n&&({}).hasOwnProperty.call(n,"current")?null!=n.current?tZ({element:n.current,padding:i}).fn(e):{}:n?tZ({element:n,padding:i}).fn(e):{}}}),t3=(t,e)=>{var n;return{...(void 0===(n=t)&&(n=0),{name:"offset",options:n,async fn(t){var e,i;let{x:r,y:o,placement:s,middlewareData:a}=t,l=await tf(t,n);return s===(null==(e=a.offset)?void 0:e.placement)&&null!=(i=a.arrow)&&i.alignmentOffset?{}:{x:r+l.x,y:o+l.y,data:{...l,placement:s}}}}),options:[t,e]}},t4=(t,e)=>{var n;return{...(void 0===(n=t)&&(n={}),{name:"shift",options:n,async fn(t){let{x:e,y:i,placement:r}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:a={fn:t=>{let{x:e,y:n}=t;return{x:e,y:n}}},...l}=Y(n,t),u={x:e,y:i},c=await tc(t,l),h=Q(X(r)),d=G(h),f=u[d],p=u[h];if(o){let t="y"===d?"top":"left",e="y"===d?"bottom":"right",n=f+c[t],i=f-c[e];f=_(n,$(f,i))}if(s){let t="y"===h?"top":"left",e="y"===h?"bottom":"right",n=p+c[t],i=p-c[e];p=_(n,$(p,i))}let m=a.fn({...t,[d]:f,[h]:p});return{...m,data:{x:m.x-e,y:m.y-i,enabled:{[d]:o,[h]:s}}}}}),options:[t,e]}},t6=(t,e)=>{var n;return{...(void 0===(n=t)&&(n={}),{options:n,fn(t){let{x:e,y:i,placement:r,rects:o,middlewareData:s}=t,{offset:a=0,mainAxis:l=!0,crossAxis:u=!0}=Y(n,t),c={x:e,y:i},h=Q(r),d=G(h),f=c[d],p=c[h],m=Y(a,t),g="number"==typeof m?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){let t="y"===d?"height":"width",e=o.reference[d]-o.floating[t]+g.mainAxis,n=o.reference[d]+o.reference[t]-g.mainAxis;f<e?f=e:f>n&&(f=n)}if(u){var v,y;let t="y"===d?"width":"height",e=["top","left"].includes(X(r)),n=o.reference[h]-o.floating[t]+(e&&(null==(v=s.offset)?void 0:v[h])||0)+(e?0:g.crossAxis),i=o.reference[h]+o.reference[t]+(e?0:(null==(y=s.offset)?void 0:y[h])||0)-(e?g.crossAxis:0);p<n?p=n:p>i&&(p=i)}return{[d]:f,[h]:p}}}),options:[t,e]}},t9=(t,e)=>{var n;return{...(void 0===(n=t)&&(n={}),{name:"flip",options:n,async fn(t){var e,i,r,o,s;let{placement:a,middlewareData:l,rects:u,initialPlacement:c,platform:h,elements:d}=t,{mainAxis:f=!0,crossAxis:p=!0,fallbackPlacements:m,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:y=!0,...w}=Y(n,t);if(null!=(e=l.arrow)&&e.alignmentOffset)return{};let b=X(a),x=Q(c),E=X(c)===c,S=await (null==h.isRTL?void 0:h.isRTL(d.floating)),T=m||(E||!y?[to(c)]:function(t){let e=to(t);return[tt(t),e,tt(e)]}(c)),P="none"!==v;!m&&P&&T.push(...function(t,e,n,i){let r=Z(t),o=function(t,e,n){switch(t){case"top":case"bottom":if(n)return e?tn:te;return e?te:tn;case"left":case"right":return e?ti:tr;default:return[]}}(X(t),"start"===n,i);return r&&(o=o.map(t=>t+"-"+r),e&&(o=o.concat(o.map(tt)))),o}(c,y,v,S));let C=[c,...T],A=await tc(t,w),M=[],R=(null==(i=l.flip)?void 0:i.overflows)||[];if(f&&M.push(A[b]),p){let t=function(t,e,n){void 0===n&&(n=!1);let i=Z(t),r=G(Q(t)),o=J(r),s="x"===r?i===(n?"end":"start")?"right":"left":"start"===i?"bottom":"top";return e.reference[o]>e.floating[o]&&(s=to(s)),[s,to(s)]}(a,u,S);M.push(A[t[0]],A[t[1]])}if(R=[...R,{placement:a,overflows:M}],!M.every(t=>t<=0)){let t=((null==(r=l.flip)?void 0:r.index)||0)+1,e=C[t];if(e)return{data:{index:t,overflows:R},reset:{placement:e}};let n=null==(o=R.filter(t=>t.overflows[0]<=0).sort((t,e)=>t.overflows[1]-e.overflows[1])[0])?void 0:o.placement;if(!n)switch(g){case"bestFit":{let t=null==(s=R.filter(t=>{if(P){let e=Q(t.placement);return e===x||"y"===e}return!0}).map(t=>[t.placement,t.overflows.filter(t=>t>0).reduce((t,e)=>t+e,0)]).sort((t,e)=>t[1]-e[1])[0])?void 0:s[0];t&&(n=t);break}case"initialPlacement":n=c}if(a!==n)return{reset:{placement:n}}}return{}}}),options:[t,e]}},t8=(t,e)=>{var n;return{...(void 0===(n=t)&&(n={}),{name:"size",options:n,async fn(t){var e,i;let r,o;let{placement:s,rects:a,platform:l,elements:u}=t,{apply:c=()=>{},...h}=Y(n,t),d=await tc(t,h),f=X(s),p=Z(s),m="y"===Q(s),{width:g,height:v}=a.floating;
9"top"===f||"bottom"===f?(r=f,o=p===(await (null==l.isRTL?void 0:l.isRTL(u.floating))?"start":"end")?"left":"right"):(o=f,r="end"===p?"top":"bottom");let y=v-d.top-d.bottom,w=g-d.left-d.right,b=$(v-d[r],y),x=$(g-d[o],w),E=!t.middlewareData.shift,S=b,T=x;if(null!=(e=t.middlewareData.shift)&&e.enabled.x&&(T=w),null!=(i=t.middlewareData.shift)&&i.enabled.y&&(S=y),E&&!p){let t=_(d.left,0),e=_(d.right,0),n=_(d.top,0),i=_(d.bottom,0);m?T=g-2*(0!==t||0!==e?t+e:_(d.left,d.right)):S=v-2*(0!==n||0!==i?n+i:_(d.top,d.bottom))}await c({...t,availableWidth:T,availableHeight:S});let P=await l.getDimensions(u.floating);return g!==P.width||v!==P.height?{reset:{rects:!0}}:{}}}),options:[t,e]}},t7=(t,e)=>{var n;return{...(void 0===(n=t)&&(n={}),{name:"hide",options:n,async fn(t){let{rects:e}=t,{strategy:i="referenceHidden",...r}=Y(n,t);switch(i){case"referenceHidden":{let n=th(await tc(t,{...r,elementContext:"reference"}),e.reference);return{data:{referenceHiddenOffsets:n,referenceHidden:td(n)}}}case"escaped":{let n=th(await tc(t,{...r,altBoundary:!0}),e.floating);return{data:{escapedOffsets:n,escaped:td(n)}}}default:return{}}}}),options:[t,e]}},et=(t,e)=>({...t5(t),options:[t,e]}),ee=(0,p.forwardRef)((t,e)=>{let{children:n,width:i=10,height:r=5,...o}=t;return(0,p.createElement)(E.WV.svg,(0,f.Z)({},o,{ref:e,width:i,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),t.asChild?n:(0,p.createElement)("polygon",{points:"0,0 30,0 15,10"}))});var en=n(1644);let ei="Popper",[er,eo]=(0,b.b)(ei),[es,ea]=er(ei),el=(0,p.forwardRef)((t,e)=>{let{__scopePopper:n,virtualRef:i,...r}=t,o=ea("PopperAnchor",n),s=(0,p.useRef)(null),a=(0,w.e)(e,s);return(0,p.useEffect)(()=>{o.onAnchorChange((null==i?void 0:i.current)||s.current)}),i?null:(0,p.createElement)(E.WV.div,(0,f.Z)({},r,{ref:a}))}),eu="PopperContent",[ec,eh]=er(eu),ed=(0,p.forwardRef)((t,e)=>{var n,i,r,o,s,a,l,u;let{__scopePopper:c,side:h="bottom",sideOffset:d=0,align:g="center",alignOffset:v=0,arrowPadding:y=0,avoidCollisions:b=!0,collisionBoundary:x=[],collisionPadding:T=0,sticky:P="partial",hideWhenDetached:C=!1,updatePositionStrategy:A="optimized",onPlaced:M,...R}=t,k=ea(eu,c),[D,O]=(0,p.useState)(null),V=(0,w.e)(e,t=>O(t)),[L,j]=(0,p.useState)(null),I=function(t){let[e,n]=(0,p.useState)(void 0);return(0,en.b)(()=>{if(t){n({width:t.offsetWidth,height:t.offsetHeight});let e=new ResizeObserver(e=>{let i,r;if(!Array.isArray(e)||!e.length)return;let o=e[0];if("borderBoxSize"in o){let t=o.borderBoxSize,e=Array.isArray(t)?t[0]:t;i=e.inlineSize,r=e.blockSize}else i=t.offsetWidth,r=t.offsetHeight;n({width:i,height:r})});return e.observe(t,{box:"border-box"}),()=>e.unobserve(t)}n(void 0)},[t]),e}(L),F=null!==(n=null==I?void 0:I.width)&&void 0!==n?n:0,B=null!==(i=null==I?void 0:I.height)&&void 0!==i?i:0,N="number"==typeof T?T:{top:0,right:0,bottom:0,left:0,...T},W=Array.isArray(x)?x:[x],U=W.length>0,H={padding:N,boundary:W.filter(ep),altBoundary:U},{refs:K,floatingStyles:q,placement:Y,isPositioned:X,middlewareData:Z}=function(t){void 0===t&&(t={});let{placement:e="bottom",strategy:n="absolute",middleware:i=[],platform:r,elements:{reference:o,floating:s}={},transform:a=!0,whileElementsMounted:l,open:u}=t,[c,h]=p.useState({x:0,y:0,strategy:n,placement:e,middlewareData:{},isPositioned:!1}),[d,f]=p.useState(i);tQ(d,i)||f(i);let[g,v]=p.useState(null),[y,w]=p.useState(null),b=p.useCallback(t=>{t!==T.current&&(T.current=t,v(t))},[]),x=p.useCallback(t=>{t!==P.current&&(P.current=t,w(t))},[]),E=o||g,S=s||y,T=p.useRef(null),P=p.useRef(null),C=p.useRef(c),A=null!=l,M=t2(l),R=t2(r),k=t2(u),D=p.useCallback(()=>{if(!T.current||!P.current)return;let t={placement:e,strategy:n,middleware:d};R.current&&(t.platform=R.current),tG(T.current,P.current,t).then(t=>{let e={...t,isPositioned:!1!==k.current};O.current&&!tQ(C.current,e)&&(C.current=e,m.flushSync(()=>{h(e)}))})},[d,e,n,R,k]);tJ(()=>{!1===u&&C.current.isPositioned&&(C.current.isPositioned=!1,h(t=>({...t,isPositioned:!1})))},[u]);let O=p.useRef(!1);tJ(()=>(O.current=!0,()=>{O.current=!1}),[]),tJ(()=>{if(E&&(T.current=E),S&&(P.current=S),E&&S){if(M.current)return M.current(E,S,D);D()}},[E,S,D,M,A]);let V=p.useMemo(()=>({reference:T,floating:P,setReference:b,setFloating:x}),[b,x]),L=p.useMemo(()=>({reference:E,floating:S}),[E,S]),j=p.useMemo(()=>{let t={position:n,left:0,top:0};if(!L.floating)return t;let e=t1(L.floating,c.x),i=t1(L.floating,c.y);return a?{...t,transform:"translate("+e+"px, "+i+"px)",...t0(L.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:e,top:i}},[n,a,L.floating,c.x,c.y]);return p.useMemo(()=>({...c,update:D,refs:V,elements:L,floatingStyles:j}),[c,D,V,L,j])}({strategy:"fixed",placement:h+("center"!==g?"-"+g:""),whileElementsMounted:(...t)=>(function(t,e,n,i){let r;void 0===i&&(i={});let{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:l="function"==typeof IntersectionObserver,animationFrame:u=!1}=i,c=tI(t),h=o||s?[...c?tV(c):[],...tV(e)]:[];h.forEach(t=>{o&&t.addEventListener("scroll",n,{passive:!0}),s&&t.addEventListener("resize",n)});let d=c&&l?function(t,e){let n,i=null,r=tv(t);function o(){var t;clearTimeout(n),null==(t=i)||t.disconnect(),i=null}return!function s(a,l){void 0===a&&(a=!1),void 0===l&&(l=1),o();let u=t.getBoundingClientRect(),{left:c,top:h,width:d,height:f}=u;if(a||e(),!d||!f)return;let p=z(h),m=z(r.clientWidth-(c+d)),g={rootMargin:-p+"px "+-m+"px "+-z(r.clientHeight-(h+f))+"px "+-z(c)+"px",threshold:_(0,$(1,l))||1},v=!0;function y(e){let i=e[0].intersectionRatio;if(i!==l){if(!v)return s();i?s(!1,i):n=setTimeout(()=>{s(!1,1e-7)},1e3)}1!==i||tX(u,t.getBoundingClientRect())||s(),v=!1}try{i=new IntersectionObserver(y,{...g,root:r.ownerDocument})}catch(t){i=new IntersectionObserver(y,g)}i.observe(t)}(!0),o}(c,n):null,f=-1,p=null;a&&(p=new ResizeObserver(t=>{let[i]=t;i&&i.target===c&&p&&(p.unobserve(e),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var t;null==(t=p)||t.observe(e)})),n()}),c&&!u&&p.observe(c),p.observe(e));let m=u?tW(t):null;return u&&function e(){let i=tW(t);m&&!tX(m,i)&&n(),m=i,r=requestAnimationFrame(e)}(),n(),()=>{var t;h.forEach(t=>{o&&t.removeEventListener("scroll",n),s&&t.removeEventListener("resize",n)}),null==d||d(),null==(t=p)||t.disconnect(),p=null,u&&cancelAnimationFrame(r)}})(...t,{animationFrame:"always"===A}),elements:{reference:k.anchor},middleware:[t3({mainAxis:d+B,alignmentAxis:v}),b&&t4({mainAxis:!0,crossAxis:!1,limiter:"partial"===P?t6():void 0,...H}),b&&t9({...H}),t8({...H,apply:({elements:t,rects:e,availableWidth:n,availableHeight:i})=>{let{width:r,height:o}=e.reference,s=t.floating.style;s.setProperty("--radix-popper-available-width",`${n}px`),s.setProperty("--radix-popper-available-height",`${i}px`),s.setProperty("--radix-popper-anchor-width",`${r}px`),s.setProperty("--radix-popper-anchor-height",`${o}px`)}}),L&&et({element:L,padding:y}),em({arrowWidth:F,arrowHeight:B}),C&&t7({strategy:"referenceHidden",...H})]}),[G,J]=eg(Y),Q=(0,S.W)(M);(0,en.b)(()=>{X&&(null==Q||Q())},[X,Q]);let tt=null===(r=Z.arrow)||void 0===r?void 0:r.x,te=null===(o=Z.arrow)||void 0===o?void 0:o.y,tn=(null===(s=Z.arrow)||void 0===s?void 0:s.centerOffset)!==0,[ti,tr]=(0,p.useState)();return(0,en.b)(()=>{D&&tr(window.getComputedStyle(D).zIndex)},[D]),(0,p.createElement)("div",{ref:K.setFloating,"data-radix-popper-content-wrapper":"",style:{...q,transform:X?q.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ti,"--radix-popper-transform-origin":[null===(a=Z.transformOrigin)||void 0===a?void 0:a.x,null===(l=Z.transformOrigin)||void 0===l?void 0:l.y].join(" ")},dir:t.dir},(0,p.createElement)(ec,{scope:c,placedSide:G,onArrowChange:j,arrowX:tt,arrowY:te,shouldHideArrow:tn},(0,p.createElement)(E.WV.div,(0,f.Z)({"data-side":G,"data-align":J},R,{ref:V,style:{...R.style,animation:X?void 0:"none",opacity:null!==(u=Z.hide)&&void 0!==u&&u.referenceHidden?0:void 0}}))))}
9),ef={top:"bottom",right:"left",bottom:"top",left:"right"};function ep(t){return null!==t}let em=t=>({name:"transformOrigin",options:t,fn(e){var n,i,r,o,s;let{placement:a,rects:l,middlewareData:u}=e,c=(null===(n=u.arrow)||void 0===n?void 0:n.centerOffset)!==0,h=c?0:t.arrowWidth,d=c?0:t.arrowHeight,[f,p]=eg(a),m={start:"0%",center:"50%",end:"100%"}[p],g=(null!==(i=null===(r=u.arrow)||void 0===r?void 0:r.x)&&void 0!==i?i:0)+h/2,v=(null!==(o=null===(s=u.arrow)||void 0===s?void 0:s.y)&&void 0!==o?o:0)+d/2,y="",w="";return"bottom"===f?(y=c?m:`${g}px`,w=`${-d}px`):"top"===f?(y=c?m:`${g}px`,w=`${l.floating.height+d}px`):"right"===f?(y=`${-d}px`,w=c?m:`${v}px`):"left"===f&&(y=`${l.floating.width+d}px`,w=c?m:`${v}px`),{data:{x:y,y:w}}}});function eg(t){let[e,n="center"]=t.split("-");return[e,n]}let ev=t=>{let{__scopePopper:e,children:n}=t,[i,r]=(0,p.useState)(null);return(0,p.createElement)(es,{scope:e,anchor:i,onAnchorChange:r},n)},ey=(0,p.forwardRef)((t,e)=>{var n;let{container:i=null==globalThis?void 0:null===(n=globalThis.document)||void 0===n?void 0:n.body,...r}=t;return i?m.createPortal((0,p.createElement)(E.WV.div,(0,f.Z)({},r,{ref:e})),i):null});var ew=n(9815),eb=n(7695);let ex=(0,p.forwardRef)((t,e)=>(0,p.createElement)(E.WV.span,(0,f.Z)({},t,{ref:e,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...t.style}})));var eE=new WeakMap,eS=new WeakMap,eT={},eP=0,eC=function(t){return t&&(t.host||eC(t.parentNode))},eA=function(t,e,n,i){var r=(Array.isArray(t)?t:[t]).map(function(t){if(e.contains(t))return t;var n=eC(t);return n&&e.contains(n)?n:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)}).filter(function(t){return!!t});eT[n]||(eT[n]=new WeakMap);var o=eT[n],s=[],a=new Set,l=new Set(r),u=function(t){!t||a.has(t)||(a.add(t),u(t.parentNode))};r.forEach(u);var c=function(t){!t||l.has(t)||Array.prototype.forEach.call(t.children,function(t){if(a.has(t))c(t);else try{var e=t.getAttribute(i),r=null!==e&&"false"!==e,l=(eE.get(t)||0)+1,u=(o.get(t)||0)+1;eE.set(t,l),o.set(t,u),s.push(t),1===l&&r&&eS.set(t,!0),1===u&&t.setAttribute(n,"true"),r||t.setAttribute(i,"true")}catch(e){console.error("aria-hidden: cannot operate on ",t,e)}})};return c(e),a.clear(),eP++,function(){s.forEach(function(t){var e=eE.get(t)-1,r=o.get(t)-1;eE.set(t,e),o.set(t,r),e||(eS.has(t)||t.removeAttribute(i),eS.delete(t)),r||t.removeAttribute(n)}),--eP||(eE=new WeakMap,eE=new WeakMap,eS=new WeakMap,eT={})}},eM=function(t,e,n){void 0===n&&(n="data-aria-hidden");var i=Array.from(Array.isArray(t)?t:[t]),r=e||("undefined"==typeof document?null:(Array.isArray(t)?t[0]:t).ownerDocument.body);return r?(i.push.apply(i,Array.from(r.querySelectorAll("[aria-live]"))),eA(i,r,n,"aria-hidden")):function(){return null}},eR=function(){return(eR=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)};function ek(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&0>e.indexOf(i)&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,i=Object.getOwnPropertySymbols(t);r<i.length;r++)0>e.indexOf(i[r])&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]]);return n}"function"==typeof SuppressedError&&SuppressedError;var eD="right-scroll-bar-position",eO="width-before-scroll-bar";function eV(t,e){return"function"==typeof t?t(e):t&&(t.current=e),t}var eL="undefined"!=typeof window?p.useLayoutEffect:p.useEffect,ej=new WeakMap,eI=(void 0===s&&(s={}),(void 0===a&&(a=function(t){return t}),l=[],u=!1,c={read:function(){if(u)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return l.length?l[l.length-1]:null},useMedium:function(t){var e=a(t,u);return l.push(e),function(){l=l.filter(function(t){return t!==e})}},assignSyncMedium:function(t){for(u=!0;l.length;){var e=l;l=[],e.forEach(t)}l={push:function(e){return t(e)},filter:function(){return l}}},assignMedium:function(t){u=!0;var e=[];
9if(l.length){var n=l;l=[],n.forEach(t),e=l}var i=function(){var n=e;e=[],n.forEach(t)},r=function(){return Promise.resolve().then(i)};r(),l={push:function(t){e.push(t),r()},filter:function(t){return e=e.filter(t),l}}}}).options=eR({async:!0,ssr:!1},s),c),eF=function(){},eB=p.forwardRef(function(t,e){var n,i,r,o,s=p.useRef(null),a=p.useState({onScrollCapture:eF,onWheelCapture:eF,onTouchMoveCapture:eF}),l=a[0],u=a[1],c=t.forwardProps,h=t.children,d=t.className,f=t.removeScrollBar,m=t.enabled,g=t.shards,v=t.sideCar,y=t.noIsolation,w=t.inert,b=t.allowPinchZoom,x=t.as,E=ek(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),S=(n=[s,e],i=function(t){return n.forEach(function(e){return eV(e,t)})},(r=(0,p.useState)(function(){return{value:null,callback:i,facade:{get current(){return r.value},set current(value){var t=r.value;t!==value&&(r.value=value,r.callback(value,t))}}}})[0]).callback=i,o=r.facade,eL(function(){var t=ej.get(o);if(t){var e=new Set(t),i=new Set(n),r=o.current;e.forEach(function(t){i.has(t)||eV(t,null)}),i.forEach(function(t){e.has(t)||eV(t,r)})}ej.set(o,n)},[n]),o),T=eR(eR({},E),l);return p.createElement(p.Fragment,null,m&&p.createElement(v,{sideCar:eI,removeScrollBar:f,shards:g,noIsolation:y,inert:w,setCallbacks:u,allowPinchZoom:!!b,lockRef:s}),c?p.cloneElement(p.Children.only(h),eR(eR({},T),{ref:S})):p.createElement(void 0===x?"div":x,eR({},T,{className:d,ref:S}),h))});eB.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},eB.classNames={fullWidth:eO,zeroRight:eD};var eN=function(t){var e=t.sideCar,n=ek(t,["sideCar"]);if(!e)throw Error("Sidecar: please provide `sideCar` property to import the right car");var i=e.read();if(!i)throw Error("Sidecar medium not found");return p.createElement(i,eR({},n))};eN.isSideCarExport=!0;var eW=function(){var t=0,e=null;return{add:function(i){if(0==t&&(e=function(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var e=d||n.nc;return e&&t.setAttribute("nonce",e),t}())){var r,o;(r=e).styleSheet?r.styleSheet.cssText=i:r.appendChild(document.createTextNode(i)),o=e,(document.head||document.getElementsByTagName("head")[0]).appendChild(o)}t++},remove:function(){--t||!e||(e.parentNode&&e.parentNode.removeChild(e),e=null)}}},eU=function(){var t=eW();return function(e,n){p.useEffect(function(){return t.add(e),function(){t.remove()}},[e&&n])}},e$=function(){var t=eU();return function(e){return t(e.styles,e.dynamic),null}},e_={left:0,top:0,right:0,gap:0},eH=function(t){return parseInt(t||"",10)||0},ez=function(t){var e=window.getComputedStyle(document.body),n=e["padding"===t?"paddingLeft":"marginLeft"],i=e["padding"===t?"paddingTop":"marginTop"],r=e["padding"===t?"paddingRight":"marginRight"];return[eH(n),eH(i),eH(r)]},eK=function(t){if(void 0===t&&(t="margin"),"undefined"==typeof window)return e_;var e=ez(t),n=document.documentElement.clientWidth,i=window.innerWidth;return{left:e[0],top:e[1],right:e[2],gap:Math.max(0,i-n+e[2]-e[0])}},eq=e$(),eY="data-scroll-locked",eX=function(t,e,n,i){var r=t.left,o=t.top,s=t.right,a=t.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(i,";\n padding-right: ").concat(a,"px ").concat(i,";\n }\n body[").concat(eY,"] {\n overflow: hidden ").concat(i,";\n overscroll-behavior: contain;\n ").concat([e&&"position: relative ".concat(i,";"),"margin"===n&&"\n padding-left: ".concat(r,"px;\n padding-top: ").concat(o,"px;\n padding-right: ").concat(s,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(a,"px ").concat(i,";\n "),"padding"===n&&"padding-right: ".concat(a,"px ").concat(i,";")].filter(Boolean).join(""),"\n }\n \n .").concat(eD," {\n right: ").concat(a,"px ").concat(i,";\n }\n \n .").concat(eO," {\n margin-right: ").concat(a,"px ").concat(i,";\n }\n \n .").concat(eD," .").concat(eD," {\n right: 0 ").concat(i,";\n }\n \n .").concat(eO," .").concat(eO," {\n margin-right: 0 ").concat(i,";\n }\n \n body[").concat(eY,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(a,"px;\n }\n")},eZ=function(){var t=parseInt(document.body.getAttribute(eY)||"0",10);return isFinite(t)?t:0},eG=function(){p.useEffect(function(){return document.body.setAttribute(eY,(eZ()+1).toString()),function(){var t=eZ()-1;t<=0?document.body.removeAttribute(eY):document.body.setAttribute(eY,t.toString())}},[])},eJ=function(t){var e=t.noRelative,n=t.noImportant,i=t.gapMode,r=void 0===i?"margin":i;eG();var o=p.useMemo(function(){return eK(r)},[r]);return p.createElement(eq,{styles:eX(o,!e,r,n?"":"!important")})},eQ=!1;if("undefined"!=typeof window)try{var e0=Object.defineProperty({},"passive",{get:function(){return eQ=!0,!0}});window.addEventListener("test",e0,e0),window.removeEventListener("test",e0,e0)}catch(t){eQ=!1}var e1=!!eQ&&{passive:!1},e2=function(t,e){var n=window.getComputedStyle(t);return"hidden"!==n[e]&&!(n.overflowY===n.overflowX&&"TEXTAREA"!==t.tagName&&"visible"===n[e])},e5=function(t,e){var n=e;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),e3(t,n)){var i=e4(t,n);if(i[1]>i[2])return!0}n=n.parentNode}while(n&&n!==document.body);return!1},e3=function(t,e){return"v"===t?e2(e,"overflowY"):e2(e,"overflowX")},e4=function(t,e){return"v"===t?[e.scrollTop,e.scrollHeight,e.clientHeight]:[e.scrollLeft,e.scrollWidth,e.clientWidth]},e6=function(t,e,n,i,r){var o,s=(o=window.getComputedStyle(e).direction,"h"===t&&"rtl"===o?-1:1),a=s*i,l=n.target,u=e.contains(l),c=!1,h=a>0,d=0,f=0;do{var p=e4(t,l),m=p[0],g=p[1]-p[2]-s*m;(m||g)&&e3(t,l)&&(d+=g,f+=m),l=l.parentNode}while(!u&&l!==document.body||u&&(e.contains(l)||e===l));return h&&(r&&0===d||!r&&a>d)?c=!0:!h&&(r&&0===f||!r&&-a>f)&&(c=!0),c},e9=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},e8=function(t){return[t.deltaX,t.deltaY]},e7=function(t){return t&&"current"in t?t.current:t},nt=0,ne=[],nn=(h=function(t){var e=p.useRef([]),n=p.useRef([0,0]),i=p.useRef(),r=p.useState(nt++)[0],o=p.useState(function(){return e$()})[0],s=p.useRef(t);p.useEffect(function(){s.current=t},[t]),p.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(r));var e=(function(t,e,n){if(n||2==arguments.length)for(var i,r=0,o=e.length;r<o;r++)!i&&r in e||(i||(i=Array.prototype.slice.call(e,0,r)),i[r]=e[r]);return t.concat(i||Array.prototype.slice.call(e))}
9)([t.lockRef.current],(t.shards||[]).map(e7),!0).filter(Boolean);return e.forEach(function(t){return t.classList.add("allow-interactivity-".concat(r))}),function(){document.body.classList.remove("block-interactivity-".concat(r)),e.forEach(function(t){return t.classList.remove("allow-interactivity-".concat(r))})}}},[t.inert,t.lockRef.current,t.shards]);var a=p.useCallback(function(t,e){if("touches"in t&&2===t.touches.length)return!s.current.allowPinchZoom;var r,o=e9(t),a=n.current,l="deltaX"in t?t.deltaX:a[0]-o[0],u="deltaY"in t?t.deltaY:a[1]-o[1],c=t.target,h=Math.abs(l)>Math.abs(u)?"h":"v";if("touches"in t&&"h"===h&&"range"===c.type)return!1;var d=e5(h,c);if(!d)return!0;if(d?r=h:(r="v"===h?"h":"v",d=e5(h,c)),!d)return!1;if(!i.current&&"changedTouches"in t&&(l||u)&&(i.current=r),!r)return!0;var f=i.current||r;return e6(f,e,t,"h"===f?l:u,!0)},[]),l=p.useCallback(function(t){if(ne.length&&ne[ne.length-1]===o){var n="deltaY"in t?e8(t):e9(t),i=e.current.filter(function(e){var i;return e.name===t.type&&e.target===t.target&&(i=e.delta)[0]===n[0]&&i[1]===n[1]})[0];if(i&&i.should){t.cancelable&&t.preventDefault();return}if(!i){var r=(s.current.shards||[]).map(e7).filter(Boolean).filter(function(e){return e.contains(t.target)});(r.length>0?a(t,r[0]):!s.current.noIsolation)&&t.cancelable&&t.preventDefault()}}},[]),u=p.useCallback(function(t,n,i,r){var o={name:t,delta:n,target:i,should:r};e.current.push(o),setTimeout(function(){e.current=e.current.filter(function(t){return t!==o})},1)},[]),c=p.useCallback(function(t){n.current=e9(t),i.current=void 0},[]),h=p.useCallback(function(e){u(e.type,e8(e),e.target,a(e,t.lockRef.current))},[]),d=p.useCallback(function(e){u(e.type,e9(e),e.target,a(e,t.lockRef.current))},[]);p.useEffect(function(){return ne.push(o),t.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:d}),document.addEventListener("wheel",l,e1),document.addEventListener("touchmove",l,e1),document.addEventListener("touchstart",c,e1),function(){ne=ne.filter(function(t){return t!==o}),document.removeEventListener("wheel",l,e1),document.removeEventListener("touchmove",l,e1),document.removeEventListener("touchstart",c,e1)}},[]);var f=t.removeScrollBar,m=t.inert;return p.createElement(p.Fragment,null,m?p.createElement(o,{styles:"\n .block-interactivity-".concat(r," {pointer-events: none;}\n .allow-interactivity-").concat(r," {pointer-events: all;}\n")}):null,f?p.createElement(eJ,{gapMode:"margin"}):null)},eI.useMedium(h),eN),ni=p.forwardRef(function(t,e){return p.createElement(eB,eR({},t,{ref:e,sideCar:nn}))});ni.classNames=eB.classNames;let nr=[" ","Enter","ArrowUp","ArrowDown"],no=[" ","Enter"],ns="Select",[na,nl,nu]=(0,y.B)(ns),[nc,nh]=(0,b.b)(ns,[nu,eo]),nd=eo(),[nf,np]=nc(ns),[nm,ng]=nc(ns),nv=(0,p.forwardRef)((t,e)=>{let{__scopeSelect:n,disabled:i=!1,...r}=t,o=nd(n),s=np("SelectTrigger",n),a=s.disabled||i,l=(0,w.e)(e,s.onTriggerChange),u=nl(n),[c,h,d]=nK(t=>{let e=u().filter(t=>!t.disabled),n=e.find(t=>t.value===s.value),i=nq(e,t,n);void 0!==i&&s.onValueChange(i.value)}),m=()=>{a||(s.onOpenChange(!0),d())};return(0,p.createElement)(el,(0,f.Z)({asChild:!0},o),(0,p.createElement)(E.WV.button,(0,f.Z)({type:"button",role:"combobox","aria-controls":s.contentId,"aria-expanded":s.open,"aria-required":s.required,"aria-autocomplete":"none",dir:s.dir,"data-state":s.open?"open":"closed",disabled:a,"data-disabled":a?"":void 0,"data-placeholder":nH(s.value)?"":void 0},r,{ref:l,onClick:(0,v.M)(r.onClick,t=>{t.currentTarget.focus()}),onPointerDown:(0,v.M)(r.onPointerDown,t=>{let e=t.target;e.hasPointerCapture(t.pointerId)&&e.releasePointerCapture(t.pointerId),0===t.button&&!1===t.ctrlKey&&(m(),s.triggerPointerDownPosRef.current={x:Math.round(t.pageX),y:Math.round(t.pageY)},t.preventDefault())}),onKeyDown:(0,v.M)(r.onKeyDown,t=>{let e=""!==c.current;t.ctrlKey||t.altKey||t.metaKey||1!==t.key.length||h(t.key),(!e||" "!==t.key)&&nr.includes(t.key)&&(m(),t.preventDefault())})})))}),ny=(0,p.forwardRef)((t,e)=>{let{__scopeSelect:n,className:i,style:r,children:o,placeholder:s="",...a}=t,l=np("SelectValue",n),{onValueNodeHasChildrenChange:u}=l,c=void 0!==o,h=(0,w.e)(e,l.onValueNodeChange);return(0,en.b)(()=>{u(c)},[u,c]),(0,p.createElement)(E.WV.span,(0,f.Z)({},a,{ref:h,style:{pointerEvents:"none"}}
9),nH(l.value)?(0,p.createElement)(p.Fragment,null,s):o)}),nw=(0,p.forwardRef)((t,e)=>{let{__scopeSelect:n,children:i,...r}=t;return(0,p.createElement)(E.WV.span,(0,f.Z)({"aria-hidden":!0},r,{ref:e}),i||"â¼")}),nb="SelectContent",nx=(0,p.forwardRef)((t,e)=>{let n=np(nb,t.__scopeSelect),[i,r]=(0,p.useState)();return((0,en.b)(()=>{r(new DocumentFragment)},[]),n.open)?(0,p.createElement)(nT,(0,f.Z)({},t,{ref:e})):i?(0,m.createPortal)((0,p.createElement)(nE,{scope:t.__scopeSelect},(0,p.createElement)(na.Slot,{scope:t.__scopeSelect},(0,p.createElement)("div",null,t.children))),i):null}),[nE,nS]=nc(nb),nT=(0,p.forwardRef)((t,e)=>{let{__scopeSelect:n,position:i="item-aligned",onCloseAutoFocus:r,onEscapeKeyDown:o,onPointerDownOutside:s,side:a,sideOffset:l,align:u,alignOffset:c,arrowPadding:h,collisionBoundary:d,collisionPadding:m,sticky:g,hideWhenDetached:y,avoidCollisions:b,...x}=t,E=np(nb,n),[S,T]=(0,p.useState)(null),[P,A]=(0,p.useState)(null),M=(0,w.e)(e,t=>T(t)),[D,O]=(0,p.useState)(null),[V,j]=(0,p.useState)(null),I=nl(n),[F,B]=(0,p.useState)(!1),N=(0,p.useRef)(!1);(0,p.useEffect)(()=>{if(S)return eM(S)},[S]),(0,p.useEffect)(()=>{var t,e;let n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(t=n[0])&&void 0!==t?t:k()),document.body.insertAdjacentElement("beforeend",null!==(e=n[1])&&void 0!==e?e:k()),R++,()=>{1===R&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),R--}},[]);let W=(0,p.useCallback)(t=>{let[e,...n]=I().map(t=>t.ref.current),[i]=n.slice(-1),r=document.activeElement;for(let n of t)if(n===r||(null==n||n.scrollIntoView({block:"nearest"}),n===e&&P&&(P.scrollTop=0),n===i&&P&&(P.scrollTop=P.scrollHeight),null==n||n.focus(),document.activeElement!==r))return},[I,P]),U=(0,p.useCallback)(()=>W([D,S]),[W,D,S]);(0,p.useEffect)(()=>{F&&U()},[F,U]);let{onOpenChange:$,triggerPointerDownPosRef:_}=E;(0,p.useEffect)(()=>{if(S){let t={x:0,y:0},e=e=>{var n,i,r,o;t={x:Math.abs(Math.round(e.pageX)-(null!==(n=null===(i=_.current)||void 0===i?void 0:i.x)&&void 0!==n?n:0)),y:Math.abs(Math.round(e.pageY)-(null!==(r=null===(o=_.current)||void 0===o?void 0:o.y)&&void 0!==r?r:0))}},n=n=>{t.x<=10&&t.y<=10?n.preventDefault():S.contains(n.target)||$(!1),document.removeEventListener("pointermove",e),_.current=null};return null!==_.current&&(document.addEventListener("pointermove",e),document.addEventListener("pointerup",n,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",e),document.removeEventListener("pointerup",n,{capture:!0})}}},[S,$,_]),(0,p.useEffect)(()=>{let t=()=>$(!1);return window.addEventListener("blur",t),window.addEventListener("resize",t),()=>{window.removeEventListener("blur",t),window.removeEventListener("resize",t)}},[$]);let[H,z]=nK(t=>{let e=I().filter(t=>!t.disabled),n=e.find(t=>t.ref.current===document.activeElement),i=nq(e,t,n);i&&setTimeout(()=>i.ref.current.focus())}),K=(0,p.useCallback)((t,e,n)=>{let i=!N.current&&!n;(void 0!==E.value&&E.value===e||i)&&(O(t),i&&(N.current=!0))},[E.value]),q=(0,p.useCallback)(()=>null==S?void 0:S.focus(),[S]),Y=(0,p.useCallback)((t,e,n)=>{let i=!N.current&&!n;(void 0!==E.value&&E.value===e||i)&&j(t)},[E.value]),X="popper"===i?nC:nP;return(0,p.createElement)(nE,{scope:n,content:S,viewport:P,onViewportChange:A,itemRefCallback:K,selectedItem:D,onItemLeave:q,itemTextRefCallback:Y,focusSelectedItem:U,selectedItemText:V,position:i,isPositioned:F,searchRef:H},(0,p.createElement)(ni,{as:ew.g7,allowPinchZoom:!0},(0,p.createElement)(L,{asChild:!0,trapped:E.open,onMountAutoFocus:t=>{t.preventDefault()},onUnmountAutoFocus:(0,v.M)(r,t=>{var e;null===(e=E.trigger)||void 0===e||e.focus({preventScroll:!0}),t.preventDefault()})},(0,p.createElement)(C,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:o,onPointerDownOutside:s,onFocusOutside:t=>t.preventDefault(),onDismiss:()=>E.onOpenChange(!1)},(0,p.createElement)(X,(0,f.Z)({role:"listbox",id:E.contentId,"data-state":E.open?"open":"closed",dir:E.dir,onContextMenu:t=>t.preventDefault()},x,X===nC?{side:a,sideOffset:l,align:u,alignOffset:c,arrowPadding:h,collisionBoundary:d,collisionPadding:m,sticky:g,hideWhenDetached:y,avoidCollisions:b}:{},{onPlaced:()=>B(!0),ref:M,style:{display:"flex",flexDirection:"column",outline:"none",...x.style},onKeyDown:(0,v.M)(x.onKeyDown,t=>{let e=t.ctrlKey||t.altKey||t.metaKey;if("Tab"===t.key&&t.preventDefault(),e||1!==t.key.length||z(t.key),["ArrowUp","ArrowDown","Home","End"].includes(t.key)){let e=I().filter(t=>!t.disabled).map(t=>t.ref.current);if(["ArrowUp","End"].includes(t.key)&&(e=e.slice().reverse()),["ArrowUp","ArrowDown"].includes(t.key)){let n=t.target,i=e.indexOf(n);e=e.slice(i+1)}setTimeout(()=>W(e)),t.preventDefault()}})}))))))}),nP=(0,p.forwardRef)((t,e)=>{let{__scopeSelect:n,onPlaced:i,...r}=t,o=np(nb,n),s=nS(nb,n),[a,l]=(0,p.useState)(null),[u,c]=(0,p.useState)(null),h=(0,w.e)(e,t=>c(t)),d=nl(n),m=(0,p.useRef)(!1),v=(0,p.useRef)(!0),{viewport:y,selectedItem:b,selectedItemText:x,focusSelectedItem:S}=s,T=(0,p.useCallback)(()=>
9{if(o.trigger&&o.valueNode&&a&&u&&y&&b&&x){let t=o.trigger.getBoundingClientRect(),e=u.getBoundingClientRect(),n=o.valueNode.getBoundingClientRect(),r=x.getBoundingClientRect();if("rtl"!==o.dir){let i=r.left-e.left,o=n.left-i,s=t.left-o,l=t.width+s,u=Math.max(l,e.width),c=g(o,[10,window.innerWidth-10-u]);a.style.minWidth=l+"px",a.style.left=c+"px"}else{let i=e.right-r.right,o=window.innerWidth-n.right-i,s=window.innerWidth-t.right-o,l=t.width+s,u=Math.max(l,e.width),c=g(o,[10,window.innerWidth-10-u]);a.style.minWidth=l+"px",a.style.right=c+"px"}let s=d(),l=window.innerHeight-20,c=y.scrollHeight,h=window.getComputedStyle(u),f=parseInt(h.borderTopWidth,10),p=parseInt(h.paddingTop,10),v=parseInt(h.borderBottomWidth,10),w=f+p+c+parseInt(h.paddingBottom,10)+v,E=Math.min(5*b.offsetHeight,w),S=window.getComputedStyle(y),T=parseInt(S.paddingTop,10),P=parseInt(S.paddingBottom,10),C=t.top+t.height/2-10,A=b.offsetHeight/2,M=f+p+(b.offsetTop+A);if(M<=C){let t=b===s[s.length-1].ref.current;a.style.bottom="0px";let e=u.clientHeight-y.offsetTop-y.offsetHeight;a.style.height=M+Math.max(l-C,A+(t?P:0)+e+v)+"px"}else{let t=b===s[0].ref.current;a.style.top="0px";let e=Math.max(C,f+y.offsetTop+(t?T:0)+A);a.style.height=e+(w-M)+"px",y.scrollTop=M-C+y.offsetTop}a.style.margin="10px 0",a.style.minHeight=E+"px",a.style.maxHeight=l+"px",null==i||i(),requestAnimationFrame(()=>m.current=!0)}},[d,o.trigger,o.valueNode,a,u,y,b,x,o.dir,i]);(0,en.b)(()=>T(),[T]);let[P,C]=(0,p.useState)();(0,en.b)(()=>{u&&C(window.getComputedStyle(u).zIndex)},[u]);let A=(0,p.useCallback)(t=>{t&&!0===v.current&&(T(),null==S||S(),v.current=!1)},[T,S]);return(0,p.createElement)(nA,{scope:n,contentWrapper:a,shouldExpandOnScrollRef:m,onScrollButtonChange:A},(0,p.createElement)("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:P}},(0,p.createElement)(E.WV.div,(0,f.Z)({},r,{ref:h,style:{boxSizing:"border-box",maxHeight:"100%",...r.style}}))))}),nC=(0,p.forwardRef)((t,e)=>{let{__scopeSelect:n,align:i="start",collisionPadding:r=10,...o}=t,s=nd(n);return(0,p.createElement)(ed,(0,f.Z)({},s,o,{ref:e,align:i,collisionPadding:r,style:{boxSizing:"border-box",...o.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}}))}),[nA,nM]=nc(nb,{}),nR="SelectViewport",nk=(0,p.forwardRef)((t,e)=>{let{__scopeSelect:n,...i}=t,r=nS(nR,n),o=nM(nR,n),s=(0,w.e)(e,r.onViewportChange),a=(0,p.useRef)(0);return(0,p.createElement)(p.Fragment,null,(0,p.createElement)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"}}),(0,p.createElement)(na.Slot,{scope:n},(0,p.createElement)(E.WV.div,(0,f.Z)({"data-radix-select-viewport":"",role:"presentation"},i,{ref:s,style:{position:"relative",flex:1,overflow:"auto",...i.style},onScroll:(0,v.M)(i.onScroll,t=>{let e=t.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:i}=o;if(null!=i&&i.current&&n){let t=Math.abs(a.current-e.scrollTop);if(t>0){let i=window.innerHeight-20,r=Math.max(parseFloat(n.style.minHeight),parseFloat(n.style.height));if(r<i){let o=r+t,s=Math.min(i,o),a=o-s;n.style.height=s+"px","0px"===n.style.bottom&&(e.scrollTop=a>0?a:0,n.style.justifyContent="flex-end")}}}a.current=e.scrollTop})}))))}),[nD,nO]=nc("SelectGroup"),nV="SelectItem",[nL,nj]=nc(nV),nI=(0,p.forwardRef)((t,e)=>{let{__scopeSelect:n,value:i,disabled:r=!1,textValue:o,...s}=t,a=np(nV,n),l=nS(nV,n),u=a.value===i,[c,h]=(0,p.useState)(null!=o?o:""),[d,m]=(0,p.useState)(!1),g=(0,w.e)(e,t=>{var e;return null===(e=l.itemRefCallback)||void 0===e?void 0:e.call(l,t,i,r)}),y=(0,W.M)(),b=()=>{r||(a.onValueChange(i),a.onOpenChange(!1))};if(""===i)throw Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return(0,p.createElement)(nL,{scope:n,value:i,disabled:r,textId:y,isSelected:u,onItemTextChange:(0,p.useCallback)(t=>{h(e=>{var n;return e||(null!==(n=null==t?void 0:t.textContent)&&void 0!==n?n:"").trim()})},[])},(0,p.createElement)(na.ItemSlot,{scope:n,value:i,disabled:r,textValue:c},(0,p.createElement)(E.WV.div,(0,f.Z)({role:"option","aria-labelledby":y,"data-highlighted":d?"":void 0,"aria-selected":u&&d,"data-state":u?"checked":"unchecked","aria-disabled":r||void 0,"data-disabled":r?"":void 0,tabIndex:r?void 0:-1},s,{ref:g,onFocus:(0,v.M)(s.onFocus,()=>m(!0)),onBlur:(0,v.M)(s.onBlur,()=>m(!1)),onPointerUp:(0,v.M)(s.onPointerUp,b),onPointerMove:(0,v.M)(s.onPointerMove,t=>{if(r){var e;null===(e=l.onItemLeave)||void 0===e||e.call(l)}
9else t.currentTarget.focus({preventScroll:!0})}),onPointerLeave:(0,v.M)(s.onPointerLeave,t=>{if(t.currentTarget===document.activeElement){var e;null===(e=l.onItemLeave)||void 0===e||e.call(l)}}),onKeyDown:(0,v.M)(s.onKeyDown,t=>{var e;(null===(e=l.searchRef)||void 0===e?void 0:e.current)!==""&&" "===t.key||(no.includes(t.key)&&b()," "===t.key&&t.preventDefault())})}))))}),nF="SelectItemText",nB=(0,p.forwardRef)((t,e)=>{let{__scopeSelect:n,className:i,style:r,...o}=t,s=np(nF,n),a=nS(nF,n),l=nj(nF,n),u=ng(nF,n),[c,h]=(0,p.useState)(null),d=(0,w.e)(e,t=>h(t),l.onItemTextChange,t=>{var e;return null===(e=a.itemTextRefCallback)||void 0===e?void 0:e.call(a,t,l.value,l.disabled)}),g=null==c?void 0:c.textContent,v=(0,p.useMemo)(()=>(0,p.createElement)("option",{key:l.value,value:l.value,disabled:l.disabled},g),[l.disabled,l.value,g]),{onNativeOptionAdd:y,onNativeOptionRemove:b}=u;return(0,en.b)(()=>(y(v),()=>b(v)),[y,b,v]),(0,p.createElement)(p.Fragment,null,(0,p.createElement)(E.WV.span,(0,f.Z)({id:l.textId},o,{ref:d})),l.isSelected&&s.valueNode&&!s.valueNodeHasChildren?(0,m.createPortal)(o.children,s.valueNode):null)}),nN="SelectScrollUpButton",nW=(0,p.forwardRef)((t,e)=>{let n=nS(nN,t.__scopeSelect),i=nM(nN,t.__scopeSelect),[r,o]=(0,p.useState)(!1),s=(0,w.e)(e,i.onScrollButtonChange);return(0,en.b)(()=>{if(n.viewport&&n.isPositioned){let e=n.viewport;function t(){o(e.scrollTop>0)}return t(),e.addEventListener("scroll",t),()=>e.removeEventListener("scroll",t)}},[n.viewport,n.isPositioned]),r?(0,p.createElement)(n_,(0,f.Z)({},t,{ref:s,onAutoScroll:()=>{let{viewport:t,selectedItem:e}=n;t&&e&&(t.scrollTop=t.scrollTop-e.offsetHeight)}})):null}),nU="SelectScrollDownButton",n$=(0,p.forwardRef)((t,e)=>{let n=nS(nU,t.__scopeSelect),i=nM(nU,t.__scopeSelect),[r,o]=(0,p.useState)(!1),s=(0,w.e)(e,i.onScrollButtonChange);return(0,en.b)(()=>{if(n.viewport&&n.isPositioned){let e=n.viewport;function t(){let t=e.scrollHeight-e.clientHeight;o(Math.ceil(e.scrollTop)<t)}return t(),e.addEventListener("scroll",t),()=>e.removeEventListener("scroll",t)}},[n.viewport,n.isPositioned]),r?(0,p.createElement)(n_,(0,f.Z)({},t,{ref:s,onAutoScroll:()=>{let{viewport:t,selectedItem:e}=n;t&&e&&(t.scrollTop=t.scrollTop+e.offsetHeight)}})):null}),n_=(0,p.forwardRef)((t,e)=>{let{__scopeSelect:n,onAutoScroll:i,...r}=t,o=nS("SelectScrollButton",n),s=(0,p.useRef)(null),a=nl(n),l=(0,p.useCallback)(()=>{null!==s.current&&(window.clearInterval(s.current),s.current=null)},[]);return(0,p.useEffect)(()=>()=>l(),[l]),(0,en.b)(()=>{var t;let e=a().find(t=>t.ref.current===document.activeElement);null==e||null===(t=e.ref.current)||void 0===t||t.scrollIntoView({block:"nearest"})},[a]),(0,p.createElement)(E.WV.div,(0,f.Z)({"aria-hidden":!0},r,{ref:e,style:{flexShrink:0,...r.style},onPointerDown:(0,v.M)(r.onPointerDown,()=>{null===s.current&&(s.current=window.setInterval(i,50))}),onPointerMove:(0,v.M)(r.onPointerMove,()=>{var t;null===(t=o.onItemLeave)||void 0===t||t.call(o),null===s.current&&(s.current=window.setInterval(i,50))}),onPointerLeave:(0,v.M)(r.onPointerLeave,()=>{l()})}))});function nH(t){return""===t||void 0===t}let nz=(0,p.forwardRef)((t,e)=>{let{value:n,...i}=t,r=(0,p.useRef)(null),o=(0,w.e)(e,r),s=function(t){let e=(0,p.useRef)({value:t,previous:t});return(0,p.useMemo)(()=>(e.current.value!==t&&(e.current.previous=e.current.value,e.current.value=t),e.current.previous),[t])}(n);return(0,p.useEffect)(()=>{let t=r.current,e=Object.getOwnPropertyDescriptor(window.HTMLSelectElement.prototype,"value").set;if(s!==n&&e){let i=new Event("change",{bubbles:!0});e.call(t,n),t.dispatchEvent(i)}},[s,n]),(0,p.createElement)(ex,{asChild:!0},(0,p.createElement)("select",(0,f.Z)({},i,{ref:o,defaultValue:n})))});function nK(t){let e=(0,S.W)(t),n=(0,p.useRef)(""),i=(0,p.useRef)(0),r=(0,p.useCallback)(t=>{let r=n.current+t;e(r),function t(e){n.current=e,window.clearTimeout(i.current),""!==e&&(i.current=window.setTimeout(()=>t(""),1e3))}(r)},[e]),o=(0,p.useCallback)(()=>{n.current="",window.clearTimeout(i.current)},[]);return(0,p.useEffect)(()=>()=>window.clearTimeout(i.current),[]),[n,r,o]}function nq(t,e,n){var i;let r=e.length>1&&Array.from(e).every(t=>t===e[0])?e[0]:e,o=(i=Math.max(n?t.indexOf(n):-1,0),t.map((e,n)=>t[(i+n)%t.length]));1===r.length&&(o=o.filter(t=>t!==n));let s=o.find(t=>t.textValue.toLowerCase().startsWith(r.toLowerCase()));return s!==n?s:void 0}nz.displayName="BubbleSelect";let nY=t=>{let{__scopeSelect:e,children:n,open:i,defaultOpen:r,onOpenChange:o,value:s,defaultValue:a,onValueChange:l,dir:u,name:c,autoComplete:h,disabled:d,required:f}=t,m=nd(e),[g,v]=(0,p.useState)(null),[y,w]=(0,p.useState)(null),[b,E]=(0,p.useState)(!1),S=(0,x.gm)(u),[T=!1,P]=(0,eb.T)({prop:i,defaultProp:r,onChange:o}),[C,A]=(0,eb.T)({prop:s,defaultProp:a,onChange:l}),M=(0,p.useRef)(null),R=!g||!!g.closest("form"),[k,D]=(0,p.useState)(new Set),O=Array.from(k).map(t=>t.props.value).join(";");
9return(0,p.createElement)(ev,m,(0,p.createElement)(nf,{required:f,scope:e,trigger:g,onTriggerChange:v,valueNode:y,onValueNodeChange:w,valueNodeHasChildren:b,onValueNodeHasChildrenChange:E,contentId:(0,W.M)(),value:C,onValueChange:A,open:T,onOpenChange:P,dir:S,triggerPointerDownPosRef:M,disabled:d},(0,p.createElement)(na.Provider,{scope:e},(0,p.createElement)(nm,{scope:t.__scopeSelect,onNativeOptionAdd:(0,p.useCallback)(t=>{D(e=>new Set(e).add(t))},[]),onNativeOptionRemove:(0,p.useCallback)(t=>{D(e=>{let n=new Set(e);return n.delete(t),n})},[])},n)),R?(0,p.createElement)(nz,{key:O,"aria-hidden":!0,required:f,tabIndex:-1,name:c,autoComplete:h,value:C,onChange:t=>A(t.target.value),disabled:d},void 0===C?(0,p.createElement)("option",{value:""}):null,Array.from(k)):null))},nX=nv,nZ=ny,nG=nw,nJ=t=>(0,p.createElement)(ey,(0,f.Z)({asChild:!0},t)),nQ=nx,n0=nk,n1=nI,n2=nB,n5=nW,n3=n$}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.