@ukpc-lib/react 0.0.4 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Topbar/index.d.ts +4 -1
- package/dist/components/index.cjs +4 -4
- package/dist/components/index.js +1160 -1209
- package/dist/index.css +1 -1
- package/dist/share/index.cjs +1 -1
- package/dist/share/index.js +1 -1
- package/package.json +4 -4
- package/web-components-bundle/global-menu/index.cjs +9 -9
- package/web-components-bundle/global-menu/index.js +2405 -2624
- package/web-components-bundle/global-topbar/index.cjs +2 -2
- package/web-components-bundle/global-topbar/index.js +30 -26
- package/web-components-bundle/{index-8efa71fb.cjs → index-2a824d74.cjs} +9 -9
- package/web-components-bundle/{index-8f10a282.js → index-f1edf829.js} +812 -859
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
"use strict";const g=require("../index-8efa71fb.cjs");var $r={},Oo={exports:{}};(function(t){function e(n){return n&&n.__esModule?n:{default:n}}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports})(Oo);var Nr=Oo.exports,Xn={};function O(){return O=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},O.apply(this,arguments)}function Vt(t){if(typeof t!="object"||t===null)return!1;const e=Object.getPrototypeOf(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)}function ko(t){if(!Vt(t))return t;const e={};return Object.keys(t).forEach(n=>{e[n]=ko(t[n])}),e}function ft(t,e,n={clone:!0}){const r=n.clone?O({},t):t;return Vt(t)&&Vt(e)&&Object.keys(e).forEach(s=>{s!=="__proto__"&&(Vt(e[s])&&s in t&&Vt(t[s])?r[s]=ft(t[s],e[s],n):n.clone?r[s]=Vt(e[s])?ko(e[s]):e[s]:r[s]=e[s])}),r}function re(t){let e="https://mui.com/production-error/?code="+t;for(let n=1;n<arguments.length;n+=1)e+="&args[]="+encodeURIComponent(arguments[n]);return"Minified MUI error #"+t+"; visit "+e+" for the full message."}function gt(t){if(typeof t!="string")throw new Error(re(7));return t.charAt(0).toUpperCase()+t.slice(1)}function cl(...t){return t.reduce((e,n)=>n==null?e:function(...s){e.apply(this,s),n.apply(this,s)},()=>{})}function ll(t,e=166){let n;function r(...s){const o=()=>{t.apply(this,s)};clearTimeout(n),n=setTimeout(o,e)}return r.clear=()=>{clearTimeout(n)},r}function ul(t,e){return()=>null}function fl(t,e){var n,r;return g.reactExports.isValidElement(t)&&e.indexOf((n=t.type.muiName)!=null?n:(r=t.type)==null||(r=r._payload)==null||(r=r.value)==null?void 0:r.muiName)!==-1}function Vo(t){return t&&t.ownerDocument||document}function dl(t){return Vo(t).defaultView||window}function hl(t,e){return()=>null}function Mo(t,e){typeof t=="function"?t(e):t&&(t.current=e)}const pl=typeof window<"u"?g.reactExports.useLayoutEffect:g.reactExports.useEffect,Do=pl;let Bs=0;function ml(t){const[e,n]=g.reactExports.useState(t),r=t||e;return g.reactExports.useEffect(()=>{e==null&&(Bs+=1,n(`mui-${Bs}`))},[e]),r}const Fs=g.React["useId".toString()];function gl(t){if(Fs!==void 0){const e=Fs();return t??e}return ml(t)}function yl(t,e,n,r,s){return null}function xl({controlled:t,default:e,name:n,state:r="value"}){const{current:s}=g.reactExports.useRef(t!==void 0),[o,i]=g.reactExports.useState(e),a=s?t:o,c=g.reactExports.useCallback(l=>{s||i(l)},[]);return[a,c]}function bl(t){const e=g.reactExports.useRef(t);return Do(()=>{e.current=t}),g.reactExports.useRef((...n)=>(0,e.current)(...n)).current}function vl(...t){return g.reactExports.useMemo(()=>t.every(e=>e==null)?null:e=>{t.forEach(n=>{Mo(n,e)})},t)}let wn=!0,gr=!1,Is;const Sl={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function wl(t){const{type:e,tagName:n}=t;return!!(n==="INPUT"&&Sl[e]&&!t.readOnly||n==="TEXTAREA"&&!t.readOnly||t.isContentEditable)}function Pl(t){t.metaKey||t.altKey||t.ctrlKey||(wn=!0)}function Yn(){wn=!1}function Tl(){this.visibilityState==="hidden"&&gr&&(wn=!0)}function El(t){t.addEventListener("keydown",Pl,!0),t.addEventListener("mousedown",Yn,!0),t.addEventListener("pointerdown",Yn,!0),t.addEventListener("touchstart",Yn,!0),t.addEventListener("visibilitychange",Tl,!0)}function Cl(t){const{target:e}=t;try{return e.matches(":focus-visible")}catch{}return wn||wl(e)}function Al(){const t=g.reactExports.useCallback(s=>{s!=null&&El(s.ownerDocument)},[]),e=g.reactExports.useRef(!1);function n(){return e.current?(gr=!0,window.clearTimeout(Is),Is=window.setTimeout(()=>{gr=!1},100),e.current=!1,!0):!1}function r(s){return Cl(s)?(e.current=!0,!0):!1}return{isFocusVisibleRef:e,onFocus:r,onBlur:n,ref:t}}function Lo(t,e){const n=O({},e);return Object.keys(t).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=O({},t[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const s=t[r]||{},o=e[r];n[r]={},!o||!Object.keys(o)?n[r]=s:!s||!Object.keys(s)?n[r]=o:(n[r]=O({},o),Object.keys(s).forEach(i=>{n[r][i]=Lo(s[i],o[i])}))}else n[r]===void 0&&(n[r]=t[r])}),n}function Rl(t,e,n=void 0){const r={};return Object.keys(t).forEach(s=>{r[s]=t[s].reduce((o,i)=>{if(i){const a=e(i);a!==""&&o.push(a),n&&n[i]&&o.push(n[i])}return o},[]).join(" ")}),r}const _s=t=>t,Ol=()=>{let t=_s;return{configure(e){t=e},generate(e){return t(e)},reset(){t=_s}}},kl=Ol(),jo=kl,Vl={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Bo(t,e,n="Mui"){const r=Vl[e];return r?`${n}-${r}`:`${jo.generate(t)}-${e}`}function Ml(t,e,n="Mui"){const r={};return e.forEach(s=>{r[s]=Bo(t,s,n)}),r}function Ct(t,e){if(t==null)return{};var n={},r=Object.keys(t),s,o;for(o=0;o<r.length;o++)s=r[o],!(e.indexOf(s)>=0)&&(n[s]=t[s]);return n}function Fo(t){var e,n,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t)){var s=t.length;for(e=0;e<s;e++)t[e]&&(n=Fo(t[e]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}function Dl(){for(var t,e,n=0,r="",s=arguments.length;n<s;n++)(t=arguments[n])&&(e=Fo(t))&&(r&&(r+=" "),r+=e);return r}function Io(t){var e=Object.create(null);return function(n){return e[n]===void 0&&(e[n]=t(n)),e[n]}}var Ll=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,jl=Io(function(t){return Ll.test(t)||t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)<91});function Bl(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 Fl(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 Il=function(){function t(n){var r=this;this._insertTag=function(s){var o;r.tags.length===0?r.insertionPoint?o=r.insertionPoint.nextSibling:r.prepend?o=r.container.firstChild:o=r.before:o=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(s,o),r.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(r){r.forEach(this._insertTag)},e.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Fl(this));var s=this.tags[this.tags.length-1];if(this.isSpeedy){var o=Bl(s);try{o.insertRule(r,o.cssRules.length)}catch{}}else s.appendChild(document.createTextNode(r));this.ctr++},e.flush=function(){this.tags.forEach(function(r){return r.parentNode&&r.parentNode.removeChild(r)}),this.tags=[],this.ctr=0},t}(),Y="-ms-",an="-moz-",V="-webkit-",_o="comm",Ur="rule",zr="decl",_l="@import",$o="@keyframes",$l="@layer",Nl=Math.abs,Pn=String.fromCharCode,Ul=Object.assign;function zl(t,e){return X(t,0)^45?(((e<<2^X(t,0))<<2^X(t,1))<<2^X(t,2))<<2^X(t,3):0}function No(t){return t.trim()}function Hl(t,e){return(t=e.exec(t))?t[0]:t}function M(t,e,n){return t.replace(e,n)}function yr(t,e){return t.indexOf(e)}function X(t,e){return t.charCodeAt(e)|0}function Ce(t,e,n){return t.slice(e,n)}function ht(t){return t.length}function Hr(t){return t.length}function We(t,e){return e.push(t),t}function Wl(t,e){return t.map(e).join("")}var Tn=1,se=1,Uo=0,tt=0,K=0,le="";function En(t,e,n,r,s,o,i){return{value:t,root:e,parent:n,type:r,props:s,children:o,line:Tn,column:se,length:i,return:""}}function me(t,e){return Ul(En("",null,null,"",null,null,0),t,{length:-t.length},e)}function Kl(){return K}function Gl(){return K=tt>0?X(le,--tt):0,se--,K===10&&(se=1,Tn--),K}function rt(){return K=tt<Uo?X(le,tt++):0,se++,K===10&&(se=1,Tn++),K}function yt(){return X(le,tt)}function Ye(){return tt}function je(t,e){return Ce(le,t,e)}function Ae(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 zo(t){return Tn=se=1,Uo=ht(le=t),tt=0,[]}function Ho(t){return le="",t}function Je(t){return No(je(tt-1,xr(t===91?t+2:t===40?t+1:t)))}function ql(t){for(;(K=yt())&&K<33;)rt();return Ae(t)>2||Ae(K)>3?"":" "}function Xl(t,e){for(;--e&&rt()&&!(K<48||K>102||K>57&&K<65||K>70&&K<97););return je(t,Ye()+(e<6&&yt()==32&&rt()==32))}function xr(t){for(;rt();)switch(K){case t:return tt;case 34:case 39:t!==34&&t!==39&&xr(K);break;case 40:t===41&&xr(t);break;case 92:rt();break}return tt}function Yl(t,e){for(;rt()&&t+K!==47+10;)if(t+K===42+42&&yt()===47)break;return"/*"+je(e,tt-1)+"*"+Pn(t===47?t:rt())}function Jl(t){for(;!Ae(yt());)rt();return je(t,tt)}function Zl(t){return Ho(Ze("",null,null,null,[""],t=zo(t),0,[0],t))}function Ze(t,e,n,r,s,o,i,a,c){for(var l=0,f=0,u=i,d=0,m=0,p=0,h=1,y=1,b=1,v=0,x="",w=s,P=o,E=r,T=x;y;)switch(p=v,v=rt()){case 40:if(p!=108&&X(T,u-1)==58){yr(T+=M(Je(v),"&","&\f"),"&\f")!=-1&&(b=-1);break}case 34:case 39:case 91:T+=Je(v);break;case 9:case 10:case 13:case 32:T+=ql(p);break;case 92:T+=Xl(Ye()-1,7);continue;case 47:switch(yt()){case 42:case 47:We(Ql(Yl(rt(),Ye()),e,n),c);break;default:T+="/"}break;case 123*h:a[l++]=ht(T)*b;case 125*h:case 59:case 0:switch(v){case 0:case 125:y=0;case 59+f:b==-1&&(T=M(T,/\f/g,"")),m>0&&ht(T)-u&&We(m>32?Ns(T+";",r,n,u-1):Ns(M(T," ","")+";",r,n,u-2),c);break;case 59:T+=";";default:if(We(E=$s(T,e,n,l,f,s,a,x,w=[],P=[],u),o),v===123)if(f===0)Ze(T,e,E,E,w,o,u,a,P);else switch(d===99&&X(T,3)===110?100:d){case 100:case 108:case 109:case 115:Ze(t,E,E,r&&We($s(t,E,E,0,0,s,a,x,s,w=[],u),P),s,P,u,a,r?w:P);break;default:Ze(T,E,E,E,[""],P,0,a,P)}}l=f=m=0,h=b=1,x=T="",u=i;break;case 58:u=1+ht(T),m=p;default:if(h<1){if(v==123)--h;else if(v==125&&h++==0&&Gl()==125)continue}switch(T+=Pn(v),v*h){case 38:b=f>0?1:(T+="\f",-1);break;case 44:a[l++]=(ht(T)-1)*b,b=1;break;case 64:yt()===45&&(T+=Je(rt())),d=yt(),f=u=ht(x=T+=Jl(Ye())),v++;break;case 45:p===45&&ht(T)==2&&(h=0)}}return o}function $s(t,e,n,r,s,o,i,a,c,l,f){for(var u=s-1,d=s===0?o:[""],m=Hr(d),p=0,h=0,y=0;p<r;++p)for(var b=0,v=Ce(t,u+1,u=Nl(h=i[p])),x=t;b<m;++b)(x=No(h>0?d[b]+" "+v:M(v,/&\f/g,d[b])))&&(c[y++]=x);return En(t,e,n,s===0?Ur:a,c,l,f)}function Ql(t,e,n){return En(t,e,n,_o,Pn(Kl()),Ce(t,2,-2),0)}function Ns(t,e,n,r){return En(t,e,n,zr,Ce(t,0,r),Ce(t,r+1,-1),r)}function ee(t,e){for(var n="",r=Hr(t),s=0;s<r;s++)n+=e(t[s],s,t,e)||"";return n}function tu(t,e,n,r){switch(t.type){case $l:if(t.children.length)break;case _l:case zr:return t.return=t.return||t.value;case _o:return"";case $o:return t.return=t.value+"{"+ee(t.children,r)+"}";case Ur:t.value=t.props.join(",")}return ht(n=ee(t.children,r))?t.return=t.value+"{"+n+"}":""}function eu(t){var e=Hr(t);return function(n,r,s,o){for(var i="",a=0;a<e;a++)i+=t[a](n,r,s,o)||"";return i}}function nu(t){return function(e){e.root||(e=e.return)&&t(e)}}var ru=function(e,n,r){for(var s=0,o=0;s=o,o=yt(),s===38&&o===12&&(n[r]=1),!Ae(o);)rt();return je(e,tt)},su=function(e,n){var r=-1,s=44;do switch(Ae(s)){case 0:s===38&&yt()===12&&(n[r]=1),e[r]+=ru(tt-1,n,r);break;case 2:e[r]+=Je(s);break;case 4:if(s===44){e[++r]=yt()===58?"&\f":"",n[r]=e[r].length;break}default:e[r]+=Pn(s)}while(s=rt());return e},iu=function(e,n){return Ho(su(zo(e),n))},Us=new WeakMap,ou=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var n=e.value,r=e.parent,s=e.column===r.column&&e.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(e.props.length===1&&n.charCodeAt(0)!==58&&!Us.get(r))&&!s){Us.set(e,!0);for(var o=[],i=iu(n,o),a=r.props,c=0,l=0;c<i.length;c++)for(var f=0;f<a.length;f++,l++)e.props[l]=o[c]?i[c].replace(/&\f/g,a[f]):a[f]+" "+i[c]}}},au=function(e){if(e.type==="decl"){var n=e.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(e.return="",e.value="")}};function Wo(t,e){switch(zl(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+an+t+Y+t+t;case 6828:case 4268:return V+t+Y+t+t;case 6165:return V+t+Y+"flex-"+t+t;case 5187:return V+t+M(t,/(\w+).+(:[^]+)/,V+"box-$1$2"+Y+"flex-$1$2")+t;case 5443:return V+t+Y+"flex-item-"+M(t,/flex-|-self/,"")+t;case 4675:return V+t+Y+"flex-line-pack"+M(t,/align-content|flex-|-self/,"")+t;case 5548:return V+t+Y+M(t,"shrink","negative")+t;case 5292:return V+t+Y+M(t,"basis","preferred-size")+t;case 6060:return V+"box-"+M(t,"-grow","")+V+t+Y+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"+Y+"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(ht(t)-1-e>6)switch(X(t,e+1)){case 109:if(X(t,e+4)!==45)break;case 102:return M(t,/(.+:)(.+)-([^]+)/,"$1"+V+"$2-$3$1"+an+(X(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~yr(t,"stretch")?Wo(M(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(X(t,e+1)!==115)break;case 6444:switch(X(t,ht(t)-3-(~yr(t,"!important")&&10))){case 107:return M(t,":",":"+V)+t;case 101:return M(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+V+(X(t,14)===45?"inline-":"")+"box$3$1"+V+"$2$3$1"+Y+"$2box$3")+t}break;case 5936:switch(X(t,e+11)){case 114:return V+t+Y+M(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return V+t+Y+M(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return V+t+Y+M(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return V+t+Y+t+t}return t}var cu=function(e,n,r,s){if(e.length>-1&&!e.return)switch(e.type){case zr:e.return=Wo(e.value,e.length);break;case $o:return ee([me(e,{value:M(e.value,"@","@"+V)})],s);case Ur:if(e.length)return Wl(e.props,function(o){switch(Hl(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ee([me(e,{props:[M(o,/:(read-\w+)/,":"+an+"$1")]})],s);case"::placeholder":return ee([me(e,{props:[M(o,/:(plac\w+)/,":"+V+"input-$1")]}),me(e,{props:[M(o,/:(plac\w+)/,":"+an+"$1")]}),me(e,{props:[M(o,/:(plac\w+)/,Y+"input-$1")]})],s)}return""})}},lu=[cu],uu=function(e){var n=e.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(h){var y=h.getAttribute("data-emotion");y.indexOf(" ")!==-1&&(document.head.appendChild(h),h.setAttribute("data-s",""))})}var s=e.stylisPlugins||lu,o={},i,a=[];i=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(h){for(var y=h.getAttribute("data-emotion").split(" "),b=1;b<y.length;b++)o[y[b]]=!0;a.push(h)});var c,l=[ou,au];{var f,u=[tu,nu(function(h){f.insert(h)})],d=eu(l.concat(s,u)),m=function(y){return ee(Zl(y),d)};c=function(y,b,v,x){f=v,m(y?y+"{"+b.styles+"}":b.styles),x&&(p.inserted[b.name]=!0)}}var p={key:n,sheet:new Il({key:n,container:i,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:o,registered:{},insert:c};return p.sheet.hydrate(a),p},fu=!0;function du(t,e,n){var r="";return n.split(" ").forEach(function(s){t[s]!==void 0?e.push(t[s]+";"):r+=s+" "}),r}var Ko=function(e,n,r){var s=e.key+"-"+n.name;(r===!1||fu===!1)&&e.registered[s]===void 0&&(e.registered[s]=n.styles)},hu=function(e,n,r){Ko(e,n,r);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 pu(t){for(var e=0,n,r=0,s=t.length;s>=4;++r,s-=4)n=t.charCodeAt(r)&255|(t.charCodeAt(++r)&255)<<8|(t.charCodeAt(++r)&255)<<16|(t.charCodeAt(++r)&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(r+2)&255)<<16;case 2:e^=(t.charCodeAt(r+1)&255)<<8;case 1:e^=t.charCodeAt(r)&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 mu={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},gu=/[A-Z]|^ms/g,yu=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Go=function(e){return e.charCodeAt(1)===45},zs=function(e){return e!=null&&typeof e!="boolean"},Jn=Io(function(t){return Go(t)?t:t.replace(gu,"-$&").toLowerCase()}),Hs=function(e,n){switch(e){case"animation":case"animationName":if(typeof n=="string")return n.replace(yu,function(r,s,o){return pt={name:s,styles:o,next:pt},s})}return mu[e]!==1&&!Go(e)&&typeof n=="number"&&n!==0?n+"px":n};function Re(t,e,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return pt={name:n.name,styles:n.styles,next:pt},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)pt={name:r.name,styles:r.styles,next:pt},r=r.next;var s=n.styles+";";return s}return xu(t,e,n)}case"function":{if(t!==void 0){var o=pt,i=n(t);return pt=o,Re(t,e,i)}break}}if(e==null)return n;var a=e[n];return a!==void 0?a:n}function xu(t,e,n){var r="";if(Array.isArray(n))for(var s=0;s<n.length;s++)r+=Re(t,e,n[s])+";";else for(var o in n){var i=n[o];if(typeof i!="object")e!=null&&e[i]!==void 0?r+=o+"{"+e[i]+"}":zs(i)&&(r+=Jn(o)+":"+Hs(o,i)+";");else if(Array.isArray(i)&&typeof i[0]=="string"&&(e==null||e[i[0]]===void 0))for(var a=0;a<i.length;a++)zs(i[a])&&(r+=Jn(o)+":"+Hs(o,i[a])+";");else{var c=Re(t,e,i);switch(o){case"animation":case"animationName":{r+=Jn(o)+":"+c+";";break}default:r+=o+"{"+c+"}"}}}return r}var Ws=/label:\s*([^\s;\n{]+)\s*(;|$)/g,pt,bu=function(e,n,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var s=!0,o="";pt=void 0;var i=e[0];i==null||i.raw===void 0?(s=!1,o+=Re(r,n,i)):o+=i[0];for(var a=1;a<e.length;a++)o+=Re(r,n,e[a]),s&&(o+=i[a]);Ws.lastIndex=0;for(var c="",l;(l=Ws.exec(o))!==null;)c+="-"+l[1];var f=pu(o)+c;return{name:f,styles:o,next:pt}},vu=function(e){return e()},Su=g.React["useInsertionEffect"]?g.React["useInsertionEffect"]:!1,wu=Su||vu,qo=g.reactExports.createContext(typeof HTMLElement<"u"?uu({key:"css"}):null);qo.Provider;var Pu=function(e){return g.reactExports.forwardRef(function(n,r){var s=g.reactExports.useContext(qo);return e(n,s,r)})},Xo=g.reactExports.createContext({}),Tu=jl,Eu=function(e){return e!=="theme"},Ks=function(e){return typeof e=="string"&&e.charCodeAt(0)>96?Tu:Eu},Gs=function(e,n,r){var s;if(n){var o=n.shouldForwardProp;s=e.__emotion_forwardProp&&o?function(i){return e.__emotion_forwardProp(i)&&o(i)}:o}return typeof s!="function"&&r&&(s=e.__emotion_forwardProp),s},Cu=function(e){var n=e.cache,r=e.serialized,s=e.isStringTag;return Ko(n,r,s),wu(function(){return hu(n,r,s)}),null},Au=function t(e,n){var r=e.__emotion_real===e,s=r&&e.__emotion_base||e,o,i;n!==void 0&&(o=n.label,i=n.target);var a=Gs(e,n,r),c=a||Ks(s),l=!c("as");return function(){var f=arguments,u=r&&e.__emotion_styles!==void 0?e.__emotion_styles.slice(0):[];if(o!==void 0&&u.push("label:"+o+";"),f[0]==null||f[0].raw===void 0)u.push.apply(u,f);else{u.push(f[0][0]);for(var d=f.length,m=1;m<d;m++)u.push(f[m],f[0][m])}var p=Pu(function(h,y,b){var v=l&&h.as||s,x="",w=[],P=h;if(h.theme==null){P={};for(var E in h)P[E]=h[E];P.theme=g.reactExports.useContext(Xo)}typeof h.className=="string"?x=du(y.registered,w,h.className):h.className!=null&&(x=h.className+" ");var T=bu(u.concat(w),y.registered,P);x+=y.key+"-"+T.name,i!==void 0&&(x+=" "+i);var R=l&&a===void 0?Ks(v):c,D={};for(var A in h)l&&A==="as"||R(A)&&(D[A]=h[A]);return D.className=x,D.ref=b,g.reactExports.createElement(g.reactExports.Fragment,null,g.reactExports.createElement(Cu,{cache:y,serialized:T,isStringTag:typeof v=="string"}),g.reactExports.createElement(v,D))});return p.displayName=o!==void 0?o:"Styled("+(typeof s=="string"?s:s.displayName||s.name||"Component")+")",p.defaultProps=e.defaultProps,p.__emotion_real=p,p.__emotion_base=s,p.__emotion_styles=u,p.__emotion_forwardProp=a,Object.defineProperty(p,"toString",{value:function(){return"."+i}}),p.withComponent=function(h,y){return t(h,O({},n,y,{shouldForwardProp:Gs(p,y,!0)})).apply(void 0,u)},p}},Ru=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],br=Au.bind();Ru.forEach(function(t){br[t]=br(t)});/**
|
|
1
|
+
"use strict";const g=require("../index-2a824d74.cjs");var jr={},Po={exports:{}};(function(t){function e(n){return n&&n.__esModule?n:{default:n}}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports})(Po);var Fr=Po.exports,zn={};function O(){return O=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},O.apply(this,arguments)}function Vt(t){if(typeof t!="object"||t===null)return!1;const e=Object.getPrototypeOf(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)}function To(t){if(!Vt(t))return t;const e={};return Object.keys(t).forEach(n=>{e[n]=To(t[n])}),e}function ft(t,e,n={clone:!0}){const r=n.clone?O({},t):t;return Vt(t)&&Vt(e)&&Object.keys(e).forEach(s=>{s!=="__proto__"&&(Vt(e[s])&&s in t&&Vt(t[s])?r[s]=ft(t[s],e[s],n):n.clone?r[s]=Vt(e[s])?To(e[s]):e[s]:r[s]=e[s])}),r}function ne(t){let e="https://mui.com/production-error/?code="+t;for(let n=1;n<arguments.length;n+=1)e+="&args[]="+encodeURIComponent(arguments[n]);return"Minified MUI error #"+t+"; visit "+e+" for the full message."}function mt(t){if(typeof t!="string")throw new Error(ne(7));return t.charAt(0).toUpperCase()+t.slice(1)}function rl(...t){return t.reduce((e,n)=>n==null?e:function(...s){e.apply(this,s),n.apply(this,s)},()=>{})}function sl(t,e=166){let n;function r(...s){const o=()=>{t.apply(this,s)};clearTimeout(n),n=setTimeout(o,e)}return r.clear=()=>{clearTimeout(n)},r}function il(t,e){return()=>null}function ol(t,e){var n,r;return g.reactExports.isValidElement(t)&&e.indexOf((n=t.type.muiName)!=null?n:(r=t.type)==null||(r=r._payload)==null||(r=r.value)==null?void 0:r.muiName)!==-1}function Eo(t){return t&&t.ownerDocument||document}function al(t){return Eo(t).defaultView||window}function cl(t,e){return()=>null}function Co(t,e){typeof t=="function"?t(e):t&&(t.current=e)}const ll=typeof window<"u"?g.reactExports.useLayoutEffect:g.reactExports.useEffect,Ao=ll;let Vs=0;function ul(t){const[e,n]=g.reactExports.useState(t),r=t||e;return g.reactExports.useEffect(()=>{e==null&&(Vs+=1,n(`mui-${Vs}`))},[e]),r}const Ms=g.React["useId".toString()];function fl(t){if(Ms!==void 0){const e=Ms();return t??e}return ul(t)}function dl(t,e,n,r,s){return null}function hl({controlled:t,default:e,name:n,state:r="value"}){const{current:s}=g.reactExports.useRef(t!==void 0),[o,i]=g.reactExports.useState(e),a=s?t:o,c=g.reactExports.useCallback(l=>{s||i(l)},[]);return[a,c]}function pl(t){const e=g.reactExports.useRef(t);return Ao(()=>{e.current=t}),g.reactExports.useRef((...n)=>(0,e.current)(...n)).current}function ml(...t){return g.reactExports.useMemo(()=>t.every(e=>e==null)?null:e=>{t.forEach(n=>{Co(n,e)})},t)}let xn=!0,ur=!1,Ds;const gl={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function yl(t){const{type:e,tagName:n}=t;return!!(n==="INPUT"&&gl[e]&&!t.readOnly||n==="TEXTAREA"&&!t.readOnly||t.isContentEditable)}function xl(t){t.metaKey||t.altKey||t.ctrlKey||(xn=!0)}function Wn(){xn=!1}function bl(){this.visibilityState==="hidden"&&ur&&(xn=!0)}function vl(t){t.addEventListener("keydown",xl,!0),t.addEventListener("mousedown",Wn,!0),t.addEventListener("pointerdown",Wn,!0),t.addEventListener("touchstart",Wn,!0),t.addEventListener("visibilitychange",bl,!0)}function Sl(t){const{target:e}=t;try{return e.matches(":focus-visible")}catch{}return xn||yl(e)}function wl(){const t=g.reactExports.useCallback(s=>{s!=null&&vl(s.ownerDocument)},[]),e=g.reactExports.useRef(!1);function n(){return e.current?(ur=!0,window.clearTimeout(Ds),Ds=window.setTimeout(()=>{ur=!1},100),e.current=!1,!0):!1}function r(s){return Sl(s)?(e.current=!0,!0):!1}return{isFocusVisibleRef:e,onFocus:r,onBlur:n,ref:t}}function Ro(t,e){const n=O({},e);return Object.keys(t).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=O({},t[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const s=t[r]||{},o=e[r];n[r]={},!o||!Object.keys(o)?n[r]=s:!s||!Object.keys(s)?n[r]=o:(n[r]=O({},o),Object.keys(s).forEach(i=>{n[r][i]=Ro(s[i],o[i])}))}else n[r]===void 0&&(n[r]=t[r])}),n}function Pl(t,e,n=void 0){const r={};return Object.keys(t).forEach(s=>{r[s]=t[s].reduce((o,i)=>{if(i){const a=e(i);a!==""&&o.push(a),n&&n[i]&&o.push(n[i])}return o},[]).join(" ")}),r}const Ls=t=>t,Tl=()=>{let t=Ls;return{configure(e){t=e},generate(e){return t(e)},reset(){t=Ls}}},El=Tl(),Oo=El,Cl={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function ko(t,e,n="Mui"){const r=Cl[e];return r?`${n}-${r}`:`${Oo.generate(t)}-${e}`}function Al(t,e,n="Mui"){const r={};return e.forEach(s=>{r[s]=ko(t,s,n)}),r}function Ct(t,e){if(t==null)return{};var n={},r=Object.keys(t),s,o;for(o=0;o<r.length;o++)s=r[o],!(e.indexOf(s)>=0)&&(n[s]=t[s]);return n}function Vo(t){var e,n,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t)){var s=t.length;for(e=0;e<s;e++)t[e]&&(n=Vo(t[e]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}function Rl(){for(var t,e,n=0,r="",s=arguments.length;n<s;n++)(t=arguments[n])&&(e=Vo(t))&&(r&&(r+=" "),r+=e);return r}function Mo(t){var e=Object.create(null);return function(n){return e[n]===void 0&&(e[n]=t(n)),e[n]}}var Ol=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,kl=Mo(function(t){return Ol.test(t)||t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)<91});function Vl(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 Ml(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 Dl=function(){function t(n){var r=this;this._insertTag=function(s){var o;r.tags.length===0?r.insertionPoint?o=r.insertionPoint.nextSibling:r.prepend?o=r.container.firstChild:o=r.before:o=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(s,o),r.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(r){r.forEach(this._insertTag)},e.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Ml(this));var s=this.tags[this.tags.length-1];if(this.isSpeedy){var o=Vl(s);try{o.insertRule(r,o.cssRules.length)}catch{}}else s.appendChild(document.createTextNode(r));this.ctr++},e.flush=function(){this.tags.forEach(function(r){return r.parentNode&&r.parentNode.removeChild(r)}),this.tags=[],this.ctr=0},t}(),Y="-ms-",sn="-moz-",V="-webkit-",Do="comm",Br="rule",Ir="decl",Ll="@import",Lo="@keyframes",jl="@layer",Fl=Math.abs,bn=String.fromCharCode,Bl=Object.assign;function Il(t,e){return X(t,0)^45?(((e<<2^X(t,0))<<2^X(t,1))<<2^X(t,2))<<2^X(t,3):0}function jo(t){return t.trim()}function _l(t,e){return(t=e.exec(t))?t[0]:t}function M(t,e,n){return t.replace(e,n)}function fr(t,e){return t.indexOf(e)}function X(t,e){return t.charCodeAt(e)|0}function Te(t,e,n){return t.slice(e,n)}function dt(t){return t.length}function _r(t){return t.length}function ze(t,e){return e.push(t),t}function $l(t,e){return t.map(e).join("")}var vn=1,re=1,Fo=0,tt=0,K=0,ce="";function Sn(t,e,n,r,s,o,i){return{value:t,root:e,parent:n,type:r,props:s,children:o,line:vn,column:re,length:i,return:""}}function he(t,e){return Bl(Sn("",null,null,"",null,null,0),t,{length:-t.length},e)}function Nl(){return K}function Ul(){return K=tt>0?X(ce,--tt):0,re--,K===10&&(re=1,vn--),K}function rt(){return K=tt<Fo?X(ce,tt++):0,re++,K===10&&(re=1,vn++),K}function gt(){return X(ce,tt)}function qe(){return tt}function Me(t,e){return Te(ce,t,e)}function Ee(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 Bo(t){return vn=re=1,Fo=dt(ce=t),tt=0,[]}function Io(t){return ce="",t}function Xe(t){return jo(Me(tt-1,dr(t===91?t+2:t===40?t+1:t)))}function zl(t){for(;(K=gt())&&K<33;)rt();return Ee(t)>2||Ee(K)>3?"":" "}function Wl(t,e){for(;--e&&rt()&&!(K<48||K>102||K>57&&K<65||K>70&&K<97););return Me(t,qe()+(e<6&>()==32&&rt()==32))}function dr(t){for(;rt();)switch(K){case t:return tt;case 34:case 39:t!==34&&t!==39&&dr(K);break;case 40:t===41&&dr(t);break;case 92:rt();break}return tt}function Hl(t,e){for(;rt()&&t+K!==47+10;)if(t+K===42+42&>()===47)break;return"/*"+Me(e,tt-1)+"*"+bn(t===47?t:rt())}function Kl(t){for(;!Ee(gt());)rt();return Me(t,tt)}function Gl(t){return Io(Ye("",null,null,null,[""],t=Bo(t),0,[0],t))}function Ye(t,e,n,r,s,o,i,a,c){for(var l=0,f=0,u=i,d=0,m=0,p=0,h=1,x=1,v=1,S=0,y="",w=s,P=o,E=r,T=y;x;)switch(p=S,S=rt()){case 40:if(p!=108&&X(T,u-1)==58){fr(T+=M(Xe(S),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:T+=Xe(S);break;case 9:case 10:case 13:case 32:T+=zl(p);break;case 92:T+=Wl(qe()-1,7);continue;case 47:switch(gt()){case 42:case 47:ze(ql(Hl(rt(),qe()),e,n),c);break;default:T+="/"}break;case 123*h:a[l++]=dt(T)*v;case 125*h:case 59:case 0:switch(S){case 0:case 125:x=0;case 59+f:v==-1&&(T=M(T,/\f/g,"")),m>0&&dt(T)-u&&ze(m>32?Fs(T+";",r,n,u-1):Fs(M(T," ","")+";",r,n,u-2),c);break;case 59:T+=";";default:if(ze(E=js(T,e,n,l,f,s,a,y,w=[],P=[],u),o),S===123)if(f===0)Ye(T,e,E,E,w,o,u,a,P);else switch(d===99&&X(T,3)===110?100:d){case 100:case 108:case 109:case 115:Ye(t,E,E,r&&ze(js(t,E,E,0,0,s,a,y,s,w=[],u),P),s,P,u,a,r?w:P);break;default:Ye(T,E,E,E,[""],P,0,a,P)}}l=f=m=0,h=v=1,y=T="",u=i;break;case 58:u=1+dt(T),m=p;default:if(h<1){if(S==123)--h;else if(S==125&&h++==0&&Ul()==125)continue}switch(T+=bn(S),S*h){case 38:v=f>0?1:(T+="\f",-1);break;case 44:a[l++]=(dt(T)-1)*v,v=1;break;case 64:gt()===45&&(T+=Xe(rt())),d=gt(),f=u=dt(y=T+=Kl(qe())),S++;break;case 45:p===45&&dt(T)==2&&(h=0)}}return o}function js(t,e,n,r,s,o,i,a,c,l,f){for(var u=s-1,d=s===0?o:[""],m=_r(d),p=0,h=0,x=0;p<r;++p)for(var v=0,S=Te(t,u+1,u=Fl(h=i[p])),y=t;v<m;++v)(y=jo(h>0?d[v]+" "+S:M(S,/&\f/g,d[v])))&&(c[x++]=y);return Sn(t,e,n,s===0?Br:a,c,l,f)}function ql(t,e,n){return Sn(t,e,n,Do,bn(Nl()),Te(t,2,-2),0)}function Fs(t,e,n,r){return Sn(t,e,n,Ir,Te(t,0,r),Te(t,r+1,-1),r)}function te(t,e){for(var n="",r=_r(t),s=0;s<r;s++)n+=e(t[s],s,t,e)||"";return n}function Xl(t,e,n,r){switch(t.type){case jl:if(t.children.length)break;case Ll:case Ir:return t.return=t.return||t.value;case Do:return"";case Lo:return t.return=t.value+"{"+te(t.children,r)+"}";case Br:t.value=t.props.join(",")}return dt(n=te(t.children,r))?t.return=t.value+"{"+n+"}":""}function Yl(t){var e=_r(t);return function(n,r,s,o){for(var i="",a=0;a<e;a++)i+=t[a](n,r,s,o)||"";return i}}function Jl(t){return function(e){e.root||(e=e.return)&&t(e)}}var Zl=function(e,n,r){for(var s=0,o=0;s=o,o=gt(),s===38&&o===12&&(n[r]=1),!Ee(o);)rt();return Me(e,tt)},Ql=function(e,n){var r=-1,s=44;do switch(Ee(s)){case 0:s===38&>()===12&&(n[r]=1),e[r]+=Zl(tt-1,n,r);break;case 2:e[r]+=Xe(s);break;case 4:if(s===44){e[++r]=gt()===58?"&\f":"",n[r]=e[r].length;break}default:e[r]+=bn(s)}while(s=rt());return e},tu=function(e,n){return Io(Ql(Bo(e),n))},Bs=new WeakMap,eu=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var n=e.value,r=e.parent,s=e.column===r.column&&e.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(e.props.length===1&&n.charCodeAt(0)!==58&&!Bs.get(r))&&!s){Bs.set(e,!0);for(var o=[],i=tu(n,o),a=r.props,c=0,l=0;c<i.length;c++)for(var f=0;f<a.length;f++,l++)e.props[l]=o[c]?i[c].replace(/&\f/g,a[f]):a[f]+" "+i[c]}}},nu=function(e){if(e.type==="decl"){var n=e.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(e.return="",e.value="")}};function _o(t,e){switch(Il(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+sn+t+Y+t+t;case 6828:case 4268:return V+t+Y+t+t;case 6165:return V+t+Y+"flex-"+t+t;case 5187:return V+t+M(t,/(\w+).+(:[^]+)/,V+"box-$1$2"+Y+"flex-$1$2")+t;case 5443:return V+t+Y+"flex-item-"+M(t,/flex-|-self/,"")+t;case 4675:return V+t+Y+"flex-line-pack"+M(t,/align-content|flex-|-self/,"")+t;case 5548:return V+t+Y+M(t,"shrink","negative")+t;case 5292:return V+t+Y+M(t,"basis","preferred-size")+t;case 6060:return V+"box-"+M(t,"-grow","")+V+t+Y+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"+Y+"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(dt(t)-1-e>6)switch(X(t,e+1)){case 109:if(X(t,e+4)!==45)break;case 102:return M(t,/(.+:)(.+)-([^]+)/,"$1"+V+"$2-$3$1"+sn+(X(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~fr(t,"stretch")?_o(M(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(X(t,e+1)!==115)break;case 6444:switch(X(t,dt(t)-3-(~fr(t,"!important")&&10))){case 107:return M(t,":",":"+V)+t;case 101:return M(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+V+(X(t,14)===45?"inline-":"")+"box$3$1"+V+"$2$3$1"+Y+"$2box$3")+t}break;case 5936:switch(X(t,e+11)){case 114:return V+t+Y+M(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return V+t+Y+M(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return V+t+Y+M(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return V+t+Y+t+t}return t}var ru=function(e,n,r,s){if(e.length>-1&&!e.return)switch(e.type){case Ir:e.return=_o(e.value,e.length);break;case Lo:return te([he(e,{value:M(e.value,"@","@"+V)})],s);case Br:if(e.length)return $l(e.props,function(o){switch(_l(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return te([he(e,{props:[M(o,/:(read-\w+)/,":"+sn+"$1")]})],s);case"::placeholder":return te([he(e,{props:[M(o,/:(plac\w+)/,":"+V+"input-$1")]}),he(e,{props:[M(o,/:(plac\w+)/,":"+sn+"$1")]}),he(e,{props:[M(o,/:(plac\w+)/,Y+"input-$1")]})],s)}return""})}},su=[ru],iu=function(e){var n=e.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(h){var x=h.getAttribute("data-emotion");x.indexOf(" ")!==-1&&(document.head.appendChild(h),h.setAttribute("data-s",""))})}var s=e.stylisPlugins||su,o={},i,a=[];i=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(h){for(var x=h.getAttribute("data-emotion").split(" "),v=1;v<x.length;v++)o[x[v]]=!0;a.push(h)});var c,l=[eu,nu];{var f,u=[Xl,Jl(function(h){f.insert(h)})],d=Yl(l.concat(s,u)),m=function(x){return te(Gl(x),d)};c=function(x,v,S,y){f=S,m(x?x+"{"+v.styles+"}":v.styles),y&&(p.inserted[v.name]=!0)}}var p={key:n,sheet:new Dl({key:n,container:i,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:o,registered:{},insert:c};return p.sheet.hydrate(a),p},ou=!0;function au(t,e,n){var r="";return n.split(" ").forEach(function(s){t[s]!==void 0?e.push(t[s]+";"):r+=s+" "}),r}var $o=function(e,n,r){var s=e.key+"-"+n.name;(r===!1||ou===!1)&&e.registered[s]===void 0&&(e.registered[s]=n.styles)},cu=function(e,n,r){$o(e,n,r);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 lu(t){for(var e=0,n,r=0,s=t.length;s>=4;++r,s-=4)n=t.charCodeAt(r)&255|(t.charCodeAt(++r)&255)<<8|(t.charCodeAt(++r)&255)<<16|(t.charCodeAt(++r)&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(r+2)&255)<<16;case 2:e^=(t.charCodeAt(r+1)&255)<<8;case 1:e^=t.charCodeAt(r)&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 uu={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},fu=/[A-Z]|^ms/g,du=/_EMO_([^_]+?)_([^]*?)_EMO_/g,No=function(e){return e.charCodeAt(1)===45},Is=function(e){return e!=null&&typeof e!="boolean"},Hn=Mo(function(t){return No(t)?t:t.replace(fu,"-$&").toLowerCase()}),_s=function(e,n){switch(e){case"animation":case"animationName":if(typeof n=="string")return n.replace(du,function(r,s,o){return ht={name:s,styles:o,next:ht},s})}return uu[e]!==1&&!No(e)&&typeof n=="number"&&n!==0?n+"px":n};function Ce(t,e,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return ht={name:n.name,styles:n.styles,next:ht},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)ht={name:r.name,styles:r.styles,next:ht},r=r.next;var s=n.styles+";";return s}return hu(t,e,n)}case"function":{if(t!==void 0){var o=ht,i=n(t);return ht=o,Ce(t,e,i)}break}}if(e==null)return n;var a=e[n];return a!==void 0?a:n}function hu(t,e,n){var r="";if(Array.isArray(n))for(var s=0;s<n.length;s++)r+=Ce(t,e,n[s])+";";else for(var o in n){var i=n[o];if(typeof i!="object")e!=null&&e[i]!==void 0?r+=o+"{"+e[i]+"}":Is(i)&&(r+=Hn(o)+":"+_s(o,i)+";");else if(Array.isArray(i)&&typeof i[0]=="string"&&(e==null||e[i[0]]===void 0))for(var a=0;a<i.length;a++)Is(i[a])&&(r+=Hn(o)+":"+_s(o,i[a])+";");else{var c=Ce(t,e,i);switch(o){case"animation":case"animationName":{r+=Hn(o)+":"+c+";";break}default:r+=o+"{"+c+"}"}}}return r}var $s=/label:\s*([^\s;\n{]+)\s*(;|$)/g,ht,pu=function(e,n,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var s=!0,o="";ht=void 0;var i=e[0];i==null||i.raw===void 0?(s=!1,o+=Ce(r,n,i)):o+=i[0];for(var a=1;a<e.length;a++)o+=Ce(r,n,e[a]),s&&(o+=i[a]);$s.lastIndex=0;for(var c="",l;(l=$s.exec(o))!==null;)c+="-"+l[1];var f=lu(o)+c;return{name:f,styles:o,next:ht}},mu=function(e){return e()},gu=g.React["useInsertionEffect"]?g.React["useInsertionEffect"]:!1,yu=gu||mu,Uo=g.reactExports.createContext(typeof HTMLElement<"u"?iu({key:"css"}):null);Uo.Provider;var xu=function(e){return g.reactExports.forwardRef(function(n,r){var s=g.reactExports.useContext(Uo);return e(n,s,r)})},zo=g.reactExports.createContext({}),bu=kl,vu=function(e){return e!=="theme"},Ns=function(e){return typeof e=="string"&&e.charCodeAt(0)>96?bu:vu},Us=function(e,n,r){var s;if(n){var o=n.shouldForwardProp;s=e.__emotion_forwardProp&&o?function(i){return e.__emotion_forwardProp(i)&&o(i)}:o}return typeof s!="function"&&r&&(s=e.__emotion_forwardProp),s},Su=function(e){var n=e.cache,r=e.serialized,s=e.isStringTag;return $o(n,r,s),yu(function(){return cu(n,r,s)}),null},wu=function t(e,n){var r=e.__emotion_real===e,s=r&&e.__emotion_base||e,o,i;n!==void 0&&(o=n.label,i=n.target);var a=Us(e,n,r),c=a||Ns(s),l=!c("as");return function(){var f=arguments,u=r&&e.__emotion_styles!==void 0?e.__emotion_styles.slice(0):[];if(o!==void 0&&u.push("label:"+o+";"),f[0]==null||f[0].raw===void 0)u.push.apply(u,f);else{u.push(f[0][0]);for(var d=f.length,m=1;m<d;m++)u.push(f[m],f[0][m])}var p=xu(function(h,x,v){var S=l&&h.as||s,y="",w=[],P=h;if(h.theme==null){P={};for(var E in h)P[E]=h[E];P.theme=g.reactExports.useContext(zo)}typeof h.className=="string"?y=au(x.registered,w,h.className):h.className!=null&&(y=h.className+" ");var T=pu(u.concat(w),x.registered,P);y+=x.key+"-"+T.name,i!==void 0&&(y+=" "+i);var R=l&&a===void 0?Ns(S):c,D={};for(var A in h)l&&A==="as"||R(A)&&(D[A]=h[A]);return D.className=y,D.ref=v,g.reactExports.createElement(g.reactExports.Fragment,null,g.reactExports.createElement(Su,{cache:x,serialized:T,isStringTag:typeof S=="string"}),g.reactExports.createElement(S,D))});return p.displayName=o!==void 0?o:"Styled("+(typeof s=="string"?s:s.displayName||s.name||"Component")+")",p.defaultProps=e.defaultProps,p.__emotion_real=p,p.__emotion_base=s,p.__emotion_styles=u,p.__emotion_forwardProp=a,Object.defineProperty(p,"toString",{value:function(){return"."+i}}),p.withComponent=function(h,x){return t(h,O({},n,x,{shouldForwardProp:Us(p,x,!0)})).apply(void 0,u)},p}},Pu=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],hr=wu.bind();Pu.forEach(function(t){hr[t]=hr(t)});/**
|
|
2
2
|
* @mui/styled-engine v5.15.4
|
|
3
3
|
*
|
|
4
4
|
* @license MIT
|
|
5
5
|
* This source code is licensed under the MIT license found in the
|
|
6
6
|
* LICENSE file in the root directory of this source tree.
|
|
7
|
-
*/function Ou(t,e){return br(t,e)}const ku=(t,e)=>{Array.isArray(t.__emotion_styles)&&(t.__emotion_styles=e(t.__emotion_styles))},Vu=["values","unit","step"],Mu=t=>{const e=Object.keys(t).map(n=>({key:n,val:t[n]}))||[];return e.sort((n,r)=>n.val-r.val),e.reduce((n,r)=>O({},n,{[r.key]:r.val}),{})};function Du(t){const{values:e={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=t,s=Ct(t,Vu),o=Mu(e),i=Object.keys(o);function a(d){return`@media (min-width:${typeof e[d]=="number"?e[d]:d}${n})`}function c(d){return`@media (max-width:${(typeof e[d]=="number"?e[d]:d)-r/100}${n})`}function l(d,m){const p=i.indexOf(m);return`@media (min-width:${typeof e[d]=="number"?e[d]:d}${n}) and (max-width:${(p!==-1&&typeof e[i[p]]=="number"?e[i[p]]:m)-r/100}${n})`}function f(d){return i.indexOf(d)+1<i.length?l(d,i[i.indexOf(d)+1]):a(d)}function u(d){const m=i.indexOf(d);return m===0?a(i[1]):m===i.length-1?c(i[m]):l(d,i[i.indexOf(d)+1]).replace("@media","@media not all and")}return O({keys:i,values:o,up:a,down:c,between:l,only:f,not:u,unit:n},s)}const Lu={borderRadius:4},ju=Lu;function Se(t,e){return e?ft(t,e,{clone:!1}):t}const Wr={xs:0,sm:600,md:900,lg:1200,xl:1536},qs={keys:["xs","sm","md","lg","xl"],up:t=>`@media (min-width:${Wr[t]}px)`};function Tt(t,e,n){const r=t.theme||{};if(Array.isArray(e)){const o=r.breakpoints||qs;return e.reduce((i,a,c)=>(i[o.up(o.keys[c])]=n(e[c]),i),{})}if(typeof e=="object"){const o=r.breakpoints||qs;return Object.keys(e).reduce((i,a)=>{if(Object.keys(o.values||Wr).indexOf(a)!==-1){const c=o.up(a);i[c]=n(e[a],a)}else{const c=a;i[c]=e[c]}return i},{})}return n(e)}function Bu(t={}){var e;return((e=t.keys)==null?void 0:e.reduce((r,s)=>{const o=t.up(s);return r[o]={},r},{}))||{}}function Fu(t,e){return t.reduce((n,r)=>{const s=n[r];return(!s||Object.keys(s).length===0)&&delete n[r],n},e)}function Cn(t,e,n=!0){if(!e||typeof e!="string")return null;if(t&&t.vars&&n){const r=`vars.${e}`.split(".").reduce((s,o)=>s&&s[o]?s[o]:null,t);if(r!=null)return r}return e.split(".").reduce((r,s)=>r&&r[s]!=null?r[s]:null,t)}function cn(t,e,n,r=n){let s;return typeof t=="function"?s=t(n):Array.isArray(t)?s=t[n]||r:s=Cn(t,n)||r,e&&(s=e(s,r,t)),s}function z(t){const{prop:e,cssProperty:n=t.prop,themeKey:r,transform:s}=t,o=i=>{if(i[e]==null)return null;const a=i[e],c=i.theme,l=Cn(c,r)||{};return Tt(i,a,u=>{let d=cn(l,s,u);return u===d&&typeof u=="string"&&(d=cn(l,s,`${e}${u==="default"?"":gt(u)}`,u)),n===!1?d:{[n]:d}})};return o.propTypes={},o.filterProps=[e],o}function Iu(t){const e={};return n=>(e[n]===void 0&&(e[n]=t(n)),e[n])}const _u={m:"margin",p:"padding"},$u={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Xs={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Nu=Iu(t=>{if(t.length>2)if(Xs[t])t=Xs[t];else return[t];const[e,n]=t.split(""),r=_u[e],s=$u[n]||"";return Array.isArray(s)?s.map(o=>r+o):[r+s]}),Kr=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Gr=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Kr,...Gr];function Be(t,e,n,r){var s;const o=(s=Cn(t,e,!1))!=null?s:n;return typeof o=="number"?i=>typeof i=="string"?i:o*i:Array.isArray(o)?i=>typeof i=="string"?i:o[i]:typeof o=="function"?o:()=>{}}function Yo(t){return Be(t,"spacing",8)}function Fe(t,e){if(typeof e=="string"||e==null)return e;const n=Math.abs(e),r=t(n);return e>=0?r:typeof r=="number"?-r:`-${r}`}function Uu(t,e){return n=>t.reduce((r,s)=>(r[s]=Fe(e,n),r),{})}function zu(t,e,n,r){if(e.indexOf(n)===-1)return null;const s=Nu(n),o=Uu(s,r),i=t[n];return Tt(t,i,o)}function Jo(t,e){const n=Yo(t.theme);return Object.keys(t).map(r=>zu(t,e,r,n)).reduce(Se,{})}function $(t){return Jo(t,Kr)}$.propTypes={};$.filterProps=Kr;function N(t){return Jo(t,Gr)}N.propTypes={};N.filterProps=Gr;function Hu(t=8){if(t.mui)return t;const e=Yo({spacing:t}),n=(...r)=>(r.length===0?[1]:r).map(o=>{const i=e(o);return typeof i=="number"?`${i}px`:i}).join(" ");return n.mui=!0,n}function An(...t){const e=t.reduce((r,s)=>(s.filterProps.forEach(o=>{r[o]=s}),r),{}),n=r=>Object.keys(r).reduce((s,o)=>e[o]?Se(s,e[o](r)):s,{});return n.propTypes={},n.filterProps=t.reduce((r,s)=>r.concat(s.filterProps),[]),n}function at(t){return typeof t!="number"?t:`${t}px solid`}function lt(t,e){return z({prop:t,themeKey:"borders",transform:e})}const Wu=lt("border",at),Ku=lt("borderTop",at),Gu=lt("borderRight",at),qu=lt("borderBottom",at),Xu=lt("borderLeft",at),Yu=lt("borderColor"),Ju=lt("borderTopColor"),Zu=lt("borderRightColor"),Qu=lt("borderBottomColor"),tf=lt("borderLeftColor"),ef=lt("outline",at),nf=lt("outlineColor"),Rn=t=>{if(t.borderRadius!==void 0&&t.borderRadius!==null){const e=Be(t.theme,"shape.borderRadius",4),n=r=>({borderRadius:Fe(e,r)});return Tt(t,t.borderRadius,n)}return null};Rn.propTypes={};Rn.filterProps=["borderRadius"];An(Wu,Ku,Gu,qu,Xu,Yu,Ju,Zu,Qu,tf,Rn,ef,nf);const On=t=>{if(t.gap!==void 0&&t.gap!==null){const e=Be(t.theme,"spacing",8),n=r=>({gap:Fe(e,r)});return Tt(t,t.gap,n)}return null};On.propTypes={};On.filterProps=["gap"];const kn=t=>{if(t.columnGap!==void 0&&t.columnGap!==null){const e=Be(t.theme,"spacing",8),n=r=>({columnGap:Fe(e,r)});return Tt(t,t.columnGap,n)}return null};kn.propTypes={};kn.filterProps=["columnGap"];const Vn=t=>{if(t.rowGap!==void 0&&t.rowGap!==null){const e=Be(t.theme,"spacing",8),n=r=>({rowGap:Fe(e,r)});return Tt(t,t.rowGap,n)}return null};Vn.propTypes={};Vn.filterProps=["rowGap"];const rf=z({prop:"gridColumn"}),sf=z({prop:"gridRow"}),of=z({prop:"gridAutoFlow"}),af=z({prop:"gridAutoColumns"}),cf=z({prop:"gridAutoRows"}),lf=z({prop:"gridTemplateColumns"}),uf=z({prop:"gridTemplateRows"}),ff=z({prop:"gridTemplateAreas"}),df=z({prop:"gridArea"});An(On,kn,Vn,rf,sf,of,af,cf,lf,uf,ff,df);function ne(t,e){return e==="grey"?e:t}const hf=z({prop:"color",themeKey:"palette",transform:ne}),pf=z({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:ne}),mf=z({prop:"backgroundColor",themeKey:"palette",transform:ne});An(hf,pf,mf);function nt(t){return t<=1&&t!==0?`${t*100}%`:t}const gf=z({prop:"width",transform:nt}),qr=t=>{if(t.maxWidth!==void 0&&t.maxWidth!==null){const e=n=>{var r,s;const o=((r=t.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||Wr[n];return o?((s=t.theme)==null||(s=s.breakpoints)==null?void 0:s.unit)!=="px"?{maxWidth:`${o}${t.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:nt(n)}};return Tt(t,t.maxWidth,e)}return null};qr.filterProps=["maxWidth"];const yf=z({prop:"minWidth",transform:nt}),xf=z({prop:"height",transform:nt}),bf=z({prop:"maxHeight",transform:nt}),vf=z({prop:"minHeight",transform:nt});z({prop:"size",cssProperty:"width",transform:nt});z({prop:"size",cssProperty:"height",transform:nt});const Sf=z({prop:"boxSizing"});An(gf,qr,yf,xf,bf,vf,Sf);const wf={border:{themeKey:"borders",transform:at},borderTop:{themeKey:"borders",transform:at},borderRight:{themeKey:"borders",transform:at},borderBottom:{themeKey:"borders",transform:at},borderLeft:{themeKey:"borders",transform:at},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:at},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Rn},color:{themeKey:"palette",transform:ne},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:ne},backgroundColor:{themeKey:"palette",transform:ne},p:{style:N},pt:{style:N},pr:{style:N},pb:{style:N},pl:{style:N},px:{style:N},py:{style:N},padding:{style:N},paddingTop:{style:N},paddingRight:{style:N},paddingBottom:{style:N},paddingLeft:{style:N},paddingX:{style:N},paddingY:{style:N},paddingInline:{style:N},paddingInlineStart:{style:N},paddingInlineEnd:{style:N},paddingBlock:{style:N},paddingBlockStart:{style:N},paddingBlockEnd:{style:N},m:{style:$},mt:{style:$},mr:{style:$},mb:{style:$},ml:{style:$},mx:{style:$},my:{style:$},margin:{style:$},marginTop:{style:$},marginRight:{style:$},marginBottom:{style:$},marginLeft:{style:$},marginX:{style:$},marginY:{style:$},marginInline:{style:$},marginInlineStart:{style:$},marginInlineEnd:{style:$},marginBlock:{style:$},marginBlockStart:{style:$},marginBlockEnd:{style:$},displayPrint:{cssProperty:!1,transform:t=>({"@media print":{display:t}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:On},rowGap:{style:Vn},columnGap:{style:kn},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:nt},maxWidth:{style:qr},minWidth:{transform:nt},height:{transform:nt},maxHeight:{transform:nt},minHeight:{transform:nt},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},Xr=wf;function Pf(...t){const e=t.reduce((r,s)=>r.concat(Object.keys(s)),[]),n=new Set(e);return t.every(r=>n.size===Object.keys(r).length)}function Tf(t,e){return typeof t=="function"?t(e):t}function Ef(){function t(n,r,s,o){const i={[n]:r,theme:s},a=o[n];if(!a)return{[n]:r};const{cssProperty:c=n,themeKey:l,transform:f,style:u}=a;if(r==null)return null;if(l==="typography"&&r==="inherit")return{[n]:r};const d=Cn(s,l)||{};return u?u(i):Tt(i,r,p=>{let h=cn(d,f,p);return p===h&&typeof p=="string"&&(h=cn(d,f,`${n}${p==="default"?"":gt(p)}`,p)),c===!1?h:{[c]:h}})}function e(n){var r;const{sx:s,theme:o={}}=n||{};if(!s)return null;const i=(r=o.unstable_sxConfig)!=null?r:Xr;function a(c){let l=c;if(typeof c=="function")l=c(o);else if(typeof c!="object")return c;if(!l)return null;const f=Bu(o.breakpoints),u=Object.keys(f);let d=f;return Object.keys(l).forEach(m=>{const p=Tf(l[m],o);if(p!=null)if(typeof p=="object")if(i[m])d=Se(d,t(m,p,o,i));else{const h=Tt({theme:o},p,y=>({[m]:y}));Pf(h,p)?d[m]=e({sx:p,theme:o}):d=Se(d,h)}else d=Se(d,t(m,p,o,i))}),Fu(u,d)}return Array.isArray(s)?s.map(a):a(s)}return e}const Zo=Ef();Zo.filterProps=["sx"];const Yr=Zo,Cf=["breakpoints","palette","spacing","shape"];function Jr(t={},...e){const{breakpoints:n={},palette:r={},spacing:s,shape:o={}}=t,i=Ct(t,Cf),a=Du(n),c=Hu(s);let l=ft({breakpoints:a,direction:"ltr",components:{},palette:O({mode:"light"},r),spacing:c,shape:O({},ju,o)},i);return l=e.reduce((f,u)=>ft(f,u),l),l.unstable_sxConfig=O({},Xr,i==null?void 0:i.unstable_sxConfig),l.unstable_sx=function(u){return Yr({sx:u,theme:this})},l}function Af(t){return Object.keys(t).length===0}function Rf(t=null){const e=g.reactExports.useContext(Xo);return!e||Af(e)?t:e}const Of=Jr();function kf(t=Of){return Rf(t)}const Vf=["variant"];function Ys(t){return t.length===0}function Qo(t){const{variant:e}=t,n=Ct(t,Vf);let r=e||"";return Object.keys(n).sort().forEach(s=>{s==="color"?r+=Ys(r)?t[s]:gt(t[s]):r+=`${Ys(r)?s:gt(s)}${gt(t[s].toString())}`}),r}const Mf=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Df(t){return Object.keys(t).length===0}function Lf(t){return typeof t=="string"&&t.charCodeAt(0)>96}const jf=(t,e)=>e.components&&e.components[t]&&e.components[t].styleOverrides?e.components[t].styleOverrides:null,ln=t=>{let e=0;const n={};return t&&t.forEach(r=>{let s="";typeof r.props=="function"?(s=`callback${e}`,e+=1):s=Qo(r.props),n[s]=r.style}),n},Bf=(t,e)=>{let n=[];return e&&e.components&&e.components[t]&&e.components[t].variants&&(n=e.components[t].variants),ln(n)},un=(t,e,n)=>{const{ownerState:r={}}=t,s=[];let o=0;return n&&n.forEach(i=>{let a=!0;if(typeof i.props=="function"){const c=O({},t,r);a=i.props(c)}else Object.keys(i.props).forEach(c=>{r[c]!==i.props[c]&&t[c]!==i.props[c]&&(a=!1)});a&&(typeof i.props=="function"?s.push(e[`callback${o}`]):s.push(e[Qo(i.props)])),typeof i.props=="function"&&(o+=1)}),s},Ff=(t,e,n,r)=>{var s;const o=n==null||(s=n.components)==null||(s=s[r])==null?void 0:s.variants;return un(t,e,o)};function Qe(t){return t!=="ownerState"&&t!=="theme"&&t!=="sx"&&t!=="as"}const If=Jr(),_f=t=>t&&t.charAt(0).toLowerCase()+t.slice(1);function tn({defaultTheme:t,theme:e,themeId:n}){return Df(e)?t:e[n]||e}function $f(t){return t?(e,n)=>n[t]:null}const Js=({styledArg:t,props:e,defaultTheme:n,themeId:r})=>{const s=t(O({},e,{theme:tn(O({},e,{defaultTheme:n,themeId:r}))}));let o;if(s&&s.variants&&(o=s.variants,delete s.variants),o){const i=un(e,ln(o),o);return[s,...i]}return s};function Nf(t={}){const{themeId:e,defaultTheme:n=If,rootShouldForwardProp:r=Qe,slotShouldForwardProp:s=Qe}=t,o=i=>Yr(O({},i,{theme:tn(O({},i,{defaultTheme:n,themeId:e}))}));return o.__mui_systemSx=!0,(i,a={})=>{ku(i,w=>w.filter(P=>!(P!=null&&P.__mui_systemSx)));const{name:c,slot:l,skipVariantsResolver:f,skipSx:u,overridesResolver:d=$f(_f(l))}=a,m=Ct(a,Mf),p=f!==void 0?f:l&&l!=="Root"&&l!=="root"||!1,h=u||!1;let y,b=Qe;l==="Root"||l==="root"?b=r:l?b=s:Lf(i)&&(b=void 0);const v=Ou(i,O({shouldForwardProp:b,label:y},m)),x=(w,...P)=>{const E=P?P.map(A=>{if(typeof A=="function"&&A.__emotion_real!==A)return H=>Js({styledArg:A,props:H,defaultTheme:n,themeId:e});if(Vt(A)){let H=A,_;return A&&A.variants&&(_=A.variants,delete H.variants,H=Z=>{let B=A;return un(Z,ln(_),_).forEach(q=>{B=ft(B,q)}),B}),H}return A}):[];let T=w;if(Vt(w)){let A;w&&w.variants&&(A=w.variants,delete T.variants,T=H=>{let _=w;return un(H,ln(A),A).forEach(B=>{_=ft(_,B)}),_})}else typeof w=="function"&&w.__emotion_real!==w&&(T=A=>Js({styledArg:w,props:A,defaultTheme:n,themeId:e}));c&&d&&E.push(A=>{const H=tn(O({},A,{defaultTheme:n,themeId:e})),_=jf(c,H);if(_){const Z={};return Object.entries(_).forEach(([B,ut])=>{Z[B]=typeof ut=="function"?ut(O({},A,{theme:H})):ut}),d(A,Z)}return null}),c&&!p&&E.push(A=>{const H=tn(O({},A,{defaultTheme:n,themeId:e}));return Ff(A,Bf(c,H),H,c)}),h||E.push(o);const R=E.length-P.length;if(Array.isArray(w)&&R>0){const A=new Array(R).fill("");T=[...w,...A],T.raw=[...w.raw,...A]}const D=v(T,...E);return i.muiName&&(D.muiName=i.muiName),D};return v.withConfig&&(x.withConfig=v.withConfig),x}}function Uf(t){const{theme:e,name:n,props:r}=t;return!e||!e.components||!e.components[n]||!e.components[n].defaultProps?r:Lo(e.components[n].defaultProps,r)}function zf({props:t,name:e,defaultTheme:n,themeId:r}){let s=kf(n);return r&&(s=s[r]||s),Uf({theme:s,name:e,props:t})}function ta(t,e=0,n=1){return Math.min(Math.max(e,t),n)}function Hf(t){t=t.slice(1);const e=new RegExp(`.{1,${t.length>=6?2:1}}`,"g");let n=t.match(e);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,s)=>s<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function ie(t){if(t.type)return t;if(t.charAt(0)==="#")return ie(Hf(t));const e=t.indexOf("("),n=t.substring(0,e);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(re(9,t));let r=t.substring(e+1,t.length-1),s;if(n==="color"){if(r=r.split(" "),s=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(s)===-1)throw new Error(re(10,s))}else r=r.split(",");return r=r.map(o=>parseFloat(o)),{type:n,values:r,colorSpace:s}}function Zr(t){const{type:e,colorSpace:n}=t;let{values:r}=t;return e.indexOf("rgb")!==-1?r=r.map((s,o)=>o<3?parseInt(s,10):s):e.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),e.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${e}(${r})`}function Wf(t){t=ie(t);const{values:e}=t,n=e[0],r=e[1]/100,s=e[2]/100,o=r*Math.min(s,1-s),i=(l,f=(l+n/30)%12)=>s-o*Math.max(Math.min(f-3,9-f,1),-1);let a="rgb";const c=[Math.round(i(0)*255),Math.round(i(8)*255),Math.round(i(4)*255)];return t.type==="hsla"&&(a+="a",c.push(e[3])),Zr({type:a,values:c})}function Zs(t){t=ie(t);let e=t.type==="hsl"||t.type==="hsla"?ie(Wf(t)).values:t.values;return e=e.map(n=>(t.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*e[0]+.7152*e[1]+.0722*e[2]).toFixed(3))}function Kf(t,e){const n=Zs(t),r=Zs(e);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Gf(t,e){if(t=ie(t),e=ta(e),t.type.indexOf("hsl")!==-1)t.values[2]*=1-e;else if(t.type.indexOf("rgb")!==-1||t.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)t.values[n]*=1-e;return Zr(t)}function qf(t,e){if(t=ie(t),e=ta(e),t.type.indexOf("hsl")!==-1)t.values[2]+=(100-t.values[2])*e;else if(t.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)t.values[n]+=(255-t.values[n])*e;else if(t.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)t.values[n]+=(1-t.values[n])*e;return Zr(t)}function Xf(t,e){return O({toolbar:{minHeight:56,[t.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[t.up("sm")]:{minHeight:64}}},e)}const Yf={black:"#000",white:"#fff"},Oe=Yf,Jf={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},Zf=Jf,Qf={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},Kt=Qf,td={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},Gt=td,ed={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},ge=ed,nd={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},qt=nd,rd={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},Xt=rd,sd={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},Yt=sd,id=["mode","contrastThreshold","tonalOffset"],Qs={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Oe.white,default:Oe.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},Zn={text:{primary:Oe.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Oe.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function ti(t,e,n,r){const s=r.light||r,o=r.dark||r*1.5;t[e]||(t.hasOwnProperty(n)?t[e]=t[n]:e==="light"?t.light=qf(t.main,s):e==="dark"&&(t.dark=Gf(t.main,o)))}function od(t="light"){return t==="dark"?{main:qt[200],light:qt[50],dark:qt[400]}:{main:qt[700],light:qt[400],dark:qt[800]}}function ad(t="light"){return t==="dark"?{main:Kt[200],light:Kt[50],dark:Kt[400]}:{main:Kt[500],light:Kt[300],dark:Kt[700]}}function cd(t="light"){return t==="dark"?{main:Gt[500],light:Gt[300],dark:Gt[700]}:{main:Gt[700],light:Gt[400],dark:Gt[800]}}function ld(t="light"){return t==="dark"?{main:Xt[400],light:Xt[300],dark:Xt[700]}:{main:Xt[700],light:Xt[500],dark:Xt[900]}}function ud(t="light"){return t==="dark"?{main:Yt[400],light:Yt[300],dark:Yt[700]}:{main:Yt[800],light:Yt[500],dark:Yt[900]}}function fd(t="light"){return t==="dark"?{main:ge[400],light:ge[300],dark:ge[700]}:{main:"#ed6c02",light:ge[500],dark:ge[900]}}function dd(t){const{mode:e="light",contrastThreshold:n=3,tonalOffset:r=.2}=t,s=Ct(t,id),o=t.primary||od(e),i=t.secondary||ad(e),a=t.error||cd(e),c=t.info||ld(e),l=t.success||ud(e),f=t.warning||fd(e);function u(h){return Kf(h,Zn.text.primary)>=n?Zn.text.primary:Qs.text.primary}const d=({color:h,name:y,mainShade:b=500,lightShade:v=300,darkShade:x=700})=>{if(h=O({},h),!h.main&&h[b]&&(h.main=h[b]),!h.hasOwnProperty("main"))throw new Error(re(11,y?` (${y})`:"",b));if(typeof h.main!="string")throw new Error(re(12,y?` (${y})`:"",JSON.stringify(h.main)));return ti(h,"light",v,r),ti(h,"dark",x,r),h.contrastText||(h.contrastText=u(h.main)),h},m={dark:Zn,light:Qs};return ft(O({common:O({},Oe),mode:e,primary:d({color:o,name:"primary"}),secondary:d({color:i,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:d({color:a,name:"error"}),warning:d({color:f,name:"warning"}),info:d({color:c,name:"info"}),success:d({color:l,name:"success"}),grey:Zf,contrastThreshold:n,getContrastText:u,augmentColor:d,tonalOffset:r},m[e]),s)}const hd=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function pd(t){return Math.round(t*1e5)/1e5}const ei={textTransform:"uppercase"},ni='"Roboto", "Helvetica", "Arial", sans-serif';function md(t,e){const n=typeof e=="function"?e(t):e,{fontFamily:r=ni,fontSize:s=14,fontWeightLight:o=300,fontWeightRegular:i=400,fontWeightMedium:a=500,fontWeightBold:c=700,htmlFontSize:l=16,allVariants:f,pxToRem:u}=n,d=Ct(n,hd),m=s/14,p=u||(b=>`${b/l*m}rem`),h=(b,v,x,w,P)=>O({fontFamily:r,fontWeight:b,fontSize:p(v),lineHeight:x},r===ni?{letterSpacing:`${pd(w/v)}em`}:{},P,f),y={h1:h(o,96,1.167,-1.5),h2:h(o,60,1.2,-.5),h3:h(i,48,1.167,0),h4:h(i,34,1.235,.25),h5:h(i,24,1.334,0),h6:h(a,20,1.6,.15),subtitle1:h(i,16,1.75,.15),subtitle2:h(a,14,1.57,.1),body1:h(i,16,1.5,.15),body2:h(i,14,1.43,.15),button:h(a,14,1.75,.4,ei),caption:h(i,12,1.66,.4),overline:h(i,12,2.66,1,ei),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return ft(O({htmlFontSize:l,pxToRem:p,fontFamily:r,fontSize:s,fontWeightLight:o,fontWeightRegular:i,fontWeightMedium:a,fontWeightBold:c},y),d,{clone:!1})}const gd=.2,yd=.14,xd=.12;function j(...t){return[`${t[0]}px ${t[1]}px ${t[2]}px ${t[3]}px rgba(0,0,0,${gd})`,`${t[4]}px ${t[5]}px ${t[6]}px ${t[7]}px rgba(0,0,0,${yd})`,`${t[8]}px ${t[9]}px ${t[10]}px ${t[11]}px rgba(0,0,0,${xd})`].join(",")}const bd=["none",j(0,2,1,-1,0,1,1,0,0,1,3,0),j(0,3,1,-2,0,2,2,0,0,1,5,0),j(0,3,3,-2,0,3,4,0,0,1,8,0),j(0,2,4,-1,0,4,5,0,0,1,10,0),j(0,3,5,-1,0,5,8,0,0,1,14,0),j(0,3,5,-1,0,6,10,0,0,1,18,0),j(0,4,5,-2,0,7,10,1,0,2,16,1),j(0,5,5,-3,0,8,10,1,0,3,14,2),j(0,5,6,-3,0,9,12,1,0,3,16,2),j(0,6,6,-3,0,10,14,1,0,4,18,3),j(0,6,7,-4,0,11,15,1,0,4,20,3),j(0,7,8,-4,0,12,17,2,0,5,22,4),j(0,7,8,-4,0,13,19,2,0,5,24,4),j(0,7,9,-4,0,14,21,2,0,5,26,4),j(0,8,9,-5,0,15,22,2,0,6,28,5),j(0,8,10,-5,0,16,24,2,0,6,30,5),j(0,8,11,-5,0,17,26,2,0,6,32,5),j(0,9,11,-5,0,18,28,2,0,7,34,6),j(0,9,12,-6,0,19,29,2,0,7,36,6),j(0,10,13,-6,0,20,31,3,0,8,38,7),j(0,10,13,-6,0,21,33,3,0,8,40,7),j(0,10,14,-6,0,22,35,3,0,8,42,7),j(0,11,14,-7,0,23,36,3,0,9,44,8),j(0,11,15,-7,0,24,38,3,0,9,46,8)],vd=bd,Sd=["duration","easing","delay"],wd={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},Pd={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function ri(t){return`${Math.round(t)}ms`}function Td(t){if(!t)return 0;const e=t/36;return Math.round((4+15*e**.25+e/5)*10)}function Ed(t){const e=O({},wd,t.easing),n=O({},Pd,t.duration);return O({getAutoHeightDuration:Td,create:(s=["all"],o={})=>{const{duration:i=n.standard,easing:a=e.easeInOut,delay:c=0}=o;return Ct(o,Sd),(Array.isArray(s)?s:[s]).map(l=>`${l} ${typeof i=="string"?i:ri(i)} ${a} ${typeof c=="string"?c:ri(c)}`).join(",")}},t,{easing:e,duration:n})}const Cd={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Ad=Cd,Rd=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Od(t={},...e){const{mixins:n={},palette:r={},transitions:s={},typography:o={}}=t,i=Ct(t,Rd);if(t.vars)throw new Error(re(18));const a=dd(r),c=Jr(t);let l=ft(c,{mixins:Xf(c.breakpoints,n),palette:a,shadows:vd.slice(),typography:md(a,o),transitions:Ed(s),zIndex:O({},Ad)});return l=ft(l,i),l=e.reduce((f,u)=>ft(f,u),l),l.unstable_sxConfig=O({},Xr,i==null?void 0:i.unstable_sxConfig),l.unstable_sx=function(u){return Yr({sx:u,theme:this})},l}const kd=Od(),ea=kd,na="$$material";function Vd({props:t,name:e}){return zf({props:t,name:e,defaultTheme:ea,themeId:na})}const Md=t=>Qe(t)&&t!=="classes",Dd=Nf({themeId:na,defaultTheme:ea,rootShouldForwardProp:Md}),Ld=Dd;function jd(t){return Bo("MuiSvgIcon",t)}Ml("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Bd=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],Fd=t=>{const{color:e,fontSize:n,classes:r}=t,s={root:["root",e!=="inherit"&&`color${gt(e)}`,`fontSize${gt(n)}`]};return Rl(s,jd,r)},Id=Ld("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.color!=="inherit"&&e[`color${gt(n.color)}`],e[`fontSize${gt(n.fontSize)}`]]}})(({theme:t,ownerState:e})=>{var n,r,s,o,i,a,c,l,f,u,d,m,p;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:e.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(n=t.transitions)==null||(r=n.create)==null?void 0:r.call(n,"fill",{duration:(s=t.transitions)==null||(s=s.duration)==null?void 0:s.shorter}),fontSize:{inherit:"inherit",small:((o=t.typography)==null||(i=o.pxToRem)==null?void 0:i.call(o,20))||"1.25rem",medium:((a=t.typography)==null||(c=a.pxToRem)==null?void 0:c.call(a,24))||"1.5rem",large:((l=t.typography)==null||(f=l.pxToRem)==null?void 0:f.call(l,35))||"2.1875rem"}[e.fontSize],color:(u=(d=(t.vars||t).palette)==null||(d=d[e.color])==null?void 0:d.main)!=null?u:{action:(m=(t.vars||t).palette)==null||(m=m.action)==null?void 0:m.active,disabled:(p=(t.vars||t).palette)==null||(p=p.action)==null?void 0:p.disabled,inherit:void 0}[e.color]}}),ra=g.reactExports.forwardRef(function(e,n){const r=Vd({props:e,name:"MuiSvgIcon"}),{children:s,className:o,color:i="inherit",component:a="svg",fontSize:c="medium",htmlColor:l,inheritViewBox:f=!1,titleAccess:u,viewBox:d="0 0 24 24"}=r,m=Ct(r,Bd),p=g.reactExports.isValidElement(s)&&s.type==="svg",h=O({},r,{color:i,component:a,fontSize:c,instanceFontSize:e.fontSize,inheritViewBox:f,viewBox:d,hasSvgAsChild:p}),y={};f||(y.viewBox=d);const b=Fd(h);return g.jsxRuntimeExports.jsxs(Id,O({as:a,className:Dl(b.root,o),focusable:"false",color:l,"aria-hidden":u?void 0:!0,role:u?"img":void 0,ref:n},y,m,p&&s.props,{ownerState:h,children:[p?s.props.children:s,u?g.jsxRuntimeExports.jsx("title",{children:u}):null]}))});ra.muiName="SvgIcon";const si=ra;function _d(t,e){function n(r,s){return g.jsxRuntimeExports.jsx(si,O({"data-testid":`${e}Icon`,ref:s},r,{children:t}))}return n.muiName=si.muiName,g.reactExports.memo(g.reactExports.forwardRef(n))}const $d={configure:t=>{jo.configure(t)}},Nd=Object.freeze(Object.defineProperty({__proto__:null,capitalize:gt,createChainedFunction:cl,createSvgIcon:_d,debounce:ll,deprecatedPropType:ul,isMuiElement:fl,ownerDocument:Vo,ownerWindow:dl,requirePropFactory:hl,setRef:Mo,unstable_ClassNameGenerator:$d,unstable_useEnhancedEffect:Do,unstable_useId:gl,unsupportedProp:yl,useControlled:xl,useEventCallback:bl,useForkRef:vl,useIsFocusVisible:Al},Symbol.toStringTag,{value:"Module"})),Ud=g.getAugmentedNamespace(Nd);var ii;function Qr(){return ii||(ii=1,function(t){"use client";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return e.createSvgIcon}});var e=Ud}(Xn)),Xn}var zd=Nr;Object.defineProperty($r,"__esModule",{value:!0});var sa=$r.default=void 0,Hd=zd(Qr()),Wd=g.jsxRuntimeExports;sa=$r.default=(0,Hd.default)((0,Wd.jsx)("path",{d:"m10 17 5-5-5-5z"}),"ArrowRight");var ts={},Kd=Nr;Object.defineProperty(ts,"__esModule",{value:!0});var ia=ts.default=void 0,Gd=Kd(Qr()),qd=g.jsxRuntimeExports;ia=ts.default=(0,Gd.default)((0,qd.jsx)("path",{d:"M4 18h11c.55 0 1-.45 1-1s-.45-1-1-1H4c-.55 0-1 .45-1 1s.45 1 1 1m0-5h8c.55 0 1-.45 1-1s-.45-1-1-1H4c-.55 0-1 .45-1 1s.45 1 1 1M3 7c0 .55.45 1 1 1h11c.55 0 1-.45 1-1s-.45-1-1-1H4c-.55 0-1 .45-1 1m17.3 7.88L17.42 12l2.88-2.88c.39-.39.39-1.02 0-1.41a.9959.9959 0 0 0-1.41 0L15.3 11.3c-.39.39-.39 1.02 0 1.41l3.59 3.59c.39.39 1.02.39 1.41 0 .38-.39.39-1.03 0-1.42"}),"MenuOpenRounded");var es={},Xd=Nr;Object.defineProperty(es,"__esModule",{value:!0});var oa=es.default=void 0,Yd=Xd(Qr()),Jd=g.jsxRuntimeExports;oa=es.default=(0,Yd.default)((0,Jd.jsx)("path",{d:"M4 18h16c.55 0 1-.45 1-1s-.45-1-1-1H4c-.55 0-1 .45-1 1s.45 1 1 1m0-5h16c.55 0 1-.45 1-1s-.45-1-1-1H4c-.55 0-1 .45-1 1s.45 1 1 1M3 7c0 .55.45 1 1 1h16c.55 0 1-.45 1-1s-.45-1-1-1H4c-.55 0-1 .45-1 1"}),"MenuRounded");const aa=g.reactExports.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),Mn=g.reactExports.createContext({}),ns=g.reactExports.createContext(null),Dn=typeof document<"u",Zd=Dn?g.reactExports.useLayoutEffect:g.reactExports.useEffect,ca=g.reactExports.createContext({strict:!1}),rs=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),Qd="framerAppearId",la="data-"+rs(Qd);function th(t,e,n,r){const{visualElement:s}=g.reactExports.useContext(Mn),o=g.reactExports.useContext(ca),i=g.reactExports.useContext(ns),a=g.reactExports.useContext(aa).reducedMotion,c=g.reactExports.useRef();r=r||o.renderer,!c.current&&r&&(c.current=r(t,{visualState:e,parent:s,props:n,presenceContext:i,blockInitialAnimation:i?i.initial===!1:!1,reducedMotionConfig:a}));const l=c.current;g.reactExports.useInsertionEffect(()=>{l&&l.update(n,i)});const f=g.reactExports.useRef(!!(n[la]&&!window.HandoffComplete));return Zd(()=>{l&&(l.render(),f.current&&l.animationState&&l.animationState.animateChanges())}),g.reactExports.useEffect(()=>{l&&(l.updateFeatures(),!f.current&&l.animationState&&l.animationState.animateChanges(),f.current&&(f.current=!1,window.HandoffComplete=!0))}),l}function Jt(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function eh(t,e,n){return g.reactExports.useCallback(r=>{r&&t.mount&&t.mount(r),e&&(r?e.mount(r):e.unmount()),n&&(typeof n=="function"?n(r):Jt(n)&&(n.current=r))},[e])}function ke(t){return typeof t=="string"||Array.isArray(t)}function Ln(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}const ss=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],is=["initial",...ss];function jn(t){return Ln(t.animate)||is.some(e=>ke(t[e]))}function ua(t){return!!(jn(t)||t.variants)}function nh(t,e){if(jn(t)){const{initial:n,animate:r}=t;return{initial:n===!1||ke(n)?n:void 0,animate:ke(r)?r:void 0}}return t.inherit!==!1?e:{}}function rh(t){const{initial:e,animate:n}=nh(t,g.reactExports.useContext(Mn));return g.reactExports.useMemo(()=>({initial:e,animate:n}),[oi(e),oi(n)])}function oi(t){return Array.isArray(t)?t.join(" "):t}const ai={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"]},Ve={};for(const t in ai)Ve[t]={isEnabled:e=>ai[t].some(n=>!!e[n])};function sh(t){for(const e in t)Ve[e]={...Ve[e],...t[e]}}const fa=g.reactExports.createContext({}),da=g.reactExports.createContext({}),ih=Symbol.for("motionComponentSymbol");function oh({preloadedFeatures:t,createVisualElement:e,useRender:n,useVisualState:r,Component:s}){t&&sh(t);function o(a,c){let l;const f={...g.reactExports.useContext(aa),...a,layoutId:ah(a)},{isStatic:u}=f,d=rh(a),m=r(a,u);if(!u&&Dn){d.visualElement=th(s,m,f,e);const p=g.reactExports.useContext(da),h=g.reactExports.useContext(ca).strict;d.visualElement&&(l=d.visualElement.loadFeatures(f,h,t,p))}return g.reactExports.createElement(Mn.Provider,{value:d},l&&d.visualElement?g.reactExports.createElement(l,{visualElement:d.visualElement,...f}):null,n(s,a,eh(m,d.visualElement,c),m,u,d.visualElement))}const i=g.reactExports.forwardRef(o);return i[ih]=s,i}function ah({layoutId:t}){const e=g.reactExports.useContext(fa).id;return e&&t!==void 0?e+"-"+t:t}function ch(t){function e(r,s={}){return oh(t(r,s))}if(typeof Proxy>"u")return e;const n=new Map;return new Proxy(e,{get:(r,s)=>(n.has(s)||n.set(s,e(s)),n.get(s))})}const lh=["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 os(t){return typeof t!="string"||t.includes("-")?!1:!!(lh.indexOf(t)>-1||/[A-Z]/.test(t))}const fn={};function uh(t){Object.assign(fn,t)}const Ie=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],zt=new Set(Ie);function ha(t,{layout:e,layoutId:n}){return zt.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!fn[t]||t==="opacity")}const et=t=>!!(t&&t.getVelocity),fh={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},dh=Ie.length;function hh(t,{enableHardwareAcceleration:e=!0,allowTransformNone:n=!0},r,s){let o="";for(let i=0;i<dh;i++){const a=Ie[i];if(t[a]!==void 0){const c=fh[a]||a;o+=`${c}(${t[a]}) `}}return e&&!t.z&&(o+="translateZ(0)"),o=o.trim(),s?o=s(t,r?"":o):n&&r&&(o="none"),o}const pa=t=>e=>typeof e=="string"&&e.startsWith(t),ma=pa("--"),vr=pa("var(--"),ph=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,mh=(t,e)=>e&&typeof t=="number"?e.transform(t):t,Lt=(t,e,n)=>Math.min(Math.max(n,t),e),Ht={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},we={...Ht,transform:t=>Lt(0,1,t)},Ke={...Ht,default:1},Pe=t=>Math.round(t*1e5)/1e5,Bn=/(-)?([\d]*\.?[\d])+/g,ga=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,gh=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function _e(t){return typeof t=="string"}const $e=t=>({test:e=>_e(e)&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),Ot=$e("deg"),xt=$e("%"),C=$e("px"),yh=$e("vh"),xh=$e("vw"),ci={...xt,parse:t=>xt.parse(t)/100,transform:t=>xt.transform(t*100)},li={...Ht,transform:Math.round},ya={borderWidth:C,borderTopWidth:C,borderRightWidth:C,borderBottomWidth:C,borderLeftWidth:C,borderRadius:C,radius:C,borderTopLeftRadius:C,borderTopRightRadius:C,borderBottomRightRadius:C,borderBottomLeftRadius:C,width:C,maxWidth:C,height:C,maxHeight:C,size:C,top:C,right:C,bottom:C,left:C,padding:C,paddingTop:C,paddingRight:C,paddingBottom:C,paddingLeft:C,margin:C,marginTop:C,marginRight:C,marginBottom:C,marginLeft:C,rotate:Ot,rotateX:Ot,rotateY:Ot,rotateZ:Ot,scale:Ke,scaleX:Ke,scaleY:Ke,scaleZ:Ke,skew:Ot,skewX:Ot,skewY:Ot,distance:C,translateX:C,translateY:C,translateZ:C,x:C,y:C,z:C,perspective:C,transformPerspective:C,opacity:we,originX:ci,originY:ci,originZ:C,zIndex:li,fillOpacity:we,strokeOpacity:we,numOctaves:li};function as(t,e,n,r){const{style:s,vars:o,transform:i,transformOrigin:a}=t;let c=!1,l=!1,f=!0;for(const u in e){const d=e[u];if(ma(u)){o[u]=d;continue}const m=ya[u],p=mh(d,m);if(zt.has(u)){if(c=!0,i[u]=p,!f)continue;d!==(m.default||0)&&(f=!1)}else u.startsWith("origin")?(l=!0,a[u]=p):s[u]=p}if(e.transform||(c||r?s.transform=hh(t.transform,n,f,r):s.transform&&(s.transform="none")),l){const{originX:u="50%",originY:d="50%",originZ:m=0}=a;s.transformOrigin=`${u} ${d} ${m}`}}const cs=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function xa(t,e,n){for(const r in e)!et(e[r])&&!ha(r,n)&&(t[r]=e[r])}function bh({transformTemplate:t},e,n){return g.reactExports.useMemo(()=>{const r=cs();return as(r,e,{enableHardwareAcceleration:!n},t),Object.assign({},r.vars,r.style)},[e])}function vh(t,e,n){const r=t.style||{},s={};return xa(s,r,t),Object.assign(s,bh(t,e,n)),t.transformValues?t.transformValues(s):s}function Sh(t,e,n){const r={},s=vh(t,e,n);return t.drag&&t.dragListener!==!1&&(r.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(r.tabIndex=0),r.style=s,r}const wh=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function dn(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||wh.has(t)}let ba=t=>!dn(t);function Ph(t){t&&(ba=e=>e.startsWith("on")?!dn(e):t(e))}try{Ph(require("@emotion/is-prop-valid").default)}catch{}function Th(t,e,n){const r={};for(const s in t)s==="values"&&typeof t.values=="object"||(ba(s)||n===!0&&dn(s)||!e&&!dn(s)||t.draggable&&s.startsWith("onDrag"))&&(r[s]=t[s]);return r}function ui(t,e,n){return typeof t=="string"?t:C.transform(e+n*t)}function Eh(t,e,n){const r=ui(e,t.x,t.width),s=ui(n,t.y,t.height);return`${r} ${s}`}const Ch={offset:"stroke-dashoffset",array:"stroke-dasharray"},Ah={offset:"strokeDashoffset",array:"strokeDasharray"};function Rh(t,e,n=1,r=0,s=!0){t.pathLength=1;const o=s?Ch:Ah;t[o.offset]=C.transform(-r);const i=C.transform(e),a=C.transform(n);t[o.array]=`${i} ${a}`}function ls(t,{attrX:e,attrY:n,attrScale:r,originX:s,originY:o,pathLength:i,pathSpacing:a=1,pathOffset:c=0,...l},f,u,d){if(as(t,l,f,d),u){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:m,style:p,dimensions:h}=t;m.transform&&(h&&(p.transform=m.transform),delete m.transform),h&&(s!==void 0||o!==void 0||p.transform)&&(p.transformOrigin=Eh(h,s!==void 0?s:.5,o!==void 0?o:.5)),e!==void 0&&(m.x=e),n!==void 0&&(m.y=n),r!==void 0&&(m.scale=r),i!==void 0&&Rh(m,i,a,c,!1)}const va=()=>({...cs(),attrs:{}}),us=t=>typeof t=="string"&&t.toLowerCase()==="svg";function Oh(t,e,n,r){const s=g.reactExports.useMemo(()=>{const o=va();return ls(o,e,{enableHardwareAcceleration:!1},us(r),t.transformTemplate),{...o.attrs,style:{...o.style}}},[e]);if(t.style){const o={};xa(o,t.style,t),s.style={...o,...s.style}}return s}function kh(t=!1){return(n,r,s,{latestValues:o},i)=>{const c=(os(n)?Oh:Sh)(r,o,i,n),f={...Th(r,typeof n=="string",t),...c,ref:s},{children:u}=r,d=g.reactExports.useMemo(()=>et(u)?u.get():u,[u]);return g.reactExports.createElement(n,{...f,children:d})}}function Sa(t,{style:e,vars:n},r,s){Object.assign(t.style,e,s&&s.getProjectionStyles(r));for(const o in n)t.style.setProperty(o,n[o])}const wa=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 Pa(t,e,n,r){Sa(t,e,void 0,r);for(const s in e.attrs)t.setAttribute(wa.has(s)?s:rs(s),e.attrs[s])}function fs(t,e){const{style:n}=t,r={};for(const s in n)(et(n[s])||e.style&&et(e.style[s])||ha(s,t))&&(r[s]=n[s]);return r}function Ta(t,e){const n=fs(t,e);for(const r in t)if(et(t[r])||et(e[r])){const s=Ie.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;n[s]=t[r]}return n}function ds(t,e,n,r={},s={}){return typeof e=="function"&&(e=e(n!==void 0?n:t.custom,r,s)),typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"&&(e=e(n!==void 0?n:t.custom,r,s)),e}function Vh(t){const e=g.reactExports.useRef(null);return e.current===null&&(e.current=t()),e.current}const hn=t=>Array.isArray(t),Mh=t=>!!(t&&typeof t=="object"&&t.mix&&t.toValue),Dh=t=>hn(t)?t[t.length-1]||0:t;function en(t){const e=et(t)?t.get():t;return Mh(e)?e.toValue():e}function Lh({scrapeMotionValuesFromProps:t,createRenderState:e,onMount:n},r,s,o){const i={latestValues:jh(r,s,o,t),renderState:e()};return n&&(i.mount=a=>n(r,a,i)),i}const Ea=t=>(e,n)=>{const r=g.reactExports.useContext(Mn),s=g.reactExports.useContext(ns),o=()=>Lh(t,e,r,s);return n?o():Vh(o)};function jh(t,e,n,r){const s={},o=r(t,{});for(const d in o)s[d]=en(o[d]);let{initial:i,animate:a}=t;const c=jn(t),l=ua(t);e&&l&&!c&&t.inherit!==!1&&(i===void 0&&(i=e.initial),a===void 0&&(a=e.animate));let f=n?n.initial===!1:!1;f=f||i===!1;const u=f?a:i;return u&&typeof u!="boolean"&&!Ln(u)&&(Array.isArray(u)?u:[u]).forEach(m=>{const p=ds(t,m);if(!p)return;const{transitionEnd:h,transition:y,...b}=p;for(const v in b){let x=b[v];if(Array.isArray(x)){const w=f?x.length-1:0;x=x[w]}x!==null&&(s[v]=x)}for(const v in h)s[v]=h[v]}),s}const U=t=>t;class fi{constructor(){this.order=[],this.scheduled=new Set}add(e){if(!this.scheduled.has(e))return this.scheduled.add(e),this.order.push(e),!0}remove(e){const n=this.order.indexOf(e);n!==-1&&(this.order.splice(n,1),this.scheduled.delete(e))}clear(){this.order.length=0,this.scheduled.clear()}}function Bh(t){let e=new fi,n=new fi,r=0,s=!1,o=!1;const i=new WeakSet,a={schedule:(c,l=!1,f=!1)=>{const u=f&&s,d=u?e:n;return l&&i.add(c),d.add(c)&&u&&s&&(r=e.order.length),c},cancel:c=>{n.remove(c),i.delete(c)},process:c=>{if(s){o=!0;return}if(s=!0,[e,n]=[n,e],n.clear(),r=e.order.length,r)for(let l=0;l<r;l++){const f=e.order[l];f(c),i.has(f)&&(a.schedule(f),t())}s=!1,o&&(o=!1,a.process(c))}};return a}const Ge=["prepare","read","update","preRender","render","postRender"],Fh=40;function Ih(t,e){let n=!1,r=!0;const s={delta:0,timestamp:0,isProcessing:!1},o=Ge.reduce((u,d)=>(u[d]=Bh(()=>n=!0),u),{}),i=u=>o[u].process(s),a=()=>{const u=performance.now();n=!1,s.delta=r?1e3/60:Math.max(Math.min(u-s.timestamp,Fh),1),s.timestamp=u,s.isProcessing=!0,Ge.forEach(i),s.isProcessing=!1,n&&e&&(r=!1,t(a))},c=()=>{n=!0,r=!0,s.isProcessing||t(a)};return{schedule:Ge.reduce((u,d)=>{const m=o[d];return u[d]=(p,h=!1,y=!1)=>(n||c(),m.schedule(p,h,y)),u},{}),cancel:u=>Ge.forEach(d=>o[d].cancel(u)),state:s,steps:o}}const{schedule:L,cancel:Et,state:J,steps:Qn}=Ih(typeof requestAnimationFrame<"u"?requestAnimationFrame:U,!0),_h={useVisualState:Ea({scrapeMotionValuesFromProps:Ta,createRenderState:va,onMount:(t,e,{renderState:n,latestValues:r})=>{L.read(()=>{try{n.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),L.render(()=>{ls(n,r,{enableHardwareAcceleration:!1},us(e.tagName),t.transformTemplate),Pa(e,n)})}})},$h={useVisualState:Ea({scrapeMotionValuesFromProps:fs,createRenderState:cs})};function Nh(t,{forwardMotionProps:e=!1},n,r){return{...os(t)?_h:$h,preloadedFeatures:n,useRender:kh(e),createVisualElement:r,Component:t}}function vt(t,e,n,r={passive:!0}){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n)}const Ca=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1;function Fn(t,e="page"){return{point:{x:t[e+"X"],y:t[e+"Y"]}}}const Uh=t=>e=>Ca(e)&&t(e,Fn(e));function St(t,e,n,r){return vt(t,e,Uh(n),r)}const zh=(t,e)=>n=>e(t(n)),Mt=(...t)=>t.reduce(zh);function Aa(t){let e=null;return()=>{const n=()=>{e=null};return e===null?(e=t,n):!1}}const di=Aa("dragHorizontal"),hi=Aa("dragVertical");function Ra(t){let e=!1;if(t==="y")e=hi();else if(t==="x")e=di();else{const n=di(),r=hi();n&&r?e=()=>{n(),r()}:(n&&n(),r&&r())}return e}function Oa(){const t=Ra(!0);return t?(t(),!1):!0}class Bt{constructor(e){this.isMounted=!1,this.node=e}update(){}}function pi(t,e){const n="pointer"+(e?"enter":"leave"),r="onHover"+(e?"Start":"End"),s=(o,i)=>{if(o.pointerType==="touch"||Oa())return;const a=t.getProps();t.animationState&&a.whileHover&&t.animationState.setActive("whileHover",e),a[r]&&L.update(()=>a[r](o,i))};return St(t.current,n,s,{passive:!t.getProps()[r]})}class Hh extends Bt{mount(){this.unmount=Mt(pi(this.node,!0),pi(this.node,!1))}unmount(){}}class Wh extends Bt{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=Mt(vt(this.node.current,"focus",()=>this.onFocus()),vt(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const ka=(t,e)=>e?t===e?!0:ka(t,e.parentElement):!1;function tr(t,e){if(!e)return;const n=new PointerEvent("pointer"+t);e(n,Fn(n))}class Kh extends Bt{constructor(){super(...arguments),this.removeStartListeners=U,this.removeEndListeners=U,this.removeAccessibleListeners=U,this.startPointerPress=(e,n)=>{if(this.isPressing)return;this.removeEndListeners();const r=this.node.getProps(),o=St(window,"pointerup",(a,c)=>{if(!this.checkPressEnd())return;const{onTap:l,onTapCancel:f,globalTapTarget:u}=this.node.getProps();L.update(()=>{!u&&!ka(this.node.current,a.target)?f&&f(a,c):l&&l(a,c)})},{passive:!(r.onTap||r.onPointerUp)}),i=St(window,"pointercancel",(a,c)=>this.cancelPress(a,c),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=Mt(o,i),this.startPress(e,n)},this.startAccessiblePress=()=>{const e=o=>{if(o.key!=="Enter"||this.isPressing)return;const i=a=>{a.key!=="Enter"||!this.checkPressEnd()||tr("up",(c,l)=>{const{onTap:f}=this.node.getProps();f&&L.update(()=>f(c,l))})};this.removeEndListeners(),this.removeEndListeners=vt(this.node.current,"keyup",i),tr("down",(a,c)=>{this.startPress(a,c)})},n=vt(this.node.current,"keydown",e),r=()=>{this.isPressing&&tr("cancel",(o,i)=>this.cancelPress(o,i))},s=vt(this.node.current,"blur",r);this.removeAccessibleListeners=Mt(n,s)}}startPress(e,n){this.isPressing=!0;const{onTapStart:r,whileTap:s}=this.node.getProps();s&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&L.update(()=>r(e,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!Oa()}cancelPress(e,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&L.update(()=>r(e,n))}mount(){const e=this.node.getProps(),n=St(e.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),r=vt(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Mt(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const Sr=new WeakMap,er=new WeakMap,Gh=t=>{const e=Sr.get(t.target);e&&e(t)},qh=t=>{t.forEach(Gh)};function Xh({root:t,...e}){const n=t||document;er.has(n)||er.set(n,{});const r=er.get(n),s=JSON.stringify(e);return r[s]||(r[s]=new IntersectionObserver(qh,{root:t,...e})),r[s]}function Yh(t,e,n){const r=Xh(e);return Sr.set(t,n),r.observe(t),()=>{Sr.delete(t),r.unobserve(t)}}const Jh={some:0,all:1};class Zh extends Bt{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:n,margin:r,amount:s="some",once:o}=e,i={root:n?n.current:void 0,rootMargin:r,threshold:typeof s=="number"?s:Jh[s]},a=c=>{const{isIntersecting:l}=c;if(this.isInView===l||(this.isInView=l,o&&!l&&this.hasEnteredView))return;l&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",l);const{onViewportEnter:f,onViewportLeave:u}=this.node.getProps(),d=l?f:u;d&&d(c)};return Yh(this.node.current,i,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(Qh(e,n))&&this.startObserver()}unmount(){}}function Qh({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const tp={inView:{Feature:Zh},tap:{Feature:Kh},focus:{Feature:Wh},hover:{Feature:Hh}};function Va(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}function ep(t){const e={};return t.values.forEach((n,r)=>e[r]=n.get()),e}function np(t){const e={};return t.values.forEach((n,r)=>e[r]=n.getVelocity()),e}function In(t,e,n){const r=t.getProps();return ds(r,e,n!==void 0?n:r.custom,ep(t),np(t))}let rp=U,hs=U;const Dt=t=>t*1e3,wt=t=>t/1e3,sp={current:!1},Ma=t=>Array.isArray(t)&&typeof t[0]=="number";function Da(t){return!!(!t||typeof t=="string"&&La[t]||Ma(t)||Array.isArray(t)&&t.every(Da))}const ve=([t,e,n,r])=>`cubic-bezier(${t}, ${e}, ${n}, ${r})`,La={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ve([0,.65,.55,1]),circOut:ve([.55,0,1,.45]),backIn:ve([.31,.01,.66,-.59]),backOut:ve([.33,1.53,.69,.99])};function ja(t){if(t)return Ma(t)?ve(t):Array.isArray(t)?t.map(ja):La[t]}function ip(t,e,n,{delay:r=0,duration:s,repeat:o=0,repeatType:i="loop",ease:a,times:c}={}){const l={[e]:n};c&&(l.offset=c);const f=ja(a);return Array.isArray(f)&&(l.easing=f),t.animate(l,{delay:r,duration:s,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:o+1,direction:i==="reverse"?"alternate":"normal"})}function op(t,{repeat:e,repeatType:n="loop"}){const r=e&&n!=="loop"&&e%2===1?0:t.length-1;return t[r]}const Ba=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,ap=1e-7,cp=12;function lp(t,e,n,r,s){let o,i,a=0;do i=e+(n-e)/2,o=Ba(i,r,s)-t,o>0?n=i:e=i;while(Math.abs(o)>ap&&++a<cp);return i}function Ne(t,e,n,r){if(t===e&&n===r)return U;const s=o=>lp(o,0,1,t,n);return o=>o===0||o===1?o:Ba(s(o),e,r)}const up=Ne(.42,0,1,1),fp=Ne(0,0,.58,1),Fa=Ne(.42,0,.58,1),dp=t=>Array.isArray(t)&&typeof t[0]!="number",Ia=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,_a=t=>e=>1-t(1-e),ps=t=>1-Math.sin(Math.acos(t)),$a=_a(ps),hp=Ia(ps),Na=Ne(.33,1.53,.69,.99),ms=_a(Na),pp=Ia(ms),mp=t=>(t*=2)<1?.5*ms(t):.5*(2-Math.pow(2,-10*(t-1))),gp={linear:U,easeIn:up,easeInOut:Fa,easeOut:fp,circIn:ps,circInOut:hp,circOut:$a,backIn:ms,backInOut:pp,backOut:Na,anticipate:mp},mi=t=>{if(Array.isArray(t)){hs(t.length===4);const[e,n,r,s]=t;return Ne(e,n,r,s)}else if(typeof t=="string")return gp[t];return t},gs=(t,e)=>n=>!!(_e(n)&&gh.test(n)&&n.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(n,e)),Ua=(t,e,n)=>r=>{if(!_e(r))return r;const[s,o,i,a]=r.match(Bn);return{[t]:parseFloat(s),[e]:parseFloat(o),[n]:parseFloat(i),alpha:a!==void 0?parseFloat(a):1}},yp=t=>Lt(0,255,t),nr={...Ht,transform:t=>Math.round(yp(t))},Nt={test:gs("rgb","red"),parse:Ua("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:r=1})=>"rgba("+nr.transform(t)+", "+nr.transform(e)+", "+nr.transform(n)+", "+Pe(we.transform(r))+")"};function xp(t){let e="",n="",r="",s="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),r=t.substring(5,7),s=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),r=t.substring(3,4),s=t.substring(4,5),e+=e,n+=n,r+=r,s+=s),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:s?parseInt(s,16)/255:1}}const wr={test:gs("#"),parse:xp,transform:Nt.transform},Zt={test:gs("hsl","hue"),parse:Ua("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:r=1})=>"hsla("+Math.round(t)+", "+xt.transform(Pe(e))+", "+xt.transform(Pe(n))+", "+Pe(we.transform(r))+")"},Q={test:t=>Nt.test(t)||wr.test(t)||Zt.test(t),parse:t=>Nt.test(t)?Nt.parse(t):Zt.test(t)?Zt.parse(t):wr.parse(t),transform:t=>_e(t)?t:t.hasOwnProperty("red")?Nt.transform(t):Zt.transform(t)},I=(t,e,n)=>-n*t+n*e+t;function rr(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 bp({hue:t,saturation:e,lightness:n,alpha:r}){t/=360,e/=100,n/=100;let s=0,o=0,i=0;if(!e)s=o=i=n;else{const a=n<.5?n*(1+e):n+e-n*e,c=2*n-a;s=rr(c,a,t+1/3),o=rr(c,a,t),i=rr(c,a,t-1/3)}return{red:Math.round(s*255),green:Math.round(o*255),blue:Math.round(i*255),alpha:r}}const sr=(t,e,n)=>{const r=t*t;return Math.sqrt(Math.max(0,n*(e*e-r)+r))},vp=[wr,Nt,Zt],Sp=t=>vp.find(e=>e.test(t));function gi(t){const e=Sp(t);let n=e.parse(t);return e===Zt&&(n=bp(n)),n}const za=(t,e)=>{const n=gi(t),r=gi(e),s={...n};return o=>(s.red=sr(n.red,r.red,o),s.green=sr(n.green,r.green,o),s.blue=sr(n.blue,r.blue,o),s.alpha=I(n.alpha,r.alpha,o),Nt.transform(s))};function wp(t){var e,n;return isNaN(t)&&_e(t)&&(((e=t.match(Bn))===null||e===void 0?void 0:e.length)||0)+(((n=t.match(ga))===null||n===void 0?void 0:n.length)||0)>0}const Ha={regex:ph,countKey:"Vars",token:"${v}",parse:U},Wa={regex:ga,countKey:"Colors",token:"${c}",parse:Q.parse},Ka={regex:Bn,countKey:"Numbers",token:"${n}",parse:Ht.parse};function ir(t,{regex:e,countKey:n,token:r,parse:s}){const o=t.tokenised.match(e);o&&(t["num"+n]=o.length,t.tokenised=t.tokenised.replace(e,r),t.values.push(...o.map(s)))}function pn(t){const e=t.toString(),n={value:e,tokenised:e,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&ir(n,Ha),ir(n,Wa),ir(n,Ka),n}function Ga(t){return pn(t).values}function qa(t){const{values:e,numColors:n,numVars:r,tokenised:s}=pn(t),o=e.length;return i=>{let a=s;for(let c=0;c<o;c++)c<r?a=a.replace(Ha.token,i[c]):c<r+n?a=a.replace(Wa.token,Q.transform(i[c])):a=a.replace(Ka.token,Pe(i[c]));return a}}const Pp=t=>typeof t=="number"?0:t;function Tp(t){const e=Ga(t);return qa(t)(e.map(Pp))}const jt={test:wp,parse:Ga,createTransformer:qa,getAnimatableNone:Tp},Xa=(t,e)=>n=>`${n>0?e:t}`;function Ya(t,e){return typeof t=="number"?n=>I(t,e,n):Q.test(t)?za(t,e):t.startsWith("var(")?Xa(t,e):Za(t,e)}const Ja=(t,e)=>{const n=[...t],r=n.length,s=t.map((o,i)=>Ya(o,e[i]));return o=>{for(let i=0;i<r;i++)n[i]=s[i](o);return n}},Ep=(t,e)=>{const n={...t,...e},r={};for(const s in n)t[s]!==void 0&&e[s]!==void 0&&(r[s]=Ya(t[s],e[s]));return s=>{for(const o in r)n[o]=r[o](s);return n}},Za=(t,e)=>{const n=jt.createTransformer(e),r=pn(t),s=pn(e);return r.numVars===s.numVars&&r.numColors===s.numColors&&r.numNumbers>=s.numNumbers?Mt(Ja(r.values,s.values),n):Xa(t,e)},Me=(t,e,n)=>{const r=e-t;return r===0?1:(n-t)/r},yi=(t,e)=>n=>I(t,e,n);function Cp(t){return typeof t=="number"?yi:typeof t=="string"?Q.test(t)?za:Za:Array.isArray(t)?Ja:typeof t=="object"?Ep:yi}function Ap(t,e,n){const r=[],s=n||Cp(t[0]),o=t.length-1;for(let i=0;i<o;i++){let a=s(t[i],t[i+1]);if(e){const c=Array.isArray(e)?e[i]||U:e;a=Mt(c,a)}r.push(a)}return r}function Qa(t,e,{clamp:n=!0,ease:r,mixer:s}={}){const o=t.length;if(hs(o===e.length),o===1)return()=>e[0];t[0]>t[o-1]&&(t=[...t].reverse(),e=[...e].reverse());const i=Ap(e,r,s),a=i.length,c=l=>{let f=0;if(a>1)for(;f<t.length-2&&!(l<t[f+1]);f++);const u=Me(t[f],t[f+1],l);return i[f](u)};return n?l=>c(Lt(t[0],t[o-1],l)):c}function Rp(t,e){const n=t[t.length-1];for(let r=1;r<=e;r++){const s=Me(0,e,r);t.push(I(n,1,s))}}function Op(t){const e=[0];return Rp(e,t.length-1),e}function kp(t,e){return t.map(n=>n*e)}function Vp(t,e){return t.map(()=>e||Fa).splice(0,t.length-1)}function mn({duration:t=300,keyframes:e,times:n,ease:r="easeInOut"}){const s=dp(r)?r.map(mi):mi(r),o={done:!1,value:e[0]},i=kp(n&&n.length===e.length?n:Op(e),t),a=Qa(i,e,{ease:Array.isArray(s)?s:Vp(e,s)});return{calculatedDuration:t,next:c=>(o.value=a(c),o.done=c>=t,o)}}function tc(t,e){return e?t*(1e3/e):0}const Mp=5;function ec(t,e,n){const r=Math.max(e-Mp,0);return tc(n-t(r),e-r)}const or=.001,Dp=.01,xi=10,Lp=.05,jp=1;function Bp({duration:t=800,bounce:e=.25,velocity:n=0,mass:r=1}){let s,o;rp(t<=Dt(xi));let i=1-e;i=Lt(Lp,jp,i),t=Lt(Dp,xi,wt(t)),i<1?(s=l=>{const f=l*i,u=f*t,d=f-n,m=Pr(l,i),p=Math.exp(-u);return or-d/m*p},o=l=>{const u=l*i*t,d=u*n+n,m=Math.pow(i,2)*Math.pow(l,2)*t,p=Math.exp(-u),h=Pr(Math.pow(l,2),i);return(-s(l)+or>0?-1:1)*((d-m)*p)/h}):(s=l=>{const f=Math.exp(-l*t),u=(l-n)*t+1;return-or+f*u},o=l=>{const f=Math.exp(-l*t),u=(n-l)*(t*t);return f*u});const a=5/t,c=Ip(s,o,a);if(t=Dt(t),isNaN(c))return{stiffness:100,damping:10,duration:t};{const l=Math.pow(c,2)*r;return{stiffness:l,damping:i*2*Math.sqrt(r*l),duration:t}}}const Fp=12;function Ip(t,e,n){let r=n;for(let s=1;s<Fp;s++)r=r-t(r)/e(r);return r}function Pr(t,e){return t*Math.sqrt(1-e*e)}const _p=["duration","bounce"],$p=["stiffness","damping","mass"];function bi(t,e){return e.some(n=>t[n]!==void 0)}function Np(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!bi(t,$p)&&bi(t,_p)){const n=Bp(t);e={...e,...n,mass:1},e.isResolvedFromDuration=!0}return e}function nc({keyframes:t,restDelta:e,restSpeed:n,...r}){const s=t[0],o=t[t.length-1],i={done:!1,value:s},{stiffness:a,damping:c,mass:l,duration:f,velocity:u,isResolvedFromDuration:d}=Np({...r,velocity:-wt(r.velocity||0)}),m=u||0,p=c/(2*Math.sqrt(a*l)),h=o-s,y=wt(Math.sqrt(a/l)),b=Math.abs(h)<5;n||(n=b?.01:2),e||(e=b?.005:.5);let v;if(p<1){const x=Pr(y,p);v=w=>{const P=Math.exp(-p*y*w);return o-P*((m+p*y*h)/x*Math.sin(x*w)+h*Math.cos(x*w))}}else if(p===1)v=x=>o-Math.exp(-y*x)*(h+(m+y*h)*x);else{const x=y*Math.sqrt(p*p-1);v=w=>{const P=Math.exp(-p*y*w),E=Math.min(x*w,300);return o-P*((m+p*y*h)*Math.sinh(E)+x*h*Math.cosh(E))/x}}return{calculatedDuration:d&&f||null,next:x=>{const w=v(x);if(d)i.done=x>=f;else{let P=m;x!==0&&(p<1?P=ec(v,x,w):P=0);const E=Math.abs(P)<=n,T=Math.abs(o-w)<=e;i.done=E&&T}return i.value=i.done?o:w,i}}}function vi({keyframes:t,velocity:e=0,power:n=.8,timeConstant:r=325,bounceDamping:s=10,bounceStiffness:o=500,modifyTarget:i,min:a,max:c,restDelta:l=.5,restSpeed:f}){const u=t[0],d={done:!1,value:u},m=R=>a!==void 0&&R<a||c!==void 0&&R>c,p=R=>a===void 0?c:c===void 0||Math.abs(a-R)<Math.abs(c-R)?a:c;let h=n*e;const y=u+h,b=i===void 0?y:i(y);b!==y&&(h=b-u);const v=R=>-h*Math.exp(-R/r),x=R=>b+v(R),w=R=>{const D=v(R),A=x(R);d.done=Math.abs(D)<=l,d.value=d.done?b:A};let P,E;const T=R=>{m(d.value)&&(P=R,E=nc({keyframes:[d.value,p(d.value)],velocity:ec(x,R,d.value),damping:s,stiffness:o,restDelta:l,restSpeed:f}))};return T(0),{calculatedDuration:null,next:R=>{let D=!1;return!E&&P===void 0&&(D=!0,w(R),T(R)),P!==void 0&&R>P?E.next(R-P):(!D&&w(R),d)}}}const Up=t=>{const e=({timestamp:n})=>t(n);return{start:()=>L.update(e,!0),stop:()=>Et(e),now:()=>J.isProcessing?J.timestamp:performance.now()}},Si=2e4;function wi(t){let e=0;const n=50;let r=t.next(e);for(;!r.done&&e<Si;)e+=n,r=t.next(e);return e>=Si?1/0:e}const zp={decay:vi,inertia:vi,tween:mn,keyframes:mn,spring:nc};function gn({autoplay:t=!0,delay:e=0,driver:n=Up,keyframes:r,type:s="keyframes",repeat:o=0,repeatDelay:i=0,repeatType:a="loop",onPlay:c,onStop:l,onComplete:f,onUpdate:u,...d}){let m=1,p=!1,h,y;const b=()=>{y=new Promise(F=>{h=F})};b();let v;const x=zp[s]||mn;let w;x!==mn&&typeof r[0]!="number"&&(w=Qa([0,100],r,{clamp:!1}),r=[0,100]);const P=x({...d,keyframes:r});let E;a==="mirror"&&(E=x({...d,keyframes:[...r].reverse(),velocity:-(d.velocity||0)}));let T="idle",R=null,D=null,A=null;P.calculatedDuration===null&&o&&(P.calculatedDuration=wi(P));const{calculatedDuration:H}=P;let _=1/0,Z=1/0;H!==null&&(_=H+i,Z=_*(o+1)-i);let B=0;const ut=F=>{if(D===null)return;m>0&&(D=Math.min(D,F)),m<0&&(D=Math.min(F-Z/m,D)),R!==null?B=R:B=Math.round(F-D)*m;const he=B-e*(m>=0?1:-1),Ms=m>=0?he<0:he>Z;B=Math.max(he,0),T==="finished"&&R===null&&(B=Z);let Ds=B,Ls=P;if(o){const qn=Math.min(B,Z)/_;let He=Math.floor(qn),Ft=qn%1;!Ft&&qn>=1&&(Ft=1),Ft===1&&He--,He=Math.min(He,o+1),!!(He%2)&&(a==="reverse"?(Ft=1-Ft,i&&(Ft-=i/_)):a==="mirror"&&(Ls=E)),Ds=Lt(0,1,Ft)*_}const pe=Ms?{done:!1,value:r[0]}:Ls.next(Ds);w&&(pe.value=w(pe.value));let{done:js}=pe;!Ms&&H!==null&&(js=m>=0?B>=Z:B<=0);const al=R===null&&(T==="finished"||T==="running"&&js);return u&&u(pe.value),al&&de(),pe},q=()=>{v&&v.stop(),v=void 0},At=()=>{T="idle",q(),h(),b(),D=A=null},de=()=>{T="finished",f&&f(),q(),h()},Wt=()=>{if(p)return;v||(v=n(ut));const F=v.now();c&&c(),R!==null?D=F-R:(!D||T==="finished")&&(D=F),T==="finished"&&b(),A=D,R=null,T="running",v.start()};t&&Wt();const Vs={then(F,he){return y.then(F,he)},get time(){return wt(B)},set time(F){F=Dt(F),B=F,R!==null||!v||m===0?R=F:D=v.now()-F/m},get duration(){const F=P.calculatedDuration===null?wi(P):P.calculatedDuration;return wt(F)},get speed(){return m},set speed(F){F===m||!v||(m=F,Vs.time=wt(B))},get state(){return T},play:Wt,pause:()=>{T="paused",R=B},stop:()=>{p=!0,T!=="idle"&&(T="idle",l&&l(),At())},cancel:()=>{A!==null&&ut(A),At()},complete:()=>{T="finished"},sample:F=>(D=0,ut(F))};return Vs}function Hp(t){let e;return()=>(e===void 0&&(e=t()),e)}const Wp=Hp(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Kp=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),qe=10,Gp=2e4,qp=(t,e)=>e.type==="spring"||t==="backgroundColor"||!Da(e.ease);function Xp(t,e,{onUpdate:n,onComplete:r,...s}){if(!(Wp()&&Kp.has(e)&&!s.repeatDelay&&s.repeatType!=="mirror"&&s.damping!==0&&s.type!=="inertia"))return!1;let i=!1,a,c,l=!1;const f=()=>{c=new Promise(x=>{a=x})};f();let{keyframes:u,duration:d=300,ease:m,times:p}=s;if(qp(e,s)){const x=gn({...s,repeat:0,delay:0});let w={done:!1,value:u[0]};const P=[];let E=0;for(;!w.done&&E<Gp;)w=x.sample(E),P.push(w.value),E+=qe;p=void 0,u=P,d=E-qe,m="linear"}const h=ip(t.owner.current,e,u,{...s,duration:d,ease:m,times:p}),y=()=>{l=!1,h.cancel()},b=()=>{l=!0,L.update(y),a(),f()};return h.onfinish=()=>{l||(t.set(op(u,s)),r&&r(),b())},{then(x,w){return c.then(x,w)},attachTimeline(x){return h.timeline=x,h.onfinish=null,U},get time(){return wt(h.currentTime||0)},set time(x){h.currentTime=Dt(x)},get speed(){return h.playbackRate},set speed(x){h.playbackRate=x},get duration(){return wt(d)},play:()=>{i||(h.play(),Et(y))},pause:()=>h.pause(),stop:()=>{if(i=!0,h.playState==="idle")return;const{currentTime:x}=h;if(x){const w=gn({...s,autoplay:!1});t.setWithVelocity(w.sample(x-qe).value,w.sample(x).value,qe)}b()},complete:()=>{l||h.finish()},cancel:b}}function Yp({keyframes:t,delay:e,onUpdate:n,onComplete:r}){const s=()=>(n&&n(t[t.length-1]),r&&r(),{time:0,speed:1,duration:0,play:U,pause:U,stop:U,then:o=>(o(),Promise.resolve()),cancel:U,complete:U});return e?gn({keyframes:[0,1],duration:0,delay:e,onComplete:s}):s()}const Jp={type:"spring",stiffness:500,damping:25,restSpeed:10},Zp=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),Qp={type:"keyframes",duration:.8},tm={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},em=(t,{keyframes:e})=>e.length>2?Qp:zt.has(t)?t.startsWith("scale")?Zp(e[1]):Jp:tm,Tr=(t,e)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(jt.test(e)||e==="0")&&!e.startsWith("url(")),nm=new Set(["brightness","contrast","saturate","opacity"]);function rm(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[r]=n.match(Bn)||[];if(!r)return t;const s=n.replace(r,"");let o=nm.has(e)?1:0;return r!==n&&(o*=100),e+"("+o+s+")"}const sm=/([a-z-]*)\(.*?\)/g,Er={...jt,getAnimatableNone:t=>{const e=t.match(sm);return e?e.map(rm).join(" "):t}},im={...ya,color:Q,backgroundColor:Q,outlineColor:Q,fill:Q,stroke:Q,borderColor:Q,borderTopColor:Q,borderRightColor:Q,borderBottomColor:Q,borderLeftColor:Q,filter:Er,WebkitFilter:Er},ys=t=>im[t];function rc(t,e){let n=ys(t);return n!==Er&&(n=jt),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const sc=t=>/^0[^.\s]+$/.test(t);function om(t){if(typeof t=="number")return t===0;if(t!==null)return t==="none"||t==="0"||sc(t)}function am(t,e,n,r){const s=Tr(e,n);let o;Array.isArray(n)?o=[...n]:o=[null,n];const i=r.from!==void 0?r.from:t.get();let a;const c=[];for(let l=0;l<o.length;l++)o[l]===null&&(o[l]=l===0?i:o[l-1]),om(o[l])&&c.push(l),typeof o[l]=="string"&&o[l]!=="none"&&o[l]!=="0"&&(a=o[l]);if(s&&c.length&&a)for(let l=0;l<c.length;l++){const f=c[l];o[f]=rc(e,a)}return o}function cm({when:t,delay:e,delayChildren:n,staggerChildren:r,staggerDirection:s,repeat:o,repeatType:i,repeatDelay:a,from:c,elapsed:l,...f}){return!!Object.keys(f).length}function xs(t,e){return t[e]||t.default||t}const lm={skipAnimations:!1},bs=(t,e,n,r={})=>s=>{const o=xs(r,t)||{},i=o.delay||r.delay||0;let{elapsed:a=0}=r;a=a-Dt(i);const c=am(e,t,n,o),l=c[0],f=c[c.length-1],u=Tr(t,l),d=Tr(t,f);let m={keyframes:c,velocity:e.getVelocity(),ease:"easeOut",...o,delay:-a,onUpdate:p=>{e.set(p),o.onUpdate&&o.onUpdate(p)},onComplete:()=>{s(),o.onComplete&&o.onComplete()}};if(cm(o)||(m={...m,...em(t,m)}),m.duration&&(m.duration=Dt(m.duration)),m.repeatDelay&&(m.repeatDelay=Dt(m.repeatDelay)),!u||!d||sp.current||o.type===!1||lm.skipAnimations)return Yp(m);if(!r.isHandoff&&e.owner&&e.owner.current instanceof HTMLElement&&!e.owner.getProps().onUpdate){const p=Xp(e,t,m);if(p)return p}return gn(m)};function yn(t){return!!(et(t)&&t.add)}const ic=t=>/^\-?\d*\.?\d+$/.test(t);function vs(t,e){t.indexOf(e)===-1&&t.push(e)}function Ss(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class ws{constructor(){this.subscriptions=[]}add(e){return vs(this.subscriptions,e),()=>Ss(this.subscriptions,e)}notify(e,n,r){const s=this.subscriptions.length;if(s)if(s===1)this.subscriptions[0](e,n,r);else for(let o=0;o<s;o++){const i=this.subscriptions[o];i&&i(e,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const um=t=>!isNaN(parseFloat(t));class fm{constructor(e,n={}){this.version="10.18.0",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(r,s=!0)=>{this.prev=this.current,this.current=r;const{delta:o,timestamp:i}=J;this.lastUpdated!==i&&(this.timeDelta=o,this.lastUpdated=i,L.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),s&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>L.postRender(this.velocityCheck),this.velocityCheck=({timestamp:r})=>{r!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=um(this.current),this.owner=n.owner}onChange(e){return this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new ws);const r=this.events[e].add(n);return e==="change"?()=>{r(),L.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e,n=!0){!n||!this.passiveEffect?this.updateAndNotify(e,n):this.passiveEffect(e,this.updateAndNotify)}setWithVelocity(e,n,r){this.set(n),this.prev=e,this.timeDelta=r}jump(e){this.updateAndNotify(e),this.prev=e,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?tc(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(e){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=e(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function oe(t,e){return new fm(t,e)}const oc=t=>e=>e.test(t),dm={test:t=>t==="auto",parse:t=>t},ac=[Ht,C,xt,Ot,xh,yh,dm],ye=t=>ac.find(oc(t)),hm=[...ac,Q,jt],pm=t=>hm.find(oc(t));function mm(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,oe(n))}function gm(t,e){const n=In(t,e);let{transitionEnd:r={},transition:s={},...o}=n?t.makeTargetAnimatable(n,!1):{};o={...o,...r};for(const i in o){const a=Dh(o[i]);mm(t,i,a)}}function ym(t,e,n){var r,s;const o=Object.keys(e).filter(a=>!t.hasValue(a)),i=o.length;if(i)for(let a=0;a<i;a++){const c=o[a],l=e[c];let f=null;Array.isArray(l)&&(f=l[0]),f===null&&(f=(s=(r=n[c])!==null&&r!==void 0?r:t.readValue(c))!==null&&s!==void 0?s:e[c]),f!=null&&(typeof f=="string"&&(ic(f)||sc(f))?f=parseFloat(f):!pm(f)&&jt.test(l)&&(f=rc(c,l)),t.addValue(c,oe(f,{owner:t})),n[c]===void 0&&(n[c]=f),f!==null&&t.setBaseTarget(c,f))}}function xm(t,e){return e?(e[t]||e.default||e).from:void 0}function bm(t,e,n){const r={};for(const s in t){const o=xm(s,e);if(o!==void 0)r[s]=o;else{const i=n.getValue(s);i&&(r[s]=i.get())}}return r}function vm({protectedKeys:t,needsAnimating:e},n){const r=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,r}function Sm(t,e){const n=t.get();if(Array.isArray(e)){for(let r=0;r<e.length;r++)if(e[r]!==n)return!0}else return n!==e}function cc(t,e,{delay:n=0,transitionOverride:r,type:s}={}){let{transition:o=t.getDefaultTransition(),transitionEnd:i,...a}=t.makeTargetAnimatable(e);const c=t.getValue("willChange");r&&(o=r);const l=[],f=s&&t.animationState&&t.animationState.getState()[s];for(const u in a){const d=t.getValue(u),m=a[u];if(!d||m===void 0||f&&vm(f,u))continue;const p={delay:n,elapsed:0,...xs(o||{},u)};if(window.HandoffAppearAnimations){const b=t.getProps()[la];if(b){const v=window.HandoffAppearAnimations(b,u,d,L);v!==null&&(p.elapsed=v,p.isHandoff=!0)}}let h=!p.isHandoff&&!Sm(d,m);if(p.type==="spring"&&(d.getVelocity()||p.velocity)&&(h=!1),d.animation&&(h=!1),h)continue;d.start(bs(u,d,m,t.shouldReduceMotion&&zt.has(u)?{type:!1}:p));const y=d.animation;yn(c)&&(c.add(u),y.then(()=>c.remove(u))),l.push(y)}return i&&Promise.all(l).then(()=>{i&&gm(t,i)}),l}function Cr(t,e,n={}){const r=In(t,e,n.custom);let{transition:s=t.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(s=n.transitionOverride);const o=r?()=>Promise.all(cc(t,r,n)):()=>Promise.resolve(),i=t.variantChildren&&t.variantChildren.size?(c=0)=>{const{delayChildren:l=0,staggerChildren:f,staggerDirection:u}=s;return wm(t,e,l+c,f,u,n)}:()=>Promise.resolve(),{when:a}=s;if(a){const[c,l]=a==="beforeChildren"?[o,i]:[i,o];return c().then(()=>l())}else return Promise.all([o(),i(n.delay)])}function wm(t,e,n=0,r=0,s=1,o){const i=[],a=(t.variantChildren.size-1)*r,c=s===1?(l=0)=>l*r:(l=0)=>a-l*r;return Array.from(t.variantChildren).sort(Pm).forEach((l,f)=>{l.notify("AnimationStart",e),i.push(Cr(l,e,{...o,delay:n+c(f)}).then(()=>l.notify("AnimationComplete",e)))}),Promise.all(i)}function Pm(t,e){return t.sortNodePosition(e)}function Tm(t,e,n={}){t.notify("AnimationStart",e);let r;if(Array.isArray(e)){const s=e.map(o=>Cr(t,o,n));r=Promise.all(s)}else if(typeof e=="string")r=Cr(t,e,n);else{const s=typeof e=="function"?In(t,e,n.custom):e;r=Promise.all(cc(t,s,n))}return r.then(()=>t.notify("AnimationComplete",e))}const Em=[...ss].reverse(),Cm=ss.length;function Am(t){return e=>Promise.all(e.map(({animation:n,options:r})=>Tm(t,n,r)))}function Rm(t){let e=Am(t);const n=km();let r=!0;const s=(c,l)=>{const f=In(t,l);if(f){const{transition:u,transitionEnd:d,...m}=f;c={...c,...m,...d}}return c};function o(c){e=c(t)}function i(c,l){const f=t.getProps(),u=t.getVariantContext(!0)||{},d=[],m=new Set;let p={},h=1/0;for(let b=0;b<Cm;b++){const v=Em[b],x=n[v],w=f[v]!==void 0?f[v]:u[v],P=ke(w),E=v===l?x.isActive:null;E===!1&&(h=b);let T=w===u[v]&&w!==f[v]&&P;if(T&&r&&t.manuallyAnimateOnMount&&(T=!1),x.protectedKeys={...p},!x.isActive&&E===null||!w&&!x.prevProp||Ln(w)||typeof w=="boolean")continue;let D=Om(x.prevProp,w)||v===l&&x.isActive&&!T&&P||b>h&&P,A=!1;const H=Array.isArray(w)?w:[w];let _=H.reduce(s,{});E===!1&&(_={});const{prevResolvedValues:Z={}}=x,B={...Z,..._},ut=q=>{D=!0,m.has(q)&&(A=!0,m.delete(q)),x.needsAnimating[q]=!0};for(const q in B){const At=_[q],de=Z[q];if(p.hasOwnProperty(q))continue;let Wt=!1;hn(At)&&hn(de)?Wt=!Va(At,de):Wt=At!==de,Wt?At!==void 0?ut(q):m.add(q):At!==void 0&&m.has(q)?ut(q):x.protectedKeys[q]=!0}x.prevProp=w,x.prevResolvedValues=_,x.isActive&&(p={...p,..._}),r&&t.blockInitialAnimation&&(D=!1),D&&(!T||A)&&d.push(...H.map(q=>({animation:q,options:{type:v,...c}})))}if(m.size){const b={};m.forEach(v=>{const x=t.getBaseTarget(v);x!==void 0&&(b[v]=x)}),d.push({animation:b})}let y=!!d.length;return r&&(f.initial===!1||f.initial===f.animate)&&!t.manuallyAnimateOnMount&&(y=!1),r=!1,y?e(d):Promise.resolve()}function a(c,l,f){var u;if(n[c].isActive===l)return Promise.resolve();(u=t.variantChildren)===null||u===void 0||u.forEach(m=>{var p;return(p=m.animationState)===null||p===void 0?void 0:p.setActive(c,l)}),n[c].isActive=l;const d=i(f,c);for(const m in n)n[m].protectedKeys={};return d}return{animateChanges:i,setActive:a,setAnimateFunction:o,getState:()=>n}}function Om(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!Va(e,t):!1}function It(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function km(){return{animate:It(!0),whileInView:It(),whileHover:It(),whileTap:It(),whileDrag:It(),whileFocus:It(),exit:It()}}class Vm extends Bt{constructor(e){super(e),e.animationState||(e.animationState=Rm(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();this.unmount(),Ln(e)&&(this.unmount=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:n}=this.node.prevProps||{};e!==n&&this.updateAnimationControlsSubscription()}unmount(){}}let Mm=0;class Dm extends Bt{constructor(){super(...arguments),this.id=Mm++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n,custom:r}=this.node.presenceContext,{isPresent:s}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===s)return;const o=this.node.animationState.setActive("exit",!e,{custom:r??this.node.getProps().custom});n&&!e&&o.then(()=>n(this.id))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}const Lm={animation:{Feature:Vm},exit:{Feature:Dm}},Pi=(t,e)=>Math.abs(t-e);function jm(t,e){const n=Pi(t.x,e.x),r=Pi(t.y,e.y);return Math.sqrt(n**2+r**2)}class lc{constructor(e,n,{transformPagePoint:r,contextWindow:s,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const u=cr(this.lastMoveEventInfo,this.history),d=this.startEvent!==null,m=jm(u.offset,{x:0,y:0})>=3;if(!d&&!m)return;const{point:p}=u,{timestamp:h}=J;this.history.push({...p,timestamp:h});const{onStart:y,onMove:b}=this.handlers;d||(y&&y(this.lastMoveEvent,u),this.startEvent=this.lastMoveEvent),b&&b(this.lastMoveEvent,u)},this.handlePointerMove=(u,d)=>{this.lastMoveEvent=u,this.lastMoveEventInfo=ar(d,this.transformPagePoint),L.update(this.updatePoint,!0)},this.handlePointerUp=(u,d)=>{this.end();const{onEnd:m,onSessionEnd:p,resumeAnimation:h}=this.handlers;if(this.dragSnapToOrigin&&h&&h(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const y=cr(u.type==="pointercancel"?this.lastMoveEventInfo:ar(d,this.transformPagePoint),this.history);this.startEvent&&m&&m(u,y),p&&p(u,y)},!Ca(e))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=s||window;const i=Fn(e),a=ar(i,this.transformPagePoint),{point:c}=a,{timestamp:l}=J;this.history=[{...c,timestamp:l}];const{onSessionStart:f}=n;f&&f(e,cr(a,this.history)),this.removeListeners=Mt(St(this.contextWindow,"pointermove",this.handlePointerMove),St(this.contextWindow,"pointerup",this.handlePointerUp),St(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),Et(this.updatePoint)}}function ar(t,e){return e?{point:e(t.point)}:t}function Ti(t,e){return{x:t.x-e.x,y:t.y-e.y}}function cr({point:t},e){return{point:t,delta:Ti(t,uc(e)),offset:Ti(t,Bm(e)),velocity:Fm(e,.1)}}function Bm(t){return t[0]}function uc(t){return t[t.length-1]}function Fm(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,r=null;const s=uc(t);for(;n>=0&&(r=t[n],!(s.timestamp-r.timestamp>Dt(e)));)n--;if(!r)return{x:0,y:0};const o=wt(s.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const i={x:(s.x-r.x)/o,y:(s.y-r.y)/o};return i.x===1/0&&(i.x=0),i.y===1/0&&(i.y=0),i}function st(t){return t.max-t.min}function Ar(t,e=0,n=.01){return Math.abs(t-e)<=n}function Ei(t,e,n,r=.5){t.origin=r,t.originPoint=I(e.min,e.max,t.origin),t.scale=st(n)/st(e),(Ar(t.scale,1,1e-4)||isNaN(t.scale))&&(t.scale=1),t.translate=I(n.min,n.max,t.origin)-t.originPoint,(Ar(t.translate)||isNaN(t.translate))&&(t.translate=0)}function Te(t,e,n,r){Ei(t.x,e.x,n.x,r?r.originX:void 0),Ei(t.y,e.y,n.y,r?r.originY:void 0)}function Ci(t,e,n){t.min=n.min+e.min,t.max=t.min+st(e)}function Im(t,e,n){Ci(t.x,e.x,n.x),Ci(t.y,e.y,n.y)}function Ai(t,e,n){t.min=e.min-n.min,t.max=t.min+st(e)}function Ee(t,e,n){Ai(t.x,e.x,n.x),Ai(t.y,e.y,n.y)}function _m(t,{min:e,max:n},r){return e!==void 0&&t<e?t=r?I(e,t,r.min):Math.max(t,e):n!==void 0&&t>n&&(t=r?I(n,t,r.max):Math.min(t,n)),t}function Ri(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 $m(t,{top:e,left:n,bottom:r,right:s}){return{x:Ri(t.x,n,s),y:Ri(t.y,e,r)}}function Oi(t,e){let n=e.min-t.min,r=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,r]=[r,n]),{min:n,max:r}}function Nm(t,e){return{x:Oi(t.x,e.x),y:Oi(t.y,e.y)}}function Um(t,e){let n=.5;const r=st(t),s=st(e);return s>r?n=Me(e.min,e.max-r,t.min):r>s&&(n=Me(t.min,t.max-s,e.min)),Lt(0,1,n)}function zm(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 Rr=.35;function Hm(t=Rr){return t===!1?t=0:t===!0&&(t=Rr),{x:ki(t,"left","right"),y:ki(t,"top","bottom")}}function ki(t,e,n){return{min:Vi(t,e),max:Vi(t,n)}}function Vi(t,e){return typeof t=="number"?t:t[e]||0}const Mi=()=>({translate:0,scale:1,origin:0,originPoint:0}),Qt=()=>({x:Mi(),y:Mi()}),Di=()=>({min:0,max:0}),W=()=>({x:Di(),y:Di()});function ot(t){return[t("x"),t("y")]}function fc({top:t,left:e,right:n,bottom:r}){return{x:{min:e,max:n},y:{min:t,max:r}}}function Wm({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function Km(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),r=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function lr(t){return t===void 0||t===1}function Or({scale:t,scaleX:e,scaleY:n}){return!lr(t)||!lr(e)||!lr(n)}function _t(t){return Or(t)||dc(t)||t.z||t.rotate||t.rotateX||t.rotateY}function dc(t){return Li(t.x)||Li(t.y)}function Li(t){return t&&t!=="0%"}function xn(t,e,n){const r=t-n,s=e*r;return n+s}function ji(t,e,n,r,s){return s!==void 0&&(t=xn(t,s,r)),xn(t,n,r)+e}function kr(t,e=0,n=1,r,s){t.min=ji(t.min,e,n,r,s),t.max=ji(t.max,e,n,r,s)}function hc(t,{x:e,y:n}){kr(t.x,e.translate,e.scale,e.originPoint),kr(t.y,n.translate,n.scale,n.originPoint)}function Gm(t,e,n,r=!1){const s=n.length;if(!s)return;e.x=e.y=1;let o,i;for(let a=0;a<s;a++){o=n[a],i=o.projectionDelta;const c=o.instance;c&&c.style&&c.style.display==="contents"||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&te(t,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),i&&(e.x*=i.x.scale,e.y*=i.y.scale,hc(t,i)),r&&_t(o.latestValues)&&te(t,o.latestValues))}e.x=Bi(e.x),e.y=Bi(e.y)}function Bi(t){return Number.isInteger(t)||t>1.0000000000001||t<.999999999999?t:1}function kt(t,e){t.min=t.min+e,t.max=t.max+e}function Fi(t,e,[n,r,s]){const o=e[s]!==void 0?e[s]:.5,i=I(t.min,t.max,o);kr(t,e[n],e[r],i,e.scale)}const qm=["x","scaleX","originX"],Xm=["y","scaleY","originY"];function te(t,e){Fi(t.x,e,qm),Fi(t.y,e,Xm)}function pc(t,e){return fc(Km(t.getBoundingClientRect(),e))}function Ym(t,e,n){const r=pc(t,n),{scroll:s}=e;return s&&(kt(r.x,s.offset.x),kt(r.y,s.offset.y)),r}const mc=({current:t})=>t?t.ownerDocument.defaultView:null,Jm=new WeakMap;class Zm{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=W(),this.visualElement=e}start(e,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const s=f=>{const{dragSnapToOrigin:u}=this.getProps();u?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Fn(f,"page").point)},o=(f,u)=>{const{drag:d,dragPropagation:m,onDragStart:p}=this.getProps();if(d&&!m&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=Ra(d),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),ot(y=>{let b=this.getAxisMotionValue(y).get()||0;if(xt.test(b)){const{projection:v}=this.visualElement;if(v&&v.layout){const x=v.layout.layoutBox[y];x&&(b=st(x)*(parseFloat(b)/100))}}this.originPoint[y]=b}),p&&L.update(()=>p(f,u),!1,!0);const{animationState:h}=this.visualElement;h&&h.setActive("whileDrag",!0)},i=(f,u)=>{const{dragPropagation:d,dragDirectionLock:m,onDirectionLock:p,onDrag:h}=this.getProps();if(!d&&!this.openGlobalLock)return;const{offset:y}=u;if(m&&this.currentDirection===null){this.currentDirection=Qm(y),this.currentDirection!==null&&p&&p(this.currentDirection);return}this.updateAxis("x",u.point,y),this.updateAxis("y",u.point,y),this.visualElement.render(),h&&h(f,u)},a=(f,u)=>this.stop(f,u),c=()=>ot(f=>{var u;return this.getAnimationState(f)==="paused"&&((u=this.getAxisMotionValue(f).animation)===null||u===void 0?void 0:u.play())}),{dragSnapToOrigin:l}=this.getProps();this.panSession=new lc(e,{onSessionStart:s,onStart:o,onMove:i,onSessionEnd:a,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,contextWindow:mc(this.visualElement)})}stop(e,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:s}=n;this.startAnimation(s);const{onDragEnd:o}=this.getProps();o&&L.update(()=>o(e,n))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(e,n,r){const{drag:s}=this.getProps();if(!r||!Xe(e,s,this.currentDirection))return;const o=this.getAxisMotionValue(e);let i=this.originPoint[e]+r[e];this.constraints&&this.constraints[e]&&(i=_m(i,this.constraints[e],this.elastic[e])),o.set(i)}resolveConstraints(){var e;const{dragConstraints:n,dragElastic:r}=this.getProps(),s=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(e=this.visualElement.projection)===null||e===void 0?void 0:e.layout,o=this.constraints;n&&Jt(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&s?this.constraints=$m(s.layoutBox,n):this.constraints=!1,this.elastic=Hm(r),o!==this.constraints&&s&&this.constraints&&!this.hasMutatedConstraints&&ot(i=>{this.getAxisMotionValue(i)&&(this.constraints[i]=zm(s.layoutBox[i],this.constraints[i]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!Jt(e))return!1;const r=e.current,{projection:s}=this.visualElement;if(!s||!s.layout)return!1;const o=Ym(r,s.root,this.visualElement.getTransformPagePoint());let i=Nm(s.layout.layoutBox,o);if(n){const a=n(Wm(i));this.hasMutatedConstraints=!!a,a&&(i=fc(a))}return i}startAnimation(e){const{drag:n,dragMomentum:r,dragElastic:s,dragTransition:o,dragSnapToOrigin:i,onDragTransitionEnd:a}=this.getProps(),c=this.constraints||{},l=ot(f=>{if(!Xe(f,n,this.currentDirection))return;let u=c&&c[f]||{};i&&(u={min:0,max:0});const d=s?200:1e6,m=s?40:1e7,p={type:"inertia",velocity:r?e[f]:0,bounceStiffness:d,bounceDamping:m,timeConstant:750,restDelta:1,restSpeed:10,...o,...u};return this.startAxisValueAnimation(f,p)});return Promise.all(l).then(a)}startAxisValueAnimation(e,n){const r=this.getAxisMotionValue(e);return r.start(bs(e,r,0,n))}stopAnimation(){ot(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){ot(e=>{var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(e){var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(e){const n="_drag"+e.toUpperCase(),r=this.visualElement.getProps(),s=r[n];return s||this.visualElement.getValue(e,(r.initial?r.initial[e]:void 0)||0)}snapToCursor(e){ot(n=>{const{drag:r}=this.getProps();if(!Xe(n,r,this.currentDirection))return;const{projection:s}=this.visualElement,o=this.getAxisMotionValue(n);if(s&&s.layout){const{min:i,max:a}=s.layout.layoutBox[n];o.set(e[n]-I(i,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Jt(n)||!r||!this.constraints)return;this.stopAnimation();const s={x:0,y:0};ot(i=>{const a=this.getAxisMotionValue(i);if(a){const c=a.get();s[i]=Um({min:c,max:c},this.constraints[i])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),ot(i=>{if(!Xe(i,e,null))return;const a=this.getAxisMotionValue(i),{min:c,max:l}=this.constraints[i];a.set(I(c,l,s[i]))})}addListeners(){if(!this.visualElement.current)return;Jm.set(this.visualElement,this);const e=this.visualElement.current,n=St(e,"pointerdown",c=>{const{drag:l,dragListener:f=!0}=this.getProps();l&&f&&this.start(c)}),r=()=>{const{dragConstraints:c}=this.getProps();Jt(c)&&(this.constraints=this.resolveRefConstraints())},{projection:s}=this.visualElement,o=s.addEventListener("measure",r);s&&!s.layout&&(s.root&&s.root.updateScroll(),s.updateLayout()),r();const i=vt(window,"resize",()=>this.scalePositionWithinConstraints()),a=s.addEventListener("didUpdate",({delta:c,hasLayoutChanged:l})=>{this.isDragging&&l&&(ot(f=>{const u=this.getAxisMotionValue(f);u&&(this.originPoint[f]+=c[f].translate,u.set(u.get()+c[f].translate))}),this.visualElement.render())});return()=>{i(),n(),o(),a&&a()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:s=!1,dragConstraints:o=!1,dragElastic:i=Rr,dragMomentum:a=!0}=e;return{...e,drag:n,dragDirectionLock:r,dragPropagation:s,dragConstraints:o,dragElastic:i,dragMomentum:a}}}function Xe(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function Qm(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class tg extends Bt{constructor(e){super(e),this.removeGroupControls=U,this.removeListeners=U,this.controls=new Zm(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||U}unmount(){this.removeGroupControls(),this.removeListeners()}}const Ii=t=>(e,n)=>{t&&L.update(()=>t(e,n))};class eg extends Bt{constructor(){super(...arguments),this.removePointerDownListener=U}onPointerDown(e){this.session=new lc(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:mc(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:r,onPanEnd:s}=this.node.getProps();return{onSessionStart:Ii(e),onStart:Ii(n),onMove:r,onEnd:(o,i)=>{delete this.session,s&&L.update(()=>s(o,i))}}}mount(){this.removePointerDownListener=St(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function ng(){const t=g.reactExports.useContext(ns);if(t===null)return[!0,null];const{isPresent:e,onExitComplete:n,register:r}=t,s=g.reactExports.useId();return g.reactExports.useEffect(()=>r(s),[]),!e&&n?[!1,()=>n&&n(s)]:[!0]}const nn={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function _i(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const xe={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(C.test(t))t=parseFloat(t);else return t;const n=_i(t,e.target.x),r=_i(t,e.target.y);return`${n}% ${r}%`}},rg={correct:(t,{treeScale:e,projectionDelta:n})=>{const r=t,s=jt.parse(t);if(s.length>5)return r;const o=jt.createTransformer(t),i=typeof s[0]!="number"?1:0,a=n.x.scale*e.x,c=n.y.scale*e.y;s[0+i]/=a,s[1+i]/=c;const l=I(a,c,.5);return typeof s[2+i]=="number"&&(s[2+i]/=l),typeof s[3+i]=="number"&&(s[3+i]/=l),o(s)}};class sg extends g.React__default.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:r,layoutId:s}=this.props,{projection:o}=e;uh(ig),o&&(n.group&&n.group.add(o),r&&r.register&&s&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),nn.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:r,drag:s,isPresent:o}=this.props,i=r.projection;return i&&(i.isPresent=o,s||e.layoutDependency!==n||n===void 0?i.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?i.promote():i.relegate()||L.postRender(()=>{const a=i.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),queueMicrotask(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:s}=e;s&&(s.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(s),r&&r.deregister&&r.deregister(s))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function gc(t){const[e,n]=ng(),r=g.reactExports.useContext(fa);return g.React__default.createElement(sg,{...t,layoutGroup:r,switchLayoutGroup:g.reactExports.useContext(da),isPresent:e,safeToRemove:n})}const ig={borderRadius:{...xe,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:xe,borderTopRightRadius:xe,borderBottomLeftRadius:xe,borderBottomRightRadius:xe,boxShadow:rg},yc=["TopLeft","TopRight","BottomLeft","BottomRight"],og=yc.length,$i=t=>typeof t=="string"?parseFloat(t):t,Ni=t=>typeof t=="number"||C.test(t);function ag(t,e,n,r,s,o){s?(t.opacity=I(0,n.opacity!==void 0?n.opacity:1,cg(r)),t.opacityExit=I(e.opacity!==void 0?e.opacity:1,0,lg(r))):o&&(t.opacity=I(e.opacity!==void 0?e.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let i=0;i<og;i++){const a=`border${yc[i]}Radius`;let c=Ui(e,a),l=Ui(n,a);if(c===void 0&&l===void 0)continue;c||(c=0),l||(l=0),c===0||l===0||Ni(c)===Ni(l)?(t[a]=Math.max(I($i(c),$i(l),r),0),(xt.test(l)||xt.test(c))&&(t[a]+="%")):t[a]=l}(e.rotate||n.rotate)&&(t.rotate=I(e.rotate||0,n.rotate||0,r))}function Ui(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const cg=xc(0,.5,$a),lg=xc(.5,.95,U);function xc(t,e,n){return r=>r<t?0:r>e?1:n(Me(t,e,r))}function zi(t,e){t.min=e.min,t.max=e.max}function it(t,e){zi(t.x,e.x),zi(t.y,e.y)}function Hi(t,e,n,r,s){return t-=e,t=xn(t,1/n,r),s!==void 0&&(t=xn(t,1/s,r)),t}function ug(t,e=0,n=1,r=.5,s,o=t,i=t){if(xt.test(e)&&(e=parseFloat(e),e=I(i.min,i.max,e/100)-i.min),typeof e!="number")return;let a=I(o.min,o.max,r);t===o&&(a-=e),t.min=Hi(t.min,e,n,a,s),t.max=Hi(t.max,e,n,a,s)}function Wi(t,e,[n,r,s],o,i){ug(t,e[n],e[r],e[s],e.scale,o,i)}const fg=["x","scaleX","originX"],dg=["y","scaleY","originY"];function Ki(t,e,n,r){Wi(t.x,e,fg,n?n.x:void 0,r?r.x:void 0),Wi(t.y,e,dg,n?n.y:void 0,r?r.y:void 0)}function Gi(t){return t.translate===0&&t.scale===1}function bc(t){return Gi(t.x)&&Gi(t.y)}function hg(t,e){return t.x.min===e.x.min&&t.x.max===e.x.max&&t.y.min===e.y.min&&t.y.max===e.y.max}function vc(t,e){return Math.round(t.x.min)===Math.round(e.x.min)&&Math.round(t.x.max)===Math.round(e.x.max)&&Math.round(t.y.min)===Math.round(e.y.min)&&Math.round(t.y.max)===Math.round(e.y.max)}function qi(t){return st(t.x)/st(t.y)}class pg{constructor(){this.members=[]}add(e){vs(this.members,e),e.scheduleRender()}remove(e){if(Ss(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 r;for(let s=n;s>=0;s--){const o=this.members[s];if(o.isPresent!==!1){r=o;break}}return r?(this.promote(r),!0):!1}promote(e,n){const r=this.lead;if(e!==r&&(this.prevLead=r,this.lead=e,e.show(),r)){r.instance&&r.scheduleRender(),e.scheduleRender(),e.resumeFrom=r,n&&(e.resumeFrom.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:s}=e.options;s===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:n,resumingFrom:r}=e;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Xi(t,e,n){let r="";const s=t.x.translate/e.x,o=t.y.translate/e.y;if((s||o)&&(r=`translate3d(${s}px, ${o}px, 0) `),(e.x!==1||e.y!==1)&&(r+=`scale(${1/e.x}, ${1/e.y}) `),n){const{rotate:c,rotateX:l,rotateY:f}=n;c&&(r+=`rotate(${c}deg) `),l&&(r+=`rotateX(${l}deg) `),f&&(r+=`rotateY(${f}deg) `)}const i=t.x.scale*e.x,a=t.y.scale*e.y;return(i!==1||a!==1)&&(r+=`scale(${i}, ${a})`),r||"none"}const mg=(t,e)=>t.depth-e.depth;class gg{constructor(){this.children=[],this.isDirty=!1}add(e){vs(this.children,e),this.isDirty=!0}remove(e){Ss(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(mg),this.isDirty=!1,this.children.forEach(e)}}function yg(t,e){const n=performance.now(),r=({timestamp:s})=>{const o=s-n;o>=e&&(Et(r),t(o-e))};return L.read(r,!0),()=>Et(r)}function xg(t){window.MotionDebug&&window.MotionDebug.record(t)}function bg(t){return t instanceof SVGElement&&t.tagName!=="svg"}function vg(t,e,n){const r=et(t)?t:oe(t);return r.start(bs("",r,e,n)),r.animation}const Yi=["","X","Y","Z"],Sg={visibility:"hidden"},Ji=1e3;let wg=0;const $t={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function Sc({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:r,resetTransform:s}){return class{constructor(i={},a=e==null?void 0:e()){this.id=wg++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,$t.totalNodes=$t.resolvedTargetDeltas=$t.recalculatedProjection=0,this.nodes.forEach(Eg),this.nodes.forEach(kg),this.nodes.forEach(Vg),this.nodes.forEach(Cg),xg($t)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=i,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 gg)}addEventListener(i,a){return this.eventHandlers.has(i)||this.eventHandlers.set(i,new ws),this.eventHandlers.get(i).add(a)}notifyListeners(i,...a){const c=this.eventHandlers.get(i);c&&c.notify(...a)}hasListeners(i){return this.eventHandlers.has(i)}mount(i,a=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=bg(i),this.instance=i;const{layoutId:c,layout:l,visualElement:f}=this.options;if(f&&!f.current&&f.mount(i),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),a&&(l||c)&&(this.isLayoutDirty=!0),t){let u;const d=()=>this.root.updateBlockedByResize=!1;t(i,()=>{this.root.updateBlockedByResize=!0,u&&u(),u=yg(d,250),nn.hasAnimatedSinceResize&&(nn.hasAnimatedSinceResize=!1,this.nodes.forEach(Qi))})}c&&this.root.registerSharedNode(c,this),this.options.animate!==!1&&f&&(c||l)&&this.addEventListener("didUpdate",({delta:u,hasLayoutChanged:d,hasRelativeTargetChanged:m,layout:p})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const h=this.options.transition||f.getDefaultTransition()||Bg,{onLayoutAnimationStart:y,onLayoutAnimationComplete:b}=f.getProps(),v=!this.targetLayout||!vc(this.targetLayout,p)||m,x=!d&&m;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||x||d&&(v||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(u,x);const w={...xs(h,"layout"),onPlay:y,onComplete:b};(f.shouldReduceMotion||this.options.layoutRoot)&&(w.delay=0,w.type=!1),this.startAnimation(w)}else d||Qi(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=p})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const i=this.getStack();i&&i.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Et(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(Mg),this.animationId++)}getTransformTemplate(){const{visualElement:i}=this.options;return i&&i.getProps().transformTemplate}willUpdate(i=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let f=0;f<this.path.length;f++){const u=this.path[f];u.shouldResetTransform=!0,u.updateScroll("snapshot"),u.options.layoutRoot&&u.willUpdate(!1)}const{layoutId:a,layout:c}=this.options;if(a===void 0&&!c)return;const l=this.getTransformTemplate();this.prevTransformTemplateValue=l?l(this.latestValues,""):void 0,this.updateSnapshot(),i&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Zi);return}this.isUpdating||this.nodes.forEach(Rg),this.isUpdating=!1,this.nodes.forEach(Og),this.nodes.forEach(Pg),this.nodes.forEach(Tg),this.clearAllSnapshots();const a=performance.now();J.delta=Lt(0,1e3/60,a-J.timestamp),J.timestamp=a,J.isProcessing=!0,Qn.update.process(J),Qn.preRender.process(J),Qn.render.process(J),J.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(Ag),this.sharedNodes.forEach(Dg)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,L.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){L.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let c=0;c<this.path.length;c++)this.path[c].updateScroll();const i=this.layout;this.layout=this.measure(!1),this.layoutCorrected=W(),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,i?i.layoutBox:void 0)}updateScroll(i="measure"){let a=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===i&&(a=!1),a&&(this.scroll={animationId:this.root.animationId,phase:i,isRoot:r(this.instance),offset:n(this.instance)})}resetTransform(){if(!s)return;const i=this.isLayoutDirty||this.shouldResetTransform,a=this.projectionDelta&&!bc(this.projectionDelta),c=this.getTransformTemplate(),l=c?c(this.latestValues,""):void 0,f=l!==this.prevTransformTemplateValue;i&&(a||_t(this.latestValues)||f)&&(s(this.instance,l),this.shouldResetTransform=!1,this.scheduleRender())}measure(i=!0){const a=this.measurePageBox();let c=this.removeElementScroll(a);return i&&(c=this.removeTransform(c)),Fg(c),{animationId:this.root.animationId,measuredBox:a,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:i}=this.options;if(!i)return W();const a=i.measureViewportBox(),{scroll:c}=this.root;return c&&(kt(a.x,c.offset.x),kt(a.y,c.offset.y)),a}removeElementScroll(i){const a=W();it(a,i);for(let c=0;c<this.path.length;c++){const l=this.path[c],{scroll:f,options:u}=l;if(l!==this.root&&f&&u.layoutScroll){if(f.isRoot){it(a,i);const{scroll:d}=this.root;d&&(kt(a.x,-d.offset.x),kt(a.y,-d.offset.y))}kt(a.x,f.offset.x),kt(a.y,f.offset.y)}}return a}applyTransform(i,a=!1){const c=W();it(c,i);for(let l=0;l<this.path.length;l++){const f=this.path[l];!a&&f.options.layoutScroll&&f.scroll&&f!==f.root&&te(c,{x:-f.scroll.offset.x,y:-f.scroll.offset.y}),_t(f.latestValues)&&te(c,f.latestValues)}return _t(this.latestValues)&&te(c,this.latestValues),c}removeTransform(i){const a=W();it(a,i);for(let c=0;c<this.path.length;c++){const l=this.path[c];if(!l.instance||!_t(l.latestValues))continue;Or(l.latestValues)&&l.updateSnapshot();const f=W(),u=l.measurePageBox();it(f,u),Ki(a,l.latestValues,l.snapshot?l.snapshot.layoutBox:void 0,f)}return _t(this.latestValues)&&Ki(a,this.latestValues),a}setTargetDelta(i){this.targetDelta=i,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(i){this.options={...this.options,...i,crossfade:i.crossfade!==void 0?i.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==J.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(i=!1){var a;const c=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=c.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=c.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=c.isSharedProjectionDirty);const l=!!this.resumingFrom||this!==c;if(!(i||l&&this.isSharedProjectionDirty||this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty||this.attemptToResolveRelativeTarget))return;const{layout:u,layoutId:d}=this.options;if(!(!this.layout||!(u||d))){if(this.resolvedRelativeTargetAt=J.timestamp,!this.targetDelta&&!this.relativeTarget){const m=this.getClosestProjectingParent();m&&m.layout&&this.animationProgress!==1?(this.relativeParent=m,this.forceRelativeParentToResolveTarget(),this.relativeTarget=W(),this.relativeTargetOrigin=W(),Ee(this.relativeTargetOrigin,this.layout.layoutBox,m.layout.layoutBox),it(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=W(),this.targetWithTransforms=W()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Im(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):it(this.target,this.layout.layoutBox),hc(this.target,this.targetDelta)):it(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const m=this.getClosestProjectingParent();m&&!!m.resumingFrom==!!this.resumingFrom&&!m.options.layoutScroll&&m.target&&this.animationProgress!==1?(this.relativeParent=m,this.forceRelativeParentToResolveTarget(),this.relativeTarget=W(),this.relativeTargetOrigin=W(),Ee(this.relativeTargetOrigin,this.target,m.target),it(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}$t.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||Or(this.parent.latestValues)||dc(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var i;const a=this.getLead(),c=!!this.resumingFrom||this!==a;let l=!0;if((this.isProjectionDirty||!((i=this.parent)===null||i===void 0)&&i.isProjectionDirty)&&(l=!1),c&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===J.timestamp&&(l=!1),l)return;const{layout:f,layoutId:u}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(f||u))return;it(this.layoutCorrected,this.layout.layoutBox);const d=this.treeScale.x,m=this.treeScale.y;Gm(this.layoutCorrected,this.treeScale,this.path,c),a.layout&&!a.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(a.target=a.layout.layoutBox);const{target:p}=a;if(!p){this.projectionTransform&&(this.projectionDelta=Qt(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=Qt(),this.projectionDeltaWithTransform=Qt());const h=this.projectionTransform;Te(this.projectionDelta,this.layoutCorrected,p,this.latestValues),this.projectionTransform=Xi(this.projectionDelta,this.treeScale),(this.projectionTransform!==h||this.treeScale.x!==d||this.treeScale.y!==m)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",p)),$t.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(i=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),i){const a=this.getStack();a&&a.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(i,a=!1){const c=this.snapshot,l=c?c.latestValues:{},f={...this.latestValues},u=Qt();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const d=W(),m=c?c.source:void 0,p=this.layout?this.layout.source:void 0,h=m!==p,y=this.getStack(),b=!y||y.members.length<=1,v=!!(h&&!b&&this.options.crossfade===!0&&!this.path.some(jg));this.animationProgress=0;let x;this.mixTargetDelta=w=>{const P=w/1e3;to(u.x,i.x,P),to(u.y,i.y,P),this.setTargetDelta(u),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Ee(d,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Lg(this.relativeTarget,this.relativeTargetOrigin,d,P),x&&hg(this.relativeTarget,x)&&(this.isProjectionDirty=!1),x||(x=W()),it(x,this.relativeTarget)),h&&(this.animationValues=f,ag(f,l,this.latestValues,P,v,b)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=P},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(i){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Et(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=L.update(()=>{nn.hasAnimatedSinceResize=!0,this.currentAnimation=vg(0,Ji,{...i,onUpdate:a=>{this.mixTargetDelta(a),i.onUpdate&&i.onUpdate(a)},onComplete:()=>{i.onComplete&&i.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 i=this.getStack();i&&i.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Ji),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const i=this.getLead();let{targetWithTransforms:a,target:c,layout:l,latestValues:f}=i;if(!(!a||!c||!l)){if(this!==i&&this.layout&&l&&wc(this.options.animationType,this.layout.layoutBox,l.layoutBox)){c=this.target||W();const u=st(this.layout.layoutBox.x);c.x.min=i.target.x.min,c.x.max=c.x.min+u;const d=st(this.layout.layoutBox.y);c.y.min=i.target.y.min,c.y.max=c.y.min+d}it(a,c),te(a,f),Te(this.projectionDeltaWithTransform,this.layoutCorrected,a,f)}}registerSharedNode(i,a){this.sharedNodes.has(i)||this.sharedNodes.set(i,new pg),this.sharedNodes.get(i).add(a);const l=a.options.initialPromotionConfig;a.promote({transition:l?l.transition:void 0,preserveFollowOpacity:l&&l.shouldPreserveFollowOpacity?l.shouldPreserveFollowOpacity(a):void 0})}isLead(){const i=this.getStack();return i?i.lead===this:!0}getLead(){var i;const{layoutId:a}=this.options;return a?((i=this.getStack())===null||i===void 0?void 0:i.lead)||this:this}getPrevLead(){var i;const{layoutId:a}=this.options;return a?(i=this.getStack())===null||i===void 0?void 0:i.prevLead:void 0}getStack(){const{layoutId:i}=this.options;if(i)return this.root.sharedNodes.get(i)}promote({needsReset:i,transition:a,preserveFollowOpacity:c}={}){const l=this.getStack();l&&l.promote(this,c),i&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const i=this.getStack();return i?i.relegate(this):!1}resetRotation(){const{visualElement:i}=this.options;if(!i)return;let a=!1;const{latestValues:c}=i;if((c.rotate||c.rotateX||c.rotateY||c.rotateZ)&&(a=!0),!a)return;const l={};for(let f=0;f<Yi.length;f++){const u="rotate"+Yi[f];c[u]&&(l[u]=c[u],i.setStaticValue(u,0))}i.render();for(const f in l)i.setStaticValue(f,l[f]);i.scheduleRender()}getProjectionStyles(i){var a,c;if(!this.instance||this.isSVG)return;if(!this.isVisible)return Sg;const l={visibility:""},f=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,l.opacity="",l.pointerEvents=en(i==null?void 0:i.pointerEvents)||"",l.transform=f?f(this.latestValues,""):"none",l;const u=this.getLead();if(!this.projectionDelta||!this.layout||!u.target){const h={};return this.options.layoutId&&(h.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,h.pointerEvents=en(i==null?void 0:i.pointerEvents)||""),this.hasProjected&&!_t(this.latestValues)&&(h.transform=f?f({},""):"none",this.hasProjected=!1),h}const d=u.animationValues||u.latestValues;this.applyTransformsToTarget(),l.transform=Xi(this.projectionDeltaWithTransform,this.treeScale,d),f&&(l.transform=f(d,l.transform));const{x:m,y:p}=this.projectionDelta;l.transformOrigin=`${m.origin*100}% ${p.origin*100}% 0`,u.animationValues?l.opacity=u===this?(c=(a=d.opacity)!==null&&a!==void 0?a:this.latestValues.opacity)!==null&&c!==void 0?c:1:this.preserveOpacity?this.latestValues.opacity:d.opacityExit:l.opacity=u===this?d.opacity!==void 0?d.opacity:"":d.opacityExit!==void 0?d.opacityExit:0;for(const h in fn){if(d[h]===void 0)continue;const{correct:y,applyTo:b}=fn[h],v=l.transform==="none"?d[h]:y(d[h],u);if(b){const x=b.length;for(let w=0;w<x;w++)l[b[w]]=v}else l[h]=v}return this.options.layoutId&&(l.pointerEvents=u===this?en(i==null?void 0:i.pointerEvents)||"":"none"),l}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(i=>{var a;return(a=i.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(Zi),this.root.sharedNodes.clear()}}}function Pg(t){t.updateLayout()}function Tg(t){var e;const n=((e=t.resumeFrom)===null||e===void 0?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&n&&t.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:s}=t.layout,{animationType:o}=t.options,i=n.source!==t.layout.source;o==="size"?ot(u=>{const d=i?n.measuredBox[u]:n.layoutBox[u],m=st(d);d.min=r[u].min,d.max=d.min+m}):wc(o,n.layoutBox,r)&&ot(u=>{const d=i?n.measuredBox[u]:n.layoutBox[u],m=st(r[u]);d.max=d.min+m,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[u].max=t.relativeTarget[u].min+m)});const a=Qt();Te(a,r,n.layoutBox);const c=Qt();i?Te(c,t.applyTransform(s,!0),n.measuredBox):Te(c,r,n.layoutBox);const l=!bc(a);let f=!1;if(!t.resumeFrom){const u=t.getClosestProjectingParent();if(u&&!u.resumeFrom){const{snapshot:d,layout:m}=u;if(d&&m){const p=W();Ee(p,n.layoutBox,d.layoutBox);const h=W();Ee(h,r,m.layoutBox),vc(p,h)||(f=!0),u.options.layoutRoot&&(t.relativeTarget=h,t.relativeTargetOrigin=p,t.relativeParent=u)}}}t.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:c,layoutDelta:a,hasLayoutChanged:l,hasRelativeTargetChanged:f})}else if(t.isLead()){const{onExitComplete:r}=t.options;r&&r()}t.options.transition=void 0}function Eg(t){$t.totalNodes++,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 Cg(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function Ag(t){t.clearSnapshot()}function Zi(t){t.clearMeasurements()}function Rg(t){t.isLayoutDirty=!1}function Og(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function Qi(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function kg(t){t.resolveTargetDelta()}function Vg(t){t.calcProjection()}function Mg(t){t.resetRotation()}function Dg(t){t.removeLeadSnapshot()}function to(t,e,n){t.translate=I(e.translate,0,n),t.scale=I(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function eo(t,e,n,r){t.min=I(e.min,n.min,r),t.max=I(e.max,n.max,r)}function Lg(t,e,n,r){eo(t.x,e.x,n.x,r),eo(t.y,e.y,n.y,r)}function jg(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const Bg={duration:.45,ease:[.4,0,.1,1]},no=t=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(t),ro=no("applewebkit/")&&!no("chrome/")?Math.round:U;function so(t){t.min=ro(t.min),t.max=ro(t.max)}function Fg(t){so(t.x),so(t.y)}function wc(t,e,n){return t==="position"||t==="preserve-aspect"&&!Ar(qi(e),qi(n),.2)}const Ig=Sc({attachResizeListener:(t,e)=>vt(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),ur={current:void 0},Pc=Sc({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!ur.current){const t=new Ig({});t.mount(window),t.setOptions({layoutScroll:!0}),ur.current=t}return ur.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),_g={pan:{Feature:eg},drag:{Feature:tg,ProjectionNode:Pc,MeasureLayout:gc}},$g=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function Ng(t){const e=$g.exec(t);if(!e)return[,];const[,n,r]=e;return[n,r]}function Vr(t,e,n=1){const[r,s]=Ng(t);if(!r)return;const o=window.getComputedStyle(e).getPropertyValue(r);if(o){const i=o.trim();return ic(i)?parseFloat(i):i}else return vr(s)?Vr(s,e,n+1):s}function Ug(t,{...e},n){const r=t.current;if(!(r instanceof Element))return{target:e,transitionEnd:n};n&&(n={...n}),t.values.forEach(s=>{const o=s.get();if(!vr(o))return;const i=Vr(o,r);i&&s.set(i)});for(const s in e){const o=e[s];if(!vr(o))continue;const i=Vr(o,r);i&&(e[s]=i,n||(n={}),n[s]===void 0&&(n[s]=o))}return{target:e,transitionEnd:n}}const zg=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Tc=t=>zg.has(t),Hg=t=>Object.keys(t).some(Tc),io=t=>t===Ht||t===C,oo=(t,e)=>parseFloat(t.split(", ")[e]),ao=(t,e)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const s=r.match(/^matrix3d\((.+)\)$/);if(s)return oo(s[1],e);{const o=r.match(/^matrix\((.+)\)$/);return o?oo(o[1],t):0}},Wg=new Set(["x","y","z"]),Kg=Ie.filter(t=>!Wg.has(t));function Gg(t){const e=[];return Kg.forEach(n=>{const r=t.getValue(n);r!==void 0&&(e.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),e.length&&t.render(),e}const ae={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:ao(4,13),y:ao(5,14)};ae.translateX=ae.x;ae.translateY=ae.y;const qg=(t,e,n)=>{const r=e.measureViewportBox(),s=e.current,o=getComputedStyle(s),{display:i}=o,a={};i==="none"&&e.setStaticValue("display",t.display||"block"),n.forEach(l=>{a[l]=ae[l](r,o)}),e.render();const c=e.measureViewportBox();return n.forEach(l=>{const f=e.getValue(l);f&&f.jump(a[l]),t[l]=ae[l](c,o)}),t},Xg=(t,e,n={},r={})=>{e={...e},r={...r};const s=Object.keys(e).filter(Tc);let o=[],i=!1;const a=[];if(s.forEach(c=>{const l=t.getValue(c);if(!t.hasValue(c))return;let f=n[c],u=ye(f);const d=e[c];let m;if(hn(d)){const p=d.length,h=d[0]===null?1:0;f=d[h],u=ye(f);for(let y=h;y<p&&d[y]!==null;y++)m?hs(ye(d[y])===m):m=ye(d[y])}else m=ye(d);if(u!==m)if(io(u)&&io(m)){const p=l.get();typeof p=="string"&&l.set(parseFloat(p)),typeof d=="string"?e[c]=parseFloat(d):Array.isArray(d)&&m===C&&(e[c]=d.map(parseFloat))}else u!=null&&u.transform&&(m!=null&&m.transform)&&(f===0||d===0)?f===0?l.set(m.transform(f)):e[c]=u.transform(d):(i||(o=Gg(t),i=!0),a.push(c),r[c]=r[c]!==void 0?r[c]:e[c],l.jump(d))}),a.length){const c=a.indexOf("height")>=0?window.pageYOffset:null,l=qg(e,t,a);return o.length&&o.forEach(([f,u])=>{t.getValue(f).set(u)}),t.render(),Dn&&c!==null&&window.scrollTo({top:c}),{target:l,transitionEnd:r}}else return{target:e,transitionEnd:r}};function Yg(t,e,n,r){return Hg(e)?Xg(t,e,n,r):{target:e,transitionEnd:r}}const Jg=(t,e,n,r)=>{const s=Ug(t,e,r);return e=s.target,r=s.transitionEnd,Yg(t,e,n,r)},Mr={current:null},Ec={current:!1};function Zg(){if(Ec.current=!0,!!Dn)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>Mr.current=t.matches;t.addListener(e),e()}else Mr.current=!1}function Qg(t,e,n){const{willChange:r}=e;for(const s in e){const o=e[s],i=n[s];if(et(o))t.addValue(s,o),yn(r)&&r.add(s);else if(et(i))t.addValue(s,oe(o,{owner:t})),yn(r)&&r.remove(s);else if(i!==o)if(t.hasValue(s)){const a=t.getValue(s);!a.hasAnimated&&a.set(o)}else{const a=t.getStaticValue(s);t.addValue(s,oe(a!==void 0?a:o,{owner:t}))}}for(const s in n)e[s]===void 0&&t.removeValue(s);return e}const co=new WeakMap,Cc=Object.keys(Ve),ty=Cc.length,lo=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],ey=is.length;class ny{constructor({parent:e,props:n,presenceContext:r,reducedMotionConfig:s,visualState:o},i={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,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.scheduleRender=()=>L.render(this.render,!1,!0);const{latestValues:a,renderState:c}=o;this.latestValues=a,this.baseTarget={...a},this.initialValues=n.initial?{...a}:{},this.renderState=c,this.parent=e,this.props=n,this.presenceContext=r,this.depth=e?e.depth+1:0,this.reducedMotionConfig=s,this.options=i,this.isControllingVariants=jn(n),this.isVariantNode=ua(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:l,...f}=this.scrapeMotionValuesFromProps(n,{});for(const u in f){const d=f[u];a[u]!==void 0&&et(d)&&(d.set(a[u],!1),yn(l)&&l.add(u))}}scrapeMotionValuesFromProps(e,n){return{}}mount(e){this.current=e,co.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,r)=>this.bindToMotionValue(r,n)),Ec.current||Zg(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Mr.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){co.delete(this.current),this.projection&&this.projection.unmount(),Et(this.notifyUpdate),Et(this.render),this.valueSubscriptions.forEach(e=>e()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features)this.features[e].unmount();this.current=null}bindToMotionValue(e,n){const r=zt.has(e),s=n.on("change",i=>{this.latestValues[e]=i,this.props.onUpdate&&L.update(this.notifyUpdate,!1,!0),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,()=>{s(),o()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}loadFeatures({children:e,...n},r,s,o){let i,a;for(let c=0;c<ty;c++){const l=Cc[c],{isEnabled:f,Feature:u,ProjectionNode:d,MeasureLayout:m}=Ve[l];d&&(i=d),f(n)&&(!this.features[l]&&u&&(this.features[l]=new u(this)),m&&(a=m))}if((this.type==="html"||this.type==="svg")&&!this.projection&&i){this.projection=new i(this.latestValues,this.parent&&this.parent.projection);const{layoutId:c,layout:l,drag:f,dragConstraints:u,layoutScroll:d,layoutRoot:m}=n;this.projection.setOptions({layoutId:c,layout:l,alwaysMeasureLayout:!!f||u&&Jt(u),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:typeof l=="string"?l:"both",initialPromotionConfig:o,layoutScroll:d,layoutRoot:m})}return a}updateFeatures(){for(const e in this.features){const n=this.features[e];n.isMounted?n.update():(n.mount(),n.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):W()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}makeTargetAnimatable(e,n=!0){return this.makeTargetAnimatableFromInstance(e,this.props,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 r=0;r<lo.length;r++){const s=lo[r];this.propEventSubscriptions[s]&&(this.propEventSubscriptions[s](),delete this.propEventSubscriptions[s]);const o=e["on"+s];o&&(this.propEventSubscriptions[s]=this.on(s,o))}this.prevMotionValues=Qg(this,this.scrapeMotionValuesFromProps(e,this.prevProps),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}getVariantContext(e=!1){if(e)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const r=this.parent?this.parent.getVariantContext()||{}:{};return this.props.initial!==void 0&&(r.initial=this.props.initial),r}const n={};for(let r=0;r<ey;r++){const s=is[r],o=this.props[s];(ke(o)||o===!1)&&(n[s]=o)}return n}addVariantChild(e){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(e),()=>n.variantChildren.delete(e)}addValue(e,n){n!==this.values.get(e)&&(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 r=this.values.get(e);return r===void 0&&n!==void 0&&(r=oe(n,{owner:this}),this.addValue(e,r)),r}readValue(e){var n;return this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:(n=this.getBaseTargetFromProps(this.props,e))!==null&&n!==void 0?n:this.readValueFromInstance(this.current,e,this.options)}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){var n;const{initial:r}=this.props,s=typeof r=="string"||typeof r=="object"?(n=ds(this.props,r))===null||n===void 0?void 0:n[e]:void 0;if(r&&s!==void 0)return s;const o=this.getBaseTargetFromProps(this.props,e);return o!==void 0&&!et(o)?o:this.initialValues[e]!==void 0&&s===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new ws),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}}class Ac extends ny{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:r}){delete n[e],delete r[e]}makeTargetAnimatableFromInstance({transition:e,transitionEnd:n,...r},{transformValues:s},o){let i=bm(r,e||{},this);if(s&&(n&&(n=s(n)),r&&(r=s(r)),i&&(i=s(i))),o){ym(this,r,i);const a=Jg(this,r,i,n);n=a.transitionEnd,r=a.target}return{transition:e,transitionEnd:n,...r}}}function ry(t){return window.getComputedStyle(t)}class sy extends Ac{constructor(){super(...arguments),this.type="html"}readValueFromInstance(e,n){if(zt.has(n)){const r=ys(n);return r&&r.default||0}else{const r=ry(e),s=(ma(n)?r.getPropertyValue(n):r[n])||0;return typeof s=="string"?s.trim():s}}measureInstanceViewportBox(e,{transformPagePoint:n}){return pc(e,n)}build(e,n,r,s){as(e,n,r,s.transformTemplate)}scrapeMotionValuesFromProps(e,n){return fs(e,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;et(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(e,n,r,s){Sa(e,n,r,s)}}class iy extends Ac{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(zt.has(n)){const r=ys(n);return r&&r.default||0}return n=wa.has(n)?n:rs(n),e.getAttribute(n)}measureInstanceViewportBox(){return W()}scrapeMotionValuesFromProps(e,n){return Ta(e,n)}build(e,n,r,s){ls(e,n,r,this.isSVGTag,s.transformTemplate)}renderInstance(e,n,r,s){Pa(e,n,r,s)}mount(e){this.isSVGTag=us(e.tagName),super.mount(e)}}const oy=(t,e)=>os(t)?new iy(e,{enableHardwareAcceleration:!1}):new sy(e,{enableHardwareAcceleration:!0}),ay={layout:{ProjectionNode:Pc,MeasureLayout:gc}},cy={...Lm,...tp,..._g,...ay},Ps=ch((t,e)=>Nh(t,e,cy,oy));/**
|
|
7
|
+
*/function Tu(t,e){return hr(t,e)}const Eu=(t,e)=>{Array.isArray(t.__emotion_styles)&&(t.__emotion_styles=e(t.__emotion_styles))},Cu=["values","unit","step"],Au=t=>{const e=Object.keys(t).map(n=>({key:n,val:t[n]}))||[];return e.sort((n,r)=>n.val-r.val),e.reduce((n,r)=>O({},n,{[r.key]:r.val}),{})};function Ru(t){const{values:e={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=t,s=Ct(t,Cu),o=Au(e),i=Object.keys(o);function a(d){return`@media (min-width:${typeof e[d]=="number"?e[d]:d}${n})`}function c(d){return`@media (max-width:${(typeof e[d]=="number"?e[d]:d)-r/100}${n})`}function l(d,m){const p=i.indexOf(m);return`@media (min-width:${typeof e[d]=="number"?e[d]:d}${n}) and (max-width:${(p!==-1&&typeof e[i[p]]=="number"?e[i[p]]:m)-r/100}${n})`}function f(d){return i.indexOf(d)+1<i.length?l(d,i[i.indexOf(d)+1]):a(d)}function u(d){const m=i.indexOf(d);return m===0?a(i[1]):m===i.length-1?c(i[m]):l(d,i[i.indexOf(d)+1]).replace("@media","@media not all and")}return O({keys:i,values:o,up:a,down:c,between:l,only:f,not:u,unit:n},s)}const Ou={borderRadius:4},ku=Ou;function be(t,e){return e?ft(t,e,{clone:!1}):t}const $r={xs:0,sm:600,md:900,lg:1200,xl:1536},zs={keys:["xs","sm","md","lg","xl"],up:t=>`@media (min-width:${$r[t]}px)`};function Tt(t,e,n){const r=t.theme||{};if(Array.isArray(e)){const o=r.breakpoints||zs;return e.reduce((i,a,c)=>(i[o.up(o.keys[c])]=n(e[c]),i),{})}if(typeof e=="object"){const o=r.breakpoints||zs;return Object.keys(e).reduce((i,a)=>{if(Object.keys(o.values||$r).indexOf(a)!==-1){const c=o.up(a);i[c]=n(e[a],a)}else{const c=a;i[c]=e[c]}return i},{})}return n(e)}function Vu(t={}){var e;return((e=t.keys)==null?void 0:e.reduce((r,s)=>{const o=t.up(s);return r[o]={},r},{}))||{}}function Mu(t,e){return t.reduce((n,r)=>{const s=n[r];return(!s||Object.keys(s).length===0)&&delete n[r],n},e)}function wn(t,e,n=!0){if(!e||typeof e!="string")return null;if(t&&t.vars&&n){const r=`vars.${e}`.split(".").reduce((s,o)=>s&&s[o]?s[o]:null,t);if(r!=null)return r}return e.split(".").reduce((r,s)=>r&&r[s]!=null?r[s]:null,t)}function on(t,e,n,r=n){let s;return typeof t=="function"?s=t(n):Array.isArray(t)?s=t[n]||r:s=wn(t,n)||r,e&&(s=e(s,r,t)),s}function z(t){const{prop:e,cssProperty:n=t.prop,themeKey:r,transform:s}=t,o=i=>{if(i[e]==null)return null;const a=i[e],c=i.theme,l=wn(c,r)||{};return Tt(i,a,u=>{let d=on(l,s,u);return u===d&&typeof u=="string"&&(d=on(l,s,`${e}${u==="default"?"":mt(u)}`,u)),n===!1?d:{[n]:d}})};return o.propTypes={},o.filterProps=[e],o}function Du(t){const e={};return n=>(e[n]===void 0&&(e[n]=t(n)),e[n])}const Lu={m:"margin",p:"padding"},ju={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Ws={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Fu=Du(t=>{if(t.length>2)if(Ws[t])t=Ws[t];else return[t];const[e,n]=t.split(""),r=Lu[e],s=ju[n]||"";return Array.isArray(s)?s.map(o=>r+o):[r+s]}),Nr=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Ur=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Nr,...Ur];function De(t,e,n,r){var s;const o=(s=wn(t,e,!1))!=null?s:n;return typeof o=="number"?i=>typeof i=="string"?i:o*i:Array.isArray(o)?i=>typeof i=="string"?i:o[i]:typeof o=="function"?o:()=>{}}function Wo(t){return De(t,"spacing",8)}function Le(t,e){if(typeof e=="string"||e==null)return e;const n=Math.abs(e),r=t(n);return e>=0?r:typeof r=="number"?-r:`-${r}`}function Bu(t,e){return n=>t.reduce((r,s)=>(r[s]=Le(e,n),r),{})}function Iu(t,e,n,r){if(e.indexOf(n)===-1)return null;const s=Fu(n),o=Bu(s,r),i=t[n];return Tt(t,i,o)}function Ho(t,e){const n=Wo(t.theme);return Object.keys(t).map(r=>Iu(t,e,r,n)).reduce(be,{})}function $(t){return Ho(t,Nr)}$.propTypes={};$.filterProps=Nr;function N(t){return Ho(t,Ur)}N.propTypes={};N.filterProps=Ur;function _u(t=8){if(t.mui)return t;const e=Wo({spacing:t}),n=(...r)=>(r.length===0?[1]:r).map(o=>{const i=e(o);return typeof i=="number"?`${i}px`:i}).join(" ");return n.mui=!0,n}function Pn(...t){const e=t.reduce((r,s)=>(s.filterProps.forEach(o=>{r[o]=s}),r),{}),n=r=>Object.keys(r).reduce((s,o)=>e[o]?be(s,e[o](r)):s,{});return n.propTypes={},n.filterProps=t.reduce((r,s)=>r.concat(s.filterProps),[]),n}function at(t){return typeof t!="number"?t:`${t}px solid`}function lt(t,e){return z({prop:t,themeKey:"borders",transform:e})}const $u=lt("border",at),Nu=lt("borderTop",at),Uu=lt("borderRight",at),zu=lt("borderBottom",at),Wu=lt("borderLeft",at),Hu=lt("borderColor"),Ku=lt("borderTopColor"),Gu=lt("borderRightColor"),qu=lt("borderBottomColor"),Xu=lt("borderLeftColor"),Yu=lt("outline",at),Ju=lt("outlineColor"),Tn=t=>{if(t.borderRadius!==void 0&&t.borderRadius!==null){const e=De(t.theme,"shape.borderRadius",4),n=r=>({borderRadius:Le(e,r)});return Tt(t,t.borderRadius,n)}return null};Tn.propTypes={};Tn.filterProps=["borderRadius"];Pn($u,Nu,Uu,zu,Wu,Hu,Ku,Gu,qu,Xu,Tn,Yu,Ju);const En=t=>{if(t.gap!==void 0&&t.gap!==null){const e=De(t.theme,"spacing",8),n=r=>({gap:Le(e,r)});return Tt(t,t.gap,n)}return null};En.propTypes={};En.filterProps=["gap"];const Cn=t=>{if(t.columnGap!==void 0&&t.columnGap!==null){const e=De(t.theme,"spacing",8),n=r=>({columnGap:Le(e,r)});return Tt(t,t.columnGap,n)}return null};Cn.propTypes={};Cn.filterProps=["columnGap"];const An=t=>{if(t.rowGap!==void 0&&t.rowGap!==null){const e=De(t.theme,"spacing",8),n=r=>({rowGap:Le(e,r)});return Tt(t,t.rowGap,n)}return null};An.propTypes={};An.filterProps=["rowGap"];const Zu=z({prop:"gridColumn"}),Qu=z({prop:"gridRow"}),tf=z({prop:"gridAutoFlow"}),ef=z({prop:"gridAutoColumns"}),nf=z({prop:"gridAutoRows"}),rf=z({prop:"gridTemplateColumns"}),sf=z({prop:"gridTemplateRows"}),of=z({prop:"gridTemplateAreas"}),af=z({prop:"gridArea"});Pn(En,Cn,An,Zu,Qu,tf,ef,nf,rf,sf,of,af);function ee(t,e){return e==="grey"?e:t}const cf=z({prop:"color",themeKey:"palette",transform:ee}),lf=z({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:ee}),uf=z({prop:"backgroundColor",themeKey:"palette",transform:ee});Pn(cf,lf,uf);function nt(t){return t<=1&&t!==0?`${t*100}%`:t}const ff=z({prop:"width",transform:nt}),zr=t=>{if(t.maxWidth!==void 0&&t.maxWidth!==null){const e=n=>{var r,s;const o=((r=t.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||$r[n];return o?((s=t.theme)==null||(s=s.breakpoints)==null?void 0:s.unit)!=="px"?{maxWidth:`${o}${t.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:nt(n)}};return Tt(t,t.maxWidth,e)}return null};zr.filterProps=["maxWidth"];const df=z({prop:"minWidth",transform:nt}),hf=z({prop:"height",transform:nt}),pf=z({prop:"maxHeight",transform:nt}),mf=z({prop:"minHeight",transform:nt});z({prop:"size",cssProperty:"width",transform:nt});z({prop:"size",cssProperty:"height",transform:nt});const gf=z({prop:"boxSizing"});Pn(ff,zr,df,hf,pf,mf,gf);const yf={border:{themeKey:"borders",transform:at},borderTop:{themeKey:"borders",transform:at},borderRight:{themeKey:"borders",transform:at},borderBottom:{themeKey:"borders",transform:at},borderLeft:{themeKey:"borders",transform:at},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:at},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Tn},color:{themeKey:"palette",transform:ee},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:ee},backgroundColor:{themeKey:"palette",transform:ee},p:{style:N},pt:{style:N},pr:{style:N},pb:{style:N},pl:{style:N},px:{style:N},py:{style:N},padding:{style:N},paddingTop:{style:N},paddingRight:{style:N},paddingBottom:{style:N},paddingLeft:{style:N},paddingX:{style:N},paddingY:{style:N},paddingInline:{style:N},paddingInlineStart:{style:N},paddingInlineEnd:{style:N},paddingBlock:{style:N},paddingBlockStart:{style:N},paddingBlockEnd:{style:N},m:{style:$},mt:{style:$},mr:{style:$},mb:{style:$},ml:{style:$},mx:{style:$},my:{style:$},margin:{style:$},marginTop:{style:$},marginRight:{style:$},marginBottom:{style:$},marginLeft:{style:$},marginX:{style:$},marginY:{style:$},marginInline:{style:$},marginInlineStart:{style:$},marginInlineEnd:{style:$},marginBlock:{style:$},marginBlockStart:{style:$},marginBlockEnd:{style:$},displayPrint:{cssProperty:!1,transform:t=>({"@media print":{display:t}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:En},rowGap:{style:An},columnGap:{style:Cn},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:nt},maxWidth:{style:zr},minWidth:{transform:nt},height:{transform:nt},maxHeight:{transform:nt},minHeight:{transform:nt},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},Wr=yf;function xf(...t){const e=t.reduce((r,s)=>r.concat(Object.keys(s)),[]),n=new Set(e);return t.every(r=>n.size===Object.keys(r).length)}function bf(t,e){return typeof t=="function"?t(e):t}function vf(){function t(n,r,s,o){const i={[n]:r,theme:s},a=o[n];if(!a)return{[n]:r};const{cssProperty:c=n,themeKey:l,transform:f,style:u}=a;if(r==null)return null;if(l==="typography"&&r==="inherit")return{[n]:r};const d=wn(s,l)||{};return u?u(i):Tt(i,r,p=>{let h=on(d,f,p);return p===h&&typeof p=="string"&&(h=on(d,f,`${n}${p==="default"?"":mt(p)}`,p)),c===!1?h:{[c]:h}})}function e(n){var r;const{sx:s,theme:o={}}=n||{};if(!s)return null;const i=(r=o.unstable_sxConfig)!=null?r:Wr;function a(c){let l=c;if(typeof c=="function")l=c(o);else if(typeof c!="object")return c;if(!l)return null;const f=Vu(o.breakpoints),u=Object.keys(f);let d=f;return Object.keys(l).forEach(m=>{const p=bf(l[m],o);if(p!=null)if(typeof p=="object")if(i[m])d=be(d,t(m,p,o,i));else{const h=Tt({theme:o},p,x=>({[m]:x}));xf(h,p)?d[m]=e({sx:p,theme:o}):d=be(d,h)}else d=be(d,t(m,p,o,i))}),Mu(u,d)}return Array.isArray(s)?s.map(a):a(s)}return e}const Ko=vf();Ko.filterProps=["sx"];const Hr=Ko,Sf=["breakpoints","palette","spacing","shape"];function Kr(t={},...e){const{breakpoints:n={},palette:r={},spacing:s,shape:o={}}=t,i=Ct(t,Sf),a=Ru(n),c=_u(s);let l=ft({breakpoints:a,direction:"ltr",components:{},palette:O({mode:"light"},r),spacing:c,shape:O({},ku,o)},i);return l=e.reduce((f,u)=>ft(f,u),l),l.unstable_sxConfig=O({},Wr,i==null?void 0:i.unstable_sxConfig),l.unstable_sx=function(u){return Hr({sx:u,theme:this})},l}function wf(t){return Object.keys(t).length===0}function Pf(t=null){const e=g.reactExports.useContext(zo);return!e||wf(e)?t:e}const Tf=Kr();function Ef(t=Tf){return Pf(t)}const Cf=["variant"];function Hs(t){return t.length===0}function Go(t){const{variant:e}=t,n=Ct(t,Cf);let r=e||"";return Object.keys(n).sort().forEach(s=>{s==="color"?r+=Hs(r)?t[s]:mt(t[s]):r+=`${Hs(r)?s:mt(s)}${mt(t[s].toString())}`}),r}const Af=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Rf(t){return Object.keys(t).length===0}function Of(t){return typeof t=="string"&&t.charCodeAt(0)>96}const kf=(t,e)=>e.components&&e.components[t]&&e.components[t].styleOverrides?e.components[t].styleOverrides:null,an=t=>{let e=0;const n={};return t&&t.forEach(r=>{let s="";typeof r.props=="function"?(s=`callback${e}`,e+=1):s=Go(r.props),n[s]=r.style}),n},Vf=(t,e)=>{let n=[];return e&&e.components&&e.components[t]&&e.components[t].variants&&(n=e.components[t].variants),an(n)},cn=(t,e,n)=>{const{ownerState:r={}}=t,s=[];let o=0;return n&&n.forEach(i=>{let a=!0;if(typeof i.props=="function"){const c=O({},t,r);a=i.props(c)}else Object.keys(i.props).forEach(c=>{r[c]!==i.props[c]&&t[c]!==i.props[c]&&(a=!1)});a&&(typeof i.props=="function"?s.push(e[`callback${o}`]):s.push(e[Go(i.props)])),typeof i.props=="function"&&(o+=1)}),s},Mf=(t,e,n,r)=>{var s;const o=n==null||(s=n.components)==null||(s=s[r])==null?void 0:s.variants;return cn(t,e,o)};function Je(t){return t!=="ownerState"&&t!=="theme"&&t!=="sx"&&t!=="as"}const Df=Kr(),Lf=t=>t&&t.charAt(0).toLowerCase()+t.slice(1);function Ze({defaultTheme:t,theme:e,themeId:n}){return Rf(e)?t:e[n]||e}function jf(t){return t?(e,n)=>n[t]:null}const Ks=({styledArg:t,props:e,defaultTheme:n,themeId:r})=>{const s=t(O({},e,{theme:Ze(O({},e,{defaultTheme:n,themeId:r}))}));let o;if(s&&s.variants&&(o=s.variants,delete s.variants),o){const i=cn(e,an(o),o);return[s,...i]}return s};function Ff(t={}){const{themeId:e,defaultTheme:n=Df,rootShouldForwardProp:r=Je,slotShouldForwardProp:s=Je}=t,o=i=>Hr(O({},i,{theme:Ze(O({},i,{defaultTheme:n,themeId:e}))}));return o.__mui_systemSx=!0,(i,a={})=>{Eu(i,w=>w.filter(P=>!(P!=null&&P.__mui_systemSx)));const{name:c,slot:l,skipVariantsResolver:f,skipSx:u,overridesResolver:d=jf(Lf(l))}=a,m=Ct(a,Af),p=f!==void 0?f:l&&l!=="Root"&&l!=="root"||!1,h=u||!1;let x,v=Je;l==="Root"||l==="root"?v=r:l?v=s:Of(i)&&(v=void 0);const S=Tu(i,O({shouldForwardProp:v,label:x},m)),y=(w,...P)=>{const E=P?P.map(A=>{if(typeof A=="function"&&A.__emotion_real!==A)return W=>Ks({styledArg:A,props:W,defaultTheme:n,themeId:e});if(Vt(A)){let W=A,_;return A&&A.variants&&(_=A.variants,delete W.variants,W=Z=>{let F=A;return cn(Z,an(_),_).forEach(q=>{F=ft(F,q)}),F}),W}return A}):[];let T=w;if(Vt(w)){let A;w&&w.variants&&(A=w.variants,delete T.variants,T=W=>{let _=w;return cn(W,an(A),A).forEach(F=>{_=ft(_,F)}),_})}else typeof w=="function"&&w.__emotion_real!==w&&(T=A=>Ks({styledArg:w,props:A,defaultTheme:n,themeId:e}));c&&d&&E.push(A=>{const W=Ze(O({},A,{defaultTheme:n,themeId:e})),_=kf(c,W);if(_){const Z={};return Object.entries(_).forEach(([F,ut])=>{Z[F]=typeof ut=="function"?ut(O({},A,{theme:W})):ut}),d(A,Z)}return null}),c&&!p&&E.push(A=>{const W=Ze(O({},A,{defaultTheme:n,themeId:e}));return Mf(A,Vf(c,W),W,c)}),h||E.push(o);const R=E.length-P.length;if(Array.isArray(w)&&R>0){const A=new Array(R).fill("");T=[...w,...A],T.raw=[...w.raw,...A]}const D=S(T,...E);return i.muiName&&(D.muiName=i.muiName),D};return S.withConfig&&(y.withConfig=S.withConfig),y}}function Bf(t){const{theme:e,name:n,props:r}=t;return!e||!e.components||!e.components[n]||!e.components[n].defaultProps?r:Ro(e.components[n].defaultProps,r)}function If({props:t,name:e,defaultTheme:n,themeId:r}){let s=Ef(n);return r&&(s=s[r]||s),Bf({theme:s,name:e,props:t})}function qo(t,e=0,n=1){return Math.min(Math.max(e,t),n)}function _f(t){t=t.slice(1);const e=new RegExp(`.{1,${t.length>=6?2:1}}`,"g");let n=t.match(e);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,s)=>s<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function se(t){if(t.type)return t;if(t.charAt(0)==="#")return se(_f(t));const e=t.indexOf("("),n=t.substring(0,e);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(ne(9,t));let r=t.substring(e+1,t.length-1),s;if(n==="color"){if(r=r.split(" "),s=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(s)===-1)throw new Error(ne(10,s))}else r=r.split(",");return r=r.map(o=>parseFloat(o)),{type:n,values:r,colorSpace:s}}function Gr(t){const{type:e,colorSpace:n}=t;let{values:r}=t;return e.indexOf("rgb")!==-1?r=r.map((s,o)=>o<3?parseInt(s,10):s):e.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),e.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${e}(${r})`}function $f(t){t=se(t);const{values:e}=t,n=e[0],r=e[1]/100,s=e[2]/100,o=r*Math.min(s,1-s),i=(l,f=(l+n/30)%12)=>s-o*Math.max(Math.min(f-3,9-f,1),-1);let a="rgb";const c=[Math.round(i(0)*255),Math.round(i(8)*255),Math.round(i(4)*255)];return t.type==="hsla"&&(a+="a",c.push(e[3])),Gr({type:a,values:c})}function Gs(t){t=se(t);let e=t.type==="hsl"||t.type==="hsla"?se($f(t)).values:t.values;return e=e.map(n=>(t.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*e[0]+.7152*e[1]+.0722*e[2]).toFixed(3))}function Nf(t,e){const n=Gs(t),r=Gs(e);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Uf(t,e){if(t=se(t),e=qo(e),t.type.indexOf("hsl")!==-1)t.values[2]*=1-e;else if(t.type.indexOf("rgb")!==-1||t.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)t.values[n]*=1-e;return Gr(t)}function zf(t,e){if(t=se(t),e=qo(e),t.type.indexOf("hsl")!==-1)t.values[2]+=(100-t.values[2])*e;else if(t.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)t.values[n]+=(255-t.values[n])*e;else if(t.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)t.values[n]+=(1-t.values[n])*e;return Gr(t)}function Wf(t,e){return O({toolbar:{minHeight:56,[t.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[t.up("sm")]:{minHeight:64}}},e)}const Hf={black:"#000",white:"#fff"},Ae=Hf,Kf={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},Gf=Kf,qf={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},Ht=qf,Xf={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},Kt=Xf,Yf={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},pe=Yf,Jf={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},Gt=Jf,Zf={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},qt=Zf,Qf={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},Xt=Qf,td=["mode","contrastThreshold","tonalOffset"],qs={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Ae.white,default:Ae.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},Kn={text:{primary:Ae.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Ae.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function Xs(t,e,n,r){const s=r.light||r,o=r.dark||r*1.5;t[e]||(t.hasOwnProperty(n)?t[e]=t[n]:e==="light"?t.light=zf(t.main,s):e==="dark"&&(t.dark=Uf(t.main,o)))}function ed(t="light"){return t==="dark"?{main:Gt[200],light:Gt[50],dark:Gt[400]}:{main:Gt[700],light:Gt[400],dark:Gt[800]}}function nd(t="light"){return t==="dark"?{main:Ht[200],light:Ht[50],dark:Ht[400]}:{main:Ht[500],light:Ht[300],dark:Ht[700]}}function rd(t="light"){return t==="dark"?{main:Kt[500],light:Kt[300],dark:Kt[700]}:{main:Kt[700],light:Kt[400],dark:Kt[800]}}function sd(t="light"){return t==="dark"?{main:qt[400],light:qt[300],dark:qt[700]}:{main:qt[700],light:qt[500],dark:qt[900]}}function id(t="light"){return t==="dark"?{main:Xt[400],light:Xt[300],dark:Xt[700]}:{main:Xt[800],light:Xt[500],dark:Xt[900]}}function od(t="light"){return t==="dark"?{main:pe[400],light:pe[300],dark:pe[700]}:{main:"#ed6c02",light:pe[500],dark:pe[900]}}function ad(t){const{mode:e="light",contrastThreshold:n=3,tonalOffset:r=.2}=t,s=Ct(t,td),o=t.primary||ed(e),i=t.secondary||nd(e),a=t.error||rd(e),c=t.info||sd(e),l=t.success||id(e),f=t.warning||od(e);function u(h){return Nf(h,Kn.text.primary)>=n?Kn.text.primary:qs.text.primary}const d=({color:h,name:x,mainShade:v=500,lightShade:S=300,darkShade:y=700})=>{if(h=O({},h),!h.main&&h[v]&&(h.main=h[v]),!h.hasOwnProperty("main"))throw new Error(ne(11,x?` (${x})`:"",v));if(typeof h.main!="string")throw new Error(ne(12,x?` (${x})`:"",JSON.stringify(h.main)));return Xs(h,"light",S,r),Xs(h,"dark",y,r),h.contrastText||(h.contrastText=u(h.main)),h},m={dark:Kn,light:qs};return ft(O({common:O({},Ae),mode:e,primary:d({color:o,name:"primary"}),secondary:d({color:i,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:d({color:a,name:"error"}),warning:d({color:f,name:"warning"}),info:d({color:c,name:"info"}),success:d({color:l,name:"success"}),grey:Gf,contrastThreshold:n,getContrastText:u,augmentColor:d,tonalOffset:r},m[e]),s)}const cd=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function ld(t){return Math.round(t*1e5)/1e5}const Ys={textTransform:"uppercase"},Js='"Roboto", "Helvetica", "Arial", sans-serif';function ud(t,e){const n=typeof e=="function"?e(t):e,{fontFamily:r=Js,fontSize:s=14,fontWeightLight:o=300,fontWeightRegular:i=400,fontWeightMedium:a=500,fontWeightBold:c=700,htmlFontSize:l=16,allVariants:f,pxToRem:u}=n,d=Ct(n,cd),m=s/14,p=u||(v=>`${v/l*m}rem`),h=(v,S,y,w,P)=>O({fontFamily:r,fontWeight:v,fontSize:p(S),lineHeight:y},r===Js?{letterSpacing:`${ld(w/S)}em`}:{},P,f),x={h1:h(o,96,1.167,-1.5),h2:h(o,60,1.2,-.5),h3:h(i,48,1.167,0),h4:h(i,34,1.235,.25),h5:h(i,24,1.334,0),h6:h(a,20,1.6,.15),subtitle1:h(i,16,1.75,.15),subtitle2:h(a,14,1.57,.1),body1:h(i,16,1.5,.15),body2:h(i,14,1.43,.15),button:h(a,14,1.75,.4,Ys),caption:h(i,12,1.66,.4),overline:h(i,12,2.66,1,Ys),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return ft(O({htmlFontSize:l,pxToRem:p,fontFamily:r,fontSize:s,fontWeightLight:o,fontWeightRegular:i,fontWeightMedium:a,fontWeightBold:c},x),d,{clone:!1})}const fd=.2,dd=.14,hd=.12;function j(...t){return[`${t[0]}px ${t[1]}px ${t[2]}px ${t[3]}px rgba(0,0,0,${fd})`,`${t[4]}px ${t[5]}px ${t[6]}px ${t[7]}px rgba(0,0,0,${dd})`,`${t[8]}px ${t[9]}px ${t[10]}px ${t[11]}px rgba(0,0,0,${hd})`].join(",")}const pd=["none",j(0,2,1,-1,0,1,1,0,0,1,3,0),j(0,3,1,-2,0,2,2,0,0,1,5,0),j(0,3,3,-2,0,3,4,0,0,1,8,0),j(0,2,4,-1,0,4,5,0,0,1,10,0),j(0,3,5,-1,0,5,8,0,0,1,14,0),j(0,3,5,-1,0,6,10,0,0,1,18,0),j(0,4,5,-2,0,7,10,1,0,2,16,1),j(0,5,5,-3,0,8,10,1,0,3,14,2),j(0,5,6,-3,0,9,12,1,0,3,16,2),j(0,6,6,-3,0,10,14,1,0,4,18,3),j(0,6,7,-4,0,11,15,1,0,4,20,3),j(0,7,8,-4,0,12,17,2,0,5,22,4),j(0,7,8,-4,0,13,19,2,0,5,24,4),j(0,7,9,-4,0,14,21,2,0,5,26,4),j(0,8,9,-5,0,15,22,2,0,6,28,5),j(0,8,10,-5,0,16,24,2,0,6,30,5),j(0,8,11,-5,0,17,26,2,0,6,32,5),j(0,9,11,-5,0,18,28,2,0,7,34,6),j(0,9,12,-6,0,19,29,2,0,7,36,6),j(0,10,13,-6,0,20,31,3,0,8,38,7),j(0,10,13,-6,0,21,33,3,0,8,40,7),j(0,10,14,-6,0,22,35,3,0,8,42,7),j(0,11,14,-7,0,23,36,3,0,9,44,8),j(0,11,15,-7,0,24,38,3,0,9,46,8)],md=pd,gd=["duration","easing","delay"],yd={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},xd={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Zs(t){return`${Math.round(t)}ms`}function bd(t){if(!t)return 0;const e=t/36;return Math.round((4+15*e**.25+e/5)*10)}function vd(t){const e=O({},yd,t.easing),n=O({},xd,t.duration);return O({getAutoHeightDuration:bd,create:(s=["all"],o={})=>{const{duration:i=n.standard,easing:a=e.easeInOut,delay:c=0}=o;return Ct(o,gd),(Array.isArray(s)?s:[s]).map(l=>`${l} ${typeof i=="string"?i:Zs(i)} ${a} ${typeof c=="string"?c:Zs(c)}`).join(",")}},t,{easing:e,duration:n})}const Sd={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},wd=Sd,Pd=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Td(t={},...e){const{mixins:n={},palette:r={},transitions:s={},typography:o={}}=t,i=Ct(t,Pd);if(t.vars)throw new Error(ne(18));const a=ad(r),c=Kr(t);let l=ft(c,{mixins:Wf(c.breakpoints,n),palette:a,shadows:md.slice(),typography:ud(a,o),transitions:vd(s),zIndex:O({},wd)});return l=ft(l,i),l=e.reduce((f,u)=>ft(f,u),l),l.unstable_sxConfig=O({},Wr,i==null?void 0:i.unstable_sxConfig),l.unstable_sx=function(u){return Hr({sx:u,theme:this})},l}const Ed=Td(),Xo=Ed,Yo="$$material";function Cd({props:t,name:e}){return If({props:t,name:e,defaultTheme:Xo,themeId:Yo})}const Ad=t=>Je(t)&&t!=="classes",Rd=Ff({themeId:Yo,defaultTheme:Xo,rootShouldForwardProp:Ad}),Od=Rd;function kd(t){return ko("MuiSvgIcon",t)}Al("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Vd=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],Md=t=>{const{color:e,fontSize:n,classes:r}=t,s={root:["root",e!=="inherit"&&`color${mt(e)}`,`fontSize${mt(n)}`]};return Pl(s,kd,r)},Dd=Od("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.color!=="inherit"&&e[`color${mt(n.color)}`],e[`fontSize${mt(n.fontSize)}`]]}})(({theme:t,ownerState:e})=>{var n,r,s,o,i,a,c,l,f,u,d,m,p;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:e.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(n=t.transitions)==null||(r=n.create)==null?void 0:r.call(n,"fill",{duration:(s=t.transitions)==null||(s=s.duration)==null?void 0:s.shorter}),fontSize:{inherit:"inherit",small:((o=t.typography)==null||(i=o.pxToRem)==null?void 0:i.call(o,20))||"1.25rem",medium:((a=t.typography)==null||(c=a.pxToRem)==null?void 0:c.call(a,24))||"1.5rem",large:((l=t.typography)==null||(f=l.pxToRem)==null?void 0:f.call(l,35))||"2.1875rem"}[e.fontSize],color:(u=(d=(t.vars||t).palette)==null||(d=d[e.color])==null?void 0:d.main)!=null?u:{action:(m=(t.vars||t).palette)==null||(m=m.action)==null?void 0:m.active,disabled:(p=(t.vars||t).palette)==null||(p=p.action)==null?void 0:p.disabled,inherit:void 0}[e.color]}}),Jo=g.reactExports.forwardRef(function(e,n){const r=Cd({props:e,name:"MuiSvgIcon"}),{children:s,className:o,color:i="inherit",component:a="svg",fontSize:c="medium",htmlColor:l,inheritViewBox:f=!1,titleAccess:u,viewBox:d="0 0 24 24"}=r,m=Ct(r,Vd),p=g.reactExports.isValidElement(s)&&s.type==="svg",h=O({},r,{color:i,component:a,fontSize:c,instanceFontSize:e.fontSize,inheritViewBox:f,viewBox:d,hasSvgAsChild:p}),x={};f||(x.viewBox=d);const v=Md(h);return g.jsxRuntimeExports.jsxs(Dd,O({as:a,className:Rl(v.root,o),focusable:"false",color:l,"aria-hidden":u?void 0:!0,role:u?"img":void 0,ref:n},x,m,p&&s.props,{ownerState:h,children:[p?s.props.children:s,u?g.jsxRuntimeExports.jsx("title",{children:u}):null]}))});Jo.muiName="SvgIcon";const Qs=Jo;function Ld(t,e){function n(r,s){return g.jsxRuntimeExports.jsx(Qs,O({"data-testid":`${e}Icon`,ref:s},r,{children:t}))}return n.muiName=Qs.muiName,g.reactExports.memo(g.reactExports.forwardRef(n))}const jd={configure:t=>{Oo.configure(t)}},Fd=Object.freeze(Object.defineProperty({__proto__:null,capitalize:mt,createChainedFunction:rl,createSvgIcon:Ld,debounce:sl,deprecatedPropType:il,isMuiElement:ol,ownerDocument:Eo,ownerWindow:al,requirePropFactory:cl,setRef:Co,unstable_ClassNameGenerator:jd,unstable_useEnhancedEffect:Ao,unstable_useId:fl,unsupportedProp:dl,useControlled:hl,useEventCallback:pl,useForkRef:ml,useIsFocusVisible:wl},Symbol.toStringTag,{value:"Module"})),Bd=g.getAugmentedNamespace(Fd);var ti;function qr(){return ti||(ti=1,function(t){"use client";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return e.createSvgIcon}});var e=Bd}(zn)),zn}var Id=Fr;Object.defineProperty(jr,"__esModule",{value:!0});var Zo=jr.default=void 0,_d=Id(qr()),$d=g.jsxRuntimeExports;Zo=jr.default=(0,_d.default)((0,$d.jsx)("path",{d:"m10 17 5-5-5-5z"}),"ArrowRight");var Xr={},Nd=Fr;Object.defineProperty(Xr,"__esModule",{value:!0});var Qo=Xr.default=void 0,Ud=Nd(qr()),zd=g.jsxRuntimeExports;Qo=Xr.default=(0,Ud.default)((0,zd.jsx)("path",{d:"M4 18h11c.55 0 1-.45 1-1s-.45-1-1-1H4c-.55 0-1 .45-1 1s.45 1 1 1m0-5h8c.55 0 1-.45 1-1s-.45-1-1-1H4c-.55 0-1 .45-1 1s.45 1 1 1M3 7c0 .55.45 1 1 1h11c.55 0 1-.45 1-1s-.45-1-1-1H4c-.55 0-1 .45-1 1m17.3 7.88L17.42 12l2.88-2.88c.39-.39.39-1.02 0-1.41a.9959.9959 0 0 0-1.41 0L15.3 11.3c-.39.39-.39 1.02 0 1.41l3.59 3.59c.39.39 1.02.39 1.41 0 .38-.39.39-1.03 0-1.42"}),"MenuOpenRounded");var Yr={},Wd=Fr;Object.defineProperty(Yr,"__esModule",{value:!0});var ta=Yr.default=void 0,Hd=Wd(qr()),Kd=g.jsxRuntimeExports;ta=Yr.default=(0,Hd.default)((0,Kd.jsx)("path",{d:"M4 18h16c.55 0 1-.45 1-1s-.45-1-1-1H4c-.55 0-1 .45-1 1s.45 1 1 1m0-5h16c.55 0 1-.45 1-1s-.45-1-1-1H4c-.55 0-1 .45-1 1s.45 1 1 1M3 7c0 .55.45 1 1 1h16c.55 0 1-.45 1-1s-.45-1-1-1H4c-.55 0-1 .45-1 1"}),"MenuRounded");const ea=g.reactExports.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),Rn=g.reactExports.createContext({}),Jr=g.reactExports.createContext(null),On=typeof document<"u",Gd=On?g.reactExports.useLayoutEffect:g.reactExports.useEffect,na=g.reactExports.createContext({strict:!1}),Zr=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),qd="framerAppearId",ra="data-"+Zr(qd);function Xd(t,e,n,r){const{visualElement:s}=g.reactExports.useContext(Rn),o=g.reactExports.useContext(na),i=g.reactExports.useContext(Jr),a=g.reactExports.useContext(ea).reducedMotion,c=g.reactExports.useRef();r=r||o.renderer,!c.current&&r&&(c.current=r(t,{visualState:e,parent:s,props:n,presenceContext:i,blockInitialAnimation:i?i.initial===!1:!1,reducedMotionConfig:a}));const l=c.current;g.reactExports.useInsertionEffect(()=>{l&&l.update(n,i)});const f=g.reactExports.useRef(!!(n[ra]&&!window.HandoffComplete));return Gd(()=>{l&&(l.render(),f.current&&l.animationState&&l.animationState.animateChanges())}),g.reactExports.useEffect(()=>{l&&(l.updateFeatures(),!f.current&&l.animationState&&l.animationState.animateChanges(),f.current&&(f.current=!1,window.HandoffComplete=!0))}),l}function Yt(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function Yd(t,e,n){return g.reactExports.useCallback(r=>{r&&t.mount&&t.mount(r),e&&(r?e.mount(r):e.unmount()),n&&(typeof n=="function"?n(r):Yt(n)&&(n.current=r))},[e])}function Re(t){return typeof t=="string"||Array.isArray(t)}function kn(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}const Qr=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],ts=["initial",...Qr];function Vn(t){return kn(t.animate)||ts.some(e=>Re(t[e]))}function sa(t){return!!(Vn(t)||t.variants)}function Jd(t,e){if(Vn(t)){const{initial:n,animate:r}=t;return{initial:n===!1||Re(n)?n:void 0,animate:Re(r)?r:void 0}}return t.inherit!==!1?e:{}}function Zd(t){const{initial:e,animate:n}=Jd(t,g.reactExports.useContext(Rn));return g.reactExports.useMemo(()=>({initial:e,animate:n}),[ei(e),ei(n)])}function ei(t){return Array.isArray(t)?t.join(" "):t}const 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"]},Oe={};for(const t in ni)Oe[t]={isEnabled:e=>ni[t].some(n=>!!e[n])};function Qd(t){for(const e in t)Oe[e]={...Oe[e],...t[e]}}const ia=g.reactExports.createContext({}),oa=g.reactExports.createContext({}),th=Symbol.for("motionComponentSymbol");function eh({preloadedFeatures:t,createVisualElement:e,useRender:n,useVisualState:r,Component:s}){t&&Qd(t);function o(a,c){let l;const f={...g.reactExports.useContext(ea),...a,layoutId:nh(a)},{isStatic:u}=f,d=Zd(a),m=r(a,u);if(!u&&On){d.visualElement=Xd(s,m,f,e);const p=g.reactExports.useContext(oa),h=g.reactExports.useContext(na).strict;d.visualElement&&(l=d.visualElement.loadFeatures(f,h,t,p))}return g.reactExports.createElement(Rn.Provider,{value:d},l&&d.visualElement?g.reactExports.createElement(l,{visualElement:d.visualElement,...f}):null,n(s,a,Yd(m,d.visualElement,c),m,u,d.visualElement))}const i=g.reactExports.forwardRef(o);return i[th]=s,i}function nh({layoutId:t}){const e=g.reactExports.useContext(ia).id;return e&&t!==void 0?e+"-"+t:t}function rh(t){function e(r,s={}){return eh(t(r,s))}if(typeof Proxy>"u")return e;const n=new Map;return new Proxy(e,{get:(r,s)=>(n.has(s)||n.set(s,e(s)),n.get(s))})}const sh=["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 es(t){return typeof t!="string"||t.includes("-")?!1:!!(sh.indexOf(t)>-1||/[A-Z]/.test(t))}const ln={};function ih(t){Object.assign(ln,t)}const je=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Ut=new Set(je);function aa(t,{layout:e,layoutId:n}){return Ut.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!ln[t]||t==="opacity")}const et=t=>!!(t&&t.getVelocity),oh={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},ah=je.length;function ch(t,{enableHardwareAcceleration:e=!0,allowTransformNone:n=!0},r,s){let o="";for(let i=0;i<ah;i++){const a=je[i];if(t[a]!==void 0){const c=oh[a]||a;o+=`${c}(${t[a]}) `}}return e&&!t.z&&(o+="translateZ(0)"),o=o.trim(),s?o=s(t,r?"":o):n&&r&&(o="none"),o}const ca=t=>e=>typeof e=="string"&&e.startsWith(t),la=ca("--"),pr=ca("var(--"),lh=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,uh=(t,e)=>e&&typeof t=="number"?e.transform(t):t,Lt=(t,e,n)=>Math.min(Math.max(n,t),e),zt={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},ve={...zt,transform:t=>Lt(0,1,t)},We={...zt,default:1},Se=t=>Math.round(t*1e5)/1e5,Mn=/(-)?([\d]*\.?[\d])+/g,ua=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,fh=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Fe(t){return typeof t=="string"}const Be=t=>({test:e=>Fe(e)&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),Ot=Be("deg"),yt=Be("%"),C=Be("px"),dh=Be("vh"),hh=Be("vw"),ri={...yt,parse:t=>yt.parse(t)/100,transform:t=>yt.transform(t*100)},si={...zt,transform:Math.round},fa={borderWidth:C,borderTopWidth:C,borderRightWidth:C,borderBottomWidth:C,borderLeftWidth:C,borderRadius:C,radius:C,borderTopLeftRadius:C,borderTopRightRadius:C,borderBottomRightRadius:C,borderBottomLeftRadius:C,width:C,maxWidth:C,height:C,maxHeight:C,size:C,top:C,right:C,bottom:C,left:C,padding:C,paddingTop:C,paddingRight:C,paddingBottom:C,paddingLeft:C,margin:C,marginTop:C,marginRight:C,marginBottom:C,marginLeft:C,rotate:Ot,rotateX:Ot,rotateY:Ot,rotateZ:Ot,scale:We,scaleX:We,scaleY:We,scaleZ:We,skew:Ot,skewX:Ot,skewY:Ot,distance:C,translateX:C,translateY:C,translateZ:C,x:C,y:C,z:C,perspective:C,transformPerspective:C,opacity:ve,originX:ri,originY:ri,originZ:C,zIndex:si,fillOpacity:ve,strokeOpacity:ve,numOctaves:si};function ns(t,e,n,r){const{style:s,vars:o,transform:i,transformOrigin:a}=t;let c=!1,l=!1,f=!0;for(const u in e){const d=e[u];if(la(u)){o[u]=d;continue}const m=fa[u],p=uh(d,m);if(Ut.has(u)){if(c=!0,i[u]=p,!f)continue;d!==(m.default||0)&&(f=!1)}else u.startsWith("origin")?(l=!0,a[u]=p):s[u]=p}if(e.transform||(c||r?s.transform=ch(t.transform,n,f,r):s.transform&&(s.transform="none")),l){const{originX:u="50%",originY:d="50%",originZ:m=0}=a;s.transformOrigin=`${u} ${d} ${m}`}}const rs=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function da(t,e,n){for(const r in e)!et(e[r])&&!aa(r,n)&&(t[r]=e[r])}function ph({transformTemplate:t},e,n){return g.reactExports.useMemo(()=>{const r=rs();return ns(r,e,{enableHardwareAcceleration:!n},t),Object.assign({},r.vars,r.style)},[e])}function mh(t,e,n){const r=t.style||{},s={};return da(s,r,t),Object.assign(s,ph(t,e,n)),t.transformValues?t.transformValues(s):s}function gh(t,e,n){const r={},s=mh(t,e,n);return t.drag&&t.dragListener!==!1&&(r.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(r.tabIndex=0),r.style=s,r}const yh=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function un(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||yh.has(t)}let ha=t=>!un(t);function xh(t){t&&(ha=e=>e.startsWith("on")?!un(e):t(e))}try{xh(require("@emotion/is-prop-valid").default)}catch{}function bh(t,e,n){const r={};for(const s in t)s==="values"&&typeof t.values=="object"||(ha(s)||n===!0&&un(s)||!e&&!un(s)||t.draggable&&s.startsWith("onDrag"))&&(r[s]=t[s]);return r}function ii(t,e,n){return typeof t=="string"?t:C.transform(e+n*t)}function vh(t,e,n){const r=ii(e,t.x,t.width),s=ii(n,t.y,t.height);return`${r} ${s}`}const Sh={offset:"stroke-dashoffset",array:"stroke-dasharray"},wh={offset:"strokeDashoffset",array:"strokeDasharray"};function Ph(t,e,n=1,r=0,s=!0){t.pathLength=1;const o=s?Sh:wh;t[o.offset]=C.transform(-r);const i=C.transform(e),a=C.transform(n);t[o.array]=`${i} ${a}`}function ss(t,{attrX:e,attrY:n,attrScale:r,originX:s,originY:o,pathLength:i,pathSpacing:a=1,pathOffset:c=0,...l},f,u,d){if(ns(t,l,f,d),u){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:m,style:p,dimensions:h}=t;m.transform&&(h&&(p.transform=m.transform),delete m.transform),h&&(s!==void 0||o!==void 0||p.transform)&&(p.transformOrigin=vh(h,s!==void 0?s:.5,o!==void 0?o:.5)),e!==void 0&&(m.x=e),n!==void 0&&(m.y=n),r!==void 0&&(m.scale=r),i!==void 0&&Ph(m,i,a,c,!1)}const pa=()=>({...rs(),attrs:{}}),is=t=>typeof t=="string"&&t.toLowerCase()==="svg";function Th(t,e,n,r){const s=g.reactExports.useMemo(()=>{const o=pa();return ss(o,e,{enableHardwareAcceleration:!1},is(r),t.transformTemplate),{...o.attrs,style:{...o.style}}},[e]);if(t.style){const o={};da(o,t.style,t),s.style={...o,...s.style}}return s}function Eh(t=!1){return(n,r,s,{latestValues:o},i)=>{const c=(es(n)?Th:gh)(r,o,i,n),f={...bh(r,typeof n=="string",t),...c,ref:s},{children:u}=r,d=g.reactExports.useMemo(()=>et(u)?u.get():u,[u]);return g.reactExports.createElement(n,{...f,children:d})}}function ma(t,{style:e,vars:n},r,s){Object.assign(t.style,e,s&&s.getProjectionStyles(r));for(const o in n)t.style.setProperty(o,n[o])}const ga=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 ya(t,e,n,r){ma(t,e,void 0,r);for(const s in e.attrs)t.setAttribute(ga.has(s)?s:Zr(s),e.attrs[s])}function os(t,e){const{style:n}=t,r={};for(const s in n)(et(n[s])||e.style&&et(e.style[s])||aa(s,t))&&(r[s]=n[s]);return r}function xa(t,e){const n=os(t,e);for(const r in t)if(et(t[r])||et(e[r])){const s=je.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;n[s]=t[r]}return n}function as(t,e,n,r={},s={}){return typeof e=="function"&&(e=e(n!==void 0?n:t.custom,r,s)),typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"&&(e=e(n!==void 0?n:t.custom,r,s)),e}function Ch(t){const e=g.reactExports.useRef(null);return e.current===null&&(e.current=t()),e.current}const fn=t=>Array.isArray(t),Ah=t=>!!(t&&typeof t=="object"&&t.mix&&t.toValue),Rh=t=>fn(t)?t[t.length-1]||0:t;function Qe(t){const e=et(t)?t.get():t;return Ah(e)?e.toValue():e}function Oh({scrapeMotionValuesFromProps:t,createRenderState:e,onMount:n},r,s,o){const i={latestValues:kh(r,s,o,t),renderState:e()};return n&&(i.mount=a=>n(r,a,i)),i}const ba=t=>(e,n)=>{const r=g.reactExports.useContext(Rn),s=g.reactExports.useContext(Jr),o=()=>Oh(t,e,r,s);return n?o():Ch(o)};function kh(t,e,n,r){const s={},o=r(t,{});for(const d in o)s[d]=Qe(o[d]);let{initial:i,animate:a}=t;const c=Vn(t),l=sa(t);e&&l&&!c&&t.inherit!==!1&&(i===void 0&&(i=e.initial),a===void 0&&(a=e.animate));let f=n?n.initial===!1:!1;f=f||i===!1;const u=f?a:i;return u&&typeof u!="boolean"&&!kn(u)&&(Array.isArray(u)?u:[u]).forEach(m=>{const p=as(t,m);if(!p)return;const{transitionEnd:h,transition:x,...v}=p;for(const S in v){let y=v[S];if(Array.isArray(y)){const w=f?y.length-1:0;y=y[w]}y!==null&&(s[S]=y)}for(const S in h)s[S]=h[S]}),s}const U=t=>t;class oi{constructor(){this.order=[],this.scheduled=new Set}add(e){if(!this.scheduled.has(e))return this.scheduled.add(e),this.order.push(e),!0}remove(e){const n=this.order.indexOf(e);n!==-1&&(this.order.splice(n,1),this.scheduled.delete(e))}clear(){this.order.length=0,this.scheduled.clear()}}function Vh(t){let e=new oi,n=new oi,r=0,s=!1,o=!1;const i=new WeakSet,a={schedule:(c,l=!1,f=!1)=>{const u=f&&s,d=u?e:n;return l&&i.add(c),d.add(c)&&u&&s&&(r=e.order.length),c},cancel:c=>{n.remove(c),i.delete(c)},process:c=>{if(s){o=!0;return}if(s=!0,[e,n]=[n,e],n.clear(),r=e.order.length,r)for(let l=0;l<r;l++){const f=e.order[l];f(c),i.has(f)&&(a.schedule(f),t())}s=!1,o&&(o=!1,a.process(c))}};return a}const He=["prepare","read","update","preRender","render","postRender"],Mh=40;function Dh(t,e){let n=!1,r=!0;const s={delta:0,timestamp:0,isProcessing:!1},o=He.reduce((u,d)=>(u[d]=Vh(()=>n=!0),u),{}),i=u=>o[u].process(s),a=()=>{const u=performance.now();n=!1,s.delta=r?1e3/60:Math.max(Math.min(u-s.timestamp,Mh),1),s.timestamp=u,s.isProcessing=!0,He.forEach(i),s.isProcessing=!1,n&&e&&(r=!1,t(a))},c=()=>{n=!0,r=!0,s.isProcessing||t(a)};return{schedule:He.reduce((u,d)=>{const m=o[d];return u[d]=(p,h=!1,x=!1)=>(n||c(),m.schedule(p,h,x)),u},{}),cancel:u=>He.forEach(d=>o[d].cancel(u)),state:s,steps:o}}const{schedule:L,cancel:Et,state:J,steps:Gn}=Dh(typeof requestAnimationFrame<"u"?requestAnimationFrame:U,!0),Lh={useVisualState:ba({scrapeMotionValuesFromProps:xa,createRenderState:pa,onMount:(t,e,{renderState:n,latestValues:r})=>{L.read(()=>{try{n.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),L.render(()=>{ss(n,r,{enableHardwareAcceleration:!1},is(e.tagName),t.transformTemplate),ya(e,n)})}})},jh={useVisualState:ba({scrapeMotionValuesFromProps:os,createRenderState:rs})};function Fh(t,{forwardMotionProps:e=!1},n,r){return{...es(t)?Lh:jh,preloadedFeatures:n,useRender:Eh(e),createVisualElement:r,Component:t}}function bt(t,e,n,r={passive:!0}){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n)}const va=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1;function Dn(t,e="page"){return{point:{x:t[e+"X"],y:t[e+"Y"]}}}const Bh=t=>e=>va(e)&&t(e,Dn(e));function vt(t,e,n,r){return bt(t,e,Bh(n),r)}const Ih=(t,e)=>n=>e(t(n)),Mt=(...t)=>t.reduce(Ih);function Sa(t){let e=null;return()=>{const n=()=>{e=null};return e===null?(e=t,n):!1}}const ai=Sa("dragHorizontal"),ci=Sa("dragVertical");function wa(t){let e=!1;if(t==="y")e=ci();else if(t==="x")e=ai();else{const n=ai(),r=ci();n&&r?e=()=>{n(),r()}:(n&&n(),r&&r())}return e}function Pa(){const t=wa(!0);return t?(t(),!1):!0}class Ft{constructor(e){this.isMounted=!1,this.node=e}update(){}}function li(t,e){const n="pointer"+(e?"enter":"leave"),r="onHover"+(e?"Start":"End"),s=(o,i)=>{if(o.pointerType==="touch"||Pa())return;const a=t.getProps();t.animationState&&a.whileHover&&t.animationState.setActive("whileHover",e),a[r]&&L.update(()=>a[r](o,i))};return vt(t.current,n,s,{passive:!t.getProps()[r]})}class _h extends Ft{mount(){this.unmount=Mt(li(this.node,!0),li(this.node,!1))}unmount(){}}class $h extends Ft{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=Mt(bt(this.node.current,"focus",()=>this.onFocus()),bt(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const Ta=(t,e)=>e?t===e?!0:Ta(t,e.parentElement):!1;function qn(t,e){if(!e)return;const n=new PointerEvent("pointer"+t);e(n,Dn(n))}class Nh extends Ft{constructor(){super(...arguments),this.removeStartListeners=U,this.removeEndListeners=U,this.removeAccessibleListeners=U,this.startPointerPress=(e,n)=>{if(this.isPressing)return;this.removeEndListeners();const r=this.node.getProps(),o=vt(window,"pointerup",(a,c)=>{if(!this.checkPressEnd())return;const{onTap:l,onTapCancel:f,globalTapTarget:u}=this.node.getProps();L.update(()=>{!u&&!Ta(this.node.current,a.target)?f&&f(a,c):l&&l(a,c)})},{passive:!(r.onTap||r.onPointerUp)}),i=vt(window,"pointercancel",(a,c)=>this.cancelPress(a,c),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=Mt(o,i),this.startPress(e,n)},this.startAccessiblePress=()=>{const e=o=>{if(o.key!=="Enter"||this.isPressing)return;const i=a=>{a.key!=="Enter"||!this.checkPressEnd()||qn("up",(c,l)=>{const{onTap:f}=this.node.getProps();f&&L.update(()=>f(c,l))})};this.removeEndListeners(),this.removeEndListeners=bt(this.node.current,"keyup",i),qn("down",(a,c)=>{this.startPress(a,c)})},n=bt(this.node.current,"keydown",e),r=()=>{this.isPressing&&qn("cancel",(o,i)=>this.cancelPress(o,i))},s=bt(this.node.current,"blur",r);this.removeAccessibleListeners=Mt(n,s)}}startPress(e,n){this.isPressing=!0;const{onTapStart:r,whileTap:s}=this.node.getProps();s&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&L.update(()=>r(e,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!Pa()}cancelPress(e,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&L.update(()=>r(e,n))}mount(){const e=this.node.getProps(),n=vt(e.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),r=bt(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Mt(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const mr=new WeakMap,Xn=new WeakMap,Uh=t=>{const e=mr.get(t.target);e&&e(t)},zh=t=>{t.forEach(Uh)};function Wh({root:t,...e}){const n=t||document;Xn.has(n)||Xn.set(n,{});const r=Xn.get(n),s=JSON.stringify(e);return r[s]||(r[s]=new IntersectionObserver(zh,{root:t,...e})),r[s]}function Hh(t,e,n){const r=Wh(e);return mr.set(t,n),r.observe(t),()=>{mr.delete(t),r.unobserve(t)}}const Kh={some:0,all:1};class Gh extends Ft{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:n,margin:r,amount:s="some",once:o}=e,i={root:n?n.current:void 0,rootMargin:r,threshold:typeof s=="number"?s:Kh[s]},a=c=>{const{isIntersecting:l}=c;if(this.isInView===l||(this.isInView=l,o&&!l&&this.hasEnteredView))return;l&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",l);const{onViewportEnter:f,onViewportLeave:u}=this.node.getProps(),d=l?f:u;d&&d(c)};return Hh(this.node.current,i,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(qh(e,n))&&this.startObserver()}unmount(){}}function qh({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const Xh={inView:{Feature:Gh},tap:{Feature:Nh},focus:{Feature:$h},hover:{Feature:_h}};function Ea(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}function Yh(t){const e={};return t.values.forEach((n,r)=>e[r]=n.get()),e}function Jh(t){const e={};return t.values.forEach((n,r)=>e[r]=n.getVelocity()),e}function Ln(t,e,n){const r=t.getProps();return as(r,e,n!==void 0?n:r.custom,Yh(t),Jh(t))}let Zh=U,cs=U;const Dt=t=>t*1e3,St=t=>t/1e3,Qh={current:!1},Ca=t=>Array.isArray(t)&&typeof t[0]=="number";function Aa(t){return!!(!t||typeof t=="string"&&Ra[t]||Ca(t)||Array.isArray(t)&&t.every(Aa))}const xe=([t,e,n,r])=>`cubic-bezier(${t}, ${e}, ${n}, ${r})`,Ra={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:xe([0,.65,.55,1]),circOut:xe([.55,0,1,.45]),backIn:xe([.31,.01,.66,-.59]),backOut:xe([.33,1.53,.69,.99])};function Oa(t){if(t)return Ca(t)?xe(t):Array.isArray(t)?t.map(Oa):Ra[t]}function tp(t,e,n,{delay:r=0,duration:s,repeat:o=0,repeatType:i="loop",ease:a,times:c}={}){const l={[e]:n};c&&(l.offset=c);const f=Oa(a);return Array.isArray(f)&&(l.easing=f),t.animate(l,{delay:r,duration:s,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:o+1,direction:i==="reverse"?"alternate":"normal"})}function ep(t,{repeat:e,repeatType:n="loop"}){const r=e&&n!=="loop"&&e%2===1?0:t.length-1;return t[r]}const ka=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,np=1e-7,rp=12;function sp(t,e,n,r,s){let o,i,a=0;do i=e+(n-e)/2,o=ka(i,r,s)-t,o>0?n=i:e=i;while(Math.abs(o)>np&&++a<rp);return i}function Ie(t,e,n,r){if(t===e&&n===r)return U;const s=o=>sp(o,0,1,t,n);return o=>o===0||o===1?o:ka(s(o),e,r)}const ip=Ie(.42,0,1,1),op=Ie(0,0,.58,1),Va=Ie(.42,0,.58,1),ap=t=>Array.isArray(t)&&typeof t[0]!="number",Ma=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,Da=t=>e=>1-t(1-e),ls=t=>1-Math.sin(Math.acos(t)),La=Da(ls),cp=Ma(ls),ja=Ie(.33,1.53,.69,.99),us=Da(ja),lp=Ma(us),up=t=>(t*=2)<1?.5*us(t):.5*(2-Math.pow(2,-10*(t-1))),fp={linear:U,easeIn:ip,easeInOut:Va,easeOut:op,circIn:ls,circInOut:cp,circOut:La,backIn:us,backInOut:lp,backOut:ja,anticipate:up},ui=t=>{if(Array.isArray(t)){cs(t.length===4);const[e,n,r,s]=t;return Ie(e,n,r,s)}else if(typeof t=="string")return fp[t];return t},fs=(t,e)=>n=>!!(Fe(n)&&fh.test(n)&&n.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(n,e)),Fa=(t,e,n)=>r=>{if(!Fe(r))return r;const[s,o,i,a]=r.match(Mn);return{[t]:parseFloat(s),[e]:parseFloat(o),[n]:parseFloat(i),alpha:a!==void 0?parseFloat(a):1}},dp=t=>Lt(0,255,t),Yn={...zt,transform:t=>Math.round(dp(t))},Nt={test:fs("rgb","red"),parse:Fa("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:r=1})=>"rgba("+Yn.transform(t)+", "+Yn.transform(e)+", "+Yn.transform(n)+", "+Se(ve.transform(r))+")"};function hp(t){let e="",n="",r="",s="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),r=t.substring(5,7),s=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),r=t.substring(3,4),s=t.substring(4,5),e+=e,n+=n,r+=r,s+=s),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:s?parseInt(s,16)/255:1}}const gr={test:fs("#"),parse:hp,transform:Nt.transform},Jt={test:fs("hsl","hue"),parse:Fa("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:r=1})=>"hsla("+Math.round(t)+", "+yt.transform(Se(e))+", "+yt.transform(Se(n))+", "+Se(ve.transform(r))+")"},Q={test:t=>Nt.test(t)||gr.test(t)||Jt.test(t),parse:t=>Nt.test(t)?Nt.parse(t):Jt.test(t)?Jt.parse(t):gr.parse(t),transform:t=>Fe(t)?t:t.hasOwnProperty("red")?Nt.transform(t):Jt.transform(t)},I=(t,e,n)=>-n*t+n*e+t;function Jn(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 pp({hue:t,saturation:e,lightness:n,alpha:r}){t/=360,e/=100,n/=100;let s=0,o=0,i=0;if(!e)s=o=i=n;else{const a=n<.5?n*(1+e):n+e-n*e,c=2*n-a;s=Jn(c,a,t+1/3),o=Jn(c,a,t),i=Jn(c,a,t-1/3)}return{red:Math.round(s*255),green:Math.round(o*255),blue:Math.round(i*255),alpha:r}}const Zn=(t,e,n)=>{const r=t*t;return Math.sqrt(Math.max(0,n*(e*e-r)+r))},mp=[gr,Nt,Jt],gp=t=>mp.find(e=>e.test(t));function fi(t){const e=gp(t);let n=e.parse(t);return e===Jt&&(n=pp(n)),n}const Ba=(t,e)=>{const n=fi(t),r=fi(e),s={...n};return o=>(s.red=Zn(n.red,r.red,o),s.green=Zn(n.green,r.green,o),s.blue=Zn(n.blue,r.blue,o),s.alpha=I(n.alpha,r.alpha,o),Nt.transform(s))};function yp(t){var e,n;return isNaN(t)&&Fe(t)&&(((e=t.match(Mn))===null||e===void 0?void 0:e.length)||0)+(((n=t.match(ua))===null||n===void 0?void 0:n.length)||0)>0}const Ia={regex:lh,countKey:"Vars",token:"${v}",parse:U},_a={regex:ua,countKey:"Colors",token:"${c}",parse:Q.parse},$a={regex:Mn,countKey:"Numbers",token:"${n}",parse:zt.parse};function Qn(t,{regex:e,countKey:n,token:r,parse:s}){const o=t.tokenised.match(e);o&&(t["num"+n]=o.length,t.tokenised=t.tokenised.replace(e,r),t.values.push(...o.map(s)))}function dn(t){const e=t.toString(),n={value:e,tokenised:e,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&Qn(n,Ia),Qn(n,_a),Qn(n,$a),n}function Na(t){return dn(t).values}function Ua(t){const{values:e,numColors:n,numVars:r,tokenised:s}=dn(t),o=e.length;return i=>{let a=s;for(let c=0;c<o;c++)c<r?a=a.replace(Ia.token,i[c]):c<r+n?a=a.replace(_a.token,Q.transform(i[c])):a=a.replace($a.token,Se(i[c]));return a}}const xp=t=>typeof t=="number"?0:t;function bp(t){const e=Na(t);return Ua(t)(e.map(xp))}const jt={test:yp,parse:Na,createTransformer:Ua,getAnimatableNone:bp},za=(t,e)=>n=>`${n>0?e:t}`;function Wa(t,e){return typeof t=="number"?n=>I(t,e,n):Q.test(t)?Ba(t,e):t.startsWith("var(")?za(t,e):Ka(t,e)}const Ha=(t,e)=>{const n=[...t],r=n.length,s=t.map((o,i)=>Wa(o,e[i]));return o=>{for(let i=0;i<r;i++)n[i]=s[i](o);return n}},vp=(t,e)=>{const n={...t,...e},r={};for(const s in n)t[s]!==void 0&&e[s]!==void 0&&(r[s]=Wa(t[s],e[s]));return s=>{for(const o in r)n[o]=r[o](s);return n}},Ka=(t,e)=>{const n=jt.createTransformer(e),r=dn(t),s=dn(e);return r.numVars===s.numVars&&r.numColors===s.numColors&&r.numNumbers>=s.numNumbers?Mt(Ha(r.values,s.values),n):za(t,e)},ke=(t,e,n)=>{const r=e-t;return r===0?1:(n-t)/r},di=(t,e)=>n=>I(t,e,n);function Sp(t){return typeof t=="number"?di:typeof t=="string"?Q.test(t)?Ba:Ka:Array.isArray(t)?Ha:typeof t=="object"?vp:di}function wp(t,e,n){const r=[],s=n||Sp(t[0]),o=t.length-1;for(let i=0;i<o;i++){let a=s(t[i],t[i+1]);if(e){const c=Array.isArray(e)?e[i]||U:e;a=Mt(c,a)}r.push(a)}return r}function Ga(t,e,{clamp:n=!0,ease:r,mixer:s}={}){const o=t.length;if(cs(o===e.length),o===1)return()=>e[0];t[0]>t[o-1]&&(t=[...t].reverse(),e=[...e].reverse());const i=wp(e,r,s),a=i.length,c=l=>{let f=0;if(a>1)for(;f<t.length-2&&!(l<t[f+1]);f++);const u=ke(t[f],t[f+1],l);return i[f](u)};return n?l=>c(Lt(t[0],t[o-1],l)):c}function Pp(t,e){const n=t[t.length-1];for(let r=1;r<=e;r++){const s=ke(0,e,r);t.push(I(n,1,s))}}function Tp(t){const e=[0];return Pp(e,t.length-1),e}function Ep(t,e){return t.map(n=>n*e)}function Cp(t,e){return t.map(()=>e||Va).splice(0,t.length-1)}function hn({duration:t=300,keyframes:e,times:n,ease:r="easeInOut"}){const s=ap(r)?r.map(ui):ui(r),o={done:!1,value:e[0]},i=Ep(n&&n.length===e.length?n:Tp(e),t),a=Ga(i,e,{ease:Array.isArray(s)?s:Cp(e,s)});return{calculatedDuration:t,next:c=>(o.value=a(c),o.done=c>=t,o)}}function qa(t,e){return e?t*(1e3/e):0}const Ap=5;function Xa(t,e,n){const r=Math.max(e-Ap,0);return qa(n-t(r),e-r)}const tr=.001,Rp=.01,hi=10,Op=.05,kp=1;function Vp({duration:t=800,bounce:e=.25,velocity:n=0,mass:r=1}){let s,o;Zh(t<=Dt(hi));let i=1-e;i=Lt(Op,kp,i),t=Lt(Rp,hi,St(t)),i<1?(s=l=>{const f=l*i,u=f*t,d=f-n,m=yr(l,i),p=Math.exp(-u);return tr-d/m*p},o=l=>{const u=l*i*t,d=u*n+n,m=Math.pow(i,2)*Math.pow(l,2)*t,p=Math.exp(-u),h=yr(Math.pow(l,2),i);return(-s(l)+tr>0?-1:1)*((d-m)*p)/h}):(s=l=>{const f=Math.exp(-l*t),u=(l-n)*t+1;return-tr+f*u},o=l=>{const f=Math.exp(-l*t),u=(n-l)*(t*t);return f*u});const a=5/t,c=Dp(s,o,a);if(t=Dt(t),isNaN(c))return{stiffness:100,damping:10,duration:t};{const l=Math.pow(c,2)*r;return{stiffness:l,damping:i*2*Math.sqrt(r*l),duration:t}}}const Mp=12;function Dp(t,e,n){let r=n;for(let s=1;s<Mp;s++)r=r-t(r)/e(r);return r}function yr(t,e){return t*Math.sqrt(1-e*e)}const Lp=["duration","bounce"],jp=["stiffness","damping","mass"];function pi(t,e){return e.some(n=>t[n]!==void 0)}function Fp(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!pi(t,jp)&&pi(t,Lp)){const n=Vp(t);e={...e,...n,mass:1},e.isResolvedFromDuration=!0}return e}function Ya({keyframes:t,restDelta:e,restSpeed:n,...r}){const s=t[0],o=t[t.length-1],i={done:!1,value:s},{stiffness:a,damping:c,mass:l,duration:f,velocity:u,isResolvedFromDuration:d}=Fp({...r,velocity:-St(r.velocity||0)}),m=u||0,p=c/(2*Math.sqrt(a*l)),h=o-s,x=St(Math.sqrt(a/l)),v=Math.abs(h)<5;n||(n=v?.01:2),e||(e=v?.005:.5);let S;if(p<1){const y=yr(x,p);S=w=>{const P=Math.exp(-p*x*w);return o-P*((m+p*x*h)/y*Math.sin(y*w)+h*Math.cos(y*w))}}else if(p===1)S=y=>o-Math.exp(-x*y)*(h+(m+x*h)*y);else{const y=x*Math.sqrt(p*p-1);S=w=>{const P=Math.exp(-p*x*w),E=Math.min(y*w,300);return o-P*((m+p*x*h)*Math.sinh(E)+y*h*Math.cosh(E))/y}}return{calculatedDuration:d&&f||null,next:y=>{const w=S(y);if(d)i.done=y>=f;else{let P=m;y!==0&&(p<1?P=Xa(S,y,w):P=0);const E=Math.abs(P)<=n,T=Math.abs(o-w)<=e;i.done=E&&T}return i.value=i.done?o:w,i}}}function mi({keyframes:t,velocity:e=0,power:n=.8,timeConstant:r=325,bounceDamping:s=10,bounceStiffness:o=500,modifyTarget:i,min:a,max:c,restDelta:l=.5,restSpeed:f}){const u=t[0],d={done:!1,value:u},m=R=>a!==void 0&&R<a||c!==void 0&&R>c,p=R=>a===void 0?c:c===void 0||Math.abs(a-R)<Math.abs(c-R)?a:c;let h=n*e;const x=u+h,v=i===void 0?x:i(x);v!==x&&(h=v-u);const S=R=>-h*Math.exp(-R/r),y=R=>v+S(R),w=R=>{const D=S(R),A=y(R);d.done=Math.abs(D)<=l,d.value=d.done?v:A};let P,E;const T=R=>{m(d.value)&&(P=R,E=Ya({keyframes:[d.value,p(d.value)],velocity:Xa(y,R,d.value),damping:s,stiffness:o,restDelta:l,restSpeed:f}))};return T(0),{calculatedDuration:null,next:R=>{let D=!1;return!E&&P===void 0&&(D=!0,w(R),T(R)),P!==void 0&&R>P?E.next(R-P):(!D&&w(R),d)}}}const Bp=t=>{const e=({timestamp:n})=>t(n);return{start:()=>L.update(e,!0),stop:()=>Et(e),now:()=>J.isProcessing?J.timestamp:performance.now()}},gi=2e4;function yi(t){let e=0;const n=50;let r=t.next(e);for(;!r.done&&e<gi;)e+=n,r=t.next(e);return e>=gi?1/0:e}const Ip={decay:mi,inertia:mi,tween:hn,keyframes:hn,spring:Ya};function pn({autoplay:t=!0,delay:e=0,driver:n=Bp,keyframes:r,type:s="keyframes",repeat:o=0,repeatDelay:i=0,repeatType:a="loop",onPlay:c,onStop:l,onComplete:f,onUpdate:u,...d}){let m=1,p=!1,h,x;const v=()=>{x=new Promise(B=>{h=B})};v();let S;const y=Ip[s]||hn;let w;y!==hn&&typeof r[0]!="number"&&(w=Ga([0,100],r,{clamp:!1}),r=[0,100]);const P=y({...d,keyframes:r});let E;a==="mirror"&&(E=y({...d,keyframes:[...r].reverse(),velocity:-(d.velocity||0)}));let T="idle",R=null,D=null,A=null;P.calculatedDuration===null&&o&&(P.calculatedDuration=yi(P));const{calculatedDuration:W}=P;let _=1/0,Z=1/0;W!==null&&(_=W+i,Z=_*(o+1)-i);let F=0;const ut=B=>{if(D===null)return;m>0&&(D=Math.min(D,B)),m<0&&(D=Math.min(B-Z/m,D)),R!==null?F=R:F=Math.round(B-D)*m;const fe=F-e*(m>=0?1:-1),As=m>=0?fe<0:fe>Z;F=Math.max(fe,0),T==="finished"&&R===null&&(F=Z);let Rs=F,Os=P;if(o){const Un=Math.min(F,Z)/_;let Ue=Math.floor(Un),Bt=Un%1;!Bt&&Un>=1&&(Bt=1),Bt===1&&Ue--,Ue=Math.min(Ue,o+1),!!(Ue%2)&&(a==="reverse"?(Bt=1-Bt,i&&(Bt-=i/_)):a==="mirror"&&(Os=E)),Rs=Lt(0,1,Bt)*_}const de=As?{done:!1,value:r[0]}:Os.next(Rs);w&&(de.value=w(de.value));let{done:ks}=de;!As&&W!==null&&(ks=m>=0?F>=Z:F<=0);const nl=R===null&&(T==="finished"||T==="running"&&ks);return u&&u(de.value),nl&&ue(),de},q=()=>{S&&S.stop(),S=void 0},At=()=>{T="idle",q(),h(),v(),D=A=null},ue=()=>{T="finished",f&&f(),q(),h()},Wt=()=>{if(p)return;S||(S=n(ut));const B=S.now();c&&c(),R!==null?D=B-R:(!D||T==="finished")&&(D=B),T==="finished"&&v(),A=D,R=null,T="running",S.start()};t&&Wt();const Cs={then(B,fe){return x.then(B,fe)},get time(){return St(F)},set time(B){B=Dt(B),F=B,R!==null||!S||m===0?R=B:D=S.now()-B/m},get duration(){const B=P.calculatedDuration===null?yi(P):P.calculatedDuration;return St(B)},get speed(){return m},set speed(B){B===m||!S||(m=B,Cs.time=St(F))},get state(){return T},play:Wt,pause:()=>{T="paused",R=F},stop:()=>{p=!0,T!=="idle"&&(T="idle",l&&l(),At())},cancel:()=>{A!==null&&ut(A),At()},complete:()=>{T="finished"},sample:B=>(D=0,ut(B))};return Cs}function _p(t){let e;return()=>(e===void 0&&(e=t()),e)}const $p=_p(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Np=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),Ke=10,Up=2e4,zp=(t,e)=>e.type==="spring"||t==="backgroundColor"||!Aa(e.ease);function Wp(t,e,{onUpdate:n,onComplete:r,...s}){if(!($p()&&Np.has(e)&&!s.repeatDelay&&s.repeatType!=="mirror"&&s.damping!==0&&s.type!=="inertia"))return!1;let i=!1,a,c,l=!1;const f=()=>{c=new Promise(y=>{a=y})};f();let{keyframes:u,duration:d=300,ease:m,times:p}=s;if(zp(e,s)){const y=pn({...s,repeat:0,delay:0});let w={done:!1,value:u[0]};const P=[];let E=0;for(;!w.done&&E<Up;)w=y.sample(E),P.push(w.value),E+=Ke;p=void 0,u=P,d=E-Ke,m="linear"}const h=tp(t.owner.current,e,u,{...s,duration:d,ease:m,times:p}),x=()=>{l=!1,h.cancel()},v=()=>{l=!0,L.update(x),a(),f()};return h.onfinish=()=>{l||(t.set(ep(u,s)),r&&r(),v())},{then(y,w){return c.then(y,w)},attachTimeline(y){return h.timeline=y,h.onfinish=null,U},get time(){return St(h.currentTime||0)},set time(y){h.currentTime=Dt(y)},get speed(){return h.playbackRate},set speed(y){h.playbackRate=y},get duration(){return St(d)},play:()=>{i||(h.play(),Et(x))},pause:()=>h.pause(),stop:()=>{if(i=!0,h.playState==="idle")return;const{currentTime:y}=h;if(y){const w=pn({...s,autoplay:!1});t.setWithVelocity(w.sample(y-Ke).value,w.sample(y).value,Ke)}v()},complete:()=>{l||h.finish()},cancel:v}}function Hp({keyframes:t,delay:e,onUpdate:n,onComplete:r}){const s=()=>(n&&n(t[t.length-1]),r&&r(),{time:0,speed:1,duration:0,play:U,pause:U,stop:U,then:o=>(o(),Promise.resolve()),cancel:U,complete:U});return e?pn({keyframes:[0,1],duration:0,delay:e,onComplete:s}):s()}const Kp={type:"spring",stiffness:500,damping:25,restSpeed:10},Gp=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),qp={type:"keyframes",duration:.8},Xp={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Yp=(t,{keyframes:e})=>e.length>2?qp:Ut.has(t)?t.startsWith("scale")?Gp(e[1]):Kp:Xp,xr=(t,e)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(jt.test(e)||e==="0")&&!e.startsWith("url(")),Jp=new Set(["brightness","contrast","saturate","opacity"]);function Zp(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[r]=n.match(Mn)||[];if(!r)return t;const s=n.replace(r,"");let o=Jp.has(e)?1:0;return r!==n&&(o*=100),e+"("+o+s+")"}const Qp=/([a-z-]*)\(.*?\)/g,br={...jt,getAnimatableNone:t=>{const e=t.match(Qp);return e?e.map(Zp).join(" "):t}},tm={...fa,color:Q,backgroundColor:Q,outlineColor:Q,fill:Q,stroke:Q,borderColor:Q,borderTopColor:Q,borderRightColor:Q,borderBottomColor:Q,borderLeftColor:Q,filter:br,WebkitFilter:br},ds=t=>tm[t];function Ja(t,e){let n=ds(t);return n!==br&&(n=jt),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const Za=t=>/^0[^.\s]+$/.test(t);function em(t){if(typeof t=="number")return t===0;if(t!==null)return t==="none"||t==="0"||Za(t)}function nm(t,e,n,r){const s=xr(e,n);let o;Array.isArray(n)?o=[...n]:o=[null,n];const i=r.from!==void 0?r.from:t.get();let a;const c=[];for(let l=0;l<o.length;l++)o[l]===null&&(o[l]=l===0?i:o[l-1]),em(o[l])&&c.push(l),typeof o[l]=="string"&&o[l]!=="none"&&o[l]!=="0"&&(a=o[l]);if(s&&c.length&&a)for(let l=0;l<c.length;l++){const f=c[l];o[f]=Ja(e,a)}return o}function rm({when:t,delay:e,delayChildren:n,staggerChildren:r,staggerDirection:s,repeat:o,repeatType:i,repeatDelay:a,from:c,elapsed:l,...f}){return!!Object.keys(f).length}function hs(t,e){return t[e]||t.default||t}const sm={skipAnimations:!1},ps=(t,e,n,r={})=>s=>{const o=hs(r,t)||{},i=o.delay||r.delay||0;let{elapsed:a=0}=r;a=a-Dt(i);const c=nm(e,t,n,o),l=c[0],f=c[c.length-1],u=xr(t,l),d=xr(t,f);let m={keyframes:c,velocity:e.getVelocity(),ease:"easeOut",...o,delay:-a,onUpdate:p=>{e.set(p),o.onUpdate&&o.onUpdate(p)},onComplete:()=>{s(),o.onComplete&&o.onComplete()}};if(rm(o)||(m={...m,...Yp(t,m)}),m.duration&&(m.duration=Dt(m.duration)),m.repeatDelay&&(m.repeatDelay=Dt(m.repeatDelay)),!u||!d||Qh.current||o.type===!1||sm.skipAnimations)return Hp(m);if(!r.isHandoff&&e.owner&&e.owner.current instanceof HTMLElement&&!e.owner.getProps().onUpdate){const p=Wp(e,t,m);if(p)return p}return pn(m)};function mn(t){return!!(et(t)&&t.add)}const Qa=t=>/^\-?\d*\.?\d+$/.test(t);function ms(t,e){t.indexOf(e)===-1&&t.push(e)}function gs(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class ys{constructor(){this.subscriptions=[]}add(e){return ms(this.subscriptions,e),()=>gs(this.subscriptions,e)}notify(e,n,r){const s=this.subscriptions.length;if(s)if(s===1)this.subscriptions[0](e,n,r);else for(let o=0;o<s;o++){const i=this.subscriptions[o];i&&i(e,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const im=t=>!isNaN(parseFloat(t));class om{constructor(e,n={}){this.version="10.18.0",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(r,s=!0)=>{this.prev=this.current,this.current=r;const{delta:o,timestamp:i}=J;this.lastUpdated!==i&&(this.timeDelta=o,this.lastUpdated=i,L.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),s&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>L.postRender(this.velocityCheck),this.velocityCheck=({timestamp:r})=>{r!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=im(this.current),this.owner=n.owner}onChange(e){return this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new ys);const r=this.events[e].add(n);return e==="change"?()=>{r(),L.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e,n=!0){!n||!this.passiveEffect?this.updateAndNotify(e,n):this.passiveEffect(e,this.updateAndNotify)}setWithVelocity(e,n,r){this.set(n),this.prev=e,this.timeDelta=r}jump(e){this.updateAndNotify(e),this.prev=e,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?qa(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(e){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=e(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function ie(t,e){return new om(t,e)}const tc=t=>e=>e.test(t),am={test:t=>t==="auto",parse:t=>t},ec=[zt,C,yt,Ot,hh,dh,am],me=t=>ec.find(tc(t)),cm=[...ec,Q,jt],lm=t=>cm.find(tc(t));function um(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,ie(n))}function fm(t,e){const n=Ln(t,e);let{transitionEnd:r={},transition:s={},...o}=n?t.makeTargetAnimatable(n,!1):{};o={...o,...r};for(const i in o){const a=Rh(o[i]);um(t,i,a)}}function dm(t,e,n){var r,s;const o=Object.keys(e).filter(a=>!t.hasValue(a)),i=o.length;if(i)for(let a=0;a<i;a++){const c=o[a],l=e[c];let f=null;Array.isArray(l)&&(f=l[0]),f===null&&(f=(s=(r=n[c])!==null&&r!==void 0?r:t.readValue(c))!==null&&s!==void 0?s:e[c]),f!=null&&(typeof f=="string"&&(Qa(f)||Za(f))?f=parseFloat(f):!lm(f)&&jt.test(l)&&(f=Ja(c,l)),t.addValue(c,ie(f,{owner:t})),n[c]===void 0&&(n[c]=f),f!==null&&t.setBaseTarget(c,f))}}function hm(t,e){return e?(e[t]||e.default||e).from:void 0}function pm(t,e,n){const r={};for(const s in t){const o=hm(s,e);if(o!==void 0)r[s]=o;else{const i=n.getValue(s);i&&(r[s]=i.get())}}return r}function mm({protectedKeys:t,needsAnimating:e},n){const r=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,r}function gm(t,e){const n=t.get();if(Array.isArray(e)){for(let r=0;r<e.length;r++)if(e[r]!==n)return!0}else return n!==e}function nc(t,e,{delay:n=0,transitionOverride:r,type:s}={}){let{transition:o=t.getDefaultTransition(),transitionEnd:i,...a}=t.makeTargetAnimatable(e);const c=t.getValue("willChange");r&&(o=r);const l=[],f=s&&t.animationState&&t.animationState.getState()[s];for(const u in a){const d=t.getValue(u),m=a[u];if(!d||m===void 0||f&&mm(f,u))continue;const p={delay:n,elapsed:0,...hs(o||{},u)};if(window.HandoffAppearAnimations){const v=t.getProps()[ra];if(v){const S=window.HandoffAppearAnimations(v,u,d,L);S!==null&&(p.elapsed=S,p.isHandoff=!0)}}let h=!p.isHandoff&&!gm(d,m);if(p.type==="spring"&&(d.getVelocity()||p.velocity)&&(h=!1),d.animation&&(h=!1),h)continue;d.start(ps(u,d,m,t.shouldReduceMotion&&Ut.has(u)?{type:!1}:p));const x=d.animation;mn(c)&&(c.add(u),x.then(()=>c.remove(u))),l.push(x)}return i&&Promise.all(l).then(()=>{i&&fm(t,i)}),l}function vr(t,e,n={}){const r=Ln(t,e,n.custom);let{transition:s=t.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(s=n.transitionOverride);const o=r?()=>Promise.all(nc(t,r,n)):()=>Promise.resolve(),i=t.variantChildren&&t.variantChildren.size?(c=0)=>{const{delayChildren:l=0,staggerChildren:f,staggerDirection:u}=s;return ym(t,e,l+c,f,u,n)}:()=>Promise.resolve(),{when:a}=s;if(a){const[c,l]=a==="beforeChildren"?[o,i]:[i,o];return c().then(()=>l())}else return Promise.all([o(),i(n.delay)])}function ym(t,e,n=0,r=0,s=1,o){const i=[],a=(t.variantChildren.size-1)*r,c=s===1?(l=0)=>l*r:(l=0)=>a-l*r;return Array.from(t.variantChildren).sort(xm).forEach((l,f)=>{l.notify("AnimationStart",e),i.push(vr(l,e,{...o,delay:n+c(f)}).then(()=>l.notify("AnimationComplete",e)))}),Promise.all(i)}function xm(t,e){return t.sortNodePosition(e)}function bm(t,e,n={}){t.notify("AnimationStart",e);let r;if(Array.isArray(e)){const s=e.map(o=>vr(t,o,n));r=Promise.all(s)}else if(typeof e=="string")r=vr(t,e,n);else{const s=typeof e=="function"?Ln(t,e,n.custom):e;r=Promise.all(nc(t,s,n))}return r.then(()=>t.notify("AnimationComplete",e))}const vm=[...Qr].reverse(),Sm=Qr.length;function wm(t){return e=>Promise.all(e.map(({animation:n,options:r})=>bm(t,n,r)))}function Pm(t){let e=wm(t);const n=Em();let r=!0;const s=(c,l)=>{const f=Ln(t,l);if(f){const{transition:u,transitionEnd:d,...m}=f;c={...c,...m,...d}}return c};function o(c){e=c(t)}function i(c,l){const f=t.getProps(),u=t.getVariantContext(!0)||{},d=[],m=new Set;let p={},h=1/0;for(let v=0;v<Sm;v++){const S=vm[v],y=n[S],w=f[S]!==void 0?f[S]:u[S],P=Re(w),E=S===l?y.isActive:null;E===!1&&(h=v);let T=w===u[S]&&w!==f[S]&&P;if(T&&r&&t.manuallyAnimateOnMount&&(T=!1),y.protectedKeys={...p},!y.isActive&&E===null||!w&&!y.prevProp||kn(w)||typeof w=="boolean")continue;let D=Tm(y.prevProp,w)||S===l&&y.isActive&&!T&&P||v>h&&P,A=!1;const W=Array.isArray(w)?w:[w];let _=W.reduce(s,{});E===!1&&(_={});const{prevResolvedValues:Z={}}=y,F={...Z,..._},ut=q=>{D=!0,m.has(q)&&(A=!0,m.delete(q)),y.needsAnimating[q]=!0};for(const q in F){const At=_[q],ue=Z[q];if(p.hasOwnProperty(q))continue;let Wt=!1;fn(At)&&fn(ue)?Wt=!Ea(At,ue):Wt=At!==ue,Wt?At!==void 0?ut(q):m.add(q):At!==void 0&&m.has(q)?ut(q):y.protectedKeys[q]=!0}y.prevProp=w,y.prevResolvedValues=_,y.isActive&&(p={...p,..._}),r&&t.blockInitialAnimation&&(D=!1),D&&(!T||A)&&d.push(...W.map(q=>({animation:q,options:{type:S,...c}})))}if(m.size){const v={};m.forEach(S=>{const y=t.getBaseTarget(S);y!==void 0&&(v[S]=y)}),d.push({animation:v})}let x=!!d.length;return r&&(f.initial===!1||f.initial===f.animate)&&!t.manuallyAnimateOnMount&&(x=!1),r=!1,x?e(d):Promise.resolve()}function a(c,l,f){var u;if(n[c].isActive===l)return Promise.resolve();(u=t.variantChildren)===null||u===void 0||u.forEach(m=>{var p;return(p=m.animationState)===null||p===void 0?void 0:p.setActive(c,l)}),n[c].isActive=l;const d=i(f,c);for(const m in n)n[m].protectedKeys={};return d}return{animateChanges:i,setActive:a,setAnimateFunction:o,getState:()=>n}}function Tm(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!Ea(e,t):!1}function It(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Em(){return{animate:It(!0),whileInView:It(),whileHover:It(),whileTap:It(),whileDrag:It(),whileFocus:It(),exit:It()}}class Cm extends Ft{constructor(e){super(e),e.animationState||(e.animationState=Pm(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();this.unmount(),kn(e)&&(this.unmount=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:n}=this.node.prevProps||{};e!==n&&this.updateAnimationControlsSubscription()}unmount(){}}let Am=0;class Rm extends Ft{constructor(){super(...arguments),this.id=Am++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n,custom:r}=this.node.presenceContext,{isPresent:s}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===s)return;const o=this.node.animationState.setActive("exit",!e,{custom:r??this.node.getProps().custom});n&&!e&&o.then(()=>n(this.id))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}const Om={animation:{Feature:Cm},exit:{Feature:Rm}},xi=(t,e)=>Math.abs(t-e);function km(t,e){const n=xi(t.x,e.x),r=xi(t.y,e.y);return Math.sqrt(n**2+r**2)}class rc{constructor(e,n,{transformPagePoint:r,contextWindow:s,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const u=nr(this.lastMoveEventInfo,this.history),d=this.startEvent!==null,m=km(u.offset,{x:0,y:0})>=3;if(!d&&!m)return;const{point:p}=u,{timestamp:h}=J;this.history.push({...p,timestamp:h});const{onStart:x,onMove:v}=this.handlers;d||(x&&x(this.lastMoveEvent,u),this.startEvent=this.lastMoveEvent),v&&v(this.lastMoveEvent,u)},this.handlePointerMove=(u,d)=>{this.lastMoveEvent=u,this.lastMoveEventInfo=er(d,this.transformPagePoint),L.update(this.updatePoint,!0)},this.handlePointerUp=(u,d)=>{this.end();const{onEnd:m,onSessionEnd:p,resumeAnimation:h}=this.handlers;if(this.dragSnapToOrigin&&h&&h(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const x=nr(u.type==="pointercancel"?this.lastMoveEventInfo:er(d,this.transformPagePoint),this.history);this.startEvent&&m&&m(u,x),p&&p(u,x)},!va(e))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=s||window;const i=Dn(e),a=er(i,this.transformPagePoint),{point:c}=a,{timestamp:l}=J;this.history=[{...c,timestamp:l}];const{onSessionStart:f}=n;f&&f(e,nr(a,this.history)),this.removeListeners=Mt(vt(this.contextWindow,"pointermove",this.handlePointerMove),vt(this.contextWindow,"pointerup",this.handlePointerUp),vt(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),Et(this.updatePoint)}}function er(t,e){return e?{point:e(t.point)}:t}function bi(t,e){return{x:t.x-e.x,y:t.y-e.y}}function nr({point:t},e){return{point:t,delta:bi(t,sc(e)),offset:bi(t,Vm(e)),velocity:Mm(e,.1)}}function Vm(t){return t[0]}function sc(t){return t[t.length-1]}function Mm(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,r=null;const s=sc(t);for(;n>=0&&(r=t[n],!(s.timestamp-r.timestamp>Dt(e)));)n--;if(!r)return{x:0,y:0};const o=St(s.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const i={x:(s.x-r.x)/o,y:(s.y-r.y)/o};return i.x===1/0&&(i.x=0),i.y===1/0&&(i.y=0),i}function st(t){return t.max-t.min}function Sr(t,e=0,n=.01){return Math.abs(t-e)<=n}function vi(t,e,n,r=.5){t.origin=r,t.originPoint=I(e.min,e.max,t.origin),t.scale=st(n)/st(e),(Sr(t.scale,1,1e-4)||isNaN(t.scale))&&(t.scale=1),t.translate=I(n.min,n.max,t.origin)-t.originPoint,(Sr(t.translate)||isNaN(t.translate))&&(t.translate=0)}function we(t,e,n,r){vi(t.x,e.x,n.x,r?r.originX:void 0),vi(t.y,e.y,n.y,r?r.originY:void 0)}function Si(t,e,n){t.min=n.min+e.min,t.max=t.min+st(e)}function Dm(t,e,n){Si(t.x,e.x,n.x),Si(t.y,e.y,n.y)}function wi(t,e,n){t.min=e.min-n.min,t.max=t.min+st(e)}function Pe(t,e,n){wi(t.x,e.x,n.x),wi(t.y,e.y,n.y)}function Lm(t,{min:e,max:n},r){return e!==void 0&&t<e?t=r?I(e,t,r.min):Math.max(t,e):n!==void 0&&t>n&&(t=r?I(n,t,r.max):Math.min(t,n)),t}function Pi(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 jm(t,{top:e,left:n,bottom:r,right:s}){return{x:Pi(t.x,n,s),y:Pi(t.y,e,r)}}function Ti(t,e){let n=e.min-t.min,r=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,r]=[r,n]),{min:n,max:r}}function Fm(t,e){return{x:Ti(t.x,e.x),y:Ti(t.y,e.y)}}function Bm(t,e){let n=.5;const r=st(t),s=st(e);return s>r?n=ke(e.min,e.max-r,t.min):r>s&&(n=ke(t.min,t.max-s,e.min)),Lt(0,1,n)}function Im(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 wr=.35;function _m(t=wr){return t===!1?t=0:t===!0&&(t=wr),{x:Ei(t,"left","right"),y:Ei(t,"top","bottom")}}function Ei(t,e,n){return{min:Ci(t,e),max:Ci(t,n)}}function Ci(t,e){return typeof t=="number"?t:t[e]||0}const Ai=()=>({translate:0,scale:1,origin:0,originPoint:0}),Zt=()=>({x:Ai(),y:Ai()}),Ri=()=>({min:0,max:0}),H=()=>({x:Ri(),y:Ri()});function ot(t){return[t("x"),t("y")]}function ic({top:t,left:e,right:n,bottom:r}){return{x:{min:e,max:n},y:{min:t,max:r}}}function $m({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function Nm(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),r=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function rr(t){return t===void 0||t===1}function Pr({scale:t,scaleX:e,scaleY:n}){return!rr(t)||!rr(e)||!rr(n)}function _t(t){return Pr(t)||oc(t)||t.z||t.rotate||t.rotateX||t.rotateY}function oc(t){return Oi(t.x)||Oi(t.y)}function Oi(t){return t&&t!=="0%"}function gn(t,e,n){const r=t-n,s=e*r;return n+s}function ki(t,e,n,r,s){return s!==void 0&&(t=gn(t,s,r)),gn(t,n,r)+e}function Tr(t,e=0,n=1,r,s){t.min=ki(t.min,e,n,r,s),t.max=ki(t.max,e,n,r,s)}function ac(t,{x:e,y:n}){Tr(t.x,e.translate,e.scale,e.originPoint),Tr(t.y,n.translate,n.scale,n.originPoint)}function Um(t,e,n,r=!1){const s=n.length;if(!s)return;e.x=e.y=1;let o,i;for(let a=0;a<s;a++){o=n[a],i=o.projectionDelta;const c=o.instance;c&&c.style&&c.style.display==="contents"||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&Qt(t,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),i&&(e.x*=i.x.scale,e.y*=i.y.scale,ac(t,i)),r&&_t(o.latestValues)&&Qt(t,o.latestValues))}e.x=Vi(e.x),e.y=Vi(e.y)}function Vi(t){return Number.isInteger(t)||t>1.0000000000001||t<.999999999999?t:1}function kt(t,e){t.min=t.min+e,t.max=t.max+e}function Mi(t,e,[n,r,s]){const o=e[s]!==void 0?e[s]:.5,i=I(t.min,t.max,o);Tr(t,e[n],e[r],i,e.scale)}const zm=["x","scaleX","originX"],Wm=["y","scaleY","originY"];function Qt(t,e){Mi(t.x,e,zm),Mi(t.y,e,Wm)}function cc(t,e){return ic(Nm(t.getBoundingClientRect(),e))}function Hm(t,e,n){const r=cc(t,n),{scroll:s}=e;return s&&(kt(r.x,s.offset.x),kt(r.y,s.offset.y)),r}const lc=({current:t})=>t?t.ownerDocument.defaultView:null,Km=new WeakMap;class Gm{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=H(),this.visualElement=e}start(e,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const s=f=>{const{dragSnapToOrigin:u}=this.getProps();u?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Dn(f,"page").point)},o=(f,u)=>{const{drag:d,dragPropagation:m,onDragStart:p}=this.getProps();if(d&&!m&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=wa(d),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),ot(x=>{let v=this.getAxisMotionValue(x).get()||0;if(yt.test(v)){const{projection:S}=this.visualElement;if(S&&S.layout){const y=S.layout.layoutBox[x];y&&(v=st(y)*(parseFloat(v)/100))}}this.originPoint[x]=v}),p&&L.update(()=>p(f,u),!1,!0);const{animationState:h}=this.visualElement;h&&h.setActive("whileDrag",!0)},i=(f,u)=>{const{dragPropagation:d,dragDirectionLock:m,onDirectionLock:p,onDrag:h}=this.getProps();if(!d&&!this.openGlobalLock)return;const{offset:x}=u;if(m&&this.currentDirection===null){this.currentDirection=qm(x),this.currentDirection!==null&&p&&p(this.currentDirection);return}this.updateAxis("x",u.point,x),this.updateAxis("y",u.point,x),this.visualElement.render(),h&&h(f,u)},a=(f,u)=>this.stop(f,u),c=()=>ot(f=>{var u;return this.getAnimationState(f)==="paused"&&((u=this.getAxisMotionValue(f).animation)===null||u===void 0?void 0:u.play())}),{dragSnapToOrigin:l}=this.getProps();this.panSession=new rc(e,{onSessionStart:s,onStart:o,onMove:i,onSessionEnd:a,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,contextWindow:lc(this.visualElement)})}stop(e,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:s}=n;this.startAnimation(s);const{onDragEnd:o}=this.getProps();o&&L.update(()=>o(e,n))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(e,n,r){const{drag:s}=this.getProps();if(!r||!Ge(e,s,this.currentDirection))return;const o=this.getAxisMotionValue(e);let i=this.originPoint[e]+r[e];this.constraints&&this.constraints[e]&&(i=Lm(i,this.constraints[e],this.elastic[e])),o.set(i)}resolveConstraints(){var e;const{dragConstraints:n,dragElastic:r}=this.getProps(),s=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(e=this.visualElement.projection)===null||e===void 0?void 0:e.layout,o=this.constraints;n&&Yt(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&s?this.constraints=jm(s.layoutBox,n):this.constraints=!1,this.elastic=_m(r),o!==this.constraints&&s&&this.constraints&&!this.hasMutatedConstraints&&ot(i=>{this.getAxisMotionValue(i)&&(this.constraints[i]=Im(s.layoutBox[i],this.constraints[i]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!Yt(e))return!1;const r=e.current,{projection:s}=this.visualElement;if(!s||!s.layout)return!1;const o=Hm(r,s.root,this.visualElement.getTransformPagePoint());let i=Fm(s.layout.layoutBox,o);if(n){const a=n($m(i));this.hasMutatedConstraints=!!a,a&&(i=ic(a))}return i}startAnimation(e){const{drag:n,dragMomentum:r,dragElastic:s,dragTransition:o,dragSnapToOrigin:i,onDragTransitionEnd:a}=this.getProps(),c=this.constraints||{},l=ot(f=>{if(!Ge(f,n,this.currentDirection))return;let u=c&&c[f]||{};i&&(u={min:0,max:0});const d=s?200:1e6,m=s?40:1e7,p={type:"inertia",velocity:r?e[f]:0,bounceStiffness:d,bounceDamping:m,timeConstant:750,restDelta:1,restSpeed:10,...o,...u};return this.startAxisValueAnimation(f,p)});return Promise.all(l).then(a)}startAxisValueAnimation(e,n){const r=this.getAxisMotionValue(e);return r.start(ps(e,r,0,n))}stopAnimation(){ot(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){ot(e=>{var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(e){var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(e){const n="_drag"+e.toUpperCase(),r=this.visualElement.getProps(),s=r[n];return s||this.visualElement.getValue(e,(r.initial?r.initial[e]:void 0)||0)}snapToCursor(e){ot(n=>{const{drag:r}=this.getProps();if(!Ge(n,r,this.currentDirection))return;const{projection:s}=this.visualElement,o=this.getAxisMotionValue(n);if(s&&s.layout){const{min:i,max:a}=s.layout.layoutBox[n];o.set(e[n]-I(i,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Yt(n)||!r||!this.constraints)return;this.stopAnimation();const s={x:0,y:0};ot(i=>{const a=this.getAxisMotionValue(i);if(a){const c=a.get();s[i]=Bm({min:c,max:c},this.constraints[i])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),ot(i=>{if(!Ge(i,e,null))return;const a=this.getAxisMotionValue(i),{min:c,max:l}=this.constraints[i];a.set(I(c,l,s[i]))})}addListeners(){if(!this.visualElement.current)return;Km.set(this.visualElement,this);const e=this.visualElement.current,n=vt(e,"pointerdown",c=>{const{drag:l,dragListener:f=!0}=this.getProps();l&&f&&this.start(c)}),r=()=>{const{dragConstraints:c}=this.getProps();Yt(c)&&(this.constraints=this.resolveRefConstraints())},{projection:s}=this.visualElement,o=s.addEventListener("measure",r);s&&!s.layout&&(s.root&&s.root.updateScroll(),s.updateLayout()),r();const i=bt(window,"resize",()=>this.scalePositionWithinConstraints()),a=s.addEventListener("didUpdate",({delta:c,hasLayoutChanged:l})=>{this.isDragging&&l&&(ot(f=>{const u=this.getAxisMotionValue(f);u&&(this.originPoint[f]+=c[f].translate,u.set(u.get()+c[f].translate))}),this.visualElement.render())});return()=>{i(),n(),o(),a&&a()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:s=!1,dragConstraints:o=!1,dragElastic:i=wr,dragMomentum:a=!0}=e;return{...e,drag:n,dragDirectionLock:r,dragPropagation:s,dragConstraints:o,dragElastic:i,dragMomentum:a}}}function Ge(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function qm(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class Xm extends Ft{constructor(e){super(e),this.removeGroupControls=U,this.removeListeners=U,this.controls=new Gm(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||U}unmount(){this.removeGroupControls(),this.removeListeners()}}const Di=t=>(e,n)=>{t&&L.update(()=>t(e,n))};class Ym extends Ft{constructor(){super(...arguments),this.removePointerDownListener=U}onPointerDown(e){this.session=new rc(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:lc(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:r,onPanEnd:s}=this.node.getProps();return{onSessionStart:Di(e),onStart:Di(n),onMove:r,onEnd:(o,i)=>{delete this.session,s&&L.update(()=>s(o,i))}}}mount(){this.removePointerDownListener=vt(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function Jm(){const t=g.reactExports.useContext(Jr);if(t===null)return[!0,null];const{isPresent:e,onExitComplete:n,register:r}=t,s=g.reactExports.useId();return g.reactExports.useEffect(()=>r(s),[]),!e&&n?[!1,()=>n&&n(s)]:[!0]}const tn={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Li(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const ge={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(C.test(t))t=parseFloat(t);else return t;const n=Li(t,e.target.x),r=Li(t,e.target.y);return`${n}% ${r}%`}},Zm={correct:(t,{treeScale:e,projectionDelta:n})=>{const r=t,s=jt.parse(t);if(s.length>5)return r;const o=jt.createTransformer(t),i=typeof s[0]!="number"?1:0,a=n.x.scale*e.x,c=n.y.scale*e.y;s[0+i]/=a,s[1+i]/=c;const l=I(a,c,.5);return typeof s[2+i]=="number"&&(s[2+i]/=l),typeof s[3+i]=="number"&&(s[3+i]/=l),o(s)}};class Qm extends g.React__default.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:r,layoutId:s}=this.props,{projection:o}=e;ih(tg),o&&(n.group&&n.group.add(o),r&&r.register&&s&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),tn.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:r,drag:s,isPresent:o}=this.props,i=r.projection;return i&&(i.isPresent=o,s||e.layoutDependency!==n||n===void 0?i.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?i.promote():i.relegate()||L.postRender(()=>{const a=i.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),queueMicrotask(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:s}=e;s&&(s.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(s),r&&r.deregister&&r.deregister(s))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function uc(t){const[e,n]=Jm(),r=g.reactExports.useContext(ia);return g.React__default.createElement(Qm,{...t,layoutGroup:r,switchLayoutGroup:g.reactExports.useContext(oa),isPresent:e,safeToRemove:n})}const tg={borderRadius:{...ge,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ge,borderTopRightRadius:ge,borderBottomLeftRadius:ge,borderBottomRightRadius:ge,boxShadow:Zm},fc=["TopLeft","TopRight","BottomLeft","BottomRight"],eg=fc.length,ji=t=>typeof t=="string"?parseFloat(t):t,Fi=t=>typeof t=="number"||C.test(t);function ng(t,e,n,r,s,o){s?(t.opacity=I(0,n.opacity!==void 0?n.opacity:1,rg(r)),t.opacityExit=I(e.opacity!==void 0?e.opacity:1,0,sg(r))):o&&(t.opacity=I(e.opacity!==void 0?e.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let i=0;i<eg;i++){const a=`border${fc[i]}Radius`;let c=Bi(e,a),l=Bi(n,a);if(c===void 0&&l===void 0)continue;c||(c=0),l||(l=0),c===0||l===0||Fi(c)===Fi(l)?(t[a]=Math.max(I(ji(c),ji(l),r),0),(yt.test(l)||yt.test(c))&&(t[a]+="%")):t[a]=l}(e.rotate||n.rotate)&&(t.rotate=I(e.rotate||0,n.rotate||0,r))}function Bi(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const rg=dc(0,.5,La),sg=dc(.5,.95,U);function dc(t,e,n){return r=>r<t?0:r>e?1:n(ke(t,e,r))}function Ii(t,e){t.min=e.min,t.max=e.max}function it(t,e){Ii(t.x,e.x),Ii(t.y,e.y)}function _i(t,e,n,r,s){return t-=e,t=gn(t,1/n,r),s!==void 0&&(t=gn(t,1/s,r)),t}function ig(t,e=0,n=1,r=.5,s,o=t,i=t){if(yt.test(e)&&(e=parseFloat(e),e=I(i.min,i.max,e/100)-i.min),typeof e!="number")return;let a=I(o.min,o.max,r);t===o&&(a-=e),t.min=_i(t.min,e,n,a,s),t.max=_i(t.max,e,n,a,s)}function $i(t,e,[n,r,s],o,i){ig(t,e[n],e[r],e[s],e.scale,o,i)}const og=["x","scaleX","originX"],ag=["y","scaleY","originY"];function Ni(t,e,n,r){$i(t.x,e,og,n?n.x:void 0,r?r.x:void 0),$i(t.y,e,ag,n?n.y:void 0,r?r.y:void 0)}function Ui(t){return t.translate===0&&t.scale===1}function hc(t){return Ui(t.x)&&Ui(t.y)}function cg(t,e){return t.x.min===e.x.min&&t.x.max===e.x.max&&t.y.min===e.y.min&&t.y.max===e.y.max}function pc(t,e){return Math.round(t.x.min)===Math.round(e.x.min)&&Math.round(t.x.max)===Math.round(e.x.max)&&Math.round(t.y.min)===Math.round(e.y.min)&&Math.round(t.y.max)===Math.round(e.y.max)}function zi(t){return st(t.x)/st(t.y)}class lg{constructor(){this.members=[]}add(e){ms(this.members,e),e.scheduleRender()}remove(e){if(gs(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 r;for(let s=n;s>=0;s--){const o=this.members[s];if(o.isPresent!==!1){r=o;break}}return r?(this.promote(r),!0):!1}promote(e,n){const r=this.lead;if(e!==r&&(this.prevLead=r,this.lead=e,e.show(),r)){r.instance&&r.scheduleRender(),e.scheduleRender(),e.resumeFrom=r,n&&(e.resumeFrom.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:s}=e.options;s===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:n,resumingFrom:r}=e;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Wi(t,e,n){let r="";const s=t.x.translate/e.x,o=t.y.translate/e.y;if((s||o)&&(r=`translate3d(${s}px, ${o}px, 0) `),(e.x!==1||e.y!==1)&&(r+=`scale(${1/e.x}, ${1/e.y}) `),n){const{rotate:c,rotateX:l,rotateY:f}=n;c&&(r+=`rotate(${c}deg) `),l&&(r+=`rotateX(${l}deg) `),f&&(r+=`rotateY(${f}deg) `)}const i=t.x.scale*e.x,a=t.y.scale*e.y;return(i!==1||a!==1)&&(r+=`scale(${i}, ${a})`),r||"none"}const ug=(t,e)=>t.depth-e.depth;class fg{constructor(){this.children=[],this.isDirty=!1}add(e){ms(this.children,e),this.isDirty=!0}remove(e){gs(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(ug),this.isDirty=!1,this.children.forEach(e)}}function dg(t,e){const n=performance.now(),r=({timestamp:s})=>{const o=s-n;o>=e&&(Et(r),t(o-e))};return L.read(r,!0),()=>Et(r)}function hg(t){window.MotionDebug&&window.MotionDebug.record(t)}function pg(t){return t instanceof SVGElement&&t.tagName!=="svg"}function mg(t,e,n){const r=et(t)?t:ie(t);return r.start(ps("",r,e,n)),r.animation}const Hi=["","X","Y","Z"],gg={visibility:"hidden"},Ki=1e3;let yg=0;const $t={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function mc({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:r,resetTransform:s}){return class{constructor(i={},a=e==null?void 0:e()){this.id=yg++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,$t.totalNodes=$t.resolvedTargetDeltas=$t.recalculatedProjection=0,this.nodes.forEach(vg),this.nodes.forEach(Eg),this.nodes.forEach(Cg),this.nodes.forEach(Sg),hg($t)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=i,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 fg)}addEventListener(i,a){return this.eventHandlers.has(i)||this.eventHandlers.set(i,new ys),this.eventHandlers.get(i).add(a)}notifyListeners(i,...a){const c=this.eventHandlers.get(i);c&&c.notify(...a)}hasListeners(i){return this.eventHandlers.has(i)}mount(i,a=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=pg(i),this.instance=i;const{layoutId:c,layout:l,visualElement:f}=this.options;if(f&&!f.current&&f.mount(i),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),a&&(l||c)&&(this.isLayoutDirty=!0),t){let u;const d=()=>this.root.updateBlockedByResize=!1;t(i,()=>{this.root.updateBlockedByResize=!0,u&&u(),u=dg(d,250),tn.hasAnimatedSinceResize&&(tn.hasAnimatedSinceResize=!1,this.nodes.forEach(qi))})}c&&this.root.registerSharedNode(c,this),this.options.animate!==!1&&f&&(c||l)&&this.addEventListener("didUpdate",({delta:u,hasLayoutChanged:d,hasRelativeTargetChanged:m,layout:p})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const h=this.options.transition||f.getDefaultTransition()||Vg,{onLayoutAnimationStart:x,onLayoutAnimationComplete:v}=f.getProps(),S=!this.targetLayout||!pc(this.targetLayout,p)||m,y=!d&&m;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||y||d&&(S||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(u,y);const w={...hs(h,"layout"),onPlay:x,onComplete:v};(f.shouldReduceMotion||this.options.layoutRoot)&&(w.delay=0,w.type=!1),this.startAnimation(w)}else d||qi(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=p})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const i=this.getStack();i&&i.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Et(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(Ag),this.animationId++)}getTransformTemplate(){const{visualElement:i}=this.options;return i&&i.getProps().transformTemplate}willUpdate(i=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let f=0;f<this.path.length;f++){const u=this.path[f];u.shouldResetTransform=!0,u.updateScroll("snapshot"),u.options.layoutRoot&&u.willUpdate(!1)}const{layoutId:a,layout:c}=this.options;if(a===void 0&&!c)return;const l=this.getTransformTemplate();this.prevTransformTemplateValue=l?l(this.latestValues,""):void 0,this.updateSnapshot(),i&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Gi);return}this.isUpdating||this.nodes.forEach(Pg),this.isUpdating=!1,this.nodes.forEach(Tg),this.nodes.forEach(xg),this.nodes.forEach(bg),this.clearAllSnapshots();const a=performance.now();J.delta=Lt(0,1e3/60,a-J.timestamp),J.timestamp=a,J.isProcessing=!0,Gn.update.process(J),Gn.preRender.process(J),Gn.render.process(J),J.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(wg),this.sharedNodes.forEach(Rg)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,L.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){L.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let c=0;c<this.path.length;c++)this.path[c].updateScroll();const i=this.layout;this.layout=this.measure(!1),this.layoutCorrected=H(),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,i?i.layoutBox:void 0)}updateScroll(i="measure"){let a=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===i&&(a=!1),a&&(this.scroll={animationId:this.root.animationId,phase:i,isRoot:r(this.instance),offset:n(this.instance)})}resetTransform(){if(!s)return;const i=this.isLayoutDirty||this.shouldResetTransform,a=this.projectionDelta&&!hc(this.projectionDelta),c=this.getTransformTemplate(),l=c?c(this.latestValues,""):void 0,f=l!==this.prevTransformTemplateValue;i&&(a||_t(this.latestValues)||f)&&(s(this.instance,l),this.shouldResetTransform=!1,this.scheduleRender())}measure(i=!0){const a=this.measurePageBox();let c=this.removeElementScroll(a);return i&&(c=this.removeTransform(c)),Mg(c),{animationId:this.root.animationId,measuredBox:a,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:i}=this.options;if(!i)return H();const a=i.measureViewportBox(),{scroll:c}=this.root;return c&&(kt(a.x,c.offset.x),kt(a.y,c.offset.y)),a}removeElementScroll(i){const a=H();it(a,i);for(let c=0;c<this.path.length;c++){const l=this.path[c],{scroll:f,options:u}=l;if(l!==this.root&&f&&u.layoutScroll){if(f.isRoot){it(a,i);const{scroll:d}=this.root;d&&(kt(a.x,-d.offset.x),kt(a.y,-d.offset.y))}kt(a.x,f.offset.x),kt(a.y,f.offset.y)}}return a}applyTransform(i,a=!1){const c=H();it(c,i);for(let l=0;l<this.path.length;l++){const f=this.path[l];!a&&f.options.layoutScroll&&f.scroll&&f!==f.root&&Qt(c,{x:-f.scroll.offset.x,y:-f.scroll.offset.y}),_t(f.latestValues)&&Qt(c,f.latestValues)}return _t(this.latestValues)&&Qt(c,this.latestValues),c}removeTransform(i){const a=H();it(a,i);for(let c=0;c<this.path.length;c++){const l=this.path[c];if(!l.instance||!_t(l.latestValues))continue;Pr(l.latestValues)&&l.updateSnapshot();const f=H(),u=l.measurePageBox();it(f,u),Ni(a,l.latestValues,l.snapshot?l.snapshot.layoutBox:void 0,f)}return _t(this.latestValues)&&Ni(a,this.latestValues),a}setTargetDelta(i){this.targetDelta=i,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(i){this.options={...this.options,...i,crossfade:i.crossfade!==void 0?i.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==J.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(i=!1){var a;const c=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=c.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=c.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=c.isSharedProjectionDirty);const l=!!this.resumingFrom||this!==c;if(!(i||l&&this.isSharedProjectionDirty||this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty||this.attemptToResolveRelativeTarget))return;const{layout:u,layoutId:d}=this.options;if(!(!this.layout||!(u||d))){if(this.resolvedRelativeTargetAt=J.timestamp,!this.targetDelta&&!this.relativeTarget){const m=this.getClosestProjectingParent();m&&m.layout&&this.animationProgress!==1?(this.relativeParent=m,this.forceRelativeParentToResolveTarget(),this.relativeTarget=H(),this.relativeTargetOrigin=H(),Pe(this.relativeTargetOrigin,this.layout.layoutBox,m.layout.layoutBox),it(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=H(),this.targetWithTransforms=H()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Dm(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):it(this.target,this.layout.layoutBox),ac(this.target,this.targetDelta)):it(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const m=this.getClosestProjectingParent();m&&!!m.resumingFrom==!!this.resumingFrom&&!m.options.layoutScroll&&m.target&&this.animationProgress!==1?(this.relativeParent=m,this.forceRelativeParentToResolveTarget(),this.relativeTarget=H(),this.relativeTargetOrigin=H(),Pe(this.relativeTargetOrigin,this.target,m.target),it(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}$t.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||Pr(this.parent.latestValues)||oc(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var i;const a=this.getLead(),c=!!this.resumingFrom||this!==a;let l=!0;if((this.isProjectionDirty||!((i=this.parent)===null||i===void 0)&&i.isProjectionDirty)&&(l=!1),c&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===J.timestamp&&(l=!1),l)return;const{layout:f,layoutId:u}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(f||u))return;it(this.layoutCorrected,this.layout.layoutBox);const d=this.treeScale.x,m=this.treeScale.y;Um(this.layoutCorrected,this.treeScale,this.path,c),a.layout&&!a.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(a.target=a.layout.layoutBox);const{target:p}=a;if(!p){this.projectionTransform&&(this.projectionDelta=Zt(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=Zt(),this.projectionDeltaWithTransform=Zt());const h=this.projectionTransform;we(this.projectionDelta,this.layoutCorrected,p,this.latestValues),this.projectionTransform=Wi(this.projectionDelta,this.treeScale),(this.projectionTransform!==h||this.treeScale.x!==d||this.treeScale.y!==m)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",p)),$t.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(i=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),i){const a=this.getStack();a&&a.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(i,a=!1){const c=this.snapshot,l=c?c.latestValues:{},f={...this.latestValues},u=Zt();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const d=H(),m=c?c.source:void 0,p=this.layout?this.layout.source:void 0,h=m!==p,x=this.getStack(),v=!x||x.members.length<=1,S=!!(h&&!v&&this.options.crossfade===!0&&!this.path.some(kg));this.animationProgress=0;let y;this.mixTargetDelta=w=>{const P=w/1e3;Xi(u.x,i.x,P),Xi(u.y,i.y,P),this.setTargetDelta(u),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Pe(d,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Og(this.relativeTarget,this.relativeTargetOrigin,d,P),y&&cg(this.relativeTarget,y)&&(this.isProjectionDirty=!1),y||(y=H()),it(y,this.relativeTarget)),h&&(this.animationValues=f,ng(f,l,this.latestValues,P,S,v)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=P},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(i){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Et(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=L.update(()=>{tn.hasAnimatedSinceResize=!0,this.currentAnimation=mg(0,Ki,{...i,onUpdate:a=>{this.mixTargetDelta(a),i.onUpdate&&i.onUpdate(a)},onComplete:()=>{i.onComplete&&i.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 i=this.getStack();i&&i.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Ki),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const i=this.getLead();let{targetWithTransforms:a,target:c,layout:l,latestValues:f}=i;if(!(!a||!c||!l)){if(this!==i&&this.layout&&l&&gc(this.options.animationType,this.layout.layoutBox,l.layoutBox)){c=this.target||H();const u=st(this.layout.layoutBox.x);c.x.min=i.target.x.min,c.x.max=c.x.min+u;const d=st(this.layout.layoutBox.y);c.y.min=i.target.y.min,c.y.max=c.y.min+d}it(a,c),Qt(a,f),we(this.projectionDeltaWithTransform,this.layoutCorrected,a,f)}}registerSharedNode(i,a){this.sharedNodes.has(i)||this.sharedNodes.set(i,new lg),this.sharedNodes.get(i).add(a);const l=a.options.initialPromotionConfig;a.promote({transition:l?l.transition:void 0,preserveFollowOpacity:l&&l.shouldPreserveFollowOpacity?l.shouldPreserveFollowOpacity(a):void 0})}isLead(){const i=this.getStack();return i?i.lead===this:!0}getLead(){var i;const{layoutId:a}=this.options;return a?((i=this.getStack())===null||i===void 0?void 0:i.lead)||this:this}getPrevLead(){var i;const{layoutId:a}=this.options;return a?(i=this.getStack())===null||i===void 0?void 0:i.prevLead:void 0}getStack(){const{layoutId:i}=this.options;if(i)return this.root.sharedNodes.get(i)}promote({needsReset:i,transition:a,preserveFollowOpacity:c}={}){const l=this.getStack();l&&l.promote(this,c),i&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const i=this.getStack();return i?i.relegate(this):!1}resetRotation(){const{visualElement:i}=this.options;if(!i)return;let a=!1;const{latestValues:c}=i;if((c.rotate||c.rotateX||c.rotateY||c.rotateZ)&&(a=!0),!a)return;const l={};for(let f=0;f<Hi.length;f++){const u="rotate"+Hi[f];c[u]&&(l[u]=c[u],i.setStaticValue(u,0))}i.render();for(const f in l)i.setStaticValue(f,l[f]);i.scheduleRender()}getProjectionStyles(i){var a,c;if(!this.instance||this.isSVG)return;if(!this.isVisible)return gg;const l={visibility:""},f=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,l.opacity="",l.pointerEvents=Qe(i==null?void 0:i.pointerEvents)||"",l.transform=f?f(this.latestValues,""):"none",l;const u=this.getLead();if(!this.projectionDelta||!this.layout||!u.target){const h={};return this.options.layoutId&&(h.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,h.pointerEvents=Qe(i==null?void 0:i.pointerEvents)||""),this.hasProjected&&!_t(this.latestValues)&&(h.transform=f?f({},""):"none",this.hasProjected=!1),h}const d=u.animationValues||u.latestValues;this.applyTransformsToTarget(),l.transform=Wi(this.projectionDeltaWithTransform,this.treeScale,d),f&&(l.transform=f(d,l.transform));const{x:m,y:p}=this.projectionDelta;l.transformOrigin=`${m.origin*100}% ${p.origin*100}% 0`,u.animationValues?l.opacity=u===this?(c=(a=d.opacity)!==null&&a!==void 0?a:this.latestValues.opacity)!==null&&c!==void 0?c:1:this.preserveOpacity?this.latestValues.opacity:d.opacityExit:l.opacity=u===this?d.opacity!==void 0?d.opacity:"":d.opacityExit!==void 0?d.opacityExit:0;for(const h in ln){if(d[h]===void 0)continue;const{correct:x,applyTo:v}=ln[h],S=l.transform==="none"?d[h]:x(d[h],u);if(v){const y=v.length;for(let w=0;w<y;w++)l[v[w]]=S}else l[h]=S}return this.options.layoutId&&(l.pointerEvents=u===this?Qe(i==null?void 0:i.pointerEvents)||"":"none"),l}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(i=>{var a;return(a=i.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(Gi),this.root.sharedNodes.clear()}}}function xg(t){t.updateLayout()}function bg(t){var e;const n=((e=t.resumeFrom)===null||e===void 0?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&n&&t.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:s}=t.layout,{animationType:o}=t.options,i=n.source!==t.layout.source;o==="size"?ot(u=>{const d=i?n.measuredBox[u]:n.layoutBox[u],m=st(d);d.min=r[u].min,d.max=d.min+m}):gc(o,n.layoutBox,r)&&ot(u=>{const d=i?n.measuredBox[u]:n.layoutBox[u],m=st(r[u]);d.max=d.min+m,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[u].max=t.relativeTarget[u].min+m)});const a=Zt();we(a,r,n.layoutBox);const c=Zt();i?we(c,t.applyTransform(s,!0),n.measuredBox):we(c,r,n.layoutBox);const l=!hc(a);let f=!1;if(!t.resumeFrom){const u=t.getClosestProjectingParent();if(u&&!u.resumeFrom){const{snapshot:d,layout:m}=u;if(d&&m){const p=H();Pe(p,n.layoutBox,d.layoutBox);const h=H();Pe(h,r,m.layoutBox),pc(p,h)||(f=!0),u.options.layoutRoot&&(t.relativeTarget=h,t.relativeTargetOrigin=p,t.relativeParent=u)}}}t.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:c,layoutDelta:a,hasLayoutChanged:l,hasRelativeTargetChanged:f})}else if(t.isLead()){const{onExitComplete:r}=t.options;r&&r()}t.options.transition=void 0}function vg(t){$t.totalNodes++,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 Sg(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function wg(t){t.clearSnapshot()}function Gi(t){t.clearMeasurements()}function Pg(t){t.isLayoutDirty=!1}function Tg(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function qi(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function Eg(t){t.resolveTargetDelta()}function Cg(t){t.calcProjection()}function Ag(t){t.resetRotation()}function Rg(t){t.removeLeadSnapshot()}function Xi(t,e,n){t.translate=I(e.translate,0,n),t.scale=I(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function Yi(t,e,n,r){t.min=I(e.min,n.min,r),t.max=I(e.max,n.max,r)}function Og(t,e,n,r){Yi(t.x,e.x,n.x,r),Yi(t.y,e.y,n.y,r)}function kg(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const Vg={duration:.45,ease:[.4,0,.1,1]},Ji=t=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(t),Zi=Ji("applewebkit/")&&!Ji("chrome/")?Math.round:U;function Qi(t){t.min=Zi(t.min),t.max=Zi(t.max)}function Mg(t){Qi(t.x),Qi(t.y)}function gc(t,e,n){return t==="position"||t==="preserve-aspect"&&!Sr(zi(e),zi(n),.2)}const Dg=mc({attachResizeListener:(t,e)=>bt(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),sr={current:void 0},yc=mc({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!sr.current){const t=new Dg({});t.mount(window),t.setOptions({layoutScroll:!0}),sr.current=t}return sr.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),Lg={pan:{Feature:Ym},drag:{Feature:Xm,ProjectionNode:yc,MeasureLayout:uc}},jg=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function Fg(t){const e=jg.exec(t);if(!e)return[,];const[,n,r]=e;return[n,r]}function Er(t,e,n=1){const[r,s]=Fg(t);if(!r)return;const o=window.getComputedStyle(e).getPropertyValue(r);if(o){const i=o.trim();return Qa(i)?parseFloat(i):i}else return pr(s)?Er(s,e,n+1):s}function Bg(t,{...e},n){const r=t.current;if(!(r instanceof Element))return{target:e,transitionEnd:n};n&&(n={...n}),t.values.forEach(s=>{const o=s.get();if(!pr(o))return;const i=Er(o,r);i&&s.set(i)});for(const s in e){const o=e[s];if(!pr(o))continue;const i=Er(o,r);i&&(e[s]=i,n||(n={}),n[s]===void 0&&(n[s]=o))}return{target:e,transitionEnd:n}}const Ig=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),xc=t=>Ig.has(t),_g=t=>Object.keys(t).some(xc),to=t=>t===zt||t===C,eo=(t,e)=>parseFloat(t.split(", ")[e]),no=(t,e)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const s=r.match(/^matrix3d\((.+)\)$/);if(s)return eo(s[1],e);{const o=r.match(/^matrix\((.+)\)$/);return o?eo(o[1],t):0}},$g=new Set(["x","y","z"]),Ng=je.filter(t=>!$g.has(t));function Ug(t){const e=[];return Ng.forEach(n=>{const r=t.getValue(n);r!==void 0&&(e.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),e.length&&t.render(),e}const oe={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:no(4,13),y:no(5,14)};oe.translateX=oe.x;oe.translateY=oe.y;const zg=(t,e,n)=>{const r=e.measureViewportBox(),s=e.current,o=getComputedStyle(s),{display:i}=o,a={};i==="none"&&e.setStaticValue("display",t.display||"block"),n.forEach(l=>{a[l]=oe[l](r,o)}),e.render();const c=e.measureViewportBox();return n.forEach(l=>{const f=e.getValue(l);f&&f.jump(a[l]),t[l]=oe[l](c,o)}),t},Wg=(t,e,n={},r={})=>{e={...e},r={...r};const s=Object.keys(e).filter(xc);let o=[],i=!1;const a=[];if(s.forEach(c=>{const l=t.getValue(c);if(!t.hasValue(c))return;let f=n[c],u=me(f);const d=e[c];let m;if(fn(d)){const p=d.length,h=d[0]===null?1:0;f=d[h],u=me(f);for(let x=h;x<p&&d[x]!==null;x++)m?cs(me(d[x])===m):m=me(d[x])}else m=me(d);if(u!==m)if(to(u)&&to(m)){const p=l.get();typeof p=="string"&&l.set(parseFloat(p)),typeof d=="string"?e[c]=parseFloat(d):Array.isArray(d)&&m===C&&(e[c]=d.map(parseFloat))}else u!=null&&u.transform&&(m!=null&&m.transform)&&(f===0||d===0)?f===0?l.set(m.transform(f)):e[c]=u.transform(d):(i||(o=Ug(t),i=!0),a.push(c),r[c]=r[c]!==void 0?r[c]:e[c],l.jump(d))}),a.length){const c=a.indexOf("height")>=0?window.pageYOffset:null,l=zg(e,t,a);return o.length&&o.forEach(([f,u])=>{t.getValue(f).set(u)}),t.render(),On&&c!==null&&window.scrollTo({top:c}),{target:l,transitionEnd:r}}else return{target:e,transitionEnd:r}};function Hg(t,e,n,r){return _g(e)?Wg(t,e,n,r):{target:e,transitionEnd:r}}const Kg=(t,e,n,r)=>{const s=Bg(t,e,r);return e=s.target,r=s.transitionEnd,Hg(t,e,n,r)},Cr={current:null},bc={current:!1};function Gg(){if(bc.current=!0,!!On)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>Cr.current=t.matches;t.addListener(e),e()}else Cr.current=!1}function qg(t,e,n){const{willChange:r}=e;for(const s in e){const o=e[s],i=n[s];if(et(o))t.addValue(s,o),mn(r)&&r.add(s);else if(et(i))t.addValue(s,ie(o,{owner:t})),mn(r)&&r.remove(s);else if(i!==o)if(t.hasValue(s)){const a=t.getValue(s);!a.hasAnimated&&a.set(o)}else{const a=t.getStaticValue(s);t.addValue(s,ie(a!==void 0?a:o,{owner:t}))}}for(const s in n)e[s]===void 0&&t.removeValue(s);return e}const ro=new WeakMap,vc=Object.keys(Oe),Xg=vc.length,so=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],Yg=ts.length;class Jg{constructor({parent:e,props:n,presenceContext:r,reducedMotionConfig:s,visualState:o},i={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,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.scheduleRender=()=>L.render(this.render,!1,!0);const{latestValues:a,renderState:c}=o;this.latestValues=a,this.baseTarget={...a},this.initialValues=n.initial?{...a}:{},this.renderState=c,this.parent=e,this.props=n,this.presenceContext=r,this.depth=e?e.depth+1:0,this.reducedMotionConfig=s,this.options=i,this.isControllingVariants=Vn(n),this.isVariantNode=sa(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:l,...f}=this.scrapeMotionValuesFromProps(n,{});for(const u in f){const d=f[u];a[u]!==void 0&&et(d)&&(d.set(a[u],!1),mn(l)&&l.add(u))}}scrapeMotionValuesFromProps(e,n){return{}}mount(e){this.current=e,ro.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,r)=>this.bindToMotionValue(r,n)),bc.current||Gg(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Cr.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){ro.delete(this.current),this.projection&&this.projection.unmount(),Et(this.notifyUpdate),Et(this.render),this.valueSubscriptions.forEach(e=>e()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features)this.features[e].unmount();this.current=null}bindToMotionValue(e,n){const r=Ut.has(e),s=n.on("change",i=>{this.latestValues[e]=i,this.props.onUpdate&&L.update(this.notifyUpdate,!1,!0),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,()=>{s(),o()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}loadFeatures({children:e,...n},r,s,o){let i,a;for(let c=0;c<Xg;c++){const l=vc[c],{isEnabled:f,Feature:u,ProjectionNode:d,MeasureLayout:m}=Oe[l];d&&(i=d),f(n)&&(!this.features[l]&&u&&(this.features[l]=new u(this)),m&&(a=m))}if((this.type==="html"||this.type==="svg")&&!this.projection&&i){this.projection=new i(this.latestValues,this.parent&&this.parent.projection);const{layoutId:c,layout:l,drag:f,dragConstraints:u,layoutScroll:d,layoutRoot:m}=n;this.projection.setOptions({layoutId:c,layout:l,alwaysMeasureLayout:!!f||u&&Yt(u),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:typeof l=="string"?l:"both",initialPromotionConfig:o,layoutScroll:d,layoutRoot:m})}return a}updateFeatures(){for(const e in this.features){const n=this.features[e];n.isMounted?n.update():(n.mount(),n.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):H()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}makeTargetAnimatable(e,n=!0){return this.makeTargetAnimatableFromInstance(e,this.props,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 r=0;r<so.length;r++){const s=so[r];this.propEventSubscriptions[s]&&(this.propEventSubscriptions[s](),delete this.propEventSubscriptions[s]);const o=e["on"+s];o&&(this.propEventSubscriptions[s]=this.on(s,o))}this.prevMotionValues=qg(this,this.scrapeMotionValuesFromProps(e,this.prevProps),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}getVariantContext(e=!1){if(e)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const r=this.parent?this.parent.getVariantContext()||{}:{};return this.props.initial!==void 0&&(r.initial=this.props.initial),r}const n={};for(let r=0;r<Yg;r++){const s=ts[r],o=this.props[s];(Re(o)||o===!1)&&(n[s]=o)}return n}addVariantChild(e){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(e),()=>n.variantChildren.delete(e)}addValue(e,n){n!==this.values.get(e)&&(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 r=this.values.get(e);return r===void 0&&n!==void 0&&(r=ie(n,{owner:this}),this.addValue(e,r)),r}readValue(e){var n;return this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:(n=this.getBaseTargetFromProps(this.props,e))!==null&&n!==void 0?n:this.readValueFromInstance(this.current,e,this.options)}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){var n;const{initial:r}=this.props,s=typeof r=="string"||typeof r=="object"?(n=as(this.props,r))===null||n===void 0?void 0:n[e]:void 0;if(r&&s!==void 0)return s;const o=this.getBaseTargetFromProps(this.props,e);return o!==void 0&&!et(o)?o:this.initialValues[e]!==void 0&&s===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new ys),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}}class Sc extends Jg{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:r}){delete n[e],delete r[e]}makeTargetAnimatableFromInstance({transition:e,transitionEnd:n,...r},{transformValues:s},o){let i=pm(r,e||{},this);if(s&&(n&&(n=s(n)),r&&(r=s(r)),i&&(i=s(i))),o){dm(this,r,i);const a=Kg(this,r,i,n);n=a.transitionEnd,r=a.target}return{transition:e,transitionEnd:n,...r}}}function Zg(t){return window.getComputedStyle(t)}class Qg extends Sc{constructor(){super(...arguments),this.type="html"}readValueFromInstance(e,n){if(Ut.has(n)){const r=ds(n);return r&&r.default||0}else{const r=Zg(e),s=(la(n)?r.getPropertyValue(n):r[n])||0;return typeof s=="string"?s.trim():s}}measureInstanceViewportBox(e,{transformPagePoint:n}){return cc(e,n)}build(e,n,r,s){ns(e,n,r,s.transformTemplate)}scrapeMotionValuesFromProps(e,n){return os(e,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;et(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(e,n,r,s){ma(e,n,r,s)}}class t0 extends Sc{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(Ut.has(n)){const r=ds(n);return r&&r.default||0}return n=ga.has(n)?n:Zr(n),e.getAttribute(n)}measureInstanceViewportBox(){return H()}scrapeMotionValuesFromProps(e,n){return xa(e,n)}build(e,n,r,s){ss(e,n,r,this.isSVGTag,s.transformTemplate)}renderInstance(e,n,r,s){ya(e,n,r,s)}mount(e){this.isSVGTag=is(e.tagName),super.mount(e)}}const e0=(t,e)=>es(t)?new t0(e,{enableHardwareAcceleration:!1}):new Qg(e,{enableHardwareAcceleration:!0}),n0={layout:{ProjectionNode:yc,MeasureLayout:uc}},r0={...Om,...Xh,...Lg,...n0},xs=rh((t,e)=>Fh(t,e,r0,e0));/**
|
|
8
8
|
* @remix-run/router v1.14.2
|
|
9
9
|
*
|
|
10
10
|
* Copyright (c) Remix Software Inc.
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* LICENSE.md file in the root directory of this source tree.
|
|
14
14
|
*
|
|
15
15
|
* @license MIT
|
|
16
|
-
*/function
|
|
16
|
+
*/function Ar(){return Ar=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Ar.apply(this,arguments)}var io;(function(t){t.Pop="POP",t.Push="PUSH",t.Replace="REPLACE"})(io||(io={}));function wt(t,e){if(t===!1||t===null||typeof t>"u")throw new Error(e)}function oo(t){let{pathname:e="/",search:n="",hash:r=""}=t;return n&&n!=="?"&&(e+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(e+=r.charAt(0)==="#"?r:"#"+r),e}function wc(t){let e={};if(t){let n=t.indexOf("#");n>=0&&(e.hash=t.substr(n),t=t.substr(0,n));let r=t.indexOf("?");r>=0&&(e.search=t.substr(r),t=t.substr(0,r)),t&&(e.pathname=t)}return e}var ao;(function(t){t.data="data",t.deferred="deferred",t.redirect="redirect",t.error="error"})(ao||(ao={}));function s0(t,e){if(e==="/")return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let n=e.endsWith("/")?e.length-1:e.length,r=t.charAt(n);return r&&r!=="/"?null:t.slice(n)||"/"}function i0(t,e){e===void 0&&(e="/");let{pathname:n,search:r="",hash:s=""}=typeof t=="string"?wc(t):t;return{pathname:n?n.startsWith("/")?n:o0(n,e):e,search:c0(r),hash:l0(s)}}function o0(t,e){let n=e.replace(/\/+$/,"").split("/");return t.split("/").forEach(s=>{s===".."?n.length>1&&n.pop():s!=="."&&n.push(s)}),n.length>1?n.join("/"):"/"}function ir(t,e,n,r){return"Cannot include a '"+t+"' character in a manually specified "+("`to."+e+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function a0(t){return t.filter((e,n)=>n===0||e.route.path&&e.route.path.length>0)}function Pc(t,e){let n=a0(t);return e?n.map((r,s)=>s===t.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function Tc(t,e,n,r){r===void 0&&(r=!1);let s;typeof t=="string"?s=wc(t):(s=Ar({},t),wt(!s.pathname||!s.pathname.includes("?"),ir("?","pathname","search",s)),wt(!s.pathname||!s.pathname.includes("#"),ir("#","pathname","hash",s)),wt(!s.search||!s.search.includes("#"),ir("#","search","hash",s)));let o=t===""||s.pathname==="",i=o?"/":s.pathname,a;if(i==null)a=n;else{let u=e.length-1;if(!r&&i.startsWith("..")){let d=i.split("/");for(;d[0]==="..";)d.shift(),u-=1;s.pathname=d.join("/")}a=u>=0?e[u]:"/"}let c=i0(s,a),l=i&&i!=="/"&&i.endsWith("/"),f=(o||i===".")&&n.endsWith("/");return!c.pathname.endsWith("/")&&(l||f)&&(c.pathname+="/"),c}const Ec=t=>t.join("/").replace(/\/\/+/g,"/"),c0=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,l0=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t,Cc=["post","put","patch","delete"];new Set(Cc);const u0=["get",...Cc];new Set(u0);/**
|
|
17
17
|
* React Router v6.21.3
|
|
18
18
|
*
|
|
19
19
|
* Copyright (c) Remix Software Inc.
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
* LICENSE.md file in the root directory of this source tree.
|
|
23
23
|
*
|
|
24
24
|
* @license MIT
|
|
25
|
-
*/function
|
|
25
|
+
*/function Rr(){return Rr=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Rr.apply(this,arguments)}const Ac=g.reactExports.createContext(null),_e=g.reactExports.createContext(null),Rc=g.reactExports.createContext(null),jn=g.reactExports.createContext({outlet:null,matches:[],isDataRoute:!1});function f0(t,e){let{relative:n}=e===void 0?{}:e;bs()||wt(!1);let{basename:r,navigator:s}=g.reactExports.useContext(_e),{hash:o,pathname:i,search:a}=kc(t,{relative:n}),c=i;return r!=="/"&&(c=i==="/"?r:Ec([r,i])),s.createHref({pathname:c,search:a,hash:o})}function bs(){return g.reactExports.useContext(Rc)!=null}function Fn(){return bs()||wt(!1),g.reactExports.useContext(Rc).location}function Oc(t){g.reactExports.useContext(_e).static||g.reactExports.useLayoutEffect(t)}function d0(){let{isDataRoute:t}=g.reactExports.useContext(jn);return t?y0():h0()}function h0(){bs()||wt(!1);let t=g.reactExports.useContext(Ac),{basename:e,future:n,navigator:r}=g.reactExports.useContext(_e),{matches:s}=g.reactExports.useContext(jn),{pathname:o}=Fn(),i=JSON.stringify(Pc(s,n.v7_relativeSplatPath)),a=g.reactExports.useRef(!1);return Oc(()=>{a.current=!0}),g.reactExports.useCallback(function(l,f){if(f===void 0&&(f={}),!a.current)return;if(typeof l=="number"){r.go(l);return}let u=Tc(l,JSON.parse(i),o,f.relative==="path");t==null&&e!=="/"&&(u.pathname=u.pathname==="/"?e:Ec([e,u.pathname])),(f.replace?r.replace:r.push)(u,f.state,f)},[e,r,i,o,t])}function kc(t,e){let{relative:n}=e===void 0?{}:e,{future:r}=g.reactExports.useContext(_e),{matches:s}=g.reactExports.useContext(jn),{pathname:o}=Fn(),i=JSON.stringify(Pc(s,r.v7_relativeSplatPath));return g.reactExports.useMemo(()=>Tc(t,JSON.parse(i),o,n==="path"),[t,i,o,n])}var Vc=function(t){return t.UseBlocker="useBlocker",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t}(Vc||{}),Mc=function(t){return t.UseBlocker="useBlocker",t.UseLoaderData="useLoaderData",t.UseActionData="useActionData",t.UseRouteError="useRouteError",t.UseNavigation="useNavigation",t.UseRouteLoaderData="useRouteLoaderData",t.UseMatches="useMatches",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t.UseRouteId="useRouteId",t}(Mc||{});function p0(t){let e=g.reactExports.useContext(Ac);return e||wt(!1),e}function m0(t){let e=g.reactExports.useContext(jn);return e||wt(!1),e}function g0(t){let e=m0(),n=e.matches[e.matches.length-1];return n.route.id||wt(!1),n.route.id}function y0(){let{router:t}=p0(Vc.UseNavigateStable),e=g0(Mc.UseNavigateStable),n=g.reactExports.useRef(!1);return Oc(()=>{n.current=!0}),g.reactExports.useCallback(function(s,o){o===void 0&&(o={}),n.current&&(typeof s=="number"?t.navigate(s):t.navigate(s,Rr({fromRouteId:e},o)))},[t,e])}new Promise(()=>{});/**
|
|
26
26
|
* React Router DOM v6.21.3
|
|
27
27
|
*
|
|
28
28
|
* Copyright (c) Remix Software Inc.
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
* LICENSE.md file in the root directory of this source tree.
|
|
32
32
|
*
|
|
33
33
|
* @license MIT
|
|
34
|
-
*/function Lr(){return Lr=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Lr.apply(this,arguments)}function Cy(t,e){if(t==null)return{};var n={},r=Object.keys(t),s,o;for(o=0;o<r.length;o++)s=r[o],!(e.indexOf(s)>=0)&&(n[s]=t[s]);return n}function Ay(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function Ry(t,e){return t.button===0&&(!e||e==="_self")&&!Ay(t)}const Oy=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],ky="startTransition",po=g.React[ky];function Vy(t){let{basename:e,children:n,future:r,window:s}=t,o=g.reactExports.useRef();o.current==null&&(o.current=ly({window:s,v5Compat:!0}));let i=o.current,[a,c]=g.reactExports.useState({action:i.action,location:i.location}),{v7_startTransition:l}=r||{},f=g.reactExports.useCallback(u=>{l&&po?po(()=>c(u)):c(u)},[c,l]);return g.reactExports.useLayoutEffect(()=>i.listen(f),[i,f]),g.reactExports.createElement(Ey,{basename:e,children:n,location:a.location,navigationType:a.action,navigator:i,future:r})}const My=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Dy=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ly=g.reactExports.forwardRef(function(e,n){let{onClick:r,relative:s,reloadDocument:o,replace:i,state:a,target:c,to:l,preventScrollReset:f,unstable_viewTransition:u}=e,d=Cy(e,Oy),{basename:m}=g.reactExports.useContext(ue),p,h=!1;if(typeof l=="string"&&Dy.test(l)&&(p=l,My))try{let x=new URL(window.location.href),w=l.startsWith("//")?new URL(x.protocol+l):new URL(l),P=Rc(w.pathname,m);w.origin===x.origin&&P!=null?l=P+w.search+w.hash:h=!0}catch{}let y=xy(l,{relative:s}),b=jy(l,{replace:i,state:a,target:c,preventScrollReset:f,relative:s,unstable_viewTransition:u});function v(x){r&&r(x),x.defaultPrevented||b(x)}return g.reactExports.createElement("a",Lr({},d,{href:p||y,onClick:h||o?r:v,ref:n,target:c}))});var mo;(function(t){t.UseScrollRestoration="useScrollRestoration",t.UseSubmit="useSubmit",t.UseSubmitFetcher="useSubmitFetcher",t.UseFetcher="useFetcher",t.useViewTransitionState="useViewTransitionState"})(mo||(mo={}));var go;(function(t){t.UseFetcher="useFetcher",t.UseFetchers="useFetchers",t.UseScrollRestoration="useScrollRestoration"})(go||(go={}));function jy(t,e){let{target:n,replace:r,state:s,preventScrollReset:o,relative:i,unstable_viewTransition:a}=e===void 0?{}:e,c=by(),l=Un(),f=jc(t,{relative:i});return g.reactExports.useCallback(u=>{if(Ry(u,n)){u.preventDefault();let d=r!==void 0?r:bn(l)===bn(f);c(t,{replace:d,state:s,preventScrollReset:o,relative:i,unstable_viewTransition:a})}},[l,c,f,r,s,n,t,o,i,a])}function yo(t){for(;t.startsWith("/");)t=t.slice(1);return t}function Ic(t,e,n=[]){for(const r of t){if(console.log(r.path,e,r.path===e),yo(r.path||"")===yo(e))return[...n,r];if(r.children){const s=Ic(r.children,e,[...n,r]);if(s)return s}}return null}function By(t){return g.jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"20",fill:"none",viewBox:"0 0 18 20",...t,children:g.jsxRuntimeExports.jsx("path",{fill:"#E01B00",fillRule:"evenodd",d:"M.179 2.875A2.375 2.375 0 012.554.5h3.393a1.018 1.018 0 010 2.036H2.554a.34.34 0 00-.34.339v14.25c0 .187.152.34.34.34h3.393a1.018 1.018 0 110 2.035H2.554a2.375 2.375 0 01-2.375-2.375V2.875zm14.167 6.107h-7.72a1.018 1.018 0 000 2.036h7.72l-2.673 2.673a1.018 1.018 0 101.44 1.44l4.41-4.411a1.018 1.018 0 000-1.44l-4.41-4.41a1.018 1.018 0 10-1.44 1.439l2.673 2.673z",clipRule:"evenodd"})})}function _c(t,e){return function(){return t.apply(e,arguments)}}const{toString:Fy}=Object.prototype,{getPrototypeOf:Es}=Object,zn=(t=>e=>{const n=Fy.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),bt=t=>(t=t.toLowerCase(),e=>zn(e)===t),Hn=t=>e=>typeof e===t,{isArray:fe}=Array,Le=Hn("undefined");function Iy(t){return t!==null&&!Le(t)&&t.constructor!==null&&!Le(t.constructor)&&ct(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const $c=bt("ArrayBuffer");function _y(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&$c(t.buffer),e}const $y=Hn("string"),ct=Hn("function"),Nc=Hn("number"),Wn=t=>t!==null&&typeof t=="object",Ny=t=>t===!0||t===!1,rn=t=>{if(zn(t)!=="object")return!1;const e=Es(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},Uy=bt("Date"),zy=bt("File"),Hy=bt("Blob"),Wy=bt("FileList"),Ky=t=>Wn(t)&&ct(t.pipe),Gy=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||ct(t.append)&&((e=zn(t))==="formdata"||e==="object"&&ct(t.toString)&&t.toString()==="[object FormData]"))},qy=bt("URLSearchParams"),Xy=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ue(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let r,s;if(typeof t!="object"&&(t=[t]),fe(t))for(r=0,s=t.length;r<s;r++)e.call(null,t[r],r,t);else{const o=n?Object.getOwnPropertyNames(t):Object.keys(t),i=o.length;let a;for(r=0;r<i;r++)a=o[r],e.call(null,t[a],a,t)}}function Uc(t,e){e=e.toLowerCase();const n=Object.keys(t);let r=n.length,s;for(;r-- >0;)if(s=n[r],e===s.toLowerCase())return s;return null}const zc=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),Hc=t=>!Le(t)&&t!==zc;function jr(){const{caseless:t}=Hc(this)&&this||{},e={},n=(r,s)=>{const o=t&&Uc(e,s)||s;rn(e[o])&&rn(r)?e[o]=jr(e[o],r):rn(r)?e[o]=jr({},r):fe(r)?e[o]=r.slice():e[o]=r};for(let r=0,s=arguments.length;r<s;r++)arguments[r]&&Ue(arguments[r],n);return e}const Yy=(t,e,n,{allOwnKeys:r}={})=>(Ue(e,(s,o)=>{n&&ct(s)?t[o]=_c(s,n):t[o]=s},{allOwnKeys:r}),t),Jy=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),Zy=(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},Qy=(t,e,n,r)=>{let s,o,i;const a={};if(e=e||{},t==null)return e;do{for(s=Object.getOwnPropertyNames(t),o=s.length;o-- >0;)i=s[o],(!r||r(i,t,e))&&!a[i]&&(e[i]=t[i],a[i]=!0);t=n!==!1&&Es(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},t0=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;const r=t.indexOf(e,n);return r!==-1&&r===n},e0=t=>{if(!t)return null;if(fe(t))return t;let e=t.length;if(!Nc(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},n0=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&Es(Uint8Array)),r0=(t,e)=>{const r=(t&&t[Symbol.iterator]).call(t);let s;for(;(s=r.next())&&!s.done;){const o=s.value;e.call(t,o[0],o[1])}},s0=(t,e)=>{let n;const r=[];for(;(n=t.exec(e))!==null;)r.push(n);return r},i0=bt("HTMLFormElement"),o0=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),xo=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),a0=bt("RegExp"),Wc=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};Ue(n,(s,o)=>{let i;(i=e(s,o,t))!==!1&&(r[o]=i||s)}),Object.defineProperties(t,r)},c0=t=>{Wc(t,(e,n)=>{if(ct(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=t[n];if(ct(r)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},l0=(t,e)=>{const n={},r=s=>{s.forEach(o=>{n[o]=!0})};return fe(t)?r(t):r(String(t).split(e)),n},u0=()=>{},f0=(t,e)=>(t=+t,Number.isFinite(t)?t:e),dr="abcdefghijklmnopqrstuvwxyz",bo="0123456789",Kc={DIGIT:bo,ALPHA:dr,ALPHA_DIGIT:dr+dr.toUpperCase()+bo},d0=(t=16,e=Kc.ALPHA_DIGIT)=>{let n="";const{length:r}=e;for(;t--;)n+=e[Math.random()*r|0];return n};function h0(t){return!!(t&&ct(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const p0=t=>{const e=new Array(10),n=(r,s)=>{if(Wn(r)){if(e.indexOf(r)>=0)return;if(!("toJSON"in r)){e[s]=r;const o=fe(r)?[]:{};return Ue(r,(i,a)=>{const c=n(i,s+1);!Le(c)&&(o[a]=c)}),e[s]=void 0,o}}return r};return n(t,0)},m0=bt("AsyncFunction"),g0=t=>t&&(Wn(t)||ct(t))&&ct(t.then)&&ct(t.catch),S={isArray:fe,isArrayBuffer:$c,isBuffer:Iy,isFormData:Gy,isArrayBufferView:_y,isString:$y,isNumber:Nc,isBoolean:Ny,isObject:Wn,isPlainObject:rn,isUndefined:Le,isDate:Uy,isFile:zy,isBlob:Hy,isRegExp:a0,isFunction:ct,isStream:Ky,isURLSearchParams:qy,isTypedArray:n0,isFileList:Wy,forEach:Ue,merge:jr,extend:Yy,trim:Xy,stripBOM:Jy,inherits:Zy,toFlatObject:Qy,kindOf:zn,kindOfTest:bt,endsWith:t0,toArray:e0,forEachEntry:r0,matchAll:s0,isHTMLForm:i0,hasOwnProperty:xo,hasOwnProp:xo,reduceDescriptors:Wc,freezeMethods:c0,toObjectSet:l0,toCamelCase:o0,noop:u0,toFiniteNumber:f0,findKey:Uc,global:zc,isContextDefined:Hc,ALPHABET:Kc,generateString:d0,isSpecCompliantForm:h0,toJSONObject:p0,isAsyncFn:m0,isThenable:g0};function k(t,e,n,r,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),r&&(this.request=r),s&&(this.response=s)}S.inherits(k,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:S.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Gc=k.prototype,qc={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{qc[t]={value:t}});Object.defineProperties(k,qc);Object.defineProperty(Gc,"isAxiosError",{value:!0});k.from=(t,e,n,r,s,o)=>{const i=Object.create(Gc);return S.toFlatObject(t,i,function(c){return c!==Error.prototype},a=>a!=="isAxiosError"),k.call(i,t.message,e,n,r,s),i.cause=t,i.name=t.name,o&&Object.assign(i,o),i};const y0=null;function Br(t){return S.isPlainObject(t)||S.isArray(t)}function Xc(t){return S.endsWith(t,"[]")?t.slice(0,-2):t}function vo(t,e,n){return t?t.concat(e).map(function(s,o){return s=Xc(s),!n&&o?"["+s+"]":s}).join(n?".":""):e}function x0(t){return S.isArray(t)&&!t.some(Br)}const b0=S.toFlatObject(S,{},null,function(e){return/^is[A-Z]/.test(e)});function Kn(t,e,n){if(!S.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=S.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(h,y){return!S.isUndefined(y[h])});const r=n.metaTokens,s=n.visitor||f,o=n.dots,i=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&S.isSpecCompliantForm(e);if(!S.isFunction(s))throw new TypeError("visitor must be a function");function l(p){if(p===null)return"";if(S.isDate(p))return p.toISOString();if(!c&&S.isBlob(p))throw new k("Blob is not supported. Use a Buffer instead.");return S.isArrayBuffer(p)||S.isTypedArray(p)?c&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function f(p,h,y){let b=p;if(p&&!y&&typeof p=="object"){if(S.endsWith(h,"{}"))h=r?h:h.slice(0,-2),p=JSON.stringify(p);else if(S.isArray(p)&&x0(p)||(S.isFileList(p)||S.endsWith(h,"[]"))&&(b=S.toArray(p)))return h=Xc(h),b.forEach(function(x,w){!(S.isUndefined(x)||x===null)&&e.append(i===!0?vo([h],w,o):i===null?h:h+"[]",l(x))}),!1}return Br(p)?!0:(e.append(vo(y,h,o),l(p)),!1)}const u=[],d=Object.assign(b0,{defaultVisitor:f,convertValue:l,isVisitable:Br});function m(p,h){if(!S.isUndefined(p)){if(u.indexOf(p)!==-1)throw Error("Circular reference detected in "+h.join("."));u.push(p),S.forEach(p,function(b,v){(!(S.isUndefined(b)||b===null)&&s.call(e,b,S.isString(v)?v.trim():v,h,d))===!0&&m(b,h?h.concat(v):[v])}),u.pop()}}if(!S.isObject(t))throw new TypeError("data must be an object");return m(t),e}function So(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(r){return e[r]})}function Cs(t,e){this._pairs=[],t&&Kn(t,this,e)}const Yc=Cs.prototype;Yc.append=function(e,n){this._pairs.push([e,n])};Yc.toString=function(e){const n=e?function(r){return e.call(this,r,So)}:So;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function v0(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Jc(t,e,n){if(!e)return t;const r=n&&n.encode||v0,s=n&&n.serialize;let o;if(s?o=s(e,n):o=S.isURLSearchParams(e)?e.toString():new Cs(e,n).toString(r),o){const i=t.indexOf("#");i!==-1&&(t=t.slice(0,i)),t+=(t.indexOf("?")===-1?"?":"&")+o}return t}class S0{constructor(){this.handlers=[]}use(e,n,r){return this.handlers.push({fulfilled:e,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){S.forEach(this.handlers,function(r){r!==null&&e(r)})}}const wo=S0,Zc={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},w0=typeof URLSearchParams<"u"?URLSearchParams:Cs,P0=typeof FormData<"u"?FormData:null,T0=typeof Blob<"u"?Blob:null,E0={isBrowser:!0,classes:{URLSearchParams:w0,FormData:P0,Blob:T0},protocols:["http","https","file","blob","url","data"]},Qc=typeof window<"u"&&typeof document<"u",C0=(t=>Qc&&["ReactNative","NativeScript","NS"].indexOf(t)<0)(typeof navigator<"u"&&navigator.product),A0=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),R0=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Qc,hasStandardBrowserEnv:C0,hasStandardBrowserWebWorkerEnv:A0},Symbol.toStringTag,{value:"Module"})),mt={...R0,...E0};function O0(t,e){return Kn(t,new mt.classes.URLSearchParams,Object.assign({visitor:function(n,r,s,o){return mt.isNode&&S.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},e))}function k0(t){return S.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function V0(t){const e={},n=Object.keys(t);let r;const s=n.length;let o;for(r=0;r<s;r++)o=n[r],e[o]=t[o];return e}function tl(t){function e(n,r,s,o){let i=n[o++];if(i==="__proto__")return!0;const a=Number.isFinite(+i),c=o>=n.length;return i=!i&&S.isArray(s)?s.length:i,c?(S.hasOwnProp(s,i)?s[i]=[s[i],r]:s[i]=r,!a):((!s[i]||!S.isObject(s[i]))&&(s[i]=[]),e(n,r,s[i],o)&&S.isArray(s[i])&&(s[i]=V0(s[i])),!a)}if(S.isFormData(t)&&S.isFunction(t.entries)){const n={};return S.forEachEntry(t,(r,s)=>{e(k0(r),s,n,0)}),n}return null}function M0(t,e,n){if(S.isString(t))try{return(e||JSON.parse)(t),S.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(t)}const As={transitional:Zc,adapter:["xhr","http"],transformRequest:[function(e,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,o=S.isObject(e);if(o&&S.isHTMLForm(e)&&(e=new FormData(e)),S.isFormData(e))return s&&s?JSON.stringify(tl(e)):e;if(S.isArrayBuffer(e)||S.isBuffer(e)||S.isStream(e)||S.isFile(e)||S.isBlob(e))return e;if(S.isArrayBufferView(e))return e.buffer;if(S.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return O0(e,this.formSerializer).toString();if((a=S.isFileList(e))||r.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return Kn(a?{"files[]":e}:e,c&&new c,this.formSerializer)}}return o||s?(n.setContentType("application/json",!1),M0(e)):e}],transformResponse:[function(e){const n=this.transitional||As.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(e&&S.isString(e)&&(r&&!this.responseType||s)){const i=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(e)}catch(a){if(i)throw a.name==="SyntaxError"?k.from(a,k.ERR_BAD_RESPONSE,this,null,this.response):a}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:mt.classes.FormData,Blob:mt.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};S.forEach(["delete","get","head","post","put","patch"],t=>{As.headers[t]={}});const Rs=As,D0=S.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),L0=t=>{const e={};let n,r,s;return t&&t.split(`
|
|
35
|
-
`).forEach(function(i){s=i.indexOf(":"),n=i.substring(0,s).trim().toLowerCase(),r=i.substring(s+1).trim(),!(!n||e[n]&&
|
|
36
|
-
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...n){const r=new this(e);return n.forEach(s=>r.set(s)),r}static accessor(e){const r=(this[
|
|
37
|
-
`+o.map(
|
|
38
|
-
`):" "+Eo(o[0]):"as no adapter specified";throw new k("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return r},adapters:Fr};function mr(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new ze(null,t)}function Co(t){return mr(t),t.headers=Pt.from(t.headers),t.data=pr.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),rl.getAdapter(t.adapter||Rs.adapter)(t).then(function(r){return mr(t),r.data=pr.call(t,t.transformResponse,r),r.headers=Pt.from(r.headers),r},function(r){return el(r)||(mr(t),r&&r.response&&(r.response.data=pr.call(t,t.transformResponse,r.response),r.response.headers=Pt.from(r.response.headers))),Promise.reject(r)})}const Ao=t=>t instanceof Pt?t.toJSON():t;function ce(t,e){e=e||{};const n={};function r(l,f,u){return S.isPlainObject(l)&&S.isPlainObject(f)?S.merge.call({caseless:u},l,f):S.isPlainObject(f)?S.merge({},f):S.isArray(f)?f.slice():f}function s(l,f,u){if(S.isUndefined(f)){if(!S.isUndefined(l))return r(void 0,l,u)}else return r(l,f,u)}function o(l,f){if(!S.isUndefined(f))return r(void 0,f)}function i(l,f){if(S.isUndefined(f)){if(!S.isUndefined(l))return r(void 0,l)}else return r(void 0,f)}function a(l,f,u){if(u in e)return r(l,f);if(u in t)return r(void 0,l)}const c={url:o,method:o,data:o,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:a,headers:(l,f)=>s(Ao(l),Ao(f),!0)};return S.forEach(Object.keys(Object.assign({},t,e)),function(f){const u=c[f]||s,d=u(t[f],e[f],f);S.isUndefined(d)&&u!==a||(n[f]=d)}),n}const sl="1.6.5",Os={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{Os[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}});const Ro={};Os.transitional=function(e,n,r){function s(o,i){return"[Axios v"+sl+"] Transitional option '"+o+"'"+i+(r?". "+r:"")}return(o,i,a)=>{if(e===!1)throw new k(s(i," has been removed"+(n?" in "+n:"")),k.ERR_DEPRECATED);return n&&!Ro[i]&&(Ro[i]=!0,console.warn(s(i," has been deprecated since v"+n+" and will be removed in the near future"))),e?e(o,i,a):!0}};function X0(t,e,n){if(typeof t!="object")throw new k("options must be an object",k.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let s=r.length;for(;s-- >0;){const o=r[s],i=e[o];if(i){const a=t[o],c=a===void 0||i(a,o,t);if(c!==!0)throw new k("option "+o+" must be "+c,k.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new k("Unknown option "+o,k.ERR_BAD_OPTION)}}const Ir={assertOptions:X0,validators:Os},Rt=Ir.validators;class Sn{constructor(e){this.defaults=e,this.interceptors={request:new wo,response:new wo}}request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=ce(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:o}=n;r!==void 0&&Ir.assertOptions(r,{silentJSONParsing:Rt.transitional(Rt.boolean),forcedJSONParsing:Rt.transitional(Rt.boolean),clarifyTimeoutError:Rt.transitional(Rt.boolean)},!1),s!=null&&(S.isFunction(s)?n.paramsSerializer={serialize:s}:Ir.assertOptions(s,{encode:Rt.function,serialize:Rt.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=o&&S.merge(o.common,o[n.method]);o&&S.forEach(["delete","get","head","post","put","patch","common"],p=>{delete o[p]}),n.headers=Pt.concat(i,o);const a=[];let c=!0;this.interceptors.request.forEach(function(h){typeof h.runWhen=="function"&&h.runWhen(n)===!1||(c=c&&h.synchronous,a.unshift(h.fulfilled,h.rejected))});const l=[];this.interceptors.response.forEach(function(h){l.push(h.fulfilled,h.rejected)});let f,u=0,d;if(!c){const p=[Co.bind(this),void 0];for(p.unshift.apply(p,a),p.push.apply(p,l),d=p.length,f=Promise.resolve(n);u<d;)f=f.then(p[u++],p[u++]);return f}d=a.length;let m=n;for(u=0;u<d;){const p=a[u++],h=a[u++];try{m=p(m)}catch(y){h.call(this,y);break}}try{f=Co.call(this,m)}catch(p){return Promise.reject(p)}for(u=0,d=l.length;u<d;)f=f.then(l[u++],l[u++]);return f}getUri(e){e=ce(this.defaults,e);const n=nl(e.baseURL,e.url);return Jc(n,e.params,e.paramsSerializer)}}S.forEach(["delete","get","head","options"],function(e){Sn.prototype[e]=function(n,r){return this.request(ce(r||{},{method:e,url:n,data:(r||{}).data}))}});S.forEach(["post","put","patch"],function(e){function n(r){return function(o,i,a){return this.request(ce(a||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:i}))}}Sn.prototype[e]=n(),Sn.prototype[e+"Form"]=n(!0)});const on=Sn;class ks{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(s=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](s);r._listeners=null}),this.promise.then=s=>{let o;const i=new Promise(a=>{r.subscribe(a),o=a}).then(s);return i.cancel=function(){r.unsubscribe(o)},i},e(function(o,i,a){r.reason||(r.reason=new ze(o,i,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}static source(){let e;return{token:new ks(function(s){e=s}),cancel:e}}}const Y0=ks;function J0(t){return function(n){return t.apply(null,n)}}function Z0(t){return S.isObject(t)&&t.isAxiosError===!0}const _r={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(_r).forEach(([t,e])=>{_r[e]=t});const Q0=_r;function il(t){const e=new on(t),n=_c(on.prototype.request,e);return S.extend(n,on.prototype,e,{allOwnKeys:!0}),S.extend(n,e,null,{allOwnKeys:!0}),n.create=function(s){return il(ce(t,s))},n}const G=il(Rs);G.Axios=on;G.CanceledError=ze;G.CancelToken=Y0;G.isCancel=el;G.VERSION=sl;G.toFormData=Kn;G.AxiosError=k;G.Cancel=G.CanceledError;G.all=function(e){return Promise.all(e)};G.spread=J0;G.isAxiosError=Z0;G.mergeConfig=ce;G.AxiosHeaders=Pt;G.formToJSON=t=>tl(S.isHTMLForm(t)?new FormData(t):t);G.getAdapter=rl.getAdapter;G.HttpStatusCode=Q0;G.default=G;const tx=G;function ex(t){return g.jsxRuntimeExports.jsx(Vy,{children:g.jsxRuntimeExports.jsx(nx,{...t})})}function nx(t){const{baseUrl:e,menuPath:n}=t;console.log("baseUrl:",e);const r=Un();console.log("location:",r);const[s,o]=g.reactExports.useState([]),[i,a]=g.reactExports.useState(!0),c=(Ic(s,r.pathname)||[]).filter(v=>v.parentKey!==0),[l,f]=g.reactExports.useState({}),u=v=>{f({...l,[v]:!l[v]})};console.log("matchPaths:",c);const d=()=>{a(!i)};g.reactExports.useEffect(()=>{(async()=>{const x=e+(n||"/global-menu-config/api/v1/menu-items"),w=await tx.get(x,{withCredentials:!0}).then(E=>E.data),P={};w.forEach(E=>{E.children&&(P[E.id]=!0)}),f(P),o(w.map(E=>({...E,parentKey:0})))})()},[e,n]);const[m,p]=g.reactExports.useState(!1),h=()=>{window.location.href=`${e}/authentication/logout?callbackUrl=${window.location.origin}`},y=i?"collapsed":"expanded",b=v=>`${v} ${y}`;return g.jsxRuntimeExports.jsxs(Ps.nav,{initial:{width:"18rem"},animate:{width:i?"5rem":"18rem"},transition:{duration:.3},className:b("side-bar"),children:[g.jsxRuntimeExports.jsx("div",{className:"h-[8px]"}),g.jsxRuntimeExports.jsx("div",{className:b("side-bar__toggle-btn"),children:g.jsxRuntimeExports.jsx("button",{className:"icon-btn",onClick:d,children:i?g.jsxRuntimeExports.jsx(oa,{}):g.jsxRuntimeExports.jsx(ia,{})})}),g.jsxRuntimeExports.jsx("div",{id:"menu-items",className:"mt-6 overflow-y-auto overflow-x-hidden flex-1",children:s.map(v=>{const x=w=>c.some(P=>P.id===w);return g.jsxRuntimeExports.jsx(ol,{item:v,isActive:x,isCollapsed:i,expanded:w=>l[w],toggleExpand:u},v.id)})}),g.jsxRuntimeExports.jsxs("div",{className:"w-full mt-10 mb-10",children:[g.jsxRuntimeExports.jsxs("button",{className:b("side-bar__logout-btn"),onClick:()=>p(!0),children:[g.jsxRuntimeExports.jsx(By,{}),g.jsxRuntimeExports.jsx("span",{className:`ml-3 ${i?"hidden":""}`,children:"Logout"})]}),g.jsxRuntimeExports.jsx(g.LogoutConfirmModal,{isOpen:m,onClose:()=>p(!1),onConfirm:h})]})]})}function ol({item:t,level:e=0,...n}){var y;const{isActive:r,isCollapsed:s,expanded:o,toggleExpand:i}=n,a=`level-${e}`,c=s?"collapsed":"expanded",l=r(t.id)?"active":"",f=(b,v=a)=>`${b} ${v} ${c} ${l}`,u=!!((y=t.children)!=null&&y.length),[d,m]=g.reactExports.useState(!1),p=g.reactExports.useRef();function h(b){var P;const{level:v,hovered:x,parentRef:w}=b;return!u||s&&v>=2&&!x?null:g.jsxRuntimeExports.jsx(rx,{parentRef:w,onlyChild:!s||s&&v<2,children:g.jsxRuntimeExports.jsx(Ps.div,{className:f("menu-item__dropdown",`level-${v}`),initial:{height:s?"auto":0},animate:{height:s||o(t.id)?"auto":0},transition:{duration:.2},children:(P=t.children)==null?void 0:P.map(E=>g.reactExports.createElement(ol,{...n,key:E.id,item:E,level:v}))},+s)})}return g.jsxRuntimeExports.jsxs("div",{ref:p,className:f("menu-item__wrapper"),onMouseEnter:()=>s&&m(!0),onMouseLeave:()=>s&&m(!1),children:[g.jsxRuntimeExports.jsxs(Ly,{to:u?"#":t.path||"#",style:{paddingLeft:`${s?"0.5rem":`${e*1}rem`}`},className:f("menu-item__link"),onClick:()=>{u&&!s&&i(t.id)},children:[e!==0&&g.jsxRuntimeExports.jsx("div",{className:f("menu-item__icon"),children:g.jsxRuntimeExports.jsx("img",{src:t.icon||"/",alt:" ",style:{height:24,maxHeight:24}})}),g.jsxRuntimeExports.jsxs("span",{className:f("menu-item__label"),children:[e," ",t.name]}),u&&g.jsxRuntimeExports.jsx("div",{className:f("menu-item__icon-arrow__wrapper"),children:g.jsxRuntimeExports.jsx(sa,{className:f(`menu-item__icon-arrow__icon ${o(t.id)?"open":"close"}`),fontSize:"small"})})]}),h({level:e+1,hovered:d,parentRef:p})]},t.id)}function rx(t){const{children:e,parentRef:n,onlyChild:r}=t,[s,o]=g.reactExports.useState({top:0,left:0});return g.reactExports.useLayoutEffect(()=>{if(n.current){const i=n.current.getBoundingClientRect();o({top:i.top,left:i.left+i.width})}},[n]),r?e:g.reactDomExports.createPortal(g.jsxRuntimeExports.jsx(Ps.div,{style:{position:"fixed",top:s.top,left:s.left},children:e}),document.body)}const sx=g.s(ex,{props:{baseUrl:"string",menuPath:"string"}});customElements.define("global-menu",sx);
|
|
34
|
+
*/function Or(){return Or=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Or.apply(this,arguments)}function x0(t,e){if(t==null)return{};var n={},r=Object.keys(t),s,o;for(o=0;o<r.length;o++)s=r[o],!(e.indexOf(s)>=0)&&(n[s]=t[s]);return n}function b0(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function v0(t,e){return t.button===0&&(!e||e==="_self")&&!b0(t)}const S0=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],w0=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",P0=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,T0=g.reactExports.forwardRef(function(e,n){let{onClick:r,relative:s,reloadDocument:o,replace:i,state:a,target:c,to:l,preventScrollReset:f,unstable_viewTransition:u}=e,d=x0(e,S0),{basename:m}=g.reactExports.useContext(_e),p,h=!1;if(typeof l=="string"&&P0.test(l)&&(p=l,w0))try{let y=new URL(window.location.href),w=l.startsWith("//")?new URL(y.protocol+l):new URL(l),P=s0(w.pathname,m);w.origin===y.origin&&P!=null?l=P+w.search+w.hash:h=!0}catch{}let x=f0(l,{relative:s}),v=E0(l,{replace:i,state:a,target:c,preventScrollReset:f,relative:s,unstable_viewTransition:u});function S(y){r&&r(y),y.defaultPrevented||v(y)}return g.reactExports.createElement("a",Or({},d,{href:p||x,onClick:h||o?r:S,ref:n,target:c}))});var co;(function(t){t.UseScrollRestoration="useScrollRestoration",t.UseSubmit="useSubmit",t.UseSubmitFetcher="useSubmitFetcher",t.UseFetcher="useFetcher",t.useViewTransitionState="useViewTransitionState"})(co||(co={}));var lo;(function(t){t.UseFetcher="useFetcher",t.UseFetchers="useFetchers",t.UseScrollRestoration="useScrollRestoration"})(lo||(lo={}));function E0(t,e){let{target:n,replace:r,state:s,preventScrollReset:o,relative:i,unstable_viewTransition:a}=e===void 0?{}:e,c=d0(),l=Fn(),f=kc(t,{relative:i});return g.reactExports.useCallback(u=>{if(v0(u,n)){u.preventDefault();let d=r!==void 0?r:oo(l)===oo(f);c(t,{replace:d,state:s,preventScrollReset:o,relative:i,unstable_viewTransition:a})}},[l,c,f,r,s,n,t,o,i,a])}function uo(t){for(;t.startsWith("/");)t=t.slice(1);return t}function Dc(t,e,n=[]){for(const r of t){if(console.log(r.path,e,r.path===e),uo(r.path||"")===uo(e))return[...n,r];if(r.children){const s=Dc(r.children,e,[...n,r]);if(s)return s}}return null}function C0(t){return g.jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"20",fill:"none",viewBox:"0 0 18 20",...t,children:g.jsxRuntimeExports.jsx("path",{fill:"#E01B00",fillRule:"evenodd",d:"M.179 2.875A2.375 2.375 0 012.554.5h3.393a1.018 1.018 0 010 2.036H2.554a.34.34 0 00-.34.339v14.25c0 .187.152.34.34.34h3.393a1.018 1.018 0 110 2.035H2.554a2.375 2.375 0 01-2.375-2.375V2.875zm14.167 6.107h-7.72a1.018 1.018 0 000 2.036h7.72l-2.673 2.673a1.018 1.018 0 101.44 1.44l4.41-4.411a1.018 1.018 0 000-1.44l-4.41-4.41a1.018 1.018 0 10-1.44 1.439l2.673 2.673z",clipRule:"evenodd"})})}function Lc(t,e){return function(){return t.apply(e,arguments)}}const{toString:A0}=Object.prototype,{getPrototypeOf:vs}=Object,Bn=(t=>e=>{const n=A0.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),xt=t=>(t=t.toLowerCase(),e=>Bn(e)===t),In=t=>e=>typeof e===t,{isArray:le}=Array,Ve=In("undefined");function R0(t){return t!==null&&!Ve(t)&&t.constructor!==null&&!Ve(t.constructor)&&ct(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const jc=xt("ArrayBuffer");function O0(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&jc(t.buffer),e}const k0=In("string"),ct=In("function"),Fc=In("number"),_n=t=>t!==null&&typeof t=="object",V0=t=>t===!0||t===!1,en=t=>{if(Bn(t)!=="object")return!1;const e=vs(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},M0=xt("Date"),D0=xt("File"),L0=xt("Blob"),j0=xt("FileList"),F0=t=>_n(t)&&ct(t.pipe),B0=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||ct(t.append)&&((e=Bn(t))==="formdata"||e==="object"&&ct(t.toString)&&t.toString()==="[object FormData]"))},I0=xt("URLSearchParams"),_0=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function $e(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let r,s;if(typeof t!="object"&&(t=[t]),le(t))for(r=0,s=t.length;r<s;r++)e.call(null,t[r],r,t);else{const o=n?Object.getOwnPropertyNames(t):Object.keys(t),i=o.length;let a;for(r=0;r<i;r++)a=o[r],e.call(null,t[a],a,t)}}function Bc(t,e){e=e.toLowerCase();const n=Object.keys(t);let r=n.length,s;for(;r-- >0;)if(s=n[r],e===s.toLowerCase())return s;return null}const Ic=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),_c=t=>!Ve(t)&&t!==Ic;function kr(){const{caseless:t}=_c(this)&&this||{},e={},n=(r,s)=>{const o=t&&Bc(e,s)||s;en(e[o])&&en(r)?e[o]=kr(e[o],r):en(r)?e[o]=kr({},r):le(r)?e[o]=r.slice():e[o]=r};for(let r=0,s=arguments.length;r<s;r++)arguments[r]&&$e(arguments[r],n);return e}const $0=(t,e,n,{allOwnKeys:r}={})=>($e(e,(s,o)=>{n&&ct(s)?t[o]=Lc(s,n):t[o]=s},{allOwnKeys:r}),t),N0=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),U0=(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},z0=(t,e,n,r)=>{let s,o,i;const a={};if(e=e||{},t==null)return e;do{for(s=Object.getOwnPropertyNames(t),o=s.length;o-- >0;)i=s[o],(!r||r(i,t,e))&&!a[i]&&(e[i]=t[i],a[i]=!0);t=n!==!1&&vs(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},W0=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;const r=t.indexOf(e,n);return r!==-1&&r===n},H0=t=>{if(!t)return null;if(le(t))return t;let e=t.length;if(!Fc(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},K0=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&vs(Uint8Array)),G0=(t,e)=>{const r=(t&&t[Symbol.iterator]).call(t);let s;for(;(s=r.next())&&!s.done;){const o=s.value;e.call(t,o[0],o[1])}},q0=(t,e)=>{let n;const r=[];for(;(n=t.exec(e))!==null;)r.push(n);return r},X0=xt("HTMLFormElement"),Y0=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),fo=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),J0=xt("RegExp"),$c=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};$e(n,(s,o)=>{let i;(i=e(s,o,t))!==!1&&(r[o]=i||s)}),Object.defineProperties(t,r)},Z0=t=>{$c(t,(e,n)=>{if(ct(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=t[n];if(ct(r)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Q0=(t,e)=>{const n={},r=s=>{s.forEach(o=>{n[o]=!0})};return le(t)?r(t):r(String(t).split(e)),n},ty=()=>{},ey=(t,e)=>(t=+t,Number.isFinite(t)?t:e),or="abcdefghijklmnopqrstuvwxyz",ho="0123456789",Nc={DIGIT:ho,ALPHA:or,ALPHA_DIGIT:or+or.toUpperCase()+ho},ny=(t=16,e=Nc.ALPHA_DIGIT)=>{let n="";const{length:r}=e;for(;t--;)n+=e[Math.random()*r|0];return n};function ry(t){return!!(t&&ct(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const sy=t=>{const e=new Array(10),n=(r,s)=>{if(_n(r)){if(e.indexOf(r)>=0)return;if(!("toJSON"in r)){e[s]=r;const o=le(r)?[]:{};return $e(r,(i,a)=>{const c=n(i,s+1);!Ve(c)&&(o[a]=c)}),e[s]=void 0,o}}return r};return n(t,0)},iy=xt("AsyncFunction"),oy=t=>t&&(_n(t)||ct(t))&&ct(t.then)&&ct(t.catch),b={isArray:le,isArrayBuffer:jc,isBuffer:R0,isFormData:B0,isArrayBufferView:O0,isString:k0,isNumber:Fc,isBoolean:V0,isObject:_n,isPlainObject:en,isUndefined:Ve,isDate:M0,isFile:D0,isBlob:L0,isRegExp:J0,isFunction:ct,isStream:F0,isURLSearchParams:I0,isTypedArray:K0,isFileList:j0,forEach:$e,merge:kr,extend:$0,trim:_0,stripBOM:N0,inherits:U0,toFlatObject:z0,kindOf:Bn,kindOfTest:xt,endsWith:W0,toArray:H0,forEachEntry:G0,matchAll:q0,isHTMLForm:X0,hasOwnProperty:fo,hasOwnProp:fo,reduceDescriptors:$c,freezeMethods:Z0,toObjectSet:Q0,toCamelCase:Y0,noop:ty,toFiniteNumber:ey,findKey:Bc,global:Ic,isContextDefined:_c,ALPHABET:Nc,generateString:ny,isSpecCompliantForm:ry,toJSONObject:sy,isAsyncFn:iy,isThenable:oy};function k(t,e,n,r,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),r&&(this.request=r),s&&(this.response=s)}b.inherits(k,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:b.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Uc=k.prototype,zc={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{zc[t]={value:t}});Object.defineProperties(k,zc);Object.defineProperty(Uc,"isAxiosError",{value:!0});k.from=(t,e,n,r,s,o)=>{const i=Object.create(Uc);return b.toFlatObject(t,i,function(c){return c!==Error.prototype},a=>a!=="isAxiosError"),k.call(i,t.message,e,n,r,s),i.cause=t,i.name=t.name,o&&Object.assign(i,o),i};const ay=null;function Vr(t){return b.isPlainObject(t)||b.isArray(t)}function Wc(t){return b.endsWith(t,"[]")?t.slice(0,-2):t}function po(t,e,n){return t?t.concat(e).map(function(s,o){return s=Wc(s),!n&&o?"["+s+"]":s}).join(n?".":""):e}function cy(t){return b.isArray(t)&&!t.some(Vr)}const ly=b.toFlatObject(b,{},null,function(e){return/^is[A-Z]/.test(e)});function $n(t,e,n){if(!b.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=b.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(h,x){return!b.isUndefined(x[h])});const r=n.metaTokens,s=n.visitor||f,o=n.dots,i=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&b.isSpecCompliantForm(e);if(!b.isFunction(s))throw new TypeError("visitor must be a function");function l(p){if(p===null)return"";if(b.isDate(p))return p.toISOString();if(!c&&b.isBlob(p))throw new k("Blob is not supported. Use a Buffer instead.");return b.isArrayBuffer(p)||b.isTypedArray(p)?c&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function f(p,h,x){let v=p;if(p&&!x&&typeof p=="object"){if(b.endsWith(h,"{}"))h=r?h:h.slice(0,-2),p=JSON.stringify(p);else if(b.isArray(p)&&cy(p)||(b.isFileList(p)||b.endsWith(h,"[]"))&&(v=b.toArray(p)))return h=Wc(h),v.forEach(function(y,w){!(b.isUndefined(y)||y===null)&&e.append(i===!0?po([h],w,o):i===null?h:h+"[]",l(y))}),!1}return Vr(p)?!0:(e.append(po(x,h,o),l(p)),!1)}const u=[],d=Object.assign(ly,{defaultVisitor:f,convertValue:l,isVisitable:Vr});function m(p,h){if(!b.isUndefined(p)){if(u.indexOf(p)!==-1)throw Error("Circular reference detected in "+h.join("."));u.push(p),b.forEach(p,function(v,S){(!(b.isUndefined(v)||v===null)&&s.call(e,v,b.isString(S)?S.trim():S,h,d))===!0&&m(v,h?h.concat(S):[S])}),u.pop()}}if(!b.isObject(t))throw new TypeError("data must be an object");return m(t),e}function mo(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(r){return e[r]})}function Ss(t,e){this._pairs=[],t&&$n(t,this,e)}const Hc=Ss.prototype;Hc.append=function(e,n){this._pairs.push([e,n])};Hc.toString=function(e){const n=e?function(r){return e.call(this,r,mo)}:mo;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function uy(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Kc(t,e,n){if(!e)return t;const r=n&&n.encode||uy,s=n&&n.serialize;let o;if(s?o=s(e,n):o=b.isURLSearchParams(e)?e.toString():new Ss(e,n).toString(r),o){const i=t.indexOf("#");i!==-1&&(t=t.slice(0,i)),t+=(t.indexOf("?")===-1?"?":"&")+o}return t}class fy{constructor(){this.handlers=[]}use(e,n,r){return this.handlers.push({fulfilled:e,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){b.forEach(this.handlers,function(r){r!==null&&e(r)})}}const go=fy,Gc={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},dy=typeof URLSearchParams<"u"?URLSearchParams:Ss,hy=typeof FormData<"u"?FormData:null,py=typeof Blob<"u"?Blob:null,my={isBrowser:!0,classes:{URLSearchParams:dy,FormData:hy,Blob:py},protocols:["http","https","file","blob","url","data"]},qc=typeof window<"u"&&typeof document<"u",gy=(t=>qc&&["ReactNative","NativeScript","NS"].indexOf(t)<0)(typeof navigator<"u"&&navigator.product),yy=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),xy=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:qc,hasStandardBrowserEnv:gy,hasStandardBrowserWebWorkerEnv:yy},Symbol.toStringTag,{value:"Module"})),pt={...xy,...my};function by(t,e){return $n(t,new pt.classes.URLSearchParams,Object.assign({visitor:function(n,r,s,o){return pt.isNode&&b.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},e))}function vy(t){return b.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function Sy(t){const e={},n=Object.keys(t);let r;const s=n.length;let o;for(r=0;r<s;r++)o=n[r],e[o]=t[o];return e}function Xc(t){function e(n,r,s,o){let i=n[o++];if(i==="__proto__")return!0;const a=Number.isFinite(+i),c=o>=n.length;return i=!i&&b.isArray(s)?s.length:i,c?(b.hasOwnProp(s,i)?s[i]=[s[i],r]:s[i]=r,!a):((!s[i]||!b.isObject(s[i]))&&(s[i]=[]),e(n,r,s[i],o)&&b.isArray(s[i])&&(s[i]=Sy(s[i])),!a)}if(b.isFormData(t)&&b.isFunction(t.entries)){const n={};return b.forEachEntry(t,(r,s)=>{e(vy(r),s,n,0)}),n}return null}function wy(t,e,n){if(b.isString(t))try{return(e||JSON.parse)(t),b.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(t)}const ws={transitional:Gc,adapter:["xhr","http"],transformRequest:[function(e,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,o=b.isObject(e);if(o&&b.isHTMLForm(e)&&(e=new FormData(e)),b.isFormData(e))return s&&s?JSON.stringify(Xc(e)):e;if(b.isArrayBuffer(e)||b.isBuffer(e)||b.isStream(e)||b.isFile(e)||b.isBlob(e))return e;if(b.isArrayBufferView(e))return e.buffer;if(b.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return by(e,this.formSerializer).toString();if((a=b.isFileList(e))||r.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return $n(a?{"files[]":e}:e,c&&new c,this.formSerializer)}}return o||s?(n.setContentType("application/json",!1),wy(e)):e}],transformResponse:[function(e){const n=this.transitional||ws.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(e&&b.isString(e)&&(r&&!this.responseType||s)){const i=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(e)}catch(a){if(i)throw a.name==="SyntaxError"?k.from(a,k.ERR_BAD_RESPONSE,this,null,this.response):a}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:pt.classes.FormData,Blob:pt.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};b.forEach(["delete","get","head","post","put","patch"],t=>{ws.headers[t]={}});const Ps=ws,Py=b.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Ty=t=>{const e={};let n,r,s;return t&&t.split(`
|
|
35
|
+
`).forEach(function(i){s=i.indexOf(":"),n=i.substring(0,s).trim().toLowerCase(),r=i.substring(s+1).trim(),!(!n||e[n]&&Py[n])&&(n==="set-cookie"?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)}),e},yo=Symbol("internals");function ye(t){return t&&String(t).trim().toLowerCase()}function nn(t){return t===!1||t==null?t:b.isArray(t)?t.map(nn):String(t)}function Ey(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(t);)e[r[1]]=r[2];return e}const Cy=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function ar(t,e,n,r,s){if(b.isFunction(r))return r.call(this,e,n);if(s&&(e=n),!!b.isString(e)){if(b.isString(r))return e.indexOf(r)!==-1;if(b.isRegExp(r))return r.test(e)}}function Ay(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,r)=>n.toUpperCase()+r)}function Ry(t,e){const n=b.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(t,r+n,{value:function(s,o,i){return this[r].call(this,e,s,o,i)},configurable:!0})})}class Nn{constructor(e){e&&this.set(e)}set(e,n,r){const s=this;function o(a,c,l){const f=ye(c);if(!f)throw new Error("header name must be a non-empty string");const u=b.findKey(s,f);(!u||s[u]===void 0||l===!0||l===void 0&&s[u]!==!1)&&(s[u||c]=nn(a))}const i=(a,c)=>b.forEach(a,(l,f)=>o(l,f,c));return b.isPlainObject(e)||e instanceof this.constructor?i(e,n):b.isString(e)&&(e=e.trim())&&!Cy(e)?i(Ty(e),n):e!=null&&o(n,e,r),this}get(e,n){if(e=ye(e),e){const r=b.findKey(this,e);if(r){const s=this[r];if(!n)return s;if(n===!0)return Ey(s);if(b.isFunction(n))return n.call(this,s,r);if(b.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=ye(e),e){const r=b.findKey(this,e);return!!(r&&this[r]!==void 0&&(!n||ar(this,this[r],r,n)))}return!1}delete(e,n){const r=this;let s=!1;function o(i){if(i=ye(i),i){const a=b.findKey(r,i);a&&(!n||ar(r,r[a],a,n))&&(delete r[a],s=!0)}}return b.isArray(e)?e.forEach(o):o(e),s}clear(e){const n=Object.keys(this);let r=n.length,s=!1;for(;r--;){const o=n[r];(!e||ar(this,this[o],o,e,!0))&&(delete this[o],s=!0)}return s}normalize(e){const n=this,r={};return b.forEach(this,(s,o)=>{const i=b.findKey(r,o);if(i){n[i]=nn(s),delete n[o];return}const a=e?Ay(o):String(o).trim();a!==o&&delete n[o],n[a]=nn(s),r[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const n=Object.create(null);return b.forEach(this,(r,s)=>{r!=null&&r!==!1&&(n[s]=e&&b.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,n])=>e+": "+n).join(`
|
|
36
|
+
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...n){const r=new this(e);return n.forEach(s=>r.set(s)),r}static accessor(e){const r=(this[yo]=this[yo]={accessors:{}}).accessors,s=this.prototype;function o(i){const a=ye(i);r[a]||(Ry(s,i),r[a]=!0)}return b.isArray(e)?e.forEach(o):o(e),this}}Nn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);b.reduceDescriptors(Nn.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(r){this[n]=r}}});b.freezeMethods(Nn);const Pt=Nn;function cr(t,e){const n=this||Ps,r=e||n,s=Pt.from(r.headers);let o=r.data;return b.forEach(t,function(a){o=a.call(n,o,s.normalize(),e?e.status:void 0)}),s.normalize(),o}function Yc(t){return!!(t&&t.__CANCEL__)}function Ne(t,e,n){k.call(this,t??"canceled",k.ERR_CANCELED,e,n),this.name="CanceledError"}b.inherits(Ne,k,{__CANCEL__:!0});function Oy(t,e,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?t(n):e(new k("Request failed with status code "+n.status,[k.ERR_BAD_REQUEST,k.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const ky=pt.hasStandardBrowserEnv?{write(t,e,n,r,s,o){const i=[t+"="+encodeURIComponent(e)];b.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),b.isString(r)&&i.push("path="+r),b.isString(s)&&i.push("domain="+s),o===!0&&i.push("secure"),document.cookie=i.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Vy(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function My(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function Jc(t,e){return t&&!Vy(e)?My(t,e):e}const Dy=pt.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function s(o){let i=o;return e&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=s(window.location.href),function(i){const a=b.isString(i)?s(i):i;return a.protocol===r.protocol&&a.host===r.host}}():function(){return function(){return!0}}();function Ly(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function jy(t,e){t=t||10;const n=new Array(t),r=new Array(t);let s=0,o=0,i;return e=e!==void 0?e:1e3,function(c){const l=Date.now(),f=r[o];i||(i=l),n[s]=c,r[s]=l;let u=o,d=0;for(;u!==s;)d+=n[u++],u=u%t;if(s=(s+1)%t,s===o&&(o=(o+1)%t),l-i<e)return;const m=f&&l-f;return m?Math.round(d*1e3/m):void 0}}function xo(t,e){let n=0;const r=jy(50,250);return s=>{const o=s.loaded,i=s.lengthComputable?s.total:void 0,a=o-n,c=r(a),l=o<=i;n=o;const f={loaded:o,total:i,progress:i?o/i:void 0,bytes:a,rate:c||void 0,estimated:c&&i&&l?(i-o)/c:void 0,event:s};f[e?"download":"upload"]=!0,t(f)}}const Fy=typeof XMLHttpRequest<"u",By=Fy&&function(t){return new Promise(function(n,r){let s=t.data;const o=Pt.from(t.headers).normalize();let{responseType:i,withXSRFToken:a}=t,c;function l(){t.cancelToken&&t.cancelToken.unsubscribe(c),t.signal&&t.signal.removeEventListener("abort",c)}let f;if(b.isFormData(s)){if(pt.hasStandardBrowserEnv||pt.hasStandardBrowserWebWorkerEnv)o.setContentType(!1);else if((f=o.getContentType())!==!1){const[h,...x]=f?f.split(";").map(v=>v.trim()).filter(Boolean):[];o.setContentType([h||"multipart/form-data",...x].join("; "))}}let u=new XMLHttpRequest;if(t.auth){const h=t.auth.username||"",x=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";o.set("Authorization","Basic "+btoa(h+":"+x))}const d=Jc(t.baseURL,t.url);u.open(t.method.toUpperCase(),Kc(d,t.params,t.paramsSerializer),!0),u.timeout=t.timeout;function m(){if(!u)return;const h=Pt.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),v={data:!i||i==="text"||i==="json"?u.responseText:u.response,status:u.status,statusText:u.statusText,headers:h,config:t,request:u};Oy(function(y){n(y),l()},function(y){r(y),l()},v),u=null}if("onloadend"in u?u.onloadend=m:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0)||setTimeout(m)},u.onabort=function(){u&&(r(new k("Request aborted",k.ECONNABORTED,t,u)),u=null)},u.onerror=function(){r(new k("Network Error",k.ERR_NETWORK,t,u)),u=null},u.ontimeout=function(){let x=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded";const v=t.transitional||Gc;t.timeoutErrorMessage&&(x=t.timeoutErrorMessage),r(new k(x,v.clarifyTimeoutError?k.ETIMEDOUT:k.ECONNABORTED,t,u)),u=null},pt.hasStandardBrowserEnv&&(a&&b.isFunction(a)&&(a=a(t)),a||a!==!1&&Dy(d))){const h=t.xsrfHeaderName&&t.xsrfCookieName&&ky.read(t.xsrfCookieName);h&&o.set(t.xsrfHeaderName,h)}s===void 0&&o.setContentType(null),"setRequestHeader"in u&&b.forEach(o.toJSON(),function(x,v){u.setRequestHeader(v,x)}),b.isUndefined(t.withCredentials)||(u.withCredentials=!!t.withCredentials),i&&i!=="json"&&(u.responseType=t.responseType),typeof t.onDownloadProgress=="function"&&u.addEventListener("progress",xo(t.onDownloadProgress,!0)),typeof t.onUploadProgress=="function"&&u.upload&&u.upload.addEventListener("progress",xo(t.onUploadProgress)),(t.cancelToken||t.signal)&&(c=h=>{u&&(r(!h||h.type?new Ne(null,t,u):h),u.abort(),u=null)},t.cancelToken&&t.cancelToken.subscribe(c),t.signal&&(t.signal.aborted?c():t.signal.addEventListener("abort",c)));const p=Ly(d);if(p&&pt.protocols.indexOf(p)===-1){r(new k("Unsupported protocol "+p+":",k.ERR_BAD_REQUEST,t));return}u.send(s||null)})},Mr={http:ay,xhr:By};b.forEach(Mr,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const bo=t=>`- ${t}`,Iy=t=>b.isFunction(t)||t===null||t===!1,Zc={getAdapter:t=>{t=b.isArray(t)?t:[t];const{length:e}=t;let n,r;const s={};for(let o=0;o<e;o++){n=t[o];let i;if(r=n,!Iy(n)&&(r=Mr[(i=String(n)).toLowerCase()],r===void 0))throw new k(`Unknown adapter '${i}'`);if(r)break;s[i||"#"+o]=r}if(!r){const o=Object.entries(s).map(([a,c])=>`adapter ${a} `+(c===!1?"is not supported by the environment":"is not available in the build"));let i=e?o.length>1?`since :
|
|
37
|
+
`+o.map(bo).join(`
|
|
38
|
+
`):" "+bo(o[0]):"as no adapter specified";throw new k("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return r},adapters:Mr};function lr(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Ne(null,t)}function vo(t){return lr(t),t.headers=Pt.from(t.headers),t.data=cr.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),Zc.getAdapter(t.adapter||Ps.adapter)(t).then(function(r){return lr(t),r.data=cr.call(t,t.transformResponse,r),r.headers=Pt.from(r.headers),r},function(r){return Yc(r)||(lr(t),r&&r.response&&(r.response.data=cr.call(t,t.transformResponse,r.response),r.response.headers=Pt.from(r.response.headers))),Promise.reject(r)})}const So=t=>t instanceof Pt?t.toJSON():t;function ae(t,e){e=e||{};const n={};function r(l,f,u){return b.isPlainObject(l)&&b.isPlainObject(f)?b.merge.call({caseless:u},l,f):b.isPlainObject(f)?b.merge({},f):b.isArray(f)?f.slice():f}function s(l,f,u){if(b.isUndefined(f)){if(!b.isUndefined(l))return r(void 0,l,u)}else return r(l,f,u)}function o(l,f){if(!b.isUndefined(f))return r(void 0,f)}function i(l,f){if(b.isUndefined(f)){if(!b.isUndefined(l))return r(void 0,l)}else return r(void 0,f)}function a(l,f,u){if(u in e)return r(l,f);if(u in t)return r(void 0,l)}const c={url:o,method:o,data:o,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:a,headers:(l,f)=>s(So(l),So(f),!0)};return b.forEach(Object.keys(Object.assign({},t,e)),function(f){const u=c[f]||s,d=u(t[f],e[f],f);b.isUndefined(d)&&u!==a||(n[f]=d)}),n}const Qc="1.6.5",Ts={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{Ts[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}});const wo={};Ts.transitional=function(e,n,r){function s(o,i){return"[Axios v"+Qc+"] Transitional option '"+o+"'"+i+(r?". "+r:"")}return(o,i,a)=>{if(e===!1)throw new k(s(i," has been removed"+(n?" in "+n:"")),k.ERR_DEPRECATED);return n&&!wo[i]&&(wo[i]=!0,console.warn(s(i," has been deprecated since v"+n+" and will be removed in the near future"))),e?e(o,i,a):!0}};function _y(t,e,n){if(typeof t!="object")throw new k("options must be an object",k.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let s=r.length;for(;s-- >0;){const o=r[s],i=e[o];if(i){const a=t[o],c=a===void 0||i(a,o,t);if(c!==!0)throw new k("option "+o+" must be "+c,k.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new k("Unknown option "+o,k.ERR_BAD_OPTION)}}const Dr={assertOptions:_y,validators:Ts},Rt=Dr.validators;class yn{constructor(e){this.defaults=e,this.interceptors={request:new go,response:new go}}request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=ae(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:o}=n;r!==void 0&&Dr.assertOptions(r,{silentJSONParsing:Rt.transitional(Rt.boolean),forcedJSONParsing:Rt.transitional(Rt.boolean),clarifyTimeoutError:Rt.transitional(Rt.boolean)},!1),s!=null&&(b.isFunction(s)?n.paramsSerializer={serialize:s}:Dr.assertOptions(s,{encode:Rt.function,serialize:Rt.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=o&&b.merge(o.common,o[n.method]);o&&b.forEach(["delete","get","head","post","put","patch","common"],p=>{delete o[p]}),n.headers=Pt.concat(i,o);const a=[];let c=!0;this.interceptors.request.forEach(function(h){typeof h.runWhen=="function"&&h.runWhen(n)===!1||(c=c&&h.synchronous,a.unshift(h.fulfilled,h.rejected))});const l=[];this.interceptors.response.forEach(function(h){l.push(h.fulfilled,h.rejected)});let f,u=0,d;if(!c){const p=[vo.bind(this),void 0];for(p.unshift.apply(p,a),p.push.apply(p,l),d=p.length,f=Promise.resolve(n);u<d;)f=f.then(p[u++],p[u++]);return f}d=a.length;let m=n;for(u=0;u<d;){const p=a[u++],h=a[u++];try{m=p(m)}catch(x){h.call(this,x);break}}try{f=vo.call(this,m)}catch(p){return Promise.reject(p)}for(u=0,d=l.length;u<d;)f=f.then(l[u++],l[u++]);return f}getUri(e){e=ae(this.defaults,e);const n=Jc(e.baseURL,e.url);return Kc(n,e.params,e.paramsSerializer)}}b.forEach(["delete","get","head","options"],function(e){yn.prototype[e]=function(n,r){return this.request(ae(r||{},{method:e,url:n,data:(r||{}).data}))}});b.forEach(["post","put","patch"],function(e){function n(r){return function(o,i,a){return this.request(ae(a||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:i}))}}yn.prototype[e]=n(),yn.prototype[e+"Form"]=n(!0)});const rn=yn;class Es{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(s=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](s);r._listeners=null}),this.promise.then=s=>{let o;const i=new Promise(a=>{r.subscribe(a),o=a}).then(s);return i.cancel=function(){r.unsubscribe(o)},i},e(function(o,i,a){r.reason||(r.reason=new Ne(o,i,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}static source(){let e;return{token:new Es(function(s){e=s}),cancel:e}}}const $y=Es;function Ny(t){return function(n){return t.apply(null,n)}}function Uy(t){return b.isObject(t)&&t.isAxiosError===!0}const Lr={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Lr).forEach(([t,e])=>{Lr[e]=t});const zy=Lr;function tl(t){const e=new rn(t),n=Lc(rn.prototype.request,e);return b.extend(n,rn.prototype,e,{allOwnKeys:!0}),b.extend(n,e,null,{allOwnKeys:!0}),n.create=function(s){return tl(ae(t,s))},n}const G=tl(Ps);G.Axios=rn;G.CanceledError=Ne;G.CancelToken=$y;G.isCancel=Yc;G.VERSION=Qc;G.toFormData=$n;G.AxiosError=k;G.Cancel=G.CanceledError;G.all=function(e){return Promise.all(e)};G.spread=Ny;G.isAxiosError=Uy;G.mergeConfig=ae;G.AxiosHeaders=Pt;G.formToJSON=t=>Xc(b.isHTMLForm(t)?new FormData(t):t);G.getAdapter=Zc.getAdapter;G.HttpStatusCode=zy;G.default=G;const Wy=G;function Hy(t){return g.jsxRuntimeExports.jsx(Ky,{...t})}function Ky(t){const{baseUrl:e,menuPath:n}=t;console.log("baseUrl:",e);const r=Fn();console.log("location:",r);const[s,o]=g.reactExports.useState([]),[i,a]=g.reactExports.useState(!1),c=(Dc(s,r.pathname)||[]).filter(S=>S.parentKey!==0),[l,f]=g.reactExports.useState({}),u=S=>{f({...l,[S]:!l[S]})};console.log("matchPaths:",c);const d=()=>{a(!i)};g.reactExports.useEffect(()=>{(async()=>{const y=e+(n||"/global-menu-config/api/v1/menu-items/user"),w=await Wy.get(y,{withCredentials:!0}).then(E=>E.data),P={};w.forEach(E=>{E.children&&(P[E.id]=!0)}),f(P),o(w.map(E=>({...E,parentKey:0})))})()},[e,n]);const[m,p]=g.reactExports.useState(!1),h=()=>{window.location.href=`${e}/authentication/logout?callbackUrl=${window.location.href}`},x=i?"collapsed":"expanded",v=S=>`${S} ${x}`;return g.jsxRuntimeExports.jsxs(xs.nav,{initial:{width:"18rem"},animate:{width:i?"5rem":"18rem"},transition:{duration:.3},className:v("side-bar"),children:[g.jsxRuntimeExports.jsx("div",{className:"h-[8px]"}),g.jsxRuntimeExports.jsx("div",{className:v("side-bar__toggle-btn"),children:g.jsxRuntimeExports.jsx("button",{className:"icon-btn",onClick:d,children:i?g.jsxRuntimeExports.jsx(ta,{}):g.jsxRuntimeExports.jsx(Qo,{})})}),g.jsxRuntimeExports.jsx("div",{id:"menu-items",className:v("mt-6 overflow-y-auto overflow-x-hidden flex-1"),children:s.map(S=>{const y=w=>c.some(P=>P.id===w);return g.jsxRuntimeExports.jsx(el,{item:S,isActive:y,isCollapsed:i,expanded:w=>l[w],toggleExpand:u},S.id)})}),g.jsxRuntimeExports.jsxs("div",{className:"w-full mt-10 mb-10",children:[g.jsxRuntimeExports.jsxs("button",{className:v("side-bar__logout-btn"),onClick:()=>p(!0),children:[g.jsxRuntimeExports.jsx(C0,{}),g.jsxRuntimeExports.jsx("span",{className:`ml-3 ${i?"hidden":""}`,children:"Logout"})]}),g.jsxRuntimeExports.jsx(g.LogoutConfirmModal,{isOpen:m,onClose:()=>p(!1),onConfirm:h})]})]})}function el({item:t,level:e=0,...n}){var x;const{isActive:r,isCollapsed:s,expanded:o,toggleExpand:i}=n,a=`level-${e}`,c=s?"collapsed":"expanded",l=r(t.id)?"active":"",f=(v,S=a)=>`${v} ${S} ${c} ${l}`,u=!!((x=t.children)!=null&&x.length),[d,m]=g.reactExports.useState(!1),p=g.reactExports.useRef();function h(v){var P;const{level:S,hovered:y,parentRef:w}=v;return!u||s&&S>=2&&!y?null:g.jsxRuntimeExports.jsx(Gy,{parentRef:w,onlyChild:!s||s&&S<2,children:g.jsxRuntimeExports.jsx(xs.div,{className:f("menu-item__dropdown",`level-${S}`),initial:{height:s?"auto":0},animate:{height:s||o(t.id)?"auto":0},transition:{duration:.2},children:(P=t.children)==null?void 0:P.map(E=>g.reactExports.createElement(el,{...n,key:E.id,item:E,level:S}))},+s)})}return g.jsxRuntimeExports.jsxs("div",{ref:p,className:f("menu-item__wrapper"),onMouseEnter:()=>s&&m(!0),onMouseLeave:()=>s&&m(!1),children:[g.jsxRuntimeExports.jsxs(T0,{to:u?"#":t.path||"#",style:{paddingLeft:`${s?"0.5rem":`${e*1}rem`}`},className:f("menu-item__link"),onClick:()=>{u&&!s&&i(t.id)},children:[e!==0&&g.jsxRuntimeExports.jsx("div",{className:f("menu-item__icon"),children:g.jsxRuntimeExports.jsx("img",{src:t.icon||"/",alt:" ",style:{height:24,maxHeight:24}})}),g.jsxRuntimeExports.jsx("span",{className:f("menu-item__label"),children:t.name}),u&&g.jsxRuntimeExports.jsx("div",{className:f("menu-item__icon-arrow__wrapper"),children:g.jsxRuntimeExports.jsx(Zo,{className:f(`menu-item__icon-arrow__icon ${o(t.id)?"open":"close"}`),fontSize:"small"})})]}),h({level:e+1,hovered:d,parentRef:p})]},t.id)}function Gy(t){const{children:e,parentRef:n,onlyChild:r}=t,[s,o]=g.reactExports.useState({top:0,left:0});return g.reactExports.useLayoutEffect(()=>{if(n.current){const i=n.current.getBoundingClientRect();o({top:i.top,left:i.left+i.width})}},[n]),r?e:g.reactDomExports.createPortal(g.jsxRuntimeExports.jsx(xs.div,{style:{position:"fixed",top:s.top,left:s.left},children:e}),document.body)}const qy=g.s(Hy,{props:{baseUrl:"string",menuPath:"string"}});customElements.define("global-menu",qy);
|