@winspan/claude-forge 3.6.9 → 3.6.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/storage/repositories/maintenance-repository.d.ts +18 -0
- package/dist/storage/repositories/maintenance-repository.d.ts.map +1 -1
- package/dist/storage/repositories/maintenance-repository.js +57 -1
- package/dist/storage/repositories/maintenance-repository.js.map +1 -1
- package/dist/storage/sqlite.d.ts +19 -0
- package/dist/storage/sqlite.d.ts.map +1 -1
- package/dist/storage/sqlite.js +3 -0
- package/dist/storage/sqlite.js.map +1 -1
- package/dist/web/routes/knowledge.js +2 -2
- package/dist/web/routes/knowledge.js.map +1 -1
- package/dist/web-static/assets/{index-CXGKv7TK.js → index-CLNW6rr3.js} +1 -1
- package/dist/web-static/index.html +1 -1
- package/package.json +1 -1
|
@@ -16,7 +16,7 @@ Please change the parent <Route path="${e}"> to <Route path="${e===`/`?`*`:`${e}
|
|
|
16
16
|
`);return e===-1?``:t.stack.slice(e+1)})();try{if(!e.stack)e.stack=n;else if(n){let t=n.indexOf(`
|
|
17
17
|
`),r=t===-1?-1:n.indexOf(`
|
|
18
18
|
`,t+1),i=r===-1?``:n.slice(r+1);String(e.stack).endsWith(i)||(e.stack+=`
|
|
19
|
-
`+n)}}catch{}}throw e}}_request(e,t){typeof e==`string`?(t||={},t.url=e):t=e||{},t=Po(this.defaults,t);let{transitional:n,paramsSerializer:r,headers:i}=t;n!==void 0&&cs.assertOptions(n,{silentJSONParsing:ls.transitional(ls.boolean),forcedJSONParsing:ls.transitional(ls.boolean),clarifyTimeoutError:ls.transitional(ls.boolean),legacyInterceptorReqResOrdering:ls.transitional(ls.boolean)},!1),r!=null&&(V.isFunction(r)?t.paramsSerializer={serialize:r}:cs.assertOptions(r,{encode:ls.function,serialize:ls.function},!0)),t.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls===void 0?t.allowAbsoluteUrls=!0:t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls),cs.assertOptions(t,{baseUrl:ls.spelling(`baseURL`),withXsrfToken:ls.spelling(`withXSRFToken`)},!0),t.method=(t.method||this.defaults.method||`get`).toLowerCase();let a=i&&V.merge(i.common,i[t.method]);i&&V.forEach([`delete`,`get`,`head`,`post`,`put`,`patch`,`common`],e=>{delete i[e]}),t.headers=_o.concat(a,i);let o=[],s=!0;this.interceptors.request.forEach(function(e){if(typeof e.runWhen==`function`&&e.runWhen(t)===!1)return;s&&=e.synchronous;let n=t.transitional||Va;n&&n.legacyInterceptorReqResOrdering?o.unshift(e.fulfilled,e.rejected):o.push(e.fulfilled,e.rejected)});let c=[];this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let l,u=0,d;if(!s){let e=[rs.bind(this),void 0];for(e.unshift(...o),e.push(...c),d=e.length,l=Promise.resolve(t);u<d;)l=l.then(e[u++],e[u++]);return l}d=o.length;let f=t;for(;u<d;){let e=o[u++],t=o[u++];try{f=e(f)}catch(e){t.call(this,e);break}}try{l=rs.call(this,f)}catch(e){return Promise.reject(e)}for(u=0,d=c.length;u<d;)l=l.then(c[u++],c[u++]);return l}getUri(e){return e=Po(this.defaults,e),za(Mo(e.baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}};V.forEach([`delete`,`get`,`head`,`options`],function(e){us.prototype[e]=function(t,n){return this.request(Po(n||{},{method:e,url:t,data:(n||{}).data}))}}),V.forEach([`post`,`put`,`patch`],function(e){function t(t){return function(n,r,i){return this.request(Po(i||{},{method:e,headers:t?{"Content-Type":`multipart/form-data`}:{},url:n,data:r}))}}us.prototype[e]=t(),us.prototype[e+`Form`]=t(!0)});var ds=class e{constructor(e){if(typeof e!=`function`)throw TypeError(`executor must be a function.`);let t;this.promise=new Promise(function(e){t=e});let n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t,r=new Promise(e=>{n.subscribe(e),t=e}).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e(function(e,r,i){n.reason||(n.reason=new bo(e,r,i),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let t=this._listeners.indexOf(e);t!==-1&&this._listeners.splice(t,1)}toAbortSignal(){let e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let t;return{token:new e(function(e){t=e}),cancel:t}}};function fs(e){return function(t){return e.apply(null,t)}}function ps(e){return V.isObject(e)&&e.isAxiosError===!0}var ms={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(ms).forEach(([e,t])=>{ms[t]=e});function hs(e){let t=new us(e),n=_i(us.prototype.request,t);return V.extend(n,us.prototype,t,{allOwnKeys:!0}),V.extend(n,t,null,{allOwnKeys:!0}),n.create=function(t){return hs(Po(e,t))},n}var gs=hs(no);gs.Axios=us,gs.CanceledError=bo,gs.CancelToken=ds,gs.isCancel=yo,gs.VERSION=is,gs.toFormData=Pa,gs.AxiosError=Oa,gs.Cancel=gs.CanceledError,gs.all=function(e){return Promise.all(e)},gs.spread=fs,gs.isAxiosError=ps,gs.mergeConfig=Po,gs.AxiosHeaders=_o,gs.formToJSON=e=>$a(V.isHTMLForm(e)?new FormData(e):e),gs.getAdapter=ts.getAdapter,gs.HttpStatusCode=ms,gs.default=gs;var _s=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),vs=e=>e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase(),ys=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()),bs=e=>{let t=ys(e);return t.charAt(0).toUpperCase()+t.slice(1)},xs={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`},Ss=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},Cs=(0,R.createContext)({}),ws=()=>(0,R.useContext)(Cs),Ts=(0,R.forwardRef)(({color:e,size:t,strokeWidth:n,absoluteStrokeWidth:r,className:i=``,children:a,iconNode:o,...s},c)=>{let{size:l=24,strokeWidth:u=2,absoluteStrokeWidth:d=!1,color:f=`currentColor`,className:p=``}=ws()??{},m=r??d?Number(n??u)*24/Number(t??l):n??u;return(0,R.createElement)(`svg`,{ref:c,...xs,width:t??l??xs.width,height:t??l??xs.height,stroke:e??f,strokeWidth:m,className:_s(`lucide`,p,i),...!a&&!Ss(s)&&{"aria-hidden":`true`},...s},[...o.map(([e,t])=>(0,R.createElement)(e,t)),...Array.isArray(a)?a:[a]])}),H=(e,t)=>{let n=(0,R.forwardRef)(({className:n,...r},i)=>(0,R.createElement)(Ts,{ref:i,iconNode:t,className:_s(`lucide-${vs(bs(e))}`,`lucide-${e}`,n),...r}));return n.displayName=bs(e),n},Es=H(`activity`,[[`path`,{d:`M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2`,key:`169zse`}]]),Ds=H(`archive`,[[`rect`,{width:`20`,height:`5`,x:`2`,y:`3`,rx:`1`,key:`1wp1u1`}],[`path`,{d:`M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8`,key:`1s80jp`}],[`path`,{d:`M10 12h4`,key:`a56b0p`}]]),Os=H(`arrow-left`,[[`path`,{d:`m12 19-7-7 7-7`,key:`1l729n`}],[`path`,{d:`M19 12H5`,key:`x3x0zl`}]]),ks=H(`arrow-right`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`m12 5 7 7-7 7`,key:`xquz4c`}]]),As=H(`arrow-up-down`,[[`path`,{d:`m21 16-4 4-4-4`,key:`f6ql7i`}],[`path`,{d:`M17 20V4`,key:`1ejh1v`}],[`path`,{d:`m3 8 4-4 4 4`,key:`11wl7u`}],[`path`,{d:`M7 4v16`,key:`1glfcx`}]]),js=H(`book-open`,[[`path`,{d:`M12 7v14`,key:`1akyts`}],[`path`,{d:`M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z`,key:`ruj8y`}]]),Ms=H(`bot`,[[`path`,{d:`M12 8V4H8`,key:`hb8ula`}],[`rect`,{width:`16`,height:`12`,x:`4`,y:`8`,rx:`2`,key:`enze0r`}],[`path`,{d:`M2 14h2`,key:`vft8re`}],[`path`,{d:`M20 14h2`,key:`4cs60a`}],[`path`,{d:`M15 13v2`,key:`1xurst`}],[`path`,{d:`M9 13v2`,key:`rq6x2g`}]]),Ns=H(`box`,[[`path`,{d:`M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z`,key:`hh9hay`}],[`path`,{d:`m3.3 7 8.7 5 8.7-5`,key:`g66t2b`}],[`path`,{d:`M12 22V12`,key:`d0xqtd`}]]),Ps=H(`brain`,[[`path`,{d:`M12 18V5`,key:`adv99a`}],[`path`,{d:`M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4`,key:`1e3is1`}],[`path`,{d:`M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5`,key:`1gqd8o`}],[`path`,{d:`M17.997 5.125a4 4 0 0 1 2.526 5.77`,key:`iwvgf7`}],[`path`,{d:`M18 18a4 4 0 0 0 2-7.464`,key:`efp6ie`}],[`path`,{d:`M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517`,key:`1gq6am`}],[`path`,{d:`M6 18a4 4 0 0 1-2-7.464`,key:`k1g0md`}],[`path`,{d:`M6.003 5.125a4 4 0 0 0-2.526 5.77`,key:`q97ue3`}]]),Fs=H(`calendar`,[[`path`,{d:`M8 2v4`,key:`1cmpym`}],[`path`,{d:`M16 2v4`,key:`4m81vk`}],[`rect`,{width:`18`,height:`18`,x:`3`,y:`4`,rx:`2`,key:`1hopcy`}],[`path`,{d:`M3 10h18`,key:`8toen8`}]]),Is=H(`chart-column`,[[`path`,{d:`M3 3v16a2 2 0 0 0 2 2h16`,key:`c24i48`}],[`path`,{d:`M18 17V9`,key:`2bz60n`}],[`path`,{d:`M13 17V5`,key:`1frdt8`}],[`path`,{d:`M8 17v-3`,key:`17ska0`}]]),Ls=H(`check-check`,[[`path`,{d:`M18 6 7 17l-5-5`,key:`116fxf`}],[`path`,{d:`m22 10-7.5 7.5L13 16`,key:`ke71qq`}]]),Rs=H(`check`,[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]),zs=H(`chevron-down`,[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]),Bs=H(`chevron-left`,[[`path`,{d:`m15 18-6-6 6-6`,key:`1wnfg3`}]]),Vs=H(`chevron-right`,[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]),Hs=H(`chevron-up`,[[`path`,{d:`m18 15-6-6-6 6`,key:`153udz`}]]),Us=H(`circle-alert`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`12`,x2:`12`,y1:`8`,y2:`12`,key:`1pkeuh`}],[`line`,{x1:`12`,x2:`12.01`,y1:`16`,y2:`16`,key:`4dfq90`}]]),Ws=H(`circle-check-big`,[[`path`,{d:`M21.801 10A10 10 0 1 1 17 3.335`,key:`yps3ct`}],[`path`,{d:`m9 11 3 3L22 4`,key:`1pflzl`}]]),Gs=H(`circle-check`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]),Ks=H(`circle-x`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m15 9-6 6`,key:`1uzhvr`}],[`path`,{d:`m9 9 6 6`,key:`z0biqf`}]]),qs=H(`circle`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}]]),Js=H(`clock`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 6v6l4 2`,key:`mmk7yg`}]]),Ys=H(`code`,[[`path`,{d:`m16 18 6-6-6-6`,key:`eg8j8`}],[`path`,{d:`m8 6-6 6 6 6`,key:`ppft3o`}]]),Xs=H(`command`,[[`path`,{d:`M15 6v12a3 3 0 1 0 3-3H6a3 3 0 1 0 3 3V6a3 3 0 1 0-3 3h12a3 3 0 1 0-3-3`,key:`11bfej`}]]),Zs=H(`copy`,[[`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`,key:`17jyea`}],[`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`,key:`zix9uf`}]]),Qs=H(`cpu`,[[`path`,{d:`M12 20v2`,key:`1lh1kg`}],[`path`,{d:`M12 2v2`,key:`tus03m`}],[`path`,{d:`M17 20v2`,key:`1rnc9c`}],[`path`,{d:`M17 2v2`,key:`11trls`}],[`path`,{d:`M2 12h2`,key:`1t8f8n`}],[`path`,{d:`M2 17h2`,key:`7oei6x`}],[`path`,{d:`M2 7h2`,key:`asdhe0`}],[`path`,{d:`M20 12h2`,key:`1q8mjw`}],[`path`,{d:`M20 17h2`,key:`1fpfkl`}],[`path`,{d:`M20 7h2`,key:`1o8tra`}],[`path`,{d:`M7 20v2`,key:`4gnj0m`}],[`path`,{d:`M7 2v2`,key:`1i4yhu`}],[`rect`,{x:`4`,y:`4`,width:`16`,height:`16`,rx:`2`,key:`1vbyd7`}],[`rect`,{x:`8`,y:`8`,width:`8`,height:`8`,rx:`1`,key:`z9xiuo`}]]),$s=H(`database`,[[`ellipse`,{cx:`12`,cy:`5`,rx:`9`,ry:`3`,key:`msslwz`}],[`path`,{d:`M3 5V19A9 3 0 0 0 21 19V5`,key:`1wlel7`}],[`path`,{d:`M3 12A9 3 0 0 0 21 12`,key:`mv7ke4`}]]),ec=H(`dollar-sign`,[[`line`,{x1:`12`,x2:`12`,y1:`2`,y2:`22`,key:`7eqyqh`}],[`path`,{d:`M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6`,key:`1b0p4s`}]]),tc=H(`download`,[[`path`,{d:`M12 15V3`,key:`m9g1x1`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}],[`path`,{d:`m7 10 5 5 5-5`,key:`brsn70`}]]),nc=H(`external-link`,[[`path`,{d:`M15 3h6v6`,key:`1q9fwt`}],[`path`,{d:`M10 14 21 3`,key:`gplh6r`}],[`path`,{d:`M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6`,key:`a6xqqp`}]]),rc=H(`eye-off`,[[`path`,{d:`M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49`,key:`ct8e1f`}],[`path`,{d:`M14.084 14.158a3 3 0 0 1-4.242-4.242`,key:`151rxh`}],[`path`,{d:`M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143`,key:`13bj9a`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}]]),ic=H(`eye`,[[`path`,{d:`M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0`,key:`1nclc0`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]),ac=H(`file-code`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10 12.5 8 15l2 2.5`,key:`1tg20x`}],[`path`,{d:`m14 12.5 2 2.5-2 2.5`,key:`yinavb`}]]),oc=H(`file-pen`,[[`path`,{d:`M12.659 22H18a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v9.34`,key:`o6klzx`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10.378 12.622a1 1 0 0 1 3 3.003L8.36 20.637a2 2 0 0 1-.854.506l-2.867.837a.5.5 0 0 1-.62-.62l.836-2.869a2 2 0 0 1 .506-.853z`,key:`zhnas1`}]]),sc=H(`file-text`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10 9H8`,key:`b1mrlr`}],[`path`,{d:`M16 13H8`,key:`t4e002`}],[`path`,{d:`M16 17H8`,key:`z1uh3a`}]]),cc=H(`file`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}]]),lc=H(`folder-tree`,[[`path`,{d:`M20 10a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1h-2.5a1 1 0 0 1-.8-.4l-.9-1.2A1 1 0 0 0 15 3h-2a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z`,key:`hod4my`}],[`path`,{d:`M20 21a1 1 0 0 0 1-1v-3a1 1 0 0 0-1-1h-2.9a1 1 0 0 1-.88-.55l-.42-.85a1 1 0 0 0-.92-.6H13a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z`,key:`w4yl2u`}],[`path`,{d:`M3 5a2 2 0 0 0 2 2h3`,key:`f2jnh7`}],[`path`,{d:`M3 3v13a2 2 0 0 0 2 2h3`,key:`k8epm1`}]]),uc=H(`folder`,[[`path`,{d:`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z`,key:`1kt360`}]]),dc=H(`funnel`,[[`path`,{d:`M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z`,key:`sc7q7i`}]]),fc=H(`git-branch`,[[`path`,{d:`M15 6a9 9 0 0 0-9 9V3`,key:`1cii5b`}],[`circle`,{cx:`18`,cy:`6`,r:`3`,key:`1h7g24`}],[`circle`,{cx:`6`,cy:`18`,r:`3`,key:`fqmcym`}]]),pc=H(`hard-drive`,[[`path`,{d:`M10 16h.01`,key:`1bzywj`}],[`path`,{d:`M2.212 11.577a2 2 0 0 0-.212.896V18a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-5.527a2 2 0 0 0-.212-.896L18.55 5.11A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z`,key:`18tbho`}],[`path`,{d:`M21.946 12.013H2.054`,key:`zqlbp7`}],[`path`,{d:`M6 16h.01`,key:`1pmjb7`}]]),mc=H(`image`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,ry:`2`,key:`1m3agn`}],[`circle`,{cx:`9`,cy:`9`,r:`2`,key:`af1f0g`}],[`path`,{d:`m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21`,key:`1xmnt7`}]]),hc=H(`info`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 16v-4`,key:`1dtifu`}],[`path`,{d:`M12 8h.01`,key:`e9boi3`}]]),gc=H(`layout-dashboard`,[[`rect`,{width:`7`,height:`9`,x:`3`,y:`3`,rx:`1`,key:`10lvy0`}],[`rect`,{width:`7`,height:`5`,x:`14`,y:`3`,rx:`1`,key:`16une8`}],[`rect`,{width:`7`,height:`9`,x:`14`,y:`12`,rx:`1`,key:`1hutg5`}],[`rect`,{width:`7`,height:`5`,x:`3`,y:`16`,rx:`1`,key:`ldoo1y`}]]),_c=H(`lightbulb`,[[`path`,{d:`M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5`,key:`1gvzjb`}],[`path`,{d:`M9 18h6`,key:`x1upvd`}],[`path`,{d:`M10 22h4`,key:`ceow96`}]]),vc=H(`link`,[[`path`,{d:`M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71`,key:`1cjeqo`}],[`path`,{d:`M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71`,key:`19qd67`}]]),yc=H(`list`,[[`path`,{d:`M3 5h.01`,key:`18ugdj`}],[`path`,{d:`M3 12h.01`,key:`nlz23k`}],[`path`,{d:`M3 19h.01`,key:`noohij`}],[`path`,{d:`M8 5h13`,key:`1pao27`}],[`path`,{d:`M8 12h13`,key:`1za7za`}],[`path`,{d:`M8 19h13`,key:`m83p4d`}]]),bc=H(`loader-circle`,[[`path`,{d:`M21 12a9 9 0 1 1-6.219-8.56`,key:`13zald`}]]),xc=H(`menu`,[[`path`,{d:`M4 5h16`,key:`1tepv9`}],[`path`,{d:`M4 12h16`,key:`1lakjw`}],[`path`,{d:`M4 19h16`,key:`1djgab`}]]),Sc=H(`message-square`,[[`path`,{d:`M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z`,key:`18887p`}]]),Cc=H(`network`,[[`rect`,{x:`16`,y:`16`,width:`6`,height:`6`,rx:`1`,key:`4q2zg0`}],[`rect`,{x:`2`,y:`16`,width:`6`,height:`6`,rx:`1`,key:`8cvhb9`}],[`rect`,{x:`9`,y:`2`,width:`6`,height:`6`,rx:`1`,key:`1egb70`}],[`path`,{d:`M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3`,key:`1jsf9p`}],[`path`,{d:`M12 12V8`,key:`2874zd`}]]),wc=H(`package`,[[`path`,{d:`M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z`,key:`1a0edw`}],[`path`,{d:`M12 22V12`,key:`d0xqtd`}],[`polyline`,{points:`3.29 7 12 12 20.71 7`,key:`ousv84`}],[`path`,{d:`m7.5 4.27 9 5.15`,key:`1c824w`}]]),Tc=H(`pause`,[[`rect`,{x:`14`,y:`3`,width:`5`,height:`18`,rx:`1`,key:`kaeet6`}],[`rect`,{x:`5`,y:`3`,width:`5`,height:`18`,rx:`1`,key:`1wsw3u`}]]),Ec=H(`pen`,[[`path`,{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`,key:`1a8usu`}]]),Dc=H(`pencil`,[[`path`,{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`,key:`1a8usu`}],[`path`,{d:`m15 5 4 4`,key:`1mk7zo`}]]),Oc=H(`play`,[[`path`,{d:`M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z`,key:`10ikf1`}]]),kc=H(`plus`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]),Ac=H(`power`,[[`path`,{d:`M12 2v10`,key:`mnfbl`}],[`path`,{d:`M18.4 6.6a9 9 0 1 1-12.77.04`,key:`obofu9`}]]),jc=H(`refresh-cw`,[[`path`,{d:`M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8`,key:`v9h5vc`}],[`path`,{d:`M21 3v5h-5`,key:`1q7to0`}],[`path`,{d:`M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16`,key:`3uifl3`}],[`path`,{d:`M8 16H3v5`,key:`1cv678`}]]),Mc=H(`rotate-ccw`,[[`path`,{d:`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`,key:`1357e3`}],[`path`,{d:`M3 3v5h5`,key:`1xhq8a`}]]),Nc=H(`save`,[[`path`,{d:`M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z`,key:`1c8476`}],[`path`,{d:`M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7`,key:`1ydtos`}],[`path`,{d:`M7 3v4a1 1 0 0 0 1 1h7`,key:`t51u73`}]]),Pc=H(`search`,[[`path`,{d:`m21 21-4.34-4.34`,key:`14j7rj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}]]),Fc=H(`settings`,[[`path`,{d:`M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915`,key:`1i5ecw`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]),Ic=H(`shield-check`,[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]),Lc=H(`shield`,[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}]]),Rc=H(`sparkles`,[[`path`,{d:`M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z`,key:`1s2grr`}],[`path`,{d:`M20 2v4`,key:`1rf3ol`}],[`path`,{d:`M22 4h-4`,key:`gwowj6`}],[`circle`,{cx:`4`,cy:`20`,r:`2`,key:`6kqj1y`}]]),zc=H(`square-check-big`,[[`path`,{d:`M21 10.656V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h12.344`,key:`2acyp4`}],[`path`,{d:`m9 11 3 3L22 4`,key:`1pflzl`}]]),Bc=H(`square-pen`,[[`path`,{d:`M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7`,key:`1m0v6g`}],[`path`,{d:`M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z`,key:`ohrbg2`}]]),Vc=H(`square`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}]]),Hc=H(`tag`,[[`path`,{d:`M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z`,key:`vktsd0`}],[`circle`,{cx:`7.5`,cy:`7.5`,r:`.5`,fill:`currentColor`,key:`kqv944`}]]),Uc=H(`terminal`,[[`path`,{d:`M12 19h8`,key:`baeox8`}],[`path`,{d:`m4 17 6-6-6-6`,key:`1yngyt`}]]),Wc=H(`test-tube`,[[`path`,{d:`M14.5 2v17.5c0 1.4-1.1 2.5-2.5 2.5c-1.4 0-2.5-1.1-2.5-2.5V2`,key:`125lnx`}],[`path`,{d:`M8.5 2h7`,key:`csnxdl`}],[`path`,{d:`M14.5 16h-5`,key:`1ox875`}]]),Gc=H(`trash-2`,[[`path`,{d:`M10 11v6`,key:`nco0om`}],[`path`,{d:`M14 11v6`,key:`outv1u`}],[`path`,{d:`M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6`,key:`miytrc`}],[`path`,{d:`M3 6h18`,key:`d0wm0j`}],[`path`,{d:`M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2`,key:`e791ji`}]]),Kc=H(`trending-up`,[[`path`,{d:`M16 7h6v6`,key:`box55l`}],[`path`,{d:`m22 7-8.5 8.5-5-5L2 17`,key:`1t1m79`}]]),qc=H(`triangle-alert`,[[`path`,{d:`m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3`,key:`wmoenq`}],[`path`,{d:`M12 9v4`,key:`juzpu7`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]]),Jc=H(`upload`,[[`path`,{d:`M12 3v12`,key:`1x0j5s`}],[`path`,{d:`m17 8-5-5-5 5`,key:`7q97r8`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}]]),Yc=H(`workflow`,[[`rect`,{width:`8`,height:`8`,x:`3`,y:`3`,rx:`2`,key:`by2w9f`}],[`path`,{d:`M7 11v4a2 2 0 0 0 2 2h4`,key:`xkn7yn`}],[`rect`,{width:`8`,height:`8`,x:`13`,y:`13`,rx:`2`,key:`1cgmvn`}]]),Xc=H(`wrench`,[[`path`,{d:`M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z`,key:`1ngwbx`}]]),Zc=H(`x`,[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]),Qc=H(`zap`,[[`path`,{d:`M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z`,key:`1xq2db`}]]),$c=u(y(),1),el=u(_(),1),tl=(0,R.createContext)({toast:()=>{}}),nl=()=>{};function U(e,t=`error`){nl(e,t)}function rl({children:e}){let[t,n]=(0,R.useState)([]),r={current:0},i=(0,R.useCallback)((e,t=`error`)=>{let i=++r.current;n(n=>[...n,{id:i,type:t,message:e}]),setTimeout(()=>n(e=>e.filter(e=>e.id!==i)),4e3)},[]);(0,R.useEffect)(()=>{nl=i},[i]);let a={success:Ws,error:Ks,warning:qc},o={success:`bg-green-50 border-green-200 text-green-800`,error:`bg-red-50 border-red-200 text-red-800`,warning:`bg-yellow-50 border-yellow-200 text-yellow-800`},s={success:`text-green-500`,error:`text-red-500`,warning:`text-yellow-500`};return(0,z.jsxs)(tl.Provider,{value:{toast:i},children:[e,(0,el.createPortal)((0,z.jsx)(`div`,{className:`fixed bottom-4 right-4 z-[9999] flex flex-col gap-2 max-w-sm`,children:t.map(e=>{let t=a[e.type];return(0,z.jsxs)(`div`,{className:`flex items-start gap-3 px-4 py-3 rounded-lg border shadow-lg text-sm ${o[e.type]}`,children:[(0,z.jsx)(t,{className:`h-4 w-4 mt-0.5 flex-shrink-0 ${s[e.type]}`}),(0,z.jsx)(`span`,{className:`flex-1`,children:e.message}),(0,z.jsx)(`button`,{onClick:()=>n(t=>t.filter(t=>t.id!==e.id)),children:(0,z.jsx)(Zc,{className:`h-3.5 w-3.5 opacity-60 hover:opacity-100`})})]},e.id)})}),document.body)]})}var W=gs.create({baseURL:`/api`,timeout:3e4});W.interceptors.response.use(e=>e,e=>(U(e.response?.data?.error||e.response?.data?.message||e.message||`请求失败`,`error`),Promise.reject(e)));var il=()=>W.get(`/health`),al=()=>W.get(`/config`),ol=e=>W.put(`/config`,e),sl=()=>W.get(`/config/history`),cl=e=>W.get(`/sessions`,{params:e}),ll=e=>W.get(`/sessions/${e}`),ul=e=>W.delete(`/sessions/${e}`),dl=e=>W.delete(`/sessions`,{data:{ids:e}}),fl=e=>W.get(`/events`,{params:e}),pl=e=>W.get(`/events/stats`,{params:{project_path:e}}),ml=e=>W.get(`/pipelines`,{params:e}),hl=e=>W.get(`/pipelines/${e}`),gl=e=>W.get(`/quality/history`,{params:e}),_l=e=>W.get(`/quality/unresolved`,{params:{project_path:e}}),vl=()=>W.get(`/stats/roi`),yl=()=>W.get(`/stats/overview`),bl=(e,t,n,r)=>W.get(`/knowledge/search`,{params:{q:e,project_path:t,node_type:n,limit:r}}),xl=e=>W.get(`/knowledge/overview`,{params:{project_path:e}}),Sl=(e,t)=>W.get(`/knowledge/neighbors`,{params:{node_id:e,project_path:t}}),Cl=(e,t)=>W.get(`/knowledge/graph`,{params:{project_path:e,node_type:t}}),wl=e=>W.post(`/knowledge/nodes`,e),Tl=(e,t)=>W.put(`/knowledge/nodes/${e}`,t),El=e=>W.delete(`/knowledge/nodes/${e}`),Dl=e=>W.post(`/knowledge/edges`,e),Ol=e=>W.post(`/pipelines/${e}/close`),kl=e=>W.post(`/pipelines/${e}/reactivate`),Al=e=>W.post(`/pipelines/batch-close`,{ids:e}),jl=()=>W.post(`/pipelines/close-expired`),Ml=()=>W.get(`/pipelines/active`),Nl=e=>W.post(`/pipelines/${e}/resume`),Pl=e=>W.post(`/pipelines/${e}/advance`),Fl=e=>W.get(`/projects`,{params:e}),Il=e=>W.get(`/projects/${e}`),Ll=e=>W.delete(`/projects/${e}`),Rl=e=>W.post(`/convention/init`,{path:e},{timeout:18e4}),zl=e=>W.get(`/projects/${e}/conventions`),Bl=(e,t)=>W.post(`/projects/${e}/conventions/bind`,{conventionId:t}),Vl=(e,t)=>W.delete(`/projects/${e}/conventions/${encodeURIComponent(t)}`),Hl=e=>W.get(`/projects/${e}/conventions/custom/yaml`),Ul=(e,t)=>W.put(`/projects/${e}/conventions/custom`,{yaml:t}),Wl=e=>W.post(`/projects/${e}/conventions/distill`,{},{timeout:12e4}),Gl=e=>W.get(`/claudemd/${e}`),Kl=(e,t)=>W.put(`/claudemd/${e}`,{content:t}),ql=e=>W.get(`/claudemd/${e}/profile`),Jl=e=>W.get(`/claudemd/${e}/modules`),Yl=e=>W.post(`/claudemd/${e}/distill`,void 0,{timeout:18e4}),Xl=e=>W.post(`/claudemd/${e}/init`,void 0,{timeout:18e4}),Zl=e=>W.post(`/quality/${e}/resolve`),Ql=e=>W.post(`/quality/${e}/dismiss`),$l=e=>W.post(`/quality/batch-dismiss`,{ids:e}),eu=e=>W.post(`/quality/batch-resolve`,{ids:e}),tu=()=>W.post(`/quality/resolve-all`),nu=e=>W.get(`/quality/${e}/context`),ru=()=>W.get(`/daemon/status`),iu=()=>W.post(`/daemon/restart`),au=()=>W.get(`/daemon/diagnose`),ou=()=>W.post(`/daemon/repair`),su=()=>W.post(`/config/backup`),cu=()=>W.get(`/config/backups`),lu=e=>`/api/config/backups/${encodeURIComponent(e)}`,uu=e=>W.post(`/config/restore`,{filename:e}),du=e=>W.post(`/events/purge`,{retentionDays:e}),fu=()=>W.get(`/memory/caches`),pu=()=>W.get(`/memory/process`),mu=e=>W.post(`/memory/caches/${encodeURIComponent(e)}/clear`),hu=()=>W.post(`/memory/caches/clear-all`),gu=()=>W.post(`/memory/gc`),_u=e=>W.get(`/stats/api-usage`,{params:{days:e}}),vu=e=>W.get(`/skills`,{params:e}),yu=()=>W.get(`/skills/status`),bu=e=>W.get(`/skills/${encodeURIComponent(e)}`),xu=(e,t)=>W.put(`/skills/${encodeURIComponent(e)}/content`,{content:t}),Su=(e,t)=>W.post(`/skills/search`,{query:e,...t},{timeout:3e4}),Cu=e=>W.post(`/skills/install`,{url:e},{timeout:6e4}),wu=e=>W.delete(`/skills/${encodeURIComponent(e)}`),Tu=e=>W.post(`/skills/batch-delete`,{names:e}),Eu=()=>W.post(`/skills/evolve`,{},{timeout:12e4}),Du=()=>W.post(`/skills/distill`,{},{timeout:12e4}),Ou=()=>W.post(`/skills/repair`,{},{timeout:6e4}),ku=()=>W.get(`/conventions`),Au=e=>W.get(`/conventions/${encodeURIComponent(e)}`),ju=()=>W.post(`/conventions/sync-official`),Mu=e=>W.post(`/conventions/install`,{url:e},{timeout:3e4}),Nu=e=>W.delete(`/conventions/${encodeURIComponent(e)}`),Pu=()=>W.get(`/conventions/usage-stats`),Fu=e=>W.get(`/conventions/${encodeURIComponent(e)}/evolution-history`),Iu=e=>W.post(`/conventions/batch-evolve`,{conventionIds:e},{timeout:12e4}),Lu=e=>W.get(`/conventions/${encodeURIComponent(e)}/yaml`),Ru=(e,t)=>W.put(`/conventions/${encodeURIComponent(e)}/yaml`,{yaml:t}),zu=e=>W.get(`/node-types`,{params:e?{projectPath:e}:void 0}),Bu=e=>W.get(`/node-types/${encodeURIComponent(e)}`),Vu=e=>W.post(`/node-types`,e),Hu=(e,t)=>W.put(`/node-types/${encodeURIComponent(e)}`,t),Uu=e=>W.delete(`/node-types/${encodeURIComponent(e)}`);function Wu(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Wu(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n);return r}function Gu(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Wu(e))&&(r&&(r+=` `),r+=t);return r}var Ku=(e,t)=>{let n=Array(e.length+t.length);for(let t=0;t<e.length;t++)n[t]=e[t];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},qu=(e,t)=>({classGroupId:e,validator:t}),Ju=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Yu=`-`,Xu=[],Zu=`arbitrary..`,Qu=e=>{let t=td(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith(`[`)&&e.endsWith(`]`))return ed(e);let n=e.split(Yu);return $u(n,+(n[0]===``&&n.length>1),t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],i=n[e];return t?i?Ku(i,t):t:i||Xu}return n[e]||Xu}}},$u=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=$u(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let o=t===0?e.join(Yu):e.slice(t).join(Yu),s=a.length;for(let e=0;e<s;e++){let t=a[e];if(t.validator(o))return t.classGroupId}},ed=e=>e.slice(1,-1).indexOf(`:`)===-1?void 0:(()=>{let t=e.slice(1,-1),n=t.indexOf(`:`),r=t.slice(0,n);return r?Zu+r:void 0})(),td=e=>{let{theme:t,classGroups:n}=e;return nd(n,t)},nd=(e,t)=>{let n=Ju();for(let r in e){let i=e[r];rd(i,n,r,t)}return n},rd=(e,t,n,r)=>{let i=e.length;for(let a=0;a<i;a++){let i=e[a];id(i,t,n,r)}},id=(e,t,n,r)=>{if(typeof e==`string`){ad(e,t,n);return}if(typeof e==`function`){od(e,t,n,r);return}sd(e,t,n,r)},ad=(e,t,n)=>{let r=e===``?t:cd(t,e);r.classGroupId=n},od=(e,t,n,r)=>{if(ld(e)){rd(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(qu(n,e))},sd=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e<a;e++){let[a,o]=i[e];rd(o,cd(t,a),n,r)}},cd=(e,t)=>{let n=e,r=t.split(Yu),i=r.length;for(let e=0;e<i;e++){let t=r[e],i=n.nextPart.get(t);i||(i=Ju(),n.nextPart.set(t,i)),n=i}return n},ld=e=>`isThemeGetter`in e&&e.isThemeGetter===!0,ud=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null),i=(i,a)=>{n[i]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(e){let t=n[e];if(t!==void 0)return t;if((t=r[e])!==void 0)return i(e,t),t},set(e,t){e in n?n[e]=t:i(e,t)}}},dd=`!`,fd=`:`,pd=[],md=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),hd=e=>{let{prefix:t,experimentalParseClassName:n}=e,r=e=>{let t=[],n=0,r=0,i=0,a,o=e.length;for(let s=0;s<o;s++){let o=e[s];if(n===0&&r===0){if(o===fd){t.push(e.slice(i,s)),i=s+1;continue}if(o===`/`){a=s;continue}}o===`[`?n++:o===`]`?n--:o===`(`?r++:o===`)`&&r--}let s=t.length===0?e:e.slice(i),c=s,l=!1;s.endsWith(dd)?(c=s.slice(0,-1),l=!0):s.startsWith(dd)&&(c=s.slice(1),l=!0);let u=a&&a>i?a-i:void 0;return md(t,l,c,u)};if(t){let e=t+fd,n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):md(pd,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},gd=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((e,n)=>{t.set(e,1e6+n)}),e=>{let n=[],r=[];for(let i=0;i<e.length;i++){let a=e[i],o=a[0]===`[`,s=t.has(a);o||s?(r.length>0&&(r.sort(),n.push(...r),r=[]),n.push(a)):r.push(a)}return r.length>0&&(r.sort(),n.push(...r)),n}},_d=e=>({cache:ud(e.cacheSize),parseClassName:hd(e),sortModifiers:gd(e),...Qu(e)}),vd=/\s+/,yd=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a}=t,o=[],s=e.trim().split(vd),c=``;for(let e=s.length-1;e>=0;--e){let t=s[e],{isExternal:l,modifiers:u,hasImportantModifier:d,baseClassName:f,maybePostfixModifierPosition:p}=n(t);if(l){c=t+(c.length>0?` `+c:c);continue}let m=!!p,h=r(m?f.substring(0,p):f);if(!h){if(!m){c=t+(c.length>0?` `+c:c);continue}if(h=r(f),!h){c=t+(c.length>0?` `+c:c);continue}m=!1}let g=u.length===0?``:u.length===1?u[0]:a(u).join(`:`),_=d?g+dd:g,v=_+h;if(o.indexOf(v)>-1)continue;o.push(v);let y=i(h,m);for(let e=0;e<y.length;++e){let t=y[e];o.push(_+t)}c=t+(c.length>0?` `+c:c)}return c},bd=(...e)=>{let t=0,n,r,i=``;for(;t<e.length;)(n=e[t++])&&(r=xd(n))&&(i&&(i+=` `),i+=r);return i},xd=e=>{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r<e.length;r++)e[r]&&(t=xd(e[r]))&&(n&&(n+=` `),n+=t);return n},Sd=(e,...t)=>{let n,r,i,a,o=o=>(n=_d(t.reduce((e,t)=>t(e),e())),r=n.cache.get,i=n.cache.set,a=s,s(o)),s=e=>{let t=r(e);if(t)return t;let a=yd(e,n);return i(e,a),a};return a=o,(...e)=>a(bd(...e))},Cd=[],wd=e=>{let t=t=>t[e]||Cd;return t.isThemeGetter=!0,t},Td=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Ed=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Dd=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Od=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,kd=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Ad=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,jd=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Md=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Nd=e=>Dd.test(e),Pd=e=>!!e&&!Number.isNaN(Number(e)),Fd=e=>!!e&&Number.isInteger(Number(e)),Id=e=>e.endsWith(`%`)&&Pd(e.slice(0,-1)),Ld=e=>Od.test(e),Rd=()=>!0,zd=e=>kd.test(e)&&!Ad.test(e),Bd=()=>!1,Vd=e=>jd.test(e),Hd=e=>Md.test(e),Ud=e=>!G(e)&&!K(e),Wd=e=>of(e,uf,Bd),G=e=>Td.test(e),Gd=e=>of(e,df,zd),Kd=e=>of(e,ff,Pd),qd=e=>of(e,mf,Rd),Jd=e=>of(e,pf,Bd),Yd=e=>of(e,cf,Bd),Xd=e=>of(e,lf,Hd),Zd=e=>of(e,hf,Vd),K=e=>Ed.test(e),Qd=e=>sf(e,df),$d=e=>sf(e,pf),ef=e=>sf(e,cf),tf=e=>sf(e,uf),nf=e=>sf(e,lf),rf=e=>sf(e,hf,!0),af=e=>sf(e,mf,!0),of=(e,t,n)=>{let r=Td.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},sf=(e,t,n=!1)=>{let r=Ed.exec(e);return r?r[1]?t(r[1]):n:!1},cf=e=>e===`position`||e===`percentage`,lf=e=>e===`image`||e===`url`,uf=e=>e===`length`||e===`size`||e===`bg-size`,df=e=>e===`length`,ff=e=>e===`number`,pf=e=>e===`family-name`,mf=e=>e===`number`||e===`weight`,hf=e=>e===`shadow`,gf=Sd(()=>{let e=wd(`color`),t=wd(`font`),n=wd(`text`),r=wd(`font-weight`),i=wd(`tracking`),a=wd(`leading`),o=wd(`breakpoint`),s=wd(`container`),c=wd(`spacing`),l=wd(`radius`),u=wd(`shadow`),d=wd(`inset-shadow`),f=wd(`text-shadow`),p=wd(`drop-shadow`),m=wd(`blur`),h=wd(`perspective`),g=wd(`aspect`),_=wd(`ease`),v=wd(`animate`),y=()=>[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`],b=()=>[`center`,`top`,`bottom`,`left`,`right`,`top-left`,`left-top`,`top-right`,`right-top`,`bottom-right`,`right-bottom`,`bottom-left`,`left-bottom`],x=()=>[...b(),K,G],S=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],C=()=>[`auto`,`contain`,`none`],w=()=>[K,G,c],T=()=>[Nd,`full`,`auto`,...w()],E=()=>[Fd,`none`,`subgrid`,K,G],D=()=>[`auto`,{span:[`full`,Fd,K,G]},Fd,K,G],O=()=>[Fd,`auto`,K,G],k=()=>[`auto`,`min`,`max`,`fr`,K,G],A=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`,`center-safe`,`end-safe`],j=()=>[`start`,`end`,`center`,`stretch`,`center-safe`,`end-safe`],M=()=>[`auto`,...w()],N=()=>[Nd,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...w()],ee=()=>[Nd,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,...w()],te=()=>[Nd,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,...w()],P=()=>[e,K,G],F=()=>[...b(),ef,Yd,{position:[K,G]}],I=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],ne=()=>[`auto`,`cover`,`contain`,tf,Wd,{size:[K,G]}],re=()=>[Id,Qd,Gd],ie=()=>[``,`none`,`full`,l,K,G],L=()=>[``,Pd,Qd,Gd],ae=()=>[`solid`,`dashed`,`dotted`,`double`],oe=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],se=()=>[Pd,Id,ef,Yd],ce=()=>[``,`none`,m,K,G],le=()=>[`none`,Pd,K,G],ue=()=>[`none`,Pd,K,G],de=()=>[Pd,K,G],fe=()=>[Nd,`full`,...w()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[Ld],breakpoint:[Ld],color:[Rd],container:[Ld],"drop-shadow":[Ld],ease:[`in`,`out`,`in-out`],font:[Ud],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[Ld],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[Ld],shadow:[Ld],spacing:[`px`,Pd],text:[Ld],"text-shadow":[Ld],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,Nd,G,K,g]}],container:[`container`],columns:[{columns:[Pd,G,K,s]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"break-inside":[{"break-inside":[`auto`,`avoid`,`avoid-page`,`avoid-column`]}],"box-decoration":[{"box-decoration":[`slice`,`clone`]}],box:[{box:[`border`,`content`]}],display:[`block`,`inline-block`,`inline`,`flex`,`inline-flex`,`table`,`inline-table`,`table-caption`,`table-cell`,`table-column`,`table-column-group`,`table-footer-group`,`table-header-group`,`table-row-group`,`table-row`,`flow-root`,`grid`,`inline-grid`,`contents`,`list-item`,`hidden`],sr:[`sr-only`,`not-sr-only`],float:[{float:[`right`,`left`,`none`,`start`,`end`]}],clear:[{clear:[`left`,`right`,`both`,`none`,`start`,`end`]}],isolation:[`isolate`,`isolation-auto`],"object-fit":[{object:[`contain`,`cover`,`fill`,`none`,`scale-down`]}],"object-position":[{object:x()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:C()}],"overscroll-x":[{"overscroll-x":C()}],"overscroll-y":[{"overscroll-y":C()}],position:[`static`,`fixed`,`absolute`,`relative`,`sticky`],inset:[{inset:T()}],"inset-x":[{"inset-x":T()}],"inset-y":[{"inset-y":T()}],start:[{"inset-s":T(),start:T()}],end:[{"inset-e":T(),end:T()}],"inset-bs":[{"inset-bs":T()}],"inset-be":[{"inset-be":T()}],top:[{top:T()}],right:[{right:T()}],bottom:[{bottom:T()}],left:[{left:T()}],visibility:[`visible`,`invisible`,`collapse`],z:[{z:[Fd,`auto`,K,G]}],basis:[{basis:[Nd,`full`,`auto`,s,...w()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[Pd,Nd,`auto`,`initial`,`none`,G]}],grow:[{grow:[``,Pd,K,G]}],shrink:[{shrink:[``,Pd,K,G]}],order:[{order:[Fd,`first`,`last`,`none`,K,G]}],"grid-cols":[{"grid-cols":E()}],"col-start-end":[{col:D()}],"col-start":[{"col-start":O()}],"col-end":[{"col-end":O()}],"grid-rows":[{"grid-rows":E()}],"row-start-end":[{row:D()}],"row-start":[{"row-start":O()}],"row-end":[{"row-end":O()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":k()}],"auto-rows":[{"auto-rows":k()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:[...A(),`normal`]}],"justify-items":[{"justify-items":[...j(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...j()]}],"align-content":[{content:[`normal`,...A()]}],"align-items":[{items:[...j(),{baseline:[``,`last`]}]}],"align-self":[{self:[`auto`,...j(),{baseline:[``,`last`]}]}],"place-content":[{"place-content":A()}],"place-items":[{"place-items":[...j(),`baseline`]}],"place-self":[{"place-self":[`auto`,...j()]}],p:[{p:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pbs:[{pbs:w()}],pbe:[{pbe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:M()}],mx:[{mx:M()}],my:[{my:M()}],ms:[{ms:M()}],me:[{me:M()}],mbs:[{mbs:M()}],mbe:[{mbe:M()}],mt:[{mt:M()}],mr:[{mr:M()}],mb:[{mb:M()}],ml:[{ml:M()}],"space-x":[{"space-x":w()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":w()}],"space-y-reverse":[`space-y-reverse`],size:[{size:N()}],"inline-size":[{inline:[`auto`,...ee()]}],"min-inline-size":[{"min-inline":[`auto`,...ee()]}],"max-inline-size":[{"max-inline":[`none`,...ee()]}],"block-size":[{block:[`auto`,...te()]}],"min-block-size":[{"min-block":[`auto`,...te()]}],"max-block-size":[{"max-block":[`none`,...te()]}],w:[{w:[s,`screen`,...N()]}],"min-w":[{"min-w":[s,`screen`,`none`,...N()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...N()]}],h:[{h:[`screen`,`lh`,...N()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...N()]}],"max-h":[{"max-h":[`screen`,`lh`,...N()]}],"font-size":[{text:[`base`,n,Qd,Gd]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,af,qd]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,Id,G]}],"font-family":[{font:[$d,Jd,t]}],"font-features":[{"font-features":[G]}],"fvn-normal":[`normal-nums`],"fvn-ordinal":[`ordinal`],"fvn-slashed-zero":[`slashed-zero`],"fvn-figure":[`lining-nums`,`oldstyle-nums`],"fvn-spacing":[`proportional-nums`,`tabular-nums`],"fvn-fraction":[`diagonal-fractions`,`stacked-fractions`],tracking:[{tracking:[i,K,G]}],"line-clamp":[{"line-clamp":[Pd,`none`,K,Kd]}],leading:[{leading:[a,...w()]}],"list-image":[{"list-image":[`none`,K,G]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,K,G]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:P()}],"text-color":[{text:P()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...ae(),`wavy`]}],"text-decoration-thickness":[{decoration:[Pd,`from-font`,`auto`,K,Gd]}],"text-decoration-color":[{decoration:P()}],"underline-offset":[{"underline-offset":[Pd,`auto`,K,G]}],"text-transform":[`uppercase`,`lowercase`,`capitalize`,`normal-case`],"text-overflow":[`truncate`,`text-ellipsis`,`text-clip`],"text-wrap":[{text:[`wrap`,`nowrap`,`balance`,`pretty`]}],indent:[{indent:w()}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,K,G]}],whitespace:[{whitespace:[`normal`,`nowrap`,`pre`,`pre-line`,`pre-wrap`,`break-spaces`]}],break:[{break:[`normal`,`words`,`all`,`keep`]}],wrap:[{wrap:[`break-word`,`anywhere`,`normal`]}],hyphens:[{hyphens:[`none`,`manual`,`auto`]}],content:[{content:[`none`,K,G]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:F()}],"bg-repeat":[{bg:I()}],"bg-size":[{bg:ne()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},Fd,K,G],radial:[``,K,G],conic:[Fd,K,G]},nf,Xd]}],"bg-color":[{bg:P()}],"gradient-from-pos":[{from:re()}],"gradient-via-pos":[{via:re()}],"gradient-to-pos":[{to:re()}],"gradient-from":[{from:P()}],"gradient-via":[{via:P()}],"gradient-to":[{to:P()}],rounded:[{rounded:ie()}],"rounded-s":[{"rounded-s":ie()}],"rounded-e":[{"rounded-e":ie()}],"rounded-t":[{"rounded-t":ie()}],"rounded-r":[{"rounded-r":ie()}],"rounded-b":[{"rounded-b":ie()}],"rounded-l":[{"rounded-l":ie()}],"rounded-ss":[{"rounded-ss":ie()}],"rounded-se":[{"rounded-se":ie()}],"rounded-ee":[{"rounded-ee":ie()}],"rounded-es":[{"rounded-es":ie()}],"rounded-tl":[{"rounded-tl":ie()}],"rounded-tr":[{"rounded-tr":ie()}],"rounded-br":[{"rounded-br":ie()}],"rounded-bl":[{"rounded-bl":ie()}],"border-w":[{border:L()}],"border-w-x":[{"border-x":L()}],"border-w-y":[{"border-y":L()}],"border-w-s":[{"border-s":L()}],"border-w-e":[{"border-e":L()}],"border-w-bs":[{"border-bs":L()}],"border-w-be":[{"border-be":L()}],"border-w-t":[{"border-t":L()}],"border-w-r":[{"border-r":L()}],"border-w-b":[{"border-b":L()}],"border-w-l":[{"border-l":L()}],"divide-x":[{"divide-x":L()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":L()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[...ae(),`hidden`,`none`]}],"divide-style":[{divide:[...ae(),`hidden`,`none`]}],"border-color":[{border:P()}],"border-color-x":[{"border-x":P()}],"border-color-y":[{"border-y":P()}],"border-color-s":[{"border-s":P()}],"border-color-e":[{"border-e":P()}],"border-color-bs":[{"border-bs":P()}],"border-color-be":[{"border-be":P()}],"border-color-t":[{"border-t":P()}],"border-color-r":[{"border-r":P()}],"border-color-b":[{"border-b":P()}],"border-color-l":[{"border-l":P()}],"divide-color":[{divide:P()}],"outline-style":[{outline:[...ae(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[Pd,K,G]}],"outline-w":[{outline:[``,Pd,Qd,Gd]}],"outline-color":[{outline:P()}],shadow:[{shadow:[``,`none`,u,rf,Zd]}],"shadow-color":[{shadow:P()}],"inset-shadow":[{"inset-shadow":[`none`,d,rf,Zd]}],"inset-shadow-color":[{"inset-shadow":P()}],"ring-w":[{ring:L()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:P()}],"ring-offset-w":[{"ring-offset":[Pd,Gd]}],"ring-offset-color":[{"ring-offset":P()}],"inset-ring-w":[{"inset-ring":L()}],"inset-ring-color":[{"inset-ring":P()}],"text-shadow":[{"text-shadow":[`none`,f,rf,Zd]}],"text-shadow-color":[{"text-shadow":P()}],opacity:[{opacity:[Pd,K,G]}],"mix-blend":[{"mix-blend":[...oe(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":oe()}],"mask-clip":[{"mask-clip":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]},`mask-no-clip`],"mask-composite":[{mask:[`add`,`subtract`,`intersect`,`exclude`]}],"mask-image-linear-pos":[{"mask-linear":[Pd]}],"mask-image-linear-from-pos":[{"mask-linear-from":se()}],"mask-image-linear-to-pos":[{"mask-linear-to":se()}],"mask-image-linear-from-color":[{"mask-linear-from":P()}],"mask-image-linear-to-color":[{"mask-linear-to":P()}],"mask-image-t-from-pos":[{"mask-t-from":se()}],"mask-image-t-to-pos":[{"mask-t-to":se()}],"mask-image-t-from-color":[{"mask-t-from":P()}],"mask-image-t-to-color":[{"mask-t-to":P()}],"mask-image-r-from-pos":[{"mask-r-from":se()}],"mask-image-r-to-pos":[{"mask-r-to":se()}],"mask-image-r-from-color":[{"mask-r-from":P()}],"mask-image-r-to-color":[{"mask-r-to":P()}],"mask-image-b-from-pos":[{"mask-b-from":se()}],"mask-image-b-to-pos":[{"mask-b-to":se()}],"mask-image-b-from-color":[{"mask-b-from":P()}],"mask-image-b-to-color":[{"mask-b-to":P()}],"mask-image-l-from-pos":[{"mask-l-from":se()}],"mask-image-l-to-pos":[{"mask-l-to":se()}],"mask-image-l-from-color":[{"mask-l-from":P()}],"mask-image-l-to-color":[{"mask-l-to":P()}],"mask-image-x-from-pos":[{"mask-x-from":se()}],"mask-image-x-to-pos":[{"mask-x-to":se()}],"mask-image-x-from-color":[{"mask-x-from":P()}],"mask-image-x-to-color":[{"mask-x-to":P()}],"mask-image-y-from-pos":[{"mask-y-from":se()}],"mask-image-y-to-pos":[{"mask-y-to":se()}],"mask-image-y-from-color":[{"mask-y-from":P()}],"mask-image-y-to-color":[{"mask-y-to":P()}],"mask-image-radial":[{"mask-radial":[K,G]}],"mask-image-radial-from-pos":[{"mask-radial-from":se()}],"mask-image-radial-to-pos":[{"mask-radial-to":se()}],"mask-image-radial-from-color":[{"mask-radial-from":P()}],"mask-image-radial-to-color":[{"mask-radial-to":P()}],"mask-image-radial-shape":[{"mask-radial":[`circle`,`ellipse`]}],"mask-image-radial-size":[{"mask-radial":[{closest:[`side`,`corner`],farthest:[`side`,`corner`]}]}],"mask-image-radial-pos":[{"mask-radial-at":b()}],"mask-image-conic-pos":[{"mask-conic":[Pd]}],"mask-image-conic-from-pos":[{"mask-conic-from":se()}],"mask-image-conic-to-pos":[{"mask-conic-to":se()}],"mask-image-conic-from-color":[{"mask-conic-from":P()}],"mask-image-conic-to-color":[{"mask-conic-to":P()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:F()}],"mask-repeat":[{mask:I()}],"mask-size":[{mask:ne()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,K,G]}],filter:[{filter:[``,`none`,K,G]}],blur:[{blur:ce()}],brightness:[{brightness:[Pd,K,G]}],contrast:[{contrast:[Pd,K,G]}],"drop-shadow":[{"drop-shadow":[``,`none`,p,rf,Zd]}],"drop-shadow-color":[{"drop-shadow":P()}],grayscale:[{grayscale:[``,Pd,K,G]}],"hue-rotate":[{"hue-rotate":[Pd,K,G]}],invert:[{invert:[``,Pd,K,G]}],saturate:[{saturate:[Pd,K,G]}],sepia:[{sepia:[``,Pd,K,G]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,K,G]}],"backdrop-blur":[{"backdrop-blur":ce()}],"backdrop-brightness":[{"backdrop-brightness":[Pd,K,G]}],"backdrop-contrast":[{"backdrop-contrast":[Pd,K,G]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,Pd,K,G]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Pd,K,G]}],"backdrop-invert":[{"backdrop-invert":[``,Pd,K,G]}],"backdrop-opacity":[{"backdrop-opacity":[Pd,K,G]}],"backdrop-saturate":[{"backdrop-saturate":[Pd,K,G]}],"backdrop-sepia":[{"backdrop-sepia":[``,Pd,K,G]}],"border-collapse":[{border:[`collapse`,`separate`]}],"border-spacing":[{"border-spacing":w()}],"border-spacing-x":[{"border-spacing-x":w()}],"border-spacing-y":[{"border-spacing-y":w()}],"table-layout":[{table:[`auto`,`fixed`]}],caption:[{caption:[`top`,`bottom`]}],transition:[{transition:[``,`all`,`colors`,`opacity`,`shadow`,`transform`,`none`,K,G]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[Pd,`initial`,K,G]}],ease:[{ease:[`linear`,`initial`,_,K,G]}],delay:[{delay:[Pd,K,G]}],animate:[{animate:[`none`,v,K,G]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[h,K,G]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:le()}],"rotate-x":[{"rotate-x":le()}],"rotate-y":[{"rotate-y":le()}],"rotate-z":[{"rotate-z":le()}],scale:[{scale:ue()}],"scale-x":[{"scale-x":ue()}],"scale-y":[{"scale-y":ue()}],"scale-z":[{"scale-z":ue()}],"scale-3d":[`scale-3d`],skew:[{skew:de()}],"skew-x":[{"skew-x":de()}],"skew-y":[{"skew-y":de()}],transform:[{transform:[K,G,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:fe()}],"translate-x":[{"translate-x":fe()}],"translate-y":[{"translate-y":fe()}],"translate-z":[{"translate-z":fe()}],"translate-none":[`translate-none`],accent:[{accent:P()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:P()}],"color-scheme":[{scheme:[`normal`,`dark`,`light`,`light-dark`,`only-dark`,`only-light`]}],cursor:[{cursor:[`auto`,`default`,`pointer`,`wait`,`text`,`move`,`help`,`not-allowed`,`none`,`context-menu`,`progress`,`cell`,`crosshair`,`vertical-text`,`alias`,`copy`,`no-drop`,`grab`,`grabbing`,`all-scroll`,`col-resize`,`row-resize`,`n-resize`,`e-resize`,`s-resize`,`w-resize`,`ne-resize`,`nw-resize`,`se-resize`,`sw-resize`,`ew-resize`,`ns-resize`,`nesw-resize`,`nwse-resize`,`zoom-in`,`zoom-out`,K,G]}],"field-sizing":[{"field-sizing":[`fixed`,`content`]}],"pointer-events":[{"pointer-events":[`auto`,`none`]}],resize:[{resize:[`none`,``,`y`,`x`]}],"scroll-behavior":[{scroll:[`auto`,`smooth`]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mbs":[{"scroll-mbs":w()}],"scroll-mbe":[{"scroll-mbe":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pbs":[{"scroll-pbs":w()}],"scroll-pbe":[{"scroll-pbe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"snap-align":[{snap:[`start`,`end`,`center`,`align-none`]}],"snap-stop":[{snap:[`normal`,`always`]}],"snap-type":[{snap:[`none`,`x`,`y`,`both`]}],"snap-strictness":[{snap:[`mandatory`,`proximity`]}],touch:[{touch:[`auto`,`none`,`manipulation`]}],"touch-x":[{"touch-pan":[`x`,`left`,`right`]}],"touch-y":[{"touch-pan":[`y`,`up`,`down`]}],"touch-pz":[`touch-pinch-zoom`],select:[{select:[`none`,`text`,`all`,`auto`]}],"will-change":[{"will-change":[`auto`,`scroll`,`contents`,`transform`,K,G]}],fill:[{fill:[`none`,...P()]}],"stroke-w":[{stroke:[Pd,Qd,Gd,Kd]}],stroke:[{stroke:[`none`,...P()]}],"forced-color-adjust":[{"forced-color-adjust":[`auto`,`none`]}]},conflictingClassGroups:{overflow:[`overflow-x`,`overflow-y`],overscroll:[`overscroll-x`,`overscroll-y`],inset:[`inset-x`,`inset-y`,`inset-bs`,`inset-be`,`start`,`end`,`top`,`right`,`bottom`,`left`],"inset-x":[`right`,`left`],"inset-y":[`top`,`bottom`],flex:[`basis`,`grow`,`shrink`],gap:[`gap-x`,`gap-y`],p:[`px`,`py`,`ps`,`pe`,`pbs`,`pbe`,`pt`,`pr`,`pb`,`pl`],px:[`pr`,`pl`],py:[`pt`,`pb`],m:[`mx`,`my`,`ms`,`me`,`mbs`,`mbe`,`mt`,`mr`,`mb`,`ml`],mx:[`mr`,`ml`],my:[`mt`,`mb`],size:[`w`,`h`],"font-size":[`leading`],"fvn-normal":[`fvn-ordinal`,`fvn-slashed-zero`,`fvn-figure`,`fvn-spacing`,`fvn-fraction`],"fvn-ordinal":[`fvn-normal`],"fvn-slashed-zero":[`fvn-normal`],"fvn-figure":[`fvn-normal`],"fvn-spacing":[`fvn-normal`],"fvn-fraction":[`fvn-normal`],"line-clamp":[`display`,`overflow`],rounded:[`rounded-s`,`rounded-e`,`rounded-t`,`rounded-r`,`rounded-b`,`rounded-l`,`rounded-ss`,`rounded-se`,`rounded-ee`,`rounded-es`,`rounded-tl`,`rounded-tr`,`rounded-br`,`rounded-bl`],"rounded-s":[`rounded-ss`,`rounded-es`],"rounded-e":[`rounded-se`,`rounded-ee`],"rounded-t":[`rounded-tl`,`rounded-tr`],"rounded-r":[`rounded-tr`,`rounded-br`],"rounded-b":[`rounded-br`,`rounded-bl`],"rounded-l":[`rounded-tl`,`rounded-bl`],"border-spacing":[`border-spacing-x`,`border-spacing-y`],"border-w":[`border-w-x`,`border-w-y`,`border-w-s`,`border-w-e`,`border-w-bs`,`border-w-be`,`border-w-t`,`border-w-r`,`border-w-b`,`border-w-l`],"border-w-x":[`border-w-r`,`border-w-l`],"border-w-y":[`border-w-t`,`border-w-b`],"border-color":[`border-color-x`,`border-color-y`,`border-color-s`,`border-color-e`,`border-color-bs`,`border-color-be`,`border-color-t`,`border-color-r`,`border-color-b`,`border-color-l`],"border-color-x":[`border-color-r`,`border-color-l`],"border-color-y":[`border-color-t`,`border-color-b`],translate:[`translate-x`,`translate-y`,`translate-none`],"translate-none":[`translate`,`translate-x`,`translate-y`,`translate-z`],"scroll-m":[`scroll-mx`,`scroll-my`,`scroll-ms`,`scroll-me`,`scroll-mbs`,`scroll-mbe`,`scroll-mt`,`scroll-mr`,`scroll-mb`,`scroll-ml`],"scroll-mx":[`scroll-mr`,`scroll-ml`],"scroll-my":[`scroll-mt`,`scroll-mb`],"scroll-p":[`scroll-px`,`scroll-py`,`scroll-ps`,`scroll-pe`,`scroll-pbs`,`scroll-pbe`,`scroll-pt`,`scroll-pr`,`scroll-pb`,`scroll-pl`],"scroll-px":[`scroll-pr`,`scroll-pl`],"scroll-py":[`scroll-pt`,`scroll-pb`],touch:[`touch-x`,`touch-y`,`touch-pz`],"touch-x":[`touch`],"touch-y":[`touch`],"touch-pz":[`touch`]},conflictingClassGroupModifiers:{"font-size":[`leading`]},orderSensitiveModifiers:[`*`,`**`,`after`,`backdrop`,`before`,`details-content`,`file`,`first-letter`,`first-line`,`marker`,`placeholder`,`selection`]}});function q(...e){return gf(Gu(e))}function _f(e){let t=Math.floor(e/1e3),n=Math.floor(t/60),r=Math.floor(n/60),i=Math.floor(r/24);return i>0?`${i}天${r%24}小时`:r>0?`${r}小时${n%60}分钟`:n>0?`${n}分钟${t%60}秒`:`${t}秒`}function vf(e){return e>=1e9?`${(e/1e9).toFixed(1)}B`:e>=1e6?`${(e/1e6).toFixed(1)}M`:e>=1e3?`${(e/1e3).toFixed(1)}K`:e.toString()}function yf(e){let t={active:`text-green-600 bg-green-50`,completed:`text-blue-600 bg-blue-50`,failed:`text-red-600 bg-red-50`,interrupted:`text-yellow-600 bg-yellow-50`,pending:`text-gray-600 bg-gray-50`};return t[e]||t.pending}function bf(e){return e?e.endsWith(`Z`)||/[+-]\d{2}:\d{2}$/.test(e)?new Date(e):new Date(e+`Z`):new Date}var xf=[{path:`/dashboard`,label:`仪表盘`,icon:gc},{path:`/projects`,label:`项目管理`,icon:uc},{path:`/sessions`,label:`会话管理`,icon:Es},{path:`/events`,label:`事件流`,icon:Fs},{path:`/pipelines`,label:`流水线`,icon:fc},{path:`/quality`,label:`质量门禁`,icon:Ic},{path:`/knowledge`,label:`知识图谱`,icon:Ps},{path:`/skills`,label:`技能管理`,icon:wc},{path:`/conventions`,label:`规范管理`,icon:js},{path:`/node-types`,label:`节点类型`,icon:Ns},{path:`/analytics`,label:`数据分析`,icon:Is},{path:`/config`,label:`系统配置`,icon:Fc}];function Sf({children:e}){let[t,n]=(0,R.useState)(()=>localStorage.getItem(`sidebar-collapsed`)===`true`),r=jn();(0,R.useEffect)(()=>{localStorage.setItem(`sidebar-collapsed`,String(t))},[t]);let{data:i}=lt({queryKey:[`health`],queryFn:()=>il().then(e=>e.data),refetchInterval:15e3}),a=xf.find(e=>r.pathname.startsWith(e.path));return(0,z.jsxs)(`div`,{className:`flex min-h-screen bg-gray-50`,children:[(0,z.jsxs)(`aside`,{className:q(`fixed top-0 left-0 bottom-0 z-50 flex flex-col transition-all duration-300`,`bg-gradient-to-b from-slate-900 to-slate-800`,t?`w-16`:`w-60`),children:[(0,z.jsxs)(`div`,{className:q(`flex items-center border-b border-white/10 h-16`,t?`justify-center px-2`:`justify-between px-5`),children:[!t&&(0,z.jsxs)(`div`,{className:`flex items-center gap-2.5`,children:[(0,z.jsx)(`div`,{className:`flex items-center justify-center w-8 h-8 rounded-lg bg-gradient-to-br from-blue-500 to-purple-600`,children:(0,z.jsx)(Qc,{className:`h-5 w-5 text-white`})}),(0,z.jsx)(`span`,{className:`text-white font-bold text-lg tracking-tight`,children:`Forge`})]}),(0,z.jsx)(`button`,{onClick:()=>n(!t),className:`p-1.5 rounded-lg text-white/60 hover:text-white hover:bg-white/10 transition-colors`,children:t?(0,z.jsx)(xc,{className:`h-5 w-5`}):(0,z.jsx)(Bs,{className:`h-5 w-5`})})]}),(0,z.jsx)(`nav`,{className:`flex-1 py-4 space-y-1 px-2`,children:xf.map(e=>(0,z.jsxs)(ei,{to:e.path,className:({isActive:e})=>q(`flex items-center gap-3 rounded-lg transition-all duration-200`,t?`justify-center p-3`:`px-3 py-2.5`,e?`bg-blue-600/20 text-blue-400`:`text-white/60 hover:text-white hover:bg-white/5`),children:[(0,z.jsx)(e.icon,{className:`h-5 w-5 flex-shrink-0`}),!t&&(0,z.jsx)(`span`,{className:`text-sm font-medium`,children:e.label})]},e.path))}),(0,z.jsx)(`div`,{className:q(`border-t border-white/10 py-4`,t?`px-2`:`px-5`),children:(0,z.jsxs)(`div`,{className:q(`flex items-center gap-2`,t?`justify-center`:``),children:[(0,z.jsx)(`div`,{className:q(`w-2 h-2 rounded-full`,i?.status===`ok`?`bg-green-400 animate-pulse`:`bg-red-400`)}),!t&&(0,z.jsx)(`span`,{className:`text-xs text-white/40`,children:i?.status===`ok`?`Daemon 运行中`:`连接断开`})]})})]}),(0,z.jsxs)(`main`,{className:q(`flex-1 transition-all duration-300`,t?`ml-16`:`ml-60`),children:[(0,z.jsxs)(`header`,{className:`sticky top-0 z-40 bg-white/80 backdrop-blur-md border-b border-gray-200/50 h-16 flex items-center justify-between px-8`,children:[(0,z.jsx)(`h1`,{className:`text-xl font-semibold text-gray-900`,children:a?.label||`Claude Forge`}),(0,z.jsxs)(`div`,{className:`flex items-center gap-4`,children:[(0,z.jsxs)(`button`,{className:`hidden sm:flex items-center gap-2 px-3 py-1.5 text-sm text-gray-600 hover:text-gray-900 hover:bg-gray-100 rounded-lg transition-colors`,onClick:()=>{let e=new KeyboardEvent(`keydown`,{key:`k`,metaKey:!0});window.dispatchEvent(e)},children:[(0,z.jsx)(Xs,{className:`h-4 w-4`}),(0,z.jsx)(`span`,{children:`命令面板`}),(0,z.jsx)(`kbd`,{className:`px-2 py-0.5 text-xs bg-gray-100 rounded border border-gray-200`,children:`⌘K`})]}),(0,z.jsxs)(`span`,{className:`text-sm text-gray-500`,children:[`v`,`3.6.9`]}),(0,z.jsxs)(`div`,{className:q(`flex items-center gap-2 px-3 py-1.5 rounded-full text-xs font-semibold`,i?.status===`ok`?`bg-green-50 text-green-700 border border-green-200`:`bg-red-50 text-red-700 border border-red-200`),children:[(0,z.jsx)(`div`,{className:q(`w-1.5 h-1.5 rounded-full`,i?.status===`ok`?`bg-green-500`:`bg-red-500`)}),i?.status===`ok`?`在线`:`离线`]})]})]}),(0,z.jsx)(`div`,{className:`p-8 overflow-x-hidden`,children:e})]})]})}var Cf=(0,R.createContext)({});function wf(e){let t=(0,R.useRef)(null);return t.current===null&&(t.current=e()),t.current}var Tf=typeof window<`u`?R.useLayoutEffect:R.useEffect,Ef=(0,R.createContext)(null);function Df(e,t){e.indexOf(t)===-1&&e.push(t)}function Of(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}var kf=(e,t,n)=>n>t?t:n<e?e:n,Af={},jf=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function Mf(e){return typeof e==`object`&&!!e}var Nf=e=>/^0[^.\s]+$/u.test(e);function Pf(e){let t;return()=>(t===void 0&&(t=e()),t)}var Ff=e=>e,If=(e,t)=>n=>t(e(n)),Lf=(...e)=>e.reduce(If),Rf=(e,t,n)=>{let r=t-e;return r===0?1:(n-e)/r},zf=class{constructor(){this.subscriptions=[]}add(e){return Df(this.subscriptions,e),()=>Of(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r)if(r===1)this.subscriptions[0](e,t,n);else for(let i=0;i<r;i++){let r=this.subscriptions[i];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}},Bf=e=>e*1e3,Vf=e=>e/1e3;function Hf(e,t){return t?1e3/t*e:0}var Uf=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Wf=1e-7,Gf=12;function Kf(e,t,n,r,i){let a,o,s=0;do o=t+(n-t)/2,a=Uf(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>Wf&&++s<Gf);return o}function qf(e,t,n,r){if(e===t&&n===r)return Ff;let i=t=>Kf(t,0,1,e,n);return e=>e===0||e===1?e:Uf(i(e),t,r)}var Jf=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Yf=e=>t=>1-e(1-t),Xf=qf(.33,1.53,.69,.99),Zf=Yf(Xf),Qf=Jf(Zf),$f=e=>e>=1?1:(e*=2)<1?.5*Zf(e):.5*(2-2**(-10*(e-1))),ep=e=>1-Math.sin(Math.acos(e)),tp=Yf(ep),np=Jf(ep),rp=qf(.42,0,1,1),ip=qf(0,0,.58,1),ap=qf(.42,0,.58,1),op=e=>Array.isArray(e)&&typeof e[0]!=`number`,sp=e=>Array.isArray(e)&&typeof e[0]==`number`,cp={linear:Ff,easeIn:rp,easeInOut:ap,easeOut:ip,circIn:ep,circInOut:np,circOut:tp,backIn:Zf,backInOut:Qf,backOut:Xf,anticipate:$f},lp=e=>typeof e==`string`,up=e=>{if(sp(e)){e.length;let[t,n,r,i]=e;return qf(t,n,r,i)}else if(lp(e))return cp[e],`${e}`,cp[e];return e},dp=[`setup`,`read`,`resolveKeyframes`,`preUpdate`,`update`,`preRender`,`render`,`postRender`],fp={value:null,addProjectionMetrics:null};function pp(e,t){let n=new Set,r=new Set,i=!1,a=!1,o=new WeakSet,s={delta:0,timestamp:0,isProcessing:!1},c=0;function l(t){o.has(t)&&(u.schedule(t),e()),c++,t(s)}let u={schedule:(e,t=!1,a=!1)=>{let s=a&&i?n:r;return t&&o.add(e),s.add(e),e},cancel:e=>{r.delete(e),o.delete(e)},process:e=>{if(s=e,i){a=!0;return}i=!0;let o=n;n=r,r=o,n.forEach(l),t&&fp.value&&fp.value.frameloop[t].push(c),c=0,n.clear(),i=!1,a&&(a=!1,u.process(e))}};return u}var mp=40;function hp(e,t){let n=!1,r=!0,i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,o=dp.reduce((e,n)=>(e[n]=pp(a,t?n:void 0),e),{}),{setup:s,read:c,resolveKeyframes:l,preUpdate:u,update:d,preRender:f,render:p,postRender:m}=o,h=()=>{let a=Af.useManualTiming,o=a?i.timestamp:performance.now();n=!1,a||(i.delta=r?1e3/60:Math.max(Math.min(o-i.timestamp,mp),1)),i.timestamp=o,i.isProcessing=!0,s.process(i),c.process(i),l.process(i),u.process(i),d.process(i),f.process(i),p.process(i),m.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(h))},g=()=>{n=!0,r=!0,i.isProcessing||e(h)};return{schedule:dp.reduce((e,t)=>{let r=o[t];return e[t]=(e,t=!1,i=!1)=>(n||g(),r.schedule(e,t,i)),e},{}),cancel:e=>{for(let t=0;t<dp.length;t++)o[dp[t]].cancel(e)},state:i,steps:o}}var{schedule:gp,cancel:_p,state:vp,steps:yp}=hp(typeof requestAnimationFrame<`u`?requestAnimationFrame:Ff,!0),bp;function xp(){bp=void 0}var Sp={now:()=>(bp===void 0&&Sp.set(vp.isProcessing||Af.useManualTiming?vp.timestamp:performance.now()),bp),set:e=>{bp=e,queueMicrotask(xp)}},Cp={layout:0,mainThread:0,waapi:0},wp=e=>t=>typeof t==`string`&&t.startsWith(e),Tp=wp(`--`),Ep=wp(`var(--`),Dp=e=>Ep(e)?Op.test(e.split(`/*`)[0].trim()):!1,Op=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function kp(e){return typeof e==`string`?e.split(`/*`)[0].includes(`var(--`):!1}var Ap={test:e=>typeof e==`number`,parse:parseFloat,transform:e=>e},jp={...Ap,transform:e=>kf(0,1,e)},Mp={...Ap,default:1},Np=e=>Math.round(e*1e5)/1e5,Pp=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Fp(e){return e==null}var Ip=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Lp=(e,t)=>n=>!!(typeof n==`string`&&Ip.test(n)&&n.startsWith(e)||t&&!Fp(n)&&Object.prototype.hasOwnProperty.call(n,t)),Rp=(e,t,n)=>r=>{if(typeof r!=`string`)return r;let[i,a,o,s]=r.match(Pp);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s===void 0?1:parseFloat(s)}},zp=e=>kf(0,255,e),Bp={...Ap,transform:e=>Math.round(zp(e))},Vp={test:Lp(`rgb`,`red`),parse:Rp(`red`,`green`,`blue`),transform:({red:e,green:t,blue:n,alpha:r=1})=>`rgba(`+Bp.transform(e)+`, `+Bp.transform(t)+`, `+Bp.transform(n)+`, `+Np(jp.transform(r))+`)`};function Hp(e){let t=``,n=``,r=``,i=``;return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}var Up={test:Lp(`#`),parse:Hp,transform:Vp.transform},Wp=e=>({test:t=>typeof t==`string`&&t.endsWith(e)&&t.split(` `).length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Gp=Wp(`deg`),Kp=Wp(`%`),J=Wp(`px`),qp=Wp(`vh`),Jp=Wp(`vw`),Yp={...Kp,parse:e=>Kp.parse(e)/100,transform:e=>Kp.transform(e*100)},Xp={test:Lp(`hsl`,`hue`),parse:Rp(`hue`,`saturation`,`lightness`),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>`hsla(`+Math.round(e)+`, `+Kp.transform(Np(t))+`, `+Kp.transform(Np(n))+`, `+Np(jp.transform(r))+`)`},Zp={test:e=>Vp.test(e)||Up.test(e)||Xp.test(e),parse:e=>Vp.test(e)?Vp.parse(e):Xp.test(e)?Xp.parse(e):Up.parse(e),transform:e=>typeof e==`string`?e:e.hasOwnProperty(`red`)?Vp.transform(e):Xp.transform(e),getAnimatableNone:e=>{let t=Zp.parse(e);return t.alpha=0,Zp.transform(t)}},Qp=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function eee(e){return isNaN(e)&&typeof e==`string`&&(e.match(Pp)?.length||0)+(e.match(Qp)?.length||0)>0}var $p=`number`,em=`color`,tm=`var`,nm=`var(`,rm="${}",im=/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 am(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],a=0;return{values:n,split:t.replace(im,e=>(Zp.test(e)?(r.color.push(a),i.push(em),n.push(Zp.parse(e))):e.startsWith(nm)?(r.var.push(a),i.push(tm),n.push(e)):(r.number.push(a),i.push($p),n.push(parseFloat(e))),++a,rm)).split(rm),indexes:r,types:i}}function tee(e){return am(e).values}function om({split:e,types:t}){let n=e.length;return r=>{let i=``;for(let a=0;a<n;a++)if(i+=e[a],r[a]!==void 0){let e=t[a];e===$p?i+=Np(r[a]):e===em?i+=Zp.transform(r[a]):i+=r[a]}return i}}function sm(e){return om(am(e))}var cm=e=>typeof e==`number`?0:Zp.test(e)?Zp.getAnimatableNone(e):e,lm=(e,t)=>typeof e==`number`?t?.trim().endsWith(`/`)?e:0:cm(e);function um(e){let t=am(e);return om(t)(t.values.map((e,n)=>lm(e,t.split[n])))}var dm={test:eee,parse:tee,createTransformer:sm,getAnimatableNone:um};function fm(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function pm({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,o=0;if(!t)i=a=o=n;else{let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=fm(s,r,e+1/3),a=fm(s,r,e),o=fm(s,r,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function mm(e,t){return n=>n>0?t:e}var hm=(e,t,n)=>e+(t-e)*n,gm=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},_m=[Up,Vp,Xp],nee=e=>_m.find(t=>t.test(e));function vm(e){let t=nee(e);if(`${e}`,!t)return!1;let n=t.parse(e);return t===Xp&&(n=pm(n)),n}var ym=(e,t)=>{let n=vm(e),r=vm(t);if(!n||!r)return mm(e,t);let i={...n};return e=>(i.red=gm(n.red,r.red,e),i.green=gm(n.green,r.green,e),i.blue=gm(n.blue,r.blue,e),i.alpha=hm(n.alpha,r.alpha,e),Vp.transform(i))},bm=new Set([`none`,`hidden`]);function xm(e,t){return bm.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Sm(e,t){return n=>hm(e,t,n)}function Cm(e){return typeof e==`number`?Sm:typeof e==`string`?Dp(e)?mm:Zp.test(e)?ym:Dm:Array.isArray(e)?wm:typeof e==`object`?Zp.test(e)?ym:Tm:mm}function wm(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>Cm(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function Tm(e,t){let n={...e,...t},r={};for(let i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=Cm(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}function Em(e,t){let n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){let a=t.types[i],o=e.indexes[a][r[a]];n[i]=e.values[o]??0,r[a]++}return n}var Dm=(e,t)=>{let n=dm.createTransformer(t),r=am(e),i=am(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?bm.has(e)&&!i.values.length||bm.has(t)&&!r.values.length?xm(e,t):Lf(wm(Em(r,i),i.values),n):(`${e}${t}`,mm(e,t))};function Om(e,t,n){return typeof e==`number`&&typeof t==`number`&&typeof n==`number`?hm(e,t,n):Cm(e)(e,t)}var km=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>gp.update(t,e),stop:()=>_p(t),now:()=>vp.isProcessing?vp.timestamp:Sp.now()}},Am=(e,t,n=10)=>{let r=``,i=Math.max(Math.round(t/n),2);for(let t=0;t<i;t++)r+=Math.round(e(t/(i-1))*1e4)/1e4+`, `;return`linear(${r.substring(0,r.length-2)})`},jm=2e4;function Mm(e){let t=0,n=e.next(t);for(;!n.done&&t<2e4;)t+=50,n=e.next(t);return t>=2e4?1/0:t}function Nm(e,t=100,n){let r=n({...e,keyframes:[0,t]}),i=Math.min(Mm(r),jm);return{type:`keyframes`,ease:e=>r.next(i*e).value/t,duration:Vf(i)}}var Pm={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 Fm(e,t){return e*Math.sqrt(1-t*t)}var Im=12;function Lm(e,t,n){let r=n;for(let n=1;n<Im;n++)r-=e(r)/t(r);return r}var Rm=.001;function zm({duration:e=Pm.duration,bounce:t=Pm.bounce,velocity:n=Pm.velocity,mass:r=Pm.mass}){let i,a;Pm.maxDuration;let o=1-t;o=kf(Pm.minDamping,Pm.maxDamping,o),e=kf(Pm.minDuration,Pm.maxDuration,Vf(e)),o<1?(i=t=>{let r=t*o,i=r*e,a=r-n,s=Fm(t,o),c=Math.exp(-i);return Rm-a/s*c},a=t=>{let r=t*o*e,a=r*n+n,s=o**2*t**2*e,c=Math.exp(-r),l=Fm(t**2,o);return(-i(t)+Rm>0?-1:1)*((a-s)*c)/l}):(i=t=>{let r=Math.exp(-t*e),i=(t-n)*e+1;return-Rm+r*i},a=t=>Math.exp(-t*e)*((n-t)*(e*e)));let s=5/e,c=Lm(i,a,s);if(e=Bf(e),isNaN(c))return{stiffness:Pm.stiffness,damping:Pm.damping,duration:e};{let t=c**2*r;return{stiffness:t,damping:o*2*Math.sqrt(r*t),duration:e}}}var Bm=[`duration`,`bounce`],Vm=[`stiffness`,`damping`,`mass`];function Hm(e,t){return t.some(t=>e[t]!==void 0)}function Um(e){let t={velocity:Pm.velocity,stiffness:Pm.stiffness,damping:Pm.damping,mass:Pm.mass,isResolvedFromDuration:!1,...e};if(!Hm(e,Vm)&&Hm(e,Bm))if(t.velocity=0,e.visualDuration){let n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*kf(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:Pm.mass,stiffness:i,damping:a}}else{let n=zm({...e,velocity:0});t={...t,...n,mass:Pm.mass},t.isResolvedFromDuration=!0}return t}function Wm(e=Pm.visualDuration,t=Pm.bounce){let n=typeof e==`object`?e:{visualDuration:e,keyframes:[0,1],bounce:t},{restSpeed:r,restDelta:i}=n,a=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],s={done:!1,value:a},{stiffness:c,damping:l,mass:u,duration:d,velocity:f,isResolvedFromDuration:p}=Um({...n,velocity:-Vf(n.velocity||0)}),m=f||0,h=l/(2*Math.sqrt(c*u)),g=o-a,_=Vf(Math.sqrt(c/u)),v=Math.abs(g)<5;r||=v?Pm.restSpeed.granular:Pm.restSpeed.default,i||=v?Pm.restDelta.granular:Pm.restDelta.default;let y,b,x,S,C,w;if(h<1)x=Fm(_,h),S=(m+h*_*g)/x,y=e=>o-Math.exp(-h*_*e)*(S*Math.sin(x*e)+g*Math.cos(x*e)),C=h*_*S+g*x,w=h*_*g-S*x,b=e=>Math.exp(-h*_*e)*(C*Math.sin(x*e)+w*Math.cos(x*e));else if(h===1){y=e=>o-Math.exp(-_*e)*(g+(m+_*g)*e);let e=m+_*g;b=t=>Math.exp(-_*t)*(_*e*t-m)}else{let e=_*Math.sqrt(h*h-1);y=t=>{let n=Math.exp(-h*_*t),r=Math.min(e*t,300);return o-n*((m+h*_*g)*Math.sinh(r)+e*g*Math.cosh(r))/e};let t=(m+h*_*g)/e,n=h*_*t-g*e,r=h*_*g-t*e;b=t=>{let i=Math.exp(-h*_*t),a=Math.min(e*t,300);return i*(n*Math.sinh(a)+r*Math.cosh(a))}}let T={calculatedDuration:p&&d||null,velocity:e=>Bf(b(e)),next:e=>{if(!p&&h<1){let t=Math.exp(-h*_*e),n=Math.sin(x*e),a=Math.cos(x*e),c=o-t*(S*n+g*a),l=Bf(t*(C*n+w*a));return s.done=Math.abs(l)<=r&&Math.abs(o-c)<=i,s.value=s.done?o:c,s}let t=y(e);if(p)s.done=e>=d;else{let n=Bf(b(e));s.done=Math.abs(n)<=r&&Math.abs(o-t)<=i}return s.value=s.done?o:t,s},toString:()=>{let e=Math.min(Mm(T),jm),t=Am(t=>T.next(e*t).value,e,30);return e+`ms `+t},toTransition:()=>{}};return T}Wm.applyToOptions=e=>{let t=Nm(e,100,Wm);return e.ease=t.ease,e.duration=Bf(t.duration),e.type=`keyframes`,e};var ree=5;function Gm(e,t,n){let r=Math.max(t-ree,0);return Hf(n-e(r),t-r)}function Km({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:s,max:c,restDelta:l=.5,restSpeed:u}){let d=e[0],f={done:!1,value:d},p=e=>s!==void 0&&e<s||c!==void 0&&e>c,m=e=>s===void 0?c:c===void 0||Math.abs(s-e)<Math.abs(c-e)?s:c,h=n*t,g=d+h,_=o===void 0?g:o(g);_!==g&&(h=_-d);let v=e=>-h*Math.exp(-e/r),y=e=>_+v(e),b=e=>{let t=v(e),n=y(e);f.done=Math.abs(t)<=l,f.value=f.done?_:n},x,S,C=e=>{p(f.value)&&(x=e,S=Wm({keyframes:[f.value,m(f.value)],velocity:Gm(y,e,f.value),damping:i,stiffness:a,restDelta:l,restSpeed:u}))};return C(0),{calculatedDuration:null,next:e=>{let t=!1;return!S&&x===void 0&&(t=!0,b(e),C(e)),x!==void 0&&e>=x?S.next(e-x):(!t&&b(e),f)}}}function iee(e,t,n){let r=[],i=n||Af.mix||Om,a=e.length-1;for(let n=0;n<a;n++){let a=i(e[n],e[n+1]);t&&(a=Lf(Array.isArray(t)?t[n]||Ff:t,a)),r.push(a)}return r}function aee(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let a=e.length;if(t.length,a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];let o=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=iee(t,r,i),c=s.length,l=n=>{if(o&&n<e[0])return t[0];let r=0;if(c>1)for(;r<e.length-2&&!(n<e[r+1]);r++);let i=Rf(e[r],e[r+1],n);return s[r](i)};return n?t=>l(kf(e[0],e[a-1],t)):l}function oee(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=Rf(0,t,r);e.push(hm(n,1,i))}}function see(e){let t=[0];return oee(t,e.length-1),t}function cee(e,t){return e.map(e=>e*t)}function lee(e,t){return e.map(()=>t||ap).splice(0,e.length-1)}function qm({duration:e=300,keyframes:t,times:n,ease:r=`easeInOut`}){let i=op(r)?r.map(up):up(r),a={done:!1,value:t[0]},o=aee(cee(n&&n.length===t.length?n:see(t),e),t,{ease:Array.isArray(i)?i:lee(t,i)});return{calculatedDuration:e,next:t=>(a.value=o(t),a.done=t>=e,a)}}var uee=e=>e!==null;function Jm(e,{repeat:t,repeatType:n=`loop`},r,i=1){let a=e.filter(uee),o=i<0||t&&n!==`loop`&&t%2==1?0:a.length-1;return!o||r===void 0?a[o]:r}var Ym={decay:Km,inertia:Km,tween:qm,keyframes:qm,spring:Wm};function Xm(e){typeof e.type==`string`&&(e.type=Ym[e.type])}var Zm=class{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}},Qm=e=>e/100,$m=class extends Zm{constructor(e){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=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==Sp.now()&&this.tick(Sp.now()),this.isStopped=!0,this.state!==`idle`&&(this.teardown(),this.options.onStop?.())},Cp.mainThread++,this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){let{options:e}=this;Xm(e);let{type:t=qm,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=e,{keyframes:o}=e,s=t||qm;s!==qm&&typeof o[0]!=`number`&&(this.mixKeyframes=Lf(Qm,Om(o[0],o[1])),o=[0,100]);let c=s({...e,keyframes:o});i===`mirror`&&(this.mirroredGenerator=s({...e,keyframes:[...o].reverse(),velocity:-a})),c.calculatedDuration===null&&(c.calculatedDuration=Mm(c));let{calculatedDuration:l}=c;this.calculatedDuration=l,this.resolvedDuration=l+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=c}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime===null?this.currentTime=t:this.currentTime=this.holdTime}tick(e,t=!1){let{generator:n,totalDuration:r,mixKeyframes:i,mirroredGenerator:a,resolvedDuration:o,calculatedDuration:s}=this;if(this.startTime===null)return n.next(0);let{delay:c=0,keyframes:l,repeat:u,repeatType:d,repeatDelay:f,type:p,onUpdate:m,finalKeyframe:h}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-r/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let g=this.currentTime-c*(this.playbackSpeed>=0?1:-1),_=this.playbackSpeed>=0?g<0:g>r;this.currentTime=Math.max(g,0),this.state===`finished`&&this.holdTime===null&&(this.currentTime=r);let v=this.currentTime,y=n;if(u){let e=Math.min(this.currentTime,r)/o,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),n===1&&t--,t=Math.min(t,u+1),t%2&&(d===`reverse`?(n=1-n,f&&(n-=f/o)):d===`mirror`&&(y=a)),v=kf(0,1,n)*o}let b;_?(this.delayState.value=l[0],b=this.delayState):b=y.next(v),i&&!_&&(b.value=i(b.value));let{done:x}=b;!_&&s!==null&&(x=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let S=this.holdTime===null&&(this.state===`finished`||this.state===`running`&&x);return S&&p!==Km&&(b.value=Jm(l,this.options,h,this.speed)),m&&m(b.value),S&&this.finish(),b}then(e,t){return this.finished.then(e,t)}get duration(){return Vf(this.calculatedDuration)}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+Vf(e)}get time(){return Vf(this.currentTime)}set time(e){e=Bf(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state=`paused`,this.holdTime=e,this.tick(e))}getGeneratorVelocity(){let e=this.currentTime;if(e<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(e);let t=this.generator.next(e).value;return Gm(e=>this.generator.next(e).value,e,t)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;t&&this.driver&&this.updateTime(Sp.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=Vf(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=km,startTime:t}=this.options;this.driver||=e(e=>this.tick(e)),this.options.onPlay?.();let n=this.driver.now();this.state===`finished`?(this.updateFinished(),this.startTime=n):this.holdTime===null?this.startTime||=t??n:this.startTime=n-this.holdTime,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(Sp.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,Cp.mainThread--}stopDriver(){this.driver&&=(this.driver.stop(),void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type=`keyframes`,this.options.ease=`linear`,this.initAnimation()),this.driver?.stop(),e.observe(this)}};function eh(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}var th=e=>e*180/Math.PI,nh=e=>ih(th(Math.atan2(e[1],e[0]))),rh={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:nh,rotateZ:nh,skewX:e=>th(Math.atan(e[1])),skewY:e=>th(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},ih=e=>(e%=360,e<0&&(e+=360),e),ah=nh,oh=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),sh=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),ch={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:oh,scaleY:sh,scale:e=>(oh(e)+sh(e))/2,rotateX:e=>ih(th(Math.atan2(e[6],e[5]))),rotateY:e=>ih(th(Math.atan2(-e[2],e[0]))),rotateZ:ah,rotate:ah,skewX:e=>th(Math.atan(e[4])),skewY:e=>th(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function lh(e){return+!!e.includes(`scale`)}function uh(e,t){if(!e||e===`none`)return lh(t);let n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),r,i;if(n)r=ch,i=n;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=rh,i=t}if(!i)return lh(t);let a=r[t],o=i[1].split(`,`).map(fh);return typeof a==`function`?a(o):o[a]}var dh=(e,t)=>{let{transform:n=`none`}=getComputedStyle(e);return uh(n,t)};function fh(e){return parseFloat(e.trim())}var ph=[`transformPerspective`,`x`,`y`,`z`,`translateX`,`translateY`,`translateZ`,`scale`,`scaleX`,`scaleY`,`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skew`,`skewX`,`skewY`],mh=new Set(ph),hh=e=>e===Ap||e===J,gh=new Set([`x`,`y`,`z`]),_h=ph.filter(e=>!gh.has(e));function vh(e){let t=[];return _h.forEach(n=>{let r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(+!!n.startsWith(`scale`)))}),t}var yh={width:({x:e},{paddingLeft:t=`0`,paddingRight:n=`0`,boxSizing:r})=>{let i=e.max-e.min;return r===`border-box`?i:i-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t=`0`,paddingBottom:n=`0`,boxSizing:r})=>{let i=e.max-e.min;return r===`border-box`?i:i-parseFloat(t)-parseFloat(n)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>uh(t,`x`),y:(e,{transform:t})=>uh(t,`y`)};yh.translateX=yh.x,yh.translateY=yh.y;var bh=new Set,xh=!1,Sh=!1,Ch=!1;function wh(){if(Sh){let e=Array.from(bh).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{let t=vh(e);t.length&&(n.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=n.get(e);t&&t.forEach(([t,n])=>{e.getValue(t)?.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{e.suspendedScrollY!==void 0&&window.scrollTo(0,e.suspendedScrollY)})}Sh=!1,xh=!1,bh.forEach(e=>e.complete(Ch)),bh.clear()}function Th(){bh.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Sh=!0)})}function Eh(){Ch=!0,Th(),wh(),Ch=!1}var Dh=class{constructor(e,t,n,r,i,a=!1){this.state=`pending`,this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=a}scheduleResolve(){this.state=`scheduled`,this.isAsync?(bh.add(this),xh||(xh=!0,gp.read(Th),gp.resolveKeyframes(wh))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(e[0]===null){let i=r?.get(),a=e[e.length-1];if(i!==void 0)e[0]=i;else if(n&&t){let r=n.readValue(t,a);r!=null&&(e[0]=r)}e[0]===void 0&&(e[0]=a),r&&i===void 0&&r.set(e[0])}eh(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state=`complete`,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),bh.delete(this)}cancel(){this.state===`scheduled`&&(bh.delete(this),this.state=`pending`)}resume(){this.state===`pending`&&this.scheduleResolve()}},Oh=e=>e.startsWith(`--`);function kh(e,t,n){Oh(t)?e.style.setProperty(t,n):e.style[t]=n}var Ah={};function jh(e,t){let n=Pf(e);return()=>Ah[t]??n()}var dee=jh(()=>window.ScrollTimeline!==void 0,`scrollTimeline`),Mh=jh(()=>{try{document.createElement(`div`).animate({opacity:0},{easing:`linear(0, 1)`})}catch{return!1}return!0},`linearEasing`),Nh=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Ph={linear:`linear`,ease:`ease`,easeIn:`ease-in`,easeOut:`ease-out`,easeInOut:`ease-in-out`,circIn:Nh([0,.65,.55,1]),circOut:Nh([.55,0,1,.45]),backIn:Nh([.31,.01,.66,-.59]),backOut:Nh([.33,1.53,.69,.99])};function Fh(e,t){if(e)return typeof e==`function`?Mh()?Am(e,t):`ease-out`:sp(e)?Nh(e):Array.isArray(e)?e.map(e=>Fh(e,t)||Ph.easeOut):Ph[e]}function fee(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:o=`loop`,ease:s=`easeOut`,times:c}={},l=void 0){let u={[t]:n};c&&(u.offset=c);let d=Fh(s,i);Array.isArray(d)&&(u.easing=d),fp.value&&Cp.waapi++;let f={delay:r,duration:i,easing:Array.isArray(d)?`linear`:d,fill:`both`,iterations:a+1,direction:o===`reverse`?`alternate`:`normal`};l&&(f.pseudoElement=l);let p=e.animate(u,f);return fp.value&&p.finished.finally(()=>{Cp.waapi--}),p}function Ih(e){return typeof e==`function`&&`applyToOptions`in e}function pee({type:e,...t}){return Ih(e)&&Mh()?e.applyToOptions(t):(t.duration??=300,t.ease??=`easeOut`,t)}var Lh=class extends Zm{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;let{element:t,name:n,keyframes:r,pseudoElement:i,allowFlatten:a=!1,finalKeyframe:o,onComplete:s}=e;this.isPseudoElement=!!i,this.allowFlatten=a,this.options=e,e.type;let c=pee(e);this.animation=fee(t,n,r,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=Jm(r,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(e),kh(t,n,e),this.animation.cancel()}s?.(),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;let{state:e}=this;e===`idle`||e===`finished`||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){let e=this.animation.effect?.getComputedTiming?.().duration||0;return Vf(Number(e))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+Vf(e)}get time(){return Vf(Number(this.animation.currentTime)||0)}set time(e){let t=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=Bf(e),t&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime===null?this.animation.playState:`finished`}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:t,rangeEnd:n,observe:r}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:`linear`}),this.animation.onfinish=null,e&&dee()?(this.animation.timeline=e,t&&(this.animation.rangeStart=t),n&&(this.animation.rangeEnd=n),Ff):r(this)}},Rh={anticipate:$f,backInOut:Qf,circInOut:np};function mee(e){return e in Rh}function hee(e){typeof e.ease==`string`&&mee(e.ease)&&(e.ease=Rh[e.ease])}var zh=10,gee=class extends Lh{constructor(e){hee(e),Xm(e),super(e),e.startTime!==void 0&&e.autoplay!==!1&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:n,onComplete:r,element:i,...a}=this.options;if(!t)return;if(e!==void 0){t.set(e);return}let o=new $m({...a,autoplay:!1}),s=Math.max(zh,Sp.now()-this.startTime),c=kf(0,zh,s-zh),l=o.sample(s).value,{name:u}=this.options;i&&u&&kh(i,u,l),t.setWithVelocity(o.sample(Math.max(0,s-c)).value,l,c),o.stop()}},Bh=(e,t)=>t===`zIndex`?!1:!!(typeof e==`number`||Array.isArray(e)||typeof e==`string`&&(dm.test(e)||e===`0`)&&!e.startsWith(`url(`));function _ee(e){let t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function vee(e,t,n,r){let i=e[0];if(i===null)return!1;if(t===`display`||t===`visibility`)return!0;let a=e[e.length-1],o=Bh(i,t),s=Bh(a,t);return`${t}${i}${a}${o?a:i}`,!o||!s?!1:_ee(e)||(n===`spring`||Ih(n))&&r}function Vh(e){e.duration=0,e.type=`keyframes`}var Hh=new Set([`opacity`,`clipPath`,`filter`,`transform`]),yee=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function bee(e){for(let t=0;t<e.length;t++)if(typeof e[t]==`string`&&yee.test(e[t]))return!0;return!1}var xee=new Set([`color`,`backgroundColor`,`outlineColor`,`fill`,`stroke`,`borderColor`,`borderTopColor`,`borderRightColor`,`borderBottomColor`,`borderLeftColor`]),See=Pf(()=>Object.hasOwnProperty.call(Element.prototype,`animate`));function Cee(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:o,keyframes:s}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:c,transformTemplate:l}=t.owner.getProps();return See()&&n&&(Hh.has(n)||xee.has(n)&&bee(s))&&(n!==`transform`||!l)&&!c&&!r&&i!==`mirror`&&a!==0&&o!==`inertia`}var Uh=40,Wh=class extends Zm{constructor({autoplay:e=!0,delay:t=0,type:n=`keyframes`,repeat:r=0,repeatDelay:i=0,repeatType:a=`loop`,keyframes:o,name:s,motionValue:c,element:l,...u}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=Sp.now();let d={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:i,repeatType:a,name:s,motionValue:c,element:l,...u};this.keyframeResolver=new(l?.KeyframeResolver||Dh)(o,(e,t,n)=>this.onKeyframesResolved(e,t,d,!n),s,c,l),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,r){this.keyframeResolver=void 0;let{name:i,type:a,velocity:o,delay:s,isHandoff:c,onUpdate:l}=n;this.resolvedAt=Sp.now();let u=!0;vee(e,i,a,o)||(u=!1,(Af.instantAnimations||!s)&&l?.(Jm(e,n,t)),e[0]=e[e.length-1],Vh(n),n.repeat=0);let d={startTime:r?this.resolvedAt&&this.resolvedAt-this.createdAt>Uh?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:e},f=u&&!c&&Cee(d),p=d.motionValue?.owner?.current,m;if(f)try{m=new gee({...d,element:p})}catch{m=new $m(d)}else m=new $m(d);m.finished.then(()=>{this.notifyFinished()}).catch(Ff),this.pendingTimeline&&=(this.stopTimeline=m.attachTimeline(this.pendingTimeline),void 0),this._animation=m}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),Eh()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}};function Gh(e,t,n,r=0,i=1){let a=Array.from(e).sort((e,t)=>e.sortNodePosition(t)).indexOf(t),o=e.size,s=(o-1)*r;return typeof n==`function`?n(a,o):i===1?a*r:s-a*r}var Kh=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function qh(e){let t=Kh.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}function Jh(e,t,n=1){`${e}`;let[r,i]=qh(e);if(!r)return;let a=window.getComputedStyle(t).getPropertyValue(r);if(a){let e=a.trim();return jf(e)?parseFloat(e):e}return Dp(i)?Jh(i,t,n+1):i}var Yh={type:`spring`,stiffness:500,damping:25,restSpeed:10},Xh=e=>({type:`spring`,stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Zh={type:`keyframes`,duration:.8},Qh={type:`keyframes`,ease:[.25,.1,.35,1],duration:.3},$h=(e,{keyframes:t})=>t.length>2?Zh:mh.has(e)?e.startsWith(`scale`)?Xh(t[1]):Yh:Qh;function eg(e,t){if(e?.inherit&&t){let{inherit:n,...r}=e;return{...t,...r}}return e}function tg(e,t){let n=e?.[t]??e?.default??e;return n===e?n:eg(n,e)}var ng=new Set([`when`,`delay`,`delayChildren`,`staggerChildren`,`staggerDirection`,`repeat`,`repeatType`,`repeatDelay`,`from`,`elapsed`]);function rg(e){for(let t in e)if(!ng.has(t))return!0;return!1}var ig=(e,t,n,r={},i,a)=>o=>{let s=tg(r,e)||{},c=s.delay||r.delay||0,{elapsed:l=0}=r;l-=Bf(c);let u={keyframes:Array.isArray(n)?n:[null,n],ease:`easeOut`,velocity:t.getVelocity(),...s,delay:-l,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{o(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:a?void 0:i};rg(s)||Object.assign(u,$h(e,u)),u.duration&&=Bf(u.duration),u.repeatDelay&&=Bf(u.repeatDelay),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(Vh(u),u.delay===0&&(d=!0)),(Af.instantAnimations||Af.skipAnimations||i?.shouldSkipAnimations)&&(d=!0,Vh(u),u.delay=0),u.allowFlatten=!s.type&&!s.ease,d&&!a&&t.get()!==void 0){let e=Jm(u.keyframes,s);if(e!==void 0){gp.update(()=>{u.onUpdate(e),u.onComplete()});return}}return s.isSync?new $m(u):new Wh(u)};function ag(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function og(e,t,n,r){if(typeof t==`function`){let[i,a]=ag(r);t=t(n===void 0?e.custom:n,i,a)}if(typeof t==`string`&&(t=e.variants&&e.variants[t]),typeof t==`function`){let[i,a]=ag(r);t=t(n===void 0?e.custom:n,i,a)}return t}function sg(e,t,n){let r=e.getProps();return og(r,t,n===void 0?r.custom:n,e)}var cg=new Set([`width`,`height`,`top`,`left`,`right`,`bottom`,...ph]),lg=30,ug=e=>!isNaN(parseFloat(e)),dg={current:void 0},fg=class{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=Sp.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=Sp.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=ug(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on(`change`,e)}on(e,t){this.events[e]||(this.events[e]=new zf);let n=this.events[e].add(t);return e===`change`?()=>{n(),gp.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||=new Set,this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return dg.current&&dg.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=Sp.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>lg)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,lg);return Hf(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function pg(e,t){return new fg(e,t)}var mg=e=>Array.isArray(e);function hg(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,pg(n))}function gg(e){return mg(e)?e[e.length-1]||0:e}function _g(e,t){let{transitionEnd:n={},transition:r={},...i}=sg(e,t)||{};i={...i,...n};for(let t in i)hg(e,t,gg(i[t]))}var vg=e=>!!(e&&e.getVelocity);function yg(e){return!!(vg(e)&&e.add)}function bg(e,t){let n=e.getValue(`willChange`);if(yg(n))return n.add(t);if(!n&&Af.WillChange){let n=new Af.WillChange(`auto`);e.addValue(`willChange`,n),n.add(t)}}function xg(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}var Sg=`data-`+xg(`framerAppearId`);function Cg(e){return e.props[Sg]}function wg({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Tg(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a,transitionEnd:o,...s}=t,c=e.getDefaultTransition();a=a?eg(a,c):c;let l=a?.reduceMotion;r&&(a=r);let u=[],d=i&&e.animationState&&e.animationState.getState()[i];for(let t in s){let r=e.getValue(t,e.latestValues[t]??null),i=s[t];if(i===void 0||d&&wg(d,t))continue;let o={delay:n,...tg(a||{},t)},c=r.get();if(c!==void 0&&!r.isAnimating()&&!Array.isArray(i)&&i===c&&!o.velocity){gp.update(()=>r.set(i));continue}let f=!1;if(window.MotionHandoffAnimation){let n=Cg(e);if(n){let e=window.MotionHandoffAnimation(n,t,gp);e!==null&&(o.startTime=e,f=!0)}}bg(e,t);let p=l??e.shouldReduceMotion;r.start(ig(t,r,i,p&&cg.has(t)?{type:!1}:o,e,f));let m=r.animation;m&&u.push(m)}if(o){let t=()=>gp.update(()=>{o&&_g(e,o)});u.length?Promise.all(u).then(t):t()}return u}function Eg(e,t,n={}){let r=sg(e,t,n.type===`exit`?e.presenceContext?.custom:void 0),{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);let a=r?()=>Promise.all(Tg(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:a=0,staggerChildren:o,staggerDirection:s}=i;return Dg(e,t,r,a,o,s,n)}:()=>Promise.resolve(),{when:s}=i;if(s){let[e,t]=s===`beforeChildren`?[a,o]:[o,a];return e().then(()=>t())}else return Promise.all([a(),o(n.delay)])}function Dg(e,t,n=0,r=0,i=0,a=1,o){let s=[];for(let c of e.variantChildren)c.notify(`AnimationStart`,t),s.push(Eg(c,t,{...o,delay:n+(typeof r==`function`?0:r)+Gh(e.variantChildren,c,r,i,a)}).then(()=>c.notify(`AnimationComplete`,t)));return Promise.all(s)}function Og(e,t,n={}){e.notify(`AnimationStart`,t);let r;if(Array.isArray(t)){let i=t.map(t=>Eg(e,t,n));r=Promise.all(i)}else if(typeof t==`string`)r=Eg(e,t,n);else{let i=typeof t==`function`?sg(e,t,n.custom):t;r=Promise.all(Tg(e,i,n))}return r.then(()=>{e.notify(`AnimationComplete`,t)})}var kg={test:e=>e===`auto`,parse:e=>e},Ag=e=>t=>t.test(e),jg=[Ap,J,Kp,Gp,Jp,qp,kg],Mg=e=>jg.find(Ag(e));function Ng(e){return typeof e==`number`?e===0:e===null?!0:e===`none`||e===`0`||Nf(e)}var Pg=new Set([`brightness`,`contrast`,`saturate`,`opacity`]);function Fg(e){let[t,n]=e.slice(0,-1).split(`(`);if(t===`drop-shadow`)return e;let[r]=n.match(Pp)||[];if(!r)return e;let i=n.replace(r,``),a=+!!Pg.has(t);return r!==n&&(a*=100),t+`(`+a+i+`)`}var Ig=/\b([a-z-]*)\(.*?\)/gu,Lg={...dm,getAnimatableNone:e=>{let t=e.match(Ig);return t?t.map(Fg).join(` `):e}},Rg={...dm,getAnimatableNone:e=>{let t=dm.parse(e);return dm.createTransformer(e)(t.map(e=>typeof e==`number`?0:typeof e==`object`?{...e,alpha:1}:e))}},zg={...Ap,transform:Math.round},Bg={borderWidth:J,borderTopWidth:J,borderRightWidth:J,borderBottomWidth:J,borderLeftWidth:J,borderRadius:J,borderTopLeftRadius:J,borderTopRightRadius:J,borderBottomRightRadius:J,borderBottomLeftRadius:J,width:J,maxWidth:J,height:J,maxHeight:J,top:J,right:J,bottom:J,left:J,inset:J,insetBlock:J,insetBlockStart:J,insetBlockEnd:J,insetInline:J,insetInlineStart:J,insetInlineEnd:J,padding:J,paddingTop:J,paddingRight:J,paddingBottom:J,paddingLeft:J,paddingBlock:J,paddingBlockStart:J,paddingBlockEnd:J,paddingInline:J,paddingInlineStart:J,paddingInlineEnd:J,margin:J,marginTop:J,marginRight:J,marginBottom:J,marginLeft:J,marginBlock:J,marginBlockStart:J,marginBlockEnd:J,marginInline:J,marginInlineStart:J,marginInlineEnd:J,fontSize:J,backgroundPositionX:J,backgroundPositionY:J,rotate:Gp,rotateX:Gp,rotateY:Gp,rotateZ:Gp,scale:Mp,scaleX:Mp,scaleY:Mp,scaleZ:Mp,skew:Gp,skewX:Gp,skewY:Gp,distance:J,translateX:J,translateY:J,translateZ:J,x:J,y:J,z:J,perspective:J,transformPerspective:J,opacity:jp,originX:Yp,originY:Yp,originZ:J,zIndex:zg,fillOpacity:jp,strokeOpacity:jp,numOctaves:zg},Vg={...Bg,color:Zp,backgroundColor:Zp,outlineColor:Zp,fill:Zp,stroke:Zp,borderColor:Zp,borderTopColor:Zp,borderRightColor:Zp,borderBottomColor:Zp,borderLeftColor:Zp,filter:Lg,WebkitFilter:Lg,mask:Rg,WebkitMask:Rg},Hg=e=>Vg[e],Ug=new Set([Lg,Rg]);function Wg(e,t){let n=Hg(e);return Ug.has(n)||(n=dm),n.getAnimatableNone?n.getAnimatableNone(t):void 0}var Gg=new Set([`auto`,`none`,`0`]);function Kg(e,t,n){let r=0,i;for(;r<e.length&&!i;){let t=e[r];typeof t==`string`&&!Gg.has(t)&&am(t).values.length&&(i=e[r]),r++}if(i&&n)for(let r of t)e[r]=Wg(n,i)}var qg=class extends Dh{constructor(e,t,n,r,i){super(e,t,n,r,i,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if(typeof r==`string`&&(r=r.trim(),Dp(r))){let i=Jh(r,t.current);i!==void 0&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!cg.has(n)||e.length!==2)return;let[r,i]=e,a=Mg(r),o=Mg(i);if(kp(r)!==kp(i)&&yh[n]){this.needsMeasurement=!0;return}if(a!==o)if(hh(a)&&hh(o))for(let t=0;t<e.length;t++){let n=e[t];typeof n==`string`&&(e[t]=parseFloat(n))}else yh[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(e[t]===null||Ng(e[t]))&&n.push(t);n.length&&Kg(e,n,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;n===`height`&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=yh[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let r=t[t.length-1];r!==void 0&&e.getValue(n,r).jump(r,!1)}measureEndState(){let{element:e,name:t,unresolvedKeyframes:n}=this;if(!e||!e.current)return;let r=e.getValue(t);r&&r.jump(this.measuredOrigin,!1);let i=n.length-1,a=n[i];n[i]=yh[t](e.measureViewportBox(),window.getComputedStyle(e.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),this.removedTransforms?.length&&this.removedTransforms.forEach(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}};function Jg(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e==`string`){let r=document;t&&(r=t.current);let i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(e=>e!=null)}var Yg=(e,t)=>t&&typeof e==`number`?t.transform(e):e;function Xg(e){return Mf(e)&&`offsetHeight`in e&&!(`ownerSVGElement`in e)}var{schedule:Zg,cancel:wee}=hp(queueMicrotask,!1),Qg={x:!1,y:!1};function $g(){return Qg.x||Qg.y}function e_(e){return e===`x`||e===`y`?Qg[e]?null:(Qg[e]=!0,()=>{Qg[e]=!1}):Qg.x||Qg.y?null:(Qg.x=Qg.y=!0,()=>{Qg.x=Qg.y=!1})}function t_(e,t){let n=Jg(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function n_(e){return!(e.pointerType===`touch`||$g())}function r_(e,t,n={}){let[r,i,a]=t_(e,n);return r.forEach(e=>{let n=!1,r=!1,a,o=()=>{e.removeEventListener(`pointerleave`,u)},s=e=>{a&&=(a(e),void 0),o()},c=e=>{n=!1,window.removeEventListener(`pointerup`,c),window.removeEventListener(`pointercancel`,c),r&&(r=!1,s(e))},l=()=>{n=!0,window.addEventListener(`pointerup`,c,i),window.addEventListener(`pointercancel`,c,i)},u=e=>{if(e.pointerType!==`touch`){if(n){r=!0;return}s(e)}};e.addEventListener(`pointerenter`,n=>{if(!n_(n))return;r=!1;let o=t(e,n);typeof o==`function`&&(a=o,e.addEventListener(`pointerleave`,u,i))},i),e.addEventListener(`pointerdown`,l,i)}),a}var i_=(e,t)=>t?e===t?!0:i_(e,t.parentElement):!1,a_=e=>e.pointerType===`mouse`?typeof e.button!=`number`||e.button<=0:e.isPrimary!==!1,o_=new Set([`BUTTON`,`INPUT`,`SELECT`,`TEXTAREA`,`A`]);function s_(e){return o_.has(e.tagName)||e.isContentEditable===!0}var Tee=new Set([`INPUT`,`SELECT`,`TEXTAREA`]);function Eee(e){return Tee.has(e.tagName)||e.isContentEditable===!0}var c_=new WeakSet;function l_(e){return t=>{t.key===`Enter`&&e(t)}}function u_(e,t){e.dispatchEvent(new PointerEvent(`pointer`+t,{isPrimary:!0,bubbles:!0}))}var Dee=(e,t)=>{let n=e.currentTarget;if(!n)return;let r=l_(()=>{if(c_.has(n))return;u_(n,`down`);let e=l_(()=>{u_(n,`up`)});n.addEventListener(`keyup`,e,t),n.addEventListener(`blur`,()=>u_(n,`cancel`),t)});n.addEventListener(`keydown`,r,t),n.addEventListener(`blur`,()=>n.removeEventListener(`keydown`,r),t)};function d_(e){return a_(e)&&!$g()}var f_=new WeakSet;function Oee(e,t,n={}){let[r,i,a]=t_(e,n),o=e=>{let r=e.currentTarget;if(!d_(e)||f_.has(e))return;c_.add(r),n.stopPropagation&&f_.add(e);let a=t(r,e),o=(e,t)=>{window.removeEventListener(`pointerup`,s),window.removeEventListener(`pointercancel`,c),c_.has(r)&&c_.delete(r),d_(e)&&typeof a==`function`&&a(e,{success:t})},s=e=>{o(e,r===window||r===document||n.useGlobalTarget||i_(r,e.target))},c=e=>{o(e,!1)};window.addEventListener(`pointerup`,s,i),window.addEventListener(`pointercancel`,c,i)};return r.forEach(e=>{(n.useGlobalTarget?window:e).addEventListener(`pointerdown`,o,i),Xg(e)&&(e.addEventListener(`focus`,e=>Dee(e,i)),!s_(e)&&!e.hasAttribute(`tabindex`)&&(e.tabIndex=0))}),a}function p_(e){return Mf(e)&&`ownerSVGElement`in e}var m_=new WeakMap,h_,g_=(e,t,n)=>(r,i)=>i&&i[0]?i[0][e+`Size`]:p_(r)&&`getBBox`in r?r.getBBox()[t]:r[n],kee=g_(`inline`,`width`,`offsetWidth`),Aee=g_(`block`,`height`,`offsetHeight`);function jee({target:e,borderBoxSize:t}){m_.get(e)?.forEach(n=>{n(e,{get width(){return kee(e,t)},get height(){return Aee(e,t)}})})}function Mee(e){e.forEach(jee)}function Nee(){typeof ResizeObserver>`u`||(h_=new ResizeObserver(Mee))}function Pee(e,t){h_||Nee();let n=Jg(e);return n.forEach(e=>{let n=m_.get(e);n||(n=new Set,m_.set(e,n)),n.add(t),h_?.observe(e)}),()=>{n.forEach(e=>{let n=m_.get(e);n?.delete(t),n?.size||h_?.unobserve(e)})}}var __=new Set,v_;function Fee(){v_=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};__.forEach(t=>t(e))},window.addEventListener(`resize`,v_)}function Iee(e){return __.add(e),v_||Fee(),()=>{__.delete(e),!__.size&&typeof v_==`function`&&(window.removeEventListener(`resize`,v_),v_=void 0)}}function y_(e,t){return typeof e==`function`?Iee(e):Pee(e,t)}function Lee(e){return p_(e)&&e.tagName===`svg`}var Ree=[...jg,Zp,dm],zee=e=>Ree.find(Ag(e)),b_=()=>({translate:0,scale:1,origin:0,originPoint:0}),x_=()=>({x:b_(),y:b_()}),S_=()=>({min:0,max:0}),C_=()=>({x:S_(),y:S_()}),Bee=new WeakMap;function w_(e){return typeof e==`object`&&!!e&&typeof e.start==`function`}function T_(e){return typeof e==`string`||Array.isArray(e)}var E_=[`animate`,`whileInView`,`whileFocus`,`whileHover`,`whileTap`,`whileDrag`,`exit`],D_=[`initial`,...E_];function O_(e){return w_(e.animate)||D_.some(t=>T_(e[t]))}function k_(e){return!!(O_(e)||e.variants)}function Vee(e,t,n){for(let r in t){let i=t[r],a=n[r];if(vg(i))e.addValue(r,i);else if(vg(a))e.addValue(r,pg(i,{owner:e}));else if(a!==i)if(e.hasValue(r)){let t=e.getValue(r);t.liveStyle===!0?t.jump(i):t.hasAnimated||t.set(i)}else{let t=e.getStaticValue(r);e.addValue(r,pg(t===void 0?i:t,{owner:e}))}}for(let r in n)t[r]===void 0&&e.removeValue(r);return t}var A_={current:null},j_={current:!1},Hee=typeof window<`u`;function M_(){if(j_.current=!0,Hee)if(window.matchMedia){let e=window.matchMedia(`(prefers-reduced-motion)`),t=()=>A_.current=e.matches;e.addEventListener(`change`,t),t()}else A_.current=!1}var N_=[`AnimationStart`,`AnimationComplete`,`Update`,`BeforeLayoutMeasure`,`LayoutMeasure`,`LayoutAnimationStart`,`LayoutAnimationComplete`],P_={};function F_(e){P_=e}function I_(){return P_}var L_=class{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,skipAnimations:i,blockInitialAnimation:a,visualState:o},s={}){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=Dh,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=()=>{let e=Sp.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,gp.render(this.render,!1,!0))};let{latestValues:c,renderState:l}=o;this.latestValues=c,this.baseTarget={...c},this.initialValues=t.initial?{...c}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.skipAnimationsConfig=i,this.options=s,this.blockInitialAnimation=!!a,this.isControllingVariants=O_(t),this.isVariantNode=k_(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:u,...d}=this.scrapeMotionValuesFromProps(t,{},this);for(let e in d){let t=d[e];c[e]!==void 0&&vg(t)&&t.set(c[e])}}mount(e){if(this.hasBeenMounted)for(let e in this.initialValues)this.values.get(e)?.jump(this.initialValues[e]),this.latestValues[e]=this.initialValues[e];this.current=e,Bee.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),this.reducedMotionConfig===`never`?this.shouldReduceMotion=!1:this.reducedMotionConfig===`always`?this.shouldReduceMotion=!0:(j_.current||M_(),this.shouldReduceMotion=A_.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(),_p(this.notifyUpdate),_p(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(let e in this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??=new Set,this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),t.accelerate&&Hh.has(e)&&this.current instanceof HTMLElement){let{factory:n,keyframes:r,times:i,ease:a,duration:o}=t.accelerate,s=new Lh({element:this.current,name:e,keyframes:r,times:i,ease:a,duration:Bf(o)}),c=n(s);this.valueSubscriptions.set(e,()=>{c(),s.cancel()});return}let n=mh.has(e);n&&this.onBindTransform&&this.onBindTransform();let r=t.on(`change`,t=>{this.latestValues[e]=t,this.props.onUpdate&&gp.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()}),i;typeof window<`u`&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{r(),i&&i(),t.owner&&t.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e=`animation`;for(e in P_){let t=P_[e];if(!t)continue;let{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):C_()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<N_.length;t++){let n=N_[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let r=e[`on`+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=Vee(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return n===void 0&&t!==void 0&&(n=pg(t===null?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return n!=null&&(typeof n==`string`&&(jf(n)||Nf(n))?n=parseFloat(n):!zee(n)&&dm.test(t)&&(n=Wg(e,t)),this.setBaseTarget(e,vg(n)?n.get():n)),vg(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let{initial:t}=this.props,n;if(typeof t==`string`||typeof t==`object`){let r=og(this.props,t,this.presenceContext?.custom);r&&(n=r[e])}if(t&&n!==void 0)return n;let r=this.getBaseTargetFromProps(this.props,e);return r!==void 0&&!vg(r)?r:this.initialValues[e]!==void 0&&n===void 0?void 0:this.baseTarget[e]}on(e,t){return this.events[e]||(this.events[e]=new zf),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){Zg.render(this.render)}},R_=class extends L_{constructor(){super(...arguments),this.KeyframeResolver=qg}sortInstanceNodePosition(e,t){return e.compareDocumentPosition(t)&2?1:-1}getBaseTargetFromProps(e,t){let n=e.style;return n?n[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;vg(e)&&(this.childSubscription=e.on(`change`,e=>{this.current&&(this.current.textContent=`${e}`)}))}},z_=class{constructor(e){this.isMounted=!1,this.node=e}update(){}};function B_({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function V_({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function H_(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function U_(e){return e===void 0||e===1}function W_({scale:e,scaleX:t,scaleY:n}){return!U_(e)||!U_(t)||!U_(n)}function G_(e){return W_(e)||K_(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function K_(e){return q_(e.x)||q_(e.y)}function q_(e){return e&&e!==`0%`}function J_(e,t,n){return n+t*(e-n)}function Y_(e,t,n,r,i){return i!==void 0&&(e=J_(e,i,r)),J_(e,n,r)+t}function X_(e,t=0,n=1,r,i){e.min=Y_(e.min,t,n,r,i),e.max=Y_(e.max,t,n,r,i)}function Z_(e,{x:t,y:n}){X_(e.x,t.translate,t.scale,t.originPoint),X_(e.y,n.translate,n.scale,n.originPoint)}var Q_=.999999999999,$_=1.0000000000001;function ev(e,t,n,r=!1){let i=n.length;if(!i)return;t.x=t.y=1;let a,o;for(let s=0;s<i;s++){a=n[s],o=a.projectionDelta;let{visualElement:i}=a.options;i&&i.props.style&&i.props.style.display===`contents`||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&(tv(e.x,-a.scroll.offset.x),tv(e.y,-a.scroll.offset.y)),o&&(t.x*=o.x.scale,t.y*=o.y.scale,Z_(e,o)),r&&G_(a.latestValues)&&iv(e,a.latestValues,a.layout?.layoutBox))}t.x<$_&&t.x>Q_&&(t.x=1),t.y<$_&&t.y>Q_&&(t.y=1)}function tv(e,t){e.min+=t,e.max+=t}function nv(e,t,n,r,i=.5){X_(e,t,n,hm(e.min,e.max,i),r)}function rv(e,t){return typeof e==`string`?parseFloat(e)/100*(t.max-t.min):e}function iv(e,t,n){let r=n??e;nv(e.x,rv(t.x,r.x),t.scaleX,t.scale,t.originX),nv(e.y,rv(t.y,r.y),t.scaleY,t.scale,t.originY)}function av(e,t){return B_(H_(e.getBoundingClientRect(),t))}function ov(e,t,n){let r=av(e,n),{scroll:i}=t;return i&&(tv(r.x,i.offset.x),tv(r.y,i.offset.y)),r}var sv={x:`translateX`,y:`translateY`,z:`translateZ`,transformPerspective:`perspective`},cv=ph.length;function lv(e,t,n){let r=``,i=!0;for(let a=0;a<cv;a++){let o=ph[a],s=e[o];if(s===void 0)continue;let c=!0;if(typeof s==`number`)c=s===+!!o.startsWith(`scale`);else{let e=parseFloat(s);c=o.startsWith(`scale`)?e===1:e===0}if(!c||n){let e=Yg(s,Bg[o]);if(!c){i=!1;let t=sv[o]||o;r+=`${t}(${e}) `}n&&(t[o]=e)}}return r=r.trim(),n?r=n(t,i?``:r):i&&(r=`none`),r}function uv(e,t,n){let{style:r,vars:i,transformOrigin:a}=e,o=!1,s=!1;for(let e in t){let n=t[e];if(mh.has(e)){o=!0;continue}else if(Tp(e)){i[e]=n;continue}else{let t=Yg(n,Bg[e]);e.startsWith(`origin`)?(s=!0,a[e]=t):r[e]=t}}if(t.transform||(o||n?r.transform=lv(t,e.transform,n):r.transform&&=`none`),s){let{originX:e=`50%`,originY:t=`50%`,originZ:n=0}=a;r.transformOrigin=`${e} ${t} ${n}`}}function dv(e,{style:t,vars:n},r,i){let a=e.style,o;for(o in t)a[o]=t[o];for(o in i?.applyProjectionStyles(a,r),n)a.setProperty(o,n[o])}function fv(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var pv={correct:(e,t)=>{if(!t.target)return e;if(typeof e==`string`)if(J.test(e))e=parseFloat(e);else return e;return`${fv(e,t.target.x)}% ${fv(e,t.target.y)}%`}},mv={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=dm.parse(e);if(i.length>5)return r;let a=dm.createTransformer(e),o=typeof i[0]==`number`?0:1,s=n.x.scale*t.x,c=n.y.scale*t.y;i[0+o]/=s,i[1+o]/=c;let l=hm(s,c,.5);return typeof i[2+o]==`number`&&(i[2+o]/=l),typeof i[3+o]==`number`&&(i[3+o]/=l),a(i)}},hv={borderRadius:{...pv,applyTo:[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomLeftRadius`,`borderBottomRightRadius`]},borderTopLeftRadius:pv,borderTopRightRadius:pv,borderBottomLeftRadius:pv,borderBottomRightRadius:pv,boxShadow:mv};function gv(e,{layout:t,layoutId:n}){return mh.has(e)||e.startsWith(`origin`)||(t||n!==void 0)&&(!!hv[e]||e===`opacity`)}function _v(e,t,n){let r=e.style,i=t?.style,a={};if(!r)return a;for(let t in r)(vg(r[t])||i&&vg(i[t])||gv(t,e)||n?.getValue(t)?.liveStyle!==void 0)&&(a[t]=r[t]);return a}function vv(e){return window.getComputedStyle(e)}var yv=class extends R_{constructor(){super(...arguments),this.type=`html`,this.renderInstance=dv}readValueFromInstance(e,t){if(mh.has(t))return this.projection?.isProjecting?lh(t):dh(e,t);{let n=vv(e),r=(Tp(t)?n.getPropertyValue(t):n[t])||0;return typeof r==`string`?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return av(e,t)}build(e,t,n){uv(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return _v(e,t,n)}},bv={offset:`stroke-dashoffset`,array:`stroke-dasharray`},xv={offset:`strokeDashoffset`,array:`strokeDasharray`};function Sv(e,t,n=1,r=0,i=!0){e.pathLength=1;let a=i?bv:xv;e[a.offset]=`${-r}`,e[a.array]=`${t} ${n}`}var Cv=[`offsetDistance`,`offsetPath`,`offsetRotate`,`offsetAnchor`];function wv(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},c,l,u){if(uv(e,s,l),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:f}=e;d.transform&&(f.transform=d.transform,delete d.transform),(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??`50% 50%`,delete d.transformOrigin),f.transform&&(f.transformBox=u?.transformBox??`fill-box`,delete d.transformBox);for(let e of Cv)d[e]!==void 0&&(f[e]=d[e],delete d[e]);t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),i!==void 0&&Sv(d,i,a,o,!1)}var Tv=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`]),Ev=e=>typeof e==`string`&&e.toLowerCase()===`svg`;function Dv(e,t,n,r){dv(e,t,void 0,r);for(let n in t.attrs)e.setAttribute(Tv.has(n)?n:xg(n),t.attrs[n])}function Ov(e,t,n){let r=_v(e,t,n);for(let n in e)if(vg(e[n])||vg(t[n])){let t=ph.indexOf(n)===-1?n:`attr`+n.charAt(0).toUpperCase()+n.substring(1);r[t]=e[n]}return r}var kv=class extends R_{constructor(){super(...arguments),this.type=`svg`,this.isSVGTag=!1,this.measureInstanceViewportBox=C_}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(mh.has(t)){let e=Hg(t);return e&&e.default||0}return t=Tv.has(t)?t:xg(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return Ov(e,t,n)}build(e,t,n){wv(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){Dv(e,t,n,r)}mount(e){this.isSVGTag=Ev(e.tagName),super.mount(e)}},Av=D_.length;function jv(e){if(!e)return;if(!e.isControllingVariants){let t=e.parent&&jv(e.parent)||{};return e.props.initial!==void 0&&(t.initial=e.props.initial),t}let t={};for(let n=0;n<Av;n++){let r=D_[n],i=e.props[r];(T_(i)||i===!1)&&(t[r]=i)}return t}function Mv(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}var Nv=[...E_].reverse(),Pv=E_.length;function Fv(e){return t=>Promise.all(t.map(({animation:t,options:n})=>Og(e,t,n)))}function Iv(e){let t=Fv(e),n=zv(),r=!0,i=!1,a=t=>(n,r)=>{let i=sg(e,r,t===`exit`?e.presenceContext?.custom:void 0);if(i){let{transition:e,transitionEnd:t,...r}=i;n={...n,...r,...t}}return n};function o(n){t=n(e)}function s(o){let{props:s}=e,c=jv(e.parent)||{},l=[],u=new Set,d={},f=1/0;for(let t=0;t<Pv;t++){let p=Nv[t],m=n[p],h=s[p]===void 0?c[p]:s[p],g=T_(h),_=p===o?m.isActive:null;_===!1&&(f=t);let v=h===c[p]&&h!==s[p]&&g;if(v&&(r||i)&&e.manuallyAnimateOnMount&&(v=!1),m.protectedKeys={...d},!m.isActive&&_===null||!h&&!m.prevProp||w_(h)||typeof h==`boolean`)continue;if(p===`exit`&&m.isActive&&_!==!0){m.prevResolvedValues&&(d={...d,...m.prevResolvedValues});continue}let y=Lv(m.prevProp,h),b=y||p===o&&m.isActive&&!v&&g||t>f&&g,x=!1,S=Array.isArray(h)?h:[h],C=S.reduce(a(p),{});_===!1&&(C={});let{prevResolvedValues:w={}}=m,T={...w,...C},E=t=>{b=!0,u.has(t)&&(x=!0,u.delete(t)),m.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)};for(let e in T){let t=C[e],n=w[e];if(d.hasOwnProperty(e))continue;let r=!1;r=mg(t)&&mg(n)?!Mv(t,n):t!==n,r?t==null?u.add(e):E(e):t!==void 0&&u.has(e)?E(e):m.protectedKeys[e]=!0}m.prevProp=h,m.prevResolvedValues=C,m.isActive&&(d={...d,...C}),(r||i)&&e.blockInitialAnimation&&(b=!1);let D=v&&y;b&&(!D||x)&&l.push(...S.map(t=>{let n={type:p};if(typeof t==`string`&&(r||i)&&!D&&e.manuallyAnimateOnMount&&e.parent){let{parent:r}=e,i=sg(r,t);if(r.enteringChildren&&i){let{delayChildren:t}=i.transition||{};n.delay=Gh(r.enteringChildren,e,t)}}return{animation:t,options:n}}))}if(u.size){let t={};if(typeof s.initial!=`boolean`){let n=sg(e,Array.isArray(s.initial)?s.initial[0]:s.initial);n&&n.transition&&(t.transition=n.transition)}u.forEach(n=>{let r=e.getBaseTarget(n),i=e.getValue(n);i&&(i.liveStyle=!0),t[n]=r??null}),l.push({animation:t})}let p=!!l.length;return r&&(s.initial===!1||s.initial===s.animate)&&!e.manuallyAnimateOnMount&&(p=!1),r=!1,i=!1,p?t(l):Promise.resolve()}function c(t,r){if(n[t].isActive===r)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,r)),n[t].isActive=r;let i=s(t);for(let e in n)n[e].protectedKeys={};return i}return{animateChanges:s,setActive:c,setAnimateFunction:o,getState:()=>n,reset:()=>{n=zv(),i=!0}}}function Lv(e,t){return typeof t==`string`?t!==e:Array.isArray(t)?!Mv(t,e):!1}function Rv(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function zv(){return{animate:Rv(!0),whileInView:Rv(),whileHover:Rv(),whileTap:Rv(),whileDrag:Rv(),whileFocus:Rv(),exit:Rv()}}function Bv(e,t){e.min=t.min,e.max=t.max}function Vv(e,t){Bv(e.x,t.x),Bv(e.y,t.y)}function Hv(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}var Uv=1e-4,Wv=1-Uv,Gv=1+Uv,Kv=.01,qv=0-Kv,Jv=0+Kv;function Yv(e){return e.max-e.min}function Xv(e,t,n){return Math.abs(e-t)<=n}function Zv(e,t,n,r=.5){e.origin=r,e.originPoint=hm(t.min,t.max,e.origin),e.scale=Yv(n)/Yv(t),e.translate=hm(n.min,n.max,e.origin)-e.originPoint,(e.scale>=Wv&&e.scale<=Gv||isNaN(e.scale))&&(e.scale=1),(e.translate>=qv&&e.translate<=Jv||isNaN(e.translate))&&(e.translate=0)}function Qv(e,t,n,r){Zv(e.x,t.x,n.x,r?r.originX:void 0),Zv(e.y,t.y,n.y,r?r.originY:void 0)}function $v(e,t,n,r=0){e.min=(r?hm(n.min,n.max,r):n.min)+t.min,e.max=e.min+Yv(t)}function ey(e,t,n,r){$v(e.x,t.x,n.x,r?.x),$v(e.y,t.y,n.y,r?.y)}function ty(e,t,n,r=0){let i=r?hm(n.min,n.max,r):n.min;e.min=t.min-i,e.max=e.min+Yv(t)}function ny(e,t,n,r){ty(e.x,t.x,n.x,r?.x),ty(e.y,t.y,n.y,r?.y)}function ry(e,t,n,r,i){return e-=t,e=J_(e,1/n,r),i!==void 0&&(e=J_(e,1/i,r)),e}function iy(e,t=0,n=1,r=.5,i,a=e,o=e){if(Kp.test(t)&&(t=parseFloat(t),t=hm(o.min,o.max,t/100)-o.min),typeof t!=`number`)return;let s=hm(a.min,a.max,r);e===a&&(s-=t),e.min=ry(e.min,t,n,s,i),e.max=ry(e.max,t,n,s,i)}function ay(e,t,[n,r,i],a,o){iy(e,t[n],t[r],t[i],t.scale,a,o)}var oy=[`x`,`scaleX`,`originX`],sy=[`y`,`scaleY`,`originY`];function cy(e,t,n,r){ay(e.x,t,oy,n?n.x:void 0,r?r.x:void 0),ay(e.y,t,sy,n?n.y:void 0,r?r.y:void 0)}function ly(e){return e.translate===0&&e.scale===1}function uy(e){return ly(e.x)&&ly(e.y)}function dy(e,t){return e.min===t.min&&e.max===t.max}function fy(e,t){return dy(e.x,t.x)&&dy(e.y,t.y)}function py(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function my(e,t){return py(e.x,t.x)&&py(e.y,t.y)}function hy(e){return Yv(e.x)/Yv(e.y)}function gy(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function _y(e){return[e(`x`),e(`y`)]}function vy(e,t,n){let r=``,i=e.x.translate/t.x,a=e.y.translate/t.y,o=n?.z||0;if((i||a||o)&&(r=`translate3d(${i}px, ${a}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:e,rotate:t,rotateX:i,rotateY:a,skewX:o,skewY:s}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),i&&(r+=`rotateX(${i}deg) `),a&&(r+=`rotateY(${a}deg) `),o&&(r+=`skewX(${o}deg) `),s&&(r+=`skewY(${s}deg) `)}let s=e.x.scale*t.x,c=e.y.scale*t.y;return(s!==1||c!==1)&&(r+=`scale(${s}, ${c})`),r||`none`}var yy=[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomLeftRadius`,`borderBottomRightRadius`],by=yy.length,xy=e=>typeof e==`string`?parseFloat(e):e,Sy=e=>typeof e==`number`||J.test(e);function Cy(e,t,n,r,i,a){i?(e.opacity=hm(0,n.opacity??1,Ty(r)),e.opacityExit=hm(t.opacity??1,0,Ey(r))):a&&(e.opacity=hm(t.opacity??1,n.opacity??1,r));for(let i=0;i<by;i++){let a=yy[i],o=wy(t,a),s=wy(n,a);o===void 0&&s===void 0||(o||=0,s||=0,o===0||s===0||Sy(o)===Sy(s)?(e[a]=Math.max(hm(xy(o),xy(s),r),0),(Kp.test(s)||Kp.test(o))&&(e[a]+=`%`)):e[a]=s)}(t.rotate||n.rotate)&&(e.rotate=hm(t.rotate||0,n.rotate||0,r))}function wy(e,t){return e[t]===void 0?e.borderRadius:e[t]}var Ty=Dy(0,.5,tp),Ey=Dy(.5,.95,Ff);function Dy(e,t,n){return r=>r<e?0:r>t?1:n(Rf(e,t,r))}function Oy(e,t,n){let r=vg(e)?e:pg(e);return r.start(ig(``,r,t,n)),r.animation}function ky(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}var Ay=(e,t)=>e.depth-t.depth,jy=class{constructor(){this.children=[],this.isDirty=!1}add(e){Df(this.children,e),this.isDirty=!0}remove(e){Of(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Ay),this.isDirty=!1,this.children.forEach(e)}};function My(e,t){let n=Sp.now(),r=({timestamp:i})=>{let a=i-n;a>=t&&(_p(r),e(a-t))};return gp.setup(r,!0),()=>_p(r)}function Ny(e){return vg(e)?e.get():e}var Py=class{constructor(){this.members=[]}add(e){Df(this.members,e);for(let t=this.members.length-1;t>=0;t--){let n=this.members[t];if(n===e||n===this.lead||n===this.prevLead)continue;let r=n.instance;(!r||r.isConnected===!1)&&!n.snapshot&&(Of(this.members,n),n.unmount())}e.scheduleRender()}remove(e){if(Of(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){for(let t=this.members.indexOf(e)-1;t>=0;t--){let e=this.members[t];if(e.isPresent!==!1&&e.instance?.isConnected!==!1)return this.promote(e),!0}return!1}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.updateSnapshot(),e.scheduleRender();let{layoutDependency:r}=n.options,{layoutDependency:i}=e.options;(r===void 0||r!==i)&&(e.resumeFrom=n,t&&(n.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root?.isUpdating&&(e.isLayoutDirty=!0)),e.options.crossfade===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}},Fy={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Iy={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},Ly=[``,`X`,`Y`,`Z`],Ry=1e3,zy=0;function By(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Vy(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let n=Cg(t);if(window.MotionHasOptimisedAnimation(n,`transform`)){let{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,`transform`,gp,!(t||r))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Vy(r)}function Hy({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=t?.()){this.id=zy++,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,fp.value&&(Iy.nodes=Iy.calculatedTargetDeltas=Iy.calculatedProjections=0),this.nodes.forEach(Gy),this.nodes.forEach(Uee),this.nodes.forEach(Wee),this.nodes.forEach(Ky),fp.addProjectionMetrics&&fp.addProjectionMetrics(Iy)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new jy)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new zf),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=p_(t)&&!Lee(t),this.instance=t;let{layoutId:n,layout:r,visualElement:i}=this.options;if(i&&!i.current&&i.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(r||n)&&(this.isLayoutDirty=!0),e){let n,r=0,i=()=>this.root.updateBlockedByResize=!1;gp.read(()=>{r=window.innerWidth}),e(t,()=>{let e=window.innerWidth;e!==r&&(r=e,this.root.updateBlockedByResize=!0,n&&n(),n=My(i,250),Fy.hasAnimatedSinceResize&&(Fy.hasAnimatedSinceResize=!1,this.nodes.forEach($y)))})}n&&this.root.registerSharedNode(n,this),this.options.animate!==!1&&i&&(n||r)&&this.addEventListener(`didUpdate`,({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let a=this.options.transition||i.getDefaultTransition()||Yee,{onLayoutAnimationStart:o,onLayoutAnimationComplete:s}=i.getProps(),c=!this.targetLayout||!my(this.targetLayout,r),l=!t&&n;if(this.options.layoutRoot||this.resumeFrom||l||t&&(c||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...tg(a,`layout`),onPlay:o,onComplete:s};(i.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,l)}else t||$y(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),_p(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(Gee),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Vy(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,(typeof t.latestValues.x==`string`||typeof t.latestValues.y==`string`)&&(t.isLayoutDirty=!0),t.updateScroll(`snapshot`),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:n}=this.options;if(t===void 0&&!n)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,``):void 0,this.updateSnapshot(),e&&this.notifyListeners(`willUpdate`)}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let e=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),e&&this.nodes.forEach(Yy),this.nodes.forEach(Jy);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Xy);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Zy),this.nodes.forEach(Qy),this.nodes.forEach(Uy),this.nodes.forEach(Wy)):this.nodes.forEach(Xy),this.clearAllSnapshots();let e=Sp.now();vp.delta=kf(0,1e3/60,e-vp.timestamp),vp.timestamp=e,vp.isProcessing=!0,yp.update.process(vp),yp.preRender.process(vp),yp.render.process(vp),vp.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Zg.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(qy),this.sharedNodes.forEach(Kee)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,gp.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){gp.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Yv(this.snapshot.measuredBox.x)&&!Yv(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||=C_(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners(`measure`,this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify(`LayoutMeasure`,this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e=`measure`){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){let t=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!i)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!uy(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,``):void 0,a=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||G_(this.latestValues)||a)&&(i(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){let t=this.measurePageBox(),n=this.removeElementScroll(t);return e&&(n=this.removeTransform(n)),Xee(n),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return C_();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(Zee))){let{scroll:e}=this.root;e&&(tv(t.x,e.offset.x),tv(t.y,e.offset.y))}return t}removeElementScroll(e){let t=C_();if(Vv(t,e),this.scroll?.wasRoot)return t;for(let n=0;n<this.path.length;n++){let r=this.path[n],{scroll:i,options:a}=r;r!==this.root&&i&&a.layoutScroll&&(i.wasRoot&&Vv(t,e),tv(t.x,i.offset.x),tv(t.y,i.offset.y))}return t}applyTransform(e,t=!1,n){let r=n||C_();Vv(r,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];!t&&n.options.layoutScroll&&n.scroll&&n!==n.root&&(tv(r.x,-n.scroll.offset.x),tv(r.y,-n.scroll.offset.y)),G_(n.latestValues)&&iv(r,n.latestValues,n.layout?.layoutBox)}return G_(this.latestValues)&&iv(r,this.latestValues,this.layout?.layoutBox),r}removeTransform(e){let t=C_();Vv(t,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!G_(n.latestValues))continue;let r;n.instance&&(W_(n.latestValues)&&n.updateSnapshot(),r=C_(),Vv(r,n.measurePageBox())),cy(t,n.latestValues,n.snapshot?.layoutBox,r)}return G_(this.latestValues)&&cy(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:e.crossfade===void 0?!0:e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==vp.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||=t.isProjectionDirty,this.isTransformDirty||=t.isTransformDirty,this.isSharedProjectionDirty||=t.isSharedProjectionDirty;let n=!!this.resumingFrom||this!==t;if(!(e||n&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:r,layoutId:i}=this.options;if(!this.layout||!(r||i))return;this.resolvedRelativeTargetAt=vp.timestamp;let a=this.getClosestProjectingParent();a&&this.linkedParentVersion!==a.layoutVersion&&!a.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&a&&a.layout?this.createRelativeTarget(a,this.layout.layoutBox,a.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=C_(),this.targetWithTransforms=C_()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),ey(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):Vv(this.target,this.layout.layoutBox),Z_(this.target,this.targetDelta)):Vv(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&a&&!!a.resumingFrom==!!this.resumingFrom&&!a.options.layoutScroll&&a.target&&this.animationProgress!==1?this.createRelativeTarget(a,this.target,a.target):this.relativeParent=this.relativeTarget=void 0),fp.value&&Iy.calculatedTargetDeltas++)}getClosestProjectingParent(){if(!(!this.parent||W_(this.parent.latestValues)||K_(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(e,t,n){this.relativeParent=e,this.linkedParentVersion=e.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=C_(),this.relativeTargetOrigin=C_(),ny(this.relativeTargetOrigin,t,n,this.options.layoutAnchor||void 0),Vv(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(n=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===vp.timestamp&&(n=!1),n)return;let{layout:r,layoutId:i}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||i))return;Vv(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,o=this.treeScale.y;ev(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=C_());let{target:s}=e;if(!s){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Hv(this.prevProjectionDelta.x,this.projectionDelta.x),Hv(this.prevProjectionDelta.y,this.projectionDelta.y)),Qv(this.projectionDelta,this.layoutCorrected,s,this.latestValues),(this.treeScale.x!==a||this.treeScale.y!==o||!gy(this.projectionDelta.x,this.prevProjectionDelta.x)||!gy(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners(`projectionUpdate`,s)),fp.value&&Iy.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=x_(),this.projectionDelta=x_(),this.projectionDeltaWithTransform=x_()}setAnimationOrigin(e,t=!1){let n=this.snapshot,r=n?n.latestValues:{},i={...this.latestValues},a=x_();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let o=C_(),s=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),c=this.getStack(),l=!c||c.members.length<=1,u=!!(s&&!l&&this.options.crossfade===!0&&!this.path.some(Jee));this.animationProgress=0;let d;this.mixTargetDelta=t=>{let n=t/1e3;eb(a.x,e.x,n),eb(a.y,e.y,n),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ny(o,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),qee(this.relativeTarget,this.relativeTargetOrigin,o,n),d&&fy(this.relativeTarget,d)&&(this.isProjectionDirty=!1),d||=C_(),Vv(d,this.relativeTarget)),s&&(this.animationValues=i,Cy(i,r,this.latestValues,n,u,l)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners(`animationStart`),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&=(_p(this.pendingAnimation),void 0),this.pendingAnimation=gp.update(()=>{Fy.hasAnimatedSinceResize=!0,Cp.layout++,this.motionValue||=pg(0),this.motionValue.jump(0,!1),this.currentAnimation=Oy(this.motionValue,[0,1e3],{...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onStop:()=>{Cp.layout--},onComplete:()=>{Cp.layout--,e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners(`animationComplete`)}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Ry),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:n,layout:r,latestValues:i}=e;if(!(!t||!n||!r)){if(this!==e&&this.layout&&r&&ab(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||C_();let t=Yv(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=Yv(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}Vv(t,n),iv(t,i),Qv(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new Py),this.sharedNodes.get(e).add(t);let n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return e?e.lead===this:!0}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return e?e.relegate(this):!1}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;let r={};n.z&&By(`z`,e,r,this.animationValues);for(let t=0;t<Ly.length;t++)By(`rotate${Ly[t]}`,e,r,this.animationValues),By(`skew${Ly[t]}`,e,r,this.animationValues);e.render();for(let t in r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible){e.visibility=`hidden`;return}let n=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,e.visibility=``,e.opacity=``,e.pointerEvents=Ny(t?.pointerEvents)||``,e.transform=n?n(this.latestValues,``):`none`;return}let r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target){this.options.layoutId&&(e.opacity=this.latestValues.opacity===void 0?1:this.latestValues.opacity,e.pointerEvents=Ny(t?.pointerEvents)||``),this.hasProjected&&!G_(this.latestValues)&&(e.transform=n?n({},``):`none`,this.hasProjected=!1);return}e.visibility=``;let i=r.animationValues||r.latestValues;this.applyTransformsToTarget();let a=vy(this.projectionDeltaWithTransform,this.treeScale,i);n&&(a=n(i,a)),e.transform=a;let{x:o,y:s}=this.projectionDelta;e.transformOrigin=`${o.origin*100}% ${s.origin*100}% 0`,r.animationValues?e.opacity=r===this?i.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit:e.opacity=r===this?i.opacity===void 0?``:i.opacity:i.opacityExit===void 0?0:i.opacityExit;for(let t in hv){if(i[t]===void 0)continue;let{correct:n,applyTo:o,isCSSVariable:s}=hv[t],c=a===`none`?i[t]:n(i[t],r);if(o){let t=o.length;for(let n=0;n<t;n++)e[o[n]]=c}else s?this.options.visualElement.renderState.vars[t]=c:e[t]=c}this.options.layoutId&&(e.pointerEvents=r===this?Ny(t?.pointerEvents)||``:`none`)}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(Jy),this.root.sharedNodes.clear()}}}function Uy(e){e.updateLayout()}function Wy(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners(`didUpdate`)){let{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,a=t.source!==e.layout.source;if(i===`size`)_y(e=>{let r=a?t.measuredBox[e]:t.layoutBox[e],i=Yv(r);r.min=n[e].min,r.max=r.min+i});else if(i===`x`||i===`y`){let e=i===`x`?`y`:`x`;Bv(a?t.measuredBox[e]:t.layoutBox[e],n[e])}else ab(i,t.layoutBox,n)&&_y(r=>{let i=a?t.measuredBox[r]:t.layoutBox[r],o=Yv(n[r]);i.max=i.min+o,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+o)});let o=x_();Qv(o,n,t.layoutBox);let s=x_();a?Qv(s,e.applyTransform(r,!0),t.measuredBox):Qv(s,n,t.layoutBox);let c=!uy(o),l=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:i,layout:a}=r;if(i&&a){let o=e.options.layoutAnchor||void 0,s=C_();ny(s,t.layoutBox,i.layoutBox,o);let c=C_();ny(c,n,a.layoutBox,o),my(s,c)||(l=!0),r.options.layoutRoot&&(e.relativeTarget=c,e.relativeTargetOrigin=s,e.relativeParent=r)}}}e.notifyListeners(`didUpdate`,{layout:n,snapshot:t,delta:s,layoutDelta:o,hasLayoutChanged:c,hasRelativeLayoutChanged:l})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function Gy(e){fp.value&&Iy.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty),e.isTransformDirty||=e.parent.isTransformDirty)}function Ky(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function qy(e){e.clearSnapshot()}function Jy(e){e.clearMeasurements()}function Yy(e){e.isLayoutDirty=!0,e.updateLayout()}function Xy(e){e.isLayoutDirty=!1}function Zy(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function Qy(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify(`BeforeLayoutMeasure`),e.resetTransform()}function $y(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Uee(e){e.resolveTargetDelta()}function Wee(e){e.calcProjection()}function Gee(e){e.resetSkewAndRotation()}function Kee(e){e.removeLeadSnapshot()}function eb(e,t,n){e.translate=hm(t.translate,0,n),e.scale=hm(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function tb(e,t,n,r){e.min=hm(t.min,n.min,r),e.max=hm(t.max,n.max,r)}function qee(e,t,n,r){tb(e.x,t.x,n.x,r),tb(e.y,t.y,n.y,r)}function Jee(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var Yee={duration:.45,ease:[.4,0,.1,1]},nb=e=>typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),rb=nb(`applewebkit/`)&&!nb(`chrome/`)?Math.round:Ff;function ib(e){e.min=rb(e.min),e.max=rb(e.max)}function Xee(e){ib(e.x),ib(e.y)}function ab(e,t,n){return e===`position`||e===`preserve-aspect`&&!Xv(hy(t),hy(n),.2)}function Zee(e){return e!==e.root&&e.scroll?.wasRoot}var Qee=Hy({attachResizeListener:(e,t)=>ky(e,`resize`,t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),ob={current:void 0},sb=Hy({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!ob.current){let e=new Qee({});e.mount(window),e.setOptions({layoutScroll:!0}),ob.current=e}return ob.current},resetTransform:(e,t)=>{e.style.transform=t===void 0?`none`:t},checkIsScrollRoot:e=>window.getComputedStyle(e).position===`fixed`}),cb=(0,R.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:`never`});function lb(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function $ee(...e){return t=>{let n=!1,r=e.map(e=>{let r=lb(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():lb(e[t],null)}}}}function ete(...e){return R.useCallback($ee(...e),e)}var tte=class extends R.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(Xg(t)&&e.isPresent&&!this.props.isPresent&&this.props.pop!==!1){let e=t.offsetParent,n=Xg(e)&&e.offsetWidth||0,r=Xg(e)&&e.offsetHeight||0,i=getComputedStyle(t),a=this.props.sizeRef.current;a.height=parseFloat(i.height),a.width=parseFloat(i.width),a.top=t.offsetTop,a.left=t.offsetLeft,a.right=n-a.width-a.left,a.bottom=r-a.height-a.top}return null}componentDidUpdate(){}render(){return this.props.children}};function nte({children:e,isPresent:t,anchorX:n,anchorY:r,root:i,pop:a}){let o=(0,R.useId)(),s=(0,R.useRef)(null),c=(0,R.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:l}=(0,R.useContext)(cb),u=ete(s,e.props?.ref??e?.ref);return(0,R.useInsertionEffect)(()=>{let{width:e,height:u,top:d,left:f,right:p,bottom:m}=c.current;if(t||a===!1||!s.current||!e||!u)return;let h=n===`left`?`left: ${f}`:`right: ${p}`,g=r===`bottom`?`bottom: ${m}`:`top: ${d}`;s.current.dataset.motionPopId=o;let _=document.createElement(`style`);l&&(_.nonce=l);let v=i??document.head;return v.appendChild(_),_.sheet&&_.sheet.insertRule(`
|
|
19
|
+
`+n)}}catch{}}throw e}}_request(e,t){typeof e==`string`?(t||={},t.url=e):t=e||{},t=Po(this.defaults,t);let{transitional:n,paramsSerializer:r,headers:i}=t;n!==void 0&&cs.assertOptions(n,{silentJSONParsing:ls.transitional(ls.boolean),forcedJSONParsing:ls.transitional(ls.boolean),clarifyTimeoutError:ls.transitional(ls.boolean),legacyInterceptorReqResOrdering:ls.transitional(ls.boolean)},!1),r!=null&&(V.isFunction(r)?t.paramsSerializer={serialize:r}:cs.assertOptions(r,{encode:ls.function,serialize:ls.function},!0)),t.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls===void 0?t.allowAbsoluteUrls=!0:t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls),cs.assertOptions(t,{baseUrl:ls.spelling(`baseURL`),withXsrfToken:ls.spelling(`withXSRFToken`)},!0),t.method=(t.method||this.defaults.method||`get`).toLowerCase();let a=i&&V.merge(i.common,i[t.method]);i&&V.forEach([`delete`,`get`,`head`,`post`,`put`,`patch`,`common`],e=>{delete i[e]}),t.headers=_o.concat(a,i);let o=[],s=!0;this.interceptors.request.forEach(function(e){if(typeof e.runWhen==`function`&&e.runWhen(t)===!1)return;s&&=e.synchronous;let n=t.transitional||Va;n&&n.legacyInterceptorReqResOrdering?o.unshift(e.fulfilled,e.rejected):o.push(e.fulfilled,e.rejected)});let c=[];this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let l,u=0,d;if(!s){let e=[rs.bind(this),void 0];for(e.unshift(...o),e.push(...c),d=e.length,l=Promise.resolve(t);u<d;)l=l.then(e[u++],e[u++]);return l}d=o.length;let f=t;for(;u<d;){let e=o[u++],t=o[u++];try{f=e(f)}catch(e){t.call(this,e);break}}try{l=rs.call(this,f)}catch(e){return Promise.reject(e)}for(u=0,d=c.length;u<d;)l=l.then(c[u++],c[u++]);return l}getUri(e){return e=Po(this.defaults,e),za(Mo(e.baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}};V.forEach([`delete`,`get`,`head`,`options`],function(e){us.prototype[e]=function(t,n){return this.request(Po(n||{},{method:e,url:t,data:(n||{}).data}))}}),V.forEach([`post`,`put`,`patch`],function(e){function t(t){return function(n,r,i){return this.request(Po(i||{},{method:e,headers:t?{"Content-Type":`multipart/form-data`}:{},url:n,data:r}))}}us.prototype[e]=t(),us.prototype[e+`Form`]=t(!0)});var ds=class e{constructor(e){if(typeof e!=`function`)throw TypeError(`executor must be a function.`);let t;this.promise=new Promise(function(e){t=e});let n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t,r=new Promise(e=>{n.subscribe(e),t=e}).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e(function(e,r,i){n.reason||(n.reason=new bo(e,r,i),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let t=this._listeners.indexOf(e);t!==-1&&this._listeners.splice(t,1)}toAbortSignal(){let e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let t;return{token:new e(function(e){t=e}),cancel:t}}};function fs(e){return function(t){return e.apply(null,t)}}function ps(e){return V.isObject(e)&&e.isAxiosError===!0}var ms={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(ms).forEach(([e,t])=>{ms[t]=e});function hs(e){let t=new us(e),n=_i(us.prototype.request,t);return V.extend(n,us.prototype,t,{allOwnKeys:!0}),V.extend(n,t,null,{allOwnKeys:!0}),n.create=function(t){return hs(Po(e,t))},n}var gs=hs(no);gs.Axios=us,gs.CanceledError=bo,gs.CancelToken=ds,gs.isCancel=yo,gs.VERSION=is,gs.toFormData=Pa,gs.AxiosError=Oa,gs.Cancel=gs.CanceledError,gs.all=function(e){return Promise.all(e)},gs.spread=fs,gs.isAxiosError=ps,gs.mergeConfig=Po,gs.AxiosHeaders=_o,gs.formToJSON=e=>$a(V.isHTMLForm(e)?new FormData(e):e),gs.getAdapter=ts.getAdapter,gs.HttpStatusCode=ms,gs.default=gs;var _s=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),vs=e=>e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase(),ys=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()),bs=e=>{let t=ys(e);return t.charAt(0).toUpperCase()+t.slice(1)},xs={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`},Ss=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},Cs=(0,R.createContext)({}),ws=()=>(0,R.useContext)(Cs),Ts=(0,R.forwardRef)(({color:e,size:t,strokeWidth:n,absoluteStrokeWidth:r,className:i=``,children:a,iconNode:o,...s},c)=>{let{size:l=24,strokeWidth:u=2,absoluteStrokeWidth:d=!1,color:f=`currentColor`,className:p=``}=ws()??{},m=r??d?Number(n??u)*24/Number(t??l):n??u;return(0,R.createElement)(`svg`,{ref:c,...xs,width:t??l??xs.width,height:t??l??xs.height,stroke:e??f,strokeWidth:m,className:_s(`lucide`,p,i),...!a&&!Ss(s)&&{"aria-hidden":`true`},...s},[...o.map(([e,t])=>(0,R.createElement)(e,t)),...Array.isArray(a)?a:[a]])}),H=(e,t)=>{let n=(0,R.forwardRef)(({className:n,...r},i)=>(0,R.createElement)(Ts,{ref:i,iconNode:t,className:_s(`lucide-${vs(bs(e))}`,`lucide-${e}`,n),...r}));return n.displayName=bs(e),n},Es=H(`activity`,[[`path`,{d:`M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2`,key:`169zse`}]]),Ds=H(`archive`,[[`rect`,{width:`20`,height:`5`,x:`2`,y:`3`,rx:`1`,key:`1wp1u1`}],[`path`,{d:`M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8`,key:`1s80jp`}],[`path`,{d:`M10 12h4`,key:`a56b0p`}]]),Os=H(`arrow-left`,[[`path`,{d:`m12 19-7-7 7-7`,key:`1l729n`}],[`path`,{d:`M19 12H5`,key:`x3x0zl`}]]),ks=H(`arrow-right`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`m12 5 7 7-7 7`,key:`xquz4c`}]]),As=H(`arrow-up-down`,[[`path`,{d:`m21 16-4 4-4-4`,key:`f6ql7i`}],[`path`,{d:`M17 20V4`,key:`1ejh1v`}],[`path`,{d:`m3 8 4-4 4 4`,key:`11wl7u`}],[`path`,{d:`M7 4v16`,key:`1glfcx`}]]),js=H(`book-open`,[[`path`,{d:`M12 7v14`,key:`1akyts`}],[`path`,{d:`M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z`,key:`ruj8y`}]]),Ms=H(`bot`,[[`path`,{d:`M12 8V4H8`,key:`hb8ula`}],[`rect`,{width:`16`,height:`12`,x:`4`,y:`8`,rx:`2`,key:`enze0r`}],[`path`,{d:`M2 14h2`,key:`vft8re`}],[`path`,{d:`M20 14h2`,key:`4cs60a`}],[`path`,{d:`M15 13v2`,key:`1xurst`}],[`path`,{d:`M9 13v2`,key:`rq6x2g`}]]),Ns=H(`box`,[[`path`,{d:`M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z`,key:`hh9hay`}],[`path`,{d:`m3.3 7 8.7 5 8.7-5`,key:`g66t2b`}],[`path`,{d:`M12 22V12`,key:`d0xqtd`}]]),Ps=H(`brain`,[[`path`,{d:`M12 18V5`,key:`adv99a`}],[`path`,{d:`M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4`,key:`1e3is1`}],[`path`,{d:`M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5`,key:`1gqd8o`}],[`path`,{d:`M17.997 5.125a4 4 0 0 1 2.526 5.77`,key:`iwvgf7`}],[`path`,{d:`M18 18a4 4 0 0 0 2-7.464`,key:`efp6ie`}],[`path`,{d:`M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517`,key:`1gq6am`}],[`path`,{d:`M6 18a4 4 0 0 1-2-7.464`,key:`k1g0md`}],[`path`,{d:`M6.003 5.125a4 4 0 0 0-2.526 5.77`,key:`q97ue3`}]]),Fs=H(`calendar`,[[`path`,{d:`M8 2v4`,key:`1cmpym`}],[`path`,{d:`M16 2v4`,key:`4m81vk`}],[`rect`,{width:`18`,height:`18`,x:`3`,y:`4`,rx:`2`,key:`1hopcy`}],[`path`,{d:`M3 10h18`,key:`8toen8`}]]),Is=H(`chart-column`,[[`path`,{d:`M3 3v16a2 2 0 0 0 2 2h16`,key:`c24i48`}],[`path`,{d:`M18 17V9`,key:`2bz60n`}],[`path`,{d:`M13 17V5`,key:`1frdt8`}],[`path`,{d:`M8 17v-3`,key:`17ska0`}]]),Ls=H(`check-check`,[[`path`,{d:`M18 6 7 17l-5-5`,key:`116fxf`}],[`path`,{d:`m22 10-7.5 7.5L13 16`,key:`ke71qq`}]]),Rs=H(`check`,[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]),zs=H(`chevron-down`,[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]),Bs=H(`chevron-left`,[[`path`,{d:`m15 18-6-6 6-6`,key:`1wnfg3`}]]),Vs=H(`chevron-right`,[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]),Hs=H(`chevron-up`,[[`path`,{d:`m18 15-6-6-6 6`,key:`153udz`}]]),Us=H(`circle-alert`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`12`,x2:`12`,y1:`8`,y2:`12`,key:`1pkeuh`}],[`line`,{x1:`12`,x2:`12.01`,y1:`16`,y2:`16`,key:`4dfq90`}]]),Ws=H(`circle-check-big`,[[`path`,{d:`M21.801 10A10 10 0 1 1 17 3.335`,key:`yps3ct`}],[`path`,{d:`m9 11 3 3L22 4`,key:`1pflzl`}]]),Gs=H(`circle-check`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]),Ks=H(`circle-x`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m15 9-6 6`,key:`1uzhvr`}],[`path`,{d:`m9 9 6 6`,key:`z0biqf`}]]),qs=H(`circle`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}]]),Js=H(`clock`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 6v6l4 2`,key:`mmk7yg`}]]),Ys=H(`code`,[[`path`,{d:`m16 18 6-6-6-6`,key:`eg8j8`}],[`path`,{d:`m8 6-6 6 6 6`,key:`ppft3o`}]]),Xs=H(`command`,[[`path`,{d:`M15 6v12a3 3 0 1 0 3-3H6a3 3 0 1 0 3 3V6a3 3 0 1 0-3 3h12a3 3 0 1 0-3-3`,key:`11bfej`}]]),Zs=H(`copy`,[[`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`,key:`17jyea`}],[`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`,key:`zix9uf`}]]),Qs=H(`cpu`,[[`path`,{d:`M12 20v2`,key:`1lh1kg`}],[`path`,{d:`M12 2v2`,key:`tus03m`}],[`path`,{d:`M17 20v2`,key:`1rnc9c`}],[`path`,{d:`M17 2v2`,key:`11trls`}],[`path`,{d:`M2 12h2`,key:`1t8f8n`}],[`path`,{d:`M2 17h2`,key:`7oei6x`}],[`path`,{d:`M2 7h2`,key:`asdhe0`}],[`path`,{d:`M20 12h2`,key:`1q8mjw`}],[`path`,{d:`M20 17h2`,key:`1fpfkl`}],[`path`,{d:`M20 7h2`,key:`1o8tra`}],[`path`,{d:`M7 20v2`,key:`4gnj0m`}],[`path`,{d:`M7 2v2`,key:`1i4yhu`}],[`rect`,{x:`4`,y:`4`,width:`16`,height:`16`,rx:`2`,key:`1vbyd7`}],[`rect`,{x:`8`,y:`8`,width:`8`,height:`8`,rx:`1`,key:`z9xiuo`}]]),$s=H(`database`,[[`ellipse`,{cx:`12`,cy:`5`,rx:`9`,ry:`3`,key:`msslwz`}],[`path`,{d:`M3 5V19A9 3 0 0 0 21 19V5`,key:`1wlel7`}],[`path`,{d:`M3 12A9 3 0 0 0 21 12`,key:`mv7ke4`}]]),ec=H(`dollar-sign`,[[`line`,{x1:`12`,x2:`12`,y1:`2`,y2:`22`,key:`7eqyqh`}],[`path`,{d:`M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6`,key:`1b0p4s`}]]),tc=H(`download`,[[`path`,{d:`M12 15V3`,key:`m9g1x1`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}],[`path`,{d:`m7 10 5 5 5-5`,key:`brsn70`}]]),nc=H(`external-link`,[[`path`,{d:`M15 3h6v6`,key:`1q9fwt`}],[`path`,{d:`M10 14 21 3`,key:`gplh6r`}],[`path`,{d:`M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6`,key:`a6xqqp`}]]),rc=H(`eye-off`,[[`path`,{d:`M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49`,key:`ct8e1f`}],[`path`,{d:`M14.084 14.158a3 3 0 0 1-4.242-4.242`,key:`151rxh`}],[`path`,{d:`M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143`,key:`13bj9a`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}]]),ic=H(`eye`,[[`path`,{d:`M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0`,key:`1nclc0`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]),ac=H(`file-code`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10 12.5 8 15l2 2.5`,key:`1tg20x`}],[`path`,{d:`m14 12.5 2 2.5-2 2.5`,key:`yinavb`}]]),oc=H(`file-pen`,[[`path`,{d:`M12.659 22H18a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v9.34`,key:`o6klzx`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10.378 12.622a1 1 0 0 1 3 3.003L8.36 20.637a2 2 0 0 1-.854.506l-2.867.837a.5.5 0 0 1-.62-.62l.836-2.869a2 2 0 0 1 .506-.853z`,key:`zhnas1`}]]),sc=H(`file-text`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10 9H8`,key:`b1mrlr`}],[`path`,{d:`M16 13H8`,key:`t4e002`}],[`path`,{d:`M16 17H8`,key:`z1uh3a`}]]),cc=H(`file`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}]]),lc=H(`folder-tree`,[[`path`,{d:`M20 10a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1h-2.5a1 1 0 0 1-.8-.4l-.9-1.2A1 1 0 0 0 15 3h-2a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z`,key:`hod4my`}],[`path`,{d:`M20 21a1 1 0 0 0 1-1v-3a1 1 0 0 0-1-1h-2.9a1 1 0 0 1-.88-.55l-.42-.85a1 1 0 0 0-.92-.6H13a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z`,key:`w4yl2u`}],[`path`,{d:`M3 5a2 2 0 0 0 2 2h3`,key:`f2jnh7`}],[`path`,{d:`M3 3v13a2 2 0 0 0 2 2h3`,key:`k8epm1`}]]),uc=H(`folder`,[[`path`,{d:`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z`,key:`1kt360`}]]),dc=H(`funnel`,[[`path`,{d:`M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z`,key:`sc7q7i`}]]),fc=H(`git-branch`,[[`path`,{d:`M15 6a9 9 0 0 0-9 9V3`,key:`1cii5b`}],[`circle`,{cx:`18`,cy:`6`,r:`3`,key:`1h7g24`}],[`circle`,{cx:`6`,cy:`18`,r:`3`,key:`fqmcym`}]]),pc=H(`hard-drive`,[[`path`,{d:`M10 16h.01`,key:`1bzywj`}],[`path`,{d:`M2.212 11.577a2 2 0 0 0-.212.896V18a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-5.527a2 2 0 0 0-.212-.896L18.55 5.11A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z`,key:`18tbho`}],[`path`,{d:`M21.946 12.013H2.054`,key:`zqlbp7`}],[`path`,{d:`M6 16h.01`,key:`1pmjb7`}]]),mc=H(`image`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,ry:`2`,key:`1m3agn`}],[`circle`,{cx:`9`,cy:`9`,r:`2`,key:`af1f0g`}],[`path`,{d:`m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21`,key:`1xmnt7`}]]),hc=H(`info`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 16v-4`,key:`1dtifu`}],[`path`,{d:`M12 8h.01`,key:`e9boi3`}]]),gc=H(`layout-dashboard`,[[`rect`,{width:`7`,height:`9`,x:`3`,y:`3`,rx:`1`,key:`10lvy0`}],[`rect`,{width:`7`,height:`5`,x:`14`,y:`3`,rx:`1`,key:`16une8`}],[`rect`,{width:`7`,height:`9`,x:`14`,y:`12`,rx:`1`,key:`1hutg5`}],[`rect`,{width:`7`,height:`5`,x:`3`,y:`16`,rx:`1`,key:`ldoo1y`}]]),_c=H(`lightbulb`,[[`path`,{d:`M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5`,key:`1gvzjb`}],[`path`,{d:`M9 18h6`,key:`x1upvd`}],[`path`,{d:`M10 22h4`,key:`ceow96`}]]),vc=H(`link`,[[`path`,{d:`M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71`,key:`1cjeqo`}],[`path`,{d:`M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71`,key:`19qd67`}]]),yc=H(`list`,[[`path`,{d:`M3 5h.01`,key:`18ugdj`}],[`path`,{d:`M3 12h.01`,key:`nlz23k`}],[`path`,{d:`M3 19h.01`,key:`noohij`}],[`path`,{d:`M8 5h13`,key:`1pao27`}],[`path`,{d:`M8 12h13`,key:`1za7za`}],[`path`,{d:`M8 19h13`,key:`m83p4d`}]]),bc=H(`loader-circle`,[[`path`,{d:`M21 12a9 9 0 1 1-6.219-8.56`,key:`13zald`}]]),xc=H(`menu`,[[`path`,{d:`M4 5h16`,key:`1tepv9`}],[`path`,{d:`M4 12h16`,key:`1lakjw`}],[`path`,{d:`M4 19h16`,key:`1djgab`}]]),Sc=H(`message-square`,[[`path`,{d:`M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z`,key:`18887p`}]]),Cc=H(`network`,[[`rect`,{x:`16`,y:`16`,width:`6`,height:`6`,rx:`1`,key:`4q2zg0`}],[`rect`,{x:`2`,y:`16`,width:`6`,height:`6`,rx:`1`,key:`8cvhb9`}],[`rect`,{x:`9`,y:`2`,width:`6`,height:`6`,rx:`1`,key:`1egb70`}],[`path`,{d:`M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3`,key:`1jsf9p`}],[`path`,{d:`M12 12V8`,key:`2874zd`}]]),wc=H(`package`,[[`path`,{d:`M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z`,key:`1a0edw`}],[`path`,{d:`M12 22V12`,key:`d0xqtd`}],[`polyline`,{points:`3.29 7 12 12 20.71 7`,key:`ousv84`}],[`path`,{d:`m7.5 4.27 9 5.15`,key:`1c824w`}]]),Tc=H(`pause`,[[`rect`,{x:`14`,y:`3`,width:`5`,height:`18`,rx:`1`,key:`kaeet6`}],[`rect`,{x:`5`,y:`3`,width:`5`,height:`18`,rx:`1`,key:`1wsw3u`}]]),Ec=H(`pen`,[[`path`,{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`,key:`1a8usu`}]]),Dc=H(`pencil`,[[`path`,{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`,key:`1a8usu`}],[`path`,{d:`m15 5 4 4`,key:`1mk7zo`}]]),Oc=H(`play`,[[`path`,{d:`M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z`,key:`10ikf1`}]]),kc=H(`plus`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]),Ac=H(`power`,[[`path`,{d:`M12 2v10`,key:`mnfbl`}],[`path`,{d:`M18.4 6.6a9 9 0 1 1-12.77.04`,key:`obofu9`}]]),jc=H(`refresh-cw`,[[`path`,{d:`M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8`,key:`v9h5vc`}],[`path`,{d:`M21 3v5h-5`,key:`1q7to0`}],[`path`,{d:`M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16`,key:`3uifl3`}],[`path`,{d:`M8 16H3v5`,key:`1cv678`}]]),Mc=H(`rotate-ccw`,[[`path`,{d:`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`,key:`1357e3`}],[`path`,{d:`M3 3v5h5`,key:`1xhq8a`}]]),Nc=H(`save`,[[`path`,{d:`M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z`,key:`1c8476`}],[`path`,{d:`M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7`,key:`1ydtos`}],[`path`,{d:`M7 3v4a1 1 0 0 0 1 1h7`,key:`t51u73`}]]),Pc=H(`search`,[[`path`,{d:`m21 21-4.34-4.34`,key:`14j7rj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}]]),Fc=H(`settings`,[[`path`,{d:`M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915`,key:`1i5ecw`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]),Ic=H(`shield-check`,[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]),Lc=H(`shield`,[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}]]),Rc=H(`sparkles`,[[`path`,{d:`M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z`,key:`1s2grr`}],[`path`,{d:`M20 2v4`,key:`1rf3ol`}],[`path`,{d:`M22 4h-4`,key:`gwowj6`}],[`circle`,{cx:`4`,cy:`20`,r:`2`,key:`6kqj1y`}]]),zc=H(`square-check-big`,[[`path`,{d:`M21 10.656V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h12.344`,key:`2acyp4`}],[`path`,{d:`m9 11 3 3L22 4`,key:`1pflzl`}]]),Bc=H(`square-pen`,[[`path`,{d:`M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7`,key:`1m0v6g`}],[`path`,{d:`M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z`,key:`ohrbg2`}]]),Vc=H(`square`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}]]),Hc=H(`tag`,[[`path`,{d:`M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z`,key:`vktsd0`}],[`circle`,{cx:`7.5`,cy:`7.5`,r:`.5`,fill:`currentColor`,key:`kqv944`}]]),Uc=H(`terminal`,[[`path`,{d:`M12 19h8`,key:`baeox8`}],[`path`,{d:`m4 17 6-6-6-6`,key:`1yngyt`}]]),Wc=H(`test-tube`,[[`path`,{d:`M14.5 2v17.5c0 1.4-1.1 2.5-2.5 2.5c-1.4 0-2.5-1.1-2.5-2.5V2`,key:`125lnx`}],[`path`,{d:`M8.5 2h7`,key:`csnxdl`}],[`path`,{d:`M14.5 16h-5`,key:`1ox875`}]]),Gc=H(`trash-2`,[[`path`,{d:`M10 11v6`,key:`nco0om`}],[`path`,{d:`M14 11v6`,key:`outv1u`}],[`path`,{d:`M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6`,key:`miytrc`}],[`path`,{d:`M3 6h18`,key:`d0wm0j`}],[`path`,{d:`M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2`,key:`e791ji`}]]),Kc=H(`trending-up`,[[`path`,{d:`M16 7h6v6`,key:`box55l`}],[`path`,{d:`m22 7-8.5 8.5-5-5L2 17`,key:`1t1m79`}]]),qc=H(`triangle-alert`,[[`path`,{d:`m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3`,key:`wmoenq`}],[`path`,{d:`M12 9v4`,key:`juzpu7`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]]),Jc=H(`upload`,[[`path`,{d:`M12 3v12`,key:`1x0j5s`}],[`path`,{d:`m17 8-5-5-5 5`,key:`7q97r8`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}]]),Yc=H(`workflow`,[[`rect`,{width:`8`,height:`8`,x:`3`,y:`3`,rx:`2`,key:`by2w9f`}],[`path`,{d:`M7 11v4a2 2 0 0 0 2 2h4`,key:`xkn7yn`}],[`rect`,{width:`8`,height:`8`,x:`13`,y:`13`,rx:`2`,key:`1cgmvn`}]]),Xc=H(`wrench`,[[`path`,{d:`M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z`,key:`1ngwbx`}]]),Zc=H(`x`,[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]),Qc=H(`zap`,[[`path`,{d:`M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z`,key:`1xq2db`}]]),$c=u(y(),1),el=u(_(),1),tl=(0,R.createContext)({toast:()=>{}}),nl=()=>{};function U(e,t=`error`){nl(e,t)}function rl({children:e}){let[t,n]=(0,R.useState)([]),r={current:0},i=(0,R.useCallback)((e,t=`error`)=>{let i=++r.current;n(n=>[...n,{id:i,type:t,message:e}]),setTimeout(()=>n(e=>e.filter(e=>e.id!==i)),4e3)},[]);(0,R.useEffect)(()=>{nl=i},[i]);let a={success:Ws,error:Ks,warning:qc},o={success:`bg-green-50 border-green-200 text-green-800`,error:`bg-red-50 border-red-200 text-red-800`,warning:`bg-yellow-50 border-yellow-200 text-yellow-800`},s={success:`text-green-500`,error:`text-red-500`,warning:`text-yellow-500`};return(0,z.jsxs)(tl.Provider,{value:{toast:i},children:[e,(0,el.createPortal)((0,z.jsx)(`div`,{className:`fixed bottom-4 right-4 z-[9999] flex flex-col gap-2 max-w-sm`,children:t.map(e=>{let t=a[e.type];return(0,z.jsxs)(`div`,{className:`flex items-start gap-3 px-4 py-3 rounded-lg border shadow-lg text-sm ${o[e.type]}`,children:[(0,z.jsx)(t,{className:`h-4 w-4 mt-0.5 flex-shrink-0 ${s[e.type]}`}),(0,z.jsx)(`span`,{className:`flex-1`,children:e.message}),(0,z.jsx)(`button`,{onClick:()=>n(t=>t.filter(t=>t.id!==e.id)),children:(0,z.jsx)(Zc,{className:`h-3.5 w-3.5 opacity-60 hover:opacity-100`})})]},e.id)})}),document.body)]})}var W=gs.create({baseURL:`/api`,timeout:3e4});W.interceptors.response.use(e=>e,e=>(U(e.response?.data?.error||e.response?.data?.message||e.message||`请求失败`,`error`),Promise.reject(e)));var il=()=>W.get(`/health`),al=()=>W.get(`/config`),ol=e=>W.put(`/config`,e),sl=()=>W.get(`/config/history`),cl=e=>W.get(`/sessions`,{params:e}),ll=e=>W.get(`/sessions/${e}`),ul=e=>W.delete(`/sessions/${e}`),dl=e=>W.delete(`/sessions`,{data:{ids:e}}),fl=e=>W.get(`/events`,{params:e}),pl=e=>W.get(`/events/stats`,{params:{project_path:e}}),ml=e=>W.get(`/pipelines`,{params:e}),hl=e=>W.get(`/pipelines/${e}`),gl=e=>W.get(`/quality/history`,{params:e}),_l=e=>W.get(`/quality/unresolved`,{params:{project_path:e}}),vl=()=>W.get(`/stats/roi`),yl=()=>W.get(`/stats/overview`),bl=(e,t,n,r)=>W.get(`/knowledge/search`,{params:{q:e,project_path:t,node_type:n,limit:r}}),xl=e=>W.get(`/knowledge/overview`,{params:{project_path:e}}),Sl=(e,t)=>W.get(`/knowledge/neighbors`,{params:{node_id:e,project_path:t}}),Cl=(e,t)=>W.get(`/knowledge/graph`,{params:{project_path:e,node_type:t}}),wl=e=>W.post(`/knowledge/nodes`,e),Tl=(e,t)=>W.put(`/knowledge/nodes/${e}`,t),El=e=>W.delete(`/knowledge/nodes/${e}`),Dl=e=>W.post(`/knowledge/edges`,e),Ol=e=>W.post(`/pipelines/${e}/close`),kl=e=>W.post(`/pipelines/${e}/reactivate`),Al=e=>W.post(`/pipelines/batch-close`,{ids:e}),jl=()=>W.post(`/pipelines/close-expired`),Ml=()=>W.get(`/pipelines/active`),Nl=e=>W.post(`/pipelines/${e}/resume`),Pl=e=>W.post(`/pipelines/${e}/advance`),Fl=e=>W.get(`/projects`,{params:e}),Il=e=>W.get(`/projects/${e}`),Ll=e=>W.delete(`/projects/${e}`),Rl=e=>W.post(`/convention/init`,{path:e},{timeout:18e4}),zl=e=>W.get(`/projects/${e}/conventions`),Bl=(e,t)=>W.post(`/projects/${e}/conventions/bind`,{conventionId:t}),Vl=(e,t)=>W.delete(`/projects/${e}/conventions/${encodeURIComponent(t)}`),Hl=e=>W.get(`/projects/${e}/conventions/custom/yaml`),Ul=(e,t)=>W.put(`/projects/${e}/conventions/custom`,{yaml:t}),Wl=e=>W.post(`/projects/${e}/conventions/distill`,{},{timeout:12e4}),Gl=e=>W.get(`/claudemd/${e}`),Kl=(e,t)=>W.put(`/claudemd/${e}`,{content:t}),ql=e=>W.get(`/claudemd/${e}/profile`),Jl=e=>W.get(`/claudemd/${e}/modules`),Yl=e=>W.post(`/claudemd/${e}/distill`,void 0,{timeout:18e4}),Xl=e=>W.post(`/claudemd/${e}/init`,void 0,{timeout:18e4}),Zl=e=>W.post(`/quality/${e}/resolve`),Ql=e=>W.post(`/quality/${e}/dismiss`),$l=e=>W.post(`/quality/batch-dismiss`,{ids:e}),eu=e=>W.post(`/quality/batch-resolve`,{ids:e}),tu=()=>W.post(`/quality/resolve-all`),nu=e=>W.get(`/quality/${e}/context`),ru=()=>W.get(`/daemon/status`),iu=()=>W.post(`/daemon/restart`),au=()=>W.get(`/daemon/diagnose`),ou=()=>W.post(`/daemon/repair`),su=()=>W.post(`/config/backup`),cu=()=>W.get(`/config/backups`),lu=e=>`/api/config/backups/${encodeURIComponent(e)}`,uu=e=>W.post(`/config/restore`,{filename:e}),du=e=>W.post(`/events/purge`,{retentionDays:e}),fu=()=>W.get(`/memory/caches`),pu=()=>W.get(`/memory/process`),mu=e=>W.post(`/memory/caches/${encodeURIComponent(e)}/clear`),hu=()=>W.post(`/memory/caches/clear-all`),gu=()=>W.post(`/memory/gc`),_u=e=>W.get(`/stats/api-usage`,{params:{days:e}}),vu=e=>W.get(`/skills`,{params:e}),yu=()=>W.get(`/skills/status`),bu=e=>W.get(`/skills/${encodeURIComponent(e)}`),xu=(e,t)=>W.put(`/skills/${encodeURIComponent(e)}/content`,{content:t}),Su=(e,t)=>W.post(`/skills/search`,{query:e,...t},{timeout:3e4}),Cu=e=>W.post(`/skills/install`,{url:e},{timeout:6e4}),wu=e=>W.delete(`/skills/${encodeURIComponent(e)}`),Tu=e=>W.post(`/skills/batch-delete`,{names:e}),Eu=()=>W.post(`/skills/evolve`,{},{timeout:12e4}),Du=()=>W.post(`/skills/distill`,{},{timeout:12e4}),Ou=()=>W.post(`/skills/repair`,{},{timeout:6e4}),ku=()=>W.get(`/conventions`),Au=e=>W.get(`/conventions/${encodeURIComponent(e)}`),ju=()=>W.post(`/conventions/sync-official`),Mu=e=>W.post(`/conventions/install`,{url:e},{timeout:3e4}),Nu=e=>W.delete(`/conventions/${encodeURIComponent(e)}`),Pu=()=>W.get(`/conventions/usage-stats`),Fu=e=>W.get(`/conventions/${encodeURIComponent(e)}/evolution-history`),Iu=e=>W.post(`/conventions/batch-evolve`,{conventionIds:e},{timeout:12e4}),Lu=e=>W.get(`/conventions/${encodeURIComponent(e)}/yaml`),Ru=(e,t)=>W.put(`/conventions/${encodeURIComponent(e)}/yaml`,{yaml:t}),zu=e=>W.get(`/node-types`,{params:e?{projectPath:e}:void 0}),Bu=e=>W.get(`/node-types/${encodeURIComponent(e)}`),Vu=e=>W.post(`/node-types`,e),Hu=(e,t)=>W.put(`/node-types/${encodeURIComponent(e)}`,t),Uu=e=>W.delete(`/node-types/${encodeURIComponent(e)}`);function Wu(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Wu(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n);return r}function Gu(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Wu(e))&&(r&&(r+=` `),r+=t);return r}var Ku=(e,t)=>{let n=Array(e.length+t.length);for(let t=0;t<e.length;t++)n[t]=e[t];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},qu=(e,t)=>({classGroupId:e,validator:t}),Ju=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Yu=`-`,Xu=[],Zu=`arbitrary..`,Qu=e=>{let t=td(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith(`[`)&&e.endsWith(`]`))return ed(e);let n=e.split(Yu);return $u(n,+(n[0]===``&&n.length>1),t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],i=n[e];return t?i?Ku(i,t):t:i||Xu}return n[e]||Xu}}},$u=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=$u(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let o=t===0?e.join(Yu):e.slice(t).join(Yu),s=a.length;for(let e=0;e<s;e++){let t=a[e];if(t.validator(o))return t.classGroupId}},ed=e=>e.slice(1,-1).indexOf(`:`)===-1?void 0:(()=>{let t=e.slice(1,-1),n=t.indexOf(`:`),r=t.slice(0,n);return r?Zu+r:void 0})(),td=e=>{let{theme:t,classGroups:n}=e;return nd(n,t)},nd=(e,t)=>{let n=Ju();for(let r in e){let i=e[r];rd(i,n,r,t)}return n},rd=(e,t,n,r)=>{let i=e.length;for(let a=0;a<i;a++){let i=e[a];id(i,t,n,r)}},id=(e,t,n,r)=>{if(typeof e==`string`){ad(e,t,n);return}if(typeof e==`function`){od(e,t,n,r);return}sd(e,t,n,r)},ad=(e,t,n)=>{let r=e===``?t:cd(t,e);r.classGroupId=n},od=(e,t,n,r)=>{if(ld(e)){rd(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(qu(n,e))},sd=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e<a;e++){let[a,o]=i[e];rd(o,cd(t,a),n,r)}},cd=(e,t)=>{let n=e,r=t.split(Yu),i=r.length;for(let e=0;e<i;e++){let t=r[e],i=n.nextPart.get(t);i||(i=Ju(),n.nextPart.set(t,i)),n=i}return n},ld=e=>`isThemeGetter`in e&&e.isThemeGetter===!0,ud=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null),i=(i,a)=>{n[i]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(e){let t=n[e];if(t!==void 0)return t;if((t=r[e])!==void 0)return i(e,t),t},set(e,t){e in n?n[e]=t:i(e,t)}}},dd=`!`,fd=`:`,pd=[],md=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),hd=e=>{let{prefix:t,experimentalParseClassName:n}=e,r=e=>{let t=[],n=0,r=0,i=0,a,o=e.length;for(let s=0;s<o;s++){let o=e[s];if(n===0&&r===0){if(o===fd){t.push(e.slice(i,s)),i=s+1;continue}if(o===`/`){a=s;continue}}o===`[`?n++:o===`]`?n--:o===`(`?r++:o===`)`&&r--}let s=t.length===0?e:e.slice(i),c=s,l=!1;s.endsWith(dd)?(c=s.slice(0,-1),l=!0):s.startsWith(dd)&&(c=s.slice(1),l=!0);let u=a&&a>i?a-i:void 0;return md(t,l,c,u)};if(t){let e=t+fd,n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):md(pd,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},gd=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((e,n)=>{t.set(e,1e6+n)}),e=>{let n=[],r=[];for(let i=0;i<e.length;i++){let a=e[i],o=a[0]===`[`,s=t.has(a);o||s?(r.length>0&&(r.sort(),n.push(...r),r=[]),n.push(a)):r.push(a)}return r.length>0&&(r.sort(),n.push(...r)),n}},_d=e=>({cache:ud(e.cacheSize),parseClassName:hd(e),sortModifiers:gd(e),...Qu(e)}),vd=/\s+/,yd=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a}=t,o=[],s=e.trim().split(vd),c=``;for(let e=s.length-1;e>=0;--e){let t=s[e],{isExternal:l,modifiers:u,hasImportantModifier:d,baseClassName:f,maybePostfixModifierPosition:p}=n(t);if(l){c=t+(c.length>0?` `+c:c);continue}let m=!!p,h=r(m?f.substring(0,p):f);if(!h){if(!m){c=t+(c.length>0?` `+c:c);continue}if(h=r(f),!h){c=t+(c.length>0?` `+c:c);continue}m=!1}let g=u.length===0?``:u.length===1?u[0]:a(u).join(`:`),_=d?g+dd:g,v=_+h;if(o.indexOf(v)>-1)continue;o.push(v);let y=i(h,m);for(let e=0;e<y.length;++e){let t=y[e];o.push(_+t)}c=t+(c.length>0?` `+c:c)}return c},bd=(...e)=>{let t=0,n,r,i=``;for(;t<e.length;)(n=e[t++])&&(r=xd(n))&&(i&&(i+=` `),i+=r);return i},xd=e=>{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r<e.length;r++)e[r]&&(t=xd(e[r]))&&(n&&(n+=` `),n+=t);return n},Sd=(e,...t)=>{let n,r,i,a,o=o=>(n=_d(t.reduce((e,t)=>t(e),e())),r=n.cache.get,i=n.cache.set,a=s,s(o)),s=e=>{let t=r(e);if(t)return t;let a=yd(e,n);return i(e,a),a};return a=o,(...e)=>a(bd(...e))},Cd=[],wd=e=>{let t=t=>t[e]||Cd;return t.isThemeGetter=!0,t},Td=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Ed=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Dd=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Od=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,kd=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Ad=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,jd=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Md=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Nd=e=>Dd.test(e),Pd=e=>!!e&&!Number.isNaN(Number(e)),Fd=e=>!!e&&Number.isInteger(Number(e)),Id=e=>e.endsWith(`%`)&&Pd(e.slice(0,-1)),Ld=e=>Od.test(e),Rd=()=>!0,zd=e=>kd.test(e)&&!Ad.test(e),Bd=()=>!1,Vd=e=>jd.test(e),Hd=e=>Md.test(e),Ud=e=>!G(e)&&!K(e),Wd=e=>of(e,uf,Bd),G=e=>Td.test(e),Gd=e=>of(e,df,zd),Kd=e=>of(e,ff,Pd),qd=e=>of(e,mf,Rd),Jd=e=>of(e,pf,Bd),Yd=e=>of(e,cf,Bd),Xd=e=>of(e,lf,Hd),Zd=e=>of(e,hf,Vd),K=e=>Ed.test(e),Qd=e=>sf(e,df),$d=e=>sf(e,pf),ef=e=>sf(e,cf),tf=e=>sf(e,uf),nf=e=>sf(e,lf),rf=e=>sf(e,hf,!0),af=e=>sf(e,mf,!0),of=(e,t,n)=>{let r=Td.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},sf=(e,t,n=!1)=>{let r=Ed.exec(e);return r?r[1]?t(r[1]):n:!1},cf=e=>e===`position`||e===`percentage`,lf=e=>e===`image`||e===`url`,uf=e=>e===`length`||e===`size`||e===`bg-size`,df=e=>e===`length`,ff=e=>e===`number`,pf=e=>e===`family-name`,mf=e=>e===`number`||e===`weight`,hf=e=>e===`shadow`,gf=Sd(()=>{let e=wd(`color`),t=wd(`font`),n=wd(`text`),r=wd(`font-weight`),i=wd(`tracking`),a=wd(`leading`),o=wd(`breakpoint`),s=wd(`container`),c=wd(`spacing`),l=wd(`radius`),u=wd(`shadow`),d=wd(`inset-shadow`),f=wd(`text-shadow`),p=wd(`drop-shadow`),m=wd(`blur`),h=wd(`perspective`),g=wd(`aspect`),_=wd(`ease`),v=wd(`animate`),y=()=>[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`],b=()=>[`center`,`top`,`bottom`,`left`,`right`,`top-left`,`left-top`,`top-right`,`right-top`,`bottom-right`,`right-bottom`,`bottom-left`,`left-bottom`],x=()=>[...b(),K,G],S=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],C=()=>[`auto`,`contain`,`none`],w=()=>[K,G,c],T=()=>[Nd,`full`,`auto`,...w()],E=()=>[Fd,`none`,`subgrid`,K,G],D=()=>[`auto`,{span:[`full`,Fd,K,G]},Fd,K,G],O=()=>[Fd,`auto`,K,G],k=()=>[`auto`,`min`,`max`,`fr`,K,G],A=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`,`center-safe`,`end-safe`],j=()=>[`start`,`end`,`center`,`stretch`,`center-safe`,`end-safe`],M=()=>[`auto`,...w()],N=()=>[Nd,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...w()],ee=()=>[Nd,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,...w()],te=()=>[Nd,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,...w()],P=()=>[e,K,G],F=()=>[...b(),ef,Yd,{position:[K,G]}],I=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],ne=()=>[`auto`,`cover`,`contain`,tf,Wd,{size:[K,G]}],re=()=>[Id,Qd,Gd],ie=()=>[``,`none`,`full`,l,K,G],L=()=>[``,Pd,Qd,Gd],ae=()=>[`solid`,`dashed`,`dotted`,`double`],oe=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],se=()=>[Pd,Id,ef,Yd],ce=()=>[``,`none`,m,K,G],le=()=>[`none`,Pd,K,G],ue=()=>[`none`,Pd,K,G],de=()=>[Pd,K,G],fe=()=>[Nd,`full`,...w()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[Ld],breakpoint:[Ld],color:[Rd],container:[Ld],"drop-shadow":[Ld],ease:[`in`,`out`,`in-out`],font:[Ud],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[Ld],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[Ld],shadow:[Ld],spacing:[`px`,Pd],text:[Ld],"text-shadow":[Ld],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,Nd,G,K,g]}],container:[`container`],columns:[{columns:[Pd,G,K,s]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"break-inside":[{"break-inside":[`auto`,`avoid`,`avoid-page`,`avoid-column`]}],"box-decoration":[{"box-decoration":[`slice`,`clone`]}],box:[{box:[`border`,`content`]}],display:[`block`,`inline-block`,`inline`,`flex`,`inline-flex`,`table`,`inline-table`,`table-caption`,`table-cell`,`table-column`,`table-column-group`,`table-footer-group`,`table-header-group`,`table-row-group`,`table-row`,`flow-root`,`grid`,`inline-grid`,`contents`,`list-item`,`hidden`],sr:[`sr-only`,`not-sr-only`],float:[{float:[`right`,`left`,`none`,`start`,`end`]}],clear:[{clear:[`left`,`right`,`both`,`none`,`start`,`end`]}],isolation:[`isolate`,`isolation-auto`],"object-fit":[{object:[`contain`,`cover`,`fill`,`none`,`scale-down`]}],"object-position":[{object:x()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:C()}],"overscroll-x":[{"overscroll-x":C()}],"overscroll-y":[{"overscroll-y":C()}],position:[`static`,`fixed`,`absolute`,`relative`,`sticky`],inset:[{inset:T()}],"inset-x":[{"inset-x":T()}],"inset-y":[{"inset-y":T()}],start:[{"inset-s":T(),start:T()}],end:[{"inset-e":T(),end:T()}],"inset-bs":[{"inset-bs":T()}],"inset-be":[{"inset-be":T()}],top:[{top:T()}],right:[{right:T()}],bottom:[{bottom:T()}],left:[{left:T()}],visibility:[`visible`,`invisible`,`collapse`],z:[{z:[Fd,`auto`,K,G]}],basis:[{basis:[Nd,`full`,`auto`,s,...w()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[Pd,Nd,`auto`,`initial`,`none`,G]}],grow:[{grow:[``,Pd,K,G]}],shrink:[{shrink:[``,Pd,K,G]}],order:[{order:[Fd,`first`,`last`,`none`,K,G]}],"grid-cols":[{"grid-cols":E()}],"col-start-end":[{col:D()}],"col-start":[{"col-start":O()}],"col-end":[{"col-end":O()}],"grid-rows":[{"grid-rows":E()}],"row-start-end":[{row:D()}],"row-start":[{"row-start":O()}],"row-end":[{"row-end":O()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":k()}],"auto-rows":[{"auto-rows":k()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:[...A(),`normal`]}],"justify-items":[{"justify-items":[...j(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...j()]}],"align-content":[{content:[`normal`,...A()]}],"align-items":[{items:[...j(),{baseline:[``,`last`]}]}],"align-self":[{self:[`auto`,...j(),{baseline:[``,`last`]}]}],"place-content":[{"place-content":A()}],"place-items":[{"place-items":[...j(),`baseline`]}],"place-self":[{"place-self":[`auto`,...j()]}],p:[{p:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pbs:[{pbs:w()}],pbe:[{pbe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:M()}],mx:[{mx:M()}],my:[{my:M()}],ms:[{ms:M()}],me:[{me:M()}],mbs:[{mbs:M()}],mbe:[{mbe:M()}],mt:[{mt:M()}],mr:[{mr:M()}],mb:[{mb:M()}],ml:[{ml:M()}],"space-x":[{"space-x":w()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":w()}],"space-y-reverse":[`space-y-reverse`],size:[{size:N()}],"inline-size":[{inline:[`auto`,...ee()]}],"min-inline-size":[{"min-inline":[`auto`,...ee()]}],"max-inline-size":[{"max-inline":[`none`,...ee()]}],"block-size":[{block:[`auto`,...te()]}],"min-block-size":[{"min-block":[`auto`,...te()]}],"max-block-size":[{"max-block":[`none`,...te()]}],w:[{w:[s,`screen`,...N()]}],"min-w":[{"min-w":[s,`screen`,`none`,...N()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...N()]}],h:[{h:[`screen`,`lh`,...N()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...N()]}],"max-h":[{"max-h":[`screen`,`lh`,...N()]}],"font-size":[{text:[`base`,n,Qd,Gd]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,af,qd]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,Id,G]}],"font-family":[{font:[$d,Jd,t]}],"font-features":[{"font-features":[G]}],"fvn-normal":[`normal-nums`],"fvn-ordinal":[`ordinal`],"fvn-slashed-zero":[`slashed-zero`],"fvn-figure":[`lining-nums`,`oldstyle-nums`],"fvn-spacing":[`proportional-nums`,`tabular-nums`],"fvn-fraction":[`diagonal-fractions`,`stacked-fractions`],tracking:[{tracking:[i,K,G]}],"line-clamp":[{"line-clamp":[Pd,`none`,K,Kd]}],leading:[{leading:[a,...w()]}],"list-image":[{"list-image":[`none`,K,G]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,K,G]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:P()}],"text-color":[{text:P()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...ae(),`wavy`]}],"text-decoration-thickness":[{decoration:[Pd,`from-font`,`auto`,K,Gd]}],"text-decoration-color":[{decoration:P()}],"underline-offset":[{"underline-offset":[Pd,`auto`,K,G]}],"text-transform":[`uppercase`,`lowercase`,`capitalize`,`normal-case`],"text-overflow":[`truncate`,`text-ellipsis`,`text-clip`],"text-wrap":[{text:[`wrap`,`nowrap`,`balance`,`pretty`]}],indent:[{indent:w()}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,K,G]}],whitespace:[{whitespace:[`normal`,`nowrap`,`pre`,`pre-line`,`pre-wrap`,`break-spaces`]}],break:[{break:[`normal`,`words`,`all`,`keep`]}],wrap:[{wrap:[`break-word`,`anywhere`,`normal`]}],hyphens:[{hyphens:[`none`,`manual`,`auto`]}],content:[{content:[`none`,K,G]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:F()}],"bg-repeat":[{bg:I()}],"bg-size":[{bg:ne()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},Fd,K,G],radial:[``,K,G],conic:[Fd,K,G]},nf,Xd]}],"bg-color":[{bg:P()}],"gradient-from-pos":[{from:re()}],"gradient-via-pos":[{via:re()}],"gradient-to-pos":[{to:re()}],"gradient-from":[{from:P()}],"gradient-via":[{via:P()}],"gradient-to":[{to:P()}],rounded:[{rounded:ie()}],"rounded-s":[{"rounded-s":ie()}],"rounded-e":[{"rounded-e":ie()}],"rounded-t":[{"rounded-t":ie()}],"rounded-r":[{"rounded-r":ie()}],"rounded-b":[{"rounded-b":ie()}],"rounded-l":[{"rounded-l":ie()}],"rounded-ss":[{"rounded-ss":ie()}],"rounded-se":[{"rounded-se":ie()}],"rounded-ee":[{"rounded-ee":ie()}],"rounded-es":[{"rounded-es":ie()}],"rounded-tl":[{"rounded-tl":ie()}],"rounded-tr":[{"rounded-tr":ie()}],"rounded-br":[{"rounded-br":ie()}],"rounded-bl":[{"rounded-bl":ie()}],"border-w":[{border:L()}],"border-w-x":[{"border-x":L()}],"border-w-y":[{"border-y":L()}],"border-w-s":[{"border-s":L()}],"border-w-e":[{"border-e":L()}],"border-w-bs":[{"border-bs":L()}],"border-w-be":[{"border-be":L()}],"border-w-t":[{"border-t":L()}],"border-w-r":[{"border-r":L()}],"border-w-b":[{"border-b":L()}],"border-w-l":[{"border-l":L()}],"divide-x":[{"divide-x":L()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":L()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[...ae(),`hidden`,`none`]}],"divide-style":[{divide:[...ae(),`hidden`,`none`]}],"border-color":[{border:P()}],"border-color-x":[{"border-x":P()}],"border-color-y":[{"border-y":P()}],"border-color-s":[{"border-s":P()}],"border-color-e":[{"border-e":P()}],"border-color-bs":[{"border-bs":P()}],"border-color-be":[{"border-be":P()}],"border-color-t":[{"border-t":P()}],"border-color-r":[{"border-r":P()}],"border-color-b":[{"border-b":P()}],"border-color-l":[{"border-l":P()}],"divide-color":[{divide:P()}],"outline-style":[{outline:[...ae(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[Pd,K,G]}],"outline-w":[{outline:[``,Pd,Qd,Gd]}],"outline-color":[{outline:P()}],shadow:[{shadow:[``,`none`,u,rf,Zd]}],"shadow-color":[{shadow:P()}],"inset-shadow":[{"inset-shadow":[`none`,d,rf,Zd]}],"inset-shadow-color":[{"inset-shadow":P()}],"ring-w":[{ring:L()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:P()}],"ring-offset-w":[{"ring-offset":[Pd,Gd]}],"ring-offset-color":[{"ring-offset":P()}],"inset-ring-w":[{"inset-ring":L()}],"inset-ring-color":[{"inset-ring":P()}],"text-shadow":[{"text-shadow":[`none`,f,rf,Zd]}],"text-shadow-color":[{"text-shadow":P()}],opacity:[{opacity:[Pd,K,G]}],"mix-blend":[{"mix-blend":[...oe(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":oe()}],"mask-clip":[{"mask-clip":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]},`mask-no-clip`],"mask-composite":[{mask:[`add`,`subtract`,`intersect`,`exclude`]}],"mask-image-linear-pos":[{"mask-linear":[Pd]}],"mask-image-linear-from-pos":[{"mask-linear-from":se()}],"mask-image-linear-to-pos":[{"mask-linear-to":se()}],"mask-image-linear-from-color":[{"mask-linear-from":P()}],"mask-image-linear-to-color":[{"mask-linear-to":P()}],"mask-image-t-from-pos":[{"mask-t-from":se()}],"mask-image-t-to-pos":[{"mask-t-to":se()}],"mask-image-t-from-color":[{"mask-t-from":P()}],"mask-image-t-to-color":[{"mask-t-to":P()}],"mask-image-r-from-pos":[{"mask-r-from":se()}],"mask-image-r-to-pos":[{"mask-r-to":se()}],"mask-image-r-from-color":[{"mask-r-from":P()}],"mask-image-r-to-color":[{"mask-r-to":P()}],"mask-image-b-from-pos":[{"mask-b-from":se()}],"mask-image-b-to-pos":[{"mask-b-to":se()}],"mask-image-b-from-color":[{"mask-b-from":P()}],"mask-image-b-to-color":[{"mask-b-to":P()}],"mask-image-l-from-pos":[{"mask-l-from":se()}],"mask-image-l-to-pos":[{"mask-l-to":se()}],"mask-image-l-from-color":[{"mask-l-from":P()}],"mask-image-l-to-color":[{"mask-l-to":P()}],"mask-image-x-from-pos":[{"mask-x-from":se()}],"mask-image-x-to-pos":[{"mask-x-to":se()}],"mask-image-x-from-color":[{"mask-x-from":P()}],"mask-image-x-to-color":[{"mask-x-to":P()}],"mask-image-y-from-pos":[{"mask-y-from":se()}],"mask-image-y-to-pos":[{"mask-y-to":se()}],"mask-image-y-from-color":[{"mask-y-from":P()}],"mask-image-y-to-color":[{"mask-y-to":P()}],"mask-image-radial":[{"mask-radial":[K,G]}],"mask-image-radial-from-pos":[{"mask-radial-from":se()}],"mask-image-radial-to-pos":[{"mask-radial-to":se()}],"mask-image-radial-from-color":[{"mask-radial-from":P()}],"mask-image-radial-to-color":[{"mask-radial-to":P()}],"mask-image-radial-shape":[{"mask-radial":[`circle`,`ellipse`]}],"mask-image-radial-size":[{"mask-radial":[{closest:[`side`,`corner`],farthest:[`side`,`corner`]}]}],"mask-image-radial-pos":[{"mask-radial-at":b()}],"mask-image-conic-pos":[{"mask-conic":[Pd]}],"mask-image-conic-from-pos":[{"mask-conic-from":se()}],"mask-image-conic-to-pos":[{"mask-conic-to":se()}],"mask-image-conic-from-color":[{"mask-conic-from":P()}],"mask-image-conic-to-color":[{"mask-conic-to":P()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:F()}],"mask-repeat":[{mask:I()}],"mask-size":[{mask:ne()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,K,G]}],filter:[{filter:[``,`none`,K,G]}],blur:[{blur:ce()}],brightness:[{brightness:[Pd,K,G]}],contrast:[{contrast:[Pd,K,G]}],"drop-shadow":[{"drop-shadow":[``,`none`,p,rf,Zd]}],"drop-shadow-color":[{"drop-shadow":P()}],grayscale:[{grayscale:[``,Pd,K,G]}],"hue-rotate":[{"hue-rotate":[Pd,K,G]}],invert:[{invert:[``,Pd,K,G]}],saturate:[{saturate:[Pd,K,G]}],sepia:[{sepia:[``,Pd,K,G]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,K,G]}],"backdrop-blur":[{"backdrop-blur":ce()}],"backdrop-brightness":[{"backdrop-brightness":[Pd,K,G]}],"backdrop-contrast":[{"backdrop-contrast":[Pd,K,G]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,Pd,K,G]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Pd,K,G]}],"backdrop-invert":[{"backdrop-invert":[``,Pd,K,G]}],"backdrop-opacity":[{"backdrop-opacity":[Pd,K,G]}],"backdrop-saturate":[{"backdrop-saturate":[Pd,K,G]}],"backdrop-sepia":[{"backdrop-sepia":[``,Pd,K,G]}],"border-collapse":[{border:[`collapse`,`separate`]}],"border-spacing":[{"border-spacing":w()}],"border-spacing-x":[{"border-spacing-x":w()}],"border-spacing-y":[{"border-spacing-y":w()}],"table-layout":[{table:[`auto`,`fixed`]}],caption:[{caption:[`top`,`bottom`]}],transition:[{transition:[``,`all`,`colors`,`opacity`,`shadow`,`transform`,`none`,K,G]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[Pd,`initial`,K,G]}],ease:[{ease:[`linear`,`initial`,_,K,G]}],delay:[{delay:[Pd,K,G]}],animate:[{animate:[`none`,v,K,G]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[h,K,G]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:le()}],"rotate-x":[{"rotate-x":le()}],"rotate-y":[{"rotate-y":le()}],"rotate-z":[{"rotate-z":le()}],scale:[{scale:ue()}],"scale-x":[{"scale-x":ue()}],"scale-y":[{"scale-y":ue()}],"scale-z":[{"scale-z":ue()}],"scale-3d":[`scale-3d`],skew:[{skew:de()}],"skew-x":[{"skew-x":de()}],"skew-y":[{"skew-y":de()}],transform:[{transform:[K,G,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:fe()}],"translate-x":[{"translate-x":fe()}],"translate-y":[{"translate-y":fe()}],"translate-z":[{"translate-z":fe()}],"translate-none":[`translate-none`],accent:[{accent:P()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:P()}],"color-scheme":[{scheme:[`normal`,`dark`,`light`,`light-dark`,`only-dark`,`only-light`]}],cursor:[{cursor:[`auto`,`default`,`pointer`,`wait`,`text`,`move`,`help`,`not-allowed`,`none`,`context-menu`,`progress`,`cell`,`crosshair`,`vertical-text`,`alias`,`copy`,`no-drop`,`grab`,`grabbing`,`all-scroll`,`col-resize`,`row-resize`,`n-resize`,`e-resize`,`s-resize`,`w-resize`,`ne-resize`,`nw-resize`,`se-resize`,`sw-resize`,`ew-resize`,`ns-resize`,`nesw-resize`,`nwse-resize`,`zoom-in`,`zoom-out`,K,G]}],"field-sizing":[{"field-sizing":[`fixed`,`content`]}],"pointer-events":[{"pointer-events":[`auto`,`none`]}],resize:[{resize:[`none`,``,`y`,`x`]}],"scroll-behavior":[{scroll:[`auto`,`smooth`]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mbs":[{"scroll-mbs":w()}],"scroll-mbe":[{"scroll-mbe":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pbs":[{"scroll-pbs":w()}],"scroll-pbe":[{"scroll-pbe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"snap-align":[{snap:[`start`,`end`,`center`,`align-none`]}],"snap-stop":[{snap:[`normal`,`always`]}],"snap-type":[{snap:[`none`,`x`,`y`,`both`]}],"snap-strictness":[{snap:[`mandatory`,`proximity`]}],touch:[{touch:[`auto`,`none`,`manipulation`]}],"touch-x":[{"touch-pan":[`x`,`left`,`right`]}],"touch-y":[{"touch-pan":[`y`,`up`,`down`]}],"touch-pz":[`touch-pinch-zoom`],select:[{select:[`none`,`text`,`all`,`auto`]}],"will-change":[{"will-change":[`auto`,`scroll`,`contents`,`transform`,K,G]}],fill:[{fill:[`none`,...P()]}],"stroke-w":[{stroke:[Pd,Qd,Gd,Kd]}],stroke:[{stroke:[`none`,...P()]}],"forced-color-adjust":[{"forced-color-adjust":[`auto`,`none`]}]},conflictingClassGroups:{overflow:[`overflow-x`,`overflow-y`],overscroll:[`overscroll-x`,`overscroll-y`],inset:[`inset-x`,`inset-y`,`inset-bs`,`inset-be`,`start`,`end`,`top`,`right`,`bottom`,`left`],"inset-x":[`right`,`left`],"inset-y":[`top`,`bottom`],flex:[`basis`,`grow`,`shrink`],gap:[`gap-x`,`gap-y`],p:[`px`,`py`,`ps`,`pe`,`pbs`,`pbe`,`pt`,`pr`,`pb`,`pl`],px:[`pr`,`pl`],py:[`pt`,`pb`],m:[`mx`,`my`,`ms`,`me`,`mbs`,`mbe`,`mt`,`mr`,`mb`,`ml`],mx:[`mr`,`ml`],my:[`mt`,`mb`],size:[`w`,`h`],"font-size":[`leading`],"fvn-normal":[`fvn-ordinal`,`fvn-slashed-zero`,`fvn-figure`,`fvn-spacing`,`fvn-fraction`],"fvn-ordinal":[`fvn-normal`],"fvn-slashed-zero":[`fvn-normal`],"fvn-figure":[`fvn-normal`],"fvn-spacing":[`fvn-normal`],"fvn-fraction":[`fvn-normal`],"line-clamp":[`display`,`overflow`],rounded:[`rounded-s`,`rounded-e`,`rounded-t`,`rounded-r`,`rounded-b`,`rounded-l`,`rounded-ss`,`rounded-se`,`rounded-ee`,`rounded-es`,`rounded-tl`,`rounded-tr`,`rounded-br`,`rounded-bl`],"rounded-s":[`rounded-ss`,`rounded-es`],"rounded-e":[`rounded-se`,`rounded-ee`],"rounded-t":[`rounded-tl`,`rounded-tr`],"rounded-r":[`rounded-tr`,`rounded-br`],"rounded-b":[`rounded-br`,`rounded-bl`],"rounded-l":[`rounded-tl`,`rounded-bl`],"border-spacing":[`border-spacing-x`,`border-spacing-y`],"border-w":[`border-w-x`,`border-w-y`,`border-w-s`,`border-w-e`,`border-w-bs`,`border-w-be`,`border-w-t`,`border-w-r`,`border-w-b`,`border-w-l`],"border-w-x":[`border-w-r`,`border-w-l`],"border-w-y":[`border-w-t`,`border-w-b`],"border-color":[`border-color-x`,`border-color-y`,`border-color-s`,`border-color-e`,`border-color-bs`,`border-color-be`,`border-color-t`,`border-color-r`,`border-color-b`,`border-color-l`],"border-color-x":[`border-color-r`,`border-color-l`],"border-color-y":[`border-color-t`,`border-color-b`],translate:[`translate-x`,`translate-y`,`translate-none`],"translate-none":[`translate`,`translate-x`,`translate-y`,`translate-z`],"scroll-m":[`scroll-mx`,`scroll-my`,`scroll-ms`,`scroll-me`,`scroll-mbs`,`scroll-mbe`,`scroll-mt`,`scroll-mr`,`scroll-mb`,`scroll-ml`],"scroll-mx":[`scroll-mr`,`scroll-ml`],"scroll-my":[`scroll-mt`,`scroll-mb`],"scroll-p":[`scroll-px`,`scroll-py`,`scroll-ps`,`scroll-pe`,`scroll-pbs`,`scroll-pbe`,`scroll-pt`,`scroll-pr`,`scroll-pb`,`scroll-pl`],"scroll-px":[`scroll-pr`,`scroll-pl`],"scroll-py":[`scroll-pt`,`scroll-pb`],touch:[`touch-x`,`touch-y`,`touch-pz`],"touch-x":[`touch`],"touch-y":[`touch`],"touch-pz":[`touch`]},conflictingClassGroupModifiers:{"font-size":[`leading`]},orderSensitiveModifiers:[`*`,`**`,`after`,`backdrop`,`before`,`details-content`,`file`,`first-letter`,`first-line`,`marker`,`placeholder`,`selection`]}});function q(...e){return gf(Gu(e))}function _f(e){let t=Math.floor(e/1e3),n=Math.floor(t/60),r=Math.floor(n/60),i=Math.floor(r/24);return i>0?`${i}天${r%24}小时`:r>0?`${r}小时${n%60}分钟`:n>0?`${n}分钟${t%60}秒`:`${t}秒`}function vf(e){return e>=1e9?`${(e/1e9).toFixed(1)}B`:e>=1e6?`${(e/1e6).toFixed(1)}M`:e>=1e3?`${(e/1e3).toFixed(1)}K`:e.toString()}function yf(e){let t={active:`text-green-600 bg-green-50`,completed:`text-blue-600 bg-blue-50`,failed:`text-red-600 bg-red-50`,interrupted:`text-yellow-600 bg-yellow-50`,pending:`text-gray-600 bg-gray-50`};return t[e]||t.pending}function bf(e){return e?e.endsWith(`Z`)||/[+-]\d{2}:\d{2}$/.test(e)?new Date(e):new Date(e+`Z`):new Date}var xf=[{path:`/dashboard`,label:`仪表盘`,icon:gc},{path:`/projects`,label:`项目管理`,icon:uc},{path:`/sessions`,label:`会话管理`,icon:Es},{path:`/events`,label:`事件流`,icon:Fs},{path:`/pipelines`,label:`流水线`,icon:fc},{path:`/quality`,label:`质量门禁`,icon:Ic},{path:`/knowledge`,label:`知识图谱`,icon:Ps},{path:`/skills`,label:`技能管理`,icon:wc},{path:`/conventions`,label:`规范管理`,icon:js},{path:`/node-types`,label:`节点类型`,icon:Ns},{path:`/analytics`,label:`数据分析`,icon:Is},{path:`/config`,label:`系统配置`,icon:Fc}];function Sf({children:e}){let[t,n]=(0,R.useState)(()=>localStorage.getItem(`sidebar-collapsed`)===`true`),r=jn();(0,R.useEffect)(()=>{localStorage.setItem(`sidebar-collapsed`,String(t))},[t]);let{data:i}=lt({queryKey:[`health`],queryFn:()=>il().then(e=>e.data),refetchInterval:15e3}),a=xf.find(e=>r.pathname.startsWith(e.path));return(0,z.jsxs)(`div`,{className:`flex min-h-screen bg-gray-50`,children:[(0,z.jsxs)(`aside`,{className:q(`fixed top-0 left-0 bottom-0 z-50 flex flex-col transition-all duration-300`,`bg-gradient-to-b from-slate-900 to-slate-800`,t?`w-16`:`w-60`),children:[(0,z.jsxs)(`div`,{className:q(`flex items-center border-b border-white/10 h-16`,t?`justify-center px-2`:`justify-between px-5`),children:[!t&&(0,z.jsxs)(`div`,{className:`flex items-center gap-2.5`,children:[(0,z.jsx)(`div`,{className:`flex items-center justify-center w-8 h-8 rounded-lg bg-gradient-to-br from-blue-500 to-purple-600`,children:(0,z.jsx)(Qc,{className:`h-5 w-5 text-white`})}),(0,z.jsx)(`span`,{className:`text-white font-bold text-lg tracking-tight`,children:`Forge`})]}),(0,z.jsx)(`button`,{onClick:()=>n(!t),className:`p-1.5 rounded-lg text-white/60 hover:text-white hover:bg-white/10 transition-colors`,children:t?(0,z.jsx)(xc,{className:`h-5 w-5`}):(0,z.jsx)(Bs,{className:`h-5 w-5`})})]}),(0,z.jsx)(`nav`,{className:`flex-1 py-4 space-y-1 px-2`,children:xf.map(e=>(0,z.jsxs)(ei,{to:e.path,className:({isActive:e})=>q(`flex items-center gap-3 rounded-lg transition-all duration-200`,t?`justify-center p-3`:`px-3 py-2.5`,e?`bg-blue-600/20 text-blue-400`:`text-white/60 hover:text-white hover:bg-white/5`),children:[(0,z.jsx)(e.icon,{className:`h-5 w-5 flex-shrink-0`}),!t&&(0,z.jsx)(`span`,{className:`text-sm font-medium`,children:e.label})]},e.path))}),(0,z.jsx)(`div`,{className:q(`border-t border-white/10 py-4`,t?`px-2`:`px-5`),children:(0,z.jsxs)(`div`,{className:q(`flex items-center gap-2`,t?`justify-center`:``),children:[(0,z.jsx)(`div`,{className:q(`w-2 h-2 rounded-full`,i?.status===`ok`?`bg-green-400 animate-pulse`:`bg-red-400`)}),!t&&(0,z.jsx)(`span`,{className:`text-xs text-white/40`,children:i?.status===`ok`?`Daemon 运行中`:`连接断开`})]})})]}),(0,z.jsxs)(`main`,{className:q(`flex-1 transition-all duration-300`,t?`ml-16`:`ml-60`),children:[(0,z.jsxs)(`header`,{className:`sticky top-0 z-40 bg-white/80 backdrop-blur-md border-b border-gray-200/50 h-16 flex items-center justify-between px-8`,children:[(0,z.jsx)(`h1`,{className:`text-xl font-semibold text-gray-900`,children:a?.label||`Claude Forge`}),(0,z.jsxs)(`div`,{className:`flex items-center gap-4`,children:[(0,z.jsxs)(`button`,{className:`hidden sm:flex items-center gap-2 px-3 py-1.5 text-sm text-gray-600 hover:text-gray-900 hover:bg-gray-100 rounded-lg transition-colors`,onClick:()=>{let e=new KeyboardEvent(`keydown`,{key:`k`,metaKey:!0});window.dispatchEvent(e)},children:[(0,z.jsx)(Xs,{className:`h-4 w-4`}),(0,z.jsx)(`span`,{children:`命令面板`}),(0,z.jsx)(`kbd`,{className:`px-2 py-0.5 text-xs bg-gray-100 rounded border border-gray-200`,children:`⌘K`})]}),(0,z.jsxs)(`span`,{className:`text-sm text-gray-500`,children:[`v`,`3.6.11`]}),(0,z.jsxs)(`div`,{className:q(`flex items-center gap-2 px-3 py-1.5 rounded-full text-xs font-semibold`,i?.status===`ok`?`bg-green-50 text-green-700 border border-green-200`:`bg-red-50 text-red-700 border border-red-200`),children:[(0,z.jsx)(`div`,{className:q(`w-1.5 h-1.5 rounded-full`,i?.status===`ok`?`bg-green-500`:`bg-red-500`)}),i?.status===`ok`?`在线`:`离线`]})]})]}),(0,z.jsx)(`div`,{className:`p-8 overflow-x-hidden`,children:e})]})]})}var Cf=(0,R.createContext)({});function wf(e){let t=(0,R.useRef)(null);return t.current===null&&(t.current=e()),t.current}var Tf=typeof window<`u`?R.useLayoutEffect:R.useEffect,Ef=(0,R.createContext)(null);function Df(e,t){e.indexOf(t)===-1&&e.push(t)}function Of(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}var kf=(e,t,n)=>n>t?t:n<e?e:n,Af={},jf=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function Mf(e){return typeof e==`object`&&!!e}var Nf=e=>/^0[^.\s]+$/u.test(e);function Pf(e){let t;return()=>(t===void 0&&(t=e()),t)}var Ff=e=>e,If=(e,t)=>n=>t(e(n)),Lf=(...e)=>e.reduce(If),Rf=(e,t,n)=>{let r=t-e;return r===0?1:(n-e)/r},zf=class{constructor(){this.subscriptions=[]}add(e){return Df(this.subscriptions,e),()=>Of(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r)if(r===1)this.subscriptions[0](e,t,n);else for(let i=0;i<r;i++){let r=this.subscriptions[i];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}},Bf=e=>e*1e3,Vf=e=>e/1e3;function Hf(e,t){return t?1e3/t*e:0}var Uf=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Wf=1e-7,Gf=12;function Kf(e,t,n,r,i){let a,o,s=0;do o=t+(n-t)/2,a=Uf(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>Wf&&++s<Gf);return o}function qf(e,t,n,r){if(e===t&&n===r)return Ff;let i=t=>Kf(t,0,1,e,n);return e=>e===0||e===1?e:Uf(i(e),t,r)}var Jf=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Yf=e=>t=>1-e(1-t),Xf=qf(.33,1.53,.69,.99),Zf=Yf(Xf),Qf=Jf(Zf),$f=e=>e>=1?1:(e*=2)<1?.5*Zf(e):.5*(2-2**(-10*(e-1))),ep=e=>1-Math.sin(Math.acos(e)),tp=Yf(ep),np=Jf(ep),rp=qf(.42,0,1,1),ip=qf(0,0,.58,1),ap=qf(.42,0,.58,1),op=e=>Array.isArray(e)&&typeof e[0]!=`number`,sp=e=>Array.isArray(e)&&typeof e[0]==`number`,cp={linear:Ff,easeIn:rp,easeInOut:ap,easeOut:ip,circIn:ep,circInOut:np,circOut:tp,backIn:Zf,backInOut:Qf,backOut:Xf,anticipate:$f},lp=e=>typeof e==`string`,up=e=>{if(sp(e)){e.length;let[t,n,r,i]=e;return qf(t,n,r,i)}else if(lp(e))return cp[e],`${e}`,cp[e];return e},dp=[`setup`,`read`,`resolveKeyframes`,`preUpdate`,`update`,`preRender`,`render`,`postRender`],fp={value:null,addProjectionMetrics:null};function pp(e,t){let n=new Set,r=new Set,i=!1,a=!1,o=new WeakSet,s={delta:0,timestamp:0,isProcessing:!1},c=0;function l(t){o.has(t)&&(u.schedule(t),e()),c++,t(s)}let u={schedule:(e,t=!1,a=!1)=>{let s=a&&i?n:r;return t&&o.add(e),s.add(e),e},cancel:e=>{r.delete(e),o.delete(e)},process:e=>{if(s=e,i){a=!0;return}i=!0;let o=n;n=r,r=o,n.forEach(l),t&&fp.value&&fp.value.frameloop[t].push(c),c=0,n.clear(),i=!1,a&&(a=!1,u.process(e))}};return u}var mp=40;function hp(e,t){let n=!1,r=!0,i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,o=dp.reduce((e,n)=>(e[n]=pp(a,t?n:void 0),e),{}),{setup:s,read:c,resolveKeyframes:l,preUpdate:u,update:d,preRender:f,render:p,postRender:m}=o,h=()=>{let a=Af.useManualTiming,o=a?i.timestamp:performance.now();n=!1,a||(i.delta=r?1e3/60:Math.max(Math.min(o-i.timestamp,mp),1)),i.timestamp=o,i.isProcessing=!0,s.process(i),c.process(i),l.process(i),u.process(i),d.process(i),f.process(i),p.process(i),m.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(h))},g=()=>{n=!0,r=!0,i.isProcessing||e(h)};return{schedule:dp.reduce((e,t)=>{let r=o[t];return e[t]=(e,t=!1,i=!1)=>(n||g(),r.schedule(e,t,i)),e},{}),cancel:e=>{for(let t=0;t<dp.length;t++)o[dp[t]].cancel(e)},state:i,steps:o}}var{schedule:gp,cancel:_p,state:vp,steps:yp}=hp(typeof requestAnimationFrame<`u`?requestAnimationFrame:Ff,!0),bp;function xp(){bp=void 0}var Sp={now:()=>(bp===void 0&&Sp.set(vp.isProcessing||Af.useManualTiming?vp.timestamp:performance.now()),bp),set:e=>{bp=e,queueMicrotask(xp)}},Cp={layout:0,mainThread:0,waapi:0},wp=e=>t=>typeof t==`string`&&t.startsWith(e),Tp=wp(`--`),Ep=wp(`var(--`),Dp=e=>Ep(e)?Op.test(e.split(`/*`)[0].trim()):!1,Op=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function kp(e){return typeof e==`string`?e.split(`/*`)[0].includes(`var(--`):!1}var Ap={test:e=>typeof e==`number`,parse:parseFloat,transform:e=>e},jp={...Ap,transform:e=>kf(0,1,e)},Mp={...Ap,default:1},Np=e=>Math.round(e*1e5)/1e5,Pp=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Fp(e){return e==null}var Ip=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Lp=(e,t)=>n=>!!(typeof n==`string`&&Ip.test(n)&&n.startsWith(e)||t&&!Fp(n)&&Object.prototype.hasOwnProperty.call(n,t)),Rp=(e,t,n)=>r=>{if(typeof r!=`string`)return r;let[i,a,o,s]=r.match(Pp);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s===void 0?1:parseFloat(s)}},zp=e=>kf(0,255,e),Bp={...Ap,transform:e=>Math.round(zp(e))},Vp={test:Lp(`rgb`,`red`),parse:Rp(`red`,`green`,`blue`),transform:({red:e,green:t,blue:n,alpha:r=1})=>`rgba(`+Bp.transform(e)+`, `+Bp.transform(t)+`, `+Bp.transform(n)+`, `+Np(jp.transform(r))+`)`};function Hp(e){let t=``,n=``,r=``,i=``;return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}var Up={test:Lp(`#`),parse:Hp,transform:Vp.transform},Wp=e=>({test:t=>typeof t==`string`&&t.endsWith(e)&&t.split(` `).length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Gp=Wp(`deg`),Kp=Wp(`%`),J=Wp(`px`),qp=Wp(`vh`),Jp=Wp(`vw`),Yp={...Kp,parse:e=>Kp.parse(e)/100,transform:e=>Kp.transform(e*100)},Xp={test:Lp(`hsl`,`hue`),parse:Rp(`hue`,`saturation`,`lightness`),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>`hsla(`+Math.round(e)+`, `+Kp.transform(Np(t))+`, `+Kp.transform(Np(n))+`, `+Np(jp.transform(r))+`)`},Zp={test:e=>Vp.test(e)||Up.test(e)||Xp.test(e),parse:e=>Vp.test(e)?Vp.parse(e):Xp.test(e)?Xp.parse(e):Up.parse(e),transform:e=>typeof e==`string`?e:e.hasOwnProperty(`red`)?Vp.transform(e):Xp.transform(e),getAnimatableNone:e=>{let t=Zp.parse(e);return t.alpha=0,Zp.transform(t)}},Qp=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function eee(e){return isNaN(e)&&typeof e==`string`&&(e.match(Pp)?.length||0)+(e.match(Qp)?.length||0)>0}var $p=`number`,em=`color`,tm=`var`,nm=`var(`,rm="${}",im=/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 am(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],a=0;return{values:n,split:t.replace(im,e=>(Zp.test(e)?(r.color.push(a),i.push(em),n.push(Zp.parse(e))):e.startsWith(nm)?(r.var.push(a),i.push(tm),n.push(e)):(r.number.push(a),i.push($p),n.push(parseFloat(e))),++a,rm)).split(rm),indexes:r,types:i}}function tee(e){return am(e).values}function om({split:e,types:t}){let n=e.length;return r=>{let i=``;for(let a=0;a<n;a++)if(i+=e[a],r[a]!==void 0){let e=t[a];e===$p?i+=Np(r[a]):e===em?i+=Zp.transform(r[a]):i+=r[a]}return i}}function sm(e){return om(am(e))}var cm=e=>typeof e==`number`?0:Zp.test(e)?Zp.getAnimatableNone(e):e,lm=(e,t)=>typeof e==`number`?t?.trim().endsWith(`/`)?e:0:cm(e);function um(e){let t=am(e);return om(t)(t.values.map((e,n)=>lm(e,t.split[n])))}var dm={test:eee,parse:tee,createTransformer:sm,getAnimatableNone:um};function fm(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function pm({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,o=0;if(!t)i=a=o=n;else{let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=fm(s,r,e+1/3),a=fm(s,r,e),o=fm(s,r,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function mm(e,t){return n=>n>0?t:e}var hm=(e,t,n)=>e+(t-e)*n,gm=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},_m=[Up,Vp,Xp],nee=e=>_m.find(t=>t.test(e));function vm(e){let t=nee(e);if(`${e}`,!t)return!1;let n=t.parse(e);return t===Xp&&(n=pm(n)),n}var ym=(e,t)=>{let n=vm(e),r=vm(t);if(!n||!r)return mm(e,t);let i={...n};return e=>(i.red=gm(n.red,r.red,e),i.green=gm(n.green,r.green,e),i.blue=gm(n.blue,r.blue,e),i.alpha=hm(n.alpha,r.alpha,e),Vp.transform(i))},bm=new Set([`none`,`hidden`]);function xm(e,t){return bm.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Sm(e,t){return n=>hm(e,t,n)}function Cm(e){return typeof e==`number`?Sm:typeof e==`string`?Dp(e)?mm:Zp.test(e)?ym:Dm:Array.isArray(e)?wm:typeof e==`object`?Zp.test(e)?ym:Tm:mm}function wm(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>Cm(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function Tm(e,t){let n={...e,...t},r={};for(let i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=Cm(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}function Em(e,t){let n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){let a=t.types[i],o=e.indexes[a][r[a]];n[i]=e.values[o]??0,r[a]++}return n}var Dm=(e,t)=>{let n=dm.createTransformer(t),r=am(e),i=am(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?bm.has(e)&&!i.values.length||bm.has(t)&&!r.values.length?xm(e,t):Lf(wm(Em(r,i),i.values),n):(`${e}${t}`,mm(e,t))};function Om(e,t,n){return typeof e==`number`&&typeof t==`number`&&typeof n==`number`?hm(e,t,n):Cm(e)(e,t)}var km=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>gp.update(t,e),stop:()=>_p(t),now:()=>vp.isProcessing?vp.timestamp:Sp.now()}},Am=(e,t,n=10)=>{let r=``,i=Math.max(Math.round(t/n),2);for(let t=0;t<i;t++)r+=Math.round(e(t/(i-1))*1e4)/1e4+`, `;return`linear(${r.substring(0,r.length-2)})`},jm=2e4;function Mm(e){let t=0,n=e.next(t);for(;!n.done&&t<2e4;)t+=50,n=e.next(t);return t>=2e4?1/0:t}function Nm(e,t=100,n){let r=n({...e,keyframes:[0,t]}),i=Math.min(Mm(r),jm);return{type:`keyframes`,ease:e=>r.next(i*e).value/t,duration:Vf(i)}}var Pm={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 Fm(e,t){return e*Math.sqrt(1-t*t)}var Im=12;function Lm(e,t,n){let r=n;for(let n=1;n<Im;n++)r-=e(r)/t(r);return r}var Rm=.001;function zm({duration:e=Pm.duration,bounce:t=Pm.bounce,velocity:n=Pm.velocity,mass:r=Pm.mass}){let i,a;Pm.maxDuration;let o=1-t;o=kf(Pm.minDamping,Pm.maxDamping,o),e=kf(Pm.minDuration,Pm.maxDuration,Vf(e)),o<1?(i=t=>{let r=t*o,i=r*e,a=r-n,s=Fm(t,o),c=Math.exp(-i);return Rm-a/s*c},a=t=>{let r=t*o*e,a=r*n+n,s=o**2*t**2*e,c=Math.exp(-r),l=Fm(t**2,o);return(-i(t)+Rm>0?-1:1)*((a-s)*c)/l}):(i=t=>{let r=Math.exp(-t*e),i=(t-n)*e+1;return-Rm+r*i},a=t=>Math.exp(-t*e)*((n-t)*(e*e)));let s=5/e,c=Lm(i,a,s);if(e=Bf(e),isNaN(c))return{stiffness:Pm.stiffness,damping:Pm.damping,duration:e};{let t=c**2*r;return{stiffness:t,damping:o*2*Math.sqrt(r*t),duration:e}}}var Bm=[`duration`,`bounce`],Vm=[`stiffness`,`damping`,`mass`];function Hm(e,t){return t.some(t=>e[t]!==void 0)}function Um(e){let t={velocity:Pm.velocity,stiffness:Pm.stiffness,damping:Pm.damping,mass:Pm.mass,isResolvedFromDuration:!1,...e};if(!Hm(e,Vm)&&Hm(e,Bm))if(t.velocity=0,e.visualDuration){let n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*kf(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:Pm.mass,stiffness:i,damping:a}}else{let n=zm({...e,velocity:0});t={...t,...n,mass:Pm.mass},t.isResolvedFromDuration=!0}return t}function Wm(e=Pm.visualDuration,t=Pm.bounce){let n=typeof e==`object`?e:{visualDuration:e,keyframes:[0,1],bounce:t},{restSpeed:r,restDelta:i}=n,a=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],s={done:!1,value:a},{stiffness:c,damping:l,mass:u,duration:d,velocity:f,isResolvedFromDuration:p}=Um({...n,velocity:-Vf(n.velocity||0)}),m=f||0,h=l/(2*Math.sqrt(c*u)),g=o-a,_=Vf(Math.sqrt(c/u)),v=Math.abs(g)<5;r||=v?Pm.restSpeed.granular:Pm.restSpeed.default,i||=v?Pm.restDelta.granular:Pm.restDelta.default;let y,b,x,S,C,w;if(h<1)x=Fm(_,h),S=(m+h*_*g)/x,y=e=>o-Math.exp(-h*_*e)*(S*Math.sin(x*e)+g*Math.cos(x*e)),C=h*_*S+g*x,w=h*_*g-S*x,b=e=>Math.exp(-h*_*e)*(C*Math.sin(x*e)+w*Math.cos(x*e));else if(h===1){y=e=>o-Math.exp(-_*e)*(g+(m+_*g)*e);let e=m+_*g;b=t=>Math.exp(-_*t)*(_*e*t-m)}else{let e=_*Math.sqrt(h*h-1);y=t=>{let n=Math.exp(-h*_*t),r=Math.min(e*t,300);return o-n*((m+h*_*g)*Math.sinh(r)+e*g*Math.cosh(r))/e};let t=(m+h*_*g)/e,n=h*_*t-g*e,r=h*_*g-t*e;b=t=>{let i=Math.exp(-h*_*t),a=Math.min(e*t,300);return i*(n*Math.sinh(a)+r*Math.cosh(a))}}let T={calculatedDuration:p&&d||null,velocity:e=>Bf(b(e)),next:e=>{if(!p&&h<1){let t=Math.exp(-h*_*e),n=Math.sin(x*e),a=Math.cos(x*e),c=o-t*(S*n+g*a),l=Bf(t*(C*n+w*a));return s.done=Math.abs(l)<=r&&Math.abs(o-c)<=i,s.value=s.done?o:c,s}let t=y(e);if(p)s.done=e>=d;else{let n=Bf(b(e));s.done=Math.abs(n)<=r&&Math.abs(o-t)<=i}return s.value=s.done?o:t,s},toString:()=>{let e=Math.min(Mm(T),jm),t=Am(t=>T.next(e*t).value,e,30);return e+`ms `+t},toTransition:()=>{}};return T}Wm.applyToOptions=e=>{let t=Nm(e,100,Wm);return e.ease=t.ease,e.duration=Bf(t.duration),e.type=`keyframes`,e};var ree=5;function Gm(e,t,n){let r=Math.max(t-ree,0);return Hf(n-e(r),t-r)}function Km({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:s,max:c,restDelta:l=.5,restSpeed:u}){let d=e[0],f={done:!1,value:d},p=e=>s!==void 0&&e<s||c!==void 0&&e>c,m=e=>s===void 0?c:c===void 0||Math.abs(s-e)<Math.abs(c-e)?s:c,h=n*t,g=d+h,_=o===void 0?g:o(g);_!==g&&(h=_-d);let v=e=>-h*Math.exp(-e/r),y=e=>_+v(e),b=e=>{let t=v(e),n=y(e);f.done=Math.abs(t)<=l,f.value=f.done?_:n},x,S,C=e=>{p(f.value)&&(x=e,S=Wm({keyframes:[f.value,m(f.value)],velocity:Gm(y,e,f.value),damping:i,stiffness:a,restDelta:l,restSpeed:u}))};return C(0),{calculatedDuration:null,next:e=>{let t=!1;return!S&&x===void 0&&(t=!0,b(e),C(e)),x!==void 0&&e>=x?S.next(e-x):(!t&&b(e),f)}}}function iee(e,t,n){let r=[],i=n||Af.mix||Om,a=e.length-1;for(let n=0;n<a;n++){let a=i(e[n],e[n+1]);t&&(a=Lf(Array.isArray(t)?t[n]||Ff:t,a)),r.push(a)}return r}function aee(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let a=e.length;if(t.length,a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];let o=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=iee(t,r,i),c=s.length,l=n=>{if(o&&n<e[0])return t[0];let r=0;if(c>1)for(;r<e.length-2&&!(n<e[r+1]);r++);let i=Rf(e[r],e[r+1],n);return s[r](i)};return n?t=>l(kf(e[0],e[a-1],t)):l}function oee(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=Rf(0,t,r);e.push(hm(n,1,i))}}function see(e){let t=[0];return oee(t,e.length-1),t}function cee(e,t){return e.map(e=>e*t)}function lee(e,t){return e.map(()=>t||ap).splice(0,e.length-1)}function qm({duration:e=300,keyframes:t,times:n,ease:r=`easeInOut`}){let i=op(r)?r.map(up):up(r),a={done:!1,value:t[0]},o=aee(cee(n&&n.length===t.length?n:see(t),e),t,{ease:Array.isArray(i)?i:lee(t,i)});return{calculatedDuration:e,next:t=>(a.value=o(t),a.done=t>=e,a)}}var uee=e=>e!==null;function Jm(e,{repeat:t,repeatType:n=`loop`},r,i=1){let a=e.filter(uee),o=i<0||t&&n!==`loop`&&t%2==1?0:a.length-1;return!o||r===void 0?a[o]:r}var Ym={decay:Km,inertia:Km,tween:qm,keyframes:qm,spring:Wm};function Xm(e){typeof e.type==`string`&&(e.type=Ym[e.type])}var Zm=class{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}},Qm=e=>e/100,$m=class extends Zm{constructor(e){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=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==Sp.now()&&this.tick(Sp.now()),this.isStopped=!0,this.state!==`idle`&&(this.teardown(),this.options.onStop?.())},Cp.mainThread++,this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){let{options:e}=this;Xm(e);let{type:t=qm,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=e,{keyframes:o}=e,s=t||qm;s!==qm&&typeof o[0]!=`number`&&(this.mixKeyframes=Lf(Qm,Om(o[0],o[1])),o=[0,100]);let c=s({...e,keyframes:o});i===`mirror`&&(this.mirroredGenerator=s({...e,keyframes:[...o].reverse(),velocity:-a})),c.calculatedDuration===null&&(c.calculatedDuration=Mm(c));let{calculatedDuration:l}=c;this.calculatedDuration=l,this.resolvedDuration=l+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=c}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime===null?this.currentTime=t:this.currentTime=this.holdTime}tick(e,t=!1){let{generator:n,totalDuration:r,mixKeyframes:i,mirroredGenerator:a,resolvedDuration:o,calculatedDuration:s}=this;if(this.startTime===null)return n.next(0);let{delay:c=0,keyframes:l,repeat:u,repeatType:d,repeatDelay:f,type:p,onUpdate:m,finalKeyframe:h}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-r/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let g=this.currentTime-c*(this.playbackSpeed>=0?1:-1),_=this.playbackSpeed>=0?g<0:g>r;this.currentTime=Math.max(g,0),this.state===`finished`&&this.holdTime===null&&(this.currentTime=r);let v=this.currentTime,y=n;if(u){let e=Math.min(this.currentTime,r)/o,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),n===1&&t--,t=Math.min(t,u+1),t%2&&(d===`reverse`?(n=1-n,f&&(n-=f/o)):d===`mirror`&&(y=a)),v=kf(0,1,n)*o}let b;_?(this.delayState.value=l[0],b=this.delayState):b=y.next(v),i&&!_&&(b.value=i(b.value));let{done:x}=b;!_&&s!==null&&(x=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let S=this.holdTime===null&&(this.state===`finished`||this.state===`running`&&x);return S&&p!==Km&&(b.value=Jm(l,this.options,h,this.speed)),m&&m(b.value),S&&this.finish(),b}then(e,t){return this.finished.then(e,t)}get duration(){return Vf(this.calculatedDuration)}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+Vf(e)}get time(){return Vf(this.currentTime)}set time(e){e=Bf(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state=`paused`,this.holdTime=e,this.tick(e))}getGeneratorVelocity(){let e=this.currentTime;if(e<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(e);let t=this.generator.next(e).value;return Gm(e=>this.generator.next(e).value,e,t)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;t&&this.driver&&this.updateTime(Sp.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=Vf(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=km,startTime:t}=this.options;this.driver||=e(e=>this.tick(e)),this.options.onPlay?.();let n=this.driver.now();this.state===`finished`?(this.updateFinished(),this.startTime=n):this.holdTime===null?this.startTime||=t??n:this.startTime=n-this.holdTime,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(Sp.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,Cp.mainThread--}stopDriver(){this.driver&&=(this.driver.stop(),void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type=`keyframes`,this.options.ease=`linear`,this.initAnimation()),this.driver?.stop(),e.observe(this)}};function eh(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}var th=e=>e*180/Math.PI,nh=e=>ih(th(Math.atan2(e[1],e[0]))),rh={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:nh,rotateZ:nh,skewX:e=>th(Math.atan(e[1])),skewY:e=>th(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},ih=e=>(e%=360,e<0&&(e+=360),e),ah=nh,oh=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),sh=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),ch={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:oh,scaleY:sh,scale:e=>(oh(e)+sh(e))/2,rotateX:e=>ih(th(Math.atan2(e[6],e[5]))),rotateY:e=>ih(th(Math.atan2(-e[2],e[0]))),rotateZ:ah,rotate:ah,skewX:e=>th(Math.atan(e[4])),skewY:e=>th(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function lh(e){return+!!e.includes(`scale`)}function uh(e,t){if(!e||e===`none`)return lh(t);let n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),r,i;if(n)r=ch,i=n;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=rh,i=t}if(!i)return lh(t);let a=r[t],o=i[1].split(`,`).map(fh);return typeof a==`function`?a(o):o[a]}var dh=(e,t)=>{let{transform:n=`none`}=getComputedStyle(e);return uh(n,t)};function fh(e){return parseFloat(e.trim())}var ph=[`transformPerspective`,`x`,`y`,`z`,`translateX`,`translateY`,`translateZ`,`scale`,`scaleX`,`scaleY`,`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skew`,`skewX`,`skewY`],mh=new Set(ph),hh=e=>e===Ap||e===J,gh=new Set([`x`,`y`,`z`]),_h=ph.filter(e=>!gh.has(e));function vh(e){let t=[];return _h.forEach(n=>{let r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(+!!n.startsWith(`scale`)))}),t}var yh={width:({x:e},{paddingLeft:t=`0`,paddingRight:n=`0`,boxSizing:r})=>{let i=e.max-e.min;return r===`border-box`?i:i-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t=`0`,paddingBottom:n=`0`,boxSizing:r})=>{let i=e.max-e.min;return r===`border-box`?i:i-parseFloat(t)-parseFloat(n)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>uh(t,`x`),y:(e,{transform:t})=>uh(t,`y`)};yh.translateX=yh.x,yh.translateY=yh.y;var bh=new Set,xh=!1,Sh=!1,Ch=!1;function wh(){if(Sh){let e=Array.from(bh).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{let t=vh(e);t.length&&(n.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=n.get(e);t&&t.forEach(([t,n])=>{e.getValue(t)?.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{e.suspendedScrollY!==void 0&&window.scrollTo(0,e.suspendedScrollY)})}Sh=!1,xh=!1,bh.forEach(e=>e.complete(Ch)),bh.clear()}function Th(){bh.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Sh=!0)})}function Eh(){Ch=!0,Th(),wh(),Ch=!1}var Dh=class{constructor(e,t,n,r,i,a=!1){this.state=`pending`,this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=a}scheduleResolve(){this.state=`scheduled`,this.isAsync?(bh.add(this),xh||(xh=!0,gp.read(Th),gp.resolveKeyframes(wh))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(e[0]===null){let i=r?.get(),a=e[e.length-1];if(i!==void 0)e[0]=i;else if(n&&t){let r=n.readValue(t,a);r!=null&&(e[0]=r)}e[0]===void 0&&(e[0]=a),r&&i===void 0&&r.set(e[0])}eh(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state=`complete`,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),bh.delete(this)}cancel(){this.state===`scheduled`&&(bh.delete(this),this.state=`pending`)}resume(){this.state===`pending`&&this.scheduleResolve()}},Oh=e=>e.startsWith(`--`);function kh(e,t,n){Oh(t)?e.style.setProperty(t,n):e.style[t]=n}var Ah={};function jh(e,t){let n=Pf(e);return()=>Ah[t]??n()}var dee=jh(()=>window.ScrollTimeline!==void 0,`scrollTimeline`),Mh=jh(()=>{try{document.createElement(`div`).animate({opacity:0},{easing:`linear(0, 1)`})}catch{return!1}return!0},`linearEasing`),Nh=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Ph={linear:`linear`,ease:`ease`,easeIn:`ease-in`,easeOut:`ease-out`,easeInOut:`ease-in-out`,circIn:Nh([0,.65,.55,1]),circOut:Nh([.55,0,1,.45]),backIn:Nh([.31,.01,.66,-.59]),backOut:Nh([.33,1.53,.69,.99])};function Fh(e,t){if(e)return typeof e==`function`?Mh()?Am(e,t):`ease-out`:sp(e)?Nh(e):Array.isArray(e)?e.map(e=>Fh(e,t)||Ph.easeOut):Ph[e]}function fee(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:o=`loop`,ease:s=`easeOut`,times:c}={},l=void 0){let u={[t]:n};c&&(u.offset=c);let d=Fh(s,i);Array.isArray(d)&&(u.easing=d),fp.value&&Cp.waapi++;let f={delay:r,duration:i,easing:Array.isArray(d)?`linear`:d,fill:`both`,iterations:a+1,direction:o===`reverse`?`alternate`:`normal`};l&&(f.pseudoElement=l);let p=e.animate(u,f);return fp.value&&p.finished.finally(()=>{Cp.waapi--}),p}function Ih(e){return typeof e==`function`&&`applyToOptions`in e}function pee({type:e,...t}){return Ih(e)&&Mh()?e.applyToOptions(t):(t.duration??=300,t.ease??=`easeOut`,t)}var Lh=class extends Zm{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;let{element:t,name:n,keyframes:r,pseudoElement:i,allowFlatten:a=!1,finalKeyframe:o,onComplete:s}=e;this.isPseudoElement=!!i,this.allowFlatten=a,this.options=e,e.type;let c=pee(e);this.animation=fee(t,n,r,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=Jm(r,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(e),kh(t,n,e),this.animation.cancel()}s?.(),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;let{state:e}=this;e===`idle`||e===`finished`||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){let e=this.animation.effect?.getComputedTiming?.().duration||0;return Vf(Number(e))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+Vf(e)}get time(){return Vf(Number(this.animation.currentTime)||0)}set time(e){let t=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=Bf(e),t&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime===null?this.animation.playState:`finished`}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:t,rangeEnd:n,observe:r}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:`linear`}),this.animation.onfinish=null,e&&dee()?(this.animation.timeline=e,t&&(this.animation.rangeStart=t),n&&(this.animation.rangeEnd=n),Ff):r(this)}},Rh={anticipate:$f,backInOut:Qf,circInOut:np};function mee(e){return e in Rh}function hee(e){typeof e.ease==`string`&&mee(e.ease)&&(e.ease=Rh[e.ease])}var zh=10,gee=class extends Lh{constructor(e){hee(e),Xm(e),super(e),e.startTime!==void 0&&e.autoplay!==!1&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:n,onComplete:r,element:i,...a}=this.options;if(!t)return;if(e!==void 0){t.set(e);return}let o=new $m({...a,autoplay:!1}),s=Math.max(zh,Sp.now()-this.startTime),c=kf(0,zh,s-zh),l=o.sample(s).value,{name:u}=this.options;i&&u&&kh(i,u,l),t.setWithVelocity(o.sample(Math.max(0,s-c)).value,l,c),o.stop()}},Bh=(e,t)=>t===`zIndex`?!1:!!(typeof e==`number`||Array.isArray(e)||typeof e==`string`&&(dm.test(e)||e===`0`)&&!e.startsWith(`url(`));function _ee(e){let t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function vee(e,t,n,r){let i=e[0];if(i===null)return!1;if(t===`display`||t===`visibility`)return!0;let a=e[e.length-1],o=Bh(i,t),s=Bh(a,t);return`${t}${i}${a}${o?a:i}`,!o||!s?!1:_ee(e)||(n===`spring`||Ih(n))&&r}function Vh(e){e.duration=0,e.type=`keyframes`}var Hh=new Set([`opacity`,`clipPath`,`filter`,`transform`]),yee=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function bee(e){for(let t=0;t<e.length;t++)if(typeof e[t]==`string`&&yee.test(e[t]))return!0;return!1}var xee=new Set([`color`,`backgroundColor`,`outlineColor`,`fill`,`stroke`,`borderColor`,`borderTopColor`,`borderRightColor`,`borderBottomColor`,`borderLeftColor`]),See=Pf(()=>Object.hasOwnProperty.call(Element.prototype,`animate`));function Cee(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:o,keyframes:s}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:c,transformTemplate:l}=t.owner.getProps();return See()&&n&&(Hh.has(n)||xee.has(n)&&bee(s))&&(n!==`transform`||!l)&&!c&&!r&&i!==`mirror`&&a!==0&&o!==`inertia`}var Uh=40,Wh=class extends Zm{constructor({autoplay:e=!0,delay:t=0,type:n=`keyframes`,repeat:r=0,repeatDelay:i=0,repeatType:a=`loop`,keyframes:o,name:s,motionValue:c,element:l,...u}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=Sp.now();let d={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:i,repeatType:a,name:s,motionValue:c,element:l,...u};this.keyframeResolver=new(l?.KeyframeResolver||Dh)(o,(e,t,n)=>this.onKeyframesResolved(e,t,d,!n),s,c,l),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,r){this.keyframeResolver=void 0;let{name:i,type:a,velocity:o,delay:s,isHandoff:c,onUpdate:l}=n;this.resolvedAt=Sp.now();let u=!0;vee(e,i,a,o)||(u=!1,(Af.instantAnimations||!s)&&l?.(Jm(e,n,t)),e[0]=e[e.length-1],Vh(n),n.repeat=0);let d={startTime:r?this.resolvedAt&&this.resolvedAt-this.createdAt>Uh?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:e},f=u&&!c&&Cee(d),p=d.motionValue?.owner?.current,m;if(f)try{m=new gee({...d,element:p})}catch{m=new $m(d)}else m=new $m(d);m.finished.then(()=>{this.notifyFinished()}).catch(Ff),this.pendingTimeline&&=(this.stopTimeline=m.attachTimeline(this.pendingTimeline),void 0),this._animation=m}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),Eh()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}};function Gh(e,t,n,r=0,i=1){let a=Array.from(e).sort((e,t)=>e.sortNodePosition(t)).indexOf(t),o=e.size,s=(o-1)*r;return typeof n==`function`?n(a,o):i===1?a*r:s-a*r}var Kh=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function qh(e){let t=Kh.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}function Jh(e,t,n=1){`${e}`;let[r,i]=qh(e);if(!r)return;let a=window.getComputedStyle(t).getPropertyValue(r);if(a){let e=a.trim();return jf(e)?parseFloat(e):e}return Dp(i)?Jh(i,t,n+1):i}var Yh={type:`spring`,stiffness:500,damping:25,restSpeed:10},Xh=e=>({type:`spring`,stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Zh={type:`keyframes`,duration:.8},Qh={type:`keyframes`,ease:[.25,.1,.35,1],duration:.3},$h=(e,{keyframes:t})=>t.length>2?Zh:mh.has(e)?e.startsWith(`scale`)?Xh(t[1]):Yh:Qh;function eg(e,t){if(e?.inherit&&t){let{inherit:n,...r}=e;return{...t,...r}}return e}function tg(e,t){let n=e?.[t]??e?.default??e;return n===e?n:eg(n,e)}var ng=new Set([`when`,`delay`,`delayChildren`,`staggerChildren`,`staggerDirection`,`repeat`,`repeatType`,`repeatDelay`,`from`,`elapsed`]);function rg(e){for(let t in e)if(!ng.has(t))return!0;return!1}var ig=(e,t,n,r={},i,a)=>o=>{let s=tg(r,e)||{},c=s.delay||r.delay||0,{elapsed:l=0}=r;l-=Bf(c);let u={keyframes:Array.isArray(n)?n:[null,n],ease:`easeOut`,velocity:t.getVelocity(),...s,delay:-l,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{o(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:a?void 0:i};rg(s)||Object.assign(u,$h(e,u)),u.duration&&=Bf(u.duration),u.repeatDelay&&=Bf(u.repeatDelay),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(Vh(u),u.delay===0&&(d=!0)),(Af.instantAnimations||Af.skipAnimations||i?.shouldSkipAnimations)&&(d=!0,Vh(u),u.delay=0),u.allowFlatten=!s.type&&!s.ease,d&&!a&&t.get()!==void 0){let e=Jm(u.keyframes,s);if(e!==void 0){gp.update(()=>{u.onUpdate(e),u.onComplete()});return}}return s.isSync?new $m(u):new Wh(u)};function ag(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function og(e,t,n,r){if(typeof t==`function`){let[i,a]=ag(r);t=t(n===void 0?e.custom:n,i,a)}if(typeof t==`string`&&(t=e.variants&&e.variants[t]),typeof t==`function`){let[i,a]=ag(r);t=t(n===void 0?e.custom:n,i,a)}return t}function sg(e,t,n){let r=e.getProps();return og(r,t,n===void 0?r.custom:n,e)}var cg=new Set([`width`,`height`,`top`,`left`,`right`,`bottom`,...ph]),lg=30,ug=e=>!isNaN(parseFloat(e)),dg={current:void 0},fg=class{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=Sp.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=Sp.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=ug(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on(`change`,e)}on(e,t){this.events[e]||(this.events[e]=new zf);let n=this.events[e].add(t);return e===`change`?()=>{n(),gp.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||=new Set,this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return dg.current&&dg.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=Sp.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>lg)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,lg);return Hf(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function pg(e,t){return new fg(e,t)}var mg=e=>Array.isArray(e);function hg(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,pg(n))}function gg(e){return mg(e)?e[e.length-1]||0:e}function _g(e,t){let{transitionEnd:n={},transition:r={},...i}=sg(e,t)||{};i={...i,...n};for(let t in i)hg(e,t,gg(i[t]))}var vg=e=>!!(e&&e.getVelocity);function yg(e){return!!(vg(e)&&e.add)}function bg(e,t){let n=e.getValue(`willChange`);if(yg(n))return n.add(t);if(!n&&Af.WillChange){let n=new Af.WillChange(`auto`);e.addValue(`willChange`,n),n.add(t)}}function xg(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}var Sg=`data-`+xg(`framerAppearId`);function Cg(e){return e.props[Sg]}function wg({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Tg(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a,transitionEnd:o,...s}=t,c=e.getDefaultTransition();a=a?eg(a,c):c;let l=a?.reduceMotion;r&&(a=r);let u=[],d=i&&e.animationState&&e.animationState.getState()[i];for(let t in s){let r=e.getValue(t,e.latestValues[t]??null),i=s[t];if(i===void 0||d&&wg(d,t))continue;let o={delay:n,...tg(a||{},t)},c=r.get();if(c!==void 0&&!r.isAnimating()&&!Array.isArray(i)&&i===c&&!o.velocity){gp.update(()=>r.set(i));continue}let f=!1;if(window.MotionHandoffAnimation){let n=Cg(e);if(n){let e=window.MotionHandoffAnimation(n,t,gp);e!==null&&(o.startTime=e,f=!0)}}bg(e,t);let p=l??e.shouldReduceMotion;r.start(ig(t,r,i,p&&cg.has(t)?{type:!1}:o,e,f));let m=r.animation;m&&u.push(m)}if(o){let t=()=>gp.update(()=>{o&&_g(e,o)});u.length?Promise.all(u).then(t):t()}return u}function Eg(e,t,n={}){let r=sg(e,t,n.type===`exit`?e.presenceContext?.custom:void 0),{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);let a=r?()=>Promise.all(Tg(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:a=0,staggerChildren:o,staggerDirection:s}=i;return Dg(e,t,r,a,o,s,n)}:()=>Promise.resolve(),{when:s}=i;if(s){let[e,t]=s===`beforeChildren`?[a,o]:[o,a];return e().then(()=>t())}else return Promise.all([a(),o(n.delay)])}function Dg(e,t,n=0,r=0,i=0,a=1,o){let s=[];for(let c of e.variantChildren)c.notify(`AnimationStart`,t),s.push(Eg(c,t,{...o,delay:n+(typeof r==`function`?0:r)+Gh(e.variantChildren,c,r,i,a)}).then(()=>c.notify(`AnimationComplete`,t)));return Promise.all(s)}function Og(e,t,n={}){e.notify(`AnimationStart`,t);let r;if(Array.isArray(t)){let i=t.map(t=>Eg(e,t,n));r=Promise.all(i)}else if(typeof t==`string`)r=Eg(e,t,n);else{let i=typeof t==`function`?sg(e,t,n.custom):t;r=Promise.all(Tg(e,i,n))}return r.then(()=>{e.notify(`AnimationComplete`,t)})}var kg={test:e=>e===`auto`,parse:e=>e},Ag=e=>t=>t.test(e),jg=[Ap,J,Kp,Gp,Jp,qp,kg],Mg=e=>jg.find(Ag(e));function Ng(e){return typeof e==`number`?e===0:e===null?!0:e===`none`||e===`0`||Nf(e)}var Pg=new Set([`brightness`,`contrast`,`saturate`,`opacity`]);function Fg(e){let[t,n]=e.slice(0,-1).split(`(`);if(t===`drop-shadow`)return e;let[r]=n.match(Pp)||[];if(!r)return e;let i=n.replace(r,``),a=+!!Pg.has(t);return r!==n&&(a*=100),t+`(`+a+i+`)`}var Ig=/\b([a-z-]*)\(.*?\)/gu,Lg={...dm,getAnimatableNone:e=>{let t=e.match(Ig);return t?t.map(Fg).join(` `):e}},Rg={...dm,getAnimatableNone:e=>{let t=dm.parse(e);return dm.createTransformer(e)(t.map(e=>typeof e==`number`?0:typeof e==`object`?{...e,alpha:1}:e))}},zg={...Ap,transform:Math.round},Bg={borderWidth:J,borderTopWidth:J,borderRightWidth:J,borderBottomWidth:J,borderLeftWidth:J,borderRadius:J,borderTopLeftRadius:J,borderTopRightRadius:J,borderBottomRightRadius:J,borderBottomLeftRadius:J,width:J,maxWidth:J,height:J,maxHeight:J,top:J,right:J,bottom:J,left:J,inset:J,insetBlock:J,insetBlockStart:J,insetBlockEnd:J,insetInline:J,insetInlineStart:J,insetInlineEnd:J,padding:J,paddingTop:J,paddingRight:J,paddingBottom:J,paddingLeft:J,paddingBlock:J,paddingBlockStart:J,paddingBlockEnd:J,paddingInline:J,paddingInlineStart:J,paddingInlineEnd:J,margin:J,marginTop:J,marginRight:J,marginBottom:J,marginLeft:J,marginBlock:J,marginBlockStart:J,marginBlockEnd:J,marginInline:J,marginInlineStart:J,marginInlineEnd:J,fontSize:J,backgroundPositionX:J,backgroundPositionY:J,rotate:Gp,rotateX:Gp,rotateY:Gp,rotateZ:Gp,scale:Mp,scaleX:Mp,scaleY:Mp,scaleZ:Mp,skew:Gp,skewX:Gp,skewY:Gp,distance:J,translateX:J,translateY:J,translateZ:J,x:J,y:J,z:J,perspective:J,transformPerspective:J,opacity:jp,originX:Yp,originY:Yp,originZ:J,zIndex:zg,fillOpacity:jp,strokeOpacity:jp,numOctaves:zg},Vg={...Bg,color:Zp,backgroundColor:Zp,outlineColor:Zp,fill:Zp,stroke:Zp,borderColor:Zp,borderTopColor:Zp,borderRightColor:Zp,borderBottomColor:Zp,borderLeftColor:Zp,filter:Lg,WebkitFilter:Lg,mask:Rg,WebkitMask:Rg},Hg=e=>Vg[e],Ug=new Set([Lg,Rg]);function Wg(e,t){let n=Hg(e);return Ug.has(n)||(n=dm),n.getAnimatableNone?n.getAnimatableNone(t):void 0}var Gg=new Set([`auto`,`none`,`0`]);function Kg(e,t,n){let r=0,i;for(;r<e.length&&!i;){let t=e[r];typeof t==`string`&&!Gg.has(t)&&am(t).values.length&&(i=e[r]),r++}if(i&&n)for(let r of t)e[r]=Wg(n,i)}var qg=class extends Dh{constructor(e,t,n,r,i){super(e,t,n,r,i,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if(typeof r==`string`&&(r=r.trim(),Dp(r))){let i=Jh(r,t.current);i!==void 0&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!cg.has(n)||e.length!==2)return;let[r,i]=e,a=Mg(r),o=Mg(i);if(kp(r)!==kp(i)&&yh[n]){this.needsMeasurement=!0;return}if(a!==o)if(hh(a)&&hh(o))for(let t=0;t<e.length;t++){let n=e[t];typeof n==`string`&&(e[t]=parseFloat(n))}else yh[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(e[t]===null||Ng(e[t]))&&n.push(t);n.length&&Kg(e,n,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;n===`height`&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=yh[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let r=t[t.length-1];r!==void 0&&e.getValue(n,r).jump(r,!1)}measureEndState(){let{element:e,name:t,unresolvedKeyframes:n}=this;if(!e||!e.current)return;let r=e.getValue(t);r&&r.jump(this.measuredOrigin,!1);let i=n.length-1,a=n[i];n[i]=yh[t](e.measureViewportBox(),window.getComputedStyle(e.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),this.removedTransforms?.length&&this.removedTransforms.forEach(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}};function Jg(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e==`string`){let r=document;t&&(r=t.current);let i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(e=>e!=null)}var Yg=(e,t)=>t&&typeof e==`number`?t.transform(e):e;function Xg(e){return Mf(e)&&`offsetHeight`in e&&!(`ownerSVGElement`in e)}var{schedule:Zg,cancel:wee}=hp(queueMicrotask,!1),Qg={x:!1,y:!1};function $g(){return Qg.x||Qg.y}function e_(e){return e===`x`||e===`y`?Qg[e]?null:(Qg[e]=!0,()=>{Qg[e]=!1}):Qg.x||Qg.y?null:(Qg.x=Qg.y=!0,()=>{Qg.x=Qg.y=!1})}function t_(e,t){let n=Jg(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function n_(e){return!(e.pointerType===`touch`||$g())}function r_(e,t,n={}){let[r,i,a]=t_(e,n);return r.forEach(e=>{let n=!1,r=!1,a,o=()=>{e.removeEventListener(`pointerleave`,u)},s=e=>{a&&=(a(e),void 0),o()},c=e=>{n=!1,window.removeEventListener(`pointerup`,c),window.removeEventListener(`pointercancel`,c),r&&(r=!1,s(e))},l=()=>{n=!0,window.addEventListener(`pointerup`,c,i),window.addEventListener(`pointercancel`,c,i)},u=e=>{if(e.pointerType!==`touch`){if(n){r=!0;return}s(e)}};e.addEventListener(`pointerenter`,n=>{if(!n_(n))return;r=!1;let o=t(e,n);typeof o==`function`&&(a=o,e.addEventListener(`pointerleave`,u,i))},i),e.addEventListener(`pointerdown`,l,i)}),a}var i_=(e,t)=>t?e===t?!0:i_(e,t.parentElement):!1,a_=e=>e.pointerType===`mouse`?typeof e.button!=`number`||e.button<=0:e.isPrimary!==!1,o_=new Set([`BUTTON`,`INPUT`,`SELECT`,`TEXTAREA`,`A`]);function s_(e){return o_.has(e.tagName)||e.isContentEditable===!0}var Tee=new Set([`INPUT`,`SELECT`,`TEXTAREA`]);function Eee(e){return Tee.has(e.tagName)||e.isContentEditable===!0}var c_=new WeakSet;function l_(e){return t=>{t.key===`Enter`&&e(t)}}function u_(e,t){e.dispatchEvent(new PointerEvent(`pointer`+t,{isPrimary:!0,bubbles:!0}))}var Dee=(e,t)=>{let n=e.currentTarget;if(!n)return;let r=l_(()=>{if(c_.has(n))return;u_(n,`down`);let e=l_(()=>{u_(n,`up`)});n.addEventListener(`keyup`,e,t),n.addEventListener(`blur`,()=>u_(n,`cancel`),t)});n.addEventListener(`keydown`,r,t),n.addEventListener(`blur`,()=>n.removeEventListener(`keydown`,r),t)};function d_(e){return a_(e)&&!$g()}var f_=new WeakSet;function Oee(e,t,n={}){let[r,i,a]=t_(e,n),o=e=>{let r=e.currentTarget;if(!d_(e)||f_.has(e))return;c_.add(r),n.stopPropagation&&f_.add(e);let a=t(r,e),o=(e,t)=>{window.removeEventListener(`pointerup`,s),window.removeEventListener(`pointercancel`,c),c_.has(r)&&c_.delete(r),d_(e)&&typeof a==`function`&&a(e,{success:t})},s=e=>{o(e,r===window||r===document||n.useGlobalTarget||i_(r,e.target))},c=e=>{o(e,!1)};window.addEventListener(`pointerup`,s,i),window.addEventListener(`pointercancel`,c,i)};return r.forEach(e=>{(n.useGlobalTarget?window:e).addEventListener(`pointerdown`,o,i),Xg(e)&&(e.addEventListener(`focus`,e=>Dee(e,i)),!s_(e)&&!e.hasAttribute(`tabindex`)&&(e.tabIndex=0))}),a}function p_(e){return Mf(e)&&`ownerSVGElement`in e}var m_=new WeakMap,h_,g_=(e,t,n)=>(r,i)=>i&&i[0]?i[0][e+`Size`]:p_(r)&&`getBBox`in r?r.getBBox()[t]:r[n],kee=g_(`inline`,`width`,`offsetWidth`),Aee=g_(`block`,`height`,`offsetHeight`);function jee({target:e,borderBoxSize:t}){m_.get(e)?.forEach(n=>{n(e,{get width(){return kee(e,t)},get height(){return Aee(e,t)}})})}function Mee(e){e.forEach(jee)}function Nee(){typeof ResizeObserver>`u`||(h_=new ResizeObserver(Mee))}function Pee(e,t){h_||Nee();let n=Jg(e);return n.forEach(e=>{let n=m_.get(e);n||(n=new Set,m_.set(e,n)),n.add(t),h_?.observe(e)}),()=>{n.forEach(e=>{let n=m_.get(e);n?.delete(t),n?.size||h_?.unobserve(e)})}}var __=new Set,v_;function Fee(){v_=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};__.forEach(t=>t(e))},window.addEventListener(`resize`,v_)}function Iee(e){return __.add(e),v_||Fee(),()=>{__.delete(e),!__.size&&typeof v_==`function`&&(window.removeEventListener(`resize`,v_),v_=void 0)}}function y_(e,t){return typeof e==`function`?Iee(e):Pee(e,t)}function Lee(e){return p_(e)&&e.tagName===`svg`}var Ree=[...jg,Zp,dm],zee=e=>Ree.find(Ag(e)),b_=()=>({translate:0,scale:1,origin:0,originPoint:0}),x_=()=>({x:b_(),y:b_()}),S_=()=>({min:0,max:0}),C_=()=>({x:S_(),y:S_()}),Bee=new WeakMap;function w_(e){return typeof e==`object`&&!!e&&typeof e.start==`function`}function T_(e){return typeof e==`string`||Array.isArray(e)}var E_=[`animate`,`whileInView`,`whileFocus`,`whileHover`,`whileTap`,`whileDrag`,`exit`],D_=[`initial`,...E_];function O_(e){return w_(e.animate)||D_.some(t=>T_(e[t]))}function k_(e){return!!(O_(e)||e.variants)}function Vee(e,t,n){for(let r in t){let i=t[r],a=n[r];if(vg(i))e.addValue(r,i);else if(vg(a))e.addValue(r,pg(i,{owner:e}));else if(a!==i)if(e.hasValue(r)){let t=e.getValue(r);t.liveStyle===!0?t.jump(i):t.hasAnimated||t.set(i)}else{let t=e.getStaticValue(r);e.addValue(r,pg(t===void 0?i:t,{owner:e}))}}for(let r in n)t[r]===void 0&&e.removeValue(r);return t}var A_={current:null},j_={current:!1},Hee=typeof window<`u`;function M_(){if(j_.current=!0,Hee)if(window.matchMedia){let e=window.matchMedia(`(prefers-reduced-motion)`),t=()=>A_.current=e.matches;e.addEventListener(`change`,t),t()}else A_.current=!1}var N_=[`AnimationStart`,`AnimationComplete`,`Update`,`BeforeLayoutMeasure`,`LayoutMeasure`,`LayoutAnimationStart`,`LayoutAnimationComplete`],P_={};function F_(e){P_=e}function I_(){return P_}var L_=class{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,skipAnimations:i,blockInitialAnimation:a,visualState:o},s={}){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=Dh,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=()=>{let e=Sp.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,gp.render(this.render,!1,!0))};let{latestValues:c,renderState:l}=o;this.latestValues=c,this.baseTarget={...c},this.initialValues=t.initial?{...c}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.skipAnimationsConfig=i,this.options=s,this.blockInitialAnimation=!!a,this.isControllingVariants=O_(t),this.isVariantNode=k_(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:u,...d}=this.scrapeMotionValuesFromProps(t,{},this);for(let e in d){let t=d[e];c[e]!==void 0&&vg(t)&&t.set(c[e])}}mount(e){if(this.hasBeenMounted)for(let e in this.initialValues)this.values.get(e)?.jump(this.initialValues[e]),this.latestValues[e]=this.initialValues[e];this.current=e,Bee.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),this.reducedMotionConfig===`never`?this.shouldReduceMotion=!1:this.reducedMotionConfig===`always`?this.shouldReduceMotion=!0:(j_.current||M_(),this.shouldReduceMotion=A_.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(),_p(this.notifyUpdate),_p(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(let e in this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??=new Set,this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),t.accelerate&&Hh.has(e)&&this.current instanceof HTMLElement){let{factory:n,keyframes:r,times:i,ease:a,duration:o}=t.accelerate,s=new Lh({element:this.current,name:e,keyframes:r,times:i,ease:a,duration:Bf(o)}),c=n(s);this.valueSubscriptions.set(e,()=>{c(),s.cancel()});return}let n=mh.has(e);n&&this.onBindTransform&&this.onBindTransform();let r=t.on(`change`,t=>{this.latestValues[e]=t,this.props.onUpdate&&gp.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()}),i;typeof window<`u`&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{r(),i&&i(),t.owner&&t.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e=`animation`;for(e in P_){let t=P_[e];if(!t)continue;let{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):C_()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<N_.length;t++){let n=N_[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let r=e[`on`+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=Vee(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return n===void 0&&t!==void 0&&(n=pg(t===null?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return n!=null&&(typeof n==`string`&&(jf(n)||Nf(n))?n=parseFloat(n):!zee(n)&&dm.test(t)&&(n=Wg(e,t)),this.setBaseTarget(e,vg(n)?n.get():n)),vg(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let{initial:t}=this.props,n;if(typeof t==`string`||typeof t==`object`){let r=og(this.props,t,this.presenceContext?.custom);r&&(n=r[e])}if(t&&n!==void 0)return n;let r=this.getBaseTargetFromProps(this.props,e);return r!==void 0&&!vg(r)?r:this.initialValues[e]!==void 0&&n===void 0?void 0:this.baseTarget[e]}on(e,t){return this.events[e]||(this.events[e]=new zf),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){Zg.render(this.render)}},R_=class extends L_{constructor(){super(...arguments),this.KeyframeResolver=qg}sortInstanceNodePosition(e,t){return e.compareDocumentPosition(t)&2?1:-1}getBaseTargetFromProps(e,t){let n=e.style;return n?n[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;vg(e)&&(this.childSubscription=e.on(`change`,e=>{this.current&&(this.current.textContent=`${e}`)}))}},z_=class{constructor(e){this.isMounted=!1,this.node=e}update(){}};function B_({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function V_({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function H_(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function U_(e){return e===void 0||e===1}function W_({scale:e,scaleX:t,scaleY:n}){return!U_(e)||!U_(t)||!U_(n)}function G_(e){return W_(e)||K_(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function K_(e){return q_(e.x)||q_(e.y)}function q_(e){return e&&e!==`0%`}function J_(e,t,n){return n+t*(e-n)}function Y_(e,t,n,r,i){return i!==void 0&&(e=J_(e,i,r)),J_(e,n,r)+t}function X_(e,t=0,n=1,r,i){e.min=Y_(e.min,t,n,r,i),e.max=Y_(e.max,t,n,r,i)}function Z_(e,{x:t,y:n}){X_(e.x,t.translate,t.scale,t.originPoint),X_(e.y,n.translate,n.scale,n.originPoint)}var Q_=.999999999999,$_=1.0000000000001;function ev(e,t,n,r=!1){let i=n.length;if(!i)return;t.x=t.y=1;let a,o;for(let s=0;s<i;s++){a=n[s],o=a.projectionDelta;let{visualElement:i}=a.options;i&&i.props.style&&i.props.style.display===`contents`||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&(tv(e.x,-a.scroll.offset.x),tv(e.y,-a.scroll.offset.y)),o&&(t.x*=o.x.scale,t.y*=o.y.scale,Z_(e,o)),r&&G_(a.latestValues)&&iv(e,a.latestValues,a.layout?.layoutBox))}t.x<$_&&t.x>Q_&&(t.x=1),t.y<$_&&t.y>Q_&&(t.y=1)}function tv(e,t){e.min+=t,e.max+=t}function nv(e,t,n,r,i=.5){X_(e,t,n,hm(e.min,e.max,i),r)}function rv(e,t){return typeof e==`string`?parseFloat(e)/100*(t.max-t.min):e}function iv(e,t,n){let r=n??e;nv(e.x,rv(t.x,r.x),t.scaleX,t.scale,t.originX),nv(e.y,rv(t.y,r.y),t.scaleY,t.scale,t.originY)}function av(e,t){return B_(H_(e.getBoundingClientRect(),t))}function ov(e,t,n){let r=av(e,n),{scroll:i}=t;return i&&(tv(r.x,i.offset.x),tv(r.y,i.offset.y)),r}var sv={x:`translateX`,y:`translateY`,z:`translateZ`,transformPerspective:`perspective`},cv=ph.length;function lv(e,t,n){let r=``,i=!0;for(let a=0;a<cv;a++){let o=ph[a],s=e[o];if(s===void 0)continue;let c=!0;if(typeof s==`number`)c=s===+!!o.startsWith(`scale`);else{let e=parseFloat(s);c=o.startsWith(`scale`)?e===1:e===0}if(!c||n){let e=Yg(s,Bg[o]);if(!c){i=!1;let t=sv[o]||o;r+=`${t}(${e}) `}n&&(t[o]=e)}}return r=r.trim(),n?r=n(t,i?``:r):i&&(r=`none`),r}function uv(e,t,n){let{style:r,vars:i,transformOrigin:a}=e,o=!1,s=!1;for(let e in t){let n=t[e];if(mh.has(e)){o=!0;continue}else if(Tp(e)){i[e]=n;continue}else{let t=Yg(n,Bg[e]);e.startsWith(`origin`)?(s=!0,a[e]=t):r[e]=t}}if(t.transform||(o||n?r.transform=lv(t,e.transform,n):r.transform&&=`none`),s){let{originX:e=`50%`,originY:t=`50%`,originZ:n=0}=a;r.transformOrigin=`${e} ${t} ${n}`}}function dv(e,{style:t,vars:n},r,i){let a=e.style,o;for(o in t)a[o]=t[o];for(o in i?.applyProjectionStyles(a,r),n)a.setProperty(o,n[o])}function fv(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var pv={correct:(e,t)=>{if(!t.target)return e;if(typeof e==`string`)if(J.test(e))e=parseFloat(e);else return e;return`${fv(e,t.target.x)}% ${fv(e,t.target.y)}%`}},mv={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=dm.parse(e);if(i.length>5)return r;let a=dm.createTransformer(e),o=typeof i[0]==`number`?0:1,s=n.x.scale*t.x,c=n.y.scale*t.y;i[0+o]/=s,i[1+o]/=c;let l=hm(s,c,.5);return typeof i[2+o]==`number`&&(i[2+o]/=l),typeof i[3+o]==`number`&&(i[3+o]/=l),a(i)}},hv={borderRadius:{...pv,applyTo:[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomLeftRadius`,`borderBottomRightRadius`]},borderTopLeftRadius:pv,borderTopRightRadius:pv,borderBottomLeftRadius:pv,borderBottomRightRadius:pv,boxShadow:mv};function gv(e,{layout:t,layoutId:n}){return mh.has(e)||e.startsWith(`origin`)||(t||n!==void 0)&&(!!hv[e]||e===`opacity`)}function _v(e,t,n){let r=e.style,i=t?.style,a={};if(!r)return a;for(let t in r)(vg(r[t])||i&&vg(i[t])||gv(t,e)||n?.getValue(t)?.liveStyle!==void 0)&&(a[t]=r[t]);return a}function vv(e){return window.getComputedStyle(e)}var yv=class extends R_{constructor(){super(...arguments),this.type=`html`,this.renderInstance=dv}readValueFromInstance(e,t){if(mh.has(t))return this.projection?.isProjecting?lh(t):dh(e,t);{let n=vv(e),r=(Tp(t)?n.getPropertyValue(t):n[t])||0;return typeof r==`string`?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return av(e,t)}build(e,t,n){uv(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return _v(e,t,n)}},bv={offset:`stroke-dashoffset`,array:`stroke-dasharray`},xv={offset:`strokeDashoffset`,array:`strokeDasharray`};function Sv(e,t,n=1,r=0,i=!0){e.pathLength=1;let a=i?bv:xv;e[a.offset]=`${-r}`,e[a.array]=`${t} ${n}`}var Cv=[`offsetDistance`,`offsetPath`,`offsetRotate`,`offsetAnchor`];function wv(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},c,l,u){if(uv(e,s,l),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:f}=e;d.transform&&(f.transform=d.transform,delete d.transform),(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??`50% 50%`,delete d.transformOrigin),f.transform&&(f.transformBox=u?.transformBox??`fill-box`,delete d.transformBox);for(let e of Cv)d[e]!==void 0&&(f[e]=d[e],delete d[e]);t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),i!==void 0&&Sv(d,i,a,o,!1)}var Tv=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`]),Ev=e=>typeof e==`string`&&e.toLowerCase()===`svg`;function Dv(e,t,n,r){dv(e,t,void 0,r);for(let n in t.attrs)e.setAttribute(Tv.has(n)?n:xg(n),t.attrs[n])}function Ov(e,t,n){let r=_v(e,t,n);for(let n in e)if(vg(e[n])||vg(t[n])){let t=ph.indexOf(n)===-1?n:`attr`+n.charAt(0).toUpperCase()+n.substring(1);r[t]=e[n]}return r}var kv=class extends R_{constructor(){super(...arguments),this.type=`svg`,this.isSVGTag=!1,this.measureInstanceViewportBox=C_}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(mh.has(t)){let e=Hg(t);return e&&e.default||0}return t=Tv.has(t)?t:xg(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return Ov(e,t,n)}build(e,t,n){wv(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){Dv(e,t,n,r)}mount(e){this.isSVGTag=Ev(e.tagName),super.mount(e)}},Av=D_.length;function jv(e){if(!e)return;if(!e.isControllingVariants){let t=e.parent&&jv(e.parent)||{};return e.props.initial!==void 0&&(t.initial=e.props.initial),t}let t={};for(let n=0;n<Av;n++){let r=D_[n],i=e.props[r];(T_(i)||i===!1)&&(t[r]=i)}return t}function Mv(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}var Nv=[...E_].reverse(),Pv=E_.length;function Fv(e){return t=>Promise.all(t.map(({animation:t,options:n})=>Og(e,t,n)))}function Iv(e){let t=Fv(e),n=zv(),r=!0,i=!1,a=t=>(n,r)=>{let i=sg(e,r,t===`exit`?e.presenceContext?.custom:void 0);if(i){let{transition:e,transitionEnd:t,...r}=i;n={...n,...r,...t}}return n};function o(n){t=n(e)}function s(o){let{props:s}=e,c=jv(e.parent)||{},l=[],u=new Set,d={},f=1/0;for(let t=0;t<Pv;t++){let p=Nv[t],m=n[p],h=s[p]===void 0?c[p]:s[p],g=T_(h),_=p===o?m.isActive:null;_===!1&&(f=t);let v=h===c[p]&&h!==s[p]&&g;if(v&&(r||i)&&e.manuallyAnimateOnMount&&(v=!1),m.protectedKeys={...d},!m.isActive&&_===null||!h&&!m.prevProp||w_(h)||typeof h==`boolean`)continue;if(p===`exit`&&m.isActive&&_!==!0){m.prevResolvedValues&&(d={...d,...m.prevResolvedValues});continue}let y=Lv(m.prevProp,h),b=y||p===o&&m.isActive&&!v&&g||t>f&&g,x=!1,S=Array.isArray(h)?h:[h],C=S.reduce(a(p),{});_===!1&&(C={});let{prevResolvedValues:w={}}=m,T={...w,...C},E=t=>{b=!0,u.has(t)&&(x=!0,u.delete(t)),m.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)};for(let e in T){let t=C[e],n=w[e];if(d.hasOwnProperty(e))continue;let r=!1;r=mg(t)&&mg(n)?!Mv(t,n):t!==n,r?t==null?u.add(e):E(e):t!==void 0&&u.has(e)?E(e):m.protectedKeys[e]=!0}m.prevProp=h,m.prevResolvedValues=C,m.isActive&&(d={...d,...C}),(r||i)&&e.blockInitialAnimation&&(b=!1);let D=v&&y;b&&(!D||x)&&l.push(...S.map(t=>{let n={type:p};if(typeof t==`string`&&(r||i)&&!D&&e.manuallyAnimateOnMount&&e.parent){let{parent:r}=e,i=sg(r,t);if(r.enteringChildren&&i){let{delayChildren:t}=i.transition||{};n.delay=Gh(r.enteringChildren,e,t)}}return{animation:t,options:n}}))}if(u.size){let t={};if(typeof s.initial!=`boolean`){let n=sg(e,Array.isArray(s.initial)?s.initial[0]:s.initial);n&&n.transition&&(t.transition=n.transition)}u.forEach(n=>{let r=e.getBaseTarget(n),i=e.getValue(n);i&&(i.liveStyle=!0),t[n]=r??null}),l.push({animation:t})}let p=!!l.length;return r&&(s.initial===!1||s.initial===s.animate)&&!e.manuallyAnimateOnMount&&(p=!1),r=!1,i=!1,p?t(l):Promise.resolve()}function c(t,r){if(n[t].isActive===r)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,r)),n[t].isActive=r;let i=s(t);for(let e in n)n[e].protectedKeys={};return i}return{animateChanges:s,setActive:c,setAnimateFunction:o,getState:()=>n,reset:()=>{n=zv(),i=!0}}}function Lv(e,t){return typeof t==`string`?t!==e:Array.isArray(t)?!Mv(t,e):!1}function Rv(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function zv(){return{animate:Rv(!0),whileInView:Rv(),whileHover:Rv(),whileTap:Rv(),whileDrag:Rv(),whileFocus:Rv(),exit:Rv()}}function Bv(e,t){e.min=t.min,e.max=t.max}function Vv(e,t){Bv(e.x,t.x),Bv(e.y,t.y)}function Hv(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}var Uv=1e-4,Wv=1-Uv,Gv=1+Uv,Kv=.01,qv=0-Kv,Jv=0+Kv;function Yv(e){return e.max-e.min}function Xv(e,t,n){return Math.abs(e-t)<=n}function Zv(e,t,n,r=.5){e.origin=r,e.originPoint=hm(t.min,t.max,e.origin),e.scale=Yv(n)/Yv(t),e.translate=hm(n.min,n.max,e.origin)-e.originPoint,(e.scale>=Wv&&e.scale<=Gv||isNaN(e.scale))&&(e.scale=1),(e.translate>=qv&&e.translate<=Jv||isNaN(e.translate))&&(e.translate=0)}function Qv(e,t,n,r){Zv(e.x,t.x,n.x,r?r.originX:void 0),Zv(e.y,t.y,n.y,r?r.originY:void 0)}function $v(e,t,n,r=0){e.min=(r?hm(n.min,n.max,r):n.min)+t.min,e.max=e.min+Yv(t)}function ey(e,t,n,r){$v(e.x,t.x,n.x,r?.x),$v(e.y,t.y,n.y,r?.y)}function ty(e,t,n,r=0){let i=r?hm(n.min,n.max,r):n.min;e.min=t.min-i,e.max=e.min+Yv(t)}function ny(e,t,n,r){ty(e.x,t.x,n.x,r?.x),ty(e.y,t.y,n.y,r?.y)}function ry(e,t,n,r,i){return e-=t,e=J_(e,1/n,r),i!==void 0&&(e=J_(e,1/i,r)),e}function iy(e,t=0,n=1,r=.5,i,a=e,o=e){if(Kp.test(t)&&(t=parseFloat(t),t=hm(o.min,o.max,t/100)-o.min),typeof t!=`number`)return;let s=hm(a.min,a.max,r);e===a&&(s-=t),e.min=ry(e.min,t,n,s,i),e.max=ry(e.max,t,n,s,i)}function ay(e,t,[n,r,i],a,o){iy(e,t[n],t[r],t[i],t.scale,a,o)}var oy=[`x`,`scaleX`,`originX`],sy=[`y`,`scaleY`,`originY`];function cy(e,t,n,r){ay(e.x,t,oy,n?n.x:void 0,r?r.x:void 0),ay(e.y,t,sy,n?n.y:void 0,r?r.y:void 0)}function ly(e){return e.translate===0&&e.scale===1}function uy(e){return ly(e.x)&&ly(e.y)}function dy(e,t){return e.min===t.min&&e.max===t.max}function fy(e,t){return dy(e.x,t.x)&&dy(e.y,t.y)}function py(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function my(e,t){return py(e.x,t.x)&&py(e.y,t.y)}function hy(e){return Yv(e.x)/Yv(e.y)}function gy(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function _y(e){return[e(`x`),e(`y`)]}function vy(e,t,n){let r=``,i=e.x.translate/t.x,a=e.y.translate/t.y,o=n?.z||0;if((i||a||o)&&(r=`translate3d(${i}px, ${a}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:e,rotate:t,rotateX:i,rotateY:a,skewX:o,skewY:s}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),i&&(r+=`rotateX(${i}deg) `),a&&(r+=`rotateY(${a}deg) `),o&&(r+=`skewX(${o}deg) `),s&&(r+=`skewY(${s}deg) `)}let s=e.x.scale*t.x,c=e.y.scale*t.y;return(s!==1||c!==1)&&(r+=`scale(${s}, ${c})`),r||`none`}var yy=[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomLeftRadius`,`borderBottomRightRadius`],by=yy.length,xy=e=>typeof e==`string`?parseFloat(e):e,Sy=e=>typeof e==`number`||J.test(e);function Cy(e,t,n,r,i,a){i?(e.opacity=hm(0,n.opacity??1,Ty(r)),e.opacityExit=hm(t.opacity??1,0,Ey(r))):a&&(e.opacity=hm(t.opacity??1,n.opacity??1,r));for(let i=0;i<by;i++){let a=yy[i],o=wy(t,a),s=wy(n,a);o===void 0&&s===void 0||(o||=0,s||=0,o===0||s===0||Sy(o)===Sy(s)?(e[a]=Math.max(hm(xy(o),xy(s),r),0),(Kp.test(s)||Kp.test(o))&&(e[a]+=`%`)):e[a]=s)}(t.rotate||n.rotate)&&(e.rotate=hm(t.rotate||0,n.rotate||0,r))}function wy(e,t){return e[t]===void 0?e.borderRadius:e[t]}var Ty=Dy(0,.5,tp),Ey=Dy(.5,.95,Ff);function Dy(e,t,n){return r=>r<e?0:r>t?1:n(Rf(e,t,r))}function Oy(e,t,n){let r=vg(e)?e:pg(e);return r.start(ig(``,r,t,n)),r.animation}function ky(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}var Ay=(e,t)=>e.depth-t.depth,jy=class{constructor(){this.children=[],this.isDirty=!1}add(e){Df(this.children,e),this.isDirty=!0}remove(e){Of(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Ay),this.isDirty=!1,this.children.forEach(e)}};function My(e,t){let n=Sp.now(),r=({timestamp:i})=>{let a=i-n;a>=t&&(_p(r),e(a-t))};return gp.setup(r,!0),()=>_p(r)}function Ny(e){return vg(e)?e.get():e}var Py=class{constructor(){this.members=[]}add(e){Df(this.members,e);for(let t=this.members.length-1;t>=0;t--){let n=this.members[t];if(n===e||n===this.lead||n===this.prevLead)continue;let r=n.instance;(!r||r.isConnected===!1)&&!n.snapshot&&(Of(this.members,n),n.unmount())}e.scheduleRender()}remove(e){if(Of(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){for(let t=this.members.indexOf(e)-1;t>=0;t--){let e=this.members[t];if(e.isPresent!==!1&&e.instance?.isConnected!==!1)return this.promote(e),!0}return!1}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.updateSnapshot(),e.scheduleRender();let{layoutDependency:r}=n.options,{layoutDependency:i}=e.options;(r===void 0||r!==i)&&(e.resumeFrom=n,t&&(n.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root?.isUpdating&&(e.isLayoutDirty=!0)),e.options.crossfade===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}},Fy={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Iy={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},Ly=[``,`X`,`Y`,`Z`],Ry=1e3,zy=0;function By(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Vy(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let n=Cg(t);if(window.MotionHasOptimisedAnimation(n,`transform`)){let{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,`transform`,gp,!(t||r))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Vy(r)}function Hy({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=t?.()){this.id=zy++,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,fp.value&&(Iy.nodes=Iy.calculatedTargetDeltas=Iy.calculatedProjections=0),this.nodes.forEach(Gy),this.nodes.forEach(Uee),this.nodes.forEach(Wee),this.nodes.forEach(Ky),fp.addProjectionMetrics&&fp.addProjectionMetrics(Iy)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new jy)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new zf),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=p_(t)&&!Lee(t),this.instance=t;let{layoutId:n,layout:r,visualElement:i}=this.options;if(i&&!i.current&&i.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(r||n)&&(this.isLayoutDirty=!0),e){let n,r=0,i=()=>this.root.updateBlockedByResize=!1;gp.read(()=>{r=window.innerWidth}),e(t,()=>{let e=window.innerWidth;e!==r&&(r=e,this.root.updateBlockedByResize=!0,n&&n(),n=My(i,250),Fy.hasAnimatedSinceResize&&(Fy.hasAnimatedSinceResize=!1,this.nodes.forEach($y)))})}n&&this.root.registerSharedNode(n,this),this.options.animate!==!1&&i&&(n||r)&&this.addEventListener(`didUpdate`,({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let a=this.options.transition||i.getDefaultTransition()||Yee,{onLayoutAnimationStart:o,onLayoutAnimationComplete:s}=i.getProps(),c=!this.targetLayout||!my(this.targetLayout,r),l=!t&&n;if(this.options.layoutRoot||this.resumeFrom||l||t&&(c||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...tg(a,`layout`),onPlay:o,onComplete:s};(i.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,l)}else t||$y(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),_p(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(Gee),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Vy(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,(typeof t.latestValues.x==`string`||typeof t.latestValues.y==`string`)&&(t.isLayoutDirty=!0),t.updateScroll(`snapshot`),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:n}=this.options;if(t===void 0&&!n)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,``):void 0,this.updateSnapshot(),e&&this.notifyListeners(`willUpdate`)}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let e=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),e&&this.nodes.forEach(Yy),this.nodes.forEach(Jy);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Xy);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Zy),this.nodes.forEach(Qy),this.nodes.forEach(Uy),this.nodes.forEach(Wy)):this.nodes.forEach(Xy),this.clearAllSnapshots();let e=Sp.now();vp.delta=kf(0,1e3/60,e-vp.timestamp),vp.timestamp=e,vp.isProcessing=!0,yp.update.process(vp),yp.preRender.process(vp),yp.render.process(vp),vp.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Zg.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(qy),this.sharedNodes.forEach(Kee)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,gp.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){gp.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Yv(this.snapshot.measuredBox.x)&&!Yv(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||=C_(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners(`measure`,this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify(`LayoutMeasure`,this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e=`measure`){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){let t=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!i)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!uy(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,``):void 0,a=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||G_(this.latestValues)||a)&&(i(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){let t=this.measurePageBox(),n=this.removeElementScroll(t);return e&&(n=this.removeTransform(n)),Xee(n),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return C_();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(Zee))){let{scroll:e}=this.root;e&&(tv(t.x,e.offset.x),tv(t.y,e.offset.y))}return t}removeElementScroll(e){let t=C_();if(Vv(t,e),this.scroll?.wasRoot)return t;for(let n=0;n<this.path.length;n++){let r=this.path[n],{scroll:i,options:a}=r;r!==this.root&&i&&a.layoutScroll&&(i.wasRoot&&Vv(t,e),tv(t.x,i.offset.x),tv(t.y,i.offset.y))}return t}applyTransform(e,t=!1,n){let r=n||C_();Vv(r,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];!t&&n.options.layoutScroll&&n.scroll&&n!==n.root&&(tv(r.x,-n.scroll.offset.x),tv(r.y,-n.scroll.offset.y)),G_(n.latestValues)&&iv(r,n.latestValues,n.layout?.layoutBox)}return G_(this.latestValues)&&iv(r,this.latestValues,this.layout?.layoutBox),r}removeTransform(e){let t=C_();Vv(t,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!G_(n.latestValues))continue;let r;n.instance&&(W_(n.latestValues)&&n.updateSnapshot(),r=C_(),Vv(r,n.measurePageBox())),cy(t,n.latestValues,n.snapshot?.layoutBox,r)}return G_(this.latestValues)&&cy(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:e.crossfade===void 0?!0:e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==vp.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||=t.isProjectionDirty,this.isTransformDirty||=t.isTransformDirty,this.isSharedProjectionDirty||=t.isSharedProjectionDirty;let n=!!this.resumingFrom||this!==t;if(!(e||n&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:r,layoutId:i}=this.options;if(!this.layout||!(r||i))return;this.resolvedRelativeTargetAt=vp.timestamp;let a=this.getClosestProjectingParent();a&&this.linkedParentVersion!==a.layoutVersion&&!a.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&a&&a.layout?this.createRelativeTarget(a,this.layout.layoutBox,a.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=C_(),this.targetWithTransforms=C_()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),ey(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):Vv(this.target,this.layout.layoutBox),Z_(this.target,this.targetDelta)):Vv(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&a&&!!a.resumingFrom==!!this.resumingFrom&&!a.options.layoutScroll&&a.target&&this.animationProgress!==1?this.createRelativeTarget(a,this.target,a.target):this.relativeParent=this.relativeTarget=void 0),fp.value&&Iy.calculatedTargetDeltas++)}getClosestProjectingParent(){if(!(!this.parent||W_(this.parent.latestValues)||K_(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(e,t,n){this.relativeParent=e,this.linkedParentVersion=e.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=C_(),this.relativeTargetOrigin=C_(),ny(this.relativeTargetOrigin,t,n,this.options.layoutAnchor||void 0),Vv(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(n=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===vp.timestamp&&(n=!1),n)return;let{layout:r,layoutId:i}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||i))return;Vv(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,o=this.treeScale.y;ev(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=C_());let{target:s}=e;if(!s){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Hv(this.prevProjectionDelta.x,this.projectionDelta.x),Hv(this.prevProjectionDelta.y,this.projectionDelta.y)),Qv(this.projectionDelta,this.layoutCorrected,s,this.latestValues),(this.treeScale.x!==a||this.treeScale.y!==o||!gy(this.projectionDelta.x,this.prevProjectionDelta.x)||!gy(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners(`projectionUpdate`,s)),fp.value&&Iy.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=x_(),this.projectionDelta=x_(),this.projectionDeltaWithTransform=x_()}setAnimationOrigin(e,t=!1){let n=this.snapshot,r=n?n.latestValues:{},i={...this.latestValues},a=x_();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let o=C_(),s=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),c=this.getStack(),l=!c||c.members.length<=1,u=!!(s&&!l&&this.options.crossfade===!0&&!this.path.some(Jee));this.animationProgress=0;let d;this.mixTargetDelta=t=>{let n=t/1e3;eb(a.x,e.x,n),eb(a.y,e.y,n),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ny(o,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),qee(this.relativeTarget,this.relativeTargetOrigin,o,n),d&&fy(this.relativeTarget,d)&&(this.isProjectionDirty=!1),d||=C_(),Vv(d,this.relativeTarget)),s&&(this.animationValues=i,Cy(i,r,this.latestValues,n,u,l)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners(`animationStart`),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&=(_p(this.pendingAnimation),void 0),this.pendingAnimation=gp.update(()=>{Fy.hasAnimatedSinceResize=!0,Cp.layout++,this.motionValue||=pg(0),this.motionValue.jump(0,!1),this.currentAnimation=Oy(this.motionValue,[0,1e3],{...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onStop:()=>{Cp.layout--},onComplete:()=>{Cp.layout--,e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners(`animationComplete`)}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Ry),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:n,layout:r,latestValues:i}=e;if(!(!t||!n||!r)){if(this!==e&&this.layout&&r&&ab(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||C_();let t=Yv(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=Yv(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}Vv(t,n),iv(t,i),Qv(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new Py),this.sharedNodes.get(e).add(t);let n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return e?e.lead===this:!0}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return e?e.relegate(this):!1}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;let r={};n.z&&By(`z`,e,r,this.animationValues);for(let t=0;t<Ly.length;t++)By(`rotate${Ly[t]}`,e,r,this.animationValues),By(`skew${Ly[t]}`,e,r,this.animationValues);e.render();for(let t in r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible){e.visibility=`hidden`;return}let n=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,e.visibility=``,e.opacity=``,e.pointerEvents=Ny(t?.pointerEvents)||``,e.transform=n?n(this.latestValues,``):`none`;return}let r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target){this.options.layoutId&&(e.opacity=this.latestValues.opacity===void 0?1:this.latestValues.opacity,e.pointerEvents=Ny(t?.pointerEvents)||``),this.hasProjected&&!G_(this.latestValues)&&(e.transform=n?n({},``):`none`,this.hasProjected=!1);return}e.visibility=``;let i=r.animationValues||r.latestValues;this.applyTransformsToTarget();let a=vy(this.projectionDeltaWithTransform,this.treeScale,i);n&&(a=n(i,a)),e.transform=a;let{x:o,y:s}=this.projectionDelta;e.transformOrigin=`${o.origin*100}% ${s.origin*100}% 0`,r.animationValues?e.opacity=r===this?i.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit:e.opacity=r===this?i.opacity===void 0?``:i.opacity:i.opacityExit===void 0?0:i.opacityExit;for(let t in hv){if(i[t]===void 0)continue;let{correct:n,applyTo:o,isCSSVariable:s}=hv[t],c=a===`none`?i[t]:n(i[t],r);if(o){let t=o.length;for(let n=0;n<t;n++)e[o[n]]=c}else s?this.options.visualElement.renderState.vars[t]=c:e[t]=c}this.options.layoutId&&(e.pointerEvents=r===this?Ny(t?.pointerEvents)||``:`none`)}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(Jy),this.root.sharedNodes.clear()}}}function Uy(e){e.updateLayout()}function Wy(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners(`didUpdate`)){let{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,a=t.source!==e.layout.source;if(i===`size`)_y(e=>{let r=a?t.measuredBox[e]:t.layoutBox[e],i=Yv(r);r.min=n[e].min,r.max=r.min+i});else if(i===`x`||i===`y`){let e=i===`x`?`y`:`x`;Bv(a?t.measuredBox[e]:t.layoutBox[e],n[e])}else ab(i,t.layoutBox,n)&&_y(r=>{let i=a?t.measuredBox[r]:t.layoutBox[r],o=Yv(n[r]);i.max=i.min+o,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+o)});let o=x_();Qv(o,n,t.layoutBox);let s=x_();a?Qv(s,e.applyTransform(r,!0),t.measuredBox):Qv(s,n,t.layoutBox);let c=!uy(o),l=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:i,layout:a}=r;if(i&&a){let o=e.options.layoutAnchor||void 0,s=C_();ny(s,t.layoutBox,i.layoutBox,o);let c=C_();ny(c,n,a.layoutBox,o),my(s,c)||(l=!0),r.options.layoutRoot&&(e.relativeTarget=c,e.relativeTargetOrigin=s,e.relativeParent=r)}}}e.notifyListeners(`didUpdate`,{layout:n,snapshot:t,delta:s,layoutDelta:o,hasLayoutChanged:c,hasRelativeLayoutChanged:l})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function Gy(e){fp.value&&Iy.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty),e.isTransformDirty||=e.parent.isTransformDirty)}function Ky(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function qy(e){e.clearSnapshot()}function Jy(e){e.clearMeasurements()}function Yy(e){e.isLayoutDirty=!0,e.updateLayout()}function Xy(e){e.isLayoutDirty=!1}function Zy(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function Qy(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify(`BeforeLayoutMeasure`),e.resetTransform()}function $y(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Uee(e){e.resolveTargetDelta()}function Wee(e){e.calcProjection()}function Gee(e){e.resetSkewAndRotation()}function Kee(e){e.removeLeadSnapshot()}function eb(e,t,n){e.translate=hm(t.translate,0,n),e.scale=hm(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function tb(e,t,n,r){e.min=hm(t.min,n.min,r),e.max=hm(t.max,n.max,r)}function qee(e,t,n,r){tb(e.x,t.x,n.x,r),tb(e.y,t.y,n.y,r)}function Jee(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var Yee={duration:.45,ease:[.4,0,.1,1]},nb=e=>typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),rb=nb(`applewebkit/`)&&!nb(`chrome/`)?Math.round:Ff;function ib(e){e.min=rb(e.min),e.max=rb(e.max)}function Xee(e){ib(e.x),ib(e.y)}function ab(e,t,n){return e===`position`||e===`preserve-aspect`&&!Xv(hy(t),hy(n),.2)}function Zee(e){return e!==e.root&&e.scroll?.wasRoot}var Qee=Hy({attachResizeListener:(e,t)=>ky(e,`resize`,t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),ob={current:void 0},sb=Hy({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!ob.current){let e=new Qee({});e.mount(window),e.setOptions({layoutScroll:!0}),ob.current=e}return ob.current},resetTransform:(e,t)=>{e.style.transform=t===void 0?`none`:t},checkIsScrollRoot:e=>window.getComputedStyle(e).position===`fixed`}),cb=(0,R.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:`never`});function lb(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function $ee(...e){return t=>{let n=!1,r=e.map(e=>{let r=lb(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():lb(e[t],null)}}}}function ete(...e){return R.useCallback($ee(...e),e)}var tte=class extends R.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(Xg(t)&&e.isPresent&&!this.props.isPresent&&this.props.pop!==!1){let e=t.offsetParent,n=Xg(e)&&e.offsetWidth||0,r=Xg(e)&&e.offsetHeight||0,i=getComputedStyle(t),a=this.props.sizeRef.current;a.height=parseFloat(i.height),a.width=parseFloat(i.width),a.top=t.offsetTop,a.left=t.offsetLeft,a.right=n-a.width-a.left,a.bottom=r-a.height-a.top}return null}componentDidUpdate(){}render(){return this.props.children}};function nte({children:e,isPresent:t,anchorX:n,anchorY:r,root:i,pop:a}){let o=(0,R.useId)(),s=(0,R.useRef)(null),c=(0,R.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:l}=(0,R.useContext)(cb),u=ete(s,e.props?.ref??e?.ref);return(0,R.useInsertionEffect)(()=>{let{width:e,height:u,top:d,left:f,right:p,bottom:m}=c.current;if(t||a===!1||!s.current||!e||!u)return;let h=n===`left`?`left: ${f}`:`right: ${p}`,g=r===`bottom`?`bottom: ${m}`:`top: ${d}`;s.current.dataset.motionPopId=o;let _=document.createElement(`style`);l&&(_.nonce=l);let v=i??document.head;return v.appendChild(_),_.sheet&&_.sheet.insertRule(`
|
|
20
20
|
[data-motion-pop-id="${o}"] {
|
|
21
21
|
position: absolute !important;
|
|
22
22
|
width: ${e}px !important;
|