@winspan/claude-forge 1.17.1 → 1.17.2

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/README.md CHANGED
@@ -10,7 +10,7 @@ Claude Forge 是一个为 Claude Code 设计的智能编排引擎,通过透明
10
10
  ## ✨ 核心特性
11
11
 
12
12
  - 🎯 **智能意图识别** - 自动分析任务复杂度,决定执行策略(支持规则库匹配和 AI 推理) [x] 2026-04-24
13
- - 🔄 **Pipeline 编排** - 复杂任务自动拆分为多阶段流程(分析→设计→编码→测试→审查),支持纯事件溯源架构和状态机约束,确保状态一致性,已移除双写适配器 [x] 2026-04-21
13
+ - 🔄 **Pipeline 编排** - 复杂任务自动拆分为多阶段流程(分析→设计→编码→测试→审查),支持纯事件溯源架构和状态机约束,确保状态一致性,已移除双写适配器,daemon 启动时自动迁移历史数据 [x] 2026-04-21
14
14
  - 🛡️ **质量门禁** - 每个阶段自动 AI 审查,支持需求规格、安全性、代码质量、测试覆盖、性能等多维度检查,问题追踪和解决状态管理 [x] 2026-04-21
15
15
  - 📊 **Web 管理后台** - 实时监控会话、Pipeline、质量问题、知识图谱、项目管理、自定义规范管理、CLAUDE.md 管理(支持模块化查看和蒸馏压缩) [x] 2026-04-21
16
16
  - 🧠 **知识积累** - 自动提炼决策日志、时间线、项目规范,支持树索引和语义检索 [x] 2026-04-21
@@ -25,7 +25,7 @@ Claude Forge 是一个为 Claude Code 设计的智能编排引擎,通过透明
25
25
  | 功能 | 说明 |
26
26
  |------|------|
27
27
  | 意图识别 | 自动分析任务复杂度(simple/moderate/complex),决定执行策略,支持规则库和 AI 推理 [x] 2026-04-18 |
28
- | Pipeline 编排 | 复杂任务自动拆分为多阶段流程,支持纯事件溯源、状态机约束、质量门禁、阶段产物生成、自动迁移 [x] 2026-04-21 |
28
+ | Pipeline 编排 | 复杂任务自动拆分为多阶段流程,支持纯事件溯源、状态机约束、质量门禁、阶段产物生成、daemon 启动时自动迁移历史数据 [x] 2026-04-21 |
29
29
  | 质量门禁 | 每个阶段自动 AI 审查(需求规格、安全性、代码质量、测试、性能),不合格则阻止推进 [x] 2026-04-18 |
30
30
  | 技能编排 | 根据意图自动匹配并注入最佳实践,支持关键词映射和命中率统计 [x] 2026-04-18 |
31
31
  | 知识蒸馏 | 自动提炼决策日志、时间线、项目规范,支持树索引和语义检索 [x] 2026-04-18 |
@@ -1 +1 @@
1
- {"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../src/pipeline/store.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,KAAK,EAAE,QAAQ,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AACxE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAS1D,qBAAa,aAAa;IACxB,OAAO,CAAC,UAAU,CAAa;IAC/B,OAAO,CAAC,aAAa,CAAgB;IACrC,OAAO,CAAC,UAAU,CAAsB;IACxC,OAAO,CAAC,MAAM,CAAS;gBAEX,OAAO,EAAE,aAAa;IAOlC,cAAc,CACZ,WAAW,EAAE,MAAM,EACnB,WAAW,EAAE,MAAM,EACnB,SAAS,EAAE,MAAM,EACjB,SAAS,CAAC,EAAE,MAAM,EAClB,UAAU,CAAC,EAAE,QAAQ,GAAG,UAAU,GAAG,SAAS,EAC9C,QAAQ,CAAC,EAAE,QAAQ,GAAG,SAAS,GAAG,UAAU,GAAG,aAAa,GAAG,eAAe,GAAG,OAAO,EACxF,aAAa,CAAC,EAAE,aAAa,EAAE,EAC/B,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,EACzC,SAAS,CAAC,EAAE,MAAM,GACjB,QAAQ;IA8BX,QAAQ,CAAC,UAAU,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,CAAC,IAAI,CAAC,YAAY,EAAE,IAAI,CAAC,CAAC,GAAG,YAAY,EAAE;IAwBpF,iBAAiB,CAAC,WAAW,EAAE,MAAM,GAAG,QAAQ,GAAG,IAAI;IAcvD,QAAQ,CAAC,UAAU,EAAE,MAAM,GAAG,YAAY,EAAE;IAO5C,WAAW,CAAC,UAAU,EAAE,MAAM,EAAE,KAAK,EAAE,aAAa,GAAG,IAAI;IAiB3D,SAAS,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI;IAqBnC,YAAY,CAAC,KAAK,SAAqB,GAAG,MAAM;IAqBhD,UAAU,IAAI,KAAK,CAAC;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,aAAa,CAAC;QAAC,SAAS,EAAE,MAAM,CAAA;KAAE,CAAC;IAoBtH,oBAAoB,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM;IAKhD,gBAAgB,CAAC,UAAU,EAAE,MAAM,EAAE,KAAK,EAAE,aAAa,GAAG;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,CAAA;KAAE;IAIhG,gBAAgB,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,GAAG,aAAa,GAAG,WAAW,GAAG,QAAQ,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO;IA0CtH,OAAO,CAAC,MAAM,EAAE,MAAM,GAAG,YAAY,GAAG,IAAI;IAa5C,mBAAmB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI;IAelD,OAAO,CAAC,qBAAqB;IAkB7B,OAAO,CAAC,qBAAqB;CAY9B"}
1
+ {"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../src/pipeline/store.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,KAAK,EAAE,QAAQ,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AACxE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAS1D,qBAAa,aAAa;IACxB,OAAO,CAAC,UAAU,CAAa;IAC/B,OAAO,CAAC,aAAa,CAAgB;IACrC,OAAO,CAAC,UAAU,CAAsB;IACxC,OAAO,CAAC,MAAM,CAAS;gBAEX,OAAO,EAAE,aAAa;IAOlC,cAAc,CACZ,WAAW,EAAE,MAAM,EACnB,WAAW,EAAE,MAAM,EACnB,SAAS,EAAE,MAAM,EACjB,SAAS,CAAC,EAAE,MAAM,EAClB,UAAU,CAAC,EAAE,QAAQ,GAAG,UAAU,GAAG,SAAS,EAC9C,QAAQ,CAAC,EAAE,QAAQ,GAAG,SAAS,GAAG,UAAU,GAAG,aAAa,GAAG,eAAe,GAAG,OAAO,EACxF,aAAa,CAAC,EAAE,aAAa,EAAE,EAC/B,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,EACzC,SAAS,CAAC,EAAE,MAAM,GACjB,QAAQ;IA8BX,QAAQ,CAAC,UAAU,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,CAAC,IAAI,CAAC,YAAY,EAAE,IAAI,CAAC,CAAC,GAAG,YAAY,EAAE;IAwBpF,iBAAiB,CAAC,WAAW,EAAE,MAAM,GAAG,QAAQ,GAAG,IAAI;IAcvD,QAAQ,CAAC,UAAU,EAAE,MAAM,GAAG,YAAY,EAAE;IAO5C,WAAW,CAAC,UAAU,EAAE,MAAM,EAAE,KAAK,EAAE,aAAa,GAAG,IAAI;IAiB3D,SAAS,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI;IAqBnC,YAAY,CAAC,KAAK,SAAqB,GAAG,MAAM;IAqBhD,UAAU,IAAI,KAAK,CAAC;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,aAAa,CAAC;QAAC,SAAS,EAAE,MAAM,CAAA;KAAE,CAAC;IAuBtH,oBAAoB,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM;IAKhD,gBAAgB,CAAC,UAAU,EAAE,MAAM,EAAE,KAAK,EAAE,aAAa,GAAG;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,CAAA;KAAE;IAIhG,gBAAgB,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,GAAG,aAAa,GAAG,WAAW,GAAG,QAAQ,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO;IA0CtH,OAAO,CAAC,MAAM,EAAE,MAAM,GAAG,YAAY,GAAG,IAAI;IAa5C,mBAAmB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI;IAelD,OAAO,CAAC,qBAAqB;IAkB7B,OAAO,CAAC,qBAAqB;CAY9B"}
@@ -142,7 +142,9 @@ export class PipelineStore {
142
142
  const result = [];
143
143
  for (const pipelineId of pipelineIds) {
144
144
  const state = this.aggregator.rebuild(pipelineId);
145
- if (state && state.status !== 'completed') {
145
+ // 检查是否有 PIPELINE_CLOSED 事件
146
+ const closedEvent = this.eventStore.getLatestEventByType(pipelineId, PipelineEventType.PIPELINE_CLOSED);
147
+ if (state && !closedEvent && state.phase !== 'done') {
146
148
  result.push({
147
149
  id: state.id,
148
150
  requirement: state.requirement,
@@ -1 +1 @@
1
- {"version":3,"file":"store.js","sourceRoot":"","sources":["../../src/pipeline/store.ts"],"names":[],"mappings":"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"}
1
+ {"version":3,"file":"store.js","sourceRoot":"","sources":["../../src/pipeline/store.ts"],"names":[],"mappings":"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"}
@@ -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&&(z.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&&z.merge(i.common,i[t.method]);i&&z.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||Ha;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),Ba(Mo(e.baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}};z.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}))}}),z.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 z.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=yi(us.prototype.request,t);return z.extend(n,us.prototype,t,{allOwnKeys:!0}),z.extend(n,t,null,{allOwnKeys:!0}),n.create=function(t){return hs(Po(e,t))},n}var gs=hs(ro);gs.Axios=us,gs.CanceledError=bo,gs.CancelToken=ds,gs.isCancel=yo,gs.VERSION=is,gs.toFormData=Fa,gs.AxiosError=B,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=>eo(z.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,I.createContext)({}),ws=()=>(0,I.useContext)(Cs),Ts=(0,I.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,I.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,I.createElement)(e,t)),...Array.isArray(a)?a:[a]])}),H=(e,t)=>{let n=(0,I.forwardRef)(({className:n,...r},i)=>(0,I.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(`arrow-left`,[[`path`,{d:`m12 19-7-7 7-7`,key:`1l729n`}],[`path`,{d:`M19 12H5`,key:`x3x0zl`}]]),Os=H(`arrow-right`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`m12 5 7 7-7 7`,key:`xquz4c`}]]),ks=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`}]]),As=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`}]]),js=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`}]]),Ms=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`}]]),Ns=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`}]]),Ps=H(`check`,[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]),Fs=H(`chevron-down`,[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]),Is=H(`chevron-left`,[[`path`,{d:`m15 18-6-6 6-6`,key:`1wnfg3`}]]),Ls=H(`chevron-right`,[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]),Rs=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`}]]),zs=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`}]]),Bs=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`}]]),Vs=H(`circle`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}]]),Hs=H(`clock`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 6v6l4 2`,key:`mmk7yg`}]]),Us=H(`code`,[[`path`,{d:`m16 18 6-6-6-6`,key:`eg8j8`}],[`path`,{d:`m8 6-6 6 6 6`,key:`ppft3o`}]]),Ws=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`}]]),Gs=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`}]]),Ks=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`}]]),qs=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`}]]),Js=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`}]]),Ys=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`}]]),Xs=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`}]]),Zs=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`}]]),Qs=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`}]]),$s=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`}]]),ec=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`}]]),tc=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`}]]),nc=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`}]]),rc=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`}]]),ic=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`}]]),ac=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`}]]),oc=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(`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`}]]),lc=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`}]]),uc=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`}]]),dc=H(`plus`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]),fc=H(`power`,[[`path`,{d:`M12 2v10`,key:`mnfbl`}],[`path`,{d:`M18.4 6.6a9 9 0 1 1-12.77.04`,key:`obofu9`}]]),pc=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`}]]),hc=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`}]]),gc=H(`search`,[[`path`,{d:`m21 21-4.34-4.34`,key:`14j7rj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}]]),_c=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`}]]),vc=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`}]]),yc=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`}]]),bc=H(`terminal`,[[`path`,{d:`M12 19h8`,key:`baeox8`}],[`path`,{d:`m4 17 6-6-6-6`,key:`1yngyt`}]]),xc=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`}]]),Sc=H(`trending-up`,[[`path`,{d:`M16 7h6v6`,key:`box55l`}],[`path`,{d:`m22 7-8.5 8.5-5-5L2 17`,key:`1t1m79`}]]),Cc=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`}]]),wc=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`}]]),Tc=H(`wand-sparkles`,[[`path`,{d:`m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72`,key:`ul74o6`}],[`path`,{d:`m14 7 3 3`,key:`1r5n42`}],[`path`,{d:`M5 6v4`,key:`ilb8ba`}],[`path`,{d:`M19 14v4`,key:`blhpug`}],[`path`,{d:`M10 2v2`,key:`7u0qdc`}],[`path`,{d:`M7 8H3`,key:`zfb6yr`}],[`path`,{d:`M21 16h-4`,key:`1cnmox`}],[`path`,{d:`M11 3H9`,key:`1obp7u`}]]),Ec=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`}]]),Dc=H(`x`,[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]),Oc=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`}]]),kc=u(y(),1),Ac=u(_(),1),jc=(0,I.createContext)({toast:()=>{}}),Mc=()=>{};function Nc(e,t=`error`){Mc(e,t)}function Pc({children:e}){let[t,n]=(0,I.useState)([]),r={current:0},i=(0,I.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,I.useEffect)(()=>{Mc=i},[i]);let a={success:zs,error:Bs,warning:Cc},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,L.jsxs)(jc.Provider,{value:{toast:i},children:[e,(0,Ac.createPortal)((0,L.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,L.jsxs)(`div`,{className:`flex items-start gap-3 px-4 py-3 rounded-lg border shadow-lg text-sm ${o[e.type]}`,children:[(0,L.jsx)(t,{className:`h-4 w-4 mt-0.5 flex-shrink-0 ${s[e.type]}`}),(0,L.jsx)(`span`,{className:`flex-1`,children:e.message}),(0,L.jsx)(`button`,{onClick:()=>n(t=>t.filter(t=>t.id!==e.id)),children:(0,L.jsx)(Dc,{className:`h-3.5 w-3.5 opacity-60 hover:opacity-100`})})]},e.id)})}),document.body)]})}var U=gs.create({baseURL:`/api`,timeout:3e4});U.interceptors.response.use(e=>e,e=>(Nc(e.response?.data?.error||e.response?.data?.message||e.message||`请求失败`,`error`),Promise.reject(e)));var Fc=()=>U.get(`/health`),Ic=()=>U.get(`/config`),Lc=e=>U.put(`/config`,e),Rc=e=>U.get(`/sessions`,{params:e}),zc=e=>U.get(`/sessions/${e}`),Bc=e=>U.delete(`/sessions/${e}`),Vc=e=>U.delete(`/sessions`,{data:{ids:e}}),Hc=e=>U.get(`/events`,{params:e}),Uc=e=>U.get(`/events/stats`,{params:{project_path:e}}),Wc=e=>U.get(`/pipelines`,{params:e}),Gc=e=>U.get(`/pipelines/${e}`),Kc=e=>U.get(`/quality/history`,{params:e}),qc=e=>U.get(`/quality/unresolved`,{params:{project_path:e}}),Jc=()=>U.get(`/stats/roi`),Yc=()=>U.get(`/stats/overview`),Xc=(e,t)=>U.get(`/knowledge/search`,{params:{q:e,project_path:t}}),Zc=e=>U.get(`/knowledge/overview`,{params:{project_path:e}}),Qc=(e,t)=>U.get(`/knowledge/neighbors`,{params:{node_id:e,project_path:t}}),$c=e=>U.post(`/knowledge/nodes`,e),el=(e,t)=>U.put(`/knowledge/nodes/${e}`,t),tl=e=>U.delete(`/knowledge/nodes/${e}`),nl=e=>U.post(`/pipelines/${e}/close`),rl=e=>U.post(`/pipelines/batch-close`,{ids:e}),il=()=>U.post(`/pipelines/close-expired`),al=()=>U.get(`/pipelines/active`),ol=(e,t)=>U.post(`/pipelines/tasks/${e}/status`,{status:t}),sl=e=>U.post(`/pipelines/${e}/resume`),cl=e=>U.get(`/projects`,{params:e}),ll=e=>U.get(`/projects/${e}`),ul=e=>U.delete(`/projects/${e}`),dl=e=>U.get(`/convention/${e}`),fl=(e,t,n,r)=>U.put(`/convention/${e}/${t}`,{name:n,content:r}),pl=(e,t)=>U.delete(`/convention/${e}/${t}`),ml=(e,t)=>U.post(`/convention/${e}/evolve`,{id:t}),hl=e=>U.post(`/convention/init`,{path:e},{timeout:18e4}),gl=e=>U.get(`/claudemd/${e}`),_l=(e,t)=>U.put(`/claudemd/${e}`,{content:t}),vl=e=>U.get(`/claudemd/${e}/profile`),yl=e=>U.get(`/claudemd/${e}/modules`),bl=e=>U.post(`/claudemd/${e}/distill`,void 0,{timeout:18e4}),xl=e=>U.post(`/claudemd/${e}/init`,void 0,{timeout:18e4}),Sl=e=>U.post(`/quality/${e}/resolve`),Cl=e=>U.post(`/quality/${e}/dismiss`),wl=()=>U.post(`/quality/resolve-all`),Tl=e=>U.post(`/quality/${e}/auto-fix`,{},{timeout:6e4}),El=()=>U.get(`/daemon/status`),Dl=()=>U.post(`/daemon/restart`),Ol=()=>U.get(`/daemon/diagnose`),kl=()=>U.post(`/daemon/repair`),Al=()=>U.post(`/config/backup`),jl=()=>U.get(`/config/backups`),Ml=e=>U.post(`/events/purge`,{retentionDays:e});function Nl(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=Nl(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n);return r}function Pl(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Nl(e))&&(r&&(r+=` `),r+=t);return r}var Fl=(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},Il=(e,t)=>({classGroupId:e,validator:t}),Ll=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Rl=`-`,zl=[],Bl=`arbitrary..`,Vl=e=>{let t=Wl(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith(`[`)&&e.endsWith(`]`))return Ul(e);let n=e.split(Rl);return Hl(n,+(n[0]===``&&n.length>1),t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],i=n[e];return t?i?Fl(i,t):t:i||zl}return n[e]||zl}}},Hl=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=Hl(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let o=t===0?e.join(Rl):e.slice(t).join(Rl),s=a.length;for(let e=0;e<s;e++){let t=a[e];if(t.validator(o))return t.classGroupId}},Ul=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?Bl+r:void 0})(),Wl=e=>{let{theme:t,classGroups:n}=e;return Gl(n,t)},Gl=(e,t)=>{let n=Ll();for(let r in e){let i=e[r];Kl(i,n,r,t)}return n},Kl=(e,t,n,r)=>{let i=e.length;for(let a=0;a<i;a++){let i=e[a];ql(i,t,n,r)}},ql=(e,t,n,r)=>{if(typeof e==`string`){Jl(e,t,n);return}if(typeof e==`function`){Yl(e,t,n,r);return}Xl(e,t,n,r)},Jl=(e,t,n)=>{let r=e===``?t:Zl(t,e);r.classGroupId=n},Yl=(e,t,n,r)=>{if(Ql(e)){Kl(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(Il(n,e))},Xl=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e<a;e++){let[a,o]=i[e];Kl(o,Zl(t,a),n,r)}},Zl=(e,t)=>{let n=e,r=t.split(Rl),i=r.length;for(let e=0;e<i;e++){let t=r[e],i=n.nextPart.get(t);i||(i=Ll(),n.nextPart.set(t,i)),n=i}return n},Ql=e=>`isThemeGetter`in e&&e.isThemeGetter===!0,$l=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)}}},eu=`!`,tu=`:`,nu=[],ru=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),iu=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===tu){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(eu)?(c=s.slice(0,-1),l=!0):s.startsWith(eu)&&(c=s.slice(1),l=!0);let u=a&&a>i?a-i:void 0;return ru(t,l,c,u)};if(t){let e=t+tu,n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):ru(nu,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},au=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}},ou=e=>({cache:$l(e.cacheSize),parseClassName:iu(e),sortModifiers:au(e),...Vl(e)}),su=/\s+/,cu=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a}=t,o=[],s=e.trim().split(su),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+eu: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},lu=(...e)=>{let t=0,n,r,i=``;for(;t<e.length;)(n=e[t++])&&(r=uu(n))&&(i&&(i+=` `),i+=r);return i},uu=e=>{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r<e.length;r++)e[r]&&(t=uu(e[r]))&&(n&&(n+=` `),n+=t);return n},du=(e,...t)=>{let n,r,i,a,o=o=>(n=ou(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=cu(e,n);return i(e,a),a};return a=o,(...e)=>a(lu(...e))},fu=[],pu=e=>{let t=t=>t[e]||fu;return t.isThemeGetter=!0,t},mu=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,hu=/^\((?:(\w[\w-]*):)?(.+)\)$/i,gu=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,_u=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,vu=/\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$/,yu=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,bu=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,xu=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Su=e=>gu.test(e),Cu=e=>!!e&&!Number.isNaN(Number(e)),wu=e=>!!e&&Number.isInteger(Number(e)),Tu=e=>e.endsWith(`%`)&&Cu(e.slice(0,-1)),Eu=e=>_u.test(e),Du=()=>!0,Ou=e=>vu.test(e)&&!yu.test(e),ku=()=>!1,Au=e=>bu.test(e),ju=e=>xu.test(e),Mu=e=>!W(e)&&!G(e),Nu=e=>Ju(e,Qu,ku),W=e=>mu.test(e),Pu=e=>Ju(e,$u,Ou),Fu=e=>Ju(e,ed,Cu),Iu=e=>Ju(e,nd,Du),Lu=e=>Ju(e,td,ku),Ru=e=>Ju(e,Xu,ku),zu=e=>Ju(e,Zu,ju),Bu=e=>Ju(e,rd,Au),G=e=>hu.test(e),Vu=e=>Yu(e,$u),Hu=e=>Yu(e,td),Uu=e=>Yu(e,Xu),Wu=e=>Yu(e,Qu),Gu=e=>Yu(e,Zu),Ku=e=>Yu(e,rd,!0),qu=e=>Yu(e,nd,!0),Ju=(e,t,n)=>{let r=mu.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Yu=(e,t,n=!1)=>{let r=hu.exec(e);return r?r[1]?t(r[1]):n:!1},Xu=e=>e===`position`||e===`percentage`,Zu=e=>e===`image`||e===`url`,Qu=e=>e===`length`||e===`size`||e===`bg-size`,$u=e=>e===`length`,ed=e=>e===`number`,td=e=>e===`family-name`,nd=e=>e===`number`||e===`weight`,rd=e=>e===`shadow`,id=du(()=>{let e=pu(`color`),t=pu(`font`),n=pu(`text`),r=pu(`font-weight`),i=pu(`tracking`),a=pu(`leading`),o=pu(`breakpoint`),s=pu(`container`),c=pu(`spacing`),l=pu(`radius`),u=pu(`shadow`),d=pu(`inset-shadow`),f=pu(`text-shadow`),p=pu(`drop-shadow`),m=pu(`blur`),h=pu(`perspective`),g=pu(`aspect`),_=pu(`ease`),v=pu(`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(),G,W],S=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],C=()=>[`auto`,`contain`,`none`],w=()=>[G,W,c],T=()=>[Su,`full`,`auto`,...w()],E=()=>[wu,`none`,`subgrid`,G,W],D=()=>[`auto`,{span:[`full`,wu,G,W]},wu,G,W],O=()=>[wu,`auto`,G,W],k=()=>[`auto`,`min`,`max`,`fr`,G,W],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=()=>[Su,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...w()],ee=()=>[Su,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,...w()],te=()=>[Su,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,...w()],P=()=>[e,G,W],F=()=>[...b(),Uu,Ru,{position:[G,W]}],ne=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],re=()=>[`auto`,`cover`,`contain`,Wu,Nu,{size:[G,W]}],ie=()=>[Tu,Vu,Pu],ae=()=>[``,`none`,`full`,l,G,W],oe=()=>[``,Cu,Vu,Pu],se=()=>[`solid`,`dashed`,`dotted`,`double`],ce=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],le=()=>[Cu,Tu,Uu,Ru],ue=()=>[``,`none`,m,G,W],de=()=>[`none`,Cu,G,W],fe=()=>[`none`,Cu,G,W],pe=()=>[Cu,G,W],me=()=>[Su,`full`,...w()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[Eu],breakpoint:[Eu],color:[Du],container:[Eu],"drop-shadow":[Eu],ease:[`in`,`out`,`in-out`],font:[Mu],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[Eu],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[Eu],shadow:[Eu],spacing:[`px`,Cu],text:[Eu],"text-shadow":[Eu],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,Su,W,G,g]}],container:[`container`],columns:[{columns:[Cu,W,G,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:[wu,`auto`,G,W]}],basis:[{basis:[Su,`full`,`auto`,s,...w()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[Cu,Su,`auto`,`initial`,`none`,W]}],grow:[{grow:[``,Cu,G,W]}],shrink:[{shrink:[``,Cu,G,W]}],order:[{order:[wu,`first`,`last`,`none`,G,W]}],"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,Vu,Pu]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,qu,Iu]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,Tu,W]}],"font-family":[{font:[Hu,Lu,t]}],"font-features":[{"font-features":[W]}],"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,G,W]}],"line-clamp":[{"line-clamp":[Cu,`none`,G,Fu]}],leading:[{leading:[a,...w()]}],"list-image":[{"list-image":[`none`,G,W]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,G,W]}],"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:[...se(),`wavy`]}],"text-decoration-thickness":[{decoration:[Cu,`from-font`,`auto`,G,Pu]}],"text-decoration-color":[{decoration:P()}],"underline-offset":[{"underline-offset":[Cu,`auto`,G,W]}],"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`,G,W]}],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`,G,W]}],"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:ne()}],"bg-size":[{bg:re()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},wu,G,W],radial:[``,G,W],conic:[wu,G,W]},Gu,zu]}],"bg-color":[{bg:P()}],"gradient-from-pos":[{from:ie()}],"gradient-via-pos":[{via:ie()}],"gradient-to-pos":[{to:ie()}],"gradient-from":[{from:P()}],"gradient-via":[{via:P()}],"gradient-to":[{to:P()}],rounded:[{rounded:ae()}],"rounded-s":[{"rounded-s":ae()}],"rounded-e":[{"rounded-e":ae()}],"rounded-t":[{"rounded-t":ae()}],"rounded-r":[{"rounded-r":ae()}],"rounded-b":[{"rounded-b":ae()}],"rounded-l":[{"rounded-l":ae()}],"rounded-ss":[{"rounded-ss":ae()}],"rounded-se":[{"rounded-se":ae()}],"rounded-ee":[{"rounded-ee":ae()}],"rounded-es":[{"rounded-es":ae()}],"rounded-tl":[{"rounded-tl":ae()}],"rounded-tr":[{"rounded-tr":ae()}],"rounded-br":[{"rounded-br":ae()}],"rounded-bl":[{"rounded-bl":ae()}],"border-w":[{border:oe()}],"border-w-x":[{"border-x":oe()}],"border-w-y":[{"border-y":oe()}],"border-w-s":[{"border-s":oe()}],"border-w-e":[{"border-e":oe()}],"border-w-bs":[{"border-bs":oe()}],"border-w-be":[{"border-be":oe()}],"border-w-t":[{"border-t":oe()}],"border-w-r":[{"border-r":oe()}],"border-w-b":[{"border-b":oe()}],"border-w-l":[{"border-l":oe()}],"divide-x":[{"divide-x":oe()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":oe()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[...se(),`hidden`,`none`]}],"divide-style":[{divide:[...se(),`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:[...se(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[Cu,G,W]}],"outline-w":[{outline:[``,Cu,Vu,Pu]}],"outline-color":[{outline:P()}],shadow:[{shadow:[``,`none`,u,Ku,Bu]}],"shadow-color":[{shadow:P()}],"inset-shadow":[{"inset-shadow":[`none`,d,Ku,Bu]}],"inset-shadow-color":[{"inset-shadow":P()}],"ring-w":[{ring:oe()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:P()}],"ring-offset-w":[{"ring-offset":[Cu,Pu]}],"ring-offset-color":[{"ring-offset":P()}],"inset-ring-w":[{"inset-ring":oe()}],"inset-ring-color":[{"inset-ring":P()}],"text-shadow":[{"text-shadow":[`none`,f,Ku,Bu]}],"text-shadow-color":[{"text-shadow":P()}],opacity:[{opacity:[Cu,G,W]}],"mix-blend":[{"mix-blend":[...ce(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":ce()}],"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":[Cu]}],"mask-image-linear-from-pos":[{"mask-linear-from":le()}],"mask-image-linear-to-pos":[{"mask-linear-to":le()}],"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":le()}],"mask-image-t-to-pos":[{"mask-t-to":le()}],"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":le()}],"mask-image-r-to-pos":[{"mask-r-to":le()}],"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":le()}],"mask-image-b-to-pos":[{"mask-b-to":le()}],"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":le()}],"mask-image-l-to-pos":[{"mask-l-to":le()}],"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":le()}],"mask-image-x-to-pos":[{"mask-x-to":le()}],"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":le()}],"mask-image-y-to-pos":[{"mask-y-to":le()}],"mask-image-y-from-color":[{"mask-y-from":P()}],"mask-image-y-to-color":[{"mask-y-to":P()}],"mask-image-radial":[{"mask-radial":[G,W]}],"mask-image-radial-from-pos":[{"mask-radial-from":le()}],"mask-image-radial-to-pos":[{"mask-radial-to":le()}],"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":[Cu]}],"mask-image-conic-from-pos":[{"mask-conic-from":le()}],"mask-image-conic-to-pos":[{"mask-conic-to":le()}],"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:ne()}],"mask-size":[{mask:re()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,G,W]}],filter:[{filter:[``,`none`,G,W]}],blur:[{blur:ue()}],brightness:[{brightness:[Cu,G,W]}],contrast:[{contrast:[Cu,G,W]}],"drop-shadow":[{"drop-shadow":[``,`none`,p,Ku,Bu]}],"drop-shadow-color":[{"drop-shadow":P()}],grayscale:[{grayscale:[``,Cu,G,W]}],"hue-rotate":[{"hue-rotate":[Cu,G,W]}],invert:[{invert:[``,Cu,G,W]}],saturate:[{saturate:[Cu,G,W]}],sepia:[{sepia:[``,Cu,G,W]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,G,W]}],"backdrop-blur":[{"backdrop-blur":ue()}],"backdrop-brightness":[{"backdrop-brightness":[Cu,G,W]}],"backdrop-contrast":[{"backdrop-contrast":[Cu,G,W]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,Cu,G,W]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Cu,G,W]}],"backdrop-invert":[{"backdrop-invert":[``,Cu,G,W]}],"backdrop-opacity":[{"backdrop-opacity":[Cu,G,W]}],"backdrop-saturate":[{"backdrop-saturate":[Cu,G,W]}],"backdrop-sepia":[{"backdrop-sepia":[``,Cu,G,W]}],"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`,G,W]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[Cu,`initial`,G,W]}],ease:[{ease:[`linear`,`initial`,_,G,W]}],delay:[{delay:[Cu,G,W]}],animate:[{animate:[`none`,v,G,W]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[h,G,W]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:de()}],"rotate-x":[{"rotate-x":de()}],"rotate-y":[{"rotate-y":de()}],"rotate-z":[{"rotate-z":de()}],scale:[{scale:fe()}],"scale-x":[{"scale-x":fe()}],"scale-y":[{"scale-y":fe()}],"scale-z":[{"scale-z":fe()}],"scale-3d":[`scale-3d`],skew:[{skew:pe()}],"skew-x":[{"skew-x":pe()}],"skew-y":[{"skew-y":pe()}],transform:[{transform:[G,W,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:me()}],"translate-x":[{"translate-x":me()}],"translate-y":[{"translate-y":me()}],"translate-z":[{"translate-z":me()}],"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`,G,W]}],"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`,G,W]}],fill:[{fill:[`none`,...P()]}],"stroke-w":[{stroke:[Cu,Vu,Pu,Fu]}],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 K(...e){return id(Pl(e))}function ad(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 od(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 sd(e){return e?e.endsWith(`Z`)||/[+-]\d{2}:\d{2}$/.test(e)?new Date(e):new Date(e+`Z`):new Date}var cd=[{path:`/dashboard`,label:`仪表盘`,icon:ic},{path:`/projects`,label:`项目管理`,icon:$s},{path:`/sessions`,label:`会话管理`,icon:Es},{path:`/events`,label:`事件流`,icon:Ms},{path:`/pipelines`,label:`流水线`,icon:tc},{path:`/quality`,label:`质量门禁`,icon:vc},{path:`/knowledge`,label:`知识图谱`,icon:js},{path:`/analytics`,label:`数据分析`,icon:Ns},{path:`/config`,label:`系统配置`,icon:_c}];function ld({children:e}){let[t,n]=(0,I.useState)(()=>localStorage.getItem(`sidebar-collapsed`)===`true`),r=Nn();(0,I.useEffect)(()=>{localStorage.setItem(`sidebar-collapsed`,String(t))},[t]);let{data:i}=dt({queryKey:[`health`],queryFn:()=>Fc().then(e=>e.data),refetchInterval:15e3}),a=cd.find(e=>r.pathname.startsWith(e.path));return(0,L.jsxs)(`div`,{className:`flex min-h-screen bg-gray-50`,children:[(0,L.jsxs)(`aside`,{className:K(`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,L.jsxs)(`div`,{className:K(`flex items-center border-b border-white/10 h-16`,t?`justify-center px-2`:`justify-between px-5`),children:[!t&&(0,L.jsxs)(`div`,{className:`flex items-center gap-2.5`,children:[(0,L.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,L.jsx)(Oc,{className:`h-5 w-5 text-white`})}),(0,L.jsx)(`span`,{className:`text-white font-bold text-lg tracking-tight`,children:`Forge`})]}),(0,L.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,L.jsx)(oc,{className:`h-5 w-5`}):(0,L.jsx)(Is,{className:`h-5 w-5`})})]}),(0,L.jsx)(`nav`,{className:`flex-1 py-4 space-y-1 px-2`,children:cd.map(e=>(0,L.jsxs)(ni,{to:e.path,className:({isActive:e})=>K(`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,L.jsx)(e.icon,{className:`h-5 w-5 flex-shrink-0`}),!t&&(0,L.jsx)(`span`,{className:`text-sm font-medium`,children:e.label})]},e.path))}),(0,L.jsx)(`div`,{className:K(`border-t border-white/10 py-4`,t?`px-2`:`px-5`),children:(0,L.jsxs)(`div`,{className:K(`flex items-center gap-2`,t?`justify-center`:``),children:[(0,L.jsx)(`div`,{className:K(`w-2 h-2 rounded-full`,i?.status===`ok`?`bg-green-400 animate-pulse`:`bg-red-400`)}),!t&&(0,L.jsx)(`span`,{className:`text-xs text-white/40`,children:i?.status===`ok`?`Daemon 运行中`:`连接断开`})]})})]}),(0,L.jsxs)(`main`,{className:K(`flex-1 transition-all duration-300`,t?`ml-16`:`ml-60`),children:[(0,L.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,L.jsx)(`h1`,{className:`text-xl font-semibold text-gray-900`,children:a?.label||`Claude Forge`}),(0,L.jsxs)(`div`,{className:`flex items-center gap-4`,children:[(0,L.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,L.jsx)(Ws,{className:`h-4 w-4`}),(0,L.jsx)(`span`,{children:`命令面板`}),(0,L.jsx)(`kbd`,{className:`px-2 py-0.5 text-xs bg-gray-100 rounded border border-gray-200`,children:`⌘K`})]}),(0,L.jsxs)(`span`,{className:`text-sm text-gray-500`,children:[`v`,`1.17.1`]}),(0,L.jsxs)(`div`,{className:K(`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,L.jsx)(`div`,{className:K(`w-1.5 h-1.5 rounded-full`,i?.status===`ok`?`bg-green-500`:`bg-red-500`)}),i?.status===`ok`?`在线`:`离线`]})]})]}),(0,L.jsx)(`div`,{className:`p-8`,children:e})]})]})}var ud=(0,I.createContext)({});function dd(e){let t=(0,I.useRef)(null);return t.current===null&&(t.current=e()),t.current}var fd=typeof window<`u`?I.useLayoutEffect:I.useEffect,pd=(0,I.createContext)(null);function md(e,t){e.indexOf(t)===-1&&e.push(t)}function hd(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}var gd=(e,t,n)=>n>t?t:n<e?e:n,_d={},vd=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function yd(e){return typeof e==`object`&&!!e}var bd=e=>/^0[^.\s]+$/u.test(e);function xd(e){let t;return()=>(t===void 0&&(t=e()),t)}var Sd=e=>e,Cd=(e,t)=>n=>t(e(n)),wd=(...e)=>e.reduce(Cd),q=(e,t,n)=>{let r=t-e;return r===0?1:(n-e)/r},Td=class{constructor(){this.subscriptions=[]}add(e){return md(this.subscriptions,e),()=>hd(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}},Ed=e=>e*1e3,Dd=e=>e/1e3;function Od(e,t){return t?1e3/t*e:0}var kd=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Ad=1e-7,jd=12;function Md(e,t,n,r,i){let a,o,s=0;do o=t+(n-t)/2,a=kd(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>Ad&&++s<jd);return o}function Nd(e,t,n,r){if(e===t&&n===r)return Sd;let i=t=>Md(t,0,1,e,n);return e=>e===0||e===1?e:kd(i(e),t,r)}var Pd=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Fd=e=>t=>1-e(1-t),Id=Nd(.33,1.53,.69,.99),Ld=Fd(Id),Rd=Pd(Ld),zd=e=>e>=1?1:(e*=2)<1?.5*Ld(e):.5*(2-2**(-10*(e-1))),Bd=e=>1-Math.sin(Math.acos(e)),Vd=Fd(Bd),Hd=Pd(Bd),Ud=Nd(.42,0,1,1),Wd=Nd(0,0,.58,1),Gd=Nd(.42,0,.58,1),Kd=e=>Array.isArray(e)&&typeof e[0]!=`number`,qd=e=>Array.isArray(e)&&typeof e[0]==`number`,Jd={linear:Sd,easeIn:Ud,easeInOut:Gd,easeOut:Wd,circIn:Bd,circInOut:Hd,circOut:Vd,backIn:Ld,backInOut:Rd,backOut:Id,anticipate:zd},Yd=e=>typeof e==`string`,Xd=e=>{if(qd(e)){e.length;let[t,n,r,i]=e;return Nd(t,n,r,i)}else if(Yd(e))return Jd[e],`${e}`,Jd[e];return e},Zd=[`setup`,`read`,`resolveKeyframes`,`preUpdate`,`update`,`preRender`,`render`,`postRender`],Qd={value:null,addProjectionMetrics:null};function $d(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&&Qd.value&&Qd.value.frameloop[t].push(c),c=0,n.clear(),i=!1,a&&(a=!1,u.process(e))}};return u}var ef=40;function tf(e,t){let n=!1,r=!0,i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,o=Zd.reduce((e,n)=>(e[n]=$d(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=_d.useManualTiming,o=a?i.timestamp:performance.now();n=!1,a||(i.delta=r?1e3/60:Math.max(Math.min(o-i.timestamp,ef),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:Zd.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<Zd.length;t++)o[Zd[t]].cancel(e)},state:i,steps:o}}var{schedule:nf,cancel:rf,state:af,steps:of}=tf(typeof requestAnimationFrame<`u`?requestAnimationFrame:Sd,!0),sf;function cf(){sf=void 0}var lf={now:()=>(sf===void 0&&lf.set(af.isProcessing||_d.useManualTiming?af.timestamp:performance.now()),sf),set:e=>{sf=e,queueMicrotask(cf)}},uf={layout:0,mainThread:0,waapi:0},df=e=>t=>typeof t==`string`&&t.startsWith(e),ff=df(`--`),pf=df(`var(--`),mf=e=>pf(e)?hf.test(e.split(`/*`)[0].trim()):!1,hf=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function gf(e){return typeof e==`string`?e.split(`/*`)[0].includes(`var(--`):!1}var _f={test:e=>typeof e==`number`,parse:parseFloat,transform:e=>e},vf={..._f,transform:e=>gd(0,1,e)},yf={..._f,default:1},bf=e=>Math.round(e*1e5)/1e5,xf=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Sf(e){return e==null}var Cf=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,wf=(e,t)=>n=>!!(typeof n==`string`&&Cf.test(n)&&n.startsWith(e)||t&&!Sf(n)&&Object.prototype.hasOwnProperty.call(n,t)),Tf=(e,t,n)=>r=>{if(typeof r!=`string`)return r;let[i,a,o,s]=r.match(xf);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s===void 0?1:parseFloat(s)}},Ef=e=>gd(0,255,e),Df={..._f,transform:e=>Math.round(Ef(e))},Of={test:wf(`rgb`,`red`),parse:Tf(`red`,`green`,`blue`),transform:({red:e,green:t,blue:n,alpha:r=1})=>`rgba(`+Df.transform(e)+`, `+Df.transform(t)+`, `+Df.transform(n)+`, `+bf(vf.transform(r))+`)`};function kf(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 Af={test:wf(`#`),parse:kf,transform:Of.transform},jf=e=>({test:t=>typeof t==`string`&&t.endsWith(e)&&t.split(` `).length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Mf=jf(`deg`),Nf=jf(`%`),J=jf(`px`),Pf=jf(`vh`),Ff=jf(`vw`),If={...Nf,parse:e=>Nf.parse(e)/100,transform:e=>Nf.transform(e*100)},Lf={test:wf(`hsl`,`hue`),parse:Tf(`hue`,`saturation`,`lightness`),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>`hsla(`+Math.round(e)+`, `+Nf.transform(bf(t))+`, `+Nf.transform(bf(n))+`, `+bf(vf.transform(r))+`)`},Rf={test:e=>Of.test(e)||Af.test(e)||Lf.test(e),parse:e=>Of.test(e)?Of.parse(e):Lf.test(e)?Lf.parse(e):Af.parse(e),transform:e=>typeof e==`string`?e:e.hasOwnProperty(`red`)?Of.transform(e):Lf.transform(e),getAnimatableNone:e=>{let t=Rf.parse(e);return t.alpha=0,Rf.transform(t)}},zf=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Bf(e){return isNaN(e)&&typeof e==`string`&&(e.match(xf)?.length||0)+(e.match(zf)?.length||0)>0}var Vf=`number`,Hf=`color`,Uf=`var`,Wf=`var(`,Gf="${}",Kf=/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 qf(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],a=0;return{values:n,split:t.replace(Kf,e=>(Rf.test(e)?(r.color.push(a),i.push(Hf),n.push(Rf.parse(e))):e.startsWith(Wf)?(r.var.push(a),i.push(Uf),n.push(e)):(r.number.push(a),i.push(Vf),n.push(parseFloat(e))),++a,Gf)).split(Gf),indexes:r,types:i}}function Jf(e){return qf(e).values}function Yf({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===Vf?i+=bf(r[a]):e===Hf?i+=Rf.transform(r[a]):i+=r[a]}return i}}function Xf(e){return Yf(qf(e))}var Zf=e=>typeof e==`number`?0:Rf.test(e)?Rf.getAnimatableNone(e):e,Qf=(e,t)=>typeof e==`number`?t?.trim().endsWith(`/`)?e:0:Zf(e);function $f(e){let t=qf(e);return Yf(t)(t.values.map((e,n)=>Qf(e,t.split[n])))}var ep={test:Bf,parse:Jf,createTransformer:Xf,getAnimatableNone:$f};function tp(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 np({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=tp(s,r,e+1/3),a=tp(s,r,e),o=tp(s,r,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function rp(e,t){return n=>n>0?t:e}var ip=(e,t,n)=>e+(t-e)*n,ap=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},op=[Af,Of,Lf],sp=e=>op.find(t=>t.test(e));function cp(e){let t=sp(e);if(`${e}`,!t)return!1;let n=t.parse(e);return t===Lf&&(n=np(n)),n}var lp=(e,t)=>{let n=cp(e),r=cp(t);if(!n||!r)return rp(e,t);let i={...n};return e=>(i.red=ap(n.red,r.red,e),i.green=ap(n.green,r.green,e),i.blue=ap(n.blue,r.blue,e),i.alpha=ip(n.alpha,r.alpha,e),Of.transform(i))},up=new Set([`none`,`hidden`]);function dp(e,t){return up.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function fp(e,t){return n=>ip(e,t,n)}function pp(e){return typeof e==`number`?fp:typeof e==`string`?mf(e)?rp:Rf.test(e)?lp:_p:Array.isArray(e)?mp:typeof e==`object`?Rf.test(e)?lp:hp:rp}function mp(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>pp(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function hp(e,t){let n={...e,...t},r={};for(let i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=pp(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}function gp(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 _p=(e,t)=>{let n=ep.createTransformer(t),r=qf(e),i=qf(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?up.has(e)&&!i.values.length||up.has(t)&&!r.values.length?dp(e,t):wd(mp(gp(r,i),i.values),n):(`${e}${t}`,rp(e,t))};function vp(e,t,n){return typeof e==`number`&&typeof t==`number`&&typeof n==`number`?ip(e,t,n):pp(e)(e,t)}var yp=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>nf.update(t,e),stop:()=>rf(t),now:()=>af.isProcessing?af.timestamp:lf.now()}},bp=(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)})`},xp=2e4;function Sp(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 Cp(e,t=100,n){let r=n({...e,keyframes:[0,t]}),i=Math.min(Sp(r),xp);return{type:`keyframes`,ease:e=>r.next(i*e).value/t,duration:Dd(i)}}var wp={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 Tp(e,t){return e*Math.sqrt(1-t*t)}var Ep=12;function Dp(e,t,n){let r=n;for(let n=1;n<Ep;n++)r-=e(r)/t(r);return r}var Op=.001;function kp({duration:e=wp.duration,bounce:t=wp.bounce,velocity:n=wp.velocity,mass:r=wp.mass}){let i,a;wp.maxDuration;let o=1-t;o=gd(wp.minDamping,wp.maxDamping,o),e=gd(wp.minDuration,wp.maxDuration,Dd(e)),o<1?(i=t=>{let r=t*o,i=r*e,a=r-n,s=Tp(t,o),c=Math.exp(-i);return Op-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=Tp(t**2,o);return(-i(t)+Op>0?-1:1)*((a-s)*c)/l}):(i=t=>{let r=Math.exp(-t*e),i=(t-n)*e+1;return-Op+r*i},a=t=>Math.exp(-t*e)*((n-t)*(e*e)));let s=5/e,c=Dp(i,a,s);if(e=Ed(e),isNaN(c))return{stiffness:wp.stiffness,damping:wp.damping,duration:e};{let t=c**2*r;return{stiffness:t,damping:o*2*Math.sqrt(r*t),duration:e}}}var Ap=[`duration`,`bounce`],jp=[`stiffness`,`damping`,`mass`];function Mp(e,t){return t.some(t=>e[t]!==void 0)}function Np(e){let t={velocity:wp.velocity,stiffness:wp.stiffness,damping:wp.damping,mass:wp.mass,isResolvedFromDuration:!1,...e};if(!Mp(e,jp)&&Mp(e,Ap))if(t.velocity=0,e.visualDuration){let n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*gd(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:wp.mass,stiffness:i,damping:a}}else{let n=kp({...e,velocity:0});t={...t,...n,mass:wp.mass},t.isResolvedFromDuration=!0}return t}function Pp(e=wp.visualDuration,t=wp.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}=Np({...n,velocity:-Dd(n.velocity||0)}),m=f||0,h=l/(2*Math.sqrt(c*u)),g=o-a,_=Dd(Math.sqrt(c/u)),v=Math.abs(g)<5;r||=v?wp.restSpeed.granular:wp.restSpeed.default,i||=v?wp.restDelta.granular:wp.restDelta.default;let y,b,x,S,C,w;if(h<1)x=Tp(_,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=>Ed(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=Ed(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=Ed(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(Sp(T),xp),t=bp(t=>T.next(e*t).value,e,30);return e+`ms `+t},toTransition:()=>{}};return T}Pp.applyToOptions=e=>{let t=Cp(e,100,Pp);return e.ease=t.ease,e.duration=Ed(t.duration),e.type=`keyframes`,e};var Fp=5;function Ip(e,t,n){let r=Math.max(t-Fp,0);return Od(n-e(r),t-r)}function Lp({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=Pp({keyframes:[f.value,m(f.value)],velocity:Ip(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 Rp(e,t,n){let r=[],i=n||_d.mix||vp,a=e.length-1;for(let n=0;n<a;n++){let a=i(e[n],e[n+1]);t&&(a=wd(Array.isArray(t)?t[n]||Sd:t,a)),r.push(a)}return r}function zp(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=Rp(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=q(e[r],e[r+1],n);return s[r](i)};return n?t=>l(gd(e[0],e[a-1],t)):l}function Bp(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=q(0,t,r);e.push(ip(n,1,i))}}function Vp(e){let t=[0];return Bp(t,e.length-1),t}function Hp(e,t){return e.map(e=>e*t)}function Up(e,t){return e.map(()=>t||Gd).splice(0,e.length-1)}function Wp({duration:e=300,keyframes:t,times:n,ease:r=`easeInOut`}){let i=Kd(r)?r.map(Xd):Xd(r),a={done:!1,value:t[0]},o=zp(Hp(n&&n.length===t.length?n:Vp(t),e),t,{ease:Array.isArray(i)?i:Up(t,i)});return{calculatedDuration:e,next:t=>(a.value=o(t),a.done=t>=e,a)}}var Gp=e=>e!==null;function Kp(e,{repeat:t,repeatType:n=`loop`},r,i=1){let a=e.filter(Gp),o=i<0||t&&n!==`loop`&&t%2==1?0:a.length-1;return!o||r===void 0?a[o]:r}var qp={decay:Lp,inertia:Lp,tween:Wp,keyframes:Wp,spring:Pp};function Jp(e){typeof e.type==`string`&&(e.type=qp[e.type])}var Yp=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)}},Xp=e=>e/100,Zp=class extends Yp{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!==lf.now()&&this.tick(lf.now()),this.isStopped=!0,this.state!==`idle`&&(this.teardown(),this.options.onStop?.())},uf.mainThread++,this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){let{options:e}=this;Jp(e);let{type:t=Wp,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=e,{keyframes:o}=e,s=t||Wp;s!==Wp&&typeof o[0]!=`number`&&(this.mixKeyframes=wd(Xp,vp(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=Sp(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=gd(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!==Lp&&(b.value=Kp(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 Dd(this.calculatedDuration)}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+Dd(e)}get time(){return Dd(this.currentTime)}set time(e){e=Ed(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 Ip(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(lf.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=Dd(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=yp,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(lf.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,uf.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 Qp(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}var $p=e=>e*180/Math.PI,em=e=>nm($p(Math.atan2(e[1],e[0]))),tm={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:em,rotateZ:em,skewX:e=>$p(Math.atan(e[1])),skewY:e=>$p(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},nm=e=>(e%=360,e<0&&(e+=360),e),rm=em,im=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),am=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),om={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:im,scaleY:am,scale:e=>(im(e)+am(e))/2,rotateX:e=>nm($p(Math.atan2(e[6],e[5]))),rotateY:e=>nm($p(Math.atan2(-e[2],e[0]))),rotateZ:rm,rotate:rm,skewX:e=>$p(Math.atan(e[4])),skewY:e=>$p(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function sm(e){return+!!e.includes(`scale`)}function cm(e,t){if(!e||e===`none`)return sm(t);let n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),r,i;if(n)r=om,i=n;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=tm,i=t}if(!i)return sm(t);let a=r[t],o=i[1].split(`,`).map(um);return typeof a==`function`?a(o):o[a]}var lm=(e,t)=>{let{transform:n=`none`}=getComputedStyle(e);return cm(n,t)};function um(e){return parseFloat(e.trim())}var dm=[`transformPerspective`,`x`,`y`,`z`,`translateX`,`translateY`,`translateZ`,`scale`,`scaleX`,`scaleY`,`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skew`,`skewX`,`skewY`],fm=new Set(dm),pm=e=>e===_f||e===J,mm=new Set([`x`,`y`,`z`]),hm=dm.filter(e=>!mm.has(e));function gm(e){let t=[];return hm.forEach(n=>{let r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(+!!n.startsWith(`scale`)))}),t}var _m={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})=>cm(t,`x`),y:(e,{transform:t})=>cm(t,`y`)};_m.translateX=_m.x,_m.translateY=_m.y;var vm=new Set,ym=!1,bm=!1,xm=!1;function Sm(){if(bm){let e=Array.from(vm).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{let t=gm(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)})}bm=!1,ym=!1,vm.forEach(e=>e.complete(xm)),vm.clear()}function Cm(){vm.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(bm=!0)})}function wm(){xm=!0,Cm(),Sm(),xm=!1}var Tm=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?(vm.add(this),ym||(ym=!0,nf.read(Cm),nf.resolveKeyframes(Sm))):(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])}Qp(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state=`complete`,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),vm.delete(this)}cancel(){this.state===`scheduled`&&(vm.delete(this),this.state=`pending`)}resume(){this.state===`pending`&&this.scheduleResolve()}},Em=e=>e.startsWith(`--`);function Dm(e,t,n){Em(t)?e.style.setProperty(t,n):e.style[t]=n}var Om={};function km(e,t){let n=xd(e);return()=>Om[t]??n()}var Am=km(()=>window.ScrollTimeline!==void 0,`scrollTimeline`),jm=km(()=>{try{document.createElement(`div`).animate({opacity:0},{easing:`linear(0, 1)`})}catch{return!1}return!0},`linearEasing`),Mm=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Nm={linear:`linear`,ease:`ease`,easeIn:`ease-in`,easeOut:`ease-out`,easeInOut:`ease-in-out`,circIn:Mm([0,.65,.55,1]),circOut:Mm([.55,0,1,.45]),backIn:Mm([.31,.01,.66,-.59]),backOut:Mm([.33,1.53,.69,.99])};function Pm(e,t){if(e)return typeof e==`function`?jm()?bp(e,t):`ease-out`:qd(e)?Mm(e):Array.isArray(e)?e.map(e=>Pm(e,t)||Nm.easeOut):Nm[e]}function Fm(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=Pm(s,i);Array.isArray(d)&&(u.easing=d),Qd.value&&uf.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 Qd.value&&p.finished.finally(()=>{uf.waapi--}),p}function Im(e){return typeof e==`function`&&`applyToOptions`in e}function Lm({type:e,...t}){return Im(e)&&jm()?e.applyToOptions(t):(t.duration??=300,t.ease??=`easeOut`,t)}var Rm=class extends Yp{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=Lm(e);this.animation=Fm(t,n,r,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=Kp(r,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(e),Dm(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 Dd(Number(e))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+Dd(e)}get time(){return Dd(Number(this.animation.currentTime)||0)}set time(e){let t=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=Ed(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&&Am()?(this.animation.timeline=e,t&&(this.animation.rangeStart=t),n&&(this.animation.rangeEnd=n),Sd):r(this)}},zm={anticipate:zd,backInOut:Rd,circInOut:Hd};function Bm(e){return e in zm}function Vm(e){typeof e.ease==`string`&&Bm(e.ease)&&(e.ease=zm[e.ease])}var Hm=10,Um=class extends Rm{constructor(e){Vm(e),Jp(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 Zp({...a,autoplay:!1}),s=Math.max(Hm,lf.now()-this.startTime),c=gd(0,Hm,s-Hm),l=o.sample(s).value,{name:u}=this.options;i&&u&&Dm(i,u,l),t.setWithVelocity(o.sample(Math.max(0,s-c)).value,l,c),o.stop()}},Wm=(e,t)=>t===`zIndex`?!1:!!(typeof e==`number`||Array.isArray(e)||typeof e==`string`&&(ep.test(e)||e===`0`)&&!e.startsWith(`url(`));function Gm(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 Km(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=Wm(i,t),s=Wm(a,t);return`${t}${i}${a}${o?a:i}`,!o||!s?!1:Gm(e)||(n===`spring`||Im(n))&&r}function qm(e){e.duration=0,e.type=`keyframes`}var Jm=new Set([`opacity`,`clipPath`,`filter`,`transform`]),Ym=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function Xm(e){for(let t=0;t<e.length;t++)if(typeof e[t]==`string`&&Ym.test(e[t]))return!0;return!1}var Zm=new Set([`color`,`backgroundColor`,`outlineColor`,`fill`,`stroke`,`borderColor`,`borderTopColor`,`borderRightColor`,`borderBottomColor`,`borderLeftColor`]),Qm=xd(()=>Object.hasOwnProperty.call(Element.prototype,`animate`));function $m(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 Qm()&&n&&(Jm.has(n)||Zm.has(n)&&Xm(s))&&(n!==`transform`||!l)&&!c&&!r&&i!==`mirror`&&a!==0&&o!==`inertia`}var eh=40,th=class extends Yp{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=lf.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||Tm)(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=lf.now();let u=!0;Km(e,i,a,o)||(u=!1,(_d.instantAnimations||!s)&&l?.(Kp(e,n,t)),e[0]=e[e.length-1],qm(n),n.repeat=0);let d={startTime:r?this.resolvedAt&&this.resolvedAt-this.createdAt>eh?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:e},f=u&&!c&&$m(d),p=d.motionValue?.owner?.current,m;if(f)try{m=new Um({...d,element:p})}catch{m=new Zp(d)}else m=new Zp(d);m.finished.then(()=>{this.notifyFinished()}).catch(Sd),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(),wm()),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 nh(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 rh=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function ih(e){let t=rh.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}function ah(e,t,n=1){`${e}`;let[r,i]=ih(e);if(!r)return;let a=window.getComputedStyle(t).getPropertyValue(r);if(a){let e=a.trim();return vd(e)?parseFloat(e):e}return mf(i)?ah(i,t,n+1):i}var oh={type:`spring`,stiffness:500,damping:25,restSpeed:10},sh=e=>({type:`spring`,stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),ch={type:`keyframes`,duration:.8},lh={type:`keyframes`,ease:[.25,.1,.35,1],duration:.3},uh=(e,{keyframes:t})=>t.length>2?ch:fm.has(e)?e.startsWith(`scale`)?sh(t[1]):oh:lh;function dh(e,t){if(e?.inherit&&t){let{inherit:n,...r}=e;return{...t,...r}}return e}function fh(e,t){let n=e?.[t]??e?.default??e;return n===e?n:dh(n,e)}var ph=new Set([`when`,`delay`,`delayChildren`,`staggerChildren`,`staggerDirection`,`repeat`,`repeatType`,`repeatDelay`,`from`,`elapsed`]);function mh(e){for(let t in e)if(!ph.has(t))return!0;return!1}var hh=(e,t,n,r={},i,a)=>o=>{let s=fh(r,e)||{},c=s.delay||r.delay||0,{elapsed:l=0}=r;l-=Ed(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};mh(s)||Object.assign(u,uh(e,u)),u.duration&&=Ed(u.duration),u.repeatDelay&&=Ed(u.repeatDelay),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(qm(u),u.delay===0&&(d=!0)),(_d.instantAnimations||_d.skipAnimations||i?.shouldSkipAnimations)&&(d=!0,qm(u),u.delay=0),u.allowFlatten=!s.type&&!s.ease,d&&!a&&t.get()!==void 0){let e=Kp(u.keyframes,s);if(e!==void 0){nf.update(()=>{u.onUpdate(e),u.onComplete()});return}}return s.isSync?new Zp(u):new th(u)};function gh(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function _h(e,t,n,r){if(typeof t==`function`){let[i,a]=gh(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]=gh(r);t=t(n===void 0?e.custom:n,i,a)}return t}function vh(e,t,n){let r=e.getProps();return _h(r,t,n===void 0?r.custom:n,e)}var yh=new Set([`width`,`height`,`top`,`left`,`right`,`bottom`,...dm]),bh=30,xh=e=>!isNaN(parseFloat(e)),Sh={current:void 0},Ch=class{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=lf.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=lf.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=xh(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 Td);let n=this.events[e].add(t);return e===`change`?()=>{n(),nf.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 Sh.current&&Sh.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=lf.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>bh)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,bh);return Od(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 wh(e,t){return new Ch(e,t)}var Th=e=>Array.isArray(e);function Eh(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,wh(n))}function Dh(e){return Th(e)?e[e.length-1]||0:e}function Oh(e,t){let{transitionEnd:n={},transition:r={},...i}=vh(e,t)||{};i={...i,...n};for(let t in i)Eh(e,t,Dh(i[t]))}var kh=e=>!!(e&&e.getVelocity);function Ah(e){return!!(kh(e)&&e.add)}function jh(e,t){let n=e.getValue(`willChange`);if(Ah(n))return n.add(t);if(!n&&_d.WillChange){let n=new _d.WillChange(`auto`);e.addValue(`willChange`,n),n.add(t)}}function Mh(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}var Nh=`data-`+Mh(`framerAppearId`);function Ph(e){return e.props[Nh]}function Fh({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Ih(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a,transitionEnd:o,...s}=t,c=e.getDefaultTransition();a=a?dh(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&&Fh(d,t))continue;let o={delay:n,...fh(a||{},t)},c=r.get();if(c!==void 0&&!r.isAnimating()&&!Array.isArray(i)&&i===c&&!o.velocity){nf.update(()=>r.set(i));continue}let f=!1;if(window.MotionHandoffAnimation){let n=Ph(e);if(n){let e=window.MotionHandoffAnimation(n,t,nf);e!==null&&(o.startTime=e,f=!0)}}jh(e,t);let p=l??e.shouldReduceMotion;r.start(hh(t,r,i,p&&yh.has(t)?{type:!1}:o,e,f));let m=r.animation;m&&u.push(m)}if(o){let t=()=>nf.update(()=>{o&&Oh(e,o)});u.length?Promise.all(u).then(t):t()}return u}function Lh(e,t,n={}){let r=vh(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(Ih(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:a=0,staggerChildren:o,staggerDirection:s}=i;return Rh(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 Rh(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(Lh(c,t,{...o,delay:n+(typeof r==`function`?0:r)+nh(e.variantChildren,c,r,i,a)}).then(()=>c.notify(`AnimationComplete`,t)));return Promise.all(s)}function zh(e,t,n={}){e.notify(`AnimationStart`,t);let r;if(Array.isArray(t)){let i=t.map(t=>Lh(e,t,n));r=Promise.all(i)}else if(typeof t==`string`)r=Lh(e,t,n);else{let i=typeof t==`function`?vh(e,t,n.custom):t;r=Promise.all(Ih(e,i,n))}return r.then(()=>{e.notify(`AnimationComplete`,t)})}var Bh={test:e=>e===`auto`,parse:e=>e},Vh=e=>t=>t.test(e),Hh=[_f,J,Nf,Mf,Ff,Pf,Bh],Uh=e=>Hh.find(Vh(e));function Wh(e){return typeof e==`number`?e===0:e===null?!0:e===`none`||e===`0`||bd(e)}var Gh=new Set([`brightness`,`contrast`,`saturate`,`opacity`]);function Kh(e){let[t,n]=e.slice(0,-1).split(`(`);if(t===`drop-shadow`)return e;let[r]=n.match(xf)||[];if(!r)return e;let i=n.replace(r,``),a=+!!Gh.has(t);return r!==n&&(a*=100),t+`(`+a+i+`)`}var qh=/\b([a-z-]*)\(.*?\)/gu,Jh={...ep,getAnimatableNone:e=>{let t=e.match(qh);return t?t.map(Kh).join(` `):e}},Yh={...ep,getAnimatableNone:e=>{let t=ep.parse(e);return ep.createTransformer(e)(t.map(e=>typeof e==`number`?0:typeof e==`object`?{...e,alpha:1}:e))}},Xh={..._f,transform:Math.round},Zh={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:Mf,rotateX:Mf,rotateY:Mf,rotateZ:Mf,scale:yf,scaleX:yf,scaleY:yf,scaleZ:yf,skew:Mf,skewX:Mf,skewY:Mf,distance:J,translateX:J,translateY:J,translateZ:J,x:J,y:J,z:J,perspective:J,transformPerspective:J,opacity:vf,originX:If,originY:If,originZ:J,zIndex:Xh,fillOpacity:vf,strokeOpacity:vf,numOctaves:Xh},Qh={...Zh,color:Rf,backgroundColor:Rf,outlineColor:Rf,fill:Rf,stroke:Rf,borderColor:Rf,borderTopColor:Rf,borderRightColor:Rf,borderBottomColor:Rf,borderLeftColor:Rf,filter:Jh,WebkitFilter:Jh,mask:Yh,WebkitMask:Yh},$h=e=>Qh[e],eg=new Set([Jh,Yh]);function tg(e,t){let n=$h(e);return eg.has(n)||(n=ep),n.getAnimatableNone?n.getAnimatableNone(t):void 0}var ng=new Set([`auto`,`none`,`0`]);function rg(e,t,n){let r=0,i;for(;r<e.length&&!i;){let t=e[r];typeof t==`string`&&!ng.has(t)&&qf(t).values.length&&(i=e[r]),r++}if(i&&n)for(let r of t)e[r]=tg(n,i)}var ig=class extends Tm{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(),mf(r))){let i=ah(r,t.current);i!==void 0&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!yh.has(n)||e.length!==2)return;let[r,i]=e,a=Uh(r),o=Uh(i);if(gf(r)!==gf(i)&&_m[n]){this.needsMeasurement=!0;return}if(a!==o)if(pm(a)&&pm(o))for(let t=0;t<e.length;t++){let n=e[t];typeof n==`string`&&(e[t]=parseFloat(n))}else _m[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(e[t]===null||Wh(e[t]))&&n.push(t);n.length&&rg(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=_m[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]=_m[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 ag(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 og=(e,t)=>t&&typeof e==`number`?t.transform(e):e;function sg(e){return yd(e)&&`offsetHeight`in e&&!(`ownerSVGElement`in e)}var{schedule:cg,cancel:lg}=tf(queueMicrotask,!1),ug={x:!1,y:!1};function dg(){return ug.x||ug.y}function fg(e){return e===`x`||e===`y`?ug[e]?null:(ug[e]=!0,()=>{ug[e]=!1}):ug.x||ug.y?null:(ug.x=ug.y=!0,()=>{ug.x=ug.y=!1})}function pg(e,t){let n=ag(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function mg(e){return!(e.pointerType===`touch`||dg())}function hg(e,t,n={}){let[r,i,a]=pg(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(!mg(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 gg=(e,t)=>t?e===t?!0:gg(e,t.parentElement):!1,_g=e=>e.pointerType===`mouse`?typeof e.button!=`number`||e.button<=0:e.isPrimary!==!1,vg=new Set([`BUTTON`,`INPUT`,`SELECT`,`TEXTAREA`,`A`]);function yg(e){return vg.has(e.tagName)||e.isContentEditable===!0}var bg=new Set([`INPUT`,`SELECT`,`TEXTAREA`]);function xg(e){return bg.has(e.tagName)||e.isContentEditable===!0}var Sg=new WeakSet;function Cg(e){return t=>{t.key===`Enter`&&e(t)}}function wg(e,t){e.dispatchEvent(new PointerEvent(`pointer`+t,{isPrimary:!0,bubbles:!0}))}var Tg=(e,t)=>{let n=e.currentTarget;if(!n)return;let r=Cg(()=>{if(Sg.has(n))return;wg(n,`down`);let e=Cg(()=>{wg(n,`up`)});n.addEventListener(`keyup`,e,t),n.addEventListener(`blur`,()=>wg(n,`cancel`),t)});n.addEventListener(`keydown`,r,t),n.addEventListener(`blur`,()=>n.removeEventListener(`keydown`,r),t)};function Eg(e){return _g(e)&&!dg()}var Dg=new WeakSet;function Og(e,t,n={}){let[r,i,a]=pg(e,n),o=e=>{let r=e.currentTarget;if(!Eg(e)||Dg.has(e))return;Sg.add(r),n.stopPropagation&&Dg.add(e);let a=t(r,e),o=(e,t)=>{window.removeEventListener(`pointerup`,s),window.removeEventListener(`pointercancel`,c),Sg.has(r)&&Sg.delete(r),Eg(e)&&typeof a==`function`&&a(e,{success:t})},s=e=>{o(e,r===window||r===document||n.useGlobalTarget||gg(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),sg(e)&&(e.addEventListener(`focus`,e=>Tg(e,i)),!yg(e)&&!e.hasAttribute(`tabindex`)&&(e.tabIndex=0))}),a}function kg(e){return yd(e)&&`ownerSVGElement`in e}var Ag=new WeakMap,jg,Mg=(e,t,n)=>(r,i)=>i&&i[0]?i[0][e+`Size`]:kg(r)&&`getBBox`in r?r.getBBox()[t]:r[n],Ng=Mg(`inline`,`width`,`offsetWidth`),Pg=Mg(`block`,`height`,`offsetHeight`);function Fg({target:e,borderBoxSize:t}){Ag.get(e)?.forEach(n=>{n(e,{get width(){return Ng(e,t)},get height(){return Pg(e,t)}})})}function Ig(e){e.forEach(Fg)}function Lg(){typeof ResizeObserver>`u`||(jg=new ResizeObserver(Ig))}function Rg(e,t){jg||Lg();let n=ag(e);return n.forEach(e=>{let n=Ag.get(e);n||(n=new Set,Ag.set(e,n)),n.add(t),jg?.observe(e)}),()=>{n.forEach(e=>{let n=Ag.get(e);n?.delete(t),n?.size||jg?.unobserve(e)})}}var zg=new Set,Bg;function Vg(){Bg=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};zg.forEach(t=>t(e))},window.addEventListener(`resize`,Bg)}function Hg(e){return zg.add(e),Bg||Vg(),()=>{zg.delete(e),!zg.size&&typeof Bg==`function`&&(window.removeEventListener(`resize`,Bg),Bg=void 0)}}function Ug(e,t){return typeof e==`function`?Hg(e):Rg(e,t)}function Wg(e){return kg(e)&&e.tagName===`svg`}var Gg=[...Hh,Rf,ep],Kg=e=>Gg.find(Vh(e)),qg=()=>({translate:0,scale:1,origin:0,originPoint:0}),Jg=()=>({x:qg(),y:qg()}),Yg=()=>({min:0,max:0}),Xg=()=>({x:Yg(),y:Yg()}),Zg=new WeakMap;function Qg(e){return typeof e==`object`&&!!e&&typeof e.start==`function`}function $g(e){return typeof e==`string`||Array.isArray(e)}var e_=[`animate`,`whileInView`,`whileFocus`,`whileHover`,`whileTap`,`whileDrag`,`exit`],t_=[`initial`,...e_];function n_(e){return Qg(e.animate)||t_.some(t=>$g(e[t]))}function r_(e){return!!(n_(e)||e.variants)}function i_(e,t,n){for(let r in t){let i=t[r],a=n[r];if(kh(i))e.addValue(r,i);else if(kh(a))e.addValue(r,wh(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,wh(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},o_={current:!1},s_=typeof window<`u`;function c_(){if(o_.current=!0,s_)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 l_=[`AnimationStart`,`AnimationComplete`,`Update`,`BeforeLayoutMeasure`,`LayoutMeasure`,`LayoutAnimationStart`,`LayoutAnimationComplete`],u_={};function d_(e){u_=e}function f_(){return u_}var p_=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=Tm,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=lf.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,nf.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=n_(t),this.isVariantNode=r_(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&&kh(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,Zg.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:(o_.current||c_(),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(),rf(this.notifyUpdate),rf(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&&Jm.has(e)&&this.current instanceof HTMLElement){let{factory:n,keyframes:r,times:i,ease:a,duration:o}=t.accelerate,s=new Rm({element:this.current,name:e,keyframes:r,times:i,ease:a,duration:Ed(o)}),c=n(s);this.valueSubscriptions.set(e,()=>{c(),s.cancel()});return}let n=fm.has(e);n&&this.onBindTransform&&this.onBindTransform();let r=t.on(`change`,t=>{this.latestValues[e]=t,this.props.onUpdate&&nf.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 u_){let t=u_[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):Xg()}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<l_.length;t++){let n=l_[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=i_(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=wh(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`&&(vd(n)||bd(n))?n=parseFloat(n):!Kg(n)&&ep.test(t)&&(n=tg(e,t)),this.setBaseTarget(e,kh(n)?n.get():n)),kh(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=_h(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&&!kh(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 Td),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){cg.render(this.render)}},m_=class extends p_{constructor(){super(...arguments),this.KeyframeResolver=ig}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;kh(e)&&(this.childSubscription=e.on(`change`,e=>{this.current&&(this.current.textContent=`${e}`)}))}},h_=class{constructor(e){this.isMounted=!1,this.node=e}update(){}};function g_({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function __({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function v_(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 y_(e){return e===void 0||e===1}function b_({scale:e,scaleX:t,scaleY:n}){return!y_(e)||!y_(t)||!y_(n)}function x_(e){return b_(e)||S_(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function S_(e){return C_(e.x)||C_(e.y)}function C_(e){return e&&e!==`0%`}function w_(e,t,n){return n+t*(e-n)}function T_(e,t,n,r,i){return i!==void 0&&(e=w_(e,i,r)),w_(e,n,r)+t}function E_(e,t=0,n=1,r,i){e.min=T_(e.min,t,n,r,i),e.max=T_(e.max,t,n,r,i)}function D_(e,{x:t,y:n}){E_(e.x,t.translate,t.scale,t.originPoint),E_(e.y,n.translate,n.scale,n.originPoint)}var O_=.999999999999,k_=1.0000000000001;function A_(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&&(j_(e.x,-a.scroll.offset.x),j_(e.y,-a.scroll.offset.y)),o&&(t.x*=o.x.scale,t.y*=o.y.scale,D_(e,o)),r&&x_(a.latestValues)&&P_(e,a.latestValues,a.layout?.layoutBox))}t.x<k_&&t.x>O_&&(t.x=1),t.y<k_&&t.y>O_&&(t.y=1)}function j_(e,t){e.min+=t,e.max+=t}function M_(e,t,n,r,i=.5){E_(e,t,n,ip(e.min,e.max,i),r)}function N_(e,t){return typeof e==`string`?parseFloat(e)/100*(t.max-t.min):e}function P_(e,t,n){let r=n??e;M_(e.x,N_(t.x,r.x),t.scaleX,t.scale,t.originX),M_(e.y,N_(t.y,r.y),t.scaleY,t.scale,t.originY)}function F_(e,t){return g_(v_(e.getBoundingClientRect(),t))}function I_(e,t,n){let r=F_(e,n),{scroll:i}=t;return i&&(j_(r.x,i.offset.x),j_(r.y,i.offset.y)),r}var L_={x:`translateX`,y:`translateY`,z:`translateZ`,transformPerspective:`perspective`},R_=dm.length;function z_(e,t,n){let r=``,i=!0;for(let a=0;a<R_;a++){let o=dm[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=og(s,Zh[o]);if(!c){i=!1;let t=L_[o]||o;r+=`${t}(${e}) `}n&&(t[o]=e)}}return r=r.trim(),n?r=n(t,i?``:r):i&&(r=`none`),r}function B_(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(fm.has(e)){o=!0;continue}else if(ff(e)){i[e]=n;continue}else{let t=og(n,Zh[e]);e.startsWith(`origin`)?(s=!0,a[e]=t):r[e]=t}}if(t.transform||(o||n?r.transform=z_(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 V_(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 H_(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var U_={correct:(e,t)=>{if(!t.target)return e;if(typeof e==`string`)if(J.test(e))e=parseFloat(e);else return e;return`${H_(e,t.target.x)}% ${H_(e,t.target.y)}%`}},W_={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=ep.parse(e);if(i.length>5)return r;let a=ep.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=ip(s,c,.5);return typeof i[2+o]==`number`&&(i[2+o]/=l),typeof i[3+o]==`number`&&(i[3+o]/=l),a(i)}},G_={borderRadius:{...U_,applyTo:[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomLeftRadius`,`borderBottomRightRadius`]},borderTopLeftRadius:U_,borderTopRightRadius:U_,borderBottomLeftRadius:U_,borderBottomRightRadius:U_,boxShadow:W_};function K_(e,{layout:t,layoutId:n}){return fm.has(e)||e.startsWith(`origin`)||(t||n!==void 0)&&(!!G_[e]||e===`opacity`)}function q_(e,t,n){let r=e.style,i=t?.style,a={};if(!r)return a;for(let t in r)(kh(r[t])||i&&kh(i[t])||K_(t,e)||n?.getValue(t)?.liveStyle!==void 0)&&(a[t]=r[t]);return a}function J_(e){return window.getComputedStyle(e)}var Y_=class extends m_{constructor(){super(...arguments),this.type=`html`,this.renderInstance=V_}readValueFromInstance(e,t){if(fm.has(t))return this.projection?.isProjecting?sm(t):lm(e,t);{let n=J_(e),r=(ff(t)?n.getPropertyValue(t):n[t])||0;return typeof r==`string`?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return F_(e,t)}build(e,t,n){B_(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return q_(e,t,n)}},X_={offset:`stroke-dashoffset`,array:`stroke-dasharray`},Z_={offset:`strokeDashoffset`,array:`strokeDasharray`};function Q_(e,t,n=1,r=0,i=!0){e.pathLength=1;let a=i?X_:Z_;e[a.offset]=`${-r}`,e[a.array]=`${t} ${n}`}var $_=[`offsetDistance`,`offsetPath`,`offsetRotate`,`offsetAnchor`];function ev(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},c,l,u){if(B_(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 $_)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&&Q_(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`]),nv=e=>typeof e==`string`&&e.toLowerCase()===`svg`;function rv(e,t,n,r){V_(e,t,void 0,r);for(let n in t.attrs)e.setAttribute(tv.has(n)?n:Mh(n),t.attrs[n])}function iv(e,t,n){let r=q_(e,t,n);for(let n in e)if(kh(e[n])||kh(t[n])){let t=dm.indexOf(n)===-1?n:`attr`+n.charAt(0).toUpperCase()+n.substring(1);r[t]=e[n]}return r}var av=class extends m_{constructor(){super(...arguments),this.type=`svg`,this.isSVGTag=!1,this.measureInstanceViewportBox=Xg}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(fm.has(t)){let e=$h(t);return e&&e.default||0}return t=tv.has(t)?t:Mh(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return iv(e,t,n)}build(e,t,n){ev(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){rv(e,t,n,r)}mount(e){this.isSVGTag=nv(e.tagName),super.mount(e)}},ov=t_.length;function sv(e){if(!e)return;if(!e.isControllingVariants){let t=e.parent&&sv(e.parent)||{};return e.props.initial!==void 0&&(t.initial=e.props.initial),t}let t={};for(let n=0;n<ov;n++){let r=t_[n],i=e.props[r];($g(i)||i===!1)&&(t[r]=i)}return t}function cv(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 lv=[...e_].reverse(),uv=e_.length;function dv(e){return t=>Promise.all(t.map(({animation:t,options:n})=>zh(e,t,n)))}function fv(e){let t=dv(e),n=hv(),r=!0,i=!1,a=t=>(n,r)=>{let i=vh(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=sv(e.parent)||{},l=[],u=new Set,d={},f=1/0;for(let t=0;t<uv;t++){let p=lv[t],m=n[p],h=s[p]===void 0?c[p]:s[p],g=$g(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||Qg(h)||typeof h==`boolean`)continue;if(p===`exit`&&m.isActive&&_!==!0){m.prevResolvedValues&&(d={...d,...m.prevResolvedValues});continue}let y=pv(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=Th(t)&&Th(n)?!cv(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=vh(r,t);if(r.enteringChildren&&i){let{delayChildren:t}=i.transition||{};n.delay=nh(r.enteringChildren,e,t)}}return{animation:t,options:n}}))}if(u.size){let t={};if(typeof s.initial!=`boolean`){let n=vh(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=hv(),i=!0}}}function pv(e,t){return typeof t==`string`?t!==e:Array.isArray(t)?!cv(t,e):!1}function mv(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function hv(){return{animate:mv(!0),whileInView:mv(),whileHover:mv(),whileTap:mv(),whileDrag:mv(),whileFocus:mv(),exit:mv()}}function gv(e,t){e.min=t.min,e.max=t.max}function _v(e,t){gv(e.x,t.x),gv(e.y,t.y)}function vv(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}var yv=1e-4,bv=1-yv,xv=1+yv,Sv=.01,Cv=0-Sv,wv=0+Sv;function Tv(e){return e.max-e.min}function Ev(e,t,n){return Math.abs(e-t)<=n}function Dv(e,t,n,r=.5){e.origin=r,e.originPoint=ip(t.min,t.max,e.origin),e.scale=Tv(n)/Tv(t),e.translate=ip(n.min,n.max,e.origin)-e.originPoint,(e.scale>=bv&&e.scale<=xv||isNaN(e.scale))&&(e.scale=1),(e.translate>=Cv&&e.translate<=wv||isNaN(e.translate))&&(e.translate=0)}function Ov(e,t,n,r){Dv(e.x,t.x,n.x,r?r.originX:void 0),Dv(e.y,t.y,n.y,r?r.originY:void 0)}function kv(e,t,n,r=0){e.min=(r?ip(n.min,n.max,r):n.min)+t.min,e.max=e.min+Tv(t)}function Av(e,t,n,r){kv(e.x,t.x,n.x,r?.x),kv(e.y,t.y,n.y,r?.y)}function jv(e,t,n,r=0){let i=r?ip(n.min,n.max,r):n.min;e.min=t.min-i,e.max=e.min+Tv(t)}function Mv(e,t,n,r){jv(e.x,t.x,n.x,r?.x),jv(e.y,t.y,n.y,r?.y)}function Nv(e,t,n,r,i){return e-=t,e=w_(e,1/n,r),i!==void 0&&(e=w_(e,1/i,r)),e}function Pv(e,t=0,n=1,r=.5,i,a=e,o=e){if(Nf.test(t)&&(t=parseFloat(t),t=ip(o.min,o.max,t/100)-o.min),typeof t!=`number`)return;let s=ip(a.min,a.max,r);e===a&&(s-=t),e.min=Nv(e.min,t,n,s,i),e.max=Nv(e.max,t,n,s,i)}function Fv(e,t,[n,r,i],a,o){Pv(e,t[n],t[r],t[i],t.scale,a,o)}var Iv=[`x`,`scaleX`,`originX`],Lv=[`y`,`scaleY`,`originY`];function Rv(e,t,n,r){Fv(e.x,t,Iv,n?n.x:void 0,r?r.x:void 0),Fv(e.y,t,Lv,n?n.y:void 0,r?r.y:void 0)}function zv(e){return e.translate===0&&e.scale===1}function Bv(e){return zv(e.x)&&zv(e.y)}function Vv(e,t){return e.min===t.min&&e.max===t.max}function Hv(e,t){return Vv(e.x,t.x)&&Vv(e.y,t.y)}function Uv(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Wv(e,t){return Uv(e.x,t.x)&&Uv(e.y,t.y)}function Gv(e){return Tv(e.x)/Tv(e.y)}function Kv(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function qv(e){return[e(`x`),e(`y`)]}function Jv(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 Yv=[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomLeftRadius`,`borderBottomRightRadius`],Xv=Yv.length,Zv=e=>typeof e==`string`?parseFloat(e):e,Qv=e=>typeof e==`number`||J.test(e);function $v(e,t,n,r,i,a){i?(e.opacity=ip(0,n.opacity??1,ty(r)),e.opacityExit=ip(t.opacity??1,0,ny(r))):a&&(e.opacity=ip(t.opacity??1,n.opacity??1,r));for(let i=0;i<Xv;i++){let a=Yv[i],o=ey(t,a),s=ey(n,a);o===void 0&&s===void 0||(o||=0,s||=0,o===0||s===0||Qv(o)===Qv(s)?(e[a]=Math.max(ip(Zv(o),Zv(s),r),0),(Nf.test(s)||Nf.test(o))&&(e[a]+=`%`)):e[a]=s)}(t.rotate||n.rotate)&&(e.rotate=ip(t.rotate||0,n.rotate||0,r))}function ey(e,t){return e[t]===void 0?e.borderRadius:e[t]}var ty=ry(0,.5,Vd),ny=ry(.5,.95,Sd);function ry(e,t,n){return r=>r<e?0:r>t?1:n(q(e,t,r))}function iy(e,t,n){let r=kh(e)?e:wh(e);return r.start(hh(``,r,t,n)),r.animation}function ay(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}var oy=(e,t)=>e.depth-t.depth,sy=class{constructor(){this.children=[],this.isDirty=!1}add(e){md(this.children,e),this.isDirty=!0}remove(e){hd(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(oy),this.isDirty=!1,this.children.forEach(e)}};function cy(e,t){let n=lf.now(),r=({timestamp:i})=>{let a=i-n;a>=t&&(rf(r),e(a-t))};return nf.setup(r,!0),()=>rf(r)}function ly(e){return kh(e)?e.get():e}var uy=class{constructor(){this.members=[]}add(e){md(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&&(hd(this.members,n),n.unmount())}e.scheduleRender()}remove(e){if(hd(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)}},dy={hasAnimatedSinceResize:!0,hasEverUpdated:!1},fy={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},py=[``,`X`,`Y`,`Z`],my=1e3,hy=0;function gy(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function _y(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let n=Ph(t);if(window.MotionHasOptimisedAnimation(n,`transform`)){let{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,`transform`,nf,!(t||r))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&_y(r)}function vy({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=t?.()){this.id=hy++,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,Qd.value&&(fy.nodes=fy.calculatedTargetDeltas=fy.calculatedProjections=0),this.nodes.forEach(xy),this.nodes.forEach(Ay),this.nodes.forEach(jy),this.nodes.forEach(Sy),Qd.addProjectionMetrics&&Qd.addProjectionMetrics(fy)},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 sy)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new Td),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=kg(t)&&!Wg(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;nf.read(()=>{r=window.innerWidth}),e(t,()=>{let e=window.innerWidth;e!==r&&(r=e,this.root.updateBlockedByResize=!0,n&&n(),n=cy(i,250),dy.hasAnimatedSinceResize&&(dy.hasAnimatedSinceResize=!1,this.nodes.forEach(ky)))})}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()||Ry,{onLayoutAnimationStart:o,onLayoutAnimationComplete:s}=i.getProps(),c=!this.targetLayout||!Wv(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={...fh(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||ky(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(),rf(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(My),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&&_y(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(Ty),this.nodes.forEach(wy);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Ey);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Dy),this.nodes.forEach(Oy),this.nodes.forEach(yy),this.nodes.forEach(by)):this.nodes.forEach(Ey),this.clearAllSnapshots();let e=lf.now();af.delta=gd(0,1e3/60,e-af.timestamp),af.timestamp=e,af.isProcessing=!0,of.update.process(af),of.preRender.process(af),of.render.process(af),af.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,cg.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Cy),this.sharedNodes.forEach(Ny)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,nf.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){nf.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Tv(this.snapshot.measuredBox.x)&&!Tv(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||=Xg(),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&&!Bv(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,``):void 0,a=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||x_(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)),Hy(n),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return Xg();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(Wy))){let{scroll:e}=this.root;e&&(j_(t.x,e.offset.x),j_(t.y,e.offset.y))}return t}removeElementScroll(e){let t=Xg();if(_v(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&&_v(t,e),j_(t.x,i.offset.x),j_(t.y,i.offset.y))}return t}applyTransform(e,t=!1,n){let r=n||Xg();_v(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&&(j_(r.x,-n.scroll.offset.x),j_(r.y,-n.scroll.offset.y)),x_(n.latestValues)&&P_(r,n.latestValues,n.layout?.layoutBox)}return x_(this.latestValues)&&P_(r,this.latestValues,this.layout?.layoutBox),r}removeTransform(e){let t=Xg();_v(t,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!x_(n.latestValues))continue;let r;n.instance&&(b_(n.latestValues)&&n.updateSnapshot(),r=Xg(),_v(r,n.measurePageBox())),Rv(t,n.latestValues,n.snapshot?.layoutBox,r)}return x_(this.latestValues)&&Rv(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!==af.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=af.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=Xg(),this.targetWithTransforms=Xg()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Av(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):_v(this.target,this.layout.layoutBox),D_(this.target,this.targetDelta)):_v(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),Qd.value&&fy.calculatedTargetDeltas++)}getClosestProjectingParent(){if(!(!this.parent||b_(this.parent.latestValues)||S_(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=Xg(),this.relativeTargetOrigin=Xg(),Mv(this.relativeTargetOrigin,t,n,this.options.layoutAnchor||void 0),_v(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===af.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;_v(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,o=this.treeScale.y;A_(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=Xg());let{target:s}=e;if(!s){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(vv(this.prevProjectionDelta.x,this.projectionDelta.x),vv(this.prevProjectionDelta.y,this.projectionDelta.y)),Ov(this.projectionDelta,this.layoutCorrected,s,this.latestValues),(this.treeScale.x!==a||this.treeScale.y!==o||!Kv(this.projectionDelta.x,this.prevProjectionDelta.x)||!Kv(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners(`projectionUpdate`,s)),Qd.value&&fy.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=Jg(),this.projectionDelta=Jg(),this.projectionDeltaWithTransform=Jg()}setAnimationOrigin(e,t=!1){let n=this.snapshot,r=n?n.latestValues:{},i={...this.latestValues},a=Jg();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let o=Xg(),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(Ly));this.animationProgress=0;let d;this.mixTargetDelta=t=>{let n=t/1e3;Py(a.x,e.x,n),Py(a.y,e.y,n),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Mv(o,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),Iy(this.relativeTarget,this.relativeTargetOrigin,o,n),d&&Hv(this.relativeTarget,d)&&(this.isProjectionDirty=!1),d||=Xg(),_v(d,this.relativeTarget)),s&&(this.animationValues=i,$v(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&&=(rf(this.pendingAnimation),void 0),this.pendingAnimation=nf.update(()=>{dy.hasAnimatedSinceResize=!0,uf.layout++,this.motionValue||=wh(0),this.motionValue.jump(0,!1),this.currentAnimation=iy(this.motionValue,[0,1e3],{...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onStop:()=>{uf.layout--},onComplete:()=>{uf.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(my),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&&Uy(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||Xg();let t=Tv(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=Tv(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}_v(t,n),P_(t,i),Ov(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new uy),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&&gy(`z`,e,r,this.animationValues);for(let t=0;t<py.length;t++)gy(`rotate${py[t]}`,e,r,this.animationValues),gy(`skew${py[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=ly(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=ly(t?.pointerEvents)||``),this.hasProjected&&!x_(this.latestValues)&&(e.transform=n?n({},``):`none`,this.hasProjected=!1);return}e.visibility=``;let i=r.animationValues||r.latestValues;this.applyTransformsToTarget();let a=Jv(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 G_){if(i[t]===void 0)continue;let{correct:n,applyTo:o,isCSSVariable:s}=G_[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?ly(t?.pointerEvents)||``:`none`)}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(wy),this.root.sharedNodes.clear()}}}function yy(e){e.updateLayout()}function by(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`)qv(e=>{let r=a?t.measuredBox[e]:t.layoutBox[e],i=Tv(r);r.min=n[e].min,r.max=r.min+i});else if(i===`x`||i===`y`){let e=i===`x`?`y`:`x`;gv(a?t.measuredBox[e]:t.layoutBox[e],n[e])}else Uy(i,t.layoutBox,n)&&qv(r=>{let i=a?t.measuredBox[r]:t.layoutBox[r],o=Tv(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=Jg();Ov(o,n,t.layoutBox);let s=Jg();a?Ov(s,e.applyTransform(r,!0),t.measuredBox):Ov(s,n,t.layoutBox);let c=!Bv(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=Xg();Mv(s,t.layoutBox,i.layoutBox,o);let c=Xg();Mv(c,n,a.layoutBox,o),Wv(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 xy(e){Qd.value&&fy.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 Sy(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Cy(e){e.clearSnapshot()}function wy(e){e.clearMeasurements()}function Ty(e){e.isLayoutDirty=!0,e.updateLayout()}function Ey(e){e.isLayoutDirty=!1}function Dy(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function Oy(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify(`BeforeLayoutMeasure`),e.resetTransform()}function ky(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Ay(e){e.resolveTargetDelta()}function jy(e){e.calcProjection()}function My(e){e.resetSkewAndRotation()}function Ny(e){e.removeLeadSnapshot()}function Py(e,t,n){e.translate=ip(t.translate,0,n),e.scale=ip(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Fy(e,t,n,r){e.min=ip(t.min,n.min,r),e.max=ip(t.max,n.max,r)}function Iy(e,t,n,r){Fy(e.x,t.x,n.x,r),Fy(e.y,t.y,n.y,r)}function Ly(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var Ry={duration:.45,ease:[.4,0,.1,1]},zy=e=>typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),By=zy(`applewebkit/`)&&!zy(`chrome/`)?Math.round:Sd;function Vy(e){e.min=By(e.min),e.max=By(e.max)}function Hy(e){Vy(e.x),Vy(e.y)}function Uy(e,t,n){return e===`position`||e===`preserve-aspect`&&!Ev(Gv(t),Gv(n),.2)}function Wy(e){return e!==e.root&&e.scroll?.wasRoot}var Gy=vy({attachResizeListener:(e,t)=>ay(e,`resize`,t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),Ky={current:void 0},qy=vy({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Ky.current){let e=new Gy({});e.mount(window),e.setOptions({layoutScroll:!0}),Ky.current=e}return Ky.current},resetTransform:(e,t)=>{e.style.transform=t===void 0?`none`:t},checkIsScrollRoot:e=>window.getComputedStyle(e).position===`fixed`}),Jy=(0,I.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:`never`});function Yy(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function Xy(...e){return t=>{let n=!1,r=e.map(e=>{let r=Yy(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():Yy(e[t],null)}}}}function Zy(...e){return I.useCallback(Xy(...e),e)}var Qy=class extends I.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(sg(t)&&e.isPresent&&!this.props.isPresent&&this.props.pop!==!1){let e=t.offsetParent,n=sg(e)&&e.offsetWidth||0,r=sg(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 $y({children:e,isPresent:t,anchorX:n,anchorY:r,root:i,pop:a}){let o=(0,I.useId)(),s=(0,I.useRef)(null),c=(0,I.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:l}=(0,I.useContext)(Jy),u=Zy(s,e.props?.ref??e?.ref);return(0,I.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&&(z.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&&z.merge(i.common,i[t.method]);i&&z.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||Ha;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),Ba(Mo(e.baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}};z.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}))}}),z.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 z.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=yi(us.prototype.request,t);return z.extend(n,us.prototype,t,{allOwnKeys:!0}),z.extend(n,t,null,{allOwnKeys:!0}),n.create=function(t){return hs(Po(e,t))},n}var gs=hs(ro);gs.Axios=us,gs.CanceledError=bo,gs.CancelToken=ds,gs.isCancel=yo,gs.VERSION=is,gs.toFormData=Fa,gs.AxiosError=B,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=>eo(z.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,I.createContext)({}),ws=()=>(0,I.useContext)(Cs),Ts=(0,I.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,I.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,I.createElement)(e,t)),...Array.isArray(a)?a:[a]])}),H=(e,t)=>{let n=(0,I.forwardRef)(({className:n,...r},i)=>(0,I.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(`arrow-left`,[[`path`,{d:`m12 19-7-7 7-7`,key:`1l729n`}],[`path`,{d:`M19 12H5`,key:`x3x0zl`}]]),Os=H(`arrow-right`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`m12 5 7 7-7 7`,key:`xquz4c`}]]),ks=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`}]]),As=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`}]]),js=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`}]]),Ms=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`}]]),Ns=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`}]]),Ps=H(`check`,[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]),Fs=H(`chevron-down`,[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]),Is=H(`chevron-left`,[[`path`,{d:`m15 18-6-6 6-6`,key:`1wnfg3`}]]),Ls=H(`chevron-right`,[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]),Rs=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`}]]),zs=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`}]]),Bs=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`}]]),Vs=H(`circle`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}]]),Hs=H(`clock`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 6v6l4 2`,key:`mmk7yg`}]]),Us=H(`code`,[[`path`,{d:`m16 18 6-6-6-6`,key:`eg8j8`}],[`path`,{d:`m8 6-6 6 6 6`,key:`ppft3o`}]]),Ws=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`}]]),Gs=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`}]]),Ks=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`}]]),qs=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`}]]),Js=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`}]]),Ys=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`}]]),Xs=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`}]]),Zs=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`}]]),Qs=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`}]]),$s=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`}]]),ec=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`}]]),tc=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`}]]),nc=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`}]]),rc=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`}]]),ic=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`}]]),ac=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`}]]),oc=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(`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`}]]),lc=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`}]]),uc=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`}]]),dc=H(`plus`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]),fc=H(`power`,[[`path`,{d:`M12 2v10`,key:`mnfbl`}],[`path`,{d:`M18.4 6.6a9 9 0 1 1-12.77.04`,key:`obofu9`}]]),pc=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`}]]),hc=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`}]]),gc=H(`search`,[[`path`,{d:`m21 21-4.34-4.34`,key:`14j7rj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}]]),_c=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`}]]),vc=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`}]]),yc=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`}]]),bc=H(`terminal`,[[`path`,{d:`M12 19h8`,key:`baeox8`}],[`path`,{d:`m4 17 6-6-6-6`,key:`1yngyt`}]]),xc=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`}]]),Sc=H(`trending-up`,[[`path`,{d:`M16 7h6v6`,key:`box55l`}],[`path`,{d:`m22 7-8.5 8.5-5-5L2 17`,key:`1t1m79`}]]),Cc=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`}]]),wc=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`}]]),Tc=H(`wand-sparkles`,[[`path`,{d:`m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72`,key:`ul74o6`}],[`path`,{d:`m14 7 3 3`,key:`1r5n42`}],[`path`,{d:`M5 6v4`,key:`ilb8ba`}],[`path`,{d:`M19 14v4`,key:`blhpug`}],[`path`,{d:`M10 2v2`,key:`7u0qdc`}],[`path`,{d:`M7 8H3`,key:`zfb6yr`}],[`path`,{d:`M21 16h-4`,key:`1cnmox`}],[`path`,{d:`M11 3H9`,key:`1obp7u`}]]),Ec=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`}]]),Dc=H(`x`,[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]),Oc=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`}]]),kc=u(y(),1),Ac=u(_(),1),jc=(0,I.createContext)({toast:()=>{}}),Mc=()=>{};function Nc(e,t=`error`){Mc(e,t)}function Pc({children:e}){let[t,n]=(0,I.useState)([]),r={current:0},i=(0,I.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,I.useEffect)(()=>{Mc=i},[i]);let a={success:zs,error:Bs,warning:Cc},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,L.jsxs)(jc.Provider,{value:{toast:i},children:[e,(0,Ac.createPortal)((0,L.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,L.jsxs)(`div`,{className:`flex items-start gap-3 px-4 py-3 rounded-lg border shadow-lg text-sm ${o[e.type]}`,children:[(0,L.jsx)(t,{className:`h-4 w-4 mt-0.5 flex-shrink-0 ${s[e.type]}`}),(0,L.jsx)(`span`,{className:`flex-1`,children:e.message}),(0,L.jsx)(`button`,{onClick:()=>n(t=>t.filter(t=>t.id!==e.id)),children:(0,L.jsx)(Dc,{className:`h-3.5 w-3.5 opacity-60 hover:opacity-100`})})]},e.id)})}),document.body)]})}var U=gs.create({baseURL:`/api`,timeout:3e4});U.interceptors.response.use(e=>e,e=>(Nc(e.response?.data?.error||e.response?.data?.message||e.message||`请求失败`,`error`),Promise.reject(e)));var Fc=()=>U.get(`/health`),Ic=()=>U.get(`/config`),Lc=e=>U.put(`/config`,e),Rc=e=>U.get(`/sessions`,{params:e}),zc=e=>U.get(`/sessions/${e}`),Bc=e=>U.delete(`/sessions/${e}`),Vc=e=>U.delete(`/sessions`,{data:{ids:e}}),Hc=e=>U.get(`/events`,{params:e}),Uc=e=>U.get(`/events/stats`,{params:{project_path:e}}),Wc=e=>U.get(`/pipelines`,{params:e}),Gc=e=>U.get(`/pipelines/${e}`),Kc=e=>U.get(`/quality/history`,{params:e}),qc=e=>U.get(`/quality/unresolved`,{params:{project_path:e}}),Jc=()=>U.get(`/stats/roi`),Yc=()=>U.get(`/stats/overview`),Xc=(e,t)=>U.get(`/knowledge/search`,{params:{q:e,project_path:t}}),Zc=e=>U.get(`/knowledge/overview`,{params:{project_path:e}}),Qc=(e,t)=>U.get(`/knowledge/neighbors`,{params:{node_id:e,project_path:t}}),$c=e=>U.post(`/knowledge/nodes`,e),el=(e,t)=>U.put(`/knowledge/nodes/${e}`,t),tl=e=>U.delete(`/knowledge/nodes/${e}`),nl=e=>U.post(`/pipelines/${e}/close`),rl=e=>U.post(`/pipelines/batch-close`,{ids:e}),il=()=>U.post(`/pipelines/close-expired`),al=()=>U.get(`/pipelines/active`),ol=(e,t)=>U.post(`/pipelines/tasks/${e}/status`,{status:t}),sl=e=>U.post(`/pipelines/${e}/resume`),cl=e=>U.get(`/projects`,{params:e}),ll=e=>U.get(`/projects/${e}`),ul=e=>U.delete(`/projects/${e}`),dl=e=>U.get(`/convention/${e}`),fl=(e,t,n,r)=>U.put(`/convention/${e}/${t}`,{name:n,content:r}),pl=(e,t)=>U.delete(`/convention/${e}/${t}`),ml=(e,t)=>U.post(`/convention/${e}/evolve`,{id:t}),hl=e=>U.post(`/convention/init`,{path:e},{timeout:18e4}),gl=e=>U.get(`/claudemd/${e}`),_l=(e,t)=>U.put(`/claudemd/${e}`,{content:t}),vl=e=>U.get(`/claudemd/${e}/profile`),yl=e=>U.get(`/claudemd/${e}/modules`),bl=e=>U.post(`/claudemd/${e}/distill`,void 0,{timeout:18e4}),xl=e=>U.post(`/claudemd/${e}/init`,void 0,{timeout:18e4}),Sl=e=>U.post(`/quality/${e}/resolve`),Cl=e=>U.post(`/quality/${e}/dismiss`),wl=()=>U.post(`/quality/resolve-all`),Tl=e=>U.post(`/quality/${e}/auto-fix`,{},{timeout:6e4}),El=()=>U.get(`/daemon/status`),Dl=()=>U.post(`/daemon/restart`),Ol=()=>U.get(`/daemon/diagnose`),kl=()=>U.post(`/daemon/repair`),Al=()=>U.post(`/config/backup`),jl=()=>U.get(`/config/backups`),Ml=e=>U.post(`/events/purge`,{retentionDays:e});function Nl(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=Nl(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n);return r}function Pl(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Nl(e))&&(r&&(r+=` `),r+=t);return r}var Fl=(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},Il=(e,t)=>({classGroupId:e,validator:t}),Ll=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Rl=`-`,zl=[],Bl=`arbitrary..`,Vl=e=>{let t=Wl(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith(`[`)&&e.endsWith(`]`))return Ul(e);let n=e.split(Rl);return Hl(n,+(n[0]===``&&n.length>1),t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],i=n[e];return t?i?Fl(i,t):t:i||zl}return n[e]||zl}}},Hl=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=Hl(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let o=t===0?e.join(Rl):e.slice(t).join(Rl),s=a.length;for(let e=0;e<s;e++){let t=a[e];if(t.validator(o))return t.classGroupId}},Ul=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?Bl+r:void 0})(),Wl=e=>{let{theme:t,classGroups:n}=e;return Gl(n,t)},Gl=(e,t)=>{let n=Ll();for(let r in e){let i=e[r];Kl(i,n,r,t)}return n},Kl=(e,t,n,r)=>{let i=e.length;for(let a=0;a<i;a++){let i=e[a];ql(i,t,n,r)}},ql=(e,t,n,r)=>{if(typeof e==`string`){Jl(e,t,n);return}if(typeof e==`function`){Yl(e,t,n,r);return}Xl(e,t,n,r)},Jl=(e,t,n)=>{let r=e===``?t:Zl(t,e);r.classGroupId=n},Yl=(e,t,n,r)=>{if(Ql(e)){Kl(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(Il(n,e))},Xl=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e<a;e++){let[a,o]=i[e];Kl(o,Zl(t,a),n,r)}},Zl=(e,t)=>{let n=e,r=t.split(Rl),i=r.length;for(let e=0;e<i;e++){let t=r[e],i=n.nextPart.get(t);i||(i=Ll(),n.nextPart.set(t,i)),n=i}return n},Ql=e=>`isThemeGetter`in e&&e.isThemeGetter===!0,$l=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)}}},eu=`!`,tu=`:`,nu=[],ru=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),iu=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===tu){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(eu)?(c=s.slice(0,-1),l=!0):s.startsWith(eu)&&(c=s.slice(1),l=!0);let u=a&&a>i?a-i:void 0;return ru(t,l,c,u)};if(t){let e=t+tu,n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):ru(nu,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},au=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}},ou=e=>({cache:$l(e.cacheSize),parseClassName:iu(e),sortModifiers:au(e),...Vl(e)}),su=/\s+/,cu=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a}=t,o=[],s=e.trim().split(su),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+eu: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},lu=(...e)=>{let t=0,n,r,i=``;for(;t<e.length;)(n=e[t++])&&(r=uu(n))&&(i&&(i+=` `),i+=r);return i},uu=e=>{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r<e.length;r++)e[r]&&(t=uu(e[r]))&&(n&&(n+=` `),n+=t);return n},du=(e,...t)=>{let n,r,i,a,o=o=>(n=ou(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=cu(e,n);return i(e,a),a};return a=o,(...e)=>a(lu(...e))},fu=[],pu=e=>{let t=t=>t[e]||fu;return t.isThemeGetter=!0,t},mu=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,hu=/^\((?:(\w[\w-]*):)?(.+)\)$/i,gu=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,_u=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,vu=/\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$/,yu=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,bu=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,xu=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Su=e=>gu.test(e),Cu=e=>!!e&&!Number.isNaN(Number(e)),wu=e=>!!e&&Number.isInteger(Number(e)),Tu=e=>e.endsWith(`%`)&&Cu(e.slice(0,-1)),Eu=e=>_u.test(e),Du=()=>!0,Ou=e=>vu.test(e)&&!yu.test(e),ku=()=>!1,Au=e=>bu.test(e),ju=e=>xu.test(e),Mu=e=>!W(e)&&!G(e),Nu=e=>Ju(e,Qu,ku),W=e=>mu.test(e),Pu=e=>Ju(e,$u,Ou),Fu=e=>Ju(e,ed,Cu),Iu=e=>Ju(e,nd,Du),Lu=e=>Ju(e,td,ku),Ru=e=>Ju(e,Xu,ku),zu=e=>Ju(e,Zu,ju),Bu=e=>Ju(e,rd,Au),G=e=>hu.test(e),Vu=e=>Yu(e,$u),Hu=e=>Yu(e,td),Uu=e=>Yu(e,Xu),Wu=e=>Yu(e,Qu),Gu=e=>Yu(e,Zu),Ku=e=>Yu(e,rd,!0),qu=e=>Yu(e,nd,!0),Ju=(e,t,n)=>{let r=mu.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Yu=(e,t,n=!1)=>{let r=hu.exec(e);return r?r[1]?t(r[1]):n:!1},Xu=e=>e===`position`||e===`percentage`,Zu=e=>e===`image`||e===`url`,Qu=e=>e===`length`||e===`size`||e===`bg-size`,$u=e=>e===`length`,ed=e=>e===`number`,td=e=>e===`family-name`,nd=e=>e===`number`||e===`weight`,rd=e=>e===`shadow`,id=du(()=>{let e=pu(`color`),t=pu(`font`),n=pu(`text`),r=pu(`font-weight`),i=pu(`tracking`),a=pu(`leading`),o=pu(`breakpoint`),s=pu(`container`),c=pu(`spacing`),l=pu(`radius`),u=pu(`shadow`),d=pu(`inset-shadow`),f=pu(`text-shadow`),p=pu(`drop-shadow`),m=pu(`blur`),h=pu(`perspective`),g=pu(`aspect`),_=pu(`ease`),v=pu(`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(),G,W],S=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],C=()=>[`auto`,`contain`,`none`],w=()=>[G,W,c],T=()=>[Su,`full`,`auto`,...w()],E=()=>[wu,`none`,`subgrid`,G,W],D=()=>[`auto`,{span:[`full`,wu,G,W]},wu,G,W],O=()=>[wu,`auto`,G,W],k=()=>[`auto`,`min`,`max`,`fr`,G,W],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=()=>[Su,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...w()],ee=()=>[Su,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,...w()],te=()=>[Su,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,...w()],P=()=>[e,G,W],F=()=>[...b(),Uu,Ru,{position:[G,W]}],ne=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],re=()=>[`auto`,`cover`,`contain`,Wu,Nu,{size:[G,W]}],ie=()=>[Tu,Vu,Pu],ae=()=>[``,`none`,`full`,l,G,W],oe=()=>[``,Cu,Vu,Pu],se=()=>[`solid`,`dashed`,`dotted`,`double`],ce=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],le=()=>[Cu,Tu,Uu,Ru],ue=()=>[``,`none`,m,G,W],de=()=>[`none`,Cu,G,W],fe=()=>[`none`,Cu,G,W],pe=()=>[Cu,G,W],me=()=>[Su,`full`,...w()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[Eu],breakpoint:[Eu],color:[Du],container:[Eu],"drop-shadow":[Eu],ease:[`in`,`out`,`in-out`],font:[Mu],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[Eu],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[Eu],shadow:[Eu],spacing:[`px`,Cu],text:[Eu],"text-shadow":[Eu],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,Su,W,G,g]}],container:[`container`],columns:[{columns:[Cu,W,G,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:[wu,`auto`,G,W]}],basis:[{basis:[Su,`full`,`auto`,s,...w()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[Cu,Su,`auto`,`initial`,`none`,W]}],grow:[{grow:[``,Cu,G,W]}],shrink:[{shrink:[``,Cu,G,W]}],order:[{order:[wu,`first`,`last`,`none`,G,W]}],"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,Vu,Pu]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,qu,Iu]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,Tu,W]}],"font-family":[{font:[Hu,Lu,t]}],"font-features":[{"font-features":[W]}],"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,G,W]}],"line-clamp":[{"line-clamp":[Cu,`none`,G,Fu]}],leading:[{leading:[a,...w()]}],"list-image":[{"list-image":[`none`,G,W]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,G,W]}],"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:[...se(),`wavy`]}],"text-decoration-thickness":[{decoration:[Cu,`from-font`,`auto`,G,Pu]}],"text-decoration-color":[{decoration:P()}],"underline-offset":[{"underline-offset":[Cu,`auto`,G,W]}],"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`,G,W]}],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`,G,W]}],"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:ne()}],"bg-size":[{bg:re()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},wu,G,W],radial:[``,G,W],conic:[wu,G,W]},Gu,zu]}],"bg-color":[{bg:P()}],"gradient-from-pos":[{from:ie()}],"gradient-via-pos":[{via:ie()}],"gradient-to-pos":[{to:ie()}],"gradient-from":[{from:P()}],"gradient-via":[{via:P()}],"gradient-to":[{to:P()}],rounded:[{rounded:ae()}],"rounded-s":[{"rounded-s":ae()}],"rounded-e":[{"rounded-e":ae()}],"rounded-t":[{"rounded-t":ae()}],"rounded-r":[{"rounded-r":ae()}],"rounded-b":[{"rounded-b":ae()}],"rounded-l":[{"rounded-l":ae()}],"rounded-ss":[{"rounded-ss":ae()}],"rounded-se":[{"rounded-se":ae()}],"rounded-ee":[{"rounded-ee":ae()}],"rounded-es":[{"rounded-es":ae()}],"rounded-tl":[{"rounded-tl":ae()}],"rounded-tr":[{"rounded-tr":ae()}],"rounded-br":[{"rounded-br":ae()}],"rounded-bl":[{"rounded-bl":ae()}],"border-w":[{border:oe()}],"border-w-x":[{"border-x":oe()}],"border-w-y":[{"border-y":oe()}],"border-w-s":[{"border-s":oe()}],"border-w-e":[{"border-e":oe()}],"border-w-bs":[{"border-bs":oe()}],"border-w-be":[{"border-be":oe()}],"border-w-t":[{"border-t":oe()}],"border-w-r":[{"border-r":oe()}],"border-w-b":[{"border-b":oe()}],"border-w-l":[{"border-l":oe()}],"divide-x":[{"divide-x":oe()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":oe()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[...se(),`hidden`,`none`]}],"divide-style":[{divide:[...se(),`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:[...se(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[Cu,G,W]}],"outline-w":[{outline:[``,Cu,Vu,Pu]}],"outline-color":[{outline:P()}],shadow:[{shadow:[``,`none`,u,Ku,Bu]}],"shadow-color":[{shadow:P()}],"inset-shadow":[{"inset-shadow":[`none`,d,Ku,Bu]}],"inset-shadow-color":[{"inset-shadow":P()}],"ring-w":[{ring:oe()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:P()}],"ring-offset-w":[{"ring-offset":[Cu,Pu]}],"ring-offset-color":[{"ring-offset":P()}],"inset-ring-w":[{"inset-ring":oe()}],"inset-ring-color":[{"inset-ring":P()}],"text-shadow":[{"text-shadow":[`none`,f,Ku,Bu]}],"text-shadow-color":[{"text-shadow":P()}],opacity:[{opacity:[Cu,G,W]}],"mix-blend":[{"mix-blend":[...ce(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":ce()}],"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":[Cu]}],"mask-image-linear-from-pos":[{"mask-linear-from":le()}],"mask-image-linear-to-pos":[{"mask-linear-to":le()}],"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":le()}],"mask-image-t-to-pos":[{"mask-t-to":le()}],"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":le()}],"mask-image-r-to-pos":[{"mask-r-to":le()}],"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":le()}],"mask-image-b-to-pos":[{"mask-b-to":le()}],"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":le()}],"mask-image-l-to-pos":[{"mask-l-to":le()}],"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":le()}],"mask-image-x-to-pos":[{"mask-x-to":le()}],"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":le()}],"mask-image-y-to-pos":[{"mask-y-to":le()}],"mask-image-y-from-color":[{"mask-y-from":P()}],"mask-image-y-to-color":[{"mask-y-to":P()}],"mask-image-radial":[{"mask-radial":[G,W]}],"mask-image-radial-from-pos":[{"mask-radial-from":le()}],"mask-image-radial-to-pos":[{"mask-radial-to":le()}],"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":[Cu]}],"mask-image-conic-from-pos":[{"mask-conic-from":le()}],"mask-image-conic-to-pos":[{"mask-conic-to":le()}],"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:ne()}],"mask-size":[{mask:re()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,G,W]}],filter:[{filter:[``,`none`,G,W]}],blur:[{blur:ue()}],brightness:[{brightness:[Cu,G,W]}],contrast:[{contrast:[Cu,G,W]}],"drop-shadow":[{"drop-shadow":[``,`none`,p,Ku,Bu]}],"drop-shadow-color":[{"drop-shadow":P()}],grayscale:[{grayscale:[``,Cu,G,W]}],"hue-rotate":[{"hue-rotate":[Cu,G,W]}],invert:[{invert:[``,Cu,G,W]}],saturate:[{saturate:[Cu,G,W]}],sepia:[{sepia:[``,Cu,G,W]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,G,W]}],"backdrop-blur":[{"backdrop-blur":ue()}],"backdrop-brightness":[{"backdrop-brightness":[Cu,G,W]}],"backdrop-contrast":[{"backdrop-contrast":[Cu,G,W]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,Cu,G,W]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Cu,G,W]}],"backdrop-invert":[{"backdrop-invert":[``,Cu,G,W]}],"backdrop-opacity":[{"backdrop-opacity":[Cu,G,W]}],"backdrop-saturate":[{"backdrop-saturate":[Cu,G,W]}],"backdrop-sepia":[{"backdrop-sepia":[``,Cu,G,W]}],"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`,G,W]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[Cu,`initial`,G,W]}],ease:[{ease:[`linear`,`initial`,_,G,W]}],delay:[{delay:[Cu,G,W]}],animate:[{animate:[`none`,v,G,W]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[h,G,W]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:de()}],"rotate-x":[{"rotate-x":de()}],"rotate-y":[{"rotate-y":de()}],"rotate-z":[{"rotate-z":de()}],scale:[{scale:fe()}],"scale-x":[{"scale-x":fe()}],"scale-y":[{"scale-y":fe()}],"scale-z":[{"scale-z":fe()}],"scale-3d":[`scale-3d`],skew:[{skew:pe()}],"skew-x":[{"skew-x":pe()}],"skew-y":[{"skew-y":pe()}],transform:[{transform:[G,W,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:me()}],"translate-x":[{"translate-x":me()}],"translate-y":[{"translate-y":me()}],"translate-z":[{"translate-z":me()}],"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`,G,W]}],"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`,G,W]}],fill:[{fill:[`none`,...P()]}],"stroke-w":[{stroke:[Cu,Vu,Pu,Fu]}],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 K(...e){return id(Pl(e))}function ad(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 od(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 sd(e){return e?e.endsWith(`Z`)||/[+-]\d{2}:\d{2}$/.test(e)?new Date(e):new Date(e+`Z`):new Date}var cd=[{path:`/dashboard`,label:`仪表盘`,icon:ic},{path:`/projects`,label:`项目管理`,icon:$s},{path:`/sessions`,label:`会话管理`,icon:Es},{path:`/events`,label:`事件流`,icon:Ms},{path:`/pipelines`,label:`流水线`,icon:tc},{path:`/quality`,label:`质量门禁`,icon:vc},{path:`/knowledge`,label:`知识图谱`,icon:js},{path:`/analytics`,label:`数据分析`,icon:Ns},{path:`/config`,label:`系统配置`,icon:_c}];function ld({children:e}){let[t,n]=(0,I.useState)(()=>localStorage.getItem(`sidebar-collapsed`)===`true`),r=Nn();(0,I.useEffect)(()=>{localStorage.setItem(`sidebar-collapsed`,String(t))},[t]);let{data:i}=dt({queryKey:[`health`],queryFn:()=>Fc().then(e=>e.data),refetchInterval:15e3}),a=cd.find(e=>r.pathname.startsWith(e.path));return(0,L.jsxs)(`div`,{className:`flex min-h-screen bg-gray-50`,children:[(0,L.jsxs)(`aside`,{className:K(`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,L.jsxs)(`div`,{className:K(`flex items-center border-b border-white/10 h-16`,t?`justify-center px-2`:`justify-between px-5`),children:[!t&&(0,L.jsxs)(`div`,{className:`flex items-center gap-2.5`,children:[(0,L.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,L.jsx)(Oc,{className:`h-5 w-5 text-white`})}),(0,L.jsx)(`span`,{className:`text-white font-bold text-lg tracking-tight`,children:`Forge`})]}),(0,L.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,L.jsx)(oc,{className:`h-5 w-5`}):(0,L.jsx)(Is,{className:`h-5 w-5`})})]}),(0,L.jsx)(`nav`,{className:`flex-1 py-4 space-y-1 px-2`,children:cd.map(e=>(0,L.jsxs)(ni,{to:e.path,className:({isActive:e})=>K(`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,L.jsx)(e.icon,{className:`h-5 w-5 flex-shrink-0`}),!t&&(0,L.jsx)(`span`,{className:`text-sm font-medium`,children:e.label})]},e.path))}),(0,L.jsx)(`div`,{className:K(`border-t border-white/10 py-4`,t?`px-2`:`px-5`),children:(0,L.jsxs)(`div`,{className:K(`flex items-center gap-2`,t?`justify-center`:``),children:[(0,L.jsx)(`div`,{className:K(`w-2 h-2 rounded-full`,i?.status===`ok`?`bg-green-400 animate-pulse`:`bg-red-400`)}),!t&&(0,L.jsx)(`span`,{className:`text-xs text-white/40`,children:i?.status===`ok`?`Daemon 运行中`:`连接断开`})]})})]}),(0,L.jsxs)(`main`,{className:K(`flex-1 transition-all duration-300`,t?`ml-16`:`ml-60`),children:[(0,L.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,L.jsx)(`h1`,{className:`text-xl font-semibold text-gray-900`,children:a?.label||`Claude Forge`}),(0,L.jsxs)(`div`,{className:`flex items-center gap-4`,children:[(0,L.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,L.jsx)(Ws,{className:`h-4 w-4`}),(0,L.jsx)(`span`,{children:`命令面板`}),(0,L.jsx)(`kbd`,{className:`px-2 py-0.5 text-xs bg-gray-100 rounded border border-gray-200`,children:`⌘K`})]}),(0,L.jsxs)(`span`,{className:`text-sm text-gray-500`,children:[`v`,`1.17.2`]}),(0,L.jsxs)(`div`,{className:K(`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,L.jsx)(`div`,{className:K(`w-1.5 h-1.5 rounded-full`,i?.status===`ok`?`bg-green-500`:`bg-red-500`)}),i?.status===`ok`?`在线`:`离线`]})]})]}),(0,L.jsx)(`div`,{className:`p-8`,children:e})]})]})}var ud=(0,I.createContext)({});function dd(e){let t=(0,I.useRef)(null);return t.current===null&&(t.current=e()),t.current}var fd=typeof window<`u`?I.useLayoutEffect:I.useEffect,pd=(0,I.createContext)(null);function md(e,t){e.indexOf(t)===-1&&e.push(t)}function hd(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}var gd=(e,t,n)=>n>t?t:n<e?e:n,_d={},vd=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function yd(e){return typeof e==`object`&&!!e}var bd=e=>/^0[^.\s]+$/u.test(e);function xd(e){let t;return()=>(t===void 0&&(t=e()),t)}var Sd=e=>e,Cd=(e,t)=>n=>t(e(n)),wd=(...e)=>e.reduce(Cd),q=(e,t,n)=>{let r=t-e;return r===0?1:(n-e)/r},Td=class{constructor(){this.subscriptions=[]}add(e){return md(this.subscriptions,e),()=>hd(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}},Ed=e=>e*1e3,Dd=e=>e/1e3;function Od(e,t){return t?1e3/t*e:0}var kd=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Ad=1e-7,jd=12;function Md(e,t,n,r,i){let a,o,s=0;do o=t+(n-t)/2,a=kd(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>Ad&&++s<jd);return o}function Nd(e,t,n,r){if(e===t&&n===r)return Sd;let i=t=>Md(t,0,1,e,n);return e=>e===0||e===1?e:kd(i(e),t,r)}var Pd=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Fd=e=>t=>1-e(1-t),Id=Nd(.33,1.53,.69,.99),Ld=Fd(Id),Rd=Pd(Ld),zd=e=>e>=1?1:(e*=2)<1?.5*Ld(e):.5*(2-2**(-10*(e-1))),Bd=e=>1-Math.sin(Math.acos(e)),Vd=Fd(Bd),Hd=Pd(Bd),Ud=Nd(.42,0,1,1),Wd=Nd(0,0,.58,1),Gd=Nd(.42,0,.58,1),Kd=e=>Array.isArray(e)&&typeof e[0]!=`number`,qd=e=>Array.isArray(e)&&typeof e[0]==`number`,Jd={linear:Sd,easeIn:Ud,easeInOut:Gd,easeOut:Wd,circIn:Bd,circInOut:Hd,circOut:Vd,backIn:Ld,backInOut:Rd,backOut:Id,anticipate:zd},Yd=e=>typeof e==`string`,Xd=e=>{if(qd(e)){e.length;let[t,n,r,i]=e;return Nd(t,n,r,i)}else if(Yd(e))return Jd[e],`${e}`,Jd[e];return e},Zd=[`setup`,`read`,`resolveKeyframes`,`preUpdate`,`update`,`preRender`,`render`,`postRender`],Qd={value:null,addProjectionMetrics:null};function $d(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&&Qd.value&&Qd.value.frameloop[t].push(c),c=0,n.clear(),i=!1,a&&(a=!1,u.process(e))}};return u}var ef=40;function tf(e,t){let n=!1,r=!0,i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,o=Zd.reduce((e,n)=>(e[n]=$d(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=_d.useManualTiming,o=a?i.timestamp:performance.now();n=!1,a||(i.delta=r?1e3/60:Math.max(Math.min(o-i.timestamp,ef),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:Zd.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<Zd.length;t++)o[Zd[t]].cancel(e)},state:i,steps:o}}var{schedule:nf,cancel:rf,state:af,steps:of}=tf(typeof requestAnimationFrame<`u`?requestAnimationFrame:Sd,!0),sf;function cf(){sf=void 0}var lf={now:()=>(sf===void 0&&lf.set(af.isProcessing||_d.useManualTiming?af.timestamp:performance.now()),sf),set:e=>{sf=e,queueMicrotask(cf)}},uf={layout:0,mainThread:0,waapi:0},df=e=>t=>typeof t==`string`&&t.startsWith(e),ff=df(`--`),pf=df(`var(--`),mf=e=>pf(e)?hf.test(e.split(`/*`)[0].trim()):!1,hf=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function gf(e){return typeof e==`string`?e.split(`/*`)[0].includes(`var(--`):!1}var _f={test:e=>typeof e==`number`,parse:parseFloat,transform:e=>e},vf={..._f,transform:e=>gd(0,1,e)},yf={..._f,default:1},bf=e=>Math.round(e*1e5)/1e5,xf=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Sf(e){return e==null}var Cf=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,wf=(e,t)=>n=>!!(typeof n==`string`&&Cf.test(n)&&n.startsWith(e)||t&&!Sf(n)&&Object.prototype.hasOwnProperty.call(n,t)),Tf=(e,t,n)=>r=>{if(typeof r!=`string`)return r;let[i,a,o,s]=r.match(xf);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s===void 0?1:parseFloat(s)}},Ef=e=>gd(0,255,e),Df={..._f,transform:e=>Math.round(Ef(e))},Of={test:wf(`rgb`,`red`),parse:Tf(`red`,`green`,`blue`),transform:({red:e,green:t,blue:n,alpha:r=1})=>`rgba(`+Df.transform(e)+`, `+Df.transform(t)+`, `+Df.transform(n)+`, `+bf(vf.transform(r))+`)`};function kf(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 Af={test:wf(`#`),parse:kf,transform:Of.transform},jf=e=>({test:t=>typeof t==`string`&&t.endsWith(e)&&t.split(` `).length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Mf=jf(`deg`),Nf=jf(`%`),J=jf(`px`),Pf=jf(`vh`),Ff=jf(`vw`),If={...Nf,parse:e=>Nf.parse(e)/100,transform:e=>Nf.transform(e*100)},Lf={test:wf(`hsl`,`hue`),parse:Tf(`hue`,`saturation`,`lightness`),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>`hsla(`+Math.round(e)+`, `+Nf.transform(bf(t))+`, `+Nf.transform(bf(n))+`, `+bf(vf.transform(r))+`)`},Rf={test:e=>Of.test(e)||Af.test(e)||Lf.test(e),parse:e=>Of.test(e)?Of.parse(e):Lf.test(e)?Lf.parse(e):Af.parse(e),transform:e=>typeof e==`string`?e:e.hasOwnProperty(`red`)?Of.transform(e):Lf.transform(e),getAnimatableNone:e=>{let t=Rf.parse(e);return t.alpha=0,Rf.transform(t)}},zf=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Bf(e){return isNaN(e)&&typeof e==`string`&&(e.match(xf)?.length||0)+(e.match(zf)?.length||0)>0}var Vf=`number`,Hf=`color`,Uf=`var`,Wf=`var(`,Gf="${}",Kf=/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 qf(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],a=0;return{values:n,split:t.replace(Kf,e=>(Rf.test(e)?(r.color.push(a),i.push(Hf),n.push(Rf.parse(e))):e.startsWith(Wf)?(r.var.push(a),i.push(Uf),n.push(e)):(r.number.push(a),i.push(Vf),n.push(parseFloat(e))),++a,Gf)).split(Gf),indexes:r,types:i}}function Jf(e){return qf(e).values}function Yf({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===Vf?i+=bf(r[a]):e===Hf?i+=Rf.transform(r[a]):i+=r[a]}return i}}function Xf(e){return Yf(qf(e))}var Zf=e=>typeof e==`number`?0:Rf.test(e)?Rf.getAnimatableNone(e):e,Qf=(e,t)=>typeof e==`number`?t?.trim().endsWith(`/`)?e:0:Zf(e);function $f(e){let t=qf(e);return Yf(t)(t.values.map((e,n)=>Qf(e,t.split[n])))}var ep={test:Bf,parse:Jf,createTransformer:Xf,getAnimatableNone:$f};function tp(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 np({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=tp(s,r,e+1/3),a=tp(s,r,e),o=tp(s,r,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function rp(e,t){return n=>n>0?t:e}var ip=(e,t,n)=>e+(t-e)*n,ap=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},op=[Af,Of,Lf],sp=e=>op.find(t=>t.test(e));function cp(e){let t=sp(e);if(`${e}`,!t)return!1;let n=t.parse(e);return t===Lf&&(n=np(n)),n}var lp=(e,t)=>{let n=cp(e),r=cp(t);if(!n||!r)return rp(e,t);let i={...n};return e=>(i.red=ap(n.red,r.red,e),i.green=ap(n.green,r.green,e),i.blue=ap(n.blue,r.blue,e),i.alpha=ip(n.alpha,r.alpha,e),Of.transform(i))},up=new Set([`none`,`hidden`]);function dp(e,t){return up.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function fp(e,t){return n=>ip(e,t,n)}function pp(e){return typeof e==`number`?fp:typeof e==`string`?mf(e)?rp:Rf.test(e)?lp:_p:Array.isArray(e)?mp:typeof e==`object`?Rf.test(e)?lp:hp:rp}function mp(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>pp(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function hp(e,t){let n={...e,...t},r={};for(let i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=pp(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}function gp(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 _p=(e,t)=>{let n=ep.createTransformer(t),r=qf(e),i=qf(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?up.has(e)&&!i.values.length||up.has(t)&&!r.values.length?dp(e,t):wd(mp(gp(r,i),i.values),n):(`${e}${t}`,rp(e,t))};function vp(e,t,n){return typeof e==`number`&&typeof t==`number`&&typeof n==`number`?ip(e,t,n):pp(e)(e,t)}var yp=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>nf.update(t,e),stop:()=>rf(t),now:()=>af.isProcessing?af.timestamp:lf.now()}},bp=(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)})`},xp=2e4;function Sp(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 Cp(e,t=100,n){let r=n({...e,keyframes:[0,t]}),i=Math.min(Sp(r),xp);return{type:`keyframes`,ease:e=>r.next(i*e).value/t,duration:Dd(i)}}var wp={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 Tp(e,t){return e*Math.sqrt(1-t*t)}var Ep=12;function Dp(e,t,n){let r=n;for(let n=1;n<Ep;n++)r-=e(r)/t(r);return r}var Op=.001;function kp({duration:e=wp.duration,bounce:t=wp.bounce,velocity:n=wp.velocity,mass:r=wp.mass}){let i,a;wp.maxDuration;let o=1-t;o=gd(wp.minDamping,wp.maxDamping,o),e=gd(wp.minDuration,wp.maxDuration,Dd(e)),o<1?(i=t=>{let r=t*o,i=r*e,a=r-n,s=Tp(t,o),c=Math.exp(-i);return Op-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=Tp(t**2,o);return(-i(t)+Op>0?-1:1)*((a-s)*c)/l}):(i=t=>{let r=Math.exp(-t*e),i=(t-n)*e+1;return-Op+r*i},a=t=>Math.exp(-t*e)*((n-t)*(e*e)));let s=5/e,c=Dp(i,a,s);if(e=Ed(e),isNaN(c))return{stiffness:wp.stiffness,damping:wp.damping,duration:e};{let t=c**2*r;return{stiffness:t,damping:o*2*Math.sqrt(r*t),duration:e}}}var Ap=[`duration`,`bounce`],jp=[`stiffness`,`damping`,`mass`];function Mp(e,t){return t.some(t=>e[t]!==void 0)}function Np(e){let t={velocity:wp.velocity,stiffness:wp.stiffness,damping:wp.damping,mass:wp.mass,isResolvedFromDuration:!1,...e};if(!Mp(e,jp)&&Mp(e,Ap))if(t.velocity=0,e.visualDuration){let n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*gd(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:wp.mass,stiffness:i,damping:a}}else{let n=kp({...e,velocity:0});t={...t,...n,mass:wp.mass},t.isResolvedFromDuration=!0}return t}function Pp(e=wp.visualDuration,t=wp.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}=Np({...n,velocity:-Dd(n.velocity||0)}),m=f||0,h=l/(2*Math.sqrt(c*u)),g=o-a,_=Dd(Math.sqrt(c/u)),v=Math.abs(g)<5;r||=v?wp.restSpeed.granular:wp.restSpeed.default,i||=v?wp.restDelta.granular:wp.restDelta.default;let y,b,x,S,C,w;if(h<1)x=Tp(_,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=>Ed(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=Ed(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=Ed(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(Sp(T),xp),t=bp(t=>T.next(e*t).value,e,30);return e+`ms `+t},toTransition:()=>{}};return T}Pp.applyToOptions=e=>{let t=Cp(e,100,Pp);return e.ease=t.ease,e.duration=Ed(t.duration),e.type=`keyframes`,e};var Fp=5;function Ip(e,t,n){let r=Math.max(t-Fp,0);return Od(n-e(r),t-r)}function Lp({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=Pp({keyframes:[f.value,m(f.value)],velocity:Ip(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 Rp(e,t,n){let r=[],i=n||_d.mix||vp,a=e.length-1;for(let n=0;n<a;n++){let a=i(e[n],e[n+1]);t&&(a=wd(Array.isArray(t)?t[n]||Sd:t,a)),r.push(a)}return r}function zp(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=Rp(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=q(e[r],e[r+1],n);return s[r](i)};return n?t=>l(gd(e[0],e[a-1],t)):l}function Bp(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=q(0,t,r);e.push(ip(n,1,i))}}function Vp(e){let t=[0];return Bp(t,e.length-1),t}function Hp(e,t){return e.map(e=>e*t)}function Up(e,t){return e.map(()=>t||Gd).splice(0,e.length-1)}function Wp({duration:e=300,keyframes:t,times:n,ease:r=`easeInOut`}){let i=Kd(r)?r.map(Xd):Xd(r),a={done:!1,value:t[0]},o=zp(Hp(n&&n.length===t.length?n:Vp(t),e),t,{ease:Array.isArray(i)?i:Up(t,i)});return{calculatedDuration:e,next:t=>(a.value=o(t),a.done=t>=e,a)}}var Gp=e=>e!==null;function Kp(e,{repeat:t,repeatType:n=`loop`},r,i=1){let a=e.filter(Gp),o=i<0||t&&n!==`loop`&&t%2==1?0:a.length-1;return!o||r===void 0?a[o]:r}var qp={decay:Lp,inertia:Lp,tween:Wp,keyframes:Wp,spring:Pp};function Jp(e){typeof e.type==`string`&&(e.type=qp[e.type])}var Yp=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)}},Xp=e=>e/100,Zp=class extends Yp{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!==lf.now()&&this.tick(lf.now()),this.isStopped=!0,this.state!==`idle`&&(this.teardown(),this.options.onStop?.())},uf.mainThread++,this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){let{options:e}=this;Jp(e);let{type:t=Wp,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=e,{keyframes:o}=e,s=t||Wp;s!==Wp&&typeof o[0]!=`number`&&(this.mixKeyframes=wd(Xp,vp(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=Sp(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=gd(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!==Lp&&(b.value=Kp(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 Dd(this.calculatedDuration)}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+Dd(e)}get time(){return Dd(this.currentTime)}set time(e){e=Ed(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 Ip(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(lf.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=Dd(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=yp,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(lf.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,uf.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 Qp(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}var $p=e=>e*180/Math.PI,em=e=>nm($p(Math.atan2(e[1],e[0]))),tm={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:em,rotateZ:em,skewX:e=>$p(Math.atan(e[1])),skewY:e=>$p(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},nm=e=>(e%=360,e<0&&(e+=360),e),rm=em,im=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),am=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),om={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:im,scaleY:am,scale:e=>(im(e)+am(e))/2,rotateX:e=>nm($p(Math.atan2(e[6],e[5]))),rotateY:e=>nm($p(Math.atan2(-e[2],e[0]))),rotateZ:rm,rotate:rm,skewX:e=>$p(Math.atan(e[4])),skewY:e=>$p(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function sm(e){return+!!e.includes(`scale`)}function cm(e,t){if(!e||e===`none`)return sm(t);let n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),r,i;if(n)r=om,i=n;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=tm,i=t}if(!i)return sm(t);let a=r[t],o=i[1].split(`,`).map(um);return typeof a==`function`?a(o):o[a]}var lm=(e,t)=>{let{transform:n=`none`}=getComputedStyle(e);return cm(n,t)};function um(e){return parseFloat(e.trim())}var dm=[`transformPerspective`,`x`,`y`,`z`,`translateX`,`translateY`,`translateZ`,`scale`,`scaleX`,`scaleY`,`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skew`,`skewX`,`skewY`],fm=new Set(dm),pm=e=>e===_f||e===J,mm=new Set([`x`,`y`,`z`]),hm=dm.filter(e=>!mm.has(e));function gm(e){let t=[];return hm.forEach(n=>{let r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(+!!n.startsWith(`scale`)))}),t}var _m={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})=>cm(t,`x`),y:(e,{transform:t})=>cm(t,`y`)};_m.translateX=_m.x,_m.translateY=_m.y;var vm=new Set,ym=!1,bm=!1,xm=!1;function Sm(){if(bm){let e=Array.from(vm).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{let t=gm(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)})}bm=!1,ym=!1,vm.forEach(e=>e.complete(xm)),vm.clear()}function Cm(){vm.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(bm=!0)})}function wm(){xm=!0,Cm(),Sm(),xm=!1}var Tm=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?(vm.add(this),ym||(ym=!0,nf.read(Cm),nf.resolveKeyframes(Sm))):(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])}Qp(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state=`complete`,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),vm.delete(this)}cancel(){this.state===`scheduled`&&(vm.delete(this),this.state=`pending`)}resume(){this.state===`pending`&&this.scheduleResolve()}},Em=e=>e.startsWith(`--`);function Dm(e,t,n){Em(t)?e.style.setProperty(t,n):e.style[t]=n}var Om={};function km(e,t){let n=xd(e);return()=>Om[t]??n()}var Am=km(()=>window.ScrollTimeline!==void 0,`scrollTimeline`),jm=km(()=>{try{document.createElement(`div`).animate({opacity:0},{easing:`linear(0, 1)`})}catch{return!1}return!0},`linearEasing`),Mm=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Nm={linear:`linear`,ease:`ease`,easeIn:`ease-in`,easeOut:`ease-out`,easeInOut:`ease-in-out`,circIn:Mm([0,.65,.55,1]),circOut:Mm([.55,0,1,.45]),backIn:Mm([.31,.01,.66,-.59]),backOut:Mm([.33,1.53,.69,.99])};function Pm(e,t){if(e)return typeof e==`function`?jm()?bp(e,t):`ease-out`:qd(e)?Mm(e):Array.isArray(e)?e.map(e=>Pm(e,t)||Nm.easeOut):Nm[e]}function Fm(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=Pm(s,i);Array.isArray(d)&&(u.easing=d),Qd.value&&uf.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 Qd.value&&p.finished.finally(()=>{uf.waapi--}),p}function Im(e){return typeof e==`function`&&`applyToOptions`in e}function Lm({type:e,...t}){return Im(e)&&jm()?e.applyToOptions(t):(t.duration??=300,t.ease??=`easeOut`,t)}var Rm=class extends Yp{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=Lm(e);this.animation=Fm(t,n,r,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=Kp(r,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(e),Dm(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 Dd(Number(e))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+Dd(e)}get time(){return Dd(Number(this.animation.currentTime)||0)}set time(e){let t=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=Ed(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&&Am()?(this.animation.timeline=e,t&&(this.animation.rangeStart=t),n&&(this.animation.rangeEnd=n),Sd):r(this)}},zm={anticipate:zd,backInOut:Rd,circInOut:Hd};function Bm(e){return e in zm}function Vm(e){typeof e.ease==`string`&&Bm(e.ease)&&(e.ease=zm[e.ease])}var Hm=10,Um=class extends Rm{constructor(e){Vm(e),Jp(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 Zp({...a,autoplay:!1}),s=Math.max(Hm,lf.now()-this.startTime),c=gd(0,Hm,s-Hm),l=o.sample(s).value,{name:u}=this.options;i&&u&&Dm(i,u,l),t.setWithVelocity(o.sample(Math.max(0,s-c)).value,l,c),o.stop()}},Wm=(e,t)=>t===`zIndex`?!1:!!(typeof e==`number`||Array.isArray(e)||typeof e==`string`&&(ep.test(e)||e===`0`)&&!e.startsWith(`url(`));function Gm(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 Km(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=Wm(i,t),s=Wm(a,t);return`${t}${i}${a}${o?a:i}`,!o||!s?!1:Gm(e)||(n===`spring`||Im(n))&&r}function qm(e){e.duration=0,e.type=`keyframes`}var Jm=new Set([`opacity`,`clipPath`,`filter`,`transform`]),Ym=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function Xm(e){for(let t=0;t<e.length;t++)if(typeof e[t]==`string`&&Ym.test(e[t]))return!0;return!1}var Zm=new Set([`color`,`backgroundColor`,`outlineColor`,`fill`,`stroke`,`borderColor`,`borderTopColor`,`borderRightColor`,`borderBottomColor`,`borderLeftColor`]),Qm=xd(()=>Object.hasOwnProperty.call(Element.prototype,`animate`));function $m(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 Qm()&&n&&(Jm.has(n)||Zm.has(n)&&Xm(s))&&(n!==`transform`||!l)&&!c&&!r&&i!==`mirror`&&a!==0&&o!==`inertia`}var eh=40,th=class extends Yp{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=lf.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||Tm)(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=lf.now();let u=!0;Km(e,i,a,o)||(u=!1,(_d.instantAnimations||!s)&&l?.(Kp(e,n,t)),e[0]=e[e.length-1],qm(n),n.repeat=0);let d={startTime:r?this.resolvedAt&&this.resolvedAt-this.createdAt>eh?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:e},f=u&&!c&&$m(d),p=d.motionValue?.owner?.current,m;if(f)try{m=new Um({...d,element:p})}catch{m=new Zp(d)}else m=new Zp(d);m.finished.then(()=>{this.notifyFinished()}).catch(Sd),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(),wm()),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 nh(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 rh=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function ih(e){let t=rh.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}function ah(e,t,n=1){`${e}`;let[r,i]=ih(e);if(!r)return;let a=window.getComputedStyle(t).getPropertyValue(r);if(a){let e=a.trim();return vd(e)?parseFloat(e):e}return mf(i)?ah(i,t,n+1):i}var oh={type:`spring`,stiffness:500,damping:25,restSpeed:10},sh=e=>({type:`spring`,stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),ch={type:`keyframes`,duration:.8},lh={type:`keyframes`,ease:[.25,.1,.35,1],duration:.3},uh=(e,{keyframes:t})=>t.length>2?ch:fm.has(e)?e.startsWith(`scale`)?sh(t[1]):oh:lh;function dh(e,t){if(e?.inherit&&t){let{inherit:n,...r}=e;return{...t,...r}}return e}function fh(e,t){let n=e?.[t]??e?.default??e;return n===e?n:dh(n,e)}var ph=new Set([`when`,`delay`,`delayChildren`,`staggerChildren`,`staggerDirection`,`repeat`,`repeatType`,`repeatDelay`,`from`,`elapsed`]);function mh(e){for(let t in e)if(!ph.has(t))return!0;return!1}var hh=(e,t,n,r={},i,a)=>o=>{let s=fh(r,e)||{},c=s.delay||r.delay||0,{elapsed:l=0}=r;l-=Ed(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};mh(s)||Object.assign(u,uh(e,u)),u.duration&&=Ed(u.duration),u.repeatDelay&&=Ed(u.repeatDelay),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(qm(u),u.delay===0&&(d=!0)),(_d.instantAnimations||_d.skipAnimations||i?.shouldSkipAnimations)&&(d=!0,qm(u),u.delay=0),u.allowFlatten=!s.type&&!s.ease,d&&!a&&t.get()!==void 0){let e=Kp(u.keyframes,s);if(e!==void 0){nf.update(()=>{u.onUpdate(e),u.onComplete()});return}}return s.isSync?new Zp(u):new th(u)};function gh(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function _h(e,t,n,r){if(typeof t==`function`){let[i,a]=gh(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]=gh(r);t=t(n===void 0?e.custom:n,i,a)}return t}function vh(e,t,n){let r=e.getProps();return _h(r,t,n===void 0?r.custom:n,e)}var yh=new Set([`width`,`height`,`top`,`left`,`right`,`bottom`,...dm]),bh=30,xh=e=>!isNaN(parseFloat(e)),Sh={current:void 0},Ch=class{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=lf.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=lf.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=xh(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 Td);let n=this.events[e].add(t);return e===`change`?()=>{n(),nf.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 Sh.current&&Sh.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=lf.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>bh)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,bh);return Od(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 wh(e,t){return new Ch(e,t)}var Th=e=>Array.isArray(e);function Eh(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,wh(n))}function Dh(e){return Th(e)?e[e.length-1]||0:e}function Oh(e,t){let{transitionEnd:n={},transition:r={},...i}=vh(e,t)||{};i={...i,...n};for(let t in i)Eh(e,t,Dh(i[t]))}var kh=e=>!!(e&&e.getVelocity);function Ah(e){return!!(kh(e)&&e.add)}function jh(e,t){let n=e.getValue(`willChange`);if(Ah(n))return n.add(t);if(!n&&_d.WillChange){let n=new _d.WillChange(`auto`);e.addValue(`willChange`,n),n.add(t)}}function Mh(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}var Nh=`data-`+Mh(`framerAppearId`);function Ph(e){return e.props[Nh]}function Fh({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Ih(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a,transitionEnd:o,...s}=t,c=e.getDefaultTransition();a=a?dh(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&&Fh(d,t))continue;let o={delay:n,...fh(a||{},t)},c=r.get();if(c!==void 0&&!r.isAnimating()&&!Array.isArray(i)&&i===c&&!o.velocity){nf.update(()=>r.set(i));continue}let f=!1;if(window.MotionHandoffAnimation){let n=Ph(e);if(n){let e=window.MotionHandoffAnimation(n,t,nf);e!==null&&(o.startTime=e,f=!0)}}jh(e,t);let p=l??e.shouldReduceMotion;r.start(hh(t,r,i,p&&yh.has(t)?{type:!1}:o,e,f));let m=r.animation;m&&u.push(m)}if(o){let t=()=>nf.update(()=>{o&&Oh(e,o)});u.length?Promise.all(u).then(t):t()}return u}function Lh(e,t,n={}){let r=vh(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(Ih(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:a=0,staggerChildren:o,staggerDirection:s}=i;return Rh(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 Rh(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(Lh(c,t,{...o,delay:n+(typeof r==`function`?0:r)+nh(e.variantChildren,c,r,i,a)}).then(()=>c.notify(`AnimationComplete`,t)));return Promise.all(s)}function zh(e,t,n={}){e.notify(`AnimationStart`,t);let r;if(Array.isArray(t)){let i=t.map(t=>Lh(e,t,n));r=Promise.all(i)}else if(typeof t==`string`)r=Lh(e,t,n);else{let i=typeof t==`function`?vh(e,t,n.custom):t;r=Promise.all(Ih(e,i,n))}return r.then(()=>{e.notify(`AnimationComplete`,t)})}var Bh={test:e=>e===`auto`,parse:e=>e},Vh=e=>t=>t.test(e),Hh=[_f,J,Nf,Mf,Ff,Pf,Bh],Uh=e=>Hh.find(Vh(e));function Wh(e){return typeof e==`number`?e===0:e===null?!0:e===`none`||e===`0`||bd(e)}var Gh=new Set([`brightness`,`contrast`,`saturate`,`opacity`]);function Kh(e){let[t,n]=e.slice(0,-1).split(`(`);if(t===`drop-shadow`)return e;let[r]=n.match(xf)||[];if(!r)return e;let i=n.replace(r,``),a=+!!Gh.has(t);return r!==n&&(a*=100),t+`(`+a+i+`)`}var qh=/\b([a-z-]*)\(.*?\)/gu,Jh={...ep,getAnimatableNone:e=>{let t=e.match(qh);return t?t.map(Kh).join(` `):e}},Yh={...ep,getAnimatableNone:e=>{let t=ep.parse(e);return ep.createTransformer(e)(t.map(e=>typeof e==`number`?0:typeof e==`object`?{...e,alpha:1}:e))}},Xh={..._f,transform:Math.round},Zh={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:Mf,rotateX:Mf,rotateY:Mf,rotateZ:Mf,scale:yf,scaleX:yf,scaleY:yf,scaleZ:yf,skew:Mf,skewX:Mf,skewY:Mf,distance:J,translateX:J,translateY:J,translateZ:J,x:J,y:J,z:J,perspective:J,transformPerspective:J,opacity:vf,originX:If,originY:If,originZ:J,zIndex:Xh,fillOpacity:vf,strokeOpacity:vf,numOctaves:Xh},Qh={...Zh,color:Rf,backgroundColor:Rf,outlineColor:Rf,fill:Rf,stroke:Rf,borderColor:Rf,borderTopColor:Rf,borderRightColor:Rf,borderBottomColor:Rf,borderLeftColor:Rf,filter:Jh,WebkitFilter:Jh,mask:Yh,WebkitMask:Yh},$h=e=>Qh[e],eg=new Set([Jh,Yh]);function tg(e,t){let n=$h(e);return eg.has(n)||(n=ep),n.getAnimatableNone?n.getAnimatableNone(t):void 0}var ng=new Set([`auto`,`none`,`0`]);function rg(e,t,n){let r=0,i;for(;r<e.length&&!i;){let t=e[r];typeof t==`string`&&!ng.has(t)&&qf(t).values.length&&(i=e[r]),r++}if(i&&n)for(let r of t)e[r]=tg(n,i)}var ig=class extends Tm{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(),mf(r))){let i=ah(r,t.current);i!==void 0&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!yh.has(n)||e.length!==2)return;let[r,i]=e,a=Uh(r),o=Uh(i);if(gf(r)!==gf(i)&&_m[n]){this.needsMeasurement=!0;return}if(a!==o)if(pm(a)&&pm(o))for(let t=0;t<e.length;t++){let n=e[t];typeof n==`string`&&(e[t]=parseFloat(n))}else _m[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(e[t]===null||Wh(e[t]))&&n.push(t);n.length&&rg(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=_m[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]=_m[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 ag(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 og=(e,t)=>t&&typeof e==`number`?t.transform(e):e;function sg(e){return yd(e)&&`offsetHeight`in e&&!(`ownerSVGElement`in e)}var{schedule:cg,cancel:lg}=tf(queueMicrotask,!1),ug={x:!1,y:!1};function dg(){return ug.x||ug.y}function fg(e){return e===`x`||e===`y`?ug[e]?null:(ug[e]=!0,()=>{ug[e]=!1}):ug.x||ug.y?null:(ug.x=ug.y=!0,()=>{ug.x=ug.y=!1})}function pg(e,t){let n=ag(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function mg(e){return!(e.pointerType===`touch`||dg())}function hg(e,t,n={}){let[r,i,a]=pg(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(!mg(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 gg=(e,t)=>t?e===t?!0:gg(e,t.parentElement):!1,_g=e=>e.pointerType===`mouse`?typeof e.button!=`number`||e.button<=0:e.isPrimary!==!1,vg=new Set([`BUTTON`,`INPUT`,`SELECT`,`TEXTAREA`,`A`]);function yg(e){return vg.has(e.tagName)||e.isContentEditable===!0}var bg=new Set([`INPUT`,`SELECT`,`TEXTAREA`]);function xg(e){return bg.has(e.tagName)||e.isContentEditable===!0}var Sg=new WeakSet;function Cg(e){return t=>{t.key===`Enter`&&e(t)}}function wg(e,t){e.dispatchEvent(new PointerEvent(`pointer`+t,{isPrimary:!0,bubbles:!0}))}var Tg=(e,t)=>{let n=e.currentTarget;if(!n)return;let r=Cg(()=>{if(Sg.has(n))return;wg(n,`down`);let e=Cg(()=>{wg(n,`up`)});n.addEventListener(`keyup`,e,t),n.addEventListener(`blur`,()=>wg(n,`cancel`),t)});n.addEventListener(`keydown`,r,t),n.addEventListener(`blur`,()=>n.removeEventListener(`keydown`,r),t)};function Eg(e){return _g(e)&&!dg()}var Dg=new WeakSet;function Og(e,t,n={}){let[r,i,a]=pg(e,n),o=e=>{let r=e.currentTarget;if(!Eg(e)||Dg.has(e))return;Sg.add(r),n.stopPropagation&&Dg.add(e);let a=t(r,e),o=(e,t)=>{window.removeEventListener(`pointerup`,s),window.removeEventListener(`pointercancel`,c),Sg.has(r)&&Sg.delete(r),Eg(e)&&typeof a==`function`&&a(e,{success:t})},s=e=>{o(e,r===window||r===document||n.useGlobalTarget||gg(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),sg(e)&&(e.addEventListener(`focus`,e=>Tg(e,i)),!yg(e)&&!e.hasAttribute(`tabindex`)&&(e.tabIndex=0))}),a}function kg(e){return yd(e)&&`ownerSVGElement`in e}var Ag=new WeakMap,jg,Mg=(e,t,n)=>(r,i)=>i&&i[0]?i[0][e+`Size`]:kg(r)&&`getBBox`in r?r.getBBox()[t]:r[n],Ng=Mg(`inline`,`width`,`offsetWidth`),Pg=Mg(`block`,`height`,`offsetHeight`);function Fg({target:e,borderBoxSize:t}){Ag.get(e)?.forEach(n=>{n(e,{get width(){return Ng(e,t)},get height(){return Pg(e,t)}})})}function Ig(e){e.forEach(Fg)}function Lg(){typeof ResizeObserver>`u`||(jg=new ResizeObserver(Ig))}function Rg(e,t){jg||Lg();let n=ag(e);return n.forEach(e=>{let n=Ag.get(e);n||(n=new Set,Ag.set(e,n)),n.add(t),jg?.observe(e)}),()=>{n.forEach(e=>{let n=Ag.get(e);n?.delete(t),n?.size||jg?.unobserve(e)})}}var zg=new Set,Bg;function Vg(){Bg=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};zg.forEach(t=>t(e))},window.addEventListener(`resize`,Bg)}function Hg(e){return zg.add(e),Bg||Vg(),()=>{zg.delete(e),!zg.size&&typeof Bg==`function`&&(window.removeEventListener(`resize`,Bg),Bg=void 0)}}function Ug(e,t){return typeof e==`function`?Hg(e):Rg(e,t)}function Wg(e){return kg(e)&&e.tagName===`svg`}var Gg=[...Hh,Rf,ep],Kg=e=>Gg.find(Vh(e)),qg=()=>({translate:0,scale:1,origin:0,originPoint:0}),Jg=()=>({x:qg(),y:qg()}),Yg=()=>({min:0,max:0}),Xg=()=>({x:Yg(),y:Yg()}),Zg=new WeakMap;function Qg(e){return typeof e==`object`&&!!e&&typeof e.start==`function`}function $g(e){return typeof e==`string`||Array.isArray(e)}var e_=[`animate`,`whileInView`,`whileFocus`,`whileHover`,`whileTap`,`whileDrag`,`exit`],t_=[`initial`,...e_];function n_(e){return Qg(e.animate)||t_.some(t=>$g(e[t]))}function r_(e){return!!(n_(e)||e.variants)}function i_(e,t,n){for(let r in t){let i=t[r],a=n[r];if(kh(i))e.addValue(r,i);else if(kh(a))e.addValue(r,wh(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,wh(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},o_={current:!1},s_=typeof window<`u`;function c_(){if(o_.current=!0,s_)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 l_=[`AnimationStart`,`AnimationComplete`,`Update`,`BeforeLayoutMeasure`,`LayoutMeasure`,`LayoutAnimationStart`,`LayoutAnimationComplete`],u_={};function d_(e){u_=e}function f_(){return u_}var p_=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=Tm,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=lf.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,nf.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=n_(t),this.isVariantNode=r_(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&&kh(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,Zg.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:(o_.current||c_(),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(),rf(this.notifyUpdate),rf(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&&Jm.has(e)&&this.current instanceof HTMLElement){let{factory:n,keyframes:r,times:i,ease:a,duration:o}=t.accelerate,s=new Rm({element:this.current,name:e,keyframes:r,times:i,ease:a,duration:Ed(o)}),c=n(s);this.valueSubscriptions.set(e,()=>{c(),s.cancel()});return}let n=fm.has(e);n&&this.onBindTransform&&this.onBindTransform();let r=t.on(`change`,t=>{this.latestValues[e]=t,this.props.onUpdate&&nf.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 u_){let t=u_[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):Xg()}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<l_.length;t++){let n=l_[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=i_(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=wh(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`&&(vd(n)||bd(n))?n=parseFloat(n):!Kg(n)&&ep.test(t)&&(n=tg(e,t)),this.setBaseTarget(e,kh(n)?n.get():n)),kh(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=_h(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&&!kh(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 Td),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){cg.render(this.render)}},m_=class extends p_{constructor(){super(...arguments),this.KeyframeResolver=ig}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;kh(e)&&(this.childSubscription=e.on(`change`,e=>{this.current&&(this.current.textContent=`${e}`)}))}},h_=class{constructor(e){this.isMounted=!1,this.node=e}update(){}};function g_({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function __({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function v_(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 y_(e){return e===void 0||e===1}function b_({scale:e,scaleX:t,scaleY:n}){return!y_(e)||!y_(t)||!y_(n)}function x_(e){return b_(e)||S_(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function S_(e){return C_(e.x)||C_(e.y)}function C_(e){return e&&e!==`0%`}function w_(e,t,n){return n+t*(e-n)}function T_(e,t,n,r,i){return i!==void 0&&(e=w_(e,i,r)),w_(e,n,r)+t}function E_(e,t=0,n=1,r,i){e.min=T_(e.min,t,n,r,i),e.max=T_(e.max,t,n,r,i)}function D_(e,{x:t,y:n}){E_(e.x,t.translate,t.scale,t.originPoint),E_(e.y,n.translate,n.scale,n.originPoint)}var O_=.999999999999,k_=1.0000000000001;function A_(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&&(j_(e.x,-a.scroll.offset.x),j_(e.y,-a.scroll.offset.y)),o&&(t.x*=o.x.scale,t.y*=o.y.scale,D_(e,o)),r&&x_(a.latestValues)&&P_(e,a.latestValues,a.layout?.layoutBox))}t.x<k_&&t.x>O_&&(t.x=1),t.y<k_&&t.y>O_&&(t.y=1)}function j_(e,t){e.min+=t,e.max+=t}function M_(e,t,n,r,i=.5){E_(e,t,n,ip(e.min,e.max,i),r)}function N_(e,t){return typeof e==`string`?parseFloat(e)/100*(t.max-t.min):e}function P_(e,t,n){let r=n??e;M_(e.x,N_(t.x,r.x),t.scaleX,t.scale,t.originX),M_(e.y,N_(t.y,r.y),t.scaleY,t.scale,t.originY)}function F_(e,t){return g_(v_(e.getBoundingClientRect(),t))}function I_(e,t,n){let r=F_(e,n),{scroll:i}=t;return i&&(j_(r.x,i.offset.x),j_(r.y,i.offset.y)),r}var L_={x:`translateX`,y:`translateY`,z:`translateZ`,transformPerspective:`perspective`},R_=dm.length;function z_(e,t,n){let r=``,i=!0;for(let a=0;a<R_;a++){let o=dm[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=og(s,Zh[o]);if(!c){i=!1;let t=L_[o]||o;r+=`${t}(${e}) `}n&&(t[o]=e)}}return r=r.trim(),n?r=n(t,i?``:r):i&&(r=`none`),r}function B_(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(fm.has(e)){o=!0;continue}else if(ff(e)){i[e]=n;continue}else{let t=og(n,Zh[e]);e.startsWith(`origin`)?(s=!0,a[e]=t):r[e]=t}}if(t.transform||(o||n?r.transform=z_(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 V_(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 H_(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var U_={correct:(e,t)=>{if(!t.target)return e;if(typeof e==`string`)if(J.test(e))e=parseFloat(e);else return e;return`${H_(e,t.target.x)}% ${H_(e,t.target.y)}%`}},W_={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=ep.parse(e);if(i.length>5)return r;let a=ep.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=ip(s,c,.5);return typeof i[2+o]==`number`&&(i[2+o]/=l),typeof i[3+o]==`number`&&(i[3+o]/=l),a(i)}},G_={borderRadius:{...U_,applyTo:[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomLeftRadius`,`borderBottomRightRadius`]},borderTopLeftRadius:U_,borderTopRightRadius:U_,borderBottomLeftRadius:U_,borderBottomRightRadius:U_,boxShadow:W_};function K_(e,{layout:t,layoutId:n}){return fm.has(e)||e.startsWith(`origin`)||(t||n!==void 0)&&(!!G_[e]||e===`opacity`)}function q_(e,t,n){let r=e.style,i=t?.style,a={};if(!r)return a;for(let t in r)(kh(r[t])||i&&kh(i[t])||K_(t,e)||n?.getValue(t)?.liveStyle!==void 0)&&(a[t]=r[t]);return a}function J_(e){return window.getComputedStyle(e)}var Y_=class extends m_{constructor(){super(...arguments),this.type=`html`,this.renderInstance=V_}readValueFromInstance(e,t){if(fm.has(t))return this.projection?.isProjecting?sm(t):lm(e,t);{let n=J_(e),r=(ff(t)?n.getPropertyValue(t):n[t])||0;return typeof r==`string`?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return F_(e,t)}build(e,t,n){B_(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return q_(e,t,n)}},X_={offset:`stroke-dashoffset`,array:`stroke-dasharray`},Z_={offset:`strokeDashoffset`,array:`strokeDasharray`};function Q_(e,t,n=1,r=0,i=!0){e.pathLength=1;let a=i?X_:Z_;e[a.offset]=`${-r}`,e[a.array]=`${t} ${n}`}var $_=[`offsetDistance`,`offsetPath`,`offsetRotate`,`offsetAnchor`];function ev(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},c,l,u){if(B_(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 $_)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&&Q_(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`]),nv=e=>typeof e==`string`&&e.toLowerCase()===`svg`;function rv(e,t,n,r){V_(e,t,void 0,r);for(let n in t.attrs)e.setAttribute(tv.has(n)?n:Mh(n),t.attrs[n])}function iv(e,t,n){let r=q_(e,t,n);for(let n in e)if(kh(e[n])||kh(t[n])){let t=dm.indexOf(n)===-1?n:`attr`+n.charAt(0).toUpperCase()+n.substring(1);r[t]=e[n]}return r}var av=class extends m_{constructor(){super(...arguments),this.type=`svg`,this.isSVGTag=!1,this.measureInstanceViewportBox=Xg}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(fm.has(t)){let e=$h(t);return e&&e.default||0}return t=tv.has(t)?t:Mh(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return iv(e,t,n)}build(e,t,n){ev(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){rv(e,t,n,r)}mount(e){this.isSVGTag=nv(e.tagName),super.mount(e)}},ov=t_.length;function sv(e){if(!e)return;if(!e.isControllingVariants){let t=e.parent&&sv(e.parent)||{};return e.props.initial!==void 0&&(t.initial=e.props.initial),t}let t={};for(let n=0;n<ov;n++){let r=t_[n],i=e.props[r];($g(i)||i===!1)&&(t[r]=i)}return t}function cv(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 lv=[...e_].reverse(),uv=e_.length;function dv(e){return t=>Promise.all(t.map(({animation:t,options:n})=>zh(e,t,n)))}function fv(e){let t=dv(e),n=hv(),r=!0,i=!1,a=t=>(n,r)=>{let i=vh(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=sv(e.parent)||{},l=[],u=new Set,d={},f=1/0;for(let t=0;t<uv;t++){let p=lv[t],m=n[p],h=s[p]===void 0?c[p]:s[p],g=$g(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||Qg(h)||typeof h==`boolean`)continue;if(p===`exit`&&m.isActive&&_!==!0){m.prevResolvedValues&&(d={...d,...m.prevResolvedValues});continue}let y=pv(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=Th(t)&&Th(n)?!cv(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=vh(r,t);if(r.enteringChildren&&i){let{delayChildren:t}=i.transition||{};n.delay=nh(r.enteringChildren,e,t)}}return{animation:t,options:n}}))}if(u.size){let t={};if(typeof s.initial!=`boolean`){let n=vh(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=hv(),i=!0}}}function pv(e,t){return typeof t==`string`?t!==e:Array.isArray(t)?!cv(t,e):!1}function mv(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function hv(){return{animate:mv(!0),whileInView:mv(),whileHover:mv(),whileTap:mv(),whileDrag:mv(),whileFocus:mv(),exit:mv()}}function gv(e,t){e.min=t.min,e.max=t.max}function _v(e,t){gv(e.x,t.x),gv(e.y,t.y)}function vv(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}var yv=1e-4,bv=1-yv,xv=1+yv,Sv=.01,Cv=0-Sv,wv=0+Sv;function Tv(e){return e.max-e.min}function Ev(e,t,n){return Math.abs(e-t)<=n}function Dv(e,t,n,r=.5){e.origin=r,e.originPoint=ip(t.min,t.max,e.origin),e.scale=Tv(n)/Tv(t),e.translate=ip(n.min,n.max,e.origin)-e.originPoint,(e.scale>=bv&&e.scale<=xv||isNaN(e.scale))&&(e.scale=1),(e.translate>=Cv&&e.translate<=wv||isNaN(e.translate))&&(e.translate=0)}function Ov(e,t,n,r){Dv(e.x,t.x,n.x,r?r.originX:void 0),Dv(e.y,t.y,n.y,r?r.originY:void 0)}function kv(e,t,n,r=0){e.min=(r?ip(n.min,n.max,r):n.min)+t.min,e.max=e.min+Tv(t)}function Av(e,t,n,r){kv(e.x,t.x,n.x,r?.x),kv(e.y,t.y,n.y,r?.y)}function jv(e,t,n,r=0){let i=r?ip(n.min,n.max,r):n.min;e.min=t.min-i,e.max=e.min+Tv(t)}function Mv(e,t,n,r){jv(e.x,t.x,n.x,r?.x),jv(e.y,t.y,n.y,r?.y)}function Nv(e,t,n,r,i){return e-=t,e=w_(e,1/n,r),i!==void 0&&(e=w_(e,1/i,r)),e}function Pv(e,t=0,n=1,r=.5,i,a=e,o=e){if(Nf.test(t)&&(t=parseFloat(t),t=ip(o.min,o.max,t/100)-o.min),typeof t!=`number`)return;let s=ip(a.min,a.max,r);e===a&&(s-=t),e.min=Nv(e.min,t,n,s,i),e.max=Nv(e.max,t,n,s,i)}function Fv(e,t,[n,r,i],a,o){Pv(e,t[n],t[r],t[i],t.scale,a,o)}var Iv=[`x`,`scaleX`,`originX`],Lv=[`y`,`scaleY`,`originY`];function Rv(e,t,n,r){Fv(e.x,t,Iv,n?n.x:void 0,r?r.x:void 0),Fv(e.y,t,Lv,n?n.y:void 0,r?r.y:void 0)}function zv(e){return e.translate===0&&e.scale===1}function Bv(e){return zv(e.x)&&zv(e.y)}function Vv(e,t){return e.min===t.min&&e.max===t.max}function Hv(e,t){return Vv(e.x,t.x)&&Vv(e.y,t.y)}function Uv(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Wv(e,t){return Uv(e.x,t.x)&&Uv(e.y,t.y)}function Gv(e){return Tv(e.x)/Tv(e.y)}function Kv(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function qv(e){return[e(`x`),e(`y`)]}function Jv(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 Yv=[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomLeftRadius`,`borderBottomRightRadius`],Xv=Yv.length,Zv=e=>typeof e==`string`?parseFloat(e):e,Qv=e=>typeof e==`number`||J.test(e);function $v(e,t,n,r,i,a){i?(e.opacity=ip(0,n.opacity??1,ty(r)),e.opacityExit=ip(t.opacity??1,0,ny(r))):a&&(e.opacity=ip(t.opacity??1,n.opacity??1,r));for(let i=0;i<Xv;i++){let a=Yv[i],o=ey(t,a),s=ey(n,a);o===void 0&&s===void 0||(o||=0,s||=0,o===0||s===0||Qv(o)===Qv(s)?(e[a]=Math.max(ip(Zv(o),Zv(s),r),0),(Nf.test(s)||Nf.test(o))&&(e[a]+=`%`)):e[a]=s)}(t.rotate||n.rotate)&&(e.rotate=ip(t.rotate||0,n.rotate||0,r))}function ey(e,t){return e[t]===void 0?e.borderRadius:e[t]}var ty=ry(0,.5,Vd),ny=ry(.5,.95,Sd);function ry(e,t,n){return r=>r<e?0:r>t?1:n(q(e,t,r))}function iy(e,t,n){let r=kh(e)?e:wh(e);return r.start(hh(``,r,t,n)),r.animation}function ay(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}var oy=(e,t)=>e.depth-t.depth,sy=class{constructor(){this.children=[],this.isDirty=!1}add(e){md(this.children,e),this.isDirty=!0}remove(e){hd(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(oy),this.isDirty=!1,this.children.forEach(e)}};function cy(e,t){let n=lf.now(),r=({timestamp:i})=>{let a=i-n;a>=t&&(rf(r),e(a-t))};return nf.setup(r,!0),()=>rf(r)}function ly(e){return kh(e)?e.get():e}var uy=class{constructor(){this.members=[]}add(e){md(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&&(hd(this.members,n),n.unmount())}e.scheduleRender()}remove(e){if(hd(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)}},dy={hasAnimatedSinceResize:!0,hasEverUpdated:!1},fy={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},py=[``,`X`,`Y`,`Z`],my=1e3,hy=0;function gy(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function _y(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let n=Ph(t);if(window.MotionHasOptimisedAnimation(n,`transform`)){let{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,`transform`,nf,!(t||r))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&_y(r)}function vy({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=t?.()){this.id=hy++,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,Qd.value&&(fy.nodes=fy.calculatedTargetDeltas=fy.calculatedProjections=0),this.nodes.forEach(xy),this.nodes.forEach(Ay),this.nodes.forEach(jy),this.nodes.forEach(Sy),Qd.addProjectionMetrics&&Qd.addProjectionMetrics(fy)},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 sy)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new Td),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=kg(t)&&!Wg(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;nf.read(()=>{r=window.innerWidth}),e(t,()=>{let e=window.innerWidth;e!==r&&(r=e,this.root.updateBlockedByResize=!0,n&&n(),n=cy(i,250),dy.hasAnimatedSinceResize&&(dy.hasAnimatedSinceResize=!1,this.nodes.forEach(ky)))})}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()||Ry,{onLayoutAnimationStart:o,onLayoutAnimationComplete:s}=i.getProps(),c=!this.targetLayout||!Wv(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={...fh(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||ky(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(),rf(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(My),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&&_y(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(Ty),this.nodes.forEach(wy);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Ey);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Dy),this.nodes.forEach(Oy),this.nodes.forEach(yy),this.nodes.forEach(by)):this.nodes.forEach(Ey),this.clearAllSnapshots();let e=lf.now();af.delta=gd(0,1e3/60,e-af.timestamp),af.timestamp=e,af.isProcessing=!0,of.update.process(af),of.preRender.process(af),of.render.process(af),af.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,cg.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Cy),this.sharedNodes.forEach(Ny)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,nf.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){nf.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Tv(this.snapshot.measuredBox.x)&&!Tv(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||=Xg(),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&&!Bv(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,``):void 0,a=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||x_(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)),Hy(n),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return Xg();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(Wy))){let{scroll:e}=this.root;e&&(j_(t.x,e.offset.x),j_(t.y,e.offset.y))}return t}removeElementScroll(e){let t=Xg();if(_v(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&&_v(t,e),j_(t.x,i.offset.x),j_(t.y,i.offset.y))}return t}applyTransform(e,t=!1,n){let r=n||Xg();_v(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&&(j_(r.x,-n.scroll.offset.x),j_(r.y,-n.scroll.offset.y)),x_(n.latestValues)&&P_(r,n.latestValues,n.layout?.layoutBox)}return x_(this.latestValues)&&P_(r,this.latestValues,this.layout?.layoutBox),r}removeTransform(e){let t=Xg();_v(t,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!x_(n.latestValues))continue;let r;n.instance&&(b_(n.latestValues)&&n.updateSnapshot(),r=Xg(),_v(r,n.measurePageBox())),Rv(t,n.latestValues,n.snapshot?.layoutBox,r)}return x_(this.latestValues)&&Rv(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!==af.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=af.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=Xg(),this.targetWithTransforms=Xg()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Av(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):_v(this.target,this.layout.layoutBox),D_(this.target,this.targetDelta)):_v(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),Qd.value&&fy.calculatedTargetDeltas++)}getClosestProjectingParent(){if(!(!this.parent||b_(this.parent.latestValues)||S_(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=Xg(),this.relativeTargetOrigin=Xg(),Mv(this.relativeTargetOrigin,t,n,this.options.layoutAnchor||void 0),_v(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===af.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;_v(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,o=this.treeScale.y;A_(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=Xg());let{target:s}=e;if(!s){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(vv(this.prevProjectionDelta.x,this.projectionDelta.x),vv(this.prevProjectionDelta.y,this.projectionDelta.y)),Ov(this.projectionDelta,this.layoutCorrected,s,this.latestValues),(this.treeScale.x!==a||this.treeScale.y!==o||!Kv(this.projectionDelta.x,this.prevProjectionDelta.x)||!Kv(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners(`projectionUpdate`,s)),Qd.value&&fy.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=Jg(),this.projectionDelta=Jg(),this.projectionDeltaWithTransform=Jg()}setAnimationOrigin(e,t=!1){let n=this.snapshot,r=n?n.latestValues:{},i={...this.latestValues},a=Jg();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let o=Xg(),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(Ly));this.animationProgress=0;let d;this.mixTargetDelta=t=>{let n=t/1e3;Py(a.x,e.x,n),Py(a.y,e.y,n),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Mv(o,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),Iy(this.relativeTarget,this.relativeTargetOrigin,o,n),d&&Hv(this.relativeTarget,d)&&(this.isProjectionDirty=!1),d||=Xg(),_v(d,this.relativeTarget)),s&&(this.animationValues=i,$v(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&&=(rf(this.pendingAnimation),void 0),this.pendingAnimation=nf.update(()=>{dy.hasAnimatedSinceResize=!0,uf.layout++,this.motionValue||=wh(0),this.motionValue.jump(0,!1),this.currentAnimation=iy(this.motionValue,[0,1e3],{...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onStop:()=>{uf.layout--},onComplete:()=>{uf.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(my),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&&Uy(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||Xg();let t=Tv(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=Tv(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}_v(t,n),P_(t,i),Ov(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new uy),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&&gy(`z`,e,r,this.animationValues);for(let t=0;t<py.length;t++)gy(`rotate${py[t]}`,e,r,this.animationValues),gy(`skew${py[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=ly(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=ly(t?.pointerEvents)||``),this.hasProjected&&!x_(this.latestValues)&&(e.transform=n?n({},``):`none`,this.hasProjected=!1);return}e.visibility=``;let i=r.animationValues||r.latestValues;this.applyTransformsToTarget();let a=Jv(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 G_){if(i[t]===void 0)continue;let{correct:n,applyTo:o,isCSSVariable:s}=G_[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?ly(t?.pointerEvents)||``:`none`)}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(wy),this.root.sharedNodes.clear()}}}function yy(e){e.updateLayout()}function by(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`)qv(e=>{let r=a?t.measuredBox[e]:t.layoutBox[e],i=Tv(r);r.min=n[e].min,r.max=r.min+i});else if(i===`x`||i===`y`){let e=i===`x`?`y`:`x`;gv(a?t.measuredBox[e]:t.layoutBox[e],n[e])}else Uy(i,t.layoutBox,n)&&qv(r=>{let i=a?t.measuredBox[r]:t.layoutBox[r],o=Tv(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=Jg();Ov(o,n,t.layoutBox);let s=Jg();a?Ov(s,e.applyTransform(r,!0),t.measuredBox):Ov(s,n,t.layoutBox);let c=!Bv(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=Xg();Mv(s,t.layoutBox,i.layoutBox,o);let c=Xg();Mv(c,n,a.layoutBox,o),Wv(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 xy(e){Qd.value&&fy.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 Sy(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Cy(e){e.clearSnapshot()}function wy(e){e.clearMeasurements()}function Ty(e){e.isLayoutDirty=!0,e.updateLayout()}function Ey(e){e.isLayoutDirty=!1}function Dy(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function Oy(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify(`BeforeLayoutMeasure`),e.resetTransform()}function ky(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Ay(e){e.resolveTargetDelta()}function jy(e){e.calcProjection()}function My(e){e.resetSkewAndRotation()}function Ny(e){e.removeLeadSnapshot()}function Py(e,t,n){e.translate=ip(t.translate,0,n),e.scale=ip(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Fy(e,t,n,r){e.min=ip(t.min,n.min,r),e.max=ip(t.max,n.max,r)}function Iy(e,t,n,r){Fy(e.x,t.x,n.x,r),Fy(e.y,t.y,n.y,r)}function Ly(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var Ry={duration:.45,ease:[.4,0,.1,1]},zy=e=>typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),By=zy(`applewebkit/`)&&!zy(`chrome/`)?Math.round:Sd;function Vy(e){e.min=By(e.min),e.max=By(e.max)}function Hy(e){Vy(e.x),Vy(e.y)}function Uy(e,t,n){return e===`position`||e===`preserve-aspect`&&!Ev(Gv(t),Gv(n),.2)}function Wy(e){return e!==e.root&&e.scroll?.wasRoot}var Gy=vy({attachResizeListener:(e,t)=>ay(e,`resize`,t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),Ky={current:void 0},qy=vy({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Ky.current){let e=new Gy({});e.mount(window),e.setOptions({layoutScroll:!0}),Ky.current=e}return Ky.current},resetTransform:(e,t)=>{e.style.transform=t===void 0?`none`:t},checkIsScrollRoot:e=>window.getComputedStyle(e).position===`fixed`}),Jy=(0,I.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:`never`});function Yy(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function Xy(...e){return t=>{let n=!1,r=e.map(e=>{let r=Yy(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():Yy(e[t],null)}}}}function Zy(...e){return I.useCallback(Xy(...e),e)}var Qy=class extends I.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(sg(t)&&e.isPresent&&!this.props.isPresent&&this.props.pop!==!1){let e=t.offsetParent,n=sg(e)&&e.offsetWidth||0,r=sg(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 $y({children:e,isPresent:t,anchorX:n,anchorY:r,root:i,pop:a}){let o=(0,I.useId)(),s=(0,I.useRef)(null),c=(0,I.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:l}=(0,I.useContext)(Jy),u=Zy(s,e.props?.ref??e?.ref);return(0,I.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;
@@ -4,7 +4,7 @@
4
4
  <meta charset="UTF-8">
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
6
  <title>Claude Forge - 管理后台</title>
7
- <script type="module" crossorigin src="/assets/index-e8hX9FVq.js"></script>
7
+ <script type="module" crossorigin src="/assets/index-ClHRDzLi.js"></script>
8
8
  <link rel="stylesheet" crossorigin href="/assets/index-BFIWA0KC.css">
9
9
  </head>
10
10
  <body>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@winspan/claude-forge",
3
- "version": "1.17.1",
3
+ "version": "1.17.2",
4
4
  "description": "SDLC intelligent orchestration engine for Claude Code",
5
5
  "main": "dist/cli/index.js",
6
6
  "type": "module",