1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6929],{1072:e=>{e.exports=function(e,t,n,r){var i=n?n.call(r,e,t):void 0;if(void 0!==i)return!!i;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var o=Object.keys(e),s=Object.keys(t);if(o.length!==s.length)return!1;for(var a=Object.prototype.hasOwnProperty.bind(t),l=0;l<o.length;l++){var u=o[l];if(!a(u))return!1;var c=e[u],d=t[u];if(!1===(i=n?n.call(r,c,d,u):void 0)||void 0===i&&c!==d)return!1}return!0}},1083:e=>{var t=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;e.exports=function(e){return t.test(e)}},6983:(e,t,n)=>{"use strict";function r(e){return"object"==typeof e&&null!==e}n.d(t,{G:()=>r})},7021:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var r=n(95155),i=n(43377),o=n(90330),s=n(83060),a=n(8561),l=n(12115),u=n(53588);function c(e){let t=function e(t){var n;return!!(n=t)&&("object"==typeof n||"function"==typeof n)&&("reference"===t.name||e(t.type))}(e)&&1===(e.to??[]).length?e.to[0].icon:void 0;return e.icon??e.type?.icon??t}function d(e,t){return{query:"change query"===t.type?t.query:e.query,groups:"select group"===t.type?e.groups.map(e=>({...e,selected:t.name===e.name})):e.groups,views:"toggle view"===t.type?e.views.map(e=>({...e,selected:t.name===e.name})):e.views}}let h="all-items",f={gridTemplateColumns:"repeat(auto-fill, minmax(118px, 1fr))"};function p(e){let t,n,u,p,y,v,w,S,E,A,C,T,P,R,M,j,O=(0,i.c)(54),I=void 0===e.showIcons||e.showIcons,D=void 0===e.filter||"auto"===e.filter?e.schemaTypes.length>5:e.filter;O[0]!==e.groups||O[1]!==e.labels?(t=e.groups?[{name:h,title:e.labels["insert-menu.filter.all-items"],selected:!0},...e.groups.map(b)]:[],O[0]=e.groups,O[1]=e.labels,O[2]=t):t=O[2],O[3]!==e.views?(n=e.views??[{name:"list"}],O[3]=e.views,O[4]=n):n=O[4],O[5]!==n?(u=n.map(m),O[5]=n,O[6]=u):u=O[6],O[7]!==t||O[8]!==u?(p={query:"",groups:t,views:u},O[7]=t,O[8]=u,O[9]=p):p=O[9];let[_,L]=(0,l.useReducer)(d,p);if(O[10]!==e||O[11]!==D||O[12]!==I||O[13]!==_.groups||O[14]!==_.query||O[15]!==_.views){var V,$,z;let t,n,i,l=(V=e.schemaTypes,$=_.query,z=_.groups,V.filter(e=>(function(e,t){let n=t.find(e=>e.selected);return!n||n.name===h||n.of?.includes(e.name)})(e,z)&&function(e,t){let n=t.trim().toLowerCase();return e.title?e.title?.toLowerCase().includes(n):e.name.includes(n)}(e,$))),u=_.views.find(g),d=D||_.views.length>1,p=_.groups&&_.groups.length>0,m=d||p;w=s.W1,P=0,v=s.so,A="column",C="fill",O[25]!==m?(t=m?{style:{borderBottom:"1px solid var(--card-border-color)"},paddingBottom:1}:{},O[25]=m,O[26]=t):t=O[26],O[27]!==e.labels||O[28]!==D||O[29]!==d||O[30]!==_.query||O[31]!==_.views?(n=d?(0,r.jsxs)(s.so,{flex:"none",align:"center",paddingTop:1,paddingX:1,gap:1,children:[D?(0,r.jsx)(s.az,{flex:1,children:(0,r.jsx)(s.ks,{autoFocus:!0,border:!1,fontSize:1,icon:o.WIv,onChange:e=>{L({type:"change query",query:e.target.value})},placeholder:e.labels["insert-menu.search.placeholder"],value:_.query})}):null,_.views.length>1?(0,r.jsx)(s.az,{flex:"none",children:(0,r.jsx)(x,{views:_.views,onToggle:e=>{L({type:"toggle view",name:e})},labels:e.labels})}):null]}):null,O[27]=e.labels,O[28]=D,O[29]=d,O[30]=_.query,O[31]=_.views,O[32]=n):n=O[32],O[33]!==p||O[34]!==_.groups?(i=p?(0,r.jsx)(s.az,{paddingTop:1,paddingX:1,children:(0,r.jsx)(s.wb,{space:1,children:_.groups.map(e=>(0,r.jsx)(s.oz,{id:`${e.name}-tab`,"aria-controls":`${e.name}-panel`,label:e.title??a(e.name),selected:e.selected,onClick:()=>{L({type:"select group",name:e.name})}},e.name))})}):null,O[33]=p,O[34]=_.groups,O[35]=i):i=O[35],O[36]!==t||O[37]!==n||O[38]!==i?(T=(0,r.jsxs)(s.az,{...t,children:[n,i]}),O[36]=t,O[37]=n,O[38]=i,O[39]=T):T=O[39],y=s.az,S=1,E=0===l.length?(0,r.jsx)(s.az,{padding:2,children:(0,r.jsx)(s.EY,{muted:!0,size:1,children:e.labels["insert-menu.search.no-results"]})}):u?"grid"===u.name?(0,r.jsx)(s.xA,{autoRows:"auto",flex:1,gap:1,style:f,children:l.map(t=>(0,r.jsx)(k,{icon:I?c(t):void 0,onClick:()=>{e.onSelect(t)},previewImageUrl:u.previewImageUrl?.(t.name),schemaType:t},t.name))}):(0,r.jsx)(s.BJ,{flex:1,space:1,children:l.map(t=>(0,r.jsx)(s.Dr,{icon:I?c(t):void 0,onClick:()=>{e.onSelect(t)},text:t.title??a(t.name)},t.name))}):null,O[10]=e,O[11]=D,O[12]=I,O[13]=_.groups,O[14]=_.query,O[15]=_.views,O[16]=y,O[17]=v,O[18]=w,O[19]=S,O[20]=E,O[21]=A,O[22]=C,O[23]=T,O[24]=P}else y=O[16],v=O[17],w=O[18],S=O[19],E=O[20],A=O[21],C=O[22],T=O[23],P=O[24];return O[40]!==y||O[41]!==S||O[42]!==E?(R=(0,r.jsx)(y,{padding:S,children:E}),O[40]=y,O[41]=S,O[42]=E,O[43]=R):R=O[43],O[44]!==v||O[45]!==R||O[46]!==A||O[47]!==C||O[48]!==T?(M=(0,r.jsxs)(v,{direction:A,height:C,children:[T,R]}),O[44]=v,O[45]=R,O[46]=A,O[47]=C,O[48]=T,O[49]=M):M=O[49],O[50]!==w||O[51]!==M||O[52]!==P?(j=(0,r.jsx)(w,{padding:P,children:M}),O[50]=w,O[51]=M,O[52]=P,O[53]=j):j=O[53],j}function g(e){return e.selected}function m(e,t){return{...e,selected:0===t}}function b(e){return{...e,selected:!1}}let y={grid:o.jxC,list:o.r$9},v={grid:"insert-menu.toggle-grid-view.tooltip",list:"insert-menu.toggle-list-view.tooltip"};function x(e){let t,n,o,a,l=(0,i.c)(11),u=e.views.findIndex(w),c=e.views[u+1]??e.views[0],d=e.labels[v[c.name]];l[0]!==d?(t=(0,r.jsx)(s.EY,{size:1,children:d}),l[0]=d,l[1]=t):t=l[1];let h=y[c.name];return l[2]!==c.name||l[3]!==e?(n=()=>{e.onToggle(c.name)},l[2]=c.name,l[3]=e,l[4]=n):n=l[4],l[5]!==h||l[6]!==n?(o=(0,r.jsx)(s.$n,{mode:"bleed",icon:h,onClick:n}),l[5]=h,l[6]=n,l[7]=o):o=l[7],l[8]!==t||l[9]!==o?(a=(0,r.jsx)(s.m_,{content:t,placement:"top",portal:!0,children:o}),l[8]=t,l[9]=o,l[10]=a):a=l[10],a}function w(e){return e.selected}function k(e){let t,n,o,a,c,d,h,f,p,g=(0,i.c)(19),[m,b]=(0,l.useState)(!1),y=e.icon;g[0]===Symbol.for("react.memo_cache_sentinel")?(t={overflow:"hidden"},g[0]=t):t=g[0],g[1]===Symbol.for("react.memo_cache_sentinel")?(n={backgroundColor:"var(--card-muted-bg-color)",paddingBottom:"66.6%",position:"relative"},g[1]=n):n=g[1],g[2]!==y?(o=(0,u.isValidElementType)(y)?(0,r.jsx)(s.so,{align:"center",justify:"center",style:{position:"absolute",top:0,left:0,width:"100%",height:"100%"},children:(0,r.jsx)(s.EY,{size:1,children:(0,r.jsx)(y,{})})}):null,g[2]=y,g[3]=o):o=g[3],g[4]!==m||g[5]!==e.previewImageUrl?(a=!e.previewImageUrl||m?null:(0,r.jsx)("img",{src:e.previewImageUrl,style:{objectFit:"contain",width:"100%",height:"100%",position:"absolute",inset:0},onError:()=>{b(!0)}}),g[4]=m,g[5]=e.previewImageUrl,g[6]=a):a=g[6],g[7]===Symbol.for("react.memo_cache_sentinel")?(c=(0,r.jsx)("div",{style:{position:"absolute",top:0,left:0,width:"100%",height:"100%",boxShadow:"inset 0 0 0 0.5px var(--card-fg-color)",opacity:.1}}),g[7]=c):c=g[7],g[8]!==o||g[9]!==a?(d=(0,r.jsxs)(s.az,{flex:"none",style:n,children:[o,a,c]}
1),g[8]=o,g[9]=a,g[10]=d):d=g[10];let v=e.schemaType.title??e.schemaType.name;return g[11]!==v?(h=(0,r.jsx)(s.az,{flex:1,padding:2,children:(0,r.jsx)(s.EY,{size:1,weight:"medium",children:v})}),g[11]=v,g[12]=h):h=g[12],g[13]!==d||g[14]!==h?(f=(0,r.jsxs)(s.so,{direction:"column",gap:1,padding:1,children:[d,h]}),g[13]=d,g[14]=h,g[15]=f):f=g[15],g[16]!==e.onClick||g[17]!==f?(p=(0,r.jsx)(s.Dr,{padding:0,radius:2,onClick:e.onClick,style:t,children:f}),g[16]=e.onClick,g[17]=f,g[18]=p):p=g[18],p}},7985:(e,t,n)=>{e.exports="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g},8561:(e,t,n)=>{var r=n(34642),i=n(23633);e.exports=r(function(e,t,n){return e+(n?" ":"")+i(t)})},14229:(e,t,n)=>{var r=n(84342),i=n(85855),o=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,s=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");e.exports=function(e){return(e=i(e))&&e.replace(o,r).replace(s,"")}},16613:(e,t,n)=>{var r=n(24376),i=n(57213),o=n(39608),s=n(70771),a=1/0,l=r?r.prototype:void 0,u=l?l.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(o(t))return i(t,e)+"";if(s(t))return u?u.call(t):"";var n=t+"";return"0"==n&&1/t==-a?"-0":n}},17855:e=>{var t="\ud800-\udfff",n="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",r="\ud83c[\udffb-\udfff]",i="[^"+t+"]",o="(?:\ud83c[\udde6-\uddff]){2}",s="[\ud800-\udbff][\udc00-\udfff]",a="(?:"+n+"|"+r+")?",l="[\\ufe0e\\ufe0f]?",u="(?:\\u200d(?:"+[i,o,s].join("|")+")"+l+a+")*",c=RegExp(r+"(?="+r+")|"+("(?:"+[i+n+"?",n,o,s,"["+t+"]"].join("|"))+")"+(l+a+u),"g");e.exports=function(e){return e.match(c)||[]}},20570:(e,t,n)=>{var r=n(24376),i=Object.prototype,o=i.hasOwnProperty,s=i.toString,a=r?r.toStringTag:void 0;e.exports=function(e){var t=o.call(e,a),n=e[a];try{e[a]=void 0;var r=!0}catch(e){}var i=s.call(e);return r&&(t?e[a]=n:delete e[a]),i}},22475:(e,t,n)=>{"use strict";n.d(t,{UE:()=>eh,ll:()=>es,rD:()=>ef,__:()=>ea,UU:()=>ec,jD:()=>ed,cY:()=>el,BN:()=>eu});let r=["top","right","bottom","left"],i=Math.min,o=Math.max,s=Math.round,a=Math.floor,l=e=>({x:e,y:e}),u={left:"right",right:"left",bottom:"top",top:"bottom"},c={start:"end",end:"start"};function d(e,t){return"function"==typeof e?e(t):e}function h(e){return e.split("-")[0]}function f(e){return e.split("-")[1]}function p(e){return"x"===e?"y":"x"}function g(e){return"y"===e?"height":"width"}function m(e){return["top","bottom"].includes(h(e))?"y":"x"}function b(e){return e.replace(/start|end/g,e=>c[e])}function y(e){return e.replace(/left|right|bottom|top/g,e=>u[e])}function v(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function x(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function w(e,t,n){let r,{reference:i,floating:o}=e,s=m(t),a=p(m(t)),l=g(a),u=h(t),c="y"===s,d=i.x+i.width/2-o.width/2,b=i.y+i.height/2-o.height/2,y=i[l]/2-o[l]/2;switch(u){case"top":r={x:d,y:i.y-o.height};break;case"bottom":r={x:d,y:i.y+i.height};break;case"right":r={x:i.x+i.width,y:b};break;case"left":r={x:i.x-o.width,y:b};break;default:r={x:i.x,y:i.y}}switch(f(t)){case"start":r[a]-=y*(n&&c?-1:1);break;case"end":r[a]+=y*(n&&c?-1:1)}return r}let k=async(e,t,n)=>{let{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:s}=n,a=o.filter(Boolean),l=await (null==s.isRTL?void 0:s.isRTL(t)),u=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:c,y:d}=w(u,r,l),h=r,f={},p=0;for(let n=0;n<a.length;n++){let{name:o,fn:g}=a[n],{x:m,y:b,data:y,reset:v}=await g({x:c,y:d,initialPlacement:r,placement:h,strategy:i,middlewareData:f,re
1cts:u,platform:s,elements:{reference:e,floating:t}});c=null!=m?m:c,d=null!=b?b:d,f={...f,[o]:{...f[o],...y}},v&&p<=50&&(p++,"object"==typeof v&&(v.placement&&(h=v.placement),v.rects&&(u=!0===v.rects?await s.getElementRects({reference:e,floating:t,strategy:i}):v.rects),{x:c,y:d}=w(u,h,l)),n=-1)}return{x:c,y:d,placement:h,strategy:i,middlewareData:f}};async function S(e,t){var n;void 0===t&&(t={});let{x:r,y:i,platform:o,rects:s,elements:a,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:h="floating",altBoundary:f=!1,padding:p=0}=d(t,e),g=v(p),m=a[f?"floating"===h?"reference":"floating":h],b=x(await o.getClippingRect({element:null==(n=await (null==o.isElement?void 0:o.isElement(m)))||n?m:m.contextElement||await (null==o.getDocumentElement?void 0:o.getDocumentElement(a.floating)),boundary:u,rootBoundary:c,strategy:l})),y="floating"===h?{x:r,y:i,width:s.floating.width,height:s.floating.height}:s.reference,w=await (null==o.getOffsetParent?void 0:o.getOffsetParent(a.floating)),k=await (null==o.isElement?void 0:o.isElement(w))&&await (null==o.getScale?void 0:o.getScale(w))||{x:1,y:1},S=x(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:y,offsetParent:w,strategy:l}):y);return{top:(b.top-S.top+g.top)/k.y,bottom:(S.bottom-b.bottom+g.bottom)/k.y,left:(b.left-S.left+g.left)/k.x,right:(S.right-b.right+g.right)/k.x}}function E(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function A(e){return r.some(t=>e[t]>=0)}async function C(e,t){let{placement:n,platform:r,elements:i}=e,o=await (null==r.isRTL?void 0:r.isRTL(i.floating)),s=h(n),a=f(n),l="y"===m(n),u=["left","top"].includes(s)?-1:1,c=o&&l?-1:1,p=d(t,e),{mainAxis:g,crossAxis:b,alignmentAxis:y}="number"==typeof p?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return a&&"number"==typeof y&&(b="end"===a?-1*y:y),l?{x:b*c,y:g*u}:{x:g*u,y:b*c}}function T(){return"undefined"!=typeof window}function P(e){return j(e)?(e.nodeName||"").toLowerCase():"#document"}function R(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function M(e){var t;return null==(t=(j(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function j(e){return!!T()&&(e instanceof Node||e instanceof R(e).Node)}function O(e){return!!T()&&(e instanceof Element||e instanceof R(e).Element)}function I(e){return!!T()&&(e instanceof HTMLElement||e instanceof R(e).HTMLElement)}function D(e){return!!T()&&"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof R(e).ShadowRoot)}function _(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=F(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function L(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch(e){return!1}})}function V(e){let t=$(),n=O(e)?F(e):e;return["transform","translate","scale","rotate","perspective"].some(e=>!!n[e]&&"none"!==n[e])||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","translate","scale","rotate","perspective","filter"].some(e=>(n.willChange||"").includes(e))||["paint","layout","strict","content"].some(e=>(n.contain||"").includes(e))}function $(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}function z(e){return["html","body","#document"].includes(P(e))}function F(e){return R(e).getComputedStyle(e)}function N(e){return O(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function B(e){if("html"===P(e))return e;let t=e.assignedSlot||e.parentNode||D(e)&&e.host||M(e);return D(t)?t.host:t}function H(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let i=function e(t){let n=B(t);return z(n)?t.ownerDocument?t.ownerDocument.body:t.body:I(n)&&_(n)?n:e(n)}(e),o=i===(null==(r=e.ownerDocument)?void 0:r.body),s=R(i);if(o){let e=U(s);
1return t.concat(s,s.visualViewport||[],_(i)?i:[],e&&n?H(e):[])}return t.concat(i,H(i,[],n))}function U(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function W(e){let t=F(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=I(e),o=i?e.offsetWidth:n,a=i?e.offsetHeight:r,l=s(n)!==o||s(r)!==a;return l&&(n=o,r=a),{width:n,height:r,$:l}}function Y(e){return O(e)?e:e.contextElement}function G(e){let t=Y(e);if(!I(t))return l(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:o}=W(t),a=(o?s(n.width):n.width)/r,u=(o?s(n.height):n.height)/i;return a&&Number.isFinite(a)||(a=1),u&&Number.isFinite(u)||(u=1),{x:a,y:u}}let q=l(0);function K(e){let t=R(e);return $()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:q}function X(e,t,n,r){var i;void 0===t&&(t=!1),void 0===n&&(n=!1);let o=e.getBoundingClientRect(),s=Y(e),a=l(1);t&&(r?O(r)&&(a=G(r)):a=G(e));let u=(void 0===(i=n)&&(i=!1),r&&(!i||r===R(s))&&i)?K(s):l(0),c=(o.left+u.x)/a.x,d=(o.top+u.y)/a.y,h=o.width/a.x,f=o.height/a.y;if(s){let e=R(s),t=r&&O(r)?R(r):r,n=e,i=U(n);for(;i&&r&&t!==n;){let e=G(i),t=i.getBoundingClientRect(),r=F(i),o=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,s=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,d*=e.y,h*=e.x,f*=e.y,c+=o,d+=s,i=U(n=R(i))}}return x({width:h,height:f,x:c,y:d})}function Z(e,t){let n=N(e).scrollLeft;return t?t.left+n:X(M(e)).left+n}function J(e,t,n){void 0===n&&(n=!1);let r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-(n?0:Z(e,r)),y:r.top+t.scrollTop}}function Q(e,t,n){let r;if("viewport"===t)r=function(e,t){let n=R(e),r=M(e),i=n.visualViewport,o=r.clientWidth,s=r.clientHeight,a=0,l=0;if(i){o=i.width,s=i.height;let e=$();(!e||e&&"fixed"===t)&&(a=i.offsetLeft,l=i.offsetTop)}return{width:o,height:s,x:a,y:l}}(e,n);else if("document"===t)r=function(e){let t=M(e),n=N(e),r=e.ownerDocument.body,i=o(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=o(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),a=-n.scrollLeft+Z(e),l=-n.scrollTop;return"rtl"===F(r).direction&&(a+=o(t.clientWidth,r.clientWidth)-i),{width:i,height:s,x:a,y:l}}(M(e));else if(O(t))r=function(e,t){let n=X(e,!0,"fixed"===t),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=I(e)?G(e):l(1),s=e.clientWidth*o.x,a=e.clientHeight*o.y;return{width:s,height:a,x:i*o.x,y:r*o.y}}(t,n);else{let n=K(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return x(r)}function ee(e){return"static"===F(e).position}function et(e,t){if(!I(e)||"fixed"===F(e).position)return null;if(t)return t(e);let n=e.offsetParent;return M(e)===n&&(n=n.ownerDocument.body),n}function en(e,t){let n=R(e);if(L(e))return n;if(!I(e)){let t=B(e);for(;t&&!z(t);){if(O(t)&&!ee(t))return t;t=B(t)}return n}let r=et(e,t);for(;r&&["table","td","th"].includes(P(r))&&ee(r);)r=et(r,t);return r&&z(r)&&ee(r)&&!V(r)?n:r||function(e){let t=B(e);for(;I(t)&&!z(t);){if(V(t))return t;if(L(t))break;t=B(t)}return null}(e)||n}let er=async function(e){let t=this.getOffsetParent||en,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=I(t),i=M(t),o="fixed"===n,s=X(e,!0,o,t),a={scrollLeft:0,scrollTop:0},u=l(0);if(r||!r&&!o)if(("body"!==P(t)||_(i))&&(a=N(t)),r){let e=X(t,!0,o,t);u.x=e.x+t.clientLeft,u.y=e.y+t.clientTop}else i&&(u.x=Z(i));o&&!r&&i&&(u.x=Z(i));let c=!i||r||o?l(0):J(i,a);return{x:s.left+a.scrollLeft-u.x-c.x,y:s.top+a.scrollTop-u.y-c.y,width:s.width,height:s.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},ei={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,o="fixed"===i,s=M(r),a=!!t&&L(t.floating);if(r===s||a&&o)return n;let u={scrollLeft:0,scrollTop:0},c=l(1),d=l(0),h=I(r);if((h||!h&&!o)&&(("body"!==P(r)||_(s))&&(u=N(r)),I(r))){let e=X(r);c=G(r),d.x=e.x+r.clientLeft,d.y=e.y+r.clientTop}let f=!s||h||o?l(0):J(s,u,!0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-u.scrollLeft*c.x+d.x+f.x,y:n.y*c.y-u.scrollTop*c.y+d.y+f.y}},getDocumentElement:M,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:s}=e,a=[..."clippingAncestors"===n?L(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=H(e,[],!1).filter(e=>O(e)&&"body"!==P(e)),i=null,o="fixed"===F(e).position,s=o?B(e):e;for(;O(s)&&!z(s);){let t=F(s),n=V(s);n||"fixed"!==t.position||(i=null),(o?!n&&!i:!n&&"static"===t.position&&!!i&&["absolute","fixed"].includes(i.position)||_(s)&&!n&&function e(t,n){let r=B(t);return!(r===n||!O(r)||z(r))&&("fixed"===F(r).position||e(r,n))}(e,s))?r=r.filter(e=>e!==s):i=t,s=B(s)}return t.set(e,r),r}(t,this._c):[].concat(n),r],l=a[0],u=a.reduce((e,n)=>{let r=Q(t,n,s);return e.top=o(r.top,e.top),e.right=i(r.right,e.right),e.bottom=i(r.bottom,e.bottom),e.left=o(r.left,e.left),e},Q(t,l,s));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}},getOffsetParent:en,getElementRects:er,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=W(e);return{width:t,height:n}},getScale:G,isElement:O,isRTL:function(e){return"rtl"===F(e).direction}};function eo(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function es(e,t,n,r){let s;void 0===r&&(r={});let{ancestorScroll:l=!0,ancestorResize:u=!0,elementResize:c="function"==typeof ResizeObserver,layoutShift:d="function"==typeof IntersectionObserver,animationFrame:h=!1}=r,f=Y(e),p=l||u?[...f?H(f):[],...H(t)]:[];
1p.forEach(e=>{l&&e.addEventListener("scroll",n,{passive:!0}),u&&e.addEventListener("resize",n)});let g=f&&d?function(e,t){let n,r=null,s=M(e);function l(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return!function u(c,d){void 0===c&&(c=!1),void 0===d&&(d=1),l();let h=e.getBoundingClientRect(),{left:f,top:p,width:g,height:m}=h;if(c||t(),!g||!m)return;let b=a(p),y=a(s.clientWidth-(f+g)),v={rootMargin:-b+"px "+-y+"px "+-a(s.clientHeight-(p+m))+"px "+-a(f)+"px",threshold:o(0,i(1,d))||1},x=!0;function w(t){let r=t[0].intersectionRatio;if(r!==d){if(!x)return u();r?u(!1,r):n=setTimeout(()=>{u(!1,1e-7)},1e3)}1!==r||eo(h,e.getBoundingClientRect())||u(),x=!1}try{r=new IntersectionObserver(w,{...v,root:s.ownerDocument})}catch(e){r=new IntersectionObserver(w,v)}r.observe(e)}(!0),l}(f,n):null,m=-1,b=null;c&&(b=new ResizeObserver(e=>{let[r]=e;r&&r.target===f&&b&&(b.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var e;null==(e=b)||e.observe(t)})),n()}),f&&!h&&b.observe(f),b.observe(t));let y=h?X(e):null;return h&&function t(){let r=X(e);y&&!eo(y,r)&&n(),y=r,s=requestAnimationFrame(t)}(),n(),()=>{var e;p.forEach(e=>{l&&e.removeEventListener("scroll",n),u&&e.removeEventListener("resize",n)}),null==g||g(),null==(e=b)||e.disconnect(),b=null,h&&cancelAnimationFrame(s)}}let ea=S,el=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;let{x:i,y:o,placement:s,middlewareData:a}=t,l=await C(t,e);return s===(null==(n=a.offset)?void 0:n.placement)&&null!=(r=a.arrow)&&r.alignmentOffset?{}:{x:i+l.x,y:o+l.y,data:{...l,placement:s}}}}},eu=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:n,y:r,placement:s}=t,{mainAxis:a=!0,crossAxis:l=!1,limiter:u={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=d(e,t),f={x:n,y:r},g=await S(t,c),b=m(h(s)),y=p(b),v=f[y],x=f[b];if(a){let e="y"===y?"top":"left",t="y"===y?"bottom":"right",n=v+g[e],r=v-g[t];v=o(n,i(v,r))}if(l){let e="y"===b?"top":"left",t="y"===b?"bottom":"right",n=x+g[e],r=x-g[t];x=o(n,i(x,r))}let w=u.fn({...t,[y]:v,[b]:x});return{...w,data:{x:w.x-n,y:w.y-r,enabled:{[y]:a,[b]:l}}}}}},ec=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r,i,o,s,a;let{placement:l,middlewareData:u,rects:c,initialPlacement:v,platform:x,elements:w}=t,{mainAxis:k=!0,crossAxis:E=!0,fallbackPlacements:A,fallbackStrategy:C="bestFit",fallbackAxisSideDirection:T="none",flipAlignment:P=!0,...R}=d(e,t);if(null!=(n=u.arrow)&&n.alignmentOffset)return{};let M=h(l),j=m(v),O=h(v)===v,I=await (null==x.isRTL?void 0:x.isRTL(w.floating)),D=A||(O||!P?[y(v)]:function(e){let t=y(e);return[b(e),t,b(t)]}(v)),_="none"!==T;!A&&_&&D.push(...function(e,t,n,r){let i=f(e),o=function(e,t,n){let r=["left","right"],i=["right","left"];switch(e){case"top":case"bottom":if(n)return t?i:r;return t?r:i;case"left":case"right":return t?["top","bottom"]:["bottom","top"];default:return[]}}(h(e),"start"===n,r);return i&&(o=o.map(e=>e+"-"+i),t&&(o=o.concat(o.map(b)))),o}(v,P,T,I));let L=[v,...D],V=await S(t,R),$=[],z=(null==(r=u.flip)?void 0:r.overflows)||[];if(k&&$.push(V[M]),E){let e=function(e,t,n){void 0===n&&(n=!1);let r=f(e),i=p(m(e)),o=g(i),s="x"===i?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[o]>t.floating[o]&&(s=y(s)),[s,y(s)]}(l,c,I);$.push(V[e[0]],V[e[1]])}if(z=[...z,{placement:l,overflows:$}],!$.every(e=>e<=0)){let e=((null==(i=u.flip)?void 0:i.index)||0)+1,t=L[e];if(t){let n="alignment"===E&&j!==m(t),r=(null==(s=z[0])?void 0:s.overflows[0])>0;if(!n||r)return{data:{index:e,overflows:z},reset:{placement:t}}}let n=null==(o=z.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:o.placement;if(!n)switch(C){case"bestFit":{let e=null==(a=z.filter(e=>{if(_){let t=m(e.placement);return t===j||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:a[0];e&&(n=e);break}case"initialPlacement":n=v}if(l!==n)return{reset:{placement:n}}}return{}}}},ed=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){let{rects:n}=t,{strategy:r="referenceHidden",...i}=d(e,t);switch(r){case"referenceHidden":{let e=E(await S(t,{...i,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:A(e)}}}case"escaped":{let e=E(await S(t,{...i,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:A(e)}}}default:return{}}}}}
1,eh=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:r,placement:s,rects:a,platform:l,elements:u,middlewareData:c}=t,{element:h,padding:b=0}=d(e,t)||{};if(null==h)return{};let y=v(b),x={x:n,y:r},w=p(m(s)),k=g(w),S=await l.getDimensions(h),E="y"===w,A=E?"clientHeight":"clientWidth",C=a.reference[k]+a.reference[w]-x[w]-a.floating[k],T=x[w]-a.reference[w],P=await (null==l.getOffsetParent?void 0:l.getOffsetParent(h)),R=P?P[A]:0;R&&await (null==l.isElement?void 0:l.isElement(P))||(R=u.floating[A]||a.floating[k]);let M=R/2-S[k]/2-1,j=i(y[E?"top":"left"],M),O=i(y[E?"bottom":"right"],M),I=R-S[k]-O,D=R/2-S[k]/2+(C/2-T/2),_=o(j,i(D,I)),L=!c.arrow&&null!=f(s)&&D!==_&&a.reference[k]/2-(D<j?j:O)-S[k]/2<0,V=L?D<j?D-j:D-I:0;return{[w]:x[w]+V,data:{[w]:_,centerOffset:D-_-V,...L&&{alignmentOffset:V}},reset:L}}}),ef=(e,t,n)=>{let r=new Map,i={platform:ei,...n},o={...i.platform,_c:r};return k(e,t,{...i,platform:o})}},23633:(e,t,n)=>{e.exports=n(62962)("toUpperCase")},24323:(e,t,n)=>{"use strict";n.d(t,{BI:()=>I,Co:()=>W,EA:()=>J,IU:()=>Y,Ki:()=>m,Kp:()=>et,X:()=>f,dj:()=>eT,jT:()=>M,lG:()=>U,r5:()=>ee,s5:()=>g,sQ:()=>b,tE:()=>eA,tH:()=>y});var r=n(83060),i=n(95155),o=n(90330),s=n(12115),a=n(44987),l=n(43377),u=n(65432),c=n(76408),d=n(60760);function h(e){let t=requestAnimationFrame(e);return()=>{cancelAnimationFrame(t)}}function f(e){let t=null,n=h(()=>{t=h(e)});return()=>{t&&t(),n()}}function p(e){if(!(e.tabIndex>0||0===e.tabIndex&&null!==e.getAttribute("tabIndex")||((0,r.nY)(e)?!!e.href&&"ignore"!==e.rel:(0,r.A3)(e)?"hidden"!==e.type&&"file"!==e.type&&!e.disabled:!!((0,r.WE)(e)||(0,r.q4)(e)||(0,r.QY)(e))&&!e.disabled)))return!1;try{e.focus()}catch{}return document.activeElement===e}function g(e){for(let t=0;t<e.childNodes.length;t++){let n=e.childNodes[t];if((0,r.sb)(n)&&(p(n)||g(n)))return!0}return!1}function m(e){for(let t=e.childNodes.length-1;t>=0;t--){let n=e.childNodes[t];if((0,r.sb)(n)&&(p(n)||m(n)))return!0}return!1}function b(e){return(0,r.cF)(e)?._contentRect||null}class y extends s.Component{state={error:null};static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e,t){this.props.onCatch({error:e,info:t})}render(){let{error:e}=this.state;if(e){let t="string"==typeof e?.message?e.message:"Error";return(0,i.jsx)(r.Cy,{children:t})}return this.props.children}}let v=a.I4.div.withConfig({displayName:"StyledAutocomplete",componentId:"sc-1igauft-0"})`line-height:0;`,x=(0,a.I4)(r.az).withConfig({displayName:"ListBox",componentId:"sc-1igauft-1"})`& > ul{list-style:none;padding:0;margin:0;}`,w=(0,a.i7)` 2 from { 3 transform: rotate(0deg); 4 } 5 6 to { 7 transform: rotate(360deg); 8 } 9`,k=(0,a.I4)(o.Nl1).withConfig({displayName:"AnimatedSpinnerIcon",componentId:"sc-1igauft-2"})`animation:${w} 500ms linear infinite;`;function S(e){let t,n,o,s=(0,l.c)(11),{children:a,id:u,onSelect:c,selected:d,value:h}=e;s[0]!==c||s[1]!==h?(t=()=>{setTimeout(()=>{c(h)},0)},s[0]=c,s[1]=h,s[2]=t):t=s[2];let f=t;s[3]!==f?(n=e=>{"Enter"!==e.key||(0,r.zd)(e.currentTarget)||f()},s[3]=f,s[4]=n):n=s[4];let p=n;return s[5]!==a||s[6]!==f||s[7]!==p||s[8]!==u||s[9]!==d?(o=(0,i.jsx)("li",{"aria-selected":d,"data-ui":"AutocompleteOption",id:u,role:"option",onClick:f,onKeyDown:p,children:a}),s[5]=a,s[6]=f,s[7]=p,s[8]=u,s[9]=d,s[10]=o):o=s[10],o}function E(e,t){return"input/change"===t.type?{...e,activeValue:null,focused:!0,query:t.query}:"input/focus"===t.type?{...e,focused:!0}:"root/blur"===t.type?{...e,focused:!1,query:null}:"root/clear"===t.type?{...e,activeValue:null,query:null,value:null}:"root/escape"===t.type?{...e,focused:!1,query:null}:"root/open"===t.type?{...e,query:e.query||t.query}:"root/setActiveValue"===t.type?{...e,activeValue:t.value,listFocused:t.listFocused||e.listFocused}:"root/setListFocused"===t.type?{...e,listFocused:t.listFocused}:"value/change"===t.type?{...e,activeValue:t.value,query:null,value:t.value}:e}let A=["Control","Shift","Alt","Enter","Home","End","PageUp","PageDown","Meta","Tab","CapsLock"],C=["bottom-start","top-start"],T=(e,t)=>t?t.value:e,P=(e,t)=>t.value.toLowerCase().indexOf(e.toLowerCase())>-1,R=(0,s.forwardRef)(function(e,t){let{border:n=!0,customValidity:a,disabled:l,filterOption:u,fontSize:c=2,icon:d,id:f,listBox:p=r.sU,loading:m,onBlur:b,onChange:y,onFocus:w,onQueryChange:R,onSelect:M,openButton:j,openOnFocus:O,options:I,padding:D=3,popover:_=r.sU,prefix:L,radius:V=2,readOnly:$,relatedElements:z,renderOption:F,renderPopover:N,renderValue:B=T,suffix:H,value:U,...W}=e,[Y,G]=(0,s.useReducer)(E,{activeValue:U||null,focused:!1,listFocused:!1,query:null,value:U||null}),{activeValue:q,focused:K,listFocused:X,query:Z,value:J}=Y,Q=(0,s.useCallback)(({value:e})=>(0,i.jsx)(r.Zp,{"data-as":"button",padding:D,radius:2,tone:"inherit",children:(0,i.jsx)(r.EY,{size:c,textOverflow:"ellipsis",children:e})}),[c,D]),ee="function"==typeof F?F:Q,et="function"==typeof u?u:P,en=(0,s.useRef)(null),er=(0,s.useRef)(null),ei=(0,s.useRef)(null),eo=(0,s.useRef)(null),es=(0,s.useRef)(!1),ea=(0,s.useRef)(J),el=(0,s.useRef)(U),eu=(0,s.useRef)(!1);(0,s.useImperativeHandle)(t,()=>ei.current);let ec=`${f}-listbox`,ed=Array.isArray(I)?I:r.Ml,eh=(0,r.KC)(D),ef=(0,s.useMemo)(()=>null!==J?ed.find(e=>e.value===J):void 0,[ed,J]),ep=(0,s.useMemo)(()=>ed.filter(e=>!Z||et(Z,e)),[et,ed,Z]),eg=ep.length,em=q?`${f}-option-${q}`:void 0,eb=null!==Z&&m||K&&null!==Z,ey=(0,s.useCallback)(e=>{setTimeout(()=>{if(eu.current)return;let t=(z||[]).concat(en.current?[en.current]:[],er.current?[er.current]:[]),n=!1;if(document.activeElement){for(let e of t)if(e===document.activeElement||e.contains(document.activeElement)){n=!0;break}}!1===n&&(G({type:"root/blur"}),eu.current=!1,R&&R(null),b&&b(e))},0)},[b,R,z]),ev=(0,s.useCallback)(e=>{let t=eo.current,n=e.target instanceof HTMLElement?e.target:null,r=t?.contains(n)||!1;r!==es.current&&(es.current=r,G({type:"root/setListFocused",listFocused:r}))},[]),ex=(0,s.useCallback)(e=>{G({type:"value/change",value:e}),eu.current=!1,M&&M(e),ea.current=e,y&&y(e),R&&R(null),ei.current?.focus()},[y,M,R]),ew=(0,s.useCallback)(e=>{if("ArrowDown"===e.key){if(e.preventDefault(),!eg)return;let t=ep.find(e=>e.value===q),n=t?ep.indexOf(t):-1,r=ep[(n+1)%eg];r&&G({type:"root/setActiveValue",value:r.value,listFocused:!0});return}if("ArrowUp"===e.key){if(e.preventDefault(),!eg)return;let t=ep.find(e=>e.value===q),n=t?ep.indexOf(t):-1,r=ep[-1===n?eg-1:(eg+n-1)%eg];r&&G({type:"root/setActiveValue",value:r.value,listFocused:!0});return}if("Escape"===e.key){G({type:"root/escape"}),eu.current=!1,R&&R(null),ei.current?.focus();return}let t=e.target,n=eo.current;
9if((n===t||n?.contains(t))&&!A.includes(e.key))return void ei.current?.focus()},[q,ep,eg,R]),ek=(0,s.useCallback)(e=>{let t=e.currentTarget.value;G({type:"input/change",query:t}),R&&R(t)},[R]),eS=(0,s.useCallback)(()=>{G({type:"root/open",query:J?B(J,ef):""})},[ef,B,J]),eE=(0,s.useCallback)(e=>{K||(G({type:"input/focus"}),w&&w(e),O&&eS())},[K,w,O,eS]),eA=(0,s.useCallback)(()=>{eu.current=!0},[]),eC=(0,s.useCallback)(()=>{eu.current=!1},[]),eT=(0,s.useCallback)(()=>{G({type:"root/clear"}),ea.current="",y&&y(""),R&&R(null),ei.current?.focus()},[y,R]),eP=(0,s.useCallback)(()=>{G({type:"input/focus"})},[]);(0,s.useEffect)(()=>{if(U!==el.current){el.current=U,void 0!==U&&(G({type:"value/change",value:U}),ea.current=U);return}U!==ea.current&&(ea.current=U||null,G({type:"value/change",value:U||null}))},[U]),(0,s.useEffect)(()=>{!K&&ea.current&&G({type:"root/setActiveValue",value:ea.current})},[K]),(0,s.useEffect)(()=>{let e=eo.current;if(!e)return;let t=ep.find(e=>e.value===q);if(t){let n=ep.indexOf(t),r=e.childNodes[n];if(r){if(document.activeElement&&r.contains(document.activeElement))return;g(r)}}},[q,ep]);let eR=(0,s.useMemo)(()=>{if(!m&&!l&&J)return{"aria-label":"Clear",onFocus:eP}},[l,eP,m,J]),eM=(0,s.useMemo)(()=>eh.map(e=>0===e?0:1===e||2===e?1:e-2),[eh]),ej=(0,s.useMemo)(()=>eh.map(e=>Math.max(e-1,0)),[eh]),eO=(0,s.useMemo)(()=>"object"==typeof j?j:r.sU,[j]),eI=(0,s.useCallback)(e=>{eS(),eO.onClick&&eO.onClick(e),h(()=>ei.current?.focus())},[eO,eS]),eD=(0,s.useMemo)(()=>l||$||!j?void 0:(0,i.jsx)(r.az,{"aria-hidden":eb,padding:eM,children:(0,i.jsx)(r.$n,{"aria-label":"Open",disabled:eb,fontSize:c,icon:o.D3D,mode:"bleed",padding:ej,...eO,onClick:eI})}),[l,eb,c,eI,j,eM,ej,eO,$]),e_=(0,s.useMemo)(()=>null===Z?null!==J?B(J,ef):"":Z,[ef,Z,B,J]),eL=(0,i.jsx)(r.ks,{...W,"aria-activedescendant":em,"aria-autocomplete":"list","aria-expanded":eb,"aria-owns":ec,autoCapitalize:"off",autoComplete:"off",autoCorrect:"off",border:n,clearButton:eR,customValidity:a,disabled:l,fontSize:c,icon:d,iconRight:m&&k,id:f,inputMode:"search",onChange:ek,onClear:eT,onFocus:eE,padding:eh,prefix:L,radius:V,readOnly:$,ref:ei,role:"combobox",spellCheck:!1,suffix:H||eD,value:e_}),eV=(0,s.useCallback)(e=>{"Tab"===e.key&&X&&ei.current?.focus()},[X]),e$=(0,s.useMemo)(()=>0===ep.length?null:(0,i.jsx)(x,{"data-ui":"AutoComplete__results",onKeyDown:eV,padding:1,...p,tabIndex:-1,children:(0,i.jsx)(r.BJ,{as:"ul","aria-multiselectable":!1,"data-ui":"AutoComplete__resultsList",id:ec,ref:eo,role:"listbox",space:1,children:ep.map(e=>{let t=null!==q?e.value===q:ef===e;return(0,i.jsx)(S,{id:`${f}-option-${e.value}`,onSelect:ex,selected:t,value:e.value,children:(0,s.cloneElement)(ee(e),{disabled:m,selected:t,tabIndex:X&&t?0:-1})},e.value)})})}),[q,ef,ep,ex,eV,f,p,ec,X,m,ee]),ez=(0,s.useMemo)(()=>N?N({content:e$,hidden:!eb,inputElement:ei.current,onMouseEnter:eA,onMouseLeave:eC},er):0===eg?null:(0,i.jsx)(r.AM,{arrow:!1,constrainSize:!0,content:e$,fallbackPlacements:C,matchReferenceWidth:!0,onMouseEnter:eA,onMouseLeave:eC,open:eb,overflow:"auto",placement:"bottom-start",portal:!0,radius:V,ref:er,referenceElement:ei.current,..._}),[e$,eb,eg,eA,eC,_,V,N]);return(0,i.jsxs)(v,{"data-ui":"Autocomplete",onBlur:ey,onFocus:ev,onKeyDown:ew,ref:en,children:[eL,ez]})});R.displayName="ForwardRef(Autocomplete)";let M=R,j=a.I4.ol.withConfig({displayName:"StyledBreadcrumbs",componentId:"sc-1es8h8q-0"})`margin:0;padding:0;display:flex;list-style:none;align-items:center;white-space:nowrap;line-height:0;`,O=(0,a.I4)(r.$n).withConfig({displayName:"ExpandButton",componentId:"sc-1es8h8q-1"})`appearance:none;margin:-4px;`,I=(0,s.forwardRef)(function(e,t){let{children:n,maxLength:o,separator:a,space:l=2,...u}
9=e,c=(0,r.KC)(l),[d,h]=(0,s.useState)(!1),f=(0,s.useRef)(null),p=(0,s.useRef)(null),g=(0,s.useCallback)(()=>h(!1),[]),m=(0,s.useCallback)(()=>h(!0),[]);(0,r.PR)(g,()=>[f.current,p.current]);let b=(0,s.useMemo)(()=>s.Children.toArray(n).filter(s.isValidElement),[n]),y=(0,s.useMemo)(()=>{let e=b.length;if(o&&e>o){let t=Math.ceil(o/2),n=Math.floor(o/2);return[...b.slice(0,t-1),(0,i.jsx)(r.AM,{constrainSize:!0,content:(0,i.jsx)(r.BJ,{as:"ol",overflow:"auto",padding:c,space:c,children:b.slice(t-1,e-n)}),open:d,placement:"top",portal:!0,ref:p,children:(0,i.jsx)(O,{fontSize:1,mode:"bleed",onClick:d?g:m,padding:1,ref:f,selected:d,text:"â¦"})},"button"),...b.slice(e-n)]}return b},[g,m,o,d,b,c]);return(0,i.jsx)(j,{"data-ui":"Breadcrumbs",...u,ref:t,children:y.map((e,t)=>(0,i.jsxs)(s.Fragment,{children:[t>0&&(0,i.jsx)(r.az,{"aria-hidden":!0,as:"li",paddingX:c,children:a||(0,i.jsx)(r.EY,{muted:!0,children:"/"})}),(0,i.jsx)(r.az,{as:"li",children:e})]},t))})});I.displayName="ForwardRef(Breadcrumbs)";let D=(0,r.bz)("@sanity/ui/context/dialog",{version:0});function _(e,t,n){return!e||!t||(0,r.Q3)(e,n)||(0,r.Q3)(t,n)}let L=(0,a.I4)(r.Wd).withConfig({displayName:"StyledDialog",componentId:"sc-4n4xb3-0"})(r.l_,function({theme:e}){let{color:t}=(0,u.JW)(e);return{"&:not([hidden])":{display:"flex"},top:0,left:0,right:0,bottom:0,alignItems:"center",justifyContent:"center",outline:"none",background:t.backdrop}},function(e){let{media:t}=(0,u.JW)(e.theme);return(0,r.U1)(t,e.$position,e=>({"&&":{position:e}}))},function(e){return e.$animate?(0,a.AH)` 10 @keyframes zoomIn { 11 from { 12 opacity: 0; 13 transform: scale(0.95); 14 } 15 to { 16 opacity: 1; 17 transform: scale(1); 18 } 19 } 20 @keyframes fadeIn { 21 from { 22 opacity: 0; 23 } 24 to { 25 opacity: 1; 26 } 27 } 28 29 animation: fadeIn 200ms ease-out; 30 // Animates the dialog card. 31 & > [data-ui='DialogCard'] { 32 animation: zoomIn 200ms ease-out; 33 } 34 `:(0,a.AH)``}),V=(0,a.I4)(r.mc).withConfig({displayName:"DialogContainer",componentId:"sc-4n4xb3-1"})`&:not([hidden]){display:flex;}width:100%;height:100%;flex-direction:column;align-items:center;justify-content:center;`,$=(0,a.I4)(r.Zp).withConfig({displayName:"DialogCardRoot",componentId:"sc-4n4xb3-2"})`&:not([hidden]){display:flex;}width:100%;min-height:0;max-height:100%;overflow:hidden;overflow:clip;`,z=(0,a.I4)(r.so).withConfig({displayName:"DialogLayout",componentId:"sc-4n4xb3-3"})`flex:1;min-height:0;width:100%;`,F=(0,a.I4)(r.az).withConfig({displayName:"DialogHeader",componentId:"sc-4n4xb3-4"})`position:relative;z-index:2;`,N=(0,a.I4)(r.az).withConfig({displayName:"DialogContent",componentId:"sc-4n4xb3-5"})`position:relative;z-index:1;overflow:auto;outline:none;`,B=(0,a.I4)(r.az).withConfig({displayName:"DialogFooter",componentId:"sc-4n4xb3-6"})`position:relative;z-index:3;`,H=(0,s.forwardRef)(function(e,t){let n,a,u,c,d,h,f,p,m,b,y,v,x,w=(0,l.c)(38),{__unstable_autoFocus:k,__unstable_hideCloseButton:S,children:E,contentRef:A,footer:C,header:T,id:P,onClickOutside:R,onClose:M,portal:j,radius:O,scheme:I,shadow:D,width:L}=e,H=(0,r.WP)(),U=j?H.elements?.[j]||null:H.element,W=(0,r.$w)().element,Y=(0,r.KC)(O),G=(0,r.KC)(D),q=(0,r.KC)(L),K=(0,s.useRef)(null),X=(0,s.useRef)(null),{isTopLayer:Z}=(0,r.Z4)(),J=`${P}_label`,Q=!!M&&!1===S,ee=!!T||Q;return w[0]===Symbol.for("react.memo_cache_sentinel")?(n=()=>K.current,w[0]=n):n=w[0],(0,s.useImperativeHandle)(t,n),w[1]===Symbol.for("react.memo_cache_sentinel")?(a=()=>X.current,w[1]=a):a=w[1],(0,s.useImperativeHandle)(A,a),w[2]!==k?(u=()=>{k&&K.current&&g(K.current)},c=[k,K],w[2]=k,w[3]=u,w[4]=c):(u=w[3],c=w[4]),(0,s.useEffect)(u,c),w[5]!==W||w[6]!==Z||w[7]!==M||w[8]!==U?(d=e=>{if(!Z||!M)return;let t=document.activeElement;t&&!_(W,U,t)||"Escape"===e.key&&(e.preventDefault(),e.stopPropagation(),M())},w[5]=W,w[6]=Z,w[7]=M,w[8]=U,w[9]=d):d=w[9],(0,r.Pm)(d),w[10]!==W||w[11]!==Z||w[12]!==R||w[13]!==U?(h=Z&&R&&(e=>{let t=e.target;t&&!_(W,U,t)||R()}),w[10]=W,w[11]=Z,w[12]=R,w[13]=U,w[14]=h):h=w[14],w[15]===Symbol.for("react.memo_cache_sentinel")?(f=()=>[K.current],w[15]=f):f=w[15],(0,r.PR)(h,f),w[16]!==T||w[17]!==J||w[18]!==M||w[19]!==Q||w[20]!==ee?(p=ee&&(0,i.jsx)(F,{children:(0,i.jsxs)(r.so,{align:"flex-start",padding:3,children:[(0,i.jsx)(r.az,{flex:1,padding:2,children:T&&(0,i.jsx)(r.EY,{id:J,size:1,weight:"semibold",children:T})}),Q&&(0,i.jsx)(r.az,{flex:"none",children:(0,i.jsx)(r.$n,{"aria-label":"Close dialog",disabled:!M,icon:o.USm,mode:"bleed",onClick:M,padding:2})})]})}),w[16]=T,w[17]=J,w[18]=M,w[19]=Q,w[20]=ee,w[21]=p):p=w[21],w[22]!==E?(m=(0,i.jsx)(N,{flex:1,ref:X,tabIndex:-1,
34children:E}),w[22]=E,w[23]=m):m=w[23],w[24]!==C?(b=C&&(0,i.jsx)(B,{children:C}),w[24]=C,w[25]=b):b=w[25],w[26]!==p||w[27]!==m||w[28]!==b?(y=(0,i.jsxs)(z,{direction:"column",children:[p,m,b]}),w[26]=p,w[27]=m,w[28]=b,w[29]=y):y=w[29],w[30]!==Y||w[31]!==I||w[32]!==G||w[33]!==y?(v=(0,i.jsx)($,{radius:Y,ref:K,scheme:I,shadow:G,children:y}),w[30]=Y,w[31]=I,w[32]=G,w[33]=y,w[34]=v):v=w[34],w[35]!==v||w[36]!==q?(x=(0,i.jsx)(V,{"data-ui":"DialogCard",width:q,children:v}),w[35]=v,w[36]=q,w[37]=x):x=w[37],x});H.displayName="ForwardRef(DialogCard)";let U=(0,s.forwardRef)(function(e,t){let n,o,a,u,c,d,h,f,p,b,y,v,x,w,k,S,E,A,C,T,P,R,M,j,O,I,V,$,z=(0,l.c)(60),F=(0,s.useContext)(D),{layer:N}=(0,r.M4)();z[0]!==e?({__unstable_autoFocus:k,__unstable_hideCloseButton:S,cardRadius:E,cardShadow:A,children:a,contentRef:u,footer:c,header:d,id:h,onActivate:f,onClickOutside:p,onClose:b,onFocus:y,padding:C,portal:v,position:n,scheme:w,width:T,zOffset:o,animate:P,...x}=e,z[0]=e,z[1]=n,z[2]=o,z[3]=a,z[4]=u,z[5]=c,z[6]=d,z[7]=h,z[8]=f,z[9]=p,z[10]=b,z[11]=y,z[12]=v,z[13]=x,z[14]=w,z[15]=k,z[16]=S,z[17]=E,z[18]=A,z[19]=C,z[20]=T,z[21]=P):(n=z[1],o=z[2],a=z[3],u=z[4],c=z[5],d=z[6],h=z[7],f=z[8],p=z[9],b=z[10],y=z[11],v=z[12],x=z[13],w=z[14],k=z[15],S=z[16],E=z[17],A=z[18],C=z[19],T=z[20],P=z[21]);let B=void 0===k||k,U=void 0!==S&&S,W=void 0===E?4:E,Y=void 0===A?3:A,G=void 0===C?3:C,q=void 0===T?0:T,K=void 0!==P&&P,X=n??(F.position||"fixed"),Z=o??(F.zOffset||N.dialog.zOffset),J=!(0,r.jt)()&&K,Q=(0,r.WP)(),ee=v?Q.elements?.[v]||null:Q.element,et=(0,r.$w)().element,en=(0,r.KC)(W),er=(0,r.KC)(G),ei=(0,r.KC)(X),eo=(0,r.KC)(q),es=(0,r.KC)(Z),ea=(0,s.useRef)(null),el=(0,s.useRef)(null),eu=(0,s.useRef)(null),ec=(0,s.useRef)(null);z[22]!==y?(R=e=>{y?.(e);let t=e.target,n=eu.current;return n&&t===ea.current?void m(n):n&&t===el.current?void g(n):void((0,r.sb)(e.target)&&(ec.current=e.target))},z[22]=y,z[23]=R):R=z[23];let ed=R,eh=`${h}_label`,ef=(0,s.useRef)(void 0);z[24]!==et||z[25]!==ee?(M=()=>{ef.current&&clearTimeout(ef.current),ef.current=setTimeout(()=>{let e=document.activeElement;if(e&&!_(et,ee,e)){let e=ec.current;if(!e||!document.body.contains(e)){let e=eu.current;e&&g(e);return}
34e.focus()}},0)},z[24]=et,z[25]=ee,z[26]=M):M=z[26];let ep=M;return z[27]===Symbol.for("react.memo_cache_sentinel")?(j=(0,i.jsx)("div",{ref:ea,tabIndex:0}),z[27]=j):j=z[27],z[28]!==B||z[29]!==en||z[30]!==Y||z[31]!==a||z[32]!==u||z[33]!==c||z[34]!==d||z[35]!==U||z[36]!==h||z[37]!==p||z[38]!==b||z[39]!==v||z[40]!==w||z[41]!==eo?(O=(0,i.jsx)(H,{__unstable_autoFocus:B,__unstable_hideCloseButton:U,contentRef:u,footer:c,header:d,id:h,onClickOutside:p,onClose:b,portal:v,radius:en,ref:eu,scheme:w,shadow:Y,width:eo,children:a}),z[28]=B,z[29]=en,z[30]=Y,z[31]=a,z[32]=u,z[33]=c,z[34]=d,z[35]=U,z[36]=h,z[37]=p,z[38]=b,z[39]=v,z[40]=w,z[41]=eo,z[42]=O):O=z[42],z[43]===Symbol.for("react.memo_cache_sentinel")?(I=(0,i.jsx)("div",{ref:el,tabIndex:0}),z[43]=I):I=z[43],z[44]!==J||z[45]!==ed||z[46]!==ep||z[47]!==h||z[48]!==eh||z[49]!==f||z[50]!==er||z[51]!==ei||z[52]!==t||z[53]!==x||z[54]!==O||z[55]!==es?(V=(0,i.jsxs)(L,{...x,$animate:J,$padding:er,$position:ei,"aria-labelledby":eh,"aria-modal":!0,"data-ui":"Dialog",id:h,onActivate:f,onClick:ep,onFocus:ed,ref:t,role:"dialog",zOffset:es,children:[j,O,I]}),z[44]=J,z[45]=ed,z[46]=ep,z[47]=h,z[48]=eh,z[49]=f,z[50]=er,z[51]=ei,z[52]=t,z[53]=x,z[54]=O,z[55]=es,z[56]=V):V=z[56],z[57]!==v||z[58]!==V?($=(0,i.jsx)(r.ZL,{__unstable_name:v,children:V}),z[57]=v,z[58]=V,z[59]=$):$=z[59],$});function W(e){let t,n,r,o=(0,l.c)(6),{children:s,position:a,zOffset:u}=e;return o[0]!==a||o[1]!==u?(n={version:0,position:a,zOffset:u},o[0]=a,o[1]=u,o[2]=n):n=o[2],t=n,o[3]!==s||o[4]!==t?(r=(0,i.jsx)(D.Provider,{value:t,children:s}),o[3]=s,o[4]=t,o[5]=r):r=o[5],r}U.displayName="ForwardRef(Dialog)",W.displayName="DialogProvider";let Y=(0,s.forwardRef)(function(e,t){let n,o,a,u,c,d,h,f,p,g,m,b,y,v,x,w,k,S,E,A,C,T,P,R,M,j=(0,l.c)(62),{__unstable_disableRestoreFocusOnClose:O,boundaryElement:I,button:D,id:_,menu:L,onClose:V,onOpen:$,placement:z,popoverScheme:F,portal:N,popover:B,popoverRadius:H,preventOverflow:U}=e,W=void 0!==O&&O,Y=void 0===N||N,[q,K]=(0,s.useState)(!1),[X,Z]=(0,s.use
34State)(null),[J,Q]=(0,s.useState)(null);j[0]===Symbol.for("react.memo_cache_sentinel")?(n=[],j[0]=n):n=j[0];let[ee,et]=(0,s.useState)(n),en=(0,s.useRef)(q);j[1]!==$||j[2]!==q?(o=()=>{$&&q&&!en.current&&$()},a=[$,q],j[1]=$,j[2]=q,j[3]=o,j[4]=a):(o=j[3],a=j[4]),(0,s.useEffect)(o,a),j[5]!==V||j[6]!==q?(u=()=>{V&&!q&&en.current&&V()},c=[V,q],j[5]=V,j[6]=q,j[7]=u,j[8]=c):(u=j[7],c=j[8]),(0,s.useEffect)(u,c),j[9]!==q?(d=()=>{en.current=q},h=[q],j[9]=q,j[10]=d,j[11]=h):(d=j[10],h=j[11]),(0,s.useEffect)(d,h),j[12]===Symbol.for("react.memo_cache_sentinel")?(f=()=>{K(G),Z(null)},j[12]=f):f=j[12];let er=f;j[13]!==q?(p=e=>{q&&e.preventDefault()},j[13]=q,j[14]=p):p=j[14];let ei=p;j[15]===Symbol.for("react.memo_cache_sentinel")?(g=e=>{if("ArrowDown"===e.key||"Enter"===e.key||" "===e.key){e.preventDefault(),K(!0),Z("first");return}if("ArrowUp"===e.key){e.preventDefault(),K(!0),Z("last");return}},j[15]=g):g=j[15];let eo=g;j[16]!==J||j[17]!==ee?(m=e=>{let t=e.target;if(t instanceof Node&&!(J&&(t===J||J.contains(t)))){for(let e of ee)if(t===e||e.contains(t))return;K(!1)}},j[16]=J,j[17]=ee,j[18]=m):m=j[18];let es=m;j[19]!==J||j[20]!==W?(b=()=>{K(!1),!W&&J&&J.focus()},j[19]=J,j[20]=W,j[21]=b):b=j[21];let ea=b;j[22]!==ee?(y=e=>{let t=e.relatedTarget;if(t instanceof Node){for(let e of ee)if(e===t||e.contains(t))return;K(!1)}},j[22]=ee,j[23]=y):y=j[23];let el=y;j[24]!==J||j[25]!==W?(v=()=>{K(!1),!W&&J&&J.focus()},j[24]=J,j[25]=W,j[26]=v):v=j[26];let eu=v;j[27]===Symbol.for("react.memo_cache_sentinel")?(x=e=>(et(t=>t.concat([e])),()=>et(t=>t.filter(t=>t!==e))),j[27]=x):x=j[27];let ec=x;j[28]!==J||j[29]!==el||j[30]!==eu||j[31]!==es||j[32]!==ea||j[33]!==_||j[34]!==L||j[35]!==X?(w=L&&(0,s.cloneElement)(L,{"aria-labelledby":_,onBlurCapture:el,onClickOutside:es,onEscape:ea,onItemClick:eu,originElement:J,registerElement:ec,shouldFocus:X}),j[28]=J,j[29]=el,j[30]=eu,j[31]=es,j[32]=ea,j[33]=_,j[34]=L,j[35]=X,j[36]=w):w=j[36];let ed=w;return j[37]!==D||j[38]!==ei||j[39]!==_||j[40]!==q?(S=D&&(0,s.cloneElement)(D,{"data-ui":"MenuButton",id:_,onClick:er,onKeyDown:eo,onMouseDown:ei,"aria-haspopup":!0,"aria-expanded":q,ref:Q,selected:D.props.selected??q}),j[37]=D,j[38]=ei,j[39]=_,j[40]=q,j[41]=S):S=j[41],k=S,j[42]!==J?(E=()=>J,A=[J],j[42]=J,j[43]=E,j[44]=A):(E=j[43],A=j[44]),(0,s.useImperativeHandle)(t,E,A),j[45]!==B?(T=B||{},j[45]=B,j[46]=T):T=j[46],j[47]!==I||j[48]!==z||j[49]!==H||j[50]!==F||j[51]!==Y||j[52]!==U||j[53]!==T?(P={boundaryElement:I,overflow:"auto",placement:z,portal:Y,preventOverflow:U,radius:H,scheme:F,...T},j[47]=I,j[48]=z,j[49]=H,j[50]=F,j[51]=Y,j[52]=U,j[53]=T,j[54]=P):P=j[54],C=P,j[55]!==k?(R=k||(0,i.jsx)(i.Fragment,{}),j[55]=k,j[56]=R):R=j[56],j[57]!==ed||j[58]!==q||j[59]!==C||j[60]!==R?(M=(0,i.jsx)(r.AM,{"data-ui":"MenuButton__popover",...C,content:ed,open:q,children:R}),j[57]=ed,j[58]=q,j[59]=C,j[60]=R,j[61]=M):M=j[61],M});function G(e){return!e}Y.displayName="ForwardRef(MenuButton)";let q=(0,a.i7)` 35 0% { 36 background-position: 100%; 37 } 38 100% { 39 background-position: -100%; 40 } 41`,K=(0,a.AH)` 42 background-image: linear-gradient( 43 to right, 44 var(--card-skeleton-color-from), 45 var(--card-skeleton-color-to), 46 var(--card-skeleton-color-from), 47 var(--card-skeleton-color-from), 48 var(--card-skeleton-color-from) 49 ); 50 background-position: 100%; 51 background-size: 200% 100%; 52 background-attachment: fixed; 53 animation-name: ${q}; 54 animation-timing-function: ease-in-out; 55 animation-iteration-count: infinite; 56 animation-duration: 2000ms; 57`,X=(0,a.AH)` 58 opacity: ${({$visible:e})=>+!!e}; 59 transition: opacity 200ms ease-in; 60 61 @media screen and (prefers-reduced-motion: no-preference) { 62 ${({$animated:e})=>e?K:(0,a.AH)` 63 background-color: var(--card-skeleton-color-from); 64 `} 65 } 66 67 @media screen and (prefers-reduced-motion: reduce) { 68 background-color: var(--card-skeleton-color-from); 69 } 70`,Z=(0,a.I4)(r.az).withConfig({displayName:"StyledSkeleton",componentId:"sc-ebtpni-0"})(r.gK,X),J=(0,s.forwardRef)(function(e,t){let n,o,a,u,c,d,h,f=(0,l.c)(14);f[0]!==e?({animated:u,delay:n,radius:o,...a}=e,f[0]=e,f[1]=n,f[2]=o,f[3]=a,f[4]=u):(n=f[1],o=f[2],a=f[3],u=f[4]);
70let p=void 0!==u&&u,[g,m]=(0,s.useState)(!n);f[5]!==n?(c=()=>{if(!n)return m(!0);let e=setTimeout(()=>{m(!0)},n);return()=>{clearTimeout(e)}},d=[n],f[5]=n,f[6]=c,f[7]=d):(c=f[6],d=f[7]),(0,s.useEffect)(c,d);let b=(0,r.KC)(o);return f[8]!==p||f[9]!==t||f[10]!==a||f[11]!==b||f[12]!==g?(h=(0,i.jsx)(Z,{...a,$animated:p,$radius:b,$visible:g,ref:t}),f[8]=p,f[9]=t,f[10]=a,f[11]=b,f[12]=g,f[13]=h):h=f[13],h});J.displayName="ForwardRef(Skeleton)";let Q=(0,a.I4)(J).withConfig({displayName:"StyledSkeleton",componentId:"sc-2p7a1v-0"})(e=>{let{$size:t,$style:n}=e,{font:i,media:o}=(0,u.JW)(e.theme),s=i[n];return(0,r.U1)(o,t,e=>{let t=s.sizes[e];return{height:t.lineHeight-t.ascenderHeight-t.descenderHeight}})}),ee=(0,s.forwardRef)(function(e,t){let n,o,s,a=(0,l.c)(7);a[0]!==e?({size:o,...n}=e,a[0]=e,a[1]=n,a[2]=o):(n=a[1],o=a[2]);let u=(0,r.KC)(void 0===o?2:o);return a[3]!==u||a[4]!==t||a[5]!==n?(s=(0,i.jsx)(Q,{...n,$size:u,ref:t,$style:"text"}),a[3]=u,a[4]=t,a[5]=n,a[6]=s):s=a[6],s});ee.displayName="ForwardRef(TextSkeleton)",(0,s.forwardRef)(function(e,t){let n,o,s,a=(0,l.c)(7);a[0]!==e?({size:o,...n}=e,a[0]=e,a[1]=n,a[2]=o):(n=a[1],o=a[2]);let u=(0,r.KC)(void 0===o?2:o);return a[3]!==u||a[4]!==t||a[5]!==n?(s=(0,i.jsx)(Q,{...n,$size:u,ref:t,$style:"label"}),a[3]=u,a[4]=t,a[5]=n,a[6]=s):s=a[6],s}).displayName="ForwardRef(LabelSkeleton)",(0,s.forwardRef)(function(e,t){let n,o,s,a=(0,l.c)(7);a[0]!==e?({size:o,...n}=e,a[0]=e,a[1]=n,a[2]=o):(n=a[1],o=a[2]);let u=(0,r.KC)(void 0===o?2:o);return a[3]!==u||a[4]!==t||a[5]!==n?(s=(0,i.jsx)(Q,{...n,$size:u,ref:t,$style:"heading"}),a[3]=u,a[4]=t,a[5]=n,a[6]=s):s=a[6],s}).displayName="ForwardRef(HeadingSkeleton)",(0,s.forwardRef)(function(e,t){let n,o,s,a=(0,l.c)(7);a[0]!==e?({size:o,...n}=e,a[0]=e,a[1]=n,a[2]=o):(n=a[1],o=a[2]);let u=(0,r.KC)(void 0===o?2:o);return a[3]!==u||a[4]!==t||a[5]!==n?(s=(0,i.jsx)(Q,{...n,$size:u,ref:t,$style:"code"}),a[3]=u,a[4]=t,a[5]=n,a[6]=s):s=a[6],s}).displayName="ForwardRef(CodeSkeleton)";let et=(0,s.forwardRef)(function(e,t){let n,o,s,a=(0,l.c)(9);a[0]!==e?({flex:n,...o}=e,a[0]=e,a[1]=n,a[2]=o):(n=a[1],o=a[2]);let u=void 0===e.tabIndex?0:e.tabIndex;return a[3]!==n||a[4]!==e.children||a[5]!==t||a[6]!==o||a[7]!==u?(s=(0,i.jsx)(r.az,{"data-ui":"TabPanel",...o,flex:n,ref:t,role:"tabpanel",tabIndex:u,children:e.children}),a[3]=n,a[4]=e.children,a[5]=t,a[6]=o,a[7]=u,a[8]=s):s=a[8],s});et.displayName="ForwardRef(TabPanel)";let en={error:"critical",warning:"caution",success:"positive",info:"neutral"},er={error:"critical",warning:"caution",success:"positive",info:"neutral"},ei=(0,a.I4)(r.so).withConfig({displayName:"TextBox",componentId:"sc-1rr7rxo-0"})`overflow-x:auto;`,eo=(0,a.I4)(r.Zp).withConfig({displayName:"StyledToast",componentId:"sc-1rr7rxo-1"})`pointer-events:all;width:100%;position:relative;overflow:hidden;overflow:clip;&[data-has-duration]{padding-bottom:calc(${2}px / 2);}`,es=a.I4.div.withConfig({displayName:"LoadingBar",componentId:"sc-1rr7rxo-2"})`display:flex;position:absolute;bottom:0px;top:0px;left:0px;right:0px;pointer-events:none;z-index:-1;overflow:hidden;overflow:clip;background:transparent;align-items:flex-end;will-change:opacity;`,ea=(0,a.I4)(r.Zp).withConfig({displayName:"LoadingBarMask",componentId:"sc-1rr7rxo-3"})`position:absolute;top:0;left:-${2}px;right:-${2}px;bottom:${2}px;z-index:1;`,el=(0,a.I4)(r.Zp).withConfig({displayName:"LoadingBarProgress",componentId:"sc-1rr7rxo-4"})`display:block;height:100%;width:100%;transform-origin:0% 50%;background-color:${e=>{let{color:t}=(0,u.JW)(e.theme);return t.button.default[e.tone].enabled.bg}};`,eu={error:"alert",warning:"alert",success:"alert",info:"alert"};function ec(e){let t,n,s,a,u,c,d,h,f,p,g,m,b,y,v,x,w,k,S,E,A=(0,l.c)(50);A[0]!==e?({closable:t,description:n,duration:s,onClose:a,radius:d,title:h,status:c,updatedAt:f,...u}=e,A[0]=e,A[1]=t,A[2]=n,A[3]=s,A[4]=a,A[5]=u,A[6]=c,A[7]=d,A[8]=h,A[9]=f):(t=A[1],n=A[2],s=A[3],a=A[4],u=A[5],c=A[6],d=A[7],h=A[8],f=A[9]);let C=void 0===d?3:d,T=c?en[c]:"default",P=c?er[c]:"default",R=c?eu[c]:"status",M=.26*!(0,r.jt)();A[10]!==M?(p=M?{type:"spring",visualDuration:M,bounce:.25}:{duration:0}
70,A[10]=M,A[11]=p):p=A[11];let j=p,O=s&&isFinite(s)&&s<20736e5;A[12]===Symbol.for("react.memo_cache_sentinel")?(g=["hidden","initial"],A[12]=g):g=A[12];let I=g;A[13]===Symbol.for("react.memo_cache_sentinel")?(m=["visible","slideIn"],A[13]=m):m=A[13];let D=m;A[14]===Symbol.for("react.memo_cache_sentinel")?(b=["hidden","slideOut"],A[14]=b):b=A[14];let _=b,L=O?"":void 0;return A[15]!==h?(y=h&&(0,i.jsx)(r.EY,{size:1,weight:"medium",children:h}),A[15]=h,A[16]=y):y=A[16],A[17]!==n||A[18]!==j?(v=n&&(0,i.jsx)(eg,{muted:!0,size:1,variants:eh,transition:j,children:n}),A[17]=n,A[18]=j,A[19]=v):v=A[19],A[20]!==y||A[21]!==v?(x=(0,i.jsx)(ei,{flex:1,padding:3,children:(0,i.jsxs)(r.BJ,{space:3,children:[y,v]})}),A[20]=y,A[21]=v,A[22]=x):x=A[22],A[23]!==P||A[24]!==t||A[25]!==a?(w=t&&(0,i.jsx)(r.az,{padding:1,children:(0,i.jsx)(r.$n,{as:"button",icon:o.USm,mode:"bleed",padding:2,tone:P,onClick:a,style:{verticalAlign:"top"}})}),A[23]=P,A[24]=t,A[25]=a,A[26]=w):w=A[26],A[27]!==x||A[28]!==w||A[29]!==j?(k=(0,i.jsxs)(ep,{align:"flex-start",variants:eh,transition:j,children:[x,w]}),A[27]=x,A[28]=w,A[29]=j,A[30]=k):k=A[30],A[31]!==T||A[32]!==s||A[33]!==O||A[34]!==a||A[35]!==C||A[36]!==j||A[37]!==f||A[38]!==M?(S=O&&(0,i.jsxs)(em,{variants:eh,transition:j,children:[(0,i.jsx)(ea,{tone:T,radius:C}),(0,i.jsx)(eb,{tone:T,initial:{scaleX:0},animate:{scaleX:1},transition:{delay:M,duration:s/1e3,ease:"linear"},onAnimationComplete:a},`progress-${f}`)]}),A[31]=T,A[32]=s,A[33]=O,A[34]=a,A[35]=C,A[36]=j,A[37]=f,A[38]=M,A[39]=S):S=A[39],A[40]!==T||A[41]!==C||A[42]!==u||A[43]!==R||A[44]!==k||A[45]!==S||A[46]!==L||A[47]!==j||A[48]!==M?(E=(0,i.jsxs)(ef,{"data-ui":"Toast",role:R,...u,"data-has-duration":L,
70custom:M,radius:C,shadow:2,tone:T,forwardedAs:"li",layout:"position",variants:ed,initial:I,animate:D,exit:_,transition:j,children:[k,S]}),A[40]=T,A[41]=C,A[42]=u,A[43]=R,A[44]=k,A[45]=S,A[46]=L,A[47]=j,A[48]=M,A[49]=E):E=A[49],E}ec.displayName="Toast";let ed={initial:{y:32,scale:.5,zIndex:1},hidden:{opacity:0},visible:e=>e?{opacity:1,transition:{when:"beforeChildren",staggerChildren:e/3,duration:e/3}}:{opacity:1},slideIn:{y:0,scale:1},slideOut:{zIndex:0,scale:.75}},eh={initial:{willChange:"transform"},hidden:{opacity:0},visible:{opacity:1}},ef=c.P.create(eo),ep=c.P.create(r.so),eg=c.P.create(r.EY),em=c.P.create(es),eb=c.P.create(el);function ey(){return!1}function ev(){return!0}let ex=()=>()=>{},ew=(0,r.bz)("@sanity/ui/context/toast",null);function ek(e){let t,n,o=(0,l.c)(9),{children:s,padding:a,paddingX:u,paddingY:c,gap:d}=e,h=void 0===a?4:a,f=void 0===d?3:d,{zIndex:p}=(0,r.Z4)();return o[0]!==p?(t={zIndex:p},o[0]=p,o[1]=t):t=o[1],o[2]!==s||o[3]!==f||o[4]!==h||o[5]!==u||o[6]!==c||o[7]!==t?(n=(0,i.jsx)(eS,{forwardedAs:"ul","data-ui":"ToastProvider",padding:h,paddingX:u,paddingY:c,gap:f,columns:1,style:t,children:s}),o[2]=s,o[3]=f,o[4]=h,o[5]=u,o[6]=c,o[7]=t,o[8]=n):n=o[8],n}ek.displayName="ToastLayer";let eS=(0,a.I4)(r.xA).withConfig({displayName:"StyledLayer",componentId:"sc-1tbwn58-0"})`box-sizing:border-box;position:fixed;right:0;bottom:0;list-style:none;pointer-events:none;max-width:420px;width:100%;`,eE=0;function eA(e){let t,n,o,a,u,c=(0,l.c)(13),{children:h,padding:f,paddingX:p,paddingY:g,gap:m,zOffset:b}=e,y=void 0===b?1:b;c[0]===Symbol.for("react.memo_cache_sentinel")?(t=[],c[0]=t):t=c[0];
70let[v,x]=(0,s.useState)(t),w=(0,s.useSyncExternalStore)(ex,ev,ey);return c[1]===Symbol.for("react.memo_cache_sentinel")?(o={version:0,push:e=>{let t=e.id||String(eE++),n=e.duration||5e3;return(0,s.startTransition)(()=>{x(r=>.01===n?r.filter(e=>e.id!==t):[...r.filter(e=>e.id!==t),{dismiss:()=>(0,s.startTransition)(()=>x(e=>e.filter(e=>e.id!==t))),id:t,updatedAt:Date.now(),params:{...e,duration:n}}])}),t}},c[1]=o):o=c[1],n=o,c[2]!==m||c[3]!==w||c[4]!==f||c[5]!==p||c[6]!==g||c[7]!==v||c[8]!==y?(a=w&&(0,i.jsx)(r.XS,{zOffset:y,children:(0,i.jsx)(ek,{padding:f,paddingX:p,paddingY:g,gap:m,children:(0,i.jsx)(d.N,{initial:!1,mode:"popLayout",children:v.map(eC)})})}),c[2]=m,c[3]=w,c[4]=f,c[5]=p,c[6]=g,c[7]=v,c[8]=y,c[9]=a):a=c[9],c[10]!==h||c[11]!==a?(u=(0,i.jsxs)(ew.Provider,{value:n,children:[h,a]}),c[10]=h,c[11]=a,c[12]=u):u=c[12],u}function eC(e){let{dismiss:t,id:n,params:r,updatedAt:o}=e;return(0,i.jsx)(ec,{closable:r.closable,description:r.description,onClose:t,status:r.status,title:r.title,duration:r.duration,updatedAt:o},n)}function eT(){let e=(0,s.useContext)(ew);if(!e)throw Error("useToast(): missing context value");if(!(0,r.u4)(e)||0!==e.version)throw Error("useToast(): the context value is not compatible");return e}function eP(e){if("treeitem"===e.getAttribute("role")&&e.focus(),"none"===e.getAttribute("role")){let t=e.firstChild;t&&t instanceof HTMLElement&&t.focus()}}eA.displayName="ToastProvider";let eR=(0,r.bz)("@sanity/ui/context/tree",null);function eM(){let e=(0,s.useContext)(eR);if(!e)throw Error("Tree: missing context value");return e}(0,s.memo)((0,s.forwardRef)(function(e,t){let n,o,a,u,c,d,h,f,p,g,m,b,y,v,x,w,k,S,E,A,C,T,P,R=(0,l.c)(37);R[0]!==e?({children:n,space:u,onFocus:o,...a}=e,R[0]=e,R[1]=n,R[2]=o,R[3]=a,R[4]=u):(n=R[1],o=R[2],a=R[3],u=R[4]);
70let M=void 0===u?1:u,j=(0,s.useRef)(null),[O,I]=(0,s.useState)(null),D=(0,s.useRef)(O);R[5]===Symbol.for("react.memo_cache_sentinel")?(d=[],R[5]=d):d=R[5],c=d,R[6]===Symbol.for("react.memo_cache_sentinel")?(h=[],R[6]=h):h=R[6];let[_,L]=(0,s.useState)(h);R[7]===Symbol.for("react.memo_cache_sentinel")?(f={},R[7]=f):f=R[7];let[V,$]=(0,s.useState)(f),z=(0,s.useRef)(V);R[8]===Symbol.for("react.memo_cache_sentinel")?(p=()=>j.current,R[8]=p):p=R[8],(0,s.useImperativeHandle)(t,p),R[9]!==O?(g=()=>{D.current=O},m=[O],R[9]=O,R[10]=g,R[11]=m):(g=R[10],m=R[11]),(0,s.useEffect)(g,m),R[12]!==V?(b=()=>{z.current=V},y=[V],R[12]=V,R[13]=b,R[14]=y):(b=R[13],y=R[14]),(0,s.useEffect)(b,y),R[15]===Symbol.for("react.memo_cache_sentinel")?(v=(e,t,n,r)=>($(r=>({...r,[t]:{element:e,expanded:n}})),r&&I(e),()=>{$(e=>{let n={...e};return delete n[t],n})}),R[15]=v):v=R[15];let F=v;R[16]===Symbol.for("react.memo_cache_sentinel")?(x=(e,t)=>{$(n=>{let r=n[e];return r?{...n,[e]:{...r,expanded:t}}:n})},R[16]=x):x=R[16];let N=x,B=O||_[0]||null;R[17]!==M||R[18]!==V||R[19]!==B?(k={version:0,focusedElement:B,level:0,path:c,registerItem:F,setExpanded:N,setFocusedElement:I,space:M,state:V},R[17]=M,R[18]=V,R[19]=B,R[20]=k):k=R[20],w=k,R[21]!==_?(S=e=>{if(D.current){if("ArrowDown"===e.key){e.preventDefault();let t=function(e,t,n){let r=t.indexOf(n),i=t.slice(r),o=t.length;for(let t=1;t<o;t+=1){if(!i[t])continue;let n=i[t].getAttribute("data-tree-key");if(!n)continue;let r=n.split("/");r.pop();let o=[],s=!0;for(let t=0;t<r.length;t+=1){o.push(r[t]);let n=o.join("/");if(!e[n]?.expanded){s=!1;break}}if(s)return i[t]}return null}
70(z.current,_,D.current);t&&(eP(t),I(t));return}if("ArrowUp"===e.key){e.preventDefault();let t=function(e,t,n){let r=t.indexOf(n),i=t.slice(0,r),o=i.length;for(let t=o-1;t>=0;t-=1){let n=i[t].getAttribute("data-tree-key");if(!n)continue;let r=n.split("/");r.pop();let o=[],s=!0;for(let t=0;t<r.length;t+=1){o.push(r[t]);let n=o.join("/");if(!e[n]?.expanded){s=!1;break}}if(s)return i[t]}return null}(z.current,_,D.current);t&&(eP(t),I(t));return}if("ArrowLeft"===e.key){e.preventDefault();let t=D.current.getAttribute("data-tree-key");if(!t)return;let n=z.current[t];if(!n)return;if(n.expanded)$(e=>{let n=e[t];return n?{...e,[t]:{...n,expanded:!1}}:e});else{let e=t.split("/");e.pop();let n=e.join("/"),r=n&&z.current[n];r&&(r.element.focus(),I(r.element))}return}if("ArrowRight"===e.key){e.preventDefault();let t=D.current.getAttribute("data-tree-key");if(!t)return;z.current[t]?.expanded||$(e=>{let n=e[t];return n?{...e,[t]:{...n,expanded:!0}}:e});return}}},R[21]=_,R[22]=S):S=R[22];let H=S;R[23]!==o?(E=e=>{I(e.target),o?.(e)},R[23]=o,R[24]=E):E=R[24];let U=E;return R[25]===Symbol.for("react.memo_cache_sentinel")?(A=()=>{j.current&&L(Array.from(j.current.querySelectorAll('[data-ui="TreeItem"]')))},R[25]=A):A=R[25],R[26]!==n?(C=[n],R[26]=n,R[27]=C):C=R[27],(0,s.useEffect)(A,C),R[28]!==n||R[29]!==U||R[30]!==H||R[31]!==a||R[32]!==M?(T=(0,i.jsx)(r.BJ,{as:"ul","data-ui":"Tree",...a,onFocus:U,onKeyDown:H,ref:j,role:"tree",space:M,children:n}),R[28]=n,R[29]=U,R[30]=H,R[31]=a,R[32]=M,R[33]=T):T=R[33],R[34]!==w||R[35]!==T?(P=(0,i.jsx)(eR.Provider,{value:w,children:T}),R[34]=w,R[35]=T,R[36]=P):P=R[36],P})).displayName="Memo(ForwardRef(Tree))";let ej=(0,s.memo)(function(e){let t,n,o,s,a=(0,l.c)(9);a[0]!==e?({children:t,expanded:o,...n}=e,a[0]=e,a[1]=t,a[2]=n,a[3]=o):(t=a[1],n=a[2],o=a[3]);let u=void 0!==o&&o,c=eM(),d=!u;return a[4]!==t||a[5]!==n||a[6]!==d||a[7]!==c.space?(s=(0,i.jsx)(r.BJ,{as:"ul","data-ui":"TreeGroup",...n,hidden:d,marginTop:c.space,role:"group",space:c.space,children:t}),a[4]=t,a[5]=n,a[6]=d,a[7]=c.space,a[8]=s):s=a[8],s}),eO=(0,s.memo)(a.I4.li.withConfig({displayName:"StyledTreeItem",componentId:"sc-iiskig-0"})(function(){return(0,a.AH)` 71 &[role='none'] > [role='treeitem'] { 72 outline: none; 73 cursor: default; 74 border-radius: 3px; 75 76 background-color: var(--card-bg-color); 77 color: var(--treeitem-fg-color); 78 79 &:focus { 80 position: relative; 81 } 82 } 83 84 &[role='treeitem'] { 85 outline: none; 86 87 & > div { 88 cursor: default; 89 border-radius: 3px; 90 91 background-color: var(--card-bg-color); 92 color: var(--treeitem-fg-color); 93 } 94 95 &:focus > div { 96 position: relative; 97 } 98 } 99 `},function(e){let{color:t}=(0,u.JW)(e.theme),n=t.selectable.default;return(0,a.AH)` 100 &[role='none'] { 101 & > [role='treeitem'] { 102 ${(0,r.g5)(t,n.enabled)} 103 } 104 105 &[data-selected] > [role='treeitem'] { 106 ${(0,r.g5)(t,n.pressed)} 107 } 108 109 @media (hover: hover) { 110 &:not([data-selected]) > [role='treeitem']:not(:focus):hover { 111 ${(0,r.g5)(t,n.hovered)} 112 } 113 114 & > [role='treeitem']:focus { 115 ${(0,r.g5)(t,n.selected)} 116 } 117 } 118 } 119 120 &[role='treeitem'] { 121 & > [data-ui='TreeItem__box'] { 122 ${(0,r.g5)(t,n.enabled)} 123 } 124 125 &[data-selected] > [data-ui='TreeItem__box'] { 126 ${(0,r.g5)(t,n.pressed)} 127 } 128 129 @media (hover: hover) { 130 &:not([data-selected]):not(:focus) > [data-ui='TreeItem__box']:hover { 131 ${(0,r.g5)(t,n.hovered)} 132 } 133 134 &:focus > [data-ui='TreeItem__box'] { 135 ${(0,r.g5)(t,n.selected)} 136 } 137 } 138 } 139 `})),eI=(0,a.I4)(r.az).attrs({forwardedAs:"a"}).withConfig({displayName:"TreeItemBox",componentId:"sc-iiskig-1"})(function(e){let{$level:t}=e,{space:n}=(0,u.JW)(e.theme);return(0,a.AH)` 140 padding-left: ${(0,r.D0)(n[2]*t)}; 141 142 &[data-as='a'] { 143 text-decoration: none; 144 } 145 `}),eD=(0,a.I4)(r.EY).withConfig({displayName:"ToggleArrowText",componentId:"sc-iiskig-2"})`& > svg{transition:transform 100ms;}`;(0,s.memo)(function(e){let{children:t,expanded:n=!1,fontSize:a=1,href:l,icon:u,id:c,linkAs:d,muted:h,onClick:f,padding:p=2,selected:g=!1,space:m=2,text:b,weight:y,...v}=e,x=(0,s.useRef)(null),w=(0,s.useRef)(null),k=eM(),{path:S,registerItem:E,setExpanded:A,setFocusedElement:C}=k,T=(0,s.useId)(),P=c||T,R=(0,s.useMemo)(()=>S.concat([P||""]),[P,S]),M=R.join("/"),j=k.state[M],O=k.focusedElement===x.current,I=j?.expanded===void 0?n:j?.expanded||!1,D=k.focusedElement&&k.focusedElement===x.current?0:-1,_=(0,s.useMemo)(()=>({...k,level:k.level+1,path:R}),[R,k]),L=(0,s.useCallback)(e=>{f&&f(e);let t=e.target;t instanceof HTMLElement&&("TreeItem"===t.getAttribute("data-ui")||t.closest('[data-ui="TreeItem__box"]'))&&(e.stopPropagation(),A(M,!I),C(x.current))},[I,M,f,A,C]),V=(0,s.useCallback)(e=>{O&&"Enter"===e.key&&(w.current||x.current)?.click()},[O]);(0,s.useEffect)(()=>
145{if(x.current)return E(x.current,R.join("/"),I,g)},[I,R,E,g]);let $=(0,i.jsxs)(r.so,{padding:p,children:[(0,i.jsxs)(r.az,{marginRight:m,style:{visibility:u||t?"visible":"hidden",pointerEvents:"none"},children:[u&&(0,i.jsx)(r.EY,{muted:h,size:a,weight:y,children:(0,i.jsx)(u,{})}),!u&&(0,i.jsx)(eD,{muted:h,size:a,weight:y,children:(0,i.jsx)(o.nVd,{style:{transform:I?"rotate(90deg)":void 0}})})]}),(0,i.jsx)(r.az,{flex:1,children:(0,i.jsx)(r.EY,{muted:h,size:a,textOverflow:"ellipsis",weight:y,children:b})})]});return l?(0,i.jsxs)(eO,{"data-selected":g?"":void 0,"data-tree-id":P,"data-tree-key":M,"data-ui":"TreeItem",...v,onClick:L,ref:x,role:"none",children:[(0,i.jsx)(eI,{$level:k.level,"aria-expanded":I,as:d,"data-ui":"TreeItem__box",href:l,ref:w,role:"treeitem",tabIndex:D,children:$}),(0,i.jsx)(eR.Provider,{value:_,children:t&&(0,i.jsx)(ej,{hidden:!I,children:t})})]}):(0,i.jsxs)(eO,{"data-selected":g?"":void 0,"data-ui":"TreeItem","data-tree-id":P,"data-tree-key":M,...v,"aria-expanded":I,onClick:L,onKeyDown:V,ref:x,role:"treeitem",tabIndex:D,children:[(0,i.jsx)(eI,{$level:k.level,as:"div","data-ui":"TreeItem__box",children:$}),(0,i.jsx)(eR.Provider,{value:_,children:t&&(0,i.jsx)(ej,{expanded:I,children:t})})]})}).displayName="Memo(TreeItem)"},24376:(e,t,n)=>{e.exports=n(82500).Symbol},27351:(e,t,n)=>{"use strict";n.d(t,{s:()=>i});var r=n(6983);function i(e){return(0,r.G)(e)&&"offsetHeight"in e}},28460:(e,t,n)=>{"use strict";n.d(t,{tb:()=>W});var r,i,o=[],s="ResizeObserver loop completed with undelivered notifications.",a=function(){var e;"function"==typeof ErrorEvent?e=new ErrorEvent("error",{message:s}):((e=document.createEvent("Event")).initEvent("error",!1,!1),e.message=s),window.dispatchEvent(e)};!function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"}(r||(r={}));var l=function(e){return Object.freeze(e)},u=function(e,t){this.inlineSize=e,this.blockSize=t,l(this)},c=function(){function e(e,t,n,r){return this.x=e,this.y=t,this.width=n,this.height=r,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,l(this)}return e.prototype.toJSON=function(){return{x:this.x,y:this.y,top:this.top,right:this.right,bottom:this.bottom,left:this.left,width:this.width,height:this.height}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),d=function(e){return e instanceof SVGElement&&"getBBox"in e},h=function(e){if(d(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var i=e.offsetWidth,o=e.offsetHeight;return!(i||o||e.getClientRects().length)},f=function(e){if(e instanceof Element)return!0;var t,n=null==(t=null==e?void 0:e.ownerDocument)?void 0:t.defaultView;return!!(n&&e instanceof n.Element)},p=function(e){switch(e.tagName){case"INPUT":if("image"!==e.type)break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},g="undefined"!=typeof window?window:{},m=new WeakMap,b=/auto|scroll/,y=/^tb|vertical/,v=/msie|trident/i.test(g.navigator&&g.navigator.userAgent),x=function(e){return parseFloat(e||"0")},w=function(e,t,n){return void 0===e&&(e=0),void 0===t&&(t=0),void 0===n&&(n=!1),new u((n?t:e)||0,(n?e:t)||0)},k=l({devicePixelContentBoxSize:w(),borderBoxSize:w(),contentBoxSize:w(),contentRect:new c(0,0,0,0)}),S=function(e,t){if(void 0===t&&(t=!1),m.has(e)&&!t)return m.get(e);if(h(e))return m.set(e,k),k;var n=getComputedStyle(e),r=d(e)&&e.ownerSVGElement&&e.getBBox(),i=!v&&"border-box"===n.boxSizing,o=y.test(n.writingMode||""),s=!r&&b.test(n.overflowY||""),a=!r&&b.test(n.overflowX||""),u=r?0:x(n.paddingTop),f=r?0:x(n.paddingRight),p=r?0:x(n.paddingBottom),g=r?0:x(n.paddingLeft),S=r?0:x(n.borderTopWidth),E=r?0:x(n.borderRightWidth),A=r?0:x(n.borderBottomWidth),C=r?0:x(n.borderLeftWidth),T=g+f,P=u+p,R=C+E,M=S+A,j=a?e.offsetHeight-M-e.clientHeight:0,O=s?e.offsetWidth-R-e.clientWidth:0,I=r?r.width:x(n.width)-(i?T+R:0)-O,D=r?r.height:x(n.height)-(i?P+M:0)-j,_=I+T+O+R,L=D+P+j+M,V=l({devicePixelContentBoxSize:w(Math.round(I*devicePixelRatio),Math.round(D*devicePixelRatio),o),borderBoxSize:w(_,L,o),contentBoxSize:w(I,D,o),contentRect:new c(g,u,I,D)});return m.set(e,V),V},E=function(e,t,n){var i=S(e,n),o=i.borderBoxSize,s=i.contentBoxSize,a=i.devicePixelContentBoxSize;switch(t){case r.DEVICE_PIXEL_CONTENT_BOX:return a;case r.BORDER_BOX:return o;default:return s}},A=function(e){var t=S(e);this.target=e,this.contentRect=t.contentRect,this.borderBoxSize=l([t.borderBoxSize]),this.contentBoxSize=l([t.contentBoxSize]),this.devicePixelContentBoxSize=l([t.devicePixelContentBoxSize])},C=function(e){if(h(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},T=function(){var e=1/0,t=[];o.forEach(function(n){if(0!==n.activeTargets.length){var r=[];
145n.activeTargets.forEach(function(t){var n=new A(t.target),i=C(t.target);r.push(n),t.lastReportedSize=E(t.target,t.observedBox),i<e&&(e=i)}),t.push(function(){n.callback.call(n.observer,r,n.observer)}),n.activeTargets.splice(0,n.activeTargets.length)}});for(var n=0;n<t.length;n++)(0,t[n])();return e},P=function(e){o.forEach(function(t){t.activeTargets.splice(0,t.activeTargets.length),t.skippedTargets.splice(0,t.skippedTargets.length),t.observationTargets.forEach(function(n){n.isActive()&&(C(n.target)>e?t.activeTargets.push(n):t.skippedTargets.push(n))})})},R=function(){var e=0;for(P(0);o.some(function(e){return e.activeTargets.length>0});)P(e=T());return o.some(function(e){return e.skippedTargets.length>0})&&a(),e>0},M=[],j=function(e){if(!i){var t=0,n=document.createTextNode("");new MutationObserver(function(){return M.splice(0).forEach(function(e){return e()})}).observe(n,{characterData:!0}),i=function(){n.textContent="".concat(t?t--:t++)}}M.push(e),i()},O=function(e){j(function(){requestAnimationFrame(e)})},I=0,D={attributes:!0,characterData:!0,childList:!0,subtree:!0},_=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],L=function(e){return void 0===e&&(e=0),Date.now()+e},V=!1,$=new(function(){function e(){var e=this;this.stopped=!0,this.listener=function(){return e.schedule()}}return e.prototype.run=function(e){var t=this;if(void 0===e&&(e=250),!V){V=!0;var n=L(e);O(function(){var r=!1;try{r=R()}finally{if(V=!1,e=n-L(),!I)return;r?t.run(1e3):e>0?t.run(e):t.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var e=this,t=function(){return e.observer&&e.observer.observe(document.body,D)};document.body?t():g.addEventListener("DOMContentLoaded",t)},e.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),_.forEach(function(t){return g.addEventListener(t,e.listener,!0)}))},e.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),_.forEach(function(t){return g.removeEventListener(t,e.listener,!0)}),this.stopped=!0)},e}()),z=function(e){!I&&e>0&&$.start(),(I+=e)||$.stop()},F=function(){function e(e,t){this.target=e,this.observedBox=t||r.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var e,t=E(this.target,this.observedBox,!0);return d(e=this.target)||p(e)||"inline"!==getComputedStyle(e).display||(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),N=function(e,t){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=t},B=new WeakMap,H=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return -1},U=function(){function e(){}return e.connect=function(e,t){var n=new N(e,t);B.set(e,n)},e.observe=function(e,t,n){var r=B.get(e),i=0===r.observationTargets.length;0>H(r.observationTargets,t)&&(i&&o.push(r),r.observationTargets.push(new F(t,n&&n.box)),z(1),$.schedule())},e.unobserve=function(e,t){var n=B.get(e),r=H(n.observationTargets,t),i=1===n.observationTargets.length;r>=0&&(i&&o.splice(o.indexOf(n),1),n.observationTargets.splice(r,1),z(-1))},e.disconnect=function(e){var t=this,n=B.get(e);n.observationTargets.slice().forEach(function(n){return t.unobserve(e,n.target)}),n.activeTargets.splice(0,n.activeTargets.length)},e}(),W=function(){function e(e){if(0==arguments.length)throw TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if("function"!=typeof e)throw TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");U.connect(this,e)}return e.prototype.observe=function(e,t){if(0==arguments.length)throw TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!f(e))throw TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");U.observe(this,e,t)},e.prototype.unobserve=function(e){if(0==arguments.length)throw TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!f(e))throw TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");U.unobserve(this,e)},e.prototype.disconnect=function(){U.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}()}
145,29564:(e,t,n)=>{"use strict";n.d(t,{$:()=>p});var r,i=n(39249),o=n(82959),s=1,a={};function l(e){return e in a&&(delete a[e],!0)}var u={setImmediate:function(e){var t=s++;return a[t]=!0,r||(r=Promise.resolve()),r.then(function(){return l(t)&&e()}),t},clearImmediate:function(e){l(e)}},c=u.setImmediate,d=u.clearImmediate,h={setImmediate:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=h.delegate;return((null==n?void 0:n.setImmediate)||c).apply(void 0,(0,i.fX)([],(0,i.zs)(e)))},clearImmediate:function(e){var t=h.delegate;return((null==t?void 0:t.clearImmediate)||d)(e)},delegate:void 0},f=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r}return(0,i.C6)(t,e),t.prototype.requestAsyncId=function(t,n,r){return(void 0===r&&(r=0),null!==r&&r>0)?e.prototype.requestAsyncId.call(this,t,n,r):(t.actions.push(this),t._scheduled||(t._scheduled=h.setImmediate(t.flush.bind(t,void 0))))},t.prototype.recycleAsyncId=function(t,n,r){if(void 0===r&&(r=0),null!=r?r>0:this.delay>0)return e.prototype.recycleAsyncId.call(this,t,n,r);var i,o=t.actions;null!=n&&(null==(i=o[o.length-1])?void 0:i.id)!==n&&(h.clearImmediate(n),t._scheduled===n&&(t._scheduled=void 0))},t}(o.R),p=new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,i.C6)(t,e),t.prototype.flush=function(e){this._active=!0;var t,n=this._scheduled;this._scheduled=void 0;var r=this.actions;e=e||r.shift();do if(t=e.execute(e.state,e.delay))break;while((e=r[0])&&e.id===n&&r.shift());if(this._active=!1,t){for(;(e=r[0])&&e.id===n&&r.shift();)e.unsubscribe();throw t}},t}(n(35227).q))(f)},32082:(e,t,n)=>{"use strict";n.d(t,{xQ:()=>o});var r=n(12115),i=n(80845);function o(e=!0){let t=(0,r.useContext)(i.t);if(null===t)return[!0,null];let{isPresent:n,onExitComplete:s,register:a}=t,l=(0,r.useId)();(0,r.useEffect)(()=>{if(e)return a(l)},[e]);let u=(0,r.useCallback)(()=>e&&s&&s(l),[l,s,e]);return!n&&s?[!1,u]:[!0]}},34642:(e,t,n)=>{var r=n(62795),i=n(14229),o=n(89364),s=RegExp("['â]","g");e.exports=function(e){return function(t){return r(o(i(t).replace(s,"")),e,"")}}},37929:e=>{e.exports=function(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++r<i;)o[r]=e[r+t];return o}},39608:e=>{e.exports=Array.isArray},43377:(e,t,n)=>{"use strict";var r,i,o=Object.create,s=Object.defineProperty,a=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,u=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,d=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of l(t))c.call(e,i)||i===n||s(e,i,{get:()=>t[i],enumerable:!(r=a(t,i))||r.enumerable});return e},h={};((e,t)=>{for(var n in t)s(e,n,{get:t[n],enumerable:!0})})(h,{$dispatcherGuard:()=>E,$makeReadOnly:()=>C,$reset:()=>A,$structuralCheck:()=>j,c:()=>v,clearRenderCounterRegistry:()=>P,renderCounterRegistry:()=>T,useRenderCounter:()=>R}),e.exports=d(s({},"__esModule",{value:!0}),h);var f=((e,t,n)=>(n=null!=e?o(u(e)):{},d(!t&&e&&e.__esModule?n:s(n,"default",{value:e,enumerable:!0}),e)))(n(12115)),{useRef:p,useEffect:g,isValidElement:m}=f,b=null!=(r=f.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE)?r:f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,y=Symbol.for("react.memo_cache_sentinel"),v="function"==typeof(null==(i=f.__COMPILER_RUNTIME)?void 0:i.c)?f.__COMPILER_RUNTIME.c:function(e){return f.useMemo(()=>{let t=Array(e);for(let n=0;n<e;n++)t[n]=y;return t[y]=!0,t},[])},x={};["readContext","useCallback","useContext","useEffect","useImperativeHandle","useInsertionEffect","useLayoutEffect","useMemo","useReducer","useRef","useState","useDebugValue","useDeferredValue","useTransition","useMutableSource","useSyncExternalStore","useId","unstable_isNewReconciler","getCacheSignal","getCacheForType","useCacheRefresh"].forEach(e=>{x[e]=()=>{throw Error(`[React] Unexpected React hook call (${e}) from a React compiled function. Check that all hooks are called directly and named according to convention ('use[A-Z]') `)}});var w=null;function k(e){return b.ReactCurrentDispatcher.current=e,b.ReactCurrentDispatcher.current}x.useMemoCache=e=>{if(null!=w)return w.useMemoCache(e);throw Error("React Compiler internal invariant violation: unexpected null dispatcher")};var S=[];function E(e){let t=b.ReactCurrentDispatcher.current;if(0===e){if(S.push(t),1===S.length&&(w=t),t===x)throw Error("[React] Unexpected call to custom hook or component from a React compiled function. Check that (1) all hooks are called directly and named according to convention ('use[A-Z]') and (2) components are returned as JSX instead of being directly invoked.");k(x)}else if(1===e){let e=S.pop();if(null==e)throw Error("React Compiler internal error: unexpected null in guard stack");0===S.length&&(w=null),k(e)}else if(2===e)S.push(t),k(w);else if(3===e){let e=S.pop();if(null==e)throw Error("React Compiler internal error: unexpected null in guard stack");k(e)}else throw Error("React Compiler internal error: unreachable block"+e)}function A(e){for(let t=0;t<e.length;t++)e[t]=y}function C(){throw Error("TODO: implement $makeReadOnly in react-compiler-runtime")}var T=new Map;
145function P(){for(let e of T.values())e.forEach(e=>{e.count=0})}function R(e){let t=p(null);null!=t.current&&(t.current.count+=1),g(()=>{if(null==t.current){let n,r={count:0};null==(n=T.get(e))&&(n=new Set,T.set(e,n)),n.add(r),t.current=r}return()=>{null!==t.current&&function(e,t){let n=T.get(e);null!=n&&n.delete(t)}(e,t.current)}})}var M=new Set;function j(e,t,n,r,i,o){function s(e,t,s,a){let l=`${r}:${o} [${i}] ${n}${s} changed from ${e} to ${t} at depth ${a}`;M.has(l)||(M.add(l),console.error(l))}!function e(t,n,r,i){if(!(i>2)){if(t!==n)if(typeof t!=typeof n)s(`type ${typeof t}`,`type ${typeof n}`,r,i);else if("object"==typeof t){let o=Array.isArray(t),a=Array.isArray(n);if(null===t&&null!==n)s("null",`type ${typeof n}`,r,i);else if(null===n)s(`type ${typeof t}`,"null",r,i);else if(t instanceof Map)if(n instanceof Map)if(t.size!==n.size)s(`Map instance with size ${t.size}`,`Map instance with size ${n.size}`,r,i);else for(let[o,a]of t)n.has(o)?e(a,n.get(o),`${r}.get(${o})`,i+1):s(`Map instance with key ${o}`,`Map instance without key ${o}`,r,i);else s("Map instance","other value",r,i);else if(n instanceof Map)s("other value","Map instance",r,i);else if(t instanceof Set)if(n instanceof Set)if(t.size!==n.size)s(`Set instance with size ${t.size}`,`Set instance with size ${n.size}`,r,i);else for(let e of n)t.has(e)||s(`Set instance without element ${e}`,`Set instance with element ${e}`,r,i);else s("Set instance","other value",r,i);else if(n instanceof Set)s("other value","Set instance",r,i);else if(o||a)if(o!==a)s(`type ${o?"array":"object"}`,`type ${a?"array":"object"}`,r,i);else if(t.length!==n.length)s(`array with length ${t.length}`,`array with length ${n.length}`,r,i);else for(let o=0;o<t.length;o++)e(t[o],n[o],`${r}[${o}]`,i+1);else if(m(t)||m(n))m(t)!==m(n)?s(`type ${m(t)?"React element":"object"}`,`type ${m(n)?"React element":"object"}`,r,i):t.type!==n.type?s(`React element of type ${t.type}`,`React element of type ${n.type}`,r,i):e(t.props,n.props,`[props of ${r}]`,i+1);else{for(let e in n)e in t||s(`object without key ${e}`,`object with key ${e}`,r,i);for(let o in t)o in n?e(t[o],n[o],`${r}.${o}`,i+1):s(`object with key ${o}`,`object without key ${o}`,r,i)}}else{if("function"==typeof t)return;isNaN(t)||isNaN(n)?isNaN(t)!==isNaN(n)&&s(`${isNaN(t)?"NaN":"non-NaN value"}`,`${isNaN(n)?"NaN":"non-NaN value"}`,r,i):t!==n&&s(t,n,r,i)}}}(e,t,"",0)}},44987:(e,t,n)=>{"use strict";n.d(t,{E:()=>tx,ID:()=>e9,NP:()=>tu,DU:()=>ty,AH:()=>tp,i7:()=>tv,I4:()=>tm,DP:()=>tl});var r=function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};Object.create;function i(e,t,n){if(n||2==arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}Object.create,"function"==typeof SuppressedError&&SuppressedError;var o=n(12115),s=n(1072),a=n.n(s),l="-ms-",u="-moz-",c="-webkit-",d="comm",h="rule",f="decl",p="@keyframes",g=Math.abs,m=String.fromCharCode,b=Object.assign;function y(e,t){return(e=t.exec(e))?e[0]:e}function v(e,t,n){return e.replace(t,n)}function x(e,t,n){return e.indexOf(t,n)}function w(e,t){return 0|e.charCodeAt(t)}function k(e,t,n){return e.slice(t,n)}function S(e){return e.length}function E(e,t){return t.push(e),e}function A(e,t){return e.filter(function(e){return!y(e,t)})}var C=1,T=1,P=0,R=0,M=0,j="";function O(e,t,n,r,i,o,s,a){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:C,column:T,length:s,return:"",siblings:a}}function I(e,t){return b(O("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function D(e){for(;e.root;)e=I(e.root,{children:[e]});E(e,e.siblings)}function _(){return M=R<P?w(j,R++):0,T++,10===M&&(T=1,C++),M}function L(){return w(j,R)}function V(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function $(e){var t,n;return(t=R-1,n=function e(t){for(;_();)switch(M){case t:return R;case 34:case 39:34!==t&&39!==t&&e(M);break;case 40:41===t&&e(t);break;case 92:_()}return R}(91===e?e+2:40===e?e+1:e),k(j,t,n)).trim()}function z(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function F(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case f:return e.return=e.return||e.value;case d:return"";case p:return e.return=e.value+"{"+z(e.children,r)+"}";case h:if(!S(e.value=e.props.join(",")))return""}return S(n=z(e.children,r))?e.return=e.value+"{"+n+"}":""}function N(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case f:e.return=function e(t,n,r){var i;switch(i=n,45^w(t,0)?(((i<<2^w(t,0))<<2^w(t,1))<<2^w(t,2))<<2^w(t,3):0){case 5103:return c+"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 c+t+t;case 4789:return u+t+t;
vendor: 13,838 bytes, line 145
145case 5349:case 4246:case 4810:case 6968:case 2756:return c+t+u+t+l+t+t;case 5936:switch(w(t,n+11)){case 114:return c+t+l+v(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return c+t+l+v(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return c+t+l+v(t,/[svh]\w+-[tblr]{2}/,"lr")+t}case 6828:case 4268:case 2903:return c+t+l+t+t;case 6165:return c+t+l+"flex-"+t+t;case 5187:return c+t+v(t,/(\w+).+(:[^]+)/,c+"box-$1$2"+l+"flex-$1$2")+t;case 5443:return c+t+l+"flex-item-"+v(t,/flex-|-self/g,"")+(y(t,/flex-|baseline/)?"":l+"grid-row-"+v(t,/flex-|-self/g,""))+t;case 4675:return c+t+l+"flex-line-pack"+v(t,/align-content|flex-|-self/g,"")+t;case 5548:return c+t+l+v(t,"shrink","negative")+t;case 5292:return c+t+l+v(t,"basis","preferred-size")+t;case 6060:return c+"box-"+v(t,"-grow","")+c+t+l+v(t,"grow","positive")+t;case 4554:return c+v(t,/([^-])(transform)/g,"$1"+c+"$2")+t;case 6187:return v(v(v(t,/(zoom-|grab)/,c+"$1"),/(image-set)/,c+"$1"),t,"")+t;case 5495:case 3959:return v(t,/(image-set\([^]*)/,c+"$1$`$1");case 4968:return v(v(t,/(.+:)(flex-)?(.*)/,c+"box-pack:$3"+l+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+c+t+t;case 4200:if(!y(t,/flex-|baseline/))return l+"grid-column-align"+k(t,n)+t;break;case 2592:case 3360:return l+v(t,"template-","")+t;case 4384:case 3616:if(r&&r.some(function(e,t){return n=t,y(e.props,/grid-\w+-end/)}))return~x(t+(r=r[n].value),"span",0)?t:l+v(t,"-start","")+t+l+"grid-row-span:"+(~x(r,"span",0)?y(r,/\d+/):y(r,/\d+/)-y(t,/\d+/))+";";return l+v(t,"-start","")+t;case 4896:case 4128:return r&&r.some(function(e){return y(e.props,/grid-\w+-start/)})?t:l+v(v(t,"-end","-span"),"span ","")+t;case 4095:case 3583:case 4068:case 2532:return v(t,/(.+)-inline(.+)/,c+"$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(S(t)-1-n>6)switch(w(t,n+1)){case 109:if(45!==w(t,n+4))break;case 102:return v(t,/(.+:)(.+)-([^]+)/,"$1"+c+"$2-$3$1"+u+(108==w(t,n+3)?"$3":"$2-$3"))+t;case 115:return~x(t,"stretch",0)?e(v(t,"stretch","fill-available"),n,r)+t:t}break;case 5152:case 5920:return v(t,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(e,n,r,i,o,s,a){return l+n+":"+r+a+(i?l+n+"-span:"+(o?s:s-r)+a:"")+t});case 4949:if(121===w(t,n+6))return v(t,":",":"+c)+t;break;case 6444:switch(w(t,45===w(t,14)?18:11)){case 120:return v(t,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+c+(45===w(t,14)?"inline-":"")+"box$3$1"+c+"$2$3$1"+l+"$2box$3")+t;case 100:return v(t,":",":"+l)+t}break;case 5719:case 2647:case 2135:case 3927:case 2391:return v(t,"scroll-","scroll-snap-")+t}return t}(e.value,e.length,n);return;case p:return z([I(e,{value:v(e.value,"@","@"+c)})],r);case h:if(e.length){var i,o;return i=n=e.props,o=function(t){switch(y(t,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":D(I(e,{props:[v(t,/:(read-\w+)/,":"+u+"$1")]})),D(I(e,{props:[t]})),b(e,{props:A(n,r)});break;case"::placeholder":D(I(e,{props:[v(t,/:(plac\w+)/,":"+c+"input-$1")]})),D(I(e,{props:[v(t,/:(plac\w+)/,":"+u+"$1")]})),D(I(e,{props:[v(t,/:(plac\w+)/,l+"input-$1")]})),D(I(e,{props:[t]})),b(e,{props:A(n,r)})}return""},i.map(o).join("")}}}function B(e,t,n,r,i,o,s,a,l,u,c,d){for(var f=i-1,p=0===i?o:[""],m=p.length,b=0,y=0,x=0;b<r;++b)for(var w=0,S=k(e,f+1,f=g(y=s[b])),E=e;w<m;++w)(E=(y>0?p[w]+" "+S:v(S,/&\f/g,p[w])).trim())&&(l[x++]=E);return O(e,t,n,0===i?h:a,l,u,c,d)}function H(e,t,n,r,i){return O(e,t,n,f,k(e,0,r),k(e,r+1,-1),r,i)}var U={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},W=n(87358),Y=void 0!==W&&void 0!==W.env&&(W.env.REACT_APP_SC_ATTR||W.env.SC_ATTR)||"data-styled",G="active",q="data-styled-version",K="6.1.18",X="/*!sc*/\n",Z="undefined"!=typeof window&&"undefined"!=typeof document,J=!!("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:void 0!==W&&void 0!==W.env&&void 0!==W.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==W.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==W.env.REACT_APP_SC_DISABLE_SPEEDY&&W.env.REACT_APP_SC_DISABLE_SPEEDY:void 0!==W&&void 0!==W.env&&void 0!==W.env.SC_DISABLE_SPEEDY&&""!==W.env.SC_DISABLE_SPEEDY&&"false"!==W.env.SC_DISABLE_SPEEDY&&W.env.SC_DISABLE_SPEEDY),Q={},ee=Object.freeze([]),et=Object.freeze({});function en(e,t,n){return void 0===n&&(n=et),e.theme!==n.theme&&e.theme||t||n.theme}var er=new Set(["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","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","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","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),ei=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,eo=/(^-|-$)/g;function es(e){return e.replace(ei,"-").replace(eo,"")}var ea=/(a)(d)/gi,el=function(e){return String.fromCharCode(e+(e>25?39:97))};function eu(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=el(t%52)+n;return(el(t%52)+n).replace(ea,"$1-$2")}var ec,ed=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},eh=function(e){return ed(5381,e)};function ef(e){return eu(eh(e)>>>0)}function ep(e){return"string"==typeof e}var eg="function"==typeof Symbol&&Symbol.for,em=eg?Symbol.for("react.memo"):60115,eb=eg?Symbol.for("react.forward_ref"):60112,ey={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},ev={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},ex={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},ew=((ec={})[eb]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},ec[em]=ex,ec);function ek(e){return("type"in e&&e.type.$$typeof)===em?ex:"$$typeof"in e?ew[e.$$typeof]:ey}var eS=Object.defineProperty,eE=Object.getOwnPropertyNames,eA=Object.getOwnPropertySymbols,eC=Object.getOwnPropertyDescriptor,eT=Object.getPrototypeOf,eP=Object.prototype;function eR(e){return"function"==typeof e}function eM(e){return"object"==typeof e&&"styledComponentId"in e}function ej(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function eO(e,t){if(0===e.length)return"";for(var n=e[0],r=1;r<e.length;r++)n+=t?t+e[r]:e[r];return n}function eI(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function eD(e,t){Object.defineProperty(e,"toString",{value:t})}function e_(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):""))}var eL=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,i=r;e>=i;)if((i<<=1)<0)throw e_(16,"".concat(e));this.groupSizes=new Uint32Array(i),this.groupSizes.set(n),this.length=i;for(var o=r;o<i;o++)this.groupSizes[o]=0}for(var s=this.indexOfGroup(e+1),a=(o=0,t.length);o<a;o++)this.tag.insertRule(s,t[o])&&(this.groupSizes[e]++,s++)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var i=n;i<r;i++)this.tag.deleteRule(n)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),i=r+n,o=r;o<i;o++)t+="".concat(this.tag.getRule(o)).concat(X);return t},e}(),eV=new Map,e$=new Map,ez=1,eF=function(e){if(eV.has(e))return eV.get(e);for(;e$.has(ez);)ez++;var t=ez++;return eV.set(e,t),e$.set(t,e),t},eN=function(e,t){ez=t+1,eV.set(e,t),e$.set(t,e)},eB="style[".concat(Y,"][").concat(q,'="').concat(K,'"]'),eH=new RegExp("^".concat(Y,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),eU=function(e,t,n){for(var r,i=n.split(","),o=0,s=i.length;o<s;o++)(r=i[o])&&e.registerName(t,r)},eW=function(e,t){for(var n,r=(null!=(n=t.textContent)?n:"").split(X),i=[],o=0,s=r.length;o<s;o++){var a=r[o].trim();if(a){var l=a.match(eH);if(l){var u=0|parseInt(l[1],10),c=l[2];0!==u&&(eN(c,u),eU(e,c,l[3]),e.getTag().insertRules(u,i)),i.length=0}else i.push(a)}}},eY=function(e){for(var t=document.querySelectorAll(eB),n=0,r=t.length;n<r;n++){var i=t[n];i&&i.getAttribute(Y)!==G&&(eW(e,i),i.parentNode&&i.parentNode.removeChild(i))}},eG=function(e){var t,r=document.head,i=e||r,o=document.createElement("style"),s=(t=Array.from(i.querySelectorAll("style[".concat(Y,"]"))))[t.length-1],a=void 0!==s?s.nextSibling:null;o.setAttribute(Y,G),o.setAttribute(q,K);var l=n.nc;return l&&o.setAttribute("nonce",l),i.insertBefore(o,a),o},eq=function(){function e(e){this.element=eG(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var i=t[n];if(i.ownerNode===e)return i}throw e_(17)}(this.element),this.length=0}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},e}(),eK=function(){function e(e){this.element=eG(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),eX=function(){function e(e){this.rules=[],this.length=0}return e.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),eZ=Z,eJ={isServer:!Z,useCSSOMInjection:!J},eQ=function(){function e(e,t,n){void 0===e&&(e=et),void 0===t&&(t={});var i=this;this.options=r(r({},eJ),e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&Z&&eZ&&(eZ=!1,eY(this)),eD(this,function(){for(var e=i.getTag(),t=e.length,n="",r=0;r<t;r++)!function(t){var r=e$.get(t);if(void 0===r)return;var o=i.names.get(r),s=e.getGroup(t);if(void 0!==o&&o.size&&0!==s.length){var a="".concat(Y,".g").concat(t,'[id="').concat(r,'"]'),l="";void 0!==o&&o.forEach(function(e){e.length>0&&(l+="".concat(e,","))}),n+="".concat(s).concat(a,'{content:"').concat(l,'"}').concat(X)}}(r);return n})}return e.registerId=function(e){return eF(e)},e.prototype.rehydrate=function(){!this.server&&Z&&eY(this)},e.prototype.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(r(r({},this.options),t),this.gs,n&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){var e,t,n;return this.tag||(this.tag=(t=(e=this.options).useCSSOMInjection,n=e.target,new eL(e.isServer?new eX(n):t?new eq(n):new eK(n))))},e.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},e.prototype.registerName=function(e,t){if(eF(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},e.prototype.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(eF(e),n)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(eF(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),e0=/&/g,e1=/^\s*\/\/.*$/gm;function e2(e){var t,n,r,i=void 0===e?et:e,o=i.options,s=void 0===o?et:o,a=i.plugins,l=void 0===a?ee:a,u=function(e,r,i){return i.startsWith(n)&&i.endsWith(n)&&i.replaceAll(n,"").length>0?".".concat(t):e},c=l.slice();c.push(function(e){e.type===h&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(e0,n).replace(r,u))}),s.prefix&&c.push(N),c.push(F);var f=function(e,i,o,a){void 0===i&&(i=""),void 0===o&&(o=""),void 0===a&&(a="&"),t=a,n=i,r=RegExp("\\".concat(n,"\\b"),"g");var l,u,h,f,p,b,y=e.replace(e1,""),A=(p=function e(t,n,r,i,o,s,a,l,u){for(var c,h,f,p,b=0,y=0,A=a,P=0,I=0,D=0,z=1,F=1,N=1,U=0,W="",Y=o,G=s,q=i,K=W;F;)switch(D=U,U=_()){case 40:if(108!=D&&58==w(K,A-1)){-1!=x(K+=v($
145(U),"&","&\f"),"&\f",g(b?l[b-1]:0))&&(N=-1);break}case 34:case 39:case 91:K+=$(U);break;case 9:case 10:case 13:case 32:K+=function(e){for(;M=L();)if(M<33)_();else break;return V(e)>2||V(M)>3?"":" "}(D);break;case 92:K+=function(e,t){for(var n;--t&&_()&&!(M<48)&&!(M>102)&&(!(M>57)||!(M<65))&&(!(M>70)||!(M<97)););return n=R+(t<6&&32==L()&&32==_()),k(j,e,n)}(R-1,7);continue;case 47:switch(L()){case 42:case 47:E((c=function(e,t){for(;_();)if(e+M===57)break;else if(e+M===84&&47===L())break;return"/*"+k(j,t,R-1)+"*"+m(47===e?e:_())}(_(),R),h=n,f=r,p=u,O(c,h,f,d,m(M),k(c,2,-2),0,p)),u);break;default:K+="/"}break;case 123*z:l[b++]=S(K)*N;case 125*z:case 59:case 0:switch(U){case 0:case 125:F=0;case 59+y:-1==N&&(K=v(K,/\f/g,"")),I>0&&S(K)-A&&E(I>32?H(K+";",i,r,A-1,u):H(v(K," ","")+";",i,r,A-2,u),u);break;case 59:K+=";";default:if(E(q=B(K,n,r,b,y,o,l,W,Y=[],G=[],A,s),s),123===U)if(0===y)e(K,n,q,q,Y,s,A,l,G);else switch(99===P&&110===w(K,3)?100:P){case 100:case 108:case 109:case 115:e(t,q,q,i&&E(B(t,q,q,0,0,o,l,W,o,Y=[],A,G),G),o,G,A,l,i?Y:G);break;default:e(K,q,q,q,[""],G,0,l,G)}}b=y=I=0,z=N=1,W=K="",A=a;break;case 58:A=1+S(K),I=D;default:if(z<1){if(123==U)--z;else if(125==U&&0==z++&&125==(M=R>0?w(j,--R):0,T--,10===M&&(T=1,C--),M))continue}switch(K+=m(U),U*z){case 38:N=y>0?1:(K+="\f",-1);break;case 44:l[b++]=(S(K)-1)*N,N=1;break;case 64:45===L()&&(K+=$(_())),P=L(),y=A=S(W=K+=function(e){for(;!V(L());)_();return k(j,e,R)}(R)),U++;break;case 45:45===D&&2==S(K)&&(z=0)}}return s}("",null,null,null,[""],(h=f=o||i?"".concat(o," ").concat(i," { ").concat(y," }"):y,C=T=1,P=S(j=h),R=0,f=[]),0,[0],f),j="",p);s.namespace&&(A=function e(t,n){return t.map(function(t){return"rule"===t.type&&(t.value="".concat(n," ").concat(t.value),t.value=t.value.replaceAll(",",",".concat(n," ")),t.props=t.props.map(function(e){return"".concat(n," ").concat(e)})),Array.isArray(t.children)&&"@keyframes"!==t.type&&(t.children=e(t.children,n)),t})}(A,s.namespace));var I=[];return z(A,(u=(l=c.concat((b=function(e){return I.push(e)},function(e){!e.root&&(e=e.return)&&b(e)}))).length,function(e,t,n,r){for(var i="",o=0;o<u;o++)i+=l[o](e,t,n,r)||"";return i})),I};return f.hash=l.length?l.reduce(function(e,t){return t.name||e_(15),ed(e,t.name)},5381).toString():"",f}var e5=new eQ,e3=e2(),e4=o.createContext({shouldForwardProp:void 0,styleSheet:e5,stylis:e3}),e8=(e4.Consumer,o.createContext(void 0));function e6(){return(0,o.useContext)(e4)}function e9(e){var t=(0,o.useState)(e.stylisPlugins),n=t[0],r=t[1],i=e6().styleSheet,s=(0,o.useMemo)(function(){var t=i;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t},[e.disableCSSOMInjection,e.sheet,e.target,i]),l=(0,o.useMemo)(function(){return e2({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:n})},[e.enableVendorPrefixes,e.namespace,n]);(0,o.useEffect)(function(){a()(n,e.stylisPlugins)||r(e.stylisPlugins)},[e.stylisPlugins]);var u=(0,o.useMemo)(function(){return{shouldForwardProp:e.shouldForwardProp,styleSheet:s,stylis:l}},[e.shouldForwardProp,s,l]);return o.createElement(e4.Provider,{value:u},o.createElement(e8.Provider,{value:l},e.children))}var e7=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=e3);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,eD(this,function(){throw e_(12,String(n.name))})}return e.prototype.getName=function(e){return void 0===e&&(e=e3),this.name+e.hash},e}();function te(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(1===n&&"-"===r&&"-"===e[0])return e;r>="A"&&r<="Z"?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var tt=function(e){return null==e||!1===e||""===e},tn=function(e){var t=[];for(var n in e){var r=e[n];e.hasOwnProperty(n)&&!tt(r)&&(Array.isArray(r)&&r.isCss||eR(r)?t.push("".concat(te(n),":"),r,";"):eI(r)?t.push.apply(t,i(i(["".concat(n," {")],tn(r),!1),["}"],!1)):t.push("".concat(te(n),": ").concat(null==r||"boolean"==typeof r||""===r?"":"number"!=typeof r||0===r||n in U||n.startsWith("--")?String(r).trim():"".concat(r,"px"),";")))}return t};function tr(e,t,n,r){if(tt(e))return[];if(eM(e))return[".".concat(e.styledComponentId)];if(eR(e))return!eR(e)||e.prototype&&e.prototype.isReactComponent||!t?[e]:tr(e(t),t,n,r);return e instanceof e7?n?(e.inject(n,r),[e.getName(r)]):[e]:eI(e)?tn(e):Array.isArray(e)?Array.prototype.concat.apply(ee,e.map(function(e){return tr(e,t,n,r)})):[e.toString()]}function ti(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(eR(n)&&!eM(n))return!1}return!0}var to=eh(K),ts=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&ti(e),this.componentId=t,this.baseHash=ed(to,t),this.baseStyle=n,eQ.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n
vendor: 4,469 bytes, line 145
145):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))r=ej(r,this.staticRulesId);else{var i=eO(tr(this.rules,e,t,n)),o=eu(ed(this.baseHash,i)>>>0);if(!t.hasNameForId(this.componentId,o)){var s=n(i,".".concat(o),void 0,this.componentId);t.insertRules(this.componentId,o,s)}r=ej(r,o),this.staticRulesId=o}else{for(var a=ed(this.baseHash,n.hash),l="",u=0;u<this.rules.length;u++){var c=this.rules[u];if("string"==typeof c)l+=c;else if(c){var d=eO(tr(c,e,t,n));a=ed(a,d+u),l+=d}}if(l){var h=eu(a>>>0);t.hasNameForId(this.componentId,h)||t.insertRules(this.componentId,h,n(l,".".concat(h),void 0,this.componentId)),r=ej(r,h)}}return r},e}(),ta=o.createContext(void 0);function tl(){var e=(0,o.useContext)(ta);if(!e)throw e_(18);return e}function tu(e){var t=o.useContext(ta),n=(0,o.useMemo)(function(){var n=e.theme;if(!n)throw e_(14);if(eR(n))return n(t);if(Array.isArray(n)||"object"!=typeof n)throw e_(8);return t?r(r({},t),n):n},[e.theme,t]);return e.children?o.createElement(ta.Provider,{value:n},e.children):null}ta.Consumer;var tc={};function td(e,t,n){var i,s,a,l,u,c=eM(e),d=!ep(e),h=t.attrs,f=void 0===h?ee:h,p=t.componentId,g=void 0===p?(s=t.displayName,a=t.parentComponentId,tc[l="string"!=typeof s?"sc":es(s)]=(tc[l]||0)+1,u="".concat(l,"-").concat(ef(K+l+tc[l])),a?"".concat(a,"-").concat(u):u):p,m=t.displayName,b=void 0===m?ep(e)?"styled.".concat(e):"Styled(".concat((i=e).displayName||i.name||"Component",")"):m,y=t.displayName&&t.componentId?"".concat(es(t.displayName),"-").concat(t.componentId):t.componentId||g,v=c&&e.attrs?e.attrs.concat(f).filter(Boolean):f,x=t.shouldForwardProp;if(c&&e.shouldForwardProp){var w=e.shouldForwardProp;if(t.shouldForwardProp){var k=t.shouldForwardProp;x=function(e,t){return w(e,t)&&k(e,t)}}else x=w}var S=new ts(n,y,c?e.componentStyle:void 0);function E(e,t){return function(e,t,n){var i,s=e.attrs,a=e.componentStyle,l=e.defaultProps,u=e.foldedComponentIds,c=e.styledComponentId,d=e.target,h=o.useContext(ta),f=e6(),p=e.shouldForwardProp||f.shouldForwardProp,g=en(t,h,l)||et,m=function(e,t,n){for(var i,o=r(r({},t),{className:void 0,theme:n}),s=0;s<e.length;s+=1){var a=eR(i=e[s])?i(o):i;for(var l in a)o[l]="className"===l?ej(o[l],a[l]):"style"===l?r(r({},o[l]),a[l]):a[l]}return t.className&&(o.className=ej(o.className,t.className)),o}(s,t,g),b=m.as||d,y={};for(var v in m)void 0===m[v]||"$"===v[0]||"as"===v||"theme"===v&&m.theme===g||("forwardedAs"===v?y.as=m.forwardedAs:p&&!p(v,b)||(y[v]=m[v]));var x=(i=e6(),a.generateAndInjectStyles(m,i.styleSheet,i.stylis)),w=ej(u,c);return x&&(w+=" "+x),m.className&&(w+=" "+m.className),y[ep(b)&&!er.has(b)?"class":"className"]=w,n&&(y.ref=n),(0,o.createElement)(b,y)}(A,e,t)}E.displayName=b;var A=o.forwardRef(E);return A.attrs=v,A.componentStyle=S,A.displayName=b,A.shouldForwardProp=x,A.foldedComponentIds=c?ej(e.foldedComponentIds,e.styledComponentId):"",A.styledComponentId=y,A.target=c?e.target:e,Object.defineProperty(A,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=c?function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0;r<t.length;r++)!function e(t,n,r){if(void 0===r&&(r=!1),!r&&!eI(t)&&!Array.isArray(t))return n;if(Array.isArray(n))for(var i=0;i<n.length;i++)t[i]=e(t[i],n[i]);else if(eI(n))for(var i in n)t[i]=e(t[i],n[i]);return t}(e,t[r],!0);return e}({},e.defaultProps,t):t}}),eD(A,function(){return".".concat(A.styledComponentId)}),d&&function e(t,n,r){if("string"!=typeof n){if(eP){var i=eT(n);i&&i!==eP&&e(t,i,r)}var o=eE(n);eA&&(o=o.concat(eA(n)));for(var s=ek(t),a=ek(n),l=0;l<o.length;++l){var u=o[l];if(!(u in ev||r&&r[u]||a&&u in a||s&&u in s)){var c=eC(n,u);try{eS(t,u,c)}catch(e){}}}}return t}(A,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),A}function th(e,t){for(var n=[e[0]],r=0,i=t.length;r<i;r+=1)n.push(t[r],e[r+1]);return n}var tf=function(e){return Object.assign(e,{isCss:!0})};function tp(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return eR(e)||eI(e)?tf(tr(th(ee,i([e],t,!0)))):0===t.length&&1===e.length&&"string"==typeof e[0]?tr(e):tf(tr(th(e,t)))}var tg=function(e){return function e(t,n,o){if(void 0===o&&(o=et),!n)throw e_(1,n);var s=function(e){for(var r=[],s=1;s<arguments.length;s++)r[s-1]=arguments[s];return t(n,o,tp.apply(void 0,i([e],r,!1)))};return s.attrs=function(i){return e(t,n,r(r({}
145,o),{attrs:Array.prototype.concat(o.attrs,i).filter(Boolean)}))},s.withConfig=function(i){return e(t,n,r(r({},o),i))},s}(td,e)},tm=tg;er.forEach(function(e){tm[e]=tg(e)});var tb=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=ti(e),eQ.registerId(this.componentId+1)}return e.prototype.createStyles=function(e,t,n,r){var i=r(eO(tr(this.rules,t,n,r)),""),o=this.componentId+e;n.insertRules(o,o,i)},e.prototype.removeStyles=function(e,t){t.clearRules(this.componentId+e)},e.prototype.renderStyles=function(e,t,n,r){e>2&&eQ.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)},e}();function ty(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var s=tp.apply(void 0,i([e],t,!1)),a="sc-global-".concat(ef(JSON.stringify(s))),l=new tb(s,a),u=function(e){var t=e6(),n=o.useContext(ta),r=o.useRef(t.styleSheet.allocateGSInstance(a)).current;return t.styleSheet.server&&c(r,e,t.styleSheet,n,t.stylis),o.useLayoutEffect(function(){if(!t.styleSheet.server)return c(r,e,t.styleSheet,n,t.stylis),function(){return l.removeStyles(r,t.styleSheet)}},[r,e,t.styleSheet,n,t.stylis]),null};function c(e,t,n,i,o){if(l.isStatic)l.renderStyles(e,Q,n,o);else{var s=r(r({},t),{theme:en(t,i,u.defaultProps)});l.renderStyles(e,s,n,o)}}return o.memo(u)}function tv(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=eO(tp.apply(void 0,i([e],t,!1)));return new e7(ef(r),r)}var tx=function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString();if(!t)return"";var r=n.nc,i=eO([r&&'nonce="'.concat(r,'"'),"".concat(Y,'="true"'),"".concat(q,'="').concat(K,'"')].filter(Boolean)," ");return"<style ".concat(i,">").concat(t,"</style>")},this.getStyleTags=function(){if(e.sealed)throw e_(2);return e._emitSheetCSS()}
145,this.getStyleElement=function(){if(e.sealed)throw e_(2);var t,i=e.instance.toString();if(!i)return[];var s=((t={})[Y]="",t[q]=K,t.dangerouslySetInnerHTML={__html:i},t),a=n.nc;return a&&(s.nonce=a),[o.createElement("style",r({},s,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new eQ({isServer:!0}),this.sealed=!1}return e.prototype.collectStyles=function(e){if(this.sealed)throw e_(2);return o.createElement(e9,{sheet:this.instance},e)},e.prototype.interleaveWithNodeStream=function(e){throw e_(3)},e}()},48505:e=>{e.exports=function(e){return function(t){return null==e?void 0:e[t]}}},48611:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},48659:(e,t,n)=>{var r=n(37929);e.exports=function(e,t,n){var i=e.length;return n=void 0===n?i:n,!t&&n>=i?e:r(e,t,n)}},50330:(e,t,n)=>{"use strict";e.exports=n(53588)},50851:e=>{e.exports=function(e){return e.split("")}},51508:(e,t,n)=>{"use strict";n.d(t,{Q:()=>r});let r=(0,n(12115).createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"})},53588:(e,t)=>{"use strict";var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler");Symbol.for("react.provider");var a=Symbol.for("react.consumer"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.for("react.view_transition"),g=Symbol.for("react.client.reference");function m(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case i:case s:case o:case c:case d:case p:return e;default:switch(e=e&&e.$$typeof){case l:case u:case f:case h:case a:return e;default:return t}}case r:return t}}}t.ContextConsumer=a,t.ContextProvider=l,t.Element=n,t.ForwardRef=u,t.Fragment=i,t.Lazy=f,t.Memo=h,t.Portal=r,t.Profiler=s,t.StrictMode=o,t.Suspense=c,t.SuspenseList=d,t.isContextConsumer=function(e){return m(e)===a},t.isContextProvider=function(e){return m(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return m(e)===u},t.isFragment=function(e){return m(e)===i},t.isLazy=function(e){return m(e)===f},t.isMemo=function(e){return m(e)===h},t.isPortal=function(e){return m(e)===r},t.isProfiler=function(e){return m(e)===s},t.isStrictMode=function(e){return m(e)===o},t.isSuspense=function(e){return m(e)===c},t.isSuspenseList=function(e){return m(e)===d},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===s||e===o||e===c||e===d||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===h||e.$$typeof===l||e.$$typeof===a||e.$$typeof===u||e.$$typeof===g||void 0!==e.getModuleId)||!1},t.typeOf=m},55325:(e,t,n)=>{"use strict";n.d(t,{Cv:()=>r,D9:()=>d,ON:()=>s,OZ:()=>f,Ql:()=>o,V0:()=>i,Zp:()=>u,wL:()=>h,wm:()=>a,wv:()=>c,yW:()=>p,z1:()=>l});let r=["gray","blue","purple","magenta","red","orange","yellow","green","cyan"],i=["50","100","200","300","400","500","600","700","800","900","950"],o={title:"Black",hex:"#0d0e12"},s={title:"White",hex:"#ffffff"},a={50:{title:"Gray 50",hex:"#f6f6f8"},100:{title:"Gray 100",hex:"#eeeef1"},200:{title:"Gray 200",hex:"#e3e4e8"},300:{title:"Gray 300",hex:"#bbbdc9"},400:{title:"Gray 400",hex:"#9499ad"},500:{title:"Gray 500",hex:"#727892"},600:{title:"Gray 600",hex:"#515870"},700:{title:"Gray 700",hex:"#383d51"},800:{title:"Gray 800",hex:"#252837"},900:{title:"Gray 900",hex:"#1b1d27"},950:{title:"Gray 950",hex:"#13141b"}},l={50:{title:"Blue 50",hex:"#f5f8ff"},100:{title:"Blue 100",hex:"#e5edff"},200:{title:"Blue 200",hex:"#dbe5ff"},300:{title:"Blue 300",hex:"#a8bfff"},400:{title:"Blue 400",hex:"#7595ff"},500:{title:"Blue 500",hex:"#556bfc"},600:{title:"Blue 600",hex:"#4043e7"},700:{title:"Blue 700",hex:"#2927aa"},800:{title:"Blue 800",hex:"#192457"},900:{title:"Blue 900",hex:"#161a41"},950:{title:"Blue 950",hex:"#101228"}},u={50:{title:"Purple 50",hex:"#f8f5ff"},100:{title:"Purple 100",hex:"#f1ebff"},200:{title:"Purple 200",hex:"#ece1fe"},300:{title:"Purple 300",hex:"#ccb1fc"},400:{title:"Purple 400",hex:"#b087f7"},500:{title:"Purple 500",hex:"#8f57ef"},600:{title:"Purple 600",hex:"#721fe5"},700:{title:"Purple 700",hex:"#4c1a9e"},800:{title:"Purple 800",hex:"#2f1862"},900:{title:"Purple 900",hex:"#23173f"},950:{title:"Purple 950",hex:"#181128"}},c={50:{title:"Red 50",hex:"#fff6f5"},100:{title:"Red 100",hex:"#ffe7e5"},200:{title:"Red 200",hex:"#ffdedc"},300:{title:"Red 300",hex:"#fdada5"},400:{title:"Red 400",hex:"#f77769"},500:{title:"Red 500",hex:"#ef4434"},600:{title:"Red 600",hex:"#cc2819"},700:{title:"Red 700",hex:"#8b2018"},800:{title:"Red 800",hex:"#4d1714"},900:{title:"Red 900",hex:"#321615"},950:{title:"Red 950",hex:"#1e1011"}},d={50:{title:"Yellow 50",hex:"#fefae1"},100:{title:"Yellow 100",hex:"#fcf3bb"},200:{title:"Yellow 200",hex:"#f9e994"},300:{title:"Yellow 300",hex:"#f7d455"},400:{title:"Yellow 400",hex:"#f9bc15"},500:{title:"Yellow 500",hex:"#d28a04"},600:{title:"Yellow 600",hex:"#965908"},700:{title:"Yellow 700",hex:"#653a0b"},800:{title:"Yellow 800",hex:"#3b220c"},900:{title:"Yellow 900",hex:"#271a11"},950:{title:"Yellow 950",hex:"#181410"}},h={50:{title:"Green 50",hex:"#e7fef5"},100:{title:"Green 100",hex:"#c5fce8"},200:{title:"Green 200",hex:"#a9f9dc"},300:{title:"Green 300",hex:"#59f3ba"},400:{title:"Green 400",hex:"#0ff0a1"},500:{title:"Green 500",hex:"#04b97a"},600:{title:"Green 600",hex:"#01794f"},700:{title:"Green 700",hex:"#015133"},800:{title:"Green 800",hex:"#023120"},900:{title:"Green 900",hex:"#06231a"},950:{title:"Green 950",hex:"#071715"}},f={gray:a,blue:l,purple:u,magenta:{50:{title:"Magenta 50",hex:"#fef6f9"},100:{title:"Magenta 100",hex:"#fde8ef"},200:{title:"Magenta 200",hex:"#fcdee9"},300:{title:"Magenta 300",hex:"#f7abc5"},400:{title:"Magenta 400",hex:"#f0709b"},500:{title:"Magenta 500",hex:"#e72767"},600:{title:"Magenta 600",hex:"#b11651"},700:{title:"Magenta 700",hex:"#7c1342"},800:{title:"Magenta 800",hex:"#4b1130"},900:{title:"Magenta 900",hex:"#341325"},950:{title:"Magenta 950",hex:"#1f0f14"}},red:c,orange:{50:{title:"Orange 50",hex:"#fff7f0"},100:{title:"Orange 100",hex:"#ffeadb"},200:{title:"Orange 200",hex:"#ffddc7"},300:{title:"Orange 300",hex:"#ffb685"},400:{title:"Orange 400",hex:"#ff8e42"},500:{title:"Orange 500",hex:"#fa6400"},600:{title:"Orange 600",hex:"#b14802"},700:{title:"Orange 700",hex:"#7c3404"},800:{title:"Orange 800",hex:"#461e07"},900:{title:"Orange 900",hex:"#32160b"},950:{title:"Orange 950",hex:"#21120d"}},yellow:d,green:h,cyan:{50:{title:"Cyan 50",hex:"#e7fefe"},100:{title:"Cyan 100",hex:"#c5fcfc"},200:{title:"Cyan 200",hex:"#96f8f8"},300:{title:"Cyan 300",hex:"#62efef"},400:{title:"Cyan 400",hex:"#18e2e2"},500:{title:"Cyan 500",hex:"#04b8be"},600:{title:"Cyan 600",hex:"#037782"},700:{title:"Cyan 700",hex:"#024950"},800:{title:"Cyan 800",hex:"#042f34"},900:{title:"Cyan 900",hex:"#072227"},950:{title:"Cyan 950",hex:"#0d181c"}}},p={black:o,white:s,...f}},57213:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}},57480:(e,t,n)=>{"use strict";function r(e){let t="undefined"!=typeof window&&"crypto"in window?window.crypto:globalThis.crypto;if(!t||!t.getRandomValues)throw Error("WebCrypto not available in this environment");return t.getRandomValues(e)}n.d(t,{A:()=>r})},58784:(e,t,n)=>{"use strict";function r(e){let[t,n]=e;return[t,n]}function i(e,t){let n=e,r=t,i=n.length,o=r.length;if(0===i||0===o)return 0;i>o?n=n.substring(i-o):i<o&&(r=r.substring(0,i));let s=Math.min(i,o);if(n===r)return s;let a=0,l=1;for(let e=0;-1!==e;){let t=n.substring(s-l);if(-1===(e=r.indexOf(t)))break;
145l+=e,(0===e||n.substring(s-l)===r.substring(0,l))&&(a=l,l++)}return a}function o(e,t){if(!e||!t||e[0]!==t[0])return 0;let n=0,r=Math.min(e.length,t.length),i=r,o=0;for(;n<i;)e.substring(o,i)===t.substring(o,i)?o=n=i:r=i,i=Math.floor((r-n)/2+n);return i}function s(e,t){if(!e||!t||e[e.length-1]!==t[t.length-1])return 0;let n=0,r=Math.min(e.length,t.length),i=r,o=0;for(;n<i;)e.substring(e.length-i,e.length-o)===t.substring(t.length-i,t.length-o)?o=n=i:r=i,i=Math.floor((r-n)/2+n);return i}function a(e){let t=e.charCodeAt(0);return t>=56320&&t<=57343}function l(e,t,n,r,i){let o=e.substring(0,n),s=t.substring(0,r),a=e.substring(n),l=t.substring(r),u=x(o,s,{checkLines:!1,deadline:i}),c=x(a,l,{checkLines:!1,deadline:i});return u.concat(c)}function u(e,t,n){let r=e.slice(n,n+Math.floor(e.length/4)),i=-1,a="",l,u,c,d;for(;-1!==(i=t.indexOf(r,i+1));){let r=o(e.slice(n),t.slice(i)),h=s(e.slice(0,n),t.slice(0,i));a.length<h+r&&(a=t.slice(i-h,i)+t.slice(i,i+r),l=e.slice(0,n-h),u=e.slice(n+r),c=t.slice(0,i-h),d=t.slice(i+r))}return 2*a.length>=e.length?[l||"",u||"",c||"",d||"",a||""]:null}n.d(t,{$i:()=>G,Cm:()=>m,Ug:()=>b,Vx:()=>E,iU:()=>v,iz:()=>es,jW:()=>en,lw:()=>y,sw:()=>O,w1:()=>el});var c=Object.defineProperty,d=Object.getOwnPropertySymbols,h=Object.prototype.hasOwnProperty,f=Object.prototype.propertyIsEnumerable,p=(e,t,n)=>t in e?c(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,g=(e,t)=>{for(var n in t||(t={}))h.call(t,n)&&p(e,n,t[n]);if(d)for(var n of d(t))f.call(t,n)&&p(e,n,t[n]);return e};let m=-1,b=1,y=0;function v(e,t,n){var r,i;let o;if(null===e||null===t)throw Error("Null input. (diff)");let s=x(e,t,g({checkLines:!0,deadline:(i=(r=n||{}).timeout||1,o=1,"u">typeof i&&(o=i<=0?Number.MAX_VALUE:i),Date.now()+1e3*o)},r));return function(e){for(let t=0;t<e.length;t++){let[n,r]=e[t];if(0===r.length)continue;let i=r[0];(function(e){let t=e.charCodeAt(0);return t>=55296&&t<=56319})(r[r.length-1])&&n===y&&S(e,t,1),a(i)&&n===y&&S(e,t,-1)}for(let t=0;t<e.length;t++)0===e[t][1].length&&e.splice(t,1)}(s),s}function x(e,t,n){let r=e,i=t;if(r===i)return r?[[y,r]]:[];let a=o(r,i),c=r.substring(0,a);a=s(r=r.substring(a),i=i.substring(a));let d=r.substring(r.length-a),h=function(e,t,n){let r;if(!e)return[[b,t]];if(!t)return[[m,e]];let i=e.length>t.length?e:t,o=e.length>t.length?t:e,s=i.indexOf(o);if(-1!==s)return r=[[b,i.substring(0,s)],[y,o],[b,i.substring(s+o.length)]],e.length>t.length&&(r[0][0]=m,r[2][0]=m),r;if(1===o.length)return[[m,e],[b,t]];let a=function(e,t,n=1){let r,i,o,s,a;if(n<=0)return null;let l=e.length>t.length?e:t,c=e.length>t.length?t:e;if(l.length<4||2*c.length<l.length)return null;let d=u(l,c,Math.ceil(l.length/4)),h=u(l,c,Math.ceil(l.length/2));if(d&&h)r=d[4].length>h[4].length?d:h;else{if(!d&&!h)return null;h?d||(r=h):r=d}if(!r)throw Error("Unable to find a half match.");return e.length>t.length?(i=r[0],o=r[1],s=r[2],a=r[3]):(s=r[0],a=r[1],i=r[2],o=r[3]),[i,o,s,a,r[4]]}(e,t);if(a){let e=a[0],t=a[1],r=a[2],i=a[3],o=a[4],s=x(e,r,n),l=x(t,i,n);return s.concat([[y,o]],l)}return n.checkLines&&e.length>100&&t.length>100?function(e,t,n){let r=e,i=t,o=function(e,t){let n=[],r={};function i(e){let t="",i=0,s=-1,a=n.length;for(;s<e.length-1;){-1===(s=e.indexOf(` 146`,i))&&(s=e.length-1);let l=e.slice(i,s+1);(r.hasOwnProperty?r.hasOwnProperty(l):void 0!==r[l])?t+=String.fromCharCode(r[l]):(a===o&&(l=e.slice(i),s=e.length),t+=String.fromCharCode(a),r[l]=a,n[a++]=l),i=s+1}return t}n[0]="";let o=4e4,s=i(e);return o=65535,{chars1:s,chars2:i(t),lineArray:n}}(r,i);r=o.chars1,i=o.chars2;let s=o.lineArray,a=x(r,i,{checkLines:!1,deadline:n.deadline});(function(e,t){for(let n=0;n<e.length;n++){let r=e[n][1],i=[];for(let e=0;e<r.length;e++)i[e]=t[r.charCodeAt(e)];e[n][1]=i.join("")}})(a,s),(a=E(a)).push([y,""]);let l=0,u=0,c=0,d="",h="";for(;l<a.length;){switch(a[l][0]){case b:c++,h+=a[l][1];break;case m:u++,d+=a[l][1];break;case y:if(u>=1&&c>=1){a.splice(l-u-c,u+c),l=l-u-c;let e=x(d,h,{checkLines:!1,deadline:n.deadline});for(let t=e.length-1;t>=0;t--)a.splice(l,0,e[t]);l+=e.length}c=0,u=0,d="",h="";break;default:throw Error("Unknown diff operation.")}l++}return a.pop(),a}(e,t,n):function(e,t,n){let r=e.length,i=t.length,o=Math.ceil((r+i)/2),s=2*o,a=Array(s),u=Array(s);for(let e=0;e<s;e++)a[e]=-1,u[e]=-1;a[o+1]=0,u[o+1]=0;let c=r-i,d=c%2!=0,h=0,f=0,p=0,g=0;for(let m=0;m<o&&!(Date.now()>n);m++){for(let p=-m+h;p<=m-f;p+=2){let g,b=o+p,y=(g=p===-m||p!==m&&a[b-1]<a[b+1]?a[b+1]:a[b-1]+1)-p;for(;g<r&&y<i&&e.charAt(g)===t.charAt(y);)g++,y++;if(a[b]=g,g>r)f+=2;else if(y>i)h+=2;else if(d){let i=o+c-p;if(i>=0&&i<s&&-1!==u[i]&&g>=r-u[i])return l(e,t,g,y,n)}}for(let h=-m+p;h<=m-g;h+=2){let f,b=o+h,y=(f=h===-m||h!==m&&u[b-1]<u[b+1]?u[b+1]:u[b-1]+1)-h;for(;f<r&&y<i&&e.charAt(r-f-1)===t.charAt(i-y-1);)f++,y++;if(u[b]=f,f>r)g+=2;else if(y>i)p+=2;else if(!d){let i=o+c-h;if(i>=0&&i<s&&-1!==a[i]){let s=a[i],u=o+s-i;if(s>
146=(f=r-f))return l(e,t,s,u,n)}}}}return[[m,e],[b,t]]}(e,t,n.deadline)}(r=r.substring(0,r.length-a),i=i.substring(0,i.length-a),n);return c&&h.unshift([y,c]),d&&h.push([y,d]),h=j(h)}function w(e,t,n){return 1===n?e+t:t+e}function k(e,t){return 1===t?[e.substring(0,e.length-1),e[e.length-1]]:[e.substring(1),e[0]]}function S(e,t,n){var r,i;let o=1===n?-1:1,s=null,a=null,l=t+n;for(;l>=0&&l<e.length&&(null===s||null===a);l+=n){let[r,i]=e[l];if(0!==i.length){if(r===b){null===s&&(s=l);continue}else if(r===m){null===a&&(a=l);continue}else if(r===y){if(null===s&&null===a){let[r,i]=k(e[t][1],n);e[t][1]=r,e[l][1]=w(e[l][1],i,o);return}break}}}if(null!==s&&null!==a&&(r=s,i=a,1===n?e[r][1][e[r][1].length-1]===e[i][1][e[i][1].length-1]:e[r][1][0]===e[i][1][0])){let[r,i]=k(e[s][1],o),[l]=k(e[a][1],o);e[s][1]=r,e[a][1]=l,e[t][1]=w(e[t][1],i,n);return}let[u,c]=k(e[t][1],n);e[t][1]=u,null===s?(e.splice(l,0,[b,c]),null!==a&&a>=l&&a++):e[s][1]=w(e[s][1],c,o),null===a?e.splice(l,0,[m,c]):e[a][1]=w(e[a][1],c,o)}function E(e){let t=e.map(e=>r(e)),n=!1,o=[],s=0,a=null,l=0,u=0,c=0,d=0,h=0;for(;l<t.length;)t[l][0]===y?(o[s++]=l,u=d,c=h,d=0,h=0,a=t[l][1]):(t[l][0]===b?d+=t[l][1].length:h+=t[l][1].length,a&&a.length<=Math.max(u,c)&&a.length<=Math.max(d,h)&&(t.splice(o[s-1],0,[m,a]),t[o[s-1]+1][0]=b,s--,l=--s>0?o[s-1]:-1,u=0,c=0,d=0,h=0,a=null,n=!0)),l++;for(n&&(t=j(t)),t=M(t),l=1;l<t.length;){if(t[l-1][0]===m&&t[l][0]===b){let e=t[l-1][1],n=t[l][1],r=i(e,n),o=i(n,e);r>=o?(r>=e.length/2||r>=n.length/2)&&(t.splice(l,0,[y,n.substring(0,r)]),t[l-1][1]=e.substring(0,e.length-r),t[l+1][1]=n.substring(r),l++):(o>=e.length/2||o>=n.length/2)&&(t.splice(l,0,[y,e.substring(0,o)]),t[l-1][0]=b,t[l-1][1]=n.substring(0,n.length-o),t[l+1][0]=m,t[l+1][1]=e.substring(o),l++),l++}l++}return t}let A=/[^a-zA-Z0-9]/,C=/\s/,T=/[\r\n]/,P=/\n\r?\n$/,R=/^\r?\n\r?\n/;function M(e){let t=e.map(e=>r(e));function n(e,t){if(!e||!t)return 6;let n=e.charAt(e.length-1),r=t.charAt(0),i=n.match(A),o=r.match(A),s=i&&n.match(C),a=o&&r.match(C),l=s&&n.match(T),u=a&&r.match(T),c=l&&e.match(P),d=u&&t.match(R);return c||d?5:l||u?4:i&&!s&&a?3:s||a?2:i||o?1:0}let i=1;for(;i<t.length-1;){if(t[i-1][0]===y&&t[i+1][0]===y){let e=t[i-1][1],r=t[i][1],o=t[i+1][1],a=s(e,r);if(a){let t=r.substring(r.length-a);e=e.substring(0,e.length-a),r=t+r.substring(0,r.length-a),o=t+o}let l=e,u=r,c=o,d=n(e,r)+n(r,o);for(;r.charAt(0)===o.charAt(0);){e+=r.charAt(0),r=r.substring(1)+o.charAt(0),o=o.substring(1);let t=n(e,r)+n(r,o);t>=d&&(d=t,l=e,u=r,c=o)}t[i-1][1]!==l&&(l?t[i-1][1]=l:(t.splice(i-1,1),i--),t[i][1]=u,c?t[i+1][1]=c:(t.splice(i+1,1),i--))}i++}return t}function j(e){let t=e.map(e=>r(e));t.push([y,""]);let n=0,i=0,a=0,l="",u="",c;for(;n<t.length;)switch(t[n][0]){case b:a++,u+=t[n][1],n++;break;case m:i++,l+=t[n][1],n++;break;case y:i+a>1?(0!==i&&0!==a&&(0!==(c=o(u,l))&&(n-i-a>0&&t[n-i-a-1][0]===y?t[n-i-a-1][1]+=u.substring(0,c):(t.splice(0,0,[y,u.substring(0,c)]),n++),u=u.substring(c),l=l.substring(c)),0!==(c=s(u,l))&&(t[n][1]=u.substring(u.length-c)+t[n][1],u=u.substring(0,u.length-c),l=l.substring(0,l.length-c))),n-=i+a,t.splice(n,i+a),l.length&&(t.splice(n,0,[m,l]),n++),u.length&&(t.splice(n,0,[b,u]),n++),n++):0!==n&&t[n-1][0]===y?(t[n-1][1]+=t[n][1],t.splice(n,1)):n++,a=0,i=0,l="",u="";break;default:throw Error("Unknown diff operation")}""===t[t.length-1][1]&&t.pop();let d=!1;for(n=1;n<t.length-1;)t[n-1][0]===y&&t[n+1][0]===y&&(t[n][1].substring(t[n][1].length-t[n-1][1].length)===t[n-1][1]?(t[n][1]=t[n-1][1]+t[n][1].substring(0,t[n][1].length-t[n-1][1].length),t[n+1][1]=t[n-1][1]+t[n+1][1],t.splice(n-1,1),d=!0):t[n][1].substring(0,t[n+1][1].length)===t[n+1][1]&&(t[n-1][1]+=t[n+1][1],t[n][1]=t[n][1].substring(t[n+1][1].length)+t[n+1][1],t.splice(n+1,1),d=!0)),n++;return d&&(t=j(t)),t}function O(e,t=4){let n=e.map(e=>r(e)),i=!1,o=[],s=0,a=null,l=0,u=!1,c=!1,d=!1,h=!1;for(;l<n.length;)n[l][0]===y?(n[l][1].length<t&&(d||h)?(o[s++]=l,u=d,c=h,a=n[l][1]):(s=0,a=null),d=!1,h=!1):(n[l][0]===m?h=!0:d=!0,a&&(u&&c&&d&&h||a.length<t/2&&3===function(...e){return e.reduce((e,t)=>e+ +!!t,0)}(u,c,d,h))&&(n.splice(o[s-1],0,[m,a]),n[o[s-1]+1][0]=b,s--,a=null,u&&c?(d=!0,h=!0,s=0):(l=--s>0?o[s-1]:-1,d=!1,h=!1),i=!0)),l++;return i&&(n=j(n)),n}var I=Object.defineProperty,D=Object.getOwnPropertySymbols,_=Object.prototype.hasOwnProperty,L=Object.prototype.propertyIsEnumerable,V=(e,t,n)=>t in e?I(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,$=(e,t)=>{for(var n in t||(t={}
146))_.call(t,n)&&V(e,n,t[n]);if(D)for(var n of D(t))L.call(t,n)&&V(e,n,t[n]);return e};let z={threshold:.5,distance:1e3};function F(e,t,n,r={}){if(null===e||null===t||null===n)throw Error("Null input. (match())");let i=Math.max(0,Math.min(n,e.length));return e===t?0:e.length?e.substring(i,i+t.length)===t?i:function(e,t,n,r={}){if(t.length>32)throw Error("Pattern too long for this browser.");let i=$($({},z),r),o=function(e){let t={};for(let n=0;n<e.length;n++)t[e.charAt(n)]=0;for(let n=0;n<e.length;n++)t[e.charAt(n)]|=1<<e.length-n-1;return t}(t);function s(e,r){let o=e/t.length,s=Math.abs(n-r);return i.distance?o+s/i.distance:s?1:o}let a=i.threshold,l=e.indexOf(t,n);-1!==l&&(a=Math.min(s(0,l),a),-1!==(l=e.lastIndexOf(t,n+t.length))&&(a=Math.min(s(0,l),a)));let u=1<<t.length-1;l=-1;let c,d,h=t.length+e.length,f=[];for(let r=0;r<t.length;r++){for(c=0,d=h;c<d;)s(r,n+d)<=a?c=d:h=d,d=Math.floor((h-c)/2+c);h=d;let i=Math.max(1,n-d+1),p=Math.min(n+d,e.length)+t.length,g=Array(p+2);g[p+1]=(1<<r)-1;for(let t=p;t>=i;t--){let c=o[e.charAt(t-1)];if(0===r?g[t]=(g[t+1]<<1|1)&c:g[t]=(g[t+1]<<1|1)&c|((f[t+1]|f[t])<<1|1)|f[t+1],g[t]&u){let e=s(r,t-1);if(e<=a)if(a=e,(l=t-1)>n)i=Math.max(1,2*n-l);else break}}if(s(r+1,n)>a)break;f=g}return l}(e,t,i,r):-1}function N(e){let t=[];for(let n=0;n<e.length;n++)e[n][0]!==b&&(t[n]=e[n][1]);return t.join("")}function B(e){let t=[];for(let n=0;n<e.length;n++)e[n][0]!==m&&(t[n]=e[n][1]);return t.join("")}function H(e,t){let n=0,r=0,i=0,o=0,s;for(s=0;s<e.length&&(e[s][0]!==b&&(n+=e[s][1].length),e[s][0]!==m&&(r+=e[s][1].length),!(n>t));s++)i=n,o=r;return e.length!==s&&e[s][0]===m?o:o+(t-i)}function U(e){let t=0;for(let n=0;n<e.length;n++){let r=e.codePointAt(n);if(typeof r>"u")throw Error("Failed to get codepoint");t+=W(r)}return t}function W(e){return e<=127?1:e<=2047?2:e<=65535?3:4}function Y(e,t){return{diffs:[],start1:e,start2:t,utf8Start1:e,utf8Start2:t,length1:0,length2:0,utf8Length1:0,utf8Length2:0}}function G(e,t,n={}){if("string"==typeof e)throw Error("Patches must be an array - pass the patch to `parsePatch()` first");let i=t;if(0===e.length)return[i,[]];let o=function(e,t,n={}){let i=0,o=0;function s(e){for(;i<e;){let e=t.codePointAt(o);if(typeof e>"u")return o;i+=W(e),e>65535?o+=2:o+=1}if(!n.allowExceedingIndices&&i!==e)throw Error("Failed to determine byte offset");return o}let a=[];for(let t of e)a.push({diffs:t.diffs.map(e=>r(e)),start1:s(t.start1),start2:s(t.start2),utf8Start1:t.utf8Start1,utf8Start2:t.utf8Start2,length1:t.length1,length2:t.length2,utf8Length1:t.utf8Length1,utf8Length2:t.utf8Length2});return a}(e,i,{allowExceedingIndices:n.allowExceedingIndices}),s=n.margin||4,a=n.deleteThreshold||.4,l=function(e,t=4){let n="";for(let e=1;e<=t;e++)n+=String.fromCharCode(e);for(let n of e)n.start1+=t,n.start2+=t,n.utf8Start1+=t,n.utf8Start2+=t;let r=e[0],i=r.diffs;if(0===i.length||i[0][0]!==y)i.unshift([y,n]),r.start1-=t,r.start2-=t,r.utf8Start1-=t,r.utf8Start2-=t,r.length1+=t,r.length2+=t,r.utf8Length1+=t,r.utf8Length2+=t;else if(t>i[0][1].length){let e=i[0][1].length,o=t-e;i[0][1]=n.substring(e)+i[0][1],r.start1-=o,r.start2-=o,r.utf8Start1-=o,r.utf8Start2-=o,r.length1+=o,r.length2+=o,r.utf8Length1+=o,r.utf8Length2+=o}if(0===(i=(r=e[e.length-1]).diffs).length||i[i.length-1][0]!==y)i.push([y,n]),r.length1+=t,r.length2+=t,r.utf8Length1+=t,r.utf8Length2+=t;else if(t>i[i.length-1][1].length){let e=t-i[i.length-1][1].length;i[i.length-1][1]+=n.substring(0,e),r.length1+=e,r.length2+=e,r.utf8Length1+=e,r.utf8Length2+=e}return n}(o,s);i=l+i+l,function(e,t=4){for(let n=0;n<e.length;n++){if(e[n].length1<=32)continue;let r=e[n];e.splice(n--,1);let i=r.start1,o=r.start2,s="";for(;0!==r.diffs.length;){let a=Y(i-s.length,o-s.length),l=!0;if(""!==s){let e=U(s);a.length1=s.length,a.utf8Length1=e,a.length2=s.length,a.utf8Length2=e,a.diffs.push([y,s])}for(;0!==r.diffs.length&&a.length1<32-t;){let e=r.diffs[0][0],n=r.diffs[0][1],s=U(n);if(e===b){a.length2+=n.length,a.utf8Length2+=s,o+=n.length;let e=r.diffs.shift();e&&a.diffs.push(e),l=!1}else e===m&&1===a.diffs.length&&a.diffs[0][0]===y&&n.length>64?(a.length1+=n.length,a.utf8Length1+=s,i+=n.length,l=!1,a.diffs.push([e,n]),r.diffs.shift()):(s=U(n=n.substring(0,32-a.length1-t)),a.length1+=n.length,a.utf8Length1+=s,i+=n.length,e===y?(a.length2+=n.length,a.utf8Length2+=s,o+=n.length):l=!1,a.diffs.push([e,n]),n===r.diffs[0][1]?r.diffs.shift():r.diffs[0][1]=r.diffs[0][1].substring(n.length))}s=(s=B(a.diffs)).substring(s.length-t);let u=N(r.diffs).substring(0,t),c=U(u);""!==u&&(a.length1+=u.length,a.length2+=u.length,a.utf8Length1+=c,a.utf8Length2+=c,0!==a.diffs.length&&a.diffs[a.diffs.length-1][0]===y?a.diffs[a.diffs.length-1][1]+=u:a.diffs.push([y,u])),l||e.splice(++n,0,a)}}}(o,s);let u=0,c=[];for(let e=0;e<o.length;
146e++){let t=o[e].start2+u,n=N(o[e].diffs),r,s=-1;if(n.length>32?-1!==(r=F(i,n.substring(0,32),t))&&(-1===(s=F(i,n.substring(n.length-32),t+n.length-32))||r>=s)&&(r=-1):r=F(i,n,t),-1===r)c[e]=!1,u-=o[e].length2-o[e].length1;else{let l;if(c[e]=!0,u=r-t,l=-1===s?i.substring(r,r+n.length):i.substring(r,s+32),n===l)i=i.substring(0,r)+B(o[e].diffs)+i.substring(r+n.length);else{let t=v(n,l,{checkLines:!1});if(n.length>32&&function(e){let t=0,n=0,r=0;for(let i=0;i<e.length;i++){let o=e[i][0],s=e[i][1];switch(o){case b:n+=s.length;break;case m:r+=s.length;break;case y:t+=Math.max(n,r),n=0,r=0;break;default:throw Error("Unknown diff operation.")}}return t+Math.max(n,r)}(t)/n.length>a)c[e]=!1;else{t=M(t);let n=0,s=0;for(let a=0;a<o[e].diffs.length;a++){let l=o[e].diffs[a];l[0]!==y&&(s=H(t,n)),l[0]===b?i=i.substring(0,r+s)+l[1]+i.substring(r+s):l[0]===m&&(i=i.substring(0,r+s)+i.substring(r+H(t,n+l[1].length))),l[0]!==m&&(n+=l[1].length)}}}}}return[i=i.substring(l.length,i.length-l.length),c]}var q=Object.defineProperty,K=Object.getOwnPropertySymbols,X=Object.prototype.hasOwnProperty,Z=Object.prototype.propertyIsEnumerable,J=(e,t,n)=>t in e?q(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Q=(e,t)=>{for(var n in t||(t={}))X.call(t,n)&&J(e,n,t[n]);if(K)for(var n of K(t))Z.call(t,n)&&J(e,n,t[n]);return e};let ee={margin:4};function et(e={}){return Q(Q({},ee),e)}function en(e,t,n){if("string"==typeof e&&"string"==typeof t){let r=v(e,t,{checkLines:!0});return r.length>2&&(r=O(r=E(r))),er(e,r,et(n))}if(e&&Array.isArray(e)&&typeof t>"u")return er(N(e),e,et(n));if("string"==typeof e&&t&&Array.isArray(t))return er(e,t,et(n));throw Error("Unknown call format to make()")}function er(e,t,n){if(0===t.length)return[];let r=[],i=Y(0,0),o=0,s=0,a=0,l=0,u=0,c=e,d=e;for(let e=0;e<t.length;e++){let h=t[e],[f,p]=h,g=p.length,v=U(p);switch(!o&&f!==y&&(i.start1=s,i.start2=a,i.utf8Start1=l,i.utf8Start2=u),f){case b:i.diffs[o++]=h,i.length2+=g,i.utf8Length2+=v,d=d.substring(0,a)+p+d.substring(a);break;case m:i.length1+=g,i.utf8Length1+=v,i.diffs[o++]=h,d=d.substring(0,a)+d.substring(a+g);break;case y:g<=2*n.margin&&o&&t.length!==e+1?(i.diffs[o++]=h,i.length1+=g,i.length2+=g,i.utf8Length1+=v,i.utf8Length2+=v):g>=2*n.margin&&o&&(ei(i,c,n),r.push(i),i=Y(-1,-1),o=0,c=d,s=a,l=u);break;default:throw Error("Unknown diff type")}f!==b&&(s+=g,l+=v),f!==m&&(a+=g,u+=v)}return o&&(ei(i,c,n),r.push(i)),r}function ei(e,t,n){if(0===t.length)return;let r=t.substring(e.start2,e.start2+e.length1),i=0;for(;t.indexOf(r)!==t.lastIndexOf(r)&&r.length<32-n.margin-n.margin;)i+=n.margin,r=t.substring(e.start2-i,e.start2+e.length1+i);i+=n.margin;let o=e.start2-i;o>=1&&a(t[o])&&o--;let s=t.substring(o,e.start2);s&&e.diffs.unshift([y,s]);let l=s.length,u=U(s),c=e.start2+e.length1+i;c<t.length&&a(t[c])&&c++;let d=t.substring(e.start2+e.length1,c);d&&e.diffs.push([y,d]);let h=d.length,f=U(d);e.start1-=l,e.start2-=l,e.utf8Start1-=u,e.utf8Start2-=u,e.length1+=l+h,e.length2+=l+h,e.utf8Length1+=u+f,e.utf8Length2+=u+f}let eo=/^@@ -(\d+),?(\d*) \+(\d+),?(\d*) @@$/;function es(e){if(!e)return[];let t=[],n=e.split(` 147`),r=0;for(;r<n.length;){let e=n[r].match(eo);if(!e)throw Error(`Invalid patch string: ${n[r]}`);let i=Y(ea(e[1]),ea(e[3]));for(t.push(i),""===e[2]?(i.start1--,i.utf8Start1--,i.length1=1,i.utf8Length1=1):"0"===e[2]?(i.length1=0,i.utf8Length1=0):(i.start1--,i.utf8Start1--,i.utf8Length1=ea(e[2]),i.length1=i.utf8Length1),""===e[4]?(i.start2--,i.utf8Start2--,i.length2=1,i.utf8Length2=1):"0"===e[4]?(i.length2=0,i.utf8Length2=0):(i.start2--,i.utf8Start2--,i.utf8Length2=ea(e[4]),i.length2=i.utf8Length2),r++;r<n.length;){let e,t=n[r],o=t.charAt(0);if("@"===o)break;if(""===o){r++;continue}try{e=decodeURI(t.slice(1))}catch(e){throw Error(`Illegal escape in parse: ${t}`)}let s=U(e)-e.length;if("-"===o)i.diffs.push([m,e]),i.length1-=s;else if("+"===o)i.diffs.push([b,e]),i.length2-=s;else if(" "===o)i.diffs.push([y,e]),i.length1-=s,i.length2-=s;else throw Error(`Invalid patch mode "${o}" in: ${e}`);r++}}return t}function ea(e){return parseInt(e,10)}function el(e){return e.map(eu).join("")}function eu(e){let t,n,r,{utf8Length1:i,utf8Length2:o,utf8Start1:s,utf8Start2:a,diffs:l}=e;t=0===i?`${s},0`:1===i?`${s+1}`:`${s+1},${i}`,n=0===o?`${a},0`:1===o?`${a+1}`:`${a+1},${o}`;let u=[`@@ -${t} +${n} @@ 148`];for(let e=0;e<l.length;e++){switch(l[e][0]){case b:r="+";break;case m:r="-";break;case y:r=" ";break;default:throw Error("Unknown patch operation.")}u[e+1]=`${r+encodeURI(l[e][1])} 149`}return u.join("").replace(/%20/g," ")}},59132:e=>{var t=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;e.exports=function(e){return e.match(t)||[]}}
149,60760:(e,t,n)=>{"use strict";n.d(t,{N:()=>y});var r=n(95155),i=n(12115),o=n(90869),s=n(82885),a=n(97494),l=n(80845),u=n(27351),c=n(51508);class d extends i.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){let e=t.offsetParent,n=(0,u.s)(e)&&e.offsetWidth||0,r=this.props.sizeRef.current;r.height=t.offsetHeight||0,r.width=t.offsetWidth||0,r.top=t.offsetTop,r.left=t.offsetLeft,r.right=n-r.width-r.left}return null}componentDidUpdate(){}render(){return this.props.children}}function h(e){let{children:t,isPresent:n,anchorX:o}=e,s=(0,i.useId)(),a=(0,i.useRef)(null),l=(0,i.useRef)({width:0,height:0,top:0,left:0,right:0}),{nonce:u}=(0,i.useContext)(c.Q);return(0,i.useInsertionEffect)(()=>{let{width:e,height:t,top:r,left:i,right:c}=l.current;if(n||!a.current||!e||!t)return;a.current.dataset.motionPopId=s;let d=document.createElement("style");return u&&(d.nonce=u),document.head.appendChild(d),d.sheet&&d.sheet.insertRule('\n [data-motion-pop-id="'.concat(s,'"] {\n position: absolute !important;\n width: ').concat(e,"px !important;\n height: ").concat(t,"px !important;\n ").concat("left"===o?"left: ".concat(i):"right: ".concat(c),"px !important;\n top: ").concat(r,"px !important;\n }\n ")),()=>{document.head.contains(d)&&document.head.removeChild(d)}},[n]),(0,r.jsx)(d,{isPresent:n,childRef:a,sizeRef:l,children:i.cloneElement(t,{ref:a})})}let f=e=>{let{children:t,initial:n,isPresent:o,onExitComplete:a,custom:u,presenceAffectsLayout:c,mode:d,anchorX:f}=e,g=(0,s.M)(p),m=(0,i.useId)(),b=!0,y=(0,i.useMemo)(()=>(b=!1,{id:m,initial:n,isPresent:o,custom:u,onExitComplete:e=>{for(let t of(g.set(e,!0),g.values()))if(!t)return;a&&a()},register:e=>(g.set(e,!1),()=>g.delete(e))}),[o,g,a]);return c&&b&&(y={...y}),(0,i.useMemo)(()=>{g.forEach((e,t)=>g.set(t,!1))},[o]),i.useEffect(()=>{o||g.size||!a||a()},[o]),"popLayout"===d&&(t=(0,r.jsx)(h,{isPresent:o,anchorX:f,children:t})),(0,r.jsx)(l.t.Provider,{value:y,children:t})};function p(){return new Map}var g=n(32082);let m=e=>e.key||"";function b(e){let t=[];return i.Children.forEach(e,e=>{(0,i.isValidElement)(e)&&t.push(e)}),t}let y=e=>{let{children:t,custom:n,initial:l=!0,onExitComplete:u,presenceAffectsLayout:c=!0,mode:d="sync",propagate:h=!1,anchorX:p="left"}=e,[y,v]=(0,g.xQ)(h),x=(0,i.useMemo)(()=>b(t),[t]),w=h&&!y?[]:x.map(m),k=(0,i.useRef)(!0),S=(0,i.useRef)(x),E=(0,s.M)(()=>new Map),[A,C]=(0,i.useState)(x),[T,P]=(0,i.useState)(x);(0,a.E)(()=>{k.current=!1,S.current=x;for(let e=0;e<T.length;e++){let t=m(T[e]);w.includes(t)?E.delete(t):!0!==E.get(t)&&E.set(t,!1)}},[T,w.length,w.join("-")]);let R=[];if(x!==A){let e=[...x];for(let t=0;t<T.length;t++){let n=T[t],r=m(n);w.includes(r)||(e.splice(t,0,n),R.push(n))}return"wait"===d&&R.length&&(e=R),P(b(e)),C(x),null}let{forceRender:M}=(0,i.useContext)(o.L);return(0,r.jsx)(r.Fragment,{children:T.map(e=>{let t=m(e),i=(!h||!!y)&&(x===T||w.includes(t));return(0,r.jsx)(f,{isPresent:i,initial:(!k.current||!!l)&&void 0,custom:n,presenceAffectsLayout:c,mode:d,onExitComplete:i?void 0:()=>{if(!E.has(t))return;E.set(t,!0);let e=!0;E.forEach(t=>{t||(e=!1)}),e&&(null==M||M(),P(S.current),h&&(null==v||v()),u&&u())},anchorX:p,children:e},t)})})}},62795:e=>{e.exports=function(e,t,n,r){var i=-1,o=null==e?0:e.length;for(r&&o&&(n=e[++i]);++i<o;)n=t(n,e[i],i,e);return n}},62962:(e,t,n)=>{var r=n(48659),i=n(65531),o=n(75145),s=n(85855);e.exports=function(e){return function(t){var n=i(t=s(t))?o(t):void 0,a=n?n[0]:t.charAt(0),l=n?r(n,1).join(""):t.slice(1);return a[e]()+l}}},64384:e=>{var t="\ud800-\udfff",n="\\u2700-\\u27bf",r="a-z\\xdf-\\xf6\\xf8-\\xff",i="A-Z\\xc0-\\xd6\\xd8-\\xde",o="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",s="['â]",a="["+o+"]",l="["+r+"]",u="[^"+t+o+"\\d+"+n+r+i+"]",c="(?:\ud83c[\udde6-\uddff]){2}",d="[\ud800-\udbff][\udc00-\udfff]",h="["+i+"]",f="(?:"+l+"|"+u+")",p="(?:"+h+"|"+u+")",g="(?:"+s+"(?:d|ll|m|re|s|t|ve))?",m="(?:"+s+"(?:D|LL|M|RE|S|T|VE))?",b="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\ud83c[\udffb-\udfff])?",y="[\\ufe0e\\ufe0f]?",v="(?:\\u200d(?:"+["[^"+t+"]",c,d].join("|")+")"+y+b+")*",x="(?:"+["["+n+"]",c,d].join("|")+")"+(y+b+v),w=RegExp([h+"?"+l+"+"+g+"(?="+[a,h,"$"].join("|")+")",p+"+"+m+"(?="+[a,h+f,"$"].join("|")+")",h+"?"+f+"+"+g,h+"+"+m,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])","\\d+",x].join("|"),"g");e.exports=function(e){return e.match(w)||[]}},64439:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},65432:(e,t,n)=>{"use strict";n.d(t,{B3:()=>ea,JW:()=>w,me:()=>
149ev,sR:()=>ew});var r=n(55325);function i(e,t,n,r,i,o){return{enabled:e.selectable({base:t,dark:n,solid:r,muted:i,state:"enabled",tone:o}),hovered:e.selectable({base:t,dark:n,solid:r,muted:i,state:"hovered",tone:o}),pressed:e.selectable({base:t,dark:n,solid:r,muted:i,state:"pressed",tone:o}),selected:e.selectable({base:t,dark:n,solid:r,muted:i,state:"selected",tone:o}),disabled:e.selectable({base:t,dark:n,solid:r,muted:i,state:"disabled",tone:o})}}function o(e,t,n,r,i,o){return{default:e.button({base:t,dark:n,solid:r.default,muted:i.default,mode:o}),primary:e.button({base:t,dark:n,solid:r.primary,muted:i.primary,mode:o}),positive:e.button({base:t,dark:n,solid:r.positive,muted:i.positive,mode:o}),caution:e.button({base:t,dark:n,solid:r.caution,muted:i.caution,mode:o}),critical:e.button({base:t,dark:n,solid:r.critical,muted:i.critical,mode:o})}}let s="hsl(0, 0%, 0%)",a="hsl(0, 0%, 100%)",l={default:{lightest:"hsl(0, 0%, 95%)",lighter:"hsl(0, 0%, 70%)",light:"hsl(0, 0%, 65%)",base:"hsl(0, 0%, 50%)",dark:"hsl(0, 0%, 35%)",darker:"hsl(0, 0%, 20%)",darkest:"hsl(0, 0%, 5%)"},transparent:{lightest:"hsl(240, 100%, 95%)",lighter:"hsl(240, 100%, 70%)",light:"hsl(240, 100%, 65%)",base:"hsl(240, 100%, 50%)",dark:"hsl(240, 100%, 35%)",darker:"hsl(240, 100%, 20%)",darkest:"hsl(240, 100%, 5%)"},primary:{lightest:"hsl(240, 100%, 95%)",lighter:"hsl(240, 100%, 70%)",light:"hsl(240, 100%, 65%)",base:"hsl(240, 100%, 50%)",dark:"hsl(240, 100%, 35%)",darker:"hsl(240, 100%, 20%)",darkest:"hsl(240, 100%, 5%)"},positive:{lightest:"hsl(120, 100%, 95%)",lighter:"hsl(120, 100%, 70%)",light:"hsl(120, 100%, 65%)",base:"hsl(120, 100%, 50%)",dark:"hsl(120, 100%, 35%)",darker:"hsl(120, 100%, 20%)",darkest:"hsl(120, 100%, 5%)"},caution:{lightest:"hsl(60, 100%, 95%)",lighter:"hsl(60, 100%, 70%)",light:"hsl(60, 100%, 65%)",base:"hsl(60, 100%, 50%)",dark:"hsl(60, 100%, 35%)",darker:"hsl(60, 100%, 20%)",darkest:"hsl(60, 100%, 5%)"},critical:{lightest:"hsl(0, 100%, 95%)",lighter:"hsl(0, 100%, 70%)",light:"hsl(0, 100%, 65%)",base:"hsl(0, 100%, 50%)",dark:"hsl(0, 100%, 35%)",darker:"hsl(0, 100%, 20%)",darkest:"hsl(0, 100%, 5%)"}},u={gray:"hsl(0, 0%, 50%)",red:"hsl(0, 100%, 50%)",orange:"hsl(30, 100%, 50%)",yellow:"hsl(60, 100%, 50%)",green:"hsl(120, 100%, 50%)",cyan:"hsl(180, 100%, 50%)",blue:"hsl(240, 100%, 50%)",purple:"hsl(270, 100%, 50%)",magenta:"hsl(300, 100%, 50%)"},c={transparent:{bg:[l.transparent.darkest,l.transparent.lightest],fg:[l.transparent.lightest,l.transparent.darkest],border:[l.transparent.darker,l.transparent.lighter],focusRing:[l.transparent.base,l.transparent.base]},primary:{bg:[l.primary.darkest,l.primary.lightest],fg:[l.primary.lightest,l.primary.darkest],border:[l.primary.darker,l.primary.lighter],focusRing:[l.primary.base,l.primary.base]},positive:{bg:[l.positive.darkest,l.positive.lightest],fg:[l.positive.lightest,l.positive.darkest],border:[l.positive.darker,l.positive.lighter],focusRing:[l.positive.base,l.positive.base]},caution:{bg:[l.caution.darkest,l.caution.lightest],fg:[l.caution.lightest,l.caution.darkest],border:[l.caution.darker,l.caution.lighter],focusRing:[l.caution.base,l.caution.base]},critical:{bg:[l.critical.darkest,l.critical.lightest],fg:[l.critical.lightest,l.critical.darkest],border:[l.critical.darker,l.critical.lighter],focusRing:[l.critical.base,l.critical.base]}};function d(e,t,n){let r=e.base({dark:t,name:n}),s={default:{enabled:e.solid({base:r,dark:t,tone:"default",name:n,state:"enabled"}),disabled:e.solid({base:r,dark:t,tone:"default",name:n,state:"disabled"}),hovered:e.solid({base:r,dark:t,tone:"default",name:n,state:"hovered"}),pressed:e.solid({base:r,dark:t,tone:"default",name:n,state:"pressed"}),selected:e.solid({base:r,dark:t,tone:"default",name:n,state:"selected"})},transparent:{enabled:e.solid({base:r,dark:t,tone:"transparent",name:n,state:"enabled"}),disabled:e.solid({base:r,dark:t,tone:"transparent",name:n,state:"disabled"}),hovered:e.solid({base:r,dark:t,tone:"transparent",name:n,state:"hovered"}),pressed:e.solid({base:r,dark:t,tone:"transparent",name:n,state:"pressed"}),selected:e.solid({base:r,dark:t,tone:"transparent",name:n,state:"selected"})},primary:{enabled:e.solid({base:r,dark:t,tone:"primary",name:n,state:"enabled"}),disabled:e.solid({base:r,dark:t,tone:"primary",name:n,state:"disabled"}),hovered:e.solid({base:r,dark:t,tone:"primary",name:n,state:"hovered"}),pressed:e.solid({base:r,dark:t,tone:"primary",name:n,state:"pressed"}),selected:e.solid({base:r,dark:t,tone:"primary",name:n,state:"selected"})},positive:{enabled:e.solid({base:r,dark:t,tone:"positive",name:n,state:"enabled"}),disabled:e.solid({base:r,dark:t,tone:"positive",name:n,state:"disabled"}),hovered:e.solid({base:r,dark:t,tone:"positive",name:n,state:"hovered"}),pressed:e.solid({base:r,dark:t,tone:"positive",name:n,state:"pressed"}),selected:e.solid({base:r,dark:t,tone:"positive",name:n,state:"selected"})},caution:{enabled:e.solid({base:r,dark:t,tone:"caution",name:n,state:"enabled"}),disabled:e.solid({base:r,dark:t,tone:"caution",name:n,state:"disabled"}),hovered:e.solid({base:r,dark:t,tone:"caution",name:n,state:"hovered"}),pressed:e.solid({base:r,dark:t,tone:"caution",name:n,state:"pressed"}),selected:e.solid({base:r,dark:t,tone:"caution",name:n,state:"selected"})},critical:{enabled:e.solid({base:r,dark:t,tone:"critical",name:n,state:"enabled"}),disabled:e.solid({base:r,dark:t,tone:"critical",name:n,state:"disabled"}),hovered:e.solid({base:r,dark:t,tone:"critical",name:n,state:"hovered"}),pressed:e.solid({base:r,dark:t,tone:"critical",name:n,state:"pressed"}),selected:e.solid({base:r,dark:t,tone:"critical",name:n,state:"selected"})}},a={default:{enabled:e.muted({base:r,dark:t,tone:"default",name:n,state:"enabled"}),disabled:e.muted({base:r,dark:t,tone:"default",name:n,state:"disabled"}),hovered:e.muted({base:r,dark:t,tone:"default",name:n,state:"hovered"}),pressed:e.muted({base:r,dark:t,tone:"default",name:n,state:"pressed"}),selected:e.muted({base:r,dark:t,tone:"default",name:n,state:"selected"})},transparent:{enabled:e.muted({base:r,dark:t,tone:"transparent",name:n,state:"enabled"}),disabled:e.muted({base:r,dark:t,tone:"transparent",name:n,state:"disabled"}),hovered:e.muted({base:r,dark:t,tone:"transparent",name:n,state:"hovered"}),pressed:e.muted({base:r,dark:t,tone:"transparent",name:n,state:"pressed"}),selected:e.muted({base:r,dark:t,tone:"transparent",name:n,state:"selected"})},primary:{enabled:e.muted({base:r,dark:t,tone:"primary",name:n,state:"enabled"}),disabled:e.muted({base:r,dark:t,tone:"primary",name:n,state:"disabled"}),hovered:e.muted({base:r,dark:t,tone:"primary",name:n,state:"hovered"}),pressed:e.muted({base:r,dark:t,tone:"primary",name:n,state:"pressed"}),selected:e.muted({base:r,dark:t,tone:"primary",name:n,state:"selected"})},positive:{enabled:e.muted({base:r,dark:t,tone:"positive",name:n,state:"enabled"}),disabled:e.muted({base:r,dark:t,tone:"positive",name:n,state:"disabled"}),hovered:e.muted({base:r,dark:t,tone:"positive",name:n,state:"hovered"}),pressed:e.muted({base:r,dark:t,tone:"positive",name:n,state:"pressed"}),selected:e.muted({base:r,dark:t,tone:"positive",name:n,state:"selected"})},caution:{enabled:e.muted({base:r,dark:t,tone:"caution",name:n,state:"enabled"}),disabled:e.muted({base:r,dark:t,tone:"caution",name:n,state:"disabled"}),hovered:e.muted({base:r,dark:t,tone:"caution",name:n,state:"hovered"}),pressed:e.muted({base:r,dark:t,tone:"caution",name:n,state:"pressed"}),selected:e.muted({base:r,dark:t,tone:"caution",name:n,state:"selected"})},critical:{enabled:e.muted({base:r,dark:t,tone:"critical",name:n,state:"enabled"}),disabled:e.muted({base:r,dark:t,tone:"critical",name:n,state:"disabled"}),hovered:e.muted({base:r,dark:t,tone:"critical",name:n,state:"hovered"}),pressed:e.muted({base:r,dark:t,tone:"critical",name:n,state:"pressed"}),selected:e.muted({base:r,dark:t,tone:"critical",name:n,state:"selected"})}};return{base:r,button:{default:o(e,r,t,s,a,"default"),ghost:o(e,r,t,s,a,"ghost"),bleed:o(e,r,t,s,a,"bleed")},card:{enabled:e.card({base:r,dark:t,name:n,state:"enabled",solid:s,muted:a}),disabled:e.card({base:r,dark:t,name:n,state:"disabled",solid:s,muted:a}),hovered:e.card({base:r,dark:t,name:n,state:"hovered",solid:s,muted:a}),pressed:e.card({base:r,dark:t,name:n,state:"pressed",solid:s,muted:a}),selected:e.card({base:r,dark:t,name:n,state:"selected",solid:s,muted:a})},dark:t,input:{default:{enabled:e.input({base:r,dark:t,mode:"default",state:"enabled",solid:s.default,muted:a.default}),disabled:e.input({base:r,dark:t,mode:"default",state:"disabled",solid:s.default,muted:a.default}),hovered:e.input({base:r,dark:t,mode:"default",state:"hovered",solid:s.default,muted:a.default}),readOnly:e.input({base:r,dark:t,mode:"default",state:"readOnly",solid:s.default,muted:a.default})},invalid:{enabled:e.input({base:r,dark:t,mode:"invalid",state:"enabled",solid:s.default,muted:a.default}),disabled:e.input({base:r,dark:t,mode:"invalid",state:"disabled",solid:s.default,muted:a.default}),hovered:e.input({base:r,dark:t,mode:"invalid",state:"hovered",solid:s.default,muted:a.default}),readOnly:e.input({base:r,dark:t,mode:"invalid",state:"readOnly",solid:s.default,muted:a.default})}},selectable:{default:i(e,r,t,s,a,"default"),primary:i(e,r,t,s,a,"primary"),positive:i(e,r,t,s,a,"positive"),caution:i(e,r,t,s,a,"caution"),critical:i(e,r,t,s,a,"critical")},spot:{gray:e.spot({base:r,dark:t,key:"gray"}),blue:e.spot({base:r,dark:t,key:"blue"}),purple:e.spot({base:r,dark:t,key:"purple"}),magenta:e.spot({base:r,dark:t,key:"magenta"}),red:e.spot({base:r,dark:t,key:"red"}),orange:e.spot({base:r,dark:t,key:"orange"}),yellow:e.spot({base:r,dark:t,key:"yellow"}),green:e.spot({base:r,dark:t,key:"green"}),cyan:e.spot({base:r,dark:t,key:"cyan"})},syntax:e.syntax({base:r,dark:t}),solid:s,muted:a}}let h={avatar:{sizes:[{distance:-4,size:19},{distance:-4,size:25},{distance:-8,size:33},{distance:-12,size:49}],focusRing:{offset:1,width:1}},button:{textWeight:"medium",border:{width:1},focusRing:{offset:-1,width:1}},card:{border:{width:1},focusRing:{offset:-1,width:1},shadow:{outline:.5}},container:[320,640,960,1280,1600,1920],media:[360,600,900,1200,1800,2400],layer:{dialog:{zOffset:600},popover:{zOffset:400},tooltip:{zOffset:200}},radius:[0,1,3,6,9,12,21],shadow:[null,{umbra:[0,0,0,0],penumbra:[0,0,0,0],ambient:[0,0,0,0]},{umbra:[0,3,5,-2],penumbra:[0,6,10,0],ambient:[0,1,18,1]},{umbra:[0,7,8,-4],penumbra:[0,12,17,2],ambient:[0,5,22,4]},{umbra:[0,9,11,-5],penumbra:[0,18,28,2],ambient:[0,7,34,6]},{umbra:[0,11,15,-7],penumbra:[0,24,38,3],ambient:[0,9,46,8]}],space:[0,4,8,12,20,32,52,84,136,220],input:{border:{width:1},checkbox:{size:17,focusRing:{offset:-1,width:1}}
149,radio:{size:17,markSize:9,focusRing:{offset:-1,width:1}},switch:{width:25,height:17,padding:5,transitionDurationMs:150,transitionTimingFunction:"ease-out",focusRing:{offset:1,width:1}},select:{focusRing:{offset:-1,width:1}},text:{focusRing:{offset:-1,width:1}}},style:{button:{root:{transition:"background-color 100ms,border-color 100ms,color 100ms"}}}},f={code:{family:"ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace",weights:{regular:400,medium:500,semibold:600,bold:700},sizes:[{ascenderHeight:4,descenderHeight:4,fontSize:10,iconSize:17,lineHeight:15,letterSpacing:0},{ascenderHeight:5,descenderHeight:5,fontSize:13,iconSize:21,lineHeight:19,letterSpacing:0},{ascenderHeight:6,descenderHeight:6,fontSize:16,iconSize:25,lineHeight:23,letterSpacing:0},{ascenderHeight:7,descenderHeight:7,fontSize:19,iconSize:29,lineHeight:27,letterSpacing:0},{ascenderHeight:8,descenderHeight:8,fontSize:22,iconSize:33,lineHeight:31,letterSpacing:0}]},heading:{family:'Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Liberation Sans", Helvetica, Arial, system-ui, sans-serif',weights:{regular:700,medium:800,semibold:900,bold:900},sizes:[{ascenderHeight:5,descenderHeight:5,fontSize:13,iconSize:17,lineHeight:19,letterSpacing:0},{ascenderHeight:6,descenderHeight:6,fontSize:16,iconSize:25,lineHeight:23,letterSpacing:0},{ascenderHeight:7,descenderHeight:7,fontSize:21,iconSize:33,lineHeight:29,letterSpacing:0},{ascenderHeight:8,descenderHeight:8,fontSize:27,iconSize:41,lineHeight:35,letterSpacing:0},{ascenderHeight:9.5,descenderHeight:8.5,fontSize:33,iconSize:49,lineHeight:41,letterSpacing:0},{ascenderHeight:10.5,descenderHeight:9.5,fontSize:38,iconSize:53,lineHeight:47,letterSpacing:0}]},label:{family:'Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Liberation Sans", system-ui, sans-serif',weights:{regular:600,medium:700,semibold:800,bold:900},sizes:[{ascenderHeight:2,descenderHeight:2,fontSize:8.1,iconSize:13,lineHeight:10,letterSpacing:.5},{ascenderHeight:2,descenderHeight:2,fontSize:9.5,iconSize:15,lineHeight:11,letterSpacing:.5},{ascenderHeight:2,descenderHeight:2,fontSize:10.8,iconSize:17,lineHeight:12,letterSpacing:.5},{ascenderHeight:2,descenderHeight:2,fontSize:12.25,iconSize:19,lineHeight:13,letterSpacing:.5},{ascenderHeight:2,descenderHeight:2,fontSize:13.6,iconSize:21,lineHeight:14,letterSpacing:.5},{ascenderHeight:2,descenderHeight:2,fontSize:15,iconSize:23,lineHeight:15,letterSpacing:.5}]},text:{family:'Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Liberation Sans", Helvetica, Arial, system-ui, sans-serif',weights:{regular:400,medium:500,semibold:600,bold:700},sizes:[{ascenderHeight:4,descenderHeight:4,fontSize:10,iconSize:17,lineHeight:15,letterSpacing:0},{ascenderHeight:5,descenderHeight:5,fontSize:13,iconSize:21,lineHeight:19,letterSpacing:0},{ascenderHeight:6,descenderHeight:6,fontSize:15,iconSize:25,lineHeight:23,letterSpacing:0},{ascenderHeight:7,descenderHeight:7,fontSize:18,iconSize:29,lineHeight:27,letterSpacing:0},{ascenderHeight:8,descenderHeight:8,fontSize:21,iconSize:33,lineHeight:31,letterSpacing:0}]}},p=new WeakMap;function g(e){let t=p.get(e);if(t)return t;let n=b(e,e.card.enabled),r={_blend:e._blend||(e.dark?"screen":"multiply"),_dark:e.dark,accent:n.accent,avatar:n.avatar,backdrop:e.base.shadow.ambient,badge:n.badge,bg:e.base.bg,border:e.base.border,button:{default:m(e,e.button.default),ghost:m(e,e.button.ghost),bleed:m(e,e.button.bleed)},code:n.code,fg:e.base.fg,focusRing:e.base.focusRing,icon:n.muted.fg,input:{default:y(e.input.default),invalid:y(e.input.invalid)},kbd:n.kbd,link:n.link,muted:{...n.muted,bg:e.selectable?.default.enabled.bg2||e.base.bg},selectable:m(e,e.selectable||e.muted),shadow:e.base.shadow,skeleton:{from:e.skeleton?.from||e.base.border,to:e.skeleton?.to||e.base.border},syntax:e.syntax};return p.set(e,r),r}function m(e,t){return{default:{enabled:b(e,t.default.enabled),hovered:b(e,t.default.hovered),pressed:b(e,t.default.pressed),selected:b(e,t.default.selected),disabled:b(e,t.default.disabled)},neutral:{enabled:b(e,t.default.enabled),hovered:b(e,t.default.hovered),pressed:b(e,t.default.pressed),selected:b(e,t.default.selected),disabled:b(e,t.default.disabled)},primary:{enabled:b(e,t.primary.enabled),hovered:b(e,t.primary.hovered),pressed:b(e,t.primary.pressed),selected:b(e,t.primary.selected),disabled:b(e,t.primary.disabled)},suggest:{enabled:b(e,t.primary.enabled),hovered:b(e,t.primary.hovered),pressed:b(e,t.primary.pressed),selected:b(e,t.primary.selected),disabled:b(e,t.primary.disabled)},positive:{enabled:b(e,t.positive.enabled),hovered:b(e,t.positive.hovered),pressed:b(e,t.positive.pressed),selected:b(e,t.positive.selected),disabled:b(e,t.positive.disabled)},caution:{enabled:b(e,t.caution.enabled),hovered:b(e,t.caution.hovered),pressed:b(e,t.caution.pressed),selected:b(e,t.caution.selected),disabled:b(e,t.caution.disabled)},critical:{enabled:b(e,t.critical.enabled),hovered:b(e,t.critical.hovered),pressed:b(e,t.critical.pressed),selected:b(e,t.critical.selected),disabled:b(e,t.critical.disabled)}}}function b(e,t){return{...t,avatar:{gray:{bg:e.spot.gray,fg:e.base.bg},blue:{bg:e.spot.blue,fg:e.base.bg},purple:{bg:e.spot.purple,fg:e.base.bg},magenta:{bg:e.spot.magenta,fg:e.base.bg},red:{bg:e.spot.red,fg:e.base.bg},orange:{bg:e.spot.orange,fg:e.base.bg},yellow:{bg:e.spot.yellow,fg:e.base.bg},green:{bg:e.spot.green,fg:e.base.bg}
149,cyan:{bg:e.spot.cyan,fg:e.base.bg}},badge:{default:{bg:e.muted.default.enabled.bg,fg:e.muted.default.enabled.fg,dot:e.muted.default.enabled.muted.fg,icon:e.muted.default.enabled.muted.fg},neutral:{bg:e.muted.transparent.enabled.bg,fg:e.muted.transparent.enabled.fg,dot:e.muted.transparent.enabled.muted.fg,icon:e.muted.transparent.enabled.muted.fg},primary:{bg:e.muted.primary.enabled.bg,fg:e.muted.primary.enabled.fg,dot:e.muted.primary.enabled.muted.fg,icon:e.muted.primary.enabled.muted.fg},suggest:{bg:e.muted.primary.enabled.bg,fg:e.muted.primary.enabled.fg,dot:e.muted.primary.enabled.muted.fg,icon:e.muted.primary.enabled.muted.fg},positive:{bg:e.muted.positive.enabled.bg,fg:e.muted.positive.enabled.fg,dot:e.muted.positive.enabled.muted.fg,icon:e.muted.positive.enabled.muted.fg},caution:{bg:e.muted.caution.enabled.bg,fg:e.muted.caution.enabled.fg,dot:e.muted.caution.enabled.muted.fg,icon:e.muted.caution.enabled.muted.fg},critical:{bg:e.muted.critical.enabled.bg,fg:e.muted.critical.enabled.fg,dot:e.muted.critical.enabled.muted.fg,icon:e.muted.critical.enabled.muted.fg}},kbd:{bg:e.muted.default.enabled.bg,fg:e.muted.default.enabled.fg,border:e.muted.default.enabled.border},muted:{...e.muted.default.enabled.muted,bg:t.bg2||t.bg},skeleton:{from:t.skeleton?.from||t.border,to:t.skeleton?.to||t.border}}}function y(e){return{enabled:v(e.enabled),disabled:v(e.disabled),readOnly:v(e.readOnly),hovered:v(e.hovered)}}function v(e){return{bg:e.bg,border:e.border,fg:e.fg,muted:{bg:e.bg2},placeholder:e.placeholder}}let x=new WeakMap;function w(e){if(e.sanity.v2?._resolved)return e.sanity.v2;let t=x.get(e);if(t)return t;let n={_version:2,_resolved:!0,avatar:{...h.avatar,...e.sanity.avatar},button:{...h.button,...e.sanity.button},card:h.card,color:g(e.sanity.color),container:e.sanity.container,font:e.sanity.fonts,input:{...h.input,...e.sanity.input,checkbox:{...h.input.checkbox,...e.sanity.input.checkbox},radio:{...h.input.radio,...e.sanity.input.radio},switch:{...h.input.switch,...e.sanity.input.switch}},layer:e.sanity.layer??h.layer,media:e.sanity.media,radius:e.sanity.radius,shadow:e.sanity.shadows,space:e.sanity.space,style:e.sanity.styles};return x.set(e,n),n}function k(e){return 2===e._version}let S=new WeakMap,E=new WeakMap;function A(e){let t=E.get(e);if(t)return t;let{avatar:n,button:r,color:i,container:o,font:s,input:a,media:l,radius:u,shadow:c,space:d,style:h}=e;return{_version:0,avatar:n,button:r,container:o,color:{light:{transparent:C(i.light.transparent),default:C(i.light.default),primary:C(i.light.primary),positive:C(i.light.positive),caution:C(i.light.caution),critical:C(i.light.critical)},dark:{transparent:C(i.dark.transparent),default:C(i.dark.default),primary:C(i.dark.primary),positive:C(i.dark.positive),caution:C(i.dark.caution),critical:C(i.dark.critical)}},focusRing:a.text.focusRing,fonts:s,input:a,media:l,radius:u,shadows:c,space:d,styles:h,v2:e}}function C(e){return{base:{bg:e.bg,fg:e.fg,border:e.border,focusRing:e.focu
149sRing,shadow:e.shadow},button:e.button,card:e.selectable.default,dark:e._dark,input:{default:T(e.input.default),invalid:T(e.input.invalid)},muted:{...e.button.ghost,transparent:e.button.ghost.default},solid:{...e.button.default,transparent:e.button.default.default},selectable:e.selectable,spot:{gray:e.avatar.gray.bg,blue:e.avatar.blue.bg,purple:e.avatar.purple.bg,magenta:e.avatar.magenta.bg,red:e.avatar.red.bg,orange:e.avatar.orange.bg,yellow:e.avatar.yellow.bg,green:e.avatar.green.bg,cyan:e.avatar.cyan.bg},syntax:e.syntax}}function T(e){return{enabled:P(e.enabled),disabled:P(e.disabled),readOnly:P(e.readOnly),hovered:P(e.hovered)}}function P(e){return{bg:e.bg,bg2:e.muted.bg,border:e.border,fg:e.fg,placeholder:e.placeholder}}let R=["multiply","screen"],M=["transparent","default","neutral","primary","suggest","positive","caution","critical"],j=["default","neutral","primary","suggest","positive","caution","critical"],O=["enabled","hovered","pressed","selected","disabled"],I=["default","ghost","bleed"],D=["default","invalid"],_=["enabled","hovered","readOnly","disabled"];function L(e){return r.V0.includes(e)}function V(e){return/^\d+%$/.test(e)}function $(e){var t;let n=e.split("/"),i=n.shift()||"",[o,s]=i.split(" ");if(L(o)){let e=n.shift()||"";return V(s)?{type:"color",tint:o,mix:Number(s.slice(0,-1))/100}:z(e)?{type:"color",tint:o,opacity:Number(e)}:{type:"color",tint:o}}if("black"===(t=o)||"white"===t){let e=n.shift()||"";return V(s)?{type:"color",key:o,mix:Number(s.slice(0,-1))/100}:z(e)?{type:"color",key:o,opacity:Number(e)}:{type:"color",key:o}}if(r.Cv.includes(o)){let[e,t]=(i=n.shift()||"").split(" ");if(L(e)){let r=n.shift()||"";return V(t)?{type:"color",hue:o,tint:e,mix:Number(t.slice(0,-1))/100}:z(r)?{type:"color",hue:o,tint:e,opacity:Number(r)}:{type:"color",hue:o,tint:e}}return{type:"hue",value:o}}if(R.includes(o))return{type:"blendMode",value:o}}[...r.Cv],[...M],[...j],[...O],[...D],[..._];function z(e){return"0"===e||/^0\.[0-9]+$/.test(e)||"1"===e}let F=["500","500"];function N(e,t=F){var n;let r,{hue:i,scheme:o}=e,s=$(t[+("light"!==o)]);if(!s||"color"!==s.type)throw Error(`Invalid color token: ${t[0]}`);return n={...s,hue:s.hue||i},r="",r="black"===n.key||"white"===n.key?n.key:`${n.hue}/${n.tint}`,void 0!==n.mix?`${r} ${100*n.mix}%`:(void 0!==n.opacity&&(r+=`/${n.opacity}`),r)}let B={base:{"*":{_blend:["multiply","screen"],accent:{fg:["purple/600","purple/400"]},avatar:{"*":{_blend:["screen","multiply"],bg:["500","400"],fg:["white","black"]}},backdrop:["gray/200/0.5","black/0.5"],badge:{"*":{bg:["100","900"],fg:["600","400"],icon:["500","500"],dot:["500","500"]},positive:{bg:["200 50%","900"],fg:["600","500"]},caution:{bg:["200 50%","900"],fg:["600","500"]}},bg:["50","950"],border:["200","800"],code:{bg:["50","950"],fg:["600","400"]},fg:["800","200"],focusRing:["blue/500","blue/500"],icon:["600","400"],kbd:{bg:["white","black"],fg:["600","400"],border:["200","800"]},link:{fg:["blue/600","blue/300"]},muted:{bg:["50","950"],fg:["700 75%","300 75%"]},shadow:{outline:["500/0.3","500/0.4"],umbra:["gray/500/0.1","black/0.2"],penumbra:["gray/500/0.07","black/0.14"],ambient:["gray/500/0.06","black/0.12"]},skeleton:{from:["100","900"],to:["100 50%","900 50%"]}},transparent:{bg:["50","black"]},default:{bg:["white","950"],fg:["800","200"],muted:{fg:["600","400"]}},primary:{_hue:"blue"},suggest:{_hue:"purple"},positive:{_hue:"green",shadow:{outline:["500/0.4","500/0.4"]}},caution:{_hue:"yellow",shadow:{outline:["600/0.3","500/0.4"]}},critical:{_hue:"red"}},button:{default:{"*":{"*":{_blend:["screen","multiply"],accent:{fg:["purple/300","purple/700"]},avatar:{"*":{_blend:["screen","multiply"],bg:["500","400"],fg:["white","black"]}},badge:{"*":{bg:["900","100"],fg:["400","600"],dot:["500","500"],icon:["500","500"]}},bg:["500","400"],border:["500/0","400/0"],code:{bg:["500 20%","400 20%"],fg:["200","600"]},fg:["white","black"],icon:["100 70%","900 70%"],kbd:{bg:["black","white"],fg:["200","600"],border:["800","200"]},link:{fg:["blue/200","blue/600"]},muted:{bg:["950","50"],fg:["100 70%","900 70%"]},skeleton:{from:["900","100"],to:["900 50%","100 50%"]}},hovered:{bg:["600","300"],border:["700/0","300/0"]},pressed:{bg:["700","300"]},selected:{bg:["700","300"]},disabled:{_hue:"gray",accent:{fg:["100 70%","900 70%"]},avatar:{"*":{_blend:["screen","multiply"],bg:["gray/500","gray/400"],fg:["white","black"]}},badge:{"*":{bg:["gray/700","gray/300"],fg:["white","black"],dot:["white","black"],icon:["white","black"]}},bg:["300","600"],code:{bg:["950","50"],fg:["300","600"]},fg:["300","600"],muted:{bg:["950","50"],fg:["300","600"]},kbd:{bg:["black","white"],fg:["white","black"],border:["700","300"]},link:{fg:["100 70%","900 70%"]}}},default:{"*":{avatar:{"*":{_blend:["screen","multiply"],bg:["500","400"],fg:["white","black"]}},bg:["800","200"],muted:{bg:["950","50"],fg:["400","600"]}},hovered:{bg:["900","100"]},pressed:{bg:["black","white"]},selected:{bg:["black","white"]}}},ghost:{"*":{"*":{_blend:["multiply","screen"],accent:{fg:["purple/700 60%","purple/300 70%"]},avatar:{"*":{_blend:["screen","multiply"],bg:["500","400"],fg:["white","black"]}},badge:{"*":{bg:["100","900"],fg:["600","400"],dot:["500","500"],icon:["500","500"]}},bg:["50","950"],border:["100","900"],code:{bg:["500 10%","400 10%"],fg:["700 60%","400 60%"]},fg:["600","400"],icon:["700 60%","300 60%"],kbd:{bg:["white","black"],fg:["600","400"],border:["200","800"]},link:{fg:["blue/700 60%","blue/300 60%"]},muted:{bg:["100","950"],fg:["700 60%","300 60%"]},skeleton:{from:["100","900"],to:["100 50%","900 50%"]}},hovered:{bg:["100","900"],fg:["700","300"]},pressed:{bg:["200","800"],fg:["800","200"]},selected:{bg:["200","800"],fg:["800","200"]},disabled:{_hue:"gray",accent:{fg:["200","800"]},avatar:{"*":{_blend:["screen","multiply"],bg:["gray/100","gray/900"],fg:["white","black"]}}
149,badge:{"*":{_hue:"gray",bg:["50","950"],fg:["gray/200","gray/800"],dot:["gray/200","gray/800"],icon:["gray/200","gray/800"]}},border:["100","900"],code:{bg:["50","950"],fg:["200","800"]},fg:["400","600"],icon:["300","700"],muted:{fg:["300","700"]},kbd:{bg:["white","black"],fg:["200","800"],border:["100","900"]},link:{fg:["200","800"]}}},positive:{"*":{border:["600 20%","800"]}},caution:{"*":{border:["600 20%","800"]}}},bleed:{"*":{"*":{_blend:["multiply","screen"],accent:{fg:["purple/700 70%","purple/300 70%"]},avatar:{"*":{_blend:["screen","multiply"],bg:["500","400"],fg:["white","black"]}},badge:{"*":{bg:["100","900"],fg:["600","400"],dot:["500","500"],icon:["500","500"]}},bg:["white","black"],border:["white/0","black/0"],code:{bg:["50","950"],fg:["700 75%","300 75%"]},fg:["700","300"],icon:["700 75%","300 75%"],kbd:{bg:["white","black"],fg:["700","300"],border:["200","800"]},link:{fg:["blue/700 70%","blue/300 70%"]},muted:{bg:["100","950"],fg:["700 75%","300 75%"]},skeleton:{from:["100","900"],to:["100 50%","900 50%"]}},hovered:{bg:["50","900"],fg:["800","200"],icon:["800 70%","300 70%"]},pressed:{bg:["100","800"],fg:["800","200"],icon:["800 70%","200 70%"]},selected:{bg:["100","900"],fg:["800","200"],icon:["800 60%","200 60%"]},disabled:{_hue:"gray",accent:{fg:["200","800"]},avatar:{"*":{_blend:["screen","multiply"],bg:["gray/100","gray/900"],fg:["white","black"]}},badge:{"*":{_hue:"gray",bg:["50","950"],fg:["gray/200","gray/800"],dot:["gray/200","gray/800"],icon:["gray/200","gray/800"]}},code:{bg:["50","950"],fg:["200","800"]},fg:["400","600"],icon:["300","700"],muted:{fg:["400","600"]},kbd:{bg:["white","black"],fg:["200","800"],border:["100","900"]},link:{fg:["200","800"]}}}}},input:{"*":{"*":{_blend:["multiply","screen"],bg:["white","black"],border:["200","700"],fg:["black","200"],muted:{bg:["50","950"]},placeholder:["400","600"]},hovered:{border:["300","700"]},readOnly:{bg:["50","950"],border:["200","800"],fg:["800","200"]},disabled:{bg:["50","950"],fg:["400","600"],border:["100","900"],placeholder:["200","800 50%"]}},invalid:{"*":{_hue:"red",bg:["100","950"]}}},selectable:{"*":{"*":{_blend:["multiply","screen"],accent:{fg:["purple/700 70%","purple/300 70%"]},avatar:{"*":{_blend:["screen","multiply"],bg:["500","400"],fg:["white","black"]}},badge:{"*":{bg:["100","900"],fg:["600","400"],dot:["500","500"],icon:["500","500"]}},bg:["white","black"],border:["200","800"],code:{bg:["50","950"],fg:["600","400"]},fg:["700","300"],icon:["700 75%","300 75%"],kbd:{bg:["white","black"],fg:["600","400"],border:["200","800"]},link:{fg:["blue/700 70%","blue/300 70%"]},muted:{bg:["50","950"],fg:["700 75%","300 75%"]},skeleton:{from:["100","900"],to:["100 50%","900 50%"]}},hovered:{bg:["50","950"]},pressed:{bg:["100","900"]},selected:{_blend:["screen","multiply"],accent:{fg:["purple/300","purple/700"]},avatar:{"*":{_blend:["multiply","screen"],bg:["white","black"],fg:["black","white"]}},badge:{"*":{bg:["900","100"],fg:["400","600"],dot:["500","500"],icon:["500","500"]}},bg:["500","400"],border:["500 20%","400 20%"],code:{bg:["500 20%","400 20%"],fg:["200","600"]},fg:["white","black"],icon:["100 70%","900 70%"],kbd:{bg:["black","white"],fg:["200","600"],border:["800","200"]},link:{fg:["blue/200","blue/600"]},muted:{bg:["500 10%","400 10%"],fg:["100 70%","900 70%"]},skeleton:{from:["900","100"],to:["900 50%","100 50%"]}},disabled:{_hue:"gray",accent:{fg:["200","800"]},avatar:{"*":{_blend:["screen","multiply"],bg:["gray/100","gray/900"],fg:["white","black"]}},badge:{"*":{_hue:"gray",bg:["50","950"],fg:["gray/200","gray/800"],dot:["gray/200","gray/800"],icon:["gray/200","gray/800"]}},border:["100","900"],code:{bg:["50","950"],fg:["200","800"]},fg:["200","800"],icon:["200","800"],kbd:{bg:["white","black"],fg:["200","800"],border:["100","900"]},link:{fg:["200","800"]},muted:{bg:["50 50%","950 50%"],fg:["200","800"]}}},default:{selected:{_hue:"blue"}},critical:{disabled:{bg:["50 50%","950 50%"]}}},syntax:{atrule:["purple/600","purple/400"],attrName:["green/600","green/400"],attrValue:["yellow/600","yellow/400"],attribute:["yellow/600","yellow/400"],boolean:["purple/600","purple/400"],builtin:["purple/600","purple/400"],c
149data:["yellow/600","yellow/400"],char:["yellow/600","yellow/400"],class:["orange/600","orange/400"],className:["cyan/600","cyan/400"],comment:["gray/400","gray/600"],constant:["purple/600","purple/400"],deleted:["red/600","red/400"],entity:["red/600","red/400"],function:["green/600","green/400"],hexcode:["blue/600","blue/400"],id:["purple/600","purple/400"],important:["purple/600","purple/400"],inserted:["yellow/600","yellow/400"],keyword:["magenta/600","magenta/400"],number:["purple/600","purple/400"],operator:["magenta/600","magenta/400"],property:["blue/600","blue/400"],pseudoClass:["yellow/600","yellow/400"],pseudoElement:["yellow/600","yellow/400"],punctuation:["gray/600","gray/400"],regex:["blue/600","blue/400"],selector:["red/600","red/400"],string:["yellow/600","yellow/400"],symbol:["purple/600","purple/400"],tag:["red/600","red/400"],unit:["orange/600","orange/400"],url:["red/600","red/400"],variable:["red/600","red/400"]}};function H(e){return!!(e&&"object"==typeof e&&!Array.isArray(e))}function U(...e){let t=e.filter(Boolean);return 0===t.length?{}:t.reduce(W,{})}function W(e,t){for(let n of Object.keys(t)){let r=e[n],i=t[n];H(r)&&H(i)?e[n]=U(r,i):e[n]=i}return e}function Y(e,t){let{scheme:n}=e,r={};for(let e of M)r[e]=function(e,t){let{scheme:n,tone:r}=e,i=t?.color?.base?.[r],o={hue:i?._hue||"gray",scheme:n};return{_blend:(i?._blend||["multiply","screen"])[+("light"!==n)],_dark:"dark"===n,accent:{fg:N(o,i?.accent?.fg)},avatar:G({scheme:n},i),backdrop:N(o,i?.backdrop),badge:K(i?.badge,{scheme:n},t),bg:N(o,i?.bg),border:N(o,i?.border),button:function(e,t){let{scheme:n,tone:r}=e,i={};for(let e of I)i[e]=function(e,t){let{cardTone:n,mode:r,scheme:i}=e,o={};for(let e of j)o[e]=function(e,t){let{cardTone:n,mode:r,scheme:i,tone:o}=e,s={};for(let e of O)s[e]=function(e,t){let{cardTone:n,mode:r,tone:i,scheme:o,state:s}=e,a=t?.color?.base?.[n],l=t?.color?.button?.[r]?.[i]?.[s],u=l?._hue||a?._hue||"gray",c=l?._blend||["screen","multiply"],d={hue:u,scheme:o};return{_blend:c[+("light"!==o)],accent:{fg:N(d,l?.accent?.fg)},avatar:G({scheme:o},l),badge:K(l?.badge,{scheme:o},t),bg:N(d,l?.bg),border:N(d,l?.border),code:{bg:N(d,l?.code?.bg),fg:N(d,l?.code?.fg)},fg:N(d,l?.fg),icon:N(d,l?.icon),muted:{bg:N(d,l?.muted?.bg),fg:N(d,l?.muted?.fg)},kbd:{bg:N(d,l?.kbd?.bg),fg:N(d,l?.kbd?.fg),border:N(d,l?.kbd?.border)},link:{fg:N(d,l?.link?.fg)},skeleton:{from:N(d,l?.skeleton?.from),to:N(d,l?.skeleton?.to)}}}({cardTone:n,mode:r,tone:o,scheme:i,state:e},t);return s}({cardTone:n,mode:r,scheme:i,tone:e},t);return o}({cardTone:r,scheme:n,mode:e},t);return i}({scheme:n,tone:r},t),code:{bg:N(o,i?.code?.bg),fg:N(o,i?.code?.fg)},fg:N(o,i?.fg),focusRing:N(o,i?.focusRing),icon:N(o,i?.icon),input:function(e,t){let{scheme:n,tone:r}=e;return{default:X({mode:"default",scheme:n,tone:r},t),invalid:X({mode:"invalid",scheme:n,tone:r},t)}}({scheme:n,tone:r},t),kbd:{bg:N(o,i?.kbd?.bg),fg:N(o,i?.kbd?.fg),border:N(o,i?.kbd?.border)},link:{fg:N(o,i?.link?.fg)},muted:{bg:N(o,i?.muted?.bg),fg:N(o,i?.muted?.fg)},selectable:function(e,t){let{scheme:n,tone:r}=e,i={};for(let e of j)i[e]=function(e,t){let{cardTone:n,scheme:r,tone:i}=e,o={};for(let e of O)o[e]=function(e,t){let{cardTone:n,scheme:r,state:i,tone:o}=e,s=t?.color?.base?.[n],a=t?.color?.selectable?.[o]?.[i],l=a?._hue||s?._hue||"gray",u=a?._blend||["screen","multiply"],c={hue:l,scheme:r};return{_blend:u[+("light"!==r)],accent:{fg:N(c,a?.accent?.fg)},avatar:G({scheme:r},a),badge:K(a?.badge,{scheme:r},t),bg:N(c,a?.bg),border:N(c,a?.border),code:{bg:N(c,a?.code?.bg),fg:N(c,a?.code?.fg)},fg:N(c,a?.fg),icon:N(c,a?.icon),muted:{bg:N(c,a?.muted?.bg),fg:N(c,a?.muted?.fg)},kbd:{bg:N(c,a?.kbd?.bg),fg:N(c,a?.kbd?.fg),border:N(c,a?.kbd?.border)},link:{fg:N(c,a?.link?.fg)},skeleton:{from:N(c,a?.skeleton?.from),to:N(c,a?.skeleton?.to)}}}({cardTone:n,tone:i,scheme:r,state:e},t);return o}({cardTone:r,scheme:n,tone:e},t);return i}({scheme:n,tone:r},t),shadow:function(e,t){let{scheme:n,tone:r}=e,i=t?.color?.base?.[r],o={hue:i?._hue||"gray",scheme:n};return{outline:N(o,i?.shadow?.outline),umbra:N(o,i?.shadow?.umbra),penumbra:N(o,i?.shadow?.penumbra),ambient:N(o,i?.shadow?.ambient)}}
149({scheme:n,tone:r},t),skeleton:{from:N(o,i?.skeleton?.from),to:N(o,i?.skeleton?.to)},syntax:function(e,t){let{scheme:n}=e,r=t?.color?.syntax,i={hue:"gray",scheme:n};return{atrule:N(i,r?.atrule),attrName:N(i,r?.attrName),attrValue:N(i,r?.attrValue),attribute:N(i,r?.attribute),boolean:N(i,r?.boolean),builtin:N(i,r?.builtin),cdata:N(i,r?.cdata),char:N(i,r?.char),class:N(i,r?.class),className:N(i,r?.className),comment:N(i,r?.comment),constant:N(i,r?.constant),deleted:N(i,r?.deleted),doctype:N(i,r?.doctype),entity:N(i,r?.entity),function:N(i,r?.function),hexcode:N(i,r?.hexcode),id:N(i,r?.id),important:N(i,r?.important),inserted:N(i,r?.inserted),keyword:N(i,r?.keyword),number:N(i,r?.number),operator:N(i,r?.operator),prolog:N(i,r?.prolog),property:N(i,r?.property),pseudoClass:N(i,r?.pseudoClass),pseudoElement:N(i,r?.pseudoElement),punctuation:N(i,r?.punctuation),regex:N(i,r?.regex),selector:N(i,r?.selector),string:N(i,r?.string),symbol:N(i,r?.symbol),tag:N(i,r?.tag),unit:N(i,r?.unit),url:N(i,r?.url),variable:N(i,r?.variable)}}({scheme:n},t)}}({scheme:n,tone:e},t);return r}function G(e,t){let{scheme:n}=e;return{gray:q({color:"gray",scheme:n},t),blue:q({color:"blue",scheme:n},t),purple:q({color:"purple",scheme:n},t),magenta:q({color:"magenta",scheme:n},t),red:q({color:"red",scheme:n},t),orange:q({color:"orange",scheme:n},t),yellow:q({color:"yellow",scheme:n},t),green:q({color:"green",scheme:n},t),cyan:q({color:"cyan",scheme:n},t)}}function q(e,t){let{color:n,scheme:r}=e,i=t?.avatar?.[n],o={hue:i?._hue||"gray",scheme:r};return{_blend:(i?._blend||["screen","multiply"])[+("light"!==r)],bg:N(o,i?.bg),fg:N(o,i?.fg)}}function K(e,t,n){let{scheme:r}=t,i={};for(let t of j)i[t]=function(e,t,n){let{scheme:r,tone:i}=t,o=e?.[i],s={hue:o?._hue||n?.color?.base?.[i]?._hue||"gray",scheme:r};return{bg:N(s,o?.bg),fg:N(s,o?.fg),dot:N(s,o?.dot),icon:N(s,o?.icon)}}(e,{scheme:r,tone:t},n);return i}function X(e,t){let{mode:n,scheme:r,tone:i}=e;return{enabled:Z({mode:n,scheme:r,state:"enabled",cardTone:i},t),hovered:Z({mode:n,scheme:r,state:"hovered",cardTone:i},t),readOnly:Z({mode:n,scheme:r,state:"readOnly",cardTone:i},t),disabled:Z({mode:n,scheme:r,state:"disabled",cardTone:i},t)}}function Z(e,t){let{cardTone:n,mode:r,scheme:i,state:o}=e,s=t?.color?.base?.[n],a=t?.color?.input?.[r]?.[o],l=a?._hue||s?._hue||"gray",u=a?._blend||["screen","multiply"],c={hue:l,scheme:i};return{_blend:u[+("light"!==i)],bg:N(c,a?.bg),border:N(c,a?.border),fg:N(c,a?.fg),muted:{bg:N(c,a?.muted?.bg)},placeholder:N(c,a?.placeholder)}}let J=r.yW;function Q(e,t=0,n=1){return Math.min(n,Math.max(t,e))}function ee(e,t,n,r,i){var o;return n*(1-(o=Q((i-e)/(t-e))))+r*o}function et(e){return Math.round(e)}function en(e){if(4===e.length){let t=e.slice(1,2),n=e.slice(2,3),r=e.slice(3,4);return{r:parseInt(t+t,16),g:parseInt(n+n,16),b:parseInt(r+r,16)}}return{r:parseInt(e.slice(1,3),16),g:parseInt(e.slice(3,5),16),b:parseInt(e.slice(5,7),16)}}function er(e){let t=et(Q(Math.round(e.r),0,255)),n=et(Q(Math.round(e.g),0,255)),r=et(Q(Math.round(e.b),0,255));return"a"in e?`rgba(${t},${n},${r},${e.a})`:"#"+(0x1000000+(t<<16)+(n<<8)+r).toString(16).slice(1)}let ei=/hsl\(\s*(\d+)\s*,\s*((\d+(?:\.\d+)?)%)\s*,\s*((\d+(?:\.\d+)?)%)\s*\)/i;function eo(e){if(!e)return{r:0,g:0,b:0};if("string"!=typeof e)throw Error("parseColor: expected a string");if("#"===e[0]&&(4===e.length||7===e.length)&&function(e){for(let t of e)if(-1==="0123456789ABCDEFabcdef".indexOf(t))return!1;return!0}(e.slice(1)))return en(e);if(e.startsWith("hsl("))return function(e){let t=e.s/100,n=e.l/100,r=(1-Math.abs(2*n-1))*t,i=r*(1-Math.abs(e.h/60%2-1)),o=n-r/2,s=0,a=0,l=0;return 0<=e.h&&e.h<60?(s=r,a=i,l=0):60<=e.h&&e.h<120?(s=i,a=r,l=0):120<=e.h&&e.h<180?(s=0,a=r,l=i):180<=e.h&&e.h<240?(s=0,a=i,l=r):240<=e.h&&e.h<300?(s=i,a=0,l=r):300<=e.h&&e.h<360&&(s=r,a=0,l=i),{r:Math.round((s+o)*255),g:Math.round((a+o)*255),b:Math.round((l+o)*255)}}(function(e){let t=ei.exec(e);if(!t)throw Error(`parseHsl: string is not a HSL color: "${e}"`);return{h:parseInt(t[1]),s:parseFloat(t[3]),l:parseFloat(t[5])}}(e));if(e.startsWith("rgba(")){let t=e.replace(/rgba\(|\)/g,"").split(",");return{r:parseInt(t[0]),g:parseInt(t[1]),b:parseInt(t[2]),a:parseFloat(t[3])}}throw Error(`parseColor: unexpected color format: "${e}"`)}function es(e){return e<=.04045?e/12.92:((e+.055)/1.055)**2.4}function ea(e,t){let n=eo(e);return`rgba(${n.r},${n.g},${n.b},${t})`}let el=[0,255];function eu(e,t){let{bg:n,blendMode:r,colorPalette:i}=t;if("white"===n)throw Error("Cannot blend with white background");let o=$(e);if(!o||"color"!==o.type)throw Error(`Invalid color token value: ${e}`);let s="";if("black"===o.key&&(s=ec(i.black)),"white"===o.key&&(s=ec(i.white)),o.hue&&o.tint&&(s=ec(i[o.hue][o.tint])),!s)throw Error(`Invalid color token value: ${e}`);let a=s,l={blendMode:r,bg:n,black:ec(i.black),white:ec(i.white)};try{if(s=function(e,t){var n,r,i,o,s,a;let{blendMode:l}
149=t,u=eo(e),c=eo(t.black),d=eo(t.white),h=t.bg?eo(t.bg):"multiply"===l?d:c,f={r:[c.r,d.r],g:[c.g,d.g],b:[c.b,d.b]},p={r:Q(ee(...f.r,...el,h.r),...el),g:Q(ee(...f.g,...el,h.g),...el),b:Q(ee(...f.b,...el,h.b),...el)},g={r:Q(ee(...f.r,...el,u.r),...el),g:Q(ee(...f.g,...el,u.g),...el),b:Q(ee(...f.b,...el,u.b),...el)},m="multiply"===l?{r:255*(p.r/255*(g.r/255)),g:255*(p.g/255*(g.g/255)),b:255*(p.b/255*(g.b/255))}:{r:255*((n=p.r/255)+(r=g.r/255)-n*r),g:255*((i=p.g/255)+(o=g.g/255)-i*o),b:255*((s=p.b/255)+(a=g.b/255)-s*a)};return er({r:Q(ee(...el,...f.r,m.r),...f.r),g:Q(ee(...el,...f.g,m.g),...f.g),b:Q(ee(...el,...f.b,m.b),...f.b)})}(s,l),n&&void 0!==o.mix){var u,c,d,h,f,p,g;let e=en(n),t=en(s);s=er((u=o.mix,{r:(c=e.r,d=t.r,c+(d-c)*u),g:(h=e.g,f=t.g,h+(f-h)*u),b:(p=e.b,g=t.b,p+(g-p)*u)}))}}catch(e){throw console.warn("could not blend",s,l),e}return"#aN"===s&&(console.warn(`invalid color token value: ${e}`),s=a),void 0!==o.opacity&&(s=ea(s,o.opacity)),s}function ec(e){return"string"==typeof e?e:e.hex}function ed(e,t){let n=Object.entries(t),[,r]=n.find(([e])=>"transparent"===e),[,i]=n.find(([e])=>"default"===e),o=eh(r,{colorPalette:e}),s=eh(i,{colorPalette:e}),a=s.bg;if("white"===a)throw Error("Cannot blend with white background");return Object.fromEntries([["transparent",o],["default",s],...n.filter(([e])=>"default"!==e&&"transparent"!==e).map(([t,n])=>[t,eh(n,{bg:a,colorPalette:e})])])}function eh(e,t){var n,r,i,o;let{colorPalette:s,bg:a}=t,l=e._blend||"multiply",u=eu(e.bg,{colorPalette:s,bg:a,blendMode:l}),c={colorPalette:s,bg:u,blendMode:l},d=(n=e.button,r={baseBg:u,blendMode:l,colorPalette:s},{default:eg(n.default,r),ghost:eg(n.ghost,r),bleed:eg(n.bleed,r)}),h=function(e,t){let n={};for(let o of j){var r,i;n[o]=(r=e[o],i=t,{enabled:em(r.enabled,i),hovered:em(r.hovered,i),pressed:em(r.pressed,i),selected:em(r.selected,i),disabled:em(r.disabled,i)})}return n}(e.selectable,{colorPalette:s,baseBg:u,blendMode:l}),f={outline:eu(e.shadow.outline,c),umbra:eu(e.shadow.umbra,{...c,bg:void 0,colorPalette:{...s,black:"#000000"}}),penumbra:eu(e.shadow.penumbra,{...c,bg:void 0,colorPalette:{...s,black:"#000000"}}),ambient:eu(e.shadow.ambient,{...c,bg:void 0,colorPalette:{...s,black:"#000000"}})};return{_blend:l,_dark:e._dark,accent:{fg:eu(e.accent.fg,c)},avatar:ef(e.avatar,{baseBg:u,colorPalette:s,blendMode:l}),backdrop:eu(e.backdrop,c),badge:ep(e.badge,{baseBg:u,colorPalette:s,blendMode:l}),bg:u,border:eu(e.border,c),button:d,code:{bg:eu(e.code.bg,c),fg:eu(e.code.fg,c)},fg:eu(e.fg,c),focusRing:eu(e.focusRing,c),icon:eu(e.icon,c),input:(i=e.input,o={baseBg:u,colorPalette:s,blendMode:l},{default:eb(i.default,o),invalid:eb(i.invalid,o)}),kbd:function(e,t){let{baseBg:n,blendMode:r,colorPalette:i}=t,o=eu(e.bg,{bg:n,blendMode:r,colorPalette:i}),s={bg:o,blendMode:r,colorPalette:i};return{bg:o,fg:eu(e.fg,s),border:eu(e.border,s)}}(e.kbd,{baseBg:u,colorPalette:s,blendMode:l}),link:{fg:eu(e.link.fg,c)},muted:{bg:eu(e.muted.bg,c),fg:eu(e.muted.fg,c)},shadow:f,skeleton:{from:eu(e.skeleton.from,c),to:eu(e.skeleton.to,c)},syntax:function(e,t){let{colorPalette:n,baseBg:r,blendMode:i}=t,o={colorPalette:n,bg:r,blendMode:i};return{atrule:eu(e.atrule,o),attrName:eu(e.attrName,o),attrValue:eu(e.attrValue,o),attribute:eu(e.attribute,o),boolean:eu(e.boolean,o),builtin:eu(e.builtin,o),cdata:eu(e.cdata,o),char:eu(e.char,o),class:eu(e.class,o),className:eu(e.className,o),comment:eu(e.comment,o),constant:eu(e.constant,o),deleted:eu(e.deleted,o),doctype:eu(e.doctype,o),entity:eu(e.entity,o),function:eu(e.function,o),hexcode:eu(e.hexcode,o),id:eu(e.id,o),important:eu(e.important,o),inserted:eu(e.inserted,o),keyword:eu(e.keyword,o),number:eu(e.number,o),operator:eu(e.operator,o),prolog:eu(e.prolog,o),property:eu(e.property,o),pseudoClass:eu(e.pseudoClass,o),pseudoElement:eu(e.pseudoElement,o),punctuation:eu(e.punctuation,o),regex:eu(e.regex,o),selector:eu(e.selector,o),string:eu(e.string,o),symbol:eu(e.symbol,o),tag:eu(e.tag,o),unit:eu(e.unit,o),url:eu(e.url,o),variable:eu(e.variable,o)}}(e.syntax,{baseBg:u,colorPalette:s,blendMode:l}),selectable:h}}function ef(e,t){let n={};for(let i of r.Cv)n[i]=function(e,t){let{baseBg:n,blendMode:r,colorPalette:i}=t,o=e._blend||"multiply",s=eu(e.bg,{bg:n,blendMode:r,colorPalette:i});return{_blend:o,bg:s,fg:eu(e.fg,{bg:s,blendMode:o,colorPalette:i})}}(e[i],t);return n}function ep(e,t){let n={};for(let r of j)n[r]=function(e,t){let{baseBg:n,blendMode:r,colorPalette:i}=t,o=eu(e.bg,{bg:n,blendMode:r,colorPalette:i}),s={bg:o,blendMode:r,colorPalette:i};return{bg:o,dot:eu(e.dot,s),fg:eu(e.fg,s),icon:eu(e.icon,s)}}(e[r],t);return n}function eg(e,t){let n={};for(let o of j){var r,i;n[o]=(r=e[o],i=t,{enabled:em(r.enabled,i),hovered:em(r.hovered,i),pressed:em(r.pressed,i),selected:em(r.selected,i),disabled:em(r.disabled,i)})}return n}function em(e,t){let{baseBg:n,blendMode:r,colorPalette:i}=t,o=e._blend||"multiply",s=eu(e.bg,{bg:n,blendMode:r,colorPalette:i}),a={bg:s,blendMode:o,colorPalette:i};return{_blend:o,accent:{fg:eu(e.accent.fg,a)},avatar:ef(e.avatar,{baseBg:s,colorPalette:i,blendMode:o}),badge:ep(e.badge,{baseBg:s,colorPalette:i,blendMode:o}),bg:s,border:eu(e.border,a),code:{bg:eu(e.code.bg,a),fg:eu(e.code.fg,a)},fg:eu(e.fg,a),icon:eu(e.icon,a),link:{fg:eu(e.link.fg,a)},muted:{bg:eu(e.muted.bg,a),fg:eu(e.muted.fg,a)},kbd:{bg:eu(e.kbd.bg,a),fg:eu(e.kbd.fg,a),border:eu(e.kbd.border,a)},skeleton:{from:eu(e.skeleton?.from,a),to:eu(e.skeleton?.to,a)}}}function eb(e,t){return{enabled:ey(e.enabled,t),hovered:ey(e.hovered,t),readOnly:ey(e.readOnly,t),disabled:ey(e.disabled,t)}}function ey(e,t){let{baseBg:n,blendMode:r,colorPalette:i}=t,o=e._blend||"multiply",s=eu(e.bg,{colorPalette:i,bg:n,blendMode:r}),a={colorPalette:i,bg:s,blendMode:o};return{_blend:o,bg:s,border:eu(e.border,a),fg:eu(e.fg,a),muted:{bg:eu(e.muted.bg,a)},placeholder:eu(e.placeholder,a)}}function ev(e){let t=function(e){let t={color:function(e){let t=U(B,e);return{base:function(e){let t={};for(let n of M)t[n]=function(e,t){let n=U(e?.base?.["*"],e?.base?.[t]),i=n._hue||e?.base?.[t]?._hue||"gray";return{...n,_hue:i,avatar:r.Cv.reduce((e,t)=>
149({...e,[t]:U({_hue:t},n.avatar?.["*"],n.avatar?.[t])}),{}),badge:j.reduce((t,r)=>({...t,[r]:{_hue:e?.base?.[r]?._hue||i,...n.badge?.["*"],...n.badge?.[r]}}),{})}}(e,n);return t}(t),button:function(e){let t={};for(let n of I)t[n]=function(e,t){let n={};for(let i of j)n[i]=function(e,t,n){let i={};for(let o of O)i[o]=function(e,t,n,i){let o=U(e?.button?.[n]?.["*"]?.["*"],e?.button?.[n]?.[t]?.["*"],e?.button?.[n]?.["*"]?.[i],e?.button?.[n]?.[t]?.[i]),s=o._hue||e?.base?.[t]?._hue;return{...o,_hue:s,avatar:r.Cv.reduce((e,t)=>({...e,[t]:U({_hue:t},o.avatar?.["*"],o.avatar?.[t])}),{}),badge:j.reduce((t,n)=>({...t,[n]:{_hue:e?.base?.[n]?._hue||s,...o.badge?.["*"],...o.badge?.[n]}}),{})}}(e,n,t,o);return i}(e,t,i);return n}(e,n);return t}(t),input:function(e){let t={};for(let n of D)t[n]=function(e,t){let n={};for(let r of _)n[r]=function(e,t,n){let r=U(e?.input?.["*"]?.["*"],e?.input?.[t]?.["*"],e?.input?.["*"]?.[n],e?.input?.[t]?.[n]),i=r._hue||e?.input?.[t]?._hue;return{...r,_hue:i}}(e,t,r);return n}(e,n);return t}(t),selectable:function(e){let t={};for(let n of j)t[n]=function(e,t){let n={_hue:e?.selectable?.[t]?._hue||e?.base?.[t]?._hue};for(let i of O)n[i]=function(e,t,n){let i=U(e?.selectable?.["*"]?.["*"],e?.selectable?.[t]?.["*"],e?.selectable?.["*"]?.[n],e?.selectable?.[t]?.[n]),o=i._hue||e?.base?.[t]?._hue;return{...i,_hue:o,avatar:r.Cv.reduce((e,t)=>({...e,[t]:U({_hue:t},i.avatar?.["*"],i.avatar?.[t])}),{}),badge:j.reduce((t,n)=>({...t,[n]:{_hue:e?.base?.[n]?._hue||o,...i.badge?.["*"],...i.badge?.[n]}}),{})}}(e,t,i);return n}(e,n);return t}(t),syntax:t.syntax}}(e?.color)};return{light:Y({scheme:"light"},t),dark:Y({scheme:"dark"},t)}}(e);return A({_version:2,avatar:e?.avatar??h.avatar,button:e?.button??h.button,card:e?.card??h.card,color:function(e,t){let n=t?.palette??J;return{light:ed(n,e.light),dark:ed(n,e.dark)}}(t,e),container:e?.container??h.container,font:e?.font??f,input:e?.input??h.input,layer:e?.layer??h.layer,media:e?.media??h.media,radius:e?.radius??h.radius,shadow:e?.shadow??h.shadow,space:e?.space??h.space,style:e?.style??h.style})}let ex=new Map;function ew(e,t,n){var r;let i=function(e,t,n){let r=ex.get(t);if(!r)return;let i=r.get(n);if(i)return i.get(e)}(e,t,n);if(i)return i;let o=k(e)?A(e):e,s=k(e)?e:function(e){if(e.v2)return e.v2;let t=S.get(e);if(t)return t;let{avatar:n,button:r,color:i,container:o,fonts:s,input:a,layer:l,media:u,radius:c,shadows:d,space:f,styles:p}=e,m={_version:2,avatar:{...h.avatar,...n},button:{...h.button,...r},card:h.card,color:{light:{transparent:g(i.light.transparent),default:g(i.light.default),neutral:g(i.light.transparent),primary:g(i.light.primary),suggest:g(i.light.primary),positive:g(i.light.positive),caution:g(i.light.caution),critical:g(i.light.critical)},dark:{transparent:g(i.dark.transparent),default:g(i.dark.default),neutral:g(i.dark.transparent),primary:g(i.dark.primary),suggest:g(i.dark.primary),positive:g(i.dark.positive),caution:g(i.dark.caution),critical:g(i.dark.critical)}},container:o,font:s,input:{...h.input,...a,checkbox:{...h.input.checkbox,...a.checkbox},radio:{...h.input.radio,...a.radio},switch:{...h.input.switch,...a.switch}},layer:l??h.layer,media:u,radius:c,shadow:d,space:f,style:p};return S.set(e,m),m}(e),a=o.color[t]||o.color.light,l=a[n]||a.default,u=o.layer||h.layer,c=s.color[t]||s.color.light,d="neutral"in(r=c[n]||c.default).badge?r:{...r,badge:{...r.badge,neutral:r.badge.default,suggest:r.badge.primary},button:{bleed:{...r.button.bleed,neutral:r.button.bleed.default,suggest:r.button.bleed.primary},default:{...r.button.default,neutral:r.button.default.default,suggest:r.button.default.primary},ghost:{...r.button.ghost,neutral:r.button.ghost.default,suggest:r.button.ghost.primary}},selectable:{...r.selectable,neutral:r.selectable.default,suggest:r.selectable.primary}},f=s.layer||h.layer,p={sanity:{...o,color:l,layer:u,v2:{...s,_resolved:!0,color:d,layer:f}}};return function(e,t,n,r){ex.has(t)||ex.set(t,new Map);let i=ex.get(t);i.has(n)||i.set(n,new WeakMap),i.get(n).set(e,r)}(e,t,n,p),p}},65531:e=>{var t=RegExp("[\\u200d\ud800-\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return t.test(e)}}
149,68972:(e,t,n)=>{"use strict";n.d(t,{B:()=>r});let r="undefined"!=typeof window},70771:(e,t,n)=>{var r=n(98233),i=n(48611);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==r(e)}},75145:(e,t,n)=>{var r=n(50851),i=n(65531),o=n(17855);e.exports=function(e){return i(e)?o(e):r(e)}},76408:(e,t,n)=>{"use strict";let r;function i(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}function o(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function s(e,t,n,r){if("function"==typeof t){let[i,s]=o(r);t=t(void 0!==n?n:e.custom,i,s)}if("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t){let[i,s]=o(r);t=t(void 0!==n?n:e.custom,i,s)}return t}function a(e,t,n){let r=e.getProps();return s(r,t,void 0!==n?n:r.custom,e)}function l(e,t){return e?.[t]??e?.default??e}n.d(t,{P:()=>oT});let u=e=>e,c={},d=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"],h={value:null,addProjectionMetrics:null};function f(e,t){let n=!1,r=!0,i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,s=d.reduce((e,n)=>(e[n]=function(e,t){let n=new Set,r=new Set,i=!1,o=!1,s=new WeakSet,a={delta:0,timestamp:0,isProcessing:!1},l=0;function u(t){s.has(t)&&(c.schedule(t),e()),l++,t(a)}let c={schedule:(e,t=!1,o=!1)=>{let a=o&&i?n:r;return t&&s.add(e),a.has(e)||a.add(e),e},cancel:e=>{r.delete(e),s.delete(e)},process:e=>{if(a=e,i){o=!0;return}i=!0,[n,r]=[r,n],n.forEach(u),t&&h.value&&h.value.frameloop[t].push(l),l=0,n.clear(),i=!1,o&&(o=!1,c.process(e))}};return c}(o,t?n:void 0),e),{}),{setup:a,read:l,resolveKeyframes:u,preUpdate:f,update:p,preRender:g,render:m,postRender:b}=s,y=()=>{let o=c.useManualTiming?i.timestamp:performance.now();n=!1,c.useManualTiming||(i.delta=r?1e3/60:Math.max(Math.min(o-i.timestamp,40),1)),i.timestamp=o,i.isProcessing=!0,a.process(i),l.process(i),u.process(i),f.process(i),p.process(i),g.process(i),m.process(i),b.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(y))},v=()=>{n=!0,r=!0,i.isProcessing||e(y)};return{schedule:d.reduce((e,t)=>{let r=s[t];return e[t]=(e,t=!1,i=!1)=>(n||v(),r.schedule(e,t,i)),e},{}),cancel:e=>{for(let t=0;t<d.length;t++)s[d[t]].cancel(e)},state:i,steps:s}}let{schedule:p,cancel:g,state:m,steps:b}=f("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:u,!0),y=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],v=new Set(y),x=new Set(["width","height","top","left","right","bottom",...y]);function w(e,t){-1===e.indexOf(t)&&e.push(t)}function k(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}class S{constructor(){this.subscriptions=[]}add(e){return w(this.subscriptions,e),()=>k(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,n);else for(let i=0;i<r;i++){let r=this.subscriptions[i];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function E(){r=void 0}let A={now:()=>(void 0===r&&A.set(m.isProcessing||c.useManualTiming?m.timestamp:performance.now()),r),set:e=>{r=e,queueMicrotask(E)}},C=e=>!isNaN(parseFloat(e)),T={current:void 0};class P{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=(e,t=!0)=>{let n=A.now();if(this.updatedAt!==n&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let e of this.dependents)e.dirty();t&&this.events.renderRequest?.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=A.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=C(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new S);let n=this.events[e].add(t);return"change"===e?()=>{n(),p.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e,t=!0){t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}
149setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return T.current&&T.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){var e;let t=A.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;let n=Math.min(this.updatedAt-this.prevUpdatedAt,30);return e=parseFloat(this.current)-parseFloat(this.prevFrameValue),n?1e3/n*e:0}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function R(e,t){return new P(e,t)}let M=e=>Array.isArray(e),j=e=>!!(e&&e.getVelocity);function O(e,t){let n=e.getValue("willChange");if(j(n)&&n.add)return n.add(t);if(!n&&c.WillChange){let n=new c.WillChange("auto");e.addValue("willChange",n),n.add(t)}}let I=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),D="data-"+I("framerAppearId"),_=(e,t)=>n=>t(e(n)),L=(...e)=>e.reduce(_),V=(e,t,n)=>n>t?t:n<e?e:n,$=e=>1e3*e,z=e=>e/1e3,F={layout:0,mainThread:0,waapi:0},N=()=>{},B=()=>{},H=e=>t=>"string"==typeof t&&t.startsWith(e),U=H("--"),W=H("var(--"),Y=e=>!!W(e)&&G.test(e.split("/*")[0].trim()),G=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,q={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},K={...q,transform:e=>V(0,1,e)},X={...q,default:1},Z=e=>Math.round(1e5*e)/1e5,J=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,Q=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,ee=(e,t)=>n=>!!("string"==typeof n&&Q.test(n)&&n.startsWith(e)||t&&null!=n&&Object.prototype.hasOwnProperty.call(n,t)),et=(e,t,n)=>r=>{if("string"!=typeof r)return r;let[i,o,s,a]=r.match(J);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(s),alpha:void 0!==a?parseFloat(a):1}},en=e=>V(0,255,e),er={...q,transform:e=>Math.round(en(e))},ei={test:ee("rgb","red"),parse:et("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+er.transform(e)+", "+er.transform(t)+", "+er.transform(n)+", "+Z(K.transform(r))+")"},eo={test:ee("#"),parse:function(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}},transform:ei.transform},es=e=>({test:t=>"string"==typeof t&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),ea=es("deg"),el=es("%"),eu=es("px"),ec=es("vh"),ed=es("vw"),eh={...el,parse:e=>el.parse(e)/100,transform:e=>el.transform(100*e)},ef={test:ee("hsl","hue"),parse:et("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+el.transform(Z(t))+", "+el.transform(Z(n))+", "+Z(K.transform(r))+")"},ep={test:e=>ei.test(e)||eo.test(e)||ef.test(e),parse:e=>ei.test(e)?ei.parse(e):ef.test(e)?ef.parse(e):eo.parse(e),transform:e=>"string"==typeof e?e:e.hasOwnProperty("red")?ei.transform(e):ef.transform(e)},eg=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,em="number",eb="color",ey=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function ev(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],o=0,s=t.replace(ey,e=>(ep.test(e)?(r.color.push(o),i.push(eb),n.push(ep.parse(e))):e.startsWith("var(")?(r.var.push(o),i.push("var"),n.push(e)):(r.number.push(o),i.push(em),n.push(parseFloat(e))),++o,"${}")).split("${}");return{values:n,split:s,indexes:r,types:i}}function ex(e){return ev(e).values}function ew(e){let{split:t,types:n}=ev(e),r=t.length;return e=>{let i="";for(let o=0;o<r;o++)if(i+=t[o],void 0!==e[o]){let t=n[o];t===em?i+=Z(e[o]):t===eb?i+=ep.transform(e[o]):i+=e[o]}return i}}let ek=e=>"number"==typeof e?0:e,eS={test:function(e){return isNaN(e)&&"string"==typeof e&&(e.match(J)?.length||0)+(e.match(eg)?.length||0)>0},parse:ex,createTransformer:ew,getAnimatableNone:function(e){let t=ex(e);return ew(e)(t.map(ek))}};
149function eE(e,t,n){return(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?e+(t-e)*6*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function eA(e,t){return n=>n>0?t:e}let eC=(e,t,n)=>e+(t-e)*n,eT=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},eP=[eo,ei,ef],eR=e=>eP.find(t=>t.test(e));function eM(e){let t=eR(e);if(N(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===ef&&(n=function({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let i=0,o=0,s=0;if(t/=100){let r=n<.5?n*(1+t):n+t-n*t,a=2*n-r;i=eE(a,r,e+1/3),o=eE(a,r,e),s=eE(a,r,e-1/3)}else i=o=s=n;return{red:Math.round(255*i),green:Math.round(255*o),blue:Math.round(255*s),alpha:r}}(n)),n}let ej=(e,t)=>{let n=eM(e),r=eM(t);if(!n||!r)return eA(e,t);let i={...n};return e=>(i.red=eT(n.red,r.red,e),i.green=eT(n.green,r.green,e),i.blue=eT(n.blue,r.blue,e),i.alpha=eC(n.alpha,r.alpha,e),ei.transform(i))},eO=new Set(["none","hidden"]);function eI(e,t){return n=>eC(e,t,n)}function eD(e){return"number"==typeof e?eI:"string"==typeof e?Y(e)?eA:ep.test(e)?ej:eV:Array.isArray(e)?e_:"object"==typeof e?ep.test(e)?ej:eL:eA}function e_(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>eD(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function eL(e,t){let n={...e,...t},r={};for(let i in n)void 0!==e[i]&&void 0!==t[i]&&(r[i]=eD(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}let eV=(e,t)=>{let n=eS.createTransformer(t),r=ev(e),i=ev(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?eO.has(e)&&!i.values.length||eO.has(t)&&!r.values.length?function(e,t){return eO.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}(e,t):L(e_(function(e,t){let n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){let o=t.types[i],s=e.indexes[o][r[o]],a=e.values[s]??0;n[i]=a,r[o]++}return n}(r,i),i.values),n):(N(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),eA(e,t))};function e$(e,t,n){return"number"==typeof e&&"number"==typeof t&&"number"==typeof n?eC(e,t,n):eD(e)(e,t)}let ez=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>p.update(t,e),stop:()=>g(t),now:()=>m.isProcessing?m.timestamp:A.now()}},eF=(e,t,n=10)=>{let r="",i=Math.max(Math.round(t/n),2);for(let t=0;t<i;t++)r+=e(t/(i-1))+", ";return`linear(${r.substring(0,r.length-2)})`};function eN(e){let t=0,n=e.next(t);for(;!n.done&&t<2e4;)t+=50,n=e.next(t);return t>=2e4?1/0:t}function eB(e,t,n){var r,i;let o=Math.max(t-5,0);return r=n-e(o),(i=t-o)?1e3/i*r:0}let eH={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function eU(e,t){return e*Math.sqrt(1-t*t)}let eW=["duration","bounce"],eY=["stiffness","damping","mass"];function eG(e,t){return t.some(t=>void 0!==e[t])}function eq(e=eH.visualDuration,t=eH.bounce){let n,r="object"!=typeof e?{visualDuration:e,keyframes:[0,1],bounce:t}:e,{restSpeed:i,restDelta:o}=r,s=r.keyframes[0],a=r.keyframes[r.keyframes.length-1],l={done:!1,value:s},{stiffness:u,damping:c,mass:d,duration:h,velocity:f,isResolvedFromDuration:p}=function(e){let t={velocity:eH.velocity,stiffness:eH.stiffness,damping:eH.damping,mass:eH.mass,isResolvedFromDuration:!1,...e};if(!eG(e,eY)&&eG(e,eW))if(e.visualDuration){let n=2*Math.PI/(1.2*e.visualDuration),r=n*n,i=2*V(.05,1,1-(e.bounce||0))*Math.sqrt(r);t={...t,mass:eH.mass,stiffness:r,damping:i}}else{let n=function({duration:e=eH.duration,bounce:t=eH.bounce,velocity:n=eH.velocity,mass:r=eH.mass}){let i,o;N(e<=$(eH.maxDuration),"Spring duration must be 10 seconds or less");let s=1-t;s=V(eH.minDamping,eH.maxDamping,s),e=V(eH.minDuration,eH.maxDuration,z(e)),s<1?(i=t=>{let r=t*s,i=r*e;return .001-(r-n)/eU(t,s)*Math.exp(-i)},o=t=>{let r=t*s*e,o=Math.pow(s,2)*Math.pow(t,2)*e,a=Math.exp(-r),l=eU(Math.pow(t,2),s);return(r*n+n-o)*a*(-i(t)+.001>0?-1:1)/l}):(i=t=>-.001+Math.exp(-t*e)*((t-n)*e+1),o=t=>e*e*(n-t)*Math.exp(-t*e));let a=function(e,t,n){let r=n;for(let n=1;n<12;n++)r-=e(r)/t(r);return r}(i,o,5/e);if(e=$(e),isNaN(a))return{stiffness:eH.stiffness,damping:eH.damping,duration:e};{let t=Math.pow(a,2)*r;return{stiffness:t,damping:2*s*Math.sqrt(r*t),duration:e}}}(e);(t={...t,...n,mass:eH.mass}).isResolvedFromDuration=!0}return t}({...r,velocity:-z(r.velocity||0)}),g=f||0,m=c/(2*Math.sqrt(u*d)),b=a-s,y=z(Math.sqrt(u/d)),v=5>Math.abs(b);
149if(i||(i=v?eH.restSpeed.granular:eH.restSpeed.default),o||(o=v?eH.restDelta.granular:eH.restDelta.default),m<1){let e=eU(y,m);n=t=>a-Math.exp(-m*y*t)*((g+m*y*b)/e*Math.sin(e*t)+b*Math.cos(e*t))}else if(1===m)n=e=>a-Math.exp(-y*e)*(b+(g+y*b)*e);else{let e=y*Math.sqrt(m*m-1);n=t=>{let n=Math.exp(-m*y*t),r=Math.min(e*t,300);return a-n*((g+m*y*b)*Math.sinh(r)+e*b*Math.cosh(r))/e}}let x={calculatedDuration:p&&h||null,next:e=>{let t=n(e);if(p)l.done=e>=h;else{let r=0===e?g:0;m<1&&(r=0===e?$(g):eB(n,e,t));let s=Math.abs(a-t)<=o;l.done=Math.abs(r)<=i&&s}return l.value=l.done?a:t,l},toString:()=>{let e=Math.min(eN(x),2e4),t=eF(t=>x.next(e*t).value,e,30);return e+"ms "+t},toTransition:()=>{}};return x}function eK({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:s,min:a,max:l,restDelta:u=.5,restSpeed:c}){let d,h,f=e[0],p={done:!1,value:f},g=e=>void 0!==a&&e<a||void 0!==l&&e>l,m=e=>void 0===a?l:void 0===l||Math.abs(a-e)<Math.abs(l-e)?a:l,b=n*t,y=f+b,v=void 0===s?y:s(y);v!==y&&(b=v-f);let x=e=>-b*Math.exp(-e/r),w=e=>v+x(e),k=e=>{let t=x(e),n=w(e);p.done=Math.abs(t)<=u,p.value=p.done?v:n},S=e=>{g(p.value)&&(d=e,h=eq({keyframes:[p.value,m(p.value)],velocity:eB(w,e,p.value),damping:i,stiffness:o,restDelta:u,restSpeed:c}))};return S(0),{calculatedDuration:null,next:e=>{let t=!1;return(h||void 0!==d||(t=!0,k(e),S(e)),void 0!==d&&e>=d)?h.next(e-d):(t||k(e),p)}}}eq.applyToOptions=e=>{let t=function(e,t=100,n){let r=n({...e,keyframes:[0,t]}),i=Math.min(eN(r),2e4);return{type:"keyframes",ease:e=>r.next(i*e).value/t,duration:z(i)}}(e,100,eq);return e.ease=t.ease,e.duration=$(t.duration),e.type="keyframes",e};let eX=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e;function eZ(e,t,n,r){if(e===t&&n===r)return u;let i=t=>(function(e,t,n,r,i){let o,s,a=0;do(o=eX(s=t+(n-t)/2,r,i)-e)>0?n=s:t=s;while(Math.abs(o)>1e-7&&++a<12);return s})(t,0,1,e,n);return e=>0===e||1===e?e:eX(i(e),t,r)}let eJ=eZ(.42,0,1,1),eQ=eZ(0,0,.58,1),e0=eZ(.42,0,.58,1),e1=e=>Array.isArray(e)&&"number"!=typeof e[0],e2=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,e5=e=>t=>1-e(1-t),e3=eZ(.33,1.53,.69,.99),e4=e5(e3),e8=e2(e4),e6=e=>(e*=2)<1?.5*e4(e):.5*(2-Math.pow(2,-10*(e-1))),e9=e=>1-Math.sin(Math.acos(e)),e7=e5(e9),te=e2(e9),tt=e=>Array.isArray(e)&&"number"==typeof e[0],tn={linear:u,easeIn:eJ,easeInOut:e0,easeOut:eQ,circIn:e9,circInOut:te,circOut:e7,backIn:e4,backInOut:e8,backOut:e3,anticipate:e6},tr=e=>"string"==typeof e,ti=e=>{if(tt(e)){B(4===e.length,"Cubic bezier arrays must contain four numerical values.");let[t,n,r,i]=e;return eZ(t,n,r,i)}return tr(e)?(B(void 0!==tn[e],`Invalid easing type '${e}'`),tn[e]):e},to=(e,t,n)=>{let r=t-e;return 0===r?1:(n-e)/r};function ts({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){var i;let o=e1(r)?r.map(ti):ti(r),s={done:!1,value:t[0]},a=function(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let o=e.length;if(B(o===t.length,"Both input and output ranges must be the same length"),1===o)return()=>t[0];if(2===o&&t[0]===t[1])return()=>t[1];let s=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());let a=function(e,t,n){let r=[],i=n||c.mix||e$,o=e.length-1;for(let n=0;n<o;n++){let o=i(e[n],e[n+1]);t&&(o=L(Array.isArray(t)?t[n]||u:t,o)),r.push(o)}return r}(t,r,i),l=a.length,d=n=>{if(s&&n<e[0])return t[0];let r=0;if(l>1)for(;r<e.length-2&&!(n<e[r+1]);r++);let i=to(e[r],e[r+1],n);return a[r](i)};return n?t=>d(V(e[0],e[o-1],t)):d}((i=n&&n.length===t.length?n:function(e){let t=[0];return!function(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=to(0,t,r);e.push(eC(n,1,i))}}(t,e.length-1),t}(t),i.map(t=>t*e)),t,{ease:Array.isArray(o)?o:t.map(()=>o||e0).splice(0,t.length-1)});return{calculatedDuration:e,next:t=>(s.value=a(t),s.done=t>=e,s)}}let ta=e=>null!==e;function tl(e,{repeat:t,repeatType:n="loop"},r,i=1){let o=e.filter(ta),s=i<0||t&&"loop"!==n&&t%2==1?0:o.length-1;return s&&void 0!==r?r:o[s]}let tu={decay:eK,inertia:eK,tween:ts,keyframes:ts,spring:eq};function tc(e){"string"==typeof e.type&&(e.type=tu[e.type])}class td{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}}let th=e=>e/100;class tf extends td{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==A.now()&&this.tick(A.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},F.mainThread++,this.options=e,this.initAnimation(),this.play(),!1===e.autoplay&&this.pause()}initAnimation(){let{options:e}=this;tc(e);let{type:t=ts,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:o=0}=e,{keyframes:s}=e,a=t||ts;a!==ts&&"number"!=typeof s[0]&&(this.mixKeyframes=L(th,e$(s[0],s[1])),s=[0,100]);let l=a({...e,keyframes:s}
149);"mirror"===i&&(this.mirroredGenerator=a({...e,keyframes:[...s].reverse(),velocity:-o})),null===l.calculatedDuration&&(l.calculatedDuration=eN(l));let{calculatedDuration:u}=l;this.calculatedDuration=u,this.resolvedDuration=u+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=l}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=t}tick(e,t=!1){let{generator:n,totalDuration:r,mixKeyframes:i,mirroredGenerator:o,resolvedDuration:s,calculatedDuration:a}=this;if(null===this.startTime)return n.next(0);let{delay:l=0,keyframes:u,repeat:c,repeatType:d,repeatDelay:h,type:f,onUpdate:p,finalKeyframe:g}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-r/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let m=this.currentTime-l*(this.playbackSpeed>=0?1:-1),b=this.playbackSpeed>=0?m<0:m>r;this.currentTime=Math.max(m,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=r);let y=this.currentTime,v=n;if(c){let e=Math.min(this.currentTime,r)/s,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),1===n&&t--,(t=Math.min(t,c+1))%2&&("reverse"===d?(n=1-n,h&&(n-=h/s)):"mirror"===d&&(v=o)),y=V(0,1,n)*s}let x=b?{done:!1,value:u[0]}:v.next(y);i&&(x.value=i(x.value));let{done:w}=x;b||null===a||(w=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let k=null===this.holdTime&&("finished"===this.state||"running"===this.state&&w);return k&&f!==eK&&(x.value=tl(u,this.options,g,this.speed)),p&&p(x.value),k&&this.finish(),x}then(e,t){return this.finished.then(e,t)}get duration(){return z(this.calculatedDuration)}get time(){return z(this.currentTime)}set time(e){e=$(e),this.currentTime=e,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(e){this.updateTime(A.now());let t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=z(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=ez,startTime:t}=this.options;this.driver||(this.driver=e(e=>this.tick(e))),this.options.onPlay?.();let n=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=n):null!==this.holdTime?this.startTime=n-this.holdTime:this.startTime||(this.startTime=t??n),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(A.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null,F.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),e.observe(this)}}let tp=e=>180*e/Math.PI,tg=e=>tb(tp(Math.atan2(e[1],e[0]))),tm={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:tg,rotateZ:tg,skewX:e=>tp(Math.atan(e[1])),skewY:e=>tp(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},tb=e=>((e%=360)<0&&(e+=360),e),ty=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),tv=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),tx={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:ty,scaleY:tv,scale:e=>(ty(e)+tv(e))/2,rotateX:e=>tb(tp(Math.atan2(e[6],e[5]))),rotateY:e=>tb(tp(Math.atan2(-e[2],e[0]))),rotateZ:tg,rotate:tg,skewX:e=>tp(Math.atan(e[4])),skewY:e=>tp(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function tw(e){return+!!e.includes("scale")}function tk(e,t){let n,r;if(!e||"none"===e)return tw(t);let i=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(i)n=tx,r=i;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);n=tm,r=t}if(!r)return tw(t);let o=n[t],s=r[1].split(",").map(tE);return"function"==typeof o?o(s):s[o]}let tS=(e,t)=>{let{transform:n="none"}=getComputedStyle(e);return tk(n,t)};function tE(e){return parseFloat(e.trim())}let tA=e=>e===q||e===eu,tC=new Set(["x","y","z"]),tT=y.filter(e=>
149!tC.has(e)),tP={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>tk(t,"x"),y:(e,{transform:t})=>tk(t,"y")};tP.translateX=tP.x,tP.translateY=tP.y;let tR=new Set,tM=!1,tj=!1,tO=!1;function tI(){if(tj){let e=Array.from(tR).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{let t=function(e){let t=[];return tT.forEach(n=>{let r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(+!!n.startsWith("scale")))}),t}(e);t.length&&(n.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=n.get(e);t&&t.forEach(([t,n])=>{e.getValue(t)?.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)})}tj=!1,tM=!1,tR.forEach(e=>e.complete(tO)),tR.clear()}function tD(){tR.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(tj=!0)})}class t_{constructor(e,t,n,r,i,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(tR.add(this),tM||(tM=!0,p.read(tD),p.resolveKeyframes(tI))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(null===e[0]){let i=r?.get(),o=e[e.length-1];if(void 0!==i)e[0]=i;else if(n&&t){let r=n.readValue(t,o);null!=r&&(e[0]=r)}void 0===e[0]&&(e[0]=o),r&&void 0===i&&r.set(e[0])}for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),tR.delete(this)}cancel(){"scheduled"===this.state&&(tR.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}let tL=e=>e.startsWith("--");function tV(e){let t;return()=>(void 0===t&&(t=e()),t)}let t$=tV(()=>void 0!==window.ScrollTimeline),tz={},tF=function(e,t){let n=tV(e);return()=>tz[t]??n()}(()=>{try{document.createElement("div").animate({opacity:0}
149,{easing:"linear(0, 1)"})}catch(e){return!1}return!0},"linearEasing"),tN=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,tB={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:tN([0,.65,.55,1]),circOut:tN([.55,0,1,.45]),backIn:tN([.31,.01,.66,-.59]),backOut:tN([.33,1.53,.69,.99])};function tH(e){return"function"==typeof e&&"applyToOptions"in e}class tU extends td{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,!e)return;let{element:t,name:n,keyframes:r,pseudoElement:i,allowFlatten:o=!1,finalKeyframe:s,onComplete:a}=e;this.isPseudoElement=!!i,this.allowFlatten=o,this.options=e,B("string"!=typeof e.type,'animateMini doesn\'t support "type" as a string. Did you mean to import { spring } from "motion"?');let l=function({type:e,...t}){return tH(e)&&tF()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}(e);this.animation=function(e,t,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:s="loop",ease:a="easeOut",times:l}={},u){let c={[t]:n};l&&(c.offset=l);let d=function e(t,n){if(t)return"function"==typeof t?tF()?eF(t,n):"ease-out":tt(t)?tN(t):Array.isArray(t)?t.map(t=>e(t,n)||tB.easeOut):tB[t]}(a,i);Array.isArray(d)&&(c.easing=d),h.value&&F.waapi++;let f={delay:r,duration:i,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:o+1,direction:"reverse"===s?"alternate":"normal"};u&&(f.pseudoElement=u);let p=e.animate(c,f);return h.value&&p.finished.finally(()=>{F.waapi--}),p}(t,n,r,l,i),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=tl(r,this.options,s,this.speed);this.updateMotionValue?this.updateMotionValue(e):function(e,t,n){tL(t)?e.style.setProperty(t,n):e.style[t]=n}(t,n,e),this.animation.cancel()}a?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(e){}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;"idle"!==e&&"finished"!==e&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){return z(Number(this.animation.effect?.getComputedTiming?.().duration||0))}get time(){return z(Number(this.animation.currentTime)||0)}set time(e){this.finishedTime=null,this.animation.currentTime=$(e)}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(e){this.animation.startTime=e}attachTimeline({timeline:e,observe:t}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,e&&t$())?(this.animation.timeline=e,u):t(this)}}let tW={anticipate:e6,backInOut:e8,circInOut:te};class tY extends tU{constructor(e){!function(e){"string"==typeof e.ease&&e.ease in tW&&(e.ease=tW[e.ease])}(e),tc(e),super(e),e.startTime&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:n,onComplete:r,element:i,...o}=this.options;if(!t)return;if(void 0!==e)return void t.set(e);let s=new tf({...o,autoplay:!1}),a=$(this.finishedTime??this.time);t.setWithVelocity(s.sample(a-10).value,s.sample(a).value,10),s.stop()}}let tG=(e,t)=>"zIndex"!==t&&!!("number"==typeof e||Array.isArray(e)||"string"==typeof e&&(eS.test(e)||"0"===e)&&!e.startsWith("url("));var tq,tK,tX=n(27351);let tZ=new Set(["opacity","clipPath","filter","transform"]),tJ=tV(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class tQ extends td{constructor({autoplay:e=!0,delay:t=0,type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:o="loop",keyframes:s,name:a,motionValue:l,element:u,...c}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=A.now();let d={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:i,repeatType:
149o,name:a,motionValue:l,element:u,...c},h=u?.KeyframeResolver||t_;this.keyframeResolver=new h(s,(e,t,n)=>this.onKeyframesResolved(e,t,d,!n),a,l,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,r){this.keyframeResolver=void 0;let{name:i,type:o,velocity:s,delay:a,isHandoff:l,onUpdate:d}=n;this.resolvedAt=A.now(),!function(e,t,n,r){let i=e[0];if(null===i)return!1;if("display"===t||"visibility"===t)return!0;let o=e[e.length-1],s=tG(i,t),a=tG(o,t);return N(s===a,`You are trying to animate ${t} from "${i}" to "${o}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${o} via the \`style\` property.`),!!s&&!!a&&(function(e){let t=e[0];if(1===e.length)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}(e)||("spring"===n||tH(n))&&r)}(e,i,o,s)&&((c.instantAnimations||!a)&&d?.(tl(e,n,t)),e[0]=e[e.length-1],n.duration=0,n.repeat=0);let h={startTime:r?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:e},f=!l&&function(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:o,type:s}=e;if(!(0,tX.s)(t?.owner?.current))return!1;let{onUpdate:a,transformTemplate:l}=t.owner.getProps();return tJ()&&n&&tZ.has(n)&&("transform"!==n||!l)&&!a&&!r&&"mirror"!==i&&0!==o&&"inertia"!==s}(h)?new tY({...h,element:h.motionValue.owner.current}):new tf(h);f.finished.then(()=>this.notifyFinished()).catch(u),this.pendingTimeline&&(this.stopTimeline=f.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=f}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),tO=!0,tD(),tI(),tO=!1),this._animation}get duration(){return this.animation.duration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}let t0=e=>null!==e,t1={type:"spring",stiffness:500,damping:25,restSpeed:10},t2=e=>({type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restSpeed:10}),t5={type:"keyframes",duration:.8},t3={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},t4=(e,{keyframes:t})=>t.length>2?t5:v.has(e)?e.startsWith("scale")?t2(t[1]):t1:t3,t8=(e,t,n,r={},i,o)=>s=>{let a=l(r,e)||{},u=a.delay||r.delay||0,{elapsed:d=0}=r;d-=$(u);let h={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-d,onUpdate:e=>{t.set(e),a.onUpdate&&a.onUpdate(e)},onComplete:()=>{s(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:o?void 0:i};!function({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:s,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length}(a)&&Object.assign(h,t4(e,h)),h.duration&&(h.duration=$(h.duration)),h.repeatDelay&&(h.repeatDelay=$(h.repeatDelay)),void 0!==h.from&&(h.keyframes[0]=h.from);let f=!1;if(!1!==h.type&&(0!==h.duration||h.repeatDelay)||(h.duration=0,0===h.delay&&(f=!0)),(c.instantAnimations||c.skipAnimations)&&(f=!0,h.duration=0,h.delay=0),h.allowFlatten=!a.type&&!a.ease,f&&!o&&void 0!==t.get()){let e=function(e,{repeat:t,repeatType:n="loop"},r){let i=e.filter(t0),o=t&&"loop"!==n&&t%2==1?0:i.length-1;return i[o]}(h.keyframes,a);if(void 0!==e)return void p.update(()=>{h.onUpdate(e),h.onComplete()})}return a.isSync?new tf(h):new tQ(h)};function t6(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:o=e.getDefaultTransition(),transitionEnd:s,...u}=t;r&&(o=r);let c=[],d=i&&e.animationState&&e.animationState.getState()[i];for(let t in u){let r=e.getValue(t,e.latestValues[t]??null),i=u[t];if(void 0===i||d&&function({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,r}(d,t))continue;let s={delay:n,...l(o||{},t)},a=r.get();if(void 0!==a&&!r.isAnimating&&!Array.isArray(i)&&i===a&&!s.velocity)continue;let h=!1;if(window.MotionHandoffAnimation){let n=e.props[D];if(n){let e=window.MotionHandoffAnimation(n,t,p);null!==e&&(s.startTime=e,h=!0)}}O(e,t),r.start(t8(t,r,i,e.shouldReduceMotion&&x.has(t)?{type:!1}:s,e,h));let f=r.animation;f&&c.push(f)}return s&&Promise.all(c).then(()=>{p.update(()=>{s&&function(e,t){let{transitionEnd:n={},transition:r={},...i}=a(e,t)||{};for(let t in i={...i,...n}){var o;let n=M(o=i[t])?o[o.length-1]||0:o;e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,R(n))}}(e,s)})}),c}function t9(e,t,n={}){let r=a(e,t,"exit"===n.type?e.presenceContext?.custom:void 0),{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);let o=r?()=>Promise.all(t6(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:o=0,staggerChildren:s,staggerDirection:a}=i;return function(e,t,n=0,r=0,i=1,o){let s=[],a=(e.variantChildren.size-1)*r,l=1===i?(e=0)=>e*r:(e=0)=>a-e*r;
149return Array.from(e.variantChildren).sort(t7).forEach((e,r)=>{e.notify("AnimationStart",t),s.push(t9(e,t,{...o,delay:n+l(r)}).then(()=>e.notify("AnimationComplete",t)))}),Promise.all(s)}(e,t,o+r,s,a,n)}:()=>Promise.resolve(),{when:l}=i;if(!l)return Promise.all([o(),s(n.delay)]);{let[e,t]="beforeChildren"===l?[o,s]:[s,o];return e().then(()=>t())}}function t7(e,t){return e.sortNodePosition(t)}function ne(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function nt(e){return"string"==typeof e||Array.isArray(e)}let nn=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],nr=["initial",...nn],ni=nr.length,no=[...nn].reverse(),ns=nn.length;function na(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function nl(){return{animate:na(!0),whileInView:na(),whileHover:na(),whileTap:na(),whileDrag:na(),whileFocus:na(),exit:na()}}class nu{constructor(e){this.isMounted=!1,this.node=e}update(){}}class nc extends nu{constructor(e){super(e),e.animationState||(e.animationState=function(e){let t=t=>Promise.all(t.map(({animation:t,options:n})=>(function(e,t,n={}){let r;if(e.notify("AnimationStart",t),Array.isArray(t))r=Promise.all(t.map(t=>t9(e,t,n)));else if("string"==typeof t)r=t9(e,t,n);else{let i="function"==typeof t?a(e,t,n.custom):t;r=Promise.all(t6(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})})(e,t,n))),n=nl(),r=!0,o=t=>(n,r)=>{let i=a(e,r,"exit"===t?e.presenceContext?.custom:void 0);if(i){let{transition:e,transitionEnd:t,...r}=i;n={...n,...r,...t}}return n};function s(s){let{props:l}=e,u=function e(t){if(!t)return;if(!t.isControllingVariants){let n=t.parent&&e(t.parent)||{};return void 0!==t.props.initial&&(n.initial=t.props.initial),n}let n={};for(let e=0;e<ni;e++){let r=nr[e],i=t.props[r];(nt(i)||!1===i)&&(n[r]=i)}return n}(e.parent)||{},c=[],d=new Set,h={},f=1/0;for(let t=0;t<ns;t++){var p,g;let a=no[t],m=n[a],b=void 0!==l[a]?l[a]:u[a],y=nt(b),v=a===s?m.isActive:null;!1===v&&(f=t);let x=b===u[a]&&b!==l[a]&&y;if(x&&r&&e.manuallyAnimateOnMount&&(x=!1),m.protectedKeys={...h},!m.isActive&&null===v||!b&&!m.prevProp||i(b)||"boolean"==typeof b)continue;let w=(p=m.prevProp,"string"==typeof(g=b)?g!==p:!!Array.isArray(g)&&!ne(g,p)),k=w||a===s&&m.
149isActive&&!x&&y||t>f&&y,S=!1,E=Array.isArray(b)?b:[b],A=E.reduce(o(a),{});!1===v&&(A={});let{prevResolvedValues:C={}}=m,T={...C,...A},P=t=>{k=!0,d.has(t)&&(S=!0,d.delete(t)),m.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)};for(let e in T){let t=A[e],n=C[e];if(h.hasOwnProperty(e))continue;let r=!1;(M(t)&&M(n)?ne(t,n):t===n)?void 0!==t&&d.has(e)?P(e):m.protectedKeys[e]=!0:null!=t?P(e):d.add(e)}m.prevProp=b,m.prevResolvedValues=A,m.isActive&&(h={...h,...A}),r&&e.blockInitialAnimation&&(k=!1);let R=!(x&&w)||S;k&&R&&c.push(...E.map(e=>({animation:e,options:{type:a}})))}if(d.size){let t={};if("boolean"!=typeof l.initial){let n=a(e,Array.isArray(l.initial)?l.initial[0]:l.initial);n&&n.transition&&(t.transition=n.transition)}d.forEach(n=>{let r=e.getBaseTarget(n),i=e.getValue(n);i&&(i.liveStyle=!0),t[n]=r??null}),c.push({animation:t})}let m=!!c.length;return r&&(!1===l.initial||l.initial===l.animate)&&!e.manuallyAnimateOnMount&&(m=!1),r=!1,m?t(c):Promise.resolve()}return{animateChanges:s,setActive:function(t,r){if(n[t].isActive===r)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,r)),n[t].isActive=r;let i=s(t);for(let e in n)n[e].protectedKeys={};return i},setAnimateFunction:function(n){t=n(e)},getState:()=>n,reset:()=>{n=nl(),r=!0}}}(e))}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();i(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let nd=0;class nh extends nu{constructor(){super(...arguments),this.id=nd++}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;let r=this.node.animationState.setActive("exit",!e);t&&!e&&r.then(()=>{t(this.id)})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}let nf={x:!1,y:!1};function np(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}let ng=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function nm(e){return{point:{x:e.pageX,y:e.pageY}}}let nb=e=>t=>ng(t)&&e(t,nm(t));function ny(e,t,n,r){return np(e,t,nb(n),r)}function nv({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function nx(e){return e.max-e.min}function nw(e,t,n,r=.5){e.origin=r,e.originPoint=eC(t.min,t.max,e.origin),e.scale=nx(n)/nx(t),e.translate=eC(n.min,n.max,e.origin)-e.originPoint,(e.scale>=.9999&&e.scale<=1.0001||isNaN(e.scale))&&(e.scale=1),(e.translate>=-.01&&e.translate<=.01||isNaN(e.translate))&&(e.translate=0)}function nk(e,t,n,r){nw(e.x,t.x,n.x,r?r.originX:void 0),nw(e.y,t.y,n.y,r?r.originY:void 0)}function nS(e,t,n){e.min=n.min+t.min,e.max=e.min+nx(t)}function nE(e,t,n){e.min=t.min-n.min,e.max=e.min+nx(t)}function nA(e,t,n){nE(e.x,t.x,n.x),nE(e.y,t.y,n.y)}let nC=()=>({translate:0,scale:1,origin:0,originPoint:0}),nT=()=>({x:nC(),y:nC()}),nP=()=>({min:0,max:0}),nR=()=>({x:nP(),y:nP()});function nM(e){return[e("x"),e("y")]}function nj(e){return void 0===e||1===e}function nO({scale:e,scaleX:t,scaleY:n}){return!nj(e)||!nj(t)||!nj(n)}function nI(e){return nO(e)||nD(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function nD(e){var t,n;return(t=e.x)&&"0%"!==t||(n=e.y)&&"0%"!==n}function n_(e,t,n,r,i){return void 0!==i&&(e=r+i*(e-r)),r+n*(e-r)+t}function nL(e,t=0,n=1,r,i){e.min=n_(e.min,t,n,r,i),e.max=n_(e.max,t,n,r,i)}function nV(e,{x:t,y:n}){nL(e.x,t.translate,t.scale,t.originPoint),nL(e.y,n.translate,n.scale,n.originPoint)}function n$(e,t){e.min=e.min+t,e.max=e.max+t}function nz(e,t,n,r,i=.5){let o=eC(e.min,e.max,i);nL(e,t,n,o,r)}function nF(e,t){nz(e.x,t.x,t.scaleX,t.scale,t.originX),nz(e.y,t.y,t.scaleY,t.scale,t.originY)}function nN(e,t){return nv(function(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(e.getBoundingClientRect(),t))}let nB=({current:e})=>e?e.ownerDocument.defaultView:null;function nH(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}let nU=(e,t)=>Math.abs(e-t);class nW{constructor(e,t,{transformPagePoint:n,contextWindow:r,dragSnapToOrigin:i=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let e=nq(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,n=function(e,t){return Math.sqrt(nU(e.x,t.x)**2+nU(e.y,t.y)**2)}(e.offset,{x:0,y:0})>=3;if(!t&&!n)return;let{point:r}=e,{timestamp:i}=m;this.history.push({...r,timestamp:i});
149let{onStart:o,onMove:s}=this.handlers;t||(o&&o(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),s&&s(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=nY(t,this.transformPagePoint),p.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:r,resumeAnimation:i}=this.handlers;if(this.dragSnapToOrigin&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let o=nq("pointercancel"===e.type?this.lastMoveEventInfo:nY(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,o),r&&r(e,o)},!ng(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.contextWindow=r||window;let o=nY(nm(e),this.transformPagePoint),{point:s}=o,{timestamp:a}=m;this.history=[{...s,timestamp:a}];let{onSessionStart:l}=t;l&&l(e,nq(o,this.history)),this.removeListeners=L(ny(this.contextWindow,"pointermove",this.handlePointerMove),ny(this.contextWindow,"pointerup",this.handlePointerUp),ny(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),g(this.updatePoint)}}function nY(e,t){return t?{point:t(e.point)}:e}function nG(e,t){return{x:e.x-t.x,y:e.y-t.y}}function nq({point:e},t){return{point:e,delta:nG(e,nK(t)),offset:nG(e,t[0]),velocity:function(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=nK(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>$(.1)));)n--;if(!r)return{x:0,y:0};let o=z(i.timestamp-r.timestamp);if(0===o)return{x:0,y:0};let s={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}(t,.1)}}function nK(e){return e[e.length-1]}function nX(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function nZ(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function nJ(e,t,n){return{min:nQ(e,t),max:nQ(e,n)}}function nQ(e,t){return"number"==typeof e?e:e[t]||0}let n0=new WeakMap;class n1{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=nR(),this.visualElement=e}start(e,{snapToCursor:t=!1}={}){let{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;let{dragSnapToOrigin:r}=this.getProps();this.panSession=new nW(e,{onSessionStart:e=>{let{dragSnapToOrigin:n}=this.getProps();n?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor(nm(e).point)},onStart:(e,t)=>{let{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(e){if("x"===e||"y"===e)if(nf[e])return null;else return nf[e]=!0,()=>{nf[e]=!1};return nf.x||nf.y?null:(nf.x=nf.y=!0,()=>{nf.x=nf.y=!1})}(n),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),nM(e
149=>{let t=this.getAxisMotionValue(e).get()||0;if(el.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];r&&(t=nx(r)*(parseFloat(t)/100))}}this.originPoint[e]=t}),i&&p.postRender(()=>i(e,t)),O(this.visualElement,"transform");let{animationState:o}=this.visualElement;o&&o.setActive("whileDrag",!0)},onMove:(e,t)=>{let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:o}=this.getProps();if(!n&&!this.openDragLock)return;let{offset:s}=t;if(r&&null===this.currentDirection){this.currentDirection=function(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}(s),null!==this.currentDirection&&i&&i(this.currentDirection);return}this.updateAxis("x",t.point,s),this.updateAxis("y",t.point,s),this.visualElement.render(),o&&o(e,t)},onSessionEnd:(e,t)=>this.stop(e,t),resumeAnimation:()=>nM(e=>"paused"===this.getAnimationState(e)&&this.getAxisMotionValue(e).animation?.play())},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:r,contextWindow:nB(this.visualElement)})}stop(e,t){let n=this.isDragging;if(this.cancel(),!n)return;let{velocity:r}=t;this.startAnimation(r);let{onDragEnd:i}=this.getProps();i&&p.postRender(()=>i(e,t))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!n2(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),o=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(o=function(e,{min:t,max:n},r){return void 0!==t&&e<t?e=r?eC(t,e,r.min):Math.max(e,t):void 0!==n&&e>n&&(e=r?eC(n,e,r.max):Math.min(e,n)),e}(o,this.constraints[e],this.elastic[e])),i.set(o)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;e&&nH(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&n?this.constraints=function(e,{top:t,left:n,bottom:r,right:i}){return{x:nX(e.x,n,i),y:nX(e.y,t,r)}}(n.layoutBox,e):this.constraints=!1,this.elastic=function(e=.35){return!1===e?e=0:!0===e&&(e=.35),{x:nJ(e,"left","right"),y:nJ(e,"top","bottom")}}(t),r!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&nM(e=>{!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){let n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){var e;let{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!nH(t))return!1;let r=t.current;B(null!==r,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:i}=this.visualElement;if(!i||!i.layout)return!1;let o=function(e,t,n){let r=nN(e,n),{scroll:i}=t;return i&&(n$(r.x,i.offset.x),n$(r.y,i.offset.y)),r}(r,i.root,this.visualElement.getTransformPagePoint()),s=(e=i.layout.layoutBox,{x:nZ(e.x,o.x),y:nZ(e.y,o.y)});if(n){let e=n(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(s));this.hasMutatedConstraints=!!e,e&&(s=nv(e))}return s}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:s}=this.getProps(),a=this.constraints||{};return Promise.all(nM(s=>{if(!n2(s,t,this.currentDirection))return;let l=a&&a[s]||{};o&&(l={min:0,max:0});let u={type:"inertia",velocity:n?e[s]:0,bounceStiffness:r?200:1e6,bounceDamping:r?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...i,...l};return this.startAxisValueAnimation(s,u)})).then(s)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return O(this.visualElement,e),n.start(t8(e,n,0,t,this.visualElement,!1))}stopAnimation(){nM(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){nM(e=>this.getAxisMotionValue(e).animation?.pause())}getAnimationState(e){return this.getAxisMotionValue(e).animation?.state}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`,n=this.visualElement.getProps();return n[t]||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){nM(t=>{let{drag:n}=this.getProps();if(!n2(t,n,this.currentDirection))return;let{projection:r}=this.visualElement,i=this.getAxisMotionValue(t);if(r&&r.layout){let{min:n,max:o}=r.layout.layoutBox[t];i.set(e[t]-eC(n,o,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!nH(t)||!n||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};nM(e=>{let t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){let n=t.get();r[e]=function(e,t){let n=.5,r=nx(e),i=nx(t);return i>r?n=to(t.min,t.max-r,e.min):r>i&&(n=to(e.min,e.max-i,t.min)),V(0,1,n)}({min:n,max:n},this.constraints[e])}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),nM(t=>{if(!n2(t,e,null))return;let n=this.getAxisMotionValue(t),{min:i,max:o}=this.constraints[t];n.set(eC(i,o,r[t]))})}addListeners(){if(!this.visualElement.current)return;n0.set(this.visualElement,this);let e=ny(this.visualElement.current,"pointerdown",e=>{let{drag:t,dragListener:n=!0}
149=this.getProps();t&&n&&this.start(e)}),t=()=>{let{dragConstraints:e}=this.getProps();nH(e)&&e.current&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,r=n.addEventListener("measure",t);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),p.read(t);let i=np(window,"resize",()=>this.scalePositionWithinConstraints()),o=n.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(nM(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())});return()=>{i(),e(),r(),o&&o()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:o=.35,dragMomentum:s=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:o,dragMomentum:s}}}function n2(e,t,n){return(!0===t||t===e)&&(null===n||n===e)}class n5 extends nu{constructor(e){super(e),this.removeGroupControls=u,this.removeListeners=u,this.controls=new n1(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||u}unmount(){this.removeGroupControls(),this.removeListeners()}}let n3=e=>(t,n)=>{e&&p.postRender(()=>e(t,n))};class n4 extends nu{constructor(){super(...arguments),this.removePointerDownListener=u}onPointerDown(e){this.session=new nW(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:nB(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:n3(e),onStart:n3(t),onMove:n,onEnd:(e,t)=>{delete this.session,r&&p.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=ny(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}var n8=n(95155);let{schedule:n6}=f(queueMicrotask,!1);var n9=n(12115),n7=n(32082),re=n(90869);let rt=(0,n9.createContext)({}),rn={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function rr(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}let ri={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e)if(!eu.test(e))return e;else e=parseFloat(e);let n=rr(e,t.target.x),r=rr(e,t.target.y);return`${n}% ${r}%`}},ro={};class rs extends n9.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;for(let e in rl)ro[e]=rl[e],U(e)&&(ro[e].isCSSVariable=!0);i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),rn.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:r,isPresent:i}=this.props,{projection:o}=n;return o&&(o.isPresent=i,r||e.layoutDependency!==t||void 0===t||e.isPresent!==i?o.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?o.promote():o.relegate()||p.postRender(()=>{let e=o.getStack();e&&e.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),n6.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}}function ra(e){let[t,n]=(0,n7.xQ)(),r=(0,n9.useContext)(re.L);return(0,n8.jsx)(rs,{...e,layoutGroup:r,switchLayoutGroup:(0,n9.useContext)(rt),isPresent:t,safeToRemove:n})}let rl={borderRadius:{...ri,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ri,borderTopRightRadius:ri,borderBottomLeftRadius:ri,borderBottomRightRadius:ri,boxShadow:{correct:(e,{treeScale:t,projectionDelta:n})=>{let r=eS.parse(e);if(r.length>5)return e;let i=eS.createTransformer(e),o=+("number"!=typeof r[0]),s=n.x.scale*t.x,a=n.y.scale*t.y;r[0+o]/=s,r[1+o]/=a;let l=eC(s,a,.5);return"number"==typeof r[2+o]&&(r[2+o]/=l),"number"==typeof r[3+o]&&(r[3+o]/=l),i(r)}}};var ru=n(6983);function rc(e){return(0,ru.G)(e)&&"ownerSVGElement"in e}let rd=(e,t)=>e.depth-t.depth;class rh{constructor(){this.children=[],this.isDirty=!1}add(e){w(this.children,e),this.isDirty=!0}remove(e){k(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(rd),this.isDirty=!1,this.children.forEac
149h(e)}}function rf(e){return j(e)?e.get():e}let rp=["TopLeft","TopRight","BottomLeft","BottomRight"],rg=rp.length,rm=e=>"string"==typeof e?parseFloat(e):e,rb=e=>"number"==typeof e||eu.test(e);function ry(e,t){return void 0!==e[t]?e[t]:e.borderRadius}let rv=rw(0,.5,e7),rx=rw(.5,.95,u);function rw(e,t,n){return r=>r<e?0:r>t?1:n(to(e,t,r))}function rk(e,t){e.min=t.min,e.max=t.max}function rS(e,t){rk(e.x,t.x),rk(e.y,t.y)}function rE(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function rA(e,t,n,r,i){return e-=t,e=r+1/n*(e-r),void 0!==i&&(e=r+1/i*(e-r)),e}function rC(e,t,[n,r,i],o,s){!function(e,t=0,n=1,r=.5,i,o=e,s=e){if(el.test(t)&&(t=parseFloat(t),t=eC(s.min,s.max,t/100)-s.min),"number"!=typeof t)return;let a=eC(o.min,o.max,r);e===o&&(a-=t),e.min=rA(e.min,t,n,a,i),e.max=rA(e.max,t,n,a,i)}(e,t[n],t[r],t[i],t.scale,o,s)}let rT=["x","scaleX","originX"],rP=["y","scaleY","originY"];function rR(e,t,n,r){rC(e.x,t,rT,n?n.x:void 0,r?r.x:void 0),rC(e.y,t,rP,n?n.y:void 0,r?r.y:void 0)}function rM(e){return 0===e.translate&&1===e.scale}function rj(e){return rM(e.x)&&rM(e.y)}function rO(e,t){return e.min===t.min&&e.max===t.max}function rI(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function rD(e,t){return rI(e.x,t.x)&&rI(e.y,t.y)}function r_(e){return nx(e.x)/nx(e.y)}function rL(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class rV{constructor(){this.members=[]}add(e){w(this.members,e),e.scheduleRender()}remove(e){if(k(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){let t,n=this.members.findIndex(t=>e===t);if(0===n)return!1;for(let e=n;e>=0;e--){let n=this.members[e];if(!1!==n.isPresent){t=n;break}}return!!t&&(this.promote(t),!0)}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,t&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);let{crossfade:r}=e.options;!1===r&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{let{options:t,resumingFrom:n}=e;t.onExitComplete&&t.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}let r$={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},rz=["","X","Y","Z"],rF={visibility:"hidden"},rN=0;function rB(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function rH({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=t?.()){this.id=rN++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,h.value&&(r$.nodes=r$.calculatedTargetDeltas=r$.calculatedProjections=0),this.nodes.forEach(rY),this.nodes.forEach(rQ),this.nodes.forEach(r0),this.nodes.forEach(rG),h.addProjectionMetrics&&h.addProjectionMetrics(r$)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new rh)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new S),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=rc(t)&&!(rc(t)&&"svg"===t.tagName),this.instance=t;let{layoutId:n,layout:r,visualElement:i}=this.options;if(i&&!i.current&&i.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(r||n)&&(this.isLayoutDirty=!0),e){let n,r=()=>this.root.updateBlockedByResize=!1;e(t,()=>{this.root.updateBlockedByResize=!0,n&&n(),n=function(e,t){let n=A.now(),r=({timestamp:i})=>{let o=i-n;o>=250&&(g(r),e(o-t))};return p.setup(r,!0),()=>g(r)}
149(r,250),rn.hasAnimatedSinceResize&&(rn.hasAnimatedSinceResize=!1,this.nodes.forEach(rJ))})}n&&this.root.registerSharedNode(n,this),!1!==this.options.animate&&i&&(n||r)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let o=this.options.transition||i.getDefaultTransition()||r8,{onLayoutAnimationStart:s,onLayoutAnimationComplete:a}=i.getProps(),u=!this.targetLayout||!rD(this.targetLayout,r),c=!t&&n;if(this.options.layoutRoot||this.resumeFrom||c||t&&(u||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...l(o,"layout"),onPlay:s,onComplete:a};(i.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,c)}else t||rJ(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),g(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(r1),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function e(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;let{visualElement:n}=t.options;if(!n)return;let r=n.props[D];if(window.MotionHasOptimisedAnimation(r,"transform")){let{layout:e,layoutId:n}=t.options;window.MotionCancelOptimisedAnimation(r,"transform",p,!(e||n))}let{parent:i}=t;i&&!i.hasCheckedOptimisedAppear&&e(i)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:n}=this.options;if(void 0===t&&!n)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(rK);return}this.isUpdating||this.nodes.forEach(rX),this.isUpdating=!1,this.nodes.forEach(rZ),this.nodes.forEach(rU),this.nodes.forEach(rW),this.clearAllSnapshots();let e=A.now();m.delta=V(0,1e3/60,e-m.timestamp),m.timestamp=e,m.isProcessing=!0,b.update.process(m),b.preRender.process(m),b.render.process(m),m.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,n6.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(rq),this.sharedNodes.forEach(r2)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,p.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){p.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||nx(this.snapshot.measuredBox.x)||nx(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutCorrected=nR(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){let t=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!i)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!rj(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,""):void 0,o=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||nI(this.latestValues)||o)&&(i(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){var t;let n=this.measurePageBox(),r=this.removeElementScroll(n);return e&&(r=this.removeTransform(r)),r7((t=r).x),r7(t.y),{animationId:this.root.animationId,measuredBox:n,layoutBox:r,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return nR();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(it))){let{scroll:e}=this.root;e&&(n$(t.x,e.offset.x),n$(t.y,e.offset.y))}return t}removeElementScroll(e){let t=nR();if(rS(t,e),this.scroll?.wasRoot)return t;for(let n=0;n<this.path.length;n++){let r=this.path[n],{scroll:i,options:o}=r;r!==this.root&&i&&o.layoutScroll&&(i.wasRoot&&rS(t,e),n$(t.x,i.offset.x),n$(t.y,i.offset.y))}return t}applyTransform(e,t=!1){let n=nR();rS(n,e);for(let e=0;e<this.path.length;e++){let r=this.path[e];!t&&r.options.layoutScroll&&r.scroll&&r!==r.root&&nF(n,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),nI(r.latestValues)&&nF(n,r.latestValues)}return nI(this.latestValues)&&nF(n,this.latestValues),n}removeTransform(e){let t=nR();rS(t,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!n.instance||!nI(n.latestValues))continue;nO(n.latestValues)&&n.updateSnapshot();let r=nR();rS(r,n.measurePageBox()),rR(t,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,r)}return nI(this.latestValues)&&rR(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==m.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=t.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=t.
149isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=t.isSharedProjectionDirty);let n=!!this.resumingFrom||this!==t;if(!(e||n&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:r,layoutId:i}=this.options;if(this.layout&&(r||i)){if(this.resolvedRelativeTargetAt=m.timestamp,!this.targetDelta&&!this.relativeTarget){let e=this.getClosestProjectingParent();e&&e.layout&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=nR(),this.relativeTargetOrigin=nR(),nA(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),rS(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if(this.target||(this.target=nR(),this.targetWithTransforms=nR()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target){var o,s,a;this.forceRelativeParentToResolveTarget(),o=this.target,s=this.relativeTarget,a=this.relativeParent.target,nS(o.x,s.x,a.x),nS(o.y,s.y,a.y)}else this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):rS(this.target,this.layout.layoutBox),nV(this.target,this.targetDelta)):rS(this.target,this.layout.layoutBox);if(this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let e=this.getClosestProjectingParent();e&&!!e.resumingFrom==!!this.resumingFrom&&!e.options.layoutScroll&&e.target&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=nR(),this.relativeTargetOrigin=nR(),nA(this.relativeTargetOrigin,this.target,e.target),rS(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}h.value&&r$.calculatedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||nO(this.parent.latestValues)||nD(this.parent.latestValues)))if(this.parent.isProjecting())return this.parent;else return this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(n=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===m.timestamp&&(n=!1),n)return;let{layout:r,layoutId:i}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||i))return;rS(this.layoutCorrected,this.layout.layoutBox);let o=this.treeScale.x,s=this.treeScale.y;!function(e,t,n,r=!1){let i,o,s=n.length;if(s){t.x=t.y=1;for(let a=0;a<s;a++){o=(i=n[a]).projectionDelta;let{visualElement:s}=i.options;(!s||!s.props.style||"contents"!==s.props.style.display)&&(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&nF(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,nV(e,o)),r&&nI(i.latestValues)&&nF(e,i.latestValues))}t.x<1.0000000000001&&t.x>.999999999999&&(t.x=1),t.y<1.0000000000001&&t.y>.999999999999&&(t.y=1)}}(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=nR());let{target:a}=e;if(!a){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(rE(this.prevProjectionDelta.x,this.projectionDelta.x),rE(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),nk(this.projectionDelta,this.layoutCorrected,a,this.latestValues),this.treeScale.x===o&&this.treeScale.y===s&&rL(this.projectionDelta.x,this.prevProjectionDelta.x)&&rL(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",a)),h.value&&r$.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=nT(),this.projectionDelta=nT(),this.projectionDeltaWithTransform=nT()}setAnimationOrigin(e,t=!1){let n,r=this.snapshot,i=r?r.latestValues:{},o={...this.latestValues},s=nT();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let a=nR(),l=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),c=!u||u.members.length<=1,d=!!(l&&!c&&!0===this.options.crossfade&&!this.path.some(r4));this.animationProgress=0,this.mixTargetDelta=t=>{let r=t/1e3;if(r5(s.x,e.x,r),r5(s.y,e.y,r),this.setTargetDelta(s),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,h,f,p,g,m;nA(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),f=this.relativeTarget,p=this.relativeTargetOrigin,g=a,m=r,r3(f.x,p.x,g.x,m),r3(f.y,p.y,g.y,m),n&&(u=this.relativeTarget,h=n,rO(u.x,h.x)&&rO(u.y,h.y))&&(this.isProjectionDirty=!1),n||(n=nR()),rS(n,this.relativeTarget)}l&&(this.animationValues=o,function(e,t,n,r,i,o){i?(e.opacity=eC(0,n.opacity??1,rv(r)),e.o
149pacityExit=eC(t.opacity??1,0,rx(r))):o&&(e.opacity=eC(t.opacity??1,n.opacity??1,r));for(let i=0;i<rg;i++){let o=`border${rp[i]}Radius`,s=ry(t,o),a=ry(n,o);(void 0!==s||void 0!==a)&&(s||(s=0),a||(a=0),0===s||0===a||rb(s)===rb(a)?(e[o]=Math.max(eC(rm(s),rm(a),r),0),(el.test(a)||el.test(s))&&(e[o]+="%")):e[o]=a)}(t.rotate||n.rotate)&&(e.rotate=eC(t.rotate||0,n.rotate||0,r))}(o,i,this.latestValues,r,d,c)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=r},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(g(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=p.update(()=>{rn.hasAnimatedSinceResize=!0,F.layout++,this.motionValue||(this.motionValue=R(0)),this.currentAnimation=function(e,t,n){let r=j(e)?e:R(e);return r.start(t8("",r,t,n)),r.animation}(this.motionValue,[0,1e3],{...e,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onStop:()=>{F.layout--},onComplete:()=>{F.layout--,e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:n,layout:r,latestValues:i}=e;if(t&&n&&r){if(this!==e&&this.layout&&r&&ie(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||nR();let t=nx(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=nx(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}rS(t,n),nF(t,i),nk(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new rV),this.sharedNodes.get(e).add(t);let n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return!!e&&e.relegate(this)}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;let r={};n.z&&rB("z",e,r,this.animationValues);for(let t=0;t<rz.length;t++)rB(`rotate${rz[t]}`,e,r,this.animationValues),rB(`skew${rz[t]}`,e,r,this.animationValues);for(let t in e.render(),r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}getProjectionStyles(e){if(!this.instance||this.isSVG)return;if(!this.isVisible)return rF;let t={visibility:""},n=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,t.opacity="",t.pointerEvents=rf(e?.pointerEvents)||"",t.transform=n?n(this.latestValues,""):"none",t;let r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target){let t={};return this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=rf(e?.pointerEvents)||""),this.hasProjected&&!nI(this.latestValues)&&(t.transform=n?n({},""):"none",this.hasProjected=!1),t}let i=r.animationValues||r.latestValues;this.applyTransformsToTarget(),t.transform=function(e,t,n){let r="",i=e.x.translate/t.x,o=e.
149y.translate/t.y,s=n?.z||0;if((i||o||s)&&(r=`translate3d(${i}px, ${o}px, ${s}px) `),(1!==t.x||1!==t.y)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:e,rotate:t,rotateX:i,rotateY:o,skewX:s,skewY:a}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),i&&(r+=`rotateX(${i}deg) `),o&&(r+=`rotateY(${o}deg) `),s&&(r+=`skewX(${s}deg) `),a&&(r+=`skewY(${a}deg) `)}let a=e.x.scale*t.x,l=e.y.scale*t.y;return(1!==a||1!==l)&&(r+=`scale(${a}, ${l})`),r||"none"}(this.projectionDeltaWithTransform,this.treeScale,i),n&&(t.transform=n(i,t.transform));let{x:o,y:s}=this.projectionDelta;for(let e in t.transformOrigin=`${100*o.origin}% ${100*s.origin}% 0`,r.animationValues?t.opacity=r===this?i.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit:t.opacity=r===this?void 0!==i.opacity?i.opacity:"":void 0!==i.opacityExit?i.opacityExit:0,ro){if(void 0===i[e])continue;let{correct:n,applyTo:o,isCSSVariable:s}=ro[e],a="none"===t.transform?i[e]:n(i[e],r);if(o){let e=o.length;for(let n=0;n<e;n++)t[o[n]]=a}else s?this.options.visualElement.renderState.vars[e]=a:t[e]=a}return this.options.layoutId&&(t.pointerEvents=r===this?rf(e?.pointerEvents)||"":"none"),t}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(rK),this.root.sharedNodes.clear()}}}function rU(e){e.updateLayout()}function rW(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){let{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,o=t.source!==e.layout.source;"size"===i?nM(e=>{let r=o?t.measuredBox[e]:t.layoutBox[e],i=nx(r);r.min=n[e].min,r.max=r.min+i}):ie(i,t.layoutBox,n)&&nM(r=>{let i=o?t.measuredBox[r]:t.layoutBox[r],s=nx(n[r]);i.max=i.min+s,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+s)});let s=nT();nk(s,n,t.layoutBox);let a=nT();o?nk(a,e.applyTransform(r,!0),t.measuredBox):nk(a,n,t.layoutBox);let l=!rj(s),u=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:i,layout:o}=r;if(i&&o){let s=nR();nA(s,t.layoutBox,i.layoutBox);let a=nR();nA(a,n,o.layoutBox),rD(s,a)||(u=!0),r.options.layoutRoot&&(e.relativeTarget=a,e.relativeTargetOrigin=s,e.relativeParent=r)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:t,delta:a,layoutDelta:s,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function rY(e){h.value&&r$.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function rG(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function rq(e){e.clearSnapshot()}function rK(e){e.clearMeasurements()}function rX(e){e.isLayoutDirty=!1}function rZ(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function rJ(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function rQ(e){e.resolveTargetDelta()}function r0(e){e.calcProjection()}function r1(e){e.resetSkewAndRotation()}function r2(e){e.removeLeadSnapshot()}function r5(e,t,n){e.translate=eC(t.translate,0,n),e.scale=eC(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function r3(e,t,n,r){e.min=eC(t.min,n.min,r),e.max=eC(t.max,n.max,r)}function r4(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let r8={duration:.45,ease:[.4,0,.1,1]},r6=e=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),r9=r6("applewebkit/")&&!r6("chrome/")?Math.round:u;function r7(e){e.min=r9(e.min),e.max=r9(e.max)}function ie(e,t,n){return"position"===e||"preserve-aspect"===e&&!(.2>=Math.abs(r_(t)-r_(n)))}function it(e){return e!==e.root&&e.scroll?.wasRoot}let ir=rH({attachResizeListener:(e,t)=>np(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),ii={current:void 0},io=rH({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!ii.current){let e=new ir({});e.mount(window),e.setOptions({layoutScroll:!0}),ii.current=e}return ii.current},resetTransform:(e,t)=>
149{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position});function is(e,t){let n=function(e,t,n){if(e instanceof EventTarget)return[e];if("string"==typeof e){let t=document,n=(void 0)??t.querySelectorAll(e);return n?Array.from(n):[]}return Array.from(e)}(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function ia(e){return!("touch"===e.pointerType||nf.x||nf.y)}function il(e,t,n){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover","Start"===n);let i=r["onHover"+n];i&&p.postRender(()=>i(t,nm(t)))}class iu extends nu{mount(){let{current:e}=this.node;e&&(this.unmount=function(e,t,n={}){let[r,i,o]=is(e,n),s=e=>{if(!ia(e))return;let{target:n}=e,r=t(n,e);if("function"!=typeof r||!n)return;let o=e=>{ia(e)&&(r(e),n.removeEventListener("pointerleave",o))};n.addEventListener("pointerleave",o,i)};return r.forEach(e=>{e.addEventListener("pointerenter",s,i)}),o}(e,(e,t)=>(il(this.node,t,"Start"),e=>il(this.node,e,"End"))))}unmount(){}}class ic extends nu{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){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=L(np(this.node.current,"focus",()=>this.onFocus()),np(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}let id=(e,t)=>!!t&&(e===t||id(e,t.parentElement)),ih=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),ip=new WeakSet;function ig(e){return t=>{"Enter"===t.key&&e(t)}}function im(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}let ib=(e,t)=>{let n=e.currentTarget;if(!n)return;let r=ig(()=>{if(ip.has(n))return;im(n,"down");let e=ig(()=>{im(n,"up")});n.addEventListener("keyup",e,t),n.addEventListener("blur",()=>im(n,"cancel"),t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function iy(e){return ng(e)&&!(nf.x||nf.y)}function iv(e,t,n){let{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap","Start"===n);let i=r["onTap"+("End"===n?"":n)];i&&p.postRender(()=>i(t,nm(t)))}class ix extends nu{mount(){let{current:e}=this.node;e&&(this.unmount=function(e,t,n={}){let[r,i,o]=is(e,n),s=e=>{let r=e.currentTarget;if(!iy(e))return;ip.add(r);let o=t(r,e),s=(e,t)=>{window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",l),ip.has(r)&&ip.delete(r),iy(e)&&"function"==typeof o&&o(e,{success:t})},a=e=>{s(e,r===window||r===document||n.useGlobalTarget||id(r,e.target))},l=e=>{s(e,!1)};window.addEventListener("pointerup",a,i),window.addEventListener("pointercancel",l,i)};return r.forEach(e=>{((n.useGlobalTarget?window:e).addEventListener("pointerdown",s,i),(0,tX.s)(e))&&(e.addEventListener("focus",e=>ib(e,i)),ih.has(e.tagName)||-1!==e.tabIndex||e.hasAttribute("tabindex")||(e.tabIndex=0))}),o}(e,(e,t)=>(iv(this.node,t,"Start"),(e,{success:t})=>iv(this.node,e,t?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}let iw=new WeakMap,ik=new WeakMap,iS=e=>{let t=iw.get(e.target);t&&t(e)},iE=e=>{e.forEach(iS)},iA={some:0,all:1};class iC extends nu{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r="some",once:i}=e,o={root:t?t.current:void 0,rootMargin:n,threshold:"number"==typeof r?r:iA[r]};return function(e,t,n){let r=function({root:e,...t}){let n=e||document;ik.has(n)||ik.set(n,{});let r=ik.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(iE,{root:e,...t})),r[i]}(t);return iw.set(e,n),r.observe(e),()=>{iw.delete(e),r.unobserve(e)}}(this.node.current,o,e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,i&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);let{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),o=t?n:r;o&&o(e)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}(e,t))&&this.startObserver()}unmount(){}}let iT=(0,n9.createContext)({strict:!1});var iP=n(51508);let iR=(0,n9.createContext)({});function iM(e){return i(e.animate)||nr.some(t=>nt(e[t]))}function ij(e){return!!(iM(e)||e.variants)}function iO(e){return Array.isArray(e)?e.join(" "):e}var iI=n(68972);let iD={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"]},i_={};for(let e in iD)i_[e]={isEnabled:t=>iD[e].some(e=>!!t[e])};let iL=Symbol.for("motionComponentSymbol");var iV=n(80845),i$=n(97494);function iz(e,{layout:t,layoutId:n}){return v.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!ro[e]||"opacity"===e)}let iF=(e,t)=>t&&"number"==typeof e?t.transform(e):e,iN={...q,transform:Math.round}
149,iB={borderWidth:eu,borderTopWidth:eu,borderRightWidth:eu,borderBottomWidth:eu,borderLeftWidth:eu,borderRadius:eu,radius:eu,borderTopLeftRadius:eu,borderTopRightRadius:eu,borderBottomRightRadius:eu,borderBottomLeftRadius:eu,width:eu,maxWidth:eu,height:eu,maxHeight:eu,top:eu,right:eu,bottom:eu,left:eu,padding:eu,paddingTop:eu,paddingRight:eu,paddingBottom:eu,paddingLeft:eu,margin:eu,marginTop:eu,marginRight:eu,marginBottom:eu,marginLeft:eu,backgroundPositionX:eu,backgroundPositionY:eu,rotate:ea,rotateX:ea,rotateY:ea,rotateZ:ea,scale:X,scaleX:X,scaleY:X,scaleZ:X,skew:ea,skewX:ea,skewY:ea,distance:eu,translateX:eu,translateY:eu,translateZ:eu,x:eu,y:eu,z:eu,perspective:eu,transformPerspective:eu,opacity:K,originX:eh,originY:eh,originZ:eu,zIndex:iN,fillOpacity:K,strokeOpacity:K,numOctaves:iN},iH={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},iU=y.length;function iW(e,t,n){let{style:r,vars:i,transformOrigin:o}=e,s=!1,a=!1;for(let e in t){let n=t[e];if(v.has(e)){s=!0;continue}if(U(e)){i[e]=n;continue}{let t=iF(n,iB[e]);e.startsWith("origin")?(a=!0,o[e]=t):r[e]=t}}if(!t.transform&&(s||n?r.transform=function(e,t,n){let r="",i=!0;for(let o=0;o<iU;o++){let s=y[o],a=e[s];if(void 0===a)continue;let l=!0;if(!(l="number"==typeof a?a===+!!s.startsWith("scale"):0===parseFloat(a))||n){let e=iF(a,iB[s]);if(!l){i=!1;let t=iH[s]||s;r+=`${t}(${e}) `}n&&(t[s]=e)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}(t,e.transform,n):r.transform&&(r.transform="none")),a){let{originX:e="50%",originY:t="50%",originZ:n=0}=o;r.transformOrigin=`${e} ${t} ${n}`}}let iY=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function iG(e,t,n){for(let r in t)j(t[r])||iz(r,n)||(e[r]=t[r])}let iq={offset:"stroke-dashoffset",array:"stroke-dasharray"},iK={offset:"strokeDashoffset",array:"strokeDasharray"};function iX(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:o=1,pathOffset:s=0,...a},l,u,c){if(iW(e,a,u),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:h}=e;d.transform&&(h.transform=d.transform,delete d.transform),(h.transform||d.transformOrigin)&&(h.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),h.transform&&(h.transformBox=c?.transformBox??"fill-box",delete d.transformBox),void 0!==t&&(d.x=t),void 0!==n&&(d.y=n),void 0!==r&&(d.scale=r),void 0!==i&&function(e,t,n=1,r=0,i=!0){e.pathLength=1;let o=i?iq:iK;e[o.offset]=eu.transform(-r);let s=eu.transform(t),a=eu.transform(n);e[o.array]=`${s} ${a}`}(d,i,o,s,!1)}let iZ=()=>({...iY(),attrs:{}}),iJ=e=>"string"==typeof e&&"svg"===e.toLowerCase(),iQ=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function i0(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||iQ.has(e)}let i1=e=>!i0(e);try{!function(e){e&&(i1=t=>t.startsWith("on")?!i0(t):e(t))}(require("@emotion/is-prop-valid").default)}catch{}let i2=["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 i5(e){if("string"!=typeof e||e.includes("-"));else if(i2.indexOf(e)>-1||/[A-Z]/u.test(e))return!0;return!1}var i3=n(82885);let i4=e=>(t,n)=>{let r=(0,n9.useContext)(iR),o=(0,n9.useContext)(iV.t),a=()=>(function({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,o){return{latestValues:function(e,t,n,r){let o={},a=r(e,{});for(let e in a)o[e]=rf(a[e]);let{initial:l,animate:u}=e,c=iM(e),d=ij(e);t&&d&&!c&&!1!==e.inherit&&(void 0===l&&(l=t.initial),void 0===u&&(u=t.animate));
149let h=!!n&&!1===n.initial,f=(h=h||!1===l)?u:l;if(f&&"boolean"!=typeof f&&!i(f)){let t=Array.isArray(f)?f:[f];for(let n=0;n<t.length;n++){let r=s(e,t[n]);if(r){let{transitionEnd:e,transition:t,...n}=r;for(let e in n){let t=n[e];if(Array.isArray(t)){let e=h?t.length-1:0;t=t[e]}null!==t&&(o[e]=t)}for(let t in e)o[t]=e[t]}}}return o}(n,r,o,e),renderState:t()}})(e,t,r,o);return n?a():(0,i3.M)(a)};function i8(e,t,n){let{style:r}=e,i={};for(let o in r)(j(r[o])||t.style&&j(t.style[o])||iz(o,e)||n?.getValue(o)?.liveStyle!==void 0)&&(i[o]=r[o]);return i}let i6={useVisualState:i4({scrapeMotionValuesFromProps:i8,createRenderState:iY})};function i9(e,t,n){let r=i8(e,t,n);for(let n in e)(j(e[n])||j(t[n]))&&(r[-1!==y.indexOf(n)?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n]=e[n]);return r}let i7={useVisualState:i4({scrapeMotionValuesFromProps:i9,createRenderState:iZ})},oe=e=>t=>t.test(e),ot=[q,eu,el,ea,ed,ec,{test:e=>"auto"===e,parse:e=>e}],on=e=>ot.find(oe(e)),or=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),oi=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,oo=e=>/^0[^.\s]+$/u.test(e),os=new Set(["brightness","contrast","saturate","opacity"]);function oa(e){let[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[r]=n.match(J)||[];if(!r)return e;let i=n.replace(r,""),o=+!!os.has(t);return r!==n&&(o*=100),t+"("+o+i+")"}let ol=/\b([a-z-]*)\(.*?\)/gu,ou={...eS,getAnimatableNone:e=>{let t=e.match(ol);return t?t.map(oa).join(" "):e}},oc={...iB,color:ep,backgroundColor:ep,outlineColor:ep,fill:ep,stroke:ep,borderColor:ep,borderTopColor:ep,borderRightColor:ep,borderBottomColor:ep,borderLeftColor:ep,filter:ou,WebkitFilter:ou},od=e=>oc[e];function oh(e,t){let n=od(e);
149return n!==ou&&(n=eS),n.getAnimatableNone?n.getAnimatableNone(t):void 0}let of=new Set(["auto","none","0"]);class op extends t_{constructor(e,t,n,r,i){super(e,t,n,r,i,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if("string"==typeof r&&Y(r=r.trim())){let i=function e(t,n,r=1){B(r<=4,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);let[i,o]=function(e){let t=oi.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}(t);if(!i)return;let s=window.getComputedStyle(n).getPropertyValue(i);if(s){let e=s.trim();return or(e)?parseFloat(e):e}return Y(o)?e(o,n,r+1):o}(r,t.current);void 0!==i&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!x.has(n)||2!==e.length)return;let[r,i]=e,o=on(r),s=on(i);if(o!==s)if(tA(o)&&tA(s))for(let t=0;t<e.length;t++){let n=e[t];"string"==typeof n&&(e[t]=parseFloat(n))}else tP[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++){var r;(null===e[t]||("number"==typeof(r=e[t])?0===r:null===r||"none"===r||"0"===r||oo(r)))&&n.push(t)}n.length&&function(e,t,n){let r,i=0;for(;i<e.length&&!r;){let t=e[i];"string"==typeof t&&!of.has(t)&&ev(t).values.length&&(r=e[i]),i++}if(r&&n)for(let i of t)e[i]=oh(n,r)}(e,n,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;"height"===n&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=tP[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let r=t[t.length-1];void 0!==r&&e.getValue(n,r).jump(r,!1)}measureEndState(){let{element:e,name:t,unresolvedKeyframes:n}=this;if(!e||!e.current)return;let r=e.getValue(t);r&&r.jump(this.measuredOrigin,!1);let i=n.length-1,o=n[i];n[i]=tP[t](e.measureViewportBox(),window.getComputedStyle(e.current)),null!==o&&void 0===this.finalKeyframe&&(this.finalKeyframe=o),this.removedTransforms?.length&&this.removedTransforms.forEac
149h(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}}let og=[...ot,ep,eS],om=e=>og.find(oe(e)),ob={current:null},oy={current:!1},ov=new WeakMap,ox=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class ow{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,blockInitialAnimation:i,visualState:o},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=t_,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let e=A.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,p.render(this.render,!1,!0))};let{latestValues:a,renderState:l}=o;this.latestValues=a,this.baseTarget={...a},this.initialValues=t.initial?{...a}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.options=s,this.blockInitialAnimation=!!i,this.isControllingVariants=iM(t),this.isVariantNode=ij(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:u,...c}=this.scrapeMotionValuesFromProps(t,{},this);for(let e in c){let t=c[e];void 0!==a[e]&&j(t)&&t.set(a[e],!1)}}mount(e){this.current=e,ov.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((e,t)=>this.bindToMotionValue(t,e)),oy.current||function(){if(oy.current=!0,iI.B)if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>ob.current=e.matches;e.addListener(t),t()}else ob.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||ob.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){for(let e in this.projection&&this.projection.unmount(),g(this.notifyUpdate),g(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this),this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}bindToMotionValue(e,t){let n;this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();let r=v.has(e);r&&this.onBindTransform&&this.onBindTransform();let i=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&p.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=t.on("renderRequest",this.scheduleRender);window.MotionCheckAppearSync&&(n=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{i(),o(),n&&n(),t.owner&&t.stop()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}updateFeatures(){let e="animation";for(e in i_){let t=i_[e];if(!t)continue;let{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):nR()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<ox.length;t++){let n=ox[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let r=e["on"+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=function(e,t,n){for(let r in t){let i=t[r],o=n[r];if(j(i))e.addValue(r,i);else if(j(o))e.addValue(r,R(i,{owner:e}));else if(o!==i)if(e.hasValue(r)){let t=e.getValue(r);!0===t.liveStyle?t.jump(i):t.hasAnimated||t.set(i)}else{let t=e.getStaticValue(r);e.addValue(r,R(void 0!==t?t:i,{owner:e}))}}for(let r in n)void 0===t[r]&&e.removeValue(r);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}
149addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==t&&(n=R(null===t?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=void 0===this.latestValues[e]&&this.current?this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];return null!=n&&("string"==typeof n&&(or(n)||oo(n))?n=parseFloat(n):!om(n)&&eS.test(t)&&(n=oh(e,t)),this.setBaseTarget(e,j(n)?n.get():n)),j(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let t,{initial:n}=this.props;if("string"==typeof n||"object"==typeof n){let r=s(this.props,n,this.presenceContext?.custom);r&&(t=r[e])}if(n&&void 0!==t)return t;let r=this.getBaseTargetFromProps(this.props,e);return void 0===r||j(r)?void 0!==this.initialValues[e]&&void 0===t?void 0:this.baseTarget[e]:r}on(e,t){return this.events[e]||(this.events[e]=new S),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}}class ok extends ow{constructor(){super(...arguments),this.KeyframeResolver=op}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;j(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}}function oS(e,{style:t,vars:n},r,i){for(let o in Object.assign(e.style,t,i&&i.getProjectionStyles(r)),n)e.style.setProperty(o,n[o])}class oE extends ok{constructor(){super(...arguments),this.type="html",this.renderInstance=oS}readValueFromInstance(e,t){if(v.has(t))return this.projection?.isProjecting?tw(t):tS(e,t);{let n=window.getComputedStyle(e),r=(U(t)?n.getPropertyValue(t):n[t])||0;return"string"==typeof r?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return nN(e,t)}build(e,t,n){iW(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return i8(e,t,n)}}let oA=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"]);class oC extends ok{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=nR}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(v.has(t)){let e=od(t);return e&&e.default||0}return t=oA.has(t)?t:I(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return i9(e,t,n)}
149build(e,t,n){iX(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){for(let n in oS(e,t,void 0,r),t.attrs)e.setAttribute(oA.has(n)?n:I(n),t.attrs[n])}mount(e){this.isSVGTag=iJ(e.tagName),super.mount(e)}}let oT=function(e){if("undefined"==typeof Proxy)return e;let t=new Map;return new Proxy((...t)=>e(...t),{get:(n,r)=>"create"===r?e:(t.has(r)||t.set(r,e(r)),t.get(r))})}((tq={animation:{Feature:nc},exit:{Feature:nh},inView:{Feature:iC},tap:{Feature:ix},focus:{Feature:ic},hover:{Feature:iu},pan:{Feature:n4},drag:{Feature:n5,ProjectionNode:io,MeasureLayout:ra},layout:{ProjectionNode:io,MeasureLayout:ra}},tK=(e,t)=>i5(e)?new oC(t):new oE(t,{allowProjection:e!==n9.Fragment}),function(e,{forwardMotionProps:t}={forwardMotionProps:!1}){return function(e){var t,n;let{preloadedFeatures:r,createVisualElement:i,useRender:o,useVisualState:s,Component:a}=e;function l(e,t){var n,r,l;let u,c={...(0,n9.useContext)(iP.Q),...e,layoutId:function(e){let{layoutId:t}=e,n=(0,n9.useContext)(re.L).id;return n&&void 0!==t?n+"-"+t:t}(e)},{isStatic:d}=c,h=function(e){let{initial:t,animate:n}=function(e,t){if(iM(e)){let{initial:t,animate:n}=e;return{initial:!1===t||nt(t)?t:void 0,animate:nt(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,(0,n9.useContext)(iR));return(0,n9.useMemo)(()=>({initial:t,animate:n}),[iO(t),iO(n)])}(e),f=s(e,d);if(!d&&iI.B){r=0,l=0,(0,n9.useContext)(iT).strict;let e=function(e){let{drag:t,layout:n}=i_;if(!t&&!n)return{};let r={...t,...n};return{MeasureLayout:(null==t?void 0:t.isEnabled(e))||(null==n?void 0:n.isEnabled(e))?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}(c);u=e.MeasureLayout,h.visualElement=function(e,t,n,r,i){let{visualElement:o}=(0,n9.useContext)(iR),s=(0,n9.useContext)(iT),a=(0,n9.useContext)(iV.t),l=(0,n9.useContext)(iP.Q).reducedMotion,u=(0,n9.useRef)(null);r=r||s.renderer,!u.current&&r&&(u.current=r(e,{visualState:t,parent:o,props:n,presenceContext:a,blockInitialAnimation:!!a&&!1===a.initial,reducedMotionConfig:l}));let c=u.current,d=(0,n9.useContext)(rt);c&&!c.projection&&i&&("html"===c.type||"svg"===c.type)&&function(e,t,n,r){let{layoutId:i,layout:o,drag:s,dragConstraints:a,layoutScroll:l,layoutRoot:u,layoutCrossfade:c}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:function e(t){if(t)return!1!==t.options.allowProjection?t.projection:e(t.parent)}(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!s||a&&nH(a),visualElement:e,animationType:"string"==typeof o?o:"both",initialPromotionConfig:r,crossfade:c,layoutScroll:l,layoutRoot:u})}(u.current,n,i,d);let h=(0,n9.useRef)(!1);(0,n9.useInsertionEffect)(()=>{c&&h.current&&c.update(n,a)});let f=n[D],p=(0,n9.useRef)(!!f&&!window.MotionHandoffIsComplete?.(f)&&window.MotionHasOptimisedAnimation?.(f));return(0,i$.E)(()=>{c&&(h.current=!0,window.MotionIsMounted=!0,c.updateFeatures(),n6.render(c.render),p.current&&c.animationState&&c.animationState.animateChanges())}),(0,n9.useEffect)(()=>{c&&(!p.current&&c.animationState&&c.animationState.animateChanges(),p.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(f)}),p.current=!1))}),c}(a,f,c,i,e.ProjectionNode)}return(0,n8.jsxs)(iR.Provider,{value:h,children:[u&&h.visualElement?(0,n8.jsx)(u,{visualElement:h.visualElement,...c}):null,o(a,e,(n=h.visualElement,(0,n9.useCallback)(e=>{e&&f.onMount&&f.onMount(e),n&&(e?n.mount(e):n.unmount()),t&&("function"==typeof t?t(e):nH(t)&&(t.current=e))},[n])),f,d,h.visualElement)]})}r&&function(e){for(let t in e)i_[t]={...i_[t],...e[t]}}(r),l.displayName="motion.".concat("string"==typeof a?a:"create(".concat(null!=(n=null!=(t=a.displayName)?t:a.name)?n:"",")"));let u=(0,n9.forwardRef)(l);return u[iL]=a,u}({...i5(e)?i7:i6,preloadedFeatures:tq,useRender:function(e=!1){return(t,n,r,{latestValues:i},o)=>{let s=(i5(t)?function(e,t,n,r){let i=(0,n9.useMemo)(()=>{let n=iZ();return iX(n,t,iJ(r),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};iG(t,e.style,e),i.style={...t,...i.style}}return i}:function(e,t){let n={},r=function(e,t){let n=e.style||{},r={};return iG(r,n,e),Object.assign(r,function({transformTemplate:e},t){return(0,n9.useMemo)(()=>{let n=iY();return iW(n,t,e),Object.assign({},n.vars,n.style)},[t])}(e,t)),r}(e,t);return e.drag&&!1!==e.dragListener&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=!0===e.drag?"none":`pan-${"x"===e.drag?"y":"x"}
149`),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n})(n,i,o,t),a=function(e,t,n){let r={};for(let i in e)("values"!==i||"object"!=typeof e.values)&&(i1(i)||!0===n&&i0(i)||!t&&!i0(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}(n,"string"==typeof t,e),l=t!==n9.Fragment?{...a,...s,ref:r}:{},{children:u}=n,c=(0,n9.useMemo)(()=>j(u)?u.get():u,[u]);return(0,n9.createElement)(t,{...l,children:c})}}(t),createVisualElement:tK,Component:e})}))},78048:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});let r=e=>"object"==typeof e&&null!=e&&1===e.nodeType,i=(e,t)=>(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e,o=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){let n=getComputedStyle(e,null);return i(n.overflowY,t)||i(n.overflowX,t)||(e=>{let t=(e=>{if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}})(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)})(e)}return!1},s=(e,t,n,r,i,o,s,a)=>o<e&&s>t||o>e&&s<t?0:o<=e&&a<=n||s>=t&&a>=n?o-e-r:s>t&&a<n||o<e&&a>n?s-t+i:0,a=e=>{let t=e.parentElement;return null==t?e.getRootNode().host||null:t},l=(e,t)=>{var n,i,l,u;if("undefined"==typeof document)return[];let{scrollMode:c,block:d,inline:h,boundary:f,skipOverflowHiddenElements:p}=t,g="function"==typeof f?f:e=>e!==f;if(!r(e))throw TypeError("Invalid target");let m=document.scrollingElement||document.documentElement,b=[],y=e;for(;r(y)&&g(y);){if((y=a(y))===m){b.push(y);break}null!=y&&y===document.body&&o(y)&&!o(document.documentElement)||null!=y&&o(y,p)&&b.push(y)}let v=null!=(i=null==(n=window.visualViewport)?void 0:n.width)?i:innerWidth,x=null!=(u=null==(l=window.visualViewport)?void 0:l.height)?u:innerHeight,{scrollX:w,scrollY:k}=window,{height:S,width:E,top:A,right:C,bottom:T,left:P}=e.getBoundingClientRect(),{top:R,right:M,bottom:j,left:O}=(e=>{let t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e),I="start"===d||"nearest"===d?A-R:"end"===d?T+j:A+S/2-R+j,D="center"===h?P+E/2-O+M:"end"===h?C+M:P-O,_=[];for(let e=0;e<b.length;e++){let t=b[e],{height:n,width:r,top:i,right:a,bottom:l,left:u}=t.getBoundingClientRect();if("if-needed"===c&&A>=0&&P>=0&&T<=x&&C<=v&&(t===m&&!o(t)||A>=i&&T<=l&&P>=u&&C<=a))break;let f=getComputedStyle(t),p=parseInt(f.borderLeftWidth,10),g=parseInt(f.borderTopWidth,10),y=parseInt(f.borderRightWidth,10),R=parseInt(f.borderBottomWidth,10),M=0,j=0,O="offsetWidth"in t?t.offsetWidth-t.clientWidth-p-y:0,L="offsetHeight"in t?t.offsetHeight-t.clientHeight-g-R:0,V="offsetWidth"in t?0===t.offsetWidth?0:r/t.offsetWidth:0,$="offsetHeight"in t?0===t.offsetHeight?0:n/t.offsetHeight:0;if(m===t)M="start"===d?I:"end"===d?I-x:"nearest"===d?s(k,k+x,x,g,R,k+I,k+I+S,S):I-x/2,j="start"===h?D:"center"===h?D-v/2:"end"===h?D-v:s(w,w+v,v,p,y,w+D,w+D+E,E),M=Math.max(0,M+k),j=Math.max(0,j+w);else{M="start"===d?I-i-g:"end"===d?I-l+R+L:"nearest"===d?s(i,l,n,g,R+L,I,I+S,S):I-(i+n/2)+L/2,j="start"===h?D-u-p:"center"===h?D-(u+r/2)+O/2:"end"===h?D-a+y+O:s(u,a,r,p,y+O,D,D+E,E);let{scrollLeft:e,scrollTop:o}=t;M=0===$?0:Math.max(0,Math.min(o+M/$,t.scrollHeight-n/$+L)),j=0===V?0:Math.max(0,Math.min(e+j/V,t.scrollWidth-r/V+O)),I+=o-M,D+=e-j}_.push({el:t,top:M,left:j})}return _},u=e=>!1===e?{block:"end",inline:"nearest"}:(e=>e===Object(e)&&0!==Object.keys(e).length)(e)?e:{block:"start",inline:"nearest"};function c(e,t){if(!e.isConnected||!(e=>{let t=e;for(;t&&t.parentNode;){if(t.parentNode===document)return!0;t=t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}return!1})(e))return;let n=(e=>{let t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e);if("object"==typeof t&&"function"==typeof t.behavior)return t.behavior(l(e,t));let r="boolean"==typeof t||null==t?void 0:t.behavior;for(let{el:i,top:o,left:s}of l(e,u(t))){let e=o-n.top+n.bottom,t=s-n.left+n.right;i.scroll({top:e,left:t,behavior:r})}}},80845:(e,t,n)=>{"use strict";n.d(t,{t:()=>r});let r=(0,n(12115).createContext)(null)},82500:(e,t,n)=>{var r=n(7985),i="object"==typeof self&&self&&self.Object===Object&&self;e.exports=r||i||Function("return this")()},82885:(e,t,n)=>{"use strict";n.d(t,{M:()=>i});var r=n(12115);function i(e){let t=(0,r.useRef)(null);return null===t.current&&(t.current=e()),t.current}},84342:(e,t,n)=>{e.exports=n(48505)({Ã:"A",Ã:"A",Ã:"A",Ã:"A",Ã:"A",Ã
:"A",à :"a",á:"a",â:"a",ã:"a",ä:"a",Ã¥:"a",Ã:"C",ç:"c",Ã:"D",ð:"d",Ã:"E",Ã:"E",Ã:"E",Ã:"E",è:"e",é:"e",ê:"e",ë:"e",Ã:"I",Ã:"I",Ã:"I",Ã:"I",ì:"i",Ã:"i",î:"i",ï:"i",Ã:"N",ñ:"n",Ã:"O",Ã:"O",Ã:"O",Ã:"O",Ã:"O",Ã:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ã:"U",Ã:"U",Ã:"U",Ã:"U",ù:"u",ú:"u",û:"u",ü:"u",Ã:"Y",ý:"y",ÿ:"y",Ã:"Ae",æ:"ae",Ã:"Th",þ:"th",Ã:"ss",Ä:"A",Ä:"A",Ä:"A",Ä:"a",Ä:"a",Ä
:"a",Ä:"C",Ä:"C",Ä:"C",Ä:"C",Ä:"c",Ä:"c",Ä:"c",Ä:"c",Ä:"D",Ä:"D",Ä:"d",Ä:"d",Ä:"E",Ä:"E",Ä:"E",Ä:"E",Ä:"E",Ä:"e",Ä:"e",Ä:"e",Ä:"e",Ä:"e",Ä:"G",Ä:"G",Ä :"G",Ä¢:"G",Ä:"g",Ä:"g",Ä¡:"g",Ä£:"g",Ĥ:"H",Ħ:"H",Ä¥:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Ä®:"I",İ:"I",Ä©:"i",Ä«:"i",Ä:"i",į:"i",ı:"i",Ä´:"J",ĵ:"j",Ķ:"K",Ä·:"k",ĸ:"k",Ĺ:"L",Ä»:"L",Ľ:"L",Ä¿:"L",Å:"L",ĺ:"l",ļ:"l",ľ:"l",Å:"l",Å:"l",Å:"N",Å
:"N",Å:"N",Å:"N",Å:"n",Å:"n",Å:"n",Å:"n",Å:"O",Å:"O",Å:"O",Å:"o",Å:"o",Å:"o",Å:"R",Å:"R",Å:"R",Å:"r",Å:"r",Å:"r",Å:"S",Å:"S",Å:"S",Å :"S",Å:"s",Å:"s",Å:"s",Å¡:"s",Å¢:"T",Ť:"T",Ŧ:"T",Å£:"t",Å¥:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Å®:"U",Ű:"U",Ų:"U",Å©:"u",Å«:"u",Å:"u",ů:"u",ű:"u",ų:"u",Å´:"W",ŵ:"w",Ŷ:"Y",Å·:"y",Ÿ:"Y",Ź:"Z",Å»:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Å:"Oe",Å:"oe",Å:"'n",Å¿:"s"})},84945:(e,t,n)=>{"use strict";n.d(t,{BN:()=>p,UE:()=>b,UU:()=>g,cY:()=>f,jD:()=>m,we:()=>d});var r=n(22475),i=n(12115),o=n(47650),s="undefined"!=typeof document?i.useLayoutEffect:i.useEffect;function a(e,t){let n,r,i;if(e===t)return!0;
149if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!a(e[r],t[r]))return!1;return!0}if((n=(i=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(t,i[r]))return!1;for(r=n;0!=r--;){let n=i[r];if(("_owner"!==n||!e.$$typeof)&&!a(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function l(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function u(e,t){let n=l(e);return Math.round(t*n)/n}function c(e){let t=i.useRef(e);return s(()=>{t.current=e}),t}function d(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:d=[],platform:h,elements:{reference:f,floating:p}={},transform:g=!0,whileElementsMounted:m,open:b}=e,[y,v]=i.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[x,w]=i.useState(d);a(x,d)||w(d);let[k,S]=i.useState(null),[E,A]=i.useState(null),C=i.useCallback(e=>{e!==M.current&&(M.current=e,S(e))},[]),T=i.useCallback(e=>{e!==j.current&&(j.current=e,A(e))},[]),P=f||k,R=p||E,M=i.useRef(null),j=i.useRef(null),O=i.useRef(y),I=null!=m,D=c(m),_=c(h),L=c(b),V=i.useCallback(()=>{if(!M.current||!j.current)return;let e={placement:t,strategy:n,middleware:x};_.current&&(e.platform=_.current),(0,r.rD)(M.current,j.current,e).then(e=>{let t={...e,isPositioned:!1!==L.current};$.current&&!a(O.current,t)&&(O.current=t,o.flushSync(()=>{v(t)}))})},[x,t,n,_,L]);s(()=>{!1===b&&O.current.isPositioned&&(O.current.isPositioned=!1,v(e=>({...e,isPositioned:!1})))},[b]);let $=i.useRef(!1);s(()=>($.current=!0,()=>{$.current=!1}),[]),s(()=>{if(P&&(M.current=P),R&&(j.current=R),P&&R){if(D.current)return D.current(P,R,V);V()}},[P,R,V,D,I]);let z=i.useMemo(()=>({reference:M,floating:j,setReference:C,setFloating:T}),[C,T]),F=i.useMemo(()=>({reference:P,floating:R}),[P,R]),N=i.useMemo(()=>{let e={position:n,left:0,top:0};if(!F.floating)return e;let t=u(F.floating,y.x),r=u(F.floating,y.y);return g?{...e,transform:"translate("+t+"px, "+r+"px)",...l(F.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,g,F.floating,y.x,y.y]);return i.useMemo(()=>({...y,update:V,refs:z,elements:F,floatingStyles:N}),[y,V,z,F,N])}let h=e=>({name:"arrow",options:e,fn(t){let{element:n,padding:i}="function"==typeof e?e(t):e;return n&&({}).hasOwnProperty.call(n,"current")?null!=n.current?(0,r.UE)({element:n.current,padding:i}).fn(t):{}:n?(0,r.UE)({element:n,padding:i}).fn(t):{}}}),f=(e,t)=>({...(0,r.cY)(e),options:[e,t]}),p=(e,t)=>({...(0,r.BN)(e),options:[e,t]}),g=(e,t)=>({...(0,r.UU)(e),options:[e,t]}),m=(e,t)=>({...(0,r.jD)(e),options:[e,t]}),b=(e,t)=>({...h(e),options:[e,t]})},85855:(e,t,n)=>{var r=n(16613);e.exports=function(e){return null==e?"":r(e)}},89364:(e,t,n)=>{var r=n(59132),i=n(1083),o=n(85855),s=n(64384);e.exports=function(e,t,n){return(e=o(e),void 0===(t=n?void 0:t))?i(e)?s(e):r(e):e.match(t)||[]}},90869:(e,t,n)=>{"use strict";n.d(t,{L:()=>r});let r=(0,n(12115).createContext)({})},97091:(e,t,n)=>{"use strict";n.d(t,{X:()=>f,r:()=>d});let r=["Value","Copy","Blank","ReturnIntoArray","ReturnIntoObject","ReturnIntoObjectSameKey","PushField","PushElement","PushParent","Pop","PushFieldCopy","PushFieldBlank","PushElementCopy","PushElementBlank","ReturnIntoObjectPop","ReturnIntoObjectSameKeyPop","ReturnIntoArrayPop","ObjectSetFieldValue","ObjectCopyField","ObjectDeleteField","ArrayAppendValue","ArrayAppendSlice","StringAppendString","StringAppendSlice"];class i{model;root;patch;i;inputStack;outputStack;constructor(e,t,n){this.model=e,this.root=t,this.patch=n,this.i=0,this.inputStack=[],this.outputStack=[]}read(){return this.patch[this.i++]}process(){for(this.inputStack.push({value:this.root}),this.outputStack.push({value:this.root});this.i<this.patch.length;){let e=this.read(),t=r[e];if(!t)throw Error(`Unknown opcode: ${e}`);this[`process${t}`].apply(this)}let e=this.outputStack.pop();return this.finalizeOutput(e)}inputEntry(){return this.inputStack[this.inputStack.length-1]}inputKey(e,t){return e.keys||(e.keys=this.model.objectGetKeys(e.value).sort()),e.keys[t]}outputEntry(){return this.outputStack[this.outputStack.length-1]}outputArray(){let e=this.outputEntry();return e.writeValue||(e.writeValue=this.model.copyArray(e.value)),e.writeValue}outputObject(){let e=this.outputEntry();return e.writeValue||(e.writeValue=this.model.copyObject(e.value)),e.writeValue}outputString(){let e=this.outputEntry();return e.writeValue||(e.writeValue=this.model.copyString(e.value)),e.writeValue}finalizeOutput(e){return e.writeValue?this.model.finalize(e.writeValue):e.value}processValue(){let e=this.model.wrap(this.read());this.outputStack.push({value:e})}processCopy(){let e=this.inputEntry();this.outputStack.push({value:e.value})}processBlank(){this.outputStack.push({value:null})}processReturnIntoArray(){let e=this.outputStack.pop(),t=this.finalizeOutput(e),n=this.outputArray();this.model.arrayAppendValue(n,t)}processReturnIntoObject(){let e=this.read(),t=this.outputStack.pop(),n=this.finalizeOutput(t);n=this.model.markChanged(n);let r=this.outputObject();this.model.objectSetField(r,e,n)}processReturnIntoObjectSameKey(){let e=this.inputEntry(),t=this.outputStack.pop(),n=this.finalizeOutput(t),r=this.outputObject();this.model.objectSetField(r,e.key,n)}processPushField(){let e=this.read(),t=this.inputEntry(),n=this.inputKey(t,e),r=this.model.objectGetField(t.value,n);this.inputStack.push({value:r,key:n})}processPushElement(){let e=this.read(),t=this.inputEntry(),n=this.model.arrayGetElement(t.value,e);this.inputStack.push({value:n})}processPop(){this.inputStack.pop()}processPushFieldCopy(){this.processPushField(),this.processCopy()}processPushFieldBlank(){this.processPushField(),this.processBlank()}processPushElementCopy(){this.processPushElement(),this.processCopy()}processPushElementBlank(){this.processPushElement(),this.processBlank()}processReturnIntoObjectPop(){this.processReturnIntoObject(),this.processPop()}processReturnIntoObjectSameKeyPop(){this.processReturnIntoObjectSameKey(),this.processPop()}processReturnIntoArrayPop(){this.processReturnIntoArray(),this.processPop()}processObjectSetFieldValue(){this.processValue(),this.processReturnIntoObject()}processObjectCopyField(){this.processPushField(),this.processCopy(),this.processReturnIntoObjectSameKey(),this.processPop()}processObjectDeleteField(){let e=this.read(),t=this.inputEntry(),n=this.inputKey(t,e),r=this.outputObject();this.model.objectDeleteField(r,n)}processArrayAppendValue(){let e=this.model.wrap(this.read()),t=this.outputArray();this.model.arrayAppendValue(t,e)}processArrayAppendSlice(){let e=this.read(),t=this.read(),n=this.outputArray(),r=this.inputEntry().value;this.model.arrayAppendSlice(n,r,e,t)}processStringAppendString(){let e=this.model.wrap(this.read()),t=this.outputString();this.model.stringAppendValue(t,e)}processStringAppendSlice(){let e=this.read(),t=this.read(),n=this.outputString(),r=this.inputEntry().value;this.model.stringAppendSlice(n,r,e,t)}}function o(e){return e>>16?4:e>>11?3:e>>7?2:1}function s(e){let t=0;for(let n=0;n<e.length;n++){let r=o(e.codePointAt(n));4==r&&n++,t+=r}return t}function a(e,t,n=0){let r=n,i=0;for(i=n;r<t;
149i++){let t=o(e.codePointAt(i));4===t&&i++,r+=t}return i}class l{meta;constructor(e){this.meta=e}wrap(e){return this.wrapWithMeta(e,this.meta,this.meta)}wrapWithMeta(e,t,n=this.meta){return{data:e,startMeta:t,endMeta:n}}asObject(e){if(!e.content){let t={};for(let[n,r]of Object.entries(e.data))t[n]=this.wrapWithMeta(r,e.startMeta);e.content={type:"object",fields:t}}return e.content}asArray(e){if(!e.content){let t=e.data.map(t=>this.wrapWithMeta(t,e.startMeta)),n=t.map(()=>this.meta);e.content={type:"array",elements:t,metas:n}}return e.content}asString(e){if(!e.content){let t=e.data,n={value:t,utf8size:s(t),uses:[],startMeta:e.startMeta,endMeta:e.endMeta};e.content=this.stringFromParts([n])}return e.content}stringFromParts(e){let t={type:"string",parts:e};for(let n of e)n.uses.push(t);return t}objectGetKeys(e){return e.content?Object.keys(e.content.fields):Object.keys(e.data)}objectGetField(e,t){return this.asObject(e).fields[t]}arrayGetElement(e,t){return this.asArray(e).elements[t]}finalize(e){return this.updateEndMeta(e),{content:e,startMeta:this.meta,endMeta:this.meta}}markChanged(e){return this.wrap(u(e))}updateEndMeta(e){if("string"==e.type)for(let t of e.parts)t.endMeta=this.meta;else if("array"===e.type)for(let t of e.elements)t.content&&t.endMeta!==this.meta&&this.updateEndMeta(t.content),t.endMeta=this.meta;else for(let t of Object.values(e.fields))t.content&&t.endMeta!==this.meta&&this.updateEndMeta(t.content),t.endMeta=this.meta}copyString(e){if(!e)return{type:"string",parts:[]};{let t=this.asString(e);return this.stringFromParts(t.parts.slice())}}copyObject(e){let t={type:"object",fields:{}};if(e){let n=this.asObject(e);Object.assign(t.fields,n.fields)}return t}copyArray(e){let t=e?this.asArray(e):null;return{type:"array",elements:t?t.elements:[],metas:t?t.metas:[]}}objectSetField(e,t,n){e.fields[t]=n}objectDeleteField(e,t){delete e.fields[t]}arrayAppendValue(e,t){e.elements.push(t),e.metas.push(this.meta)}arrayAppendSlice(e,t,n,r){let i=this.asArray(t),o=i.elements.length===n;if(e.elements.push(...i.elements.slice(n,r)),o)e.metas.push(...i.metas.slice(n,r));else for(let t=n;t<r;t++)e.metas.push(this.meta)}stringAppendValue(e,t){for(let n of this.asString(t).parts)this.stringAppendPart(e,n)}stringAppendPart(e,t){e.parts.push(t),t.uses.push(e)}resolveStringPart(e,t,n){if(0===n)return t;for(let r=t;r<e.parts.length;r++){let t=e.parts[r];if(n===t.utf8size)return r+1;if(n<t.utf8size)return this.splitString(t,n),r+1;n-=t.utf8size}throw Error("splitting string out of bounds")}splitString(e,t){let n,r=t,i=e.utf8size-r;if(e.utf8size!==e.value.length){let n=0;for(t=0;n<r;t++){let r=o(e.value.codePointAt(t));4===r&&t++,n+=r}}n=e.value.slice(0,t);let s={value:e.value.slice(t),utf8size:i,uses:e.uses.slice(),startMeta:e.startMeta,endMeta:e.endMeta};for(let t of(e.value=n,e.utf8size=r,e.uses)){let n=t.parts.indexOf(e);if(-1===n)throw Error("bug: mismatch between string parts and use.");t.parts.splice(n+1,0,s)}}stringAppendSlice(e,t,n,r){let i=this.asString(t),o=this.resolveStringPart(i,0,n),s=this.resolveStringPart(i,o,r-n);for(let t=o;t<s;t++){let n=i.parts[t];this.stringAppendPart(e,n)}}}function u(e){if("u">typeof e.data)return e.data;let t,n=e.content;switch(n.type){case"string":t=n.parts.map(e=>e.value).join("");break;case"array":t=n.elements.map(e=>u(e));break;case"object":for(let[e,r]of(t={},Object.entries(n.fields)))t[e]=u(r)}return e.data=t,t}function c(e){return e.content?e.content.type:Array.isArray(e.data)?"array":null===e.data?"null":typeof e.data}var d=Object.freeze({__proto__:null,applyPatch:function(e,t,n){return new i(new l(n),e,t).process()},getType:c,rebaseValue:function e(t,n){let r=c(t);if(r!==c(n))return n;let i=new l(t.endMeta),a=new l(n.endMeta);switch(r){case"object":{let r=i.asObject(t),o=a.asObject(n),s=0,l=Object.keys(r.fields).length,u=Object.keys(o.fields).length;for(let[t,n]of Object.entries(o.fields)){let i=r.fields[t];i&&(o.fields[t]=e(i,n),o.fields[t]===i&&s++)}return l===u&&l===s?t:n}case"array":{let r=i.asArray(t),o=a.asArray(n);if(r.elements.length!==o.elements.length)break;let s=0;for(let t=0;t<o.elements.length;t++)o.elements[t]=e(r.elements[t],o.elements[t]),o.elements[t]!==r.elements[t]&&s++;return 0===s?t:n}case"null":case"boolean":case"number":if(u(t)===u(n))return t;break;case"string":{let e=u(t),r=u(n);if(e===r)return t;let i=a.copyString(null),l=function(e,t){let n=Math.min(e.length,t.length),r=0;for(let i=0;i<n;){let n=e.codePointAt(i);if(n!==t.codePointAt(i))break;let s=o(n);r+=s,i+=4===s?2:1}return r}(e,r),c=function(e,t,n=0){let r=Math.min(e.length,t.length)-n,i=0;for(let n=0;n<r;){let r=e.codePointAt(e.length-1-n);if(r!==t.codePointAt(t.length-1-n))break;let s=o(r);i+=s,n+=4===s?2:1}return i}(e,r,l),d=s(r),h=s(e);0<l&&a.stringAppendSlice(i,t,0,l),l<d-c&&a.stringAppendSlice(i,n,l,d-c),h-c<h&&a.stringAppendSlice(i,t,h-c,h);let f=a.finalize(i);if(u(f)!==r)throw Error("incorrect string rebase");return f}}return n},unwrap:u,wrap:function(e,t){return{data:e,startMeta:t,endMeta:t}}});class h{wrap(e){return e}finalize(e){return Array.isArray(e)?e:e.data}markChanged(e){return e}objectGetKeys(e){return Object.keys(e)}
149objectGetField(e,t){return e[t]}arrayGetElement(e,t){return e[t]}copyObject(e){let t={type:"object",data:{}};if(null!==e)for(let[n,r]of Object.entries(e))t.data[n]=r;return t}copyArray(e){return null===e?[]:e.slice()}copyString(e){return{type:"string",data:null===e?"":e}}objectSetField(e,t,n){e.data[t]=n}objectDeleteField(e,t){delete e.data[t]}arrayAppendValue(e,t){e.push(t)}arrayAppendSlice(e,t,n,r){e.push(...t.slice(n,r))}stringAppendSlice(e,t,n,r){let i=a(t,n),o=a(t,r,i);e.data+=t.slice(i,o)}stringAppendValue(e,t){e.data+=t}}function f(e,t){return new i(new h,e,t).process()}},97494:(e,t,n)=>{"use strict";n.d(t,{E:()=>i});var r=n(12115);let i=n(68972).B?r.useLayoutEffect:r.useEffect},98233:(e,t,n)=>{var r=n(24376),i=n(20570),o=n(64439),s=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":s&&s in Object(e)?i(e):o(e)}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.