@careshiphealth/widget 2.2.5-ela → 2.2.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -53,7 +53,7 @@ Error generating stack: `+z.message+`
53
53
  `+z.stack}return Object.defineProperty(b,"componentStack",{value:M}),M}}),b}function Ln(h,b,y){if(h=h.onError,b=h(b,y),b==null||typeof b=="string")return b}function Ac(h,b){var y=h.onShellError,k=h.onFatalError;y(b),k(b),h.destination!==null?(h.status=14,ZA(h.destination,b)):(h.status=13,h.fatalError=b)}function zs(h,b){Vf(h,b.next,b.hoistables)}function Vf(h,b,y){for(;b!==null;){y!==null&&($o(b.hoistables,y),b.inheritedHoistables=y);var k=b.boundaries;if(k!==null){b.boundaries=null;for(var M=0;M<k.length;M++){var z=k[M];y!==null&&$o(z.contentState,y),Er(h,z,null,null)}}if(b.pendingTasks--,0<b.pendingTasks)break;y=b.hoistables,b=b.next}}function Fg(h,b){var y=b.boundaries;if(y!==null&&b.pendingTasks===y.length){for(var k=!0,M=0;M<y.length;M++){var z=y[M];if(z.pendingTasks!==1||z.parentFlushed||Rr(h,z)){k=!1;break}}k&&Vf(h,b,b.hoistables)}}function an(h){var b={pendingTasks:1,boundaries:null,hoistables:Xi(),inheritedHoistables:null,together:!1,next:null};return h!==null&&0<h.pendingTasks&&(b.pendingTasks++,b.boundaries=[],h.next=b),b}function mu(h,b,y,k,M){var z=b.keyPath,K=b.treeContext,cA=b.row;b.keyPath=y,y=k.length;var sA=null;if(b.replay!==null){var lA=b.replay.slots;if(lA!==null&&typeof lA=="object")for(var bA=0;bA<y;bA++){var pA=M!=="backwards"&&M!=="unstable_legacy-backwards"?bA:y-1-bA,XA=k[pA];b.row=sA=an(sA),b.treeContext=tA(K,y,pA);var OA=lA[pA];typeof OA=="number"?(Wr(h,b,OA,XA,pA),delete lA[pA]):Hn(h,b,XA,pA),--sA.pendingTasks===0&&zs(h,sA)}else for(lA=0;lA<y;lA++)bA=M!=="backwards"&&M!=="unstable_legacy-backwards"?lA:y-1-lA,pA=k[bA],b.row=sA=an(sA),b.treeContext=tA(K,y,bA),Hn(h,b,pA,bA),--sA.pendingTasks===0&&zs(h,sA)}else if(M!=="backwards"&&M!=="unstable_legacy-backwards")for(M=0;M<y;M++)lA=k[M],b.row=sA=an(sA),b.treeContext=tA(K,y,M),Hn(h,b,lA,M),--sA.pendingTasks===0&&zs(h,sA);else{for(M=b.blockedSegment,lA=M.children.length,bA=M.chunks.length,pA=y-1;0<=pA;pA--){XA=k[pA],b.row=sA=an(sA),b.treeContext=tA(K,y,pA),OA=Es(h,bA,null,b.formatContext,pA===0?M.lastPushedText:!0,!0),M.children.splice(lA,0,OA),b.blockedSegment=OA;try{Hn(h,b,XA,pA),OA.lastPushedText&&OA.textEmbedded&&OA.chunks.push(Ua),OA.status=1,fr(h,b.blockedBoundary,OA),--sA.pendingTasks===0&&zs(h,sA)}catch(fe){throw OA.status=h.status===12?3:4,fe}}b.blockedSegment=M,M.lastPushedText=!1}cA!==null&&sA!==null&&0<sA.pendingTasks&&(cA.pendingTasks++,sA.next=cA),b.treeContext=K,b.row=cA,b.keyPath=z}function ol(h,b,y,k,M,z){var K=b.thenableState;for(b.thenableState=null,Fe={},It=b,rn=h,Je=y,pt=Dn=0,fn=-1,An=0,Ot=K,h=k(M,z);At;)At=!1,pt=Dn=0,fn=-1,An=0,Ji+=1,nt=null,h=k(M,z);return lr(),h}function Vr(h,b,y,k,M,z,K){var cA=!1;if(z!==0&&h.formState!==null){var sA=b.blockedSegment;if(sA!==null){cA=!0,sA=sA.chunks;for(var lA=0;lA<z;lA++)lA===K?sA.push(jw):sA.push(Xc)}}z=b.keyPath,b.keyPath=y,M?(y=b.treeContext,b.treeContext=tA(y,1,0),Hn(h,b,k,-1),b.treeContext=y):cA?Hn(h,b,k,-1):pn(h,b,k,-1),b.keyPath=z}function _i(h,b,y,k,M,z){if(typeof k=="function")if(k.prototype&&k.prototype.isReactComponent){var K=M;if("ref"in M){K={};for(var cA in M)cA!=="ref"&&(K[cA]=M[cA])}var sA=k.defaultProps;if(sA){K===M&&(K=YA({},K,M));for(var lA in sA)K[lA]===void 0&&(K[lA]=sA[lA])}M=K,K=Sf,sA=k.contextType,typeof sA=="object"&&sA!==null&&(K=sA._currentValue),K=new k(M,K);var bA=K.state!==void 0?K.state:null;if(K.updater=P,K.props=M,K.state=bA,sA={queue:[],replace:!1},K._reactInternals=sA,z=k.contextType,K.context=typeof z=="object"&&z!==null?z._currentValue:Sf,z=k.getDerivedStateFromProps,typeof z=="function"&&(z=z(M,bA),bA=z==null?bA:YA({},bA,z),K.state=bA),typeof k.getDerivedStateFromProps!="function"&&typeof K.getSnapshotBeforeUpdate!="function"&&(typeof K.UNSAFE_componentWillMount=="function"||typeof K.componentWillMount=="function"))if(k=K.state,typeof K.componentWillMount=="function"&&K.componentWillMount(),typeof K.UNSAFE_componentWillMount=="function"&&K.UNSAFE_componentWillMount(),k!==K.state&&P.enqueueReplaceState(K,K.state,null),sA.queue!==null&&0<sA.queue.length)if(k=sA.queue,z=sA.replace,sA.queue=null,sA.replace=!1,z&&k.length===1)K.state=k[0];else{for(sA=z?k[0]:K.state,bA=!0,z=z?1:0;z<k.length;z++)lA=k[z],lA=typeof lA=="function"?lA.call(K,sA,M,void 0):lA,lA!=null&&(bA?(bA=!1,sA=YA({},sA,lA)):YA(sA,lA));K.state=sA}else sA.queue=null;if(k=K.render(),h.status===12)throw null;M=b.keyPath,b.keyPath=y,pn(h,b,k,-1),b.keyPath=M}else{if(k=ol(h,b,y,k,M,void 0),h.status===12)throw null;Vr(h,b,y,k,Dn!==0,pt,fn)}else if(typeof k=="string")if(K=b.blockedSegment,K===null)K=M.children,sA=b.formatContext,bA=b.keyPath,b.formatContext=ka(sA,k,M),b.keyPath=y,Hn(h,b,K,-1),b.formatContext=sA,b.keyPath=bA;else{if(bA=Br(K.chunks,k,M,h.resumableState,h.renderState,b.blockedPreamble,b.hoistableState,b.formatContext,K.lastPushedText),K.lastPushedText=!1,sA=b.formatContext,z=b.keyPath,b.keyPath=y,(b.formatContext=ka(sA,k,M)).insertionMode===3){y=Es(h,0,null,b.formatContext,!1,!1),K.preambleChildren.push(y),b.blockedSegment=y;try{y.status=6,Hn(h,b,bA,-1),y.lastPushedText&&y.textEmbedded&&y.chunks.push(Ua),y.status=1,fr(h,b.blockedBoundary,y)}finally{b.blockedSegment=K}}else Hn(h,b,bA,-1);b.formatContext=sA,b.keyPath=z;A:{switch(b=K.chunks,h=h.resumableState,k){case"title":case"style":case"script":case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break A;case"body":if(1>=sA.insertionMode){h.hasBody=!0;break A}break;case"html":if(sA.insertionMode===0){h.hasHtml=!0;break A}break;case"head":if(1>=sA.insertionMode)break A}b.push(Ri(k))}K.lastPushedText=!1}else{switch(k){case Z:case a:case B:case r:k=b.keyPath,b.keyPath=y,pn(h,b,M.children,-1),b.keyPath=k;return;case m:k=b.blockedSegment,k===null?M.mode!=="hidden"&&(k=b.keyPath,b.keyPath=y,Hn(h,b,M.children,-1),b.keyPath=k):M.mode!=="hidden"&&(k.chunks.push(Vo),k.lastPushedText=!1,K=b.keyPath,b.keyPath=y,Hn(h,b,M.children,-1),b.keyPath=K,k.chunks.push(Ig),k.lastPushedText=!1);return;case f:A:{if(k=M.children,M=M.revealOrder,M==="forwards"||M==="backwards"||M==="unstable_legacy-backwards"){if(V(k)){mu(h,b,y,k,M);break A}if((K=F(k))&&(K=K.call(k))){if(sA=K.next(),!sA.done){do sA=K.next();while(!sA.done);mu(h,b,y,k,M)}break A}}M==="together"?(M=b.keyPath,K=b.row,sA=b.row=an(null),sA.boundaries=[],sA.together=!0,b.keyPath=y,pn(h,b,k,-1),--sA.pendingTasks===0&&zs(h,sA),b.keyPath=M,b.row=K,K!==null&&0<sA.pendingTasks&&(K.pendingTasks++,sA.next=K)):(M=b.keyPath,b.keyPath=y,pn(h,b,k,-1),b.keyPath=M)}return;case T:case E:throw Error(t(343));case u:A:if(b.replay!==null){k=b.keyPath,K=b.formatContext,sA=b.row,b.keyPath=y,b.formatContext=Fi(h.resumableState,K),b.row=null,y=M.children;try{Hn(h,b,y,-1)}finally{b.keyPath=k,b.formatContext=K,b.row=sA}}else{k=b.keyPath,z=b.formatContext;var pA=b.row;lA=b.blockedBoundary,cA=b.blockedPreamble;var XA=b.hoistableState,OA=b.blockedSegment,fe=M.fallback;M=M.children;var Me=new Set,Ye=2>b.formatContext.insertionMode?mr(h,b.row,Me,un(),un()):mr(h,b.row,Me,null,null);h.trackedPostpones!==null&&(Ye.trackedContentKeyPath=y);var te=Es(h,OA.chunks.length,Ye,b.formatContext,!1,!1);OA.children.push(te),OA.lastPushedText=!1;var he=Es(h,0,null,b.formatContext,!1,!1);if(he.parentFlushed=!0,h.trackedPostpones!==null){K=b.componentStack,sA=[y[0],"Suspense Fallback",y[2]],bA=[sA[1],sA[2],[],null],h.trackedPostpones.workingMap.set(sA,bA),Ye.trackedFallbackNode=bA,b.blockedSegment=te,b.blockedPreamble=Ye.fallbackPreamble,b.keyPath=sA,b.formatContext=xo(h.resumableState,z),b.componentStack=Sr(K),te.status=6;try{Hn(h,b,fe,-1),te.lastPushedText&&te.textEmbedded&&te.chunks.push(Ua),te.status=1,fr(h,lA,te)}catch(je){throw te.status=h.status===12?3:4,je}finally{b.blockedSegment=OA,b.blockedPreamble=cA,b.keyPath=k,b.formatContext=z}b=fi(h,null,M,-1,Ye,he,Ye.contentPreamble,Ye.contentState,b.abortSet,y,Fi(h.resumableState,b.formatContext),b.context,b.treeContext,null,K),Ra(b),h.pingedTasks.push(b)}else{b.blockedBoundary=Ye,b.blockedPreamble=Ye.contentPreamble,b.hoistableState=Ye.contentState,b.blockedSegment=he,b.keyPath=y,b.formatContext=Fi(h.resumableState,z),b.row=null,he.status=6;try{if(Hn(h,b,M,-1),he.lastPushedText&&he.textEmbedded&&he.chunks.push(Ua),he.status=1,fr(h,Ye,he),Sa(Ye,he),Ye.pendingTasks===0&&Ye.status===0){if(Ye.status=1,!Rr(h,Ye)){pA!==null&&--pA.pendingTasks===0&&zs(h,pA),h.pendingRootTasks===0&&b.blockedPreamble&&ra(h);break A}}else pA!==null&&pA.together&&Fg(h,pA)}catch(je){Ye.status=4,h.status===12?(he.status=3,K=h.fatalError):(he.status=4,K=je),sA=Ft(b.componentStack),bA=Ln(h,K,sA),Ye.errorDigest=bA,qi(h,Ye)}finally{b.blockedBoundary=lA,b.blockedPreamble=cA,b.hoistableState=XA,b.blockedSegment=OA,b.keyPath=k,b.formatContext=z,b.row=pA}b=fi(h,null,fe,-1,lA,te,Ye.fallbackPreamble,Ye.fallbackState,Me,[y[0],"Suspense Fallback",y[2]],xo(h.resumableState,b.formatContext),b.context,b.treeContext,b.row,Sr(b.componentStack)),Ra(b),h.pingedTasks.push(b)}}return}if(typeof k=="object"&&k!==null)switch(k.$$typeof){case g:if("ref"in M)for(OA in K={},M)OA!=="ref"&&(K[OA]=M[OA]);else K=M;k=ol(h,b,y,k.render,K,z),Vr(h,b,y,k,Dn!==0,pt,fn);return;case w:_i(h,b,y,k.type,M,z);return;case l:if(sA=M.children,K=b.keyPath,M=M.value,bA=k._currentValue,k._currentValue=M,z=Ss,Ss=k={parent:z,depth:z===null?0:z.depth+1,context:k,parentValue:bA,value:M},b.context=k,b.keyPath=y,pn(h,b,sA,-1),h=Ss,h===null)throw Error(t(403));h.context._currentValue=h.parentValue,h=Ss=h.parent,b.context=h,b.keyPath=K;return;case c:M=M.children,k=M(k._context._currentValue),M=b.keyPath,b.keyPath=y,pn(h,b,k,-1),b.keyPath=M;return;case v:if(K=k._init,k=K(k._payload),h.status===12)throw null;_i(h,b,y,k,M,z);return}throw Error(t(130,k==null?k:typeof k,""))}}function Wr(h,b,y,k,M){var z=b.replay,K=b.blockedBoundary,cA=Es(h,0,null,b.formatContext,!1,!1);cA.id=y,cA.parentFlushed=!0;try{b.replay=null,b.blockedSegment=cA,Hn(h,b,k,M),cA.status=1,fr(h,K,cA),K===null?h.completedRootSegment=cA:(Sa(K,cA),K.parentFlushed&&h.partialBoundaries.push(K))}finally{b.replay=z,b.blockedSegment=null}}function pn(h,b,y,k){b.replay!==null&&typeof b.replay.slots=="number"?Wr(h,b,b.replay.slots,y,k):(b.node=y,b.childIndex=k,y=b.componentStack,Ra(b),cl(h,b),b.componentStack=y)}function cl(h,b){var y=b.node,k=b.childIndex;if(y!==null){if(typeof y=="object"){switch(y.$$typeof){case n:var M=y.type,z=y.key,K=y.props;y=K.ref;var cA=y!==void 0?y:null,sA=al(M),lA=z??(k===-1?0:k);if(z=[b.keyPath,sA,lA],b.replay!==null)A:{var bA=b.replay;for(k=bA.nodes,y=0;y<k.length;y++){var pA=k[y];if(lA===pA[1]){if(pA.length===4){if(sA!==null&&sA!==pA[0])throw Error(t(490,pA[0],sA));var XA=pA[2];sA=pA[3],lA=b.node,b.replay={nodes:XA,slots:sA,pendingTasks:1};try{if(_i(h,b,z,M,K,cA),b.replay.pendingTasks===1&&0<b.replay.nodes.length)throw Error(t(488));b.replay.pendingTasks--}catch(Qe){if(typeof Qe=="object"&&Qe!==null&&(Qe===_A||typeof Qe.then=="function"))throw b.node===lA?b.replay=bA:k.splice(y,1),Qe;b.replay.pendingTasks--,K=Ft(b.componentStack),z=h,h=b.blockedBoundary,M=Qe,K=Ln(z,M,K),JB(z,h,XA,sA,M,K)}b.replay=bA}else{if(M!==u)throw Error(t(490,"Suspense",al(M)||"Unknown"));e:{bA=void 0,M=pA[5],cA=pA[2],sA=pA[3],lA=pA[4]===null?[]:pA[4][2],pA=pA[4]===null?null:pA[4][3];var OA=b.keyPath,fe=b.formatContext,Me=b.row,Ye=b.replay,te=b.blockedBoundary,he=b.hoistableState,je=K.children,ys=K.fallback,Ys=new Set;K=2>b.formatContext.insertionMode?mr(h,b.row,Ys,un(),un()):mr(h,b.row,Ys,null,null),K.parentFlushed=!0,K.rootSegmentID=M,b.blockedBoundary=K,b.hoistableState=K.contentState,b.keyPath=z,b.formatContext=Fi(h.resumableState,fe),b.row=null,b.replay={nodes:cA,slots:sA,pendingTasks:1};try{if(Hn(h,b,je,-1),b.replay.pendingTasks===1&&0<b.replay.nodes.length)throw Error(t(488));if(b.replay.pendingTasks--,K.pendingTasks===0&&K.status===0){K.status=1,h.completedBoundaries.push(K);break e}}catch(Qe){K.status=4,XA=Ft(b.componentStack),bA=Ln(h,Qe,XA),K.errorDigest=bA,b.replay.pendingTasks--,h.clientRenderedBoundaries.push(K)}finally{b.blockedBoundary=te,b.hoistableState=he,b.replay=Ye,b.keyPath=OA,b.formatContext=fe,b.row=Me}XA=Bl(h,null,{nodes:lA,slots:pA,pendingTasks:0},ys,-1,te,K.fallbackState,Ys,[z[0],"Suspense Fallback",z[2]],xo(h.resumableState,b.formatContext),b.context,b.treeContext,b.row,Sr(b.componentStack)),Ra(XA),h.pingedTasks.push(XA)}}k.splice(y,1);break A}}}else _i(h,b,z,M,K,cA);return;case s:throw Error(t(257));case v:if(XA=y._init,y=XA(y._payload),h.status===12)throw null;pn(h,b,y,k);return}if(V(y)){ec(h,b,y,k);return}if((XA=F(y))&&(XA=XA.call(y))){if(y=XA.next(),!y.done){K=[];do K.push(y.value),y=XA.next();while(!y.done);ec(h,b,K,k)}return}if(typeof y.then=="function")return b.thenableState=null,pn(h,b,Dg(y),k);if(y.$$typeof===l)return pn(h,b,y._currentValue,k);throw k=Object.prototype.toString.call(y),Error(t(31,k==="[object Object]"?"object with keys {"+Object.keys(y).join(", ")+"}":k))}typeof y=="string"?(k=b.blockedSegment,k!==null&&(k.lastPushedText=kf(k.chunks,y,h.renderState,k.lastPushedText))):(typeof y=="number"||typeof y=="bigint")&&(k=b.blockedSegment,k!==null&&(k.lastPushedText=kf(k.chunks,""+y,h.renderState,k.lastPushedText)))}}function ec(h,b,y,k){var M=b.keyPath;if(k!==-1&&(b.keyPath=[b.keyPath,"Fragment",k],b.replay!==null)){for(var z=b.replay,K=z.nodes,cA=0;cA<K.length;cA++){var sA=K[cA];if(sA[1]===k){k=sA[2],sA=sA[3],b.replay={nodes:k,slots:sA,pendingTasks:1};try{if(ec(h,b,y,-1),b.replay.pendingTasks===1&&0<b.replay.nodes.length)throw Error(t(488));b.replay.pendingTasks--}catch(pA){if(typeof pA=="object"&&pA!==null&&(pA===_A||typeof pA.then=="function"))throw pA;b.replay.pendingTasks--,y=Ft(b.componentStack);var lA=b.blockedBoundary,bA=pA;y=Ln(h,bA,y),JB(h,lA,k,sA,bA,y)}b.replay=z,K.splice(cA,1);break}}b.keyPath=M;return}if(z=b.treeContext,K=y.length,b.replay!==null&&(cA=b.replay.slots,cA!==null&&typeof cA=="object")){for(k=0;k<K;k++)sA=y[k],b.treeContext=tA(z,K,k),lA=cA[k],typeof lA=="number"?(Wr(h,b,lA,sA,k),delete cA[k]):Hn(h,b,sA,k);b.treeContext=z,b.keyPath=M;return}for(cA=0;cA<K;cA++)k=y[cA],b.treeContext=tA(z,K,cA),Hn(h,b,k,cA);b.treeContext=z,b.keyPath=M}function Eu(h,b,y){if(y.status=5,y.rootSegmentID=h.nextSegmentId++,h=y.trackedContentKeyPath,h===null)throw Error(t(486));var k=y.trackedFallbackNode,M=[],z=b.workingMap.get(h);return z===void 0?(y=[h[1],h[2],M,null,k,y.rootSegmentID],b.workingMap.set(h,y),ul(y,h[0],b),y):(z[4]=k,z[5]=y.rootSegmentID,z)}function Mg(h,b,y,k){k.status=5;var M=y.keyPath,z=y.blockedBoundary;if(z===null)k.id=h.nextSegmentId++,b.rootSlots=k.id,h.completedRootSegment!==null&&(h.completedRootSegment.status=5);else{if(z!==null&&z.status===0){var K=Eu(h,b,z);if(z.trackedContentKeyPath===M&&y.childIndex===-1){k.id===-1&&(k.id=k.parentFlushed?z.rootSegmentID:h.nextSegmentId++),K[3]=k.id;return}}if(k.id===-1&&(k.id=k.parentFlushed&&z!==null?z.rootSegmentID:h.nextSegmentId++),y.childIndex===-1)M===null?b.rootSlots=k.id:(y=b.workingMap.get(M),y===void 0?(y=[M[1],M[2],[],k.id],ul(y,M[0],b)):y[3]=k.id);else{if(M===null){if(h=b.rootSlots,h===null)h=b.rootSlots={};else if(typeof h=="number")throw Error(t(491))}else if(z=b.workingMap,K=z.get(M),K===void 0)h={},K=[M[1],M[2],[],h],z.set(M,K),ul(K,M[0],b);else if(h=K[3],h===null)h=K[3]={};else if(typeof h=="number")throw Error(t(491));h[y.childIndex]=k.id}}}function qi(h,b){h=h.trackedPostpones,h!==null&&(b=b.trackedContentKeyPath,b!==null&&(b=h.workingMap.get(b),b!==void 0&&(b.length=4,b[2]=[],b[3]=null)))}function ll(h,b,y){return Bl(h,y,b.replay,b.node,b.childIndex,b.blockedBoundary,b.hoistableState,b.abortSet,b.keyPath,b.formatContext,b.context,b.treeContext,b.row,b.componentStack)}function gl(h,b,y){var k=b.blockedSegment,M=Es(h,k.chunks.length,null,b.formatContext,k.lastPushedText,!0);return k.children.push(M),k.lastPushedText=!1,fi(h,y,b.node,b.childIndex,b.blockedBoundary,M,b.blockedPreamble,b.hoistableState,b.abortSet,b.keyPath,b.formatContext,b.context,b.treeContext,b.row,b.componentStack)}function Hn(h,b,y,k){var M=b.formatContext,z=b.context,K=b.keyPath,cA=b.treeContext,sA=b.componentStack,lA=b.blockedSegment;if(lA===null){lA=b.replay;try{return pn(h,b,y,k)}catch(XA){if(lr(),y=XA===_A?Ze():XA,h.status!==12&&typeof y=="object"&&y!==null){if(typeof y.then=="function"){k=XA===_A?Fn():null,h=ll(h,b,k).ping,y.then(h,h),b.formatContext=M,b.context=z,b.keyPath=K,b.treeContext=cA,b.componentStack=sA,b.replay=lA,U(z);return}if(y.message==="Maximum call stack size exceeded"){y=XA===_A?Fn():null,y=ll(h,b,y),h.pingedTasks.push(y),b.formatContext=M,b.context=z,b.keyPath=K,b.treeContext=cA,b.componentStack=sA,b.replay=lA,U(z);return}}}}else{var bA=lA.children.length,pA=lA.chunks.length;try{return pn(h,b,y,k)}catch(XA){if(lr(),lA.children.length=bA,lA.chunks.length=pA,y=XA===_A?Ze():XA,h.status!==12&&typeof y=="object"&&y!==null){if(typeof y.then=="function"){lA=y,y=XA===_A?Fn():null,h=gl(h,b,y).ping,lA.then(h,h),b.formatContext=M,b.context=z,b.keyPath=K,b.treeContext=cA,b.componentStack=sA,U(z);return}if(y.message==="Maximum call stack size exceeded"){lA=XA===_A?Fn():null,lA=gl(h,b,lA),h.pingedTasks.push(lA),b.formatContext=M,b.context=z,b.keyPath=K,b.treeContext=cA,b.componentStack=sA,U(z);return}}}}throw b.formatContext=M,b.context=z,b.keyPath=K,b.treeContext=cA,U(z),y}function $i(h){var b=h.blockedBoundary,y=h.blockedSegment;y!==null&&(y.status=3,Er(this,b,h.row,y))}function JB(h,b,y,k,M,z){for(var K=0;K<y.length;K++){var cA=y[K];if(cA.length===4)JB(h,b,cA[2],cA[3],M,z);else{cA=cA[5];var sA=h,lA=z,bA=mr(sA,null,new Set,null,null);bA.parentFlushed=!0,bA.rootSegmentID=cA,bA.status=4,bA.errorDigest=lA,bA.parentFlushed&&sA.clientRenderedBoundaries.push(bA)}}if(y.length=0,k!==null){if(b===null)throw Error(t(487));if(b.status!==4&&(b.status=4,b.errorDigest=z,b.parentFlushed&&h.clientRenderedBoundaries.push(b)),typeof k=="object")for(var pA in k)delete k[pA]}}function AB(h,b,y){var k=h.blockedBoundary,M=h.blockedSegment;if(M!==null){if(M.status===6)return;M.status=3}var z=Ft(h.componentStack);if(k===null){if(b.status!==13&&b.status!==14){if(k=h.replay,k===null){b.trackedPostpones!==null&&M!==null?(k=b.trackedPostpones,Ln(b,y,z),Mg(b,k,h,M),Er(b,null,h.row,M)):(Ln(b,y,z),Ac(b,y));return}k.pendingTasks--,k.pendingTasks===0&&0<k.nodes.length&&(M=Ln(b,y,z),JB(b,null,k.nodes,k.slots,y,M)),b.pendingRootTasks--,b.pendingRootTasks===0&&xg(b)}}else{var K=b.trackedPostpones;if(k.status!==4){if(K!==null&&M!==null)return Ln(b,y,z),Mg(b,K,h,M),k.fallbackAbortableTasks.forEach(function(cA){return AB(cA,b,y)}),k.fallbackAbortableTasks.clear(),Er(b,k,h.row,M);k.status=4,M=Ln(b,y,z),k.status=4,k.errorDigest=M,qi(b,k),k.parentFlushed&&b.clientRenderedBoundaries.push(k)}k.pendingTasks--,M=k.row,M!==null&&--M.pendingTasks===0&&zs(b,M),k.fallbackAbortableTasks.forEach(function(cA){return AB(cA,b,y)}),k.fallbackAbortableTasks.clear()}h=h.row,h!==null&&--h.pendingTasks===0&&zs(b,h),b.allPendingTasks--,b.allPendingTasks===0&&dl(b)}function KB(h,b){try{var y=h.renderState,k=y.onHeaders;if(k){var M=y.headers;if(M){y.headers=null;var z=M.preconnects;if(M.fontPreloads&&(z&&(z+=", "),z+=M.fontPreloads),M.highImagePreloads&&(z&&(z+=", "),z+=M.highImagePreloads),!b){var K=y.styles.values(),cA=K.next();A:for(;0<M.remainingCapacity&&!cA.done;cA=K.next())for(var sA=cA.value.sheets.values(),lA=sA.next();0<M.remainingCapacity&&!lA.done;lA=sA.next()){var bA=lA.value,pA=bA.props,XA=pA.href,OA=bA.props,fe=Hs(OA.href,"style",{crossOrigin:OA.crossOrigin,integrity:OA.integrity,nonce:OA.nonce,type:OA.type,fetchPriority:OA.fetchPriority,referrerPolicy:OA.referrerPolicy,media:OA.media});if(0<=(M.remainingCapacity-=fe.length+2))y.resets.style[XA]=gA,z&&(z+=", "),z+=fe,y.resets.style[XA]=typeof pA.crossOrigin=="string"||typeof pA.integrity=="string"?[pA.crossOrigin,pA.integrity]:gA;else break A}}k(z?{Link:z}:{})}}}catch(Me){Ln(h,Me,{})}}function xg(h){h.trackedPostpones===null&&KB(h,!0),h.trackedPostpones===null&&ra(h),h.onShellError=EA,h=h.onShellReady,h()}function dl(h){KB(h,h.trackedPostpones===null?!0:h.completedRootSegment===null||h.completedRootSegment.status!==5),ra(h),h=h.onAllReady,h()}function Sa(h,b){if(b.chunks.length===0&&b.children.length===1&&b.children[0].boundary===null&&b.children[0].id===-1){var y=b.children[0];y.id=b.id,y.parentFlushed=!0,y.status!==1&&y.status!==3&&y.status!==4||Sa(h,y)}else h.completedSegments.push(b)}function fr(h,b,y){if(dA!==null){y=y.chunks;for(var k=0,M=0;M<y.length;M++)k+=y[M].byteLength;b===null?h.byteSize+=k:b.byteSize+=k}}function Er(h,b,y,k){if(y!==null&&(--y.pendingTasks===0?zs(h,y):y.together&&Fg(h,y)),h.allPendingTasks--,b===null){if(k!==null&&k.parentFlushed){if(h.completedRootSegment!==null)throw Error(t(389));h.completedRootSegment=k}h.pendingRootTasks--,h.pendingRootTasks===0&&xg(h)}else if(b.pendingTasks--,b.status!==4)if(b.pendingTasks===0){if(b.status===0&&(b.status=1),k!==null&&k.parentFlushed&&(k.status===1||k.status===3)&&Sa(b,k),b.parentFlushed&&h.completedBoundaries.push(b),b.status===1)y=b.row,y!==null&&$o(y.hoistables,b.contentState),Rr(h,b)||(b.fallbackAbortableTasks.forEach($i,h),b.fallbackAbortableTasks.clear(),y!==null&&--y.pendingTasks===0&&zs(h,y)),h.pendingRootTasks===0&&h.trackedPostpones===null&&b.contentPreamble!==null&&ra(h);else if(b.status===5&&(b=b.row,b!==null)){if(h.trackedPostpones!==null){y=h.trackedPostpones;var M=b.next;if(M!==null&&(k=M.boundaries,k!==null))for(M.boundaries=null,M=0;M<k.length;M++){var z=k[M];Eu(h,y,z),Er(h,z,null,null)}}--b.pendingTasks===0&&zs(h,b)}}else k===null||!k.parentFlushed||k.status!==1&&k.status!==3||(Sa(b,k),b.completedSegments.length===1&&b.parentFlushed&&h.partialBoundaries.push(b)),b=b.row,b!==null&&b.together&&Fg(h,b);h.allPendingTasks===0&&dl(h)}function yu(h){if(h.status!==14&&h.status!==13){var b=Ss,y=We.H;We.H=pu;var k=We.A;We.A=Jt;var M=Wt;Wt=h;var z=Mn;Mn=h.resumableState;try{var K=h.pingedTasks,cA;for(cA=0;cA<K.length;cA++){var sA=K[cA],lA=h,bA=sA.blockedSegment;if(bA===null){var pA=lA;if(sA.replay.pendingTasks!==0){U(sA.context);try{if(typeof sA.replay.slots=="number"?Wr(pA,sA,sA.replay.slots,sA.node,sA.childIndex):cl(pA,sA),sA.replay.pendingTasks===1&&0<sA.replay.nodes.length)throw Error(t(488));sA.replay.pendingTasks--,sA.abortSet.delete(sA),Er(pA,sA.blockedBoundary,sA.row,null)}catch(gs){lr();var XA=gs===_A?Ze():gs;if(typeof XA=="object"&&XA!==null&&typeof XA.then=="function"){var OA=sA.ping;XA.then(OA,OA),sA.thenableState=gs===_A?Fn():null}else{sA.replay.pendingTasks--,sA.abortSet.delete(sA);var fe=Ft(sA.componentStack);lA=void 0;var Me=pA,Ye=sA.blockedBoundary,te=pA.status===12?pA.fatalError:XA,he=sA.replay.nodes,je=sA.replay.slots;lA=Ln(Me,te,fe),JB(Me,Ye,he,je,te,lA),pA.pendingRootTasks--,pA.pendingRootTasks===0&&xg(pA),pA.allPendingTasks--,pA.allPendingTasks===0&&dl(pA)}}}}else if(pA=void 0,Me=bA,Me.status===0){Me.status=6,U(sA.context);var ys=Me.children.length,Ys=Me.chunks.length;try{cl(lA,sA),Me.lastPushedText&&Me.textEmbedded&&Me.chunks.push(Ua),sA.abortSet.delete(sA),Me.status=1,fr(lA,sA.blockedBoundary,Me),Er(lA,sA.blockedBoundary,sA.row,Me)}catch(gs){lr(),Me.children.length=ys,Me.chunks.length=Ys;var Qe=gs===_A?Ze():lA.status===12?lA.fatalError:gs;if(lA.status===12&&lA.trackedPostpones!==null){var $n=lA.trackedPostpones,Kt=Ft(sA.componentStack);sA.abortSet.delete(sA),Ln(lA,Qe,Kt),Mg(lA,$n,sA,Me),Er(lA,sA.blockedBoundary,sA.row,Me)}else if(typeof Qe=="object"&&Qe!==null&&typeof Qe.then=="function"){Me.status=0,sA.thenableState=gs===_A?Fn():null;var Xn=sA.ping;Qe.then(Xn,Xn)}else{var eB=Ft(sA.componentStack);sA.abortSet.delete(sA),Me.status=4;var ke=sA.blockedBoundary,Qi=sA.row;if(Qi!==null&&--Qi.pendingTasks===0&&zs(lA,Qi),lA.allPendingTasks--,pA=Ln(lA,Qe,eB),ke===null)Ac(lA,Qe);else if(ke.pendingTasks--,ke.status!==4){ke.status=4,ke.errorDigest=pA,qi(lA,ke);var Ba=ke.row;Ba!==null&&--Ba.pendingTasks===0&&zs(lA,Ba),ke.parentFlushed&&lA.clientRenderedBoundaries.push(ke),lA.pendingRootTasks===0&&lA.trackedPostpones===null&&ke.contentPreamble!==null&&ra(lA)}lA.allPendingTasks===0&&dl(lA)}}}}K.splice(0,cA),h.destination!==null&&sc(h,h.destination)}catch(gs){Ln(h,gs,{}),Ac(h,gs)}finally{Mn=z,We.H=y,We.A=k,y===pu&&U(b),Wt=M}}}function Nr(h,b,y){b.preambleChildren.length&&y.push(b.preambleChildren);for(var k=!1,M=0;M<b.children.length;M++)k=tc(h,b.children[M],y)||k;return k}function tc(h,b,y){var k=b.boundary;if(k===null)return Nr(h,b,y);var M=k.contentPreamble,z=k.fallbackPreamble;if(M===null||z===null)return!1;switch(k.status){case 1:if(vg(h.renderState,M),h.byteSize+=k.byteSize,b=k.completedSegments[0],!b)throw Error(t(391));return Nr(h,b,y);case 5:if(h.trackedPostpones!==null)return!0;case 4:if(b.status===1)return vg(h.renderState,z),Nr(h,b,y);default:return!0}}function ra(h){if(h.completedRootSegment&&h.completedPreambleSegments===null){var b=[],y=h.byteSize,k=tc(h,h.completedRootSegment,b),M=h.renderState.preamble;k===!1||M.headChunks&&M.bodyChunks?h.completedPreambleSegments=b:h.byteSize=y}}function Va(h,b,y,k){switch(y.parentFlushed=!0,y.status){case 0:y.id=h.nextSegmentId++;case 5:return k=y.id,y.lastPushedText=!1,y.textEmbedded=!1,h=h.renderState,L(b,Ff),L(b,h.placeholderPrefix),h=q(k.toString(16)),L(b,h),_(b,Jc);case 1:y.status=2;var M=!0,z=y.chunks,K=0;y=y.children;for(var cA=0;cA<y.length;cA++){for(M=y[cA];K<M.index;K++)L(b,z[K]);M=nc(h,b,M,k)}for(;K<z.length-1;K++)L(b,z[K]);return K<z.length&&(M=_(b,z[K])),M;case 3:return!0;default:throw Error(t(390))}}var aa=0;function nc(h,b,y,k){var M=y.boundary;if(M===null)return Va(h,b,y,k);if(M.parentFlushed=!0,M.status===4){var z=M.row;z!==null&&--z.pendingTasks===0&&zs(h,z),M=M.errorDigest,_(b,or),L(b,Vi),M&&(L(b,jc),L(b,q(UA(M))),L(b,Kc)),_(b,_c),Va(h,b,y,k)}else if(M.status!==1)M.status===0&&(M.rootSegmentID=h.nextSegmentId++),0<M.completedSegments.length&&h.partialBoundaries.push(M),Wo(b,h.renderState,M.rootSegmentID),k&&$o(k,M.fallbackState),Va(h,b,y,k);else if(!Wa&&Rr(h,M)&&(aa+M.byteSize>h.progressiveChunkSize||ui(M.contentState)))M.rootSegmentID=h.nextSegmentId++,h.completedBoundaries.push(M),Wo(b,h.renderState,M.rootSegmentID),Va(h,b,y,k);else{if(aa+=M.byteSize,k&&$o(k,M.contentState),y=M.row,y!==null&&Rr(h,M)&&--y.pendingTasks===0&&zs(h,y),_(b,_w),y=M.completedSegments,y.length!==1)throw Error(t(391));nc(h,b,y[0],k)}return _(b,Rs)}function hr(h,b,y,k){return Al(b,h.renderState,y.parentFormatContext,y.id),nc(h,b,y,k),mg(b,y.parentFormatContext)}function Yu(h,b,y){aa=y.byteSize;for(var k=y.completedSegments,M=0;M<k.length;M++)hi(h,b,y,k[M]);k.length=0,k=y.row,k!==null&&Rr(h,y)&&--k.pendingTasks===0&&zs(h,k),di(b,y.contentState,h.renderState),k=h.resumableState,h=h.renderState,M=y.rootSegmentID,y=y.contentState;var z=h.stylesToHoist;return h.stylesToHoist=!1,L(b,h.startInlineScript),L(b,yt),z?((k.instructions&4)===0&&(k.instructions|=4,L(b,el)),(k.instructions&2)===0&&(k.instructions|=2,L(b,Eg)),(k.instructions&8)===0?(k.instructions|=8,L(b,bv)):L(b,AQ)):((k.instructions&2)===0&&(k.instructions|=2,L(b,Eg)),L(b,$w)),k=q(M.toString(16)),L(b,h.boundaryPrefix),L(b,k),L(b,ru),L(b,h.segmentPrefix),L(b,k),z?(L(b,Cv),qn(b,y)):L(b,au),y=_(b,eQ),RB(b,h)&&y}function hi(h,b,y,k){if(k.status===2)return!0;var M=y.contentState,z=k.id;if(z===-1){if((k.id=y.rootSegmentID)===-1)throw Error(t(392));return hr(h,b,k,M)}return z===y.rootSegmentID?hr(h,b,k,M):(hr(h,b,k,M),y=h.resumableState,h=h.renderState,L(b,h.startInlineScript),L(b,yt),(y.instructions&1)===0?(y.instructions|=1,L(b,qw)):L(b,hv),L(b,h.segmentPrefix),z=q(z.toString(16)),L(b,z),L(b,wv),L(b,h.placeholderPrefix),L(b,z),b=_(b,Qv),b)}var Wa=!1;function sc(h,b){fA=new Uint8Array(2048),yA=0;try{if(!(0<h.pendingRootTasks)){var y,k=h.completedRootSegment;if(k!==null){if(k.status===5)return;var M=h.completedPreambleSegments;if(M===null)return;aa=h.byteSize;var z=h.resumableState,K=h.renderState,cA=K.preamble,sA=cA.htmlChunks,lA=cA.headChunks,bA;if(sA){for(bA=0;bA<sA.length;bA++)L(b,sA[bA]);if(lA)for(bA=0;bA<lA.length;bA++)L(b,lA[bA]);else L(b,Gn("head")),L(b,yt)}else if(lA)for(bA=0;bA<lA.length;bA++)L(b,lA[bA]);var pA=K.charsetChunks;for(bA=0;bA<pA.length;bA++)L(b,pA[bA]);pA.length=0,K.preconnects.forEach(Lt,b),K.preconnects.clear();var XA=K.viewportChunks;for(bA=0;bA<XA.length;bA++)L(b,XA[bA]);XA.length=0,K.fontPreloads.forEach(Lt,b),K.fontPreloads.clear(),K.highImagePreloads.forEach(Lt,b),K.highImagePreloads.clear(),WA=K,K.styles.forEach(du,b),WA=null;var OA=K.importMapChunks;for(bA=0;bA<OA.length;bA++)L(b,OA[bA]);OA.length=0,K.bootstrapScripts.forEach(Lt,b),K.scripts.forEach(Lt,b),K.scripts.clear(),K.bulkPreloads.forEach(Lt,b),K.bulkPreloads.clear(),sA||lA||(z.instructions|=32);var fe=K.hoistableChunks;for(bA=0;bA<fe.length;bA++)L(b,fe[bA]);for(z=fe.length=0;z<M.length;z++){var Me=M[z];for(K=0;K<Me.length;K++)nc(h,b,Me[K],null)}var Ye=h.renderState.preamble,te=Ye.headChunks;(Ye.htmlChunks||te)&&L(b,Ri("head"));var he=Ye.bodyChunks;if(he)for(M=0;M<he.length;M++)L(b,he[M]);nc(h,b,k,null),h.completedRootSegment=null;var je=h.renderState;if(h.allPendingTasks!==0||h.clientRenderedBoundaries.length!==0||h.completedBoundaries.length!==0||h.trackedPostpones!==null&&(h.trackedPostpones.rootNodes.length!==0||h.trackedPostpones.rootSlots!==null)){var ys=h.resumableState;if((ys.instructions&64)===0){if(ys.instructions|=64,L(b,je.startInlineScript),(ys.instructions&32)===0){ys.instructions|=32;var Ys="_"+ys.idPrefix+"R_";L(b,Yg),L(b,q(UA(Ys))),L(b,qt)}L(b,yt),L(b,Si),_(b,NA)}}RB(b,je)}var Qe=h.renderState;k=0;var $n=Qe.viewportChunks;for(k=0;k<$n.length;k++)L(b,$n[k]);$n.length=0,Qe.preconnects.forEach(Lt,b),Qe.preconnects.clear(),Qe.fontPreloads.forEach(Lt,b),Qe.fontPreloads.clear(),Qe.highImagePreloads.forEach(Lt,b),Qe.highImagePreloads.clear(),Qe.styles.forEach(uu,b),Qe.scripts.forEach(Lt,b),Qe.scripts.clear(),Qe.bulkPreloads.forEach(Lt,b),Qe.bulkPreloads.clear();var Kt=Qe.hoistableChunks;for(k=0;k<Kt.length;k++)L(b,Kt[k]);Kt.length=0;var Xn=h.clientRenderedBoundaries;for(y=0;y<Xn.length;y++){var eB=Xn[y];Qe=b;var ke=h.resumableState,Qi=h.renderState,Ba=eB.rootSegmentID,gs=eB.errorDigest;L(Qe,Qi.startInlineScript),L(Qe,yt),(ke.instructions&4)===0?(ke.instructions|=4,L(Qe,xf)):L(Qe,iu),L(Qe,Qi.boundaryPrefix),L(Qe,q(Ba.toString(16))),L(Qe,Bu),gs&&(L(Qe,tl),L(Qe,q(tQ(gs||""))));var zr=_(Qe,vv);if(!zr){h.destination=null,y++,Xn.splice(0,y);return}}Xn.splice(0,y);var Pg=h.completedBoundaries;for(y=0;y<Pg.length;y++)if(!Yu(h,b,Pg[y])){h.destination=null,y++,Pg.splice(0,y);return}Pg.splice(0,y),AA(b),fA=new Uint8Array(2048),yA=0,Wa=!0;var ac=h.partialBoundaries;for(y=0;y<ac.length;y++){var tB=ac[y];A:{Xn=h,eB=b,aa=tB.byteSize;var ic=tB.completedSegments;for(zr=0;zr<ic.length;zr++)if(!hi(Xn,eB,tB,ic[zr])){zr++,ic.splice(0,zr);var Zs=!1;break A}ic.splice(0,zr);var Mt=tB.row;Mt!==null&&Mt.together&&tB.pendingTasks===1&&(Mt.pendingTasks===1?Vf(Xn,Mt,Mt.hoistables):Mt.pendingTasks--),Zs=di(eB,tB.contentState,Xn.renderState)}if(!Zs){h.destination=null,y++,ac.splice(0,y);return}}ac.splice(0,y),Wa=!1;var nB=h.completedBoundaries;for(y=0;y<nB.length;y++)if(!Yu(h,b,nB[y])){h.destination=null,y++,nB.splice(0,y);return}nB.splice(0,y)}}finally{Wa=!1,h.allPendingTasks===0&&h.clientRenderedBoundaries.length===0&&h.completedBoundaries.length===0?(h.flushScheduled=!1,y=h.resumableState,y.hasBody&&L(b,Ri("body")),y.hasHtml&&L(b,Ri("html")),AA(b),h.status=14,b.close(),h.destination=null):AA(b)}}function yr(h){h.flushScheduled=h.destination!==null,hA(function(){return yu(h)}),$(function(){h.status===10&&(h.status=11),h.trackedPostpones===null&&KB(h,h.pendingRootTasks===0)})}function Ls(h){h.flushScheduled===!1&&h.pingedTasks.length===0&&h.destination!==null&&(h.flushScheduled=!0,$(function(){var b=h.destination;b?sc(h,b):h.flushScheduled=!1}))}function ia(h,b){if(h.status===13)h.status=14,ZA(b,h.fatalError);else if(h.status!==14&&h.destination===null){h.destination=b;try{sc(h,b)}catch(y){Ln(h,y,{}),Ac(h,y)}}}function Yr(h,b){(h.status===11||h.status===10)&&(h.status=12);try{var y=h.abortableTasks;if(0<y.size){var k=b===void 0?Error(t(432)):typeof b=="object"&&b!==null&&typeof b.then=="function"?Error(t(530)):b;h.fatalError=k,y.forEach(function(M){return AB(M,h,k)}),y.clear()}h.destination!==null&&sc(h,h.destination)}catch(M){Ln(h,M,{}),Ac(h,M)}}function ul(h,b,y){if(b===null)y.rootNodes.push(h);else{var k=y.workingMap,M=k.get(b);M===void 0&&(M=[b[1],b[2],[],null],k.set(b,M),ul(M,b[0],y)),M[2].push(h)}}function rc(h){var b=h.trackedPostpones;if(b===null||b.rootNodes.length===0&&b.rootSlots===null)return h.trackedPostpones=null;if(h.completedRootSegment===null||h.completedRootSegment.status!==5&&h.completedPreambleSegments!==null){var y=h.nextSegmentId,k=b.rootSlots,M=h.resumableState;M.bootstrapScriptContent=void 0,M.bootstrapScripts=void 0,M.bootstrapModules=void 0}else{y=0,k=-1,M=h.resumableState;var z=h.renderState;M.nextFormID=0,M.hasBody=!1,M.hasHtml=!1,M.unknownResources={font:z.resets.font},M.dnsResources=z.resets.dns,M.connectResources=z.resets.connect,M.imageResources=z.resets.image,M.styleResources=z.resets.style,M.scriptResources={},M.moduleUnknownResources={},M.moduleScriptResources={},M.instructions=0}return{nextSegmentId:y,rootFormatContext:h.rootFormatContext,progressiveChunkSize:h.progressiveChunkSize,resumableState:h.resumableState,replayNodes:b.rootNodes,replaySlots:k}}function wi(){var h=e.version;if(h!=="19.2.4")throw Error(t(527,h,"19.2.4"))}return wi(),wi(),aG.prerender=function(h,b){return new Promise(function(y,k){var M=b?b.onHeaders:void 0,z;M&&(z=function(bA){M(new Headers(bA))});var K=Zf(b?b.identifierPrefix:void 0,b?b.unstable_externalRuntimeSrc:void 0,b?b.bootstrapScriptContent:void 0,b?b.bootstrapScripts:void 0,b?b.bootstrapModules:void 0),cA=Ki(h,K,qd(K,void 0,b?b.unstable_externalRuntimeSrc:void 0,b?b.importMap:void 0,z,b?b.maxHeadersLength:void 0),Wc(b?b.namespaceURI:void 0),b?b.progressiveChunkSize:void 0,b?b.onError:void 0,function(){var bA=new ReadableStream({type:"bytes",pull:function(pA){ia(cA,pA)},cancel:function(pA){cA.destination=null,Yr(cA,pA)}},{highWaterMark:0});bA={postponed:rc(cA),prelude:bA},y(bA)},void 0,void 0,k,b?b.onPostpone:void 0);if(b&&b.signal){var sA=b.signal;if(sA.aborted)Yr(cA,sA.reason);else{var lA=function(){Yr(cA,sA.reason),sA.removeEventListener("abort",lA)};sA.addEventListener("abort",lA)}}yr(cA)})},aG.renderToReadableStream=function(h,b){return new Promise(function(y,k){var M,z,K=new Promise(function(OA,fe){z=OA,M=fe}),cA=b?b.onHeaders:void 0,sA;cA&&(sA=function(OA){cA(new Headers(OA))});var lA=Zf(b?b.identifierPrefix:void 0,b?b.unstable_externalRuntimeSrc:void 0,b?b.bootstrapScriptContent:void 0,b?b.bootstrapScripts:void 0,b?b.bootstrapModules:void 0),bA=OB(h,lA,qd(lA,b?b.nonce:void 0,b?b.unstable_externalRuntimeSrc:void 0,b?b.importMap:void 0,sA,b?b.maxHeadersLength:void 0),Wc(b?b.namespaceURI:void 0),b?b.progressiveChunkSize:void 0,b?b.onError:void 0,z,function(){var OA=new ReadableStream({type:"bytes",pull:function(fe){ia(bA,fe)},cancel:function(fe){bA.destination=null,Yr(bA,fe)}},{highWaterMark:0});OA.allReady=K,y(OA)},function(OA){K.catch(function(){}),k(OA)},M,b?b.onPostpone:void 0,b?b.formState:void 0);if(b&&b.signal){var pA=b.signal;if(pA.aborted)Yr(bA,pA.reason);else{var XA=function(){Yr(bA,pA.reason),pA.removeEventListener("abort",XA)};pA.addEventListener("abort",XA)}}yr(bA)})},aG.resume=function(h,b,y){return new Promise(function(k,M){var z,K,cA=new Promise(function(pA,XA){K=pA,z=XA}),sA=Ta(h,b,qd(b.resumableState,y?y.nonce:void 0,void 0,void 0,void 0,void 0),y?y.onError:void 0,K,function(){var pA=new ReadableStream({type:"bytes",pull:function(XA){ia(sA,XA)},cancel:function(XA){sA.destination=null,Yr(sA,XA)}},{highWaterMark:0});pA.allReady=cA,k(pA)},function(pA){cA.catch(function(){}),M(pA)},z,y?y.onPostpone:void 0);if(y&&y.signal){var lA=y.signal;if(lA.aborted)Yr(sA,lA.reason);else{var bA=function(){Yr(sA,lA.reason),lA.removeEventListener("abort",bA)};lA.addEventListener("abort",bA)}}yr(sA)})},aG.resumeAndPrerender=function(h,b,y){return new Promise(function(k,M){var z=ji(h,b,qd(b.resumableState,void 0,void 0,void 0,void 0,void 0),y?y.onError:void 0,function(){var sA=new ReadableStream({type:"bytes",pull:function(lA){ia(z,lA)},cancel:function(lA){z.destination=null,Yr(z,lA)}},{highWaterMark:0});sA={postponed:rc(z),prelude:sA},k(sA)},void 0,void 0,M,y?y.onPostpone:void 0);if(y&&y.signal){var K=y.signal;if(K.aborted)Yr(z,K.reason);else{var cA=function(){Yr(z,K.reason),K.removeEventListener("abort",cA)};K.addEventListener("abort",cA)}}yr(z)})},aG.version="19.2.4",aG}var iM;function MK(){if(iM)return rG;iM=1;var e,A;return e=DK(),A=FK(),rG.version=e.version,rG.renderToString=e.renderToString,rG.renderToStaticMarkup=e.renderToStaticMarkup,rG.renderToReadableStream=A.renderToReadableStream,rG.resume=A.resume,rG}var xK=MK(),WE={exports:{}},NE,BM;function PK(){if(BM)return NE;BM=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return NE=e,NE}var zE,oM;function TK(){if(oM)return zE;oM=1;var e=PK();function A(){}function t(){}return t.resetWarningCache=A,zE=function(){function n(a,B,c,l,g,u){if(u!==e){var f=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw f.name="Invariant Violation",f}}n.isRequired=n;function s(){return n}var r={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:s,element:n,elementType:n,instanceOf:s,node:n,objectOf:s,oneOf:s,oneOfType:s,shape:s,exact:s,checkPropTypes:t,resetWarningCache:A};return r.PropTypes=r,r},zE}var cM;function RK(){return cM||(cM=1,WE.exports=TK()()),WE.exports}var SK=RK();const Ae=$g(SK);var VK=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function lM(e,A){return e(A={exports:{}},A.exports),A.exports}var WK=lM((function(e){(function(A){var t=function(m,Z,D){if(!c(Z)||g(Z)||u(Z)||f(Z)||B(Z))return Z;var T,S=0,F=0;if(l(Z))for(T=[],F=Z.length;S<F;S++)T.push(t(m,Z[S],D));else for(var V in T={},Z)Object.prototype.hasOwnProperty.call(Z,V)&&(T[m(V,D)]=t(m,Z[V],D));return T},n=function(m){return w(m)?m:(m=m.replace(/[\-_\s]+(.)?/g,(function(Z,D){return D?D.toUpperCase():""}))).substr(0,1).toLowerCase()+m.substr(1)},s=function(m){var Z=n(m);return Z.substr(0,1).toUpperCase()+Z.substr(1)},r=function(m,Z){return(function(D,T){var S=(T=T||{}).separator||"_",F=T.split||/(?=[A-Z])/;return D.split(F).join(S)})(m,Z).toLowerCase()},a=Object.prototype.toString,B=function(m){return typeof m=="function"},c=function(m){return m===Object(m)},l=function(m){return a.call(m)=="[object Array]"},g=function(m){return a.call(m)=="[object Date]"},u=function(m){return a.call(m)=="[object RegExp]"},f=function(m){return a.call(m)=="[object Boolean]"},w=function(m){return(m-=0)==m},v=function(m,Z){var D=Z&&"process"in Z?Z.process:Z;return typeof D!="function"?m:function(T,S){return D(T,m,S)}},E={camelize:n,decamelize:r,pascalize:s,depascalize:r,camelizeKeys:function(m,Z){return t(v(n,Z),m)},decamelizeKeys:function(m,Z){return t(v(r,Z),m,Z)},pascalizeKeys:function(m,Z){return t(v(s,Z),m)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=E:A.humps=E})(VK)})).decamelize,NK=function(e){if(Array.isArray(e))return e},zK=function(e,A){if(typeof Symbol<"u"&&Symbol.iterator in Object(e)){var t=[],n=!0,s=!1,r=void 0;try{for(var a,B=e[Symbol.iterator]();!(n=(a=B.next()).done)&&(t.push(a.value),!A||t.length!==A);n=!0);}catch(c){s=!0,r=c}finally{try{n||B.return==null||B.return()}finally{if(s)throw r}}return t}},gM=function(e,A){(A==null||A>e.length)&&(A=e.length);for(var t=0,n=new Array(A);t<A;t++)n[t]=e[t];return n},LK=function(e,A){if(e){if(typeof e=="string")return gM(e,A);var t=Object.prototype.toString.call(e).slice(8,-1);return t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set"?Array.from(e):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?gM(e,A):void 0}},XK=function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
54
54
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)},OK=function(e,A){return NK(e)||zK(e,A)||LK(e,A)||XK()},dM=lM((function(e){function A(){return e.exports=A=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var s=arguments[n];for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(t[r]=s[r])}return t},A.apply(this,arguments)}e.exports=A})),JK=function(e,A){if(e==null)return{};var t,n,s={},r=Object.keys(e);for(n=0;n<r.length;n++)t=r[n],A.indexOf(t)>=0||(s[t]=e[t]);return s},uM=function(e,A){if(e==null)return{};var t,n,s=JK(e,A);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(n=0;n<r.length;n++)t=r[n],A.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(s[t]=e[t])}return s},KK=R.createContext(null);function GM(e){var A=e.children,t=A===void 0?"":A,n=uM(e,["children"]);return typeof t!="string"&&(t=xK.renderToString(t)),j.createElement("template",dM({},n,{dangerouslySetInnerHTML:{__html:t}}))}function fM(e){var A=e.root,t=e.children;return VE.createPortal(t===void 0?null:t,A)}function jK(e){var A=R.forwardRef((function(t,n){var s,r,a=t.mode,B=a===void 0?"open":a,c=t.delegatesFocus,l=c!==void 0&&c,g=t.styleSheets,u=g===void 0?[]:g,f=t.ssr,w=f!==void 0&&f,v=t.children,E=uM(t,["mode","delegatesFocus","styleSheets","ssr","children"]),m=(r=R.useRef((s=n)&&s.current),R.useEffect((function(){s&&(s.current=r.current)}),[s]),r),Z=R.useState(null),D=OK(Z,2),T=D[0],S=D[1],F="node_".concat(B).concat(l);return R.useLayoutEffect((function(){if(m.current)try{if(typeof n=="function"&&n(m.current),w){var V=m.current.shadowRoot;return void S(V)}var N=m.current.attachShadow({mode:B,delegatesFocus:l});u.length>0&&(N.adoptedStyleSheets=u),S(N)}catch(X){(function(eA){var $=eA.error,rA=eA.styleSheets,iA=eA.root;if($.name==="NotSupportedError")rA.length>0&&(iA.adoptedStyleSheets=rA);else throw $})({error:X,styleSheets:u,root:T})}}),[n,m,u]),j.createElement(j.Fragment,null,j.createElement(e.tag,dM({key:F,ref:m},E),(T||w)&&j.createElement(KK.Provider,{value:T},w?j.createElement(GM,{shadowroot:B,shadowrootmode:B},e.render({root:T,ssr:w,children:v})):j.createElement(fM,{root:T},e.render({root:T,ssr:w,children:v})))))}));return A.propTypes={mode:Ae.oneOf(["open","closed"]),delegatesFocus:Ae.bool,styleSheets:Ae.arrayOf(Ae.instanceOf(globalThis.CSSStyleSheet)),ssr:Ae.bool,children:Ae.node},A}GM.propTypes={children:Ae.oneOfType([Ae.string,Ae.node])},fM.propTypes={root:Ae.object.isRequired,children:Ae.node};var LE=new Map;function _K(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"core",t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(n){return n.children};return new Proxy(e,{get:function(n,s){var r=WK(s,{separator:"-"}),a="".concat(A,"-").concat(r);return LE.has(a)||LE.set(a,jK({tag:r,render:t})),LE.get(a)}})}var qK=_K();function hM(e){return typeof e=="object"&&e!=null&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function $K(e={}){let{initialEntries:A=["/"],initialIndex:t,v5Compat:n=!1}=e,s;s=A.map((w,v)=>g(w,typeof w=="string"?null:w.state,v===0?"default":void 0,typeof w=="string"?void 0:w.unstable_mask));let r=c(t??s.length-1),a="POP",B=null;function c(w){return Math.min(Math.max(w,0),s.length-1)}function l(){return s[r]}function g(w,v=null,E,m){let Z=ej(s?l().pathname:"/",w,v,E,m);return $B(Z.pathname.charAt(0)==="/",`relative pathnames are not supported in memory history: ${JSON.stringify(w)}`),Z}function u(w){return typeof w=="string"?w:cI(w)}return{get index(){return r},get action(){return a},get location(){return l()},createHref:u,createURL(w){return new URL(u(w),"http://localhost")},encodeLocation(w){let v=typeof w=="string"?iG(w):w;return{pathname:v.pathname||"",search:v.search||"",hash:v.hash||""}},push(w,v){a="PUSH";let E=hM(w)?w:g(w,v);r+=1,s.splice(r,s.length,E),n&&B&&B({action:a,location:E,delta:1})},replace(w,v){a="REPLACE";let E=hM(w)?w:g(w,v);s[r]=E,n&&B&&B({action:a,location:E,delta:0})},go(w){a="POP";let v=c(r+w),E=s[v];r=v,B&&B({action:a,location:E,delta:w})},listen(w){return B=w,()=>{B=null}}}}function As(e,A){if(e===!1||e===null||typeof e>"u")throw new Error(A)}function $B(e,A){if(!e){typeof console<"u"&&console.warn(A);try{throw new Error(A)}catch{}}}function Aj(){return Math.random().toString(36).substring(2,10)}function ej(e,A,t=null,n,s){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof A=="string"?iG(A):A,state:t,key:A&&A.key||n||Aj(),unstable_mask:s}}function cI({pathname:e="/",search:A="",hash:t=""}){return A&&A!=="?"&&(e+=A.charAt(0)==="?"?A:"?"+A),t&&t!=="#"&&(e+=t.charAt(0)==="#"?t:"#"+t),e}function iG(e){let A={};if(e){let t=e.indexOf("#");t>=0&&(A.hash=e.substring(t),e=e.substring(0,t));let n=e.indexOf("?");n>=0&&(A.search=e.substring(n),e=e.substring(0,n)),e&&(A.pathname=e)}return A}function wM(e,A,t="/"){return tj(e,A,t,!1)}function tj(e,A,t,n){let s=typeof A=="string"?iG(A):A,r=pl(s.pathname||"/",t);if(r==null)return null;let a=QM(e);nj(a);let B=null;for(let c=0;B==null&&c<a.length;++c){let l=uj(r);B=gj(a[c],l,n)}return B}function QM(e,A=[],t=[],n="",s=!1){let r=(a,B,c=s,l)=>{let g={relativePath:l===void 0?a.path||"":l,caseSensitive:a.caseSensitive===!0,childrenIndex:B,route:a};if(g.relativePath.startsWith("/")){if(!g.relativePath.startsWith(n)&&c)return;As(g.relativePath.startsWith(n),`Absolute route path "${g.relativePath}" nested under path "${n}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),g.relativePath=g.relativePath.slice(n.length)}let u=dc([n,g.relativePath]),f=t.concat(g);a.children&&a.children.length>0&&(As(a.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${u}".`),QM(a.children,A,f,u,c)),!(a.path==null&&!a.index)&&A.push({path:u,score:cj(u,a.index),routesMeta:f})};return e.forEach((a,B)=>{if(a.path===""||!a.path?.includes("?"))r(a,B);else for(let c of bM(a.path))r(a,B,!0,c)}),A}function bM(e){let A=e.split("/");if(A.length===0)return[];let[t,...n]=A,s=t.endsWith("?"),r=t.replace(/\?$/,"");if(n.length===0)return s?[r,""]:[r];let a=bM(n.join("/")),B=[];return B.push(...a.map(c=>c===""?r:[r,c].join("/"))),s&&B.push(...a),B.map(c=>e.startsWith("/")&&c===""?"/":c)}function nj(e){e.sort((A,t)=>A.score!==t.score?t.score-A.score:lj(A.routesMeta.map(n=>n.childrenIndex),t.routesMeta.map(n=>n.childrenIndex)))}var sj=/^:[\w-]+$/,rj=3,aj=2,ij=1,Bj=10,oj=-2,CM=e=>e==="*";function cj(e,A){let t=e.split("/"),n=t.length;return t.some(CM)&&(n+=oj),A&&(n+=aj),t.filter(s=>!CM(s)).reduce((s,r)=>s+(sj.test(r)?rj:r===""?ij:Bj),n)}function lj(e,A){return e.length===A.length&&e.slice(0,-1).every((n,s)=>n===A[s])?e[e.length-1]-A[A.length-1]:0}function gj(e,A,t=!1){let{routesMeta:n}=e,s={},r="/",a=[];for(let B=0;B<n.length;++B){let c=n[B],l=B===n.length-1,g=r==="/"?A:A.slice(r.length)||"/",u=lI({path:c.relativePath,caseSensitive:c.caseSensitive,end:l},g),f=c.route;if(!u&&l&&t&&!n[n.length-1].route.index&&(u=lI({path:c.relativePath,caseSensitive:c.caseSensitive,end:!1},g)),!u)return null;Object.assign(s,u.params),a.push({params:s,pathname:dc([r,u.pathname]),pathnameBase:wj(dc([r,u.pathnameBase])),route:f}),u.pathnameBase!=="/"&&(r=dc([r,u.pathnameBase]))}return a}function lI(e,A){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[t,n]=dj(e.path,e.caseSensitive,e.end),s=A.match(t);if(!s)return null;let r=s[0],a=r.replace(/(.)\/+$/,"$1"),B=s.slice(1);return{params:n.reduce((l,{paramName:g,isOptional:u},f)=>{if(g==="*"){let v=B[f]||"";a=r.slice(0,r.length-v.length).replace(/(.)\/+$/,"$1")}const w=B[f];return u&&!w?l[g]=void 0:l[g]=(w||"").replace(/%2F/g,"/"),l},{}),pathname:r,pathnameBase:a,pattern:e}}function dj(e,A=!1,t=!0){$B(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let n=[],s="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,B,c,l,g)=>{if(n.push({paramName:B,isOptional:c!=null}),c){let u=g.charAt(l+a.length);return u&&u!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(n.push({paramName:"*"}),s+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):t?s+="\\/*$":e!==""&&e!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,A?void 0:"i"),n]}function uj(e){try{return e.split("/").map(A=>decodeURIComponent(A).replace(/\//g,"%2F")).join("/")}catch(A){return $B(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${A}).`),e}}function pl(e,A){if(A==="/")return e;if(!e.toLowerCase().startsWith(A.toLowerCase()))return null;let t=A.endsWith("/")?A.length-1:A.length,n=e.charAt(t);return n&&n!=="/"?null:e.slice(t)||"/"}var Gj=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function fj(e,A="/"){let{pathname:t,search:n="",hash:s=""}=typeof e=="string"?iG(e):e,r;return t?(t=t.replace(/\/\/+/g,"/"),t.startsWith("/")?r=vM(t.substring(1),"/"):r=vM(t,A)):r=A,{pathname:r,search:Qj(n),hash:bj(s)}}function vM(e,A){let t=A.replace(/\/+$/,"").split("/");return e.split("/").forEach(s=>{s===".."?t.length>1&&t.pop():s!=="."&&t.push(s)}),t.length>1?t.join("/"):"/"}function XE(e,A,t,n){return`Cannot include a '${e}' character in a manually specified \`to.${A}\` field [${JSON.stringify(n)}]. Please separate it out to the \`to.${t}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function hj(e){return e.filter((A,t)=>t===0||A.route.path&&A.route.path.length>0)}function IM(e){let A=hj(e);return A.map((t,n)=>n===A.length-1?t.pathname:t.pathnameBase)}function OE(e,A,t,n=!1){let s;typeof e=="string"?s=iG(e):(s={...e},As(!s.pathname||!s.pathname.includes("?"),XE("?","pathname","search",s)),As(!s.pathname||!s.pathname.includes("#"),XE("#","pathname","hash",s)),As(!s.search||!s.search.includes("#"),XE("#","search","hash",s)));let r=e===""||s.pathname==="",a=r?"/":s.pathname,B;if(a==null)B=t;else{let u=A.length-1;if(!n&&a.startsWith("..")){let f=a.split("/");for(;f[0]==="..";)f.shift(),u-=1;s.pathname=f.join("/")}B=u>=0?A[u]:"/"}let c=fj(s,B),l=a&&a!=="/"&&a.endsWith("/"),g=(r||a===".")&&t.endsWith("/");return!c.pathname.endsWith("/")&&(l||g)&&(c.pathname+="/"),c}var dc=e=>e.join("/").replace(/\/\/+/g,"/"),wj=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Qj=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,bj=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,Cj=class{constructor(e,A,t,n=!1){this.status=e,this.statusText=A||"",this.internal=n,t instanceof Error?(this.data=t.toString(),this.error=t):this.data=t}};function vj(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function Ij(e){return e.map(A=>A.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var pM=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function HM(e,A){let t=e;if(typeof t!="string"||!Gj.test(t))return{absoluteURL:void 0,isExternal:!1,to:t};let n=t,s=!1;if(pM)try{let r=new URL(window.location.href),a=t.startsWith("//")?new URL(r.protocol+t):new URL(t),B=pl(a.pathname,A);a.origin===r.origin&&B!=null?t=B+a.search+a.hash:s=!0}catch{$B(!1,`<Link to="${t}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:n,isExternal:s,to:t}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var mM=["POST","PUT","PATCH","DELETE"];new Set(mM);var pj=["GET",...mM];new Set(pj);var gh=R.createContext(null);gh.displayName="DataRouter";var gI=R.createContext(null);gI.displayName="DataRouterState";var EM=R.createContext(!1);function Hj(){return R.useContext(EM)}var yM=R.createContext({isTransitioning:!1});yM.displayName="ViewTransition";var mj=R.createContext(new Map);mj.displayName="Fetchers";var Ej=R.createContext(null);Ej.displayName="Await";var cB=R.createContext(null);cB.displayName="Navigation";var ZQ=R.createContext(null);ZQ.displayName="Location";var Hl=R.createContext({outlet:null,matches:[],isDataRoute:!1});Hl.displayName="Route";var JE=R.createContext(null);JE.displayName="RouteError";var YM="REACT_ROUTER_ERROR",yj="REDIRECT",Yj="ROUTE_ERROR_RESPONSE";function Zj(e){if(e.startsWith(`${YM}:${yj}:{`))try{let A=JSON.parse(e.slice(28));if(typeof A=="object"&&A&&typeof A.status=="number"&&typeof A.statusText=="string"&&typeof A.location=="string"&&typeof A.reloadDocument=="boolean"&&typeof A.replace=="boolean")return A}catch{}}function kj(e){if(e.startsWith(`${YM}:${Yj}:{`))try{let A=JSON.parse(e.slice(40));if(typeof A=="object"&&A&&typeof A.status=="number"&&typeof A.statusText=="string")return new Cj(A.status,A.statusText,A.data)}catch{}}function Uj(e,{relative:A}={}){As(kQ(),"useHref() may be used only in the context of a <Router> component.");let{basename:t,navigator:n}=R.useContext(cB),{hash:s,pathname:r,search:a}=UQ(e,{relative:A}),B=r;return t!=="/"&&(B=r==="/"?t:dc([t,r])),n.createHref({pathname:B,search:a,hash:s})}function kQ(){return R.useContext(ZQ)!=null}function Ao(){return As(kQ(),"useLocation() may be used only in the context of a <Router> component."),R.useContext(ZQ).location}var ZM="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function kM(e){R.useContext(cB).static||R.useLayoutEffect(e)}function za(){let{isDataRoute:e}=R.useContext(Hl);return e?Lj():Dj()}function Dj(){As(kQ(),"useNavigate() may be used only in the context of a <Router> component.");let e=R.useContext(gh),{basename:A,navigator:t}=R.useContext(cB),{matches:n}=R.useContext(Hl),{pathname:s}=Ao(),r=JSON.stringify(IM(n)),a=R.useRef(!1);return kM(()=>{a.current=!0}),R.useCallback((c,l={})=>{if($B(a.current,ZM),!a.current)return;if(typeof c=="number"){t.go(c);return}let g=OE(c,JSON.parse(r),s,l.relative==="path");e==null&&A!=="/"&&(g.pathname=g.pathname==="/"?A:dc([A,g.pathname])),(l.replace?t.replace:t.push)(g,l.state,l)},[A,t,r,s,e])}R.createContext(null);function UQ(e,{relative:A}={}){let{matches:t}=R.useContext(Hl),{pathname:n}=Ao(),s=JSON.stringify(IM(t));return R.useMemo(()=>OE(e,JSON.parse(s),n,A==="path"),[e,s,n,A])}function Fj(e,A){return UM(e,A)}function UM(e,A,t){As(kQ(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:n}=R.useContext(cB),{matches:s}=R.useContext(Hl),r=s[s.length-1],a=r?r.params:{},B=r?r.pathname:"/",c=r?r.pathnameBase:"/",l=r&&r.route;{let m=l&&l.path||"";MM(B,!l||m.endsWith("*")||m.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${B}" (under <Route path="${m}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
55
55
 
56
- Please change the parent <Route path="${m}"> to <Route path="${m==="/"?"*":`${m}/*`}">.`)}let g=Ao(),u;if(A){let m=typeof A=="string"?iG(A):A;As(c==="/"||m.pathname?.startsWith(c),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${c}" but pathname "${m.pathname}" was given in the \`location\` prop.`),u=m}else u=g;let f=u.pathname||"/",w=f;if(c!=="/"){let m=c.replace(/^\//,"").split("/");w="/"+f.replace(/^\//,"").split("/").slice(m.length).join("/")}let v=wM(e,{pathname:w});$B(l||v!=null,`No routes matched location "${u.pathname}${u.search}${u.hash}" `),$B(v==null||v[v.length-1].route.element!==void 0||v[v.length-1].route.Component!==void 0||v[v.length-1].route.lazy!==void 0,`Matched leaf route at location "${u.pathname}${u.search}${u.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let E=Rj(v&&v.map(m=>Object.assign({},m,{params:Object.assign({},a,m.params),pathname:dc([c,n.encodeLocation?n.encodeLocation(m.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:m.pathname]),pathnameBase:m.pathnameBase==="/"?c:dc([c,n.encodeLocation?n.encodeLocation(m.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:m.pathnameBase])})),s,t);return A&&E?R.createElement(ZQ.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...u},navigationType:"POP"}},E):E}function Mj(){let e=zj(),A=vj(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),t=e instanceof Error?e.stack:null,n="rgba(200,200,200, 0.5)",s={padding:"0.5rem",backgroundColor:n},r={padding:"2px 4px",backgroundColor:n},a=null;return console.error("Error handled by React Router default ErrorBoundary:",e),a=R.createElement(R.Fragment,null,R.createElement("p",null,"💿 Hey developer 👋"),R.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",R.createElement("code",{style:r},"ErrorBoundary")," or"," ",R.createElement("code",{style:r},"errorElement")," prop on your route.")),R.createElement(R.Fragment,null,R.createElement("h2",null,"Unexpected Application Error!"),R.createElement("h3",{style:{fontStyle:"italic"}},A),t?R.createElement("pre",{style:s},t):null,a)}var xj=R.createElement(Mj,null),DM=class extends R.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,A){return A.location!==e.location||A.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:A.error,location:A.location,revalidation:e.revalidation||A.revalidation}}componentDidCatch(e,A){this.props.onError?this.props.onError(e,A):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){const t=kj(e.digest);t&&(e=t)}let A=e!==void 0?R.createElement(Hl.Provider,{value:this.props.routeContext},R.createElement(JE.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?R.createElement(Pj,{error:e},A):A}};DM.contextType=EM;var KE=new WeakMap;function Pj({children:e,error:A}){let{basename:t}=R.useContext(cB);if(typeof A=="object"&&A&&"digest"in A&&typeof A.digest=="string"){let n=Zj(A.digest);if(n){let s=KE.get(A);if(s)throw s;let r=HM(n.location,t);if(pM&&!KE.get(A))if(r.isExternal||n.reloadDocument)window.location.href=r.absoluteURL||r.to;else{const a=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(r.to,{replace:n.replace}));throw KE.set(A,a),a}return R.createElement("meta",{httpEquiv:"refresh",content:`0;url=${r.absoluteURL||r.to}`})}}return e}function Tj({routeContext:e,match:A,children:t}){let n=R.useContext(gh);return n&&n.static&&n.staticContext&&(A.route.errorElement||A.route.ErrorBoundary)&&(n.staticContext._deepestRenderedBoundaryId=A.route.id),R.createElement(Hl.Provider,{value:e},t)}function Rj(e,A=[],t){let n=t?.state;if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(A.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let s=e,r=n?.errors;if(r!=null){let g=s.findIndex(u=>u.route.id&&r?.[u.route.id]!==void 0);As(g>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(r).join(",")}`),s=s.slice(0,Math.min(s.length,g+1))}let a=!1,B=-1;if(t&&n){a=n.renderFallback;for(let g=0;g<s.length;g++){let u=s[g];if((u.route.HydrateFallback||u.route.hydrateFallbackElement)&&(B=g),u.route.id){let{loaderData:f,errors:w}=n,v=u.route.loader&&!f.hasOwnProperty(u.route.id)&&(!w||w[u.route.id]===void 0);if(u.route.lazy||v){t.isStatic&&(a=!0),B>=0?s=s.slice(0,B+1):s=[s[0]];break}}}}let c=t?.onError,l=n&&c?(g,u)=>{c(g,{location:n.location,params:n.matches?.[0]?.params??{},unstable_pattern:Ij(n.matches),errorInfo:u})}:void 0;return s.reduceRight((g,u,f)=>{let w,v=!1,E=null,m=null;n&&(w=r&&u.route.id?r[u.route.id]:void 0,E=u.route.errorElement||xj,a&&(B<0&&f===0?(MM("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),v=!0,m=null):B===f&&(v=!0,m=u.route.hydrateFallbackElement||null)));let Z=A.concat(s.slice(0,f+1)),D=()=>{let T;return w?T=E:v?T=m:u.route.Component?T=R.createElement(u.route.Component,null):u.route.element?T=u.route.element:T=g,R.createElement(Tj,{match:u,routeContext:{outlet:g,matches:Z,isDataRoute:n!=null},children:T})};return n&&(u.route.ErrorBoundary||u.route.errorElement||f===0)?R.createElement(DM,{location:n.location,revalidation:n.revalidation,component:E,error:w,children:D(),routeContext:{outlet:null,matches:Z,isDataRoute:!0},onError:l}):D()},null)}function jE(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Sj(e){let A=R.useContext(gh);return As(A,jE(e)),A}function Vj(e){let A=R.useContext(gI);return As(A,jE(e)),A}function Wj(e){let A=R.useContext(Hl);return As(A,jE(e)),A}function _E(e){let A=Wj(e),t=A.matches[A.matches.length-1];return As(t.route.id,`${e} can only be used on routes that contain a unique "id"`),t.route.id}function Nj(){return _E("useRouteId")}function zj(){let e=R.useContext(JE),A=Vj("useRouteError"),t=_E("useRouteError");return e!==void 0?e:A.errors?.[t]}function Lj(){let{router:e}=Sj("useNavigate"),A=_E("useNavigate"),t=R.useRef(!1);return kM(()=>{t.current=!0}),R.useCallback(async(s,r={})=>{$B(t.current,ZM),t.current&&(typeof s=="number"?await e.navigate(s):await e.navigate(s,{fromRouteId:A,...r}))},[e,A])}var FM={};function MM(e,A,t){!A&&!FM[e]&&(FM[e]=!0,$B(!1,t))}R.memo(Xj);function Xj({routes:e,future:A,state:t,isStatic:n,onError:s}){return UM(e,void 0,{state:t,isStatic:n,onError:s})}function Oj({basename:e,children:A,initialEntries:t,initialIndex:n,unstable_useTransitions:s}){let r=R.useRef();r.current==null&&(r.current=$K({initialEntries:t,initialIndex:n,v5Compat:!0}));let a=r.current,[B,c]=R.useState({action:a.action,location:a.location}),l=R.useCallback(g=>{s===!1?c(g):R.startTransition(()=>c(g))},[s]);return R.useLayoutEffect(()=>a.listen(l),[a,l]),R.createElement(Jj,{basename:e,children:A,location:B.location,navigationType:B.action,navigator:a,unstable_useTransitions:s})}function uc(e){As(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function Jj({basename:e="/",children:A=null,location:t,navigationType:n="POP",navigator:s,static:r=!1,unstable_useTransitions:a}){As(!kQ(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let B=e.replace(/^\/*/,"/"),c=R.useMemo(()=>({basename:B,navigator:s,static:r,unstable_useTransitions:a,future:{}}),[B,s,r,a]);typeof t=="string"&&(t=iG(t));let{pathname:l="/",search:g="",hash:u="",state:f=null,key:w="default",unstable_mask:v}=t,E=R.useMemo(()=>{let m=pl(l,B);return m==null?null:{location:{pathname:m,search:g,hash:u,state:f,key:w,unstable_mask:v},navigationType:n}},[B,l,g,u,f,w,n,v]);return $B(E!=null,`<Router basename="${B}"> is not able to match the URL "${l}${g}${u}" because it does not start with the basename, so the <Router> won't render anything.`),E==null?null:R.createElement(cB.Provider,{value:c},R.createElement(ZQ.Provider,{children:A,value:E}))}function Kj({children:e,location:A}){return Fj(qE(e),A)}function qE(e,A=[]){let t=[];return R.Children.forEach(e,(n,s)=>{if(!R.isValidElement(n))return;let r=[...A,s];if(n.type===R.Fragment){t.push.apply(t,qE(n.props.children,r));return}As(n.type===uc,`[${typeof n.type=="string"?n.type:n.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),As(!n.props.index||!n.props.children,"An index route cannot have child routes.");let a={id:n.props.id||r.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,middleware:n.props.middleware,loader:n.props.loader,action:n.props.action,hydrateFallbackElement:n.props.hydrateFallbackElement,HydrateFallback:n.props.HydrateFallback,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.hasErrorBoundary===!0||n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(a.children=qE(n.props.children,r)),t.push(a)}),t}var dI="get",uI="application/x-www-form-urlencoded";function GI(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function jj(e){return GI(e)&&e.tagName.toLowerCase()==="button"}function _j(e){return GI(e)&&e.tagName.toLowerCase()==="form"}function qj(e){return GI(e)&&e.tagName.toLowerCase()==="input"}function $j(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function A_(e,A){return e.button===0&&(!A||A==="_self")&&!$j(e)}var fI=null;function e_(){if(fI===null)try{new FormData(document.createElement("form"),0),fI=!1}catch{fI=!0}return fI}var t_=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function $E(e){return e!=null&&!t_.has(e)?($B(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${uI}"`),null):e}function n_(e,A){let t,n,s,r,a;if(_j(e)){let B=e.getAttribute("action");n=B?pl(B,A):null,t=e.getAttribute("method")||dI,s=$E(e.getAttribute("enctype"))||uI,r=new FormData(e)}else if(jj(e)||qj(e)&&(e.type==="submit"||e.type==="image")){let B=e.form;if(B==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let c=e.getAttribute("formaction")||B.getAttribute("action");if(n=c?pl(c,A):null,t=e.getAttribute("formmethod")||B.getAttribute("method")||dI,s=$E(e.getAttribute("formenctype"))||$E(B.getAttribute("enctype"))||uI,r=new FormData(B,e),!e_()){let{name:l,type:g,value:u}=e;if(g==="image"){let f=l?`${l}.`:"";r.append(`${f}x`,"0"),r.append(`${f}y`,"0")}else l&&r.append(l,u)}}else{if(GI(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');t=dI,n=null,s=uI,a=e}return r&&s==="text/plain"&&(a=r,r=void 0),{action:n,method:t.toLowerCase(),encType:s,formData:r,body:a}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Ay(e,A){if(e===!1||e===null||typeof e>"u")throw new Error(A)}function xM(e,A,t,n){let s=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return t?s.pathname.endsWith("/")?s.pathname=`${s.pathname}_.${n}`:s.pathname=`${s.pathname}.${n}`:s.pathname==="/"?s.pathname=`_root.${n}`:A&&pl(s.pathname,A)==="/"?s.pathname=`${A.replace(/\/$/,"")}/_root.${n}`:s.pathname=`${s.pathname.replace(/\/$/,"")}.${n}`,s}async function s_(e,A){if(e.id in A)return A[e.id];try{let t=await import(e.module);return A[e.id]=t,t}catch(t){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function r_(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function a_(e,A,t){let n=await Promise.all(e.map(async s=>{let r=A.routes[s.route.id];if(r){let a=await s_(r,t);return a.links?a.links():[]}return[]}));return c_(n.flat(1).filter(r_).filter(s=>s.rel==="stylesheet"||s.rel==="preload").map(s=>s.rel==="stylesheet"?{...s,rel:"prefetch",as:"style"}:{...s,rel:"prefetch"}))}function PM(e,A,t,n,s,r){let a=(c,l)=>t[l]?c.route.id!==t[l].route.id:!0,B=(c,l)=>t[l].pathname!==c.pathname||t[l].route.path?.endsWith("*")&&t[l].params["*"]!==c.params["*"];return r==="assets"?A.filter((c,l)=>a(c,l)||B(c,l)):r==="data"?A.filter((c,l)=>{let g=n.routes[c.route.id];if(!g||!g.hasLoader)return!1;if(a(c,l)||B(c,l))return!0;if(c.route.shouldRevalidate){let u=c.route.shouldRevalidate({currentUrl:new URL(s.pathname+s.search+s.hash,window.origin),currentParams:t[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:c.params,defaultShouldRevalidate:!0});if(typeof u=="boolean")return u}return!0}):[]}function i_(e,A,{includeHydrateFallback:t}={}){return B_(e.map(n=>{let s=A.routes[n.route.id];if(!s)return[];let r=[s.module];return s.clientActionModule&&(r=r.concat(s.clientActionModule)),s.clientLoaderModule&&(r=r.concat(s.clientLoaderModule)),t&&s.hydrateFallbackModule&&(r=r.concat(s.hydrateFallbackModule)),s.imports&&(r=r.concat(s.imports)),r}).flat(1))}function B_(e){return[...new Set(e)]}function o_(e){let A={},t=Object.keys(e).sort();for(let n of t)A[n]=e[n];return A}function c_(e,A){let t=new Set;return new Set(A),e.reduce((n,s)=>{let r=JSON.stringify(o_(s));return t.has(r)||(t.add(r),n.push({key:r,link:s})),n},[])}function ey(){let e=R.useContext(gh);return Ay(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function l_(){let e=R.useContext(gI);return Ay(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var ty=R.createContext(void 0);ty.displayName="FrameworkContext";function ny(){let e=R.useContext(ty);return Ay(e,"You must render this element inside a <HydratedRouter> element"),e}function g_(e,A){let t=R.useContext(ty),[n,s]=R.useState(!1),[r,a]=R.useState(!1),{onFocus:B,onBlur:c,onMouseEnter:l,onMouseLeave:g,onTouchStart:u}=A,f=R.useRef(null);R.useEffect(()=>{if(e==="render"&&a(!0),e==="viewport"){let E=Z=>{Z.forEach(D=>{a(D.isIntersecting)})},m=new IntersectionObserver(E,{threshold:.5});return f.current&&m.observe(f.current),()=>{m.disconnect()}}},[e]),R.useEffect(()=>{if(n){let E=setTimeout(()=>{a(!0)},100);return()=>{clearTimeout(E)}}},[n]);let w=()=>{s(!0)},v=()=>{s(!1),a(!1)};return t?e!=="intent"?[r,f,{}]:[r,f,{onFocus:DQ(B,w),onBlur:DQ(c,v),onMouseEnter:DQ(l,w),onMouseLeave:DQ(g,v),onTouchStart:DQ(u,w)}]:[!1,f,{}]}function DQ(e,A){return t=>{e&&e(t),t.defaultPrevented||A(t)}}function d_({page:e,...A}){let t=Hj(),{router:n}=ey(),s=R.useMemo(()=>wM(n.routes,e,n.basename),[n.routes,e,n.basename]);return s?t?R.createElement(G_,{page:e,matches:s,...A}):R.createElement(f_,{page:e,matches:s,...A}):null}function u_(e){let{manifest:A,routeModules:t}=ny(),[n,s]=R.useState([]);return R.useEffect(()=>{let r=!1;return a_(e,A,t).then(a=>{r||s(a)}),()=>{r=!0}},[e,A,t]),n}function G_({page:e,matches:A,...t}){let n=Ao(),{future:s}=ny(),{basename:r}=ey(),a=R.useMemo(()=>{if(e===n.pathname+n.search+n.hash)return[];let B=xM(e,r,s.unstable_trailingSlashAwareDataRequests,"rsc"),c=!1,l=[];for(let g of A)typeof g.route.shouldRevalidate=="function"?c=!0:l.push(g.route.id);return c&&l.length>0&&B.searchParams.set("_routes",l.join(",")),[B.pathname+B.search]},[r,s.unstable_trailingSlashAwareDataRequests,e,n,A]);return R.createElement(R.Fragment,null,a.map(B=>R.createElement("link",{key:B,rel:"prefetch",as:"fetch",href:B,...t})))}function f_({page:e,matches:A,...t}){let n=Ao(),{future:s,manifest:r,routeModules:a}=ny(),{basename:B}=ey(),{loaderData:c,matches:l}=l_(),g=R.useMemo(()=>PM(e,A,l,r,n,"data"),[e,A,l,r,n]),u=R.useMemo(()=>PM(e,A,l,r,n,"assets"),[e,A,l,r,n]),f=R.useMemo(()=>{if(e===n.pathname+n.search+n.hash)return[];let E=new Set,m=!1;if(A.forEach(D=>{let T=r.routes[D.route.id];!T||!T.hasLoader||(!g.some(S=>S.route.id===D.route.id)&&D.route.id in c&&a[D.route.id]?.shouldRevalidate||T.hasClientLoader?m=!0:E.add(D.route.id))}),E.size===0)return[];let Z=xM(e,B,s.unstable_trailingSlashAwareDataRequests,"data");return m&&E.size>0&&Z.searchParams.set("_routes",A.filter(D=>E.has(D.route.id)).map(D=>D.route.id).join(",")),[Z.pathname+Z.search]},[B,s.unstable_trailingSlashAwareDataRequests,c,n,r,g,A,e,a]),w=R.useMemo(()=>i_(u,r),[u,r]),v=u_(u);return R.createElement(R.Fragment,null,f.map(E=>R.createElement("link",{key:E,rel:"prefetch",as:"fetch",href:E,...t})),w.map(E=>R.createElement("link",{key:E,rel:"modulepreload",href:E,...t})),v.map(({key:E,link:m})=>R.createElement("link",{key:E,nonce:t.nonce,...m,crossOrigin:m.crossOrigin??t.crossOrigin})))}function h_(...e){return A=>{e.forEach(t=>{typeof t=="function"?t(A):t!=null&&(t.current=A)})}}var w_=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{w_&&(window.__reactRouterVersion="7.14.0")}catch{}var TM=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,hI=R.forwardRef(function({onClick:A,discover:t="render",prefetch:n="none",relative:s,reloadDocument:r,replace:a,unstable_mask:B,state:c,target:l,to:g,preventScrollReset:u,viewTransition:f,unstable_defaultShouldRevalidate:w,...v},E){let{basename:m,navigator:Z,unstable_useTransitions:D}=R.useContext(cB),T=typeof g=="string"&&TM.test(g),S=HM(g,m);g=S.to;let F=Uj(g,{relative:s}),V=Ao(),N=null;if(B){let yA=OE(B,[],V.unstable_mask?V.unstable_mask.pathname:"/",!0);m!=="/"&&(yA.pathname=yA.pathname==="/"?m:dc([m,yA.pathname])),N=Z.createHref(yA)}let[X,eA,$]=g_(n,v),rA=v_(g,{replace:a,unstable_mask:B,state:c,target:l,preventScrollReset:u,relative:s,viewTransition:f,unstable_defaultShouldRevalidate:w,unstable_useTransitions:D});function iA(yA){A&&A(yA),yA.defaultPrevented||rA(yA)}let hA=!(S.isExternal||r),fA=R.createElement("a",{...v,...$,href:(hA?N:void 0)||S.absoluteURL||F,onClick:hA?iA:A,ref:h_(E,eA),target:l,"data-discover":!T&&t==="render"?"true":void 0});return X&&!T?R.createElement(R.Fragment,null,fA,R.createElement(d_,{page:F})):fA});hI.displayName="Link";var Q_=R.forwardRef(function({"aria-current":A="page",caseSensitive:t=!1,className:n="",end:s=!1,style:r,to:a,viewTransition:B,children:c,...l},g){let u=UQ(a,{relative:l.relative}),f=Ao(),w=R.useContext(gI),{navigator:v,basename:E}=R.useContext(cB),m=w!=null&&E_(u)&&B===!0,Z=v.encodeLocation?v.encodeLocation(u).pathname:u.pathname,D=f.pathname,T=w&&w.navigation&&w.navigation.location?w.navigation.location.pathname:null;t||(D=D.toLowerCase(),T=T?T.toLowerCase():null,Z=Z.toLowerCase()),T&&E&&(T=pl(T,E)||T);const S=Z!=="/"&&Z.endsWith("/")?Z.length-1:Z.length;let F=D===Z||!s&&D.startsWith(Z)&&D.charAt(S)==="/",V=T!=null&&(T===Z||!s&&T.startsWith(Z)&&T.charAt(Z.length)==="/"),N={isActive:F,isPending:V,isTransitioning:m},X=F?A:void 0,eA;typeof n=="function"?eA=n(N):eA=[n,F?"active":null,V?"pending":null,m?"transitioning":null].filter(Boolean).join(" ");let $=typeof r=="function"?r(N):r;return R.createElement(hI,{...l,"aria-current":X,className:eA,ref:g,style:$,to:a,viewTransition:B},typeof c=="function"?c(N):c)});Q_.displayName="NavLink";var b_=R.forwardRef(({discover:e="render",fetcherKey:A,navigate:t,reloadDocument:n,replace:s,state:r,method:a=dI,action:B,onSubmit:c,relative:l,preventScrollReset:g,viewTransition:u,unstable_defaultShouldRevalidate:f,...w},v)=>{let{unstable_useTransitions:E}=R.useContext(cB),m=H_(),Z=m_(B,{relative:l}),D=a.toLowerCase()==="get"?"get":"post",T=typeof B=="string"&&TM.test(B),S=F=>{if(c&&c(F),F.defaultPrevented)return;F.preventDefault();let V=F.nativeEvent.submitter,N=V?.getAttribute("formmethod")||a,X=()=>m(V||F.currentTarget,{fetcherKey:A,method:N,navigate:t,replace:s,state:r,relative:l,preventScrollReset:g,viewTransition:u,unstable_defaultShouldRevalidate:f});E&&t!==!1?R.startTransition(()=>X()):X()};return R.createElement("form",{ref:v,method:D,action:Z,onSubmit:n?c:S,...w,"data-discover":!T&&e==="render"?"true":void 0})});b_.displayName="Form";function C_(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function RM(e){let A=R.useContext(gh);return As(A,C_(e)),A}function v_(e,{target:A,replace:t,unstable_mask:n,state:s,preventScrollReset:r,relative:a,viewTransition:B,unstable_defaultShouldRevalidate:c,unstable_useTransitions:l}={}){let g=za(),u=Ao(),f=UQ(e,{relative:a});return R.useCallback(w=>{if(A_(w,A)){w.preventDefault();let v=t!==void 0?t:cI(u)===cI(f),E=()=>g(e,{replace:v,unstable_mask:n,state:s,preventScrollReset:r,relative:a,viewTransition:B,unstable_defaultShouldRevalidate:c});l?R.startTransition(()=>E()):E()}},[u,g,f,t,n,s,A,e,r,a,B,c,l])}var I_=0,p_=()=>`__${String(++I_)}__`;function H_(){let{router:e}=RM("useSubmit"),{basename:A}=R.useContext(cB),t=Nj(),n=e.fetch,s=e.navigate;return R.useCallback(async(r,a={})=>{let{action:B,method:c,encType:l,formData:g,body:u}=n_(r,A);if(a.navigate===!1){let f=a.fetcherKey||p_();await n(f,t,a.action||B,{unstable_defaultShouldRevalidate:a.unstable_defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:g,body:u,formMethod:a.method||c,formEncType:a.encType||l,flushSync:a.flushSync})}else await s(a.action||B,{unstable_defaultShouldRevalidate:a.unstable_defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:g,body:u,formMethod:a.method||c,formEncType:a.encType||l,replace:a.replace,state:a.state,fromRouteId:t,flushSync:a.flushSync,viewTransition:a.viewTransition})},[n,s,A,t])}function m_(e,{relative:A}={}){let{basename:t}=R.useContext(cB),n=R.useContext(Hl);As(n,"useFormAction must be used inside a RouteContext");let[s]=n.matches.slice(-1),r={...UQ(e||".",{relative:A})},a=Ao();if(e==null){r.search=a.search;let B=new URLSearchParams(r.search),c=B.getAll("index");if(c.some(g=>g==="")){B.delete("index"),c.filter(u=>u).forEach(u=>B.append("index",u));let g=B.toString();r.search=g?`?${g}`:""}}return(!e||e===".")&&s.route.index&&(r.search=r.search?r.search.replace(/^\?/,"?index&"):"?index"),t!=="/"&&(r.pathname=r.pathname==="/"?t:dc([t,r.pathname])),cI(r)}function E_(e,{relative:A}={}){let t=R.useContext(yM);As(t!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:n}=RM("useViewTransitionState"),s=UQ(e,{relative:A});if(!t.isTransitioning)return!1;let r=pl(t.currentLocation.pathname,n)||t.currentLocation.pathname,a=pl(t.nextLocation.pathname,n)||t.nextLocation.pathname;return lI(s.pathname,a)!=null||lI(s.pathname,r)!=null}const sy="ela@careshiphealth.com",BG="https://ela.careshiphealth.com",FQ="https://api.ela.careshiphealth.com",wI=`${FQ}/rt`,ry=420,MQ=540,y_=520,eo={FACE_LG_ICON:`${BG}/bolt/faceLg.svg`,AI_ASSISTANT_TALK_ICON:`${BG}/bolt/new/ai-assistant-talk-icon.svg`,AI_ASSISTANT_CHAT_ICON:`${BG}/bolt/new/ai-assistant-chat-icon.svg`,AI_ASSISTANT__CALL_ICON:`${BG}/bolt/new/ai-assistant-call-icon.svg`,AI_ASSISTANT_ICON_BW:`${BG}/bolt/new/ai-assistant-icon-bw.svg`,MINIMIZE_ICON:`${BG}/bolt/new/minimize-icon.svg`,MAXIMIZE_ICON:`${BG}/bolt/new/maximize-icon.svg`},ay="Ela",Y_=e=>p.jsxs("svg",{width:"34",height:"34",viewBox:"0 0 34 34",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[p.jsx("path",{d:"M14.788 9.48971C14.5248 9.05746 14.1061 8.74231 13.6179 8.60892C13.1297 8.47552 12.609 8.53399 12.1625 8.77233C10.0479 9.9113 8.85588 12.1545 9.63525 14.3233C10.5054 16.7288 11.8175 18.9504 13.5041 20.8736C15.178 22.7934 17.1908 24.3887 19.4421 25.5799C21.4658 26.6469 23.8375 25.7746 25.2439 23.8137C25.5398 23.4011 25.6681 22.8917 25.603 22.3882C25.538 21.8848 25.2843 21.4247 24.8933 21.1009L23.3591 19.8338C23.0516 19.5788 22.6745 19.4221 22.2768 19.384C21.8791 19.346 21.4792 19.4283 21.1288 19.6203L18.456 21.0859L17.857 20.6704C17.1019 20.1437 16.411 19.5305 15.7985 18.8432C15.1987 18.1437 14.6865 17.3736 14.2732 16.55L13.9463 15.9052L15.7449 13.4461C15.9827 13.1198 16.1177 12.73 16.1327 12.3265C16.1477 11.923 16.042 11.5243 15.829 11.1813L14.788 9.48971ZM11.0452 6.69431C12.0219 6.171 13.1616 6.041 14.231 6.33095C15.3004 6.6209 16.2184 7.30884 16.797 8.2538L17.8352 9.94349C18.2934 10.6853 18.5203 11.5468 18.4868 12.4181C18.4533 13.2893 18.161 14.1309 17.6471 14.8353L16.7193 16.1029C16.9446 16.4768 17.2323 16.8985 17.575 17.2949C17.9164 17.6843 18.2917 18.0262 18.6269 18.299L19.9935 17.5482C20.7578 17.1299 21.63 16.9506 22.4973 17.0335C23.3646 17.1164 24.1871 17.4578 24.8582 18.0133L26.3925 19.2804C27.2451 19.9846 27.7986 20.9863 27.9411 22.0829C28.0836 23.1796 27.8044 24.2894 27.1601 25.1881C25.2861 27.8016 21.707 29.439 18.3439 27.665C15.8368 26.3392 13.5952 24.5633 11.7308 22.4261C9.84914 20.2812 8.38523 17.8032 7.41459 15.1201C6.13111 11.5432 8.22187 8.21369 11.0457 6.69662",fill:e?.color||"black"}),p.jsx("path",{d:"M25.026 11.6502L25.3027 11.0139C25.7888 9.88815 26.6795 8.9853 27.7991 8.48354L28.6541 8.10358C28.7574 8.05583 28.8449 7.97955 28.9061 7.88374C28.9674 7.78793 29 7.67659 29 7.56288C29 7.44918 28.9674 7.33784 28.9061 7.24203C28.8449 7.14622 28.7574 7.06993 28.6541 7.02218L27.8464 6.66247C26.6986 6.14642 25.7927 5.21019 25.3151 4.04664L25.0305 3.36093C24.9887 3.25454 24.9158 3.1632 24.8213 3.09882C24.7267 3.03444 24.615 3 24.5006 3C24.3862 3 24.2745 3.03444 24.18 3.09882C24.0854 3.1632 24.0125 3.25454 23.9707 3.36093L23.6861 4.04777C23.208 5.2111 22.3017 6.14692 21.1537 6.66247L20.3471 7.02106C20.2435 7.06867 20.1557 7.14497 20.0942 7.2409C20.0327 7.33684 20 7.44838 20 7.56232C20 7.67626 20.0327 7.78781 20.0942 7.88374C20.1557 7.97967 20.2435 8.05597 20.3471 8.10358L21.201 8.48466C22.3208 8.98593 23.2119 9.88837 23.6985 11.0139L23.9752 11.6502C24.0185 11.7538 24.0914 11.8423 24.1849 11.9045C24.2784 11.9668 24.3883 12 24.5006 12C24.613 12 24.7228 11.9668 24.8163 11.9045C24.9098 11.8423 24.9827 11.7538 25.026 11.6502Z",fill:e?.color||"black"})]}),iy=R.createContext({});function QI(e){const A=R.useRef(null);return A.current===null&&(A.current=e()),A.current}const By=typeof window<"u"?R.useLayoutEffect:R.useEffect,bI=R.createContext(null);function oy(e,A){e.indexOf(A)===-1&&e.push(A)}function CI(e,A){const t=e.indexOf(A);t>-1&&e.splice(t,1)}const Gc=(e,A,t)=>t>A?A:t<e?e:t;let cy=()=>{};const Ad={},SM=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function VM(e){return typeof e=="object"&&e!==null}const WM=e=>/^0[^.\s]+$/u.test(e);function NM(e){let A;return()=>(A===void 0&&(A=e()),A)}const lB=e=>e,Z_=(e,A)=>t=>A(e(t)),xQ=(...e)=>e.reduce(Z_),PQ=(e,A,t)=>{const n=A-e;return n===0?1:(t-e)/n};class ly{constructor(){this.subscriptions=[]}add(A){return oy(this.subscriptions,A),()=>CI(this.subscriptions,A)}notify(A,t,n){const s=this.subscriptions.length;if(s)if(s===1)this.subscriptions[0](A,t,n);else for(let r=0;r<s;r++){const a=this.subscriptions[r];a&&a(A,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Hi=e=>e*1e3,gB=e=>e/1e3;function zM(e,A){return A?e*(1e3/A):0}const LM=(e,A,t)=>(((1-3*t+3*A)*e+(3*t-6*A))*e+3*A)*e,k_=1e-7,U_=12;function D_(e,A,t,n,s){let r,a,B=0;do a=A+(t-A)/2,r=LM(a,n,s)-e,r>0?t=a:A=a;while(Math.abs(r)>k_&&++B<U_);return a}function TQ(e,A,t,n){if(e===A&&t===n)return lB;const s=r=>D_(r,0,1,e,t);return r=>r===0||r===1?r:LM(s(r),A,n)}const XM=e=>A=>A<=.5?e(2*A)/2:(2-e(2*(1-A)))/2,OM=e=>A=>1-e(1-A),JM=TQ(.33,1.53,.69,.99),gy=OM(JM),KM=XM(gy),jM=e=>e>=1?1:(e*=2)<1?.5*gy(e):.5*(2-Math.pow(2,-10*(e-1))),dy=e=>1-Math.sin(Math.acos(e)),_M=OM(dy),qM=XM(dy),F_=TQ(.42,0,1,1),M_=TQ(0,0,.58,1),$M=TQ(.42,0,.58,1),x_=e=>Array.isArray(e)&&typeof e[0]!="number",Ax=e=>Array.isArray(e)&&typeof e[0]=="number",P_={linear:lB,easeIn:F_,easeInOut:$M,easeOut:M_,circIn:dy,circInOut:qM,circOut:_M,backIn:gy,backInOut:KM,backOut:JM,anticipate:jM},T_=e=>typeof e=="string",ex=e=>{if(Ax(e)){cy(e.length===4);const[A,t,n,s]=e;return TQ(A,t,n,s)}else if(T_(e))return P_[e];return e},vI=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function R_(e,A){let t=new Set,n=new Set,s=!1,r=!1;const a=new WeakSet;let B={delta:0,timestamp:0,isProcessing:!1};function c(g){a.has(g)&&(l.schedule(g),e()),g(B)}const l={schedule:(g,u=!1,f=!1)=>{const v=f&&s?t:n;return u&&a.add(g),v.add(g),g},cancel:g=>{n.delete(g),a.delete(g)},process:g=>{if(B=g,s){r=!0;return}s=!0;const u=t;t=n,n=u,t.forEach(c),t.clear(),s=!1,r&&(r=!1,l.process(g))}};return l}const S_=40;function tx(e,A){let t=!1,n=!0;const s={delta:0,timestamp:0,isProcessing:!1},r=()=>t=!0,a=vI.reduce((T,S)=>(T[S]=R_(r),T),{}),{setup:B,read:c,resolveKeyframes:l,preUpdate:g,update:u,preRender:f,render:w,postRender:v}=a,E=()=>{const T=Ad.useManualTiming,S=T?s.timestamp:performance.now();t=!1,T||(s.delta=n?1e3/60:Math.max(Math.min(S-s.timestamp,S_),1)),s.timestamp=S,s.isProcessing=!0,B.process(s),c.process(s),l.process(s),g.process(s),u.process(s),f.process(s),w.process(s),v.process(s),s.isProcessing=!1,t&&A&&(n=!1,e(E))},m=()=>{t=!0,n=!0,s.isProcessing||e(E)};return{schedule:vI.reduce((T,S)=>{const F=a[S];return T[S]=(V,N=!1,X=!1)=>(t||m(),F.schedule(V,N,X)),T},{}),cancel:T=>{for(let S=0;S<vI.length;S++)a[vI[S]].cancel(T)},state:s,steps:a}}const{schedule:cn,cancel:ed,state:kr,steps:uy}=tx(typeof requestAnimationFrame<"u"?requestAnimationFrame:lB,!0);let II;function V_(){II=void 0}const ca={now:()=>(II===void 0&&ca.set(kr.isProcessing||Ad.useManualTiming?kr.timestamp:performance.now()),II),set:e=>{II=e,queueMicrotask(V_)}},nx=e=>A=>typeof A=="string"&&A.startsWith(e),sx=nx("--"),W_=nx("var(--"),Gy=e=>W_(e)?N_.test(e.split("/*")[0].trim()):!1,N_=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function rx(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const dh={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},RQ={...dh,transform:e=>Gc(0,1,e)},pI={...dh,default:1},SQ=e=>Math.round(e*1e5)/1e5,fy=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function z_(e){return e==null}const L_=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,hy=(e,A)=>t=>!!(typeof t=="string"&&L_.test(t)&&t.startsWith(e)||A&&!z_(t)&&Object.prototype.hasOwnProperty.call(t,A)),ax=(e,A,t)=>n=>{if(typeof n!="string")return n;const[s,r,a,B]=n.match(fy);return{[e]:parseFloat(s),[A]:parseFloat(r),[t]:parseFloat(a),alpha:B!==void 0?parseFloat(B):1}},X_=e=>Gc(0,255,e),wy={...dh,transform:e=>Math.round(X_(e))},oG={test:hy("rgb","red"),parse:ax("red","green","blue"),transform:({red:e,green:A,blue:t,alpha:n=1})=>"rgba("+wy.transform(e)+", "+wy.transform(A)+", "+wy.transform(t)+", "+SQ(RQ.transform(n))+")"};function O_(e){let A="",t="",n="",s="";return e.length>5?(A=e.substring(1,3),t=e.substring(3,5),n=e.substring(5,7),s=e.substring(7,9)):(A=e.substring(1,2),t=e.substring(2,3),n=e.substring(3,4),s=e.substring(4,5),A+=A,t+=t,n+=n,s+=s),{red:parseInt(A,16),green:parseInt(t,16),blue:parseInt(n,16),alpha:s?parseInt(s,16)/255:1}}const Qy={test:hy("#"),parse:O_,transform:oG.transform},VQ=e=>({test:A=>typeof A=="string"&&A.endsWith(e)&&A.split(" ").length===1,parse:parseFloat,transform:A=>`${A}${e}`}),td=VQ("deg"),fc=VQ("%"),Be=VQ("px"),J_=VQ("vh"),K_=VQ("vw"),ix={...fc,parse:e=>fc.parse(e)/100,transform:e=>fc.transform(e*100)},uh={test:hy("hsl","hue"),parse:ax("hue","saturation","lightness"),transform:({hue:e,saturation:A,lightness:t,alpha:n=1})=>"hsla("+Math.round(e)+", "+fc.transform(SQ(A))+", "+fc.transform(SQ(t))+", "+SQ(RQ.transform(n))+")"},Ds={test:e=>oG.test(e)||Qy.test(e)||uh.test(e),parse:e=>oG.test(e)?oG.parse(e):uh.test(e)?uh.parse(e):Qy.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?oG.transform(e):uh.transform(e),getAnimatableNone:e=>{const A=Ds.parse(e);return A.alpha=0,Ds.transform(A)}},j_=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function __(e){return isNaN(e)&&typeof e=="string"&&(e.match(fy)?.length||0)+(e.match(j_)?.length||0)>0}const Bx="number",ox="color",q_="var",$_="var(",cx="${}",A6=/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 Gh(e){const A=e.toString(),t=[],n={color:[],number:[],var:[]},s=[];let r=0;const B=A.replace(A6,c=>(Ds.test(c)?(n.color.push(r),s.push(ox),t.push(Ds.parse(c))):c.startsWith($_)?(n.var.push(r),s.push(q_),t.push(c)):(n.number.push(r),s.push(Bx),t.push(parseFloat(c))),++r,cx)).split(cx);return{values:t,split:B,indexes:n,types:s}}function e6(e){return Gh(e).values}function lx({split:e,types:A}){const t=e.length;return n=>{let s="";for(let r=0;r<t;r++)if(s+=e[r],n[r]!==void 0){const a=A[r];a===Bx?s+=SQ(n[r]):a===ox?s+=Ds.transform(n[r]):s+=n[r]}return s}}function t6(e){return lx(Gh(e))}const n6=e=>typeof e=="number"?0:Ds.test(e)?Ds.getAnimatableNone(e):e,s6=(e,A)=>typeof e=="number"?A?.trim().endsWith("/")?e:0:n6(e);function r6(e){const A=Gh(e);return lx(A)(A.values.map((n,s)=>s6(n,A.split[s])))}const to={test:__,parse:e6,createTransformer:t6,getAnimatableNone:r6};function by(e,A,t){return t<0&&(t+=1),t>1&&(t-=1),t<1/6?e+(A-e)*6*t:t<1/2?A:t<2/3?e+(A-e)*(2/3-t)*6:e}function a6({hue:e,saturation:A,lightness:t,alpha:n}){e/=360,A/=100,t/=100;let s=0,r=0,a=0;if(!A)s=r=a=t;else{const B=t<.5?t*(1+A):t+A-t*A,c=2*t-B;s=by(c,B,e+1/3),r=by(c,B,e),a=by(c,B,e-1/3)}return{red:Math.round(s*255),green:Math.round(r*255),blue:Math.round(a*255),alpha:n}}function HI(e,A){return t=>t>0?A:e}const mn=(e,A,t)=>e+(A-e)*t,Cy=(e,A,t)=>{const n=e*e,s=t*(A*A-n)+n;return s<0?0:Math.sqrt(s)},i6=[Qy,oG,uh],B6=e=>i6.find(A=>A.test(e));function gx(e){const A=B6(e);if(!A)return!1;let t=A.parse(e);return A===uh&&(t=a6(t)),t}const dx=(e,A)=>{const t=gx(e),n=gx(A);if(!t||!n)return HI(e,A);const s={...t};return r=>(s.red=Cy(t.red,n.red,r),s.green=Cy(t.green,n.green,r),s.blue=Cy(t.blue,n.blue,r),s.alpha=mn(t.alpha,n.alpha,r),oG.transform(s))},vy=new Set(["none","hidden"]);function o6(e,A){return vy.has(e)?t=>t<=0?e:A:t=>t>=1?A:e}function c6(e,A){return t=>mn(e,A,t)}function Iy(e){return typeof e=="number"?c6:typeof e=="string"?Gy(e)?HI:Ds.test(e)?dx:d6:Array.isArray(e)?ux:typeof e=="object"?Ds.test(e)?dx:l6:HI}function ux(e,A){const t=[...e],n=t.length,s=e.map((r,a)=>Iy(r)(r,A[a]));return r=>{for(let a=0;a<n;a++)t[a]=s[a](r);return t}}function l6(e,A){const t={...e,...A},n={};for(const s in t)e[s]!==void 0&&A[s]!==void 0&&(n[s]=Iy(e[s])(e[s],A[s]));return s=>{for(const r in n)t[r]=n[r](s);return t}}function g6(e,A){const t=[],n={color:0,var:0,number:0};for(let s=0;s<A.values.length;s++){const r=A.types[s],a=e.indexes[r][n[r]],B=e.values[a]??0;t[s]=B,n[r]++}return t}const d6=(e,A)=>{const t=to.createTransformer(A),n=Gh(e),s=Gh(A);return n.indexes.var.length===s.indexes.var.length&&n.indexes.color.length===s.indexes.color.length&&n.indexes.number.length>=s.indexes.number.length?vy.has(e)&&!s.values.length||vy.has(A)&&!n.values.length?o6(e,A):xQ(ux(g6(n,s),s.values),t):HI(e,A)};function Gx(e,A,t){return typeof e=="number"&&typeof A=="number"&&typeof t=="number"?mn(e,A,t):Iy(e)(e,A)}const u6=e=>{const A=({timestamp:t})=>e(t);return{start:(t=!0)=>cn.update(A,t),stop:()=>ed(A),now:()=>kr.isProcessing?kr.timestamp:ca.now()}},fx=(e,A,t=10)=>{let n="";const s=Math.max(Math.round(A/t),2);for(let r=0;r<s;r++)n+=Math.round(e(r/(s-1))*1e4)/1e4+", ";return`linear(${n.substring(0,n.length-2)})`},mI=2e4;function py(e){let A=0;const t=50;let n=e.next(A);for(;!n.done&&A<mI;)A+=t,n=e.next(A);return A>=mI?1/0:A}function G6(e,A=100,t){const n=t({...e,keyframes:[0,A]}),s=Math.min(py(n),mI);return{type:"keyframes",ease:r=>n.next(s*r).value/A,duration:gB(s)}}const es={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 Hy(e,A){return e*Math.sqrt(1-A*A)}const f6=12;function h6(e,A,t){let n=t;for(let s=1;s<f6;s++)n=n-e(n)/A(n);return n}const my=.001;function w6({duration:e=es.duration,bounce:A=es.bounce,velocity:t=es.velocity,mass:n=es.mass}){let s,r,a=1-A;a=Gc(es.minDamping,es.maxDamping,a),e=Gc(es.minDuration,es.maxDuration,gB(e)),a<1?(s=l=>{const g=l*a,u=g*e,f=g-t,w=Hy(l,a),v=Math.exp(-u);return my-f/w*v},r=l=>{const u=l*a*e,f=u*t+t,w=Math.pow(a,2)*Math.pow(l,2)*e,v=Math.exp(-u),E=Hy(Math.pow(l,2),a);return(-s(l)+my>0?-1:1)*((f-w)*v)/E}):(s=l=>{const g=Math.exp(-l*e),u=(l-t)*e+1;return-my+g*u},r=l=>{const g=Math.exp(-l*e),u=(t-l)*(e*e);return g*u});const B=5/e,c=h6(s,r,B);if(e=Hi(e),isNaN(c))return{stiffness:es.stiffness,damping:es.damping,duration:e};{const l=Math.pow(c,2)*n;return{stiffness:l,damping:a*2*Math.sqrt(n*l),duration:e}}}const Q6=["duration","bounce"],b6=["stiffness","damping","mass"];function hx(e,A){return A.some(t=>e[t]!==void 0)}function C6(e){let A={velocity:es.velocity,stiffness:es.stiffness,damping:es.damping,mass:es.mass,isResolvedFromDuration:!1,...e};if(!hx(e,b6)&&hx(e,Q6))if(A.velocity=0,e.visualDuration){const t=e.visualDuration,n=2*Math.PI/(t*1.2),s=n*n,r=2*Gc(.05,1,1-(e.bounce||0))*Math.sqrt(s);A={...A,mass:es.mass,stiffness:s,damping:r}}else{const t=w6({...e,velocity:0});A={...A,...t,mass:es.mass},A.isResolvedFromDuration=!0}return A}function EI(e=es.visualDuration,A=es.bounce){const t=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:A}:e;let{restSpeed:n,restDelta:s}=t;const r=t.keyframes[0],a=t.keyframes[t.keyframes.length-1],B={done:!1,value:r},{stiffness:c,damping:l,mass:g,duration:u,velocity:f,isResolvedFromDuration:w}=C6({...t,velocity:-gB(t.velocity||0)}),v=f||0,E=l/(2*Math.sqrt(c*g)),m=a-r,Z=gB(Math.sqrt(c/g)),D=Math.abs(m)<5;n||(n=D?es.restSpeed.granular:es.restSpeed.default),s||(s=D?es.restDelta.granular:es.restDelta.default);let T,S,F,V,N,X;if(E<1)F=Hy(Z,E),V=(v+E*Z*m)/F,T=$=>{const rA=Math.exp(-E*Z*$);return a-rA*(V*Math.sin(F*$)+m*Math.cos(F*$))},N=E*Z*V+m*F,X=E*Z*m-V*F,S=$=>Math.exp(-E*Z*$)*(N*Math.sin(F*$)+X*Math.cos(F*$));else if(E===1){T=rA=>a-Math.exp(-Z*rA)*(m+(v+Z*m)*rA);const $=v+Z*m;S=rA=>Math.exp(-Z*rA)*(Z*$*rA-v)}else{const $=Z*Math.sqrt(E*E-1);T=fA=>{const yA=Math.exp(-E*Z*fA),L=Math.min($*fA,300);return a-yA*((v+E*Z*m)*Math.sinh(L)+$*m*Math.cosh(L))/$};const rA=(v+E*Z*m)/$,iA=E*Z*rA-m*$,hA=E*Z*m-rA*$;S=fA=>{const yA=Math.exp(-E*Z*fA),L=Math.min($*fA,300);return yA*(iA*Math.sinh(L)+hA*Math.cosh(L))}}const eA={calculatedDuration:w&&u||null,velocity:$=>Hi(S($)),next:$=>{if(!w&&E<1){const iA=Math.exp(-E*Z*$),hA=Math.sin(F*$),fA=Math.cos(F*$),yA=a-iA*(V*hA+m*fA),L=Hi(iA*(N*hA+X*fA));return B.done=Math.abs(L)<=n&&Math.abs(a-yA)<=s,B.value=B.done?a:yA,B}const rA=T($);if(w)B.done=$>=u;else{const iA=Hi(S($));B.done=Math.abs(iA)<=n&&Math.abs(a-rA)<=s}return B.value=B.done?a:rA,B},toString:()=>{const $=Math.min(py(eA),mI),rA=fx(iA=>eA.next($*iA).value,$,30);return $+"ms "+rA},toTransition:()=>{}};return eA}EI.applyToOptions=e=>{const A=G6(e,100,EI);return e.ease=A.ease,e.duration=Hi(A.duration),e.type="keyframes",e};const v6=5;function wx(e,A,t){const n=Math.max(A-v6,0);return zM(t-e(n),A-n)}function Ey({keyframes:e,velocity:A=0,power:t=.8,timeConstant:n=325,bounceDamping:s=10,bounceStiffness:r=500,modifyTarget:a,min:B,max:c,restDelta:l=.5,restSpeed:g}){const u=e[0],f={done:!1,value:u},w=X=>B!==void 0&&X<B||c!==void 0&&X>c,v=X=>B===void 0?c:c===void 0||Math.abs(B-X)<Math.abs(c-X)?B:c;let E=t*A;const m=u+E,Z=a===void 0?m:a(m);Z!==m&&(E=Z-u);const D=X=>-E*Math.exp(-X/n),T=X=>Z+D(X),S=X=>{const eA=D(X),$=T(X);f.done=Math.abs(eA)<=l,f.value=f.done?Z:$};let F,V;const N=X=>{w(f.value)&&(F=X,V=EI({keyframes:[f.value,v(f.value)],velocity:wx(T,X,f.value),damping:s,stiffness:r,restDelta:l,restSpeed:g}))};return N(0),{calculatedDuration:null,next:X=>{let eA=!1;return!V&&F===void 0&&(eA=!0,S(X),N(X)),F!==void 0&&X>=F?V.next(X-F):(!eA&&S(X),f)}}}function I6(e,A,t){const n=[],s=t||Ad.mix||Gx,r=e.length-1;for(let a=0;a<r;a++){let B=s(e[a],e[a+1]);if(A){const c=Array.isArray(A)?A[a]||lB:A;B=xQ(c,B)}n.push(B)}return n}function p6(e,A,{clamp:t=!0,ease:n,mixer:s}={}){const r=e.length;if(cy(r===A.length),r===1)return()=>A[0];if(r===2&&A[0]===A[1])return()=>A[1];const a=e[0]===e[1];e[0]>e[r-1]&&(e=[...e].reverse(),A=[...A].reverse());const B=I6(A,n,s),c=B.length,l=g=>{if(a&&g<e[0])return A[0];let u=0;if(c>1)for(;u<e.length-2&&!(g<e[u+1]);u++);const f=PQ(e[u],e[u+1],g);return B[u](f)};return t?g=>l(Gc(e[0],e[r-1],g)):l}function H6(e,A){const t=e[e.length-1];for(let n=1;n<=A;n++){const s=PQ(0,A,n);e.push(mn(t,1,s))}}function m6(e){const A=[0];return H6(A,e.length-1),A}function E6(e,A){return e.map(t=>t*A)}function y6(e,A){return e.map(()=>A||$M).splice(0,e.length-1)}function WQ({duration:e=300,keyframes:A,times:t,ease:n="easeInOut"}){const s=x_(n)?n.map(ex):ex(n),r={done:!1,value:A[0]},a=E6(t&&t.length===A.length?t:m6(A),e),B=p6(a,A,{ease:Array.isArray(s)?s:y6(A,s)});return{calculatedDuration:e,next:c=>(r.value=B(c),r.done=c>=e,r)}}const Y6=e=>e!==null;function yI(e,{repeat:A,repeatType:t="loop"},n,s=1){const r=e.filter(Y6),B=s<0||A&&t!=="loop"&&A%2===1?0:r.length-1;return!B||n===void 0?r[B]:n}const Z6={decay:Ey,inertia:Ey,tween:WQ,keyframes:WQ,spring:EI};function Qx(e){typeof e.type=="string"&&(e.type=Z6[e.type])}class yy{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(A=>{this.resolve=A})}notifyFinished(){this.resolve()}then(A,t){return this.finished.then(A,t)}}const k6=e=>e/100;class YI extends yy{constructor(A){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{const{motionValue:t}=this.options;t&&t.updatedAt!==ca.now()&&this.tick(ca.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=A,this.initAnimation(),this.play(),A.autoplay===!1&&this.pause()}initAnimation(){const{options:A}=this;Qx(A);const{type:t=WQ,repeat:n=0,repeatDelay:s=0,repeatType:r,velocity:a=0}=A;let{keyframes:B}=A;const c=t||WQ;c!==WQ&&typeof B[0]!="number"&&(this.mixKeyframes=xQ(k6,Gx(B[0],B[1])),B=[0,100]);const l=c({...A,keyframes:B});r==="mirror"&&(this.mirroredGenerator=c({...A,keyframes:[...B].reverse(),velocity:-a})),l.calculatedDuration===null&&(l.calculatedDuration=py(l));const{calculatedDuration:g}=l;this.calculatedDuration=g,this.resolvedDuration=g+s,this.totalDuration=this.resolvedDuration*(n+1)-s,this.generator=l}updateTime(A){const t=Math.round(A-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=t}tick(A,t=!1){const{generator:n,totalDuration:s,mixKeyframes:r,mirroredGenerator:a,resolvedDuration:B,calculatedDuration:c}=this;if(this.startTime===null)return n.next(0);const{delay:l=0,keyframes:g,repeat:u,repeatType:f,repeatDelay:w,type:v,onUpdate:E,finalKeyframe:m}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,A):this.speed<0&&(this.startTime=Math.min(A-s/this.speed,this.startTime)),t?this.currentTime=A:this.updateTime(A);const Z=this.currentTime-l*(this.playbackSpeed>=0?1:-1),D=this.playbackSpeed>=0?Z<0:Z>s;this.currentTime=Math.max(Z,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=s);let T=this.currentTime,S=n;if(u){const X=Math.min(this.currentTime,s)/B;let eA=Math.floor(X),$=X%1;!$&&X>=1&&($=1),$===1&&eA--,eA=Math.min(eA,u+1),eA%2&&(f==="reverse"?($=1-$,w&&($-=w/B)):f==="mirror"&&(S=a)),T=Gc(0,1,$)*B}let F;D?(this.delayState.value=g[0],F=this.delayState):F=S.next(T),r&&!D&&(F.value=r(F.value));let{done:V}=F;!D&&c!==null&&(V=this.playbackSpeed>=0?this.currentTime>=s:this.currentTime<=0);const N=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&V);return N&&v!==Ey&&(F.value=yI(g,this.options,m,this.speed)),E&&E(F.value),N&&this.finish(),F}then(A,t){return this.finished.then(A,t)}get duration(){return gB(this.calculatedDuration)}get iterationDuration(){const{delay:A=0}=this.options||{};return this.duration+gB(A)}get time(){return gB(this.currentTime)}set time(A){A=Hi(A),this.currentTime=A,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=A:this.driver&&(this.startTime=this.driver.now()-A/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=A,this.tick(A))}getGeneratorVelocity(){const A=this.currentTime;if(A<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(A);const t=this.generator.next(A).value;return wx(n=>this.generator.next(n).value,A,t)}get speed(){return this.playbackSpeed}set speed(A){const t=this.playbackSpeed!==A;t&&this.driver&&this.updateTime(ca.now()),this.playbackSpeed=A,t&&this.driver&&(this.time=gB(this.currentTime))}play(){if(this.isStopped)return;const{driver:A=u6,startTime:t}=this.options;this.driver||(this.driver=A(s=>this.tick(s))),this.options.onPlay?.();const n=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=n):this.holdTime!==null?this.startTime=n-this.holdTime:this.startTime||(this.startTime=t??n),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(ca.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(A){return this.startTime=0,this.tick(A,!0)}attachTimeline(A){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),A.observe(this)}}function U6(e){for(let A=1;A<e.length;A++)e[A]??(e[A]=e[A-1])}const cG=e=>e*180/Math.PI,Yy=e=>{const A=cG(Math.atan2(e[1],e[0]));return Zy(A)},D6={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Yy,rotateZ:Yy,skewX:e=>cG(Math.atan(e[1])),skewY:e=>cG(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Zy=e=>(e=e%360,e<0&&(e+=360),e),bx=Yy,Cx=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),vx=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),F6={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Cx,scaleY:vx,scale:e=>(Cx(e)+vx(e))/2,rotateX:e=>Zy(cG(Math.atan2(e[6],e[5]))),rotateY:e=>Zy(cG(Math.atan2(-e[2],e[0]))),rotateZ:bx,rotate:bx,skewX:e=>cG(Math.atan(e[4])),skewY:e=>cG(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function ky(e){return e.includes("scale")?1:0}function Uy(e,A){if(!e||e==="none")return ky(A);const t=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let n,s;if(t)n=F6,s=t;else{const B=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);n=D6,s=B}if(!s)return ky(A);const r=n[A],a=s[1].split(",").map(x6);return typeof r=="function"?r(a):a[r]}const M6=(e,A)=>{const{transform:t="none"}=getComputedStyle(e);return Uy(t,A)};function x6(e){return parseFloat(e.trim())}const fh=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],hh=new Set(fh),Ix=e=>e===dh||e===Be,P6=new Set(["x","y","z"]),T6=fh.filter(e=>!P6.has(e));function R6(e){const A=[];return T6.forEach(t=>{const n=e.getValue(t);n!==void 0&&(A.push([t,n.get()]),n.set(t.startsWith("scale")?1:0))}),A}const nd={width:({x:e},{paddingLeft:A="0",paddingRight:t="0",boxSizing:n})=>{const s=e.max-e.min;return n==="border-box"?s:s-parseFloat(A)-parseFloat(t)},height:({y:e},{paddingTop:A="0",paddingBottom:t="0",boxSizing:n})=>{const s=e.max-e.min;return n==="border-box"?s:s-parseFloat(A)-parseFloat(t)},top:(e,{top:A})=>parseFloat(A),left:(e,{left:A})=>parseFloat(A),bottom:({y:e},{top:A})=>parseFloat(A)+(e.max-e.min),right:({x:e},{left:A})=>parseFloat(A)+(e.max-e.min),x:(e,{transform:A})=>Uy(A,"x"),y:(e,{transform:A})=>Uy(A,"y")};nd.translateX=nd.x,nd.translateY=nd.y;const lG=new Set;let Dy=!1,Fy=!1,My=!1;function px(){if(Fy){const e=Array.from(lG).filter(n=>n.needsMeasurement),A=new Set(e.map(n=>n.element)),t=new Map;A.forEach(n=>{const s=R6(n);s.length&&(t.set(n,s),n.render())}),e.forEach(n=>n.measureInitialState()),A.forEach(n=>{n.render();const s=t.get(n);s&&s.forEach(([r,a])=>{n.getValue(r)?.set(a)})}),e.forEach(n=>n.measureEndState()),e.forEach(n=>{n.suspendedScrollY!==void 0&&window.scrollTo(0,n.suspendedScrollY)})}Fy=!1,Dy=!1,lG.forEach(e=>e.complete(My)),lG.clear()}function Hx(){lG.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Fy=!0)})}function S6(){My=!0,Hx(),px(),My=!1}class xy{constructor(A,t,n,s,r,a=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...A],this.onComplete=t,this.name=n,this.motionValue=s,this.element=r,this.isAsync=a}scheduleResolve(){this.state="scheduled",this.isAsync?(lG.add(this),Dy||(Dy=!0,cn.read(Hx),cn.resolveKeyframes(px))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:A,name:t,element:n,motionValue:s}=this;if(A[0]===null){const r=s?.get(),a=A[A.length-1];if(r!==void 0)A[0]=r;else if(n&&t){const B=n.readValue(t,a);B!=null&&(A[0]=B)}A[0]===void 0&&(A[0]=a),s&&r===void 0&&s.set(A[0])}U6(A)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(A=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,A),lG.delete(this)}cancel(){this.state==="scheduled"&&(lG.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const V6=e=>e.startsWith("--");function mx(e,A,t){V6(A)?e.style.setProperty(A,t):e.style[A]=t}const W6={};function Ex(e,A){const t=NM(e);return()=>W6[A]??t()}const N6=Ex(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),yx=Ex(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),NQ=([e,A,t,n])=>`cubic-bezier(${e}, ${A}, ${t}, ${n})`,Yx={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:NQ([0,.65,.55,1]),circOut:NQ([.55,0,1,.45]),backIn:NQ([.31,.01,.66,-.59]),backOut:NQ([.33,1.53,.69,.99])};function Zx(e,A){if(e)return typeof e=="function"?yx()?fx(e,A):"ease-out":Ax(e)?NQ(e):Array.isArray(e)?e.map(t=>Zx(t,A)||Yx.easeOut):Yx[e]}function z6(e,A,t,{delay:n=0,duration:s=300,repeat:r=0,repeatType:a="loop",ease:B="easeOut",times:c}={},l=void 0){const g={[A]:t};c&&(g.offset=c);const u=Zx(B,s);Array.isArray(u)&&(g.easing=u);const f={delay:n,duration:s,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:r+1,direction:a==="reverse"?"alternate":"normal"};return l&&(f.pseudoElement=l),e.animate(g,f)}function kx(e){return typeof e=="function"&&"applyToOptions"in e}function L6({type:e,...A}){return kx(e)&&yx()?e.applyToOptions(A):(A.duration??(A.duration=300),A.ease??(A.ease="easeOut"),A)}class Ux extends yy{constructor(A){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!A)return;const{element:t,name:n,keyframes:s,pseudoElement:r,allowFlatten:a=!1,finalKeyframe:B,onComplete:c}=A;this.isPseudoElement=!!r,this.allowFlatten=a,this.options=A,cy(typeof A.type!="string");const l=L6(A);this.animation=z6(t,n,s,l,r),l.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!r){const g=yI(s,this.options,B,this.speed);this.updateMotionValue&&this.updateMotionValue(g),mx(t,n,g),this.animation.cancel()}c?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:A}=this;A==="idle"||A==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){const A=this.options?.element;!this.isPseudoElement&&A?.isConnected&&this.animation.commitStyles?.()}get duration(){const A=this.animation.effect?.getComputedTiming?.().duration||0;return gB(Number(A))}get iterationDuration(){const{delay:A=0}=this.options||{};return this.duration+gB(A)}get time(){return gB(Number(this.animation.currentTime)||0)}set time(A){const t=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=Hi(A),t&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(A){A<0&&(this.finishedTime=null),this.animation.playbackRate=A}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(A){this.manualStartTime=this.animation.startTime=A}attachTimeline({timeline:A,rangeStart:t,rangeEnd:n,observe:s}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,A&&N6()?(this.animation.timeline=A,t&&(this.animation.rangeStart=t),n&&(this.animation.rangeEnd=n),lB):s(this)}}const Dx={anticipate:jM,backInOut:KM,circInOut:qM};function X6(e){return e in Dx}function O6(e){typeof e.ease=="string"&&X6(e.ease)&&(e.ease=Dx[e.ease])}const Py=10;class J6 extends Ux{constructor(A){O6(A),Qx(A),super(A),A.startTime!==void 0&&A.autoplay!==!1&&(this.startTime=A.startTime),this.options=A}updateMotionValue(A){const{motionValue:t,onUpdate:n,onComplete:s,element:r,...a}=this.options;if(!t)return;if(A!==void 0){t.set(A);return}const B=new YI({...a,autoplay:!1}),c=Math.max(Py,ca.now()-this.startTime),l=Gc(0,Py,c-Py),g=B.sample(c).value,{name:u}=this.options;r&&u&&mx(r,u,g),t.setWithVelocity(B.sample(Math.max(0,c-l)).value,g,l),B.stop()}}const Fx=(e,A)=>A==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(to.test(e)||e==="0")&&!e.startsWith("url("));function K6(e){const A=e[0];if(e.length===1)return!0;for(let t=0;t<e.length;t++)if(e[t]!==A)return!0}function j6(e,A,t,n){const s=e[0];if(s===null)return!1;if(A==="display"||A==="visibility")return!0;const r=e[e.length-1],a=Fx(s,A),B=Fx(r,A);return!a||!B?!1:K6(e)||(t==="spring"||kx(t))&&n}function Ty(e){e.duration=0,e.type="keyframes"}const Mx=new Set(["opacity","clipPath","filter","transform"]),_6=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function q6(e){for(let A=0;A<e.length;A++)if(typeof e[A]=="string"&&_6.test(e[A]))return!0;return!1}const $6=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),Aq=NM(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function eq(e){const{motionValue:A,name:t,repeatDelay:n,repeatType:s,damping:r,type:a,keyframes:B}=e;if(!(A?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:g}=A.owner.getProps();return Aq()&&t&&(Mx.has(t)||$6.has(t)&&q6(B))&&(t!=="transform"||!g)&&!l&&!n&&s!=="mirror"&&r!==0&&a!=="inertia"}const tq=40;class nq extends yy{constructor({autoplay:A=!0,delay:t=0,type:n="keyframes",repeat:s=0,repeatDelay:r=0,repeatType:a="loop",keyframes:B,name:c,motionValue:l,element:g,...u}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=ca.now();const f={autoplay:A,delay:t,type:n,repeat:s,repeatDelay:r,repeatType:a,name:c,motionValue:l,element:g,...u},w=g?.KeyframeResolver||xy;this.keyframeResolver=new w(B,(v,E,m)=>this.onKeyframesResolved(v,E,f,!m),c,l,g),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(A,t,n,s){this.keyframeResolver=void 0;const{name:r,type:a,velocity:B,delay:c,isHandoff:l,onUpdate:g}=n;this.resolvedAt=ca.now();let u=!0;j6(A,r,a,B)||(u=!1,(Ad.instantAnimations||!c)&&g?.(yI(A,n,t)),A[0]=A[A.length-1],Ty(n),n.repeat=0);const w={startTime:s?this.resolvedAt?this.resolvedAt-this.createdAt>tq?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:A},v=u&&!l&&eq(w),E=w.motionValue?.owner?.current;let m;if(v)try{m=new J6({...w,element:E})}catch{m=new YI(w)}else m=new YI(w);m.finished.then(()=>{this.notifyFinished()}).catch(lB),this.pendingTimeline&&(this.stopTimeline=m.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=m}get finished(){return this._animation?this.animation.finished:this._finished}then(A,t){return this.finished.finally(A).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),S6()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(A){this.animation.time=A}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(A){this.animation.speed=A}get startTime(){return this.animation.startTime}attachTimeline(A){return this._animation?this.stopTimeline=this.animation.attachTimeline(A):this.pendingTimeline=A,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}function xx(e,A,t,n=0,s=1){const r=Array.from(e).sort((l,g)=>l.sortNodePosition(g)).indexOf(A),a=e.size,B=(a-1)*n;return typeof t=="function"?t(r,a):s===1?r*n:B-r*n}const sq=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function rq(e){const A=sq.exec(e);if(!A)return[,];const[,t,n,s]=A;return[`--${t??n}`,s]}function Px(e,A,t=1){const[n,s]=rq(e);if(!n)return;const r=window.getComputedStyle(A).getPropertyValue(n);if(r){const a=r.trim();return SM(a)?parseFloat(a):a}return Gy(s)?Px(s,A,t+1):s}const aq={type:"spring",stiffness:500,damping:25,restSpeed:10},iq=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Bq={type:"keyframes",duration:.8},oq={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},cq=(e,{keyframes:A})=>A.length>2?Bq:hh.has(e)?e.startsWith("scale")?iq(A[1]):aq:oq;function Tx(e,A){if(e?.inherit&&A){const{inherit:t,...n}=e;return{...A,...n}}return e}function Ry(e,A){const t=e?.[A]??e?.default??e;return t!==e?Tx(t,e):t}const lq=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function gq(e){for(const A in e)if(!lq.has(A))return!0;return!1}const Sy=(e,A,t,n={},s,r)=>a=>{const B=Ry(n,e)||{},c=B.delay||n.delay||0;let{elapsed:l=0}=n;l=l-Hi(c);const g={keyframes:Array.isArray(t)?t:[null,t],ease:"easeOut",velocity:A.getVelocity(),...B,delay:-l,onUpdate:f=>{A.set(f),B.onUpdate&&B.onUpdate(f)},onComplete:()=>{a(),B.onComplete&&B.onComplete()},name:e,motionValue:A,element:r?void 0:s};gq(B)||Object.assign(g,cq(e,g)),g.duration&&(g.duration=Hi(g.duration)),g.repeatDelay&&(g.repeatDelay=Hi(g.repeatDelay)),g.from!==void 0&&(g.keyframes[0]=g.from);let u=!1;if((g.type===!1||g.duration===0&&!g.repeatDelay)&&(Ty(g),g.delay===0&&(u=!0)),(Ad.instantAnimations||Ad.skipAnimations||s?.shouldSkipAnimations)&&(u=!0,Ty(g),g.delay=0),g.allowFlatten=!B.type&&!B.ease,u&&!r&&A.get()!==void 0){const f=yI(g.keyframes,B);if(f!==void 0){cn.update(()=>{g.onUpdate(f),g.onComplete()});return}}return B.isSync?new YI(g):new nq(g)};function Rx(e){const A=[{},{}];return e?.values.forEach((t,n)=>{A[0][n]=t.get(),A[1][n]=t.getVelocity()}),A}function Vy(e,A,t,n){if(typeof A=="function"){const[s,r]=Rx(n);A=A(t!==void 0?t:e.custom,s,r)}if(typeof A=="string"&&(A=e.variants&&e.variants[A]),typeof A=="function"){const[s,r]=Rx(n);A=A(t!==void 0?t:e.custom,s,r)}return A}function gG(e,A,t){const n=e.getProps();return Vy(n,A,t!==void 0?t:n.custom,e)}const Sx=new Set(["width","height","top","left","right","bottom",...fh]),Vx=30,dq=e=>!isNaN(parseFloat(e));class uq{constructor(A,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=n=>{const s=ca.now();if(this.updatedAt!==s&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(n),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const r of this.dependents)r.dirty()},this.hasAnimated=!1,this.setCurrent(A),this.owner=t.owner}setCurrent(A){this.current=A,this.updatedAt=ca.now(),this.canTrackVelocity===null&&A!==void 0&&(this.canTrackVelocity=dq(this.current))}setPrevFrameValue(A=this.current){this.prevFrameValue=A,this.prevUpdatedAt=this.updatedAt}onChange(A){return this.on("change",A)}on(A,t){this.events[A]||(this.events[A]=new ly);const n=this.events[A].add(t);return A==="change"?()=>{n(),cn.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const A in this.events)this.events[A].clear()}attach(A,t){this.passiveEffect=A,this.stopPassiveEffect=t}set(A){this.passiveEffect?this.passiveEffect(A,this.updateAndNotify):this.updateAndNotify(A)}setWithVelocity(A,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=A,this.prevUpdatedAt=this.updatedAt-n}jump(A,t=!0){this.updateAndNotify(A),this.prev=A,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(A){this.dependents||(this.dependents=new Set),this.dependents.add(A)}removeDependent(A){this.dependents&&this.dependents.delete(A)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const A=ca.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||A-this.updatedAt>Vx)return 0;const t=Math.min(this.updatedAt-this.prevUpdatedAt,Vx);return zM(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(A){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=A(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 wh(e,A){return new uq(e,A)}const Wy=e=>Array.isArray(e);function Gq(e,A,t){e.hasValue(A)?e.getValue(A).set(t):e.addValue(A,wh(t))}function fq(e){return Wy(e)?e[e.length-1]||0:e}function Ny(e,A){const t=gG(e,A);let{transitionEnd:n={},transition:s={},...r}=t||{};r={...r,...n};for(const a in r){const B=fq(r[a]);Gq(e,a,B)}}const Ur=e=>!!(e&&e.getVelocity);function hq(e){return!!(Ur(e)&&e.add)}function zy(e,A){const t=e.getValue("willChange");if(hq(t))return t.add(A);if(!t&&Ad.WillChange){const n=new Ad.WillChange("auto");e.addValue("willChange",n),n.add(A)}}function Ly(e){return e.replace(/([A-Z])/g,A=>`-${A.toLowerCase()}`)}const Wx="data-"+Ly("framerAppearId");function Nx(e){return e.props[Wx]}function wq({protectedKeys:e,needsAnimating:A},t){const n=e.hasOwnProperty(t)&&A[t]!==!0;return A[t]=!1,n}function zx(e,A,{delay:t=0,transitionOverride:n,type:s}={}){let{transition:r,transitionEnd:a,...B}=A;const c=e.getDefaultTransition();r=r?Tx(r,c):c;const l=r?.reduceMotion;n&&(r=n);const g=[],u=s&&e.animationState&&e.animationState.getState()[s];for(const f in B){const w=e.getValue(f,e.latestValues[f]??null),v=B[f];if(v===void 0||u&&wq(u,f))continue;const E={delay:t,...Ry(r||{},f)},m=w.get();if(m!==void 0&&!w.isAnimating()&&!Array.isArray(v)&&v===m&&!E.velocity){cn.update(()=>w.set(v));continue}let Z=!1;if(window.MotionHandoffAnimation){const S=Nx(e);if(S){const F=window.MotionHandoffAnimation(S,f,cn);F!==null&&(E.startTime=F,Z=!0)}}zy(e,f);const D=l??e.shouldReduceMotion;w.start(Sy(f,w,v,D&&Sx.has(f)?{type:!1}:E,e,Z));const T=w.animation;T&&g.push(T)}if(a){const f=()=>cn.update(()=>{a&&Ny(e,a)});g.length?Promise.all(g).then(f):f()}return g}function Xy(e,A,t={}){const n=gG(e,A,t.type==="exit"?e.presenceContext?.custom:void 0);let{transition:s=e.getDefaultTransition()||{}}=n||{};t.transitionOverride&&(s=t.transitionOverride);const r=n?()=>Promise.all(zx(e,n,t)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(c=0)=>{const{delayChildren:l=0,staggerChildren:g,staggerDirection:u}=s;return Qq(e,A,c,l,g,u,t)}:()=>Promise.resolve(),{when:B}=s;if(B){const[c,l]=B==="beforeChildren"?[r,a]:[a,r];return c().then(()=>l())}else return Promise.all([r(),a(t.delay)])}function Qq(e,A,t=0,n=0,s=0,r=1,a){const B=[];for(const c of e.variantChildren)c.notify("AnimationStart",A),B.push(Xy(c,A,{...a,delay:t+(typeof n=="function"?0:n)+xx(e.variantChildren,c,n,s,r)}).then(()=>c.notify("AnimationComplete",A)));return Promise.all(B)}function Lx(e,A,t={}){e.notify("AnimationStart",A);let n;if(Array.isArray(A)){const s=A.map(r=>Xy(e,r,t));n=Promise.all(s)}else if(typeof A=="string")n=Xy(e,A,t);else{const s=typeof A=="function"?gG(e,A,t.custom):A;n=Promise.all(zx(e,s,t))}return n.then(()=>{e.notify("AnimationComplete",A)})}const bq={test:e=>e==="auto",parse:e=>e},Xx=e=>A=>A.test(e),Ox=[dh,Be,fc,td,K_,J_,bq],Jx=e=>Ox.find(Xx(e));function Cq(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||WM(e):!0}const vq=new Set(["brightness","contrast","saturate","opacity"]);function Iq(e){const[A,t]=e.slice(0,-1).split("(");if(A==="drop-shadow")return e;const[n]=t.match(fy)||[];if(!n)return e;const s=t.replace(n,"");let r=vq.has(A)?1:0;return n!==t&&(r*=100),A+"("+r+s+")"}const pq=/\b([a-z-]*)\(.*?\)/gu,Oy={...to,getAnimatableNone:e=>{const A=e.match(pq);return A?A.map(Iq).join(" "):e}},Jy={...to,getAnimatableNone:e=>{const A=to.parse(e);return to.createTransformer(e)(A.map(n=>typeof n=="number"?0:typeof n=="object"?{...n,alpha:1}:n))}},Kx={...dh,transform:Math.round},Ky={borderWidth:Be,borderTopWidth:Be,borderRightWidth:Be,borderBottomWidth:Be,borderLeftWidth:Be,borderRadius:Be,borderTopLeftRadius:Be,borderTopRightRadius:Be,borderBottomRightRadius:Be,borderBottomLeftRadius:Be,width:Be,maxWidth:Be,height:Be,maxHeight:Be,top:Be,right:Be,bottom:Be,left:Be,inset:Be,insetBlock:Be,insetBlockStart:Be,insetBlockEnd:Be,insetInline:Be,insetInlineStart:Be,insetInlineEnd:Be,padding:Be,paddingTop:Be,paddingRight:Be,paddingBottom:Be,paddingLeft:Be,paddingBlock:Be,paddingBlockStart:Be,paddingBlockEnd:Be,paddingInline:Be,paddingInlineStart:Be,paddingInlineEnd:Be,margin:Be,marginTop:Be,marginRight:Be,marginBottom:Be,marginLeft:Be,marginBlock:Be,marginBlockStart:Be,marginBlockEnd:Be,marginInline:Be,marginInlineStart:Be,marginInlineEnd:Be,fontSize:Be,backgroundPositionX:Be,backgroundPositionY:Be,...{rotate:td,rotateX:td,rotateY:td,rotateZ:td,scale:pI,scaleX:pI,scaleY:pI,scaleZ:pI,skew:td,skewX:td,skewY:td,distance:Be,translateX:Be,translateY:Be,translateZ:Be,x:Be,y:Be,z:Be,perspective:Be,transformPerspective:Be,opacity:RQ,originX:ix,originY:ix,originZ:Be},zIndex:Kx,fillOpacity:RQ,strokeOpacity:RQ,numOctaves:Kx},Hq={...Ky,color:Ds,backgroundColor:Ds,outlineColor:Ds,fill:Ds,stroke:Ds,borderColor:Ds,borderTopColor:Ds,borderRightColor:Ds,borderBottomColor:Ds,borderLeftColor:Ds,filter:Oy,WebkitFilter:Oy,mask:Jy,WebkitMask:Jy},jx=e=>Hq[e],mq=new Set([Oy,Jy]);function _x(e,A){let t=jx(e);return mq.has(t)||(t=to),t.getAnimatableNone?t.getAnimatableNone(A):void 0}const Eq=new Set(["auto","none","0"]);function yq(e,A,t){let n=0,s;for(;n<e.length&&!s;){const r=e[n];typeof r=="string"&&!Eq.has(r)&&Gh(r).values.length&&(s=e[n]),n++}if(s&&t)for(const r of A)e[r]=_x(t,s)}class Yq extends xy{constructor(A,t,n,s,r){super(A,t,n,s,r,!0)}readKeyframes(){const{unresolvedKeyframes:A,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let g=0;g<A.length;g++){let u=A[g];if(typeof u=="string"&&(u=u.trim(),Gy(u))){const f=Px(u,t.current);f!==void 0&&(A[g]=f),g===A.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!Sx.has(n)||A.length!==2)return;const[s,r]=A,a=Jx(s),B=Jx(r),c=rx(s),l=rx(r);if(c!==l&&nd[n]){this.needsMeasurement=!0;return}if(a!==B)if(Ix(a)&&Ix(B))for(let g=0;g<A.length;g++){const u=A[g];typeof u=="string"&&(A[g]=parseFloat(u))}else nd[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:A,name:t}=this,n=[];for(let s=0;s<A.length;s++)(A[s]===null||Cq(A[s]))&&n.push(s);n.length&&yq(A,n,t)}measureInitialState(){const{element:A,unresolvedKeyframes:t,name:n}=this;if(!A||!A.current)return;n==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=nd[n](A.measureViewportBox(),window.getComputedStyle(A.current)),t[0]=this.measuredOrigin;const s=t[t.length-1];s!==void 0&&A.getValue(n,s).jump(s,!1)}measureEndState(){const{element:A,name:t,unresolvedKeyframes:n}=this;if(!A||!A.current)return;const s=A.getValue(t);s&&s.jump(this.measuredOrigin,!1);const r=n.length-1,a=n[r];n[r]=nd[t](A.measureViewportBox(),window.getComputedStyle(A.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),this.removedTransforms?.length&&this.removedTransforms.forEach(([B,c])=>{A.getValue(B).set(c)}),this.resolveNoneKeyframes()}}function qx(e,A,t){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e=="string"){let n=document;const s=t?.[e]??n.querySelectorAll(e);return s?Array.from(s):[]}return Array.from(e).filter(n=>n!=null)}const $x=(e,A)=>A&&typeof e=="number"?A.transform(e):e;function ZI(e){return VM(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}const{schedule:jy}=tx(queueMicrotask,!1),no={x:!1,y:!1};function A2(){return no.x||no.y}function Zq(e){return e==="x"||e==="y"?no[e]?null:(no[e]=!0,()=>{no[e]=!1}):no.x||no.y?null:(no.x=no.y=!0,()=>{no.x=no.y=!1})}function e2(e,A){const t=qx(e),n=new AbortController,s={passive:!0,...A,signal:n.signal};return[t,s,()=>n.abort()]}function kq(e){return!(e.pointerType==="touch"||A2())}function Uq(e,A,t={}){const[n,s,r]=e2(e,t);return n.forEach(a=>{let B=!1,c=!1,l;const g=()=>{a.removeEventListener("pointerleave",v)},u=m=>{l&&(l(m),l=void 0),g()},f=m=>{B=!1,window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",f),c&&(c=!1,u(m))},w=()=>{B=!0,window.addEventListener("pointerup",f,s),window.addEventListener("pointercancel",f,s)},v=m=>{if(m.pointerType!=="touch"){if(B){c=!0;return}u(m)}},E=m=>{if(!kq(m))return;c=!1;const Z=A(a,m);typeof Z=="function"&&(l=Z,a.addEventListener("pointerleave",v,s))};a.addEventListener("pointerenter",E,s),a.addEventListener("pointerdown",w,s)}),r}const t2=(e,A)=>A?e===A?!0:t2(e,A.parentElement):!1,_y=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,Dq=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Fq(e){return Dq.has(e.tagName)||e.isContentEditable===!0}const Mq=new Set(["INPUT","SELECT","TEXTAREA"]);function xq(e){return Mq.has(e.tagName)||e.isContentEditable===!0}const kI=new WeakSet;function n2(e){return A=>{A.key==="Enter"&&e(A)}}function qy(e,A){e.dispatchEvent(new PointerEvent("pointer"+A,{isPrimary:!0,bubbles:!0}))}const Pq=(e,A)=>{const t=e.currentTarget;if(!t)return;const n=n2(()=>{if(kI.has(t))return;qy(t,"down");const s=n2(()=>{qy(t,"up")}),r=()=>qy(t,"cancel");t.addEventListener("keyup",s,A),t.addEventListener("blur",r,A)});t.addEventListener("keydown",n,A),t.addEventListener("blur",()=>t.removeEventListener("keydown",n),A)};function s2(e){return _y(e)&&!A2()}const r2=new WeakSet;function Tq(e,A,t={}){const[n,s,r]=e2(e,t),a=B=>{const c=B.currentTarget;if(!s2(B)||r2.has(B))return;kI.add(c),t.stopPropagation&&r2.add(B);const l=A(c,B),g=(w,v)=>{window.removeEventListener("pointerup",u),window.removeEventListener("pointercancel",f),kI.has(c)&&kI.delete(c),s2(w)&&typeof l=="function"&&l(w,{success:v})},u=w=>{g(w,c===window||c===document||t.useGlobalTarget||t2(c,w.target))},f=w=>{g(w,!1)};window.addEventListener("pointerup",u,s),window.addEventListener("pointercancel",f,s)};return n.forEach(B=>{(t.useGlobalTarget?window:B).addEventListener("pointerdown",a,s),ZI(B)&&(B.addEventListener("focus",l=>Pq(l,s)),!Fq(B)&&!B.hasAttribute("tabindex")&&(B.tabIndex=0))}),r}function $y(e){return VM(e)&&"ownerSVGElement"in e}const UI=new WeakMap;let DI;const a2=(e,A,t)=>(n,s)=>s&&s[0]?s[0][e+"Size"]:$y(n)&&"getBBox"in n?n.getBBox()[A]:n[t],Rq=a2("inline","width","offsetWidth"),Sq=a2("block","height","offsetHeight");function Vq({target:e,borderBoxSize:A}){UI.get(e)?.forEach(t=>{t(e,{get width(){return Rq(e,A)},get height(){return Sq(e,A)}})})}function Wq(e){e.forEach(Vq)}function Nq(){typeof ResizeObserver>"u"||(DI=new ResizeObserver(Wq))}function zq(e,A){DI||Nq();const t=qx(e);return t.forEach(n=>{let s=UI.get(n);s||(s=new Set,UI.set(n,s)),s.add(A),DI?.observe(n)}),()=>{t.forEach(n=>{const s=UI.get(n);s?.delete(A),s?.size||DI?.unobserve(n)})}}const FI=new Set;let Qh;function Lq(){Qh=()=>{const e={get width(){return window.innerWidth},get height(){return window.innerHeight}};FI.forEach(A=>A(e))},window.addEventListener("resize",Qh)}function Xq(e){return FI.add(e),Qh||Lq(),()=>{FI.delete(e),!FI.size&&typeof Qh=="function"&&(window.removeEventListener("resize",Qh),Qh=void 0)}}function i2(e,A){return typeof e=="function"?Xq(e):zq(e,A)}function Oq(e){return $y(e)&&e.tagName==="svg"}const Jq=[...Ox,Ds,to],Kq=e=>Jq.find(Xx(e)),B2=()=>({translate:0,scale:1,origin:0,originPoint:0}),bh=()=>({x:B2(),y:B2()}),o2=()=>({min:0,max:0}),Ks=()=>({x:o2(),y:o2()}),jq=new WeakMap;function MI(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function zQ(e){return typeof e=="string"||Array.isArray(e)}const A3=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],e3=["initial",...A3];function xI(e){return MI(e.animate)||e3.some(A=>zQ(e[A]))}function c2(e){return!!(xI(e)||e.variants)}function _q(e,A,t){for(const n in A){const s=A[n],r=t[n];if(Ur(s))e.addValue(n,s);else if(Ur(r))e.addValue(n,wh(s,{owner:e}));else if(r!==s)if(e.hasValue(n)){const a=e.getValue(n);a.liveStyle===!0?a.jump(s):a.hasAnimated||a.set(s)}else{const a=e.getStaticValue(n);e.addValue(n,wh(a!==void 0?a:s,{owner:e}))}}for(const n in t)A[n]===void 0&&e.removeValue(n);return A}const t3={current:null},l2={current:!1},qq=typeof window<"u";function $q(){if(l2.current=!0,!!qq)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),A=()=>t3.current=e.matches;e.addEventListener("change",A),A()}else t3.current=!1}const g2=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let PI={};function d2(e){PI=e}function A$(){return PI}class e${scrapeMotionValuesFromProps(A,t,n){return{}}constructor({parent:A,props:t,presenceContext:n,reducedMotionConfig:s,skipAnimations:r,blockInitialAnimation:a,visualState:B},c={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=xy,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const w=ca.now();this.renderScheduledAt<w&&(this.renderScheduledAt=w,cn.render(this.render,!1,!0))};const{latestValues:l,renderState:g}=B;this.latestValues=l,this.baseTarget={...l},this.initialValues=t.initial?{...l}:{},this.renderState=g,this.parent=A,this.props=t,this.presenceContext=n,this.depth=A?A.depth+1:0,this.reducedMotionConfig=s,this.skipAnimationsConfig=r,this.options=c,this.blockInitialAnimation=!!a,this.isControllingVariants=xI(t),this.isVariantNode=c2(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(A&&A.current);const{willChange:u,...f}=this.scrapeMotionValuesFromProps(t,{},this);for(const w in f){const v=f[w];l[w]!==void 0&&Ur(v)&&v.set(l[w])}}mount(A){if(this.hasBeenMounted)for(const t in this.initialValues)this.values.get(t)?.jump(this.initialValues[t]),this.latestValues[t]=this.initialValues[t];this.current=A,jq.set(A,this),this.projection&&!this.projection.instance&&this.projection.mount(A),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((t,n)=>this.bindToMotionValue(n,t)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(l2.current||$q(),this.shouldReduceMotion=t3.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),ed(this.notifyUpdate),ed(this.render),this.valueSubscriptions.forEach(A=>A()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const A in this.events)this.events[A].clear();for(const A in this.features){const t=this.features[A];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(A){this.children.add(A),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(A)}removeChild(A){this.children.delete(A),this.enteringChildren&&this.enteringChildren.delete(A)}bindToMotionValue(A,t){if(this.valueSubscriptions.has(A)&&this.valueSubscriptions.get(A)(),t.accelerate&&Mx.has(A)&&this.current instanceof HTMLElement){const{factory:a,keyframes:B,times:c,ease:l,duration:g}=t.accelerate,u=new Ux({element:this.current,name:A,keyframes:B,times:c,ease:l,duration:Hi(g)}),f=a(u);this.valueSubscriptions.set(A,()=>{f(),u.cancel()});return}const n=hh.has(A);n&&this.onBindTransform&&this.onBindTransform();const s=t.on("change",a=>{this.latestValues[A]=a,this.props.onUpdate&&cn.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let r;typeof window<"u"&&window.MotionCheckAppearSync&&(r=window.MotionCheckAppearSync(this,A,t)),this.valueSubscriptions.set(A,()=>{s(),r&&r(),t.owner&&t.stop()})}sortNodePosition(A){return!this.current||!this.sortInstanceNodePosition||this.type!==A.type?0:this.sortInstanceNodePosition(this.current,A.current)}updateFeatures(){let A="animation";for(A in PI){const t=PI[A];if(!t)continue;const{isEnabled:n,Feature:s}=t;if(!this.features[A]&&s&&n(this.props)&&(this.features[A]=new s(this)),this.features[A]){const r=this.features[A];r.isMounted?r.update():(r.mount(),r.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Ks()}getStaticValue(A){return this.latestValues[A]}setStaticValue(A,t){this.latestValues[A]=t}update(A,t){(A.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=A,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let n=0;n<g2.length;n++){const s=g2[n];this.propEventSubscriptions[s]&&(this.propEventSubscriptions[s](),delete this.propEventSubscriptions[s]);const r="on"+s,a=A[r];a&&(this.propEventSubscriptions[s]=this.on(s,a))}this.prevMotionValues=_q(this,this.scrapeMotionValuesFromProps(A,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(A){return this.props.variants?this.props.variants[A]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(A){const t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(A),()=>t.variantChildren.delete(A)}addValue(A,t){const n=this.values.get(A);t!==n&&(n&&this.removeValue(A),this.bindToMotionValue(A,t),this.values.set(A,t),this.latestValues[A]=t.get())}removeValue(A){this.values.delete(A);const t=this.valueSubscriptions.get(A);t&&(t(),this.valueSubscriptions.delete(A)),delete this.latestValues[A],this.removeValueFromRenderState(A,this.renderState)}hasValue(A){return this.values.has(A)}getValue(A,t){if(this.props.values&&this.props.values[A])return this.props.values[A];let n=this.values.get(A);return n===void 0&&t!==void 0&&(n=wh(t===null?void 0:t,{owner:this}),this.addValue(A,n)),n}readValue(A,t){let n=this.latestValues[A]!==void 0||!this.current?this.latestValues[A]:this.getBaseTargetFromProps(this.props,A)??this.readValueFromInstance(this.current,A,this.options);return n!=null&&(typeof n=="string"&&(SM(n)||WM(n))?n=parseFloat(n):!Kq(n)&&to.test(t)&&(n=_x(A,t)),this.setBaseTarget(A,Ur(n)?n.get():n)),Ur(n)?n.get():n}setBaseTarget(A,t){this.baseTarget[A]=t}getBaseTarget(A){const{initial:t}=this.props;let n;if(typeof t=="string"||typeof t=="object"){const r=Vy(this.props,t,this.presenceContext?.custom);r&&(n=r[A])}if(t&&n!==void 0)return n;const s=this.getBaseTargetFromProps(this.props,A);return s!==void 0&&!Ur(s)?s:this.initialValues[A]!==void 0&&n===void 0?void 0:this.baseTarget[A]}on(A,t){return this.events[A]||(this.events[A]=new ly),this.events[A].add(t)}notify(A,...t){this.events[A]&&this.events[A].notify(...t)}scheduleRenderMicrotask(){jy.render(this.render)}}class u2 extends e${constructor(){super(...arguments),this.KeyframeResolver=Yq}sortInstanceNodePosition(A,t){return A.compareDocumentPosition(t)&2?1:-1}getBaseTargetFromProps(A,t){const n=A.style;return n?n[t]:void 0}removeValueFromRenderState(A,{vars:t,style:n}){delete t[A],delete n[A]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:A}=this.props;Ur(A)&&(this.childSubscription=A.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}class sd{constructor(A){this.isMounted=!1,this.node=A}update(){}}function G2({top:e,left:A,right:t,bottom:n}){return{x:{min:A,max:t},y:{min:e,max:n}}}function t$({x:e,y:A}){return{top:A.min,right:e.max,bottom:A.max,left:e.min}}function n$(e,A){if(!A)return e;const t=A({x:e.left,y:e.top}),n=A({x:e.right,y:e.bottom});return{top:t.y,left:t.x,bottom:n.y,right:n.x}}function n3(e){return e===void 0||e===1}function s3({scale:e,scaleX:A,scaleY:t}){return!n3(e)||!n3(A)||!n3(t)}function dG(e){return s3(e)||f2(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function f2(e){return h2(e.x)||h2(e.y)}function h2(e){return e&&e!=="0%"}function TI(e,A,t){const n=e-t,s=A*n;return t+s}function w2(e,A,t,n,s){return s!==void 0&&(e=TI(e,s,n)),TI(e,t,n)+A}function r3(e,A=0,t=1,n,s){e.min=w2(e.min,A,t,n,s),e.max=w2(e.max,A,t,n,s)}function Q2(e,{x:A,y:t}){r3(e.x,A.translate,A.scale,A.originPoint),r3(e.y,t.translate,t.scale,t.originPoint)}const b2=.999999999999,C2=1.0000000000001;function s$(e,A,t,n=!1){const s=t.length;if(!s)return;A.x=A.y=1;let r,a;for(let B=0;B<s;B++){r=t[B],a=r.projectionDelta;const{visualElement:c}=r.options;c&&c.props.style&&c.props.style.display==="contents"||(n&&r.options.layoutScroll&&r.scroll&&r!==r.root&&(hc(e.x,-r.scroll.offset.x),hc(e.y,-r.scroll.offset.y)),a&&(A.x*=a.x.scale,A.y*=a.y.scale,Q2(e,a)),n&&dG(r.latestValues)&&RI(e,r.latestValues,r.layout?.layoutBox))}A.x<C2&&A.x>b2&&(A.x=1),A.y<C2&&A.y>b2&&(A.y=1)}function hc(e,A){e.min+=A,e.max+=A}function v2(e,A,t,n,s=.5){const r=mn(e.min,e.max,s);r3(e,A,t,r,n)}function I2(e,A){return typeof e=="string"?parseFloat(e)/100*(A.max-A.min):e}function RI(e,A,t){const n=t??e;v2(e.x,I2(A.x,n.x),A.scaleX,A.scale,A.originX),v2(e.y,I2(A.y,n.y),A.scaleY,A.scale,A.originY)}function p2(e,A){return G2(n$(e.getBoundingClientRect(),A))}function r$(e,A,t){const n=p2(e,t),{scroll:s}=A;return s&&(hc(n.x,s.offset.x),hc(n.y,s.offset.y)),n}const a$={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},i$=fh.length;function B$(e,A,t){let n="",s=!0;for(let r=0;r<i$;r++){const a=fh[r],B=e[a];if(B===void 0)continue;let c=!0;if(typeof B=="number")c=B===(a.startsWith("scale")?1:0);else{const l=parseFloat(B);c=a.startsWith("scale")?l===1:l===0}if(!c||t){const l=$x(B,Ky[a]);if(!c){s=!1;const g=a$[a]||a;n+=`${g}(${l}) `}t&&(A[a]=l)}}return n=n.trim(),t?n=t(A,s?"":n):s&&(n="none"),n}function a3(e,A,t){const{style:n,vars:s,transformOrigin:r}=e;let a=!1,B=!1;for(const c in A){const l=A[c];if(hh.has(c)){a=!0;continue}else if(sx(c)){s[c]=l;continue}else{const g=$x(l,Ky[c]);c.startsWith("origin")?(B=!0,r[c]=g):n[c]=g}}if(A.transform||(a||t?n.transform=B$(A,e.transform,t):n.transform&&(n.transform="none")),B){const{originX:c="50%",originY:l="50%",originZ:g=0}=r;n.transformOrigin=`${c} ${l} ${g}`}}function H2(e,{style:A,vars:t},n,s){const r=e.style;let a;for(a in A)r[a]=A[a];s?.applyProjectionStyles(r,n);for(a in t)r.setProperty(a,t[a])}function m2(e,A){return A.max===A.min?0:e/(A.max-A.min)*100}const LQ={correct:(e,A)=>{if(!A.target)return e;if(typeof e=="string")if(Be.test(e))e=parseFloat(e);else return e;const t=m2(e,A.target.x),n=m2(e,A.target.y);return`${t}% ${n}%`}},o$={correct:(e,{treeScale:A,projectionDelta:t})=>{const n=e,s=to.parse(e);if(s.length>5)return n;const r=to.createTransformer(e),a=typeof s[0]!="number"?1:0,B=t.x.scale*A.x,c=t.y.scale*A.y;s[0+a]/=B,s[1+a]/=c;const l=mn(B,c,.5);return typeof s[2+a]=="number"&&(s[2+a]/=l),typeof s[3+a]=="number"&&(s[3+a]/=l),r(s)}},i3={borderRadius:{...LQ,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:LQ,borderTopRightRadius:LQ,borderBottomLeftRadius:LQ,borderBottomRightRadius:LQ,boxShadow:o$};function E2(e,{layout:A,layoutId:t}){return hh.has(e)||e.startsWith("origin")||(A||t!==void 0)&&(!!i3[e]||e==="opacity")}function B3(e,A,t){const n=e.style,s=A?.style,r={};if(!n)return r;for(const a in n)(Ur(n[a])||s&&Ur(s[a])||E2(a,e)||t?.getValue(a)?.liveStyle!==void 0)&&(r[a]=n[a]);return r}function c$(e){return window.getComputedStyle(e)}class l$ extends u2{constructor(){super(...arguments),this.type="html",this.renderInstance=H2}readValueFromInstance(A,t){if(hh.has(t))return this.projection?.isProjecting?ky(t):M6(A,t);{const n=c$(A),s=(sx(t)?n.getPropertyValue(t):n[t])||0;return typeof s=="string"?s.trim():s}}measureInstanceViewportBox(A,{transformPagePoint:t}){return p2(A,t)}build(A,t,n){a3(A,t,n.transformTemplate)}scrapeMotionValuesFromProps(A,t,n){return B3(A,t,n)}}const g$={offset:"stroke-dashoffset",array:"stroke-dasharray"},d$={offset:"strokeDashoffset",array:"strokeDasharray"};function u$(e,A,t=1,n=0,s=!0){e.pathLength=1;const r=s?g$:d$;e[r.offset]=`${-n}`,e[r.array]=`${A} ${t}`}const G$=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function y2(e,{attrX:A,attrY:t,attrScale:n,pathLength:s,pathSpacing:r=1,pathOffset:a=0,...B},c,l,g){if(a3(e,B,l),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:u,style:f}=e;u.transform&&(f.transform=u.transform,delete u.transform),(f.transform||u.transformOrigin)&&(f.transformOrigin=u.transformOrigin??"50% 50%",delete u.transformOrigin),f.transform&&(f.transformBox=g?.transformBox??"fill-box",delete u.transformBox);for(const w of G$)u[w]!==void 0&&(f[w]=u[w],delete u[w]);A!==void 0&&(u.x=A),t!==void 0&&(u.y=t),n!==void 0&&(u.scale=n),s!==void 0&&u$(u,s,r,a,!1)}const Y2=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"]),Z2=e=>typeof e=="string"&&e.toLowerCase()==="svg";function f$(e,A,t,n){H2(e,A,void 0,n);for(const s in A.attrs)e.setAttribute(Y2.has(s)?s:Ly(s),A.attrs[s])}function k2(e,A,t){const n=B3(e,A,t);for(const s in e)if(Ur(e[s])||Ur(A[s])){const r=fh.indexOf(s)!==-1?"attr"+s.charAt(0).toUpperCase()+s.substring(1):s;n[r]=e[s]}return n}class h$ extends u2{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Ks}getBaseTargetFromProps(A,t){return A[t]}readValueFromInstance(A,t){if(hh.has(t)){const n=jx(t);return n&&n.default||0}return t=Y2.has(t)?t:Ly(t),A.getAttribute(t)}scrapeMotionValuesFromProps(A,t,n){return k2(A,t,n)}build(A,t,n){y2(A,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(A,t,n,s){f$(A,t,n,s)}mount(A){this.isSVGTag=Z2(A.tagName),super.mount(A)}}const w$=e3.length;function U2(e){if(!e)return;if(!e.isControllingVariants){const t=e.parent?U2(e.parent)||{}:{};return e.props.initial!==void 0&&(t.initial=e.props.initial),t}const A={};for(let t=0;t<w$;t++){const n=e3[t],s=e.props[n];(zQ(s)||s===!1)&&(A[n]=s)}return A}function D2(e,A){if(!Array.isArray(A))return!1;const t=A.length;if(t!==e.length)return!1;for(let n=0;n<t;n++)if(A[n]!==e[n])return!1;return!0}const Q$=[...A3].reverse(),b$=A3.length;function C$(e){return A=>Promise.all(A.map(({animation:t,options:n})=>Lx(e,t,n)))}function v$(e){let A=C$(e),t=F2(),n=!0,s=!1;const r=l=>(g,u)=>{const f=gG(e,u,l==="exit"?e.presenceContext?.custom:void 0);if(f){const{transition:w,transitionEnd:v,...E}=f;g={...g,...E,...v}}return g};function a(l){A=l(e)}function B(l){const{props:g}=e,u=U2(e.parent)||{},f=[],w=new Set;let v={},E=1/0;for(let Z=0;Z<b$;Z++){const D=Q$[Z],T=t[D],S=g[D]!==void 0?g[D]:u[D],F=zQ(S),V=D===l?T.isActive:null;V===!1&&(E=Z);let N=S===u[D]&&S!==g[D]&&F;if(N&&(n||s)&&e.manuallyAnimateOnMount&&(N=!1),T.protectedKeys={...v},!T.isActive&&V===null||!S&&!T.prevProp||MI(S)||typeof S=="boolean")continue;if(D==="exit"&&T.isActive&&V!==!0){T.prevResolvedValues&&(v={...v,...T.prevResolvedValues});continue}const X=I$(T.prevProp,S);let eA=X||D===l&&T.isActive&&!N&&F||Z>E&&F,$=!1;const rA=Array.isArray(S)?S:[S];let iA=rA.reduce(r(D),{});V===!1&&(iA={});const{prevResolvedValues:hA={}}=T,fA={...hA,...iA},yA=AA=>{eA=!0,w.has(AA)&&($=!0,w.delete(AA)),T.needsAnimating[AA]=!0;const MA=e.getValue(AA);MA&&(MA.liveStyle=!1)};for(const AA in fA){const MA=iA[AA],q=hA[AA];if(v.hasOwnProperty(AA))continue;let W=!1;Wy(MA)&&Wy(q)?W=!D2(MA,q):W=MA!==q,W?MA!=null?yA(AA):w.add(AA):MA!==void 0&&w.has(AA)?yA(AA):T.protectedKeys[AA]=!0}T.prevProp=S,T.prevResolvedValues=iA,T.isActive&&(v={...v,...iA}),(n||s)&&e.blockInitialAnimation&&(eA=!1);const L=N&&X;eA&&(!L||$)&&f.push(...rA.map(AA=>{const MA={type:D};if(typeof AA=="string"&&(n||s)&&!L&&e.manuallyAnimateOnMount&&e.parent){const{parent:q}=e,W=gG(q,AA);if(q.enteringChildren&&W){const{delayChildren:dA}=W.transition||{};MA.delay=xx(q.enteringChildren,e,dA)}}return{animation:AA,options:MA}}))}if(w.size){const Z={};if(typeof g.initial!="boolean"){const D=gG(e,Array.isArray(g.initial)?g.initial[0]:g.initial);D&&D.transition&&(Z.transition=D.transition)}w.forEach(D=>{const T=e.getBaseTarget(D),S=e.getValue(D);S&&(S.liveStyle=!0),Z[D]=T??null}),f.push({animation:Z})}let m=!!f.length;return n&&(g.initial===!1||g.initial===g.animate)&&!e.manuallyAnimateOnMount&&(m=!1),n=!1,s=!1,m?A(f):Promise.resolve()}function c(l,g){if(t[l].isActive===g)return Promise.resolve();e.variantChildren?.forEach(f=>f.animationState?.setActive(l,g)),t[l].isActive=g;const u=B(l);for(const f in t)t[f].protectedKeys={};return u}return{animateChanges:B,setActive:c,setAnimateFunction:a,getState:()=>t,reset:()=>{t=F2(),s=!0}}}function I$(e,A){return typeof A=="string"?A!==e:Array.isArray(A)?!D2(A,e):!1}function uG(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function F2(){return{animate:uG(!0),whileInView:uG(),whileHover:uG(),whileTap:uG(),whileDrag:uG(),whileFocus:uG(),exit:uG()}}function o3(e,A){e.min=A.min,e.max=A.max}function so(e,A){o3(e.x,A.x),o3(e.y,A.y)}function M2(e,A){e.translate=A.translate,e.scale=A.scale,e.originPoint=A.originPoint,e.origin=A.origin}const x2=1e-4,p$=1-x2,H$=1+x2,P2=.01,m$=0-P2,E$=0+P2;function la(e){return e.max-e.min}function y$(e,A,t){return Math.abs(e-A)<=t}function T2(e,A,t,n=.5){e.origin=n,e.originPoint=mn(A.min,A.max,e.origin),e.scale=la(t)/la(A),e.translate=mn(t.min,t.max,e.origin)-e.originPoint,(e.scale>=p$&&e.scale<=H$||isNaN(e.scale))&&(e.scale=1),(e.translate>=m$&&e.translate<=E$||isNaN(e.translate))&&(e.translate=0)}function XQ(e,A,t,n){T2(e.x,A.x,t.x,n?n.originX:void 0),T2(e.y,A.y,t.y,n?n.originY:void 0)}function R2(e,A,t,n=0){const s=n?mn(t.min,t.max,n):t.min;e.min=s+A.min,e.max=e.min+la(A)}function Y$(e,A,t,n){R2(e.x,A.x,t.x,n?.x),R2(e.y,A.y,t.y,n?.y)}function S2(e,A,t,n=0){const s=n?mn(t.min,t.max,n):t.min;e.min=A.min-s,e.max=e.min+la(A)}function SI(e,A,t,n){S2(e.x,A.x,t.x,n?.x),S2(e.y,A.y,t.y,n?.y)}function V2(e,A,t,n,s){return e-=A,e=TI(e,1/t,n),s!==void 0&&(e=TI(e,1/s,n)),e}function Z$(e,A=0,t=1,n=.5,s,r=e,a=e){if(fc.test(A)&&(A=parseFloat(A),A=mn(a.min,a.max,A/100)-a.min),typeof A!="number")return;let B=mn(r.min,r.max,n);e===r&&(B-=A),e.min=V2(e.min,A,t,B,s),e.max=V2(e.max,A,t,B,s)}function W2(e,A,[t,n,s],r,a){Z$(e,A[t],A[n],A[s],A.scale,r,a)}const k$=["x","scaleX","originX"],U$=["y","scaleY","originY"];function N2(e,A,t,n){W2(e.x,A,k$,t?t.x:void 0,n?n.x:void 0),W2(e.y,A,U$,t?t.y:void 0,n?n.y:void 0)}function z2(e){return e.translate===0&&e.scale===1}function L2(e){return z2(e.x)&&z2(e.y)}function X2(e,A){return e.min===A.min&&e.max===A.max}function D$(e,A){return X2(e.x,A.x)&&X2(e.y,A.y)}function O2(e,A){return Math.round(e.min)===Math.round(A.min)&&Math.round(e.max)===Math.round(A.max)}function J2(e,A){return O2(e.x,A.x)&&O2(e.y,A.y)}function K2(e){return la(e.x)/la(e.y)}function j2(e,A){return e.translate===A.translate&&e.scale===A.scale&&e.originPoint===A.originPoint}function wc(e){return[e("x"),e("y")]}function F$(e,A,t){let n="";const s=e.x.translate/A.x,r=e.y.translate/A.y,a=t?.z||0;if((s||r||a)&&(n=`translate3d(${s}px, ${r}px, ${a}px) `),(A.x!==1||A.y!==1)&&(n+=`scale(${1/A.x}, ${1/A.y}) `),t){const{transformPerspective:l,rotate:g,rotateX:u,rotateY:f,skewX:w,skewY:v}=t;l&&(n=`perspective(${l}px) ${n}`),g&&(n+=`rotate(${g}deg) `),u&&(n+=`rotateX(${u}deg) `),f&&(n+=`rotateY(${f}deg) `),w&&(n+=`skewX(${w}deg) `),v&&(n+=`skewY(${v}deg) `)}const B=e.x.scale*A.x,c=e.y.scale*A.y;return(B!==1||c!==1)&&(n+=`scale(${B}, ${c})`),n||"none"}const _2=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],M$=_2.length,q2=e=>typeof e=="string"?parseFloat(e):e,$2=e=>typeof e=="number"||Be.test(e);function x$(e,A,t,n,s,r){s?(e.opacity=mn(0,t.opacity??1,P$(n)),e.opacityExit=mn(A.opacity??1,0,T$(n))):r&&(e.opacity=mn(A.opacity??1,t.opacity??1,n));for(let a=0;a<M$;a++){const B=_2[a];let c=AP(A,B),l=AP(t,B);if(c===void 0&&l===void 0)continue;c||(c=0),l||(l=0),c===0||l===0||$2(c)===$2(l)?(e[B]=Math.max(mn(q2(c),q2(l),n),0),(fc.test(l)||fc.test(c))&&(e[B]+="%")):e[B]=l}(A.rotate||t.rotate)&&(e.rotate=mn(A.rotate||0,t.rotate||0,n))}function AP(e,A){return e[A]!==void 0?e[A]:e.borderRadius}const P$=eP(0,.5,_M),T$=eP(.5,.95,lB);function eP(e,A,t){return n=>n<e?0:n>A?1:t(PQ(e,A,n))}function R$(e,A,t){const n=Ur(e)?e:wh(e);return n.start(Sy("",n,A,t)),n.animation}function OQ(e,A,t,n={passive:!0}){return e.addEventListener(A,t,n),()=>e.removeEventListener(A,t)}const S$=(e,A)=>e.depth-A.depth;class V${constructor(){this.children=[],this.isDirty=!1}add(A){oy(this.children,A),this.isDirty=!0}remove(A){CI(this.children,A),this.isDirty=!0}forEach(A){this.isDirty&&this.children.sort(S$),this.isDirty=!1,this.children.forEach(A)}}function W$(e,A){const t=ca.now(),n=({timestamp:s})=>{const r=s-t;r>=A&&(ed(n),e(r-A))};return cn.setup(n,!0),()=>ed(n)}function VI(e){return Ur(e)?e.get():e}class N${constructor(){this.members=[]}add(A){oy(this.members,A);for(let t=this.members.length-1;t>=0;t--){const n=this.members[t];if(n===A||n===this.lead||n===this.prevLead)continue;const s=n.instance;(!s||s.isConnected===!1)&&!n.snapshot&&(CI(this.members,n),n.unmount())}A.scheduleRender()}remove(A){if(CI(this.members,A),A===this.prevLead&&(this.prevLead=void 0),A===this.lead){const t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(A){for(let t=this.members.indexOf(A)-1;t>=0;t--){const n=this.members[t];if(n.isPresent!==!1&&n.instance?.isConnected!==!1)return this.promote(n),!0}return!1}promote(A,t){const n=this.lead;if(A!==n&&(this.prevLead=n,this.lead=A,A.show(),n)){n.updateSnapshot(),A.scheduleRender();const{layoutDependency:s}=n.options,{layoutDependency:r}=A.options;(s===void 0||s!==r)&&(A.resumeFrom=n,t&&(n.preserveOpacity=!0),n.snapshot&&(A.snapshot=n.snapshot,A.snapshot.latestValues=n.animationValues||n.latestValues),A.root?.isUpdating&&(A.isLayoutDirty=!0)),A.options.crossfade===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(A=>{A.options.onExitComplete?.(),A.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(A=>A.instance&&A.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}const WI={hasAnimatedSinceResize:!0,hasEverUpdated:!1},c3=["","X","Y","Z"],z$=1e3;let L$=0;function l3(e,A,t,n){const{latestValues:s}=A;s[e]&&(t[e]=s[e],A.setStaticValue(e,0),n&&(n[e]=0))}function tP(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:A}=e.options;if(!A)return;const t=Nx(A);if(window.MotionHasOptimisedAnimation(t,"transform")){const{layout:s,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(t,"transform",cn,!(s||r))}const{parent:n}=e;n&&!n.hasCheckedOptimisedAppear&&tP(n)}function nP({attachResizeListener:e,defaultParent:A,measureScroll:t,checkIsScrollRoot:n,resetTransform:s}){return class{constructor(a={},B=A?.()){this.id=L$++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(J$),this.nodes.forEach(AAA),this.nodes.forEach(eAA),this.nodes.forEach(K$)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=B?B.root||B:this,this.path=B?[...B.path,B]:[],this.parent=B,this.depth=B?B.depth+1:0;for(let c=0;c<this.path.length;c++)this.path[c].shouldResetTransform=!0;this.root===this&&(this.nodes=new V$)}addEventListener(a,B){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new ly),this.eventHandlers.get(a).add(B)}notifyListeners(a,...B){const c=this.eventHandlers.get(a);c&&c.notify(...B)}hasListeners(a){return this.eventHandlers.has(a)}mount(a){if(this.instance)return;this.isSVG=$y(a)&&!Oq(a),this.instance=a;const{layoutId:B,layout:c,visualElement:l}=this.options;if(l&&!l.current&&l.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(c||B)&&(this.isLayoutDirty=!0),e){let g,u=0;const f=()=>this.root.updateBlockedByResize=!1;cn.read(()=>{u=window.innerWidth}),e(a,()=>{const w=window.innerWidth;w!==u&&(u=w,this.root.updateBlockedByResize=!0,g&&g(),g=W$(f,250),WI.hasAnimatedSinceResize&&(WI.hasAnimatedSinceResize=!1,this.nodes.forEach(aP)))})}B&&this.root.registerSharedNode(B,this),this.options.animate!==!1&&l&&(B||c)&&this.addEventListener("didUpdate",({delta:g,hasLayoutChanged:u,hasRelativeLayoutChanged:f,layout:w})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const v=this.options.transition||l.getDefaultTransition()||aAA,{onLayoutAnimationStart:E,onLayoutAnimationComplete:m}=l.getProps(),Z=!this.targetLayout||!J2(this.targetLayout,w),D=!u&&f;if(this.options.layoutRoot||this.resumeFrom||D||u&&(Z||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const T={...Ry(v,"layout"),onPlay:E,onComplete:m};(l.shouldReduceMotion||this.options.layoutRoot)&&(T.delay=0,T.type=!1),this.startAnimation(T),this.setAnimationOrigin(g,D)}else u||aP(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=w})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),ed(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(tAA),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&tP(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let g=0;g<this.path.length;g++){const u=this.path[g];u.shouldResetTransform=!0,(typeof u.latestValues.x=="string"||typeof u.latestValues.y=="string")&&(u.isLayoutDirty=!0),u.updateScroll("snapshot"),u.options.layoutRoot&&u.willUpdate(!1)}const{layoutId:B,layout:c}=this.options;if(B===void 0&&!c)return;const l=this.getTransformTemplate();this.prevTransformTemplateValue=l?l(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){const c=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),c&&this.nodes.forEach(_$),this.nodes.forEach(sP);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(rP);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(q$),this.nodes.forEach($$),this.nodes.forEach(X$),this.nodes.forEach(O$)):this.nodes.forEach(rP),this.clearAllSnapshots();const B=ca.now();kr.delta=Gc(0,1e3/60,B-kr.timestamp),kr.timestamp=B,kr.isProcessing=!0,uy.update.process(kr),uy.preRender.process(kr),uy.render.process(kr),kr.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,jy.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(j$),this.sharedNodes.forEach(nAA)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,cn.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){cn.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!la(this.snapshot.measuredBox.x)&&!la(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let c=0;c<this.path.length;c++)this.path[c].updateScroll();const a=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=Ks()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:B}=this.options;B&&B.notify("LayoutMeasure",this.layout.layoutBox,a?a.layoutBox:void 0)}updateScroll(a="measure"){let B=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(B=!1),B&&this.instance){const c=n(this.instance);this.scroll={animationId:this.root.animationId,phase:a,isRoot:c,offset:t(this.instance),wasRoot:this.scroll?this.scroll.isRoot:c}}}resetTransform(){if(!s)return;const a=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,B=this.projectionDelta&&!L2(this.projectionDelta),c=this.getTransformTemplate(),l=c?c(this.latestValues,""):void 0,g=l!==this.prevTransformTemplateValue;a&&this.instance&&(B||dG(this.latestValues)||g)&&(s(this.instance,l),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){const B=this.measurePageBox();let c=this.removeElementScroll(B);return a&&(c=this.removeTransform(c)),iAA(c),{animationId:this.root.animationId,measuredBox:B,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:a}=this.options;if(!a)return Ks();const B=a.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(BAA))){const{scroll:l}=this.root;l&&(hc(B.x,l.offset.x),hc(B.y,l.offset.y))}return B}removeElementScroll(a){const B=Ks();if(so(B,a),this.scroll?.wasRoot)return B;for(let c=0;c<this.path.length;c++){const l=this.path[c],{scroll:g,options:u}=l;l!==this.root&&g&&u.layoutScroll&&(g.wasRoot&&so(B,a),hc(B.x,g.offset.x),hc(B.y,g.offset.y))}return B}applyTransform(a,B=!1,c){const l=c||Ks();so(l,a);for(let g=0;g<this.path.length;g++){const u=this.path[g];!B&&u.options.layoutScroll&&u.scroll&&u!==u.root&&(hc(l.x,-u.scroll.offset.x),hc(l.y,-u.scroll.offset.y)),dG(u.latestValues)&&RI(l,u.latestValues,u.layout?.layoutBox)}return dG(this.latestValues)&&RI(l,this.latestValues,this.layout?.layoutBox),l}removeTransform(a){const B=Ks();so(B,a);for(let c=0;c<this.path.length;c++){const l=this.path[c];if(!dG(l.latestValues))continue;let g;l.instance&&(s3(l.latestValues)&&l.updateSnapshot(),g=Ks(),so(g,l.measurePageBox())),N2(B,l.latestValues,l.snapshot?.layoutBox,g)}return dG(this.latestValues)&&N2(B,this.latestValues),B}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(a){this.options={...this.options,...a,crossfade:a.crossfade!==void 0?a.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==kr.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!1){const B=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=B.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=B.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=B.isSharedProjectionDirty);const c=!!this.resumingFrom||this!==B;if(!(a||c&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:g,layoutId:u}=this.options;if(!this.layout||!(g||u))return;this.resolvedRelativeTargetAt=kr.timestamp;const f=this.getClosestProjectingParent();f&&this.linkedParentVersion!==f.layoutVersion&&!f.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&f&&f.layout?this.createRelativeTarget(f,this.layout.layoutBox,f.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Ks(),this.targetWithTransforms=Ks()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Y$(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):so(this.target,this.layout.layoutBox),Q2(this.target,this.targetDelta)):so(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&f&&!!f.resumingFrom==!!this.resumingFrom&&!f.options.layoutScroll&&f.target&&this.animationProgress!==1?this.createRelativeTarget(f,this.target,f.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||s3(this.parent.latestValues)||f2(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(a,B,c){this.relativeParent=a,this.linkedParentVersion=a.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Ks(),this.relativeTargetOrigin=Ks(),SI(this.relativeTargetOrigin,B,c,this.options.layoutAnchor||void 0),so(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const a=this.getLead(),B=!!this.resumingFrom||this!==a;let c=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(c=!1),B&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===kr.timestamp&&(c=!1),c)return;const{layout:l,layoutId:g}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(l||g))return;so(this.layoutCorrected,this.layout.layoutBox);const u=this.treeScale.x,f=this.treeScale.y;s$(this.layoutCorrected,this.treeScale,this.path,B),a.layout&&!a.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(a.target=a.layout.layoutBox,a.targetWithTransforms=Ks());const{target:w}=a;if(!w){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(M2(this.prevProjectionDelta.x,this.projectionDelta.x),M2(this.prevProjectionDelta.y,this.projectionDelta.y)),XQ(this.projectionDelta,this.layoutCorrected,w,this.latestValues),(this.treeScale.x!==u||this.treeScale.y!==f||!j2(this.projectionDelta.x,this.prevProjectionDelta.x)||!j2(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",w))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){if(this.options.visualElement?.scheduleRender(),a){const B=this.getStack();B&&B.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=bh(),this.projectionDelta=bh(),this.projectionDeltaWithTransform=bh()}setAnimationOrigin(a,B=!1){const c=this.snapshot,l=c?c.latestValues:{},g={...this.latestValues},u=bh();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!B;const f=Ks(),w=c?c.source:void 0,v=this.layout?this.layout.source:void 0,E=w!==v,m=this.getStack(),Z=!m||m.members.length<=1,D=!!(E&&!Z&&this.options.crossfade===!0&&!this.path.some(rAA));this.animationProgress=0;let T;this.mixTargetDelta=S=>{const F=S/1e3;iP(u.x,a.x,F),iP(u.y,a.y,F),this.setTargetDelta(u),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(SI(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),sAA(this.relativeTarget,this.relativeTargetOrigin,f,F),T&&D$(this.relativeTarget,T)&&(this.isProjectionDirty=!1),T||(T=Ks()),so(T,this.relativeTarget)),E&&(this.animationValues=g,x$(g,l,this.latestValues,F,D,Z)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=F},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(ed(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=cn.update(()=>{WI.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=wh(0)),this.motionValue.jump(0,!1),this.currentAnimation=R$(this.motionValue,[0,1e3],{...a,velocity:0,isSync:!0,onUpdate:B=>{this.mixTargetDelta(B),a.onUpdate&&a.onUpdate(B)},onStop:()=>{},onComplete:()=>{a.onComplete&&a.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(z$),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:B,target:c,layout:l,latestValues:g}=a;if(!(!B||!c||!l)){if(this!==a&&this.layout&&l&&gP(this.options.animationType,this.layout.layoutBox,l.layoutBox)){c=this.target||Ks();const u=la(this.layout.layoutBox.x);c.x.min=a.target.x.min,c.x.max=c.x.min+u;const f=la(this.layout.layoutBox.y);c.y.min=a.target.y.min,c.y.max=c.y.min+f}so(B,c),RI(B,g),XQ(this.projectionDeltaWithTransform,this.layoutCorrected,B,g)}}registerSharedNode(a,B){this.sharedNodes.has(a)||this.sharedNodes.set(a,new N$),this.sharedNodes.get(a).add(B);const l=B.options.initialPromotionConfig;B.promote({transition:l?l.transition:void 0,preserveFollowOpacity:l&&l.shouldPreserveFollowOpacity?l.shouldPreserveFollowOpacity(B):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){const{layoutId:a}=this.options;return a?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:a}=this.options;return a?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:B,preserveFollowOpacity:c}={}){const l=this.getStack();l&&l.promote(this,c),a&&(this.projectionDelta=void 0,this.needsReset=!0),B&&this.setOptions({transition:B})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetSkewAndRotation(){const{visualElement:a}=this.options;if(!a)return;let B=!1;const{latestValues:c}=a;if((c.z||c.rotate||c.rotateX||c.rotateY||c.rotateZ||c.skewX||c.skewY)&&(B=!0),!B)return;const l={};c.z&&l3("z",a,l,this.animationValues);for(let g=0;g<c3.length;g++)l3(`rotate${c3[g]}`,a,l,this.animationValues),l3(`skew${c3[g]}`,a,l,this.animationValues);a.render();for(const g in l)a.setStaticValue(g,l[g]),this.animationValues&&(this.animationValues[g]=l[g]);a.scheduleRender()}applyProjectionStyles(a,B){if(!this.instance||this.isSVG)return;if(!this.isVisible){a.visibility="hidden";return}const c=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,a.visibility="",a.opacity="",a.pointerEvents=VI(B?.pointerEvents)||"",a.transform=c?c(this.latestValues,""):"none";return}const l=this.getLead();if(!this.projectionDelta||!this.layout||!l.target){this.options.layoutId&&(a.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,a.pointerEvents=VI(B?.pointerEvents)||""),this.hasProjected&&!dG(this.latestValues)&&(a.transform=c?c({},""):"none",this.hasProjected=!1);return}a.visibility="";const g=l.animationValues||l.latestValues;this.applyTransformsToTarget();let u=F$(this.projectionDeltaWithTransform,this.treeScale,g);c&&(u=c(g,u)),a.transform=u;const{x:f,y:w}=this.projectionDelta;a.transformOrigin=`${f.origin*100}% ${w.origin*100}% 0`,l.animationValues?a.opacity=l===this?g.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:g.opacityExit:a.opacity=l===this?g.opacity!==void 0?g.opacity:"":g.opacityExit!==void 0?g.opacityExit:0;for(const v in i3){if(g[v]===void 0)continue;const{correct:E,applyTo:m,isCSSVariable:Z}=i3[v],D=u==="none"?g[v]:E(g[v],l);if(m){const T=m.length;for(let S=0;S<T;S++)a[m[S]]=D}else Z?this.options.visualElement.renderState.vars[v]=D:a[v]=D}this.options.layoutId&&(a.pointerEvents=l===this?VI(B?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>a.currentAnimation?.stop()),this.root.nodes.forEach(sP),this.root.sharedNodes.clear()}}}function X$(e){e.updateLayout()}function O$(e){const A=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&A&&e.hasListeners("didUpdate")){const{layoutBox:t,measuredBox:n}=e.layout,{animationType:s}=e.options,r=A.source!==e.layout.source;if(s==="size")wc(g=>{const u=r?A.measuredBox[g]:A.layoutBox[g],f=la(u);u.min=t[g].min,u.max=u.min+f});else if(s==="x"||s==="y"){const g=s==="x"?"y":"x";o3(r?A.measuredBox[g]:A.layoutBox[g],t[g])}else gP(s,A.layoutBox,t)&&wc(g=>{const u=r?A.measuredBox[g]:A.layoutBox[g],f=la(t[g]);u.max=u.min+f,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[g].max=e.relativeTarget[g].min+f)});const a=bh();XQ(a,t,A.layoutBox);const B=bh();r?XQ(B,e.applyTransform(n,!0),A.measuredBox):XQ(B,t,A.layoutBox);const c=!L2(a);let l=!1;if(!e.resumeFrom){const g=e.getClosestProjectingParent();if(g&&!g.resumeFrom){const{snapshot:u,layout:f}=g;if(u&&f){const w=e.options.layoutAnchor||void 0,v=Ks();SI(v,A.layoutBox,u.layoutBox,w);const E=Ks();SI(E,t,f.layoutBox,w),J2(v,E)||(l=!0),g.options.layoutRoot&&(e.relativeTarget=E,e.relativeTargetOrigin=v,e.relativeParent=g)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:A,delta:B,layoutDelta:a,hasLayoutChanged:c,hasRelativeLayoutChanged:l})}else if(e.isLead()){const{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function J$(e){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 K$(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function j$(e){e.clearSnapshot()}function sP(e){e.clearMeasurements()}function _$(e){e.isLayoutDirty=!0,e.updateLayout()}function rP(e){e.isLayoutDirty=!1}function q$(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function $$(e){const{visualElement:A}=e.options;A&&A.getProps().onBeforeLayoutMeasure&&A.notify("BeforeLayoutMeasure"),e.resetTransform()}function aP(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function AAA(e){e.resolveTargetDelta()}function eAA(e){e.calcProjection()}function tAA(e){e.resetSkewAndRotation()}function nAA(e){e.removeLeadSnapshot()}function iP(e,A,t){e.translate=mn(A.translate,0,t),e.scale=mn(A.scale,1,t),e.origin=A.origin,e.originPoint=A.originPoint}function BP(e,A,t,n){e.min=mn(A.min,t.min,n),e.max=mn(A.max,t.max,n)}function sAA(e,A,t,n){BP(e.x,A.x,t.x,n),BP(e.y,A.y,t.y,n)}function rAA(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const aAA={duration:.45,ease:[.4,0,.1,1]},oP=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),cP=oP("applewebkit/")&&!oP("chrome/")?Math.round:lB;function lP(e){e.min=cP(e.min),e.max=cP(e.max)}function iAA(e){lP(e.x),lP(e.y)}function gP(e,A,t){return e==="position"||e==="preserve-aspect"&&!y$(K2(A),K2(t),.2)}function BAA(e){return e!==e.root&&e.scroll?.wasRoot}const oAA=nP({attachResizeListener:(e,A)=>OQ(e,"resize",A),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),g3={current:void 0},dP=nP({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!g3.current){const e=new oAA({});e.mount(window),e.setOptions({layoutScroll:!0}),g3.current=e}return g3.current},resetTransform:(e,A)=>{e.style.transform=A!==void 0?A:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),d3=R.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function uP(e,A){if(typeof e=="function")return e(A);e!=null&&(e.current=A)}function cAA(...e){return A=>{let t=!1;const n=e.map(s=>{const r=uP(s,A);return!t&&typeof r=="function"&&(t=!0),r});if(t)return()=>{for(let s=0;s<n.length;s++){const r=n[s];typeof r=="function"?r():uP(e[s],null)}}}}function lAA(...e){return R.useCallback(cAA(...e),e)}class gAA extends R.Component{getSnapshotBeforeUpdate(A){const t=this.props.childRef.current;if(ZI(t)&&A.isPresent&&!this.props.isPresent&&this.props.pop!==!1){const n=t.offsetParent,s=ZI(n)&&n.offsetWidth||0,r=ZI(n)&&n.offsetHeight||0,a=getComputedStyle(t),B=this.props.sizeRef.current;B.height=parseFloat(a.height),B.width=parseFloat(a.width),B.top=t.offsetTop,B.left=t.offsetLeft,B.right=s-B.width-B.left,B.bottom=r-B.height-B.top}return null}componentDidUpdate(){}render(){return this.props.children}}function dAA({children:e,isPresent:A,anchorX:t,anchorY:n,root:s,pop:r}){const a=R.useId(),B=R.useRef(null),c=R.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:l}=R.useContext(d3),g=e.props?.ref??e?.ref,u=lAA(B,g);return R.useInsertionEffect(()=>{const{width:f,height:w,top:v,left:E,right:m,bottom:Z}=c.current;if(A||r===!1||!B.current||!f||!w)return;const D=t==="left"?`left: ${E}`:`right: ${m}`,T=n==="bottom"?`bottom: ${Z}`:`top: ${v}`;B.current.dataset.motionPopId=a;const S=document.createElement("style");l&&(S.nonce=l);const F=s??document.head;return F.appendChild(S),S.sheet&&S.sheet.insertRule(`
56
+ Please change the parent <Route path="${m}"> to <Route path="${m==="/"?"*":`${m}/*`}">.`)}let g=Ao(),u;if(A){let m=typeof A=="string"?iG(A):A;As(c==="/"||m.pathname?.startsWith(c),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${c}" but pathname "${m.pathname}" was given in the \`location\` prop.`),u=m}else u=g;let f=u.pathname||"/",w=f;if(c!=="/"){let m=c.replace(/^\//,"").split("/");w="/"+f.replace(/^\//,"").split("/").slice(m.length).join("/")}let v=wM(e,{pathname:w});$B(l||v!=null,`No routes matched location "${u.pathname}${u.search}${u.hash}" `),$B(v==null||v[v.length-1].route.element!==void 0||v[v.length-1].route.Component!==void 0||v[v.length-1].route.lazy!==void 0,`Matched leaf route at location "${u.pathname}${u.search}${u.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let E=Rj(v&&v.map(m=>Object.assign({},m,{params:Object.assign({},a,m.params),pathname:dc([c,n.encodeLocation?n.encodeLocation(m.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:m.pathname]),pathnameBase:m.pathnameBase==="/"?c:dc([c,n.encodeLocation?n.encodeLocation(m.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:m.pathnameBase])})),s,t);return A&&E?R.createElement(ZQ.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...u},navigationType:"POP"}},E):E}function Mj(){let e=zj(),A=vj(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),t=e instanceof Error?e.stack:null,n="rgba(200,200,200, 0.5)",s={padding:"0.5rem",backgroundColor:n},r={padding:"2px 4px",backgroundColor:n},a=null;return console.error("Error handled by React Router default ErrorBoundary:",e),a=R.createElement(R.Fragment,null,R.createElement("p",null,"💿 Hey developer 👋"),R.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",R.createElement("code",{style:r},"ErrorBoundary")," or"," ",R.createElement("code",{style:r},"errorElement")," prop on your route.")),R.createElement(R.Fragment,null,R.createElement("h2",null,"Unexpected Application Error!"),R.createElement("h3",{style:{fontStyle:"italic"}},A),t?R.createElement("pre",{style:s},t):null,a)}var xj=R.createElement(Mj,null),DM=class extends R.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,A){return A.location!==e.location||A.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:A.error,location:A.location,revalidation:e.revalidation||A.revalidation}}componentDidCatch(e,A){this.props.onError?this.props.onError(e,A):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){const t=kj(e.digest);t&&(e=t)}let A=e!==void 0?R.createElement(Hl.Provider,{value:this.props.routeContext},R.createElement(JE.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?R.createElement(Pj,{error:e},A):A}};DM.contextType=EM;var KE=new WeakMap;function Pj({children:e,error:A}){let{basename:t}=R.useContext(cB);if(typeof A=="object"&&A&&"digest"in A&&typeof A.digest=="string"){let n=Zj(A.digest);if(n){let s=KE.get(A);if(s)throw s;let r=HM(n.location,t);if(pM&&!KE.get(A))if(r.isExternal||n.reloadDocument)window.location.href=r.absoluteURL||r.to;else{const a=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(r.to,{replace:n.replace}));throw KE.set(A,a),a}return R.createElement("meta",{httpEquiv:"refresh",content:`0;url=${r.absoluteURL||r.to}`})}}return e}function Tj({routeContext:e,match:A,children:t}){let n=R.useContext(gh);return n&&n.static&&n.staticContext&&(A.route.errorElement||A.route.ErrorBoundary)&&(n.staticContext._deepestRenderedBoundaryId=A.route.id),R.createElement(Hl.Provider,{value:e},t)}function Rj(e,A=[],t){let n=t?.state;if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(A.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let s=e,r=n?.errors;if(r!=null){let g=s.findIndex(u=>u.route.id&&r?.[u.route.id]!==void 0);As(g>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(r).join(",")}`),s=s.slice(0,Math.min(s.length,g+1))}let a=!1,B=-1;if(t&&n){a=n.renderFallback;for(let g=0;g<s.length;g++){let u=s[g];if((u.route.HydrateFallback||u.route.hydrateFallbackElement)&&(B=g),u.route.id){let{loaderData:f,errors:w}=n,v=u.route.loader&&!f.hasOwnProperty(u.route.id)&&(!w||w[u.route.id]===void 0);if(u.route.lazy||v){t.isStatic&&(a=!0),B>=0?s=s.slice(0,B+1):s=[s[0]];break}}}}let c=t?.onError,l=n&&c?(g,u)=>{c(g,{location:n.location,params:n.matches?.[0]?.params??{},unstable_pattern:Ij(n.matches),errorInfo:u})}:void 0;return s.reduceRight((g,u,f)=>{let w,v=!1,E=null,m=null;n&&(w=r&&u.route.id?r[u.route.id]:void 0,E=u.route.errorElement||xj,a&&(B<0&&f===0?(MM("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),v=!0,m=null):B===f&&(v=!0,m=u.route.hydrateFallbackElement||null)));let Z=A.concat(s.slice(0,f+1)),D=()=>{let T;return w?T=E:v?T=m:u.route.Component?T=R.createElement(u.route.Component,null):u.route.element?T=u.route.element:T=g,R.createElement(Tj,{match:u,routeContext:{outlet:g,matches:Z,isDataRoute:n!=null},children:T})};return n&&(u.route.ErrorBoundary||u.route.errorElement||f===0)?R.createElement(DM,{location:n.location,revalidation:n.revalidation,component:E,error:w,children:D(),routeContext:{outlet:null,matches:Z,isDataRoute:!0},onError:l}):D()},null)}function jE(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Sj(e){let A=R.useContext(gh);return As(A,jE(e)),A}function Vj(e){let A=R.useContext(gI);return As(A,jE(e)),A}function Wj(e){let A=R.useContext(Hl);return As(A,jE(e)),A}function _E(e){let A=Wj(e),t=A.matches[A.matches.length-1];return As(t.route.id,`${e} can only be used on routes that contain a unique "id"`),t.route.id}function Nj(){return _E("useRouteId")}function zj(){let e=R.useContext(JE),A=Vj("useRouteError"),t=_E("useRouteError");return e!==void 0?e:A.errors?.[t]}function Lj(){let{router:e}=Sj("useNavigate"),A=_E("useNavigate"),t=R.useRef(!1);return kM(()=>{t.current=!0}),R.useCallback(async(s,r={})=>{$B(t.current,ZM),t.current&&(typeof s=="number"?await e.navigate(s):await e.navigate(s,{fromRouteId:A,...r}))},[e,A])}var FM={};function MM(e,A,t){!A&&!FM[e]&&(FM[e]=!0,$B(!1,t))}R.memo(Xj);function Xj({routes:e,future:A,state:t,isStatic:n,onError:s}){return UM(e,void 0,{state:t,isStatic:n,onError:s})}function Oj({basename:e,children:A,initialEntries:t,initialIndex:n,unstable_useTransitions:s}){let r=R.useRef();r.current==null&&(r.current=$K({initialEntries:t,initialIndex:n,v5Compat:!0}));let a=r.current,[B,c]=R.useState({action:a.action,location:a.location}),l=R.useCallback(g=>{s===!1?c(g):R.startTransition(()=>c(g))},[s]);return R.useLayoutEffect(()=>a.listen(l),[a,l]),R.createElement(Jj,{basename:e,children:A,location:B.location,navigationType:B.action,navigator:a,unstable_useTransitions:s})}function uc(e){As(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function Jj({basename:e="/",children:A=null,location:t,navigationType:n="POP",navigator:s,static:r=!1,unstable_useTransitions:a}){As(!kQ(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let B=e.replace(/^\/*/,"/"),c=R.useMemo(()=>({basename:B,navigator:s,static:r,unstable_useTransitions:a,future:{}}),[B,s,r,a]);typeof t=="string"&&(t=iG(t));let{pathname:l="/",search:g="",hash:u="",state:f=null,key:w="default",unstable_mask:v}=t,E=R.useMemo(()=>{let m=pl(l,B);return m==null?null:{location:{pathname:m,search:g,hash:u,state:f,key:w,unstable_mask:v},navigationType:n}},[B,l,g,u,f,w,n,v]);return $B(E!=null,`<Router basename="${B}"> is not able to match the URL "${l}${g}${u}" because it does not start with the basename, so the <Router> won't render anything.`),E==null?null:R.createElement(cB.Provider,{value:c},R.createElement(ZQ.Provider,{children:A,value:E}))}function Kj({children:e,location:A}){return Fj(qE(e),A)}function qE(e,A=[]){let t=[];return R.Children.forEach(e,(n,s)=>{if(!R.isValidElement(n))return;let r=[...A,s];if(n.type===R.Fragment){t.push.apply(t,qE(n.props.children,r));return}As(n.type===uc,`[${typeof n.type=="string"?n.type:n.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),As(!n.props.index||!n.props.children,"An index route cannot have child routes.");let a={id:n.props.id||r.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,middleware:n.props.middleware,loader:n.props.loader,action:n.props.action,hydrateFallbackElement:n.props.hydrateFallbackElement,HydrateFallback:n.props.HydrateFallback,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.hasErrorBoundary===!0||n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(a.children=qE(n.props.children,r)),t.push(a)}),t}var dI="get",uI="application/x-www-form-urlencoded";function GI(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function jj(e){return GI(e)&&e.tagName.toLowerCase()==="button"}function _j(e){return GI(e)&&e.tagName.toLowerCase()==="form"}function qj(e){return GI(e)&&e.tagName.toLowerCase()==="input"}function $j(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function A_(e,A){return e.button===0&&(!A||A==="_self")&&!$j(e)}var fI=null;function e_(){if(fI===null)try{new FormData(document.createElement("form"),0),fI=!1}catch{fI=!0}return fI}var t_=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function $E(e){return e!=null&&!t_.has(e)?($B(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${uI}"`),null):e}function n_(e,A){let t,n,s,r,a;if(_j(e)){let B=e.getAttribute("action");n=B?pl(B,A):null,t=e.getAttribute("method")||dI,s=$E(e.getAttribute("enctype"))||uI,r=new FormData(e)}else if(jj(e)||qj(e)&&(e.type==="submit"||e.type==="image")){let B=e.form;if(B==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let c=e.getAttribute("formaction")||B.getAttribute("action");if(n=c?pl(c,A):null,t=e.getAttribute("formmethod")||B.getAttribute("method")||dI,s=$E(e.getAttribute("formenctype"))||$E(B.getAttribute("enctype"))||uI,r=new FormData(B,e),!e_()){let{name:l,type:g,value:u}=e;if(g==="image"){let f=l?`${l}.`:"";r.append(`${f}x`,"0"),r.append(`${f}y`,"0")}else l&&r.append(l,u)}}else{if(GI(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');t=dI,n=null,s=uI,a=e}return r&&s==="text/plain"&&(a=r,r=void 0),{action:n,method:t.toLowerCase(),encType:s,formData:r,body:a}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Ay(e,A){if(e===!1||e===null||typeof e>"u")throw new Error(A)}function xM(e,A,t,n){let s=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return t?s.pathname.endsWith("/")?s.pathname=`${s.pathname}_.${n}`:s.pathname=`${s.pathname}.${n}`:s.pathname==="/"?s.pathname=`_root.${n}`:A&&pl(s.pathname,A)==="/"?s.pathname=`${A.replace(/\/$/,"")}/_root.${n}`:s.pathname=`${s.pathname.replace(/\/$/,"")}.${n}`,s}async function s_(e,A){if(e.id in A)return A[e.id];try{let t=await import(e.module);return A[e.id]=t,t}catch(t){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function r_(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function a_(e,A,t){let n=await Promise.all(e.map(async s=>{let r=A.routes[s.route.id];if(r){let a=await s_(r,t);return a.links?a.links():[]}return[]}));return c_(n.flat(1).filter(r_).filter(s=>s.rel==="stylesheet"||s.rel==="preload").map(s=>s.rel==="stylesheet"?{...s,rel:"prefetch",as:"style"}:{...s,rel:"prefetch"}))}function PM(e,A,t,n,s,r){let a=(c,l)=>t[l]?c.route.id!==t[l].route.id:!0,B=(c,l)=>t[l].pathname!==c.pathname||t[l].route.path?.endsWith("*")&&t[l].params["*"]!==c.params["*"];return r==="assets"?A.filter((c,l)=>a(c,l)||B(c,l)):r==="data"?A.filter((c,l)=>{let g=n.routes[c.route.id];if(!g||!g.hasLoader)return!1;if(a(c,l)||B(c,l))return!0;if(c.route.shouldRevalidate){let u=c.route.shouldRevalidate({currentUrl:new URL(s.pathname+s.search+s.hash,window.origin),currentParams:t[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:c.params,defaultShouldRevalidate:!0});if(typeof u=="boolean")return u}return!0}):[]}function i_(e,A,{includeHydrateFallback:t}={}){return B_(e.map(n=>{let s=A.routes[n.route.id];if(!s)return[];let r=[s.module];return s.clientActionModule&&(r=r.concat(s.clientActionModule)),s.clientLoaderModule&&(r=r.concat(s.clientLoaderModule)),t&&s.hydrateFallbackModule&&(r=r.concat(s.hydrateFallbackModule)),s.imports&&(r=r.concat(s.imports)),r}).flat(1))}function B_(e){return[...new Set(e)]}function o_(e){let A={},t=Object.keys(e).sort();for(let n of t)A[n]=e[n];return A}function c_(e,A){let t=new Set;return new Set(A),e.reduce((n,s)=>{let r=JSON.stringify(o_(s));return t.has(r)||(t.add(r),n.push({key:r,link:s})),n},[])}function ey(){let e=R.useContext(gh);return Ay(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function l_(){let e=R.useContext(gI);return Ay(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var ty=R.createContext(void 0);ty.displayName="FrameworkContext";function ny(){let e=R.useContext(ty);return Ay(e,"You must render this element inside a <HydratedRouter> element"),e}function g_(e,A){let t=R.useContext(ty),[n,s]=R.useState(!1),[r,a]=R.useState(!1),{onFocus:B,onBlur:c,onMouseEnter:l,onMouseLeave:g,onTouchStart:u}=A,f=R.useRef(null);R.useEffect(()=>{if(e==="render"&&a(!0),e==="viewport"){let E=Z=>{Z.forEach(D=>{a(D.isIntersecting)})},m=new IntersectionObserver(E,{threshold:.5});return f.current&&m.observe(f.current),()=>{m.disconnect()}}},[e]),R.useEffect(()=>{if(n){let E=setTimeout(()=>{a(!0)},100);return()=>{clearTimeout(E)}}},[n]);let w=()=>{s(!0)},v=()=>{s(!1),a(!1)};return t?e!=="intent"?[r,f,{}]:[r,f,{onFocus:DQ(B,w),onBlur:DQ(c,v),onMouseEnter:DQ(l,w),onMouseLeave:DQ(g,v),onTouchStart:DQ(u,w)}]:[!1,f,{}]}function DQ(e,A){return t=>{e&&e(t),t.defaultPrevented||A(t)}}function d_({page:e,...A}){let t=Hj(),{router:n}=ey(),s=R.useMemo(()=>wM(n.routes,e,n.basename),[n.routes,e,n.basename]);return s?t?R.createElement(G_,{page:e,matches:s,...A}):R.createElement(f_,{page:e,matches:s,...A}):null}function u_(e){let{manifest:A,routeModules:t}=ny(),[n,s]=R.useState([]);return R.useEffect(()=>{let r=!1;return a_(e,A,t).then(a=>{r||s(a)}),()=>{r=!0}},[e,A,t]),n}function G_({page:e,matches:A,...t}){let n=Ao(),{future:s}=ny(),{basename:r}=ey(),a=R.useMemo(()=>{if(e===n.pathname+n.search+n.hash)return[];let B=xM(e,r,s.unstable_trailingSlashAwareDataRequests,"rsc"),c=!1,l=[];for(let g of A)typeof g.route.shouldRevalidate=="function"?c=!0:l.push(g.route.id);return c&&l.length>0&&B.searchParams.set("_routes",l.join(",")),[B.pathname+B.search]},[r,s.unstable_trailingSlashAwareDataRequests,e,n,A]);return R.createElement(R.Fragment,null,a.map(B=>R.createElement("link",{key:B,rel:"prefetch",as:"fetch",href:B,...t})))}function f_({page:e,matches:A,...t}){let n=Ao(),{future:s,manifest:r,routeModules:a}=ny(),{basename:B}=ey(),{loaderData:c,matches:l}=l_(),g=R.useMemo(()=>PM(e,A,l,r,n,"data"),[e,A,l,r,n]),u=R.useMemo(()=>PM(e,A,l,r,n,"assets"),[e,A,l,r,n]),f=R.useMemo(()=>{if(e===n.pathname+n.search+n.hash)return[];let E=new Set,m=!1;if(A.forEach(D=>{let T=r.routes[D.route.id];!T||!T.hasLoader||(!g.some(S=>S.route.id===D.route.id)&&D.route.id in c&&a[D.route.id]?.shouldRevalidate||T.hasClientLoader?m=!0:E.add(D.route.id))}),E.size===0)return[];let Z=xM(e,B,s.unstable_trailingSlashAwareDataRequests,"data");return m&&E.size>0&&Z.searchParams.set("_routes",A.filter(D=>E.has(D.route.id)).map(D=>D.route.id).join(",")),[Z.pathname+Z.search]},[B,s.unstable_trailingSlashAwareDataRequests,c,n,r,g,A,e,a]),w=R.useMemo(()=>i_(u,r),[u,r]),v=u_(u);return R.createElement(R.Fragment,null,f.map(E=>R.createElement("link",{key:E,rel:"prefetch",as:"fetch",href:E,...t})),w.map(E=>R.createElement("link",{key:E,rel:"modulepreload",href:E,...t})),v.map(({key:E,link:m})=>R.createElement("link",{key:E,nonce:t.nonce,...m,crossOrigin:m.crossOrigin??t.crossOrigin})))}function h_(...e){return A=>{e.forEach(t=>{typeof t=="function"?t(A):t!=null&&(t.current=A)})}}var w_=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{w_&&(window.__reactRouterVersion="7.14.0")}catch{}var TM=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,hI=R.forwardRef(function({onClick:A,discover:t="render",prefetch:n="none",relative:s,reloadDocument:r,replace:a,unstable_mask:B,state:c,target:l,to:g,preventScrollReset:u,viewTransition:f,unstable_defaultShouldRevalidate:w,...v},E){let{basename:m,navigator:Z,unstable_useTransitions:D}=R.useContext(cB),T=typeof g=="string"&&TM.test(g),S=HM(g,m);g=S.to;let F=Uj(g,{relative:s}),V=Ao(),N=null;if(B){let yA=OE(B,[],V.unstable_mask?V.unstable_mask.pathname:"/",!0);m!=="/"&&(yA.pathname=yA.pathname==="/"?m:dc([m,yA.pathname])),N=Z.createHref(yA)}let[X,eA,$]=g_(n,v),rA=v_(g,{replace:a,unstable_mask:B,state:c,target:l,preventScrollReset:u,relative:s,viewTransition:f,unstable_defaultShouldRevalidate:w,unstable_useTransitions:D});function iA(yA){A&&A(yA),yA.defaultPrevented||rA(yA)}let hA=!(S.isExternal||r),fA=R.createElement("a",{...v,...$,href:(hA?N:void 0)||S.absoluteURL||F,onClick:hA?iA:A,ref:h_(E,eA),target:l,"data-discover":!T&&t==="render"?"true":void 0});return X&&!T?R.createElement(R.Fragment,null,fA,R.createElement(d_,{page:F})):fA});hI.displayName="Link";var Q_=R.forwardRef(function({"aria-current":A="page",caseSensitive:t=!1,className:n="",end:s=!1,style:r,to:a,viewTransition:B,children:c,...l},g){let u=UQ(a,{relative:l.relative}),f=Ao(),w=R.useContext(gI),{navigator:v,basename:E}=R.useContext(cB),m=w!=null&&E_(u)&&B===!0,Z=v.encodeLocation?v.encodeLocation(u).pathname:u.pathname,D=f.pathname,T=w&&w.navigation&&w.navigation.location?w.navigation.location.pathname:null;t||(D=D.toLowerCase(),T=T?T.toLowerCase():null,Z=Z.toLowerCase()),T&&E&&(T=pl(T,E)||T);const S=Z!=="/"&&Z.endsWith("/")?Z.length-1:Z.length;let F=D===Z||!s&&D.startsWith(Z)&&D.charAt(S)==="/",V=T!=null&&(T===Z||!s&&T.startsWith(Z)&&T.charAt(Z.length)==="/"),N={isActive:F,isPending:V,isTransitioning:m},X=F?A:void 0,eA;typeof n=="function"?eA=n(N):eA=[n,F?"active":null,V?"pending":null,m?"transitioning":null].filter(Boolean).join(" ");let $=typeof r=="function"?r(N):r;return R.createElement(hI,{...l,"aria-current":X,className:eA,ref:g,style:$,to:a,viewTransition:B},typeof c=="function"?c(N):c)});Q_.displayName="NavLink";var b_=R.forwardRef(({discover:e="render",fetcherKey:A,navigate:t,reloadDocument:n,replace:s,state:r,method:a=dI,action:B,onSubmit:c,relative:l,preventScrollReset:g,viewTransition:u,unstable_defaultShouldRevalidate:f,...w},v)=>{let{unstable_useTransitions:E}=R.useContext(cB),m=H_(),Z=m_(B,{relative:l}),D=a.toLowerCase()==="get"?"get":"post",T=typeof B=="string"&&TM.test(B),S=F=>{if(c&&c(F),F.defaultPrevented)return;F.preventDefault();let V=F.nativeEvent.submitter,N=V?.getAttribute("formmethod")||a,X=()=>m(V||F.currentTarget,{fetcherKey:A,method:N,navigate:t,replace:s,state:r,relative:l,preventScrollReset:g,viewTransition:u,unstable_defaultShouldRevalidate:f});E&&t!==!1?R.startTransition(()=>X()):X()};return R.createElement("form",{ref:v,method:D,action:Z,onSubmit:n?c:S,...w,"data-discover":!T&&e==="render"?"true":void 0})});b_.displayName="Form";function C_(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function RM(e){let A=R.useContext(gh);return As(A,C_(e)),A}function v_(e,{target:A,replace:t,unstable_mask:n,state:s,preventScrollReset:r,relative:a,viewTransition:B,unstable_defaultShouldRevalidate:c,unstable_useTransitions:l}={}){let g=za(),u=Ao(),f=UQ(e,{relative:a});return R.useCallback(w=>{if(A_(w,A)){w.preventDefault();let v=t!==void 0?t:cI(u)===cI(f),E=()=>g(e,{replace:v,unstable_mask:n,state:s,preventScrollReset:r,relative:a,viewTransition:B,unstable_defaultShouldRevalidate:c});l?R.startTransition(()=>E()):E()}},[u,g,f,t,n,s,A,e,r,a,B,c,l])}var I_=0,p_=()=>`__${String(++I_)}__`;function H_(){let{router:e}=RM("useSubmit"),{basename:A}=R.useContext(cB),t=Nj(),n=e.fetch,s=e.navigate;return R.useCallback(async(r,a={})=>{let{action:B,method:c,encType:l,formData:g,body:u}=n_(r,A);if(a.navigate===!1){let f=a.fetcherKey||p_();await n(f,t,a.action||B,{unstable_defaultShouldRevalidate:a.unstable_defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:g,body:u,formMethod:a.method||c,formEncType:a.encType||l,flushSync:a.flushSync})}else await s(a.action||B,{unstable_defaultShouldRevalidate:a.unstable_defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:g,body:u,formMethod:a.method||c,formEncType:a.encType||l,replace:a.replace,state:a.state,fromRouteId:t,flushSync:a.flushSync,viewTransition:a.viewTransition})},[n,s,A,t])}function m_(e,{relative:A}={}){let{basename:t}=R.useContext(cB),n=R.useContext(Hl);As(n,"useFormAction must be used inside a RouteContext");let[s]=n.matches.slice(-1),r={...UQ(e||".",{relative:A})},a=Ao();if(e==null){r.search=a.search;let B=new URLSearchParams(r.search),c=B.getAll("index");if(c.some(g=>g==="")){B.delete("index"),c.filter(u=>u).forEach(u=>B.append("index",u));let g=B.toString();r.search=g?`?${g}`:""}}return(!e||e===".")&&s.route.index&&(r.search=r.search?r.search.replace(/^\?/,"?index&"):"?index"),t!=="/"&&(r.pathname=r.pathname==="/"?t:dc([t,r.pathname])),cI(r)}function E_(e,{relative:A}={}){let t=R.useContext(yM);As(t!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:n}=RM("useViewTransitionState"),s=UQ(e,{relative:A});if(!t.isTransitioning)return!1;let r=pl(t.currentLocation.pathname,n)||t.currentLocation.pathname,a=pl(t.nextLocation.pathname,n)||t.nextLocation.pathname;return lI(s.pathname,a)!=null||lI(s.pathname,r)!=null}const sy="beta@careshiphealth.com",BG="https://beta.careshiphealth.com",FQ="https://api.beta.careshiphealth.com",wI=`${FQ}/rt`,ry=420,MQ=540,y_=520,eo={FACE_LG_ICON:`${BG}/bolt/faceLg.svg`,AI_ASSISTANT_TALK_ICON:`${BG}/bolt/new/ai-assistant-talk-icon.svg`,AI_ASSISTANT_CHAT_ICON:`${BG}/bolt/new/ai-assistant-chat-icon.svg`,AI_ASSISTANT__CALL_ICON:`${BG}/bolt/new/ai-assistant-call-icon.svg`,AI_ASSISTANT_ICON_BW:`${BG}/bolt/new/ai-assistant-icon-bw.svg`,MINIMIZE_ICON:`${BG}/bolt/new/minimize-icon.svg`,MAXIMIZE_ICON:`${BG}/bolt/new/maximize-icon.svg`},ay="Ela",Y_=e=>p.jsxs("svg",{width:"34",height:"34",viewBox:"0 0 34 34",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[p.jsx("path",{d:"M14.788 9.48971C14.5248 9.05746 14.1061 8.74231 13.6179 8.60892C13.1297 8.47552 12.609 8.53399 12.1625 8.77233C10.0479 9.9113 8.85588 12.1545 9.63525 14.3233C10.5054 16.7288 11.8175 18.9504 13.5041 20.8736C15.178 22.7934 17.1908 24.3887 19.4421 25.5799C21.4658 26.6469 23.8375 25.7746 25.2439 23.8137C25.5398 23.4011 25.6681 22.8917 25.603 22.3882C25.538 21.8848 25.2843 21.4247 24.8933 21.1009L23.3591 19.8338C23.0516 19.5788 22.6745 19.4221 22.2768 19.384C21.8791 19.346 21.4792 19.4283 21.1288 19.6203L18.456 21.0859L17.857 20.6704C17.1019 20.1437 16.411 19.5305 15.7985 18.8432C15.1987 18.1437 14.6865 17.3736 14.2732 16.55L13.9463 15.9052L15.7449 13.4461C15.9827 13.1198 16.1177 12.73 16.1327 12.3265C16.1477 11.923 16.042 11.5243 15.829 11.1813L14.788 9.48971ZM11.0452 6.69431C12.0219 6.171 13.1616 6.041 14.231 6.33095C15.3004 6.6209 16.2184 7.30884 16.797 8.2538L17.8352 9.94349C18.2934 10.6853 18.5203 11.5468 18.4868 12.4181C18.4533 13.2893 18.161 14.1309 17.6471 14.8353L16.7193 16.1029C16.9446 16.4768 17.2323 16.8985 17.575 17.2949C17.9164 17.6843 18.2917 18.0262 18.6269 18.299L19.9935 17.5482C20.7578 17.1299 21.63 16.9506 22.4973 17.0335C23.3646 17.1164 24.1871 17.4578 24.8582 18.0133L26.3925 19.2804C27.2451 19.9846 27.7986 20.9863 27.9411 22.0829C28.0836 23.1796 27.8044 24.2894 27.1601 25.1881C25.2861 27.8016 21.707 29.439 18.3439 27.665C15.8368 26.3392 13.5952 24.5633 11.7308 22.4261C9.84914 20.2812 8.38523 17.8032 7.41459 15.1201C6.13111 11.5432 8.22187 8.21369 11.0457 6.69662",fill:e?.color||"black"}),p.jsx("path",{d:"M25.026 11.6502L25.3027 11.0139C25.7888 9.88815 26.6795 8.9853 27.7991 8.48354L28.6541 8.10358C28.7574 8.05583 28.8449 7.97955 28.9061 7.88374C28.9674 7.78793 29 7.67659 29 7.56288C29 7.44918 28.9674 7.33784 28.9061 7.24203C28.8449 7.14622 28.7574 7.06993 28.6541 7.02218L27.8464 6.66247C26.6986 6.14642 25.7927 5.21019 25.3151 4.04664L25.0305 3.36093C24.9887 3.25454 24.9158 3.1632 24.8213 3.09882C24.7267 3.03444 24.615 3 24.5006 3C24.3862 3 24.2745 3.03444 24.18 3.09882C24.0854 3.1632 24.0125 3.25454 23.9707 3.36093L23.6861 4.04777C23.208 5.2111 22.3017 6.14692 21.1537 6.66247L20.3471 7.02106C20.2435 7.06867 20.1557 7.14497 20.0942 7.2409C20.0327 7.33684 20 7.44838 20 7.56232C20 7.67626 20.0327 7.78781 20.0942 7.88374C20.1557 7.97967 20.2435 8.05597 20.3471 8.10358L21.201 8.48466C22.3208 8.98593 23.2119 9.88837 23.6985 11.0139L23.9752 11.6502C24.0185 11.7538 24.0914 11.8423 24.1849 11.9045C24.2784 11.9668 24.3883 12 24.5006 12C24.613 12 24.7228 11.9668 24.8163 11.9045C24.9098 11.8423 24.9827 11.7538 25.026 11.6502Z",fill:e?.color||"black"})]}),iy=R.createContext({});function QI(e){const A=R.useRef(null);return A.current===null&&(A.current=e()),A.current}const By=typeof window<"u"?R.useLayoutEffect:R.useEffect,bI=R.createContext(null);function oy(e,A){e.indexOf(A)===-1&&e.push(A)}function CI(e,A){const t=e.indexOf(A);t>-1&&e.splice(t,1)}const Gc=(e,A,t)=>t>A?A:t<e?e:t;let cy=()=>{};const Ad={},SM=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function VM(e){return typeof e=="object"&&e!==null}const WM=e=>/^0[^.\s]+$/u.test(e);function NM(e){let A;return()=>(A===void 0&&(A=e()),A)}const lB=e=>e,Z_=(e,A)=>t=>A(e(t)),xQ=(...e)=>e.reduce(Z_),PQ=(e,A,t)=>{const n=A-e;return n===0?1:(t-e)/n};class ly{constructor(){this.subscriptions=[]}add(A){return oy(this.subscriptions,A),()=>CI(this.subscriptions,A)}notify(A,t,n){const s=this.subscriptions.length;if(s)if(s===1)this.subscriptions[0](A,t,n);else for(let r=0;r<s;r++){const a=this.subscriptions[r];a&&a(A,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Hi=e=>e*1e3,gB=e=>e/1e3;function zM(e,A){return A?e*(1e3/A):0}const LM=(e,A,t)=>(((1-3*t+3*A)*e+(3*t-6*A))*e+3*A)*e,k_=1e-7,U_=12;function D_(e,A,t,n,s){let r,a,B=0;do a=A+(t-A)/2,r=LM(a,n,s)-e,r>0?t=a:A=a;while(Math.abs(r)>k_&&++B<U_);return a}function TQ(e,A,t,n){if(e===A&&t===n)return lB;const s=r=>D_(r,0,1,e,t);return r=>r===0||r===1?r:LM(s(r),A,n)}const XM=e=>A=>A<=.5?e(2*A)/2:(2-e(2*(1-A)))/2,OM=e=>A=>1-e(1-A),JM=TQ(.33,1.53,.69,.99),gy=OM(JM),KM=XM(gy),jM=e=>e>=1?1:(e*=2)<1?.5*gy(e):.5*(2-Math.pow(2,-10*(e-1))),dy=e=>1-Math.sin(Math.acos(e)),_M=OM(dy),qM=XM(dy),F_=TQ(.42,0,1,1),M_=TQ(0,0,.58,1),$M=TQ(.42,0,.58,1),x_=e=>Array.isArray(e)&&typeof e[0]!="number",Ax=e=>Array.isArray(e)&&typeof e[0]=="number",P_={linear:lB,easeIn:F_,easeInOut:$M,easeOut:M_,circIn:dy,circInOut:qM,circOut:_M,backIn:gy,backInOut:KM,backOut:JM,anticipate:jM},T_=e=>typeof e=="string",ex=e=>{if(Ax(e)){cy(e.length===4);const[A,t,n,s]=e;return TQ(A,t,n,s)}else if(T_(e))return P_[e];return e},vI=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function R_(e,A){let t=new Set,n=new Set,s=!1,r=!1;const a=new WeakSet;let B={delta:0,timestamp:0,isProcessing:!1};function c(g){a.has(g)&&(l.schedule(g),e()),g(B)}const l={schedule:(g,u=!1,f=!1)=>{const v=f&&s?t:n;return u&&a.add(g),v.add(g),g},cancel:g=>{n.delete(g),a.delete(g)},process:g=>{if(B=g,s){r=!0;return}s=!0;const u=t;t=n,n=u,t.forEach(c),t.clear(),s=!1,r&&(r=!1,l.process(g))}};return l}const S_=40;function tx(e,A){let t=!1,n=!0;const s={delta:0,timestamp:0,isProcessing:!1},r=()=>t=!0,a=vI.reduce((T,S)=>(T[S]=R_(r),T),{}),{setup:B,read:c,resolveKeyframes:l,preUpdate:g,update:u,preRender:f,render:w,postRender:v}=a,E=()=>{const T=Ad.useManualTiming,S=T?s.timestamp:performance.now();t=!1,T||(s.delta=n?1e3/60:Math.max(Math.min(S-s.timestamp,S_),1)),s.timestamp=S,s.isProcessing=!0,B.process(s),c.process(s),l.process(s),g.process(s),u.process(s),f.process(s),w.process(s),v.process(s),s.isProcessing=!1,t&&A&&(n=!1,e(E))},m=()=>{t=!0,n=!0,s.isProcessing||e(E)};return{schedule:vI.reduce((T,S)=>{const F=a[S];return T[S]=(V,N=!1,X=!1)=>(t||m(),F.schedule(V,N,X)),T},{}),cancel:T=>{for(let S=0;S<vI.length;S++)a[vI[S]].cancel(T)},state:s,steps:a}}const{schedule:cn,cancel:ed,state:kr,steps:uy}=tx(typeof requestAnimationFrame<"u"?requestAnimationFrame:lB,!0);let II;function V_(){II=void 0}const ca={now:()=>(II===void 0&&ca.set(kr.isProcessing||Ad.useManualTiming?kr.timestamp:performance.now()),II),set:e=>{II=e,queueMicrotask(V_)}},nx=e=>A=>typeof A=="string"&&A.startsWith(e),sx=nx("--"),W_=nx("var(--"),Gy=e=>W_(e)?N_.test(e.split("/*")[0].trim()):!1,N_=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function rx(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const dh={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},RQ={...dh,transform:e=>Gc(0,1,e)},pI={...dh,default:1},SQ=e=>Math.round(e*1e5)/1e5,fy=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function z_(e){return e==null}const L_=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,hy=(e,A)=>t=>!!(typeof t=="string"&&L_.test(t)&&t.startsWith(e)||A&&!z_(t)&&Object.prototype.hasOwnProperty.call(t,A)),ax=(e,A,t)=>n=>{if(typeof n!="string")return n;const[s,r,a,B]=n.match(fy);return{[e]:parseFloat(s),[A]:parseFloat(r),[t]:parseFloat(a),alpha:B!==void 0?parseFloat(B):1}},X_=e=>Gc(0,255,e),wy={...dh,transform:e=>Math.round(X_(e))},oG={test:hy("rgb","red"),parse:ax("red","green","blue"),transform:({red:e,green:A,blue:t,alpha:n=1})=>"rgba("+wy.transform(e)+", "+wy.transform(A)+", "+wy.transform(t)+", "+SQ(RQ.transform(n))+")"};function O_(e){let A="",t="",n="",s="";return e.length>5?(A=e.substring(1,3),t=e.substring(3,5),n=e.substring(5,7),s=e.substring(7,9)):(A=e.substring(1,2),t=e.substring(2,3),n=e.substring(3,4),s=e.substring(4,5),A+=A,t+=t,n+=n,s+=s),{red:parseInt(A,16),green:parseInt(t,16),blue:parseInt(n,16),alpha:s?parseInt(s,16)/255:1}}const Qy={test:hy("#"),parse:O_,transform:oG.transform},VQ=e=>({test:A=>typeof A=="string"&&A.endsWith(e)&&A.split(" ").length===1,parse:parseFloat,transform:A=>`${A}${e}`}),td=VQ("deg"),fc=VQ("%"),Be=VQ("px"),J_=VQ("vh"),K_=VQ("vw"),ix={...fc,parse:e=>fc.parse(e)/100,transform:e=>fc.transform(e*100)},uh={test:hy("hsl","hue"),parse:ax("hue","saturation","lightness"),transform:({hue:e,saturation:A,lightness:t,alpha:n=1})=>"hsla("+Math.round(e)+", "+fc.transform(SQ(A))+", "+fc.transform(SQ(t))+", "+SQ(RQ.transform(n))+")"},Ds={test:e=>oG.test(e)||Qy.test(e)||uh.test(e),parse:e=>oG.test(e)?oG.parse(e):uh.test(e)?uh.parse(e):Qy.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?oG.transform(e):uh.transform(e),getAnimatableNone:e=>{const A=Ds.parse(e);return A.alpha=0,Ds.transform(A)}},j_=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function __(e){return isNaN(e)&&typeof e=="string"&&(e.match(fy)?.length||0)+(e.match(j_)?.length||0)>0}const Bx="number",ox="color",q_="var",$_="var(",cx="${}",A6=/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 Gh(e){const A=e.toString(),t=[],n={color:[],number:[],var:[]},s=[];let r=0;const B=A.replace(A6,c=>(Ds.test(c)?(n.color.push(r),s.push(ox),t.push(Ds.parse(c))):c.startsWith($_)?(n.var.push(r),s.push(q_),t.push(c)):(n.number.push(r),s.push(Bx),t.push(parseFloat(c))),++r,cx)).split(cx);return{values:t,split:B,indexes:n,types:s}}function e6(e){return Gh(e).values}function lx({split:e,types:A}){const t=e.length;return n=>{let s="";for(let r=0;r<t;r++)if(s+=e[r],n[r]!==void 0){const a=A[r];a===Bx?s+=SQ(n[r]):a===ox?s+=Ds.transform(n[r]):s+=n[r]}return s}}function t6(e){return lx(Gh(e))}const n6=e=>typeof e=="number"?0:Ds.test(e)?Ds.getAnimatableNone(e):e,s6=(e,A)=>typeof e=="number"?A?.trim().endsWith("/")?e:0:n6(e);function r6(e){const A=Gh(e);return lx(A)(A.values.map((n,s)=>s6(n,A.split[s])))}const to={test:__,parse:e6,createTransformer:t6,getAnimatableNone:r6};function by(e,A,t){return t<0&&(t+=1),t>1&&(t-=1),t<1/6?e+(A-e)*6*t:t<1/2?A:t<2/3?e+(A-e)*(2/3-t)*6:e}function a6({hue:e,saturation:A,lightness:t,alpha:n}){e/=360,A/=100,t/=100;let s=0,r=0,a=0;if(!A)s=r=a=t;else{const B=t<.5?t*(1+A):t+A-t*A,c=2*t-B;s=by(c,B,e+1/3),r=by(c,B,e),a=by(c,B,e-1/3)}return{red:Math.round(s*255),green:Math.round(r*255),blue:Math.round(a*255),alpha:n}}function HI(e,A){return t=>t>0?A:e}const mn=(e,A,t)=>e+(A-e)*t,Cy=(e,A,t)=>{const n=e*e,s=t*(A*A-n)+n;return s<0?0:Math.sqrt(s)},i6=[Qy,oG,uh],B6=e=>i6.find(A=>A.test(e));function gx(e){const A=B6(e);if(!A)return!1;let t=A.parse(e);return A===uh&&(t=a6(t)),t}const dx=(e,A)=>{const t=gx(e),n=gx(A);if(!t||!n)return HI(e,A);const s={...t};return r=>(s.red=Cy(t.red,n.red,r),s.green=Cy(t.green,n.green,r),s.blue=Cy(t.blue,n.blue,r),s.alpha=mn(t.alpha,n.alpha,r),oG.transform(s))},vy=new Set(["none","hidden"]);function o6(e,A){return vy.has(e)?t=>t<=0?e:A:t=>t>=1?A:e}function c6(e,A){return t=>mn(e,A,t)}function Iy(e){return typeof e=="number"?c6:typeof e=="string"?Gy(e)?HI:Ds.test(e)?dx:d6:Array.isArray(e)?ux:typeof e=="object"?Ds.test(e)?dx:l6:HI}function ux(e,A){const t=[...e],n=t.length,s=e.map((r,a)=>Iy(r)(r,A[a]));return r=>{for(let a=0;a<n;a++)t[a]=s[a](r);return t}}function l6(e,A){const t={...e,...A},n={};for(const s in t)e[s]!==void 0&&A[s]!==void 0&&(n[s]=Iy(e[s])(e[s],A[s]));return s=>{for(const r in n)t[r]=n[r](s);return t}}function g6(e,A){const t=[],n={color:0,var:0,number:0};for(let s=0;s<A.values.length;s++){const r=A.types[s],a=e.indexes[r][n[r]],B=e.values[a]??0;t[s]=B,n[r]++}return t}const d6=(e,A)=>{const t=to.createTransformer(A),n=Gh(e),s=Gh(A);return n.indexes.var.length===s.indexes.var.length&&n.indexes.color.length===s.indexes.color.length&&n.indexes.number.length>=s.indexes.number.length?vy.has(e)&&!s.values.length||vy.has(A)&&!n.values.length?o6(e,A):xQ(ux(g6(n,s),s.values),t):HI(e,A)};function Gx(e,A,t){return typeof e=="number"&&typeof A=="number"&&typeof t=="number"?mn(e,A,t):Iy(e)(e,A)}const u6=e=>{const A=({timestamp:t})=>e(t);return{start:(t=!0)=>cn.update(A,t),stop:()=>ed(A),now:()=>kr.isProcessing?kr.timestamp:ca.now()}},fx=(e,A,t=10)=>{let n="";const s=Math.max(Math.round(A/t),2);for(let r=0;r<s;r++)n+=Math.round(e(r/(s-1))*1e4)/1e4+", ";return`linear(${n.substring(0,n.length-2)})`},mI=2e4;function py(e){let A=0;const t=50;let n=e.next(A);for(;!n.done&&A<mI;)A+=t,n=e.next(A);return A>=mI?1/0:A}function G6(e,A=100,t){const n=t({...e,keyframes:[0,A]}),s=Math.min(py(n),mI);return{type:"keyframes",ease:r=>n.next(s*r).value/A,duration:gB(s)}}const es={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 Hy(e,A){return e*Math.sqrt(1-A*A)}const f6=12;function h6(e,A,t){let n=t;for(let s=1;s<f6;s++)n=n-e(n)/A(n);return n}const my=.001;function w6({duration:e=es.duration,bounce:A=es.bounce,velocity:t=es.velocity,mass:n=es.mass}){let s,r,a=1-A;a=Gc(es.minDamping,es.maxDamping,a),e=Gc(es.minDuration,es.maxDuration,gB(e)),a<1?(s=l=>{const g=l*a,u=g*e,f=g-t,w=Hy(l,a),v=Math.exp(-u);return my-f/w*v},r=l=>{const u=l*a*e,f=u*t+t,w=Math.pow(a,2)*Math.pow(l,2)*e,v=Math.exp(-u),E=Hy(Math.pow(l,2),a);return(-s(l)+my>0?-1:1)*((f-w)*v)/E}):(s=l=>{const g=Math.exp(-l*e),u=(l-t)*e+1;return-my+g*u},r=l=>{const g=Math.exp(-l*e),u=(t-l)*(e*e);return g*u});const B=5/e,c=h6(s,r,B);if(e=Hi(e),isNaN(c))return{stiffness:es.stiffness,damping:es.damping,duration:e};{const l=Math.pow(c,2)*n;return{stiffness:l,damping:a*2*Math.sqrt(n*l),duration:e}}}const Q6=["duration","bounce"],b6=["stiffness","damping","mass"];function hx(e,A){return A.some(t=>e[t]!==void 0)}function C6(e){let A={velocity:es.velocity,stiffness:es.stiffness,damping:es.damping,mass:es.mass,isResolvedFromDuration:!1,...e};if(!hx(e,b6)&&hx(e,Q6))if(A.velocity=0,e.visualDuration){const t=e.visualDuration,n=2*Math.PI/(t*1.2),s=n*n,r=2*Gc(.05,1,1-(e.bounce||0))*Math.sqrt(s);A={...A,mass:es.mass,stiffness:s,damping:r}}else{const t=w6({...e,velocity:0});A={...A,...t,mass:es.mass},A.isResolvedFromDuration=!0}return A}function EI(e=es.visualDuration,A=es.bounce){const t=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:A}:e;let{restSpeed:n,restDelta:s}=t;const r=t.keyframes[0],a=t.keyframes[t.keyframes.length-1],B={done:!1,value:r},{stiffness:c,damping:l,mass:g,duration:u,velocity:f,isResolvedFromDuration:w}=C6({...t,velocity:-gB(t.velocity||0)}),v=f||0,E=l/(2*Math.sqrt(c*g)),m=a-r,Z=gB(Math.sqrt(c/g)),D=Math.abs(m)<5;n||(n=D?es.restSpeed.granular:es.restSpeed.default),s||(s=D?es.restDelta.granular:es.restDelta.default);let T,S,F,V,N,X;if(E<1)F=Hy(Z,E),V=(v+E*Z*m)/F,T=$=>{const rA=Math.exp(-E*Z*$);return a-rA*(V*Math.sin(F*$)+m*Math.cos(F*$))},N=E*Z*V+m*F,X=E*Z*m-V*F,S=$=>Math.exp(-E*Z*$)*(N*Math.sin(F*$)+X*Math.cos(F*$));else if(E===1){T=rA=>a-Math.exp(-Z*rA)*(m+(v+Z*m)*rA);const $=v+Z*m;S=rA=>Math.exp(-Z*rA)*(Z*$*rA-v)}else{const $=Z*Math.sqrt(E*E-1);T=fA=>{const yA=Math.exp(-E*Z*fA),L=Math.min($*fA,300);return a-yA*((v+E*Z*m)*Math.sinh(L)+$*m*Math.cosh(L))/$};const rA=(v+E*Z*m)/$,iA=E*Z*rA-m*$,hA=E*Z*m-rA*$;S=fA=>{const yA=Math.exp(-E*Z*fA),L=Math.min($*fA,300);return yA*(iA*Math.sinh(L)+hA*Math.cosh(L))}}const eA={calculatedDuration:w&&u||null,velocity:$=>Hi(S($)),next:$=>{if(!w&&E<1){const iA=Math.exp(-E*Z*$),hA=Math.sin(F*$),fA=Math.cos(F*$),yA=a-iA*(V*hA+m*fA),L=Hi(iA*(N*hA+X*fA));return B.done=Math.abs(L)<=n&&Math.abs(a-yA)<=s,B.value=B.done?a:yA,B}const rA=T($);if(w)B.done=$>=u;else{const iA=Hi(S($));B.done=Math.abs(iA)<=n&&Math.abs(a-rA)<=s}return B.value=B.done?a:rA,B},toString:()=>{const $=Math.min(py(eA),mI),rA=fx(iA=>eA.next($*iA).value,$,30);return $+"ms "+rA},toTransition:()=>{}};return eA}EI.applyToOptions=e=>{const A=G6(e,100,EI);return e.ease=A.ease,e.duration=Hi(A.duration),e.type="keyframes",e};const v6=5;function wx(e,A,t){const n=Math.max(A-v6,0);return zM(t-e(n),A-n)}function Ey({keyframes:e,velocity:A=0,power:t=.8,timeConstant:n=325,bounceDamping:s=10,bounceStiffness:r=500,modifyTarget:a,min:B,max:c,restDelta:l=.5,restSpeed:g}){const u=e[0],f={done:!1,value:u},w=X=>B!==void 0&&X<B||c!==void 0&&X>c,v=X=>B===void 0?c:c===void 0||Math.abs(B-X)<Math.abs(c-X)?B:c;let E=t*A;const m=u+E,Z=a===void 0?m:a(m);Z!==m&&(E=Z-u);const D=X=>-E*Math.exp(-X/n),T=X=>Z+D(X),S=X=>{const eA=D(X),$=T(X);f.done=Math.abs(eA)<=l,f.value=f.done?Z:$};let F,V;const N=X=>{w(f.value)&&(F=X,V=EI({keyframes:[f.value,v(f.value)],velocity:wx(T,X,f.value),damping:s,stiffness:r,restDelta:l,restSpeed:g}))};return N(0),{calculatedDuration:null,next:X=>{let eA=!1;return!V&&F===void 0&&(eA=!0,S(X),N(X)),F!==void 0&&X>=F?V.next(X-F):(!eA&&S(X),f)}}}function I6(e,A,t){const n=[],s=t||Ad.mix||Gx,r=e.length-1;for(let a=0;a<r;a++){let B=s(e[a],e[a+1]);if(A){const c=Array.isArray(A)?A[a]||lB:A;B=xQ(c,B)}n.push(B)}return n}function p6(e,A,{clamp:t=!0,ease:n,mixer:s}={}){const r=e.length;if(cy(r===A.length),r===1)return()=>A[0];if(r===2&&A[0]===A[1])return()=>A[1];const a=e[0]===e[1];e[0]>e[r-1]&&(e=[...e].reverse(),A=[...A].reverse());const B=I6(A,n,s),c=B.length,l=g=>{if(a&&g<e[0])return A[0];let u=0;if(c>1)for(;u<e.length-2&&!(g<e[u+1]);u++);const f=PQ(e[u],e[u+1],g);return B[u](f)};return t?g=>l(Gc(e[0],e[r-1],g)):l}function H6(e,A){const t=e[e.length-1];for(let n=1;n<=A;n++){const s=PQ(0,A,n);e.push(mn(t,1,s))}}function m6(e){const A=[0];return H6(A,e.length-1),A}function E6(e,A){return e.map(t=>t*A)}function y6(e,A){return e.map(()=>A||$M).splice(0,e.length-1)}function WQ({duration:e=300,keyframes:A,times:t,ease:n="easeInOut"}){const s=x_(n)?n.map(ex):ex(n),r={done:!1,value:A[0]},a=E6(t&&t.length===A.length?t:m6(A),e),B=p6(a,A,{ease:Array.isArray(s)?s:y6(A,s)});return{calculatedDuration:e,next:c=>(r.value=B(c),r.done=c>=e,r)}}const Y6=e=>e!==null;function yI(e,{repeat:A,repeatType:t="loop"},n,s=1){const r=e.filter(Y6),B=s<0||A&&t!=="loop"&&A%2===1?0:r.length-1;return!B||n===void 0?r[B]:n}const Z6={decay:Ey,inertia:Ey,tween:WQ,keyframes:WQ,spring:EI};function Qx(e){typeof e.type=="string"&&(e.type=Z6[e.type])}class yy{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(A=>{this.resolve=A})}notifyFinished(){this.resolve()}then(A,t){return this.finished.then(A,t)}}const k6=e=>e/100;class YI extends yy{constructor(A){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{const{motionValue:t}=this.options;t&&t.updatedAt!==ca.now()&&this.tick(ca.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=A,this.initAnimation(),this.play(),A.autoplay===!1&&this.pause()}initAnimation(){const{options:A}=this;Qx(A);const{type:t=WQ,repeat:n=0,repeatDelay:s=0,repeatType:r,velocity:a=0}=A;let{keyframes:B}=A;const c=t||WQ;c!==WQ&&typeof B[0]!="number"&&(this.mixKeyframes=xQ(k6,Gx(B[0],B[1])),B=[0,100]);const l=c({...A,keyframes:B});r==="mirror"&&(this.mirroredGenerator=c({...A,keyframes:[...B].reverse(),velocity:-a})),l.calculatedDuration===null&&(l.calculatedDuration=py(l));const{calculatedDuration:g}=l;this.calculatedDuration=g,this.resolvedDuration=g+s,this.totalDuration=this.resolvedDuration*(n+1)-s,this.generator=l}updateTime(A){const t=Math.round(A-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=t}tick(A,t=!1){const{generator:n,totalDuration:s,mixKeyframes:r,mirroredGenerator:a,resolvedDuration:B,calculatedDuration:c}=this;if(this.startTime===null)return n.next(0);const{delay:l=0,keyframes:g,repeat:u,repeatType:f,repeatDelay:w,type:v,onUpdate:E,finalKeyframe:m}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,A):this.speed<0&&(this.startTime=Math.min(A-s/this.speed,this.startTime)),t?this.currentTime=A:this.updateTime(A);const Z=this.currentTime-l*(this.playbackSpeed>=0?1:-1),D=this.playbackSpeed>=0?Z<0:Z>s;this.currentTime=Math.max(Z,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=s);let T=this.currentTime,S=n;if(u){const X=Math.min(this.currentTime,s)/B;let eA=Math.floor(X),$=X%1;!$&&X>=1&&($=1),$===1&&eA--,eA=Math.min(eA,u+1),eA%2&&(f==="reverse"?($=1-$,w&&($-=w/B)):f==="mirror"&&(S=a)),T=Gc(0,1,$)*B}let F;D?(this.delayState.value=g[0],F=this.delayState):F=S.next(T),r&&!D&&(F.value=r(F.value));let{done:V}=F;!D&&c!==null&&(V=this.playbackSpeed>=0?this.currentTime>=s:this.currentTime<=0);const N=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&V);return N&&v!==Ey&&(F.value=yI(g,this.options,m,this.speed)),E&&E(F.value),N&&this.finish(),F}then(A,t){return this.finished.then(A,t)}get duration(){return gB(this.calculatedDuration)}get iterationDuration(){const{delay:A=0}=this.options||{};return this.duration+gB(A)}get time(){return gB(this.currentTime)}set time(A){A=Hi(A),this.currentTime=A,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=A:this.driver&&(this.startTime=this.driver.now()-A/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=A,this.tick(A))}getGeneratorVelocity(){const A=this.currentTime;if(A<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(A);const t=this.generator.next(A).value;return wx(n=>this.generator.next(n).value,A,t)}get speed(){return this.playbackSpeed}set speed(A){const t=this.playbackSpeed!==A;t&&this.driver&&this.updateTime(ca.now()),this.playbackSpeed=A,t&&this.driver&&(this.time=gB(this.currentTime))}play(){if(this.isStopped)return;const{driver:A=u6,startTime:t}=this.options;this.driver||(this.driver=A(s=>this.tick(s))),this.options.onPlay?.();const n=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=n):this.holdTime!==null?this.startTime=n-this.holdTime:this.startTime||(this.startTime=t??n),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(ca.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(A){return this.startTime=0,this.tick(A,!0)}attachTimeline(A){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),A.observe(this)}}function U6(e){for(let A=1;A<e.length;A++)e[A]??(e[A]=e[A-1])}const cG=e=>e*180/Math.PI,Yy=e=>{const A=cG(Math.atan2(e[1],e[0]));return Zy(A)},D6={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Yy,rotateZ:Yy,skewX:e=>cG(Math.atan(e[1])),skewY:e=>cG(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Zy=e=>(e=e%360,e<0&&(e+=360),e),bx=Yy,Cx=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),vx=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),F6={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Cx,scaleY:vx,scale:e=>(Cx(e)+vx(e))/2,rotateX:e=>Zy(cG(Math.atan2(e[6],e[5]))),rotateY:e=>Zy(cG(Math.atan2(-e[2],e[0]))),rotateZ:bx,rotate:bx,skewX:e=>cG(Math.atan(e[4])),skewY:e=>cG(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function ky(e){return e.includes("scale")?1:0}function Uy(e,A){if(!e||e==="none")return ky(A);const t=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let n,s;if(t)n=F6,s=t;else{const B=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);n=D6,s=B}if(!s)return ky(A);const r=n[A],a=s[1].split(",").map(x6);return typeof r=="function"?r(a):a[r]}const M6=(e,A)=>{const{transform:t="none"}=getComputedStyle(e);return Uy(t,A)};function x6(e){return parseFloat(e.trim())}const fh=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],hh=new Set(fh),Ix=e=>e===dh||e===Be,P6=new Set(["x","y","z"]),T6=fh.filter(e=>!P6.has(e));function R6(e){const A=[];return T6.forEach(t=>{const n=e.getValue(t);n!==void 0&&(A.push([t,n.get()]),n.set(t.startsWith("scale")?1:0))}),A}const nd={width:({x:e},{paddingLeft:A="0",paddingRight:t="0",boxSizing:n})=>{const s=e.max-e.min;return n==="border-box"?s:s-parseFloat(A)-parseFloat(t)},height:({y:e},{paddingTop:A="0",paddingBottom:t="0",boxSizing:n})=>{const s=e.max-e.min;return n==="border-box"?s:s-parseFloat(A)-parseFloat(t)},top:(e,{top:A})=>parseFloat(A),left:(e,{left:A})=>parseFloat(A),bottom:({y:e},{top:A})=>parseFloat(A)+(e.max-e.min),right:({x:e},{left:A})=>parseFloat(A)+(e.max-e.min),x:(e,{transform:A})=>Uy(A,"x"),y:(e,{transform:A})=>Uy(A,"y")};nd.translateX=nd.x,nd.translateY=nd.y;const lG=new Set;let Dy=!1,Fy=!1,My=!1;function px(){if(Fy){const e=Array.from(lG).filter(n=>n.needsMeasurement),A=new Set(e.map(n=>n.element)),t=new Map;A.forEach(n=>{const s=R6(n);s.length&&(t.set(n,s),n.render())}),e.forEach(n=>n.measureInitialState()),A.forEach(n=>{n.render();const s=t.get(n);s&&s.forEach(([r,a])=>{n.getValue(r)?.set(a)})}),e.forEach(n=>n.measureEndState()),e.forEach(n=>{n.suspendedScrollY!==void 0&&window.scrollTo(0,n.suspendedScrollY)})}Fy=!1,Dy=!1,lG.forEach(e=>e.complete(My)),lG.clear()}function Hx(){lG.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Fy=!0)})}function S6(){My=!0,Hx(),px(),My=!1}class xy{constructor(A,t,n,s,r,a=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...A],this.onComplete=t,this.name=n,this.motionValue=s,this.element=r,this.isAsync=a}scheduleResolve(){this.state="scheduled",this.isAsync?(lG.add(this),Dy||(Dy=!0,cn.read(Hx),cn.resolveKeyframes(px))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:A,name:t,element:n,motionValue:s}=this;if(A[0]===null){const r=s?.get(),a=A[A.length-1];if(r!==void 0)A[0]=r;else if(n&&t){const B=n.readValue(t,a);B!=null&&(A[0]=B)}A[0]===void 0&&(A[0]=a),s&&r===void 0&&s.set(A[0])}U6(A)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(A=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,A),lG.delete(this)}cancel(){this.state==="scheduled"&&(lG.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const V6=e=>e.startsWith("--");function mx(e,A,t){V6(A)?e.style.setProperty(A,t):e.style[A]=t}const W6={};function Ex(e,A){const t=NM(e);return()=>W6[A]??t()}const N6=Ex(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),yx=Ex(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),NQ=([e,A,t,n])=>`cubic-bezier(${e}, ${A}, ${t}, ${n})`,Yx={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:NQ([0,.65,.55,1]),circOut:NQ([.55,0,1,.45]),backIn:NQ([.31,.01,.66,-.59]),backOut:NQ([.33,1.53,.69,.99])};function Zx(e,A){if(e)return typeof e=="function"?yx()?fx(e,A):"ease-out":Ax(e)?NQ(e):Array.isArray(e)?e.map(t=>Zx(t,A)||Yx.easeOut):Yx[e]}function z6(e,A,t,{delay:n=0,duration:s=300,repeat:r=0,repeatType:a="loop",ease:B="easeOut",times:c}={},l=void 0){const g={[A]:t};c&&(g.offset=c);const u=Zx(B,s);Array.isArray(u)&&(g.easing=u);const f={delay:n,duration:s,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:r+1,direction:a==="reverse"?"alternate":"normal"};return l&&(f.pseudoElement=l),e.animate(g,f)}function kx(e){return typeof e=="function"&&"applyToOptions"in e}function L6({type:e,...A}){return kx(e)&&yx()?e.applyToOptions(A):(A.duration??(A.duration=300),A.ease??(A.ease="easeOut"),A)}class Ux extends yy{constructor(A){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!A)return;const{element:t,name:n,keyframes:s,pseudoElement:r,allowFlatten:a=!1,finalKeyframe:B,onComplete:c}=A;this.isPseudoElement=!!r,this.allowFlatten=a,this.options=A,cy(typeof A.type!="string");const l=L6(A);this.animation=z6(t,n,s,l,r),l.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!r){const g=yI(s,this.options,B,this.speed);this.updateMotionValue&&this.updateMotionValue(g),mx(t,n,g),this.animation.cancel()}c?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:A}=this;A==="idle"||A==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){const A=this.options?.element;!this.isPseudoElement&&A?.isConnected&&this.animation.commitStyles?.()}get duration(){const A=this.animation.effect?.getComputedTiming?.().duration||0;return gB(Number(A))}get iterationDuration(){const{delay:A=0}=this.options||{};return this.duration+gB(A)}get time(){return gB(Number(this.animation.currentTime)||0)}set time(A){const t=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=Hi(A),t&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(A){A<0&&(this.finishedTime=null),this.animation.playbackRate=A}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(A){this.manualStartTime=this.animation.startTime=A}attachTimeline({timeline:A,rangeStart:t,rangeEnd:n,observe:s}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,A&&N6()?(this.animation.timeline=A,t&&(this.animation.rangeStart=t),n&&(this.animation.rangeEnd=n),lB):s(this)}}const Dx={anticipate:jM,backInOut:KM,circInOut:qM};function X6(e){return e in Dx}function O6(e){typeof e.ease=="string"&&X6(e.ease)&&(e.ease=Dx[e.ease])}const Py=10;class J6 extends Ux{constructor(A){O6(A),Qx(A),super(A),A.startTime!==void 0&&A.autoplay!==!1&&(this.startTime=A.startTime),this.options=A}updateMotionValue(A){const{motionValue:t,onUpdate:n,onComplete:s,element:r,...a}=this.options;if(!t)return;if(A!==void 0){t.set(A);return}const B=new YI({...a,autoplay:!1}),c=Math.max(Py,ca.now()-this.startTime),l=Gc(0,Py,c-Py),g=B.sample(c).value,{name:u}=this.options;r&&u&&mx(r,u,g),t.setWithVelocity(B.sample(Math.max(0,c-l)).value,g,l),B.stop()}}const Fx=(e,A)=>A==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(to.test(e)||e==="0")&&!e.startsWith("url("));function K6(e){const A=e[0];if(e.length===1)return!0;for(let t=0;t<e.length;t++)if(e[t]!==A)return!0}function j6(e,A,t,n){const s=e[0];if(s===null)return!1;if(A==="display"||A==="visibility")return!0;const r=e[e.length-1],a=Fx(s,A),B=Fx(r,A);return!a||!B?!1:K6(e)||(t==="spring"||kx(t))&&n}function Ty(e){e.duration=0,e.type="keyframes"}const Mx=new Set(["opacity","clipPath","filter","transform"]),_6=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function q6(e){for(let A=0;A<e.length;A++)if(typeof e[A]=="string"&&_6.test(e[A]))return!0;return!1}const $6=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),Aq=NM(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function eq(e){const{motionValue:A,name:t,repeatDelay:n,repeatType:s,damping:r,type:a,keyframes:B}=e;if(!(A?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:g}=A.owner.getProps();return Aq()&&t&&(Mx.has(t)||$6.has(t)&&q6(B))&&(t!=="transform"||!g)&&!l&&!n&&s!=="mirror"&&r!==0&&a!=="inertia"}const tq=40;class nq extends yy{constructor({autoplay:A=!0,delay:t=0,type:n="keyframes",repeat:s=0,repeatDelay:r=0,repeatType:a="loop",keyframes:B,name:c,motionValue:l,element:g,...u}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=ca.now();const f={autoplay:A,delay:t,type:n,repeat:s,repeatDelay:r,repeatType:a,name:c,motionValue:l,element:g,...u},w=g?.KeyframeResolver||xy;this.keyframeResolver=new w(B,(v,E,m)=>this.onKeyframesResolved(v,E,f,!m),c,l,g),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(A,t,n,s){this.keyframeResolver=void 0;const{name:r,type:a,velocity:B,delay:c,isHandoff:l,onUpdate:g}=n;this.resolvedAt=ca.now();let u=!0;j6(A,r,a,B)||(u=!1,(Ad.instantAnimations||!c)&&g?.(yI(A,n,t)),A[0]=A[A.length-1],Ty(n),n.repeat=0);const w={startTime:s?this.resolvedAt?this.resolvedAt-this.createdAt>tq?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:A},v=u&&!l&&eq(w),E=w.motionValue?.owner?.current;let m;if(v)try{m=new J6({...w,element:E})}catch{m=new YI(w)}else m=new YI(w);m.finished.then(()=>{this.notifyFinished()}).catch(lB),this.pendingTimeline&&(this.stopTimeline=m.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=m}get finished(){return this._animation?this.animation.finished:this._finished}then(A,t){return this.finished.finally(A).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),S6()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(A){this.animation.time=A}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(A){this.animation.speed=A}get startTime(){return this.animation.startTime}attachTimeline(A){return this._animation?this.stopTimeline=this.animation.attachTimeline(A):this.pendingTimeline=A,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}function xx(e,A,t,n=0,s=1){const r=Array.from(e).sort((l,g)=>l.sortNodePosition(g)).indexOf(A),a=e.size,B=(a-1)*n;return typeof t=="function"?t(r,a):s===1?r*n:B-r*n}const sq=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function rq(e){const A=sq.exec(e);if(!A)return[,];const[,t,n,s]=A;return[`--${t??n}`,s]}function Px(e,A,t=1){const[n,s]=rq(e);if(!n)return;const r=window.getComputedStyle(A).getPropertyValue(n);if(r){const a=r.trim();return SM(a)?parseFloat(a):a}return Gy(s)?Px(s,A,t+1):s}const aq={type:"spring",stiffness:500,damping:25,restSpeed:10},iq=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Bq={type:"keyframes",duration:.8},oq={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},cq=(e,{keyframes:A})=>A.length>2?Bq:hh.has(e)?e.startsWith("scale")?iq(A[1]):aq:oq;function Tx(e,A){if(e?.inherit&&A){const{inherit:t,...n}=e;return{...A,...n}}return e}function Ry(e,A){const t=e?.[A]??e?.default??e;return t!==e?Tx(t,e):t}const lq=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function gq(e){for(const A in e)if(!lq.has(A))return!0;return!1}const Sy=(e,A,t,n={},s,r)=>a=>{const B=Ry(n,e)||{},c=B.delay||n.delay||0;let{elapsed:l=0}=n;l=l-Hi(c);const g={keyframes:Array.isArray(t)?t:[null,t],ease:"easeOut",velocity:A.getVelocity(),...B,delay:-l,onUpdate:f=>{A.set(f),B.onUpdate&&B.onUpdate(f)},onComplete:()=>{a(),B.onComplete&&B.onComplete()},name:e,motionValue:A,element:r?void 0:s};gq(B)||Object.assign(g,cq(e,g)),g.duration&&(g.duration=Hi(g.duration)),g.repeatDelay&&(g.repeatDelay=Hi(g.repeatDelay)),g.from!==void 0&&(g.keyframes[0]=g.from);let u=!1;if((g.type===!1||g.duration===0&&!g.repeatDelay)&&(Ty(g),g.delay===0&&(u=!0)),(Ad.instantAnimations||Ad.skipAnimations||s?.shouldSkipAnimations)&&(u=!0,Ty(g),g.delay=0),g.allowFlatten=!B.type&&!B.ease,u&&!r&&A.get()!==void 0){const f=yI(g.keyframes,B);if(f!==void 0){cn.update(()=>{g.onUpdate(f),g.onComplete()});return}}return B.isSync?new YI(g):new nq(g)};function Rx(e){const A=[{},{}];return e?.values.forEach((t,n)=>{A[0][n]=t.get(),A[1][n]=t.getVelocity()}),A}function Vy(e,A,t,n){if(typeof A=="function"){const[s,r]=Rx(n);A=A(t!==void 0?t:e.custom,s,r)}if(typeof A=="string"&&(A=e.variants&&e.variants[A]),typeof A=="function"){const[s,r]=Rx(n);A=A(t!==void 0?t:e.custom,s,r)}return A}function gG(e,A,t){const n=e.getProps();return Vy(n,A,t!==void 0?t:n.custom,e)}const Sx=new Set(["width","height","top","left","right","bottom",...fh]),Vx=30,dq=e=>!isNaN(parseFloat(e));class uq{constructor(A,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=n=>{const s=ca.now();if(this.updatedAt!==s&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(n),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const r of this.dependents)r.dirty()},this.hasAnimated=!1,this.setCurrent(A),this.owner=t.owner}setCurrent(A){this.current=A,this.updatedAt=ca.now(),this.canTrackVelocity===null&&A!==void 0&&(this.canTrackVelocity=dq(this.current))}setPrevFrameValue(A=this.current){this.prevFrameValue=A,this.prevUpdatedAt=this.updatedAt}onChange(A){return this.on("change",A)}on(A,t){this.events[A]||(this.events[A]=new ly);const n=this.events[A].add(t);return A==="change"?()=>{n(),cn.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const A in this.events)this.events[A].clear()}attach(A,t){this.passiveEffect=A,this.stopPassiveEffect=t}set(A){this.passiveEffect?this.passiveEffect(A,this.updateAndNotify):this.updateAndNotify(A)}setWithVelocity(A,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=A,this.prevUpdatedAt=this.updatedAt-n}jump(A,t=!0){this.updateAndNotify(A),this.prev=A,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(A){this.dependents||(this.dependents=new Set),this.dependents.add(A)}removeDependent(A){this.dependents&&this.dependents.delete(A)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const A=ca.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||A-this.updatedAt>Vx)return 0;const t=Math.min(this.updatedAt-this.prevUpdatedAt,Vx);return zM(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(A){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=A(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 wh(e,A){return new uq(e,A)}const Wy=e=>Array.isArray(e);function Gq(e,A,t){e.hasValue(A)?e.getValue(A).set(t):e.addValue(A,wh(t))}function fq(e){return Wy(e)?e[e.length-1]||0:e}function Ny(e,A){const t=gG(e,A);let{transitionEnd:n={},transition:s={},...r}=t||{};r={...r,...n};for(const a in r){const B=fq(r[a]);Gq(e,a,B)}}const Ur=e=>!!(e&&e.getVelocity);function hq(e){return!!(Ur(e)&&e.add)}function zy(e,A){const t=e.getValue("willChange");if(hq(t))return t.add(A);if(!t&&Ad.WillChange){const n=new Ad.WillChange("auto");e.addValue("willChange",n),n.add(A)}}function Ly(e){return e.replace(/([A-Z])/g,A=>`-${A.toLowerCase()}`)}const Wx="data-"+Ly("framerAppearId");function Nx(e){return e.props[Wx]}function wq({protectedKeys:e,needsAnimating:A},t){const n=e.hasOwnProperty(t)&&A[t]!==!0;return A[t]=!1,n}function zx(e,A,{delay:t=0,transitionOverride:n,type:s}={}){let{transition:r,transitionEnd:a,...B}=A;const c=e.getDefaultTransition();r=r?Tx(r,c):c;const l=r?.reduceMotion;n&&(r=n);const g=[],u=s&&e.animationState&&e.animationState.getState()[s];for(const f in B){const w=e.getValue(f,e.latestValues[f]??null),v=B[f];if(v===void 0||u&&wq(u,f))continue;const E={delay:t,...Ry(r||{},f)},m=w.get();if(m!==void 0&&!w.isAnimating()&&!Array.isArray(v)&&v===m&&!E.velocity){cn.update(()=>w.set(v));continue}let Z=!1;if(window.MotionHandoffAnimation){const S=Nx(e);if(S){const F=window.MotionHandoffAnimation(S,f,cn);F!==null&&(E.startTime=F,Z=!0)}}zy(e,f);const D=l??e.shouldReduceMotion;w.start(Sy(f,w,v,D&&Sx.has(f)?{type:!1}:E,e,Z));const T=w.animation;T&&g.push(T)}if(a){const f=()=>cn.update(()=>{a&&Ny(e,a)});g.length?Promise.all(g).then(f):f()}return g}function Xy(e,A,t={}){const n=gG(e,A,t.type==="exit"?e.presenceContext?.custom:void 0);let{transition:s=e.getDefaultTransition()||{}}=n||{};t.transitionOverride&&(s=t.transitionOverride);const r=n?()=>Promise.all(zx(e,n,t)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(c=0)=>{const{delayChildren:l=0,staggerChildren:g,staggerDirection:u}=s;return Qq(e,A,c,l,g,u,t)}:()=>Promise.resolve(),{when:B}=s;if(B){const[c,l]=B==="beforeChildren"?[r,a]:[a,r];return c().then(()=>l())}else return Promise.all([r(),a(t.delay)])}function Qq(e,A,t=0,n=0,s=0,r=1,a){const B=[];for(const c of e.variantChildren)c.notify("AnimationStart",A),B.push(Xy(c,A,{...a,delay:t+(typeof n=="function"?0:n)+xx(e.variantChildren,c,n,s,r)}).then(()=>c.notify("AnimationComplete",A)));return Promise.all(B)}function Lx(e,A,t={}){e.notify("AnimationStart",A);let n;if(Array.isArray(A)){const s=A.map(r=>Xy(e,r,t));n=Promise.all(s)}else if(typeof A=="string")n=Xy(e,A,t);else{const s=typeof A=="function"?gG(e,A,t.custom):A;n=Promise.all(zx(e,s,t))}return n.then(()=>{e.notify("AnimationComplete",A)})}const bq={test:e=>e==="auto",parse:e=>e},Xx=e=>A=>A.test(e),Ox=[dh,Be,fc,td,K_,J_,bq],Jx=e=>Ox.find(Xx(e));function Cq(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||WM(e):!0}const vq=new Set(["brightness","contrast","saturate","opacity"]);function Iq(e){const[A,t]=e.slice(0,-1).split("(");if(A==="drop-shadow")return e;const[n]=t.match(fy)||[];if(!n)return e;const s=t.replace(n,"");let r=vq.has(A)?1:0;return n!==t&&(r*=100),A+"("+r+s+")"}const pq=/\b([a-z-]*)\(.*?\)/gu,Oy={...to,getAnimatableNone:e=>{const A=e.match(pq);return A?A.map(Iq).join(" "):e}},Jy={...to,getAnimatableNone:e=>{const A=to.parse(e);return to.createTransformer(e)(A.map(n=>typeof n=="number"?0:typeof n=="object"?{...n,alpha:1}:n))}},Kx={...dh,transform:Math.round},Ky={borderWidth:Be,borderTopWidth:Be,borderRightWidth:Be,borderBottomWidth:Be,borderLeftWidth:Be,borderRadius:Be,borderTopLeftRadius:Be,borderTopRightRadius:Be,borderBottomRightRadius:Be,borderBottomLeftRadius:Be,width:Be,maxWidth:Be,height:Be,maxHeight:Be,top:Be,right:Be,bottom:Be,left:Be,inset:Be,insetBlock:Be,insetBlockStart:Be,insetBlockEnd:Be,insetInline:Be,insetInlineStart:Be,insetInlineEnd:Be,padding:Be,paddingTop:Be,paddingRight:Be,paddingBottom:Be,paddingLeft:Be,paddingBlock:Be,paddingBlockStart:Be,paddingBlockEnd:Be,paddingInline:Be,paddingInlineStart:Be,paddingInlineEnd:Be,margin:Be,marginTop:Be,marginRight:Be,marginBottom:Be,marginLeft:Be,marginBlock:Be,marginBlockStart:Be,marginBlockEnd:Be,marginInline:Be,marginInlineStart:Be,marginInlineEnd:Be,fontSize:Be,backgroundPositionX:Be,backgroundPositionY:Be,...{rotate:td,rotateX:td,rotateY:td,rotateZ:td,scale:pI,scaleX:pI,scaleY:pI,scaleZ:pI,skew:td,skewX:td,skewY:td,distance:Be,translateX:Be,translateY:Be,translateZ:Be,x:Be,y:Be,z:Be,perspective:Be,transformPerspective:Be,opacity:RQ,originX:ix,originY:ix,originZ:Be},zIndex:Kx,fillOpacity:RQ,strokeOpacity:RQ,numOctaves:Kx},Hq={...Ky,color:Ds,backgroundColor:Ds,outlineColor:Ds,fill:Ds,stroke:Ds,borderColor:Ds,borderTopColor:Ds,borderRightColor:Ds,borderBottomColor:Ds,borderLeftColor:Ds,filter:Oy,WebkitFilter:Oy,mask:Jy,WebkitMask:Jy},jx=e=>Hq[e],mq=new Set([Oy,Jy]);function _x(e,A){let t=jx(e);return mq.has(t)||(t=to),t.getAnimatableNone?t.getAnimatableNone(A):void 0}const Eq=new Set(["auto","none","0"]);function yq(e,A,t){let n=0,s;for(;n<e.length&&!s;){const r=e[n];typeof r=="string"&&!Eq.has(r)&&Gh(r).values.length&&(s=e[n]),n++}if(s&&t)for(const r of A)e[r]=_x(t,s)}class Yq extends xy{constructor(A,t,n,s,r){super(A,t,n,s,r,!0)}readKeyframes(){const{unresolvedKeyframes:A,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let g=0;g<A.length;g++){let u=A[g];if(typeof u=="string"&&(u=u.trim(),Gy(u))){const f=Px(u,t.current);f!==void 0&&(A[g]=f),g===A.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!Sx.has(n)||A.length!==2)return;const[s,r]=A,a=Jx(s),B=Jx(r),c=rx(s),l=rx(r);if(c!==l&&nd[n]){this.needsMeasurement=!0;return}if(a!==B)if(Ix(a)&&Ix(B))for(let g=0;g<A.length;g++){const u=A[g];typeof u=="string"&&(A[g]=parseFloat(u))}else nd[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:A,name:t}=this,n=[];for(let s=0;s<A.length;s++)(A[s]===null||Cq(A[s]))&&n.push(s);n.length&&yq(A,n,t)}measureInitialState(){const{element:A,unresolvedKeyframes:t,name:n}=this;if(!A||!A.current)return;n==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=nd[n](A.measureViewportBox(),window.getComputedStyle(A.current)),t[0]=this.measuredOrigin;const s=t[t.length-1];s!==void 0&&A.getValue(n,s).jump(s,!1)}measureEndState(){const{element:A,name:t,unresolvedKeyframes:n}=this;if(!A||!A.current)return;const s=A.getValue(t);s&&s.jump(this.measuredOrigin,!1);const r=n.length-1,a=n[r];n[r]=nd[t](A.measureViewportBox(),window.getComputedStyle(A.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),this.removedTransforms?.length&&this.removedTransforms.forEach(([B,c])=>{A.getValue(B).set(c)}),this.resolveNoneKeyframes()}}function qx(e,A,t){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e=="string"){let n=document;const s=t?.[e]??n.querySelectorAll(e);return s?Array.from(s):[]}return Array.from(e).filter(n=>n!=null)}const $x=(e,A)=>A&&typeof e=="number"?A.transform(e):e;function ZI(e){return VM(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}const{schedule:jy}=tx(queueMicrotask,!1),no={x:!1,y:!1};function A2(){return no.x||no.y}function Zq(e){return e==="x"||e==="y"?no[e]?null:(no[e]=!0,()=>{no[e]=!1}):no.x||no.y?null:(no.x=no.y=!0,()=>{no.x=no.y=!1})}function e2(e,A){const t=qx(e),n=new AbortController,s={passive:!0,...A,signal:n.signal};return[t,s,()=>n.abort()]}function kq(e){return!(e.pointerType==="touch"||A2())}function Uq(e,A,t={}){const[n,s,r]=e2(e,t);return n.forEach(a=>{let B=!1,c=!1,l;const g=()=>{a.removeEventListener("pointerleave",v)},u=m=>{l&&(l(m),l=void 0),g()},f=m=>{B=!1,window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",f),c&&(c=!1,u(m))},w=()=>{B=!0,window.addEventListener("pointerup",f,s),window.addEventListener("pointercancel",f,s)},v=m=>{if(m.pointerType!=="touch"){if(B){c=!0;return}u(m)}},E=m=>{if(!kq(m))return;c=!1;const Z=A(a,m);typeof Z=="function"&&(l=Z,a.addEventListener("pointerleave",v,s))};a.addEventListener("pointerenter",E,s),a.addEventListener("pointerdown",w,s)}),r}const t2=(e,A)=>A?e===A?!0:t2(e,A.parentElement):!1,_y=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,Dq=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Fq(e){return Dq.has(e.tagName)||e.isContentEditable===!0}const Mq=new Set(["INPUT","SELECT","TEXTAREA"]);function xq(e){return Mq.has(e.tagName)||e.isContentEditable===!0}const kI=new WeakSet;function n2(e){return A=>{A.key==="Enter"&&e(A)}}function qy(e,A){e.dispatchEvent(new PointerEvent("pointer"+A,{isPrimary:!0,bubbles:!0}))}const Pq=(e,A)=>{const t=e.currentTarget;if(!t)return;const n=n2(()=>{if(kI.has(t))return;qy(t,"down");const s=n2(()=>{qy(t,"up")}),r=()=>qy(t,"cancel");t.addEventListener("keyup",s,A),t.addEventListener("blur",r,A)});t.addEventListener("keydown",n,A),t.addEventListener("blur",()=>t.removeEventListener("keydown",n),A)};function s2(e){return _y(e)&&!A2()}const r2=new WeakSet;function Tq(e,A,t={}){const[n,s,r]=e2(e,t),a=B=>{const c=B.currentTarget;if(!s2(B)||r2.has(B))return;kI.add(c),t.stopPropagation&&r2.add(B);const l=A(c,B),g=(w,v)=>{window.removeEventListener("pointerup",u),window.removeEventListener("pointercancel",f),kI.has(c)&&kI.delete(c),s2(w)&&typeof l=="function"&&l(w,{success:v})},u=w=>{g(w,c===window||c===document||t.useGlobalTarget||t2(c,w.target))},f=w=>{g(w,!1)};window.addEventListener("pointerup",u,s),window.addEventListener("pointercancel",f,s)};return n.forEach(B=>{(t.useGlobalTarget?window:B).addEventListener("pointerdown",a,s),ZI(B)&&(B.addEventListener("focus",l=>Pq(l,s)),!Fq(B)&&!B.hasAttribute("tabindex")&&(B.tabIndex=0))}),r}function $y(e){return VM(e)&&"ownerSVGElement"in e}const UI=new WeakMap;let DI;const a2=(e,A,t)=>(n,s)=>s&&s[0]?s[0][e+"Size"]:$y(n)&&"getBBox"in n?n.getBBox()[A]:n[t],Rq=a2("inline","width","offsetWidth"),Sq=a2("block","height","offsetHeight");function Vq({target:e,borderBoxSize:A}){UI.get(e)?.forEach(t=>{t(e,{get width(){return Rq(e,A)},get height(){return Sq(e,A)}})})}function Wq(e){e.forEach(Vq)}function Nq(){typeof ResizeObserver>"u"||(DI=new ResizeObserver(Wq))}function zq(e,A){DI||Nq();const t=qx(e);return t.forEach(n=>{let s=UI.get(n);s||(s=new Set,UI.set(n,s)),s.add(A),DI?.observe(n)}),()=>{t.forEach(n=>{const s=UI.get(n);s?.delete(A),s?.size||DI?.unobserve(n)})}}const FI=new Set;let Qh;function Lq(){Qh=()=>{const e={get width(){return window.innerWidth},get height(){return window.innerHeight}};FI.forEach(A=>A(e))},window.addEventListener("resize",Qh)}function Xq(e){return FI.add(e),Qh||Lq(),()=>{FI.delete(e),!FI.size&&typeof Qh=="function"&&(window.removeEventListener("resize",Qh),Qh=void 0)}}function i2(e,A){return typeof e=="function"?Xq(e):zq(e,A)}function Oq(e){return $y(e)&&e.tagName==="svg"}const Jq=[...Ox,Ds,to],Kq=e=>Jq.find(Xx(e)),B2=()=>({translate:0,scale:1,origin:0,originPoint:0}),bh=()=>({x:B2(),y:B2()}),o2=()=>({min:0,max:0}),Ks=()=>({x:o2(),y:o2()}),jq=new WeakMap;function MI(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function zQ(e){return typeof e=="string"||Array.isArray(e)}const A3=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],e3=["initial",...A3];function xI(e){return MI(e.animate)||e3.some(A=>zQ(e[A]))}function c2(e){return!!(xI(e)||e.variants)}function _q(e,A,t){for(const n in A){const s=A[n],r=t[n];if(Ur(s))e.addValue(n,s);else if(Ur(r))e.addValue(n,wh(s,{owner:e}));else if(r!==s)if(e.hasValue(n)){const a=e.getValue(n);a.liveStyle===!0?a.jump(s):a.hasAnimated||a.set(s)}else{const a=e.getStaticValue(n);e.addValue(n,wh(a!==void 0?a:s,{owner:e}))}}for(const n in t)A[n]===void 0&&e.removeValue(n);return A}const t3={current:null},l2={current:!1},qq=typeof window<"u";function $q(){if(l2.current=!0,!!qq)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),A=()=>t3.current=e.matches;e.addEventListener("change",A),A()}else t3.current=!1}const g2=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let PI={};function d2(e){PI=e}function A$(){return PI}class e${scrapeMotionValuesFromProps(A,t,n){return{}}constructor({parent:A,props:t,presenceContext:n,reducedMotionConfig:s,skipAnimations:r,blockInitialAnimation:a,visualState:B},c={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=xy,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const w=ca.now();this.renderScheduledAt<w&&(this.renderScheduledAt=w,cn.render(this.render,!1,!0))};const{latestValues:l,renderState:g}=B;this.latestValues=l,this.baseTarget={...l},this.initialValues=t.initial?{...l}:{},this.renderState=g,this.parent=A,this.props=t,this.presenceContext=n,this.depth=A?A.depth+1:0,this.reducedMotionConfig=s,this.skipAnimationsConfig=r,this.options=c,this.blockInitialAnimation=!!a,this.isControllingVariants=xI(t),this.isVariantNode=c2(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(A&&A.current);const{willChange:u,...f}=this.scrapeMotionValuesFromProps(t,{},this);for(const w in f){const v=f[w];l[w]!==void 0&&Ur(v)&&v.set(l[w])}}mount(A){if(this.hasBeenMounted)for(const t in this.initialValues)this.values.get(t)?.jump(this.initialValues[t]),this.latestValues[t]=this.initialValues[t];this.current=A,jq.set(A,this),this.projection&&!this.projection.instance&&this.projection.mount(A),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((t,n)=>this.bindToMotionValue(n,t)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(l2.current||$q(),this.shouldReduceMotion=t3.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),ed(this.notifyUpdate),ed(this.render),this.valueSubscriptions.forEach(A=>A()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const A in this.events)this.events[A].clear();for(const A in this.features){const t=this.features[A];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(A){this.children.add(A),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(A)}removeChild(A){this.children.delete(A),this.enteringChildren&&this.enteringChildren.delete(A)}bindToMotionValue(A,t){if(this.valueSubscriptions.has(A)&&this.valueSubscriptions.get(A)(),t.accelerate&&Mx.has(A)&&this.current instanceof HTMLElement){const{factory:a,keyframes:B,times:c,ease:l,duration:g}=t.accelerate,u=new Ux({element:this.current,name:A,keyframes:B,times:c,ease:l,duration:Hi(g)}),f=a(u);this.valueSubscriptions.set(A,()=>{f(),u.cancel()});return}const n=hh.has(A);n&&this.onBindTransform&&this.onBindTransform();const s=t.on("change",a=>{this.latestValues[A]=a,this.props.onUpdate&&cn.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let r;typeof window<"u"&&window.MotionCheckAppearSync&&(r=window.MotionCheckAppearSync(this,A,t)),this.valueSubscriptions.set(A,()=>{s(),r&&r(),t.owner&&t.stop()})}sortNodePosition(A){return!this.current||!this.sortInstanceNodePosition||this.type!==A.type?0:this.sortInstanceNodePosition(this.current,A.current)}updateFeatures(){let A="animation";for(A in PI){const t=PI[A];if(!t)continue;const{isEnabled:n,Feature:s}=t;if(!this.features[A]&&s&&n(this.props)&&(this.features[A]=new s(this)),this.features[A]){const r=this.features[A];r.isMounted?r.update():(r.mount(),r.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Ks()}getStaticValue(A){return this.latestValues[A]}setStaticValue(A,t){this.latestValues[A]=t}update(A,t){(A.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=A,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let n=0;n<g2.length;n++){const s=g2[n];this.propEventSubscriptions[s]&&(this.propEventSubscriptions[s](),delete this.propEventSubscriptions[s]);const r="on"+s,a=A[r];a&&(this.propEventSubscriptions[s]=this.on(s,a))}this.prevMotionValues=_q(this,this.scrapeMotionValuesFromProps(A,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(A){return this.props.variants?this.props.variants[A]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(A){const t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(A),()=>t.variantChildren.delete(A)}addValue(A,t){const n=this.values.get(A);t!==n&&(n&&this.removeValue(A),this.bindToMotionValue(A,t),this.values.set(A,t),this.latestValues[A]=t.get())}removeValue(A){this.values.delete(A);const t=this.valueSubscriptions.get(A);t&&(t(),this.valueSubscriptions.delete(A)),delete this.latestValues[A],this.removeValueFromRenderState(A,this.renderState)}hasValue(A){return this.values.has(A)}getValue(A,t){if(this.props.values&&this.props.values[A])return this.props.values[A];let n=this.values.get(A);return n===void 0&&t!==void 0&&(n=wh(t===null?void 0:t,{owner:this}),this.addValue(A,n)),n}readValue(A,t){let n=this.latestValues[A]!==void 0||!this.current?this.latestValues[A]:this.getBaseTargetFromProps(this.props,A)??this.readValueFromInstance(this.current,A,this.options);return n!=null&&(typeof n=="string"&&(SM(n)||WM(n))?n=parseFloat(n):!Kq(n)&&to.test(t)&&(n=_x(A,t)),this.setBaseTarget(A,Ur(n)?n.get():n)),Ur(n)?n.get():n}setBaseTarget(A,t){this.baseTarget[A]=t}getBaseTarget(A){const{initial:t}=this.props;let n;if(typeof t=="string"||typeof t=="object"){const r=Vy(this.props,t,this.presenceContext?.custom);r&&(n=r[A])}if(t&&n!==void 0)return n;const s=this.getBaseTargetFromProps(this.props,A);return s!==void 0&&!Ur(s)?s:this.initialValues[A]!==void 0&&n===void 0?void 0:this.baseTarget[A]}on(A,t){return this.events[A]||(this.events[A]=new ly),this.events[A].add(t)}notify(A,...t){this.events[A]&&this.events[A].notify(...t)}scheduleRenderMicrotask(){jy.render(this.render)}}class u2 extends e${constructor(){super(...arguments),this.KeyframeResolver=Yq}sortInstanceNodePosition(A,t){return A.compareDocumentPosition(t)&2?1:-1}getBaseTargetFromProps(A,t){const n=A.style;return n?n[t]:void 0}removeValueFromRenderState(A,{vars:t,style:n}){delete t[A],delete n[A]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:A}=this.props;Ur(A)&&(this.childSubscription=A.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}class sd{constructor(A){this.isMounted=!1,this.node=A}update(){}}function G2({top:e,left:A,right:t,bottom:n}){return{x:{min:A,max:t},y:{min:e,max:n}}}function t$({x:e,y:A}){return{top:A.min,right:e.max,bottom:A.max,left:e.min}}function n$(e,A){if(!A)return e;const t=A({x:e.left,y:e.top}),n=A({x:e.right,y:e.bottom});return{top:t.y,left:t.x,bottom:n.y,right:n.x}}function n3(e){return e===void 0||e===1}function s3({scale:e,scaleX:A,scaleY:t}){return!n3(e)||!n3(A)||!n3(t)}function dG(e){return s3(e)||f2(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function f2(e){return h2(e.x)||h2(e.y)}function h2(e){return e&&e!=="0%"}function TI(e,A,t){const n=e-t,s=A*n;return t+s}function w2(e,A,t,n,s){return s!==void 0&&(e=TI(e,s,n)),TI(e,t,n)+A}function r3(e,A=0,t=1,n,s){e.min=w2(e.min,A,t,n,s),e.max=w2(e.max,A,t,n,s)}function Q2(e,{x:A,y:t}){r3(e.x,A.translate,A.scale,A.originPoint),r3(e.y,t.translate,t.scale,t.originPoint)}const b2=.999999999999,C2=1.0000000000001;function s$(e,A,t,n=!1){const s=t.length;if(!s)return;A.x=A.y=1;let r,a;for(let B=0;B<s;B++){r=t[B],a=r.projectionDelta;const{visualElement:c}=r.options;c&&c.props.style&&c.props.style.display==="contents"||(n&&r.options.layoutScroll&&r.scroll&&r!==r.root&&(hc(e.x,-r.scroll.offset.x),hc(e.y,-r.scroll.offset.y)),a&&(A.x*=a.x.scale,A.y*=a.y.scale,Q2(e,a)),n&&dG(r.latestValues)&&RI(e,r.latestValues,r.layout?.layoutBox))}A.x<C2&&A.x>b2&&(A.x=1),A.y<C2&&A.y>b2&&(A.y=1)}function hc(e,A){e.min+=A,e.max+=A}function v2(e,A,t,n,s=.5){const r=mn(e.min,e.max,s);r3(e,A,t,r,n)}function I2(e,A){return typeof e=="string"?parseFloat(e)/100*(A.max-A.min):e}function RI(e,A,t){const n=t??e;v2(e.x,I2(A.x,n.x),A.scaleX,A.scale,A.originX),v2(e.y,I2(A.y,n.y),A.scaleY,A.scale,A.originY)}function p2(e,A){return G2(n$(e.getBoundingClientRect(),A))}function r$(e,A,t){const n=p2(e,t),{scroll:s}=A;return s&&(hc(n.x,s.offset.x),hc(n.y,s.offset.y)),n}const a$={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},i$=fh.length;function B$(e,A,t){let n="",s=!0;for(let r=0;r<i$;r++){const a=fh[r],B=e[a];if(B===void 0)continue;let c=!0;if(typeof B=="number")c=B===(a.startsWith("scale")?1:0);else{const l=parseFloat(B);c=a.startsWith("scale")?l===1:l===0}if(!c||t){const l=$x(B,Ky[a]);if(!c){s=!1;const g=a$[a]||a;n+=`${g}(${l}) `}t&&(A[a]=l)}}return n=n.trim(),t?n=t(A,s?"":n):s&&(n="none"),n}function a3(e,A,t){const{style:n,vars:s,transformOrigin:r}=e;let a=!1,B=!1;for(const c in A){const l=A[c];if(hh.has(c)){a=!0;continue}else if(sx(c)){s[c]=l;continue}else{const g=$x(l,Ky[c]);c.startsWith("origin")?(B=!0,r[c]=g):n[c]=g}}if(A.transform||(a||t?n.transform=B$(A,e.transform,t):n.transform&&(n.transform="none")),B){const{originX:c="50%",originY:l="50%",originZ:g=0}=r;n.transformOrigin=`${c} ${l} ${g}`}}function H2(e,{style:A,vars:t},n,s){const r=e.style;let a;for(a in A)r[a]=A[a];s?.applyProjectionStyles(r,n);for(a in t)r.setProperty(a,t[a])}function m2(e,A){return A.max===A.min?0:e/(A.max-A.min)*100}const LQ={correct:(e,A)=>{if(!A.target)return e;if(typeof e=="string")if(Be.test(e))e=parseFloat(e);else return e;const t=m2(e,A.target.x),n=m2(e,A.target.y);return`${t}% ${n}%`}},o$={correct:(e,{treeScale:A,projectionDelta:t})=>{const n=e,s=to.parse(e);if(s.length>5)return n;const r=to.createTransformer(e),a=typeof s[0]!="number"?1:0,B=t.x.scale*A.x,c=t.y.scale*A.y;s[0+a]/=B,s[1+a]/=c;const l=mn(B,c,.5);return typeof s[2+a]=="number"&&(s[2+a]/=l),typeof s[3+a]=="number"&&(s[3+a]/=l),r(s)}},i3={borderRadius:{...LQ,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:LQ,borderTopRightRadius:LQ,borderBottomLeftRadius:LQ,borderBottomRightRadius:LQ,boxShadow:o$};function E2(e,{layout:A,layoutId:t}){return hh.has(e)||e.startsWith("origin")||(A||t!==void 0)&&(!!i3[e]||e==="opacity")}function B3(e,A,t){const n=e.style,s=A?.style,r={};if(!n)return r;for(const a in n)(Ur(n[a])||s&&Ur(s[a])||E2(a,e)||t?.getValue(a)?.liveStyle!==void 0)&&(r[a]=n[a]);return r}function c$(e){return window.getComputedStyle(e)}class l$ extends u2{constructor(){super(...arguments),this.type="html",this.renderInstance=H2}readValueFromInstance(A,t){if(hh.has(t))return this.projection?.isProjecting?ky(t):M6(A,t);{const n=c$(A),s=(sx(t)?n.getPropertyValue(t):n[t])||0;return typeof s=="string"?s.trim():s}}measureInstanceViewportBox(A,{transformPagePoint:t}){return p2(A,t)}build(A,t,n){a3(A,t,n.transformTemplate)}scrapeMotionValuesFromProps(A,t,n){return B3(A,t,n)}}const g$={offset:"stroke-dashoffset",array:"stroke-dasharray"},d$={offset:"strokeDashoffset",array:"strokeDasharray"};function u$(e,A,t=1,n=0,s=!0){e.pathLength=1;const r=s?g$:d$;e[r.offset]=`${-n}`,e[r.array]=`${A} ${t}`}const G$=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function y2(e,{attrX:A,attrY:t,attrScale:n,pathLength:s,pathSpacing:r=1,pathOffset:a=0,...B},c,l,g){if(a3(e,B,l),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:u,style:f}=e;u.transform&&(f.transform=u.transform,delete u.transform),(f.transform||u.transformOrigin)&&(f.transformOrigin=u.transformOrigin??"50% 50%",delete u.transformOrigin),f.transform&&(f.transformBox=g?.transformBox??"fill-box",delete u.transformBox);for(const w of G$)u[w]!==void 0&&(f[w]=u[w],delete u[w]);A!==void 0&&(u.x=A),t!==void 0&&(u.y=t),n!==void 0&&(u.scale=n),s!==void 0&&u$(u,s,r,a,!1)}const Y2=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"]),Z2=e=>typeof e=="string"&&e.toLowerCase()==="svg";function f$(e,A,t,n){H2(e,A,void 0,n);for(const s in A.attrs)e.setAttribute(Y2.has(s)?s:Ly(s),A.attrs[s])}function k2(e,A,t){const n=B3(e,A,t);for(const s in e)if(Ur(e[s])||Ur(A[s])){const r=fh.indexOf(s)!==-1?"attr"+s.charAt(0).toUpperCase()+s.substring(1):s;n[r]=e[s]}return n}class h$ extends u2{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Ks}getBaseTargetFromProps(A,t){return A[t]}readValueFromInstance(A,t){if(hh.has(t)){const n=jx(t);return n&&n.default||0}return t=Y2.has(t)?t:Ly(t),A.getAttribute(t)}scrapeMotionValuesFromProps(A,t,n){return k2(A,t,n)}build(A,t,n){y2(A,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(A,t,n,s){f$(A,t,n,s)}mount(A){this.isSVGTag=Z2(A.tagName),super.mount(A)}}const w$=e3.length;function U2(e){if(!e)return;if(!e.isControllingVariants){const t=e.parent?U2(e.parent)||{}:{};return e.props.initial!==void 0&&(t.initial=e.props.initial),t}const A={};for(let t=0;t<w$;t++){const n=e3[t],s=e.props[n];(zQ(s)||s===!1)&&(A[n]=s)}return A}function D2(e,A){if(!Array.isArray(A))return!1;const t=A.length;if(t!==e.length)return!1;for(let n=0;n<t;n++)if(A[n]!==e[n])return!1;return!0}const Q$=[...A3].reverse(),b$=A3.length;function C$(e){return A=>Promise.all(A.map(({animation:t,options:n})=>Lx(e,t,n)))}function v$(e){let A=C$(e),t=F2(),n=!0,s=!1;const r=l=>(g,u)=>{const f=gG(e,u,l==="exit"?e.presenceContext?.custom:void 0);if(f){const{transition:w,transitionEnd:v,...E}=f;g={...g,...E,...v}}return g};function a(l){A=l(e)}function B(l){const{props:g}=e,u=U2(e.parent)||{},f=[],w=new Set;let v={},E=1/0;for(let Z=0;Z<b$;Z++){const D=Q$[Z],T=t[D],S=g[D]!==void 0?g[D]:u[D],F=zQ(S),V=D===l?T.isActive:null;V===!1&&(E=Z);let N=S===u[D]&&S!==g[D]&&F;if(N&&(n||s)&&e.manuallyAnimateOnMount&&(N=!1),T.protectedKeys={...v},!T.isActive&&V===null||!S&&!T.prevProp||MI(S)||typeof S=="boolean")continue;if(D==="exit"&&T.isActive&&V!==!0){T.prevResolvedValues&&(v={...v,...T.prevResolvedValues});continue}const X=I$(T.prevProp,S);let eA=X||D===l&&T.isActive&&!N&&F||Z>E&&F,$=!1;const rA=Array.isArray(S)?S:[S];let iA=rA.reduce(r(D),{});V===!1&&(iA={});const{prevResolvedValues:hA={}}=T,fA={...hA,...iA},yA=AA=>{eA=!0,w.has(AA)&&($=!0,w.delete(AA)),T.needsAnimating[AA]=!0;const MA=e.getValue(AA);MA&&(MA.liveStyle=!1)};for(const AA in fA){const MA=iA[AA],q=hA[AA];if(v.hasOwnProperty(AA))continue;let W=!1;Wy(MA)&&Wy(q)?W=!D2(MA,q):W=MA!==q,W?MA!=null?yA(AA):w.add(AA):MA!==void 0&&w.has(AA)?yA(AA):T.protectedKeys[AA]=!0}T.prevProp=S,T.prevResolvedValues=iA,T.isActive&&(v={...v,...iA}),(n||s)&&e.blockInitialAnimation&&(eA=!1);const L=N&&X;eA&&(!L||$)&&f.push(...rA.map(AA=>{const MA={type:D};if(typeof AA=="string"&&(n||s)&&!L&&e.manuallyAnimateOnMount&&e.parent){const{parent:q}=e,W=gG(q,AA);if(q.enteringChildren&&W){const{delayChildren:dA}=W.transition||{};MA.delay=xx(q.enteringChildren,e,dA)}}return{animation:AA,options:MA}}))}if(w.size){const Z={};if(typeof g.initial!="boolean"){const D=gG(e,Array.isArray(g.initial)?g.initial[0]:g.initial);D&&D.transition&&(Z.transition=D.transition)}w.forEach(D=>{const T=e.getBaseTarget(D),S=e.getValue(D);S&&(S.liveStyle=!0),Z[D]=T??null}),f.push({animation:Z})}let m=!!f.length;return n&&(g.initial===!1||g.initial===g.animate)&&!e.manuallyAnimateOnMount&&(m=!1),n=!1,s=!1,m?A(f):Promise.resolve()}function c(l,g){if(t[l].isActive===g)return Promise.resolve();e.variantChildren?.forEach(f=>f.animationState?.setActive(l,g)),t[l].isActive=g;const u=B(l);for(const f in t)t[f].protectedKeys={};return u}return{animateChanges:B,setActive:c,setAnimateFunction:a,getState:()=>t,reset:()=>{t=F2(),s=!0}}}function I$(e,A){return typeof A=="string"?A!==e:Array.isArray(A)?!D2(A,e):!1}function uG(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function F2(){return{animate:uG(!0),whileInView:uG(),whileHover:uG(),whileTap:uG(),whileDrag:uG(),whileFocus:uG(),exit:uG()}}function o3(e,A){e.min=A.min,e.max=A.max}function so(e,A){o3(e.x,A.x),o3(e.y,A.y)}function M2(e,A){e.translate=A.translate,e.scale=A.scale,e.originPoint=A.originPoint,e.origin=A.origin}const x2=1e-4,p$=1-x2,H$=1+x2,P2=.01,m$=0-P2,E$=0+P2;function la(e){return e.max-e.min}function y$(e,A,t){return Math.abs(e-A)<=t}function T2(e,A,t,n=.5){e.origin=n,e.originPoint=mn(A.min,A.max,e.origin),e.scale=la(t)/la(A),e.translate=mn(t.min,t.max,e.origin)-e.originPoint,(e.scale>=p$&&e.scale<=H$||isNaN(e.scale))&&(e.scale=1),(e.translate>=m$&&e.translate<=E$||isNaN(e.translate))&&(e.translate=0)}function XQ(e,A,t,n){T2(e.x,A.x,t.x,n?n.originX:void 0),T2(e.y,A.y,t.y,n?n.originY:void 0)}function R2(e,A,t,n=0){const s=n?mn(t.min,t.max,n):t.min;e.min=s+A.min,e.max=e.min+la(A)}function Y$(e,A,t,n){R2(e.x,A.x,t.x,n?.x),R2(e.y,A.y,t.y,n?.y)}function S2(e,A,t,n=0){const s=n?mn(t.min,t.max,n):t.min;e.min=A.min-s,e.max=e.min+la(A)}function SI(e,A,t,n){S2(e.x,A.x,t.x,n?.x),S2(e.y,A.y,t.y,n?.y)}function V2(e,A,t,n,s){return e-=A,e=TI(e,1/t,n),s!==void 0&&(e=TI(e,1/s,n)),e}function Z$(e,A=0,t=1,n=.5,s,r=e,a=e){if(fc.test(A)&&(A=parseFloat(A),A=mn(a.min,a.max,A/100)-a.min),typeof A!="number")return;let B=mn(r.min,r.max,n);e===r&&(B-=A),e.min=V2(e.min,A,t,B,s),e.max=V2(e.max,A,t,B,s)}function W2(e,A,[t,n,s],r,a){Z$(e,A[t],A[n],A[s],A.scale,r,a)}const k$=["x","scaleX","originX"],U$=["y","scaleY","originY"];function N2(e,A,t,n){W2(e.x,A,k$,t?t.x:void 0,n?n.x:void 0),W2(e.y,A,U$,t?t.y:void 0,n?n.y:void 0)}function z2(e){return e.translate===0&&e.scale===1}function L2(e){return z2(e.x)&&z2(e.y)}function X2(e,A){return e.min===A.min&&e.max===A.max}function D$(e,A){return X2(e.x,A.x)&&X2(e.y,A.y)}function O2(e,A){return Math.round(e.min)===Math.round(A.min)&&Math.round(e.max)===Math.round(A.max)}function J2(e,A){return O2(e.x,A.x)&&O2(e.y,A.y)}function K2(e){return la(e.x)/la(e.y)}function j2(e,A){return e.translate===A.translate&&e.scale===A.scale&&e.originPoint===A.originPoint}function wc(e){return[e("x"),e("y")]}function F$(e,A,t){let n="";const s=e.x.translate/A.x,r=e.y.translate/A.y,a=t?.z||0;if((s||r||a)&&(n=`translate3d(${s}px, ${r}px, ${a}px) `),(A.x!==1||A.y!==1)&&(n+=`scale(${1/A.x}, ${1/A.y}) `),t){const{transformPerspective:l,rotate:g,rotateX:u,rotateY:f,skewX:w,skewY:v}=t;l&&(n=`perspective(${l}px) ${n}`),g&&(n+=`rotate(${g}deg) `),u&&(n+=`rotateX(${u}deg) `),f&&(n+=`rotateY(${f}deg) `),w&&(n+=`skewX(${w}deg) `),v&&(n+=`skewY(${v}deg) `)}const B=e.x.scale*A.x,c=e.y.scale*A.y;return(B!==1||c!==1)&&(n+=`scale(${B}, ${c})`),n||"none"}const _2=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],M$=_2.length,q2=e=>typeof e=="string"?parseFloat(e):e,$2=e=>typeof e=="number"||Be.test(e);function x$(e,A,t,n,s,r){s?(e.opacity=mn(0,t.opacity??1,P$(n)),e.opacityExit=mn(A.opacity??1,0,T$(n))):r&&(e.opacity=mn(A.opacity??1,t.opacity??1,n));for(let a=0;a<M$;a++){const B=_2[a];let c=AP(A,B),l=AP(t,B);if(c===void 0&&l===void 0)continue;c||(c=0),l||(l=0),c===0||l===0||$2(c)===$2(l)?(e[B]=Math.max(mn(q2(c),q2(l),n),0),(fc.test(l)||fc.test(c))&&(e[B]+="%")):e[B]=l}(A.rotate||t.rotate)&&(e.rotate=mn(A.rotate||0,t.rotate||0,n))}function AP(e,A){return e[A]!==void 0?e[A]:e.borderRadius}const P$=eP(0,.5,_M),T$=eP(.5,.95,lB);function eP(e,A,t){return n=>n<e?0:n>A?1:t(PQ(e,A,n))}function R$(e,A,t){const n=Ur(e)?e:wh(e);return n.start(Sy("",n,A,t)),n.animation}function OQ(e,A,t,n={passive:!0}){return e.addEventListener(A,t,n),()=>e.removeEventListener(A,t)}const S$=(e,A)=>e.depth-A.depth;class V${constructor(){this.children=[],this.isDirty=!1}add(A){oy(this.children,A),this.isDirty=!0}remove(A){CI(this.children,A),this.isDirty=!0}forEach(A){this.isDirty&&this.children.sort(S$),this.isDirty=!1,this.children.forEach(A)}}function W$(e,A){const t=ca.now(),n=({timestamp:s})=>{const r=s-t;r>=A&&(ed(n),e(r-A))};return cn.setup(n,!0),()=>ed(n)}function VI(e){return Ur(e)?e.get():e}class N${constructor(){this.members=[]}add(A){oy(this.members,A);for(let t=this.members.length-1;t>=0;t--){const n=this.members[t];if(n===A||n===this.lead||n===this.prevLead)continue;const s=n.instance;(!s||s.isConnected===!1)&&!n.snapshot&&(CI(this.members,n),n.unmount())}A.scheduleRender()}remove(A){if(CI(this.members,A),A===this.prevLead&&(this.prevLead=void 0),A===this.lead){const t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(A){for(let t=this.members.indexOf(A)-1;t>=0;t--){const n=this.members[t];if(n.isPresent!==!1&&n.instance?.isConnected!==!1)return this.promote(n),!0}return!1}promote(A,t){const n=this.lead;if(A!==n&&(this.prevLead=n,this.lead=A,A.show(),n)){n.updateSnapshot(),A.scheduleRender();const{layoutDependency:s}=n.options,{layoutDependency:r}=A.options;(s===void 0||s!==r)&&(A.resumeFrom=n,t&&(n.preserveOpacity=!0),n.snapshot&&(A.snapshot=n.snapshot,A.snapshot.latestValues=n.animationValues||n.latestValues),A.root?.isUpdating&&(A.isLayoutDirty=!0)),A.options.crossfade===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(A=>{A.options.onExitComplete?.(),A.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(A=>A.instance&&A.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}const WI={hasAnimatedSinceResize:!0,hasEverUpdated:!1},c3=["","X","Y","Z"],z$=1e3;let L$=0;function l3(e,A,t,n){const{latestValues:s}=A;s[e]&&(t[e]=s[e],A.setStaticValue(e,0),n&&(n[e]=0))}function tP(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:A}=e.options;if(!A)return;const t=Nx(A);if(window.MotionHasOptimisedAnimation(t,"transform")){const{layout:s,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(t,"transform",cn,!(s||r))}const{parent:n}=e;n&&!n.hasCheckedOptimisedAppear&&tP(n)}function nP({attachResizeListener:e,defaultParent:A,measureScroll:t,checkIsScrollRoot:n,resetTransform:s}){return class{constructor(a={},B=A?.()){this.id=L$++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(J$),this.nodes.forEach(AAA),this.nodes.forEach(eAA),this.nodes.forEach(K$)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=B?B.root||B:this,this.path=B?[...B.path,B]:[],this.parent=B,this.depth=B?B.depth+1:0;for(let c=0;c<this.path.length;c++)this.path[c].shouldResetTransform=!0;this.root===this&&(this.nodes=new V$)}addEventListener(a,B){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new ly),this.eventHandlers.get(a).add(B)}notifyListeners(a,...B){const c=this.eventHandlers.get(a);c&&c.notify(...B)}hasListeners(a){return this.eventHandlers.has(a)}mount(a){if(this.instance)return;this.isSVG=$y(a)&&!Oq(a),this.instance=a;const{layoutId:B,layout:c,visualElement:l}=this.options;if(l&&!l.current&&l.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(c||B)&&(this.isLayoutDirty=!0),e){let g,u=0;const f=()=>this.root.updateBlockedByResize=!1;cn.read(()=>{u=window.innerWidth}),e(a,()=>{const w=window.innerWidth;w!==u&&(u=w,this.root.updateBlockedByResize=!0,g&&g(),g=W$(f,250),WI.hasAnimatedSinceResize&&(WI.hasAnimatedSinceResize=!1,this.nodes.forEach(aP)))})}B&&this.root.registerSharedNode(B,this),this.options.animate!==!1&&l&&(B||c)&&this.addEventListener("didUpdate",({delta:g,hasLayoutChanged:u,hasRelativeLayoutChanged:f,layout:w})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const v=this.options.transition||l.getDefaultTransition()||aAA,{onLayoutAnimationStart:E,onLayoutAnimationComplete:m}=l.getProps(),Z=!this.targetLayout||!J2(this.targetLayout,w),D=!u&&f;if(this.options.layoutRoot||this.resumeFrom||D||u&&(Z||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const T={...Ry(v,"layout"),onPlay:E,onComplete:m};(l.shouldReduceMotion||this.options.layoutRoot)&&(T.delay=0,T.type=!1),this.startAnimation(T),this.setAnimationOrigin(g,D)}else u||aP(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=w})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),ed(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(tAA),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&tP(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let g=0;g<this.path.length;g++){const u=this.path[g];u.shouldResetTransform=!0,(typeof u.latestValues.x=="string"||typeof u.latestValues.y=="string")&&(u.isLayoutDirty=!0),u.updateScroll("snapshot"),u.options.layoutRoot&&u.willUpdate(!1)}const{layoutId:B,layout:c}=this.options;if(B===void 0&&!c)return;const l=this.getTransformTemplate();this.prevTransformTemplateValue=l?l(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){const c=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),c&&this.nodes.forEach(_$),this.nodes.forEach(sP);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(rP);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(q$),this.nodes.forEach($$),this.nodes.forEach(X$),this.nodes.forEach(O$)):this.nodes.forEach(rP),this.clearAllSnapshots();const B=ca.now();kr.delta=Gc(0,1e3/60,B-kr.timestamp),kr.timestamp=B,kr.isProcessing=!0,uy.update.process(kr),uy.preRender.process(kr),uy.render.process(kr),kr.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,jy.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(j$),this.sharedNodes.forEach(nAA)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,cn.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){cn.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!la(this.snapshot.measuredBox.x)&&!la(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let c=0;c<this.path.length;c++)this.path[c].updateScroll();const a=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=Ks()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:B}=this.options;B&&B.notify("LayoutMeasure",this.layout.layoutBox,a?a.layoutBox:void 0)}updateScroll(a="measure"){let B=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(B=!1),B&&this.instance){const c=n(this.instance);this.scroll={animationId:this.root.animationId,phase:a,isRoot:c,offset:t(this.instance),wasRoot:this.scroll?this.scroll.isRoot:c}}}resetTransform(){if(!s)return;const a=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,B=this.projectionDelta&&!L2(this.projectionDelta),c=this.getTransformTemplate(),l=c?c(this.latestValues,""):void 0,g=l!==this.prevTransformTemplateValue;a&&this.instance&&(B||dG(this.latestValues)||g)&&(s(this.instance,l),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){const B=this.measurePageBox();let c=this.removeElementScroll(B);return a&&(c=this.removeTransform(c)),iAA(c),{animationId:this.root.animationId,measuredBox:B,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:a}=this.options;if(!a)return Ks();const B=a.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(BAA))){const{scroll:l}=this.root;l&&(hc(B.x,l.offset.x),hc(B.y,l.offset.y))}return B}removeElementScroll(a){const B=Ks();if(so(B,a),this.scroll?.wasRoot)return B;for(let c=0;c<this.path.length;c++){const l=this.path[c],{scroll:g,options:u}=l;l!==this.root&&g&&u.layoutScroll&&(g.wasRoot&&so(B,a),hc(B.x,g.offset.x),hc(B.y,g.offset.y))}return B}applyTransform(a,B=!1,c){const l=c||Ks();so(l,a);for(let g=0;g<this.path.length;g++){const u=this.path[g];!B&&u.options.layoutScroll&&u.scroll&&u!==u.root&&(hc(l.x,-u.scroll.offset.x),hc(l.y,-u.scroll.offset.y)),dG(u.latestValues)&&RI(l,u.latestValues,u.layout?.layoutBox)}return dG(this.latestValues)&&RI(l,this.latestValues,this.layout?.layoutBox),l}removeTransform(a){const B=Ks();so(B,a);for(let c=0;c<this.path.length;c++){const l=this.path[c];if(!dG(l.latestValues))continue;let g;l.instance&&(s3(l.latestValues)&&l.updateSnapshot(),g=Ks(),so(g,l.measurePageBox())),N2(B,l.latestValues,l.snapshot?.layoutBox,g)}return dG(this.latestValues)&&N2(B,this.latestValues),B}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(a){this.options={...this.options,...a,crossfade:a.crossfade!==void 0?a.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==kr.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!1){const B=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=B.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=B.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=B.isSharedProjectionDirty);const c=!!this.resumingFrom||this!==B;if(!(a||c&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:g,layoutId:u}=this.options;if(!this.layout||!(g||u))return;this.resolvedRelativeTargetAt=kr.timestamp;const f=this.getClosestProjectingParent();f&&this.linkedParentVersion!==f.layoutVersion&&!f.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&f&&f.layout?this.createRelativeTarget(f,this.layout.layoutBox,f.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Ks(),this.targetWithTransforms=Ks()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Y$(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):so(this.target,this.layout.layoutBox),Q2(this.target,this.targetDelta)):so(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&f&&!!f.resumingFrom==!!this.resumingFrom&&!f.options.layoutScroll&&f.target&&this.animationProgress!==1?this.createRelativeTarget(f,this.target,f.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||s3(this.parent.latestValues)||f2(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(a,B,c){this.relativeParent=a,this.linkedParentVersion=a.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Ks(),this.relativeTargetOrigin=Ks(),SI(this.relativeTargetOrigin,B,c,this.options.layoutAnchor||void 0),so(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const a=this.getLead(),B=!!this.resumingFrom||this!==a;let c=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(c=!1),B&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===kr.timestamp&&(c=!1),c)return;const{layout:l,layoutId:g}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(l||g))return;so(this.layoutCorrected,this.layout.layoutBox);const u=this.treeScale.x,f=this.treeScale.y;s$(this.layoutCorrected,this.treeScale,this.path,B),a.layout&&!a.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(a.target=a.layout.layoutBox,a.targetWithTransforms=Ks());const{target:w}=a;if(!w){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(M2(this.prevProjectionDelta.x,this.projectionDelta.x),M2(this.prevProjectionDelta.y,this.projectionDelta.y)),XQ(this.projectionDelta,this.layoutCorrected,w,this.latestValues),(this.treeScale.x!==u||this.treeScale.y!==f||!j2(this.projectionDelta.x,this.prevProjectionDelta.x)||!j2(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",w))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){if(this.options.visualElement?.scheduleRender(),a){const B=this.getStack();B&&B.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=bh(),this.projectionDelta=bh(),this.projectionDeltaWithTransform=bh()}setAnimationOrigin(a,B=!1){const c=this.snapshot,l=c?c.latestValues:{},g={...this.latestValues},u=bh();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!B;const f=Ks(),w=c?c.source:void 0,v=this.layout?this.layout.source:void 0,E=w!==v,m=this.getStack(),Z=!m||m.members.length<=1,D=!!(E&&!Z&&this.options.crossfade===!0&&!this.path.some(rAA));this.animationProgress=0;let T;this.mixTargetDelta=S=>{const F=S/1e3;iP(u.x,a.x,F),iP(u.y,a.y,F),this.setTargetDelta(u),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(SI(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),sAA(this.relativeTarget,this.relativeTargetOrigin,f,F),T&&D$(this.relativeTarget,T)&&(this.isProjectionDirty=!1),T||(T=Ks()),so(T,this.relativeTarget)),E&&(this.animationValues=g,x$(g,l,this.latestValues,F,D,Z)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=F},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(ed(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=cn.update(()=>{WI.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=wh(0)),this.motionValue.jump(0,!1),this.currentAnimation=R$(this.motionValue,[0,1e3],{...a,velocity:0,isSync:!0,onUpdate:B=>{this.mixTargetDelta(B),a.onUpdate&&a.onUpdate(B)},onStop:()=>{},onComplete:()=>{a.onComplete&&a.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(z$),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:B,target:c,layout:l,latestValues:g}=a;if(!(!B||!c||!l)){if(this!==a&&this.layout&&l&&gP(this.options.animationType,this.layout.layoutBox,l.layoutBox)){c=this.target||Ks();const u=la(this.layout.layoutBox.x);c.x.min=a.target.x.min,c.x.max=c.x.min+u;const f=la(this.layout.layoutBox.y);c.y.min=a.target.y.min,c.y.max=c.y.min+f}so(B,c),RI(B,g),XQ(this.projectionDeltaWithTransform,this.layoutCorrected,B,g)}}registerSharedNode(a,B){this.sharedNodes.has(a)||this.sharedNodes.set(a,new N$),this.sharedNodes.get(a).add(B);const l=B.options.initialPromotionConfig;B.promote({transition:l?l.transition:void 0,preserveFollowOpacity:l&&l.shouldPreserveFollowOpacity?l.shouldPreserveFollowOpacity(B):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){const{layoutId:a}=this.options;return a?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:a}=this.options;return a?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:B,preserveFollowOpacity:c}={}){const l=this.getStack();l&&l.promote(this,c),a&&(this.projectionDelta=void 0,this.needsReset=!0),B&&this.setOptions({transition:B})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetSkewAndRotation(){const{visualElement:a}=this.options;if(!a)return;let B=!1;const{latestValues:c}=a;if((c.z||c.rotate||c.rotateX||c.rotateY||c.rotateZ||c.skewX||c.skewY)&&(B=!0),!B)return;const l={};c.z&&l3("z",a,l,this.animationValues);for(let g=0;g<c3.length;g++)l3(`rotate${c3[g]}`,a,l,this.animationValues),l3(`skew${c3[g]}`,a,l,this.animationValues);a.render();for(const g in l)a.setStaticValue(g,l[g]),this.animationValues&&(this.animationValues[g]=l[g]);a.scheduleRender()}applyProjectionStyles(a,B){if(!this.instance||this.isSVG)return;if(!this.isVisible){a.visibility="hidden";return}const c=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,a.visibility="",a.opacity="",a.pointerEvents=VI(B?.pointerEvents)||"",a.transform=c?c(this.latestValues,""):"none";return}const l=this.getLead();if(!this.projectionDelta||!this.layout||!l.target){this.options.layoutId&&(a.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,a.pointerEvents=VI(B?.pointerEvents)||""),this.hasProjected&&!dG(this.latestValues)&&(a.transform=c?c({},""):"none",this.hasProjected=!1);return}a.visibility="";const g=l.animationValues||l.latestValues;this.applyTransformsToTarget();let u=F$(this.projectionDeltaWithTransform,this.treeScale,g);c&&(u=c(g,u)),a.transform=u;const{x:f,y:w}=this.projectionDelta;a.transformOrigin=`${f.origin*100}% ${w.origin*100}% 0`,l.animationValues?a.opacity=l===this?g.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:g.opacityExit:a.opacity=l===this?g.opacity!==void 0?g.opacity:"":g.opacityExit!==void 0?g.opacityExit:0;for(const v in i3){if(g[v]===void 0)continue;const{correct:E,applyTo:m,isCSSVariable:Z}=i3[v],D=u==="none"?g[v]:E(g[v],l);if(m){const T=m.length;for(let S=0;S<T;S++)a[m[S]]=D}else Z?this.options.visualElement.renderState.vars[v]=D:a[v]=D}this.options.layoutId&&(a.pointerEvents=l===this?VI(B?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>a.currentAnimation?.stop()),this.root.nodes.forEach(sP),this.root.sharedNodes.clear()}}}function X$(e){e.updateLayout()}function O$(e){const A=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&A&&e.hasListeners("didUpdate")){const{layoutBox:t,measuredBox:n}=e.layout,{animationType:s}=e.options,r=A.source!==e.layout.source;if(s==="size")wc(g=>{const u=r?A.measuredBox[g]:A.layoutBox[g],f=la(u);u.min=t[g].min,u.max=u.min+f});else if(s==="x"||s==="y"){const g=s==="x"?"y":"x";o3(r?A.measuredBox[g]:A.layoutBox[g],t[g])}else gP(s,A.layoutBox,t)&&wc(g=>{const u=r?A.measuredBox[g]:A.layoutBox[g],f=la(t[g]);u.max=u.min+f,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[g].max=e.relativeTarget[g].min+f)});const a=bh();XQ(a,t,A.layoutBox);const B=bh();r?XQ(B,e.applyTransform(n,!0),A.measuredBox):XQ(B,t,A.layoutBox);const c=!L2(a);let l=!1;if(!e.resumeFrom){const g=e.getClosestProjectingParent();if(g&&!g.resumeFrom){const{snapshot:u,layout:f}=g;if(u&&f){const w=e.options.layoutAnchor||void 0,v=Ks();SI(v,A.layoutBox,u.layoutBox,w);const E=Ks();SI(E,t,f.layoutBox,w),J2(v,E)||(l=!0),g.options.layoutRoot&&(e.relativeTarget=E,e.relativeTargetOrigin=v,e.relativeParent=g)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:A,delta:B,layoutDelta:a,hasLayoutChanged:c,hasRelativeLayoutChanged:l})}else if(e.isLead()){const{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function J$(e){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 K$(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function j$(e){e.clearSnapshot()}function sP(e){e.clearMeasurements()}function _$(e){e.isLayoutDirty=!0,e.updateLayout()}function rP(e){e.isLayoutDirty=!1}function q$(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function $$(e){const{visualElement:A}=e.options;A&&A.getProps().onBeforeLayoutMeasure&&A.notify("BeforeLayoutMeasure"),e.resetTransform()}function aP(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function AAA(e){e.resolveTargetDelta()}function eAA(e){e.calcProjection()}function tAA(e){e.resetSkewAndRotation()}function nAA(e){e.removeLeadSnapshot()}function iP(e,A,t){e.translate=mn(A.translate,0,t),e.scale=mn(A.scale,1,t),e.origin=A.origin,e.originPoint=A.originPoint}function BP(e,A,t,n){e.min=mn(A.min,t.min,n),e.max=mn(A.max,t.max,n)}function sAA(e,A,t,n){BP(e.x,A.x,t.x,n),BP(e.y,A.y,t.y,n)}function rAA(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const aAA={duration:.45,ease:[.4,0,.1,1]},oP=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),cP=oP("applewebkit/")&&!oP("chrome/")?Math.round:lB;function lP(e){e.min=cP(e.min),e.max=cP(e.max)}function iAA(e){lP(e.x),lP(e.y)}function gP(e,A,t){return e==="position"||e==="preserve-aspect"&&!y$(K2(A),K2(t),.2)}function BAA(e){return e!==e.root&&e.scroll?.wasRoot}const oAA=nP({attachResizeListener:(e,A)=>OQ(e,"resize",A),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),g3={current:void 0},dP=nP({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!g3.current){const e=new oAA({});e.mount(window),e.setOptions({layoutScroll:!0}),g3.current=e}return g3.current},resetTransform:(e,A)=>{e.style.transform=A!==void 0?A:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),d3=R.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function uP(e,A){if(typeof e=="function")return e(A);e!=null&&(e.current=A)}function cAA(...e){return A=>{let t=!1;const n=e.map(s=>{const r=uP(s,A);return!t&&typeof r=="function"&&(t=!0),r});if(t)return()=>{for(let s=0;s<n.length;s++){const r=n[s];typeof r=="function"?r():uP(e[s],null)}}}}function lAA(...e){return R.useCallback(cAA(...e),e)}class gAA extends R.Component{getSnapshotBeforeUpdate(A){const t=this.props.childRef.current;if(ZI(t)&&A.isPresent&&!this.props.isPresent&&this.props.pop!==!1){const n=t.offsetParent,s=ZI(n)&&n.offsetWidth||0,r=ZI(n)&&n.offsetHeight||0,a=getComputedStyle(t),B=this.props.sizeRef.current;B.height=parseFloat(a.height),B.width=parseFloat(a.width),B.top=t.offsetTop,B.left=t.offsetLeft,B.right=s-B.width-B.left,B.bottom=r-B.height-B.top}return null}componentDidUpdate(){}render(){return this.props.children}}function dAA({children:e,isPresent:A,anchorX:t,anchorY:n,root:s,pop:r}){const a=R.useId(),B=R.useRef(null),c=R.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:l}=R.useContext(d3),g=e.props?.ref??e?.ref,u=lAA(B,g);return R.useInsertionEffect(()=>{const{width:f,height:w,top:v,left:E,right:m,bottom:Z}=c.current;if(A||r===!1||!B.current||!f||!w)return;const D=t==="left"?`left: ${E}`:`right: ${m}`,T=n==="bottom"?`bottom: ${Z}`:`top: ${v}`;B.current.dataset.motionPopId=a;const S=document.createElement("style");l&&(S.nonce=l);const F=s??document.head;return F.appendChild(S),S.sheet&&S.sheet.insertRule(`
57
57
  [data-motion-pop-id="${a}"] {
58
58
  position: absolute !important;
59
59
  width: ${f}px !important;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@careshiphealth/widget",
3
- "version": "2.2.5-ela",
3
+ "version": "2.2.5",
4
4
  "type": "module",
5
5
  "module": "dist/widget.iife.js",
6
6
  "exports": {