@latte-macchiat-io/latte-vanilla-components 0.0.117 → 0.0.118

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Je=require("react/jsx-runtime"),A=require("react"),L=require("@emotion/styled");function Cs(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const i=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,i.get?i:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const Te=Cs(Je),ct=Cs(A);function ba(t){if(t.sheet)return t.sheet;for(var e=0;e<document.styleSheets.length;e++)if(document.styleSheets[e].ownerNode===t)return document.styleSheets[e]}function Sa(t){var e=document.createElement("style");return e.setAttribute("data-emotion",t.key),t.nonce!==void 0&&e.setAttribute("nonce",t.nonce),e.appendChild(document.createTextNode("")),e.setAttribute("data-s",""),e}var wa=function(){function t(n){var i=this;this._insertTag=function(r){var o;i.tags.length===0?i.insertionPoint?o=i.insertionPoint.nextSibling:i.prepend?o=i.container.firstChild:o=i.before:o=i.tags[i.tags.length-1].nextSibling,i.container.insertBefore(r,o),i.tags.push(r)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var e=t.prototype;return e.hydrate=function(i){i.forEach(this._insertTag)},e.insert=function(i){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Sa(this));var r=this.tags[this.tags.length-1];if(this.isSpeedy){var o=ba(r);try{o.insertRule(i,o.cssRules.length)}catch{}}else r.appendChild(document.createTextNode(i));this.ctr++},e.flush=function(){this.tags.forEach(function(i){var r;return(r=i.parentNode)==null?void 0:r.removeChild(i)}),this.tags=[],this.ctr=0},t}(),et="-ms-",Qe="-moz-",I="-webkit-",Ps="comm",ai="rule",li="decl",Ta="@import",As="@keyframes",Ca="@layer",Pa=Math.abs,fn=String.fromCharCode,Aa=Object.assign;function Ea(t,e){return Q(t,0)^45?(((e<<2^Q(t,0))<<2^Q(t,1))<<2^Q(t,2))<<2^Q(t,3):0}function Es(t){return t.trim()}function Va(t,e){return(t=e.exec(t))?t[0]:t}function B(t,e,n){return t.replace(e,n)}function $n(t,e){return t.indexOf(e)}function Q(t,e){return t.charCodeAt(e)|0}function Ce(t,e,n){return t.slice(e,n)}function Tt(t){return t.length}function ci(t){return t.length}function _e(t,e){return e.push(t),t}function Ra(t,e){return t.map(e).join("")}var dn=1,se=1,Vs=0,ft=0,q=0,ce="";function hn(t,e,n,i,r,o,s){return{value:t,root:e,parent:n,type:i,props:r,children:o,line:dn,column:se,length:s,return:""}}function he(t,e){return Aa(hn("",null,null,"",null,null,0),t,{length:-t.length},e)}function Ma(){return q}function Da(){return q=ft>0?Q(ce,--ft):0,se--,q===10&&(se=1,dn--),q}function pt(){return q=ft<Vs?Q(ce,ft++):0,se++,q===10&&(se=1,dn++),q}function At(){return Q(ce,ft)}function Ke(){return ft}function Fe(t,e){return Ce(ce,t,e)}function Pe(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Rs(t){return dn=se=1,Vs=Tt(ce=t),ft=0,[]}function Ms(t){return ce="",t}function He(t){return Es(Fe(ft-1,jn(t===91?t+2:t===40?t+1:t)))}function La(t){for(;(q=At())&&q<33;)pt();return Pe(t)>2||Pe(q)>3?"":" "}function Oa(t,e){for(;--e&&pt()&&!(q<48||q>102||q>57&&q<65||q>70&&q<97););return Fe(t,Ke()+(e<6&&At()==32&&pt()==32))}function jn(t){for(;pt();)switch(q){case t:return ft;case 34:case 39:t!==34&&t!==39&&jn(q);break;case 40:t===41&&jn(t);break;case 92:pt();break}return ft}function ka(t,e){for(;pt()&&t+q!==57;)if(t+q===84&&At()===47)break;return"/*"+Fe(e,ft-1)+"*"+fn(t===47?t:pt())}function Fa(t){for(;!Pe(At());)pt();return Fe(t,ft)}function Ia(t){return Ms(Ye("",null,null,null,[""],t=Rs(t),0,[0],t))}function Ye(t,e,n,i,r,o,s,a,l){for(var c=0,u=0,f=s,d=0,h=0,p=0,g=1,S=1,v=1,w=0,T="",V=r,m=o,R=i,D=T;S;)switch(p=w,w=pt()){case 40:if(p!=108&&Q(D,f-1)==58){$n(D+=B(He(w),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:D+=He(w);break;case 9:case 10:case 13:case 32:D+=La(p);break;case 92:D+=Oa(Ke()-1,7);continue;case 47:switch(At()){case 42:case 47:_e(Ba(ka(pt(),Ke()),e,n),l);break;default:D+="/"}break;case 123*g:a[c++]=Tt(D)*v;case 125*g:case 59:case 0:switch(w){case 0:case 125:S=0;case 59+u:v==-1&&(D=B(D,/\f/g,"")),h>0&&Tt(D)-f&&_e(h>32?Hi(D+";",i,n,f-1):Hi(B(D," ","")+";",i,n,f-2),l);break;case 59:D+=";";default:if(_e(R=Ki(D,e,n,c,u,r,a,T,V=[],m=[],f),o),w===123)if(u===0)Ye(D,e,R,R,V,o,f,a,m);else switch(d===99&&Q(D,3)===110?100:d){case 100:case 108:case 109:case 115:Ye(t,R,R,i&&_e(Ki(t,R,R,0,0,r,a,T,r,V=[],f),m),r,m,f,a,i?V:m);break;default:Ye(D,R,R,R,[""],m,0,a,m)}}c=u=h=0,g=v=1,T=D="",f=s;break;case 58:f=1+Tt(D),h=p;default:if(g<1){if(w==123)--g;else if(w==125&&g++==0&&Da()==125)continue}switch(D+=fn(w),w*g){case 38:v=u>0?1:(D+="\f",-1);break;case 44:a[c++]=(Tt(D)-1)*v,v=1;break;case 64:At()===45&&(D+=He(pt())),d=At(),u=f=Tt(T=D+=Fa(Ke())),w++;break;case 45:p===45&&Tt(D)==2&&(g=0)}}return o}function Ki(t,e,n,i,r,o,s,a,l,c,u){for(var f=r-1,d=r===0?o:[""],h=ci(d),p=0,g=0,S=0;p<i;++p)for(var v=0,w=Ce(t,f+1,f=Pa(g=s[p])),T=t;v<h;++v)(T=Es(g>0?d[v]+" "+w:B(w,/&\f/g,d[v])))&&(l[S++]=T);return hn(t,e,n,r===0?ai:a,l,c,u)}function Ba(t,e,n){return hn(t,e,n,Ps,fn(Ma()),Ce(t,2,-2),0)}function Hi(t,e,n,i){return hn(t,e,n,li,Ce(t,0,i),Ce(t,i+1,-1),i)}function ne(t,e){for(var n="",i=ci(t),r=0;r<i;r++)n+=e(t[r],r,t,e)||"";return n}function $a(t,e,n,i){switch(t.type){case Ca:if(t.children.length)break;case Ta:case li:return t.return=t.return||t.value;case Ps:return"";case As:return t.return=t.value+"{"+ne(t.children,i)+"}";case ai:t.value=t.props.join(",")}return Tt(n=ne(t.children,i))?t.return=t.value+"{"+n+"}":""}function ja(t){var e=ci(t);return function(n,i,r,o){for(var s="",a=0;a<e;a++)s+=t[a](n,i,r,o)||"";return s}}function _a(t){return function(e){e.root||(e=e.return)&&t(e)}}function Na(t){var e=Object.create(null);return function(n){return e[n]===void 0&&(e[n]=t(n)),e[n]}}var Ua=function(e,n,i){for(var r=0,o=0;r=o,o=At(),r===38&&o===12&&(n[i]=1),!Pe(o);)pt();return Fe(e,ft)},za=function(e,n){var i=-1,r=44;do switch(Pe(r)){case 0:r===38&&At()===12&&(n[i]=1),e[i]+=Ua(ft-1,n,i);break;case 2:e[i]+=He(r);break;case 4:if(r===44){e[++i]=At()===58?"&\f":"",n[i]=e[i].length;break}default:e[i]+=fn(r)}while(r=pt());return e},Wa=function(e,n){return Ms(za(Rs(e),n))},Yi=new WeakMap,Ga=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var n=e.value,i=e.parent,r=e.column===i.column&&e.line===i.line;i.type!=="rule";)if(i=i.parent,!i)return;if(!(e.props.length===1&&n.charCodeAt(0)!==58&&!Yi.get(i))&&!r){Yi.set(e,!0);for(var o=[],s=Wa(n,o),a=i.props,l=0,c=0;l<s.length;l++)for(var u=0;u<a.length;u++,c++)e.props[c]=o[l]?s[l].replace(/&\f/g,a[u]):a[u]+" "+s[l]}}},Ka=function(e){if(e.type==="decl"){var n=e.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(e.return="",e.value="")}};function Ds(t,e){switch(Ea(t,e)){case 5103:return I+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return I+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return I+t+Qe+t+et+t+t;case 6828:case 4268:return I+t+et+t+t;case 6165:return I+t+et+"flex-"+t+t;case 5187:return I+t+B(t,/(\w+).+(:[^]+)/,I+"box-$1$2"+et+"flex-$1$2")+t;case 5443:return I+t+et+"flex-item-"+B(t,/flex-|-self/,"")+t;case 4675:return I+t+et+"flex-line-pack"+B(t,/align-content|flex-|-self/,"")+t;case 5548:return I+t+et+B(t,"shrink","negative")+t;case 5292:return I+t+et+B(t,"basis","preferred-size")+t;case 6060:return I+"box-"+B(t,"-grow","")+I+t+et+B(t,"grow","positive")+t;case 4554:return I+B(t,/([^-])(transform)/g,"$1"+I+"$2")+t;case 6187:return B(B(B(t,/(zoom-|grab)/,I+"$1"),/(image-set)/,I+"$1"),t,"")+t;case 5495:case 3959:return B(t,/(image-set\([^]*)/,I+"$1$`$1");case 4968:return B(B(t,/(.+:)(flex-)?(.*)/,I+"box-pack:$3"+et+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+I+t+t;case 4095:case 3583:case 4068:case 2532:return B(t,/(.+)-inline(.+)/,I+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Tt(t)-1-e>6)switch(Q(t,e+1)){case 109:if(Q(t,e+4)!==45)break;case 102:return B(t,/(.+:)(.+)-([^]+)/,"$1"+I+"$2-$3$1"+Qe+(Q(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~$n(t,"stretch")?Ds(B(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(Q(t,e+1)!==115)break;case 6444:switch(Q(t,Tt(t)-3-(~$n(t,"!important")&&10))){case 107:return B(t,":",":"+I)+t;case 101:return B(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+I+(Q(t,14)===45?"inline-":"")+"box$3$1"+I+"$2$3$1"+et+"$2box$3")+t}break;case 5936:switch(Q(t,e+11)){case 114:return I+t+et+B(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return I+t+et+B(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return I+t+et+B(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return I+t+et+t+t}return t}var Ha=function(e,n,i,r){if(e.length>-1&&!e.return)switch(e.type){case li:e.return=Ds(e.value,e.length);break;case As:return ne([he(e,{value:B(e.value,"@","@"+I)})],r);case ai:if(e.length)return Ra(e.props,function(o){switch(Va(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ne([he(e,{props:[B(o,/:(read-\w+)/,":"+Qe+"$1")]})],r);case"::placeholder":return ne([he(e,{props:[B(o,/:(plac\w+)/,":"+I+"input-$1")]}),he(e,{props:[B(o,/:(plac\w+)/,":"+Qe+"$1")]}),he(e,{props:[B(o,/:(plac\w+)/,et+"input-$1")]})],r)}return""})}},Ya=[Ha],qa=function(e){var n=e.key;if(n==="css"){var i=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(i,function(g){var S=g.getAttribute("data-emotion");S.indexOf(" ")!==-1&&(document.head.appendChild(g),g.setAttribute("data-s",""))})}var r=e.stylisPlugins||Ya,o={},s,a=[];s=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(g){for(var S=g.getAttribute("data-emotion").split(" "),v=1;v<S.length;v++)o[S[v]]=!0;a.push(g)});var l,c=[Ga,Ka];{var u,f=[$a,_a(function(g){u.insert(g)})],d=ja(c.concat(r,f)),h=function(S){return ne(Ia(S),d)};l=function(S,v,w,T){u=w,h(S?S+"{"+v.styles+"}":v.styles),T&&(p.inserted[v.name]=!0)}}var p={key:n,sheet:new wa({key:n,container:s,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:o,registered:{},insert:l};return p.sheet.hydrate(a),p};function Xa(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Za(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function i(){return this instanceof i?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(i){var r=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(n,i,r.get?r:{enumerable:!0,get:function(){return t[i]}})}),n}var Ne={exports:{}},$={};/** @license React v16.13.1
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Je=require("react/jsx-runtime"),P=require("react"),L=require("@emotion/styled");function Cs(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const i=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,i.get?i:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const Te=Cs(Je),ct=Cs(P);function ba(t){if(t.sheet)return t.sheet;for(var e=0;e<document.styleSheets.length;e++)if(document.styleSheets[e].ownerNode===t)return document.styleSheets[e]}function Sa(t){var e=document.createElement("style");return e.setAttribute("data-emotion",t.key),t.nonce!==void 0&&e.setAttribute("nonce",t.nonce),e.appendChild(document.createTextNode("")),e.setAttribute("data-s",""),e}var wa=function(){function t(n){var i=this;this._insertTag=function(r){var o;i.tags.length===0?i.insertionPoint?o=i.insertionPoint.nextSibling:i.prepend?o=i.container.firstChild:o=i.before:o=i.tags[i.tags.length-1].nextSibling,i.container.insertBefore(r,o),i.tags.push(r)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var e=t.prototype;return e.hydrate=function(i){i.forEach(this._insertTag)},e.insert=function(i){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Sa(this));var r=this.tags[this.tags.length-1];if(this.isSpeedy){var o=ba(r);try{o.insertRule(i,o.cssRules.length)}catch{}}else r.appendChild(document.createTextNode(i));this.ctr++},e.flush=function(){this.tags.forEach(function(i){var r;return(r=i.parentNode)==null?void 0:r.removeChild(i)}),this.tags=[],this.ctr=0},t}(),et="-ms-",Qe="-moz-",I="-webkit-",Ps="comm",ai="rule",li="decl",Ta="@import",As="@keyframes",Ca="@layer",Pa=Math.abs,fn=String.fromCharCode,Aa=Object.assign;function Ea(t,e){return Q(t,0)^45?(((e<<2^Q(t,0))<<2^Q(t,1))<<2^Q(t,2))<<2^Q(t,3):0}function Es(t){return t.trim()}function Va(t,e){return(t=e.exec(t))?t[0]:t}function B(t,e,n){return t.replace(e,n)}function $n(t,e){return t.indexOf(e)}function Q(t,e){return t.charCodeAt(e)|0}function Ce(t,e,n){return t.slice(e,n)}function Tt(t){return t.length}function ci(t){return t.length}function _e(t,e){return e.push(t),t}function Ra(t,e){return t.map(e).join("")}var dn=1,se=1,Vs=0,ft=0,q=0,ce="";function hn(t,e,n,i,r,o,s){return{value:t,root:e,parent:n,type:i,props:r,children:o,line:dn,column:se,length:s,return:""}}function he(t,e){return Aa(hn("",null,null,"",null,null,0),t,{length:-t.length},e)}function Ma(){return q}function Da(){return q=ft>0?Q(ce,--ft):0,se--,q===10&&(se=1,dn--),q}function pt(){return q=ft<Vs?Q(ce,ft++):0,se++,q===10&&(se=1,dn++),q}function At(){return Q(ce,ft)}function Ke(){return ft}function Fe(t,e){return Ce(ce,t,e)}function Pe(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Rs(t){return dn=se=1,Vs=Tt(ce=t),ft=0,[]}function Ms(t){return ce="",t}function He(t){return Es(Fe(ft-1,jn(t===91?t+2:t===40?t+1:t)))}function La(t){for(;(q=At())&&q<33;)pt();return Pe(t)>2||Pe(q)>3?"":" "}function Oa(t,e){for(;--e&&pt()&&!(q<48||q>102||q>57&&q<65||q>70&&q<97););return Fe(t,Ke()+(e<6&&At()==32&&pt()==32))}function jn(t){for(;pt();)switch(q){case t:return ft;case 34:case 39:t!==34&&t!==39&&jn(q);break;case 40:t===41&&jn(t);break;case 92:pt();break}return ft}function ka(t,e){for(;pt()&&t+q!==57;)if(t+q===84&&At()===47)break;return"/*"+Fe(e,ft-1)+"*"+fn(t===47?t:pt())}function Fa(t){for(;!Pe(At());)pt();return Fe(t,ft)}function Ia(t){return Ms(Ye("",null,null,null,[""],t=Rs(t),0,[0],t))}function Ye(t,e,n,i,r,o,s,a,l){for(var c=0,u=0,f=s,d=0,h=0,p=0,g=1,S=1,v=1,w=0,T="",V=r,m=o,R=i,D=T;S;)switch(p=w,w=pt()){case 40:if(p!=108&&Q(D,f-1)==58){$n(D+=B(He(w),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:D+=He(w);break;case 9:case 10:case 13:case 32:D+=La(p);break;case 92:D+=Oa(Ke()-1,7);continue;case 47:switch(At()){case 42:case 47:_e(Ba(ka(pt(),Ke()),e,n),l);break;default:D+="/"}break;case 123*g:a[c++]=Tt(D)*v;case 125*g:case 59:case 0:switch(w){case 0:case 125:S=0;case 59+u:v==-1&&(D=B(D,/\f/g,"")),h>0&&Tt(D)-f&&_e(h>32?Hi(D+";",i,n,f-1):Hi(B(D," ","")+";",i,n,f-2),l);break;case 59:D+=";";default:if(_e(R=Ki(D,e,n,c,u,r,a,T,V=[],m=[],f),o),w===123)if(u===0)Ye(D,e,R,R,V,o,f,a,m);else switch(d===99&&Q(D,3)===110?100:d){case 100:case 108:case 109:case 115:Ye(t,R,R,i&&_e(Ki(t,R,R,0,0,r,a,T,r,V=[],f),m),r,m,f,a,i?V:m);break;default:Ye(D,R,R,R,[""],m,0,a,m)}}c=u=h=0,g=v=1,T=D="",f=s;break;case 58:f=1+Tt(D),h=p;default:if(g<1){if(w==123)--g;else if(w==125&&g++==0&&Da()==125)continue}switch(D+=fn(w),w*g){case 38:v=u>0?1:(D+="\f",-1);break;case 44:a[c++]=(Tt(D)-1)*v,v=1;break;case 64:At()===45&&(D+=He(pt())),d=At(),u=f=Tt(T=D+=Fa(Ke())),w++;break;case 45:p===45&&Tt(D)==2&&(g=0)}}return o}function Ki(t,e,n,i,r,o,s,a,l,c,u){for(var f=r-1,d=r===0?o:[""],h=ci(d),p=0,g=0,S=0;p<i;++p)for(var v=0,w=Ce(t,f+1,f=Pa(g=s[p])),T=t;v<h;++v)(T=Es(g>0?d[v]+" "+w:B(w,/&\f/g,d[v])))&&(l[S++]=T);return hn(t,e,n,r===0?ai:a,l,c,u)}function Ba(t,e,n){return hn(t,e,n,Ps,fn(Ma()),Ce(t,2,-2),0)}function Hi(t,e,n,i){return hn(t,e,n,li,Ce(t,0,i),Ce(t,i+1,-1),i)}function ne(t,e){for(var n="",i=ci(t),r=0;r<i;r++)n+=e(t[r],r,t,e)||"";return n}function $a(t,e,n,i){switch(t.type){case Ca:if(t.children.length)break;case Ta:case li:return t.return=t.return||t.value;case Ps:return"";case As:return t.return=t.value+"{"+ne(t.children,i)+"}";case ai:t.value=t.props.join(",")}return Tt(n=ne(t.children,i))?t.return=t.value+"{"+n+"}":""}function ja(t){var e=ci(t);return function(n,i,r,o){for(var s="",a=0;a<e;a++)s+=t[a](n,i,r,o)||"";return s}}function _a(t){return function(e){e.root||(e=e.return)&&t(e)}}function Na(t){var e=Object.create(null);return function(n){return e[n]===void 0&&(e[n]=t(n)),e[n]}}var Ua=function(e,n,i){for(var r=0,o=0;r=o,o=At(),r===38&&o===12&&(n[i]=1),!Pe(o);)pt();return Fe(e,ft)},za=function(e,n){var i=-1,r=44;do switch(Pe(r)){case 0:r===38&&At()===12&&(n[i]=1),e[i]+=Ua(ft-1,n,i);break;case 2:e[i]+=He(r);break;case 4:if(r===44){e[++i]=At()===58?"&\f":"",n[i]=e[i].length;break}default:e[i]+=fn(r)}while(r=pt());return e},Wa=function(e,n){return Ms(za(Rs(e),n))},Yi=new WeakMap,Ga=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var n=e.value,i=e.parent,r=e.column===i.column&&e.line===i.line;i.type!=="rule";)if(i=i.parent,!i)return;if(!(e.props.length===1&&n.charCodeAt(0)!==58&&!Yi.get(i))&&!r){Yi.set(e,!0);for(var o=[],s=Wa(n,o),a=i.props,l=0,c=0;l<s.length;l++)for(var u=0;u<a.length;u++,c++)e.props[c]=o[l]?s[l].replace(/&\f/g,a[u]):a[u]+" "+s[l]}}},Ka=function(e){if(e.type==="decl"){var n=e.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(e.return="",e.value="")}};function Ds(t,e){switch(Ea(t,e)){case 5103:return I+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return I+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return I+t+Qe+t+et+t+t;case 6828:case 4268:return I+t+et+t+t;case 6165:return I+t+et+"flex-"+t+t;case 5187:return I+t+B(t,/(\w+).+(:[^]+)/,I+"box-$1$2"+et+"flex-$1$2")+t;case 5443:return I+t+et+"flex-item-"+B(t,/flex-|-self/,"")+t;case 4675:return I+t+et+"flex-line-pack"+B(t,/align-content|flex-|-self/,"")+t;case 5548:return I+t+et+B(t,"shrink","negative")+t;case 5292:return I+t+et+B(t,"basis","preferred-size")+t;case 6060:return I+"box-"+B(t,"-grow","")+I+t+et+B(t,"grow","positive")+t;case 4554:return I+B(t,/([^-])(transform)/g,"$1"+I+"$2")+t;case 6187:return B(B(B(t,/(zoom-|grab)/,I+"$1"),/(image-set)/,I+"$1"),t,"")+t;case 5495:case 3959:return B(t,/(image-set\([^]*)/,I+"$1$`$1");case 4968:return B(B(t,/(.+:)(flex-)?(.*)/,I+"box-pack:$3"+et+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+I+t+t;case 4095:case 3583:case 4068:case 2532:return B(t,/(.+)-inline(.+)/,I+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Tt(t)-1-e>6)switch(Q(t,e+1)){case 109:if(Q(t,e+4)!==45)break;case 102:return B(t,/(.+:)(.+)-([^]+)/,"$1"+I+"$2-$3$1"+Qe+(Q(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~$n(t,"stretch")?Ds(B(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(Q(t,e+1)!==115)break;case 6444:switch(Q(t,Tt(t)-3-(~$n(t,"!important")&&10))){case 107:return B(t,":",":"+I)+t;case 101:return B(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+I+(Q(t,14)===45?"inline-":"")+"box$3$1"+I+"$2$3$1"+et+"$2box$3")+t}break;case 5936:switch(Q(t,e+11)){case 114:return I+t+et+B(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return I+t+et+B(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return I+t+et+B(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return I+t+et+t+t}return t}var Ha=function(e,n,i,r){if(e.length>-1&&!e.return)switch(e.type){case li:e.return=Ds(e.value,e.length);break;case As:return ne([he(e,{value:B(e.value,"@","@"+I)})],r);case ai:if(e.length)return Ra(e.props,function(o){switch(Va(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ne([he(e,{props:[B(o,/:(read-\w+)/,":"+Qe+"$1")]})],r);case"::placeholder":return ne([he(e,{props:[B(o,/:(plac\w+)/,":"+I+"input-$1")]}),he(e,{props:[B(o,/:(plac\w+)/,":"+Qe+"$1")]}),he(e,{props:[B(o,/:(plac\w+)/,et+"input-$1")]})],r)}return""})}},Ya=[Ha],qa=function(e){var n=e.key;if(n==="css"){var i=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(i,function(g){var S=g.getAttribute("data-emotion");S.indexOf(" ")!==-1&&(document.head.appendChild(g),g.setAttribute("data-s",""))})}var r=e.stylisPlugins||Ya,o={},s,a=[];s=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(g){for(var S=g.getAttribute("data-emotion").split(" "),v=1;v<S.length;v++)o[S[v]]=!0;a.push(g)});var l,c=[Ga,Ka];{var u,f=[$a,_a(function(g){u.insert(g)})],d=ja(c.concat(r,f)),h=function(S){return ne(Ia(S),d)};l=function(S,v,w,T){u=w,h(S?S+"{"+v.styles+"}":v.styles),T&&(p.inserted[v.name]=!0)}}var p={key:n,sheet:new wa({key:n,container:s,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:o,registered:{},insert:l};return p.sheet.hydrate(a),p};function Xa(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Za(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function i(){return this instanceof i?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(i){var r=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(n,i,r.get?r:{enumerable:!0,get:function(){return t[i]}})}),n}var Ne={exports:{}},$={};/** @license React v16.13.1
2
2
  * react-is.production.min.js
3
3
  *
4
4
  * Copyright (c) Facebook, Inc. and its affiliates.
@@ -12,5 +12,5 @@
12
12
  *
13
13
  * This source code is licensed under the MIT license found in the
14
14
  * LICENSE file in the root directory of this source tree.
15
- */var Xi;function Qa(){return Xi||(Xi=1,process.env.NODE_ENV!=="production"&&function(){var t=typeof Symbol=="function"&&Symbol.for,e=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,i=t?Symbol.for("react.fragment"):60107,r=t?Symbol.for("react.strict_mode"):60108,o=t?Symbol.for("react.profiler"):60114,s=t?Symbol.for("react.provider"):60109,a=t?Symbol.for("react.context"):60110,l=t?Symbol.for("react.async_mode"):60111,c=t?Symbol.for("react.concurrent_mode"):60111,u=t?Symbol.for("react.forward_ref"):60112,f=t?Symbol.for("react.suspense"):60113,d=t?Symbol.for("react.suspense_list"):60120,h=t?Symbol.for("react.memo"):60115,p=t?Symbol.for("react.lazy"):60116,g=t?Symbol.for("react.block"):60121,S=t?Symbol.for("react.fundamental"):60117,v=t?Symbol.for("react.responder"):60118,w=t?Symbol.for("react.scope"):60119;function T(M){return typeof M=="string"||typeof M=="function"||M===i||M===c||M===o||M===r||M===f||M===d||typeof M=="object"&&M!==null&&(M.$$typeof===p||M.$$typeof===h||M.$$typeof===s||M.$$typeof===a||M.$$typeof===u||M.$$typeof===S||M.$$typeof===v||M.$$typeof===w||M.$$typeof===g)}function V(M){if(typeof M=="object"&&M!==null){var lt=M.$$typeof;switch(lt){case e:var wt=M.type;switch(wt){case l:case c:case i:case o:case r:case f:return wt;default:var zt=wt&&wt.$$typeof;switch(zt){case a:case u:case p:case h:case s:return zt;default:return lt}}case n:return lt}}}var m=l,R=c,D=a,y=s,b=e,x=u,C=i,k=p,G=h,X=n,Z=o,z=r,F=f,N=!1;function at(M){return N||(N=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),rt(M)||V(M)===l}function rt(M){return V(M)===c}function Ot(M){return V(M)===a}function kt(M){return V(M)===s}function vt(M){return typeof M=="object"&&M!==null&&M.$$typeof===e}function mt(M){return V(M)===u}function Ft(M){return V(M)===i}function ht(M){return V(M)===p}function It(M){return V(M)===h}function xt(M){return V(M)===n}function bt(M){return V(M)===o}function Nt(M){return V(M)===r}function Ut(M){return V(M)===f}j.AsyncMode=m,j.ConcurrentMode=R,j.ContextConsumer=D,j.ContextProvider=y,j.Element=b,j.ForwardRef=x,j.Fragment=C,j.Lazy=k,j.Memo=G,j.Portal=X,j.Profiler=Z,j.StrictMode=z,j.Suspense=F,j.isAsyncMode=at,j.isConcurrentMode=rt,j.isContextConsumer=Ot,j.isContextProvider=kt,j.isElement=vt,j.isForwardRef=mt,j.isFragment=Ft,j.isLazy=ht,j.isMemo=It,j.isPortal=xt,j.isProfiler=bt,j.isStrictMode=Nt,j.isSuspense=Ut,j.isValidElementType=T,j.typeOf=V}()),j}var Zi;function tl(){return Zi||(Zi=1,process.env.NODE_ENV==="production"?Ne.exports=Ja():Ne.exports=Qa()),Ne.exports}var Sn,Ji;function el(){if(Ji)return Sn;Ji=1;var t=tl(),e={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},r={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};o[t.ForwardRef]=i,o[t.Memo]=r;function s(p){return t.isMemo(p)?r:o[p.$$typeof]||e}var a=Object.defineProperty,l=Object.getOwnPropertyNames,c=Object.getOwnPropertySymbols,u=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,d=Object.prototype;function h(p,g,S){if(typeof g!="string"){if(d){var v=f(g);v&&v!==d&&h(p,v,S)}var w=l(g);c&&(w=w.concat(c(g)));for(var T=s(p),V=s(g),m=0;m<w.length;++m){var R=w[m];if(!n[R]&&!(S&&S[R])&&!(V&&V[R])&&!(T&&T[R])){var D=u(g,R);try{a(p,R,D)}catch{}}}}return p}return Sn=h,Sn}el();var nl=!0;function il(t,e,n){var i="";return n.split(" ").forEach(function(r){t[r]!==void 0?e.push(t[r]+";"):r&&(i+=r+" ")}),i}var Ls=function(e,n,i){var r=e.key+"-"+n.name;(i===!1||nl===!1)&&e.registered[r]===void 0&&(e.registered[r]=n.styles)},rl=function(e,n,i){Ls(e,n,i);var r=e.key+"-"+n.name;if(e.inserted[n.name]===void 0){var o=n;do e.insert(n===o?"."+r:"",o,e.sheet,!0),o=o.next;while(o!==void 0)}};function sl(t){for(var e=0,n,i=0,r=t.length;r>=4;++i,r-=4)n=t.charCodeAt(i)&255|(t.charCodeAt(++i)&255)<<8|(t.charCodeAt(++i)&255)<<16|(t.charCodeAt(++i)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,e=(n&65535)*1540483477+((n>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(r){case 3:e^=(t.charCodeAt(i+2)&255)<<16;case 2:e^=(t.charCodeAt(i+1)&255)<<8;case 1:e^=t.charCodeAt(i)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}var ol={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},al=/[A-Z]|^ms/g,ll=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Os=function(e){return e.charCodeAt(1)===45},Qi=function(e){return e!=null&&typeof e!="boolean"},wn=Na(function(t){return Os(t)?t:t.replace(al,"-$&").toLowerCase()}),tr=function(e,n){switch(e){case"animation":case"animationName":if(typeof n=="string")return n.replace(ll,function(i,r,o){return Ct={name:r,styles:o,next:Ct},r})}return ol[e]!==1&&!Os(e)&&typeof n=="number"&&n!==0?n+"px":n};function Ae(t,e,n){if(n==null)return"";var i=n;if(i.__emotion_styles!==void 0)return i;switch(typeof n){case"boolean":return"";case"object":{var r=n;if(r.anim===1)return Ct={name:r.name,styles:r.styles,next:Ct},r.name;var o=n;if(o.styles!==void 0){var s=o.next;if(s!==void 0)for(;s!==void 0;)Ct={name:s.name,styles:s.styles,next:Ct},s=s.next;var a=o.styles+";";return a}return cl(t,e,n)}case"function":{if(t!==void 0){var l=Ct,c=n(t);return Ct=l,Ae(t,e,c)}break}}var u=n;return u}function cl(t,e,n){var i="";if(Array.isArray(n))for(var r=0;r<n.length;r++)i+=Ae(t,e,n[r])+";";else for(var o in n){var s=n[o];if(typeof s!="object"){var a=s;Qi(a)&&(i+=wn(o)+":"+tr(o,a)+";")}else if(Array.isArray(s)&&typeof s[0]=="string"&&e==null)for(var l=0;l<s.length;l++)Qi(s[l])&&(i+=wn(o)+":"+tr(o,s[l])+";");else{var c=Ae(t,e,s);switch(o){case"animation":case"animationName":{i+=wn(o)+":"+c+";";break}default:i+=o+"{"+c+"}"}}}return i}var er=/label:\s*([^\s;{]+)\s*(;|$)/g,Ct;function ul(t,e,n){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var i=!0,r="";Ct=void 0;var o=t[0];if(o==null||o.raw===void 0)i=!1,r+=Ae(n,e,o);else{var s=o;r+=s[0]}for(var a=1;a<t.length;a++)if(r+=Ae(n,e,t[a]),i){var l=o;r+=l[a]}er.lastIndex=0;for(var c="",u;(u=er.exec(r))!==null;)c+="-"+u[1];var f=sl(r)+c;return{name:f,styles:r,next:Ct}}var fl=function(e){return e()},dl=ct.useInsertionEffect?ct.useInsertionEffect:!1,hl=dl||fl,ks=ct.createContext(typeof HTMLElement<"u"?qa({key:"css"}):null);ks.Provider;var pl=function(e){return A.forwardRef(function(n,i){var r=A.useContext(ks);return e(n,r,i)})},ml=ct.createContext({}),pn={}.hasOwnProperty,_n="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Fs=function(e,n){var i={};for(var r in n)pn.call(n,r)&&(i[r]=n[r]);return i[_n]=e,i},gl=function(e){var n=e.cache,i=e.serialized,r=e.isStringTag;return Ls(n,i,r),hl(function(){return rl(n,i,r)}),null},yl=pl(function(t,e,n){var i=t.css;typeof i=="string"&&e.registered[i]!==void 0&&(i=e.registered[i]);var r=t[_n],o=[i],s="";typeof t.className=="string"?s=il(e.registered,o,t.className):t.className!=null&&(s=t.className+" ");var a=ul(o,void 0,ct.useContext(ml));s+=e.key+"-"+a.name;var l={};for(var c in t)pn.call(t,c)&&c!=="css"&&c!==_n&&(l[c]=t[c]);return l.className=s,n&&(l.ref=n),ct.createElement(ct.Fragment,null,ct.createElement(gl,{cache:e,serialized:a,isStringTag:typeof r=="string"}),ct.createElement(r,l))}),Is=yl,vl=Te.Fragment,E=function(e,n,i){return pn.call(n,"css")?Te.jsx(Is,Fs(e,n),i):Te.jsx(e,n,i)},dt=function(e,n,i){return pn.call(n,"css")?Te.jsxs(Is,Fs(e,n),i):Te.jsxs(e,n,i)};const Nn=[640,768,1024,1680],P=Nn.map(t=>`@media (min-width: ${t}px)`),W=(t,e)=>{for(const n in e)e.hasOwnProperty(n)&&(e[n]instanceof Object&&t[n]instanceof Object?t[n]=W(t[n],e[n]):t[n]=e[n]);return t},xl=L.button(({theme:{button:{minWidth:t,letterSpacing:e,fontWeight:n,color:i,backgroundColor:r,border:o,padding:s,borderRadius:a,transition:l}},styles:c,isSmall:u,isLarge:f,isDisabled:d,isOutlined:h,isSecondary:p,staticColor:g})=>W({minWidth:t,fontWeight:n,transition:l,borderRadius:a,letterSpacing:e,position:"relative",display:"inline-block",cursor:d?"default":"pointer",pointerEvents:d?"none":"auto",padding:u?`${s.small[0]/2}px ${s.small[1]/2}px`:f?`${s.large[0]/2}px ${s.large[1]/2}px`:`${s.medium[0]/2}px ${s.medium[1]/2}px`,border:g?`${o.width}px ${o.style} ${g}`:p?`${o.width}px ${o.style} ${o.color.secondary}`:d?`${o.width}px ${o.style} ${o.color.disabled}`:`${o.width}px ${o.style} ${o.color.primary}`,color:h&&g?g:h&&p?r.secondary:h?r.primary:p?i.secondary:d?i.disabled:i.primary,backgroundColor:h?"transparent":g||(p?r.secondary:d?r.disabled:r.primary),[P[1]]:{padding:u?`${s.small[0]}px ${s.small[1]}px`:f?`${s.large[0]}px ${s.large[1]}px`:`${s.medium[0]}px ${s.medium[1]}px`},"&:hover":{opacity:.5}},c));var tn=(t=>(t[t.Primary=0]="Primary",t[t.Secondary=1]="Secondary",t))(tn||{}),en=(t=>(t[t.Fill=0]="Fill",t[t.Outline=1]="Outline",t))(en||{}),ve=(t=>(t[t.Small=0]="Small",t[t.Medium=1]="Medium",t[t.Large=2]="Large",t))(ve||{}),ui=(t=>(t.Reset="reset",t.Button="button",t.Submit="submit",t))(ui||{});const nr='"Goudy Bookletter 1911", sans-serif',Tn='"Gill Sans", sans-serif',Bs="#FF7377",Cn="#C8AE96",tt="#FCEFE6",bl="#2E2E2E",ir="#CCCCCC",Sl=" #888888",st="#000000",Pn=Bs,_={global:{maxWidth:1200,paddingLeft:[15,15,30,30],paddingRight:[15,15,30,30],brandFont:nr,defaultFont:Tn},colors:{defaultText:st,defaultLightText:tt,defaultTitle:"",defaultLink:st,defaultIcon:st},backgroundColors:{modal:tt,modalOverlay:"rgba(0, 0, 0, 0.6)",cookieConsent:tt},borders:{hr:`1px solid ${Cn}`,cookieConsent:`2px solid ${st}`},borderRadius:{modal:30,input:30,cookieConsent:30},widthSizes:{modal:600,cookieConsent:500},transitions:{global:"all 0.3s ease-in-out"},actions:{gap:30,paddingTop:60},button:{minWidth:80,fontWeight:400,letterSpacing:.1,color:{primary:tt,secondary:bl,disabled:Sl},backgroundColor:{primary:Pn,secondary:Cn,disabled:ir},border:{width:2,style:"solid",color:{primary:Pn,secondary:Cn,disabled:ir}},borderRadius:50,padding:{small:[5,10],medium:[10,15],large:[15,30]},transition:"all 0.3s ease-in-out"},columns:{gap:30},form:{width:800,padding:["15px","30px"],backgroundColor:"",row:{gap:[30,60],padding:["15px","30px"]},label:{font:nr,fontWeight:500,color:Pn,paddingBottom:5},input:{color:"",borderRadius:0,padding:[5,10],font:Tn,backgroundColor:"",placeholder:{color:"",opacity:1},border:`2px solid ${st}`},textarea:{color:"",borderRadius:0,padding:[5,10],font:Tn,backgroundColor:"",placeholder:{color:"",opacity:1},border:`2px solid ${st}`},error:{color:Bs}},header:{gap:[15,15,15,15],height:[60,60,120,120],backgroundColor:tt,paddingTop:[15,30,50,100],paddingLeft:[15,30,50,100],paddingRight:[15,30,50,100],paddingBottom:[15,30,50,100],overlayGap:[15,15,15,15],overlayBackgroundColor:tt,toggleNavColor:st,toggleNavOpenColor:st,toggleNavBorderRadius:5},main:{minHeight:"45vh",backgroundColor:tt},section:{paddingTop:[15,30,50,100],paddingBottom:[15,30,50,100]},footer:{gap:[15,15,15,15],height:[60,60,120,120],backgroundColor:tt,paddingTop:[15,30,50,100],paddingBottom:[15,30,50,100]},modal:{borders:0,borderRadius:0,width:[50,50,75,75],backgroundColor:tt,overlayBlur:0,overlayOpacity:.5,overlayBackgroundColor:st,paddingTop:[15,30,50,100],paddingLeft:[15,30,50,100],paddingRight:[15,30,50,100],paddingBottom:[15,30,50,100]},languageSwitcher:{border:"",borderRadius:0,color:st,width:[150,150,200,200],backgroundColor:tt,paddingTop:[15,30,50,100],paddingLeft:[15,30,50,100],paddingRight:[15,30,50,100],paddingBottom:[15,30,50,100]},carousel:{gap:[0,0,30,60],bullet:{borderRadius:0,width:[12,12,12,12],height:[12,12,12,12],backgroundColor:tt}},video:{playButton:{border:"",borderRadius:0,width:[50,50,75,75],height:[50,50,75,75],color:st,backgroundColor:tt},pauseButton:{border:"",borderRadius:0,width:[40,40,50,50],height:[40,40,50,50],color:st,backgroundColor:tt},soundButton:{border:"",borderRadius:0,width:[40,40,50,50],height:[40,40,50,50],color:st,backgroundColor:tt},closeButton:{border:"",borderRadius:0,width:[40,40,50,50],height:[40,40,50,50],color:st,backgroundColor:tt}},consentCookie:{borders:0,borderRadius:0,width:[50,50,75,75],backgroundColor:tt,overlayBlur:0,overlayOpacity:.5,overlayBackgroundColor:st,paddingTop:[15,30,50,100],paddingLeft:[15,30,50,100],paddingRight:[15,30,50,100],paddingBottom:[15,30,50,100],actionsGap:30,actionsPaddingTop:[15,100,100,100]},nav:{gap:[15,15,15,15]},navSocial:{gap:[15,15,15,15]},navLegal:{gap:[15,15,15,15]}},Un=({children:t,styles:e={},staticColor:n="",isPending:i=!1,isDisabled:r=!1,type:o=ui.Button,style:s=en.Fill,size:a=ve.Medium,onClick:l=void 0,theme:c=_,variant:u=tn.Primary})=>E(xl,{type:o,theme:c,onClick:l,staticColor:n,isLarge:a===ve.Large,isSmall:a===ve.Small,styles:e,isDisabled:r||i,isOutlined:s===en.Outline,isSecondary:u===tn.Secondary,children:t});var ie=(t=>(t[t.Center=0]="Center",t[t.Left=1]="Left",t[t.Right=2]="Right",t))(ie||{});const wl=L.div(({align:t,styles:e,theme:{actions:{gap:n,paddingTop:i}}})=>W({gap:n/2,width:"100%",display:"flex",flexWrap:"wrap",flexDirection:"row",paddingTop:i/2,alignItems:t===ie.Center?"center":"flex-start",justifyContent:t===ie.Right?"flex-end":t===ie.Left?"flex-start":"center",[P[2]]:{gap:n,paddingTop:i}},e)),Tl=({children:t,styles:e={},theme:n=_,align:i=ie.Left})=>E(wl,{theme:n,align:i,styles:e,children:t}),Cl={caret:"M8.12 9.29 12 13.17l3.88-3.88c.39-.39 1.02-.39 1.41 0 .39.39.39 1.02 0 1.41l-4.59 4.59c-.39.39-1.02.39-1.41 0L6.7 10.7a.9959.9959 0 0 1 0-1.41c.39-.38 1.03-.39 1.42 0",close:"M18.3 5.71a.996.996 0 0 0-1.41 0L12 10.59 7.11 5.7a.996.996 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41L10.59 12 5.7 16.89c-.39.39-.39 1.02 0 1.41s1.02.39 1.41 0L12 13.41l4.89 4.89c.39.39 1.02.39 1.41 0s.39-1.02 0-1.41L13.41 12l4.89-4.89c.38-.38.38-1.02 0-1.4",arrowBack:"M19 11H7.83l4.88-4.88c.39-.39.39-1.03 0-1.42a.996.996 0 0 0-1.41 0l-6.59 6.59c-.39.39-.39 1.02 0 1.41l6.59 6.59c.39.39 1.02.39 1.41 0s.39-1.02 0-1.41L7.83 13H19c.55 0 1-.45 1-1s-.45-1-1-1",arrowForward:"M5 13h11.17l-4.88 4.88c-.39.39-.39 1.03 0 1.42s1.02.39 1.41 0l6.59-6.59c.39-.39.39-1.02 0-1.41l-6.58-6.6a.996.996 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41L16.17 11H5c-.55 0-1 .45-1 1s.45 1 1 1",play:"M8 5v14l11-7z",pause:"M6 19h4V5H6zm8-14v14h4V5z",volumeMute:"M7 9v6h4l5 5V4l-5 5z",volumeUp:"M3 9v6h4l5 5V4L7 9zm13.5 3c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02M14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91 7-4.49 7-8.77s-2.99-7.86-7-8.77",socialFacebook:"M 22.2816,10.9924 C 22.2816,4.92145 17.3602,0 11.2892,0 5.21832,0 0.296875,4.92145 0.296875,10.9924 c 0,5.4865 4.019725,10.0342 9.274805,10.8588 V 14.1698 H 6.78065 V 10.9924 H 9.57168 V 8.57061 c 0,-2.75496 1.64112,-4.27672 4.15202,-4.27672 1.2023,0 2.4606,0.2147 2.4606,0.2147 v 2.70515 h -1.3861 c -1.3654,0 -1.7914,0.8474 -1.7914,1.71756 v 2.0611 h 3.0487 l -0.4874,3.1774 h -2.5613 v 7.6814 c 5.2551,-0.8246 9.2748,-5.3723 9.2748,-10.8588 z",socialInstagram:"M7.8 2h8.4C19.4 2 22 4.6 22 7.8v8.4a5.8 5.8 0 0 1-5.8 5.8H7.8C4.6 22 2 19.4 2 16.2V7.8A5.8 5.8 0 0 1 7.8 2m-.2 2A3.6 3.6 0 0 0 4 7.6v8.8C4 18.39 5.61 20 7.6 20h8.8a3.6 3.6 0 0 0 3.6-3.6V7.6C20 5.61 18.39 4 16.4 4H7.6m9.65 1.5a1.25 1.25 0 0 1 1.25 1.25A1.25 1.25 0 0 1 17.25 8 1.25 1.25 0 0 1 16 6.75a1.25 1.25 0 0 1 1.25-1.25M12 7a5 5 0 0 1 5 5 5 5 0 0 1-5 5 5 5 0 0 1-5-5 5 5 0 0 1 5-5m0 2a3 3 0 0 0-3 3 3 3 0 0 0 3 3 3 3 0 0 0 3-3 3 3 0 0 0-3-3z",socialPinterest:"M9.04 21.54c.96.29 1.93.46 2.96.46a10 10 0 0 0 10-10A10 10 0 0 0 12 2 10 10 0 0 0 2 12c0 4.25 2.67 7.9 6.44 9.34-.09-.78-.18-2.07 0-2.96l1.15-4.94s-.29-.58-.29-1.5c0-1.38.86-2.41 1.84-2.41.86 0 1.26.63 1.26 1.44 0 .86-.57 2.09-.86 3.27-.17.98.52 1.84 1.52 1.84 1.78 0 3.16-1.9 3.16-4.58 0-2.4-1.72-4.04-4.19-4.04-2.82 0-4.48 2.1-4.48 4.31 0 .86.28 1.73.74 2.3.09.06.09.14.06.29l-.29 1.09c0 .17-.11.23-.28.11-1.28-.56-2.02-2.38-2.02-3.85 0-3.16 2.24-6.03 6.56-6.03 3.44 0 6.12 2.47 6.12 5.75 0 3.44-2.13 6.2-5.18 6.2-.97 0-1.92-.52-2.26-1.13l-.67 2.37c-.23.86-.86 2.01-1.29 2.7v-.03z",socialLinkedIn:"M19 3a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14m-.5 15.5v-5.3a3.26 3.26 0 0 0-3.26-3.26c-.85 0-1.84.52-2.32 1.3v-1.11h-2.79v8.37h2.79v-4.93c0-.77.62-1.4 1.39-1.4a1.4 1.4 0 0 1 1.4 1.4v4.93h2.79M6.88 8.56a1.68 1.68 0 0 0 1.68-1.68c0-.93-.75-1.69-1.68-1.69a1.69 1.69 0 0 0-1.69 1.69c0 .93.76 1.68 1.69 1.68m1.39 9.94v-8.37H5.5v8.37h2.77z",socialSpotify:"",socialTiktok:"M21,2H3A1,1,0,0,0,2,3V21a1,1,0,0,0,1,1H21a1,1,0,0,0,1-1V3A1,1,0,0,0,21,2Zm-3.281,8.725h0c-.109.011-.219.016-.328.017A3.571,3.571,0,0,1,14.4,9.129v5.493a4.061,4.061,0,1,1-4.06-4.06c.085,0,.167.008.251.013v2a2.067,2.067,0,1,0-.251,4.119A2.123,2.123,0,0,0,12.5,14.649l.02-9.331h1.914A3.564,3.564,0,0,0,17.719,8.5Z",socialX:"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z",socialYoutube:"M10 15l5.19-3L10 9v6m11.56-7.83c.13.47.22 1.1.28 1.9.07.8.1 1.49.1 2.09L22 12c0 2.19-.16 3.8-.44 4.83-.25.9-.83 1.48-1.73 1.73-.47.13-1.33.22-2.65.28-1.3.07-2.49.1-3.59.1L12 19c-4.19 0-6.8-.16-7.83-.44-.9-.25-1.48-.83-1.73-1.73-.13-.47-.22-1.1-.28-1.9-.07-.8-.1-1.49-.1-2.09L2 12c0-2.19.16-3.8.44-4.83.25-.9.83-1.48 1.73-1.73.47-.13 1.33-.22 2.65-.28 1.3-.07 2.49-.1 3.59-.1L12 5c4.19 0 6.8.16 7.83.44.9.25 1.48.83 1.73 1.73z"},Pl=L.svg(({styles:t})=>W({margin:"0 auto",display:"inline-block",verticalAlign:"middle"},t)),Al=L.path(({fill:t})=>({fill:t,transition:"color .5s ease"})),Pt=({icon:t="",size:e=24,styles:n={},iconPath:i="",color:r=void 0,theme:o=_,viewBox:s="0 0 24 24"})=>E(Pl,{viewBox:s,width:`${e}px`,height:`${e}px`,styles:n,children:E(Al,{d:i||Cl[t],fill:r||o.colors.defaultIcon})});var nn=(t=>(t[t.Center=0]="Center",t[t.Left=1]="Left",t[t.Right=2]="Right",t))(nn||{});const El=L.div(({theme:{modal:{overlayBlur:t,overlayOpacity:e,overlayBackgroundColor:n}},styles:i})=>W({zIndex:100,position:"fixed","&:before":{top:0,left:0,right:0,bottom:0,content:"''",position:"fixed",opacity:e,backgroundColor:n,backdropFilter:`blur(${t}px)`}},i)),Vl=L.div(({theme:{global:{paddingLeft:t,paddingRight:e},modal:{borders:n,width:i,borderRadius:r,backgroundColor:o,paddingTop:s,paddingLeft:a,paddingRight:l,paddingBottom:c}},align:u})=>({top:"50%",zIndex:20,left:"50%",borderRadius:r,border:n,display:"flex",backgroundColor:o,width:i[0],position:"fixed",overflowY:"auto",flexDirection:"column",paddingTop:s[0],paddingLeft:a[0],paddingRight:l[0],paddingBottom:c[0],transform:"translate(-50%, -50%)",maxWidth:`calc(100% - ${t[0]+e[0]}px)`,maxHeight:`calc(100% - ${t[0]+e[0]}px)`,textAlign:u===nn.Left?"left":u===nn.Right?"right":"center",[P[0]]:{width:i[1],paddingTop:s[1],paddingLeft:a[1],paddingRight:l[1],paddingBottom:c[1],maxWidth:`calc(100% - ${t[1]+e[1]}px)`,maxHeight:`calc(100% - ${t[1]+e[1]}px)`},[P[1]]:{width:i[2],paddingTop:s[2],paddingLeft:a[2],paddingRight:l[2],paddingBottom:c[2],maxWidth:`calc(100% - ${t[2]+e[2]}px)`,maxHeight:`calc(100% - ${t[2]+e[2]}px)`},[P[2]]:{width:i[3],paddingTop:s[3],paddingLeft:a[3],paddingRight:l[3],paddingBottom:c[3],maxWidth:`calc(100% - ${t[3]+e[3]}px)`,maxHeight:`calc(100% - ${t[3]+e[3]}px)`}})),Rl=L.button({top:15,border:0,right:15,zIndex:20,cursor:"pointer",position:"absolute",backgroundColor:"transparent",transition:"all 0.5s ease-in-out","&:hover":{transform:"scale(1.2)"}}),Ml=({children:t,styles:e={},align:n=nn.Left,theme:i=_,onModalHide:r=void 0})=>E(El,{theme:i,styles:e,children:dt(Vl,{theme:i,align:n,children:[r&&E(Rl,{onClick:r,children:E(Pt,{theme:i,icon:"close"})}),t]})}),Dl=L.div(({styles:t,isVideoFullWidth:e})=>W({video:{top:"50%",left:"50%",width:"auto",minWidth:"100%",minHeight:"100%",position:"absolute",transform:"translate(-50%, -50%)",maxHeight:e?"100vw":"100%"}},t)),Ll=L.div(({isPlaying:t})=>({top:0,left:0,width:"100%",height:"100%",position:"absolute",opacity:t?0:1,pointerEvents:t?"none":"auto",img:{minWidth:"100%",minHeight:"100%",objectFit:"cover"}})),Ol=L.button(({theme:{header:{height:t},video:{closeButton:{border:e,width:n,height:i,borderRadius:r,color:o,backgroundColor:s}}}})=>({border:e,right:15,bottom:0,borderRadius:r,backgroundColor:s,width:n[0],height:i[0],cursor:"pointer",position:"absolute",top:t[0],[P[0]]:{width:n[1],height:i[1]},[P[1]]:{right:30,width:n[2],height:i[2],top:t[2]+15},[P[2]]:{width:n[3],height:i[3]},svg:{path:{fill:o}}})),kl=L.button(({isPlaying:t,theme:{video:{playButton:{border:e,width:n,height:i,borderRadius:r,color:o,backgroundColor:s}}}})=>({border:e,top:"50%",left:"50%",borderRadius:r,width:n[0],height:i[0],cursor:"pointer",position:"absolute",opacity:t?0:1,backgroundColor:s,transition:"all 0.5s ease-in-out",transform:"translate(-50%, -50%)",pointerEvents:t?"none":"auto",[P[0]]:{width:n[1],height:i[1]},[P[1]]:{width:n[2],height:i[2]},[P[2]]:{width:n[3],height:i[3]},"&:hover":{svg:{transform:"scale(1.2)"}},svg:{transform:"scale(1)",transition:"all 0.5s ease-in-out",path:{fill:o}}})),Fl=L.button(({theme:{video:{pauseButton:{border:t,width:e,height:n,borderRadius:i,color:r,backgroundColor:o}}}})=>({border:t,right:50,bottom:-10,borderRadius:i,width:e[0],backgroundColor:o,height:n[0],cursor:"pointer",position:"absolute",transform:"translate(-50%, -50%)",[P[0]]:{width:e[1],height:n[1]},[P[1]]:{right:75,bottom:15,width:e[2],height:n[2]},[P[2]]:{width:e[3],height:n[3]},svg:{path:{fill:r}}})),Il=L.button(({theme:{video:{soundButton:{width:t,height:e,border:n,color:i,borderRadius:r,backgroundColor:o}}}})=>({border:n,right:0,bottom:-10,borderRadius:r,backgroundColor:o,width:t[0],height:e[0],cursor:"pointer",position:"absolute",transform:"translate(-50%, -50%)",[P[0]]:{width:t[1],height:e[1]},[P[1]]:{right:15,bottom:15,width:t[2],height:e[2]},[P[0]]:{width:t[3],height:e[3]},svg:{path:{fill:i}}})),$s=({video:t,isAutoPlay:e,styles:n={},poster:i="",startMuted:r=!1,onPlay:o=void 0,onClose:s=void 0,onEnded:a=void 0,showControls:l=!1,theme:c=_,hidePlayButton:u=!1,isVideoFullWidth:f=!1,isPlayingFullScreen:d=!1})=>{const h=A.useRef(null),[p,g]=A.useState(!1),[S,v]=A.useState(e||r),w=()=>{var y;o&&o(),(y=h.current)==null||y.play(),g(!0)},T=()=>{var y;s&&s(),(y=h.current)==null||y.pause(),g(!1)},V=()=>{var y;(y=h.current)==null||y.pause(),g(!1)},m=()=>{const y=!S;v(y),h.current&&(h.current.muted=y)},R=()=>{a&&a(),T()},D=y=>{y.key==="Escape"&&T()};return A.useEffect(()=>(window.addEventListener("keydown",D),()=>{window.removeEventListener("keydown",D)}),[h.current]),dt(Dl,{isVideoFullWidth:f,styles:n,children:[E("video",{ref:h,playsInline:!0,onEnded:R,children:E("source",{src:t,type:"video/mp4"})}),i&&E(Ll,{isPlaying:p,children:E("img",{src:i,alt:"",sizes:"2560"})}),(!u||!e)&&E(kl,{theme:c,isPlaying:p,onClick:w,"aria-label":"Play",children:E(Pt,{icon:"play",size:50,theme:c})}),d&&E(Ol,{theme:c,isPlaying:p,onClick:T,"aria-label":"Pause",children:E(Pt,{icon:"close",size:28,theme:c})}),p&&l&&E(Fl,{theme:c,isPlaying:p,"aria-label":"Pause",onClick:p?V:w,children:E(Pt,{icon:"pause",size:28,theme:c})}),l&&E(Il,{theme:c,isMuted:r,onClick:m,"aria-label":"Sound",children:E(Pt,{icon:S?"volumeUp":"volumeMute",size:28,theme:c})})]})},Bl=L.div(({styles:t})=>W({img:{width:"100%",height:"auto",maxWidth:"100%"}},t)),$l=({children:t,styles:e={},theme:n=_})=>E(Bl,{theme:n,styles:e,children:t}),jl=L.div(({styles:t,isFullWidth:e,theme:{global:{paddingLeft:n,paddingRight:i}}})=>W({overflow:"hidden",position:"relative",width:e?"100vw":"100%",marginLeft:e?`min(calc((100vw - var(--max-width)) / -2), -${n[0]}px)`:0,marginRight:e?`min(calc((100vw - var(--max-width)) / -2), -${i[0]}px)`:0,[P[0]]:{marginLeft:e?`min(calc((100vw - var(--max-width)) / -2), -${n[1]}px)`:0,marginRight:e?`min(calc((100vw - var(--max-width)) / -2), -${i[1]}px)`:0},[P[1]]:{marginLeft:e?`min(calc((100vw - var(--max-width)) / -2), -${n[2]}px)`:0,marginRight:e?`min(calc((100vw - var(--max-width)) / -2), -${i[2]}px)`:0},[P[2]]:{marginLeft:e?`min(calc((100vw - var(--max-width)) / -2), -${n[3]}px)`:0,marginRight:e?`min(calc((100vw - var(--max-width)) / -2), -${i[3]}px)`:0}},t)),_l=L.div({width:"100%",position:"relative"}),Nl=L.div(({left:t,width:e,gap:n})=>({gap:n,left:t,width:e,display:"flex",position:"relative",transition:"all 0.3s ease-in-out"})),Ul=L.div({width:"100%",display:"flex",position:"relative",alignItems:"stretch"}),zl=L.div({right:0,left:0,zIndex:30,bottom:"0%",width:"100%",display:"flex",pointerEvents:"none",maxWidth:"var(--max-width)",position:"absolute",justifyContent:"flex-end"}),rr=L.button(({isDisabled:t})=>({border:0,display:"block",position:"relative",pointerEvents:"auto",opacity:t?.5:1,transition:"all 0.5s ease-in-out",cursor:t?"default":"pointer","&:hover":{transform:t?"scale(1)":"scale(1.1)"}})),Wl=L.div({gap:15,border:0,marginTop:30,display:"flex",alignItems:"center",justifyContent:"center",[P[1]]:{marginTop:60}}),Gl=L.div(({isActive:t,theme:{carousel:{bullet:{borderRadius:e,width:n,height:i,backgroundColor:r}}}})=>({borderRadius:e,backgroundColor:r,width:n[0],height:i[0],cursor:"pointer",opacity:t?1:.5,transition:"all 0.5s ease-in-out",pointerEvents:t?"none":"auto",[P[0]]:{width:n[1],height:i[1]},[P[1]]:{width:n[2],height:i[2]},[P[2]]:{width:n[3],height:i[3]},"&:hover":{transform:"scale(1.2)"}}));function Kl(){const[t,e]=A.useState({width:void 0,height:void 0});return A.useEffect(()=>{function n(){e({width:window.innerWidth,height:window.innerHeight})}return window.addEventListener("resize",n),n(),()=>window.removeEventListener("resize",n)},[]),t}const Hl=({data:t,styles:e={},displayItem:n=1,theme:i=_,isFullWidth:r=!1,displayNavBullets:o=!1,displayNavButtons:s=!1})=>{const{width:a}=Kl(),[l,c]=A.useState(0),[u,f]=A.useState(i.carousel.gap[0]),d=a!==void 0&&a>Nn[1],h=a!==void 0&&a>Nn[2],[p,g]=A.useState(0),[S,v]=A.useState(0),[w,T]=A.useState(0),[V,m]=A.useState(n),R=A.useRef(null),D=A.useRef(null),y=A.useRef(null),b=(x,C)=>{C<x&&-(C-x)>100&&c(k=>k!==t.length-1*V?k+1:t.length-1),C>x&&C-x>100&&c(k=>k!==0?k-1:0)};return A.useEffect(()=>{if(h){n!==1&&f(i.carousel.gap[3]),m(n);return}if(d){if(f(i.carousel.gap[2]),n===1){f(0),m(1);return}if(n===2){m(2);return}if(n===3){m(2);return}m(n/2);return}f(0),m(1)},[d,h,n]),A.useEffect(()=>{const x=R.current;return x&&g(x.getBoundingClientRect().width),window.addEventListener("resize",()=>g(x.getBoundingClientRect().width)),()=>window.removeEventListener("resize",()=>g(x.getBoundingClientRect().width))},[]),A.useEffect(()=>{var X,Z;let x=0,C=0;const k=z=>{x=z.changedTouches[0].screenX},G=z=>{C=z.changedTouches[0].screenX,b(x,C)};(X=R.current)==null||X.addEventListener("touchstart",z=>k(z),{passive:!0}),(Z=R.current)==null||Z.addEventListener("touchend",z=>G(z),{passive:!0})},[]),A.useEffect(()=>{const C=(V-1)*u;y.current&&T((p-C)/V)},[V,p,u]),A.useEffect(()=>{const C=(t.length-1)*u;v(w*t.length+C)},[t,w,v,u]),dt(jl,{ref:R,theme:i,styles:e,isFullWidth:r,children:[E(_l,{children:E(Nl,{ref:D,width:S,gap:V===1?0:u,left:-l*w-l*u,children:t.map((x,C)=>E(Ul,{ref:y,children:x},`children-${C}`))})}),s&&dt(zl,{children:[E(rr,{"aria-label":"Previous",disabled:l===0,isDisabled:l===0,onClick:()=>c(x=>x-1),children:E(Pt,{theme:i,icon:"arrowBack",size:30})}),E(rr,{"aria-label":"Next",onClick:()=>c(x=>x+1),disabled:l===t.length-1*V,isDisabled:l===t.length-1*V,children:E(Pt,{theme:i,icon:"arrowForward",size:30})})]}),o&&E(Wl,{children:[...Array(t.length+1-V||1)].map((x,C)=>E(Gl,{theme:i,isActive:C===l,onClick:()=>c(C)},`carousselItem-${C}`))})]})};var pe={},rn=function(){return rn=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},rn.apply(this,arguments)},Yl=function(){function t(e,n,i){var r=this;this.endVal=n,this.options=i,this.version="2.8.0",this.defaults={startVal:0,decimalPlaces:0,duration:2,useEasing:!0,useGrouping:!0,useIndianSeparators:!1,smartEasingThreshold:999,smartEasingAmount:333,separator:",",decimal:".",prefix:"",suffix:"",enableScrollSpy:!1,scrollSpyDelay:200,scrollSpyOnce:!1},this.finalEndVal=null,this.useEasing=!0,this.countDown=!1,this.error="",this.startVal=0,this.paused=!0,this.once=!1,this.count=function(o){r.startTime||(r.startTime=o);var s=o-r.startTime;r.remaining=r.duration-s,r.useEasing?r.countDown?r.frameVal=r.startVal-r.easingFn(s,0,r.startVal-r.endVal,r.duration):r.frameVal=r.easingFn(s,r.startVal,r.endVal-r.startVal,r.duration):r.frameVal=r.startVal+(r.endVal-r.startVal)*(s/r.duration);var a=r.countDown?r.frameVal<r.endVal:r.frameVal>r.endVal;r.frameVal=a?r.endVal:r.frameVal,r.frameVal=Number(r.frameVal.toFixed(r.options.decimalPlaces)),r.printValue(r.frameVal),s<r.duration?r.rAF=requestAnimationFrame(r.count):r.finalEndVal!==null?r.update(r.finalEndVal):r.options.onCompleteCallback&&r.options.onCompleteCallback()},this.formatNumber=function(o){var s,a,l,c,u=o<0?"-":"";s=Math.abs(o).toFixed(r.options.decimalPlaces);var f=(s+="").split(".");if(a=f[0],l=f.length>1?r.options.decimal+f[1]:"",r.options.useGrouping){c="";for(var d=3,h=0,p=0,g=a.length;p<g;++p)r.options.useIndianSeparators&&p===4&&(d=2,h=1),p!==0&&h%d==0&&(c=r.options.separator+c),h++,c=a[g-p-1]+c;a=c}return r.options.numerals&&r.options.numerals.length&&(a=a.replace(/[0-9]/g,function(S){return r.options.numerals[+S]}),l=l.replace(/[0-9]/g,function(S){return r.options.numerals[+S]})),u+r.options.prefix+a+l+r.options.suffix},this.easeOutExpo=function(o,s,a,l){return a*(1-Math.pow(2,-10*o/l))*1024/1023+s},this.options=rn(rn({},this.defaults),i),this.formattingFn=this.options.formattingFn?this.options.formattingFn:this.formatNumber,this.easingFn=this.options.easingFn?this.options.easingFn:this.easeOutExpo,this.startVal=this.validateValue(this.options.startVal),this.frameVal=this.startVal,this.endVal=this.validateValue(n),this.options.decimalPlaces=Math.max(this.options.decimalPlaces),this.resetDuration(),this.options.separator=String(this.options.separator),this.useEasing=this.options.useEasing,this.options.separator===""&&(this.options.useGrouping=!1),this.el=typeof e=="string"?document.getElementById(e):e,this.el?this.printValue(this.startVal):this.error="[CountUp] target is null or undefined",typeof window<"u"&&this.options.enableScrollSpy&&(this.error?console.error(this.error,e):(window.onScrollFns=window.onScrollFns||[],window.onScrollFns.push(function(){return r.handleScroll(r)}),window.onscroll=function(){window.onScrollFns.forEach(function(o){return o()})},this.handleScroll(this)))}return t.prototype.handleScroll=function(e){if(e&&window&&!e.once){var n=window.innerHeight+window.scrollY,i=e.el.getBoundingClientRect(),r=i.top+window.pageYOffset,o=i.top+i.height+window.pageYOffset;o<n&&o>window.scrollY&&e.paused?(e.paused=!1,setTimeout(function(){return e.start()},e.options.scrollSpyDelay),e.options.scrollSpyOnce&&(e.once=!0)):(window.scrollY>o||r>n)&&!e.paused&&e.reset()}},t.prototype.determineDirectionAndSmartEasing=function(){var e=this.finalEndVal?this.finalEndVal:this.endVal;this.countDown=this.startVal>e;var n=e-this.startVal;if(Math.abs(n)>this.options.smartEasingThreshold&&this.options.useEasing){this.finalEndVal=e;var i=this.countDown?1:-1;this.endVal=e+i*this.options.smartEasingAmount,this.duration=this.duration/2}else this.endVal=e,this.finalEndVal=null;this.finalEndVal!==null?this.useEasing=!1:this.useEasing=this.options.useEasing},t.prototype.start=function(e){this.error||(this.options.onStartCallback&&this.options.onStartCallback(),e&&(this.options.onCompleteCallback=e),this.duration>0?(this.determineDirectionAndSmartEasing(),this.paused=!1,this.rAF=requestAnimationFrame(this.count)):this.printValue(this.endVal))},t.prototype.pauseResume=function(){this.paused?(this.startTime=null,this.duration=this.remaining,this.startVal=this.frameVal,this.determineDirectionAndSmartEasing(),this.rAF=requestAnimationFrame(this.count)):cancelAnimationFrame(this.rAF),this.paused=!this.paused},t.prototype.reset=function(){cancelAnimationFrame(this.rAF),this.paused=!0,this.resetDuration(),this.startVal=this.validateValue(this.options.startVal),this.frameVal=this.startVal,this.printValue(this.startVal)},t.prototype.update=function(e){cancelAnimationFrame(this.rAF),this.startTime=null,this.endVal=this.validateValue(e),this.endVal!==this.frameVal&&(this.startVal=this.frameVal,this.finalEndVal==null&&this.resetDuration(),this.finalEndVal=null,this.determineDirectionAndSmartEasing(),this.rAF=requestAnimationFrame(this.count))},t.prototype.printValue=function(e){var n;if(this.el){var i=this.formattingFn(e);!((n=this.options.plugin)===null||n===void 0)&&n.render?this.options.plugin.render(this.el,i):this.el.tagName==="INPUT"?this.el.value=i:this.el.tagName==="text"||this.el.tagName==="tspan"?this.el.textContent=i:this.el.innerHTML=i}},t.prototype.ensureNumber=function(e){return typeof e=="number"&&!isNaN(e)},t.prototype.validateValue=function(e){var n=Number(e);return this.ensureNumber(n)?n:(this.error="[CountUp] invalid start or end value: ".concat(e),null)},t.prototype.resetDuration=function(){this.startTime=null,this.duration=1e3*Number(this.options.duration),this.remaining=this.duration},t}();const ql=Object.freeze(Object.defineProperty({__proto__:null,CountUp:Yl},Symbol.toStringTag,{value:"Module"})),Xl=Za(ql);var sr;function Zl(){if(sr)return pe;sr=1,Object.defineProperty(pe,"__esModule",{value:!0});var t=A,e=Xl;function n(y,b){var x=y==null?null:typeof Symbol<"u"&&y[Symbol.iterator]||y["@@iterator"];if(x!=null){var C,k,G,X,Z=[],z=!0,F=!1;try{if(G=(x=x.call(y)).next,b!==0)for(;!(z=(C=G.call(x)).done)&&(Z.push(C.value),Z.length!==b);z=!0);}catch(N){F=!0,k=N}finally{try{if(!z&&x.return!=null&&(X=x.return(),Object(X)!==X))return}finally{if(F)throw k}}return Z}}function i(y,b){var x=Object.keys(y);if(Object.getOwnPropertySymbols){var C=Object.getOwnPropertySymbols(y);b&&(C=C.filter(function(k){return Object.getOwnPropertyDescriptor(y,k).enumerable})),x.push.apply(x,C)}return x}function r(y){for(var b=1;b<arguments.length;b++){var x=arguments[b]!=null?arguments[b]:{};b%2?i(Object(x),!0).forEach(function(C){a(y,C,x[C])}):Object.getOwnPropertyDescriptors?Object.defineProperties(y,Object.getOwnPropertyDescriptors(x)):i(Object(x)).forEach(function(C){Object.defineProperty(y,C,Object.getOwnPropertyDescriptor(x,C))})}return y}function o(y,b){if(typeof y!="object"||!y)return y;var x=y[Symbol.toPrimitive];if(x!==void 0){var C=x.call(y,b||"default");if(typeof C!="object")return C;throw new TypeError("@@toPrimitive must return a primitive value.")}return(b==="string"?String:Number)(y)}function s(y){var b=o(y,"string");return typeof b=="symbol"?b:String(b)}function a(y,b,x){return b=s(b),b in y?Object.defineProperty(y,b,{value:x,enumerable:!0,configurable:!0,writable:!0}):y[b]=x,y}function l(){return l=Object.assign?Object.assign.bind():function(y){for(var b=1;b<arguments.length;b++){var x=arguments[b];for(var C in x)Object.prototype.hasOwnProperty.call(x,C)&&(y[C]=x[C])}return y},l.apply(this,arguments)}function c(y,b){if(y==null)return{};var x={},C=Object.keys(y),k,G;for(G=0;G<C.length;G++)k=C[G],!(b.indexOf(k)>=0)&&(x[k]=y[k]);return x}function u(y,b){if(y==null)return{};var x=c(y,b),C,k;if(Object.getOwnPropertySymbols){var G=Object.getOwnPropertySymbols(y);for(k=0;k<G.length;k++)C=G[k],!(b.indexOf(C)>=0)&&Object.prototype.propertyIsEnumerable.call(y,C)&&(x[C]=y[C])}return x}function f(y,b){return d(y)||n(y,b)||h(y,b)||g()}function d(y){if(Array.isArray(y))return y}function h(y,b){if(y){if(typeof y=="string")return p(y,b);var x=Object.prototype.toString.call(y).slice(8,-1);if(x==="Object"&&y.constructor&&(x=y.constructor.name),x==="Map"||x==="Set")return Array.from(y);if(x==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(x))return p(y,b)}}function p(y,b){(b==null||b>y.length)&&(b=y.length);for(var x=0,C=new Array(b);x<b;x++)C[x]=y[x];return C}function g(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
16
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var S=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?t.useLayoutEffect:t.useEffect;function v(y){var b=t.useRef(y);return S(function(){b.current=y}),t.useCallback(function(){for(var x=arguments.length,C=new Array(x),k=0;k<x;k++)C[k]=arguments[k];return b.current.apply(void 0,C)},[])}var w=function(b,x){var C=x.decimal,k=x.decimals,G=x.duration,X=x.easingFn,Z=x.end,z=x.formattingFn,F=x.numerals,N=x.prefix,at=x.separator,rt=x.start,Ot=x.suffix,kt=x.useEasing,vt=x.useGrouping,mt=x.useIndianSeparators,Ft=x.enableScrollSpy,ht=x.scrollSpyDelay,It=x.scrollSpyOnce,xt=x.plugin;return new e.CountUp(b,Z,{startVal:rt,duration:G,decimal:C,decimalPlaces:k,easingFn:X,formattingFn:z,numerals:F,separator:at,prefix:N,suffix:Ot,plugin:xt,useEasing:kt,useIndianSeparators:mt,useGrouping:vt,enableScrollSpy:Ft,scrollSpyDelay:ht,scrollSpyOnce:It})},T=["ref","startOnMount","enableReinitialize","delay","onEnd","onStart","onPauseResume","onReset","onUpdate"],V={decimal:".",separator:",",delay:null,prefix:"",suffix:"",duration:2,start:0,decimals:0,startOnMount:!0,enableReinitialize:!0,useEasing:!0,useGrouping:!0,useIndianSeparators:!1},m=function(b){var x=Object.fromEntries(Object.entries(b).filter(function(lt){var wt=f(lt,2),zt=wt[1];return zt!==void 0})),C=t.useMemo(function(){return r(r({},V),x)},[b]),k=C.ref,G=C.startOnMount,X=C.enableReinitialize,Z=C.delay,z=C.onEnd,F=C.onStart,N=C.onPauseResume,at=C.onReset,rt=C.onUpdate,Ot=u(C,T),kt=t.useRef(),vt=t.useRef(),mt=t.useRef(!1),Ft=v(function(){return w(typeof k=="string"?k:k.current,Ot)}),ht=v(function(lt){var wt=kt.current;if(wt&&!lt)return wt;var zt=Ft();return kt.current=zt,zt}),It=v(function(){var lt=function(){return ht(!0).start(function(){z==null||z({pauseResume:xt,reset:bt,start:Ut,update:Nt})})};Z&&Z>0?vt.current=setTimeout(lt,Z*1e3):lt(),F==null||F({pauseResume:xt,reset:bt,update:Nt})}),xt=v(function(){ht().pauseResume(),N==null||N({reset:bt,start:Ut,update:Nt})}),bt=v(function(){ht().el&&(vt.current&&clearTimeout(vt.current),ht().reset(),at==null||at({pauseResume:xt,start:Ut,update:Nt}))}),Nt=v(function(lt){ht().update(lt),rt==null||rt({pauseResume:xt,reset:bt,start:Ut})}),Ut=v(function(){bt(),It()}),M=v(function(lt){G&&(lt&&bt(),It())});return t.useEffect(function(){mt.current?X&&M(!0):(mt.current=!0,M())},[X,mt,M,Z,b.start,b.suffix,b.prefix,b.duration,b.separator,b.decimals,b.decimal,b.formattingFn]),t.useEffect(function(){return function(){bt()}},[bt]),{start:Ut,pauseResume:xt,reset:bt,update:Nt,getCountUp:ht}},R=["className","redraw","containerProps","children","style"],D=function(b){var x=b.className,C=b.redraw,k=b.containerProps,G=b.children,X=b.style,Z=u(b,R),z=t.useRef(null),F=t.useRef(!1),N=m(r(r({},Z),{},{ref:z,startOnMount:typeof G!="function"||b.delay===0,enableReinitialize:!1})),at=N.start,rt=N.reset,Ot=N.update,kt=N.pauseResume,vt=N.getCountUp,mt=v(function(){at()}),Ft=v(function(xt){b.preserveValue||rt(),Ot(xt)}),ht=v(function(){if(typeof b.children=="function"&&!(z.current instanceof Element)){console.error(`Couldn't find attached element to hook the CountUp instance into! Try to attach "containerRef" from the render prop to a an Element, eg. <span ref={containerRef} />.`);return}vt()});t.useEffect(function(){ht()},[ht]),t.useEffect(function(){F.current&&Ft(b.end)},[b.end,Ft]);var It=C&&b;return t.useEffect(function(){C&&F.current&&mt()},[mt,C,It]),t.useEffect(function(){!C&&F.current&&mt()},[mt,C,b.start,b.suffix,b.prefix,b.duration,b.separator,b.decimals,b.decimal,b.className,b.formattingFn]),t.useEffect(function(){F.current=!0},[]),typeof G=="function"?G({countUpRef:z,start:at,reset:rt,update:Ot,pauseResume:kt,getCountUp:vt}):t.createElement("span",l({className:x,ref:z,style:X},k),typeof b.start<"u"?vt().formattingFn(b.start):"")};return pe.default=D,pe.useCountUp=m,pe}var Jl=Zl();const Ql=Xa(Jl);var zn=new Map,Ue=new WeakMap,or=0,tc=void 0;function ec(t){return t?(Ue.has(t)||(or+=1,Ue.set(t,or.toString())),Ue.get(t)):"0"}function nc(t){return Object.keys(t).sort().filter(e=>t[e]!==void 0).map(e=>`${e}_${e==="root"?ec(t.root):t[e]}`).toString()}function ic(t){const e=nc(t);let n=zn.get(e);if(!n){const i=new Map;let r;const o=new IntersectionObserver(s=>{s.forEach(a=>{var l;const c=a.isIntersecting&&r.some(u=>a.intersectionRatio>=u);t.trackVisibility&&typeof a.isVisible>"u"&&(a.isVisible=c),(l=i.get(a.target))==null||l.forEach(u=>{u(c,a)})})},t);r=o.thresholds||(Array.isArray(t.threshold)?t.threshold:[t.threshold||0]),n={id:e,observer:o,elements:i},zn.set(e,n)}return n}function rc(t,e,n={},i=tc){if(typeof window.IntersectionObserver>"u"&&i!==void 0){const l=t.getBoundingClientRect();return e(i,{isIntersecting:i,target:t,intersectionRatio:typeof n.threshold=="number"?n.threshold:0,time:0,boundingClientRect:l,intersectionRect:l,rootBounds:l}),()=>{}}const{id:r,observer:o,elements:s}=ic(n),a=s.get(t)||[];return s.has(t)||s.set(t,a),a.push(e),o.observe(t),function(){a.splice(a.indexOf(e),1),a.length===0&&(s.delete(t),o.unobserve(t)),s.size===0&&(o.disconnect(),zn.delete(r))}}function sc({threshold:t,delay:e,trackVisibility:n,rootMargin:i,root:r,triggerOnce:o,skip:s,initialInView:a,fallbackInView:l,onChange:c}={}){var u;const[f,d]=ct.useState(null),h=ct.useRef(c),[p,g]=ct.useState({inView:!!a,entry:void 0});h.current=c,ct.useEffect(()=>{if(s||!f)return;let T;return T=rc(f,(V,m)=>{g({inView:V,entry:m}),h.current&&h.current(V,m),m.isIntersecting&&o&&T&&(T(),T=void 0)},{root:r,rootMargin:i,threshold:t,trackVisibility:n,delay:e},l),()=>{T&&T()}},[Array.isArray(t)?t.toString():t,f,r,i,o,s,n,l,e]);const S=(u=p.entry)==null?void 0:u.target,v=ct.useRef(void 0);!f&&S&&!o&&!s&&v.current!==S&&(v.current=S,g({inView:!!a,entry:void 0}));const w=[d,p.inView,p.entry];return w.ref=w[0],w.inView=w[1],w.entry=w[2],w}const oc=L.div(({styles:t})=>W({display:"flex",flexDirection:"column"},t)),ac=L.div({fontSize:"1.2em",paddingBottom:15,[P[1]]:{paddingBottom:30},span:{fontSize:"2.5em",lineHeight:"1em"}}),lc=({label:t,suffix:e,keyNumber:n,styles:i={},theme:r=_})=>{const[o,s]=sc({threshold:.3,triggerOnce:!0});return dt(oc,{ref:o,theme:r,styles:i,children:[dt(ac,{children:[E("span",{children:E(Ql,{end:s?n:0,duration:8})}),e]}),E("p",{children:t})]})},cc=L.div(({styles:t,theme:{global:{maxWidth:e,paddingLeft:n,paddingRight:i}}})=>W({height:0,width:"100vw",overflow:"hidden",position:"relative",left:-n[0],right:-i[0],paddingBottom:"56.25%",[P[0]]:{left:`min(calc((100vw - ${e}px) / -2), -${n[1]}px)`,right:`min(calc((100vw - ${e}px) / -2), -${i[1]}px)`},[P[1]]:{left:`min(calc((100vw - ${e}px) / -2), -${n[2]}px)`,right:`min(calc((100vw - ${e}px) / -2), -${i[2]}px)`},[P[2]]:{left:`min(calc((100vw - ${e}px) / -2), -${n[3]}px)`,right:`min(calc((100vw - ${e}px) / -2), -${i[3]}px)`}},t)),uc=({video:t,poster:e,isAutoPlay:n,styles:i={},showControls:r,startMuted:o=!1,theme:s=_})=>E(cc,{theme:s,styles:i,children:E($s,{isVideoFullWidth:!0,video:t,theme:s,poster:e,isAutoPlay:n,startMuted:o,showControls:r})}),fc=L.div(({styles:t,theme:{languageSwitcher:{width:e}}})=>W({width:e[0],marginLeft:"auto",marginRight:"auto",position:"relative",[P[0]]:{width:e[1]},[P[1]]:{width:e[2]},[P[2]]:{width:e[3]}},t)),dc=L.div({right:30,top:"50%",position:"absolute",transform:"translate(0%, -50%)"}),hc=L.select(({theme:{global:{defaultFont:t},languageSwitcher:{color:e,border:n,borderRadius:i,backgroundColor:r,paddingTop:o,paddingLeft:s,paddingRight:a,paddingBottom:l}}})=>({color:e,border:n,width:"100%",backgroundColor:r,appearance:"none",padding:"15px 30px",borderRadius:i,fontFamily:`var(--font-${t})`,paddingTop:o[0],paddingLeft:s[0],paddingRight:a[0],paddingBottom:l[0],[P[0]]:{paddingTop:o[1],paddingLeft:s[1],paddingRight:a[1],paddingBottom:l[1]},[P[1]]:{paddingTop:o[2],paddingLeft:s[2],paddingRight:a[2],paddingBottom:l[2]},[P[2]]:{paddingTop:o[3],paddingLeft:s[3],paddingRight:a[3],paddingBottom:l[3]},"&:focus":{outline:"none"}})),pc=({currentLocale:t,handleChange:e,locales:n,styles:i={},theme:r=_,translations:o})=>dt(fc,{theme:r,styles:i,children:[E(dc,{children:E(Pt,{theme:r,icon:"caret"})}),E(hc,{theme:r,value:t,onChange:e,"aria-label":"Switch Language",children:n.map((s,a)=>E("option",{value:s,disabled:s===t,children:o[s]},`locale-${a}`))})]}),mc=L.main(({styles:t,theme:{main:{backgroundColor:e,minHeight:n}}})=>W({display:"flex",backgroundColor:e,flex:"1 1 auto",minHeight:"45vh",textAlign:"center",alignItems:"center",flexDirection:"column",justifyContent:"center",[P[1]]:{minHeight:n}},t)),gc=({children:t,styles:e={},theme:n=_})=>E(mc,{styles:e,theme:n,children:t}),yc=L.div(({isOpen:t,theme:{header:{overlayGap:e,overlayBackgroundColor:n}}})=>({top:0,left:0,zIndex:40,gap:e[0],width:"100vw",display:"flex",backgroundColor:n,height:"100vh",position:"fixed",overflow:"hidden",textAlign:"center",alignItems:"center",flexDirection:"column",transformOrigin:"0% 0%",justifyContent:"center",bottom:t?"-100vh":"100%",transform:t?"translate(0, 0)":"translate(0, -100%)",transition:"transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0)",[P[0]]:{gap:e[1]},[P[1]]:{gap:e[2]},[P[2]]:{gap:e[3]}})),vc=({isOpen:t,theme:e=_,children:n})=>(A.useEffect(()=>{document.getElementsByTagName("html")[0].style.overflow="",t&&(document.getElementsByTagName("html")[0].style.overflow="hidden")},[t]),E(yc,{isOpen:t,theme:e,children:n})),xc=L.header(({styles:t,isFixed:e,theme:{global:{paddingLeft:n,paddingRight:i},header:{height:r,gap:o,backgroundColor:s,paddingTop:a,paddingBottom:l}}})=>W({zIndex:30,gap:o[0],width:"100%",display:"flex",backgroundColor:s,height:r[0],alignItems:"center",paddingTop:a[0],paddingLeft:n[0],paddingRight:i[0],paddingBottom:l[0],justifyContent:"space-between",position:e?"fixed":"relative",[P[0]]:{gap:o[1],height:r[1],paddingTop:a[1],paddingLeft:n[1],paddingRight:i[1],paddingBottom:l[1]},[P[1]]:{gap:o[2],height:r[2],paddingTop:a[2],paddingLeft:n[2],paddingRight:i[2],paddingBottom:l[2]},[P[2]]:{gap:o[3],height:r[3],paddingTop:a[3],paddingLeft:n[3],paddingRight:i[3],paddingBottom:l[3]},a:{transition:"all 0.5s ease-in-out","&:hover":{opacity:.5}}},t)),bc=L.div(({theme:{header:{height:t}}})=>({height:t[0],[P[0]]:{height:t[1]},[P[1]]:{height:t[2]},[P[2]]:{height:t[3]}})),Sc=L.button(({displayOnDesktop:t})=>({border:0,width:25,height:12,zIndex:60,marginLeft:0,cursor:"pointer",position:"relative",[P[1]]:{display:t?"block":"none"}})),ar=L.span(({isNavOpen:t,theme:{header:{toggleNavColor:e,toggleNavOpenColor:n,toggleNavBorderRadius:i}}})=>({height:2,width:25,borderRadius:i,marginBottom:8,display:"block",position:"relative",transformOrigin:"center center",transition:"all 0.5s ease-in-out",background:t?n:e,"&:nth-of-type(1)":{transform:t?"rotate(45deg) translate(4px, 3px)":"none"},"&:nth-of-type(2)":{transform:t?"rotate(-45deg) translate(4px, -3px)":"none"}})),wc=({onToggleNav:t,theme:e=_,isNavOpen:n=!1,displayOnDesktop:i})=>dt(Sc,{onClick:()=>{window.scrollTo({top:0,behavior:"smooth"}),t()},"aria-label":"Toggle nav",displayOnDesktop:i,children:[E(ar,{theme:e,isNavOpen:n}),E(ar,{theme:e,isNavOpen:n})]}),Tc=({children:t,styles:e={},isFixed:n=!1,childrenOverlay:i,theme:r=_,hideToggleNav:o=!1,displayToggleNavOnDesktop:s=!1})=>{const[a,l]=A.useState(!1);return dt(vl,{children:[dt(xc,{theme:r,styles:e,isFixed:n,children:[i&&E(vc,{theme:r,isOpen:a,children:i}),t,!o&&E(wc,{theme:r,isNavOpen:a,onToggleNav:()=>l(!a),displayOnDesktop:s})]}),n&&E(bc,{theme:r})]})},Cc=L.footer(({styles:t,theme:{global:{paddingLeft:e,paddingRight:n},footer:{gap:i,backgroundColor:r,paddingTop:o,paddingBottom:s}}})=>W({zIndex:20,gap:i[0],backgroundColor:r,display:"flex",fontSize:"0.8em",alignItems:"center",flexDirection:"column",paddingTop:o[0],paddingLeft:e[0],paddingRight:n[0],paddingBottom:s[0],justifyContent:"space-between",[P[0]]:{gap:i[1],paddingTop:o[1],paddingLeft:e[1],paddingRight:n[1],paddingBottom:s[1]},[P[1]]:{gap:i[2],flexDirection:"row",paddingTop:o[2],paddingLeft:e[2],paddingRight:n[2],paddingBottom:s[2]},[P[2]]:{gap:i[3],paddingTop:o[3],paddingLeft:e[3],paddingRight:n[3],paddingBottom:s[3]},a:{transition:"all 0.5s ease-in-out","&:hover":{opacity:.5}}},t)),Pc=({children:t,styles:e={},theme:n=_})=>E(Cc,{theme:n,styles:e,children:t});var re=(t=>(t[t.Center=0]="Center",t[t.Left=1]="Left",t[t.Right=2]="Right",t))(re||{});const Ac=L.div(({theme:t,styles:e,align:n,columns:i,isCentered:r,isInverted:o})=>{const s={width:"100%",display:"flex",flexWrap:"wrap",flexDirection:"column",alignItems:"flex-start",gap:t.columns.gap/2,justifyContent:"space-between",textAlign:n===re.Center?"center":"left",[P[1]]:{gap:t.columns.gap,alignItems:r?"center":"stretch",flexDirection:o?"row-reverse":"row",justifyContent:n===re.Right?"flex-end":n===re.Center?"center":"flex-start"},[P[2]]:{gap:t.columns.gap*2}},a=i.map((l,c)=>({[`>:nth-of-type(${c+1})`]:{minWidth:"100%",position:"relative","&:empty":{marginTop:-t.columns.gap/2,[P[1]]:{marginTop:0}},[P[1]]:{flex:l,minWidth:"auto",maxWidth:`${l}%`}}}));return W(Object.assign(s,...a),e)}),Ec=({columns:t,children:e,styles:n={},align:i=re.Left,isCentered:r=!1,isInverted:o=!1,theme:s=_})=>E(Ac,{align:i,theme:s,columns:t,isCentered:r,isInverted:o,styles:n,children:e}),js=A.createContext({});function _s(t){const e=A.useRef(null);return e.current===null&&(e.current=t()),e.current}const fi=A.createContext(null),Ns=A.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});function Vc(t=!0){const e=A.useContext(fi);if(e===null)return[!0,null];const{isPresent:n,onExitComplete:i,register:r}=e,o=A.useId();A.useEffect(()=>{if(t)return r(o)},[t]);const s=A.useCallback(()=>t&&i&&i(o),[o,i,t]);return!n&&i?[!1,s]:[!0]}const di=typeof window<"u",Us=di?A.useLayoutEffect:A.useEffect,ut=t=>t;let ue=ut,Mt=ut;process.env.NODE_ENV!=="production"&&(ue=(t,e)=>{!t&&typeof console<"u"&&console.warn(e)},Mt=(t,e)=>{if(!t)throw new Error(e)});function hi(t){let e;return()=>(e===void 0&&(e=t()),e)}const oe=(t,e,n)=>{const i=e-t;return i===0?1:(n-t)/i},Et=t=>t*1e3,Dt=t=>t/1e3,Rc={skipAnimations:!1,useManualTiming:!1},ze=["read","resolveKeyframes","update","preRender","render","postRender"];function Mc(t,e){let n=new Set,i=new Set,r=!1,o=!1;const s=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function l(u){s.has(u)&&(c.schedule(u),t()),u(a)}const c={schedule:(u,f=!1,d=!1)=>{const p=d&&r?n:i;return f&&s.add(u),p.has(u)||p.add(u),u},cancel:u=>{i.delete(u),s.delete(u)},process:u=>{if(a=u,r){o=!0;return}r=!0,[n,i]=[i,n],n.forEach(l),n.clear(),r=!1,o&&(o=!1,c.process(u))}};return c}const Dc=40;function zs(t,e){let n=!1,i=!0;const r={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,s=ze.reduce((v,w)=>(v[w]=Mc(o),v),{}),{read:a,resolveKeyframes:l,update:c,preRender:u,render:f,postRender:d}=s,h=()=>{const v=performance.now();n=!1,r.delta=i?1e3/60:Math.max(Math.min(v-r.timestamp,Dc),1),r.timestamp=v,r.isProcessing=!0,a.process(r),l.process(r),c.process(r),u.process(r),f.process(r),d.process(r),r.isProcessing=!1,n&&e&&(i=!1,t(h))},p=()=>{n=!0,i=!0,r.isProcessing||t(h)};return{schedule:ze.reduce((v,w)=>{const T=s[w];return v[w]=(V,m=!1,R=!1)=>(n||p(),T.schedule(V,m,R)),v},{}),cancel:v=>{for(let w=0;w<ze.length;w++)s[ze[w]].cancel(v)},state:r,steps:s}}const{schedule:U,cancel:$t,state:J,steps:An}=zs(typeof requestAnimationFrame<"u"?requestAnimationFrame:ut,!0),Ws=A.createContext({strict:!1}),lr={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},ae={};for(const t in lr)ae[t]={isEnabled:e=>lr[t].some(n=>!!e[n])};function Lc(t){for(const e in t)ae[e]={...ae[e],...t[e]}}const Oc=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 sn(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||Oc.has(t)}let Gs=t=>!sn(t);function kc(t){t&&(Gs=e=>e.startsWith("on")?!sn(e):t(e))}try{kc(require("@emotion/is-prop-valid").default)}catch{}function Fc(t,e,n){const i={};for(const r in t)r==="values"&&typeof t.values=="object"||(Gs(r)||n===!0&&sn(r)||!e&&!sn(r)||t.draggable&&r.startsWith("onDrag"))&&(i[r]=t[r]);return i}const cr=new Set;function mn(t,e,n){t||cr.has(e)||(console.warn(e),cr.add(e))}function Ic(t){if(typeof Proxy>"u")return t;const e=new Map,n=(...i)=>(process.env.NODE_ENV!=="production"&&mn(!1,"motion() is deprecated. Use motion.create() instead."),t(...i));return new Proxy(n,{get:(i,r)=>r==="create"?t:(e.has(r)||e.set(r,t(r)),e.get(r))})}const gn=A.createContext({});function yn(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}function Ee(t){return typeof t=="string"||Array.isArray(t)}const pi=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],mi=["initial",...pi];function vn(t){return yn(t.animate)||mi.some(e=>Ee(t[e]))}function Ks(t){return!!(vn(t)||t.variants)}function Bc(t,e){if(vn(t)){const{initial:n,animate:i}=t;return{initial:n===!1||Ee(n)?n:void 0,animate:Ee(i)?i:void 0}}return t.inherit!==!1?e:{}}function $c(t){const{initial:e,animate:n}=Bc(t,A.useContext(gn));return A.useMemo(()=>({initial:e,animate:n}),[ur(e),ur(n)])}function ur(t){return Array.isArray(t)?t.join(" "):t}const jc=Symbol.for("motionComponentSymbol");function qt(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function _c(t,e,n){return A.useCallback(i=>{i&&t.onMount&&t.onMount(i),e&&(i?e.mount(i):e.unmount()),n&&(typeof n=="function"?n(i):qt(n)&&(n.current=i))},[e])}const gi=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Nc="framerAppearId",Hs="data-"+gi(Nc),{schedule:yi,cancel:Op}=zs(queueMicrotask,!1),Ys=A.createContext({});function Uc(t,e,n,i,r){var o,s;const{visualElement:a}=A.useContext(gn),l=A.useContext(Ws),c=A.useContext(fi),u=A.useContext(Ns).reducedMotion,f=A.useRef(null);i=i||l.renderer,!f.current&&i&&(f.current=i(t,{visualState:e,parent:a,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:u}));const d=f.current,h=A.useContext(Ys);d&&!d.projection&&r&&(d.type==="html"||d.type==="svg")&&zc(f.current,n,r,h);const p=A.useRef(!1);A.useInsertionEffect(()=>{d&&p.current&&d.update(n,c)});const g=n[Hs],S=A.useRef(!!g&&!(!((o=window.MotionHandoffIsComplete)===null||o===void 0)&&o.call(window,g))&&((s=window.MotionHasOptimisedAnimation)===null||s===void 0?void 0:s.call(window,g)));return Us(()=>{d&&(p.current=!0,window.MotionIsMounted=!0,d.updateFeatures(),yi.render(d.render),S.current&&d.animationState&&d.animationState.animateChanges())}),A.useEffect(()=>{d&&(!S.current&&d.animationState&&d.animationState.animateChanges(),S.current&&(queueMicrotask(()=>{var v;(v=window.MotionHandoffMarkAsComplete)===null||v===void 0||v.call(window,g)}),S.current=!1))}),d}function zc(t,e,n,i){const{layoutId:r,layout:o,drag:s,dragConstraints:a,layoutScroll:l,layoutRoot:c}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:qs(t.parent)),t.projection.setOptions({layoutId:r,layout:o,alwaysMeasureLayout:!!s||a&&qt(a),visualElement:t,animationType:typeof o=="string"?o:"both",initialPromotionConfig:i,layoutScroll:l,layoutRoot:c})}function qs(t){if(t)return t.options.allowProjection!==!1?t.projection:qs(t.parent)}function Wc({preloadedFeatures:t,createVisualElement:e,useRender:n,useVisualState:i,Component:r}){var o,s;t&&Lc(t);function a(c,u){let f;const d={...A.useContext(Ns),...c,layoutId:Gc(c)},{isStatic:h}=d,p=$c(c),g=i(c,h);if(!h&&di){Kc(d,t);const S=Hc(d);f=S.MeasureLayout,p.visualElement=Uc(r,g,d,e,S.ProjectionNode)}return Je.jsxs(gn.Provider,{value:p,children:[f&&p.visualElement?Je.jsx(f,{visualElement:p.visualElement,...d}):null,n(r,c,_c(g,p.visualElement,u),g,h,p.visualElement)]})}a.displayName=`motion.${typeof r=="string"?r:`create(${(s=(o=r.displayName)!==null&&o!==void 0?o:r.name)!==null&&s!==void 0?s:""})`}`;const l=A.forwardRef(a);return l[jc]=r,l}function Gc({layoutId:t}){const e=A.useContext(js).id;return e&&t!==void 0?e+"-"+t:t}function Kc(t,e){const n=A.useContext(Ws).strict;if(process.env.NODE_ENV!=="production"&&e&&n){const i="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";t.ignoreStrict?ue(!1,i):Mt(!1,i)}}function Hc(t){const{drag:e,layout:n}=ae;if(!e&&!n)return{};const i={...e,...n};return{MeasureLayout:e!=null&&e.isEnabled(t)||n!=null&&n.isEnabled(t)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}const Xs=t=>e=>typeof e=="string"&&e.startsWith(t),vi=Xs("--"),Yc=Xs("var(--"),xi=t=>Yc(t)?qc.test(t.split("/*")[0].trim()):!1,qc=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Ve={};function Xc(t){for(const e in t)Ve[e]=t[e],vi(e)&&(Ve[e].isCSSVariable=!0)}const fe=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Yt=new Set(fe);function Zs(t,{layout:e,layoutId:n}){return Yt.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!Ve[t]||t==="opacity")}const it=t=>!!(t&&t.getVelocity),Js=(t,e)=>e&&typeof t=="number"?e.transform(t):t,Lt=(t,e,n)=>n>e?e:n<t?t:n,de={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},Re={...de,transform:t=>Lt(0,1,t)},We={...de,default:1},Ie=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),Bt=Ie("deg"),Vt=Ie("%"),O=Ie("px"),Zc=Ie("vh"),Jc=Ie("vw"),fr={...Vt,parse:t=>Vt.parse(t)/100,transform:t=>Vt.transform(t*100)},Qc={borderWidth:O,borderTopWidth:O,borderRightWidth:O,borderBottomWidth:O,borderLeftWidth:O,borderRadius:O,radius:O,borderTopLeftRadius:O,borderTopRightRadius:O,borderBottomRightRadius:O,borderBottomLeftRadius:O,width:O,maxWidth:O,height:O,maxHeight:O,top:O,right:O,bottom:O,left:O,padding:O,paddingTop:O,paddingRight:O,paddingBottom:O,paddingLeft:O,margin:O,marginTop:O,marginRight:O,marginBottom:O,marginLeft:O,backgroundPositionX:O,backgroundPositionY:O},tu={rotate:Bt,rotateX:Bt,rotateY:Bt,rotateZ:Bt,scale:We,scaleX:We,scaleY:We,scaleZ:We,skew:Bt,skewX:Bt,skewY:Bt,distance:O,translateX:O,translateY:O,translateZ:O,x:O,y:O,z:O,perspective:O,transformPerspective:O,opacity:Re,originX:fr,originY:fr,originZ:O},dr={...de,transform:Math.round},bi={...Qc,...tu,zIndex:dr,size:O,fillOpacity:Re,strokeOpacity:Re,numOctaves:dr},eu={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},nu=fe.length;function iu(t,e,n){let i="",r=!0;for(let o=0;o<nu;o++){const s=fe[o],a=t[s];if(a===void 0)continue;let l=!0;if(typeof a=="number"?l=a===(s.startsWith("scale")?1:0):l=parseFloat(a)===0,!l||n){const c=Js(a,bi[s]);if(!l){r=!1;const u=eu[s]||s;i+=`${u}(${c}) `}n&&(e[s]=c)}}return i=i.trim(),n?i=n(e,r?"":i):r&&(i="none"),i}function Si(t,e,n){const{style:i,vars:r,transformOrigin:o}=t;let s=!1,a=!1;for(const l in e){const c=e[l];if(Yt.has(l)){s=!0;continue}else if(vi(l)){r[l]=c;continue}else{const u=Js(c,bi[l]);l.startsWith("origin")?(a=!0,o[l]=u):i[l]=u}}if(e.transform||(s||n?i.transform=iu(e,t.transform,n):i.transform&&(i.transform="none")),a){const{originX:l="50%",originY:c="50%",originZ:u=0}=o;i.transformOrigin=`${l} ${c} ${u}`}}const wi=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Qs(t,e,n){for(const i in e)!it(e[i])&&!Zs(i,n)&&(t[i]=e[i])}function ru({transformTemplate:t},e){return A.useMemo(()=>{const n=wi();return Si(n,e,t),Object.assign({},n.vars,n.style)},[e])}function su(t,e){const n=t.style||{},i={};return Qs(i,n,t),Object.assign(i,ru(t,e)),i}function ou(t,e){const n={},i=su(t,e);return t.drag&&t.dragListener!==!1&&(n.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=i,n}const au=["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 Ti(t){return typeof t!="string"||t.includes("-")?!1:!!(au.indexOf(t)>-1||/[A-Z]/u.test(t))}const lu={offset:"stroke-dashoffset",array:"stroke-dasharray"},cu={offset:"strokeDashoffset",array:"strokeDasharray"};function uu(t,e,n=1,i=0,r=!0){t.pathLength=1;const o=r?lu:cu;t[o.offset]=O.transform(-i);const s=O.transform(e),a=O.transform(n);t[o.array]=`${s} ${a}`}function hr(t,e,n){return typeof t=="string"?t:O.transform(e+n*t)}function fu(t,e,n){const i=hr(e,t.x,t.width),r=hr(n,t.y,t.height);return`${i} ${r}`}function Ci(t,{attrX:e,attrY:n,attrScale:i,originX:r,originY:o,pathLength:s,pathSpacing:a=1,pathOffset:l=0,...c},u,f){if(Si(t,c,f),u){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:d,style:h,dimensions:p}=t;d.transform&&(p&&(h.transform=d.transform),delete d.transform),p&&(r!==void 0||o!==void 0||h.transform)&&(h.transformOrigin=fu(p,r!==void 0?r:.5,o!==void 0?o:.5)),e!==void 0&&(d.x=e),n!==void 0&&(d.y=n),i!==void 0&&(d.scale=i),s!==void 0&&uu(d,s,a,l,!1)}const to=()=>({...wi(),attrs:{}}),Pi=t=>typeof t=="string"&&t.toLowerCase()==="svg";function du(t,e,n,i){const r=A.useMemo(()=>{const o=to();return Ci(o,e,Pi(i),t.transformTemplate),{...o.attrs,style:{...o.style}}},[e]);if(t.style){const o={};Qs(o,t.style,t),r.style={...o,...r.style}}return r}function hu(t=!1){return(n,i,r,{latestValues:o},s)=>{const l=(Ti(n)?du:ou)(i,o,s,n),c=Fc(i,typeof n=="string",t),u=n!==A.Fragment?{...c,...l,ref:r}:{},{children:f}=i,d=A.useMemo(()=>it(f)?f.get():f,[f]);return A.createElement(n,{...u,children:d})}}function pr(t){const e=[{},{}];return t==null||t.values.forEach((n,i)=>{e[0][i]=n.get(),e[1][i]=n.getVelocity()}),e}function Ai(t,e,n,i){if(typeof e=="function"){const[r,o]=pr(i);e=e(n!==void 0?n:t.custom,r,o)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[r,o]=pr(i);e=e(n!==void 0?n:t.custom,r,o)}return e}const Wn=t=>Array.isArray(t),pu=t=>!!(t&&typeof t=="object"&&t.mix&&t.toValue),mu=t=>Wn(t)?t[t.length-1]||0:t;function qe(t){const e=it(t)?t.get():t;return pu(e)?e.toValue():e}function gu({scrapeMotionValuesFromProps:t,createRenderState:e,onUpdate:n},i,r,o){const s={latestValues:yu(i,r,o,t),renderState:e()};return n&&(s.onMount=a=>n({props:i,current:a,...s}),s.onUpdate=a=>n(a)),s}const eo=t=>(e,n)=>{const i=A.useContext(gn),r=A.useContext(fi),o=()=>gu(t,e,i,r);return n?o():_s(o)};function yu(t,e,n,i){const r={},o=i(t,{});for(const d in o)r[d]=qe(o[d]);let{initial:s,animate:a}=t;const l=vn(t),c=Ks(t);e&&c&&!l&&t.inherit!==!1&&(s===void 0&&(s=e.initial),a===void 0&&(a=e.animate));let u=n?n.initial===!1:!1;u=u||s===!1;const f=u?a:s;if(f&&typeof f!="boolean"&&!yn(f)){const d=Array.isArray(f)?f:[f];for(let h=0;h<d.length;h++){const p=Ai(t,d[h]);if(p){const{transitionEnd:g,transition:S,...v}=p;for(const w in v){let T=v[w];if(Array.isArray(T)){const V=u?T.length-1:0;T=T[V]}T!==null&&(r[w]=T)}for(const w in g)r[w]=g[w]}}}return r}function Ei(t,e,n){var i;const{style:r}=t,o={};for(const s in r)(it(r[s])||e.style&&it(e.style[s])||Zs(s,t)||((i=n==null?void 0:n.getValue(s))===null||i===void 0?void 0:i.liveStyle)!==void 0)&&(o[s]=r[s]);return o}const vu={useVisualState:eo({scrapeMotionValuesFromProps:Ei,createRenderState:wi})};function no(t,e){try{e.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{e.dimensions={x:0,y:0,width:0,height:0}}}function io(t,{style:e,vars:n},i,r){Object.assign(t.style,e,r&&r.getProjectionStyles(i));for(const o in n)t.style.setProperty(o,n[o])}const ro=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function so(t,e,n,i){io(t,e,void 0,i);for(const r in e.attrs)t.setAttribute(ro.has(r)?r:gi(r),e.attrs[r])}function oo(t,e,n){const i=Ei(t,e,n);for(const r in t)if(it(t[r])||it(e[r])){const o=fe.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;i[o]=t[r]}return i}const mr=["x","y","width","height","cx","cy","r"],xu={useVisualState:eo({scrapeMotionValuesFromProps:oo,createRenderState:to,onUpdate:({props:t,prevProps:e,current:n,renderState:i,latestValues:r})=>{if(!n)return;let o=!!t.drag;if(!o){for(const a in r)if(Yt.has(a)){o=!0;break}}if(!o)return;let s=!e;if(e)for(let a=0;a<mr.length;a++){const l=mr[a];t[l]!==e[l]&&(s=!0)}s&&U.read(()=>{no(n,i),U.render(()=>{Ci(i,r,Pi(n.tagName),t.transformTemplate),so(n,i)})})}})};function bu(t,e){return function(i,{forwardMotionProps:r}={forwardMotionProps:!1}){const s={...Ti(i)?xu:vu,preloadedFeatures:t,useRender:hu(r),createVisualElement:e,Component:i};return Wc(s)}}function Me(t,e,n){const i=t.getProps();return Ai(i,e,n!==void 0?n:i.custom,t)}const Su=hi(()=>window.ScrollTimeline!==void 0);class wu{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>"finished"in e?e.finished:e))}getAll(e){return this.animations[0][e]}setAll(e,n){for(let i=0;i<this.animations.length;i++)this.animations[i][e]=n}attachTimeline(e,n){const i=this.animations.map(r=>{if(Su()&&r.attachTimeline)return r.attachTimeline(e);if(typeof n=="function")return n(r)});return()=>{i.forEach((r,o)=>{r&&r(),this.animations[o].stop()})}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get startTime(){return this.getAll("startTime")}get duration(){let e=0;for(let n=0;n<this.animations.length;n++)e=Math.max(e,this.animations[n].duration);return e}runAll(e){this.animations.forEach(n=>n[e]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class Tu extends wu{then(e,n){return Promise.all(this.animations).then(e).catch(n)}}function Vi(t,e){return t?t[e]||t.default||t:void 0}const Gn=2e4;function ao(t){let e=0;const n=50;let i=t.next(e);for(;!i.done&&e<Gn;)e+=n,i=t.next(e);return e>=Gn?1/0:e}function Ri(t){return typeof t=="function"}function gr(t,e){t.timeline=e,t.onfinish=null}const Mi=t=>Array.isArray(t)&&typeof t[0]=="number",Cu={linearEasing:void 0};function Pu(t,e){const n=hi(t);return()=>{var i;return(i=Cu[e])!==null&&i!==void 0?i:n()}}const on=Pu(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),lo=(t,e,n=10)=>{let i="";const r=Math.max(Math.round(e/n),2);for(let o=0;o<r;o++)i+=t(oe(0,r-1,o))+", ";return`linear(${i.substring(0,i.length-2)})`};function co(t){return!!(typeof t=="function"&&on()||!t||typeof t=="string"&&(t in Kn||on())||Mi(t)||Array.isArray(t)&&t.every(co))}const ge=([t,e,n,i])=>`cubic-bezier(${t}, ${e}, ${n}, ${i})`,Kn={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ge([0,.65,.55,1]),circOut:ge([.55,0,1,.45]),backIn:ge([.31,.01,.66,-.59]),backOut:ge([.33,1.53,.69,.99])};function uo(t,e){if(t)return typeof t=="function"&&on()?lo(t,e):Mi(t)?ge(t):Array.isArray(t)?t.map(n=>uo(n,e)||Kn.easeOut):Kn[t]}const St={x:!1,y:!1};function fo(){return St.x||St.y}function ho(t,e,n){var i;if(t instanceof EventTarget)return[t];if(typeof t=="string"){let r=document;const o=(i=void 0)!==null&&i!==void 0?i:r.querySelectorAll(t);return o?Array.from(o):[]}return Array.from(t)}function po(t,e){const n=ho(t),i=new AbortController,r={passive:!0,...e,signal:i.signal};return[n,r,()=>i.abort()]}function yr(t){return!(t.pointerType==="touch"||fo())}function Au(t,e,n={}){const[i,r,o]=po(t,n),s=a=>{if(!yr(a))return;const{target:l}=a,c=e(l,a);if(typeof c!="function"||!l)return;const u=f=>{yr(f)&&(c(f),l.removeEventListener("pointerleave",u))};l.addEventListener("pointerleave",u,r)};return i.forEach(a=>{a.addEventListener("pointerenter",s,r)}),o}function an(t,e){const n=`${e}PointerCapture`;if(t.target instanceof Element&&n in t.target&&t.pointerId!==void 0)try{t.target[n](t.pointerId)}catch{}}const mo=(t,e)=>e?t===e?!0:mo(t,e.parentElement):!1,Di=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,Eu=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Vu(t){return Eu.has(t.tagName)||t.tabIndex!==-1}const ye=new WeakSet;function vr(t){return e=>{e.key==="Enter"&&t(e)}}function En(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const Ru=(t,e)=>{const n=t.currentTarget;if(!n)return;const i=vr(()=>{if(ye.has(n))return;En(n,"down");const r=vr(()=>{En(n,"up")}),o=()=>En(n,"cancel");n.addEventListener("keyup",r,e),n.addEventListener("blur",o,e)});n.addEventListener("keydown",i,e),n.addEventListener("blur",()=>n.removeEventListener("keydown",i),e)};function xr(t){return Di(t)&&!fo()}function Mu(t,e,n={}){const[i,r,o]=po(t,n),s=a=>{const l=a.currentTarget;if(!l||!xr(a)||ye.has(l))return;ye.add(l),an(a,"set");const c=e(l,a),u=(h,p)=>{l.removeEventListener("pointerup",f),l.removeEventListener("pointercancel",d),an(h,"release"),!(!xr(h)||!ye.has(l))&&(ye.delete(l),typeof c=="function"&&c(h,{success:p}))},f=h=>{(h.isTrusted?Du(h,l instanceof Element?l.getBoundingClientRect():{left:0,top:0,right:window.innerWidth,bottom:window.innerHeight}):!1)?u(h,!1):u(h,!(l instanceof Element)||mo(l,h.target))},d=h=>{u(h,!1)};l.addEventListener("pointerup",f,r),l.addEventListener("pointercancel",d,r),l.addEventListener("lostpointercapture",d,r)};return i.forEach(a=>{a=n.useGlobalTarget?window:a;let l=!1;a instanceof HTMLElement&&(l=!0,!Vu(a)&&a.getAttribute("tabindex")===null&&(a.tabIndex=0)),a.addEventListener("pointerdown",s,r),l&&a.addEventListener("focus",c=>Ru(c,r),r)}),o}function Du(t,e){return t.clientX<e.left||t.clientX>e.right||t.clientY<e.top||t.clientY>e.bottom}function Lu(t){return t==="x"||t==="y"?St[t]?null:(St[t]=!0,()=>{St[t]=!1}):St.x||St.y?null:(St.x=St.y=!0,()=>{St.x=St.y=!1})}const go=new Set(["width","height","top","left","right","bottom",...fe]);let Xe;function Ou(){Xe=void 0}const Rt={now:()=>(Xe===void 0&&Rt.set(J.isProcessing||Rc.useManualTiming?J.timestamp:performance.now()),Xe),set:t=>{Xe=t,queueMicrotask(Ou)}};function Li(t,e){t.indexOf(e)===-1&&t.push(e)}function Oi(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class ki{constructor(){this.subscriptions=[]}add(e){return Li(this.subscriptions,e),()=>Oi(this.subscriptions,e)}notify(e,n,i){const r=this.subscriptions.length;if(r)if(r===1)this.subscriptions[0](e,n,i);else for(let o=0;o<r;o++){const s=this.subscriptions[o];s&&s(e,n,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function yo(t,e){return e?t*(1e3/e):0}const br=30,ku=t=>!isNaN(parseFloat(t));class Fu{constructor(e,n={}){this.version="12.4.7",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(i,r=!0)=>{const o=Rt.now();this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(i),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),r&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=n.owner}setCurrent(e){this.current=e,this.updatedAt=Rt.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=ku(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return process.env.NODE_ENV!=="production"&&mn(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new ki);const i=this.events[e].add(n);return e==="change"?()=>{i(),U.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e,n=!0){!n||!this.passiveEffect?this.updateAndNotify(e,n):this.passiveEffect(e,this.updateAndNotify)}setWithVelocity(e,n,i){this.set(n),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-i}jump(e,n=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=Rt.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>br)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,br);return yo(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(e){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=e(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function De(t,e){return new Fu(t,e)}function Iu(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,De(n))}function Fi(t,e){const n=Me(t,e);let{transitionEnd:i={},transition:r={},...o}=n||{};o={...o,...i};for(const s in o){const a=mu(o[s]);Iu(t,s,a)}}function Bu(t){return!!(it(t)&&t.add)}function Hn(t,e){const n=t.getValue("willChange");if(Bu(n))return n.add(e)}function vo(t){return t.props[Hs]}const xo=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,$u=1e-7,ju=12;function _u(t,e,n,i,r){let o,s,a=0;do s=e+(n-e)/2,o=xo(s,i,r)-t,o>0?n=s:e=s;while(Math.abs(o)>$u&&++a<ju);return s}function Be(t,e,n,i){if(t===e&&n===i)return ut;const r=o=>_u(o,0,1,t,n);return o=>o===0||o===1?o:xo(r(o),e,i)}const bo=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,So=t=>e=>1-t(1-e),wo=Be(.33,1.53,.69,.99),Ii=So(wo),To=bo(Ii),Co=t=>(t*=2)<1?.5*Ii(t):.5*(2-Math.pow(2,-10*(t-1))),Bi=t=>1-Math.sin(Math.acos(t)),Po=So(Bi),Ao=bo(Bi),Eo=t=>/^0[^.\s]+$/u.test(t);function Nu(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||Eo(t):!0}const xe=t=>Math.round(t*1e5)/1e5,$i=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Uu(t){return t==null}const zu=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,ji=(t,e)=>n=>!!(typeof n=="string"&&zu.test(n)&&n.startsWith(t)||e&&!Uu(n)&&Object.prototype.hasOwnProperty.call(n,e)),Vo=(t,e,n)=>i=>{if(typeof i!="string")return i;const[r,o,s,a]=i.match($i);return{[t]:parseFloat(r),[e]:parseFloat(o),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},Wu=t=>Lt(0,255,t),Vn={...de,transform:t=>Math.round(Wu(t))},Kt={test:ji("rgb","red"),parse:Vo("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:i=1})=>"rgba("+Vn.transform(t)+", "+Vn.transform(e)+", "+Vn.transform(n)+", "+xe(Re.transform(i))+")"};function Gu(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}}const Yn={test:ji("#"),parse:Gu,transform:Kt.transform},Xt={test:ji("hsl","hue"),parse:Vo("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:i=1})=>"hsla("+Math.round(t)+", "+Vt.transform(xe(e))+", "+Vt.transform(xe(n))+", "+xe(Re.transform(i))+")"},nt={test:t=>Kt.test(t)||Yn.test(t)||Xt.test(t),parse:t=>Kt.test(t)?Kt.parse(t):Xt.test(t)?Xt.parse(t):Yn.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?Kt.transform(t):Xt.transform(t)},Ku=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Hu(t){var e,n;return isNaN(t)&&typeof t=="string"&&(((e=t.match($i))===null||e===void 0?void 0:e.length)||0)+(((n=t.match(Ku))===null||n===void 0?void 0:n.length)||0)>0}const Ro="number",Mo="color",Yu="var",qu="var(",Sr="${}",Xu=/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 Le(t){const e=t.toString(),n=[],i={color:[],number:[],var:[]},r=[];let o=0;const a=e.replace(Xu,l=>(nt.test(l)?(i.color.push(o),r.push(Mo),n.push(nt.parse(l))):l.startsWith(qu)?(i.var.push(o),r.push(Yu),n.push(l)):(i.number.push(o),r.push(Ro),n.push(parseFloat(l))),++o,Sr)).split(Sr);return{values:n,split:a,indexes:i,types:r}}function Do(t){return Le(t).values}function Lo(t){const{split:e,types:n}=Le(t),i=e.length;return r=>{let o="";for(let s=0;s<i;s++)if(o+=e[s],r[s]!==void 0){const a=n[s];a===Ro?o+=xe(r[s]):a===Mo?o+=nt.transform(r[s]):o+=r[s]}return o}}const Zu=t=>typeof t=="number"?0:t;function Ju(t){const e=Do(t);return Lo(t)(e.map(Zu))}const jt={test:Hu,parse:Do,createTransformer:Lo,getAnimatableNone:Ju},Qu=new Set(["brightness","contrast","saturate","opacity"]);function tf(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[i]=n.match($i)||[];if(!i)return t;const r=n.replace(i,"");let o=Qu.has(e)?1:0;return i!==n&&(o*=100),e+"("+o+r+")"}const ef=/\b([a-z-]*)\(.*?\)/gu,qn={...jt,getAnimatableNone:t=>{const e=t.match(ef);return e?e.map(tf).join(" "):t}},nf={...bi,color:nt,backgroundColor:nt,outlineColor:nt,fill:nt,stroke:nt,borderColor:nt,borderTopColor:nt,borderRightColor:nt,borderBottomColor:nt,borderLeftColor:nt,filter:qn,WebkitFilter:qn},_i=t=>nf[t];function Oo(t,e){let n=_i(t);return n!==qn&&(n=jt),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const rf=new Set(["auto","none","0"]);function sf(t,e,n){let i=0,r;for(;i<t.length&&!r;){const o=t[i];typeof o=="string"&&!rf.has(o)&&Le(o).values.length&&(r=t[i]),i++}if(r&&n)for(const o of e)t[o]=Oo(n,r)}const wr=t=>t===de||t===O,Tr=(t,e)=>parseFloat(t.split(", ")[e]),Cr=(t,e)=>(n,{transform:i})=>{if(i==="none"||!i)return 0;const r=i.match(/^matrix3d\((.+)\)$/u);if(r)return Tr(r[1],e);{const o=i.match(/^matrix\((.+)\)$/u);return o?Tr(o[1],t):0}},of=new Set(["x","y","z"]),af=fe.filter(t=>!of.has(t));function lf(t){const e=[];return af.forEach(n=>{const i=t.getValue(n);i!==void 0&&(e.push([n,i.get()]),i.set(n.startsWith("scale")?1:0))}),e}const le={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:Cr(4,13),y:Cr(5,14)};le.translateX=le.x;le.translateY=le.y;const Ht=new Set;let Xn=!1,Zn=!1;function ko(){if(Zn){const t=Array.from(Ht).filter(i=>i.needsMeasurement),e=new Set(t.map(i=>i.element)),n=new Map;e.forEach(i=>{const r=lf(i);r.length&&(n.set(i,r),i.render())}),t.forEach(i=>i.measureInitialState()),e.forEach(i=>{i.render();const r=n.get(i);r&&r.forEach(([o,s])=>{var a;(a=i.getValue(o))===null||a===void 0||a.set(s)})}),t.forEach(i=>i.measureEndState()),t.forEach(i=>{i.suspendedScrollY!==void 0&&window.scrollTo(0,i.suspendedScrollY)})}Zn=!1,Xn=!1,Ht.forEach(t=>t.complete()),Ht.clear()}function Fo(){Ht.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(Zn=!0)})}function cf(){Fo(),ko()}class Ni{constructor(e,n,i,r,o,s=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=n,this.name=i,this.motionValue=r,this.element=o,this.isAsync=s}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Ht.add(this),Xn||(Xn=!0,U.read(Fo),U.resolveKeyframes(ko))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:i,motionValue:r}=this;for(let o=0;o<e.length;o++)if(e[o]===null)if(o===0){const s=r==null?void 0:r.get(),a=e[e.length-1];if(s!==void 0)e[0]=s;else if(i&&n){const l=i.readValue(n,a);l!=null&&(e[0]=l)}e[0]===void 0&&(e[0]=a),r&&s===void 0&&r.set(e[0])}else e[o]=e[o-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Ht.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Ht.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const Io=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),uf=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function ff(t){const e=uf.exec(t);if(!e)return[,];const[,n,i,r]=e;return[`--${n??i}`,r]}const df=4;function Bo(t,e,n=1){Mt(n<=df,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);const[i,r]=ff(t);if(!i)return;const o=window.getComputedStyle(e).getPropertyValue(i);if(o){const s=o.trim();return Io(s)?parseFloat(s):s}return xi(r)?Bo(r,e,n+1):r}const $o=t=>e=>e.test(t),hf={test:t=>t==="auto",parse:t=>t},jo=[de,O,Vt,Bt,Jc,Zc,hf],Pr=t=>jo.find($o(t));class _o extends Ni{constructor(e,n,i,r,o){super(e,n,i,r,o,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:n,name:i}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l<e.length;l++){let c=e[l];if(typeof c=="string"&&(c=c.trim(),xi(c))){const u=Bo(c,n.current);u!==void 0&&(e[l]=u),l===e.length-1&&(this.finalKeyframe=c)}}if(this.resolveNoneKeyframes(),!go.has(i)||e.length!==2)return;const[r,o]=e,s=Pr(r),a=Pr(o);if(s!==a)if(wr(s)&&wr(a))for(let l=0;l<e.length;l++){const c=e[l];typeof c=="string"&&(e[l]=parseFloat(c))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:n}=this,i=[];for(let r=0;r<e.length;r++)Nu(e[r])&&i.push(r);i.length&&sf(e,i,n)}measureInitialState(){const{element:e,unresolvedKeyframes:n,name:i}=this;if(!e||!e.current)return;i==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=le[i](e.measureViewportBox(),window.getComputedStyle(e.current)),n[0]=this.measuredOrigin;const r=n[n.length-1];r!==void 0&&e.getValue(i,r).jump(r,!1)}measureEndState(){var e;const{element:n,name:i,unresolvedKeyframes:r}=this;if(!n||!n.current)return;const o=n.getValue(i);o&&o.jump(this.measuredOrigin,!1);const s=r.length-1,a=r[s];r[s]=le[i](n.measureViewportBox(),window.getComputedStyle(n.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),!((e=this.removedTransforms)===null||e===void 0)&&e.length&&this.removedTransforms.forEach(([l,c])=>{n.getValue(l).set(c)}),this.resolveNoneKeyframes()}}const Ar=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(jt.test(t)||t==="0")&&!t.startsWith("url("));function pf(t){const e=t[0];if(t.length===1)return!0;for(let n=0;n<t.length;n++)if(t[n]!==e)return!0}function mf(t,e,n,i){const r=t[0];if(r===null)return!1;if(e==="display"||e==="visibility")return!0;const o=t[t.length-1],s=Ar(r,e),a=Ar(o,e);return ue(s===a,`You are trying to animate ${e} from "${r}" to "${o}". ${r} is not an animatable value - to enable this animation set ${r} to a value animatable to ${o} via the \`style\` property.`),!s||!a?!1:pf(t)||(n==="spring"||Ri(n))&&i}const gf=t=>t!==null;function xn(t,{repeat:e,repeatType:n="loop"},i){const r=t.filter(gf),o=e&&n!=="loop"&&e%2===1?0:r.length-1;return!o||i===void 0?r[o]:i}const yf=40;class No{constructor({autoplay:e=!0,delay:n=0,type:i="keyframes",repeat:r=0,repeatDelay:o=0,repeatType:s="loop",...a}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Rt.now(),this.options={autoplay:e,delay:n,type:i,repeat:r,repeatDelay:o,repeatType:s,...a},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>yf?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&cf(),this._resolved}onKeyframesResolved(e,n){this.resolvedAt=Rt.now(),this.hasAttemptedResolve=!0;const{name:i,type:r,velocity:o,delay:s,onComplete:a,onUpdate:l,isGenerator:c}=this.options;if(!c&&!mf(e,i,r,o))if(s)this.options.duration=0;else{l&&l(xn(e,this.options,n)),a&&a(),this.resolveFinishedPromise();return}const u=this.initPlayback(e,n);u!==!1&&(this._resolved={keyframes:e,finalKeyframe:n,...u},this.onPostResolved())}onPostResolved(){}then(e,n){return this.currentFinishedPromise.then(e,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(e=>{this.resolveFinishedPromise=e})}}const H=(t,e,n)=>t+(e-t)*n;function Rn(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function vf({hue:t,saturation:e,lightness:n,alpha:i}){t/=360,e/=100,n/=100;let r=0,o=0,s=0;if(!e)r=o=s=n;else{const a=n<.5?n*(1+e):n+e-n*e,l=2*n-a;r=Rn(l,a,t+1/3),o=Rn(l,a,t),s=Rn(l,a,t-1/3)}return{red:Math.round(r*255),green:Math.round(o*255),blue:Math.round(s*255),alpha:i}}function ln(t,e){return n=>n>0?e:t}const Mn=(t,e,n)=>{const i=t*t,r=n*(e*e-i)+i;return r<0?0:Math.sqrt(r)},xf=[Yn,Kt,Xt],bf=t=>xf.find(e=>e.test(t));function Er(t){const e=bf(t);if(ue(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`),!e)return!1;let n=e.parse(t);return e===Xt&&(n=vf(n)),n}const Vr=(t,e)=>{const n=Er(t),i=Er(e);if(!n||!i)return ln(t,e);const r={...n};return o=>(r.red=Mn(n.red,i.red,o),r.green=Mn(n.green,i.green,o),r.blue=Mn(n.blue,i.blue,o),r.alpha=H(n.alpha,i.alpha,o),Kt.transform(r))},Sf=(t,e)=>n=>e(t(n)),$e=(...t)=>t.reduce(Sf),Jn=new Set(["none","hidden"]);function wf(t,e){return Jn.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function Tf(t,e){return n=>H(t,e,n)}function Ui(t){return typeof t=="number"?Tf:typeof t=="string"?xi(t)?ln:nt.test(t)?Vr:Af:Array.isArray(t)?Uo:typeof t=="object"?nt.test(t)?Vr:Cf:ln}function Uo(t,e){const n=[...t],i=n.length,r=t.map((o,s)=>Ui(o)(o,e[s]));return o=>{for(let s=0;s<i;s++)n[s]=r[s](o);return n}}function Cf(t,e){const n={...t,...e},i={};for(const r in n)t[r]!==void 0&&e[r]!==void 0&&(i[r]=Ui(t[r])(t[r],e[r]));return r=>{for(const o in i)n[o]=i[o](r);return n}}function Pf(t,e){var n;const i=[],r={color:0,var:0,number:0};for(let o=0;o<e.values.length;o++){const s=e.types[o],a=t.indexes[s][r[s]],l=(n=t.values[a])!==null&&n!==void 0?n:0;i[o]=l,r[s]++}return i}const Af=(t,e)=>{const n=jt.createTransformer(e),i=Le(t),r=Le(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?Jn.has(t)&&!r.values.length||Jn.has(e)&&!i.values.length?wf(t,e):$e(Uo(Pf(i,r),r.values),n):(ue(!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.`),ln(t,e))};function zo(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?H(t,e,n):Ui(t)(t,e)}const Ef=5;function Wo(t,e,n){const i=Math.max(e-Ef,0);return yo(n-t(i),e-i)}const K={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},Rr=.001;function Vf({duration:t=K.duration,bounce:e=K.bounce,velocity:n=K.velocity,mass:i=K.mass}){let r,o;ue(t<=Et(K.maxDuration),"Spring duration must be 10 seconds or less");let s=1-e;s=Lt(K.minDamping,K.maxDamping,s),t=Lt(K.minDuration,K.maxDuration,Dt(t)),s<1?(r=c=>{const u=c*s,f=u*t,d=u-n,h=Qn(c,s),p=Math.exp(-f);return Rr-d/h*p},o=c=>{const f=c*s*t,d=f*n+n,h=Math.pow(s,2)*Math.pow(c,2)*t,p=Math.exp(-f),g=Qn(Math.pow(c,2),s);return(-r(c)+Rr>0?-1:1)*((d-h)*p)/g}):(r=c=>{const u=Math.exp(-c*t),f=(c-n)*t+1;return-.001+u*f},o=c=>{const u=Math.exp(-c*t),f=(n-c)*(t*t);return u*f});const a=5/t,l=Mf(r,o,a);if(t=Et(t),isNaN(l))return{stiffness:K.stiffness,damping:K.damping,duration:t};{const c=Math.pow(l,2)*i;return{stiffness:c,damping:s*2*Math.sqrt(i*c),duration:t}}}const Rf=12;function Mf(t,e,n){let i=n;for(let r=1;r<Rf;r++)i=i-t(i)/e(i);return i}function Qn(t,e){return t*Math.sqrt(1-e*e)}const Df=["duration","bounce"],Lf=["stiffness","damping","mass"];function Mr(t,e){return e.some(n=>t[n]!==void 0)}function Of(t){let e={velocity:K.velocity,stiffness:K.stiffness,damping:K.damping,mass:K.mass,isResolvedFromDuration:!1,...t};if(!Mr(t,Lf)&&Mr(t,Df))if(t.visualDuration){const n=t.visualDuration,i=2*Math.PI/(n*1.2),r=i*i,o=2*Lt(.05,1,1-(t.bounce||0))*Math.sqrt(r);e={...e,mass:K.mass,stiffness:r,damping:o}}else{const n=Vf(t);e={...e,...n,mass:K.mass},e.isResolvedFromDuration=!0}return e}function Go(t=K.visualDuration,e=K.bounce){const n=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:i,restDelta:r}=n;const o=n.keyframes[0],s=n.keyframes[n.keyframes.length-1],a={done:!1,value:o},{stiffness:l,damping:c,mass:u,duration:f,velocity:d,isResolvedFromDuration:h}=Of({...n,velocity:-Dt(n.velocity||0)}),p=d||0,g=c/(2*Math.sqrt(l*u)),S=s-o,v=Dt(Math.sqrt(l/u)),w=Math.abs(S)<5;i||(i=w?K.restSpeed.granular:K.restSpeed.default),r||(r=w?K.restDelta.granular:K.restDelta.default);let T;if(g<1){const m=Qn(v,g);T=R=>{const D=Math.exp(-g*v*R);return s-D*((p+g*v*S)/m*Math.sin(m*R)+S*Math.cos(m*R))}}else if(g===1)T=m=>s-Math.exp(-v*m)*(S+(p+v*S)*m);else{const m=v*Math.sqrt(g*g-1);T=R=>{const D=Math.exp(-g*v*R),y=Math.min(m*R,300);return s-D*((p+g*v*S)*Math.sinh(y)+m*S*Math.cosh(y))/m}}const V={calculatedDuration:h&&f||null,next:m=>{const R=T(m);if(h)a.done=m>=f;else{let D=0;g<1&&(D=m===0?Et(p):Wo(T,m,R));const y=Math.abs(D)<=i,b=Math.abs(s-R)<=r;a.done=y&&b}return a.value=a.done?s:R,a},toString:()=>{const m=Math.min(ao(V),Gn),R=lo(D=>V.next(m*D).value,m,30);return m+"ms "+R}};return V}function Dr({keyframes:t,velocity:e=0,power:n=.8,timeConstant:i=325,bounceDamping:r=10,bounceStiffness:o=500,modifyTarget:s,min:a,max:l,restDelta:c=.5,restSpeed:u}){const f=t[0],d={done:!1,value:f},h=y=>a!==void 0&&y<a||l!==void 0&&y>l,p=y=>a===void 0?l:l===void 0||Math.abs(a-y)<Math.abs(l-y)?a:l;let g=n*e;const S=f+g,v=s===void 0?S:s(S);v!==S&&(g=v-f);const w=y=>-g*Math.exp(-y/i),T=y=>v+w(y),V=y=>{const b=w(y),x=T(y);d.done=Math.abs(b)<=c,d.value=d.done?v:x};let m,R;const D=y=>{h(d.value)&&(m=y,R=Go({keyframes:[d.value,p(d.value)],velocity:Wo(T,y,d.value),damping:r,stiffness:o,restDelta:c,restSpeed:u}))};return D(0),{calculatedDuration:null,next:y=>{let b=!1;return!R&&m===void 0&&(b=!0,V(y),D(y)),m!==void 0&&y>=m?R.next(y-m):(!b&&V(y),d)}}}const kf=Be(.42,0,1,1),Ff=Be(0,0,.58,1),Ko=Be(.42,0,.58,1),If=t=>Array.isArray(t)&&typeof t[0]!="number",Lr={linear:ut,easeIn:kf,easeInOut:Ko,easeOut:Ff,circIn:Bi,circInOut:Ao,circOut:Po,backIn:Ii,backInOut:To,backOut:wo,anticipate:Co},Or=t=>{if(Mi(t)){Mt(t.length===4,"Cubic bezier arrays must contain four numerical values.");const[e,n,i,r]=t;return Be(e,n,i,r)}else if(typeof t=="string")return Mt(Lr[t]!==void 0,`Invalid easing type '${t}'`),Lr[t];return t};function Bf(t,e,n){const i=[],r=n||zo,o=t.length-1;for(let s=0;s<o;s++){let a=r(t[s],t[s+1]);if(e){const l=Array.isArray(e)?e[s]||ut:e;a=$e(l,a)}i.push(a)}return i}function $f(t,e,{clamp:n=!0,ease:i,mixer:r}={}){const o=t.length;if(Mt(o===e.length,"Both input and output ranges must be the same length"),o===1)return()=>e[0];if(o===2&&e[0]===e[1])return()=>e[1];const s=t[0]===t[1];t[0]>t[o-1]&&(t=[...t].reverse(),e=[...e].reverse());const a=Bf(e,i,r),l=a.length,c=u=>{if(s&&u<t[0])return e[0];let f=0;if(l>1)for(;f<t.length-2&&!(u<t[f+1]);f++);const d=oe(t[f],t[f+1],u);return a[f](d)};return n?u=>c(Lt(t[0],t[o-1],u)):c}function jf(t,e){const n=t[t.length-1];for(let i=1;i<=e;i++){const r=oe(0,e,i);t.push(H(n,1,r))}}function _f(t){const e=[0];return jf(e,t.length-1),e}function Nf(t,e){return t.map(n=>n*e)}function Uf(t,e){return t.map(()=>e||Ko).splice(0,t.length-1)}function be({duration:t=300,keyframes:e,times:n,ease:i="easeInOut"}){const r=If(i)?i.map(Or):Or(i),o={done:!1,value:e[0]},s=Nf(n&&n.length===e.length?n:_f(e),t),a=$f(s,e,{ease:Array.isArray(r)?r:Uf(e,r)});return{calculatedDuration:t,next:l=>(o.value=a(l),o.done=l>=t,o)}}const zf=t=>{const e=({timestamp:n})=>t(n);return{start:()=>U.update(e,!0),stop:()=>$t(e),now:()=>J.isProcessing?J.timestamp:Rt.now()}},Wf={decay:Dr,inertia:Dr,tween:be,keyframes:be,spring:Go},Gf=t=>t/100;class zi extends No{constructor(e){super(e),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:l}=this.options;l&&l()};const{name:n,motionValue:i,element:r,keyframes:o}=this.options,s=(r==null?void 0:r.KeyframeResolver)||Ni,a=(l,c)=>this.onKeyframesResolved(l,c);this.resolver=new s(o,a,n,i,r),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(e){const{type:n="keyframes",repeat:i=0,repeatDelay:r=0,repeatType:o,velocity:s=0}=this.options,a=Ri(n)?n:Wf[n]||be;let l,c;process.env.NODE_ENV!=="production"&&a!==be&&Mt(e.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${e}`),a!==be&&typeof e[0]!="number"&&(l=$e(Gf,zo(e[0],e[1])),e=[0,100]);const u=a({...this.options,keyframes:e});o==="mirror"&&(c=a({...this.options,keyframes:[...e].reverse(),velocity:-s})),u.calculatedDuration===null&&(u.calculatedDuration=ao(u));const{calculatedDuration:f}=u,d=f+r,h=d*(i+1)-r;return{generator:u,mirroredGenerator:c,mapPercentToKeyframes:l,calculatedDuration:f,resolvedDuration:d,totalDuration:h}}onPostResolved(){const{autoplay:e=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!e?this.pause():this.state=this.pendingPlayState}tick(e,n=!1){const{resolved:i}=this;if(!i){const{keyframes:y}=this.options;return{done:!0,value:y[y.length-1]}}const{finalKeyframe:r,generator:o,mirroredGenerator:s,mapPercentToKeyframes:a,keyframes:l,calculatedDuration:c,totalDuration:u,resolvedDuration:f}=i;if(this.startTime===null)return o.next(0);const{delay:d,repeat:h,repeatType:p,repeatDelay:g,onUpdate:S}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-u/this.speed,this.startTime)),n?this.currentTime=e:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;const v=this.currentTime-d*(this.speed>=0?1:-1),w=this.speed>=0?v<0:v>u;this.currentTime=Math.max(v,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=u);let T=this.currentTime,V=o;if(h){const y=Math.min(this.currentTime,u)/f;let b=Math.floor(y),x=y%1;!x&&y>=1&&(x=1),x===1&&b--,b=Math.min(b,h+1),!!(b%2)&&(p==="reverse"?(x=1-x,g&&(x-=g/f)):p==="mirror"&&(V=s)),T=Lt(0,1,x)*f}const m=w?{done:!1,value:l[0]}:V.next(T);a&&(m.value=a(m.value));let{done:R}=m;!w&&c!==null&&(R=this.speed>=0?this.currentTime>=u:this.currentTime<=0);const D=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&R);return D&&r!==void 0&&(m.value=xn(l,this.options,r)),S&&S(m.value),D&&this.finish(),m}get duration(){const{resolved:e}=this;return e?Dt(e.calculatedDuration):0}get time(){return Dt(this.currentTime)}set time(e){e=Et(e),this.currentTime=e,this.holdTime!==null||this.speed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){const n=this.playbackSpeed!==e;this.playbackSpeed=e,n&&(this.time=Dt(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:e=zf,onPlay:n,startTime:i}=this.options;this.driver||(this.driver=e(o=>this.tick(o))),n&&n();const r=this.driver.now();this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=r):this.startTime=i??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var e;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(e=this.currentTime)!==null&&e!==void 0?e:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:e}=this.options;e&&e()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}}const Kf=new Set(["opacity","clipPath","filter","transform"]);function Hf(t,e,n,{delay:i=0,duration:r=300,repeat:o=0,repeatType:s="loop",ease:a="easeInOut",times:l}={}){const c={[e]:n};l&&(c.offset=l);const u=uo(a,r);return Array.isArray(u)&&(c.easing=u),t.animate(c,{delay:i,duration:r,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:o+1,direction:s==="reverse"?"alternate":"normal"})}const Yf=hi(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),cn=10,qf=2e4;function Xf(t){return Ri(t.type)||t.type==="spring"||!co(t.ease)}function Zf(t,e){const n=new zi({...e,keyframes:t,repeat:0,delay:0,isGenerator:!0});let i={done:!1,value:t[0]};const r=[];let o=0;for(;!i.done&&o<qf;)i=n.sample(o),r.push(i.value),o+=cn;return{times:void 0,keyframes:r,duration:o-cn,ease:"linear"}}const Ho={anticipate:Co,backInOut:To,circInOut:Ao};function Jf(t){return t in Ho}class kr extends No{constructor(e){super(e);const{name:n,motionValue:i,element:r,keyframes:o}=this.options;this.resolver=new _o(o,(s,a)=>this.onKeyframesResolved(s,a),n,i,r),this.resolver.scheduleResolve()}initPlayback(e,n){let{duration:i=300,times:r,ease:o,type:s,motionValue:a,name:l,startTime:c}=this.options;if(!a.owner||!a.owner.current)return!1;if(typeof o=="string"&&on()&&Jf(o)&&(o=Ho[o]),Xf(this.options)){const{onComplete:f,onUpdate:d,motionValue:h,element:p,...g}=this.options,S=Zf(e,g);e=S.keyframes,e.length===1&&(e[1]=e[0]),i=S.duration,r=S.times,o=S.ease,s="keyframes"}const u=Hf(a.owner.current,l,e,{...this.options,duration:i,times:r,ease:o});return u.startTime=c??this.calcStartTime(),this.pendingTimeline?(gr(u,this.pendingTimeline),this.pendingTimeline=void 0):u.onfinish=()=>{const{onComplete:f}=this.options;a.set(xn(e,this.options,n)),f&&f(),this.cancel(),this.resolveFinishedPromise()},{animation:u,duration:i,times:r,type:s,ease:o,keyframes:e}}get duration(){const{resolved:e}=this;if(!e)return 0;const{duration:n}=e;return Dt(n)}get time(){const{resolved:e}=this;if(!e)return 0;const{animation:n}=e;return Dt(n.currentTime||0)}set time(e){const{resolved:n}=this;if(!n)return;const{animation:i}=n;i.currentTime=Et(e)}get speed(){const{resolved:e}=this;if(!e)return 1;const{animation:n}=e;return n.playbackRate}set speed(e){const{resolved:n}=this;if(!n)return;const{animation:i}=n;i.playbackRate=e}get state(){const{resolved:e}=this;if(!e)return"idle";const{animation:n}=e;return n.playState}get startTime(){const{resolved:e}=this;if(!e)return null;const{animation:n}=e;return n.startTime}attachTimeline(e){if(!this._resolved)this.pendingTimeline=e;else{const{resolved:n}=this;if(!n)return ut;const{animation:i}=n;gr(i,e)}return ut}play(){if(this.isStopped)return;const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:e}=this;if(!e)return;const{animation:n,keyframes:i,duration:r,type:o,ease:s,times:a}=e;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:c,onUpdate:u,onComplete:f,element:d,...h}=this.options,p=new zi({...h,keyframes:i,duration:r,type:o,ease:s,times:a,isGenerator:!0}),g=Et(this.time);c.setWithVelocity(p.sample(g-cn).value,p.sample(g).value,cn)}const{onStop:l}=this.options;l&&l(),this.cancel()}complete(){const{resolved:e}=this;e&&e.animation.finish()}cancel(){const{resolved:e}=this;e&&e.animation.cancel()}static supports(e){const{motionValue:n,name:i,repeatDelay:r,repeatType:o,damping:s,type:a}=e;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:c}=n.owner.getProps();return Yf()&&i&&Kf.has(i)&&!l&&!c&&!r&&o!=="mirror"&&s!==0&&a!=="inertia"}}const Qf={type:"spring",stiffness:500,damping:25,restSpeed:10},td=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),ed={type:"keyframes",duration:.8},nd={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},id=(t,{keyframes:e})=>e.length>2?ed:Yt.has(t)?t.startsWith("scale")?td(e[1]):Qf:nd;function rd({when:t,delay:e,delayChildren:n,staggerChildren:i,staggerDirection:r,repeat:o,repeatType:s,repeatDelay:a,from:l,elapsed:c,...u}){return!!Object.keys(u).length}const Wi=(t,e,n,i={},r,o)=>s=>{const a=Vi(i,t)||{},l=a.delay||i.delay||0;let{elapsed:c=0}=i;c=c-Et(l);let u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-c,onUpdate:d=>{e.set(d),a.onUpdate&&a.onUpdate(d)},onComplete:()=>{s(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:o?void 0:r};rd(a)||(u={...u,...id(t,u)}),u.duration&&(u.duration=Et(u.duration)),u.repeatDelay&&(u.repeatDelay=Et(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let f=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(u.duration=0,u.delay===0&&(f=!0)),f&&!o&&e.get()!==void 0){const d=xn(u.keyframes,a);if(d!==void 0)return U.update(()=>{u.onUpdate(d),u.onComplete()}),new Tu([])}return!o&&kr.supports(u)?new kr(u):new zi(u)};function sd({protectedKeys:t,needsAnimating:e},n){const i=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,i}function Yo(t,e,{delay:n=0,transitionOverride:i,type:r}={}){var o;let{transition:s=t.getDefaultTransition(),transitionEnd:a,...l}=e;i&&(s=i);const c=[],u=r&&t.animationState&&t.animationState.getState()[r];for(const f in l){const d=t.getValue(f,(o=t.latestValues[f])!==null&&o!==void 0?o:null),h=l[f];if(h===void 0||u&&sd(u,f))continue;const p={delay:n,...Vi(s||{},f)};let g=!1;if(window.MotionHandoffAnimation){const v=vo(t);if(v){const w=window.MotionHandoffAnimation(v,f,U);w!==null&&(p.startTime=w,g=!0)}}Hn(t,f),d.start(Wi(f,d,h,t.shouldReduceMotion&&go.has(f)?{type:!1}:p,t,g));const S=d.animation;S&&c.push(S)}return a&&Promise.all(c).then(()=>{U.update(()=>{a&&Fi(t,a)})}),c}function ti(t,e,n={}){var i;const r=Me(t,e,n.type==="exit"?(i=t.presenceContext)===null||i===void 0?void 0:i.custom:void 0);let{transition:o=t.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(o=n.transitionOverride);const s=r?()=>Promise.all(Yo(t,r,n)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(c=0)=>{const{delayChildren:u=0,staggerChildren:f,staggerDirection:d}=o;return od(t,e,u+c,f,d,n)}:()=>Promise.resolve(),{when:l}=o;if(l){const[c,u]=l==="beforeChildren"?[s,a]:[a,s];return c().then(()=>u())}else return Promise.all([s(),a(n.delay)])}function od(t,e,n=0,i=0,r=1,o){const s=[],a=(t.variantChildren.size-1)*i,l=r===1?(c=0)=>c*i:(c=0)=>a-c*i;return Array.from(t.variantChildren).sort(ad).forEach((c,u)=>{c.notify("AnimationStart",e),s.push(ti(c,e,{...o,delay:n+l(u)}).then(()=>c.notify("AnimationComplete",e)))}),Promise.all(s)}function ad(t,e){return t.sortNodePosition(e)}function qo(t,e,n={}){t.notify("AnimationStart",e);let i;if(Array.isArray(e)){const r=e.map(o=>ti(t,o,n));i=Promise.all(r)}else if(typeof e=="string")i=ti(t,e,n);else{const r=typeof e=="function"?Me(t,e,n.custom):e;i=Promise.all(Yo(t,r,n))}return i.then(()=>{t.notify("AnimationComplete",e)})}function Xo(t,e){if(!Array.isArray(e))return!1;const 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}const ld=mi.length;function Zo(t){if(!t)return;if(!t.isControllingVariants){const n=t.parent?Zo(t.parent)||{}:{};return t.props.initial!==void 0&&(n.initial=t.props.initial),n}const e={};for(let n=0;n<ld;n++){const i=mi[n],r=t.props[i];(Ee(r)||r===!1)&&(e[i]=r)}return e}const cd=[...pi].reverse(),ud=pi.length;function fd(t){return e=>Promise.all(e.map(({animation:n,options:i})=>qo(t,n,i)))}function dd(t){let e=fd(t),n=Fr(),i=!0;const r=l=>(c,u)=>{var f;const d=Me(t,u,l==="exit"?(f=t.presenceContext)===null||f===void 0?void 0:f.custom:void 0);if(d){const{transition:h,transitionEnd:p,...g}=d;c={...c,...g,...p}}return c};function o(l){e=l(t)}function s(l){const{props:c}=t,u=Zo(t.parent)||{},f=[],d=new Set;let h={},p=1/0;for(let S=0;S<ud;S++){const v=cd[S],w=n[v],T=c[v]!==void 0?c[v]:u[v],V=Ee(T),m=v===l?w.isActive:null;m===!1&&(p=S);let R=T===u[v]&&T!==c[v]&&V;if(R&&i&&t.manuallyAnimateOnMount&&(R=!1),w.protectedKeys={...h},!w.isActive&&m===null||!T&&!w.prevProp||yn(T)||typeof T=="boolean")continue;const D=hd(w.prevProp,T);let y=D||v===l&&w.isActive&&!R&&V||S>p&&V,b=!1;const x=Array.isArray(T)?T:[T];let C=x.reduce(r(v),{});m===!1&&(C={});const{prevResolvedValues:k={}}=w,G={...k,...C},X=F=>{y=!0,d.has(F)&&(b=!0,d.delete(F)),w.needsAnimating[F]=!0;const N=t.getValue(F);N&&(N.liveStyle=!1)};for(const F in G){const N=C[F],at=k[F];if(h.hasOwnProperty(F))continue;let rt=!1;Wn(N)&&Wn(at)?rt=!Xo(N,at):rt=N!==at,rt?N!=null?X(F):d.add(F):N!==void 0&&d.has(F)?X(F):w.protectedKeys[F]=!0}w.prevProp=T,w.prevResolvedValues=C,w.isActive&&(h={...h,...C}),i&&t.blockInitialAnimation&&(y=!1),y&&(!(R&&D)||b)&&f.push(...x.map(F=>({animation:F,options:{type:v}})))}if(d.size){const S={};if(typeof c.initial!="boolean"){const v=Me(t,Array.isArray(c.initial)?c.initial[0]:c.initial);v&&v.transition&&(S.transition=v.transition)}d.forEach(v=>{const w=t.getBaseTarget(v),T=t.getValue(v);T&&(T.liveStyle=!0),S[v]=w??null}),f.push({animation:S})}let g=!!f.length;return i&&(c.initial===!1||c.initial===c.animate)&&!t.manuallyAnimateOnMount&&(g=!1),i=!1,g?e(f):Promise.resolve()}function a(l,c){var u;if(n[l].isActive===c)return Promise.resolve();(u=t.variantChildren)===null||u===void 0||u.forEach(d=>{var h;return(h=d.animationState)===null||h===void 0?void 0:h.setActive(l,c)}),n[l].isActive=c;const f=s(l);for(const d in n)n[d].protectedKeys={};return f}return{animateChanges:s,setActive:a,setAnimateFunction:o,getState:()=>n,reset:()=>{n=Fr(),i=!0}}}function hd(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!Xo(e,t):!1}function Wt(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Fr(){return{animate:Wt(!0),whileInView:Wt(),whileHover:Wt(),whileTap:Wt(),whileDrag:Wt(),whileFocus:Wt(),exit:Wt()}}class _t{constructor(e){this.isMounted=!1,this.node=e}update(){}}class pd extends _t{constructor(e){super(e),e.animationState||(e.animationState=dd(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();yn(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:n}=this.node.prevProps||{};e!==n&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),(e=this.unmountControls)===null||e===void 0||e.call(this)}}let md=0;class gd extends _t{constructor(){super(...arguments),this.id=md++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===i)return;const r=this.node.animationState.setActive("exit",!e);n&&!e&&r.then(()=>{n(this.id)})}mount(){const{register:e,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),e&&(this.unmount=e(this.id))}unmount(){}}const yd={animation:{Feature:pd},exit:{Feature:gd}};function Oe(t,e,n,i={passive:!0}){return t.addEventListener(e,n,i),()=>t.removeEventListener(e,n)}function je(t){return{point:{x:t.pageX,y:t.pageY}}}const vd=t=>e=>Di(e)&&t(e,je(e));function Zt(t,e,n,i){return Oe(t,e,vd(n),i)}function Jo({top:t,left:e,right:n,bottom:i}){return{x:{min:e,max:n},y:{min:t,max:i}}}function xd({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function bd(t,e){if(!e)return t;const 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}}const Qo=1e-4,Sd=1-Qo,wd=1+Qo,ta=.01,Td=0-ta,Cd=0+ta;function ot(t){return t.max-t.min}function Pd(t,e,n){return Math.abs(t-e)<=n}function Ir(t,e,n,i=.5){t.origin=i,t.originPoint=H(e.min,e.max,t.origin),t.scale=ot(n)/ot(e),t.translate=H(n.min,n.max,t.origin)-t.originPoint,(t.scale>=Sd&&t.scale<=wd||isNaN(t.scale))&&(t.scale=1),(t.translate>=Td&&t.translate<=Cd||isNaN(t.translate))&&(t.translate=0)}function Se(t,e,n,i){Ir(t.x,e.x,n.x,i?i.originX:void 0),Ir(t.y,e.y,n.y,i?i.originY:void 0)}function Br(t,e,n){t.min=n.min+e.min,t.max=t.min+ot(e)}function Ad(t,e,n){Br(t.x,e.x,n.x),Br(t.y,e.y,n.y)}function $r(t,e,n){t.min=e.min-n.min,t.max=t.min+ot(e)}function we(t,e,n){$r(t.x,e.x,n.x),$r(t.y,e.y,n.y)}const jr=()=>({translate:0,scale:1,origin:0,originPoint:0}),Jt=()=>({x:jr(),y:jr()}),_r=()=>({min:0,max:0}),Y=()=>({x:_r(),y:_r()});function yt(t){return[t("x"),t("y")]}function Dn(t){return t===void 0||t===1}function ei({scale:t,scaleX:e,scaleY:n}){return!Dn(t)||!Dn(e)||!Dn(n)}function Gt(t){return ei(t)||ea(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function ea(t){return Nr(t.x)||Nr(t.y)}function Nr(t){return t&&t!=="0%"}function un(t,e,n){const i=t-n,r=e*i;return n+r}function Ur(t,e,n,i,r){return r!==void 0&&(t=un(t,r,i)),un(t,n,i)+e}function ni(t,e=0,n=1,i,r){t.min=Ur(t.min,e,n,i,r),t.max=Ur(t.max,e,n,i,r)}function na(t,{x:e,y:n}){ni(t.x,e.translate,e.scale,e.originPoint),ni(t.y,n.translate,n.scale,n.originPoint)}const zr=.999999999999,Wr=1.0000000000001;function Ed(t,e,n,i=!1){const r=n.length;if(!r)return;e.x=e.y=1;let o,s;for(let a=0;a<r;a++){o=n[a],s=o.projectionDelta;const{visualElement:l}=o.options;l&&l.props.style&&l.props.style.display==="contents"||(i&&o.options.layoutScroll&&o.scroll&&o!==o.root&&te(t,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),s&&(e.x*=s.x.scale,e.y*=s.y.scale,na(t,s)),i&&Gt(o.latestValues)&&te(t,o.latestValues))}e.x<Wr&&e.x>zr&&(e.x=1),e.y<Wr&&e.y>zr&&(e.y=1)}function Qt(t,e){t.min=t.min+e,t.max=t.max+e}function Gr(t,e,n,i,r=.5){const o=H(t.min,t.max,r);ni(t,e,n,o,i)}function te(t,e){Gr(t.x,e.x,e.scaleX,e.scale,e.originX),Gr(t.y,e.y,e.scaleY,e.scale,e.originY)}function ia(t,e){return Jo(bd(t.getBoundingClientRect(),e))}function Vd(t,e,n){const i=ia(t,n),{scroll:r}=e;return r&&(Qt(i.x,r.offset.x),Qt(i.y,r.offset.y)),i}const Kr=(t,e)=>Math.abs(t-e);function Rd(t,e){const n=Kr(t.x,e.x),i=Kr(t.y,e.y);return Math.sqrt(n**2+i**2)}class ra{constructor(e,n,{transformPagePoint:i,dragSnapToOrigin:r=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const u=On(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,d=Rd(u.offset,{x:0,y:0})>=3;if(!f&&!d)return;const{point:h}=u,{timestamp:p}=J;this.history.push({...h,timestamp:p});const{onStart:g,onMove:S}=this.handlers;f||(g&&g(this.lastMoveEvent,u),this.startEvent=this.lastMoveEvent),S&&S(this.lastMoveEvent,u)},this.handlePointerMove=(u,f)=>{if(u.target instanceof Element&&u.target.hasPointerCapture&&u.pointerId!==void 0)try{if(!u.target.hasPointerCapture(u.pointerId))return}catch{}this.lastMoveEvent=u,this.lastMoveEventInfo=Ln(f,this.transformPagePoint),U.update(this.updatePoint,!0)},this.handlePointerUp=(u,f)=>{an(u,"release"),this.end();const{onEnd:d,onSessionEnd:h,resumeAnimation:p}=this.handlers;if(this.dragSnapToOrigin&&p&&p(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const g=On(u.type==="pointercancel"||u.type==="lostpointercapture"?this.lastMoveEventInfo:Ln(f,this.transformPagePoint),this.history);this.startEvent&&d&&d(u,g),h&&h(u,g)},!Di(e))return;this.dragSnapToOrigin=r,this.handlers=n,this.transformPagePoint=i;const o=je(e),s=Ln(o,this.transformPagePoint),{point:a}=s,{timestamp:l}=J;this.history=[{...a,timestamp:l}];const{onSessionStart:c}=n;c&&c(e,On(s,this.history)),an(e,"set"),this.removeListeners=$e(Zt(e.currentTarget,"pointermove",this.handlePointerMove),Zt(e.currentTarget,"pointerup",this.handlePointerUp),Zt(e.currentTarget,"pointercancel",this.handlePointerUp),Zt(e.currentTarget,"lostpointercapture",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),$t(this.updatePoint)}}function Ln(t,e){return e?{point:e(t.point)}:t}function Hr(t,e){return{x:t.x-e.x,y:t.y-e.y}}function On({point:t},e){return{point:t,delta:Hr(t,sa(e)),offset:Hr(t,Md(e)),velocity:Dd(e,.1)}}function Md(t){return t[0]}function sa(t){return t[t.length-1]}function Dd(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,i=null;const r=sa(t);for(;n>=0&&(i=t[n],!(r.timestamp-i.timestamp>Et(e)));)n--;if(!i)return{x:0,y:0};const o=Dt(r.timestamp-i.timestamp);if(o===0)return{x:0,y:0};const s={x:(r.x-i.x)/o,y:(r.y-i.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function Ld(t,{min:e,max:n},i){return e!==void 0&&t<e?t=i?H(e,t,i.min):Math.max(t,e):n!==void 0&&t>n&&(t=i?H(n,t,i.max):Math.min(t,n)),t}function Yr(t,e,n){return{min:e!==void 0?t.min+e:void 0,max:n!==void 0?t.max+n-(t.max-t.min):void 0}}function Od(t,{top:e,left:n,bottom:i,right:r}){return{x:Yr(t.x,n,r),y:Yr(t.y,e,i)}}function qr(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 kd(t,e){return{x:qr(t.x,e.x),y:qr(t.y,e.y)}}function Fd(t,e){let n=.5;const i=ot(t),r=ot(e);return r>i?n=oe(e.min,e.max-i,t.min):i>r&&(n=oe(t.min,t.max-r,e.min)),Lt(0,1,n)}function Id(t,e){const n={};return e.min!==void 0&&(n.min=e.min-t.min),e.max!==void 0&&(n.max=e.max-t.min),n}const ii=.35;function Bd(t=ii){return t===!1?t=0:t===!0&&(t=ii),{x:Xr(t,"left","right"),y:Xr(t,"top","bottom")}}function Xr(t,e,n){return{min:Zr(t,e),max:Zr(t,n)}}function Zr(t,e){return typeof t=="number"?t:t[e]||0}const $d=new WeakMap;class jd{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Y(),this.visualElement=e}start(e,{snapToCursor:n=!1}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const r=u=>{const{dragSnapToOrigin:f}=this.getProps();f?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(je(u).point)},o=(u,f)=>{const{drag:d,dragPropagation:h,onDragStart:p}=this.getProps();if(d&&!h&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Lu(d),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),yt(S=>{let v=this.getAxisMotionValue(S).get()||0;if(Vt.test(v)){const{projection:w}=this.visualElement;if(w&&w.layout){const T=w.layout.layoutBox[S];T&&(v=ot(T)*(parseFloat(v)/100))}}this.originPoint[S]=v}),p&&U.postRender(()=>p(u,f)),Hn(this.visualElement,"transform");const{animationState:g}=this.visualElement;g&&g.setActive("whileDrag",!0)},s=(u,f)=>{const{dragPropagation:d,dragDirectionLock:h,onDirectionLock:p,onDrag:g}=this.getProps();if(!d&&!this.openDragLock)return;const{offset:S}=f;if(h&&this.currentDirection===null){this.currentDirection=_d(S),this.currentDirection!==null&&p&&p(this.currentDirection);return}this.updateAxis("x",f.point,S),this.updateAxis("y",f.point,S),this.visualElement.render(),g&&g(u,f)},a=(u,f)=>this.stop(u,f),l=()=>yt(u=>{var f;return this.getAnimationState(u)==="paused"&&((f=this.getAxisMotionValue(u).animation)===null||f===void 0?void 0:f.play())}),{dragSnapToOrigin:c}=this.getProps();this.panSession=new ra(e,{onSessionStart:r,onStart:o,onMove:s,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c})}stop(e,n){const i=this.isDragging;if(this.cancel(),!i)return;const{velocity:r}=n;this.startAnimation(r);const{onDragEnd:o}=this.getProps();o&&U.postRender(()=>o(e,n))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(e,n,i){const{drag:r}=this.getProps();if(!i||!Ge(e,r,this.currentDirection))return;const o=this.getAxisMotionValue(e);let s=this.originPoint[e]+i[e];this.constraints&&this.constraints[e]&&(s=Ld(s,this.constraints[e],this.elastic[e])),o.set(s)}resolveConstraints(){var e;const{dragConstraints:n,dragElastic:i}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(e=this.visualElement.projection)===null||e===void 0?void 0:e.layout,o=this.constraints;n&&qt(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&r?this.constraints=Od(r.layoutBox,n):this.constraints=!1,this.elastic=Bd(i),o!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&yt(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=Id(r.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!qt(e))return!1;const i=e.current;Mt(i!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:r}=this.visualElement;if(!r||!r.layout)return!1;const o=Vd(i,r.root,this.visualElement.getTransformPagePoint());let s=kd(r.layout.layoutBox,o);if(n){const a=n(xd(s));this.hasMutatedConstraints=!!a,a&&(s=Jo(a))}return s}startAnimation(e){const{drag:n,dragMomentum:i,dragElastic:r,dragTransition:o,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},c=yt(u=>{if(!Ge(u,n,this.currentDirection))return;let f=l[u]||{};s&&(f={min:0,max:0});const d=r?200:1e6,h=r?40:1e7,p={type:"inertia",velocity:i?e[u]:0,bounceStiffness:d,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...o,...f};return this.startAxisValueAnimation(u,p)});return Promise.all(c).then(a)}startAxisValueAnimation(e,n){const i=this.getAxisMotionValue(e);return Hn(this.visualElement,e),i.start(Wi(e,i,0,n,this.visualElement,!1))}stopAnimation(){yt(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){yt(e=>{var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(e){var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(e){const n=`_drag${e.toUpperCase()}`,i=this.visualElement.getProps(),r=i[n];return r||this.visualElement.getValue(e,(i.initial?i.initial[e]:void 0)||0)}snapToCursor(e){yt(n=>{const{drag:i}=this.getProps();if(!Ge(n,i,this.currentDirection))return;const{projection:r}=this.visualElement,o=this.getAxisMotionValue(n);if(r&&r.layout){const{min:s,max:a}=r.layout.layoutBox[n];o.set(e[n]-H(s,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:i}=this.visualElement;if(!qt(n)||!i||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};yt(s=>{const a=this.getAxisMotionValue(s);if(a&&this.constraints!==!1){const l=a.get();r[s]=Fd({min:l,max:l},this.constraints[s])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),yt(s=>{if(!Ge(s,e,null))return;const a=this.getAxisMotionValue(s),{min:l,max:c}=this.constraints[s];a.set(H(l,c,r[s]))})}addListeners(){if(!this.visualElement.current)return;$d.set(this.visualElement,this);const e=this.visualElement.current,n=Zt(e,"pointerdown",l=>{const{drag:c,dragListener:u=!0}=this.getProps();c&&u&&this.start(l)}),i=()=>{const{dragConstraints:l}=this.getProps();qt(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:r}=this.visualElement,o=r.addEventListener("measure",i);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),U.read(i);const s=Oe(window,"resize",()=>this.scalePositionWithinConstraints()),a=r.addEventListener("didUpdate",({delta:l,hasLayoutChanged:c})=>{this.isDragging&&c&&(yt(u=>{const f=this.getAxisMotionValue(u);f&&(this.originPoint[u]+=l[u].translate,f.set(f.get()+l[u].translate))}),this.visualElement.render())});return()=>{s(),n(),o(),a&&a()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:i=!1,dragPropagation:r=!1,dragConstraints:o=!1,dragElastic:s=ii,dragMomentum:a=!0}=e;return{...e,drag:n,dragDirectionLock:i,dragPropagation:r,dragConstraints:o,dragElastic:s,dragMomentum:a}}}function Ge(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function _d(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class Nd extends _t{constructor(e){super(e),this.removeGroupControls=ut,this.removeListeners=ut,this.controls=new jd(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ut}unmount(){this.removeGroupControls(),this.removeListeners()}}const Jr=t=>(e,n)=>{t&&U.postRender(()=>t(e,n))};class Ud extends _t{constructor(){super(...arguments),this.removePointerDownListener=ut}onPointerDown(e){this.session=new ra(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:i,onPanEnd:r}=this.node.getProps();return{onSessionStart:Jr(e),onStart:Jr(n),onMove:i,onEnd:(o,s)=>{delete this.session,r&&U.postRender(()=>r(o,s))}}}mount(){this.removePointerDownListener=Zt(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Ze={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Qr(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const me={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(O.test(t))t=parseFloat(t);else return t;const n=Qr(t,e.target.x),i=Qr(t,e.target.y);return`${n}% ${i}%`}},zd={correct:(t,{treeScale:e,projectionDelta:n})=>{const i=t,r=jt.parse(t);if(r.length>5)return i;const o=jt.createTransformer(t),s=typeof r[0]!="number"?1:0,a=n.x.scale*e.x,l=n.y.scale*e.y;r[0+s]/=a,r[1+s]/=l;const c=H(a,l,.5);return typeof r[2+s]=="number"&&(r[2+s]/=c),typeof r[3+s]=="number"&&(r[3+s]/=c),o(r)}};class Wd extends A.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:i,layoutId:r}=this.props,{projection:o}=e;Xc(Gd),o&&(n.group&&n.group.add(o),i&&i.register&&r&&i.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),Ze.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:i,drag:r,isPresent:o}=this.props,s=i.projection;return s&&(s.isPresent=o,r||e.layoutDependency!==n||n===void 0?s.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?s.promote():s.relegate()||U.postRender(()=>{const a=s.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),yi.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:i}=this.props,{projection:r}=e;r&&(r.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(r),i&&i.deregister&&i.deregister(r))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function oa(t){const[e,n]=Vc(),i=A.useContext(js);return Je.jsx(Wd,{...t,layoutGroup:i,switchLayoutGroup:A.useContext(Ys),isPresent:e,safeToRemove:n})}const Gd={borderRadius:{...me,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:me,borderTopRightRadius:me,borderBottomLeftRadius:me,borderBottomRightRadius:me,boxShadow:zd};function Kd(t,e,n){const i=it(t)?t:De(t);return i.start(Wi("",i,e,n)),i.animation}function Hd(t){return t instanceof SVGElement&&t.tagName!=="svg"}const Yd=(t,e)=>t.depth-e.depth;class qd{constructor(){this.children=[],this.isDirty=!1}add(e){Li(this.children,e),this.isDirty=!0}remove(e){Oi(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Yd),this.isDirty=!1,this.children.forEach(e)}}function Xd(t,e){const n=Rt.now(),i=({timestamp:r})=>{const o=r-n;o>=e&&($t(i),t(o-e))};return U.read(i,!0),()=>$t(i)}const aa=["TopLeft","TopRight","BottomLeft","BottomRight"],Zd=aa.length,ts=t=>typeof t=="string"?parseFloat(t):t,es=t=>typeof t=="number"||O.test(t);function Jd(t,e,n,i,r,o){r?(t.opacity=H(0,n.opacity!==void 0?n.opacity:1,Qd(i)),t.opacityExit=H(e.opacity!==void 0?e.opacity:1,0,th(i))):o&&(t.opacity=H(e.opacity!==void 0?e.opacity:1,n.opacity!==void 0?n.opacity:1,i));for(let s=0;s<Zd;s++){const a=`border${aa[s]}Radius`;let l=ns(e,a),c=ns(n,a);if(l===void 0&&c===void 0)continue;l||(l=0),c||(c=0),l===0||c===0||es(l)===es(c)?(t[a]=Math.max(H(ts(l),ts(c),i),0),(Vt.test(c)||Vt.test(l))&&(t[a]+="%")):t[a]=c}(e.rotate||n.rotate)&&(t.rotate=H(e.rotate||0,n.rotate||0,i))}function ns(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const Qd=la(0,.5,Po),th=la(.5,.95,ut);function la(t,e,n){return i=>i<t?0:i>e?1:n(oe(t,e,i))}function is(t,e){t.min=e.min,t.max=e.max}function gt(t,e){is(t.x,e.x),is(t.y,e.y)}function rs(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function ss(t,e,n,i,r){return t-=e,t=un(t,1/n,i),r!==void 0&&(t=un(t,1/r,i)),t}function eh(t,e=0,n=1,i=.5,r,o=t,s=t){if(Vt.test(e)&&(e=parseFloat(e),e=H(s.min,s.max,e/100)-s.min),typeof e!="number")return;let a=H(o.min,o.max,i);t===o&&(a-=e),t.min=ss(t.min,e,n,a,r),t.max=ss(t.max,e,n,a,r)}function os(t,e,[n,i,r],o,s){eh(t,e[n],e[i],e[r],e.scale,o,s)}const nh=["x","scaleX","originX"],ih=["y","scaleY","originY"];function as(t,e,n,i){os(t.x,e,nh,n?n.x:void 0,i?i.x:void 0),os(t.y,e,ih,n?n.y:void 0,i?i.y:void 0)}function ls(t){return t.translate===0&&t.scale===1}function ca(t){return ls(t.x)&&ls(t.y)}function cs(t,e){return t.min===e.min&&t.max===e.max}function rh(t,e){return cs(t.x,e.x)&&cs(t.y,e.y)}function us(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function ua(t,e){return us(t.x,e.x)&&us(t.y,e.y)}function fs(t){return ot(t.x)/ot(t.y)}function ds(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class sh{constructor(){this.members=[]}add(e){Li(this.members,e),e.scheduleRender()}remove(e){if(Oi(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){const n=this.members.findIndex(r=>e===r);if(n===0)return!1;let i;for(let r=n;r>=0;r--){const o=this.members[r];if(o.isPresent!==!1){i=o;break}}return i?(this.promote(i),!0):!1}promote(e,n){const i=this.lead;if(e!==i&&(this.prevLead=i,this.lead=e,e.show(),i)){i.instance&&i.scheduleRender(),e.scheduleRender(),e.resumeFrom=i,n&&(e.resumeFrom.preserveOpacity=!0),i.snapshot&&(e.snapshot=i.snapshot,e.snapshot.latestValues=i.animationValues||i.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:r}=e.options;r===!1&&i.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:n,resumingFrom:i}=e;n.onExitComplete&&n.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function oh(t,e,n){let i="";const r=t.x.translate/e.x,o=t.y.translate/e.y,s=(n==null?void 0:n.z)||0;if((r||o||s)&&(i=`translate3d(${r}px, ${o}px, ${s}px) `),(e.x!==1||e.y!==1)&&(i+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:c,rotate:u,rotateX:f,rotateY:d,skewX:h,skewY:p}=n;c&&(i=`perspective(${c}px) ${i}`),u&&(i+=`rotate(${u}deg) `),f&&(i+=`rotateX(${f}deg) `),d&&(i+=`rotateY(${d}deg) `),h&&(i+=`skewX(${h}deg) `),p&&(i+=`skewY(${p}deg) `)}const a=t.x.scale*e.x,l=t.y.scale*e.y;return(a!==1||l!==1)&&(i+=`scale(${a}, ${l})`),i||"none"}const kn=["","X","Y","Z"],ah={visibility:"hidden"},hs=1e3;let lh=0;function Fn(t,e,n,i){const{latestValues:r}=e;r[t]&&(n[t]=r[t],e.setStaticValue(t,0),i&&(i[t]=0))}function fa(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=vo(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:r,layoutId:o}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",U,!(r||o))}const{parent:i}=t;i&&!i.hasCheckedOptimisedAppear&&fa(i)}function da({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:i,resetTransform:r}){return class{constructor(s={},a=e==null?void 0:e()){this.id=lh++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(fh),this.nodes.forEach(gh),this.nodes.forEach(yh),this.nodes.forEach(dh)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new qd)}addEventListener(s,a){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new ki),this.eventHandlers.get(s).add(a)}notifyListeners(s,...a){const l=this.eventHandlers.get(s);l&&l.notify(...a)}hasListeners(s){return this.eventHandlers.has(s)}mount(s,a=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=Hd(s),this.instance=s;const{layoutId:l,layout:c,visualElement:u}=this.options;if(u&&!u.current&&u.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),a&&(c||l)&&(this.isLayoutDirty=!0),t){let f;const d=()=>this.root.updateBlockedByResize=!1;t(s,()=>{this.root.updateBlockedByResize=!0,f&&f(),f=Xd(d,250),Ze.hasAnimatedSinceResize&&(Ze.hasAnimatedSinceResize=!1,this.nodes.forEach(ms))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&u&&(l||c)&&this.addEventListener("didUpdate",({delta:f,hasLayoutChanged:d,hasRelativeLayoutChanged:h,layout:p})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const g=this.options.transition||u.getDefaultTransition()||wh,{onLayoutAnimationStart:S,onLayoutAnimationComplete:v}=u.getProps(),w=!this.targetLayout||!ua(this.targetLayout,p),T=!d&&h;if(this.options.layoutRoot||this.resumeFrom||T||d&&(w||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(f,T);const V={...Vi(g,"layout"),onPlay:S,onComplete:v};(u.shouldReduceMotion||this.options.layoutRoot)&&(V.delay=0,V.type=!1),this.startAnimation(V)}else d||ms(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=p})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,$t(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(vh),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&fa(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u<this.path.length;u++){const f=this.path[u];f.shouldResetTransform=!0,f.updateScroll("snapshot"),f.options.layoutRoot&&f.willUpdate(!1)}const{layoutId:a,layout:l}=this.options;if(a===void 0&&!l)return;const c=this.getTransformTemplate();this.prevTransformTemplateValue=c?c(this.latestValues,""):void 0,this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(ps);return}this.isUpdating||this.nodes.forEach(ph),this.isUpdating=!1,this.nodes.forEach(mh),this.nodes.forEach(ch),this.nodes.forEach(uh),this.clearAllSnapshots();const a=Rt.now();J.delta=Lt(0,1e3/60,a-J.timestamp),J.timestamp=a,J.isProcessing=!0,An.update.process(J),An.preRender.process(J),An.render.process(J),J.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,yi.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(hh),this.sharedNodes.forEach(xh)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,U.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){U.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!ot(this.snapshot.measuredBox.x)&&!ot(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 l=0;l<this.path.length;l++)this.path[l].updateScroll();const s=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Y(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,s?s.layoutBox:void 0)}updateScroll(s="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(a=!1),a){const l=i(this.instance);this.scroll={animationId:this.root.animationId,phase:s,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!r)return;const s=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!ca(this.projectionDelta),l=this.getTransformTemplate(),c=l?l(this.latestValues,""):void 0,u=c!==this.prevTransformTemplateValue;s&&(a||Gt(this.latestValues)||u)&&(r(this.instance,c),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return s&&(l=this.removeTransform(l)),Th(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var s;const{visualElement:a}=this.options;if(!a)return Y();const l=a.measureViewportBox();if(!(((s=this.scroll)===null||s===void 0?void 0:s.wasRoot)||this.path.some(Ch))){const{scroll:u}=this.root;u&&(Qt(l.x,u.offset.x),Qt(l.y,u.offset.y))}return l}removeElementScroll(s){var a;const l=Y();if(gt(l,s),!((a=this.scroll)===null||a===void 0)&&a.wasRoot)return l;for(let c=0;c<this.path.length;c++){const u=this.path[c],{scroll:f,options:d}=u;u!==this.root&&f&&d.layoutScroll&&(f.wasRoot&&gt(l,s),Qt(l.x,f.offset.x),Qt(l.y,f.offset.y))}return l}applyTransform(s,a=!1){const l=Y();gt(l,s);for(let c=0;c<this.path.length;c++){const u=this.path[c];!a&&u.options.layoutScroll&&u.scroll&&u!==u.root&&te(l,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),Gt(u.latestValues)&&te(l,u.latestValues)}return Gt(this.latestValues)&&te(l,this.latestValues),l}removeTransform(s){const a=Y();gt(a,s);for(let l=0;l<this.path.length;l++){const c=this.path[l];if(!c.instance||!Gt(c.latestValues))continue;ei(c.latestValues)&&c.updateSnapshot();const u=Y(),f=c.measurePageBox();gt(u,f),as(a,c.latestValues,c.snapshot?c.snapshot.layoutBox:void 0,u)}return Gt(this.latestValues)&&as(a,this.latestValues),a}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(s){this.options={...this.options,...s,crossfade:s.crossfade!==void 0?s.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==J.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!1){var a;const l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);const c=!!this.resumingFrom||this!==l;if(!(s||c&&this.isSharedProjectionDirty||this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:f,layoutId:d}=this.options;if(!(!this.layout||!(f||d))){if(this.resolvedRelativeTargetAt=J.timestamp,!this.targetDelta&&!this.relativeTarget){const h=this.getClosestProjectingParent();h&&h.layout&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Y(),this.relativeTargetOrigin=Y(),we(this.relativeTargetOrigin,this.layout.layoutBox,h.layout.layoutBox),gt(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Y(),this.targetWithTransforms=Y()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Ad(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):gt(this.target,this.layout.layoutBox),na(this.target,this.targetDelta)):gt(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const h=this.getClosestProjectingParent();h&&!!h.resumingFrom==!!this.resumingFrom&&!h.options.layoutScroll&&h.target&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Y(),this.relativeTargetOrigin=Y(),we(this.relativeTargetOrigin,this.target,h.target),gt(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||ei(this.parent.latestValues)||ea(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var s;const a=this.getLead(),l=!!this.resumingFrom||this!==a;let c=!0;if((this.isProjectionDirty||!((s=this.parent)===null||s===void 0)&&s.isProjectionDirty)&&(c=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===J.timestamp&&(c=!1),c)return;const{layout:u,layoutId:f}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||f))return;gt(this.layoutCorrected,this.layout.layoutBox);const d=this.treeScale.x,h=this.treeScale.y;Ed(this.layoutCorrected,this.treeScale,this.path,l),a.layout&&!a.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(a.target=a.layout.layoutBox,a.targetWithTransforms=Y());const{target:p}=a;if(!p){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(rs(this.prevProjectionDelta.x,this.projectionDelta.x),rs(this.prevProjectionDelta.y,this.projectionDelta.y)),Se(this.projectionDelta,this.layoutCorrected,p,this.latestValues),(this.treeScale.x!==d||this.treeScale.y!==h||!ds(this.projectionDelta.x,this.prevProjectionDelta.x)||!ds(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",p))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){var a;if((a=this.options.visualElement)===null||a===void 0||a.scheduleRender(),s){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Jt(),this.projectionDelta=Jt(),this.projectionDeltaWithTransform=Jt()}setAnimationOrigin(s,a=!1){const l=this.snapshot,c=l?l.latestValues:{},u={...this.latestValues},f=Jt();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const d=Y(),h=l?l.source:void 0,p=this.layout?this.layout.source:void 0,g=h!==p,S=this.getStack(),v=!S||S.members.length<=1,w=!!(g&&!v&&this.options.crossfade===!0&&!this.path.some(Sh));this.animationProgress=0;let T;this.mixTargetDelta=V=>{const m=V/1e3;gs(f.x,s.x,m),gs(f.y,s.y,m),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(we(d,this.layout.layoutBox,this.relativeParent.layout.layoutBox),bh(this.relativeTarget,this.relativeTargetOrigin,d,m),T&&rh(this.relativeTarget,T)&&(this.isProjectionDirty=!1),T||(T=Y()),gt(T,this.relativeTarget)),g&&(this.animationValues=u,Jd(u,c,this.latestValues,m,w,v)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=m},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&($t(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=U.update(()=>{Ze.hasAnimatedSinceResize=!0,this.currentAnimation=Kd(0,hs,{...s,onUpdate:a=>{this.mixTargetDelta(a),s.onUpdate&&s.onUpdate(a)},onStop:()=>{},onComplete:()=>{s.onComplete&&s.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(hs),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:a,target:l,layout:c,latestValues:u}=s;if(!(!a||!l||!c)){if(this!==s&&this.layout&&c&&ha(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||Y();const f=ot(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+f;const d=ot(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+d}gt(a,l),te(a,u),Se(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new sh),this.sharedNodes.get(s).add(a);const c=a.options.initialPromotionConfig;a.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(a):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var s;const{layoutId:a}=this.options;return a?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:a}=this.options;return a?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:a,preserveFollowOpacity:l}={}){const c=this.getStack();c&&c.promote(this,l),s&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetSkewAndRotation(){const{visualElement:s}=this.options;if(!s)return;let a=!1;const{latestValues:l}=s;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const c={};l.z&&Fn("z",s,c,this.animationValues);for(let u=0;u<kn.length;u++)Fn(`rotate${kn[u]}`,s,c,this.animationValues),Fn(`skew${kn[u]}`,s,c,this.animationValues);s.render();for(const u in c)s.setStaticValue(u,c[u]),this.animationValues&&(this.animationValues[u]=c[u]);s.scheduleRender()}getProjectionStyles(s){var a,l;if(!this.instance||this.isSVG)return;if(!this.isVisible)return ah;const c={visibility:""},u=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,c.opacity="",c.pointerEvents=qe(s==null?void 0:s.pointerEvents)||"",c.transform=u?u(this.latestValues,""):"none",c;const f=this.getLead();if(!this.projectionDelta||!this.layout||!f.target){const g={};return this.options.layoutId&&(g.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,g.pointerEvents=qe(s==null?void 0:s.pointerEvents)||""),this.hasProjected&&!Gt(this.latestValues)&&(g.transform=u?u({},""):"none",this.hasProjected=!1),g}const d=f.animationValues||f.latestValues;this.applyTransformsToTarget(),c.transform=oh(this.projectionDeltaWithTransform,this.treeScale,d),u&&(c.transform=u(d,c.transform));const{x:h,y:p}=this.projectionDelta;c.transformOrigin=`${h.origin*100}% ${p.origin*100}% 0`,f.animationValues?c.opacity=f===this?(l=(a=d.opacity)!==null&&a!==void 0?a:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:d.opacityExit:c.opacity=f===this?d.opacity!==void 0?d.opacity:"":d.opacityExit!==void 0?d.opacityExit:0;for(const g in Ve){if(d[g]===void 0)continue;const{correct:S,applyTo:v,isCSSVariable:w}=Ve[g],T=c.transform==="none"?d[g]:S(d[g],f);if(v){const V=v.length;for(let m=0;m<V;m++)c[v[m]]=T}else w?this.options.visualElement.renderState.vars[g]=T:c[g]=T}return this.options.layoutId&&(c.pointerEvents=f===this?qe(s==null?void 0:s.pointerEvents)||"":"none"),c}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>{var a;return(a=s.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(ps),this.root.sharedNodes.clear()}}}function ch(t){t.updateLayout()}function uh(t){var e;const n=((e=t.resumeFrom)===null||e===void 0?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&n&&t.hasListeners("didUpdate")){const{layoutBox:i,measuredBox:r}=t.layout,{animationType:o}=t.options,s=n.source!==t.layout.source;o==="size"?yt(f=>{const d=s?n.measuredBox[f]:n.layoutBox[f],h=ot(d);d.min=i[f].min,d.max=d.min+h}):ha(o,n.layoutBox,i)&&yt(f=>{const d=s?n.measuredBox[f]:n.layoutBox[f],h=ot(i[f]);d.max=d.min+h,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[f].max=t.relativeTarget[f].min+h)});const a=Jt();Se(a,i,n.layoutBox);const l=Jt();s?Se(l,t.applyTransform(r,!0),n.measuredBox):Se(l,i,n.layoutBox);const c=!ca(a);let u=!1;if(!t.resumeFrom){const f=t.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:d,layout:h}=f;if(d&&h){const p=Y();we(p,n.layoutBox,d.layoutBox);const g=Y();we(g,i,h.layoutBox),ua(p,g)||(u=!0),f.options.layoutRoot&&(t.relativeTarget=g,t.relativeTargetOrigin=p,t.relativeParent=f)}}}t.notifyListeners("didUpdate",{layout:i,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:c,hasRelativeLayoutChanged:u})}else if(t.isLead()){const{onExitComplete:i}=t.options;i&&i()}t.options.transition=void 0}function fh(t){t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function dh(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function hh(t){t.clearSnapshot()}function ps(t){t.clearMeasurements()}function ph(t){t.isLayoutDirty=!1}function mh(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function ms(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function gh(t){t.resolveTargetDelta()}function yh(t){t.calcProjection()}function vh(t){t.resetSkewAndRotation()}function xh(t){t.removeLeadSnapshot()}function gs(t,e,n){t.translate=H(e.translate,0,n),t.scale=H(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function ys(t,e,n,i){t.min=H(e.min,n.min,i),t.max=H(e.max,n.max,i)}function bh(t,e,n,i){ys(t.x,e.x,n.x,i),ys(t.y,e.y,n.y,i)}function Sh(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const wh={duration:.45,ease:[.4,0,.1,1]},vs=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),xs=vs("applewebkit/")&&!vs("chrome/")?Math.round:ut;function bs(t){t.min=xs(t.min),t.max=xs(t.max)}function Th(t){bs(t.x),bs(t.y)}function ha(t,e,n){return t==="position"||t==="preserve-aspect"&&!Pd(fs(e),fs(n),.2)}function Ch(t){var e;return t!==t.root&&((e=t.scroll)===null||e===void 0?void 0:e.wasRoot)}const Ph=da({attachResizeListener:(t,e)=>Oe(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),In={current:void 0},pa=da({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!In.current){const t=new Ph({});t.mount(window),t.setOptions({layoutScroll:!0}),In.current=t}return In.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),Ah={pan:{Feature:Ud},drag:{Feature:Nd,ProjectionNode:pa,MeasureLayout:oa}};function Ss(t,e,n){const{props:i}=t;t.animationState&&i.whileHover&&t.animationState.setActive("whileHover",n==="Start");const r="onHover"+n,o=i[r];o&&U.postRender(()=>o(e,je(e)))}class Eh extends _t{mount(){const{current:e}=this.node;e&&(this.unmount=Au(e,(n,i)=>(Ss(this.node,i,"Start"),r=>Ss(this.node,r,"End"))))}unmount(){}}class Vh extends _t{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=$e(Oe(this.node.current,"focus",()=>this.onFocus()),Oe(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function ws(t,e,n){const{props:i}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&i.whileTap&&t.animationState.setActive("whileTap",n==="Start");const r="onTap"+(n==="End"?"":n),o=i[r];o&&U.postRender(()=>o(e,je(e)))}class Rh extends _t{mount(){const{current:e}=this.node;e&&(this.unmount=Mu(e,(n,i)=>(ws(this.node,i,"Start"),(r,{success:o})=>ws(this.node,r,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const ri=new WeakMap,Bn=new WeakMap,Mh=t=>{const e=ri.get(t.target);e&&e(t)},Dh=t=>{t.forEach(Mh)};function Lh({root:t,...e}){const n=t||document;Bn.has(n)||Bn.set(n,{});const i=Bn.get(n),r=JSON.stringify(e);return i[r]||(i[r]=new IntersectionObserver(Dh,{root:t,...e})),i[r]}function Oh(t,e,n){const i=Lh(e);return ri.set(t,n),i.observe(t),()=>{ri.delete(t),i.unobserve(t)}}const kh={some:0,all:1};class Fh extends _t{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:n,margin:i,amount:r="some",once:o}=e,s={root:n?n.current:void 0,rootMargin:i,threshold:typeof r=="number"?r:kh[r]},a=l=>{const{isIntersecting:c}=l;if(this.isInView===c||(this.isInView=c,o&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:u,onViewportLeave:f}=this.node.getProps(),d=c?u:f;d&&d(l)};return Oh(this.node.current,s,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(Ih(e,n))&&this.startObserver()}unmount(){}}function Ih({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const Bh={inView:{Feature:Fh},tap:{Feature:Rh},focus:{Feature:Vh},hover:{Feature:Eh}},$h={layout:{ProjectionNode:pa,MeasureLayout:oa}},si={current:null},ma={current:!1};function jh(){if(ma.current=!0,!!di)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>si.current=t.matches;t.addListener(e),e()}else si.current=!1}const _h=[...jo,nt,jt],Nh=t=>_h.find($o(t)),Uh=new WeakMap;function zh(t,e,n){for(const i in e){const r=e[i],o=n[i];if(it(r))t.addValue(i,r),process.env.NODE_ENV==="development"&&mn(r.version==="12.4.7",`Attempting to mix Motion versions ${r.version} with 12.4.7 may not work as expected.`);else if(it(o))t.addValue(i,De(r,{owner:t}));else if(o!==r)if(t.hasValue(i)){const s=t.getValue(i);s.liveStyle===!0?s.jump(r):s.hasAnimated||s.set(r)}else{const s=t.getStaticValue(i);t.addValue(i,De(s!==void 0?s:r,{owner:t}))}}for(const i in n)e[i]===void 0&&t.removeValue(i);return e}const Ts=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Wh{scrapeMotionValuesFromProps(e,n,i){return{}}constructor({parent:e,props:n,presenceContext:i,reducedMotionConfig:r,blockInitialAnimation:o,visualState:s},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Ni,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const h=Rt.now();this.renderScheduledAt<h&&(this.renderScheduledAt=h,U.render(this.render,!1,!0))};const{latestValues:l,renderState:c,onUpdate:u}=s;this.onUpdate=u,this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=c,this.parent=e,this.props=n,this.presenceContext=i,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.options=a,this.blockInitialAnimation=!!o,this.isControllingVariants=vn(n),this.isVariantNode=Ks(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:f,...d}=this.scrapeMotionValuesFromProps(n,{},this);for(const h in d){const p=d[h];l[h]!==void 0&&it(p)&&p.set(l[h],!1)}}mount(e){this.current=e,Uh.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,i)=>this.bindToMotionValue(i,n)),ma.current||jh(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:si.current,process.env.NODE_ENV!=="production"&&mn(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),$t(this.notifyUpdate),$t(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const n=this.features[e];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(e,n){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const i=Yt.has(e);i&&this.onBindTransform&&this.onBindTransform();const r=n.on("change",a=>{this.latestValues[e]=a,this.props.onUpdate&&U.preRender(this.notifyUpdate),i&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);let s;window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,e,n)),this.valueSubscriptions.set(e,()=>{r(),o(),s&&s(),n.owner&&n.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in ae){const n=ae[e];if(!n)continue;const{isEnabled:i,Feature:r}=n;if(!this.features[e]&&r&&i(this.props)&&(this.features[e]=new r(this)),this.features[e]){const o=this.features[e];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Y()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}update(e,n){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let i=0;i<Ts.length;i++){const r=Ts[i];this.propEventSubscriptions[r]&&(this.propEventSubscriptions[r](),delete this.propEventSubscriptions[r]);const o="on"+r,s=e[o];s&&(this.propEventSubscriptions[r]=this.on(r,s))}this.prevMotionValues=zh(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(e),()=>n.variantChildren.delete(e)}addValue(e,n){const i=this.values.get(e);n!==i&&(i&&this.removeValue(e),this.bindToMotionValue(e,n),this.values.set(e,n),this.latestValues[e]=n.get())}removeValue(e){this.values.delete(e);const n=this.valueSubscriptions.get(e);n&&(n(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){if(this.props.values&&this.props.values[e])return this.props.values[e];let i=this.values.get(e);return i===void 0&&n!==void 0&&(i=De(n===null?void 0:n,{owner:this}),this.addValue(e,i)),i}readValue(e,n){var i;let r=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:(i=this.getBaseTargetFromProps(this.props,e))!==null&&i!==void 0?i:this.readValueFromInstance(this.current,e,this.options);return r!=null&&(typeof r=="string"&&(Io(r)||Eo(r))?r=parseFloat(r):!Nh(r)&&jt.test(n)&&(r=Oo(e,n)),this.setBaseTarget(e,it(r)?r.get():r)),it(r)?r.get():r}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){var n;const{initial:i}=this.props;let r;if(typeof i=="string"||typeof i=="object"){const s=Ai(this.props,i,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);s&&(r=s[e])}if(i&&r!==void 0)return r;const o=this.getBaseTargetFromProps(this.props,e);return o!==void 0&&!it(o)?o:this.initialValues[e]!==void 0&&r===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new ki),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}}class ga extends Wh{constructor(){super(...arguments),this.KeyframeResolver=_o}sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){return e.style?e.style[n]:void 0}removeValueFromRenderState(e,{vars:n,style:i}){delete n[e],delete i[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;it(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function Gh(t){return window.getComputedStyle(t)}class Kh extends ga{constructor(){super(...arguments),this.type="html",this.renderInstance=io}readValueFromInstance(e,n){if(Yt.has(n)){const i=_i(n);return i&&i.default||0}else{const i=Gh(e),r=(vi(n)?i.getPropertyValue(n):i[n])||0;return typeof r=="string"?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:n}){return ia(e,n)}build(e,n,i){Si(e,n,i.transformTemplate)}scrapeMotionValuesFromProps(e,n,i){return Ei(e,n,i)}}class Hh extends ga{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Y,this.updateDimensions=()=>{this.current&&!this.renderState.dimensions&&no(this.current,this.renderState)}}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(Yt.has(n)){const i=_i(n);return i&&i.default||0}return n=ro.has(n)?n:gi(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,i){return oo(e,n,i)}onBindTransform(){this.current&&!this.renderState.dimensions&&U.postRender(this.updateDimensions)}build(e,n,i){Ci(e,n,this.isSVGTag,i.transformTemplate)}renderInstance(e,n,i,r){so(e,n,i,r)}mount(e){this.isSVGTag=Pi(e.tagName),super.mount(e)}}const Yh=(t,e)=>Ti(t)?new Hh(e):new Kh(e,{allowProjection:t!==A.Fragment}),qh=bu({...yd,...Bh,...Ah,...$h},Yh),Xh=Ic(qh);function Zh(t){t.values.forEach(e=>e.stop())}function oi(t,e){[...e].reverse().forEach(i=>{const r=t.getVariant(i);r&&Fi(t,r),t.variantChildren&&t.variantChildren.forEach(o=>{oi(o,e)})})}function Jh(t,e){if(Array.isArray(e))return oi(t,e);if(typeof e=="string")return oi(t,[e]);Fi(t,e)}function Qh(){let t=!1;const e=new Set,n={subscribe(i){return e.add(i),()=>void e.delete(i)},start(i,r){Mt(t,"controls.start() should only be called after a component has mounted. Consider calling within a useEffect hook.");const o=[];return e.forEach(s=>{o.push(qo(s,i,{transitionOverride:r}))}),Promise.all(o)},set(i){return Mt(t,"controls.set() should only be called after a component has mounted. Consider calling within a useEffect hook."),e.forEach(r=>{Jh(r,i)})},stop(){e.forEach(i=>{Zh(i)})},mount(){return t=!0,()=>{t=!1,n.stop()}}};return n}function tp(){const t=_s(Qh);return Us(t.mount,[]),t}const ep=tp,np={some:0,all:1};function ip(t,e,{root:n,margin:i,amount:r="some"}={}){const o=ho(t),s=new WeakMap,a=c=>{c.forEach(u=>{const f=s.get(u.target);if(u.isIntersecting!==!!f)if(u.isIntersecting){const d=e(u.target,u);typeof d=="function"?s.set(u.target,d):l.unobserve(u.target)}else typeof f=="function"&&(f(u),s.delete(u.target))})},l=new IntersectionObserver(a,{root:n,rootMargin:i,threshold:typeof r=="number"?r:np[r]});return o.forEach(c=>l.observe(c)),()=>l.disconnect()}function rp(t,{root:e,margin:n,amount:i,once:r=!1,initial:o=!1}={}){const[s,a]=A.useState(o);return A.useEffect(()=>{if(!t.current||r&&s)return;const l=()=>(a(!0),r?void 0:()=>a(!1)),c={root:e&&e.current||void 0,margin:n,amount:i};return ip(t.current,l,c)},[e,t,n,r,i]),s}var ee=(t=>(t[t.Center=0]="Center",t[t.Left=1]="Left",t[t.Right=2]="Right",t))(ee||{});const sp=L.section(({styles:t,theme:{global:{paddingLeft:e,paddingRight:n},colors:i,header:{height:r},footer:{height:o},section:{paddingTop:s,paddingBottom:a}},zIndex:l,align:c,isDark:u,isFullHeight:f,noPaddingTop:d,noPaddingBottom:h,backgroundColor:p})=>W({zIndex:l,width:"100%",display:"flex",alignItems:"center",position:"relative",flexDirection:"column",background:p,paddingTop:s[0],paddingLeft:e[0],paddingRight:n[0],paddingBottom:a[0],animation:"background 0.5s ease-in-out",justifyContent:f?"center":"flex-start",color:u?i.defaultLightText:i.defaultText,minHeight:f?`calc(100vh - ${r[0]}px - ${o[0]}px)`:0,[P[0]]:{paddingLeft:e[1],paddingRight:n[1],paddingTop:d?0:s[1],paddingBottom:h?0:s[1],minHeight:f?`calc(100vh - ${r[1]}px - ${o[1]}px)`:0},[P[1]]:{paddingLeft:e[2],paddingRight:n[2],paddingTop:d?0:s[2],paddingBottom:h?0:a[2],minHeight:f?`calc(100vh - ${r[2]}px - ${o[2]}px)`:0},[P[2]]:{paddingLeft:e[3],paddingRight:n[3],paddingTop:d?0:s[3],paddingBottom:h?0:a[3],minHeight:f?`calc(100vh - ${r[3]}px - ${o[3]}px)`:0},"> div":{textAlign:c===ee.Center?"center":c===ee.Right?"right":"left",alignItems:c===ee.Center?"center":c===ee.Right?"right":"left"},p:{color:u?i.defaultLightText:i.defaultText}},t)),op=L(Xh.div)({gap:15,width:"100%",display:"flex",flexDirection:"column",maxWidth:"var(--max-width)"}),ap={hidden:{opacity:0},visible:{opacity:1,transition:{delay:.5,bounce:.2,duration:1,type:"spring"}}},lp=({children:t,zIndex:e=20,styles:n={},id:i=void 0,isDark:r=!1,align:o=ee.Left,isFullHeight:s=!1,noPaddingTop:a=!1,backgroundColor:l="",theme:c=_,noPaddingBottom:u=!1})=>{const f=ep(),d=A.createRef(),h=rp(d,{margin:"0px 0px 0px 0px"});return A.useEffect(()=>{h&&f.start("visible")},[f,h]),E(sp,{id:i,ref:d,align:o,theme:c,styles:n,zIndex:e,isDark:r,isFullHeight:s,noPaddingTop:a,noPaddingBottom:u,backgroundColor:l||c.main.backgroundColor,children:E(op,{initial:"hidden",animate:f,variants:ap,children:t})})},cp=L.div(({styles:t,theme:{nav:{gap:e}}})=>W({gap:e[0],display:"flex",flexDirection:"column",[P[0]]:{gap:e[1]},[P[1]]:{gap:e[2],flexDirection:"row"},[P[2]]:{gap:e[3]}},t)),up=({children:t,styles:e={},theme:n=_})=>E(cp,{theme:n,styles:e,children:t}),fp=L.div(({styles:t,theme:{navSocial:{gap:e}}})=>W({gap:e[0],marginLeft:0,marginRight:0,display:"flex",flexDirection:"row",[P[0]]:{gap:e[1]},[P[1]]:{gap:e[2]},[P[2]]:{gap:e[3]}},t)),dp=L.div({display:"flex",flexDirection:"row",a:{padding:10,"svg path":{transition:"all 0.5s ease-in-out"},"&:hover":{"svg path":{opacity:.5}}}}),hp=({navSocial:t,styles:e={},theme:n=_})=>E(fp,{theme:n,styles:e,children:t.map(({name:i,link:r},o)=>{const s=i[0].toUpperCase()+i.slice(1);return E(dp,{children:E("a",{target:"_blank","aria-label":i,href:r,children:E(Pt,{theme:n,icon:`social${s}`})})},`navSocialItem-${o}`)})}),pp=L.div(({styles:t,theme:{navLegal:{gap:e}}})=>W({gap:e[0],display:"flex",flexDirection:"row",[P[0]]:{gap:e[1]},[P[1]]:{gap:e[2]},[P[2]]:{gap:e[3]}},t)),mp=({children:t,styles:e={},theme:n=_})=>E(pp,{theme:n,styles:e,children:t}),gp=L.form(({styles:t,theme:{form:{width:e,padding:n,backgroundColor:i}}})=>W({width:"100%",maxWidth:e,backgroundColor:i,padding:n[0],position:"relative",[P[1]]:{padding:n[1]}},t)),yp=({action:t,children:e,styles:n={},theme:i=_})=>E(gp,{theme:i,styles:n,action:t,children:e});var ke=(t=>(t[t.Center=0]="Center",t[t.Left=1]="Left",t[t.Right=2]="Right",t))(ke||{});const vp=L.div(({theme:{form:{row:{gap:t,padding:e}}},align:n,styles:i,isMessage:r})=>W({gap:t[0],display:"flex",padding:e[0],flexDirection:"column",fontSize:r?"0.8em":"inherit",justifyContent:n===ke.Right?"flex-end":n===ke.Center?"center":"flex-start",[P[1]]:{gap:t[1],padding:e[1],flexDirection:"row"}},i)),xp=({children:t,theme:e=_,styles:n={},isActions:i=!1,isMessage:r=!1,align:o=ke.Left})=>E(vp,{align:o,theme:e,styles:n,isActions:i,isMessage:r,children:t}),bp=L.input(({styles:t,theme:{form:{input:{font:e,color:n,border:i,padding:r,borderRadius:o,backgroundColor:s,placeholder:{color:a,opacity:l}}}}})=>W({color:n,width:"100%",border:i,lineHeight:"1.5em",fontSize:"inherit",padding:r[0],borderRadius:o,backgroundColor:s,fontFamily:`var(--font-${e})`,[P[1]]:{padding:r[1]},"&:focus":{outline:i},"&::placeholder":{color:a,opacity:l},"&:-webkit-autofill":{textFillColor:n,boxShadow:`0 0 0px 1000px ${s} inset`}},t));var bn=(t=>(t.Text="text",t.Email="email",t.Search="search",t.Number="number",t.Hidden="hidden",t.Password="password",t))(bn||{});const ya=({name:t,value:e="",styles:n={},type:i=bn.Text,disabled:r=!1,placeholder:o="",theme:s=_,onChange:a=void 0})=>E(bp,{type:i,id:t,name:t,theme:s,styles:n,onChange:a,disabled:r,defaultValue:e,placeholder:o}),Sp=L.label(({theme:{form:{label:{color:t,font:e,fontWeight:n,paddingBottom:i}}}})=>({color:t,fontWeight:n,paddingBottom:i,width:"100%",textAlign:"left",fontFamily:`var(--font-${e})`})),va=({name:t,label:e,required:n=!1,theme:i=_})=>dt(Sp,{htmlFor:t,theme:i,children:[e,n?E("span",{children:" *"}):""]}),wp=L.div(({styles:t})=>W({width:"100%",display:"flex",position:"relative",flexDirection:"column",alignItems:"flex-start"},t)),Tp=L.div({paddingTop:5,textAlign:"left",fontStyle:"italic"}),Cp=L.span(({theme:{form:{error:{color:t}}}})=>({color:t,display:"block",fontSize:"0.875rem",marginTop:"0.25rem"})),Pp=L.textarea(({styles:t,theme:{form:{textarea:{font:e,color:n,border:i,padding:r,borderRadius:o,backgroundColor:s,placeholder:{color:a,opacity:l}}}}})=>W({color:n,width:"100%",border:i,padding:r[0],lineHeight:"1.5em",fontSize:"inherit",borderRadius:o,backgroundColor:s,fontFamily:`var(--font-${e})`,[P[1]]:{padding:r[1]},"&:focus":{outline:i},"&::placeholder":{color:a,opacity:l},"&:-webkit-autofill":{textFillColor:n,boxShadow:`0 0 0px 1000px ${s} inset`}},t)),xa=({name:t,value:e,rows:n=2,disabled:i,styles:r={},placeholder:o="",onChange:s=void 0,theme:a=_})=>E(Pp,{id:t,name:t,rows:n,theme:a,styles:r,onChange:s,disabled:i,defaultValue:e,placeholder:o});var Gi=(t=>(t.Textarea="textarea",t))(Gi||{});const Ap=({name:t,label:e="",value:n="",styles:i={},rows:r=void 0,required:o=!1,disabled:s=!1,placeholder:a="",errors:l=void 0,theme:c=_,onChange:u=void 0,type:f=bn.Text})=>dt(wp,{styles:i,children:[e&&E(va,{theme:c,label:e,name:t,required:o}),f===Gi.Textarea?E(xa,{value:n,rows:r,name:t,theme:c,onChange:u,disabled:s,placeholder:a}):E(ya,{value:n,type:f,name:t,theme:c,onChange:u,disabled:s,placeholder:a}),l&&E(Tp,{children:l instanceof Array?l.map((d,h)=>E(Cp,{theme:c,children:d},h)):l})]}),Ep=L.div(({styles:t,theme:{consentCookie:{overlayBlur:e,overlayOpacity:n,overlayBackgroundColor:i}}})=>W({zIndex:100,position:"fixed","&:before":{top:0,left:0,right:0,bottom:0,content:"''",position:"fixed",opacity:n,backgroundColor:i,backdropFilter:`blur(${e}px)`}},t)),Vp=L.div(({theme:{consentCookie:{width:t,borders:e,borderRadius:n,backgroundColor:i,paddingTop:r,paddingLeft:o,paddingRight:s,paddingBottom:a}}})=>({right:15,bottom:15,zIndex:20,border:e,display:"flex",width:t[0],position:"fixed",flexDirection:"column",borderRadius:n,paddingTop:r[0],paddingLeft:o[0],paddingRight:s[0],paddingBottom:a[0],backgroundColor:i,[P[0]]:{width:t[1],paddingTop:r[1],paddingLeft:o[1],paddingRight:s[1],paddingBottom:a[1]},[P[1]]:{width:t[2],paddingTop:r[2],paddingLeft:o[2],paddingRight:s[2],paddingBottom:a[2]},[P[2]]:{width:t[3],paddingTop:r[3],paddingLeft:o[3],paddingRight:s[3],paddingBottom:a[3]}})),Rp=L.div(({theme:{consentCookie:{actionsGap:t,actionsPaddingTop:e}}})=>({gap:t,display:"flex",alignItems:"center",flexDirection:"row",paddingTop:e[0],justifyContent:"flex-end",[P[0]]:{paddingTop:e[1]},[P[1]]:{paddingTop:e[2]},[P[2]]:{paddingTop:e[3]}}));function Mp(t){const e=t+"=",i=decodeURIComponent(document.cookie).split(";");for(let r=0;r<i.length;r++){let o=i[r];for(;o.charAt(0)==" ";)o=o.substring(1);if(o.indexOf(e)==0)return o.substring(e.length,o.length)}return""}function Dp(t,e,n){const i=new Date;i.setTime(i.getTime()+n*24*60*60*1e3);const r="expires="+i.toUTCString();document.cookie=t+"="+e+";"+r+";path=/"}const Lp=({styles:t={},children:e=void 0,theme:n=_,cookieName:i="consent",translations:r=void 0,cookieExpirationDays:o=365})=>{const[s,a]=A.useState(!1),l=c=>{a(!1),Dp(i,`${c}`,o)};return A.useEffect(()=>{const c=Mp(i),u=c!=="true"&&c!=="false",f=c==="true";u&&a(!0);const d=f?"granted":"denied";typeof window.gtag<"u"&&window.gtag("consent","update",{analytics_storage:d})},[s]),s?E(Ep,{theme:n,styles:t,children:dt(Vp,{theme:n,children:[e,dt(Rp,{theme:n,children:[E(Un,{onClick:()=>l(!1),children:(r==null?void 0:r.actions.reject)||"Reject"}),E(Un,{onClick:()=>l(!0),children:(r==null?void 0:r.actions.accept)||"Accept"})]})]})}):null};exports.Actions=Tl;exports.ActionsAlign=ie;exports.Button=Un;exports.ButtonSize=ve;exports.ButtonStyle=en;exports.ButtonType=ui;exports.ButtonVariant=tn;exports.Carousel=Hl;exports.Columns=Ec;exports.ColumnsAlign=re;exports.ConsentCookie=Lp;exports.Footer=Pc;exports.Form=yp;exports.FormRow=xp;exports.FormRowAlign=ke;exports.Header=Tc;exports.Icon=Pt;exports.InputType=bn;exports.KeyNumber=lc;exports.LanguageSwitcher=pc;exports.Logo=$l;exports.Main=gc;exports.Modal=Ml;exports.Nav=up;exports.NavLegal=mp;exports.NavSocial=hp;exports.Section=lp;exports.TextField=Ap;exports.TextFieldInput=ya;exports.TextFieldLabel=va;exports.TextFieldTextarea=xa;exports.TextareaType=Gi;exports.Video=$s;exports.VideoFullWidth=uc;
15
+ */var Xi;function Qa(){return Xi||(Xi=1,process.env.NODE_ENV!=="production"&&function(){var t=typeof Symbol=="function"&&Symbol.for,e=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,i=t?Symbol.for("react.fragment"):60107,r=t?Symbol.for("react.strict_mode"):60108,o=t?Symbol.for("react.profiler"):60114,s=t?Symbol.for("react.provider"):60109,a=t?Symbol.for("react.context"):60110,l=t?Symbol.for("react.async_mode"):60111,c=t?Symbol.for("react.concurrent_mode"):60111,u=t?Symbol.for("react.forward_ref"):60112,f=t?Symbol.for("react.suspense"):60113,d=t?Symbol.for("react.suspense_list"):60120,h=t?Symbol.for("react.memo"):60115,p=t?Symbol.for("react.lazy"):60116,g=t?Symbol.for("react.block"):60121,S=t?Symbol.for("react.fundamental"):60117,v=t?Symbol.for("react.responder"):60118,w=t?Symbol.for("react.scope"):60119;function T(M){return typeof M=="string"||typeof M=="function"||M===i||M===c||M===o||M===r||M===f||M===d||typeof M=="object"&&M!==null&&(M.$$typeof===p||M.$$typeof===h||M.$$typeof===s||M.$$typeof===a||M.$$typeof===u||M.$$typeof===S||M.$$typeof===v||M.$$typeof===w||M.$$typeof===g)}function V(M){if(typeof M=="object"&&M!==null){var lt=M.$$typeof;switch(lt){case e:var wt=M.type;switch(wt){case l:case c:case i:case o:case r:case f:return wt;default:var zt=wt&&wt.$$typeof;switch(zt){case a:case u:case p:case h:case s:return zt;default:return lt}}case n:return lt}}}var m=l,R=c,D=a,y=s,b=e,x=u,C=i,k=p,W=h,X=n,Z=o,z=r,F=f,N=!1;function at(M){return N||(N=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),rt(M)||V(M)===l}function rt(M){return V(M)===c}function Ot(M){return V(M)===a}function kt(M){return V(M)===s}function vt(M){return typeof M=="object"&&M!==null&&M.$$typeof===e}function mt(M){return V(M)===u}function Ft(M){return V(M)===i}function ht(M){return V(M)===p}function It(M){return V(M)===h}function xt(M){return V(M)===n}function bt(M){return V(M)===o}function Nt(M){return V(M)===r}function Ut(M){return V(M)===f}j.AsyncMode=m,j.ConcurrentMode=R,j.ContextConsumer=D,j.ContextProvider=y,j.Element=b,j.ForwardRef=x,j.Fragment=C,j.Lazy=k,j.Memo=W,j.Portal=X,j.Profiler=Z,j.StrictMode=z,j.Suspense=F,j.isAsyncMode=at,j.isConcurrentMode=rt,j.isContextConsumer=Ot,j.isContextProvider=kt,j.isElement=vt,j.isForwardRef=mt,j.isFragment=Ft,j.isLazy=ht,j.isMemo=It,j.isPortal=xt,j.isProfiler=bt,j.isStrictMode=Nt,j.isSuspense=Ut,j.isValidElementType=T,j.typeOf=V}()),j}var Zi;function tl(){return Zi||(Zi=1,process.env.NODE_ENV==="production"?Ne.exports=Ja():Ne.exports=Qa()),Ne.exports}var Sn,Ji;function el(){if(Ji)return Sn;Ji=1;var t=tl(),e={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},r={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};o[t.ForwardRef]=i,o[t.Memo]=r;function s(p){return t.isMemo(p)?r:o[p.$$typeof]||e}var a=Object.defineProperty,l=Object.getOwnPropertyNames,c=Object.getOwnPropertySymbols,u=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,d=Object.prototype;function h(p,g,S){if(typeof g!="string"){if(d){var v=f(g);v&&v!==d&&h(p,v,S)}var w=l(g);c&&(w=w.concat(c(g)));for(var T=s(p),V=s(g),m=0;m<w.length;++m){var R=w[m];if(!n[R]&&!(S&&S[R])&&!(V&&V[R])&&!(T&&T[R])){var D=u(g,R);try{a(p,R,D)}catch{}}}}return p}return Sn=h,Sn}el();var nl=!0;function il(t,e,n){var i="";return n.split(" ").forEach(function(r){t[r]!==void 0?e.push(t[r]+";"):r&&(i+=r+" ")}),i}var Ls=function(e,n,i){var r=e.key+"-"+n.name;(i===!1||nl===!1)&&e.registered[r]===void 0&&(e.registered[r]=n.styles)},rl=function(e,n,i){Ls(e,n,i);var r=e.key+"-"+n.name;if(e.inserted[n.name]===void 0){var o=n;do e.insert(n===o?"."+r:"",o,e.sheet,!0),o=o.next;while(o!==void 0)}};function sl(t){for(var e=0,n,i=0,r=t.length;r>=4;++i,r-=4)n=t.charCodeAt(i)&255|(t.charCodeAt(++i)&255)<<8|(t.charCodeAt(++i)&255)<<16|(t.charCodeAt(++i)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,e=(n&65535)*1540483477+((n>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(r){case 3:e^=(t.charCodeAt(i+2)&255)<<16;case 2:e^=(t.charCodeAt(i+1)&255)<<8;case 1:e^=t.charCodeAt(i)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}var ol={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},al=/[A-Z]|^ms/g,ll=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Os=function(e){return e.charCodeAt(1)===45},Qi=function(e){return e!=null&&typeof e!="boolean"},wn=Na(function(t){return Os(t)?t:t.replace(al,"-$&").toLowerCase()}),tr=function(e,n){switch(e){case"animation":case"animationName":if(typeof n=="string")return n.replace(ll,function(i,r,o){return Ct={name:r,styles:o,next:Ct},r})}return ol[e]!==1&&!Os(e)&&typeof n=="number"&&n!==0?n+"px":n};function Ae(t,e,n){if(n==null)return"";var i=n;if(i.__emotion_styles!==void 0)return i;switch(typeof n){case"boolean":return"";case"object":{var r=n;if(r.anim===1)return Ct={name:r.name,styles:r.styles,next:Ct},r.name;var o=n;if(o.styles!==void 0){var s=o.next;if(s!==void 0)for(;s!==void 0;)Ct={name:s.name,styles:s.styles,next:Ct},s=s.next;var a=o.styles+";";return a}return cl(t,e,n)}case"function":{if(t!==void 0){var l=Ct,c=n(t);return Ct=l,Ae(t,e,c)}break}}var u=n;return u}function cl(t,e,n){var i="";if(Array.isArray(n))for(var r=0;r<n.length;r++)i+=Ae(t,e,n[r])+";";else for(var o in n){var s=n[o];if(typeof s!="object"){var a=s;Qi(a)&&(i+=wn(o)+":"+tr(o,a)+";")}else if(Array.isArray(s)&&typeof s[0]=="string"&&e==null)for(var l=0;l<s.length;l++)Qi(s[l])&&(i+=wn(o)+":"+tr(o,s[l])+";");else{var c=Ae(t,e,s);switch(o){case"animation":case"animationName":{i+=wn(o)+":"+c+";";break}default:i+=o+"{"+c+"}"}}}return i}var er=/label:\s*([^\s;{]+)\s*(;|$)/g,Ct;function ul(t,e,n){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var i=!0,r="";Ct=void 0;var o=t[0];if(o==null||o.raw===void 0)i=!1,r+=Ae(n,e,o);else{var s=o;r+=s[0]}for(var a=1;a<t.length;a++)if(r+=Ae(n,e,t[a]),i){var l=o;r+=l[a]}er.lastIndex=0;for(var c="",u;(u=er.exec(r))!==null;)c+="-"+u[1];var f=sl(r)+c;return{name:f,styles:r,next:Ct}}var fl=function(e){return e()},dl=ct.useInsertionEffect?ct.useInsertionEffect:!1,hl=dl||fl,ks=ct.createContext(typeof HTMLElement<"u"?qa({key:"css"}):null);ks.Provider;var pl=function(e){return P.forwardRef(function(n,i){var r=P.useContext(ks);return e(n,r,i)})},ml=ct.createContext({}),pn={}.hasOwnProperty,_n="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Fs=function(e,n){var i={};for(var r in n)pn.call(n,r)&&(i[r]=n[r]);return i[_n]=e,i},gl=function(e){var n=e.cache,i=e.serialized,r=e.isStringTag;return Ls(n,i,r),hl(function(){return rl(n,i,r)}),null},yl=pl(function(t,e,n){var i=t.css;typeof i=="string"&&e.registered[i]!==void 0&&(i=e.registered[i]);var r=t[_n],o=[i],s="";typeof t.className=="string"?s=il(e.registered,o,t.className):t.className!=null&&(s=t.className+" ");var a=ul(o,void 0,ct.useContext(ml));s+=e.key+"-"+a.name;var l={};for(var c in t)pn.call(t,c)&&c!=="css"&&c!==_n&&(l[c]=t[c]);return l.className=s,n&&(l.ref=n),ct.createElement(ct.Fragment,null,ct.createElement(gl,{cache:e,serialized:a,isStringTag:typeof r=="string"}),ct.createElement(r,l))}),Is=yl,vl=Te.Fragment,E=function(e,n,i){return pn.call(n,"css")?Te.jsx(Is,Fs(e,n),i):Te.jsx(e,n,i)},dt=function(e,n,i){return pn.call(n,"css")?Te.jsxs(Is,Fs(e,n),i):Te.jsxs(e,n,i)};const Nn=[640,768,1024,1680],A=Nn.map(t=>`(min-width: ${t}px)`),G=(t,e)=>{for(const n in e)e.hasOwnProperty(n)&&(e[n]instanceof Object&&t[n]instanceof Object?t[n]=G(t[n],e[n]):t[n]=e[n]);return t},xl=L.button(({theme:{button:{minWidth:t,letterSpacing:e,fontWeight:n,color:i,backgroundColor:r,border:o,padding:s,borderRadius:a,transition:l}},styles:c,isSmall:u,isLarge:f,isDisabled:d,isOutlined:h,isSecondary:p,staticColor:g})=>G({minWidth:t,fontWeight:n,transition:l,borderRadius:a,letterSpacing:e,position:"relative",display:"inline-block",cursor:d?"default":"pointer",pointerEvents:d?"none":"auto",padding:u?`${s.small[0]/2}px ${s.small[1]/2}px`:f?`${s.large[0]/2}px ${s.large[1]/2}px`:`${s.medium[0]/2}px ${s.medium[1]/2}px`,border:g?`${o.width}px ${o.style} ${g}`:p?`${o.width}px ${o.style} ${o.color.secondary}`:d?`${o.width}px ${o.style} ${o.color.disabled}`:`${o.width}px ${o.style} ${o.color.primary}`,color:h&&g?g:h&&p?r.secondary:h?r.primary:p?i.secondary:d?i.disabled:i.primary,backgroundColor:h?"transparent":g||(p?r.secondary:d?r.disabled:r.primary),[A[1]]:{padding:u?`${s.small[0]}px ${s.small[1]}px`:f?`${s.large[0]}px ${s.large[1]}px`:`${s.medium[0]}px ${s.medium[1]}px`},"&:hover":{opacity:.5}},c));var tn=(t=>(t[t.Primary=0]="Primary",t[t.Secondary=1]="Secondary",t))(tn||{}),en=(t=>(t[t.Fill=0]="Fill",t[t.Outline=1]="Outline",t))(en||{}),ve=(t=>(t[t.Small=0]="Small",t[t.Medium=1]="Medium",t[t.Large=2]="Large",t))(ve||{}),ui=(t=>(t.Reset="reset",t.Button="button",t.Submit="submit",t))(ui||{});const nr='"Goudy Bookletter 1911", sans-serif',Tn='"Gill Sans", sans-serif',Bs="#FF7377",Cn="#C8AE96",tt="#FCEFE6",bl="#2E2E2E",ir="#CCCCCC",Sl=" #888888",st="#000000",Pn=Bs,_={global:{maxWidth:1200,paddingLeft:[15,15,30,30],paddingRight:[15,15,30,30],brandFont:nr,defaultFont:Tn},colors:{defaultText:st,defaultLightText:tt,defaultTitle:"",defaultLink:st,defaultIcon:st},backgroundColors:{modal:tt,modalOverlay:"rgba(0, 0, 0, 0.6)",cookieConsent:tt},borders:{hr:`1px solid ${Cn}`,cookieConsent:`2px solid ${st}`},borderRadius:{modal:30,input:30,cookieConsent:30},widthSizes:{modal:600,cookieConsent:500},transitions:{global:"all 0.3s ease-in-out"},actions:{gap:30,paddingTop:60},button:{minWidth:80,fontWeight:400,letterSpacing:.1,color:{primary:tt,secondary:bl,disabled:Sl},backgroundColor:{primary:Pn,secondary:Cn,disabled:ir},border:{width:2,style:"solid",color:{primary:Pn,secondary:Cn,disabled:ir}},borderRadius:50,padding:{small:[5,10],medium:[10,15],large:[15,30]},transition:"all 0.3s ease-in-out"},columns:{gap:30},form:{width:800,padding:["15px","30px"],backgroundColor:"",row:{gap:[30,60],padding:["15px","30px"]},label:{font:nr,fontWeight:500,color:Pn,paddingBottom:5},input:{color:"",borderRadius:0,padding:[5,10],font:Tn,backgroundColor:"",placeholder:{color:"",opacity:1},border:`2px solid ${st}`},textarea:{color:"",borderRadius:0,padding:[5,10],font:Tn,backgroundColor:"",placeholder:{color:"",opacity:1},border:`2px solid ${st}`},error:{color:Bs}},header:{gap:[15,15,15,15],height:[60,60,120,120],backgroundColor:tt,paddingTop:[15,30,50,100],paddingLeft:[15,30,50,100],paddingRight:[15,30,50,100],paddingBottom:[15,30,50,100],overlayGap:[15,15,15,15],overlayBackgroundColor:tt,toggleNavColor:st,toggleNavOpenColor:st,toggleNavBorderRadius:5},main:{minHeight:"45vh",backgroundColor:tt},section:{paddingTop:[15,30,50,100],paddingBottom:[15,30,50,100]},footer:{gap:[15,15,15,15],height:[60,60,120,120],backgroundColor:tt,paddingTop:[15,30,50,100],paddingBottom:[15,30,50,100]},modal:{borders:0,borderRadius:0,width:[50,50,75,75],backgroundColor:tt,overlayBlur:0,overlayOpacity:.5,overlayBackgroundColor:st,paddingTop:[15,30,50,100],paddingLeft:[15,30,50,100],paddingRight:[15,30,50,100],paddingBottom:[15,30,50,100]},languageSwitcher:{border:"",borderRadius:0,color:st,width:[150,150,200,200],backgroundColor:tt,paddingTop:[15,30,50,100],paddingLeft:[15,30,50,100],paddingRight:[15,30,50,100],paddingBottom:[15,30,50,100]},carousel:{gap:[0,0,30,60],bullet:{borderRadius:0,width:[12,12,12,12],height:[12,12,12,12],backgroundColor:tt}},video:{playButton:{border:"",borderRadius:0,width:[50,50,75,75],height:[50,50,75,75],color:st,backgroundColor:tt},pauseButton:{border:"",borderRadius:0,width:[40,40,50,50],height:[40,40,50,50],color:st,backgroundColor:tt},soundButton:{border:"",borderRadius:0,width:[40,40,50,50],height:[40,40,50,50],color:st,backgroundColor:tt},closeButton:{border:"",borderRadius:0,width:[40,40,50,50],height:[40,40,50,50],color:st,backgroundColor:tt}},consentCookie:{borders:0,borderRadius:0,width:[50,50,75,75],backgroundColor:tt,overlayBlur:0,overlayOpacity:.5,overlayBackgroundColor:st,paddingTop:[15,30,50,100],paddingLeft:[15,30,50,100],paddingRight:[15,30,50,100],paddingBottom:[15,30,50,100],actionsGap:30,actionsPaddingTop:[15,100,100,100]},nav:{gap:[15,15,15,15]},navSocial:{gap:[15,15,15,15]},navLegal:{gap:[15,15,15,15]}},Un=({children:t,styles:e={},staticColor:n="",isPending:i=!1,isDisabled:r=!1,type:o=ui.Button,style:s=en.Fill,size:a=ve.Medium,onClick:l=void 0,theme:c=_,variant:u=tn.Primary})=>E(xl,{type:o,theme:c,onClick:l,staticColor:n,isLarge:a===ve.Large,isSmall:a===ve.Small,styles:e,isDisabled:r||i,isOutlined:s===en.Outline,isSecondary:u===tn.Secondary,children:t});var ie=(t=>(t[t.Center=0]="Center",t[t.Left=1]="Left",t[t.Right=2]="Right",t))(ie||{});const wl=L.div(({align:t,styles:e,theme:{actions:{gap:n,paddingTop:i}}})=>G({gap:n/2,width:"100%",display:"flex",flexWrap:"wrap",flexDirection:"row",paddingTop:i/2,alignItems:t===ie.Center?"center":"flex-start",justifyContent:t===ie.Right?"flex-end":t===ie.Left?"flex-start":"center",[A[2]]:{gap:n,paddingTop:i}},e)),Tl=({children:t,styles:e={},theme:n=_,align:i=ie.Left})=>E(wl,{theme:n,align:i,styles:e,children:t}),Cl={caret:"M8.12 9.29 12 13.17l3.88-3.88c.39-.39 1.02-.39 1.41 0 .39.39.39 1.02 0 1.41l-4.59 4.59c-.39.39-1.02.39-1.41 0L6.7 10.7a.9959.9959 0 0 1 0-1.41c.39-.38 1.03-.39 1.42 0",close:"M18.3 5.71a.996.996 0 0 0-1.41 0L12 10.59 7.11 5.7a.996.996 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41L10.59 12 5.7 16.89c-.39.39-.39 1.02 0 1.41s1.02.39 1.41 0L12 13.41l4.89 4.89c.39.39 1.02.39 1.41 0s.39-1.02 0-1.41L13.41 12l4.89-4.89c.38-.38.38-1.02 0-1.4",arrowBack:"M19 11H7.83l4.88-4.88c.39-.39.39-1.03 0-1.42a.996.996 0 0 0-1.41 0l-6.59 6.59c-.39.39-.39 1.02 0 1.41l6.59 6.59c.39.39 1.02.39 1.41 0s.39-1.02 0-1.41L7.83 13H19c.55 0 1-.45 1-1s-.45-1-1-1",arrowForward:"M5 13h11.17l-4.88 4.88c-.39.39-.39 1.03 0 1.42s1.02.39 1.41 0l6.59-6.59c.39-.39.39-1.02 0-1.41l-6.58-6.6a.996.996 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41L16.17 11H5c-.55 0-1 .45-1 1s.45 1 1 1",play:"M8 5v14l11-7z",pause:"M6 19h4V5H6zm8-14v14h4V5z",volumeMute:"M7 9v6h4l5 5V4l-5 5z",volumeUp:"M3 9v6h4l5 5V4L7 9zm13.5 3c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02M14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91 7-4.49 7-8.77s-2.99-7.86-7-8.77",socialFacebook:"M 22.2816,10.9924 C 22.2816,4.92145 17.3602,0 11.2892,0 5.21832,0 0.296875,4.92145 0.296875,10.9924 c 0,5.4865 4.019725,10.0342 9.274805,10.8588 V 14.1698 H 6.78065 V 10.9924 H 9.57168 V 8.57061 c 0,-2.75496 1.64112,-4.27672 4.15202,-4.27672 1.2023,0 2.4606,0.2147 2.4606,0.2147 v 2.70515 h -1.3861 c -1.3654,0 -1.7914,0.8474 -1.7914,1.71756 v 2.0611 h 3.0487 l -0.4874,3.1774 h -2.5613 v 7.6814 c 5.2551,-0.8246 9.2748,-5.3723 9.2748,-10.8588 z",socialInstagram:"M7.8 2h8.4C19.4 2 22 4.6 22 7.8v8.4a5.8 5.8 0 0 1-5.8 5.8H7.8C4.6 22 2 19.4 2 16.2V7.8A5.8 5.8 0 0 1 7.8 2m-.2 2A3.6 3.6 0 0 0 4 7.6v8.8C4 18.39 5.61 20 7.6 20h8.8a3.6 3.6 0 0 0 3.6-3.6V7.6C20 5.61 18.39 4 16.4 4H7.6m9.65 1.5a1.25 1.25 0 0 1 1.25 1.25A1.25 1.25 0 0 1 17.25 8 1.25 1.25 0 0 1 16 6.75a1.25 1.25 0 0 1 1.25-1.25M12 7a5 5 0 0 1 5 5 5 5 0 0 1-5 5 5 5 0 0 1-5-5 5 5 0 0 1 5-5m0 2a3 3 0 0 0-3 3 3 3 0 0 0 3 3 3 3 0 0 0 3-3 3 3 0 0 0-3-3z",socialPinterest:"M9.04 21.54c.96.29 1.93.46 2.96.46a10 10 0 0 0 10-10A10 10 0 0 0 12 2 10 10 0 0 0 2 12c0 4.25 2.67 7.9 6.44 9.34-.09-.78-.18-2.07 0-2.96l1.15-4.94s-.29-.58-.29-1.5c0-1.38.86-2.41 1.84-2.41.86 0 1.26.63 1.26 1.44 0 .86-.57 2.09-.86 3.27-.17.98.52 1.84 1.52 1.84 1.78 0 3.16-1.9 3.16-4.58 0-2.4-1.72-4.04-4.19-4.04-2.82 0-4.48 2.1-4.48 4.31 0 .86.28 1.73.74 2.3.09.06.09.14.06.29l-.29 1.09c0 .17-.11.23-.28.11-1.28-.56-2.02-2.38-2.02-3.85 0-3.16 2.24-6.03 6.56-6.03 3.44 0 6.12 2.47 6.12 5.75 0 3.44-2.13 6.2-5.18 6.2-.97 0-1.92-.52-2.26-1.13l-.67 2.37c-.23.86-.86 2.01-1.29 2.7v-.03z",socialLinkedIn:"M19 3a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14m-.5 15.5v-5.3a3.26 3.26 0 0 0-3.26-3.26c-.85 0-1.84.52-2.32 1.3v-1.11h-2.79v8.37h2.79v-4.93c0-.77.62-1.4 1.39-1.4a1.4 1.4 0 0 1 1.4 1.4v4.93h2.79M6.88 8.56a1.68 1.68 0 0 0 1.68-1.68c0-.93-.75-1.69-1.68-1.69a1.69 1.69 0 0 0-1.69 1.69c0 .93.76 1.68 1.69 1.68m1.39 9.94v-8.37H5.5v8.37h2.77z",socialSpotify:"",socialTiktok:"M21,2H3A1,1,0,0,0,2,3V21a1,1,0,0,0,1,1H21a1,1,0,0,0,1-1V3A1,1,0,0,0,21,2Zm-3.281,8.725h0c-.109.011-.219.016-.328.017A3.571,3.571,0,0,1,14.4,9.129v5.493a4.061,4.061,0,1,1-4.06-4.06c.085,0,.167.008.251.013v2a2.067,2.067,0,1,0-.251,4.119A2.123,2.123,0,0,0,12.5,14.649l.02-9.331h1.914A3.564,3.564,0,0,0,17.719,8.5Z",socialX:"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z",socialYoutube:"M10 15l5.19-3L10 9v6m11.56-7.83c.13.47.22 1.1.28 1.9.07.8.1 1.49.1 2.09L22 12c0 2.19-.16 3.8-.44 4.83-.25.9-.83 1.48-1.73 1.73-.47.13-1.33.22-2.65.28-1.3.07-2.49.1-3.59.1L12 19c-4.19 0-6.8-.16-7.83-.44-.9-.25-1.48-.83-1.73-1.73-.13-.47-.22-1.1-.28-1.9-.07-.8-.1-1.49-.1-2.09L2 12c0-2.19.16-3.8.44-4.83.25-.9.83-1.48 1.73-1.73.47-.13 1.33-.22 2.65-.28 1.3-.07 2.49-.1 3.59-.1L12 5c4.19 0 6.8.16 7.83.44.9.25 1.48.83 1.73 1.73z"},Pl=L.svg(({styles:t})=>G({margin:"0 auto",display:"inline-block",verticalAlign:"middle"},t)),Al=L.path(({fill:t})=>({fill:t,transition:"color .5s ease"})),Pt=({icon:t="",size:e=24,styles:n={},iconPath:i="",color:r=void 0,theme:o=_,viewBox:s="0 0 24 24"})=>E(Pl,{viewBox:s,width:`${e}px`,height:`${e}px`,styles:n,children:E(Al,{d:i||Cl[t],fill:r||o.colors.defaultIcon})});var nn=(t=>(t[t.Center=0]="Center",t[t.Left=1]="Left",t[t.Right=2]="Right",t))(nn||{});const El=L.div(({theme:{modal:{overlayBlur:t,overlayOpacity:e,overlayBackgroundColor:n}},styles:i})=>G({zIndex:100,position:"fixed","&:before":{top:0,left:0,right:0,bottom:0,content:"''",position:"fixed",opacity:e,backgroundColor:n,backdropFilter:`blur(${t}px)`}},i)),Vl=L.div(({theme:{global:{paddingLeft:t,paddingRight:e},modal:{borders:n,width:i,borderRadius:r,backgroundColor:o,paddingTop:s,paddingLeft:a,paddingRight:l,paddingBottom:c}},align:u})=>({top:"50%",zIndex:20,left:"50%",borderRadius:r,border:n,display:"flex",backgroundColor:o,width:i[0],position:"fixed",overflowY:"auto",flexDirection:"column",paddingTop:s[0],paddingLeft:a[0],paddingRight:l[0],paddingBottom:c[0],transform:"translate(-50%, -50%)",maxWidth:`calc(100% - ${t[0]+e[0]}px)`,maxHeight:`calc(100% - ${t[0]+e[0]}px)`,textAlign:u===nn.Left?"left":u===nn.Right?"right":"center",[A[0]]:{width:i[1],paddingTop:s[1],paddingLeft:a[1],paddingRight:l[1],paddingBottom:c[1],maxWidth:`calc(100% - ${t[1]+e[1]}px)`,maxHeight:`calc(100% - ${t[1]+e[1]}px)`},[A[1]]:{width:i[2],paddingTop:s[2],paddingLeft:a[2],paddingRight:l[2],paddingBottom:c[2],maxWidth:`calc(100% - ${t[2]+e[2]}px)`,maxHeight:`calc(100% - ${t[2]+e[2]}px)`},[A[2]]:{width:i[3],paddingTop:s[3],paddingLeft:a[3],paddingRight:l[3],paddingBottom:c[3],maxWidth:`calc(100% - ${t[3]+e[3]}px)`,maxHeight:`calc(100% - ${t[3]+e[3]}px)`}})),Rl=L.button({top:15,border:0,right:15,zIndex:20,cursor:"pointer",position:"absolute",backgroundColor:"transparent",transition:"all 0.5s ease-in-out","&:hover":{transform:"scale(1.2)"}}),Ml=({children:t,styles:e={},align:n=nn.Left,theme:i=_,onModalHide:r=void 0})=>E(El,{theme:i,styles:e,children:dt(Vl,{theme:i,align:n,children:[r&&E(Rl,{onClick:r,children:E(Pt,{theme:i,icon:"close"})}),t]})}),Dl=L.div(({styles:t,isVideoFullWidth:e})=>G({video:{top:"50%",left:"50%",width:"auto",minWidth:"100%",minHeight:"100%",position:"absolute",transform:"translate(-50%, -50%)",maxHeight:e?"100vw":"100%"}},t)),Ll=L.div(({isPlaying:t})=>({top:0,left:0,width:"100%",height:"100%",position:"absolute",opacity:t?0:1,pointerEvents:t?"none":"auto",img:{minWidth:"100%",minHeight:"100%",objectFit:"cover"}})),Ol=L.button(({theme:{header:{height:t},video:{closeButton:{border:e,width:n,height:i,borderRadius:r,color:o,backgroundColor:s}}}})=>({border:e,right:15,bottom:0,borderRadius:r,backgroundColor:s,width:n[0],height:i[0],cursor:"pointer",position:"absolute",top:t[0],[A[0]]:{width:n[1],height:i[1]},[A[1]]:{right:30,width:n[2],height:i[2],top:t[2]+15},[A[2]]:{width:n[3],height:i[3]},svg:{path:{fill:o}}})),kl=L.button(({isPlaying:t,theme:{video:{playButton:{border:e,width:n,height:i,borderRadius:r,color:o,backgroundColor:s}}}})=>({border:e,top:"50%",left:"50%",borderRadius:r,width:n[0],height:i[0],cursor:"pointer",position:"absolute",opacity:t?0:1,backgroundColor:s,transition:"all 0.5s ease-in-out",transform:"translate(-50%, -50%)",pointerEvents:t?"none":"auto",[A[0]]:{width:n[1],height:i[1]},[A[1]]:{width:n[2],height:i[2]},[A[2]]:{width:n[3],height:i[3]},"&:hover":{svg:{transform:"scale(1.2)"}},svg:{transform:"scale(1)",transition:"all 0.5s ease-in-out",path:{fill:o}}})),Fl=L.button(({theme:{video:{pauseButton:{border:t,width:e,height:n,borderRadius:i,color:r,backgroundColor:o}}}})=>({border:t,right:50,bottom:-10,borderRadius:i,width:e[0],backgroundColor:o,height:n[0],cursor:"pointer",position:"absolute",transform:"translate(-50%, -50%)",[A[0]]:{width:e[1],height:n[1]},[A[1]]:{right:75,bottom:15,width:e[2],height:n[2]},[A[2]]:{width:e[3],height:n[3]},svg:{path:{fill:r}}})),Il=L.button(({theme:{video:{soundButton:{width:t,height:e,border:n,color:i,borderRadius:r,backgroundColor:o}}}})=>({border:n,right:0,bottom:-10,borderRadius:r,backgroundColor:o,width:t[0],height:e[0],cursor:"pointer",position:"absolute",transform:"translate(-50%, -50%)",[A[0]]:{width:t[1],height:e[1]},[A[1]]:{right:15,bottom:15,width:t[2],height:e[2]},[A[0]]:{width:t[3],height:e[3]},svg:{path:{fill:i}}})),$s=({video:t,isAutoPlay:e,styles:n={},poster:i="",startMuted:r=!1,onPlay:o=void 0,onClose:s=void 0,onEnded:a=void 0,showControls:l=!1,theme:c=_,hidePlayButton:u=!1,isVideoFullWidth:f=!1,isPlayingFullScreen:d=!1})=>{const h=P.useRef(null),[p,g]=P.useState(!1),[S,v]=P.useState(e||r),w=()=>{var y;o&&o(),(y=h.current)==null||y.play(),g(!0)},T=()=>{var y;s&&s(),(y=h.current)==null||y.pause(),g(!1)},V=()=>{var y;(y=h.current)==null||y.pause(),g(!1)},m=()=>{const y=!S;v(y),h.current&&(h.current.muted=y)},R=()=>{a&&a(),T()},D=y=>{y.key==="Escape"&&T()};return P.useEffect(()=>(window.addEventListener("keydown",D),()=>{window.removeEventListener("keydown",D)}),[h.current]),dt(Dl,{isVideoFullWidth:f,styles:n,children:[E("video",{ref:h,playsInline:!0,onEnded:R,children:E("source",{src:t,type:"video/mp4"})}),i&&E(Ll,{isPlaying:p,children:E("img",{src:i,alt:"",sizes:"2560"})}),(!u||!e)&&E(kl,{theme:c,isPlaying:p,onClick:w,"aria-label":"Play",children:E(Pt,{icon:"play",size:50,theme:c})}),d&&E(Ol,{theme:c,isPlaying:p,onClick:T,"aria-label":"Pause",children:E(Pt,{icon:"close",size:28,theme:c})}),p&&l&&E(Fl,{theme:c,isPlaying:p,"aria-label":"Pause",onClick:p?V:w,children:E(Pt,{icon:"pause",size:28,theme:c})}),l&&E(Il,{theme:c,isMuted:r,onClick:m,"aria-label":"Sound",children:E(Pt,{icon:S?"volumeUp":"volumeMute",size:28,theme:c})})]})},Bl=L.div(({styles:t})=>G({img:{width:"100%",height:"auto",maxWidth:"100%"}},t)),$l=({children:t,styles:e={},theme:n=_})=>E(Bl,{theme:n,styles:e,children:t}),jl=L.div(({styles:t,isFullWidth:e,theme:{global:{paddingLeft:n,paddingRight:i}}})=>G({overflow:"hidden",position:"relative",width:e?"100vw":"100%",marginLeft:e?`min(calc((100vw - var(--max-width)) / -2), -${n[0]}px)`:0,marginRight:e?`min(calc((100vw - var(--max-width)) / -2), -${i[0]}px)`:0,[A[0]]:{marginLeft:e?`min(calc((100vw - var(--max-width)) / -2), -${n[1]}px)`:0,marginRight:e?`min(calc((100vw - var(--max-width)) / -2), -${i[1]}px)`:0},[A[1]]:{marginLeft:e?`min(calc((100vw - var(--max-width)) / -2), -${n[2]}px)`:0,marginRight:e?`min(calc((100vw - var(--max-width)) / -2), -${i[2]}px)`:0},[A[2]]:{marginLeft:e?`min(calc((100vw - var(--max-width)) / -2), -${n[3]}px)`:0,marginRight:e?`min(calc((100vw - var(--max-width)) / -2), -${i[3]}px)`:0}},t)),_l=L.div({width:"100%",position:"relative"}),Nl=L.div(({left:t,width:e,gap:n})=>({gap:n,left:t,width:e,display:"flex",position:"relative",transition:"all 0.3s ease-in-out"})),Ul=L.div({width:"100%",display:"flex",position:"relative",alignItems:"stretch"}),zl=L.div({right:0,left:0,zIndex:30,bottom:"0%",width:"100%",display:"flex",pointerEvents:"none",maxWidth:"var(--max-width)",position:"absolute",justifyContent:"flex-end"}),rr=L.button(({isDisabled:t})=>({border:0,display:"block",position:"relative",pointerEvents:"auto",opacity:t?.5:1,transition:"all 0.5s ease-in-out",cursor:t?"default":"pointer","&:hover":{transform:t?"scale(1)":"scale(1.1)"}})),Wl=L.div({gap:15,border:0,marginTop:30,display:"flex",alignItems:"center",justifyContent:"center",[A[1]]:{marginTop:60}}),Gl=L.div(({isActive:t,theme:{carousel:{bullet:{borderRadius:e,width:n,height:i,backgroundColor:r}}}})=>({borderRadius:e,backgroundColor:r,width:n[0],height:i[0],cursor:"pointer",opacity:t?1:.5,transition:"all 0.5s ease-in-out",pointerEvents:t?"none":"auto",[A[0]]:{width:n[1],height:i[1]},[A[1]]:{width:n[2],height:i[2]},[A[2]]:{width:n[3],height:i[3]},"&:hover":{transform:"scale(1.2)"}}));function Kl(){const[t,e]=P.useState({width:void 0,height:void 0});return P.useEffect(()=>{function n(){e({width:window.innerWidth,height:window.innerHeight})}return window.addEventListener("resize",n),n(),()=>window.removeEventListener("resize",n)},[]),t}const Hl=({data:t,styles:e={},displayItem:n=1,theme:i=_,isFullWidth:r=!1,displayNavBullets:o=!1,displayNavButtons:s=!1})=>{const{width:a}=Kl(),[l,c]=P.useState(0),[u,f]=P.useState(i.carousel.gap[0]),d=a!==void 0&&a>Nn[1],h=a!==void 0&&a>Nn[2],[p,g]=P.useState(0),[S,v]=P.useState(0),[w,T]=P.useState(0),[V,m]=P.useState(n),R=P.useRef(null),D=P.useRef(null),y=P.useRef(null),b=(x,C)=>{C<x&&-(C-x)>100&&c(k=>k!==t.length-1*V?k+1:t.length-1),C>x&&C-x>100&&c(k=>k!==0?k-1:0)};return P.useEffect(()=>{if(h){n!==1&&f(i.carousel.gap[3]),m(n);return}if(d){if(f(i.carousel.gap[2]),n===1){f(0),m(1);return}if(n===2){m(2);return}if(n===3){m(2);return}m(n/2);return}f(0),m(1)},[d,h,n]),P.useEffect(()=>{const x=R.current;return x&&g(x.getBoundingClientRect().width),window.addEventListener("resize",()=>g(x.getBoundingClientRect().width)),()=>window.removeEventListener("resize",()=>g(x.getBoundingClientRect().width))},[]),P.useEffect(()=>{var X,Z;let x=0,C=0;const k=z=>{x=z.changedTouches[0].screenX},W=z=>{C=z.changedTouches[0].screenX,b(x,C)};(X=R.current)==null||X.addEventListener("touchstart",z=>k(z),{passive:!0}),(Z=R.current)==null||Z.addEventListener("touchend",z=>W(z),{passive:!0})},[]),P.useEffect(()=>{const C=(V-1)*u;y.current&&T((p-C)/V)},[V,p,u]),P.useEffect(()=>{const C=(t.length-1)*u;v(w*t.length+C)},[t,w,v,u]),dt(jl,{ref:R,theme:i,styles:e,isFullWidth:r,children:[E(_l,{children:E(Nl,{ref:D,width:S,gap:V===1?0:u,left:-l*w-l*u,children:t.map((x,C)=>E(Ul,{ref:y,children:x},`children-${C}`))})}),s&&dt(zl,{children:[E(rr,{"aria-label":"Previous",disabled:l===0,isDisabled:l===0,onClick:()=>c(x=>x-1),children:E(Pt,{theme:i,icon:"arrowBack",size:30})}),E(rr,{"aria-label":"Next",onClick:()=>c(x=>x+1),disabled:l===t.length-1*V,isDisabled:l===t.length-1*V,children:E(Pt,{theme:i,icon:"arrowForward",size:30})})]}),o&&E(Wl,{children:[...Array(t.length+1-V||1)].map((x,C)=>E(Gl,{theme:i,isActive:C===l,onClick:()=>c(C)},`carousselItem-${C}`))})]})};var pe={},rn=function(){return rn=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},rn.apply(this,arguments)},Yl=function(){function t(e,n,i){var r=this;this.endVal=n,this.options=i,this.version="2.8.0",this.defaults={startVal:0,decimalPlaces:0,duration:2,useEasing:!0,useGrouping:!0,useIndianSeparators:!1,smartEasingThreshold:999,smartEasingAmount:333,separator:",",decimal:".",prefix:"",suffix:"",enableScrollSpy:!1,scrollSpyDelay:200,scrollSpyOnce:!1},this.finalEndVal=null,this.useEasing=!0,this.countDown=!1,this.error="",this.startVal=0,this.paused=!0,this.once=!1,this.count=function(o){r.startTime||(r.startTime=o);var s=o-r.startTime;r.remaining=r.duration-s,r.useEasing?r.countDown?r.frameVal=r.startVal-r.easingFn(s,0,r.startVal-r.endVal,r.duration):r.frameVal=r.easingFn(s,r.startVal,r.endVal-r.startVal,r.duration):r.frameVal=r.startVal+(r.endVal-r.startVal)*(s/r.duration);var a=r.countDown?r.frameVal<r.endVal:r.frameVal>r.endVal;r.frameVal=a?r.endVal:r.frameVal,r.frameVal=Number(r.frameVal.toFixed(r.options.decimalPlaces)),r.printValue(r.frameVal),s<r.duration?r.rAF=requestAnimationFrame(r.count):r.finalEndVal!==null?r.update(r.finalEndVal):r.options.onCompleteCallback&&r.options.onCompleteCallback()},this.formatNumber=function(o){var s,a,l,c,u=o<0?"-":"";s=Math.abs(o).toFixed(r.options.decimalPlaces);var f=(s+="").split(".");if(a=f[0],l=f.length>1?r.options.decimal+f[1]:"",r.options.useGrouping){c="";for(var d=3,h=0,p=0,g=a.length;p<g;++p)r.options.useIndianSeparators&&p===4&&(d=2,h=1),p!==0&&h%d==0&&(c=r.options.separator+c),h++,c=a[g-p-1]+c;a=c}return r.options.numerals&&r.options.numerals.length&&(a=a.replace(/[0-9]/g,function(S){return r.options.numerals[+S]}),l=l.replace(/[0-9]/g,function(S){return r.options.numerals[+S]})),u+r.options.prefix+a+l+r.options.suffix},this.easeOutExpo=function(o,s,a,l){return a*(1-Math.pow(2,-10*o/l))*1024/1023+s},this.options=rn(rn({},this.defaults),i),this.formattingFn=this.options.formattingFn?this.options.formattingFn:this.formatNumber,this.easingFn=this.options.easingFn?this.options.easingFn:this.easeOutExpo,this.startVal=this.validateValue(this.options.startVal),this.frameVal=this.startVal,this.endVal=this.validateValue(n),this.options.decimalPlaces=Math.max(this.options.decimalPlaces),this.resetDuration(),this.options.separator=String(this.options.separator),this.useEasing=this.options.useEasing,this.options.separator===""&&(this.options.useGrouping=!1),this.el=typeof e=="string"?document.getElementById(e):e,this.el?this.printValue(this.startVal):this.error="[CountUp] target is null or undefined",typeof window<"u"&&this.options.enableScrollSpy&&(this.error?console.error(this.error,e):(window.onScrollFns=window.onScrollFns||[],window.onScrollFns.push(function(){return r.handleScroll(r)}),window.onscroll=function(){window.onScrollFns.forEach(function(o){return o()})},this.handleScroll(this)))}return t.prototype.handleScroll=function(e){if(e&&window&&!e.once){var n=window.innerHeight+window.scrollY,i=e.el.getBoundingClientRect(),r=i.top+window.pageYOffset,o=i.top+i.height+window.pageYOffset;o<n&&o>window.scrollY&&e.paused?(e.paused=!1,setTimeout(function(){return e.start()},e.options.scrollSpyDelay),e.options.scrollSpyOnce&&(e.once=!0)):(window.scrollY>o||r>n)&&!e.paused&&e.reset()}},t.prototype.determineDirectionAndSmartEasing=function(){var e=this.finalEndVal?this.finalEndVal:this.endVal;this.countDown=this.startVal>e;var n=e-this.startVal;if(Math.abs(n)>this.options.smartEasingThreshold&&this.options.useEasing){this.finalEndVal=e;var i=this.countDown?1:-1;this.endVal=e+i*this.options.smartEasingAmount,this.duration=this.duration/2}else this.endVal=e,this.finalEndVal=null;this.finalEndVal!==null?this.useEasing=!1:this.useEasing=this.options.useEasing},t.prototype.start=function(e){this.error||(this.options.onStartCallback&&this.options.onStartCallback(),e&&(this.options.onCompleteCallback=e),this.duration>0?(this.determineDirectionAndSmartEasing(),this.paused=!1,this.rAF=requestAnimationFrame(this.count)):this.printValue(this.endVal))},t.prototype.pauseResume=function(){this.paused?(this.startTime=null,this.duration=this.remaining,this.startVal=this.frameVal,this.determineDirectionAndSmartEasing(),this.rAF=requestAnimationFrame(this.count)):cancelAnimationFrame(this.rAF),this.paused=!this.paused},t.prototype.reset=function(){cancelAnimationFrame(this.rAF),this.paused=!0,this.resetDuration(),this.startVal=this.validateValue(this.options.startVal),this.frameVal=this.startVal,this.printValue(this.startVal)},t.prototype.update=function(e){cancelAnimationFrame(this.rAF),this.startTime=null,this.endVal=this.validateValue(e),this.endVal!==this.frameVal&&(this.startVal=this.frameVal,this.finalEndVal==null&&this.resetDuration(),this.finalEndVal=null,this.determineDirectionAndSmartEasing(),this.rAF=requestAnimationFrame(this.count))},t.prototype.printValue=function(e){var n;if(this.el){var i=this.formattingFn(e);!((n=this.options.plugin)===null||n===void 0)&&n.render?this.options.plugin.render(this.el,i):this.el.tagName==="INPUT"?this.el.value=i:this.el.tagName==="text"||this.el.tagName==="tspan"?this.el.textContent=i:this.el.innerHTML=i}},t.prototype.ensureNumber=function(e){return typeof e=="number"&&!isNaN(e)},t.prototype.validateValue=function(e){var n=Number(e);return this.ensureNumber(n)?n:(this.error="[CountUp] invalid start or end value: ".concat(e),null)},t.prototype.resetDuration=function(){this.startTime=null,this.duration=1e3*Number(this.options.duration),this.remaining=this.duration},t}();const ql=Object.freeze(Object.defineProperty({__proto__:null,CountUp:Yl},Symbol.toStringTag,{value:"Module"})),Xl=Za(ql);var sr;function Zl(){if(sr)return pe;sr=1,Object.defineProperty(pe,"__esModule",{value:!0});var t=P,e=Xl;function n(y,b){var x=y==null?null:typeof Symbol<"u"&&y[Symbol.iterator]||y["@@iterator"];if(x!=null){var C,k,W,X,Z=[],z=!0,F=!1;try{if(W=(x=x.call(y)).next,b!==0)for(;!(z=(C=W.call(x)).done)&&(Z.push(C.value),Z.length!==b);z=!0);}catch(N){F=!0,k=N}finally{try{if(!z&&x.return!=null&&(X=x.return(),Object(X)!==X))return}finally{if(F)throw k}}return Z}}function i(y,b){var x=Object.keys(y);if(Object.getOwnPropertySymbols){var C=Object.getOwnPropertySymbols(y);b&&(C=C.filter(function(k){return Object.getOwnPropertyDescriptor(y,k).enumerable})),x.push.apply(x,C)}return x}function r(y){for(var b=1;b<arguments.length;b++){var x=arguments[b]!=null?arguments[b]:{};b%2?i(Object(x),!0).forEach(function(C){a(y,C,x[C])}):Object.getOwnPropertyDescriptors?Object.defineProperties(y,Object.getOwnPropertyDescriptors(x)):i(Object(x)).forEach(function(C){Object.defineProperty(y,C,Object.getOwnPropertyDescriptor(x,C))})}return y}function o(y,b){if(typeof y!="object"||!y)return y;var x=y[Symbol.toPrimitive];if(x!==void 0){var C=x.call(y,b||"default");if(typeof C!="object")return C;throw new TypeError("@@toPrimitive must return a primitive value.")}return(b==="string"?String:Number)(y)}function s(y){var b=o(y,"string");return typeof b=="symbol"?b:String(b)}function a(y,b,x){return b=s(b),b in y?Object.defineProperty(y,b,{value:x,enumerable:!0,configurable:!0,writable:!0}):y[b]=x,y}function l(){return l=Object.assign?Object.assign.bind():function(y){for(var b=1;b<arguments.length;b++){var x=arguments[b];for(var C in x)Object.prototype.hasOwnProperty.call(x,C)&&(y[C]=x[C])}return y},l.apply(this,arguments)}function c(y,b){if(y==null)return{};var x={},C=Object.keys(y),k,W;for(W=0;W<C.length;W++)k=C[W],!(b.indexOf(k)>=0)&&(x[k]=y[k]);return x}function u(y,b){if(y==null)return{};var x=c(y,b),C,k;if(Object.getOwnPropertySymbols){var W=Object.getOwnPropertySymbols(y);for(k=0;k<W.length;k++)C=W[k],!(b.indexOf(C)>=0)&&Object.prototype.propertyIsEnumerable.call(y,C)&&(x[C]=y[C])}return x}function f(y,b){return d(y)||n(y,b)||h(y,b)||g()}function d(y){if(Array.isArray(y))return y}function h(y,b){if(y){if(typeof y=="string")return p(y,b);var x=Object.prototype.toString.call(y).slice(8,-1);if(x==="Object"&&y.constructor&&(x=y.constructor.name),x==="Map"||x==="Set")return Array.from(y);if(x==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(x))return p(y,b)}}function p(y,b){(b==null||b>y.length)&&(b=y.length);for(var x=0,C=new Array(b);x<b;x++)C[x]=y[x];return C}function g(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
16
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var S=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?t.useLayoutEffect:t.useEffect;function v(y){var b=t.useRef(y);return S(function(){b.current=y}),t.useCallback(function(){for(var x=arguments.length,C=new Array(x),k=0;k<x;k++)C[k]=arguments[k];return b.current.apply(void 0,C)},[])}var w=function(b,x){var C=x.decimal,k=x.decimals,W=x.duration,X=x.easingFn,Z=x.end,z=x.formattingFn,F=x.numerals,N=x.prefix,at=x.separator,rt=x.start,Ot=x.suffix,kt=x.useEasing,vt=x.useGrouping,mt=x.useIndianSeparators,Ft=x.enableScrollSpy,ht=x.scrollSpyDelay,It=x.scrollSpyOnce,xt=x.plugin;return new e.CountUp(b,Z,{startVal:rt,duration:W,decimal:C,decimalPlaces:k,easingFn:X,formattingFn:z,numerals:F,separator:at,prefix:N,suffix:Ot,plugin:xt,useEasing:kt,useIndianSeparators:mt,useGrouping:vt,enableScrollSpy:Ft,scrollSpyDelay:ht,scrollSpyOnce:It})},T=["ref","startOnMount","enableReinitialize","delay","onEnd","onStart","onPauseResume","onReset","onUpdate"],V={decimal:".",separator:",",delay:null,prefix:"",suffix:"",duration:2,start:0,decimals:0,startOnMount:!0,enableReinitialize:!0,useEasing:!0,useGrouping:!0,useIndianSeparators:!1},m=function(b){var x=Object.fromEntries(Object.entries(b).filter(function(lt){var wt=f(lt,2),zt=wt[1];return zt!==void 0})),C=t.useMemo(function(){return r(r({},V),x)},[b]),k=C.ref,W=C.startOnMount,X=C.enableReinitialize,Z=C.delay,z=C.onEnd,F=C.onStart,N=C.onPauseResume,at=C.onReset,rt=C.onUpdate,Ot=u(C,T),kt=t.useRef(),vt=t.useRef(),mt=t.useRef(!1),Ft=v(function(){return w(typeof k=="string"?k:k.current,Ot)}),ht=v(function(lt){var wt=kt.current;if(wt&&!lt)return wt;var zt=Ft();return kt.current=zt,zt}),It=v(function(){var lt=function(){return ht(!0).start(function(){z==null||z({pauseResume:xt,reset:bt,start:Ut,update:Nt})})};Z&&Z>0?vt.current=setTimeout(lt,Z*1e3):lt(),F==null||F({pauseResume:xt,reset:bt,update:Nt})}),xt=v(function(){ht().pauseResume(),N==null||N({reset:bt,start:Ut,update:Nt})}),bt=v(function(){ht().el&&(vt.current&&clearTimeout(vt.current),ht().reset(),at==null||at({pauseResume:xt,start:Ut,update:Nt}))}),Nt=v(function(lt){ht().update(lt),rt==null||rt({pauseResume:xt,reset:bt,start:Ut})}),Ut=v(function(){bt(),It()}),M=v(function(lt){W&&(lt&&bt(),It())});return t.useEffect(function(){mt.current?X&&M(!0):(mt.current=!0,M())},[X,mt,M,Z,b.start,b.suffix,b.prefix,b.duration,b.separator,b.decimals,b.decimal,b.formattingFn]),t.useEffect(function(){return function(){bt()}},[bt]),{start:Ut,pauseResume:xt,reset:bt,update:Nt,getCountUp:ht}},R=["className","redraw","containerProps","children","style"],D=function(b){var x=b.className,C=b.redraw,k=b.containerProps,W=b.children,X=b.style,Z=u(b,R),z=t.useRef(null),F=t.useRef(!1),N=m(r(r({},Z),{},{ref:z,startOnMount:typeof W!="function"||b.delay===0,enableReinitialize:!1})),at=N.start,rt=N.reset,Ot=N.update,kt=N.pauseResume,vt=N.getCountUp,mt=v(function(){at()}),Ft=v(function(xt){b.preserveValue||rt(),Ot(xt)}),ht=v(function(){if(typeof b.children=="function"&&!(z.current instanceof Element)){console.error(`Couldn't find attached element to hook the CountUp instance into! Try to attach "containerRef" from the render prop to a an Element, eg. <span ref={containerRef} />.`);return}vt()});t.useEffect(function(){ht()},[ht]),t.useEffect(function(){F.current&&Ft(b.end)},[b.end,Ft]);var It=C&&b;return t.useEffect(function(){C&&F.current&&mt()},[mt,C,It]),t.useEffect(function(){!C&&F.current&&mt()},[mt,C,b.start,b.suffix,b.prefix,b.duration,b.separator,b.decimals,b.decimal,b.className,b.formattingFn]),t.useEffect(function(){F.current=!0},[]),typeof W=="function"?W({countUpRef:z,start:at,reset:rt,update:Ot,pauseResume:kt,getCountUp:vt}):t.createElement("span",l({className:x,ref:z,style:X},k),typeof b.start<"u"?vt().formattingFn(b.start):"")};return pe.default=D,pe.useCountUp=m,pe}var Jl=Zl();const Ql=Xa(Jl);var zn=new Map,Ue=new WeakMap,or=0,tc=void 0;function ec(t){return t?(Ue.has(t)||(or+=1,Ue.set(t,or.toString())),Ue.get(t)):"0"}function nc(t){return Object.keys(t).sort().filter(e=>t[e]!==void 0).map(e=>`${e}_${e==="root"?ec(t.root):t[e]}`).toString()}function ic(t){const e=nc(t);let n=zn.get(e);if(!n){const i=new Map;let r;const o=new IntersectionObserver(s=>{s.forEach(a=>{var l;const c=a.isIntersecting&&r.some(u=>a.intersectionRatio>=u);t.trackVisibility&&typeof a.isVisible>"u"&&(a.isVisible=c),(l=i.get(a.target))==null||l.forEach(u=>{u(c,a)})})},t);r=o.thresholds||(Array.isArray(t.threshold)?t.threshold:[t.threshold||0]),n={id:e,observer:o,elements:i},zn.set(e,n)}return n}function rc(t,e,n={},i=tc){if(typeof window.IntersectionObserver>"u"&&i!==void 0){const l=t.getBoundingClientRect();return e(i,{isIntersecting:i,target:t,intersectionRatio:typeof n.threshold=="number"?n.threshold:0,time:0,boundingClientRect:l,intersectionRect:l,rootBounds:l}),()=>{}}const{id:r,observer:o,elements:s}=ic(n),a=s.get(t)||[];return s.has(t)||s.set(t,a),a.push(e),o.observe(t),function(){a.splice(a.indexOf(e),1),a.length===0&&(s.delete(t),o.unobserve(t)),s.size===0&&(o.disconnect(),zn.delete(r))}}function sc({threshold:t,delay:e,trackVisibility:n,rootMargin:i,root:r,triggerOnce:o,skip:s,initialInView:a,fallbackInView:l,onChange:c}={}){var u;const[f,d]=ct.useState(null),h=ct.useRef(c),[p,g]=ct.useState({inView:!!a,entry:void 0});h.current=c,ct.useEffect(()=>{if(s||!f)return;let T;return T=rc(f,(V,m)=>{g({inView:V,entry:m}),h.current&&h.current(V,m),m.isIntersecting&&o&&T&&(T(),T=void 0)},{root:r,rootMargin:i,threshold:t,trackVisibility:n,delay:e},l),()=>{T&&T()}},[Array.isArray(t)?t.toString():t,f,r,i,o,s,n,l,e]);const S=(u=p.entry)==null?void 0:u.target,v=ct.useRef(void 0);!f&&S&&!o&&!s&&v.current!==S&&(v.current=S,g({inView:!!a,entry:void 0}));const w=[d,p.inView,p.entry];return w.ref=w[0],w.inView=w[1],w.entry=w[2],w}const oc=L.div(({styles:t})=>G({display:"flex",flexDirection:"column"},t)),ac=L.div({fontSize:"1.2em",paddingBottom:15,[A[1]]:{paddingBottom:30},span:{fontSize:"2.5em",lineHeight:"1em"}}),lc=({label:t,suffix:e,keyNumber:n,styles:i={},theme:r=_})=>{const[o,s]=sc({threshold:.3,triggerOnce:!0});return dt(oc,{ref:o,theme:r,styles:i,children:[dt(ac,{children:[E("span",{children:E(Ql,{end:s?n:0,duration:8})}),e]}),E("p",{children:t})]})},cc=L.div(({styles:t,theme:{global:{maxWidth:e,paddingLeft:n,paddingRight:i}}})=>G({height:0,width:"100vw",overflow:"hidden",position:"relative",left:-n[0],right:-i[0],paddingBottom:"56.25%",[A[0]]:{left:`min(calc((100vw - ${e}px) / -2), -${n[1]}px)`,right:`min(calc((100vw - ${e}px) / -2), -${i[1]}px)`},[A[1]]:{left:`min(calc((100vw - ${e}px) / -2), -${n[2]}px)`,right:`min(calc((100vw - ${e}px) / -2), -${i[2]}px)`},[A[2]]:{left:`min(calc((100vw - ${e}px) / -2), -${n[3]}px)`,right:`min(calc((100vw - ${e}px) / -2), -${i[3]}px)`}},t)),uc=({video:t,poster:e,isAutoPlay:n,styles:i={},showControls:r,startMuted:o=!1,theme:s=_})=>E(cc,{theme:s,styles:i,children:E($s,{isVideoFullWidth:!0,video:t,theme:s,poster:e,isAutoPlay:n,startMuted:o,showControls:r})}),fc=L.div(({styles:t,theme:{languageSwitcher:{width:e}}})=>G({width:e[0],marginLeft:"auto",marginRight:"auto",position:"relative",[A[0]]:{width:e[1]},[A[1]]:{width:e[2]},[A[2]]:{width:e[3]}},t)),dc=L.div({right:30,top:"50%",position:"absolute",transform:"translate(0%, -50%)"}),hc=L.select(({theme:{global:{defaultFont:t},languageSwitcher:{color:e,border:n,borderRadius:i,backgroundColor:r,paddingTop:o,paddingLeft:s,paddingRight:a,paddingBottom:l}}})=>({color:e,border:n,width:"100%",backgroundColor:r,appearance:"none",padding:"15px 30px",borderRadius:i,fontFamily:`var(--font-${t})`,paddingTop:o[0],paddingLeft:s[0],paddingRight:a[0],paddingBottom:l[0],[A[0]]:{paddingTop:o[1],paddingLeft:s[1],paddingRight:a[1],paddingBottom:l[1]},[A[1]]:{paddingTop:o[2],paddingLeft:s[2],paddingRight:a[2],paddingBottom:l[2]},[A[2]]:{paddingTop:o[3],paddingLeft:s[3],paddingRight:a[3],paddingBottom:l[3]},"&:focus":{outline:"none"}})),pc=({currentLocale:t,handleChange:e,locales:n,styles:i={},theme:r=_,translations:o})=>dt(fc,{theme:r,styles:i,children:[E(dc,{children:E(Pt,{theme:r,icon:"caret"})}),E(hc,{theme:r,value:t,onChange:e,"aria-label":"Switch Language",children:n.map((s,a)=>E("option",{value:s,disabled:s===t,children:o[s]},`locale-${a}`))})]});function mc(t){var e=t.match(/^var\((.*)\)$/);return e?e[1]:t}function gc(t,e){var n={};{var i=t;for(var r in i){var o=i[r];o!=null&&(n[mc(r)]=o)}}return Object.defineProperty(n,"toString",{value:function(){return Object.keys(this).map(a=>"".concat(a,":").concat(this[a])).join(";")},writable:!1}),n}var yc="var(--_1wp326d0)",vc="var(--_1wp326d1)",xc="var(--_1wp326d2)",bc="_1wp326d3";const Sc=({children:t,styles:e={},theme:n=_})=>E("main",{className:bc,style:gc({[xc]:n.main.backgroundColor,[vc]:n.main.minHeight,[yc]:e}),children:t}),wc=L.div(({isOpen:t,theme:{header:{overlayGap:e,overlayBackgroundColor:n}}})=>({top:0,left:0,zIndex:40,gap:e[0],width:"100vw",display:"flex",backgroundColor:n,height:"100vh",position:"fixed",overflow:"hidden",textAlign:"center",alignItems:"center",flexDirection:"column",transformOrigin:"0% 0%",justifyContent:"center",bottom:t?"-100vh":"100%",transform:t?"translate(0, 0)":"translate(0, -100%)",transition:"transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0)",[A[0]]:{gap:e[1]},[A[1]]:{gap:e[2]},[A[2]]:{gap:e[3]}})),Tc=({isOpen:t,theme:e=_,children:n})=>(P.useEffect(()=>{document.getElementsByTagName("html")[0].style.overflow="",t&&(document.getElementsByTagName("html")[0].style.overflow="hidden")},[t]),E(wc,{isOpen:t,theme:e,children:n})),Cc=L.header(({styles:t,isFixed:e,theme:{global:{paddingLeft:n,paddingRight:i},header:{height:r,gap:o,backgroundColor:s,paddingTop:a,paddingBottom:l}}})=>G({zIndex:30,gap:o[0],width:"100%",display:"flex",backgroundColor:s,height:r[0],alignItems:"center",paddingTop:a[0],paddingLeft:n[0],paddingRight:i[0],paddingBottom:l[0],justifyContent:"space-between",position:e?"fixed":"relative",[A[0]]:{gap:o[1],height:r[1],paddingTop:a[1],paddingLeft:n[1],paddingRight:i[1],paddingBottom:l[1]},[A[1]]:{gap:o[2],height:r[2],paddingTop:a[2],paddingLeft:n[2],paddingRight:i[2],paddingBottom:l[2]},[A[2]]:{gap:o[3],height:r[3],paddingTop:a[3],paddingLeft:n[3],paddingRight:i[3],paddingBottom:l[3]},a:{transition:"all 0.5s ease-in-out","&:hover":{opacity:.5}}},t)),Pc=L.div(({theme:{header:{height:t}}})=>({height:t[0],[A[0]]:{height:t[1]},[A[1]]:{height:t[2]},[A[2]]:{height:t[3]}})),Ac=L.button(({displayOnDesktop:t})=>({border:0,width:25,height:12,zIndex:60,marginLeft:0,cursor:"pointer",position:"relative",[A[1]]:{display:t?"block":"none"}})),ar=L.span(({isNavOpen:t,theme:{header:{toggleNavColor:e,toggleNavOpenColor:n,toggleNavBorderRadius:i}}})=>({height:2,width:25,borderRadius:i,marginBottom:8,display:"block",position:"relative",transformOrigin:"center center",transition:"all 0.5s ease-in-out",background:t?n:e,"&:nth-of-type(1)":{transform:t?"rotate(45deg) translate(4px, 3px)":"none"},"&:nth-of-type(2)":{transform:t?"rotate(-45deg) translate(4px, -3px)":"none"}})),Ec=({onToggleNav:t,theme:e=_,isNavOpen:n=!1,displayOnDesktop:i})=>dt(Ac,{onClick:()=>{window.scrollTo({top:0,behavior:"smooth"}),t()},"aria-label":"Toggle nav",displayOnDesktop:i,children:[E(ar,{theme:e,isNavOpen:n}),E(ar,{theme:e,isNavOpen:n})]}),Vc=({children:t,styles:e={},isFixed:n=!1,childrenOverlay:i,theme:r=_,hideToggleNav:o=!1,displayToggleNavOnDesktop:s=!1})=>{const[a,l]=P.useState(!1);return dt(vl,{children:[dt(Cc,{theme:r,styles:e,isFixed:n,children:[i&&E(Tc,{theme:r,isOpen:a,children:i}),t,!o&&E(Ec,{theme:r,isNavOpen:a,onToggleNav:()=>l(!a),displayOnDesktop:s})]}),n&&E(Pc,{theme:r})]})},Rc=L.footer(({styles:t,theme:{global:{paddingLeft:e,paddingRight:n},footer:{gap:i,backgroundColor:r,paddingTop:o,paddingBottom:s}}})=>G({zIndex:20,gap:i[0],backgroundColor:r,display:"flex",fontSize:"0.8em",alignItems:"center",flexDirection:"column",paddingTop:o[0],paddingLeft:e[0],paddingRight:n[0],paddingBottom:s[0],justifyContent:"space-between",[A[0]]:{gap:i[1],paddingTop:o[1],paddingLeft:e[1],paddingRight:n[1],paddingBottom:s[1]},[A[1]]:{gap:i[2],flexDirection:"row",paddingTop:o[2],paddingLeft:e[2],paddingRight:n[2],paddingBottom:s[2]},[A[2]]:{gap:i[3],paddingTop:o[3],paddingLeft:e[3],paddingRight:n[3],paddingBottom:s[3]},a:{transition:"all 0.5s ease-in-out","&:hover":{opacity:.5}}},t)),Mc=({children:t,styles:e={},theme:n=_})=>E(Rc,{theme:n,styles:e,children:t});var re=(t=>(t[t.Center=0]="Center",t[t.Left=1]="Left",t[t.Right=2]="Right",t))(re||{});const Dc=L.div(({theme:t,styles:e,align:n,columns:i,isCentered:r,isInverted:o})=>{const s={width:"100%",display:"flex",flexWrap:"wrap",flexDirection:"column",alignItems:"flex-start",gap:t.columns.gap/2,justifyContent:"space-between",textAlign:n===re.Center?"center":"left",[A[1]]:{gap:t.columns.gap,alignItems:r?"center":"stretch",flexDirection:o?"row-reverse":"row",justifyContent:n===re.Right?"flex-end":n===re.Center?"center":"flex-start"},[A[2]]:{gap:t.columns.gap*2}},a=i.map((l,c)=>({[`>:nth-of-type(${c+1})`]:{minWidth:"100%",position:"relative","&:empty":{marginTop:-t.columns.gap/2,[A[1]]:{marginTop:0}},[A[1]]:{flex:l,minWidth:"auto",maxWidth:`${l}%`}}}));return G(Object.assign(s,...a),e)}),Lc=({columns:t,children:e,styles:n={},align:i=re.Left,isCentered:r=!1,isInverted:o=!1,theme:s=_})=>E(Dc,{align:i,theme:s,columns:t,isCentered:r,isInverted:o,styles:n,children:e}),js=P.createContext({});function _s(t){const e=P.useRef(null);return e.current===null&&(e.current=t()),e.current}const fi=P.createContext(null),Ns=P.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});function Oc(t=!0){const e=P.useContext(fi);if(e===null)return[!0,null];const{isPresent:n,onExitComplete:i,register:r}=e,o=P.useId();P.useEffect(()=>{if(t)return r(o)},[t]);const s=P.useCallback(()=>t&&i&&i(o),[o,i,t]);return!n&&i?[!1,s]:[!0]}const di=typeof window<"u",Us=di?P.useLayoutEffect:P.useEffect,ut=t=>t;let ue=ut,Mt=ut;process.env.NODE_ENV!=="production"&&(ue=(t,e)=>{!t&&typeof console<"u"&&console.warn(e)},Mt=(t,e)=>{if(!t)throw new Error(e)});function hi(t){let e;return()=>(e===void 0&&(e=t()),e)}const oe=(t,e,n)=>{const i=e-t;return i===0?1:(n-t)/i},Et=t=>t*1e3,Dt=t=>t/1e3,kc={skipAnimations:!1,useManualTiming:!1},ze=["read","resolveKeyframes","update","preRender","render","postRender"];function Fc(t,e){let n=new Set,i=new Set,r=!1,o=!1;const s=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function l(u){s.has(u)&&(c.schedule(u),t()),u(a)}const c={schedule:(u,f=!1,d=!1)=>{const p=d&&r?n:i;return f&&s.add(u),p.has(u)||p.add(u),u},cancel:u=>{i.delete(u),s.delete(u)},process:u=>{if(a=u,r){o=!0;return}r=!0,[n,i]=[i,n],n.forEach(l),n.clear(),r=!1,o&&(o=!1,c.process(u))}};return c}const Ic=40;function zs(t,e){let n=!1,i=!0;const r={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,s=ze.reduce((v,w)=>(v[w]=Fc(o),v),{}),{read:a,resolveKeyframes:l,update:c,preRender:u,render:f,postRender:d}=s,h=()=>{const v=performance.now();n=!1,r.delta=i?1e3/60:Math.max(Math.min(v-r.timestamp,Ic),1),r.timestamp=v,r.isProcessing=!0,a.process(r),l.process(r),c.process(r),u.process(r),f.process(r),d.process(r),r.isProcessing=!1,n&&e&&(i=!1,t(h))},p=()=>{n=!0,i=!0,r.isProcessing||t(h)};return{schedule:ze.reduce((v,w)=>{const T=s[w];return v[w]=(V,m=!1,R=!1)=>(n||p(),T.schedule(V,m,R)),v},{}),cancel:v=>{for(let w=0;w<ze.length;w++)s[ze[w]].cancel(v)},state:r,steps:s}}const{schedule:U,cancel:$t,state:J,steps:An}=zs(typeof requestAnimationFrame<"u"?requestAnimationFrame:ut,!0),Ws=P.createContext({strict:!1}),lr={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},ae={};for(const t in lr)ae[t]={isEnabled:e=>lr[t].some(n=>!!e[n])};function Bc(t){for(const e in t)ae[e]={...ae[e],...t[e]}}const $c=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 sn(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||$c.has(t)}let Gs=t=>!sn(t);function jc(t){t&&(Gs=e=>e.startsWith("on")?!sn(e):t(e))}try{jc(require("@emotion/is-prop-valid").default)}catch{}function _c(t,e,n){const i={};for(const r in t)r==="values"&&typeof t.values=="object"||(Gs(r)||n===!0&&sn(r)||!e&&!sn(r)||t.draggable&&r.startsWith("onDrag"))&&(i[r]=t[r]);return i}const cr=new Set;function mn(t,e,n){t||cr.has(e)||(console.warn(e),cr.add(e))}function Nc(t){if(typeof Proxy>"u")return t;const e=new Map,n=(...i)=>(process.env.NODE_ENV!=="production"&&mn(!1,"motion() is deprecated. Use motion.create() instead."),t(...i));return new Proxy(n,{get:(i,r)=>r==="create"?t:(e.has(r)||e.set(r,t(r)),e.get(r))})}const gn=P.createContext({});function yn(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}function Ee(t){return typeof t=="string"||Array.isArray(t)}const pi=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],mi=["initial",...pi];function vn(t){return yn(t.animate)||mi.some(e=>Ee(t[e]))}function Ks(t){return!!(vn(t)||t.variants)}function Uc(t,e){if(vn(t)){const{initial:n,animate:i}=t;return{initial:n===!1||Ee(n)?n:void 0,animate:Ee(i)?i:void 0}}return t.inherit!==!1?e:{}}function zc(t){const{initial:e,animate:n}=Uc(t,P.useContext(gn));return P.useMemo(()=>({initial:e,animate:n}),[ur(e),ur(n)])}function ur(t){return Array.isArray(t)?t.join(" "):t}const Wc=Symbol.for("motionComponentSymbol");function qt(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function Gc(t,e,n){return P.useCallback(i=>{i&&t.onMount&&t.onMount(i),e&&(i?e.mount(i):e.unmount()),n&&(typeof n=="function"?n(i):qt(n)&&(n.current=i))},[e])}const gi=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Kc="framerAppearId",Hs="data-"+gi(Kc),{schedule:yi,cancel:$p}=zs(queueMicrotask,!1),Ys=P.createContext({});function Hc(t,e,n,i,r){var o,s;const{visualElement:a}=P.useContext(gn),l=P.useContext(Ws),c=P.useContext(fi),u=P.useContext(Ns).reducedMotion,f=P.useRef(null);i=i||l.renderer,!f.current&&i&&(f.current=i(t,{visualState:e,parent:a,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:u}));const d=f.current,h=P.useContext(Ys);d&&!d.projection&&r&&(d.type==="html"||d.type==="svg")&&Yc(f.current,n,r,h);const p=P.useRef(!1);P.useInsertionEffect(()=>{d&&p.current&&d.update(n,c)});const g=n[Hs],S=P.useRef(!!g&&!(!((o=window.MotionHandoffIsComplete)===null||o===void 0)&&o.call(window,g))&&((s=window.MotionHasOptimisedAnimation)===null||s===void 0?void 0:s.call(window,g)));return Us(()=>{d&&(p.current=!0,window.MotionIsMounted=!0,d.updateFeatures(),yi.render(d.render),S.current&&d.animationState&&d.animationState.animateChanges())}),P.useEffect(()=>{d&&(!S.current&&d.animationState&&d.animationState.animateChanges(),S.current&&(queueMicrotask(()=>{var v;(v=window.MotionHandoffMarkAsComplete)===null||v===void 0||v.call(window,g)}),S.current=!1))}),d}function Yc(t,e,n,i){const{layoutId:r,layout:o,drag:s,dragConstraints:a,layoutScroll:l,layoutRoot:c}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:qs(t.parent)),t.projection.setOptions({layoutId:r,layout:o,alwaysMeasureLayout:!!s||a&&qt(a),visualElement:t,animationType:typeof o=="string"?o:"both",initialPromotionConfig:i,layoutScroll:l,layoutRoot:c})}function qs(t){if(t)return t.options.allowProjection!==!1?t.projection:qs(t.parent)}function qc({preloadedFeatures:t,createVisualElement:e,useRender:n,useVisualState:i,Component:r}){var o,s;t&&Bc(t);function a(c,u){let f;const d={...P.useContext(Ns),...c,layoutId:Xc(c)},{isStatic:h}=d,p=zc(c),g=i(c,h);if(!h&&di){Zc(d,t);const S=Jc(d);f=S.MeasureLayout,p.visualElement=Hc(r,g,d,e,S.ProjectionNode)}return Je.jsxs(gn.Provider,{value:p,children:[f&&p.visualElement?Je.jsx(f,{visualElement:p.visualElement,...d}):null,n(r,c,Gc(g,p.visualElement,u),g,h,p.visualElement)]})}a.displayName=`motion.${typeof r=="string"?r:`create(${(s=(o=r.displayName)!==null&&o!==void 0?o:r.name)!==null&&s!==void 0?s:""})`}`;const l=P.forwardRef(a);return l[Wc]=r,l}function Xc({layoutId:t}){const e=P.useContext(js).id;return e&&t!==void 0?e+"-"+t:t}function Zc(t,e){const n=P.useContext(Ws).strict;if(process.env.NODE_ENV!=="production"&&e&&n){const i="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";t.ignoreStrict?ue(!1,i):Mt(!1,i)}}function Jc(t){const{drag:e,layout:n}=ae;if(!e&&!n)return{};const i={...e,...n};return{MeasureLayout:e!=null&&e.isEnabled(t)||n!=null&&n.isEnabled(t)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}const Xs=t=>e=>typeof e=="string"&&e.startsWith(t),vi=Xs("--"),Qc=Xs("var(--"),xi=t=>Qc(t)?tu.test(t.split("/*")[0].trim()):!1,tu=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Ve={};function eu(t){for(const e in t)Ve[e]=t[e],vi(e)&&(Ve[e].isCSSVariable=!0)}const fe=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Yt=new Set(fe);function Zs(t,{layout:e,layoutId:n}){return Yt.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!Ve[t]||t==="opacity")}const it=t=>!!(t&&t.getVelocity),Js=(t,e)=>e&&typeof t=="number"?e.transform(t):t,Lt=(t,e,n)=>n>e?e:n<t?t:n,de={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},Re={...de,transform:t=>Lt(0,1,t)},We={...de,default:1},Ie=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),Bt=Ie("deg"),Vt=Ie("%"),O=Ie("px"),nu=Ie("vh"),iu=Ie("vw"),fr={...Vt,parse:t=>Vt.parse(t)/100,transform:t=>Vt.transform(t*100)},ru={borderWidth:O,borderTopWidth:O,borderRightWidth:O,borderBottomWidth:O,borderLeftWidth:O,borderRadius:O,radius:O,borderTopLeftRadius:O,borderTopRightRadius:O,borderBottomRightRadius:O,borderBottomLeftRadius:O,width:O,maxWidth:O,height:O,maxHeight:O,top:O,right:O,bottom:O,left:O,padding:O,paddingTop:O,paddingRight:O,paddingBottom:O,paddingLeft:O,margin:O,marginTop:O,marginRight:O,marginBottom:O,marginLeft:O,backgroundPositionX:O,backgroundPositionY:O},su={rotate:Bt,rotateX:Bt,rotateY:Bt,rotateZ:Bt,scale:We,scaleX:We,scaleY:We,scaleZ:We,skew:Bt,skewX:Bt,skewY:Bt,distance:O,translateX:O,translateY:O,translateZ:O,x:O,y:O,z:O,perspective:O,transformPerspective:O,opacity:Re,originX:fr,originY:fr,originZ:O},dr={...de,transform:Math.round},bi={...ru,...su,zIndex:dr,size:O,fillOpacity:Re,strokeOpacity:Re,numOctaves:dr},ou={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},au=fe.length;function lu(t,e,n){let i="",r=!0;for(let o=0;o<au;o++){const s=fe[o],a=t[s];if(a===void 0)continue;let l=!0;if(typeof a=="number"?l=a===(s.startsWith("scale")?1:0):l=parseFloat(a)===0,!l||n){const c=Js(a,bi[s]);if(!l){r=!1;const u=ou[s]||s;i+=`${u}(${c}) `}n&&(e[s]=c)}}return i=i.trim(),n?i=n(e,r?"":i):r&&(i="none"),i}function Si(t,e,n){const{style:i,vars:r,transformOrigin:o}=t;let s=!1,a=!1;for(const l in e){const c=e[l];if(Yt.has(l)){s=!0;continue}else if(vi(l)){r[l]=c;continue}else{const u=Js(c,bi[l]);l.startsWith("origin")?(a=!0,o[l]=u):i[l]=u}}if(e.transform||(s||n?i.transform=lu(e,t.transform,n):i.transform&&(i.transform="none")),a){const{originX:l="50%",originY:c="50%",originZ:u=0}=o;i.transformOrigin=`${l} ${c} ${u}`}}const wi=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Qs(t,e,n){for(const i in e)!it(e[i])&&!Zs(i,n)&&(t[i]=e[i])}function cu({transformTemplate:t},e){return P.useMemo(()=>{const n=wi();return Si(n,e,t),Object.assign({},n.vars,n.style)},[e])}function uu(t,e){const n=t.style||{},i={};return Qs(i,n,t),Object.assign(i,cu(t,e)),i}function fu(t,e){const n={},i=uu(t,e);return t.drag&&t.dragListener!==!1&&(n.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=i,n}const du=["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 Ti(t){return typeof t!="string"||t.includes("-")?!1:!!(du.indexOf(t)>-1||/[A-Z]/u.test(t))}const hu={offset:"stroke-dashoffset",array:"stroke-dasharray"},pu={offset:"strokeDashoffset",array:"strokeDasharray"};function mu(t,e,n=1,i=0,r=!0){t.pathLength=1;const o=r?hu:pu;t[o.offset]=O.transform(-i);const s=O.transform(e),a=O.transform(n);t[o.array]=`${s} ${a}`}function hr(t,e,n){return typeof t=="string"?t:O.transform(e+n*t)}function gu(t,e,n){const i=hr(e,t.x,t.width),r=hr(n,t.y,t.height);return`${i} ${r}`}function Ci(t,{attrX:e,attrY:n,attrScale:i,originX:r,originY:o,pathLength:s,pathSpacing:a=1,pathOffset:l=0,...c},u,f){if(Si(t,c,f),u){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:d,style:h,dimensions:p}=t;d.transform&&(p&&(h.transform=d.transform),delete d.transform),p&&(r!==void 0||o!==void 0||h.transform)&&(h.transformOrigin=gu(p,r!==void 0?r:.5,o!==void 0?o:.5)),e!==void 0&&(d.x=e),n!==void 0&&(d.y=n),i!==void 0&&(d.scale=i),s!==void 0&&mu(d,s,a,l,!1)}const to=()=>({...wi(),attrs:{}}),Pi=t=>typeof t=="string"&&t.toLowerCase()==="svg";function yu(t,e,n,i){const r=P.useMemo(()=>{const o=to();return Ci(o,e,Pi(i),t.transformTemplate),{...o.attrs,style:{...o.style}}},[e]);if(t.style){const o={};Qs(o,t.style,t),r.style={...o,...r.style}}return r}function vu(t=!1){return(n,i,r,{latestValues:o},s)=>{const l=(Ti(n)?yu:fu)(i,o,s,n),c=_c(i,typeof n=="string",t),u=n!==P.Fragment?{...c,...l,ref:r}:{},{children:f}=i,d=P.useMemo(()=>it(f)?f.get():f,[f]);return P.createElement(n,{...u,children:d})}}function pr(t){const e=[{},{}];return t==null||t.values.forEach((n,i)=>{e[0][i]=n.get(),e[1][i]=n.getVelocity()}),e}function Ai(t,e,n,i){if(typeof e=="function"){const[r,o]=pr(i);e=e(n!==void 0?n:t.custom,r,o)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[r,o]=pr(i);e=e(n!==void 0?n:t.custom,r,o)}return e}const Wn=t=>Array.isArray(t),xu=t=>!!(t&&typeof t=="object"&&t.mix&&t.toValue),bu=t=>Wn(t)?t[t.length-1]||0:t;function qe(t){const e=it(t)?t.get():t;return xu(e)?e.toValue():e}function Su({scrapeMotionValuesFromProps:t,createRenderState:e,onUpdate:n},i,r,o){const s={latestValues:wu(i,r,o,t),renderState:e()};return n&&(s.onMount=a=>n({props:i,current:a,...s}),s.onUpdate=a=>n(a)),s}const eo=t=>(e,n)=>{const i=P.useContext(gn),r=P.useContext(fi),o=()=>Su(t,e,i,r);return n?o():_s(o)};function wu(t,e,n,i){const r={},o=i(t,{});for(const d in o)r[d]=qe(o[d]);let{initial:s,animate:a}=t;const l=vn(t),c=Ks(t);e&&c&&!l&&t.inherit!==!1&&(s===void 0&&(s=e.initial),a===void 0&&(a=e.animate));let u=n?n.initial===!1:!1;u=u||s===!1;const f=u?a:s;if(f&&typeof f!="boolean"&&!yn(f)){const d=Array.isArray(f)?f:[f];for(let h=0;h<d.length;h++){const p=Ai(t,d[h]);if(p){const{transitionEnd:g,transition:S,...v}=p;for(const w in v){let T=v[w];if(Array.isArray(T)){const V=u?T.length-1:0;T=T[V]}T!==null&&(r[w]=T)}for(const w in g)r[w]=g[w]}}}return r}function Ei(t,e,n){var i;const{style:r}=t,o={};for(const s in r)(it(r[s])||e.style&&it(e.style[s])||Zs(s,t)||((i=n==null?void 0:n.getValue(s))===null||i===void 0?void 0:i.liveStyle)!==void 0)&&(o[s]=r[s]);return o}const Tu={useVisualState:eo({scrapeMotionValuesFromProps:Ei,createRenderState:wi})};function no(t,e){try{e.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{e.dimensions={x:0,y:0,width:0,height:0}}}function io(t,{style:e,vars:n},i,r){Object.assign(t.style,e,r&&r.getProjectionStyles(i));for(const o in n)t.style.setProperty(o,n[o])}const ro=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function so(t,e,n,i){io(t,e,void 0,i);for(const r in e.attrs)t.setAttribute(ro.has(r)?r:gi(r),e.attrs[r])}function oo(t,e,n){const i=Ei(t,e,n);for(const r in t)if(it(t[r])||it(e[r])){const o=fe.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;i[o]=t[r]}return i}const mr=["x","y","width","height","cx","cy","r"],Cu={useVisualState:eo({scrapeMotionValuesFromProps:oo,createRenderState:to,onUpdate:({props:t,prevProps:e,current:n,renderState:i,latestValues:r})=>{if(!n)return;let o=!!t.drag;if(!o){for(const a in r)if(Yt.has(a)){o=!0;break}}if(!o)return;let s=!e;if(e)for(let a=0;a<mr.length;a++){const l=mr[a];t[l]!==e[l]&&(s=!0)}s&&U.read(()=>{no(n,i),U.render(()=>{Ci(i,r,Pi(n.tagName),t.transformTemplate),so(n,i)})})}})};function Pu(t,e){return function(i,{forwardMotionProps:r}={forwardMotionProps:!1}){const s={...Ti(i)?Cu:Tu,preloadedFeatures:t,useRender:vu(r),createVisualElement:e,Component:i};return qc(s)}}function Me(t,e,n){const i=t.getProps();return Ai(i,e,n!==void 0?n:i.custom,t)}const Au=hi(()=>window.ScrollTimeline!==void 0);class Eu{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>"finished"in e?e.finished:e))}getAll(e){return this.animations[0][e]}setAll(e,n){for(let i=0;i<this.animations.length;i++)this.animations[i][e]=n}attachTimeline(e,n){const i=this.animations.map(r=>{if(Au()&&r.attachTimeline)return r.attachTimeline(e);if(typeof n=="function")return n(r)});return()=>{i.forEach((r,o)=>{r&&r(),this.animations[o].stop()})}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get startTime(){return this.getAll("startTime")}get duration(){let e=0;for(let n=0;n<this.animations.length;n++)e=Math.max(e,this.animations[n].duration);return e}runAll(e){this.animations.forEach(n=>n[e]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class Vu extends Eu{then(e,n){return Promise.all(this.animations).then(e).catch(n)}}function Vi(t,e){return t?t[e]||t.default||t:void 0}const Gn=2e4;function ao(t){let e=0;const n=50;let i=t.next(e);for(;!i.done&&e<Gn;)e+=n,i=t.next(e);return e>=Gn?1/0:e}function Ri(t){return typeof t=="function"}function gr(t,e){t.timeline=e,t.onfinish=null}const Mi=t=>Array.isArray(t)&&typeof t[0]=="number",Ru={linearEasing:void 0};function Mu(t,e){const n=hi(t);return()=>{var i;return(i=Ru[e])!==null&&i!==void 0?i:n()}}const on=Mu(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),lo=(t,e,n=10)=>{let i="";const r=Math.max(Math.round(e/n),2);for(let o=0;o<r;o++)i+=t(oe(0,r-1,o))+", ";return`linear(${i.substring(0,i.length-2)})`};function co(t){return!!(typeof t=="function"&&on()||!t||typeof t=="string"&&(t in Kn||on())||Mi(t)||Array.isArray(t)&&t.every(co))}const ge=([t,e,n,i])=>`cubic-bezier(${t}, ${e}, ${n}, ${i})`,Kn={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ge([0,.65,.55,1]),circOut:ge([.55,0,1,.45]),backIn:ge([.31,.01,.66,-.59]),backOut:ge([.33,1.53,.69,.99])};function uo(t,e){if(t)return typeof t=="function"&&on()?lo(t,e):Mi(t)?ge(t):Array.isArray(t)?t.map(n=>uo(n,e)||Kn.easeOut):Kn[t]}const St={x:!1,y:!1};function fo(){return St.x||St.y}function ho(t,e,n){var i;if(t instanceof EventTarget)return[t];if(typeof t=="string"){let r=document;const o=(i=void 0)!==null&&i!==void 0?i:r.querySelectorAll(t);return o?Array.from(o):[]}return Array.from(t)}function po(t,e){const n=ho(t),i=new AbortController,r={passive:!0,...e,signal:i.signal};return[n,r,()=>i.abort()]}function yr(t){return!(t.pointerType==="touch"||fo())}function Du(t,e,n={}){const[i,r,o]=po(t,n),s=a=>{if(!yr(a))return;const{target:l}=a,c=e(l,a);if(typeof c!="function"||!l)return;const u=f=>{yr(f)&&(c(f),l.removeEventListener("pointerleave",u))};l.addEventListener("pointerleave",u,r)};return i.forEach(a=>{a.addEventListener("pointerenter",s,r)}),o}function an(t,e){const n=`${e}PointerCapture`;if(t.target instanceof Element&&n in t.target&&t.pointerId!==void 0)try{t.target[n](t.pointerId)}catch{}}const mo=(t,e)=>e?t===e?!0:mo(t,e.parentElement):!1,Di=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,Lu=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Ou(t){return Lu.has(t.tagName)||t.tabIndex!==-1}const ye=new WeakSet;function vr(t){return e=>{e.key==="Enter"&&t(e)}}function En(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const ku=(t,e)=>{const n=t.currentTarget;if(!n)return;const i=vr(()=>{if(ye.has(n))return;En(n,"down");const r=vr(()=>{En(n,"up")}),o=()=>En(n,"cancel");n.addEventListener("keyup",r,e),n.addEventListener("blur",o,e)});n.addEventListener("keydown",i,e),n.addEventListener("blur",()=>n.removeEventListener("keydown",i),e)};function xr(t){return Di(t)&&!fo()}function Fu(t,e,n={}){const[i,r,o]=po(t,n),s=a=>{const l=a.currentTarget;if(!l||!xr(a)||ye.has(l))return;ye.add(l),an(a,"set");const c=e(l,a),u=(h,p)=>{l.removeEventListener("pointerup",f),l.removeEventListener("pointercancel",d),an(h,"release"),!(!xr(h)||!ye.has(l))&&(ye.delete(l),typeof c=="function"&&c(h,{success:p}))},f=h=>{(h.isTrusted?Iu(h,l instanceof Element?l.getBoundingClientRect():{left:0,top:0,right:window.innerWidth,bottom:window.innerHeight}):!1)?u(h,!1):u(h,!(l instanceof Element)||mo(l,h.target))},d=h=>{u(h,!1)};l.addEventListener("pointerup",f,r),l.addEventListener("pointercancel",d,r),l.addEventListener("lostpointercapture",d,r)};return i.forEach(a=>{a=n.useGlobalTarget?window:a;let l=!1;a instanceof HTMLElement&&(l=!0,!Ou(a)&&a.getAttribute("tabindex")===null&&(a.tabIndex=0)),a.addEventListener("pointerdown",s,r),l&&a.addEventListener("focus",c=>ku(c,r),r)}),o}function Iu(t,e){return t.clientX<e.left||t.clientX>e.right||t.clientY<e.top||t.clientY>e.bottom}function Bu(t){return t==="x"||t==="y"?St[t]?null:(St[t]=!0,()=>{St[t]=!1}):St.x||St.y?null:(St.x=St.y=!0,()=>{St.x=St.y=!1})}const go=new Set(["width","height","top","left","right","bottom",...fe]);let Xe;function $u(){Xe=void 0}const Rt={now:()=>(Xe===void 0&&Rt.set(J.isProcessing||kc.useManualTiming?J.timestamp:performance.now()),Xe),set:t=>{Xe=t,queueMicrotask($u)}};function Li(t,e){t.indexOf(e)===-1&&t.push(e)}function Oi(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class ki{constructor(){this.subscriptions=[]}add(e){return Li(this.subscriptions,e),()=>Oi(this.subscriptions,e)}notify(e,n,i){const r=this.subscriptions.length;if(r)if(r===1)this.subscriptions[0](e,n,i);else for(let o=0;o<r;o++){const s=this.subscriptions[o];s&&s(e,n,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function yo(t,e){return e?t*(1e3/e):0}const br=30,ju=t=>!isNaN(parseFloat(t));class _u{constructor(e,n={}){this.version="12.4.7",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(i,r=!0)=>{const o=Rt.now();this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(i),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),r&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=n.owner}setCurrent(e){this.current=e,this.updatedAt=Rt.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=ju(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return process.env.NODE_ENV!=="production"&&mn(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new ki);const i=this.events[e].add(n);return e==="change"?()=>{i(),U.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e,n=!0){!n||!this.passiveEffect?this.updateAndNotify(e,n):this.passiveEffect(e,this.updateAndNotify)}setWithVelocity(e,n,i){this.set(n),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-i}jump(e,n=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=Rt.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>br)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,br);return yo(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(e){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=e(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function De(t,e){return new _u(t,e)}function Nu(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,De(n))}function Fi(t,e){const n=Me(t,e);let{transitionEnd:i={},transition:r={},...o}=n||{};o={...o,...i};for(const s in o){const a=bu(o[s]);Nu(t,s,a)}}function Uu(t){return!!(it(t)&&t.add)}function Hn(t,e){const n=t.getValue("willChange");if(Uu(n))return n.add(e)}function vo(t){return t.props[Hs]}const xo=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,zu=1e-7,Wu=12;function Gu(t,e,n,i,r){let o,s,a=0;do s=e+(n-e)/2,o=xo(s,i,r)-t,o>0?n=s:e=s;while(Math.abs(o)>zu&&++a<Wu);return s}function Be(t,e,n,i){if(t===e&&n===i)return ut;const r=o=>Gu(o,0,1,t,n);return o=>o===0||o===1?o:xo(r(o),e,i)}const bo=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,So=t=>e=>1-t(1-e),wo=Be(.33,1.53,.69,.99),Ii=So(wo),To=bo(Ii),Co=t=>(t*=2)<1?.5*Ii(t):.5*(2-Math.pow(2,-10*(t-1))),Bi=t=>1-Math.sin(Math.acos(t)),Po=So(Bi),Ao=bo(Bi),Eo=t=>/^0[^.\s]+$/u.test(t);function Ku(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||Eo(t):!0}const xe=t=>Math.round(t*1e5)/1e5,$i=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Hu(t){return t==null}const Yu=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,ji=(t,e)=>n=>!!(typeof n=="string"&&Yu.test(n)&&n.startsWith(t)||e&&!Hu(n)&&Object.prototype.hasOwnProperty.call(n,e)),Vo=(t,e,n)=>i=>{if(typeof i!="string")return i;const[r,o,s,a]=i.match($i);return{[t]:parseFloat(r),[e]:parseFloat(o),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},qu=t=>Lt(0,255,t),Vn={...de,transform:t=>Math.round(qu(t))},Kt={test:ji("rgb","red"),parse:Vo("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:i=1})=>"rgba("+Vn.transform(t)+", "+Vn.transform(e)+", "+Vn.transform(n)+", "+xe(Re.transform(i))+")"};function Xu(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}}const Yn={test:ji("#"),parse:Xu,transform:Kt.transform},Xt={test:ji("hsl","hue"),parse:Vo("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:i=1})=>"hsla("+Math.round(t)+", "+Vt.transform(xe(e))+", "+Vt.transform(xe(n))+", "+xe(Re.transform(i))+")"},nt={test:t=>Kt.test(t)||Yn.test(t)||Xt.test(t),parse:t=>Kt.test(t)?Kt.parse(t):Xt.test(t)?Xt.parse(t):Yn.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?Kt.transform(t):Xt.transform(t)},Zu=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Ju(t){var e,n;return isNaN(t)&&typeof t=="string"&&(((e=t.match($i))===null||e===void 0?void 0:e.length)||0)+(((n=t.match(Zu))===null||n===void 0?void 0:n.length)||0)>0}const Ro="number",Mo="color",Qu="var",tf="var(",Sr="${}",ef=/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 Le(t){const e=t.toString(),n=[],i={color:[],number:[],var:[]},r=[];let o=0;const a=e.replace(ef,l=>(nt.test(l)?(i.color.push(o),r.push(Mo),n.push(nt.parse(l))):l.startsWith(tf)?(i.var.push(o),r.push(Qu),n.push(l)):(i.number.push(o),r.push(Ro),n.push(parseFloat(l))),++o,Sr)).split(Sr);return{values:n,split:a,indexes:i,types:r}}function Do(t){return Le(t).values}function Lo(t){const{split:e,types:n}=Le(t),i=e.length;return r=>{let o="";for(let s=0;s<i;s++)if(o+=e[s],r[s]!==void 0){const a=n[s];a===Ro?o+=xe(r[s]):a===Mo?o+=nt.transform(r[s]):o+=r[s]}return o}}const nf=t=>typeof t=="number"?0:t;function rf(t){const e=Do(t);return Lo(t)(e.map(nf))}const jt={test:Ju,parse:Do,createTransformer:Lo,getAnimatableNone:rf},sf=new Set(["brightness","contrast","saturate","opacity"]);function of(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[i]=n.match($i)||[];if(!i)return t;const r=n.replace(i,"");let o=sf.has(e)?1:0;return i!==n&&(o*=100),e+"("+o+r+")"}const af=/\b([a-z-]*)\(.*?\)/gu,qn={...jt,getAnimatableNone:t=>{const e=t.match(af);return e?e.map(of).join(" "):t}},lf={...bi,color:nt,backgroundColor:nt,outlineColor:nt,fill:nt,stroke:nt,borderColor:nt,borderTopColor:nt,borderRightColor:nt,borderBottomColor:nt,borderLeftColor:nt,filter:qn,WebkitFilter:qn},_i=t=>lf[t];function Oo(t,e){let n=_i(t);return n!==qn&&(n=jt),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const cf=new Set(["auto","none","0"]);function uf(t,e,n){let i=0,r;for(;i<t.length&&!r;){const o=t[i];typeof o=="string"&&!cf.has(o)&&Le(o).values.length&&(r=t[i]),i++}if(r&&n)for(const o of e)t[o]=Oo(n,r)}const wr=t=>t===de||t===O,Tr=(t,e)=>parseFloat(t.split(", ")[e]),Cr=(t,e)=>(n,{transform:i})=>{if(i==="none"||!i)return 0;const r=i.match(/^matrix3d\((.+)\)$/u);if(r)return Tr(r[1],e);{const o=i.match(/^matrix\((.+)\)$/u);return o?Tr(o[1],t):0}},ff=new Set(["x","y","z"]),df=fe.filter(t=>!ff.has(t));function hf(t){const e=[];return df.forEach(n=>{const i=t.getValue(n);i!==void 0&&(e.push([n,i.get()]),i.set(n.startsWith("scale")?1:0))}),e}const le={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:Cr(4,13),y:Cr(5,14)};le.translateX=le.x;le.translateY=le.y;const Ht=new Set;let Xn=!1,Zn=!1;function ko(){if(Zn){const t=Array.from(Ht).filter(i=>i.needsMeasurement),e=new Set(t.map(i=>i.element)),n=new Map;e.forEach(i=>{const r=hf(i);r.length&&(n.set(i,r),i.render())}),t.forEach(i=>i.measureInitialState()),e.forEach(i=>{i.render();const r=n.get(i);r&&r.forEach(([o,s])=>{var a;(a=i.getValue(o))===null||a===void 0||a.set(s)})}),t.forEach(i=>i.measureEndState()),t.forEach(i=>{i.suspendedScrollY!==void 0&&window.scrollTo(0,i.suspendedScrollY)})}Zn=!1,Xn=!1,Ht.forEach(t=>t.complete()),Ht.clear()}function Fo(){Ht.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(Zn=!0)})}function pf(){Fo(),ko()}class Ni{constructor(e,n,i,r,o,s=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=n,this.name=i,this.motionValue=r,this.element=o,this.isAsync=s}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Ht.add(this),Xn||(Xn=!0,U.read(Fo),U.resolveKeyframes(ko))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:i,motionValue:r}=this;for(let o=0;o<e.length;o++)if(e[o]===null)if(o===0){const s=r==null?void 0:r.get(),a=e[e.length-1];if(s!==void 0)e[0]=s;else if(i&&n){const l=i.readValue(n,a);l!=null&&(e[0]=l)}e[0]===void 0&&(e[0]=a),r&&s===void 0&&r.set(e[0])}else e[o]=e[o-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Ht.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Ht.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const Io=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),mf=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function gf(t){const e=mf.exec(t);if(!e)return[,];const[,n,i,r]=e;return[`--${n??i}`,r]}const yf=4;function Bo(t,e,n=1){Mt(n<=yf,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);const[i,r]=gf(t);if(!i)return;const o=window.getComputedStyle(e).getPropertyValue(i);if(o){const s=o.trim();return Io(s)?parseFloat(s):s}return xi(r)?Bo(r,e,n+1):r}const $o=t=>e=>e.test(t),vf={test:t=>t==="auto",parse:t=>t},jo=[de,O,Vt,Bt,iu,nu,vf],Pr=t=>jo.find($o(t));class _o extends Ni{constructor(e,n,i,r,o){super(e,n,i,r,o,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:n,name:i}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l<e.length;l++){let c=e[l];if(typeof c=="string"&&(c=c.trim(),xi(c))){const u=Bo(c,n.current);u!==void 0&&(e[l]=u),l===e.length-1&&(this.finalKeyframe=c)}}if(this.resolveNoneKeyframes(),!go.has(i)||e.length!==2)return;const[r,o]=e,s=Pr(r),a=Pr(o);if(s!==a)if(wr(s)&&wr(a))for(let l=0;l<e.length;l++){const c=e[l];typeof c=="string"&&(e[l]=parseFloat(c))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:n}=this,i=[];for(let r=0;r<e.length;r++)Ku(e[r])&&i.push(r);i.length&&uf(e,i,n)}measureInitialState(){const{element:e,unresolvedKeyframes:n,name:i}=this;if(!e||!e.current)return;i==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=le[i](e.measureViewportBox(),window.getComputedStyle(e.current)),n[0]=this.measuredOrigin;const r=n[n.length-1];r!==void 0&&e.getValue(i,r).jump(r,!1)}measureEndState(){var e;const{element:n,name:i,unresolvedKeyframes:r}=this;if(!n||!n.current)return;const o=n.getValue(i);o&&o.jump(this.measuredOrigin,!1);const s=r.length-1,a=r[s];r[s]=le[i](n.measureViewportBox(),window.getComputedStyle(n.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),!((e=this.removedTransforms)===null||e===void 0)&&e.length&&this.removedTransforms.forEach(([l,c])=>{n.getValue(l).set(c)}),this.resolveNoneKeyframes()}}const Ar=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(jt.test(t)||t==="0")&&!t.startsWith("url("));function xf(t){const e=t[0];if(t.length===1)return!0;for(let n=0;n<t.length;n++)if(t[n]!==e)return!0}function bf(t,e,n,i){const r=t[0];if(r===null)return!1;if(e==="display"||e==="visibility")return!0;const o=t[t.length-1],s=Ar(r,e),a=Ar(o,e);return ue(s===a,`You are trying to animate ${e} from "${r}" to "${o}". ${r} is not an animatable value - to enable this animation set ${r} to a value animatable to ${o} via the \`style\` property.`),!s||!a?!1:xf(t)||(n==="spring"||Ri(n))&&i}const Sf=t=>t!==null;function xn(t,{repeat:e,repeatType:n="loop"},i){const r=t.filter(Sf),o=e&&n!=="loop"&&e%2===1?0:r.length-1;return!o||i===void 0?r[o]:i}const wf=40;class No{constructor({autoplay:e=!0,delay:n=0,type:i="keyframes",repeat:r=0,repeatDelay:o=0,repeatType:s="loop",...a}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Rt.now(),this.options={autoplay:e,delay:n,type:i,repeat:r,repeatDelay:o,repeatType:s,...a},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>wf?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&pf(),this._resolved}onKeyframesResolved(e,n){this.resolvedAt=Rt.now(),this.hasAttemptedResolve=!0;const{name:i,type:r,velocity:o,delay:s,onComplete:a,onUpdate:l,isGenerator:c}=this.options;if(!c&&!bf(e,i,r,o))if(s)this.options.duration=0;else{l&&l(xn(e,this.options,n)),a&&a(),this.resolveFinishedPromise();return}const u=this.initPlayback(e,n);u!==!1&&(this._resolved={keyframes:e,finalKeyframe:n,...u},this.onPostResolved())}onPostResolved(){}then(e,n){return this.currentFinishedPromise.then(e,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(e=>{this.resolveFinishedPromise=e})}}const H=(t,e,n)=>t+(e-t)*n;function Rn(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function Tf({hue:t,saturation:e,lightness:n,alpha:i}){t/=360,e/=100,n/=100;let r=0,o=0,s=0;if(!e)r=o=s=n;else{const a=n<.5?n*(1+e):n+e-n*e,l=2*n-a;r=Rn(l,a,t+1/3),o=Rn(l,a,t),s=Rn(l,a,t-1/3)}return{red:Math.round(r*255),green:Math.round(o*255),blue:Math.round(s*255),alpha:i}}function ln(t,e){return n=>n>0?e:t}const Mn=(t,e,n)=>{const i=t*t,r=n*(e*e-i)+i;return r<0?0:Math.sqrt(r)},Cf=[Yn,Kt,Xt],Pf=t=>Cf.find(e=>e.test(t));function Er(t){const e=Pf(t);if(ue(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`),!e)return!1;let n=e.parse(t);return e===Xt&&(n=Tf(n)),n}const Vr=(t,e)=>{const n=Er(t),i=Er(e);if(!n||!i)return ln(t,e);const r={...n};return o=>(r.red=Mn(n.red,i.red,o),r.green=Mn(n.green,i.green,o),r.blue=Mn(n.blue,i.blue,o),r.alpha=H(n.alpha,i.alpha,o),Kt.transform(r))},Af=(t,e)=>n=>e(t(n)),$e=(...t)=>t.reduce(Af),Jn=new Set(["none","hidden"]);function Ef(t,e){return Jn.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function Vf(t,e){return n=>H(t,e,n)}function Ui(t){return typeof t=="number"?Vf:typeof t=="string"?xi(t)?ln:nt.test(t)?Vr:Df:Array.isArray(t)?Uo:typeof t=="object"?nt.test(t)?Vr:Rf:ln}function Uo(t,e){const n=[...t],i=n.length,r=t.map((o,s)=>Ui(o)(o,e[s]));return o=>{for(let s=0;s<i;s++)n[s]=r[s](o);return n}}function Rf(t,e){const n={...t,...e},i={};for(const r in n)t[r]!==void 0&&e[r]!==void 0&&(i[r]=Ui(t[r])(t[r],e[r]));return r=>{for(const o in i)n[o]=i[o](r);return n}}function Mf(t,e){var n;const i=[],r={color:0,var:0,number:0};for(let o=0;o<e.values.length;o++){const s=e.types[o],a=t.indexes[s][r[s]],l=(n=t.values[a])!==null&&n!==void 0?n:0;i[o]=l,r[s]++}return i}const Df=(t,e)=>{const n=jt.createTransformer(e),i=Le(t),r=Le(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?Jn.has(t)&&!r.values.length||Jn.has(e)&&!i.values.length?Ef(t,e):$e(Uo(Mf(i,r),r.values),n):(ue(!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.`),ln(t,e))};function zo(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?H(t,e,n):Ui(t)(t,e)}const Lf=5;function Wo(t,e,n){const i=Math.max(e-Lf,0);return yo(n-t(i),e-i)}const K={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},Rr=.001;function Of({duration:t=K.duration,bounce:e=K.bounce,velocity:n=K.velocity,mass:i=K.mass}){let r,o;ue(t<=Et(K.maxDuration),"Spring duration must be 10 seconds or less");let s=1-e;s=Lt(K.minDamping,K.maxDamping,s),t=Lt(K.minDuration,K.maxDuration,Dt(t)),s<1?(r=c=>{const u=c*s,f=u*t,d=u-n,h=Qn(c,s),p=Math.exp(-f);return Rr-d/h*p},o=c=>{const f=c*s*t,d=f*n+n,h=Math.pow(s,2)*Math.pow(c,2)*t,p=Math.exp(-f),g=Qn(Math.pow(c,2),s);return(-r(c)+Rr>0?-1:1)*((d-h)*p)/g}):(r=c=>{const u=Math.exp(-c*t),f=(c-n)*t+1;return-.001+u*f},o=c=>{const u=Math.exp(-c*t),f=(n-c)*(t*t);return u*f});const a=5/t,l=Ff(r,o,a);if(t=Et(t),isNaN(l))return{stiffness:K.stiffness,damping:K.damping,duration:t};{const c=Math.pow(l,2)*i;return{stiffness:c,damping:s*2*Math.sqrt(i*c),duration:t}}}const kf=12;function Ff(t,e,n){let i=n;for(let r=1;r<kf;r++)i=i-t(i)/e(i);return i}function Qn(t,e){return t*Math.sqrt(1-e*e)}const If=["duration","bounce"],Bf=["stiffness","damping","mass"];function Mr(t,e){return e.some(n=>t[n]!==void 0)}function $f(t){let e={velocity:K.velocity,stiffness:K.stiffness,damping:K.damping,mass:K.mass,isResolvedFromDuration:!1,...t};if(!Mr(t,Bf)&&Mr(t,If))if(t.visualDuration){const n=t.visualDuration,i=2*Math.PI/(n*1.2),r=i*i,o=2*Lt(.05,1,1-(t.bounce||0))*Math.sqrt(r);e={...e,mass:K.mass,stiffness:r,damping:o}}else{const n=Of(t);e={...e,...n,mass:K.mass},e.isResolvedFromDuration=!0}return e}function Go(t=K.visualDuration,e=K.bounce){const n=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:i,restDelta:r}=n;const o=n.keyframes[0],s=n.keyframes[n.keyframes.length-1],a={done:!1,value:o},{stiffness:l,damping:c,mass:u,duration:f,velocity:d,isResolvedFromDuration:h}=$f({...n,velocity:-Dt(n.velocity||0)}),p=d||0,g=c/(2*Math.sqrt(l*u)),S=s-o,v=Dt(Math.sqrt(l/u)),w=Math.abs(S)<5;i||(i=w?K.restSpeed.granular:K.restSpeed.default),r||(r=w?K.restDelta.granular:K.restDelta.default);let T;if(g<1){const m=Qn(v,g);T=R=>{const D=Math.exp(-g*v*R);return s-D*((p+g*v*S)/m*Math.sin(m*R)+S*Math.cos(m*R))}}else if(g===1)T=m=>s-Math.exp(-v*m)*(S+(p+v*S)*m);else{const m=v*Math.sqrt(g*g-1);T=R=>{const D=Math.exp(-g*v*R),y=Math.min(m*R,300);return s-D*((p+g*v*S)*Math.sinh(y)+m*S*Math.cosh(y))/m}}const V={calculatedDuration:h&&f||null,next:m=>{const R=T(m);if(h)a.done=m>=f;else{let D=0;g<1&&(D=m===0?Et(p):Wo(T,m,R));const y=Math.abs(D)<=i,b=Math.abs(s-R)<=r;a.done=y&&b}return a.value=a.done?s:R,a},toString:()=>{const m=Math.min(ao(V),Gn),R=lo(D=>V.next(m*D).value,m,30);return m+"ms "+R}};return V}function Dr({keyframes:t,velocity:e=0,power:n=.8,timeConstant:i=325,bounceDamping:r=10,bounceStiffness:o=500,modifyTarget:s,min:a,max:l,restDelta:c=.5,restSpeed:u}){const f=t[0],d={done:!1,value:f},h=y=>a!==void 0&&y<a||l!==void 0&&y>l,p=y=>a===void 0?l:l===void 0||Math.abs(a-y)<Math.abs(l-y)?a:l;let g=n*e;const S=f+g,v=s===void 0?S:s(S);v!==S&&(g=v-f);const w=y=>-g*Math.exp(-y/i),T=y=>v+w(y),V=y=>{const b=w(y),x=T(y);d.done=Math.abs(b)<=c,d.value=d.done?v:x};let m,R;const D=y=>{h(d.value)&&(m=y,R=Go({keyframes:[d.value,p(d.value)],velocity:Wo(T,y,d.value),damping:r,stiffness:o,restDelta:c,restSpeed:u}))};return D(0),{calculatedDuration:null,next:y=>{let b=!1;return!R&&m===void 0&&(b=!0,V(y),D(y)),m!==void 0&&y>=m?R.next(y-m):(!b&&V(y),d)}}}const jf=Be(.42,0,1,1),_f=Be(0,0,.58,1),Ko=Be(.42,0,.58,1),Nf=t=>Array.isArray(t)&&typeof t[0]!="number",Lr={linear:ut,easeIn:jf,easeInOut:Ko,easeOut:_f,circIn:Bi,circInOut:Ao,circOut:Po,backIn:Ii,backInOut:To,backOut:wo,anticipate:Co},Or=t=>{if(Mi(t)){Mt(t.length===4,"Cubic bezier arrays must contain four numerical values.");const[e,n,i,r]=t;return Be(e,n,i,r)}else if(typeof t=="string")return Mt(Lr[t]!==void 0,`Invalid easing type '${t}'`),Lr[t];return t};function Uf(t,e,n){const i=[],r=n||zo,o=t.length-1;for(let s=0;s<o;s++){let a=r(t[s],t[s+1]);if(e){const l=Array.isArray(e)?e[s]||ut:e;a=$e(l,a)}i.push(a)}return i}function zf(t,e,{clamp:n=!0,ease:i,mixer:r}={}){const o=t.length;if(Mt(o===e.length,"Both input and output ranges must be the same length"),o===1)return()=>e[0];if(o===2&&e[0]===e[1])return()=>e[1];const s=t[0]===t[1];t[0]>t[o-1]&&(t=[...t].reverse(),e=[...e].reverse());const a=Uf(e,i,r),l=a.length,c=u=>{if(s&&u<t[0])return e[0];let f=0;if(l>1)for(;f<t.length-2&&!(u<t[f+1]);f++);const d=oe(t[f],t[f+1],u);return a[f](d)};return n?u=>c(Lt(t[0],t[o-1],u)):c}function Wf(t,e){const n=t[t.length-1];for(let i=1;i<=e;i++){const r=oe(0,e,i);t.push(H(n,1,r))}}function Gf(t){const e=[0];return Wf(e,t.length-1),e}function Kf(t,e){return t.map(n=>n*e)}function Hf(t,e){return t.map(()=>e||Ko).splice(0,t.length-1)}function be({duration:t=300,keyframes:e,times:n,ease:i="easeInOut"}){const r=Nf(i)?i.map(Or):Or(i),o={done:!1,value:e[0]},s=Kf(n&&n.length===e.length?n:Gf(e),t),a=zf(s,e,{ease:Array.isArray(r)?r:Hf(e,r)});return{calculatedDuration:t,next:l=>(o.value=a(l),o.done=l>=t,o)}}const Yf=t=>{const e=({timestamp:n})=>t(n);return{start:()=>U.update(e,!0),stop:()=>$t(e),now:()=>J.isProcessing?J.timestamp:Rt.now()}},qf={decay:Dr,inertia:Dr,tween:be,keyframes:be,spring:Go},Xf=t=>t/100;class zi extends No{constructor(e){super(e),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:l}=this.options;l&&l()};const{name:n,motionValue:i,element:r,keyframes:o}=this.options,s=(r==null?void 0:r.KeyframeResolver)||Ni,a=(l,c)=>this.onKeyframesResolved(l,c);this.resolver=new s(o,a,n,i,r),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(e){const{type:n="keyframes",repeat:i=0,repeatDelay:r=0,repeatType:o,velocity:s=0}=this.options,a=Ri(n)?n:qf[n]||be;let l,c;process.env.NODE_ENV!=="production"&&a!==be&&Mt(e.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${e}`),a!==be&&typeof e[0]!="number"&&(l=$e(Xf,zo(e[0],e[1])),e=[0,100]);const u=a({...this.options,keyframes:e});o==="mirror"&&(c=a({...this.options,keyframes:[...e].reverse(),velocity:-s})),u.calculatedDuration===null&&(u.calculatedDuration=ao(u));const{calculatedDuration:f}=u,d=f+r,h=d*(i+1)-r;return{generator:u,mirroredGenerator:c,mapPercentToKeyframes:l,calculatedDuration:f,resolvedDuration:d,totalDuration:h}}onPostResolved(){const{autoplay:e=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!e?this.pause():this.state=this.pendingPlayState}tick(e,n=!1){const{resolved:i}=this;if(!i){const{keyframes:y}=this.options;return{done:!0,value:y[y.length-1]}}const{finalKeyframe:r,generator:o,mirroredGenerator:s,mapPercentToKeyframes:a,keyframes:l,calculatedDuration:c,totalDuration:u,resolvedDuration:f}=i;if(this.startTime===null)return o.next(0);const{delay:d,repeat:h,repeatType:p,repeatDelay:g,onUpdate:S}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-u/this.speed,this.startTime)),n?this.currentTime=e:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;const v=this.currentTime-d*(this.speed>=0?1:-1),w=this.speed>=0?v<0:v>u;this.currentTime=Math.max(v,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=u);let T=this.currentTime,V=o;if(h){const y=Math.min(this.currentTime,u)/f;let b=Math.floor(y),x=y%1;!x&&y>=1&&(x=1),x===1&&b--,b=Math.min(b,h+1),!!(b%2)&&(p==="reverse"?(x=1-x,g&&(x-=g/f)):p==="mirror"&&(V=s)),T=Lt(0,1,x)*f}const m=w?{done:!1,value:l[0]}:V.next(T);a&&(m.value=a(m.value));let{done:R}=m;!w&&c!==null&&(R=this.speed>=0?this.currentTime>=u:this.currentTime<=0);const D=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&R);return D&&r!==void 0&&(m.value=xn(l,this.options,r)),S&&S(m.value),D&&this.finish(),m}get duration(){const{resolved:e}=this;return e?Dt(e.calculatedDuration):0}get time(){return Dt(this.currentTime)}set time(e){e=Et(e),this.currentTime=e,this.holdTime!==null||this.speed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){const n=this.playbackSpeed!==e;this.playbackSpeed=e,n&&(this.time=Dt(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:e=Yf,onPlay:n,startTime:i}=this.options;this.driver||(this.driver=e(o=>this.tick(o))),n&&n();const r=this.driver.now();this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=r):this.startTime=i??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var e;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(e=this.currentTime)!==null&&e!==void 0?e:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:e}=this.options;e&&e()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}}const Zf=new Set(["opacity","clipPath","filter","transform"]);function Jf(t,e,n,{delay:i=0,duration:r=300,repeat:o=0,repeatType:s="loop",ease:a="easeInOut",times:l}={}){const c={[e]:n};l&&(c.offset=l);const u=uo(a,r);return Array.isArray(u)&&(c.easing=u),t.animate(c,{delay:i,duration:r,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:o+1,direction:s==="reverse"?"alternate":"normal"})}const Qf=hi(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),cn=10,td=2e4;function ed(t){return Ri(t.type)||t.type==="spring"||!co(t.ease)}function nd(t,e){const n=new zi({...e,keyframes:t,repeat:0,delay:0,isGenerator:!0});let i={done:!1,value:t[0]};const r=[];let o=0;for(;!i.done&&o<td;)i=n.sample(o),r.push(i.value),o+=cn;return{times:void 0,keyframes:r,duration:o-cn,ease:"linear"}}const Ho={anticipate:Co,backInOut:To,circInOut:Ao};function id(t){return t in Ho}class kr extends No{constructor(e){super(e);const{name:n,motionValue:i,element:r,keyframes:o}=this.options;this.resolver=new _o(o,(s,a)=>this.onKeyframesResolved(s,a),n,i,r),this.resolver.scheduleResolve()}initPlayback(e,n){let{duration:i=300,times:r,ease:o,type:s,motionValue:a,name:l,startTime:c}=this.options;if(!a.owner||!a.owner.current)return!1;if(typeof o=="string"&&on()&&id(o)&&(o=Ho[o]),ed(this.options)){const{onComplete:f,onUpdate:d,motionValue:h,element:p,...g}=this.options,S=nd(e,g);e=S.keyframes,e.length===1&&(e[1]=e[0]),i=S.duration,r=S.times,o=S.ease,s="keyframes"}const u=Jf(a.owner.current,l,e,{...this.options,duration:i,times:r,ease:o});return u.startTime=c??this.calcStartTime(),this.pendingTimeline?(gr(u,this.pendingTimeline),this.pendingTimeline=void 0):u.onfinish=()=>{const{onComplete:f}=this.options;a.set(xn(e,this.options,n)),f&&f(),this.cancel(),this.resolveFinishedPromise()},{animation:u,duration:i,times:r,type:s,ease:o,keyframes:e}}get duration(){const{resolved:e}=this;if(!e)return 0;const{duration:n}=e;return Dt(n)}get time(){const{resolved:e}=this;if(!e)return 0;const{animation:n}=e;return Dt(n.currentTime||0)}set time(e){const{resolved:n}=this;if(!n)return;const{animation:i}=n;i.currentTime=Et(e)}get speed(){const{resolved:e}=this;if(!e)return 1;const{animation:n}=e;return n.playbackRate}set speed(e){const{resolved:n}=this;if(!n)return;const{animation:i}=n;i.playbackRate=e}get state(){const{resolved:e}=this;if(!e)return"idle";const{animation:n}=e;return n.playState}get startTime(){const{resolved:e}=this;if(!e)return null;const{animation:n}=e;return n.startTime}attachTimeline(e){if(!this._resolved)this.pendingTimeline=e;else{const{resolved:n}=this;if(!n)return ut;const{animation:i}=n;gr(i,e)}return ut}play(){if(this.isStopped)return;const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:e}=this;if(!e)return;const{animation:n,keyframes:i,duration:r,type:o,ease:s,times:a}=e;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:c,onUpdate:u,onComplete:f,element:d,...h}=this.options,p=new zi({...h,keyframes:i,duration:r,type:o,ease:s,times:a,isGenerator:!0}),g=Et(this.time);c.setWithVelocity(p.sample(g-cn).value,p.sample(g).value,cn)}const{onStop:l}=this.options;l&&l(),this.cancel()}complete(){const{resolved:e}=this;e&&e.animation.finish()}cancel(){const{resolved:e}=this;e&&e.animation.cancel()}static supports(e){const{motionValue:n,name:i,repeatDelay:r,repeatType:o,damping:s,type:a}=e;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:c}=n.owner.getProps();return Qf()&&i&&Zf.has(i)&&!l&&!c&&!r&&o!=="mirror"&&s!==0&&a!=="inertia"}}const rd={type:"spring",stiffness:500,damping:25,restSpeed:10},sd=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),od={type:"keyframes",duration:.8},ad={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},ld=(t,{keyframes:e})=>e.length>2?od:Yt.has(t)?t.startsWith("scale")?sd(e[1]):rd:ad;function cd({when:t,delay:e,delayChildren:n,staggerChildren:i,staggerDirection:r,repeat:o,repeatType:s,repeatDelay:a,from:l,elapsed:c,...u}){return!!Object.keys(u).length}const Wi=(t,e,n,i={},r,o)=>s=>{const a=Vi(i,t)||{},l=a.delay||i.delay||0;let{elapsed:c=0}=i;c=c-Et(l);let u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-c,onUpdate:d=>{e.set(d),a.onUpdate&&a.onUpdate(d)},onComplete:()=>{s(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:o?void 0:r};cd(a)||(u={...u,...ld(t,u)}),u.duration&&(u.duration=Et(u.duration)),u.repeatDelay&&(u.repeatDelay=Et(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let f=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(u.duration=0,u.delay===0&&(f=!0)),f&&!o&&e.get()!==void 0){const d=xn(u.keyframes,a);if(d!==void 0)return U.update(()=>{u.onUpdate(d),u.onComplete()}),new Vu([])}return!o&&kr.supports(u)?new kr(u):new zi(u)};function ud({protectedKeys:t,needsAnimating:e},n){const i=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,i}function Yo(t,e,{delay:n=0,transitionOverride:i,type:r}={}){var o;let{transition:s=t.getDefaultTransition(),transitionEnd:a,...l}=e;i&&(s=i);const c=[],u=r&&t.animationState&&t.animationState.getState()[r];for(const f in l){const d=t.getValue(f,(o=t.latestValues[f])!==null&&o!==void 0?o:null),h=l[f];if(h===void 0||u&&ud(u,f))continue;const p={delay:n,...Vi(s||{},f)};let g=!1;if(window.MotionHandoffAnimation){const v=vo(t);if(v){const w=window.MotionHandoffAnimation(v,f,U);w!==null&&(p.startTime=w,g=!0)}}Hn(t,f),d.start(Wi(f,d,h,t.shouldReduceMotion&&go.has(f)?{type:!1}:p,t,g));const S=d.animation;S&&c.push(S)}return a&&Promise.all(c).then(()=>{U.update(()=>{a&&Fi(t,a)})}),c}function ti(t,e,n={}){var i;const r=Me(t,e,n.type==="exit"?(i=t.presenceContext)===null||i===void 0?void 0:i.custom:void 0);let{transition:o=t.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(o=n.transitionOverride);const s=r?()=>Promise.all(Yo(t,r,n)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(c=0)=>{const{delayChildren:u=0,staggerChildren:f,staggerDirection:d}=o;return fd(t,e,u+c,f,d,n)}:()=>Promise.resolve(),{when:l}=o;if(l){const[c,u]=l==="beforeChildren"?[s,a]:[a,s];return c().then(()=>u())}else return Promise.all([s(),a(n.delay)])}function fd(t,e,n=0,i=0,r=1,o){const s=[],a=(t.variantChildren.size-1)*i,l=r===1?(c=0)=>c*i:(c=0)=>a-c*i;return Array.from(t.variantChildren).sort(dd).forEach((c,u)=>{c.notify("AnimationStart",e),s.push(ti(c,e,{...o,delay:n+l(u)}).then(()=>c.notify("AnimationComplete",e)))}),Promise.all(s)}function dd(t,e){return t.sortNodePosition(e)}function qo(t,e,n={}){t.notify("AnimationStart",e);let i;if(Array.isArray(e)){const r=e.map(o=>ti(t,o,n));i=Promise.all(r)}else if(typeof e=="string")i=ti(t,e,n);else{const r=typeof e=="function"?Me(t,e,n.custom):e;i=Promise.all(Yo(t,r,n))}return i.then(()=>{t.notify("AnimationComplete",e)})}function Xo(t,e){if(!Array.isArray(e))return!1;const 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}const hd=mi.length;function Zo(t){if(!t)return;if(!t.isControllingVariants){const n=t.parent?Zo(t.parent)||{}:{};return t.props.initial!==void 0&&(n.initial=t.props.initial),n}const e={};for(let n=0;n<hd;n++){const i=mi[n],r=t.props[i];(Ee(r)||r===!1)&&(e[i]=r)}return e}const pd=[...pi].reverse(),md=pi.length;function gd(t){return e=>Promise.all(e.map(({animation:n,options:i})=>qo(t,n,i)))}function yd(t){let e=gd(t),n=Fr(),i=!0;const r=l=>(c,u)=>{var f;const d=Me(t,u,l==="exit"?(f=t.presenceContext)===null||f===void 0?void 0:f.custom:void 0);if(d){const{transition:h,transitionEnd:p,...g}=d;c={...c,...g,...p}}return c};function o(l){e=l(t)}function s(l){const{props:c}=t,u=Zo(t.parent)||{},f=[],d=new Set;let h={},p=1/0;for(let S=0;S<md;S++){const v=pd[S],w=n[v],T=c[v]!==void 0?c[v]:u[v],V=Ee(T),m=v===l?w.isActive:null;m===!1&&(p=S);let R=T===u[v]&&T!==c[v]&&V;if(R&&i&&t.manuallyAnimateOnMount&&(R=!1),w.protectedKeys={...h},!w.isActive&&m===null||!T&&!w.prevProp||yn(T)||typeof T=="boolean")continue;const D=vd(w.prevProp,T);let y=D||v===l&&w.isActive&&!R&&V||S>p&&V,b=!1;const x=Array.isArray(T)?T:[T];let C=x.reduce(r(v),{});m===!1&&(C={});const{prevResolvedValues:k={}}=w,W={...k,...C},X=F=>{y=!0,d.has(F)&&(b=!0,d.delete(F)),w.needsAnimating[F]=!0;const N=t.getValue(F);N&&(N.liveStyle=!1)};for(const F in W){const N=C[F],at=k[F];if(h.hasOwnProperty(F))continue;let rt=!1;Wn(N)&&Wn(at)?rt=!Xo(N,at):rt=N!==at,rt?N!=null?X(F):d.add(F):N!==void 0&&d.has(F)?X(F):w.protectedKeys[F]=!0}w.prevProp=T,w.prevResolvedValues=C,w.isActive&&(h={...h,...C}),i&&t.blockInitialAnimation&&(y=!1),y&&(!(R&&D)||b)&&f.push(...x.map(F=>({animation:F,options:{type:v}})))}if(d.size){const S={};if(typeof c.initial!="boolean"){const v=Me(t,Array.isArray(c.initial)?c.initial[0]:c.initial);v&&v.transition&&(S.transition=v.transition)}d.forEach(v=>{const w=t.getBaseTarget(v),T=t.getValue(v);T&&(T.liveStyle=!0),S[v]=w??null}),f.push({animation:S})}let g=!!f.length;return i&&(c.initial===!1||c.initial===c.animate)&&!t.manuallyAnimateOnMount&&(g=!1),i=!1,g?e(f):Promise.resolve()}function a(l,c){var u;if(n[l].isActive===c)return Promise.resolve();(u=t.variantChildren)===null||u===void 0||u.forEach(d=>{var h;return(h=d.animationState)===null||h===void 0?void 0:h.setActive(l,c)}),n[l].isActive=c;const f=s(l);for(const d in n)n[d].protectedKeys={};return f}return{animateChanges:s,setActive:a,setAnimateFunction:o,getState:()=>n,reset:()=>{n=Fr(),i=!0}}}function vd(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!Xo(e,t):!1}function Wt(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Fr(){return{animate:Wt(!0),whileInView:Wt(),whileHover:Wt(),whileTap:Wt(),whileDrag:Wt(),whileFocus:Wt(),exit:Wt()}}class _t{constructor(e){this.isMounted=!1,this.node=e}update(){}}class xd extends _t{constructor(e){super(e),e.animationState||(e.animationState=yd(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();yn(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:n}=this.node.prevProps||{};e!==n&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),(e=this.unmountControls)===null||e===void 0||e.call(this)}}let bd=0;class Sd extends _t{constructor(){super(...arguments),this.id=bd++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===i)return;const r=this.node.animationState.setActive("exit",!e);n&&!e&&r.then(()=>{n(this.id)})}mount(){const{register:e,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),e&&(this.unmount=e(this.id))}unmount(){}}const wd={animation:{Feature:xd},exit:{Feature:Sd}};function Oe(t,e,n,i={passive:!0}){return t.addEventListener(e,n,i),()=>t.removeEventListener(e,n)}function je(t){return{point:{x:t.pageX,y:t.pageY}}}const Td=t=>e=>Di(e)&&t(e,je(e));function Zt(t,e,n,i){return Oe(t,e,Td(n),i)}function Jo({top:t,left:e,right:n,bottom:i}){return{x:{min:e,max:n},y:{min:t,max:i}}}function Cd({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function Pd(t,e){if(!e)return t;const 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}}const Qo=1e-4,Ad=1-Qo,Ed=1+Qo,ta=.01,Vd=0-ta,Rd=0+ta;function ot(t){return t.max-t.min}function Md(t,e,n){return Math.abs(t-e)<=n}function Ir(t,e,n,i=.5){t.origin=i,t.originPoint=H(e.min,e.max,t.origin),t.scale=ot(n)/ot(e),t.translate=H(n.min,n.max,t.origin)-t.originPoint,(t.scale>=Ad&&t.scale<=Ed||isNaN(t.scale))&&(t.scale=1),(t.translate>=Vd&&t.translate<=Rd||isNaN(t.translate))&&(t.translate=0)}function Se(t,e,n,i){Ir(t.x,e.x,n.x,i?i.originX:void 0),Ir(t.y,e.y,n.y,i?i.originY:void 0)}function Br(t,e,n){t.min=n.min+e.min,t.max=t.min+ot(e)}function Dd(t,e,n){Br(t.x,e.x,n.x),Br(t.y,e.y,n.y)}function $r(t,e,n){t.min=e.min-n.min,t.max=t.min+ot(e)}function we(t,e,n){$r(t.x,e.x,n.x),$r(t.y,e.y,n.y)}const jr=()=>({translate:0,scale:1,origin:0,originPoint:0}),Jt=()=>({x:jr(),y:jr()}),_r=()=>({min:0,max:0}),Y=()=>({x:_r(),y:_r()});function yt(t){return[t("x"),t("y")]}function Dn(t){return t===void 0||t===1}function ei({scale:t,scaleX:e,scaleY:n}){return!Dn(t)||!Dn(e)||!Dn(n)}function Gt(t){return ei(t)||ea(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function ea(t){return Nr(t.x)||Nr(t.y)}function Nr(t){return t&&t!=="0%"}function un(t,e,n){const i=t-n,r=e*i;return n+r}function Ur(t,e,n,i,r){return r!==void 0&&(t=un(t,r,i)),un(t,n,i)+e}function ni(t,e=0,n=1,i,r){t.min=Ur(t.min,e,n,i,r),t.max=Ur(t.max,e,n,i,r)}function na(t,{x:e,y:n}){ni(t.x,e.translate,e.scale,e.originPoint),ni(t.y,n.translate,n.scale,n.originPoint)}const zr=.999999999999,Wr=1.0000000000001;function Ld(t,e,n,i=!1){const r=n.length;if(!r)return;e.x=e.y=1;let o,s;for(let a=0;a<r;a++){o=n[a],s=o.projectionDelta;const{visualElement:l}=o.options;l&&l.props.style&&l.props.style.display==="contents"||(i&&o.options.layoutScroll&&o.scroll&&o!==o.root&&te(t,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),s&&(e.x*=s.x.scale,e.y*=s.y.scale,na(t,s)),i&&Gt(o.latestValues)&&te(t,o.latestValues))}e.x<Wr&&e.x>zr&&(e.x=1),e.y<Wr&&e.y>zr&&(e.y=1)}function Qt(t,e){t.min=t.min+e,t.max=t.max+e}function Gr(t,e,n,i,r=.5){const o=H(t.min,t.max,r);ni(t,e,n,o,i)}function te(t,e){Gr(t.x,e.x,e.scaleX,e.scale,e.originX),Gr(t.y,e.y,e.scaleY,e.scale,e.originY)}function ia(t,e){return Jo(Pd(t.getBoundingClientRect(),e))}function Od(t,e,n){const i=ia(t,n),{scroll:r}=e;return r&&(Qt(i.x,r.offset.x),Qt(i.y,r.offset.y)),i}const Kr=(t,e)=>Math.abs(t-e);function kd(t,e){const n=Kr(t.x,e.x),i=Kr(t.y,e.y);return Math.sqrt(n**2+i**2)}class ra{constructor(e,n,{transformPagePoint:i,dragSnapToOrigin:r=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const u=On(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,d=kd(u.offset,{x:0,y:0})>=3;if(!f&&!d)return;const{point:h}=u,{timestamp:p}=J;this.history.push({...h,timestamp:p});const{onStart:g,onMove:S}=this.handlers;f||(g&&g(this.lastMoveEvent,u),this.startEvent=this.lastMoveEvent),S&&S(this.lastMoveEvent,u)},this.handlePointerMove=(u,f)=>{if(u.target instanceof Element&&u.target.hasPointerCapture&&u.pointerId!==void 0)try{if(!u.target.hasPointerCapture(u.pointerId))return}catch{}this.lastMoveEvent=u,this.lastMoveEventInfo=Ln(f,this.transformPagePoint),U.update(this.updatePoint,!0)},this.handlePointerUp=(u,f)=>{an(u,"release"),this.end();const{onEnd:d,onSessionEnd:h,resumeAnimation:p}=this.handlers;if(this.dragSnapToOrigin&&p&&p(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const g=On(u.type==="pointercancel"||u.type==="lostpointercapture"?this.lastMoveEventInfo:Ln(f,this.transformPagePoint),this.history);this.startEvent&&d&&d(u,g),h&&h(u,g)},!Di(e))return;this.dragSnapToOrigin=r,this.handlers=n,this.transformPagePoint=i;const o=je(e),s=Ln(o,this.transformPagePoint),{point:a}=s,{timestamp:l}=J;this.history=[{...a,timestamp:l}];const{onSessionStart:c}=n;c&&c(e,On(s,this.history)),an(e,"set"),this.removeListeners=$e(Zt(e.currentTarget,"pointermove",this.handlePointerMove),Zt(e.currentTarget,"pointerup",this.handlePointerUp),Zt(e.currentTarget,"pointercancel",this.handlePointerUp),Zt(e.currentTarget,"lostpointercapture",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),$t(this.updatePoint)}}function Ln(t,e){return e?{point:e(t.point)}:t}function Hr(t,e){return{x:t.x-e.x,y:t.y-e.y}}function On({point:t},e){return{point:t,delta:Hr(t,sa(e)),offset:Hr(t,Fd(e)),velocity:Id(e,.1)}}function Fd(t){return t[0]}function sa(t){return t[t.length-1]}function Id(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,i=null;const r=sa(t);for(;n>=0&&(i=t[n],!(r.timestamp-i.timestamp>Et(e)));)n--;if(!i)return{x:0,y:0};const o=Dt(r.timestamp-i.timestamp);if(o===0)return{x:0,y:0};const s={x:(r.x-i.x)/o,y:(r.y-i.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function Bd(t,{min:e,max:n},i){return e!==void 0&&t<e?t=i?H(e,t,i.min):Math.max(t,e):n!==void 0&&t>n&&(t=i?H(n,t,i.max):Math.min(t,n)),t}function Yr(t,e,n){return{min:e!==void 0?t.min+e:void 0,max:n!==void 0?t.max+n-(t.max-t.min):void 0}}function $d(t,{top:e,left:n,bottom:i,right:r}){return{x:Yr(t.x,n,r),y:Yr(t.y,e,i)}}function qr(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 jd(t,e){return{x:qr(t.x,e.x),y:qr(t.y,e.y)}}function _d(t,e){let n=.5;const i=ot(t),r=ot(e);return r>i?n=oe(e.min,e.max-i,t.min):i>r&&(n=oe(t.min,t.max-r,e.min)),Lt(0,1,n)}function Nd(t,e){const n={};return e.min!==void 0&&(n.min=e.min-t.min),e.max!==void 0&&(n.max=e.max-t.min),n}const ii=.35;function Ud(t=ii){return t===!1?t=0:t===!0&&(t=ii),{x:Xr(t,"left","right"),y:Xr(t,"top","bottom")}}function Xr(t,e,n){return{min:Zr(t,e),max:Zr(t,n)}}function Zr(t,e){return typeof t=="number"?t:t[e]||0}const zd=new WeakMap;class Wd{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Y(),this.visualElement=e}start(e,{snapToCursor:n=!1}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const r=u=>{const{dragSnapToOrigin:f}=this.getProps();f?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(je(u).point)},o=(u,f)=>{const{drag:d,dragPropagation:h,onDragStart:p}=this.getProps();if(d&&!h&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Bu(d),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),yt(S=>{let v=this.getAxisMotionValue(S).get()||0;if(Vt.test(v)){const{projection:w}=this.visualElement;if(w&&w.layout){const T=w.layout.layoutBox[S];T&&(v=ot(T)*(parseFloat(v)/100))}}this.originPoint[S]=v}),p&&U.postRender(()=>p(u,f)),Hn(this.visualElement,"transform");const{animationState:g}=this.visualElement;g&&g.setActive("whileDrag",!0)},s=(u,f)=>{const{dragPropagation:d,dragDirectionLock:h,onDirectionLock:p,onDrag:g}=this.getProps();if(!d&&!this.openDragLock)return;const{offset:S}=f;if(h&&this.currentDirection===null){this.currentDirection=Gd(S),this.currentDirection!==null&&p&&p(this.currentDirection);return}this.updateAxis("x",f.point,S),this.updateAxis("y",f.point,S),this.visualElement.render(),g&&g(u,f)},a=(u,f)=>this.stop(u,f),l=()=>yt(u=>{var f;return this.getAnimationState(u)==="paused"&&((f=this.getAxisMotionValue(u).animation)===null||f===void 0?void 0:f.play())}),{dragSnapToOrigin:c}=this.getProps();this.panSession=new ra(e,{onSessionStart:r,onStart:o,onMove:s,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c})}stop(e,n){const i=this.isDragging;if(this.cancel(),!i)return;const{velocity:r}=n;this.startAnimation(r);const{onDragEnd:o}=this.getProps();o&&U.postRender(()=>o(e,n))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(e,n,i){const{drag:r}=this.getProps();if(!i||!Ge(e,r,this.currentDirection))return;const o=this.getAxisMotionValue(e);let s=this.originPoint[e]+i[e];this.constraints&&this.constraints[e]&&(s=Bd(s,this.constraints[e],this.elastic[e])),o.set(s)}resolveConstraints(){var e;const{dragConstraints:n,dragElastic:i}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(e=this.visualElement.projection)===null||e===void 0?void 0:e.layout,o=this.constraints;n&&qt(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&r?this.constraints=$d(r.layoutBox,n):this.constraints=!1,this.elastic=Ud(i),o!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&yt(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=Nd(r.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!qt(e))return!1;const i=e.current;Mt(i!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:r}=this.visualElement;if(!r||!r.layout)return!1;const o=Od(i,r.root,this.visualElement.getTransformPagePoint());let s=jd(r.layout.layoutBox,o);if(n){const a=n(Cd(s));this.hasMutatedConstraints=!!a,a&&(s=Jo(a))}return s}startAnimation(e){const{drag:n,dragMomentum:i,dragElastic:r,dragTransition:o,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},c=yt(u=>{if(!Ge(u,n,this.currentDirection))return;let f=l[u]||{};s&&(f={min:0,max:0});const d=r?200:1e6,h=r?40:1e7,p={type:"inertia",velocity:i?e[u]:0,bounceStiffness:d,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...o,...f};return this.startAxisValueAnimation(u,p)});return Promise.all(c).then(a)}startAxisValueAnimation(e,n){const i=this.getAxisMotionValue(e);return Hn(this.visualElement,e),i.start(Wi(e,i,0,n,this.visualElement,!1))}stopAnimation(){yt(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){yt(e=>{var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(e){var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(e){const n=`_drag${e.toUpperCase()}`,i=this.visualElement.getProps(),r=i[n];return r||this.visualElement.getValue(e,(i.initial?i.initial[e]:void 0)||0)}snapToCursor(e){yt(n=>{const{drag:i}=this.getProps();if(!Ge(n,i,this.currentDirection))return;const{projection:r}=this.visualElement,o=this.getAxisMotionValue(n);if(r&&r.layout){const{min:s,max:a}=r.layout.layoutBox[n];o.set(e[n]-H(s,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:i}=this.visualElement;if(!qt(n)||!i||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};yt(s=>{const a=this.getAxisMotionValue(s);if(a&&this.constraints!==!1){const l=a.get();r[s]=_d({min:l,max:l},this.constraints[s])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),yt(s=>{if(!Ge(s,e,null))return;const a=this.getAxisMotionValue(s),{min:l,max:c}=this.constraints[s];a.set(H(l,c,r[s]))})}addListeners(){if(!this.visualElement.current)return;zd.set(this.visualElement,this);const e=this.visualElement.current,n=Zt(e,"pointerdown",l=>{const{drag:c,dragListener:u=!0}=this.getProps();c&&u&&this.start(l)}),i=()=>{const{dragConstraints:l}=this.getProps();qt(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:r}=this.visualElement,o=r.addEventListener("measure",i);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),U.read(i);const s=Oe(window,"resize",()=>this.scalePositionWithinConstraints()),a=r.addEventListener("didUpdate",({delta:l,hasLayoutChanged:c})=>{this.isDragging&&c&&(yt(u=>{const f=this.getAxisMotionValue(u);f&&(this.originPoint[u]+=l[u].translate,f.set(f.get()+l[u].translate))}),this.visualElement.render())});return()=>{s(),n(),o(),a&&a()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:i=!1,dragPropagation:r=!1,dragConstraints:o=!1,dragElastic:s=ii,dragMomentum:a=!0}=e;return{...e,drag:n,dragDirectionLock:i,dragPropagation:r,dragConstraints:o,dragElastic:s,dragMomentum:a}}}function Ge(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function Gd(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class Kd extends _t{constructor(e){super(e),this.removeGroupControls=ut,this.removeListeners=ut,this.controls=new Wd(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ut}unmount(){this.removeGroupControls(),this.removeListeners()}}const Jr=t=>(e,n)=>{t&&U.postRender(()=>t(e,n))};class Hd extends _t{constructor(){super(...arguments),this.removePointerDownListener=ut}onPointerDown(e){this.session=new ra(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:i,onPanEnd:r}=this.node.getProps();return{onSessionStart:Jr(e),onStart:Jr(n),onMove:i,onEnd:(o,s)=>{delete this.session,r&&U.postRender(()=>r(o,s))}}}mount(){this.removePointerDownListener=Zt(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Ze={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Qr(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const me={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(O.test(t))t=parseFloat(t);else return t;const n=Qr(t,e.target.x),i=Qr(t,e.target.y);return`${n}% ${i}%`}},Yd={correct:(t,{treeScale:e,projectionDelta:n})=>{const i=t,r=jt.parse(t);if(r.length>5)return i;const o=jt.createTransformer(t),s=typeof r[0]!="number"?1:0,a=n.x.scale*e.x,l=n.y.scale*e.y;r[0+s]/=a,r[1+s]/=l;const c=H(a,l,.5);return typeof r[2+s]=="number"&&(r[2+s]/=c),typeof r[3+s]=="number"&&(r[3+s]/=c),o(r)}};class qd extends P.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:i,layoutId:r}=this.props,{projection:o}=e;eu(Xd),o&&(n.group&&n.group.add(o),i&&i.register&&r&&i.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),Ze.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:i,drag:r,isPresent:o}=this.props,s=i.projection;return s&&(s.isPresent=o,r||e.layoutDependency!==n||n===void 0?s.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?s.promote():s.relegate()||U.postRender(()=>{const a=s.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),yi.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:i}=this.props,{projection:r}=e;r&&(r.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(r),i&&i.deregister&&i.deregister(r))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function oa(t){const[e,n]=Oc(),i=P.useContext(js);return Je.jsx(qd,{...t,layoutGroup:i,switchLayoutGroup:P.useContext(Ys),isPresent:e,safeToRemove:n})}const Xd={borderRadius:{...me,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:me,borderTopRightRadius:me,borderBottomLeftRadius:me,borderBottomRightRadius:me,boxShadow:Yd};function Zd(t,e,n){const i=it(t)?t:De(t);return i.start(Wi("",i,e,n)),i.animation}function Jd(t){return t instanceof SVGElement&&t.tagName!=="svg"}const Qd=(t,e)=>t.depth-e.depth;class th{constructor(){this.children=[],this.isDirty=!1}add(e){Li(this.children,e),this.isDirty=!0}remove(e){Oi(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Qd),this.isDirty=!1,this.children.forEach(e)}}function eh(t,e){const n=Rt.now(),i=({timestamp:r})=>{const o=r-n;o>=e&&($t(i),t(o-e))};return U.read(i,!0),()=>$t(i)}const aa=["TopLeft","TopRight","BottomLeft","BottomRight"],nh=aa.length,ts=t=>typeof t=="string"?parseFloat(t):t,es=t=>typeof t=="number"||O.test(t);function ih(t,e,n,i,r,o){r?(t.opacity=H(0,n.opacity!==void 0?n.opacity:1,rh(i)),t.opacityExit=H(e.opacity!==void 0?e.opacity:1,0,sh(i))):o&&(t.opacity=H(e.opacity!==void 0?e.opacity:1,n.opacity!==void 0?n.opacity:1,i));for(let s=0;s<nh;s++){const a=`border${aa[s]}Radius`;let l=ns(e,a),c=ns(n,a);if(l===void 0&&c===void 0)continue;l||(l=0),c||(c=0),l===0||c===0||es(l)===es(c)?(t[a]=Math.max(H(ts(l),ts(c),i),0),(Vt.test(c)||Vt.test(l))&&(t[a]+="%")):t[a]=c}(e.rotate||n.rotate)&&(t.rotate=H(e.rotate||0,n.rotate||0,i))}function ns(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const rh=la(0,.5,Po),sh=la(.5,.95,ut);function la(t,e,n){return i=>i<t?0:i>e?1:n(oe(t,e,i))}function is(t,e){t.min=e.min,t.max=e.max}function gt(t,e){is(t.x,e.x),is(t.y,e.y)}function rs(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function ss(t,e,n,i,r){return t-=e,t=un(t,1/n,i),r!==void 0&&(t=un(t,1/r,i)),t}function oh(t,e=0,n=1,i=.5,r,o=t,s=t){if(Vt.test(e)&&(e=parseFloat(e),e=H(s.min,s.max,e/100)-s.min),typeof e!="number")return;let a=H(o.min,o.max,i);t===o&&(a-=e),t.min=ss(t.min,e,n,a,r),t.max=ss(t.max,e,n,a,r)}function os(t,e,[n,i,r],o,s){oh(t,e[n],e[i],e[r],e.scale,o,s)}const ah=["x","scaleX","originX"],lh=["y","scaleY","originY"];function as(t,e,n,i){os(t.x,e,ah,n?n.x:void 0,i?i.x:void 0),os(t.y,e,lh,n?n.y:void 0,i?i.y:void 0)}function ls(t){return t.translate===0&&t.scale===1}function ca(t){return ls(t.x)&&ls(t.y)}function cs(t,e){return t.min===e.min&&t.max===e.max}function ch(t,e){return cs(t.x,e.x)&&cs(t.y,e.y)}function us(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function ua(t,e){return us(t.x,e.x)&&us(t.y,e.y)}function fs(t){return ot(t.x)/ot(t.y)}function ds(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class uh{constructor(){this.members=[]}add(e){Li(this.members,e),e.scheduleRender()}remove(e){if(Oi(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){const n=this.members.findIndex(r=>e===r);if(n===0)return!1;let i;for(let r=n;r>=0;r--){const o=this.members[r];if(o.isPresent!==!1){i=o;break}}return i?(this.promote(i),!0):!1}promote(e,n){const i=this.lead;if(e!==i&&(this.prevLead=i,this.lead=e,e.show(),i)){i.instance&&i.scheduleRender(),e.scheduleRender(),e.resumeFrom=i,n&&(e.resumeFrom.preserveOpacity=!0),i.snapshot&&(e.snapshot=i.snapshot,e.snapshot.latestValues=i.animationValues||i.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:r}=e.options;r===!1&&i.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:n,resumingFrom:i}=e;n.onExitComplete&&n.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function fh(t,e,n){let i="";const r=t.x.translate/e.x,o=t.y.translate/e.y,s=(n==null?void 0:n.z)||0;if((r||o||s)&&(i=`translate3d(${r}px, ${o}px, ${s}px) `),(e.x!==1||e.y!==1)&&(i+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:c,rotate:u,rotateX:f,rotateY:d,skewX:h,skewY:p}=n;c&&(i=`perspective(${c}px) ${i}`),u&&(i+=`rotate(${u}deg) `),f&&(i+=`rotateX(${f}deg) `),d&&(i+=`rotateY(${d}deg) `),h&&(i+=`skewX(${h}deg) `),p&&(i+=`skewY(${p}deg) `)}const a=t.x.scale*e.x,l=t.y.scale*e.y;return(a!==1||l!==1)&&(i+=`scale(${a}, ${l})`),i||"none"}const kn=["","X","Y","Z"],dh={visibility:"hidden"},hs=1e3;let hh=0;function Fn(t,e,n,i){const{latestValues:r}=e;r[t]&&(n[t]=r[t],e.setStaticValue(t,0),i&&(i[t]=0))}function fa(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=vo(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:r,layoutId:o}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",U,!(r||o))}const{parent:i}=t;i&&!i.hasCheckedOptimisedAppear&&fa(i)}function da({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:i,resetTransform:r}){return class{constructor(s={},a=e==null?void 0:e()){this.id=hh++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(gh),this.nodes.forEach(Sh),this.nodes.forEach(wh),this.nodes.forEach(yh)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new th)}addEventListener(s,a){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new ki),this.eventHandlers.get(s).add(a)}notifyListeners(s,...a){const l=this.eventHandlers.get(s);l&&l.notify(...a)}hasListeners(s){return this.eventHandlers.has(s)}mount(s,a=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=Jd(s),this.instance=s;const{layoutId:l,layout:c,visualElement:u}=this.options;if(u&&!u.current&&u.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),a&&(c||l)&&(this.isLayoutDirty=!0),t){let f;const d=()=>this.root.updateBlockedByResize=!1;t(s,()=>{this.root.updateBlockedByResize=!0,f&&f(),f=eh(d,250),Ze.hasAnimatedSinceResize&&(Ze.hasAnimatedSinceResize=!1,this.nodes.forEach(ms))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&u&&(l||c)&&this.addEventListener("didUpdate",({delta:f,hasLayoutChanged:d,hasRelativeLayoutChanged:h,layout:p})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const g=this.options.transition||u.getDefaultTransition()||Eh,{onLayoutAnimationStart:S,onLayoutAnimationComplete:v}=u.getProps(),w=!this.targetLayout||!ua(this.targetLayout,p),T=!d&&h;if(this.options.layoutRoot||this.resumeFrom||T||d&&(w||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(f,T);const V={...Vi(g,"layout"),onPlay:S,onComplete:v};(u.shouldReduceMotion||this.options.layoutRoot)&&(V.delay=0,V.type=!1),this.startAnimation(V)}else d||ms(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=p})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,$t(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(Th),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&fa(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u<this.path.length;u++){const f=this.path[u];f.shouldResetTransform=!0,f.updateScroll("snapshot"),f.options.layoutRoot&&f.willUpdate(!1)}const{layoutId:a,layout:l}=this.options;if(a===void 0&&!l)return;const c=this.getTransformTemplate();this.prevTransformTemplateValue=c?c(this.latestValues,""):void 0,this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(ps);return}this.isUpdating||this.nodes.forEach(xh),this.isUpdating=!1,this.nodes.forEach(bh),this.nodes.forEach(ph),this.nodes.forEach(mh),this.clearAllSnapshots();const a=Rt.now();J.delta=Lt(0,1e3/60,a-J.timestamp),J.timestamp=a,J.isProcessing=!0,An.update.process(J),An.preRender.process(J),An.render.process(J),J.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,yi.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(vh),this.sharedNodes.forEach(Ch)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,U.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){U.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!ot(this.snapshot.measuredBox.x)&&!ot(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 l=0;l<this.path.length;l++)this.path[l].updateScroll();const s=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Y(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,s?s.layoutBox:void 0)}updateScroll(s="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(a=!1),a){const l=i(this.instance);this.scroll={animationId:this.root.animationId,phase:s,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!r)return;const s=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!ca(this.projectionDelta),l=this.getTransformTemplate(),c=l?l(this.latestValues,""):void 0,u=c!==this.prevTransformTemplateValue;s&&(a||Gt(this.latestValues)||u)&&(r(this.instance,c),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return s&&(l=this.removeTransform(l)),Vh(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var s;const{visualElement:a}=this.options;if(!a)return Y();const l=a.measureViewportBox();if(!(((s=this.scroll)===null||s===void 0?void 0:s.wasRoot)||this.path.some(Rh))){const{scroll:u}=this.root;u&&(Qt(l.x,u.offset.x),Qt(l.y,u.offset.y))}return l}removeElementScroll(s){var a;const l=Y();if(gt(l,s),!((a=this.scroll)===null||a===void 0)&&a.wasRoot)return l;for(let c=0;c<this.path.length;c++){const u=this.path[c],{scroll:f,options:d}=u;u!==this.root&&f&&d.layoutScroll&&(f.wasRoot&&gt(l,s),Qt(l.x,f.offset.x),Qt(l.y,f.offset.y))}return l}applyTransform(s,a=!1){const l=Y();gt(l,s);for(let c=0;c<this.path.length;c++){const u=this.path[c];!a&&u.options.layoutScroll&&u.scroll&&u!==u.root&&te(l,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),Gt(u.latestValues)&&te(l,u.latestValues)}return Gt(this.latestValues)&&te(l,this.latestValues),l}removeTransform(s){const a=Y();gt(a,s);for(let l=0;l<this.path.length;l++){const c=this.path[l];if(!c.instance||!Gt(c.latestValues))continue;ei(c.latestValues)&&c.updateSnapshot();const u=Y(),f=c.measurePageBox();gt(u,f),as(a,c.latestValues,c.snapshot?c.snapshot.layoutBox:void 0,u)}return Gt(this.latestValues)&&as(a,this.latestValues),a}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(s){this.options={...this.options,...s,crossfade:s.crossfade!==void 0?s.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==J.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!1){var a;const l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);const c=!!this.resumingFrom||this!==l;if(!(s||c&&this.isSharedProjectionDirty||this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:f,layoutId:d}=this.options;if(!(!this.layout||!(f||d))){if(this.resolvedRelativeTargetAt=J.timestamp,!this.targetDelta&&!this.relativeTarget){const h=this.getClosestProjectingParent();h&&h.layout&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Y(),this.relativeTargetOrigin=Y(),we(this.relativeTargetOrigin,this.layout.layoutBox,h.layout.layoutBox),gt(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Y(),this.targetWithTransforms=Y()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Dd(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):gt(this.target,this.layout.layoutBox),na(this.target,this.targetDelta)):gt(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const h=this.getClosestProjectingParent();h&&!!h.resumingFrom==!!this.resumingFrom&&!h.options.layoutScroll&&h.target&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Y(),this.relativeTargetOrigin=Y(),we(this.relativeTargetOrigin,this.target,h.target),gt(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||ei(this.parent.latestValues)||ea(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var s;const a=this.getLead(),l=!!this.resumingFrom||this!==a;let c=!0;if((this.isProjectionDirty||!((s=this.parent)===null||s===void 0)&&s.isProjectionDirty)&&(c=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===J.timestamp&&(c=!1),c)return;const{layout:u,layoutId:f}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||f))return;gt(this.layoutCorrected,this.layout.layoutBox);const d=this.treeScale.x,h=this.treeScale.y;Ld(this.layoutCorrected,this.treeScale,this.path,l),a.layout&&!a.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(a.target=a.layout.layoutBox,a.targetWithTransforms=Y());const{target:p}=a;if(!p){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(rs(this.prevProjectionDelta.x,this.projectionDelta.x),rs(this.prevProjectionDelta.y,this.projectionDelta.y)),Se(this.projectionDelta,this.layoutCorrected,p,this.latestValues),(this.treeScale.x!==d||this.treeScale.y!==h||!ds(this.projectionDelta.x,this.prevProjectionDelta.x)||!ds(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",p))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){var a;if((a=this.options.visualElement)===null||a===void 0||a.scheduleRender(),s){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Jt(),this.projectionDelta=Jt(),this.projectionDeltaWithTransform=Jt()}setAnimationOrigin(s,a=!1){const l=this.snapshot,c=l?l.latestValues:{},u={...this.latestValues},f=Jt();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const d=Y(),h=l?l.source:void 0,p=this.layout?this.layout.source:void 0,g=h!==p,S=this.getStack(),v=!S||S.members.length<=1,w=!!(g&&!v&&this.options.crossfade===!0&&!this.path.some(Ah));this.animationProgress=0;let T;this.mixTargetDelta=V=>{const m=V/1e3;gs(f.x,s.x,m),gs(f.y,s.y,m),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(we(d,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Ph(this.relativeTarget,this.relativeTargetOrigin,d,m),T&&ch(this.relativeTarget,T)&&(this.isProjectionDirty=!1),T||(T=Y()),gt(T,this.relativeTarget)),g&&(this.animationValues=u,ih(u,c,this.latestValues,m,w,v)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=m},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&($t(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=U.update(()=>{Ze.hasAnimatedSinceResize=!0,this.currentAnimation=Zd(0,hs,{...s,onUpdate:a=>{this.mixTargetDelta(a),s.onUpdate&&s.onUpdate(a)},onStop:()=>{},onComplete:()=>{s.onComplete&&s.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(hs),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:a,target:l,layout:c,latestValues:u}=s;if(!(!a||!l||!c)){if(this!==s&&this.layout&&c&&ha(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||Y();const f=ot(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+f;const d=ot(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+d}gt(a,l),te(a,u),Se(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new uh),this.sharedNodes.get(s).add(a);const c=a.options.initialPromotionConfig;a.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(a):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var s;const{layoutId:a}=this.options;return a?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:a}=this.options;return a?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:a,preserveFollowOpacity:l}={}){const c=this.getStack();c&&c.promote(this,l),s&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetSkewAndRotation(){const{visualElement:s}=this.options;if(!s)return;let a=!1;const{latestValues:l}=s;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const c={};l.z&&Fn("z",s,c,this.animationValues);for(let u=0;u<kn.length;u++)Fn(`rotate${kn[u]}`,s,c,this.animationValues),Fn(`skew${kn[u]}`,s,c,this.animationValues);s.render();for(const u in c)s.setStaticValue(u,c[u]),this.animationValues&&(this.animationValues[u]=c[u]);s.scheduleRender()}getProjectionStyles(s){var a,l;if(!this.instance||this.isSVG)return;if(!this.isVisible)return dh;const c={visibility:""},u=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,c.opacity="",c.pointerEvents=qe(s==null?void 0:s.pointerEvents)||"",c.transform=u?u(this.latestValues,""):"none",c;const f=this.getLead();if(!this.projectionDelta||!this.layout||!f.target){const g={};return this.options.layoutId&&(g.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,g.pointerEvents=qe(s==null?void 0:s.pointerEvents)||""),this.hasProjected&&!Gt(this.latestValues)&&(g.transform=u?u({},""):"none",this.hasProjected=!1),g}const d=f.animationValues||f.latestValues;this.applyTransformsToTarget(),c.transform=fh(this.projectionDeltaWithTransform,this.treeScale,d),u&&(c.transform=u(d,c.transform));const{x:h,y:p}=this.projectionDelta;c.transformOrigin=`${h.origin*100}% ${p.origin*100}% 0`,f.animationValues?c.opacity=f===this?(l=(a=d.opacity)!==null&&a!==void 0?a:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:d.opacityExit:c.opacity=f===this?d.opacity!==void 0?d.opacity:"":d.opacityExit!==void 0?d.opacityExit:0;for(const g in Ve){if(d[g]===void 0)continue;const{correct:S,applyTo:v,isCSSVariable:w}=Ve[g],T=c.transform==="none"?d[g]:S(d[g],f);if(v){const V=v.length;for(let m=0;m<V;m++)c[v[m]]=T}else w?this.options.visualElement.renderState.vars[g]=T:c[g]=T}return this.options.layoutId&&(c.pointerEvents=f===this?qe(s==null?void 0:s.pointerEvents)||"":"none"),c}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>{var a;return(a=s.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(ps),this.root.sharedNodes.clear()}}}function ph(t){t.updateLayout()}function mh(t){var e;const n=((e=t.resumeFrom)===null||e===void 0?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&n&&t.hasListeners("didUpdate")){const{layoutBox:i,measuredBox:r}=t.layout,{animationType:o}=t.options,s=n.source!==t.layout.source;o==="size"?yt(f=>{const d=s?n.measuredBox[f]:n.layoutBox[f],h=ot(d);d.min=i[f].min,d.max=d.min+h}):ha(o,n.layoutBox,i)&&yt(f=>{const d=s?n.measuredBox[f]:n.layoutBox[f],h=ot(i[f]);d.max=d.min+h,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[f].max=t.relativeTarget[f].min+h)});const a=Jt();Se(a,i,n.layoutBox);const l=Jt();s?Se(l,t.applyTransform(r,!0),n.measuredBox):Se(l,i,n.layoutBox);const c=!ca(a);let u=!1;if(!t.resumeFrom){const f=t.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:d,layout:h}=f;if(d&&h){const p=Y();we(p,n.layoutBox,d.layoutBox);const g=Y();we(g,i,h.layoutBox),ua(p,g)||(u=!0),f.options.layoutRoot&&(t.relativeTarget=g,t.relativeTargetOrigin=p,t.relativeParent=f)}}}t.notifyListeners("didUpdate",{layout:i,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:c,hasRelativeLayoutChanged:u})}else if(t.isLead()){const{onExitComplete:i}=t.options;i&&i()}t.options.transition=void 0}function gh(t){t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function yh(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function vh(t){t.clearSnapshot()}function ps(t){t.clearMeasurements()}function xh(t){t.isLayoutDirty=!1}function bh(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function ms(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function Sh(t){t.resolveTargetDelta()}function wh(t){t.calcProjection()}function Th(t){t.resetSkewAndRotation()}function Ch(t){t.removeLeadSnapshot()}function gs(t,e,n){t.translate=H(e.translate,0,n),t.scale=H(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function ys(t,e,n,i){t.min=H(e.min,n.min,i),t.max=H(e.max,n.max,i)}function Ph(t,e,n,i){ys(t.x,e.x,n.x,i),ys(t.y,e.y,n.y,i)}function Ah(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const Eh={duration:.45,ease:[.4,0,.1,1]},vs=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),xs=vs("applewebkit/")&&!vs("chrome/")?Math.round:ut;function bs(t){t.min=xs(t.min),t.max=xs(t.max)}function Vh(t){bs(t.x),bs(t.y)}function ha(t,e,n){return t==="position"||t==="preserve-aspect"&&!Md(fs(e),fs(n),.2)}function Rh(t){var e;return t!==t.root&&((e=t.scroll)===null||e===void 0?void 0:e.wasRoot)}const Mh=da({attachResizeListener:(t,e)=>Oe(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),In={current:void 0},pa=da({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!In.current){const t=new Mh({});t.mount(window),t.setOptions({layoutScroll:!0}),In.current=t}return In.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),Dh={pan:{Feature:Hd},drag:{Feature:Kd,ProjectionNode:pa,MeasureLayout:oa}};function Ss(t,e,n){const{props:i}=t;t.animationState&&i.whileHover&&t.animationState.setActive("whileHover",n==="Start");const r="onHover"+n,o=i[r];o&&U.postRender(()=>o(e,je(e)))}class Lh extends _t{mount(){const{current:e}=this.node;e&&(this.unmount=Du(e,(n,i)=>(Ss(this.node,i,"Start"),r=>Ss(this.node,r,"End"))))}unmount(){}}class Oh extends _t{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=$e(Oe(this.node.current,"focus",()=>this.onFocus()),Oe(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function ws(t,e,n){const{props:i}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&i.whileTap&&t.animationState.setActive("whileTap",n==="Start");const r="onTap"+(n==="End"?"":n),o=i[r];o&&U.postRender(()=>o(e,je(e)))}class kh extends _t{mount(){const{current:e}=this.node;e&&(this.unmount=Fu(e,(n,i)=>(ws(this.node,i,"Start"),(r,{success:o})=>ws(this.node,r,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const ri=new WeakMap,Bn=new WeakMap,Fh=t=>{const e=ri.get(t.target);e&&e(t)},Ih=t=>{t.forEach(Fh)};function Bh({root:t,...e}){const n=t||document;Bn.has(n)||Bn.set(n,{});const i=Bn.get(n),r=JSON.stringify(e);return i[r]||(i[r]=new IntersectionObserver(Ih,{root:t,...e})),i[r]}function $h(t,e,n){const i=Bh(e);return ri.set(t,n),i.observe(t),()=>{ri.delete(t),i.unobserve(t)}}const jh={some:0,all:1};class _h extends _t{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:n,margin:i,amount:r="some",once:o}=e,s={root:n?n.current:void 0,rootMargin:i,threshold:typeof r=="number"?r:jh[r]},a=l=>{const{isIntersecting:c}=l;if(this.isInView===c||(this.isInView=c,o&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:u,onViewportLeave:f}=this.node.getProps(),d=c?u:f;d&&d(l)};return $h(this.node.current,s,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(Nh(e,n))&&this.startObserver()}unmount(){}}function Nh({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const Uh={inView:{Feature:_h},tap:{Feature:kh},focus:{Feature:Oh},hover:{Feature:Lh}},zh={layout:{ProjectionNode:pa,MeasureLayout:oa}},si={current:null},ma={current:!1};function Wh(){if(ma.current=!0,!!di)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>si.current=t.matches;t.addListener(e),e()}else si.current=!1}const Gh=[...jo,nt,jt],Kh=t=>Gh.find($o(t)),Hh=new WeakMap;function Yh(t,e,n){for(const i in e){const r=e[i],o=n[i];if(it(r))t.addValue(i,r),process.env.NODE_ENV==="development"&&mn(r.version==="12.4.7",`Attempting to mix Motion versions ${r.version} with 12.4.7 may not work as expected.`);else if(it(o))t.addValue(i,De(r,{owner:t}));else if(o!==r)if(t.hasValue(i)){const s=t.getValue(i);s.liveStyle===!0?s.jump(r):s.hasAnimated||s.set(r)}else{const s=t.getStaticValue(i);t.addValue(i,De(s!==void 0?s:r,{owner:t}))}}for(const i in n)e[i]===void 0&&t.removeValue(i);return e}const Ts=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class qh{scrapeMotionValuesFromProps(e,n,i){return{}}constructor({parent:e,props:n,presenceContext:i,reducedMotionConfig:r,blockInitialAnimation:o,visualState:s},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Ni,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const h=Rt.now();this.renderScheduledAt<h&&(this.renderScheduledAt=h,U.render(this.render,!1,!0))};const{latestValues:l,renderState:c,onUpdate:u}=s;this.onUpdate=u,this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=c,this.parent=e,this.props=n,this.presenceContext=i,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.options=a,this.blockInitialAnimation=!!o,this.isControllingVariants=vn(n),this.isVariantNode=Ks(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:f,...d}=this.scrapeMotionValuesFromProps(n,{},this);for(const h in d){const p=d[h];l[h]!==void 0&&it(p)&&p.set(l[h],!1)}}mount(e){this.current=e,Hh.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,i)=>this.bindToMotionValue(i,n)),ma.current||Wh(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:si.current,process.env.NODE_ENV!=="production"&&mn(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),$t(this.notifyUpdate),$t(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const n=this.features[e];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(e,n){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const i=Yt.has(e);i&&this.onBindTransform&&this.onBindTransform();const r=n.on("change",a=>{this.latestValues[e]=a,this.props.onUpdate&&U.preRender(this.notifyUpdate),i&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);let s;window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,e,n)),this.valueSubscriptions.set(e,()=>{r(),o(),s&&s(),n.owner&&n.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in ae){const n=ae[e];if(!n)continue;const{isEnabled:i,Feature:r}=n;if(!this.features[e]&&r&&i(this.props)&&(this.features[e]=new r(this)),this.features[e]){const o=this.features[e];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Y()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}update(e,n){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let i=0;i<Ts.length;i++){const r=Ts[i];this.propEventSubscriptions[r]&&(this.propEventSubscriptions[r](),delete this.propEventSubscriptions[r]);const o="on"+r,s=e[o];s&&(this.propEventSubscriptions[r]=this.on(r,s))}this.prevMotionValues=Yh(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(e),()=>n.variantChildren.delete(e)}addValue(e,n){const i=this.values.get(e);n!==i&&(i&&this.removeValue(e),this.bindToMotionValue(e,n),this.values.set(e,n),this.latestValues[e]=n.get())}removeValue(e){this.values.delete(e);const n=this.valueSubscriptions.get(e);n&&(n(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){if(this.props.values&&this.props.values[e])return this.props.values[e];let i=this.values.get(e);return i===void 0&&n!==void 0&&(i=De(n===null?void 0:n,{owner:this}),this.addValue(e,i)),i}readValue(e,n){var i;let r=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:(i=this.getBaseTargetFromProps(this.props,e))!==null&&i!==void 0?i:this.readValueFromInstance(this.current,e,this.options);return r!=null&&(typeof r=="string"&&(Io(r)||Eo(r))?r=parseFloat(r):!Kh(r)&&jt.test(n)&&(r=Oo(e,n)),this.setBaseTarget(e,it(r)?r.get():r)),it(r)?r.get():r}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){var n;const{initial:i}=this.props;let r;if(typeof i=="string"||typeof i=="object"){const s=Ai(this.props,i,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);s&&(r=s[e])}if(i&&r!==void 0)return r;const o=this.getBaseTargetFromProps(this.props,e);return o!==void 0&&!it(o)?o:this.initialValues[e]!==void 0&&r===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new ki),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}}class ga extends qh{constructor(){super(...arguments),this.KeyframeResolver=_o}sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){return e.style?e.style[n]:void 0}removeValueFromRenderState(e,{vars:n,style:i}){delete n[e],delete i[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;it(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function Xh(t){return window.getComputedStyle(t)}class Zh extends ga{constructor(){super(...arguments),this.type="html",this.renderInstance=io}readValueFromInstance(e,n){if(Yt.has(n)){const i=_i(n);return i&&i.default||0}else{const i=Xh(e),r=(vi(n)?i.getPropertyValue(n):i[n])||0;return typeof r=="string"?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:n}){return ia(e,n)}build(e,n,i){Si(e,n,i.transformTemplate)}scrapeMotionValuesFromProps(e,n,i){return Ei(e,n,i)}}class Jh extends ga{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Y,this.updateDimensions=()=>{this.current&&!this.renderState.dimensions&&no(this.current,this.renderState)}}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(Yt.has(n)){const i=_i(n);return i&&i.default||0}return n=ro.has(n)?n:gi(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,i){return oo(e,n,i)}onBindTransform(){this.current&&!this.renderState.dimensions&&U.postRender(this.updateDimensions)}build(e,n,i){Ci(e,n,this.isSVGTag,i.transformTemplate)}renderInstance(e,n,i,r){so(e,n,i,r)}mount(e){this.isSVGTag=Pi(e.tagName),super.mount(e)}}const Qh=(t,e)=>Ti(t)?new Jh(e):new Zh(e,{allowProjection:t!==P.Fragment}),tp=Pu({...wd,...Uh,...Dh,...zh},Qh),ep=Nc(tp);function np(t){t.values.forEach(e=>e.stop())}function oi(t,e){[...e].reverse().forEach(i=>{const r=t.getVariant(i);r&&Fi(t,r),t.variantChildren&&t.variantChildren.forEach(o=>{oi(o,e)})})}function ip(t,e){if(Array.isArray(e))return oi(t,e);if(typeof e=="string")return oi(t,[e]);Fi(t,e)}function rp(){let t=!1;const e=new Set,n={subscribe(i){return e.add(i),()=>void e.delete(i)},start(i,r){Mt(t,"controls.start() should only be called after a component has mounted. Consider calling within a useEffect hook.");const o=[];return e.forEach(s=>{o.push(qo(s,i,{transitionOverride:r}))}),Promise.all(o)},set(i){return Mt(t,"controls.set() should only be called after a component has mounted. Consider calling within a useEffect hook."),e.forEach(r=>{ip(r,i)})},stop(){e.forEach(i=>{np(i)})},mount(){return t=!0,()=>{t=!1,n.stop()}}};return n}function sp(){const t=_s(rp);return Us(t.mount,[]),t}const op=sp,ap={some:0,all:1};function lp(t,e,{root:n,margin:i,amount:r="some"}={}){const o=ho(t),s=new WeakMap,a=c=>{c.forEach(u=>{const f=s.get(u.target);if(u.isIntersecting!==!!f)if(u.isIntersecting){const d=e(u.target,u);typeof d=="function"?s.set(u.target,d):l.unobserve(u.target)}else typeof f=="function"&&(f(u),s.delete(u.target))})},l=new IntersectionObserver(a,{root:n,rootMargin:i,threshold:typeof r=="number"?r:ap[r]});return o.forEach(c=>l.observe(c)),()=>l.disconnect()}function cp(t,{root:e,margin:n,amount:i,once:r=!1,initial:o=!1}={}){const[s,a]=P.useState(o);return P.useEffect(()=>{if(!t.current||r&&s)return;const l=()=>(a(!0),r?void 0:()=>a(!1)),c={root:e&&e.current||void 0,margin:n,amount:i};return lp(t.current,l,c)},[e,t,n,r,i]),s}var ee=(t=>(t[t.Center=0]="Center",t[t.Left=1]="Left",t[t.Right=2]="Right",t))(ee||{});const up=L.section(({styles:t,theme:{global:{paddingLeft:e,paddingRight:n},colors:i,header:{height:r},footer:{height:o},section:{paddingTop:s,paddingBottom:a}},zIndex:l,align:c,isDark:u,isFullHeight:f,noPaddingTop:d,noPaddingBottom:h,backgroundColor:p})=>G({zIndex:l,width:"100%",display:"flex",alignItems:"center",position:"relative",flexDirection:"column",background:p,paddingTop:s[0],paddingLeft:e[0],paddingRight:n[0],paddingBottom:a[0],animation:"background 0.5s ease-in-out",justifyContent:f?"center":"flex-start",color:u?i.defaultLightText:i.defaultText,minHeight:f?`calc(100vh - ${r[0]}px - ${o[0]}px)`:0,[A[0]]:{paddingLeft:e[1],paddingRight:n[1],paddingTop:d?0:s[1],paddingBottom:h?0:s[1],minHeight:f?`calc(100vh - ${r[1]}px - ${o[1]}px)`:0},[A[1]]:{paddingLeft:e[2],paddingRight:n[2],paddingTop:d?0:s[2],paddingBottom:h?0:a[2],minHeight:f?`calc(100vh - ${r[2]}px - ${o[2]}px)`:0},[A[2]]:{paddingLeft:e[3],paddingRight:n[3],paddingTop:d?0:s[3],paddingBottom:h?0:a[3],minHeight:f?`calc(100vh - ${r[3]}px - ${o[3]}px)`:0},"> div":{textAlign:c===ee.Center?"center":c===ee.Right?"right":"left",alignItems:c===ee.Center?"center":c===ee.Right?"right":"left"},p:{color:u?i.defaultLightText:i.defaultText}},t)),fp=L(ep.div)({gap:15,width:"100%",display:"flex",flexDirection:"column",maxWidth:"var(--max-width)"}),dp={hidden:{opacity:0},visible:{opacity:1,transition:{delay:.5,bounce:.2,duration:1,type:"spring"}}},hp=({children:t,zIndex:e=20,styles:n={},id:i=void 0,isDark:r=!1,align:o=ee.Left,isFullHeight:s=!1,noPaddingTop:a=!1,backgroundColor:l="",theme:c=_,noPaddingBottom:u=!1})=>{const f=op(),d=P.createRef(),h=cp(d,{margin:"0px 0px 0px 0px"});return P.useEffect(()=>{h&&f.start("visible")},[f,h]),E(up,{id:i,ref:d,align:o,theme:c,styles:n,zIndex:e,isDark:r,isFullHeight:s,noPaddingTop:a,noPaddingBottom:u,backgroundColor:l||c.main.backgroundColor,children:E(fp,{initial:"hidden",animate:f,variants:dp,children:t})})},pp=L.div(({styles:t,theme:{nav:{gap:e}}})=>G({gap:e[0],display:"flex",flexDirection:"column",[A[0]]:{gap:e[1]},[A[1]]:{gap:e[2],flexDirection:"row"},[A[2]]:{gap:e[3]}},t)),mp=({children:t,styles:e={},theme:n=_})=>E(pp,{theme:n,styles:e,children:t}),gp=L.div(({styles:t,theme:{navSocial:{gap:e}}})=>G({gap:e[0],marginLeft:0,marginRight:0,display:"flex",flexDirection:"row",[A[0]]:{gap:e[1]},[A[1]]:{gap:e[2]},[A[2]]:{gap:e[3]}},t)),yp=L.div({display:"flex",flexDirection:"row",a:{padding:10,"svg path":{transition:"all 0.5s ease-in-out"},"&:hover":{"svg path":{opacity:.5}}}}),vp=({navSocial:t,styles:e={},theme:n=_})=>E(gp,{theme:n,styles:e,children:t.map(({name:i,link:r},o)=>{const s=i[0].toUpperCase()+i.slice(1);return E(yp,{children:E("a",{target:"_blank","aria-label":i,href:r,children:E(Pt,{theme:n,icon:`social${s}`})})},`navSocialItem-${o}`)})}),xp=L.div(({styles:t,theme:{navLegal:{gap:e}}})=>G({gap:e[0],display:"flex",flexDirection:"row",[A[0]]:{gap:e[1]},[A[1]]:{gap:e[2]},[A[2]]:{gap:e[3]}},t)),bp=({children:t,styles:e={},theme:n=_})=>E(xp,{theme:n,styles:e,children:t}),Sp=L.form(({styles:t,theme:{form:{width:e,padding:n,backgroundColor:i}}})=>G({width:"100%",maxWidth:e,backgroundColor:i,padding:n[0],position:"relative",[A[1]]:{padding:n[1]}},t)),wp=({action:t,children:e,styles:n={},theme:i=_})=>E(Sp,{theme:i,styles:n,action:t,children:e});var ke=(t=>(t[t.Center=0]="Center",t[t.Left=1]="Left",t[t.Right=2]="Right",t))(ke||{});const Tp=L.div(({theme:{form:{row:{gap:t,padding:e}}},align:n,styles:i,isMessage:r})=>G({gap:t[0],display:"flex",padding:e[0],flexDirection:"column",fontSize:r?"0.8em":"inherit",justifyContent:n===ke.Right?"flex-end":n===ke.Center?"center":"flex-start",[A[1]]:{gap:t[1],padding:e[1],flexDirection:"row"}},i)),Cp=({children:t,theme:e=_,styles:n={},isActions:i=!1,isMessage:r=!1,align:o=ke.Left})=>E(Tp,{align:o,theme:e,styles:n,isActions:i,isMessage:r,children:t}),Pp=L.input(({styles:t,theme:{form:{input:{font:e,color:n,border:i,padding:r,borderRadius:o,backgroundColor:s,placeholder:{color:a,opacity:l}}}}})=>G({color:n,width:"100%",border:i,lineHeight:"1.5em",fontSize:"inherit",padding:r[0],borderRadius:o,backgroundColor:s,fontFamily:`var(--font-${e})`,[A[1]]:{padding:r[1]},"&:focus":{outline:i},"&::placeholder":{color:a,opacity:l},"&:-webkit-autofill":{textFillColor:n,boxShadow:`0 0 0px 1000px ${s} inset`}},t));var bn=(t=>(t.Text="text",t.Email="email",t.Search="search",t.Number="number",t.Hidden="hidden",t.Password="password",t))(bn||{});const ya=({name:t,value:e="",styles:n={},type:i=bn.Text,disabled:r=!1,placeholder:o="",theme:s=_,onChange:a=void 0})=>E(Pp,{type:i,id:t,name:t,theme:s,styles:n,onChange:a,disabled:r,defaultValue:e,placeholder:o}),Ap=L.label(({theme:{form:{label:{color:t,font:e,fontWeight:n,paddingBottom:i}}}})=>({color:t,fontWeight:n,paddingBottom:i,width:"100%",textAlign:"left",fontFamily:`var(--font-${e})`})),va=({name:t,label:e,required:n=!1,theme:i=_})=>dt(Ap,{htmlFor:t,theme:i,children:[e,n?E("span",{children:" *"}):""]}),Ep=L.div(({styles:t})=>G({width:"100%",display:"flex",position:"relative",flexDirection:"column",alignItems:"flex-start"},t)),Vp=L.div({paddingTop:5,textAlign:"left",fontStyle:"italic"}),Rp=L.span(({theme:{form:{error:{color:t}}}})=>({color:t,display:"block",fontSize:"0.875rem",marginTop:"0.25rem"})),Mp=L.textarea(({styles:t,theme:{form:{textarea:{font:e,color:n,border:i,padding:r,borderRadius:o,backgroundColor:s,placeholder:{color:a,opacity:l}}}}})=>G({color:n,width:"100%",border:i,padding:r[0],lineHeight:"1.5em",fontSize:"inherit",borderRadius:o,backgroundColor:s,fontFamily:`var(--font-${e})`,[A[1]]:{padding:r[1]},"&:focus":{outline:i},"&::placeholder":{color:a,opacity:l},"&:-webkit-autofill":{textFillColor:n,boxShadow:`0 0 0px 1000px ${s} inset`}},t)),xa=({name:t,value:e,rows:n=2,disabled:i,styles:r={},placeholder:o="",onChange:s=void 0,theme:a=_})=>E(Mp,{id:t,name:t,rows:n,theme:a,styles:r,onChange:s,disabled:i,defaultValue:e,placeholder:o});var Gi=(t=>(t.Textarea="textarea",t))(Gi||{});const Dp=({name:t,label:e="",value:n="",styles:i={},rows:r=void 0,required:o=!1,disabled:s=!1,placeholder:a="",errors:l=void 0,theme:c=_,onChange:u=void 0,type:f=bn.Text})=>dt(Ep,{styles:i,children:[e&&E(va,{theme:c,label:e,name:t,required:o}),f===Gi.Textarea?E(xa,{value:n,rows:r,name:t,theme:c,onChange:u,disabled:s,placeholder:a}):E(ya,{value:n,type:f,name:t,theme:c,onChange:u,disabled:s,placeholder:a}),l&&E(Vp,{children:l instanceof Array?l.map((d,h)=>E(Rp,{theme:c,children:d},h)):l})]}),Lp=L.div(({styles:t,theme:{consentCookie:{overlayBlur:e,overlayOpacity:n,overlayBackgroundColor:i}}})=>G({zIndex:100,position:"fixed","&:before":{top:0,left:0,right:0,bottom:0,content:"''",position:"fixed",opacity:n,backgroundColor:i,backdropFilter:`blur(${e}px)`}},t)),Op=L.div(({theme:{consentCookie:{width:t,borders:e,borderRadius:n,backgroundColor:i,paddingTop:r,paddingLeft:o,paddingRight:s,paddingBottom:a}}})=>({right:15,bottom:15,zIndex:20,border:e,display:"flex",width:t[0],position:"fixed",flexDirection:"column",borderRadius:n,paddingTop:r[0],paddingLeft:o[0],paddingRight:s[0],paddingBottom:a[0],backgroundColor:i,[A[0]]:{width:t[1],paddingTop:r[1],paddingLeft:o[1],paddingRight:s[1],paddingBottom:a[1]},[A[1]]:{width:t[2],paddingTop:r[2],paddingLeft:o[2],paddingRight:s[2],paddingBottom:a[2]},[A[2]]:{width:t[3],paddingTop:r[3],paddingLeft:o[3],paddingRight:s[3],paddingBottom:a[3]}})),kp=L.div(({theme:{consentCookie:{actionsGap:t,actionsPaddingTop:e}}})=>({gap:t,display:"flex",alignItems:"center",flexDirection:"row",paddingTop:e[0],justifyContent:"flex-end",[A[0]]:{paddingTop:e[1]},[A[1]]:{paddingTop:e[2]},[A[2]]:{paddingTop:e[3]}}));function Fp(t){const e=t+"=",i=decodeURIComponent(document.cookie).split(";");for(let r=0;r<i.length;r++){let o=i[r];for(;o.charAt(0)==" ";)o=o.substring(1);if(o.indexOf(e)==0)return o.substring(e.length,o.length)}return""}function Ip(t,e,n){const i=new Date;i.setTime(i.getTime()+n*24*60*60*1e3);const r="expires="+i.toUTCString();document.cookie=t+"="+e+";"+r+";path=/"}const Bp=({styles:t={},children:e=void 0,theme:n=_,cookieName:i="consent",translations:r=void 0,cookieExpirationDays:o=365})=>{const[s,a]=P.useState(!1),l=c=>{a(!1),Ip(i,`${c}`,o)};return P.useEffect(()=>{const c=Fp(i),u=c!=="true"&&c!=="false",f=c==="true";u&&a(!0);const d=f?"granted":"denied";typeof window.gtag<"u"&&window.gtag("consent","update",{analytics_storage:d})},[s]),s?E(Lp,{theme:n,styles:t,children:dt(Op,{theme:n,children:[e,dt(kp,{theme:n,children:[E(Un,{onClick:()=>l(!1),children:(r==null?void 0:r.actions.reject)||"Reject"}),E(Un,{onClick:()=>l(!0),children:(r==null?void 0:r.actions.accept)||"Accept"})]})]})}):null};exports.Actions=Tl;exports.ActionsAlign=ie;exports.Button=Un;exports.ButtonSize=ve;exports.ButtonStyle=en;exports.ButtonType=ui;exports.ButtonVariant=tn;exports.Carousel=Hl;exports.Columns=Lc;exports.ColumnsAlign=re;exports.ConsentCookie=Bp;exports.Footer=Mc;exports.Form=wp;exports.FormRow=Cp;exports.FormRowAlign=ke;exports.Header=Vc;exports.Icon=Pt;exports.InputType=bn;exports.KeyNumber=lc;exports.LanguageSwitcher=pc;exports.Logo=$l;exports.Main=Sc;exports.Modal=Ml;exports.Nav=mp;exports.NavLegal=bp;exports.NavSocial=vp;exports.Section=hp;exports.TextField=Dp;exports.TextFieldInput=ya;exports.TextFieldLabel=va;exports.TextFieldTextarea=xa;exports.TextareaType=Gi;exports.Video=$s;exports.VideoFullWidth=uc;