@dss-kit/ui-kit 0.0.27 → 0.0.29

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.
Files changed (44) hide show
  1. package/README.md +21 -21
  2. package/dist/components/builders/Loader/Loader.d.ts +7 -0
  3. package/dist/components/builders/Loader/Loader.d.ts.map +1 -0
  4. package/dist/components/builders/Loader/index.d.ts +2 -0
  5. package/dist/components/builders/Loader/index.d.ts.map +1 -0
  6. package/dist/components/builders/Text/Text.d.ts +286 -0
  7. package/dist/components/builders/Text/Text.d.ts.map +1 -1
  8. package/dist/components/controls/Button/Button.d.ts +91 -0
  9. package/dist/components/controls/Button/Button.d.ts.map +1 -0
  10. package/dist/components/controls/Button/Button.stories.d.ts +14 -0
  11. package/dist/components/controls/Button/Button.stories.d.ts.map +1 -0
  12. package/dist/components/controls/Button/index.d.ts +3 -0
  13. package/dist/components/controls/Button/index.d.ts.map +1 -0
  14. package/dist/components/controls/Button/styles.d.ts +8 -0
  15. package/dist/components/controls/Button/styles.d.ts.map +1 -0
  16. package/dist/components/controls/index.d.ts +1 -0
  17. package/dist/components/controls/index.d.ts.map +1 -1
  18. package/dist/providers/ThemeProviderScoped/ThemeProviderScoped.d.ts +1 -1
  19. package/dist/providers/ThemeProviderScoped/ThemeProviderScoped.d.ts.map +1 -1
  20. package/dist/providers/ThemeProviderScoped/ThemeProviderScoped.types.d.ts +1 -0
  21. package/dist/providers/ThemeProviderScoped/ThemeProviderScoped.types.d.ts.map +1 -1
  22. package/dist/root.css +1 -1
  23. package/dist/styles/utils/breakpoints/base.scss +11 -11
  24. package/dist/styles/utils/breakpoints/index.scss +3 -3
  25. package/dist/styles/utils/breakpoints/screen.scss +61 -61
  26. package/dist/styles/utils/breakpoints/semantic.scss +31 -31
  27. package/dist/styles/utils/fonts/font-family.scss +3 -3
  28. package/dist/styles/utils/fonts/index.scss +1 -1
  29. package/dist/styles/utils/index.scss +5 -5
  30. package/dist/styles/utils/size/index.scss +1 -1
  31. package/dist/styles/utils/size/modifiers.scss +29 -29
  32. package/dist/styles/utils/style/index.scss +1 -1
  33. package/dist/styles/utils/style/variants.scss +34 -34
  34. package/dist/styles/utils/typography/_font-weight.scss +33 -33
  35. package/dist/styles/utils/typography/_variants.scss +85 -85
  36. package/dist/styles/utils/typography/index.scss +2 -2
  37. package/dist/types/tokens.types.d.ts +12 -1
  38. package/dist/types/tokens.types.d.ts.map +1 -1
  39. package/dist/ui-kit.cjs.js +2 -2
  40. package/dist/ui-kit.cjs.js.map +1 -1
  41. package/dist/ui-kit.css +1 -1
  42. package/dist/ui-kit.es.js +5698 -840
  43. package/dist/ui-kit.es.js.map +1 -1
  44. package/package.json +78 -77
@@ -1,6 +1,6 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const C=require("react/jsx-runtime"),D=require("react");function Be(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const R=Be(D);function Ge(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function Ie(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var Le=(function(){function e(r){var n=this;this._insertTag=function(a){var i;n.tags.length===0?n.insertionPoint?i=n.insertionPoint.nextSibling:n.prepend?i=n.container.firstChild:i=n.before:i=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(a,i),n.tags.push(a)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(n){n.forEach(this._insertTag)},t.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Ie(this));var a=this.tags[this.tags.length-1];if(this.isSpeedy){var i=Ge(a);try{i.insertRule(n,i.cssRules.length)}catch{}}else a.appendChild(document.createTextNode(n));this.ctr++},t.flush=function(){this.tags.forEach(function(n){var a;return(a=n.parentNode)==null?void 0:a.removeChild(n)}),this.tags=[],this.ctr=0},e})(),S="-ms-",J="-moz-",d="-webkit-",$e="comm",de="rule",he="decl",De="@import",Ee="@keyframes",Ve="@layer",He=Math.abs,te=String.fromCharCode,Fe=Object.assign;function qe(e,t){return x(e,0)^45?(((t<<2^x(e,0))<<2^x(e,1))<<2^x(e,2))<<2^x(e,3):0}function Ae(e){return e.trim()}function Ze(e,t){return(e=t.exec(e))?e[0]:e}function h(e,t,r){return e.replace(t,r)}function ue(e,t){return e.indexOf(t)}function x(e,t){return e.charCodeAt(t)|0}function V(e,t,r){return e.slice(t,r)}function T(e){return e.length}function me(e){return e.length}function Z(e,t){return t.push(e),e}function Ke(e,t){return e.map(t).join("")}var re=1,G=1,Oe=0,$=0,p=0,I="";function ne(e,t,r,n,a,i,o){return{value:e,root:t,parent:r,type:n,props:a,children:i,line:re,column:G,length:o,return:""}}function L(e,t){return Fe(ne("",null,null,"",null,null,0),e,{length:-e.length},t)}function Ue(){return p}function Ye(){return p=$>0?x(I,--$):0,G--,p===10&&(G=1,re--),p}function E(){return p=$<Oe?x(I,$++):0,G++,p===10&&(G=1,re++),p}function M(){return x(I,$)}function U(){return $}function q(e,t){return V(I,e,t)}function H(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Re(e){return re=G=1,Oe=T(I=e),$=0,[]}function je(e){return I="",e}function Y(e){return Ae(q($-1,le(e===91?e+2:e===40?e+1:e)))}function Xe(e){for(;(p=M())&&p<33;)E();return H(e)>2||H(p)>3?"":" "}function Je(e,t){for(;--t&&E()&&!(p<48||p>102||p>57&&p<65||p>70&&p<97););return q(e,U()+(t<6&&M()==32&&E()==32))}function le(e){for(;E();)switch(p){case e:return $;case 34:case 39:e!==34&&e!==39&&le(p);break;case 40:e===41&&le(e);break;case 92:E();break}return $}function Qe(e,t){for(;E()&&e+p!==57;)if(e+p===84&&M()===47)break;return"/*"+q(t,$-1)+"*"+te(e===47?e:E())}function et(e){for(;!H(M());)E();return q(e,$)}function tt(e){return je(X("",null,null,null,[""],e=Re(e),0,[0],e))}function X(e,t,r,n,a,i,o,s,c){for(var u=0,f=0,l=o,w=0,A=0,y=0,m=1,v=1,_=1,b=0,k="",W=a,j=i,P=n,g=k;v;)switch(y=b,b=E()){case 40:if(y!=108&&x(g,l-1)==58){ue(g+=h(Y(b),"&","&\f"),"&\f")!=-1&&(_=-1);break}case 34:case 39:case 91:g+=Y(b);break;case 9:case 10:case 13:case 32:g+=Xe(y);break;case 92:g+=Je(U()-1,7);continue;case 47:switch(M()){case 42:case 47:Z(rt(Qe(E(),U()),t,r),c);break;default:g+="/"}break;case 123*m:s[u++]=T(g)*_;case 125*m:case 59:case 0:switch(b){case 0:case 125:v=0;case 59+f:_==-1&&(g=h(g,/\f/g,"")),A>0&&T(g)-l&&Z(A>32?be(g+";",n,r,l-1):be(h(g," ","")+";",n,r,l-2),c);break;case 59:g+=";";default:if(Z(P=ge(g,t,r,u,f,a,s,k,W=[],j=[],l),i),b===123)if(f===0)X(g,t,P,P,W,i,l,s,j);else switch(w===99&&x(g,3)===110?100:w){case 100:case 108:case 109:case 115:X(e,P,P,n&&Z(ge(e,P,P,0,0,a,s,k,a,W=[],l),j),a,j,l,s,n?W:j);break;default:X(g,P,P,P,[""],j,0,s,j)}}u=f=A=0,m=_=1,k=g="",l=o;break;case 58:l=1+T(g),A=y;default:if(m<1){if(b==123)--m;else if(b==125&&m++==0&&Ye()==125)continue}switch(g+=te(b),b*m){case 38:_=f>0?1:(g+="\f",-1);break;case 44:s[u++]=(T(g)-1)*_,_=1;break;case 64:M()===45&&(g+=Y(E())),w=M(),f=l=T(k=g+=et(U())),b++;break;case 45:y===45&&T(g)==2&&(m=0)}}return i}function ge(e,t,r,n,a,i,o,s,c,u,f){for(var l=a-1,w=a===0?i:[""],A=me(w),y=0,m=0,v=0;y<n;++y)for(var _=0,b=V(e,l+1,l=He(m=o[y])),k=e;_<A;++_)(k=Ae(m>0?w[_]+" "+b:h(b,/&\f/g,w[_])))&&(c[v++]=k);return ne(e,t,r,a===0?de:s,c,u,f)}function rt(e,t,r){return ne(e,t,r,$e,te(Ue()),V(e,2,-2),0)}function be(e,t,r,n){return ne(e,t,r,he,V(e,0,n),V(e,n+1,-1),n)}function B(e,t){for(var r="",n=me(e),a=0;a<n;a++)r+=t(e[a],a,e,t)||"";return r}function nt(e,t,r,n){switch(e.type){case Ve:if(e.children.length)break;case De:case he:return e.return=e.return||e.value;case $e:return"";case Ee:return e.return=e.value+"{"+B(e.children,n)+"}";case de:e.value=e.props.join(",")}return T(r=B(e.children,n))?e.return=e.value+"{"+r+"}":""}function at(e){var t=me(e);return function(r,n,a,i){for(var o="",s=0;s<t;s++)o+=e[s](r,n,a,i)||"";return o}}function it(e){return function(t){t.root||(t=t.return)&&e(t)}}function ot(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var st=function(t,r,n){for(var a=0,i=0;a=i,i=M(),a===38&&i===12&&(r[n]=1),!H(i);)E();return q(t,$)},ct=function(t,r){var n=-1,a=44;do switch(H(a)){case 0:a===38&&M()===12&&(r[n]=1),t[n]+=st($-1,r,n);break;case 2:t[n]+=Y(a);break;case 4:if(a===44){t[++n]=M()===58?"&\f":"",r[n]=t[n].length;break}default:t[n]+=te(a)}while(a=E());return t},ft=function(t,r){return je(ct(Re(t),r))},pe=new WeakMap,ut=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,n=t.parent,a=t.column===n.column&&t.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!pe.get(n))&&!a){pe.set(t,!0);for(var i=[],o=ft(r,i),s=n.props,c=0,u=0;c<o.length;c++)for(var f=0;f<s.length;f++,u++)t.props[u]=i[c]?o[c].replace(/&\f/g,s[f]):s[f]+" "+o[c]}}},lt=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function Pe(e,t){switch(qe(e,t)){case 5103:return d+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return d+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return d+e+J+e+S+e+e;case 6828:case 4268:return d+e+S+e+e;case 6165:return d+e+S+"flex-"+e+e;case 5187:return d+e+h(e,/(\w+).+(:[^]+)/,d+"box-$1$2"+S+"flex-$1$2")+e;case 5443:return d+e+S+"flex-item-"+h(e,/flex-|-self/,"")+e;case 4675:return d+e+S+"flex-line-pack"+h(e,/align-content|flex-|-self/,"")+e;case 5548:return d+e+S+h(e,"shrink","negative")+e;case 5292:return d+e+S+h(e,"basis","preferred-size")+e;case 6060:return d+"box-"+h(e,"-grow","")+d+e+S+h(e,"grow","positive")+e;case 4554:return d+h(e,/([^-])(transform)/g,"$1"+d+"$2")+e;case 6187:return h(h(h(e,/(zoom-|grab)/,d+"$1"),/(image-set)/,d+"$1"),e,"")+e;case 5495:case 3959:return h(e,/(image-set\([^]*)/,d+"$1$`$1");case 4968:return h(h(e,/(.+:)(flex-)?(.*)/,d+"box-pack:$3"+S+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+d+e+e;case 4095:case 3583:case 4068:case 2532:return h(e,/(.+)-inline(.+)/,d+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(T(e)-1-t>6)switch(x(e,t+1)){case 109:if(x(e,t+4)!==45)break;case 102:return h(e,/(.+:)(.+)-([^]+)/,"$1"+d+"$2-$3$1"+J+(x(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~ue(e,"stretch")?Pe(h(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(x(e,t+1)!==115)break;case 6444:switch(x(e,T(e)-3-(~ue(e,"!important")&&10))){case 107:return h(e,":",":"+d)+e;case 101:return h(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+d+(x(e,14)===45?"inline-":"")+"box$3$1"+d+"$2$3$1"+S+"$2box$3")+e}break;case 5936:switch(x(e,t+11)){case 114:return d+e+S+h(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return d+e+S+h(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return d+e+S+h(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return d+e+S+e+e}return e}var dt=function(t,r,n,a){if(t.length>-1&&!t.return)switch(t.type){case he:t.return=Pe(t.value,t.length);break;case Ee:return B([L(t,{value:h(t.value,"@","@"+d)})],a);case de:if(t.length)return Ke(t.props,function(i){switch(Ze(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return B([L(t,{props:[h(i,/:(read-\w+)/,":"+J+"$1")]})],a);case"::placeholder":return B([L(t,{props:[h(i,/:(plac\w+)/,":"+d+"input-$1")]}),L(t,{props:[h(i,/:(plac\w+)/,":"+J+"$1")]}),L(t,{props:[h(i,/:(plac\w+)/,S+"input-$1")]})],a)}return""})}},ht=[dt],mt=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(m){var v=m.getAttribute("data-emotion");v.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var a=t.stylisPlugins||ht,i={},o,s=[];o=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(m){for(var v=m.getAttribute("data-emotion").split(" "),_=1;_<v.length;_++)i[v[_]]=!0;s.push(m)});var c,u=[ut,lt];{var f,l=[nt,it(function(m){f.insert(m)})],w=at(u.concat(a,l)),A=function(v){return B(tt(v),w)};c=function(v,_,b,k){f=b,A(v?v+"{"+_.styles+"}":_.styles),k&&(y.inserted[_.name]=!0)}}var y={key:r,sheet:new Le({key:r,container:o,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:i,registered:{},insert:c};return y.sheet.hydrate(s),y};function _t(e){for(var t=0,r,n=0,a=e.length;a>=4;++n,a-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(a){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var gt={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},bt=/[A-Z]|^ms/g,pt=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Te=function(t){return t.charCodeAt(1)===45},ve=function(t){return t!=null&&typeof t!="boolean"},ie=ot(function(e){return Te(e)?e:e.replace(bt,"-$&").toLowerCase()}),ye=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(pt,function(n,a,i){return N={name:a,styles:i,next:N},a})}return gt[t]!==1&&!Te(t)&&typeof r=="number"&&r!==0?r+"px":r};function Q(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var a=r;if(a.anim===1)return N={name:a.name,styles:a.styles,next:N},a.name;var i=r;if(i.styles!==void 0){var o=i.next;if(o!==void 0)for(;o!==void 0;)N={name:o.name,styles:o.styles,next:N},o=o.next;var s=i.styles+";";return s}return vt(e,t,r)}}var c=r;if(t==null)return c;var u=t[c];return u!==void 0?u:c}function vt(e,t,r){var n="";if(Array.isArray(r))for(var a=0;a<r.length;a++)n+=Q(e,t,r[a])+";";else for(var i in r){var o=r[i];if(typeof o!="object"){var s=o;t!=null&&t[s]!==void 0?n+=i+"{"+t[s]+"}":ve(s)&&(n+=ie(i)+":"+ye(i,s)+";")}else if(Array.isArray(o)&&typeof o[0]=="string"&&(t==null||t[o[0]]===void 0))for(var c=0;c<o.length;c++)ve(o[c])&&(n+=ie(i)+":"+ye(i,o[c])+";");else{var u=Q(e,t,o);switch(i){case"animation":case"animationName":{n+=ie(i)+":"+u+";";break}default:n+=i+"{"+u+"}"}}}return n}var xe=/label:\s*([^\s;{]+)\s*(;|$)/g,N;function oe(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,a="";N=void 0;var i=e[0];if(i==null||i.raw===void 0)n=!1,a+=Q(r,t,i);else{var o=i;a+=o[0]}for(var s=1;s<e.length;s++)if(a+=Q(r,t,e[s]),n){var c=i;a+=c[s]}xe.lastIndex=0;for(var u="",f;(f=xe.exec(a))!==null;)u+="-"+f[1];var l=_t(a)+u;return{name:l,styles:a,next:N}}function Me(e,t,r){var n="";return r.split(" ").forEach(function(a){e[a]!==void 0?t.push(e[a]+";"):a&&(n+=a+" ")}),n}var yt=function(t,r,n){var a=t.key+"-"+r.name;t.registered[a]===void 0&&(t.registered[a]=r.styles)},xt=function(t,r,n){yt(t,r);var a=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var i=r;do t.insert(r===i?"."+a:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function we(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function Se(e,t,r){var n=[],a=Me(e,n,r);return n.length<2?r:a+t(n)}var wt=function(t){var r=mt(t);r.sheet.speedy=function(s){this.isSpeedy=s},r.compat=!0;var n=function(){for(var c=arguments.length,u=new Array(c),f=0;f<c;f++)u[f]=arguments[f];var l=oe(u,r.registered,void 0);return xt(r,l),r.key+"-"+l.name},a=function(){for(var c=arguments.length,u=new Array(c),f=0;f<c;f++)u[f]=arguments[f];var l=oe(u,r.registered),w="animation-"+l.name;return we(r,{name:l.name,styles:"@keyframes "+w+"{"+l.styles+"}"}),w},i=function(){for(var c=arguments.length,u=new Array(c),f=0;f<c;f++)u[f]=arguments[f];var l=oe(u,r.registered);we(r,l)},o=function(){for(var c=arguments.length,u=new Array(c),f=0;f<c;f++)u[f]=arguments[f];return Se(r.registered,n,St(u))};return{css:n,cx:o,injectGlobal:i,keyframes:a,hydrate:function(c){c.forEach(function(u){r.inserted[u]=!0})},flush:function(){r.registered={},r.inserted={},r.sheet.flush()},sheet:r.sheet,cache:r,getRegisteredStyles:Me.bind(null,r.registered),merge:Se.bind(null,r.registered,n)}},St=function e(t){for(var r="",n=0;n<t.length;n++){var a=t[n];if(a!=null){var i=void 0;switch(typeof a){case"boolean":break;case"object":{if(Array.isArray(a))i=e(a);else{i="";for(var o in a)a[o]&&o&&(i&&(i+=" "),i+=o)}break}default:i=a}i&&(r&&(r+=" "),r+=i)}}return r},Ne=wt({key:"css"}),ze=Ne.cx,_e=Ne.css;function Ct(e){const{h:t,w:r,m:n,mx:a,my:i,mt:o,mr:s,mb:c,ml:u,p:f,px:l,py:w,pt:A,pr:y,pb:m,pl:v,xGap:_,yGap:b,row:k,flex:W,...j}=e;return{spacers:{h:t,w:r,m:n,mx:a,my:i,mt:o,mr:s,mb:c,ml:u,p:f,px:l,py:w,pt:A,pr:y,pb:m,pl:v,xGap:_,yGap:b,row:k,flex:W,...j},rest:j}}const kt=e=>_e({display:"flex",flexDirection:e.row?"row":"column",height:e.h==="screen"?"100vh":e.h==="full"?"100%":e.h,width:e.w==="screen"?"100vw":e.w==="full"?"100%":e.w,margin:e.m,marginTop:e.mt??e.my,marginBottom:e.mb??e.my,marginLeft:e.ml??e.mx,marginRight:e.mr??e.mx,padding:e.p,paddingTop:e.pt??e.py,paddingBottom:e.pb??e.py,paddingLeft:e.pl??e.px,paddingRight:e.pr??e.px,gap:e.gap,columnGap:e.xGap,rowGap:e.yGap,justifyContent:e.center?"center":e.justifyContent,alignItems:e.center?"center":e.alignItems,alignSelf:e.alignSelf,borderWidth:e.borderWidth,borderBottomWidth:e.borderBottomWidth,borderColor:e.borderColor,borderRadius:e.borderRadius,zIndex:e.zIndex,overflow:e.overflow,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,flex:e.flex===!0?1:e.flex,flexWrap:e.flexWrap,flexGrow:e.flexGrow,flexShrink:e.flexShrink,flexBasis:e.flexBasis,backgroundColor:e.backgroundColor,...e.absoluteFill&&{position:"absolute",top:0,right:0,bottom:0,left:0}}),We=D.forwardRef(({className:e,children:t,...r},n)=>{const{spacers:a,rest:i}=Ct(r),o=D.useMemo(()=>kt(a),[a]);return C.jsx("div",{ref:n,className:ze(o,e),...i,children:t})});We.displayName="Box";const $t=e=>{let t;e.center?t="center":e.left?t="left":e.right&&(t="right");let r;return e.uppercase?r="uppercase":e.lowercase?r="lowercase":e.capitalize&&(r="capitalize"),_e({marginTop:e.mt,marginBottom:e.mb,flex:e.flex,cursor:e.cursor,wordBreak:e.wordBreak,whiteSpace:e.whiteSpace,textOverflow:e.textOverflow,textDecoration:e.decoration,textAlign:t,textTransform:r,color:e.color})},Et="_primary_13825_8",At="_secondary_13825_12",Ot="_tertiary_13825_16",Rt="_positive_13825_20",jt="_negative_13825_24",Pt="_warning_13825_28",Tt="_accent_13825_32",Mt="_inverse_13825_36",Nt="_text_13825_111",zt="_regular_13825_117",Wt="_medium_13825_121",Bt="_semibold_13825_125",Gt="_bold_13825_129",K={primary:Et,secondary:At,tertiary:Ot,positive:Rt,negative:jt,warning:Pt,accent:Tt,inverse:Mt,"title-1":"_title-1_13825_41","title-2":"_title-2_13825_51","title-3":"_title-3_13825_61","headline-1":"_headline-1_13825_76","headline-2":"_headline-2_13825_81","headline-3":"_headline-3_13825_86","body-1":"_body-1_13825_91","body-2":"_body-2_13825_96","caption-1":"_caption-1_13825_101","caption-2":"_caption-2_13825_106",text:Nt,regular:zt,medium:Wt,semibold:Bt,bold:Gt},ee=D.forwardRef((e,t)=>{const{children:r,className:n,variant:a="body-1",fontWeight:i="medium",tag:o="p",colorName:s="primary",style:c,clickOpacity:u=.5,opacityDuration:f=200,onClick:l,...w}=e,[A,y]=D.useState(!1),m=!!l,v=()=>m&&y(!0),_=()=>m&&y(!1),b=o,k=m?_e({opacity:A?u:1,transition:`opacity ${f}ms ease`}):"";return C.jsx(b,{ref:t,...w,className:ze(K.text,K[a],K[i],K[s],$t(e),k,n),style:c,onClick:l,onMouseDown:v,onMouseUp:_,onMouseLeave:_,onTouchStart:v,onTouchEnd:_,role:m?"button":void 0,tabIndex:m?0:void 0,children:r})});ee.displayName="Text";function It(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var se={exports:{}};/*!
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const D=require("react/jsx-runtime"),T=require("react");function Co(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 J=Co(T);function Vo(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 Mo(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 Do=(function(){function t(n){var i=this;this._insertTag=function(s){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(s,o),i.tags.push(s)},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(Mo(this));var s=this.tags[this.tags.length-1];if(this.isSpeedy){var o=Vo(s);try{o.insertRule(i,o.cssRules.length)}catch{}}else s.appendChild(document.createTextNode(i));this.ctr++},e.flush=function(){this.tags.forEach(function(i){var s;return(s=i.parentNode)==null?void 0:s.removeChild(i)}),this.tags=[],this.ctr=0},t})(),N="-ms-",Te="-moz-",V="-webkit-",Ls="comm",Vn="rule",Mn="decl",Eo="@import",Bs="@keyframes",_o="@layer",Ro=Math.abs,De=String.fromCharCode,ko=Object.assign;function Lo(t,e){return j(t,0)^45?(((e<<2^j(t,0))<<2^j(t,1))<<2^j(t,2))<<2^j(t,3):0}function Os(t){return t.trim()}function Bo(t,e){return(t=e.exec(t))?t[0]:t}function M(t,e,n){return t.replace(e,n)}function nn(t,e){return t.indexOf(e)}function j(t,e){return t.charCodeAt(e)|0}function Ht(t,e,n){return t.slice(e,n)}function it(t){return t.length}function Dn(t){return t.length}function le(t,e){return e.push(t),t}function Oo(t,e){return t.map(e).join("")}var Ee=1,Rt=1,Is=0,z=0,B=0,Bt="";function _e(t,e,n,i,s,o,r){return{value:t,root:e,parent:n,type:i,props:s,children:o,line:Ee,column:Rt,length:r,return:""}}function Nt(t,e){return ko(_e("",null,null,"",null,null,0),t,{length:-t.length},e)}function Io(){return B}function jo(){return B=z>0?j(Bt,--z):0,Rt--,B===10&&(Rt=1,Ee--),B}function G(){return B=z<Is?j(Bt,z++):0,Rt++,B===10&&(Rt=1,Ee++),B}function st(){return j(Bt,z)}function me(){return z}function se(t,e){return Ht(Bt,t,e)}function Yt(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 js(t){return Ee=Rt=1,Is=it(Bt=t),z=0,[]}function Fs(t){return Bt="",t}function pe(t){return Os(se(z-1,sn(t===91?t+2:t===40?t+1:t)))}function Fo(t){for(;(B=st())&&B<33;)G();return Yt(t)>2||Yt(B)>3?"":" "}function No(t,e){for(;--e&&G()&&!(B<48||B>102||B>57&&B<65||B>70&&B<97););return se(t,me()+(e<6&&st()==32&&G()==32))}function sn(t){for(;G();)switch(B){case t:return z;case 34:case 39:t!==34&&t!==39&&sn(B);break;case 40:t===41&&sn(t);break;case 92:G();break}return z}function $o(t,e){for(;G()&&t+B!==57;)if(t+B===84&&st()===47)break;return"/*"+se(e,z-1)+"*"+De(t===47?t:G())}function Wo(t){for(;!Yt(st());)G();return se(t,z)}function Uo(t){return Fs(ge("",null,null,null,[""],t=js(t),0,[0],t))}function ge(t,e,n,i,s,o,r,a,c){for(var u=0,l=0,h=r,f=0,d=0,m=0,g=1,x=1,p=1,y=0,v="",P=s,b=o,A=i,S=v;x;)switch(m=y,y=G()){case 40:if(m!=108&&j(S,h-1)==58){nn(S+=M(pe(y),"&","&\f"),"&\f")!=-1&&(p=-1);break}case 34:case 39:case 91:S+=pe(y);break;case 9:case 10:case 13:case 32:S+=Fo(m);break;case 92:S+=No(me()-1,7);continue;case 47:switch(st()){case 42:case 47:le(Ko($o(G(),me()),e,n),c);break;default:S+="/"}break;case 123*g:a[u++]=it(S)*p;case 125*g:case 59:case 0:switch(y){case 0:case 125:x=0;case 59+l:p==-1&&(S=M(S,/\f/g,"")),d>0&&it(S)-h&&le(d>32?fi(S+";",i,n,h-1):fi(M(S," ","")+";",i,n,h-2),c);break;case 59:S+=";";default:if(le(A=hi(S,e,n,u,l,s,a,v,P=[],b=[],h),o),y===123)if(l===0)ge(S,e,A,A,P,o,h,a,b);else switch(f===99&&j(S,3)===110?100:f){case 100:case 108:case 109:case 115:ge(t,A,A,i&&le(hi(t,A,A,0,0,s,a,v,s,P=[],h),b),s,b,h,a,i?P:b);break;default:ge(S,A,A,A,[""],b,0,a,b)}}u=l=d=0,g=p=1,v=S="",h=r;break;case 58:h=1+it(S),d=m;default:if(g<1){if(y==123)--g;else if(y==125&&g++==0&&jo()==125)continue}switch(S+=De(y),y*g){case 38:p=l>0?1:(S+="\f",-1);break;case 44:a[u++]=(it(S)-1)*p,p=1;break;case 64:st()===45&&(S+=pe(G())),f=st(),l=h=it(v=S+=Wo(me())),y++;break;case 45:m===45&&it(S)==2&&(g=0)}}return o}function hi(t,e,n,i,s,o,r,a,c,u,l){for(var h=s-1,f=s===0?o:[""],d=Dn(f),m=0,g=0,x=0;m<i;++m)for(var p=0,y=Ht(t,h+1,h=Ro(g=r[m])),v=t;p<d;++p)(v=Os(g>0?f[p]+" "+y:M(y,/&\f/g,f[p])))&&(c[x++]=v);return _e(t,e,n,s===0?Vn:a,c,u,l)}function Ko(t,e,n){return _e(t,e,n,Ls,De(Io()),Ht(t,2,-2),0)}function fi(t,e,n,i){return _e(t,e,n,Mn,Ht(t,0,i),Ht(t,i+1,-1),i)}function Et(t,e){for(var n="",i=Dn(t),s=0;s<i;s++)n+=e(t[s],s,t,e)||"";return n}function zo(t,e,n,i){switch(t.type){case _o:if(t.children.length)break;case Eo:case Mn:return t.return=t.return||t.value;case Ls:return"";case Bs:return t.return=t.value+"{"+Et(t.children,i)+"}";case Vn:t.value=t.props.join(",")}return it(n=Et(t.children,i))?t.return=t.value+"{"+n+"}":""}function Go(t){var e=Dn(t);return function(n,i,s,o){for(var r="",a=0;a<e;a++)r+=t[a](n,i,s,o)||"";return r}}function Ho(t){return function(e){e.root||(e=e.return)&&t(e)}}function Yo(t){var e=Object.create(null);return function(n){return e[n]===void 0&&(e[n]=t(n)),e[n]}}var Xo=function(e,n,i){for(var s=0,o=0;s=o,o=st(),s===38&&o===12&&(n[i]=1),!Yt(o);)G();return se(e,z)},qo=function(e,n){var i=-1,s=44;do switch(Yt(s)){case 0:s===38&&st()===12&&(n[i]=1),e[i]+=Xo(z-1,n,i);break;case 2:e[i]+=pe(s);break;case 4:if(s===44){e[++i]=st()===58?"&\f":"",n[i]=e[i].length;break}default:e[i]+=De(s)}while(s=G());return e},Zo=function(e,n){return Fs(qo(js(e),n))},di=new WeakMap,Jo=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var n=e.value,i=e.parent,s=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&&!di.get(i))&&!s){di.set(e,!0);for(var o=[],r=Zo(n,o),a=i.props,c=0,u=0;c<r.length;c++)for(var l=0;l<a.length;l++,u++)e.props[u]=o[c]?r[c].replace(/&\f/g,a[l]):a[l]+" "+r[c]}}},Qo=function(e){if(e.type==="decl"){var n=e.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(e.return="",e.value="")}};function Ns(t,e){switch(Lo(t,e)){case 5103:return V+"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 V+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return V+t+Te+t+N+t+t;case 6828:case 4268:return V+t+N+t+t;case 6165:return V+t+N+"flex-"+t+t;case 5187:return V+t+M(t,/(\w+).+(:[^]+)/,V+"box-$1$2"+N+"flex-$1$2")+t;case 5443:return V+t+N+"flex-item-"+M(t,/flex-|-self/,"")+t;case 4675:return V+t+N+"flex-line-pack"+M(t,/align-content|flex-|-self/,"")+t;case 5548:return V+t+N+M(t,"shrink","negative")+t;case 5292:return V+t+N+M(t,"basis","preferred-size")+t;case 6060:return V+"box-"+M(t,"-grow","")+V+t+N+M(t,"grow","positive")+t;case 4554:return V+M(t,/([^-])(transform)/g,"$1"+V+"$2")+t;case 6187:return M(M(M(t,/(zoom-|grab)/,V+"$1"),/(image-set)/,V+"$1"),t,"")+t;case 5495:case 3959:return M(t,/(image-set\([^]*)/,V+"$1$`$1");case 4968:return M(M(t,/(.+:)(flex-)?(.*)/,V+"box-pack:$3"+N+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+V+t+t;case 4095:case 3583:case 4068:case 2532:return M(t,/(.+)-inline(.+)/,V+"$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(it(t)-1-e>6)switch(j(t,e+1)){case 109:if(j(t,e+4)!==45)break;case 102:return M(t,/(.+:)(.+)-([^]+)/,"$1"+V+"$2-$3$1"+Te+(j(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~nn(t,"stretch")?Ns(M(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(j(t,e+1)!==115)break;case 6444:switch(j(t,it(t)-3-(~nn(t,"!important")&&10))){case 107:return M(t,":",":"+V)+t;case 101:return M(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+V+(j(t,14)===45?"inline-":"")+"box$3$1"+V+"$2$3$1"+N+"$2box$3")+t}break;case 5936:switch(j(t,e+11)){case 114:return V+t+N+M(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return V+t+N+M(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return V+t+N+M(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return V+t+N+t+t}return t}var ta=function(e,n,i,s){if(e.length>-1&&!e.return)switch(e.type){case Mn:e.return=Ns(e.value,e.length);break;case Bs:return Et([Nt(e,{value:M(e.value,"@","@"+V)})],s);case Vn:if(e.length)return Oo(e.props,function(o){switch(Bo(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Et([Nt(e,{props:[M(o,/:(read-\w+)/,":"+Te+"$1")]})],s);case"::placeholder":return Et([Nt(e,{props:[M(o,/:(plac\w+)/,":"+V+"input-$1")]}),Nt(e,{props:[M(o,/:(plac\w+)/,":"+Te+"$1")]}),Nt(e,{props:[M(o,/:(plac\w+)/,N+"input-$1")]})],s)}return""})}},ea=[ta],na=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 x=g.getAttribute("data-emotion");x.indexOf(" ")!==-1&&(document.head.appendChild(g),g.setAttribute("data-s",""))})}var s=e.stylisPlugins||ea,o={},r,a=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(g){for(var x=g.getAttribute("data-emotion").split(" "),p=1;p<x.length;p++)o[x[p]]=!0;a.push(g)});var c,u=[Jo,Qo];{var l,h=[zo,Ho(function(g){l.insert(g)})],f=Go(u.concat(s,h)),d=function(x){return Et(Uo(x),f)};c=function(x,p,y,v){l=y,d(x?x+"{"+p.styles+"}":p.styles),v&&(m.inserted[p.name]=!0)}}var m={key:n,sheet:new Do({key:n,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:o,registered:{},insert:c};return m.sheet.hydrate(a),m};function ia(t){for(var e=0,n,i=0,s=t.length;s>=4;++i,s-=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(s){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 sa={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},ra=/[A-Z]|^ms/g,oa=/_EMO_([^_]+?)_([^]*?)_EMO_/g,$s=function(e){return e.charCodeAt(1)===45},mi=function(e){return e!=null&&typeof e!="boolean"},Oe=Yo(function(t){return $s(t)?t:t.replace(ra,"-$&").toLowerCase()}),pi=function(e,n){switch(e){case"animation":case"animationName":if(typeof n=="string")return n.replace(oa,function(i,s,o){return ut={name:s,styles:o,next:ut},s})}return sa[e]!==1&&!$s(e)&&typeof n=="number"&&n!==0?n+"px":n};function we(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 s=n;if(s.anim===1)return ut={name:s.name,styles:s.styles,next:ut},s.name;var o=n;if(o.styles!==void 0){var r=o.next;if(r!==void 0)for(;r!==void 0;)ut={name:r.name,styles:r.styles,next:ut},r=r.next;var a=o.styles+";";return a}return aa(t,e,n)}}var c=n;if(e==null)return c;var u=e[c];return u!==void 0?u:c}function aa(t,e,n){var i="";if(Array.isArray(n))for(var s=0;s<n.length;s++)i+=we(t,e,n[s])+";";else for(var o in n){var r=n[o];if(typeof r!="object"){var a=r;e!=null&&e[a]!==void 0?i+=o+"{"+e[a]+"}":mi(a)&&(i+=Oe(o)+":"+pi(o,a)+";")}else if(Array.isArray(r)&&typeof r[0]=="string"&&(e==null||e[r[0]]===void 0))for(var c=0;c<r.length;c++)mi(r[c])&&(i+=Oe(o)+":"+pi(o,r[c])+";");else{var u=we(t,e,r);switch(o){case"animation":case"animationName":{i+=Oe(o)+":"+u+";";break}default:i+=o+"{"+u+"}"}}}return i}var gi=/label:\s*([^\s;{]+)\s*(;|$)/g,ut;function Ie(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,s="";ut=void 0;var o=t[0];if(o==null||o.raw===void 0)i=!1,s+=we(n,e,o);else{var r=o;s+=r[0]}for(var a=1;a<t.length;a++)if(s+=we(n,e,t[a]),i){var c=o;s+=c[a]}gi.lastIndex=0;for(var u="",l;(l=gi.exec(s))!==null;)u+="-"+l[1];var h=ia(s)+u;return{name:h,styles:s,next:ut}}function Ws(t,e,n){var i="";return n.split(" ").forEach(function(s){t[s]!==void 0?e.push(t[s]+";"):s&&(i+=s+" ")}),i}var ca=function(e,n,i){var s=e.key+"-"+n.name;e.registered[s]===void 0&&(e.registered[s]=n.styles)},la=function(e,n,i){ca(e,n);var s=e.key+"-"+n.name;if(e.inserted[n.name]===void 0){var o=n;do e.insert(n===o?"."+s:"",o,e.sheet,!0),o=o.next;while(o!==void 0)}};function yi(t,e){if(t.inserted[e.name]===void 0)return t.insert("",e,t.sheet,!0)}function vi(t,e,n){var i=[],s=Ws(t,i,n);return i.length<2?n:s+e(i)}var ua=function(e){var n=na(e);n.sheet.speedy=function(a){this.isSpeedy=a},n.compat=!0;var i=function(){for(var c=arguments.length,u=new Array(c),l=0;l<c;l++)u[l]=arguments[l];var h=Ie(u,n.registered,void 0);return la(n,h),n.key+"-"+h.name},s=function(){for(var c=arguments.length,u=new Array(c),l=0;l<c;l++)u[l]=arguments[l];var h=Ie(u,n.registered),f="animation-"+h.name;return yi(n,{name:h.name,styles:"@keyframes "+f+"{"+h.styles+"}"}),f},o=function(){for(var c=arguments.length,u=new Array(c),l=0;l<c;l++)u[l]=arguments[l];var h=Ie(u,n.registered);yi(n,h)},r=function(){for(var c=arguments.length,u=new Array(c),l=0;l<c;l++)u[l]=arguments[l];return vi(n.registered,i,ha(u))};return{css:i,cx:r,injectGlobal:o,keyframes:s,hydrate:function(c){c.forEach(function(u){n.inserted[u]=!0})},flush:function(){n.registered={},n.inserted={},n.sheet.flush()},sheet:n.sheet,cache:n,getRegisteredStyles:Ws.bind(null,n.registered),merge:vi.bind(null,n.registered,i)}},ha=function t(e){for(var n="",i=0;i<e.length;i++){var s=e[i];if(s!=null){var o=void 0;switch(typeof s){case"boolean":break;case"object":{if(Array.isArray(s))o=t(s);else{o="";for(var r in s)s[r]&&r&&(o&&(o+=" "),o+=r)}break}default:o=s}o&&(n&&(n+=" "),n+=o)}}return n},Us=ua({key:"css"}),Xt=Us.cx,U=Us.css;function fa(t){const{h:e,w:n,m:i,mx:s,my:o,mt:r,mr:a,mb:c,ml:u,p:l,px:h,py:f,pt:d,pr:m,pb:g,pl:x,xGap:p,yGap:y,row:v,flex:P,...b}=t;return{spacers:{h:e,w:n,m:i,mx:s,my:o,mt:r,mr:a,mb:c,ml:u,p:l,px:h,py:f,pt:d,pr:m,pb:g,pl:x,xGap:p,yGap:y,row:v,flex:P,...b},rest:b}}const da=t=>U({display:"flex",flexDirection:t.row?"row":"column",height:t.h==="screen"?"100vh":t.h==="full"?"100%":t.h,width:t.w==="screen"?"100vw":t.w==="full"?"100%":t.w,margin:t.m,marginTop:t.mt??t.my,marginBottom:t.mb??t.my,marginLeft:t.ml??t.mx,marginRight:t.mr??t.mx,padding:t.p,paddingTop:t.pt??t.py,paddingBottom:t.pb??t.py,paddingLeft:t.pl??t.px,paddingRight:t.pr??t.px,gap:t.gap,columnGap:t.xGap,rowGap:t.yGap,justifyContent:t.center?"center":t.justifyContent,alignItems:t.center?"center":t.alignItems,alignSelf:t.alignSelf,borderWidth:t.borderWidth,borderBottomWidth:t.borderBottomWidth,borderColor:t.borderColor,borderRadius:t.borderRadius,zIndex:t.zIndex,overflow:t.overflow,minWidth:t.minWidth,minHeight:t.minHeight,maxWidth:t.maxWidth,maxHeight:t.maxHeight,flex:t.flex===!0?1:t.flex,flexWrap:t.flexWrap,flexGrow:t.flexGrow,flexShrink:t.flexShrink,flexBasis:t.flexBasis,backgroundColor:t.backgroundColor,...t.absoluteFill&&{position:"absolute",top:0,right:0,bottom:0,left:0}}),Se=T.forwardRef(({className:t,children:e,...n},i)=>{const{spacers:s,rest:o}=fa(n),r=T.useMemo(()=>da(s),[s]);return D.jsx("div",{ref:i,className:Xt(r,t),...o,children:e})});Se.displayName="Box";const Ks=T.createContext({});function ma(t){const e=T.useRef(null);return e.current===null&&(e.current=t()),e.current}const En=typeof window<"u",pa=En?T.useLayoutEffect:T.useEffect,_n=T.createContext(null);function Rn(t,e){t.indexOf(e)===-1&&t.push(e)}function kn(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const ot=(t,e,n)=>n>e?e:n<t?t:n;function rn(t,e){return e?`${t}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${e}`:t}let Ot=()=>{},at=()=>{};process.env.NODE_ENV!=="production"&&(Ot=(t,e,n)=>{!t&&typeof console<"u"&&console.warn(rn(e,n))},at=(t,e,n)=>{if(!t)throw new Error(rn(e,n))});const ct={},zs=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t);function Gs(t){return typeof t=="object"&&t!==null}const Hs=t=>/^0[^.\s]+$/u.test(t);function Ln(t){let e;return()=>(e===void 0&&(e=t()),e)}const tt=t=>t,ga=(t,e)=>n=>e(t(n)),re=(...t)=>t.reduce(ga),qt=(t,e,n)=>{const i=e-t;return i===0?1:(n-t)/i};class Bn{constructor(){this.subscriptions=[]}add(e){return Rn(this.subscriptions,e),()=>kn(this.subscriptions,e)}notify(e,n,i){const s=this.subscriptions.length;if(s)if(s===1)this.subscriptions[0](e,n,i);else for(let o=0;o<s;o++){const r=this.subscriptions[o];r&&r(e,n,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const nt=t=>t*1e3,Q=t=>t/1e3;function Ys(t,e){return e?t*(1e3/e):0}const xi=new Set;function On(t,e,n){t||xi.has(e)||(console.warn(rn(e,n)),xi.add(e))}const Xs=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,ya=1e-7,va=12;function xa(t,e,n,i,s){let o,r,a=0;do r=e+(n-e)/2,o=Xs(r,i,s)-t,o>0?n=r:e=r;while(Math.abs(o)>ya&&++a<va);return r}function oe(t,e,n,i){if(t===e&&n===i)return tt;const s=o=>xa(o,0,1,t,n);return o=>o===0||o===1?o:Xs(s(o),e,i)}const qs=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,Zs=t=>e=>1-t(1-e),Js=oe(.33,1.53,.69,.99),In=Zs(Js),Qs=qs(In),tr=t=>(t*=2)<1?.5*In(t):.5*(2-Math.pow(2,-10*(t-1))),jn=t=>1-Math.sin(Math.acos(t)),er=Zs(jn),nr=qs(jn),ba=oe(.42,0,1,1),Ta=oe(0,0,.58,1),ir=oe(.42,0,.58,1),wa=t=>Array.isArray(t)&&typeof t[0]!="number",sr=t=>Array.isArray(t)&&typeof t[0]=="number",bi={linear:tt,easeIn:ba,easeInOut:ir,easeOut:Ta,circIn:jn,circInOut:nr,circOut:er,backIn:In,backInOut:Qs,backOut:Js,anticipate:tr},Sa=t=>typeof t=="string",Ti=t=>{if(sr(t)){at(t.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[e,n,i,s]=t;return oe(e,n,i,s)}else if(Sa(t))return at(bi[t]!==void 0,`Invalid easing type '${t}'`,"invalid-easing-type"),bi[t];return t},ue=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function Pa(t,e){let n=new Set,i=new Set,s=!1,o=!1;const r=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function c(l){r.has(l)&&(u.schedule(l),t()),l(a)}const u={schedule:(l,h=!1,f=!1)=>{const m=f&&s?n:i;return h&&r.add(l),m.has(l)||m.add(l),l},cancel:l=>{i.delete(l),r.delete(l)},process:l=>{if(a=l,s){o=!0;return}s=!0,[n,i]=[i,n],n.forEach(c),n.clear(),s=!1,o&&(o=!1,u.process(l))}};return u}const Aa=40;function rr(t,e){let n=!1,i=!0;const s={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,r=ue.reduce((v,P)=>(v[P]=Pa(o),v),{}),{setup:a,read:c,resolveKeyframes:u,preUpdate:l,update:h,preRender:f,render:d,postRender:m}=r,g=()=>{const v=ct.useManualTiming?s.timestamp:performance.now();n=!1,ct.useManualTiming||(s.delta=i?1e3/60:Math.max(Math.min(v-s.timestamp,Aa),1)),s.timestamp=v,s.isProcessing=!0,a.process(s),c.process(s),u.process(s),l.process(s),h.process(s),f.process(s),d.process(s),m.process(s),s.isProcessing=!1,n&&e&&(i=!1,t(g))},x=()=>{n=!0,i=!0,s.isProcessing||t(g)};return{schedule:ue.reduce((v,P)=>{const b=r[P];return v[P]=(A,S=!1,C=!1)=>(n||x(),b.schedule(A,S,C)),v},{}),cancel:v=>{for(let P=0;P<ue.length;P++)r[ue[P]].cancel(v)},state:s,steps:r}}const{schedule:E,cancel:ht,state:I,steps:je}=rr(typeof requestAnimationFrame<"u"?requestAnimationFrame:tt,!0);let ye;function Ca(){ye=void 0}const K={now:()=>(ye===void 0&&K.set(I.isProcessing||ct.useManualTiming?I.timestamp:performance.now()),ye),set:t=>{ye=t,queueMicrotask(Ca)}},or=t=>e=>typeof e=="string"&&e.startsWith(t),Fn=or("--"),Va=or("var(--"),Nn=t=>Va(t)?Ma.test(t.split("/*")[0].trim()):!1,Ma=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,It={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},Zt={...It,transform:t=>ot(0,1,t)},he={...It,default:1},Ut=t=>Math.round(t*1e5)/1e5,$n=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Da(t){return t==null}const Ea=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Wn=(t,e)=>n=>!!(typeof n=="string"&&Ea.test(n)&&n.startsWith(t)||e&&!Da(n)&&Object.prototype.hasOwnProperty.call(n,e)),ar=(t,e,n)=>i=>{if(typeof i!="string")return i;const[s,o,r,a]=i.match($n);return{[t]:parseFloat(s),[e]:parseFloat(o),[n]:parseFloat(r),alpha:a!==void 0?parseFloat(a):1}},_a=t=>ot(0,255,t),Fe={...It,transform:t=>Math.round(_a(t))},yt={test:Wn("rgb","red"),parse:ar("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:i=1})=>"rgba("+Fe.transform(t)+", "+Fe.transform(e)+", "+Fe.transform(n)+", "+Ut(Zt.transform(i))+")"};function Ra(t){let e="",n="",i="",s="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),i=t.substring(5,7),s=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),i=t.substring(3,4),s=t.substring(4,5),e+=e,n+=n,i+=i,s+=s),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(i,16),alpha:s?parseInt(s,16)/255:1}}const on={test:Wn("#"),parse:Ra,transform:yt.transform},ae=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),lt=ae("deg"),rt=ae("%"),w=ae("px"),ka=ae("vh"),La=ae("vw"),wi={...rt,parse:t=>rt.parse(t)/100,transform:t=>rt.transform(t*100)},Pt={test:Wn("hsl","hue"),parse:ar("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:i=1})=>"hsla("+Math.round(t)+", "+rt.transform(Ut(e))+", "+rt.transform(Ut(n))+", "+Ut(Zt.transform(i))+")"},L={test:t=>yt.test(t)||on.test(t)||Pt.test(t),parse:t=>yt.test(t)?yt.parse(t):Pt.test(t)?Pt.parse(t):on.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?yt.transform(t):Pt.transform(t),getAnimatableNone:t=>{const e=L.parse(t);return e.alpha=0,L.transform(e)}},Ba=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Oa(t){return isNaN(t)&&typeof t=="string"&&(t.match($n)?.length||0)+(t.match(Ba)?.length||0)>0}const cr="number",lr="color",Ia="var",ja="var(",Si="${}",Fa=/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 Jt(t){const e=t.toString(),n=[],i={color:[],number:[],var:[]},s=[];let o=0;const a=e.replace(Fa,c=>(L.test(c)?(i.color.push(o),s.push(lr),n.push(L.parse(c))):c.startsWith(ja)?(i.var.push(o),s.push(Ia),n.push(c)):(i.number.push(o),s.push(cr),n.push(parseFloat(c))),++o,Si)).split(Si);return{values:n,split:a,indexes:i,types:s}}function ur(t){return Jt(t).values}function hr(t){const{split:e,types:n}=Jt(t),i=e.length;return s=>{let o="";for(let r=0;r<i;r++)if(o+=e[r],s[r]!==void 0){const a=n[r];a===cr?o+=Ut(s[r]):a===lr?o+=L.transform(s[r]):o+=s[r]}return o}}const Na=t=>typeof t=="number"?0:L.test(t)?L.getAnimatableNone(t):t;function $a(t){const e=ur(t);return hr(t)(e.map(Na))}const ft={test:Oa,parse:ur,createTransformer:hr,getAnimatableNone:$a};function Ne(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 Wa({hue:t,saturation:e,lightness:n,alpha:i}){t/=360,e/=100,n/=100;let s=0,o=0,r=0;if(!e)s=o=r=n;else{const a=n<.5?n*(1+e):n+e-n*e,c=2*n-a;s=Ne(c,a,t+1/3),o=Ne(c,a,t),r=Ne(c,a,t-1/3)}return{red:Math.round(s*255),green:Math.round(o*255),blue:Math.round(r*255),alpha:i}}function Pe(t,e){return n=>n>0?e:t}const R=(t,e,n)=>t+(e-t)*n,$e=(t,e,n)=>{const i=t*t,s=n*(e*e-i)+i;return s<0?0:Math.sqrt(s)},Ua=[on,yt,Pt],Ka=t=>Ua.find(e=>e.test(t));function Pi(t){const e=Ka(t);if(Ot(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!e)return!1;let n=e.parse(t);return e===Pt&&(n=Wa(n)),n}const Ai=(t,e)=>{const n=Pi(t),i=Pi(e);if(!n||!i)return Pe(t,e);const s={...n};return o=>(s.red=$e(n.red,i.red,o),s.green=$e(n.green,i.green,o),s.blue=$e(n.blue,i.blue,o),s.alpha=R(n.alpha,i.alpha,o),yt.transform(s))},an=new Set(["none","hidden"]);function za(t,e){return an.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function Ga(t,e){return n=>R(t,e,n)}function Un(t){return typeof t=="number"?Ga:typeof t=="string"?Nn(t)?Pe:L.test(t)?Ai:Xa:Array.isArray(t)?fr:typeof t=="object"?L.test(t)?Ai:Ha:Pe}function fr(t,e){const n=[...t],i=n.length,s=t.map((o,r)=>Un(o)(o,e[r]));return o=>{for(let r=0;r<i;r++)n[r]=s[r](o);return n}}function Ha(t,e){const n={...t,...e},i={};for(const s in n)t[s]!==void 0&&e[s]!==void 0&&(i[s]=Un(t[s])(t[s],e[s]));return s=>{for(const o in i)n[o]=i[o](s);return n}}function Ya(t,e){const n=[],i={color:0,var:0,number:0};for(let s=0;s<e.values.length;s++){const o=e.types[s],r=t.indexes[o][i[o]],a=t.values[r]??0;n[s]=a,i[o]++}return n}const Xa=(t,e)=>{const n=ft.createTransformer(e),i=Jt(t),s=Jt(e);return i.indexes.var.length===s.indexes.var.length&&i.indexes.color.length===s.indexes.color.length&&i.indexes.number.length>=s.indexes.number.length?an.has(t)&&!s.values.length||an.has(e)&&!i.values.length?za(t,e):re(fr(Ya(i,s),s.values),n):(Ot(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),Pe(t,e))};function dr(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?R(t,e,n):Un(t)(t,e)}const qa=t=>{const e=({timestamp:n})=>t(n);return{start:(n=!0)=>E.update(e,n),stop:()=>ht(e),now:()=>I.isProcessing?I.timestamp:K.now()}},mr=(t,e,n=10)=>{let i="";const s=Math.max(Math.round(e/n),2);for(let o=0;o<s;o++)i+=Math.round(t(o/(s-1))*1e4)/1e4+", ";return`linear(${i.substring(0,i.length-2)})`},Ae=2e4;function Kn(t){let e=0;const n=50;let i=t.next(e);for(;!i.done&&e<Ae;)e+=n,i=t.next(e);return e>=Ae?1/0:e}function Za(t,e=100,n){const i=n({...t,keyframes:[0,e]}),s=Math.min(Kn(i),Ae);return{type:"keyframes",ease:o=>i.next(s*o).value/e,duration:Q(s)}}const Ja=5;function pr(t,e,n){const i=Math.max(e-Ja,0);return Ys(n-t(i),e-i)}const _={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},We=.001;function Qa({duration:t=_.duration,bounce:e=_.bounce,velocity:n=_.velocity,mass:i=_.mass}){let s,o;Ot(t<=nt(_.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let r=1-e;r=ot(_.minDamping,_.maxDamping,r),t=ot(_.minDuration,_.maxDuration,Q(t)),r<1?(s=u=>{const l=u*r,h=l*t,f=l-n,d=cn(u,r),m=Math.exp(-h);return We-f/d*m},o=u=>{const h=u*r*t,f=h*n+n,d=Math.pow(r,2)*Math.pow(u,2)*t,m=Math.exp(-h),g=cn(Math.pow(u,2),r);return(-s(u)+We>0?-1:1)*((f-d)*m)/g}):(s=u=>{const l=Math.exp(-u*t),h=(u-n)*t+1;return-We+l*h},o=u=>{const l=Math.exp(-u*t),h=(n-u)*(t*t);return l*h});const a=5/t,c=ec(s,o,a);if(t=nt(t),isNaN(c))return{stiffness:_.stiffness,damping:_.damping,duration:t};{const u=Math.pow(c,2)*i;return{stiffness:u,damping:r*2*Math.sqrt(i*u),duration:t}}}const tc=12;function ec(t,e,n){let i=n;for(let s=1;s<tc;s++)i=i-t(i)/e(i);return i}function cn(t,e){return t*Math.sqrt(1-e*e)}const nc=["duration","bounce"],ic=["stiffness","damping","mass"];function Ci(t,e){return e.some(n=>t[n]!==void 0)}function sc(t){let e={velocity:_.velocity,stiffness:_.stiffness,damping:_.damping,mass:_.mass,isResolvedFromDuration:!1,...t};if(!Ci(t,ic)&&Ci(t,nc))if(t.visualDuration){const n=t.visualDuration,i=2*Math.PI/(n*1.2),s=i*i,o=2*ot(.05,1,1-(t.bounce||0))*Math.sqrt(s);e={...e,mass:_.mass,stiffness:s,damping:o}}else{const n=Qa(t);e={...e,...n,mass:_.mass},e.isResolvedFromDuration=!0}return e}function Ce(t=_.visualDuration,e=_.bounce){const n=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:i,restDelta:s}=n;const o=n.keyframes[0],r=n.keyframes[n.keyframes.length-1],a={done:!1,value:o},{stiffness:c,damping:u,mass:l,duration:h,velocity:f,isResolvedFromDuration:d}=sc({...n,velocity:-Q(n.velocity||0)}),m=f||0,g=u/(2*Math.sqrt(c*l)),x=r-o,p=Q(Math.sqrt(c/l)),y=Math.abs(x)<5;i||(i=y?_.restSpeed.granular:_.restSpeed.default),s||(s=y?_.restDelta.granular:_.restDelta.default);let v;if(g<1){const b=cn(p,g);v=A=>{const S=Math.exp(-g*p*A);return r-S*((m+g*p*x)/b*Math.sin(b*A)+x*Math.cos(b*A))}}else if(g===1)v=b=>r-Math.exp(-p*b)*(x+(m+p*x)*b);else{const b=p*Math.sqrt(g*g-1);v=A=>{const S=Math.exp(-g*p*A),C=Math.min(b*A,300);return r-S*((m+g*p*x)*Math.sinh(C)+b*x*Math.cosh(C))/b}}const P={calculatedDuration:d&&h||null,next:b=>{const A=v(b);if(d)a.done=b>=h;else{let S=b===0?m:0;g<1&&(S=b===0?nt(m):pr(v,b,A));const C=Math.abs(S)<=i,F=Math.abs(r-A)<=s;a.done=C&&F}return a.value=a.done?r:A,a},toString:()=>{const b=Math.min(Kn(P),Ae),A=mr(S=>P.next(b*S).value,b,30);return b+"ms "+A},toTransition:()=>{}};return P}Ce.applyToOptions=t=>{const e=Za(t,100,Ce);return t.ease=e.ease,t.duration=nt(e.duration),t.type="keyframes",t};function ln({keyframes:t,velocity:e=0,power:n=.8,timeConstant:i=325,bounceDamping:s=10,bounceStiffness:o=500,modifyTarget:r,min:a,max:c,restDelta:u=.5,restSpeed:l}){const h=t[0],f={done:!1,value:h},d=C=>a!==void 0&&C<a||c!==void 0&&C>c,m=C=>a===void 0?c:c===void 0||Math.abs(a-C)<Math.abs(c-C)?a:c;let g=n*e;const x=h+g,p=r===void 0?x:r(x);p!==x&&(g=p-h);const y=C=>-g*Math.exp(-C/i),v=C=>p+y(C),P=C=>{const F=y(C),H=v(C);f.done=Math.abs(F)<=u,f.value=f.done?p:H};let b,A;const S=C=>{d(f.value)&&(b=C,A=Ce({keyframes:[f.value,m(f.value)],velocity:pr(v,C,f.value),damping:s,stiffness:o,restDelta:u,restSpeed:l}))};return S(0),{calculatedDuration:null,next:C=>{let F=!1;return!A&&b===void 0&&(F=!0,P(C),S(C)),b!==void 0&&C>=b?A.next(C-b):(!F&&P(C),f)}}}function rc(t,e,n){const i=[],s=n||ct.mix||dr,o=t.length-1;for(let r=0;r<o;r++){let a=s(t[r],t[r+1]);if(e){const c=Array.isArray(e)?e[r]||tt:e;a=re(c,a)}i.push(a)}return i}function oc(t,e,{clamp:n=!0,ease:i,mixer:s}={}){const o=t.length;if(at(o===e.length,"Both input and output ranges must be the same length","range-length"),o===1)return()=>e[0];if(o===2&&e[0]===e[1])return()=>e[1];const r=t[0]===t[1];t[0]>t[o-1]&&(t=[...t].reverse(),e=[...e].reverse());const a=rc(e,i,s),c=a.length,u=l=>{if(r&&l<t[0])return e[0];let h=0;if(c>1)for(;h<t.length-2&&!(l<t[h+1]);h++);const f=qt(t[h],t[h+1],l);return a[h](f)};return n?l=>u(ot(t[0],t[o-1],l)):u}function ac(t,e){const n=t[t.length-1];for(let i=1;i<=e;i++){const s=qt(0,e,i);t.push(R(n,1,s))}}function cc(t){const e=[0];return ac(e,t.length-1),e}function lc(t,e){return t.map(n=>n*e)}function uc(t,e){return t.map(()=>e||ir).splice(0,t.length-1)}function At({duration:t=300,keyframes:e,times:n,ease:i="easeInOut"}){const s=wa(i)?i.map(Ti):Ti(i),o={done:!1,value:e[0]},r=lc(n&&n.length===e.length?n:cc(e),t),a=oc(r,e,{ease:Array.isArray(s)?s:uc(e,s)});return{calculatedDuration:t,next:c=>(o.value=a(c),o.done=c>=t,o)}}const hc=t=>t!==null;function zn(t,{repeat:e,repeatType:n="loop"},i,s=1){const o=t.filter(hc),a=s<0||e&&n!=="loop"&&e%2===1?0:o.length-1;return!a||i===void 0?o[a]:i}const fc={decay:ln,inertia:ln,tween:At,keyframes:At,spring:Ce};function gr(t){typeof t.type=="string"&&(t.type=fc[t.type])}class Gn{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,n){return this.finished.then(e,n)}}const dc=t=>t/100;class Hn extends Gn{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:n}=this.options;n&&n.updatedAt!==K.now()&&this.tick(K.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){const{options:e}=this;gr(e);const{type:n=At,repeat:i=0,repeatDelay:s=0,repeatType:o,velocity:r=0}=e;let{keyframes:a}=e;const c=n||At;process.env.NODE_ENV!=="production"&&c!==At&&at(a.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${a}`,"spring-two-frames"),c!==At&&typeof a[0]!="number"&&(this.mixKeyframes=re(dc,dr(a[0],a[1])),a=[0,100]);const u=c({...e,keyframes:a});o==="mirror"&&(this.mirroredGenerator=c({...e,keyframes:[...a].reverse(),velocity:-r})),u.calculatedDuration===null&&(u.calculatedDuration=Kn(u));const{calculatedDuration:l}=u;this.calculatedDuration=l,this.resolvedDuration=l+s,this.totalDuration=this.resolvedDuration*(i+1)-s,this.generator=u}updateTime(e){const n=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(e,n=!1){const{generator:i,totalDuration:s,mixKeyframes:o,mirroredGenerator:r,resolvedDuration:a,calculatedDuration:c}=this;if(this.startTime===null)return i.next(0);const{delay:u=0,keyframes:l,repeat:h,repeatType:f,repeatDelay:d,type:m,onUpdate:g,finalKeyframe:x}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-s/this.speed,this.startTime)),n?this.currentTime=e:this.updateTime(e);const p=this.currentTime-u*(this.playbackSpeed>=0?1:-1),y=this.playbackSpeed>=0?p<0:p>s;this.currentTime=Math.max(p,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=s);let v=this.currentTime,P=i;if(h){const C=Math.min(this.currentTime,s)/a;let F=Math.floor(C),H=C%1;!H&&C>=1&&(H=1),H===1&&F--,F=Math.min(F,h+1),!!(F%2)&&(f==="reverse"?(H=1-H,d&&(H-=d/a)):f==="mirror"&&(P=r)),v=ot(0,1,H)*a}const b=y?{done:!1,value:l[0]}:P.next(v);o&&(b.value=o(b.value));let{done:A}=b;!y&&c!==null&&(A=this.playbackSpeed>=0?this.currentTime>=s:this.currentTime<=0);const S=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&A);return S&&m!==ln&&(b.value=zn(l,this.options,x,this.speed)),g&&g(b.value),S&&this.finish(),b}then(e,n){return this.finished.then(e,n)}get duration(){return Q(this.calculatedDuration)}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+Q(e)}get time(){return Q(this.currentTime)}set time(e){e=nt(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(e){this.updateTime(K.now());const n=this.playbackSpeed!==e;this.playbackSpeed=e,n&&(this.time=Q(this.currentTime))}play(){if(this.isStopped)return;const{driver:e=qa,startTime:n}=this.options;this.driver||(this.driver=e(s=>this.tick(s))),this.options.onPlay?.();const i=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=i):this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime||(this.startTime=n??i),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(K.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),e.observe(this)}}function mc(t){for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}const vt=t=>t*180/Math.PI,un=t=>{const e=vt(Math.atan2(t[1],t[0]));return hn(e)},pc={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:un,rotateZ:un,skewX:t=>vt(Math.atan(t[1])),skewY:t=>vt(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},hn=t=>(t=t%360,t<0&&(t+=360),t),Vi=un,Mi=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),Di=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),gc={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Mi,scaleY:Di,scale:t=>(Mi(t)+Di(t))/2,rotateX:t=>hn(vt(Math.atan2(t[6],t[5]))),rotateY:t=>hn(vt(Math.atan2(-t[2],t[0]))),rotateZ:Vi,rotate:Vi,skewX:t=>vt(Math.atan(t[4])),skewY:t=>vt(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function fn(t){return t.includes("scale")?1:0}function dn(t,e){if(!t||t==="none")return fn(e);const n=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let i,s;if(n)i=gc,s=n;else{const a=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=pc,s=a}if(!s)return fn(e);const o=i[e],r=s[1].split(",").map(vc);return typeof o=="function"?o(r):r[o]}const yc=(t,e)=>{const{transform:n="none"}=getComputedStyle(t);return dn(n,e)};function vc(t){return parseFloat(t.trim())}const jt=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Ft=new Set(jt),Ei=t=>t===It||t===w,xc=new Set(["x","y","z"]),bc=jt.filter(t=>!xc.has(t));function Tc(t){const e=[];return bc.forEach(n=>{const i=t.getValue(n);i!==void 0&&(e.push([n,i.get()]),i.set(n.startsWith("scale")?1:0))}),e}const bt={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>dn(e,"x"),y:(t,{transform:e})=>dn(e,"y")};bt.translateX=bt.x;bt.translateY=bt.y;const Tt=new Set;let mn=!1,pn=!1,gn=!1;function yr(){if(pn){const t=Array.from(Tt).filter(i=>i.needsMeasurement),e=new Set(t.map(i=>i.element)),n=new Map;e.forEach(i=>{const s=Tc(i);s.length&&(n.set(i,s),i.render())}),t.forEach(i=>i.measureInitialState()),e.forEach(i=>{i.render();const s=n.get(i);s&&s.forEach(([o,r])=>{i.getValue(o)?.set(r)})}),t.forEach(i=>i.measureEndState()),t.forEach(i=>{i.suspendedScrollY!==void 0&&window.scrollTo(0,i.suspendedScrollY)})}pn=!1,mn=!1,Tt.forEach(t=>t.complete(gn)),Tt.clear()}function vr(){Tt.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(pn=!0)})}function wc(){gn=!0,vr(),yr(),gn=!1}class Yn{constructor(e,n,i,s,o,r=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=n,this.name=i,this.motionValue=s,this.element=o,this.isAsync=r}scheduleResolve(){this.state="scheduled",this.isAsync?(Tt.add(this),mn||(mn=!0,E.read(vr),E.resolveKeyframes(yr))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:i,motionValue:s}=this;if(e[0]===null){const o=s?.get(),r=e[e.length-1];if(o!==void 0)e[0]=o;else if(i&&n){const a=i.readValue(n,r);a!=null&&(e[0]=a)}e[0]===void 0&&(e[0]=r),s&&o===void 0&&s.set(e[0])}mc(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),Tt.delete(this)}cancel(){this.state==="scheduled"&&(Tt.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const Sc=t=>t.startsWith("--");function Pc(t,e,n){Sc(e)?t.style.setProperty(e,n):t.style[e]=n}const Ac=Ln(()=>window.ScrollTimeline!==void 0),Cc={};function Vc(t,e){const n=Ln(t);return()=>Cc[e]??n()}const xr=Vc(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Wt=([t,e,n,i])=>`cubic-bezier(${t}, ${e}, ${n}, ${i})`,_i={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Wt([0,.65,.55,1]),circOut:Wt([.55,0,1,.45]),backIn:Wt([.31,.01,.66,-.59]),backOut:Wt([.33,1.53,.69,.99])};function br(t,e){if(t)return typeof t=="function"?xr()?mr(t,e):"ease-out":sr(t)?Wt(t):Array.isArray(t)?t.map(n=>br(n,e)||_i.easeOut):_i[t]}function Mc(t,e,n,{delay:i=0,duration:s=300,repeat:o=0,repeatType:r="loop",ease:a="easeOut",times:c}={},u=void 0){const l={[e]:n};c&&(l.offset=c);const h=br(a,s);Array.isArray(h)&&(l.easing=h);const f={delay:i,duration:s,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:o+1,direction:r==="reverse"?"alternate":"normal"};return u&&(f.pseudoElement=u),t.animate(l,f)}function Tr(t){return typeof t=="function"&&"applyToOptions"in t}function Dc({type:t,...e}){return Tr(t)&&xr()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}class Ec extends Gn{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,!e)return;const{element:n,name:i,keyframes:s,pseudoElement:o,allowFlatten:r=!1,finalKeyframe:a,onComplete:c}=e;this.isPseudoElement=!!o,this.allowFlatten=r,this.options=e,at(typeof e.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const u=Dc(e);this.animation=Mc(n,i,s,u,o),u.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!o){const l=zn(s,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(l):Pc(n,i,l),this.animation.cancel()}c?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:e}=this;e==="idle"||e==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const e=this.animation.effect?.getComputedTiming?.().duration||0;return Q(Number(e))}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+Q(e)}get time(){return Q(Number(this.animation.currentTime)||0)}set time(e){this.finishedTime=null,this.animation.currentTime=nt(e)}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(e){this.animation.startTime=e}attachTimeline({timeline:e,observe:n}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,e&&Ac()?(this.animation.timeline=e,tt):n(this)}}const wr={anticipate:tr,backInOut:Qs,circInOut:nr};function _c(t){return t in wr}function Rc(t){typeof t.ease=="string"&&_c(t.ease)&&(t.ease=wr[t.ease])}const Ri=10;class kc extends Ec{constructor(e){Rc(e),gr(e),super(e),e.startTime&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){const{motionValue:n,onUpdate:i,onComplete:s,element:o,...r}=this.options;if(!n)return;if(e!==void 0){n.set(e);return}const a=new Hn({...r,autoplay:!1}),c=nt(this.finishedTime??this.time);n.setWithVelocity(a.sample(c-Ri).value,a.sample(c).value,Ri),a.stop()}}const ki=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(ft.test(t)||t==="0")&&!t.startsWith("url("));function Lc(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 Bc(t,e,n,i){const s=t[0];if(s===null)return!1;if(e==="display"||e==="visibility")return!0;const o=t[t.length-1],r=ki(s,e),a=ki(o,e);return Ot(r===a,`You are trying to animate ${e} from "${s}" to "${o}". "${r?o:s}" is not an animatable value.`,"value-not-animatable"),!r||!a?!1:Lc(t)||(n==="spring"||Tr(n))&&i}function yn(t){t.duration=0,t.type="keyframes"}const Oc=new Set(["opacity","clipPath","filter","transform"]),Ic=Ln(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function jc(t){const{motionValue:e,name:n,repeatDelay:i,repeatType:s,damping:o,type:r}=t;if(!(e?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:c,transformTemplate:u}=e.owner.getProps();return Ic()&&n&&Oc.has(n)&&(n!=="transform"||!u)&&!c&&!i&&s!=="mirror"&&o!==0&&r!=="inertia"}const Fc=40;class Nc extends Gn{constructor({autoplay:e=!0,delay:n=0,type:i="keyframes",repeat:s=0,repeatDelay:o=0,repeatType:r="loop",keyframes:a,name:c,motionValue:u,element:l,...h}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=K.now();const f={autoplay:e,delay:n,type:i,repeat:s,repeatDelay:o,repeatType:r,name:c,motionValue:u,element:l,...h},d=l?.KeyframeResolver||Yn;this.keyframeResolver=new d(a,(m,g,x)=>this.onKeyframesResolved(m,g,f,!x),c,u,l),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,n,i,s){this.keyframeResolver=void 0;const{name:o,type:r,velocity:a,delay:c,isHandoff:u,onUpdate:l}=i;this.resolvedAt=K.now(),Bc(e,o,r,a)||((ct.instantAnimations||!c)&&l?.(zn(e,i,n)),e[0]=e[e.length-1],yn(i),i.repeat=0);const f={startTime:s?this.resolvedAt?this.resolvedAt-this.createdAt>Fc?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...i,keyframes:e},d=!u&&jc(f)?new kc({...f,element:f.motionValue.owner.current}):new Hn(f);d.finished.then(()=>this.notifyFinished()).catch(tt),this.pendingTimeline&&(this.stopTimeline=d.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=d}get finished(){return this._animation?this.animation.finished:this._finished}then(e,n){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),wc()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}const $c=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Wc(t){const e=$c.exec(t);if(!e)return[,];const[,n,i,s]=e;return[`--${n??i}`,s]}const Uc=4;function Sr(t,e,n=1){at(n<=Uc,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[i,s]=Wc(t);if(!i)return;const o=window.getComputedStyle(e).getPropertyValue(i);if(o){const r=o.trim();return zs(r)?parseFloat(r):r}return Nn(s)?Sr(s,e,n+1):s}function Xn(t,e){return t?.[e]??t?.default??t}const Pr=new Set(["width","height","top","left","right","bottom",...jt]),Kc={test:t=>t==="auto",parse:t=>t},Ar=t=>e=>e.test(t),Cr=[It,w,rt,lt,La,ka,Kc],Li=t=>Cr.find(Ar(t));function zc(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||Hs(t):!0}const Gc=new Set(["brightness","contrast","saturate","opacity"]);function Hc(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[i]=n.match($n)||[];if(!i)return t;const s=n.replace(i,"");let o=Gc.has(e)?1:0;return i!==n&&(o*=100),e+"("+o+s+")"}const Yc=/\b([a-z-]*)\(.*?\)/gu,vn={...ft,getAnimatableNone:t=>{const e=t.match(Yc);return e?e.map(Hc).join(" "):t}},Bi={...It,transform:Math.round},Xc={rotate:lt,rotateX:lt,rotateY:lt,rotateZ:lt,scale:he,scaleX:he,scaleY:he,scaleZ:he,skew:lt,skewX:lt,skewY:lt,distance:w,translateX:w,translateY:w,translateZ:w,x:w,y:w,z:w,perspective:w,transformPerspective:w,opacity:Zt,originX:wi,originY:wi,originZ:w},qn={borderWidth:w,borderTopWidth:w,borderRightWidth:w,borderBottomWidth:w,borderLeftWidth:w,borderRadius:w,radius:w,borderTopLeftRadius:w,borderTopRightRadius:w,borderBottomRightRadius:w,borderBottomLeftRadius:w,width:w,maxWidth:w,height:w,maxHeight:w,top:w,right:w,bottom:w,left:w,padding:w,paddingTop:w,paddingRight:w,paddingBottom:w,paddingLeft:w,margin:w,marginTop:w,marginRight:w,marginBottom:w,marginLeft:w,backgroundPositionX:w,backgroundPositionY:w,...Xc,zIndex:Bi,fillOpacity:Zt,strokeOpacity:Zt,numOctaves:Bi},qc={...qn,color:L,backgroundColor:L,outlineColor:L,fill:L,stroke:L,borderColor:L,borderTopColor:L,borderRightColor:L,borderBottomColor:L,borderLeftColor:L,filter:vn,WebkitFilter:vn},Vr=t=>qc[t];function Mr(t,e){let n=Vr(t);return n!==vn&&(n=ft),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const Zc=new Set(["auto","none","0"]);function Jc(t,e,n){let i=0,s;for(;i<t.length&&!s;){const o=t[i];typeof o=="string"&&!Zc.has(o)&&Jt(o).values.length&&(s=t[i]),i++}if(s&&n)for(const o of e)t[o]=Mr(n,s)}class Qc extends Yn{constructor(e,n,i,s,o){super(e,n,i,s,o,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:n,name:i}=this;if(!n||!n.current)return;super.readKeyframes();for(let c=0;c<e.length;c++){let u=e[c];if(typeof u=="string"&&(u=u.trim(),Nn(u))){const l=Sr(u,n.current);l!==void 0&&(e[c]=l),c===e.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!Pr.has(i)||e.length!==2)return;const[s,o]=e,r=Li(s),a=Li(o);if(r!==a)if(Ei(r)&&Ei(a))for(let c=0;c<e.length;c++){const u=e[c];typeof u=="string"&&(e[c]=parseFloat(u))}else bt[i]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:n}=this,i=[];for(let s=0;s<e.length;s++)(e[s]===null||zc(e[s]))&&i.push(s);i.length&&Jc(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=bt[i](e.measureViewportBox(),window.getComputedStyle(e.current)),n[0]=this.measuredOrigin;const s=n[n.length-1];s!==void 0&&e.getValue(i,s).jump(s,!1)}measureEndState(){const{element:e,name:n,unresolvedKeyframes:i}=this;if(!e||!e.current)return;const s=e.getValue(n);s&&s.jump(this.measuredOrigin,!1);const o=i.length-1,r=i[o];i[o]=bt[n](e.measureViewportBox(),window.getComputedStyle(e.current)),r!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=r),this.removedTransforms?.length&&this.removedTransforms.forEach(([a,c])=>{e.getValue(a).set(c)}),this.resolveNoneKeyframes()}}function tl(t,e,n){if(t instanceof EventTarget)return[t];if(typeof t=="string"){let i=document;const s=n?.[t]??i.querySelectorAll(t);return s?Array.from(s):[]}return Array.from(t)}const Dr=(t,e)=>e&&typeof t=="number"?e.transform(t):t;function el(t){return Gs(t)&&"offsetHeight"in t}const Oi=30,nl=t=>!isNaN(parseFloat(t));class il{constructor(e,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=i=>{const s=K.now();if(this.updatedAt!==s&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(i),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const o of this.dependents)o.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=n.owner}setCurrent(e){this.current=e,this.updatedAt=K.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=nl(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return process.env.NODE_ENV!=="production"&&On(!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 Bn);const i=this.events[e].add(n);return e==="change"?()=>{i(),E.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){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}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()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=K.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>Oi)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Oi);return Ys(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.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function kt(t,e){return new il(t,e)}const{schedule:Zn}=rr(queueMicrotask,!1),et={x:!1,y:!1};function Er(){return et.x||et.y}function sl(t){return t==="x"||t==="y"?et[t]?null:(et[t]=!0,()=>{et[t]=!1}):et.x||et.y?null:(et.x=et.y=!0,()=>{et.x=et.y=!1})}function _r(t,e){const n=tl(t),i=new AbortController,s={passive:!0,...e,signal:i.signal};return[n,s,()=>i.abort()]}function Ii(t){return!(t.pointerType==="touch"||Er())}function rl(t,e,n={}){const[i,s,o]=_r(t,n),r=a=>{if(!Ii(a))return;const{target:c}=a,u=e(c,a);if(typeof u!="function"||!c)return;const l=h=>{Ii(h)&&(u(h),c.removeEventListener("pointerleave",l))};c.addEventListener("pointerleave",l,s)};return i.forEach(a=>{a.addEventListener("pointerenter",r,s)}),o}const Rr=(t,e)=>e?t===e?!0:Rr(t,e.parentElement):!1,Jn=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,ol=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function al(t){return ol.has(t.tagName)||t.tabIndex!==-1}const ve=new WeakSet;function ji(t){return e=>{e.key==="Enter"&&t(e)}}function Ue(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const cl=(t,e)=>{const n=t.currentTarget;if(!n)return;const i=ji(()=>{if(ve.has(n))return;Ue(n,"down");const s=ji(()=>{Ue(n,"up")}),o=()=>Ue(n,"cancel");n.addEventListener("keyup",s,e),n.addEventListener("blur",o,e)});n.addEventListener("keydown",i,e),n.addEventListener("blur",()=>n.removeEventListener("keydown",i),e)};function Fi(t){return Jn(t)&&!Er()}function ll(t,e,n={}){const[i,s,o]=_r(t,n),r=a=>{const c=a.currentTarget;if(!Fi(a))return;ve.add(c);const u=e(c,a),l=(d,m)=>{window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",f),ve.has(c)&&ve.delete(c),Fi(d)&&typeof u=="function"&&u(d,{success:m})},h=d=>{l(d,c===window||c===document||n.useGlobalTarget||Rr(c,d.target))},f=d=>{l(d,!1)};window.addEventListener("pointerup",h,s),window.addEventListener("pointercancel",f,s)};return i.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",r,s),el(a)&&(a.addEventListener("focus",u=>cl(u,s)),!al(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),o}function kr(t){return Gs(t)&&"ownerSVGElement"in t}function ul(t){return kr(t)&&t.tagName==="svg"}const $=t=>!!(t&&t.getVelocity),hl=[...Cr,L,ft],fl=t=>hl.find(Ar(t)),Lr=T.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});function dl(t=!0){const e=T.useContext(_n);if(e===null)return[!0,null];const{isPresent:n,onExitComplete:i,register:s}=e,o=T.useId();T.useEffect(()=>{if(t)return s(o)},[t]);const r=T.useCallback(()=>t&&i&&i(o),[o,i,t]);return!n&&i?[!1,r]:[!0]}const Br=T.createContext({strict:!1}),Ni={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"]},Lt={};for(const t in Ni)Lt[t]={isEnabled:e=>Ni[t].some(n=>!!e[n])};function ml(t){for(const e in t)Lt[e]={...Lt[e],...t[e]}}const pl=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 Ve(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||pl.has(t)}let Or=t=>!Ve(t);function gl(t){typeof t=="function"&&(Or=e=>e.startsWith("on")?!Ve(e):t(e))}try{gl(require("@emotion/is-prop-valid").default)}catch{}function yl(t,e,n){const i={};for(const s in t)s==="values"&&typeof t.values=="object"||(Or(s)||n===!0&&Ve(s)||!e&&!Ve(s)||t.draggable&&s.startsWith("onDrag"))&&(i[s]=t[s]);return i}const Re=T.createContext({});function ke(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}function Qt(t){return typeof t=="string"||Array.isArray(t)}const Qn=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],ti=["initial",...Qn];function Le(t){return ke(t.animate)||ti.some(e=>Qt(t[e]))}function Ir(t){return!!(Le(t)||t.variants)}function vl(t,e){if(Le(t)){const{initial:n,animate:i}=t;return{initial:n===!1||Qt(n)?n:void 0,animate:Qt(i)?i:void 0}}return t.inherit!==!1?e:{}}function xl(t){const{initial:e,animate:n}=vl(t,T.useContext(Re));return T.useMemo(()=>({initial:e,animate:n}),[$i(e),$i(n)])}function $i(t){return Array.isArray(t)?t.join(" "):t}const te={};function bl(t){for(const e in t)te[e]=t[e],Fn(e)&&(te[e].isCSSVariable=!0)}function jr(t,{layout:e,layoutId:n}){return Ft.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!te[t]||t==="opacity")}const Tl={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},wl=jt.length;function Sl(t,e,n){let i="",s=!0;for(let o=0;o<wl;o++){const r=jt[o],a=t[r];if(a===void 0)continue;let c=!0;if(typeof a=="number"?c=a===(r.startsWith("scale")?1:0):c=parseFloat(a)===0,!c||n){const u=Dr(a,qn[r]);if(!c){s=!1;const l=Tl[r]||r;i+=`${l}(${u}) `}n&&(e[r]=u)}}return i=i.trim(),n?i=n(e,s?"":i):s&&(i="none"),i}function ei(t,e,n){const{style:i,vars:s,transformOrigin:o}=t;let r=!1,a=!1;for(const c in e){const u=e[c];if(Ft.has(c)){r=!0;continue}else if(Fn(c)){s[c]=u;continue}else{const l=Dr(u,qn[c]);c.startsWith("origin")?(a=!0,o[c]=l):i[c]=l}}if(e.transform||(r||n?i.transform=Sl(e,t.transform,n):i.transform&&(i.transform="none")),a){const{originX:c="50%",originY:u="50%",originZ:l=0}=o;i.transformOrigin=`${c} ${u} ${l}`}}const ni=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Fr(t,e,n){for(const i in e)!$(e[i])&&!jr(i,n)&&(t[i]=e[i])}function Pl({transformTemplate:t},e){return T.useMemo(()=>{const n=ni();return ei(n,e,t),Object.assign({},n.vars,n.style)},[e])}function Al(t,e){const n=t.style||{},i={};return Fr(i,n,t),Object.assign(i,Pl(t,e)),i}function Cl(t,e){const n={},i=Al(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 Vl={offset:"stroke-dashoffset",array:"stroke-dasharray"},Ml={offset:"strokeDashoffset",array:"strokeDasharray"};function Dl(t,e,n=1,i=0,s=!0){t.pathLength=1;const o=s?Vl:Ml;t[o.offset]=w.transform(-i);const r=w.transform(e),a=w.transform(n);t[o.array]=`${r} ${a}`}function Nr(t,{attrX:e,attrY:n,attrScale:i,pathLength:s,pathSpacing:o=1,pathOffset:r=0,...a},c,u,l){if(ei(t,a,u),c){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:h,style:f}=t;h.transform&&(f.transform=h.transform,delete h.transform),(f.transform||h.transformOrigin)&&(f.transformOrigin=h.transformOrigin??"50% 50%",delete h.transformOrigin),f.transform&&(f.transformBox=l?.transformBox??"fill-box",delete h.transformBox),e!==void 0&&(h.x=e),n!==void 0&&(h.y=n),i!==void 0&&(h.scale=i),s!==void 0&&Dl(h,s,o,r,!1)}const $r=()=>({...ni(),attrs:{}}),Wr=t=>typeof t=="string"&&t.toLowerCase()==="svg";function El(t,e,n,i){const s=T.useMemo(()=>{const o=$r();return Nr(o,e,Wr(i),t.transformTemplate,t.style),{...o.attrs,style:{...o.style}}},[e]);if(t.style){const o={};Fr(o,t.style,t),s.style={...o,...s.style}}return s}const _l=["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 ii(t){return typeof t!="string"||t.includes("-")?!1:!!(_l.indexOf(t)>-1||/[A-Z]/u.test(t))}function Rl(t,e,n,{latestValues:i},s,o=!1){const a=(ii(t)?El:Cl)(e,i,s,t),c=yl(e,typeof t=="string",o),u=t!==T.Fragment?{...c,...a,ref:n}:{},{children:l}=e,h=T.useMemo(()=>$(l)?l.get():l,[l]);return T.createElement(t,{...u,children:h})}function Wi(t){const e=[{},{}];return t?.values.forEach((n,i)=>{e[0][i]=n.get(),e[1][i]=n.getVelocity()}),e}function si(t,e,n,i){if(typeof e=="function"){const[s,o]=Wi(i);e=e(n!==void 0?n:t.custom,s,o)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[s,o]=Wi(i);e=e(n!==void 0?n:t.custom,s,o)}return e}function xe(t){return $(t)?t.get():t}function kl({scrapeMotionValuesFromProps:t,createRenderState:e},n,i,s){return{latestValues:Ll(n,i,s,t),renderState:e()}}function Ll(t,e,n,i){const s={},o=i(t,{});for(const f in o)s[f]=xe(o[f]);let{initial:r,animate:a}=t;const c=Le(t),u=Ir(t);e&&u&&!c&&t.inherit!==!1&&(r===void 0&&(r=e.initial),a===void 0&&(a=e.animate));let l=n?n.initial===!1:!1;l=l||r===!1;const h=l?a:r;if(h&&typeof h!="boolean"&&!ke(h)){const f=Array.isArray(h)?h:[h];for(let d=0;d<f.length;d++){const m=si(t,f[d]);if(m){const{transitionEnd:g,transition:x,...p}=m;for(const y in p){let v=p[y];if(Array.isArray(v)){const P=l?v.length-1:0;v=v[P]}v!==null&&(s[y]=v)}for(const y in g)s[y]=g[y]}}}return s}const Ur=t=>(e,n)=>{const i=T.useContext(Re),s=T.useContext(_n),o=()=>kl(t,e,i,s);return n?o():ma(o)};function ri(t,e,n){const{style:i}=t,s={};for(const o in i)($(i[o])||e.style&&$(e.style[o])||jr(o,t)||n?.getValue(o)?.liveStyle!==void 0)&&(s[o]=i[o]);return s}const Bl=Ur({scrapeMotionValuesFromProps:ri,createRenderState:ni});function Kr(t,e,n){const i=ri(t,e,n);for(const s in t)if($(t[s])||$(e[s])){const o=jt.indexOf(s)!==-1?"attr"+s.charAt(0).toUpperCase()+s.substring(1):s;i[o]=t[s]}return i}const Ol=Ur({scrapeMotionValuesFromProps:Kr,createRenderState:$r}),Il=Symbol.for("motionComponentSymbol");function Ct(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function jl(t,e,n){return T.useCallback(i=>{i&&t.onMount&&t.onMount(i),e&&(i?e.mount(i):e.unmount()),n&&(typeof n=="function"?n(i):Ct(n)&&(n.current=i))},[e])}const oi=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Fl="framerAppearId",zr="data-"+oi(Fl),Gr=T.createContext({});function Nl(t,e,n,i,s){const{visualElement:o}=T.useContext(Re),r=T.useContext(Br),a=T.useContext(_n),c=T.useContext(Lr).reducedMotion,u=T.useRef(null);i=i||r.renderer,!u.current&&i&&(u.current=i(t,{visualState:e,parent:o,props:n,presenceContext:a,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:c}));const l=u.current,h=T.useContext(Gr);l&&!l.projection&&s&&(l.type==="html"||l.type==="svg")&&$l(u.current,n,s,h);const f=T.useRef(!1);T.useInsertionEffect(()=>{l&&f.current&&l.update(n,a)});const d=n[zr],m=T.useRef(!!d&&!window.MotionHandoffIsComplete?.(d)&&window.MotionHasOptimisedAnimation?.(d));return pa(()=>{l&&(f.current=!0,window.MotionIsMounted=!0,l.updateFeatures(),l.scheduleRenderMicrotask(),m.current&&l.animationState&&l.animationState.animateChanges())}),T.useEffect(()=>{l&&(!m.current&&l.animationState&&l.animationState.animateChanges(),m.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(d)}),m.current=!1),l.enteringChildren=void 0)}),l}function $l(t,e,n,i){const{layoutId:s,layout:o,drag:r,dragConstraints:a,layoutScroll:c,layoutRoot:u,layoutCrossfade:l}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:Hr(t.parent)),t.projection.setOptions({layoutId:s,layout:o,alwaysMeasureLayout:!!r||a&&Ct(a),visualElement:t,animationType:typeof o=="string"?o:"both",initialPromotionConfig:i,crossfade:l,layoutScroll:c,layoutRoot:u})}function Hr(t){if(t)return t.options.allowProjection!==!1?t.projection:Hr(t.parent)}function Ke(t,{forwardMotionProps:e=!1}={},n,i){n&&ml(n);const s=ii(t)?Ol:Bl;function o(a,c){let u;const l={...T.useContext(Lr),...a,layoutId:Wl(a)},{isStatic:h}=l,f=xl(a),d=s(a,h);if(!h&&En){Ul(l,n);const m=Kl(l);u=m.MeasureLayout,f.visualElement=Nl(t,d,l,i,m.ProjectionNode)}return D.jsxs(Re.Provider,{value:f,children:[u&&f.visualElement?D.jsx(u,{visualElement:f.visualElement,...l}):null,Rl(t,a,jl(d,f.visualElement,c),d,h,e)]})}o.displayName=`motion.${typeof t=="string"?t:`create(${t.displayName??t.name??""})`}`;const r=T.forwardRef(o);return r[Il]=t,r}function Wl({layoutId:t}){const e=T.useContext(Ks).id;return e&&t!==void 0?e+"-"+t:t}function Ul(t,e){const n=T.useContext(Br).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?Ot(!1,i,"lazy-strict-mode"):at(!1,i,"lazy-strict-mode")}}function Kl(t){const{drag:e,layout:n}=Lt;if(!e&&!n)return{};const i={...e,...n};return{MeasureLayout:e?.isEnabled(t)||n?.isEnabled(t)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}function zl(t,e){if(typeof Proxy>"u")return Ke;const n=new Map,i=(o,r)=>Ke(o,r,t,e),s=(o,r)=>(process.env.NODE_ENV!=="production"&&On(!1,"motion() is deprecated. Use motion.create() instead."),i(o,r));return new Proxy(s,{get:(o,r)=>r==="create"?i:(n.has(r)||n.set(r,Ke(r,void 0,t,e)),n.get(r))})}function Yr({top:t,left:e,right:n,bottom:i}){return{x:{min:e,max:n},y:{min:t,max:i}}}function Gl({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function Hl(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}}function ze(t){return t===void 0||t===1}function xn({scale:t,scaleX:e,scaleY:n}){return!ze(t)||!ze(e)||!ze(n)}function gt(t){return xn(t)||Xr(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function Xr(t){return Ui(t.x)||Ui(t.y)}function Ui(t){return t&&t!=="0%"}function Me(t,e,n){const i=t-n,s=e*i;return n+s}function Ki(t,e,n,i,s){return s!==void 0&&(t=Me(t,s,i)),Me(t,n,i)+e}function bn(t,e=0,n=1,i,s){t.min=Ki(t.min,e,n,i,s),t.max=Ki(t.max,e,n,i,s)}function qr(t,{x:e,y:n}){bn(t.x,e.translate,e.scale,e.originPoint),bn(t.y,n.translate,n.scale,n.originPoint)}const zi=.999999999999,Gi=1.0000000000001;function Yl(t,e,n,i=!1){const s=n.length;if(!s)return;e.x=e.y=1;let o,r;for(let a=0;a<s;a++){o=n[a],r=o.projectionDelta;const{visualElement:c}=o.options;c&&c.props.style&&c.props.style.display==="contents"||(i&&o.options.layoutScroll&&o.scroll&&o!==o.root&&Mt(t,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),r&&(e.x*=r.x.scale,e.y*=r.y.scale,qr(t,r)),i&&gt(o.latestValues)&&Mt(t,o.latestValues))}e.x<Gi&&e.x>zi&&(e.x=1),e.y<Gi&&e.y>zi&&(e.y=1)}function Vt(t,e){t.min=t.min+e,t.max=t.max+e}function Hi(t,e,n,i,s=.5){const o=R(t.min,t.max,s);bn(t,e,n,o,i)}function Mt(t,e){Hi(t.x,e.x,e.scaleX,e.scale,e.originX),Hi(t.y,e.y,e.scaleY,e.scale,e.originY)}function Zr(t,e){return Yr(Hl(t.getBoundingClientRect(),e))}function Xl(t,e,n){const i=Zr(t,n),{scroll:s}=e;return s&&(Vt(i.x,s.offset.x),Vt(i.y,s.offset.y)),i}const Yi=()=>({translate:0,scale:1,origin:0,originPoint:0}),Dt=()=>({x:Yi(),y:Yi()}),Xi=()=>({min:0,max:0}),k=()=>({x:Xi(),y:Xi()}),Tn={current:null},Jr={current:!1};function ql(){if(Jr.current=!0,!!En)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>Tn.current=t.matches;t.addEventListener("change",e),e()}else Tn.current=!1}const Zl=new WeakMap;function Jl(t,e,n){for(const i in e){const s=e[i],o=n[i];if($(s))t.addValue(i,s);else if($(o))t.addValue(i,kt(s,{owner:t}));else if(o!==s)if(t.hasValue(i)){const r=t.getValue(i);r.liveStyle===!0?r.jump(s):r.hasAnimated||r.set(s)}else{const r=t.getStaticValue(i);t.addValue(i,kt(r!==void 0?r:s,{owner:t}))}}for(const i in n)e[i]===void 0&&t.removeValue(i);return e}const qi=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Ql{scrapeMotionValuesFromProps(e,n,i){return{}}constructor({parent:e,props:n,presenceContext:i,reducedMotionConfig:s,blockInitialAnimation:o,visualState:r},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Yn,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 f=K.now();this.renderScheduledAt<f&&(this.renderScheduledAt=f,E.render(this.render,!1,!0))};const{latestValues:c,renderState:u}=r;this.latestValues=c,this.baseTarget={...c},this.initialValues=n.initial?{...c}:{},this.renderState=u,this.parent=e,this.props=n,this.presenceContext=i,this.depth=e?e.depth+1:0,this.reducedMotionConfig=s,this.options=a,this.blockInitialAnimation=!!o,this.isControllingVariants=Le(n),this.isVariantNode=Ir(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:l,...h}=this.scrapeMotionValuesFromProps(n,{},this);for(const f in h){const d=h[f];c[f]!==void 0&&$(d)&&d.set(c[f])}}mount(e){this.current=e,Zl.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)),Jr.current||ql(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Tn.current,process.env.NODE_ENV!=="production"&&On(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected.","reduced-motion-disabled"),this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),ht(this.notifyUpdate),ht(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(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}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,n){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const i=Ft.has(e);i&&this.onBindTransform&&this.onBindTransform();const s=n.on("change",r=>{this.latestValues[e]=r,this.props.onUpdate&&E.preRender(this.notifyUpdate),i&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,e,n)),this.valueSubscriptions.set(e,()=>{s(),o&&o(),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 Lt){const n=Lt[e];if(!n)continue;const{isEnabled:i,Feature:s}=n;if(!this.features[e]&&s&&i(this.props)&&(this.features[e]=new s(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):k()}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<qi.length;i++){const s=qi[i];this.propEventSubscriptions[s]&&(this.propEventSubscriptions[s](),delete this.propEventSubscriptions[s]);const o="on"+s,r=e[o];r&&(this.propEventSubscriptions[s]=this.on(s,r))}this.prevMotionValues=Jl(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}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=kt(n===null?void 0:n,{owner:this}),this.addValue(e,i)),i}readValue(e,n){let i=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return i!=null&&(typeof i=="string"&&(zs(i)||Hs(i))?i=parseFloat(i):!fl(i)&&ft.test(n)&&(i=Mr(e,n)),this.setBaseTarget(e,$(i)?i.get():i)),$(i)?i.get():i}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){const{initial:n}=this.props;let i;if(typeof n=="string"||typeof n=="object"){const o=si(this.props,n,this.presenceContext?.custom);o&&(i=o[e])}if(n&&i!==void 0)return i;const s=this.getBaseTargetFromProps(this.props,e);return s!==void 0&&!$(s)?s:this.initialValues[e]!==void 0&&i===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new Bn),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}scheduleRenderMicrotask(){Zn.render(this.render)}}class Qr extends Ql{constructor(){super(...arguments),this.KeyframeResolver=Qc}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;$(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function to(t,{style:e,vars:n},i,s){const o=t.style;let r;for(r in e)o[r]=e[r];s?.applyProjectionStyles(o,i);for(r in n)o.setProperty(r,n[r])}function tu(t){return window.getComputedStyle(t)}class eu extends Qr{constructor(){super(...arguments),this.type="html",this.renderInstance=to}readValueFromInstance(e,n){if(Ft.has(n))return this.projection?.isProjecting?fn(n):yc(e,n);{const i=tu(e),s=(Fn(n)?i.getPropertyValue(n):i[n])||0;return typeof s=="string"?s.trim():s}}measureInstanceViewportBox(e,{transformPagePoint:n}){return Zr(e,n)}build(e,n,i){ei(e,n,i.transformTemplate)}scrapeMotionValuesFromProps(e,n,i){return ri(e,n,i)}}const eo=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 nu(t,e,n,i){to(t,e,void 0,i);for(const s in e.attrs)t.setAttribute(eo.has(s)?s:oi(s),e.attrs[s])}class iu extends Qr{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=k}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(Ft.has(n)){const i=Vr(n);return i&&i.default||0}return n=eo.has(n)?n:oi(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,i){return Kr(e,n,i)}build(e,n,i){Nr(e,n,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(e,n,i,s){nu(e,n,i,s)}mount(e){this.isSVGTag=Wr(e.tagName),super.mount(e)}}const su=(t,e)=>ii(t)?new iu(e):new eu(e,{allowProjection:t!==T.Fragment});function _t(t,e,n){const i=t.getProps();return si(i,e,n!==void 0?n:i.custom,t)}const wn=t=>Array.isArray(t);function ru(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,kt(n))}function ou(t){return wn(t)?t[t.length-1]||0:t}function au(t,e){const n=_t(t,e);let{transitionEnd:i={},transition:s={},...o}=n||{};o={...o,...i};for(const r in o){const a=ou(o[r]);ru(t,r,a)}}function cu(t){return!!($(t)&&t.add)}function Sn(t,e){const n=t.getValue("willChange");if(cu(n))return n.add(e);if(!n&&ct.WillChange){const i=new ct.WillChange("auto");t.addValue("willChange",i),i.add(e)}}function no(t){return t.props[zr]}const lu=t=>t!==null;function uu(t,{repeat:e,repeatType:n="loop"},i){const s=t.filter(lu),o=e&&n!=="loop"&&e%2===1?0:s.length-1;return s[o]}const hu={type:"spring",stiffness:500,damping:25,restSpeed:10},fu=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),du={type:"keyframes",duration:.8},mu={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},pu=(t,{keyframes:e})=>e.length>2?du:Ft.has(t)?t.startsWith("scale")?fu(e[1]):hu:mu;function gu({when:t,delay:e,delayChildren:n,staggerChildren:i,staggerDirection:s,repeat:o,repeatType:r,repeatDelay:a,from:c,elapsed:u,...l}){return!!Object.keys(l).length}const ai=(t,e,n,i={},s,o)=>r=>{const a=Xn(i,t)||{},c=a.delay||i.delay||0;let{elapsed:u=0}=i;u=u-nt(c);const l={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-u,onUpdate:f=>{e.set(f),a.onUpdate&&a.onUpdate(f)},onComplete:()=>{r(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:o?void 0:s};gu(a)||Object.assign(l,pu(t,l)),l.duration&&(l.duration=nt(l.duration)),l.repeatDelay&&(l.repeatDelay=nt(l.repeatDelay)),l.from!==void 0&&(l.keyframes[0]=l.from);let h=!1;if((l.type===!1||l.duration===0&&!l.repeatDelay)&&(yn(l),l.delay===0&&(h=!0)),(ct.instantAnimations||ct.skipAnimations)&&(h=!0,yn(l),l.delay=0),l.allowFlatten=!a.type&&!a.ease,h&&!o&&e.get()!==void 0){const f=uu(l.keyframes,a);if(f!==void 0){E.update(()=>{l.onUpdate(f),l.onComplete()});return}}return a.isSync?new Hn(l):new Nc(l)};function yu({protectedKeys:t,needsAnimating:e},n){const i=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,i}function io(t,e,{delay:n=0,transitionOverride:i,type:s}={}){let{transition:o=t.getDefaultTransition(),transitionEnd:r,...a}=e;i&&(o=i);const c=[],u=s&&t.animationState&&t.animationState.getState()[s];for(const l in a){const h=t.getValue(l,t.latestValues[l]??null),f=a[l];if(f===void 0||u&&yu(u,l))continue;const d={delay:n,...Xn(o||{},l)},m=h.get();if(m!==void 0&&!h.isAnimating&&!Array.isArray(f)&&f===m&&!d.velocity)continue;let g=!1;if(window.MotionHandoffAnimation){const p=no(t);if(p){const y=window.MotionHandoffAnimation(p,l,E);y!==null&&(d.startTime=y,g=!0)}}Sn(t,l),h.start(ai(l,h,f,t.shouldReduceMotion&&Pr.has(l)?{type:!1}:d,t,g));const x=h.animation;x&&c.push(x)}return r&&Promise.all(c).then(()=>{E.update(()=>{r&&au(t,r)})}),c}function so(t,e,n,i=0,s=1){const o=Array.from(t).sort((u,l)=>u.sortNodePosition(l)).indexOf(e),r=t.size,a=(r-1)*i;return typeof n=="function"?n(o,r):s===1?o*i:a-o*i}function Pn(t,e,n={}){const i=_t(t,e,n.type==="exit"?t.presenceContext?.custom:void 0);let{transition:s=t.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(s=n.transitionOverride);const o=i?()=>Promise.all(io(t,i,n)):()=>Promise.resolve(),r=t.variantChildren&&t.variantChildren.size?(c=0)=>{const{delayChildren:u=0,staggerChildren:l,staggerDirection:h}=s;return vu(t,e,c,u,l,h,n)}:()=>Promise.resolve(),{when:a}=s;if(a){const[c,u]=a==="beforeChildren"?[o,r]:[r,o];return c().then(()=>u())}else return Promise.all([o(),r(n.delay)])}function vu(t,e,n=0,i=0,s=0,o=1,r){const a=[];for(const c of t.variantChildren)c.notify("AnimationStart",e),a.push(Pn(c,e,{...r,delay:n+(typeof i=="function"?0:i)+so(t.variantChildren,c,i,s,o)}).then(()=>c.notify("AnimationComplete",e)));return Promise.all(a)}function xu(t,e,n={}){t.notify("AnimationStart",e);let i;if(Array.isArray(e)){const s=e.map(o=>Pn(t,o,n));i=Promise.all(s)}else if(typeof e=="string")i=Pn(t,e,n);else{const s=typeof e=="function"?_t(t,e,n.custom):e;i=Promise.all(io(t,s,n))}return i.then(()=>{t.notify("AnimationComplete",e)})}function ro(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 bu=ti.length;function oo(t){if(!t)return;if(!t.isControllingVariants){const n=t.parent?oo(t.parent)||{}:{};return t.props.initial!==void 0&&(n.initial=t.props.initial),n}const e={};for(let n=0;n<bu;n++){const i=ti[n],s=t.props[i];(Qt(s)||s===!1)&&(e[i]=s)}return e}const Tu=[...Qn].reverse(),wu=Qn.length;function Su(t){return e=>Promise.all(e.map(({animation:n,options:i})=>xu(t,n,i)))}function Pu(t){let e=Su(t),n=Zi(),i=!0;const s=c=>(u,l)=>{const h=_t(t,l,c==="exit"?t.presenceContext?.custom:void 0);if(h){const{transition:f,transitionEnd:d,...m}=h;u={...u,...m,...d}}return u};function o(c){e=c(t)}function r(c){const{props:u}=t,l=oo(t.parent)||{},h=[],f=new Set;let d={},m=1/0;for(let x=0;x<wu;x++){const p=Tu[x],y=n[p],v=u[p]!==void 0?u[p]:l[p],P=Qt(v),b=p===c?y.isActive:null;b===!1&&(m=x);let A=v===l[p]&&v!==u[p]&&P;if(A&&i&&t.manuallyAnimateOnMount&&(A=!1),y.protectedKeys={...d},!y.isActive&&b===null||!v&&!y.prevProp||ke(v)||typeof v=="boolean")continue;const S=Au(y.prevProp,v);let C=S||p===c&&y.isActive&&!A&&P||x>m&&P,F=!1;const H=Array.isArray(v)?v:[v];let wt=H.reduce(s(p),{});b===!1&&(wt={});const{prevResolvedValues:ci={}}=y,Po={...ci,...wt},li=O=>{C=!0,f.has(O)&&(F=!0,f.delete(O)),y.needsAnimating[O]=!0;const Y=t.getValue(O);Y&&(Y.liveStyle=!1)};for(const O in Po){const Y=wt[O],mt=ci[O];if(d.hasOwnProperty(O))continue;let St=!1;wn(Y)&&wn(mt)?St=!ro(Y,mt):St=Y!==mt,St?Y!=null?li(O):f.add(O):Y!==void 0&&f.has(O)?li(O):y.protectedKeys[O]=!0}y.prevProp=v,y.prevResolvedValues=wt,y.isActive&&(d={...d,...wt}),i&&t.blockInitialAnimation&&(C=!1);const ui=A&&S;C&&(!ui||F)&&h.push(...H.map(O=>{const Y={type:p};if(typeof O=="string"&&i&&!ui&&t.manuallyAnimateOnMount&&t.parent){const{parent:mt}=t,St=_t(mt,O);if(mt.enteringChildren&&St){const{delayChildren:Ao}=St.transition||{};Y.delay=so(mt.enteringChildren,t,Ao)}}return{animation:O,options:Y}}))}if(f.size){const x={};if(typeof u.initial!="boolean"){const p=_t(t,Array.isArray(u.initial)?u.initial[0]:u.initial);p&&p.transition&&(x.transition=p.transition)}f.forEach(p=>{const y=t.getBaseTarget(p),v=t.getValue(p);v&&(v.liveStyle=!0),x[p]=y??null}),h.push({animation:x})}let g=!!h.length;return i&&(u.initial===!1||u.initial===u.animate)&&!t.manuallyAnimateOnMount&&(g=!1),i=!1,g?e(h):Promise.resolve()}function a(c,u){if(n[c].isActive===u)return Promise.resolve();t.variantChildren?.forEach(h=>h.animationState?.setActive(c,u)),n[c].isActive=u;const l=r(c);for(const h in n)n[h].protectedKeys={};return l}return{animateChanges:r,setActive:a,setAnimateFunction:o,getState:()=>n,reset:()=>{n=Zi(),i=!0}}}function Au(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!ro(e,t):!1}function pt(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Zi(){return{animate:pt(!0),whileInView:pt(),whileHover:pt(),whileTap:pt(),whileDrag:pt(),whileFocus:pt(),exit:pt()}}class dt{constructor(e){this.isMounted=!1,this.node=e}update(){}}class Cu extends dt{constructor(e){super(e),e.animationState||(e.animationState=Pu(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();ke(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(){this.node.animationState.reset(),this.unmountControls?.()}}let Vu=0;class Mu extends dt{constructor(){super(...arguments),this.id=Vu++}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 s=this.node.animationState.setActive("exit",!e);n&&!e&&s.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 Du={animation:{Feature:Cu},exit:{Feature:Mu}};function ee(t,e,n,i={passive:!0}){return t.addEventListener(e,n,i),()=>t.removeEventListener(e,n)}function ce(t){return{point:{x:t.pageX,y:t.pageY}}}const Eu=t=>e=>Jn(e)&&t(e,ce(e));function Kt(t,e,n,i){return ee(t,e,Eu(n),i)}const ao=1e-4,_u=1-ao,Ru=1+ao,co=.01,ku=0-co,Lu=0+co;function W(t){return t.max-t.min}function Bu(t,e,n){return Math.abs(t-e)<=n}function Ji(t,e,n,i=.5){t.origin=i,t.originPoint=R(e.min,e.max,t.origin),t.scale=W(n)/W(e),t.translate=R(n.min,n.max,t.origin)-t.originPoint,(t.scale>=_u&&t.scale<=Ru||isNaN(t.scale))&&(t.scale=1),(t.translate>=ku&&t.translate<=Lu||isNaN(t.translate))&&(t.translate=0)}function zt(t,e,n,i){Ji(t.x,e.x,n.x,i?i.originX:void 0),Ji(t.y,e.y,n.y,i?i.originY:void 0)}function Qi(t,e,n){t.min=n.min+e.min,t.max=t.min+W(e)}function Ou(t,e,n){Qi(t.x,e.x,n.x),Qi(t.y,e.y,n.y)}function ts(t,e,n){t.min=e.min-n.min,t.max=t.min+W(e)}function Gt(t,e,n){ts(t.x,e.x,n.x),ts(t.y,e.y,n.y)}function Z(t){return[t("x"),t("y")]}const lo=({current:t})=>t?t.ownerDocument.defaultView:null,es=(t,e)=>Math.abs(t-e);function Iu(t,e){const n=es(t.x,e.x),i=es(t.y,e.y);return Math.sqrt(n**2+i**2)}class uo{constructor(e,n,{transformPagePoint:i,contextWindow:s=window,dragSnapToOrigin:o=!1,distanceThreshold:r=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const f=He(this.lastMoveEventInfo,this.history),d=this.startEvent!==null,m=Iu(f.offset,{x:0,y:0})>=this.distanceThreshold;if(!d&&!m)return;const{point:g}=f,{timestamp:x}=I;this.history.push({...g,timestamp:x});const{onStart:p,onMove:y}=this.handlers;d||(p&&p(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),y&&y(this.lastMoveEvent,f)},this.handlePointerMove=(f,d)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=Ge(d,this.transformPagePoint),E.update(this.updatePoint,!0)},this.handlePointerUp=(f,d)=>{this.end();const{onEnd:m,onSessionEnd:g,resumeAnimation:x}=this.handlers;if(this.dragSnapToOrigin&&x&&x(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const p=He(f.type==="pointercancel"?this.lastMoveEventInfo:Ge(d,this.transformPagePoint),this.history);this.startEvent&&m&&m(f,p),g&&g(f,p)},!Jn(e))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=i,this.distanceThreshold=r,this.contextWindow=s||window;const a=ce(e),c=Ge(a,this.transformPagePoint),{point:u}=c,{timestamp:l}=I;this.history=[{...u,timestamp:l}];const{onSessionStart:h}=n;h&&h(e,He(c,this.history)),this.removeListeners=re(Kt(this.contextWindow,"pointermove",this.handlePointerMove),Kt(this.contextWindow,"pointerup",this.handlePointerUp),Kt(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),ht(this.updatePoint)}}function Ge(t,e){return e?{point:e(t.point)}:t}function ns(t,e){return{x:t.x-e.x,y:t.y-e.y}}function He({point:t},e){return{point:t,delta:ns(t,ho(e)),offset:ns(t,ju(e)),velocity:Fu(e,.1)}}function ju(t){return t[0]}function ho(t){return t[t.length-1]}function Fu(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,i=null;const s=ho(t);for(;n>=0&&(i=t[n],!(s.timestamp-i.timestamp>nt(e)));)n--;if(!i)return{x:0,y:0};const o=Q(s.timestamp-i.timestamp);if(o===0)return{x:0,y:0};const r={x:(s.x-i.x)/o,y:(s.y-i.y)/o};return r.x===1/0&&(r.x=0),r.y===1/0&&(r.y=0),r}function Nu(t,{min:e,max:n},i){return e!==void 0&&t<e?t=i?R(e,t,i.min):Math.max(t,e):n!==void 0&&t>n&&(t=i?R(n,t,i.max):Math.min(t,n)),t}function is(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 $u(t,{top:e,left:n,bottom:i,right:s}){return{x:is(t.x,n,s),y:is(t.y,e,i)}}function ss(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 Wu(t,e){return{x:ss(t.x,e.x),y:ss(t.y,e.y)}}function Uu(t,e){let n=.5;const i=W(t),s=W(e);return s>i?n=qt(e.min,e.max-i,t.min):i>s&&(n=qt(t.min,t.max-s,e.min)),ot(0,1,n)}function Ku(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 An=.35;function zu(t=An){return t===!1?t=0:t===!0&&(t=An),{x:rs(t,"left","right"),y:rs(t,"top","bottom")}}function rs(t,e,n){return{min:os(t,e),max:os(t,n)}}function os(t,e){return typeof t=="number"?t:t[e]||0}const Gu=new WeakMap;class Hu{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=k(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:n=!1,distanceThreshold:i}={}){const{presenceContext:s}=this.visualElement;if(s&&s.isPresent===!1)return;const o=h=>{const{dragSnapToOrigin:f}=this.getProps();f?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(ce(h).point)},r=(h,f)=>{const{drag:d,dragPropagation:m,onDragStart:g}=this.getProps();if(d&&!m&&(this.openDragLock&&this.openDragLock(),this.openDragLock=sl(d),!this.openDragLock))return;this.latestPointerEvent=h,this.latestPanInfo=f,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Z(p=>{let y=this.getAxisMotionValue(p).get()||0;if(rt.test(y)){const{projection:v}=this.visualElement;if(v&&v.layout){const P=v.layout.layoutBox[p];P&&(y=W(P)*(parseFloat(y)/100))}}this.originPoint[p]=y}),g&&E.postRender(()=>g(h,f)),Sn(this.visualElement,"transform");const{animationState:x}=this.visualElement;x&&x.setActive("whileDrag",!0)},a=(h,f)=>{this.latestPointerEvent=h,this.latestPanInfo=f;const{dragPropagation:d,dragDirectionLock:m,onDirectionLock:g,onDrag:x}=this.getProps();if(!d&&!this.openDragLock)return;const{offset:p}=f;if(m&&this.currentDirection===null){this.currentDirection=Yu(p),this.currentDirection!==null&&g&&g(this.currentDirection);return}this.updateAxis("x",f.point,p),this.updateAxis("y",f.point,p),this.visualElement.render(),x&&x(h,f)},c=(h,f)=>{this.latestPointerEvent=h,this.latestPanInfo=f,this.stop(h,f),this.latestPointerEvent=null,this.latestPanInfo=null},u=()=>Z(h=>this.getAnimationState(h)==="paused"&&this.getAxisMotionValue(h).animation?.play()),{dragSnapToOrigin:l}=this.getProps();this.panSession=new uo(e,{onSessionStart:o,onStart:r,onMove:a,onSessionEnd:c,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,distanceThreshold:i,contextWindow:lo(this.visualElement)})}stop(e,n){const i=e||this.latestPointerEvent,s=n||this.latestPanInfo,o=this.isDragging;if(this.cancel(),!o||!s||!i)return;const{velocity:r}=s;this.startAnimation(r);const{onDragEnd:a}=this.getProps();a&&E.postRender(()=>a(i,s))}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:s}=this.getProps();if(!i||!fe(e,s,this.currentDirection))return;const o=this.getAxisMotionValue(e);let r=this.originPoint[e]+i[e];this.constraints&&this.constraints[e]&&(r=Nu(r,this.constraints[e],this.elastic[e])),o.set(r)}resolveConstraints(){const{dragConstraints:e,dragElastic:n}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,s=this.constraints;e&&Ct(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&i?this.constraints=$u(i.layoutBox,e):this.constraints=!1,this.elastic=zu(n),s!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&Z(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=Ku(i.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!Ct(e))return!1;const i=e.current;at(i!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");const{projection:s}=this.visualElement;if(!s||!s.layout)return!1;const o=Xl(i,s.root,this.visualElement.getTransformPagePoint());let r=Wu(s.layout.layoutBox,o);if(n){const a=n(Gl(r));this.hasMutatedConstraints=!!a,a&&(r=Yr(a))}return r}startAnimation(e){const{drag:n,dragMomentum:i,dragElastic:s,dragTransition:o,dragSnapToOrigin:r,onDragTransitionEnd:a}=this.getProps(),c=this.constraints||{},u=Z(l=>{if(!fe(l,n,this.currentDirection))return;let h=c&&c[l]||{};r&&(h={min:0,max:0});const f=s?200:1e6,d=s?40:1e7,m={type:"inertia",velocity:i?e[l]:0,bounceStiffness:f,bounceDamping:d,timeConstant:750,restDelta:1,restSpeed:10,...o,...h};return this.startAxisValueAnimation(l,m)});return Promise.all(u).then(a)}startAxisValueAnimation(e,n){const i=this.getAxisMotionValue(e);return Sn(this.visualElement,e),i.start(ai(e,i,0,n,this.visualElement,!1))}stopAnimation(){Z(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){Z(e=>this.getAxisMotionValue(e).animation?.pause())}getAnimationState(e){return this.getAxisMotionValue(e).animation?.state}getAxisMotionValue(e){const n=`_drag${e.toUpperCase()}`,i=this.visualElement.getProps(),s=i[n];return s||this.visualElement.getValue(e,(i.initial?i.initial[e]:void 0)||0)}snapToCursor(e){Z(n=>{const{drag:i}=this.getProps();if(!fe(n,i,this.currentDirection))return;const{projection:s}=this.visualElement,o=this.getAxisMotionValue(n);if(s&&s.layout){const{min:r,max:a}=s.layout.layoutBox[n];o.set(e[n]-R(r,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:i}=this.visualElement;if(!Ct(n)||!i||!this.constraints)return;this.stopAnimation();const s={x:0,y:0};Z(r=>{const a=this.getAxisMotionValue(r);if(a&&this.constraints!==!1){const c=a.get();s[r]=Uu({min:c,max:c},this.constraints[r])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),Z(r=>{if(!fe(r,e,null))return;const a=this.getAxisMotionValue(r),{min:c,max:u}=this.constraints[r];a.set(R(c,u,s[r]))})}addListeners(){if(!this.visualElement.current)return;Gu.set(this.visualElement,this);const e=this.visualElement.current,n=Kt(e,"pointerdown",c=>{const{drag:u,dragListener:l=!0}=this.getProps();u&&l&&this.start(c)}),i=()=>{const{dragConstraints:c}=this.getProps();Ct(c)&&c.current&&(this.constraints=this.resolveRefConstraints())},{projection:s}=this.visualElement,o=s.addEventListener("measure",i);s&&!s.layout&&(s.root&&s.root.updateScroll(),s.updateLayout()),E.read(i);const r=ee(window,"resize",()=>this.scalePositionWithinConstraints()),a=s.addEventListener("didUpdate",(({delta:c,hasLayoutChanged:u})=>{this.isDragging&&u&&(Z(l=>{const h=this.getAxisMotionValue(l);h&&(this.originPoint[l]+=c[l].translate,h.set(h.get()+c[l].translate))}),this.visualElement.render())}));return()=>{r(),n(),o(),a&&a()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:i=!1,dragPropagation:s=!1,dragConstraints:o=!1,dragElastic:r=An,dragMomentum:a=!0}=e;return{...e,drag:n,dragDirectionLock:i,dragPropagation:s,dragConstraints:o,dragElastic:r,dragMomentum:a}}}function fe(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function Yu(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class Xu extends dt{constructor(e){super(e),this.removeGroupControls=tt,this.removeListeners=tt,this.controls=new Hu(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||tt}unmount(){this.removeGroupControls(),this.removeListeners()}}const as=t=>(e,n)=>{t&&E.postRender(()=>t(e,n))};class qu extends dt{constructor(){super(...arguments),this.removePointerDownListener=tt}onPointerDown(e){this.session=new uo(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:lo(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:i,onPanEnd:s}=this.node.getProps();return{onSessionStart:as(e),onStart:as(n),onMove:i,onEnd:(o,r)=>{delete this.session,s&&E.postRender(()=>s(o,r))}}}mount(){this.removePointerDownListener=Kt(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 be={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function cs(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const $t={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(w.test(t))t=parseFloat(t);else return t;const n=cs(t,e.target.x),i=cs(t,e.target.y);return`${n}% ${i}%`}},Zu={correct:(t,{treeScale:e,projectionDelta:n})=>{const i=t,s=ft.parse(t);if(s.length>5)return i;const o=ft.createTransformer(t),r=typeof s[0]!="number"?1:0,a=n.x.scale*e.x,c=n.y.scale*e.y;s[0+r]/=a,s[1+r]/=c;const u=R(a,c,.5);return typeof s[2+r]=="number"&&(s[2+r]/=u),typeof s[3+r]=="number"&&(s[3+r]/=u),o(s)}};let Ye=!1;class Ju extends T.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:i,layoutId:s}=this.props,{projection:o}=e;bl(Qu),o&&(n.group&&n.group.add(o),i&&i.register&&s&&i.register(o),Ye&&o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),be.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:i,drag:s,isPresent:o}=this.props,{projection:r}=i;return r&&(r.isPresent=o,Ye=!0,s||e.layoutDependency!==n||n===void 0||e.isPresent!==o?r.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?r.promote():r.relegate()||E.postRender(()=>{const a=r.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),Zn.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:i}=this.props,{projection:s}=e;Ye=!0,s&&(s.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(s),i&&i.deregister&&i.deregister(s))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function fo(t){const[e,n]=dl(),i=T.useContext(Ks);return D.jsx(Ju,{...t,layoutGroup:i,switchLayoutGroup:T.useContext(Gr),isPresent:e,safeToRemove:n})}const Qu={borderRadius:{...$t,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:$t,borderTopRightRadius:$t,borderBottomLeftRadius:$t,borderBottomRightRadius:$t,boxShadow:Zu};function th(t,e,n){const i=$(t)?t:kt(t);return i.start(ai("",i,e,n)),i.animation}const eh=(t,e)=>t.depth-e.depth;class nh{constructor(){this.children=[],this.isDirty=!1}add(e){Rn(this.children,e),this.isDirty=!0}remove(e){kn(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(eh),this.isDirty=!1,this.children.forEach(e)}}function ih(t,e){const n=K.now(),i=({timestamp:s})=>{const o=s-n;o>=e&&(ht(i),t(o-e))};return E.setup(i,!0),()=>ht(i)}const mo=["TopLeft","TopRight","BottomLeft","BottomRight"],sh=mo.length,ls=t=>typeof t=="string"?parseFloat(t):t,us=t=>typeof t=="number"||w.test(t);function rh(t,e,n,i,s,o){s?(t.opacity=R(0,n.opacity??1,oh(i)),t.opacityExit=R(e.opacity??1,0,ah(i))):o&&(t.opacity=R(e.opacity??1,n.opacity??1,i));for(let r=0;r<sh;r++){const a=`border${mo[r]}Radius`;let c=hs(e,a),u=hs(n,a);if(c===void 0&&u===void 0)continue;c||(c=0),u||(u=0),c===0||u===0||us(c)===us(u)?(t[a]=Math.max(R(ls(c),ls(u),i),0),(rt.test(u)||rt.test(c))&&(t[a]+="%")):t[a]=u}(e.rotate||n.rotate)&&(t.rotate=R(e.rotate||0,n.rotate||0,i))}function hs(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const oh=po(0,.5,er),ah=po(.5,.95,tt);function po(t,e,n){return i=>i<t?0:i>e?1:n(qt(t,e,i))}function fs(t,e){t.min=e.min,t.max=e.max}function X(t,e){fs(t.x,e.x),fs(t.y,e.y)}function ds(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function ms(t,e,n,i,s){return t-=e,t=Me(t,1/n,i),s!==void 0&&(t=Me(t,1/s,i)),t}function ch(t,e=0,n=1,i=.5,s,o=t,r=t){if(rt.test(e)&&(e=parseFloat(e),e=R(r.min,r.max,e/100)-r.min),typeof e!="number")return;let a=R(o.min,o.max,i);t===o&&(a-=e),t.min=ms(t.min,e,n,a,s),t.max=ms(t.max,e,n,a,s)}function ps(t,e,[n,i,s],o,r){ch(t,e[n],e[i],e[s],e.scale,o,r)}const lh=["x","scaleX","originX"],uh=["y","scaleY","originY"];function gs(t,e,n,i){ps(t.x,e,lh,n?n.x:void 0,i?i.x:void 0),ps(t.y,e,uh,n?n.y:void 0,i?i.y:void 0)}function ys(t){return t.translate===0&&t.scale===1}function go(t){return ys(t.x)&&ys(t.y)}function vs(t,e){return t.min===e.min&&t.max===e.max}function hh(t,e){return vs(t.x,e.x)&&vs(t.y,e.y)}function xs(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function yo(t,e){return xs(t.x,e.x)&&xs(t.y,e.y)}function bs(t){return W(t.x)/W(t.y)}function Ts(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class fh{constructor(){this.members=[]}add(e){Rn(this.members,e),e.scheduleRender()}remove(e){if(kn(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(s=>e===s);if(n===0)return!1;let i;for(let s=n;s>=0;s--){const o=this.members[s];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:s}=e.options;s===!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 dh(t,e,n){let i="";const s=t.x.translate/e.x,o=t.y.translate/e.y,r=n?.z||0;if((s||o||r)&&(i=`translate3d(${s}px, ${o}px, ${r}px) `),(e.x!==1||e.y!==1)&&(i+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:u,rotate:l,rotateX:h,rotateY:f,skewX:d,skewY:m}=n;u&&(i=`perspective(${u}px) ${i}`),l&&(i+=`rotate(${l}deg) `),h&&(i+=`rotateX(${h}deg) `),f&&(i+=`rotateY(${f}deg) `),d&&(i+=`skewX(${d}deg) `),m&&(i+=`skewY(${m}deg) `)}const a=t.x.scale*e.x,c=t.y.scale*e.y;return(a!==1||c!==1)&&(i+=`scale(${a}, ${c})`),i||"none"}const Xe=["","X","Y","Z"],mh=1e3;let ph=0;function qe(t,e,n,i){const{latestValues:s}=e;s[t]&&(n[t]=s[t],e.setStaticValue(t,0),i&&(i[t]=0))}function vo(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=no(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:s,layoutId:o}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",E,!(s||o))}const{parent:i}=t;i&&!i.hasCheckedOptimisedAppear&&vo(i)}function xo({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:i,resetTransform:s}){return class{constructor(r={},a=e?.()){this.id=ph++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(vh),this.nodes.forEach(wh),this.nodes.forEach(Sh),this.nodes.forEach(xh)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=r,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 c=0;c<this.path.length;c++)this.path[c].shouldResetTransform=!0;this.root===this&&(this.nodes=new nh)}addEventListener(r,a){return this.eventHandlers.has(r)||this.eventHandlers.set(r,new Bn),this.eventHandlers.get(r).add(a)}notifyListeners(r,...a){const c=this.eventHandlers.get(r);c&&c.notify(...a)}hasListeners(r){return this.eventHandlers.has(r)}mount(r){if(this.instance)return;this.isSVG=kr(r)&&!ul(r),this.instance=r;const{layoutId:a,layout:c,visualElement:u}=this.options;if(u&&!u.current&&u.mount(r),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(c||a)&&(this.isLayoutDirty=!0),t){let l,h=0;const f=()=>this.root.updateBlockedByResize=!1;E.read(()=>{h=window.innerWidth}),t(r,()=>{const d=window.innerWidth;d!==h&&(h=d,this.root.updateBlockedByResize=!0,l&&l(),l=ih(f,250),be.hasAnimatedSinceResize&&(be.hasAnimatedSinceResize=!1,this.nodes.forEach(Ps)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&u&&(a||c)&&this.addEventListener("didUpdate",({delta:l,hasLayoutChanged:h,hasRelativeLayoutChanged:f,layout:d})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const m=this.options.transition||u.getDefaultTransition()||Mh,{onLayoutAnimationStart:g,onLayoutAnimationComplete:x}=u.getProps(),p=!this.targetLayout||!yo(this.targetLayout,d),y=!h&&f;if(this.options.layoutRoot||this.resumeFrom||y||h&&(p||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const v={...Xn(m,"layout"),onPlay:g,onComplete:x};(u.shouldReduceMotion||this.options.layoutRoot)&&(v.delay=0,v.type=!1),this.startAnimation(v),this.setAnimationOrigin(l,y)}else h||Ps(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=d})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const r=this.getStack();r&&r.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),ht(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(Ph),this.animationId++)}getTransformTemplate(){const{visualElement:r}=this.options;return r&&r.getProps().transformTemplate}willUpdate(r=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&vo(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let l=0;l<this.path.length;l++){const h=this.path[l];h.shouldResetTransform=!0,h.updateScroll("snapshot"),h.options.layoutRoot&&h.willUpdate(!1)}const{layoutId:a,layout:c}=this.options;if(a===void 0&&!c)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),r&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(ws);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Ss);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Th),this.nodes.forEach(gh),this.nodes.forEach(yh)):this.nodes.forEach(Ss),this.clearAllSnapshots();const a=K.now();I.delta=ot(0,1e3/60,a-I.timestamp),I.timestamp=a,I.isProcessing=!0,je.update.process(I),je.preRender.process(I),je.render.process(I),I.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Zn.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(bh),this.sharedNodes.forEach(Ah)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,E.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){E.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!W(this.snapshot.measuredBox.x)&&!W(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 c=0;c<this.path.length;c++)this.path[c].updateScroll();const r=this.layout;this.layout=this.measure(!1),this.layoutCorrected=k(),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,r?r.layoutBox:void 0)}updateScroll(r="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===r&&(a=!1),a&&this.instance){const c=i(this.instance);this.scroll={animationId:this.root.animationId,phase:r,isRoot:c,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:c}}}resetTransform(){if(!s)return;const r=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!go(this.projectionDelta),c=this.getTransformTemplate(),u=c?c(this.latestValues,""):void 0,l=u!==this.prevTransformTemplateValue;r&&this.instance&&(a||gt(this.latestValues)||l)&&(s(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(r=!0){const a=this.measurePageBox();let c=this.removeElementScroll(a);return r&&(c=this.removeTransform(c)),Dh(c),{animationId:this.root.animationId,measuredBox:a,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:r}=this.options;if(!r)return k();const a=r.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(Eh))){const{scroll:u}=this.root;u&&(Vt(a.x,u.offset.x),Vt(a.y,u.offset.y))}return a}removeElementScroll(r){const a=k();if(X(a,r),this.scroll?.wasRoot)return a;for(let c=0;c<this.path.length;c++){const u=this.path[c],{scroll:l,options:h}=u;u!==this.root&&l&&h.layoutScroll&&(l.wasRoot&&X(a,r),Vt(a.x,l.offset.x),Vt(a.y,l.offset.y))}return a}applyTransform(r,a=!1){const c=k();X(c,r);for(let u=0;u<this.path.length;u++){const l=this.path[u];!a&&l.options.layoutScroll&&l.scroll&&l!==l.root&&Mt(c,{x:-l.scroll.offset.x,y:-l.scroll.offset.y}),gt(l.latestValues)&&Mt(c,l.latestValues)}return gt(this.latestValues)&&Mt(c,this.latestValues),c}removeTransform(r){const a=k();X(a,r);for(let c=0;c<this.path.length;c++){const u=this.path[c];if(!u.instance||!gt(u.latestValues))continue;xn(u.latestValues)&&u.updateSnapshot();const l=k(),h=u.measurePageBox();X(l,h),gs(a,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,l)}return gt(this.latestValues)&&gs(a,this.latestValues),a}setTargetDelta(r){this.targetDelta=r,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(r){this.options={...this.options,...r,crossfade:r.crossfade!==void 0?r.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!==I.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(r=!1){const a=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=a.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=a.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=a.isSharedProjectionDirty);const c=!!this.resumingFrom||this!==a;if(!(r||c&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:l,layoutId:h}=this.options;if(!(!this.layout||!(l||h))){if(this.resolvedRelativeTargetAt=I.timestamp,!this.targetDelta&&!this.relativeTarget){const f=this.getClosestProjectingParent();f&&f.layout&&this.animationProgress!==1?(this.relativeParent=f,this.forceRelativeParentToResolveTarget(),this.relativeTarget=k(),this.relativeTargetOrigin=k(),Gt(this.relativeTargetOrigin,this.layout.layoutBox,f.layout.layoutBox),X(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=k(),this.targetWithTransforms=k()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Ou(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):X(this.target,this.layout.layoutBox),qr(this.target,this.targetDelta)):X(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const f=this.getClosestProjectingParent();f&&!!f.resumingFrom==!!this.resumingFrom&&!f.options.layoutScroll&&f.target&&this.animationProgress!==1?(this.relativeParent=f,this.forceRelativeParentToResolveTarget(),this.relativeTarget=k(),this.relativeTargetOrigin=k(),Gt(this.relativeTargetOrigin,this.target,f.target),X(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||xn(this.parent.latestValues)||Xr(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){const r=this.getLead(),a=!!this.resumingFrom||this!==r;let c=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(c=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===I.timestamp&&(c=!1),c)return;const{layout:u,layoutId:l}=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||l))return;X(this.layoutCorrected,this.layout.layoutBox);const h=this.treeScale.x,f=this.treeScale.y;Yl(this.layoutCorrected,this.treeScale,this.path,a),r.layout&&!r.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(r.target=r.layout.layoutBox,r.targetWithTransforms=k());const{target:d}=r;if(!d){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(ds(this.prevProjectionDelta.x,this.projectionDelta.x),ds(this.prevProjectionDelta.y,this.projectionDelta.y)),zt(this.projectionDelta,this.layoutCorrected,d,this.latestValues),(this.treeScale.x!==h||this.treeScale.y!==f||!Ts(this.projectionDelta.x,this.prevProjectionDelta.x)||!Ts(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",d))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(r=!0){if(this.options.visualElement?.scheduleRender(),r){const a=this.getStack();a&&a.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Dt(),this.projectionDelta=Dt(),this.projectionDeltaWithTransform=Dt()}setAnimationOrigin(r,a=!1){const c=this.snapshot,u=c?c.latestValues:{},l={...this.latestValues},h=Dt();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const f=k(),d=c?c.source:void 0,m=this.layout?this.layout.source:void 0,g=d!==m,x=this.getStack(),p=!x||x.members.length<=1,y=!!(g&&!p&&this.options.crossfade===!0&&!this.path.some(Vh));this.animationProgress=0;let v;this.mixTargetDelta=P=>{const b=P/1e3;As(h.x,r.x,b),As(h.y,r.y,b),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Gt(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Ch(this.relativeTarget,this.relativeTargetOrigin,f,b),v&&hh(this.relativeTarget,v)&&(this.isProjectionDirty=!1),v||(v=k()),X(v,this.relativeTarget)),g&&(this.animationValues=l,rh(l,u,this.latestValues,b,y,p)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=b},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(r){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(ht(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=E.update(()=>{be.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=kt(0)),this.currentAnimation=th(this.motionValue,[0,1e3],{...r,velocity:0,isSync:!0,onUpdate:a=>{this.mixTargetDelta(a),r.onUpdate&&r.onUpdate(a)},onStop:()=>{},onComplete:()=>{r.onComplete&&r.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 r=this.getStack();r&&r.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(mh),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const r=this.getLead();let{targetWithTransforms:a,target:c,layout:u,latestValues:l}=r;if(!(!a||!c||!u)){if(this!==r&&this.layout&&u&&bo(this.options.animationType,this.layout.layoutBox,u.layoutBox)){c=this.target||k();const h=W(this.layout.layoutBox.x);c.x.min=r.target.x.min,c.x.max=c.x.min+h;const f=W(this.layout.layoutBox.y);c.y.min=r.target.y.min,c.y.max=c.y.min+f}X(a,c),Mt(a,l),zt(this.projectionDeltaWithTransform,this.layoutCorrected,a,l)}}registerSharedNode(r,a){this.sharedNodes.has(r)||this.sharedNodes.set(r,new fh),this.sharedNodes.get(r).add(a);const u=a.options.initialPromotionConfig;a.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(a):void 0})}isLead(){const r=this.getStack();return r?r.lead===this:!0}getLead(){const{layoutId:r}=this.options;return r?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:r}=this.options;return r?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:r}=this.options;if(r)return this.root.sharedNodes.get(r)}promote({needsReset:r,transition:a,preserveFollowOpacity:c}={}){const u=this.getStack();u&&u.promote(this,c),r&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const r=this.getStack();return r?r.relegate(this):!1}resetSkewAndRotation(){const{visualElement:r}=this.options;if(!r)return;let a=!1;const{latestValues:c}=r;if((c.z||c.rotate||c.rotateX||c.rotateY||c.rotateZ||c.skewX||c.skewY)&&(a=!0),!a)return;const u={};c.z&&qe("z",r,u,this.animationValues);for(let l=0;l<Xe.length;l++)qe(`rotate${Xe[l]}`,r,u,this.animationValues),qe(`skew${Xe[l]}`,r,u,this.animationValues);r.render();for(const l in u)r.setStaticValue(l,u[l]),this.animationValues&&(this.animationValues[l]=u[l]);r.scheduleRender()}applyProjectionStyles(r,a){if(!this.instance||this.isSVG)return;if(!this.isVisible){r.visibility="hidden";return}const c=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,r.visibility="",r.opacity="",r.pointerEvents=xe(a?.pointerEvents)||"",r.transform=c?c(this.latestValues,""):"none";return}const u=this.getLead();if(!this.projectionDelta||!this.layout||!u.target){this.options.layoutId&&(r.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,r.pointerEvents=xe(a?.pointerEvents)||""),this.hasProjected&&!gt(this.latestValues)&&(r.transform=c?c({},""):"none",this.hasProjected=!1);return}r.visibility="";const l=u.animationValues||u.latestValues;this.applyTransformsToTarget();let h=dh(this.projectionDeltaWithTransform,this.treeScale,l);c&&(h=c(l,h)),r.transform=h;const{x:f,y:d}=this.projectionDelta;r.transformOrigin=`${f.origin*100}% ${d.origin*100}% 0`,u.animationValues?r.opacity=u===this?l.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:l.opacityExit:r.opacity=u===this?l.opacity!==void 0?l.opacity:"":l.opacityExit!==void 0?l.opacityExit:0;for(const m in te){if(l[m]===void 0)continue;const{correct:g,applyTo:x,isCSSVariable:p}=te[m],y=h==="none"?l[m]:g(l[m],u);if(x){const v=x.length;for(let P=0;P<v;P++)r[x[P]]=y}else p?this.options.visualElement.renderState.vars[m]=y:r[m]=y}this.options.layoutId&&(r.pointerEvents=u===this?xe(a?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(r=>r.currentAnimation?.stop()),this.root.nodes.forEach(ws),this.root.sharedNodes.clear()}}}function gh(t){t.updateLayout()}function yh(t){const e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:i}=t.layout,{animationType:s}=t.options,o=e.source!==t.layout.source;s==="size"?Z(l=>{const h=o?e.measuredBox[l]:e.layoutBox[l],f=W(h);h.min=n[l].min,h.max=h.min+f}):bo(s,e.layoutBox,n)&&Z(l=>{const h=o?e.measuredBox[l]:e.layoutBox[l],f=W(n[l]);h.max=h.min+f,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[l].max=t.relativeTarget[l].min+f)});const r=Dt();zt(r,n,e.layoutBox);const a=Dt();o?zt(a,t.applyTransform(i,!0),e.measuredBox):zt(a,n,e.layoutBox);const c=!go(r);let u=!1;if(!t.resumeFrom){const l=t.getClosestProjectingParent();if(l&&!l.resumeFrom){const{snapshot:h,layout:f}=l;if(h&&f){const d=k();Gt(d,e.layoutBox,h.layoutBox);const m=k();Gt(m,n,f.layoutBox),yo(d,m)||(u=!0),l.options.layoutRoot&&(t.relativeTarget=m,t.relativeTargetOrigin=d,t.relativeParent=l)}}}t.notifyListeners("didUpdate",{layout:n,snapshot:e,delta:a,layoutDelta:r,hasLayoutChanged:c,hasRelativeLayoutChanged:u})}else if(t.isLead()){const{onExitComplete:n}=t.options;n&&n()}t.options.transition=void 0}function vh(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 xh(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function bh(t){t.clearSnapshot()}function ws(t){t.clearMeasurements()}function Ss(t){t.isLayoutDirty=!1}function Th(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function Ps(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function wh(t){t.resolveTargetDelta()}function Sh(t){t.calcProjection()}function Ph(t){t.resetSkewAndRotation()}function Ah(t){t.removeLeadSnapshot()}function As(t,e,n){t.translate=R(e.translate,0,n),t.scale=R(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function Cs(t,e,n,i){t.min=R(e.min,n.min,i),t.max=R(e.max,n.max,i)}function Ch(t,e,n,i){Cs(t.x,e.x,n.x,i),Cs(t.y,e.y,n.y,i)}function Vh(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const Mh={duration:.45,ease:[.4,0,.1,1]},Vs=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),Ms=Vs("applewebkit/")&&!Vs("chrome/")?Math.round:tt;function Ds(t){t.min=Ms(t.min),t.max=Ms(t.max)}function Dh(t){Ds(t.x),Ds(t.y)}function bo(t,e,n){return t==="position"||t==="preserve-aspect"&&!Bu(bs(e),bs(n),.2)}function Eh(t){return t!==t.root&&t.scroll?.wasRoot}const _h=xo({attachResizeListener:(t,e)=>ee(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Ze={current:void 0},To=xo({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!Ze.current){const t=new _h({});t.mount(window),t.setOptions({layoutScroll:!0}),Ze.current=t}return Ze.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),Rh={pan:{Feature:qu},drag:{Feature:Xu,ProjectionNode:To,MeasureLayout:fo}};function Es(t,e,n){const{props:i}=t;t.animationState&&i.whileHover&&t.animationState.setActive("whileHover",n==="Start");const s="onHover"+n,o=i[s];o&&E.postRender(()=>o(e,ce(e)))}class kh extends dt{mount(){const{current:e}=this.node;e&&(this.unmount=rl(e,(n,i)=>(Es(this.node,i,"Start"),s=>Es(this.node,s,"End"))))}unmount(){}}class Lh extends dt{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=re(ee(this.node.current,"focus",()=>this.onFocus()),ee(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function _s(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 s="onTap"+(n==="End"?"":n),o=i[s];o&&E.postRender(()=>o(e,ce(e)))}class Bh extends dt{mount(){const{current:e}=this.node;e&&(this.unmount=ll(e,(n,i)=>(_s(this.node,i,"Start"),(s,{success:o})=>_s(this.node,s,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Cn=new WeakMap,Je=new WeakMap,Oh=t=>{const e=Cn.get(t.target);e&&e(t)},Ih=t=>{t.forEach(Oh)};function jh({root:t,...e}){const n=t||document;Je.has(n)||Je.set(n,{});const i=Je.get(n),s=JSON.stringify(e);return i[s]||(i[s]=new IntersectionObserver(Ih,{root:t,...e})),i[s]}function Fh(t,e,n){const i=jh(e);return Cn.set(t,n),i.observe(t),()=>{Cn.delete(t),i.unobserve(t)}}const Nh={some:0,all:1};class $h extends dt{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:n,margin:i,amount:s="some",once:o}=e,r={root:n?n.current:void 0,rootMargin:i,threshold:typeof s=="number"?s:Nh[s]},a=c=>{const{isIntersecting:u}=c;if(this.isInView===u||(this.isInView=u,o&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:l,onViewportLeave:h}=this.node.getProps(),f=u?l:h;f&&f(c)};return Fh(this.node.current,r,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(Wh(e,n))&&this.startObserver()}unmount(){}}function Wh({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const Uh={inView:{Feature:$h},tap:{Feature:Bh},focus:{Feature:Lh},hover:{Feature:kh}},Kh={layout:{ProjectionNode:To,MeasureLayout:fo}},zh={...Du,...Uh,...Rh,...Kh},wo=zl(zh,su),Gh=t=>{let e;t.center?e="center":t.left?e="left":t.right&&(e="right");let n;return t.uppercase?n="uppercase":t.lowercase?n="lowercase":t.capitalize&&(n="capitalize"),U({marginTop:t.mt,marginBottom:t.mb,flex:t.flex,cursor:t.cursor,wordBreak:t.wordBreak,whiteSpace:t.whiteSpace,textOverflow:t.textOverflow,textDecoration:t.decoration,textAlign:e,textTransform:n,color:t.color})},Hh="_primary_13825_8",Yh="_secondary_13825_12",Xh="_tertiary_13825_16",qh="_positive_13825_20",Zh="_negative_13825_24",Jh="_warning_13825_28",Qh="_accent_13825_32",tf="_inverse_13825_36",ef="_text_13825_111",nf="_regular_13825_117",sf="_medium_13825_121",rf="_semibold_13825_125",of="_bold_13825_129",de={primary:Hh,secondary:Yh,tertiary:Xh,positive:qh,negative:Zh,warning:Jh,accent:Qh,inverse:tf,"title-1":"_title-1_13825_41","title-2":"_title-2_13825_51","title-3":"_title-3_13825_61","headline-1":"_headline-1_13825_76","headline-2":"_headline-2_13825_81","headline-3":"_headline-3_13825_86","body-1":"_body-1_13825_91","body-2":"_body-2_13825_96","caption-1":"_caption-1_13825_101","caption-2":"_caption-2_13825_106",text:ef,regular:nf,medium:sf,semibold:rf,bold:of},ne=T.forwardRef((t,e)=>{const{children:n,className:i,variant:s="body-1",fontWeight:o="medium",tag:r="p",colorName:a="primary",style:c,clickOpacity:u=.5,opacityDuration:l=200,onClick:h,...f}=t,[d,m]=T.useState(!1),g=!!h,x=()=>g&&m(!0),p=()=>g&&m(!1),y=r,v=g?U({opacity:d?u:1,transition:`opacity ${l}ms ease`}):"";return D.jsx(y,{ref:e,...f,className:Xt(de.text,de[s],de[o],de[a],Gh(t),v,i),style:c,onClick:h,onMouseDown:x,onMouseUp:p,onMouseLeave:p,onTouchStart:x,onTouchEnd:p,role:g?"button":void 0,tabIndex:g?0:void 0,children:n})});ne.displayName="Text";const So=wo(ne);function af(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Qe={exports:{}};/*!
2
2
  Copyright (c) 2018 Jed Watson.
3
3
  Licensed under the MIT License (MIT), see
4
4
  http://jedwatson.github.io/classnames
5
- */var Ce;function Lt(){return Ce||(Ce=1,(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var i="",o=0;o<arguments.length;o++){var s=arguments[o];s&&(i=a(i,n(s)))}return i}function n(i){if(typeof i=="string"||typeof i=="number")return i;if(typeof i!="object")return"";if(Array.isArray(i))return r.apply(null,i);if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]"))return i.toString();var o="";for(var s in i)t.call(i,s)&&i[s]&&(o=a(o,s));return o}function a(i,o){return o?i?i+" "+o:i+o:i}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(se)),se.exports}var Dt=Lt();const z=It(Dt);function ae(e,t,r,n=""){if(r)return e[`${t}_${r}${n}`]}function F(e,t,r){return ae(e,t,r,"Size")}const Vt="_button_ke15b_8",Ht="_button_primary_ke15b_17",Ft="_button_secondary_ke15b_20",qt="_button_negative_ke15b_23",Zt="_button_positive_ke15b_26",Kt="_button_warning_ke15b_29",Ut="_button_neutral_ke15b_32",Yt="_button_mdSize_ke15b_92",Xt="_button_smSize_ke15b_102",Jt="_button_xsSize_ke15b_112",ce={button:Vt,button_primary:Ht,button_secondary:Ft,button_negative:qt,button_positive:Zt,button_warning:Kt,button_neutral:Ut,button_mdSize:Yt,button_smSize:Xt,button_xsSize:Jt};function Qt({attr:e,children:t,className:r,type:n="button",color:a="primary",size:i="md",...o}){const s="button";return C.jsx("button",{...e,...o,type:n,className:z(ce[s],r,F(ce,s,i),ae(ce,s,a)),children:t})}const er="_avatar_1oe2p_8",tr="_avatar_primary_1oe2p_22",rr="_avatar_secondary_1oe2p_25",nr="_avatar_negative_1oe2p_28",ar="_avatar_positive_1oe2p_31",ir="_avatar_warning_1oe2p_34",or="_avatar_lgSize_1oe2p_71",sr="_avatar_mdSize_1oe2p_85",cr="_avatar_smSize_1oe2p_99",fe={avatar:er,avatar_primary:tr,avatar_secondary:rr,avatar_negative:nr,avatar_positive:ar,avatar_warning:ir,avatar_lgSize:or,avatar_mdSize:sr,avatar_smSize:cr};function fr({attr:e,children:t,className:r,color:n="primary",size:a="md",...i}){const o="avatar";return C.jsx("div",{...e,...i,className:z(fe[o],r,F(fe,o,a),ae(fe,o,n)),children:t})}const ur=e=>R.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},R.createElement("circle",{cx:12,cy:12,r:10,fill:"currentColor",fillOpacity:.15}),R.createElement("path",{d:"M16 9L10.0337 15L8 12.9548",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),ke=e=>R.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},R.createElement("path",{d:"M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z",fill:"currentColor",fillOpacity:.15}),R.createElement("path",{d:"M12 6C11.4477 6 11 6.44772 11 7V13C11 13.5523 11.4477 14 12 14C12.5523 14 13 13.5523 13 13V7C13 6.44772 12.5523 6 12 6Z",fill:"currentColor"}),R.createElement("path",{d:"M12 15C11.4477 15 11 15.4477 11 16V17C11 17.5523 11.4477 18 12 18C12.5523 18 13 17.5523 13 17V16C13 15.4477 12.5523 15 12 15Z",fill:"currentColor"})),lr=e=>R.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},R.createElement("circle",{cx:12,cy:12,r:10,fill:"currentColor",fillOpacity:.12}),R.createElement("path",{d:"M16 8L8 16M16 16L8 8",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round"})),dr=e=>R.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"black",...e},R.createElement("path",{d:"M12 2V22M19.0711 4.92893L4.92893 19.0711M22 12H2M19.0711 19.0711L4.92893 4.92893",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),hr="_hint_prca1_8",mr="_md_prca1_19",_r="_sm_prca1_24",gr="_icon_prca1_29",br="_content_prca1_40",pr="_title_prca1_46",vr="_subtitle_prca1_50",yr="_disabled_prca1_55",xr="_warning_prca1_60",wr="_solid_prca1_60",Sr="_negative_prca1_65",Cr="_positive_prca1_70",kr="_accent_prca1_75",$r="_neutral_prca1_80",Er="_soft_prca1_85",O={hint:hr,md:mr,sm:_r,icon:gr,content:br,title:pr,subtitle:vr,disabled:yr,warning:xr,solid:wr,negative:Sr,positive:Cr,accent:kr,neutral:$r,soft:Er},Ar={negative:C.jsx(lr,{}),positive:C.jsx(ur,{}),accent:C.jsx(ke,{}),warning:C.jsx(ke,{}),neutral:C.jsx(dr,{})},Or=({title:e,subtitle:t,color:r="warning",variant:n="soft",size:a="md",icon:i,disabled:o=!1,className:s,style:c})=>{const u=i||Ar[r];return C.jsxs("div",{className:z(O.hint,O[r],O[n],O[a],o&&O.disabled,s),style:c,"aria-disabled":o,children:[u&&C.jsx("span",{className:z(O.icon,O[r]),children:u}),C.jsxs("div",{className:O.content,children:[e&&C.jsx(ee,{className:z(O.title,F(O,"title",a)),variant:a==="md"?"body-1":"caption-2",children:e}),t&&C.jsx(ee,{className:z(O.subtitle,F(O,"subtitle",a)),variant:a==="md"?"body-2":"caption-1",children:t})]})]})},Rr="_themeProviderScoped_wynv1_9",jr={themeProviderScoped:Rr};function Pr({className:e,children:t}){return C.jsx("div",{className:z(jr.themeProviderScoped,e),children:t})}exports.Avatar=fr;exports.Box=We;exports.Hint=Or;exports.IconButton=Qt;exports.Text=ee;exports.ThemeProviderScoped=Pr;exports.getSizeClass=F;exports.getStyleClass=ae;
5
+ */var Rs;function cf(){return Rs||(Rs=1,(function(t){(function(){var e={}.hasOwnProperty;function n(){for(var o="",r=0;r<arguments.length;r++){var a=arguments[r];a&&(o=s(o,i(a)))}return o}function i(o){if(typeof o=="string"||typeof o=="number")return o;if(typeof o!="object")return"";if(Array.isArray(o))return n.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var r="";for(var a in o)e.call(o,a)&&o[a]&&(r=s(r,a));return r}function s(o,r){return r?o?o+" "+r:o+r:o}t.exports?(n.default=n,t.exports=n):window.classNames=n})()})(Qe)),Qe.exports}var lf=cf();const xt=af(lf);function Be(t,e,n,i=""){if(n)return t[`${e}_${n}${i}`]}function ie(t,e,n){return Be(t,e,n,"Size")}const uf="_button_ke15b_8",hf="_button_primary_ke15b_17",ff="_button_secondary_ke15b_20",df="_button_negative_ke15b_23",mf="_button_positive_ke15b_26",pf="_button_warning_ke15b_29",gf="_button_neutral_ke15b_32",yf="_button_mdSize_ke15b_92",vf="_button_smSize_ke15b_102",xf="_button_xsSize_ke15b_112",tn={button:uf,button_primary:hf,button_secondary:ff,button_negative:df,button_positive:mf,button_warning:pf,button_neutral:gf,button_mdSize:yf,button_smSize:vf,button_xsSize:xf};function bf({attr:t,children:e,className:n,type:i="button",color:s="primary",size:o="md",...r}){const a="button";return D.jsx("button",{...t,...r,type:i,className:xt(tn[a],n,ie(tn,a,o),Be(tn,a,s)),children:e})}const Tf="_loader_1qleq_8",wf={loader:Tf},Sf=({color:t="var(--text-accent)"})=>D.jsx("span",{className:Xt(wf.loader,U({"--loader-color":t}))}),Pf=U({display:"flex",alignItems:"center",justifyContent:"center",position:"relative",borderRadius:16,height:48,padding:"0 16px",cursor:"pointer",fontSize:16,fontWeight:600,overflow:"hidden",transition:"all 0.2s ease"}),Af={zero:"var(--corner-zero)",xs:"var(--corner-xs)",sm:"var(--corner-sm)",md:"var(--corner-md)",lg:"var(--corner-lg)",xl:"var(--corner-xl)","2xl":"var(--corner-2xl)","3xl":"var(--corner-3xl)","4xl":"var(--corner-4xl)","5xl":"var(--corner-5xl)","6xl":"var(--corner-6xl)","full-round":"var(--corner-full-round)"},Cf={xs:"var(--height-button-xs)",sm:"var(--height-button-sm)",md:"var(--height-button-md)",lg:"var(--height-button-lg)"},Vf={clear:U({backgroundColor:"transparent",border:"none"}),filled:U({backgroundColor:"var(--fill-accent-primary)",color:"white",border:"none"}),outline:U({backgroundColor:"transparent",border:"1px solid var(--border-accent-primary)"})},Mf=(t,e,n,i)=>{if(i)return U({cursor:"not-allowed",opacity:.7});const s={transition:"all 0.2s ease",borderRadius:"var(--corner-lg)",border:"none",color:t==="filled"?"var(--text-inverse)":`var(--text-${e})`};switch(t){case"filled":return U({...s,backgroundColor:`var(--fill-${e}-${n})`,":hover":{backgroundColor:`var(--fill-${e}-${n}-hover)`},":active":{backgroundColor:`var(--fill-${e}-${n}-hover)`}});case"outline":return U({...s,backgroundColor:"transparent",border:`1px solid var(--border-${e}-${n})`,":hover":{backgroundColor:`var(--fill-${e}-secondary-hover)`},":active":{backgroundColor:`var(--fill-${e}-secondary-hover)`}});case"clear":return U({...s,backgroundColor:"transparent",":hover":{backgroundColor:`var(--fill-${e}-secondary-hover)`},":active":{backgroundColor:`var(--fill-${e}-secondary-hover)`}});default:return U(s)}},Df=({disabled:t,loading:e,onClick:n,wrapperClassName:i,buttonClassName:s,buttonDisabledClassName:o,textClassName:r,children:a,variant:c="filled",backgroundColor:u,textColor:l,borderColor:h,color:f="accent",borderRadius:d="lg",width:m="full",size:g="md",iconLeft:x,iconRight:p,intensity:y="primary",...v})=>{const P=T.useMemo(()=>{switch(m){case"full":return"100%";case"auto":return"auto";default:return m}},[m]),b=T.useMemo(()=>u||(c==="filled"?`var(--fill-${f}-${y})`:"transparent"),[c,t,u,f,y]),A=T.useMemo(()=>{if(l)return l;if(y==="primary"){if(f==="neutral")return"var(--text-secondary)";if(c==="filled")return"var(--text-inverse)"}return`var(--text-${f}, #111)`},[c,t,l,f,y]),S=T.useMemo(()=>h||(c==="outline"?`var(--border-${f}-${y})`:"transparent"),[c,h,f,y]),C=Xt(Pf,Mf(c,f,y,t),Vf[c],s,t?o:void 0,U({borderRadius:Af[d],backgroundColor:b,borderColor:S,color:A,width:"100%",height:Cf[g],opacity:t?.7:1})),F=T.useMemo(()=>{switch(g){case"lg":case"md":return"body-1";case"sm":case"xs":return"body-2";default:return"body-1"}},[g]);return D.jsx(Se,{className:Xt(i),w:P,children:D.jsx(wo.button,{whileTap:!t&&!e?{scale:.99,boxShadow:"inset 0 0 0 10000px rgba(0,0,0,0.1)",transition:{duration:0}}:{},className:C,disabled:t||e,onClick:n,...v,children:e?D.jsx(Sf,{color:A}):D.jsxs(Se,{row:!0,alignItems:"center",gap:8,children:[x,D.jsx(So,{children:a,color:A,variant:F,className:r}),p]})})})},Ef="_avatar_1oe2p_8",_f="_avatar_primary_1oe2p_22",Rf="_avatar_secondary_1oe2p_25",kf="_avatar_negative_1oe2p_28",Lf="_avatar_positive_1oe2p_31",Bf="_avatar_warning_1oe2p_34",Of="_avatar_lgSize_1oe2p_71",If="_avatar_mdSize_1oe2p_85",jf="_avatar_smSize_1oe2p_99",en={avatar:Ef,avatar_primary:_f,avatar_secondary:Rf,avatar_negative:kf,avatar_positive:Lf,avatar_warning:Bf,avatar_lgSize:Of,avatar_mdSize:If,avatar_smSize:jf};function Ff({attr:t,children:e,className:n,color:i="primary",size:s="md",...o}){const r="avatar";return D.jsx("div",{...t,...o,className:xt(en[r],n,ie(en,r,s),Be(en,r,i)),children:e})}const Nf=t=>J.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},J.createElement("circle",{cx:12,cy:12,r:10,fill:"currentColor",fillOpacity:.15}),J.createElement("path",{d:"M16 9L10.0337 15L8 12.9548",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),ks=t=>J.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},J.createElement("path",{d:"M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z",fill:"currentColor",fillOpacity:.15}),J.createElement("path",{d:"M12 6C11.4477 6 11 6.44772 11 7V13C11 13.5523 11.4477 14 12 14C12.5523 14 13 13.5523 13 13V7C13 6.44772 12.5523 6 12 6Z",fill:"currentColor"}),J.createElement("path",{d:"M12 15C11.4477 15 11 15.4477 11 16V17C11 17.5523 11.4477 18 12 18C12.5523 18 13 17.5523 13 17V16C13 15.4477 12.5523 15 12 15Z",fill:"currentColor"})),$f=t=>J.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},J.createElement("circle",{cx:12,cy:12,r:10,fill:"currentColor",fillOpacity:.12}),J.createElement("path",{d:"M16 8L8 16M16 16L8 8",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round"})),Wf=t=>J.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"black",...t},J.createElement("path",{d:"M12 2V22M19.0711 4.92893L4.92893 19.0711M22 12H2M19.0711 19.0711L4.92893 4.92893",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),Uf="_hint_prca1_8",Kf="_md_prca1_19",zf="_sm_prca1_24",Gf="_icon_prca1_29",Hf="_content_prca1_40",Yf="_title_prca1_46",Xf="_subtitle_prca1_50",qf="_disabled_prca1_55",Zf="_warning_prca1_60",Jf="_solid_prca1_60",Qf="_negative_prca1_65",td="_positive_prca1_70",ed="_accent_prca1_75",nd="_neutral_prca1_80",id="_soft_prca1_85",q={hint:Uf,md:Kf,sm:zf,icon:Gf,content:Hf,title:Yf,subtitle:Xf,disabled:qf,warning:Zf,solid:Jf,negative:Qf,positive:td,accent:ed,neutral:nd,soft:id},sd={negative:D.jsx($f,{}),positive:D.jsx(Nf,{}),accent:D.jsx(ks,{}),warning:D.jsx(ks,{}),neutral:D.jsx(Wf,{})},rd=({title:t,subtitle:e,color:n="warning",variant:i="soft",size:s="md",icon:o,disabled:r=!1,className:a,style:c})=>{const u=o||sd[n];return D.jsxs("div",{className:xt(q.hint,q[n],q[i],q[s],r&&q.disabled,a),style:c,"aria-disabled":r,children:[u&&D.jsx("span",{className:xt(q.icon,q[n]),children:u}),D.jsxs("div",{className:q.content,children:[t&&D.jsx(ne,{className:xt(q.title,ie(q,"title",s)),variant:s==="md"?"body-1":"caption-2",children:t}),e&&D.jsx(ne,{className:xt(q.subtitle,ie(q,"subtitle",s)),variant:s==="md"?"body-2":"caption-1",children:e})]})]})},od="_themeProviderScoped_lgr9z_9",ad={themeProviderScoped:od};function cd({className:t,children:e,theme:n}){return D.jsx("div",{className:xt(ad.themeProviderScoped,t),"data-theme":n,children:e})}exports.AnimatedText=So;exports.Avatar=Ff;exports.Box=Se;exports.Button=Df;exports.Hint=rd;exports.IconButton=bf;exports.Text=ne;exports.ThemeProviderScoped=cd;exports.getSizeClass=ie;exports.getStyleClass=Be;
6
6
  //# sourceMappingURL=ui-kit.cjs.js.map