scrum-skills 0.2.2 → 0.2.3
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 +37 -5
- package/assets/board/200.html +1 -1
- package/assets/board/404.html +1 -1
- package/assets/board/_nuxt/-_kK9OzO.js +1 -0
- package/assets/board/_nuxt/3G_ZLrk2.js +1 -0
- package/assets/board/_nuxt/4FVXNzN-.js +9 -0
- package/assets/board/_nuxt/51OWHj8c.js +2 -0
- package/assets/board/_nuxt/5qqsfNvn.js +1 -0
- package/assets/board/_nuxt/8QIcohze.js +1 -0
- package/assets/board/_nuxt/ADHYAojV.js +1 -0
- package/assets/board/_nuxt/B0YDpoC7.js +1 -0
- package/assets/board/_nuxt/B3oUyqcV.js +1 -0
- package/assets/board/_nuxt/B43-KCi6.js +1 -0
- package/assets/board/_nuxt/B5oiGeHN.js +1 -0
- package/assets/board/_nuxt/B5u1XkK4.js +3 -0
- package/assets/board/_nuxt/B7foC6AH.js +1 -0
- package/assets/board/_nuxt/BCXs9rBJ.js +1 -0
- package/assets/board/_nuxt/BGssl5Ao.js +1 -0
- package/assets/board/_nuxt/BJ0EVa07.js +1 -0
- package/assets/board/_nuxt/BJW3UkS7.js +1 -0
- package/assets/board/_nuxt/BJcBC4jN.js +1 -0
- package/assets/board/_nuxt/BKgQBiDB.js +1 -0
- package/assets/board/_nuxt/BQSM1Ln0.js +1 -0
- package/assets/board/_nuxt/BXQZAVYz.js +1 -0
- package/assets/board/_nuxt/B_SlFcWp.js +1 -0
- package/assets/board/_nuxt/BannxgAO.js +1 -0
- package/assets/board/_nuxt/Baq-Hrpf.js +1 -0
- package/assets/board/_nuxt/Bhg7noz0.js +1 -0
- package/assets/board/_nuxt/BpR5gMZX.js +95 -0
- package/assets/board/_nuxt/BuBpFHLu.js +2 -0
- package/assets/board/_nuxt/BuOKDFiJ.js +1 -0
- package/assets/board/_nuxt/BuVRe79A.js +6 -0
- package/assets/board/_nuxt/BvaAl29K.js +13 -0
- package/assets/board/_nuxt/C3ssq3NT.js +1 -0
- package/assets/board/_nuxt/C6wyeu66.js +1 -0
- package/assets/board/_nuxt/C9Eg7sGC.js +1 -0
- package/assets/board/_nuxt/C9MiPNdJ.js +1 -0
- package/assets/board/_nuxt/C9lP5soO.js +1 -0
- package/assets/board/_nuxt/CAJYxF-h.js +1 -0
- package/assets/board/_nuxt/CDL4GvLz.js +1 -0
- package/assets/board/_nuxt/CK9_veoz.js +1 -0
- package/assets/board/_nuxt/CL3OrPP7.js +1 -0
- package/assets/board/_nuxt/CPfeOlrH.js +1 -0
- package/assets/board/_nuxt/CQTvWh4i.js +1 -0
- package/assets/board/_nuxt/CTOFhZkc.js +1 -0
- package/assets/board/_nuxt/CZPwmwA5.js +1 -0
- package/assets/board/_nuxt/CZc2Mypg.js +1 -0
- package/assets/board/_nuxt/C_uy5_kh.js +1 -0
- package/assets/board/_nuxt/Ck3md8pL.js +1 -0
- package/assets/board/_nuxt/CkDrD28D.js +1 -0
- package/assets/board/_nuxt/CmvybFI5.js +1 -0
- package/assets/board/_nuxt/CoBNWjS2.js +1 -0
- package/assets/board/_nuxt/CoPhTDCT.js +1 -0
- package/assets/board/_nuxt/Cq4Q0czX.js +1 -0
- package/assets/board/_nuxt/CsyY7ot8.js +1 -0
- package/assets/board/_nuxt/Cu_-fa7D.js +1 -0
- package/assets/board/_nuxt/CviJuCa4.js +1 -0
- package/assets/board/_nuxt/Cw7Z2eHM.js +1 -0
- package/assets/board/_nuxt/D13eMNHe.js +1 -0
- package/assets/board/_nuxt/D1_aWe_t.js +1 -0
- package/assets/board/_nuxt/D8NAsEfE.js +1 -0
- package/assets/board/_nuxt/DA0S9GHd.js +1 -0
- package/assets/board/_nuxt/DEBhVwtl.js +3 -0
- package/assets/board/_nuxt/DHihWhf5.js +1 -0
- package/assets/board/_nuxt/DQRn5Z3H.js +1 -0
- package/assets/board/_nuxt/DSaWoFHS.js +1 -0
- package/assets/board/_nuxt/DVC07Kf9.js +1 -0
- package/assets/board/_nuxt/DWxQkuvT.js +1 -0
- package/assets/board/_nuxt/DZo3dYLJ.js +3 -0
- package/assets/board/_nuxt/Db4IStii.js +1 -0
- package/assets/board/_nuxt/DcWIG384.js +1 -0
- package/assets/board/_nuxt/DdjjthKs.js +1 -0
- package/assets/board/_nuxt/DhkiugsE.js +1 -0
- package/assets/board/_nuxt/DiYBussm.js +1 -0
- package/assets/board/_nuxt/DpXJ_tCU.js +1 -0
- package/assets/board/_nuxt/Dpzighda.js +1 -0
- package/assets/board/_nuxt/DsF2J4jZ.js +1 -0
- package/assets/board/_nuxt/DtVfI_h9.js +1 -0
- package/assets/board/_nuxt/DttMo5b5.js +1 -0
- package/assets/board/_nuxt/DwNOEVN_.js +1 -0
- package/assets/board/_nuxt/Dwd1XRDX.js +1 -0
- package/assets/board/_nuxt/FCuSfyjP.js +1 -0
- package/assets/board/_nuxt/GzmVZqnA.js +1 -0
- package/assets/board/_nuxt/HclZy1k7.js +1 -0
- package/assets/board/_nuxt/HvSJjbUd.js +1 -0
- package/assets/board/_nuxt/Oe3jsM_c.js +1 -0
- package/assets/board/_nuxt/ZuoAH0hh.js +1 -0
- package/assets/board/_nuxt/_id_.B2NDKSlX.css +1 -0
- package/assets/board/_nuxt/bXQUY80V.js +1 -0
- package/assets/board/_nuxt/builds/latest.json +1 -1
- package/assets/board/_nuxt/builds/meta/24603984-d514-4dff-badc-898a1fd5e770.json +1 -0
- package/assets/board/_nuxt/burndown.BCLMmigw.css +1 -0
- package/assets/board/_nuxt/entry.ChOvfapw.css +2 -0
- package/assets/board/_nuxt/epics.B4-eK1Py.css +1 -0
- package/assets/board/_nuxt/gantt.DATOqoZf.css +1 -0
- package/assets/board/_nuxt/jCMbKsJ3.js +1 -0
- package/assets/board/_nuxt/joIhBaO-.js +1 -0
- package/assets/board/_nuxt/milestones.CVvAMKg4.css +1 -0
- package/assets/board/_nuxt/oXSDGTSr.js +1 -0
- package/assets/board/_nuxt/pages.DSSttn9g.css +1 -0
- package/assets/board/_nuxt/u88eXCXy.js +1 -0
- package/assets/board/burndown/index.html +1 -1
- package/assets/board/epics/index.html +1 -1
- package/assets/board/gantt/index.html +1 -1
- package/assets/board/index.html +1 -1
- package/assets/board/milestones/index.html +1 -1
- package/package.json +1 -1
- package/tools/agile-tools.mjs +504 -0
- package/tools/ai.mjs +442 -0
- package/tools/projects.mjs +140 -0
- package/tools/serve.mjs +60 -17
- package/assets/board/_nuxt/4lorSwrA.js +0 -1
- package/assets/board/_nuxt/7WA2NiBu.js +0 -1
- package/assets/board/_nuxt/BMkghBSN.js +0 -6
- package/assets/board/_nuxt/BO7jzDkR.js +0 -1
- package/assets/board/_nuxt/BZ3zxHIj.js +0 -1
- package/assets/board/_nuxt/BhF-44v-.js +0 -13
- package/assets/board/_nuxt/Brv_Bdja.js +0 -3
- package/assets/board/_nuxt/C3UUYAQd.js +0 -1
- package/assets/board/_nuxt/CJAcsUQO.js +0 -3
- package/assets/board/_nuxt/CNsYxQaQ.js +0 -1
- package/assets/board/_nuxt/CRaaiMq0.js +0 -1
- package/assets/board/_nuxt/CW444i7s.js +0 -1
- package/assets/board/_nuxt/CfONUjDo.js +0 -1
- package/assets/board/_nuxt/DKNZ_ohS.js +0 -1
- package/assets/board/_nuxt/DuWpPgcw.js +0 -3
- package/assets/board/_nuxt/LjrS__tx.js +0 -1
- package/assets/board/_nuxt/_id_.DhbZaLbc.css +0 -1
- package/assets/board/_nuxt/builds/meta/460252c3-0ea6-40d0-8f13-d20a01a88ad5.json +0 -1
- package/assets/board/_nuxt/burndown.BENzf335.css +0 -1
- package/assets/board/_nuxt/entry.CRMqPpqu.css +0 -2
- package/assets/board/_nuxt/epics.BeC881O2.css +0 -1
- package/assets/board/_nuxt/gantt.B1Ztrpq6.css +0 -1
- package/assets/board/_nuxt/laFvd4Y3.js +0 -16
- package/assets/board/_nuxt/milestones.B2QTaR0Y.css +0 -1
- package/assets/board/_nuxt/pages.DuMz_V7L.css +0 -1
package/README.md
CHANGED
|
@@ -99,6 +99,38 @@ npx scrum-skills serve # → http://localhost:4173
|
|
|
99
99
|
| `/burndown` 燃尽图 | 实线=真实剩余,虚线=理想线,竖线标出**哪一天插了需求**(范围变更) |
|
|
100
100
|
| `/story/:id` 追溯链 | 验收标准 → 任务 → 每条 red/green/refactor 记录,含测试命令与产出文件 |
|
|
101
101
|
|
|
102
|
+
## 内置 AI 助手
|
|
103
|
+
|
|
104
|
+
看板右下角有个悬浮按钮,点开是右侧抽屉——不用离开看板就能让模型查/改当前项目的敏捷数据。
|
|
105
|
+
|
|
106
|
+
**第一次打开先填参数**(存在本机 `%APPDATA%/scrum-skills/ai.json`,权限 0600,不会写进项目目录):
|
|
107
|
+
|
|
108
|
+
| 字段 | 说明 |
|
|
109
|
+
|---|---|
|
|
110
|
+
| 服务商 | DeepSeek / OpenAI / Moonshot / 硅基流动 / 本地 Ollama / 自定义,选中后自动带出接口地址与模型名 |
|
|
111
|
+
| 接口地址 · API Key · 模型名 | OpenAI 兼容端点即可;Ollama 可以留空 Key |
|
|
112
|
+
| 系统提示词 · 温度 | 系统提示词默认留空:内置说明只讲「能碰哪些数据 / 两个工具 / 四条回答纪律」,不写人设也不提厂商;温度默认 0.3(改数据这类活不需要发挥) |
|
|
113
|
+
| 工具调用轮数上限 | 默认 30:模型连着调工具时跑到上限会强制收口一轮 |
|
|
114
|
+
| 上下文上限 · 超长自动压缩 | 默认 256000 token;超了先把老对话压掉,系统提示词与当前提问永远保留 |
|
|
115
|
+
|
|
116
|
+
**Key 不出本机**:浏览器只调本机 `/api/ai/*`,模型请求由 `tools/serve.mjs` 代为发出,读配置只回 `hasKey`。
|
|
117
|
+
|
|
118
|
+
**回答长什么样**(照官方 chat 模板的版式):助手正文按 markdown 渲染(标题、列表、表格、行内代码都能显示),工具调用折成一行「更新敏捷数据 · 关键词」可展开看参数与结果,模型的思考过程收成「思考了 N 秒」可折叠块,待审变更是一张能点批准/驳回的卡片。markdown 走 `@comark/nuxt`(AST → Vue 组件),不用 `v-html` 拼 HTML。
|
|
119
|
+
|
|
120
|
+
**它手上只有两件工具**:
|
|
121
|
+
|
|
122
|
+
- `search_agile`:在 `agile/backlog|sprints|journal` 里按记录检索(`S-011 阻塞` 这种多关键词要同时命中同一条),命中带出可直接写补丁的路径
|
|
123
|
+
- `update_agile`:按路径打补丁,例如 `stories.S-011.status = review`;写前跑 `tools/validate.mjs`,校验不过自动回滚成改前内容
|
|
124
|
+
|
|
125
|
+
**对话框左下角是审核策略开关**:
|
|
126
|
+
|
|
127
|
+
- **手动审核**(默认):改文件前先出「待审变更」卡,逐条列出路径与改前改后值,点批准才写入,驳回则文件不动
|
|
128
|
+
- **自动审核**:直接写入 + 立即校验,失败回滚
|
|
129
|
+
|
|
130
|
+
工具永远跟着「看板当前打开的项目」走,换项目不会串。
|
|
131
|
+
|
|
132
|
+
> 纯静态托管(只放 `assets/board`)时没有 `/api/ai/*`,此时对话不可用;`pnpm serve` 才带这套能力。
|
|
133
|
+
|
|
102
134
|
## 校验器管什么
|
|
103
135
|
|
|
104
136
|
`validate` 是这套体系的地基,**错误**会让它退出码非 0:
|
|
@@ -118,13 +150,13 @@ npx scrum-skills serve # → http://localhost:4173
|
|
|
118
150
|
## 本地开发
|
|
119
151
|
|
|
120
152
|
```bash
|
|
121
|
-
pnpm
|
|
122
|
-
AGILE_DIR=/别的项目 pnpm
|
|
153
|
+
pnpm dev # Nuxt dev(HMR),读仓库根的 agile/(/api/ai 走 server/middleware)
|
|
154
|
+
AGILE_DIR=/别的项目 pnpm dev # 看别的项目的数据
|
|
123
155
|
|
|
124
|
-
pnpm
|
|
156
|
+
pnpm build # 构建看板静态产物 → assets/board
|
|
125
157
|
pnpm validate # 只校验数据
|
|
126
|
-
pnpm test #
|
|
127
|
-
pnpm serve # 起看板(读目标目录的 agile
|
|
158
|
+
pnpm test # 回归测试(校验器 / 看板皮肤 / 项目目录 / AI 服务与面板,59 个用例)
|
|
159
|
+
pnpm serve # 起看板(读目标目录的 agile/,同时提供 /api/ai)
|
|
128
160
|
```
|
|
129
161
|
|
|
130
162
|
看板源码在 `apps/board/`(Nuxt 4 + Nuxt UI,纯静态产物,无服务端、无外部字体/图标请求)。`assets/board/` 是构建产物,**不进 git**,发布前由 `prepublishOnly` 自动重建。
|
package/assets/board/200.html
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html lang="zh-CN"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><title>敏捷看板</title><script type="importmap">{"imports":{"#entry":"/_nuxt/
|
|
1
|
+
<!DOCTYPE html><html lang="zh-CN"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><title>敏捷看板</title><script type="importmap">{"imports":{"#entry":"/_nuxt/BpR5gMZX.js"}}</script><link rel="stylesheet" href="/_nuxt/entry.ChOvfapw.css" crossorigin><link rel="modulepreload" as="script" crossorigin href="/_nuxt/BpR5gMZX.js"><link rel="modulepreload" as="script" crossorigin href="/_nuxt/DK3Fl9T5.js"><link rel="modulepreload" as="script" crossorigin href="/_nuxt/u88eXCXy.js"><link rel="modulepreload" as="script" crossorigin href="/_nuxt/DZo3dYLJ.js"><link rel="modulepreload" as="script" crossorigin href="/_nuxt/51OWHj8c.js"><link rel="modulepreload" as="script" crossorigin href="/_nuxt/CsyY7ot8.js"><link rel="modulepreload" as="script" crossorigin href="/_nuxt/Baq-Hrpf.js"><link rel="modulepreload" as="script" crossorigin href="/_nuxt/DSaWoFHS.js"><link rel="modulepreload" as="script" crossorigin href="/_nuxt/oXSDGTSr.js"><link rel="modulepreload" as="script" crossorigin href="/_nuxt/BuBpFHLu.js"><link rel="modulepreload" as="script" crossorigin href="/_nuxt/DsF2J4jZ.js"><link rel="modulepreload" as="script" crossorigin href="/_nuxt/BJW3UkS7.js"><link rel="modulepreload" as="script" crossorigin href="/_nuxt/BuVRe79A.js"><link rel="modulepreload" as="script" crossorigin href="/_nuxt/BXQZAVYz.js"><link rel="modulepreload" as="script" crossorigin href="/_nuxt/CZc2Mypg.js"><link rel="modulepreload" as="script" crossorigin href="/_nuxt/FCuSfyjP.js"><link rel="modulepreload" as="script" crossorigin href="/_nuxt/CK9_veoz.js"><link rel="modulepreload" as="script" crossorigin href="/_nuxt/D8NAsEfE.js"><link rel="modulepreload" as="script" crossorigin href="/_nuxt/B43-KCi6.js"><link rel="modulepreload" as="script" crossorigin href="/_nuxt/BuOKDFiJ.js"><link rel="modulepreload" as="script" crossorigin href="/_nuxt/CviJuCa4.js"><link rel="modulepreload" as="script" crossorigin href="/_nuxt/B_SlFcWp.js"><link rel="modulepreload" as="script" crossorigin href="/_nuxt/DEBhVwtl.js"><link rel="modulepreload" as="script" crossorigin href="/_nuxt/BQSM1Ln0.js"><link rel="modulepreload" as="script" crossorigin href="/_nuxt/DwNOEVN_.js"><link rel="modulepreload" as="script" crossorigin href="/_nuxt/DhkiugsE.js"><link rel="modulepreload" as="script" crossorigin href="/_nuxt/joIhBaO-.js"><script type="module" src="/_nuxt/BpR5gMZX.js" crossorigin></script><link rel="prefetch" as="script" crossorigin href="/_nuxt/BvaAl29K.js"><link rel="prefetch" as="script" crossorigin href="/_nuxt/DHihWhf5.js"><link rel="prefetch" as="style" crossorigin href="/_nuxt/error-404.BFmXOnCT.css"><link rel="prefetch" as="script" crossorigin href="/_nuxt/CoPhTDCT.js"><link rel="prefetch" as="style" crossorigin href="/_nuxt/error-500.BZ-DdjQ6.css"><link rel="prefetch" as="script" crossorigin href="/_nuxt/3G_ZLrk2.js"></head><body><div id="__nuxt" class="isolate"></div><div id="teleports"></div><script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/",buildId:"24603984-d514-4dff-badc-898a1fd5e770",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script><script type="application/json" data-nuxt-data="nuxt-app" data-ssr="false" id="__NUXT_DATA__">[{"prerenderedAt":1,"serverRendered":2},1792961158552,false]</script></body></html>
|
package/assets/board/404.html
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html lang="zh-CN"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><title>敏捷看板</title><script type="importmap">{"imports":{"#entry":"/_nuxt/
|
|
1
|
+
<!DOCTYPE html><html lang="zh-CN"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><title>敏捷看板</title><script type="importmap">{"imports":{"#entry":"/_nuxt/BpR5gMZX.js"}}</script><link rel="stylesheet" href="/_nuxt/entry.ChOvfapw.css" crossorigin><link rel="modulepreload" as="script" crossorigin href="/_nuxt/BpR5gMZX.js"><link rel="modulepreload" as="script" crossorigin href="/_nuxt/DK3Fl9T5.js"><link rel="modulepreload" as="script" crossorigin href="/_nuxt/u88eXCXy.js"><link rel="modulepreload" as="script" crossorigin href="/_nuxt/DZo3dYLJ.js"><link rel="modulepreload" as="script" crossorigin href="/_nuxt/51OWHj8c.js"><link rel="modulepreload" as="script" crossorigin href="/_nuxt/CsyY7ot8.js"><link rel="modulepreload" as="script" crossorigin href="/_nuxt/Baq-Hrpf.js"><link rel="modulepreload" as="script" crossorigin href="/_nuxt/DSaWoFHS.js"><link rel="modulepreload" as="script" crossorigin href="/_nuxt/oXSDGTSr.js"><link rel="modulepreload" as="script" crossorigin href="/_nuxt/BuBpFHLu.js"><link rel="modulepreload" as="script" crossorigin href="/_nuxt/DsF2J4jZ.js"><link rel="modulepreload" as="script" crossorigin href="/_nuxt/BJW3UkS7.js"><link rel="modulepreload" as="script" crossorigin href="/_nuxt/BuVRe79A.js"><link rel="modulepreload" as="script" crossorigin href="/_nuxt/BXQZAVYz.js"><link rel="modulepreload" as="script" crossorigin href="/_nuxt/CZc2Mypg.js"><link rel="modulepreload" as="script" crossorigin href="/_nuxt/FCuSfyjP.js"><link rel="modulepreload" as="script" crossorigin href="/_nuxt/CK9_veoz.js"><link rel="modulepreload" as="script" crossorigin href="/_nuxt/D8NAsEfE.js"><link rel="modulepreload" as="script" crossorigin href="/_nuxt/B43-KCi6.js"><link rel="modulepreload" as="script" crossorigin href="/_nuxt/BuOKDFiJ.js"><link rel="modulepreload" as="script" crossorigin href="/_nuxt/CviJuCa4.js"><link rel="modulepreload" as="script" crossorigin href="/_nuxt/B_SlFcWp.js"><link rel="modulepreload" as="script" crossorigin href="/_nuxt/DEBhVwtl.js"><link rel="modulepreload" as="script" crossorigin href="/_nuxt/BQSM1Ln0.js"><link rel="modulepreload" as="script" crossorigin href="/_nuxt/DwNOEVN_.js"><link rel="modulepreload" as="script" crossorigin href="/_nuxt/DhkiugsE.js"><link rel="modulepreload" as="script" crossorigin href="/_nuxt/joIhBaO-.js"><script type="module" src="/_nuxt/BpR5gMZX.js" crossorigin></script><link rel="prefetch" as="script" crossorigin href="/_nuxt/BvaAl29K.js"><link rel="prefetch" as="script" crossorigin href="/_nuxt/DHihWhf5.js"><link rel="prefetch" as="style" crossorigin href="/_nuxt/error-404.BFmXOnCT.css"><link rel="prefetch" as="script" crossorigin href="/_nuxt/CoPhTDCT.js"><link rel="prefetch" as="style" crossorigin href="/_nuxt/error-500.BZ-DdjQ6.css"><link rel="prefetch" as="script" crossorigin href="/_nuxt/3G_ZLrk2.js"></head><body><div id="__nuxt" class="isolate"></div><div id="teleports"></div><script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/",buildId:"24603984-d514-4dff-badc-898a1fd5e770",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script><script type="application/json" data-nuxt-data="nuxt-app" data-ssr="false" id="__NUXT_DATA__">[{"prerenderedAt":1,"serverRendered":2},1792961158553,false]</script></body></html>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{D as e,E as t,On as n,T as r,Zn as i,_ as a,b as o,bt as s,er as c,g as l,k as u,mt as d,o as f,qt as p,tr as m,y as h}from"./DZo3dYLJ.js";import{t as ee}from"./BJW3UkS7.js";import{t as te}from"./DwNOEVN_.js";import{a as g,i as _,r as ne}from"#entry";var re={class:`kpis`},ie={class:`kpi tint-lilac`},ae={class:`v`},oe={class:`kpi`},se={class:`v`},ce={class:`kpi`},le={class:`v`},ue={class:`kpi tint-mint`},de={class:`v`},fe={class:`kpi`},pe={class:`v mono`},me={class:`card gantt`},he={class:`ticks`},ge={class:`track`},_e={class:`label`},ve={class:`lane`},ye={class:`grid-lines`},v=[`title`],y={class:`track-hd`},b={class:`tag tag-neutral mono`},x={class:`dim`},S={class:`grow-row`},C={class:`label`},w={class:`tag tag-ghost`},T={class:`lane`},E={class:`grid-lines`},D={class:`label`},O=[`title`],k=[`title`],A={class:`pts mono dim`},j={class:`lane`},M={class:`grid-lines`},N={class:`track last`},P={class:`label`},be={class:`dim pts mono`},xe={class:`tag tag-neutral`},Se={class:`lane`},Ce={class:`grid-lines`},we={class:`extra`},Te={key:0,class:`card`},Ee={class:`card-hd`},De={class:`h2`},Oe={class:`tag tag-neutral`},ke={class:`card-bd`},F={class:`list`},Ae={class:`dep-txt`},je={class:`dep-txt dim`},Me={key:1,class:`card`},Ne={class:`card-hd`},Pe={class:`h2`},Fe={class:`tag tag-error`},Ie={class:`card-bd`},Le={class:`list`},Re={class:`dep-txt`},ze={class:`dim`},I=_(u({__name:`gantt`,setup(u){let{sprints:_,stories:I,milestones:L,storyById:R,actualRange:z,progress:B,addDays:Be,diffDays:V,md:H,now:U,MS_COLOR:Ve,MS_LABEL:He,KIND_LABEL:Ue,KIND_ICON:We,STATE_LABEL:Ge,STATE_DOT:W,dependencyPairs:G,blockedStories:K}=g(),Ke=l(()=>_.value.map(e=>({id:e.id,name:e.name,start:e.start,end:e.end,rows:(e.stories??[]).map(e=>R.value.get(e)).filter(Boolean).map(e=>({...e,actual:z(e),prog:B(e)}))}))),q=l(()=>I.value.filter(e=>e.schedule)),qe=l(()=>I.value.filter(e=>!e.schedule)),J=l(()=>[..._.value.map(e=>e.start),...q.value.map(e=>e.schedule.start),...L.value.map(e=>e.due)].sort()[0]??U),Je=l(()=>{let e=[..._.value.map(e=>e.end),...q.value.map(e=>e.schedule.end),...L.value.map(e=>e.due)].sort();return e[e.length-1]??U}),Y=l(()=>Math.max(1,V(J.value,Je.value)+1)),X=e=>V(J.value,e)/Y.value*100,Z=(e,t)=>({left:`${X(e)}%`,width:`${Math.max(1.1,(V(e,t)+1)/Y.value*100)}%`}),Q=l(()=>{let e=Y.value>90?14:Y.value>45?7:4,t=[];for(let n=0;n<=Y.value;n+=e)t.push({date:Be(J.value,n),x:n/Y.value*100});return t}),$=l(()=>X(U));return(l,u)=>{let g=ne,z=te,B=ee;return d(),o(`div`,null,[a(`div`,re,[a(`div`,ie,[e(g,{tone:`lilac`,size:`sm`}),u[1]||=a(`p`,{class:`k`},`迭代窗口`,-1),a(`p`,ae,[t(m(n(_).length),1),u[0]||=a(`small`,null,`个`,-1)])]),a(`div`,oe,[u[3]||=a(`p`,{class:`k`},`里程碑`,-1),a(`p`,se,[t(m(n(L).length),1),u[2]||=a(`small`,null,`个`,-1)])]),a(`div`,ce,[u[4]||=a(`p`,{class:`k`},`已排期故事`,-1),a(`p`,le,[t(m(n(q).length),1),a(`small`,null,`/ `+m(n(I).length),1)])]),a(`div`,ue,[e(g,{tone:`mint`,size:`sm`}),u[6]||=a(`p`,{class:`k`},`时间跨度`,-1),a(`p`,de,[t(m(n(Y)),1),u[5]||=a(`small`,null,`天`,-1)])]),a(`div`,fe,[u[7]||=a(`p`,{class:`k`},`今天`,-1),a(`p`,pe,m(n(U)),1)])]),a(`div`,me,[u[11]||=r(`<div class="gantt-hd" data-v-db59b624><h2 class="h2" data-v-db59b624>时间轴</h2><div class="legend" data-v-db59b624><span class="lg" data-v-db59b624><i class="sw plan" data-v-db59b624></i>计划</span><span class="lg" data-v-db59b624><i class="sw real" data-v-db59b624></i>实际</span><span class="lg" data-v-db59b624><i class="sw ms" data-v-db59b624></i>里程碑</span><span class="lg" data-v-db59b624><i class="sw mvp" data-v-db59b624></i>MVP 节点</span><span class="lg" data-v-db59b624><i class="sw today" data-v-db59b624></i>今天</span></div></div>`,1),a(`div`,he,[(d(!0),o(f,null,s(n(Q),e=>(d(),o(`div`,{key:e.date,class:`tick`,style:c({left:e.x+`%`})},[a(`span`,null,m(n(H)(e.date)),1)],4))),128)),a(`div`,{class:`today-line`,style:c({left:n($)+`%`})},null,4),a(`div`,{class:`today-flag`,style:c({left:n($)+`%`})},`今天 `+m(n(H)(n(U))),5)]),a(`section`,ge,[u[8]||=a(`header`,{class:`track-hd`},`里程碑`,-1),(d(!0),o(f,null,s(n(L),r=>(d(),o(`div`,{key:r.id,class:`grow-row`},[a(`div`,_e,[a(`span`,{class:i([`tag`,r.kind===`mvp`?`tag-mint`:`tag-primary`])},[e(z,{name:n(We)[r.kind],class:`size-3`},null,8,[`name`]),t(m(n(Ue)[r.kind]),1)],2),e(B,{to:`/milestones`,class:`lbl-txt`},{default:p(()=>[t(m(r.title),1)]),_:2},1024),a(`span`,{class:i([`tag`,`tag-${n(Ve)[r.status]}`])},m(n(He)[r.status]),3)]),a(`div`,ve,[a(`div`,ye,[(d(!0),o(f,null,s(n(Q),e=>(d(),o(`span`,{key:e.date,style:c({left:e.x+`%`})},null,4))),128))]),a(`span`,{class:i([`diamond`,{mvp:r.kind===`mvp`}]),style:c({left:X(r.due)+`%`}),title:`${r.id} · ${r.due} · ${r.criteria}`},null,14,v)])]))),128))]),(d(!0),o(f,null,s(n(Ke),r=>(d(),o(`section`,{key:r.id,class:`track`},[a(`header`,y,[a(`span`,b,m(r.id),1),t(` `+m(r.name)+` `,1),a(`span`,x,m(n(H)(r.start))+` ~ `+m(n(H)(r.end)),1)]),a(`div`,S,[a(`div`,C,[a(`span`,w,[e(z,{name:`i-lucide-calendar-range`,class:`size-3`}),u[9]||=t(`迭代窗口`,-1)])]),a(`div`,T,[a(`div`,E,[(d(!0),o(f,null,s(n(Q),e=>(d(),o(`span`,{key:e.date,style:c({left:e.x+`%`})},null,4))),128))]),a(`div`,{class:`band`,style:c(Z(r.start,r.end))},null,4)])]),(d(!0),o(f,null,s(r.rows,r=>(d(),o(`div`,{key:r.id,class:`grow-row`},[a(`div`,D,[a(`i`,{class:`sdot`,style:c({background:n(W)[r.status]})},null,4),e(B,{to:`/story/${r.id}`,class:`lbl-txt`},{default:p(()=>[t(m(r.title),1)]),_:2},1032,[`to`]),r.dependsOn?.length?(d(),o(`span`,{key:0,class:`tag tag-secondary`,title:`依赖:${r.dependsOn.join(`、`)}`},m(r.dependsOn.length),9,O)):h(``,!0),r.blocked?(d(),o(`span`,{key:1,class:`tag tag-error`,title:`阻塞:${r.blocked.reason}(自 ${r.blocked.since})`},`!`,8,k)):h(``,!0),a(`span`,A,m(r.points)+` 点 · `+m(r.prog.done)+`/`+m(r.prog.total),1)]),a(`div`,j,[a(`div`,M,[(d(!0),o(f,null,s(n(Q),e=>(d(),o(`span`,{key:e.date,style:c({left:e.x+`%`})},null,4))),128))]),r.schedule?(d(),o(`div`,{key:0,class:`plan`,style:c(Z(r.schedule.start,r.schedule.end))},null,4)):h(``,!0),r.actual?(d(),o(`div`,{key:1,class:`real`,style:c(Z(r.actual.start,r.actual.end))},null,4)):h(``,!0)])]))),128))]))),128)),a(`section`,N,[u[10]||=a(`header`,{class:`track-hd`},`未排期(backlog)`,-1),(d(!0),o(f,null,s(n(qe),r=>(d(),o(`div`,{key:r.id,class:`grow-row`},[a(`div`,P,[a(`i`,{class:`sdot`,style:c({background:n(W)[r.status]})},null,4),e(B,{to:`/story/${r.id}`,class:`lbl-txt`},{default:p(()=>[t(m(r.title),1)]),_:2},1032,[`to`]),a(`span`,be,m(r.points)+` 点`,1),a(`span`,xe,m(n(Ge)[r.status]),1)]),a(`div`,Se,[a(`div`,Ce,[(d(!0),o(f,null,s(n(Q),e=>(d(),o(`span`,{key:e.date,style:c({left:e.x+`%`})},null,4))),128))])])]))),128))])]),a(`div`,we,[n(G).length?(d(),o(`div`,Te,[a(`div`,Ee,[a(`h2`,De,[e(z,{name:`i-lucide-git-branch`,class:`size-3.5`}),u[12]||=t(`依赖链`,-1)]),a(`span`,Oe,m(n(G).length),1)]),a(`div`,ke,[a(`ul`,F,[(d(!0),o(f,null,s(n(G),r=>(d(),o(`li`,{key:`${r.from}-${r.to}`},[e(B,{to:`/story/${r.to}`,class:`mono link`},{default:p(()=>[t(m(r.to),1)]),_:2},1032,[`to`]),a(`span`,Ae,m(n(R).get(r.to)?.title),1),e(z,{name:`i-lucide-arrow-left`,class:`size-3 dim`}),u[13]||=a(`span`,{class:`dim`},`依赖`,-1),e(B,{to:`/story/${r.from}`,class:`mono link`},{default:p(()=>[t(m(r.from),1)]),_:2},1032,[`to`]),a(`span`,je,m(n(R).get(r.from)?.title),1)]))),128))])])])):h(``,!0),n(K).length?(d(),o(`div`,Me,[a(`div`,Ne,[a(`h2`,Pe,[e(z,{name:`i-lucide-octagon-alert`,class:`size-3.5`}),u[14]||=t(`阻塞中`,-1)]),a(`span`,Fe,m(n(K).length),1)]),a(`div`,Ie,[a(`ul`,Le,[(d(!0),o(f,null,s(n(K),n=>(d(),o(`li`,{key:n.id},[u[15]||=a(`span`,{class:`tag tag-error tag-dot`},`阻塞`,-1),e(B,{to:`/story/${n.id}`,class:`mono link`},{default:p(()=>[t(m(n.id),1)]),_:2},1032,[`to`]),a(`span`,Re,m(n.title),1),a(`span`,ze,`· `+m(n.blocked.reason)+`(自 `+m(n.blocked.since)+`)`,1)]))),128))])])])):h(``,!0)])])}}}),[[`__scopeId`,`data-v-db59b624`]]);export{I as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{_ as e,b as t,mt as n,tr as r}from"./DZo3dYLJ.js";import{n as i}from"./DsF2J4jZ.js";import{i as a}from"#entry";var o={class:`antialiased bg-white dark:bg-neutral-950 dark:text-white font-sans grid min-h-screen overflow-hidden place-content-center text-neutral-950 tracking-wide`},s={class:`max-w-520px text-center`},c=[`textContent`],l=[`textContent`],u=[`textContent`],d=a({__name:`error-500`,props:{appName:{type:String,default:`Nuxt`},status:{type:Number,default:500},statusText:{type:String,default:`Internal server error`},description:{type:String,default:`This page is temporarily unavailable.`},refresh:{type:String,default:`Refresh this page`}},setup(a){let d=a;return i({title:`${d.status} - ${d.statusText} | ${d.appName}`,script:[],style:[{innerHTML:`*,:after,:before{box-sizing:border-box;border-style:solid;border-width:0;border-color:var(--un-default-border-color,#e5e7eb);--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 #0000;--un-ring-shadow:0 0 #0000;--un-shadow-inset: ;--un-shadow:0 0 #0000;--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:#93c5fd80;--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }:after,:before{--un-content:""}html{-webkit-text-size-adjust:100%;tab-size:4;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5}body{line-height:inherit;margin:0}h1,h2{font-size:inherit;font-weight:inherit}h1,h2,p{margin:0}`}]}),(i,d)=>(n(),t(`div`,o,[e(`div`,s,[e(`h1`,{class:`font-medium leading-none mb-4 sm:text-[72px] tabular-nums text-[56px]`,textContent:r(a.status)},null,8,c),e(`h2`,{class:`font-semibold mb-2 sm:text-3xl text-2xl`,textContent:r(a.statusText)},null,8,l),e(`p`,{class:`mb-4 px-2 text-md text-neutral-500`,textContent:r(a.description)},null,8,u)])]))}},[[`__scopeId`,`data-v-7010dcff`]]);export{d as default};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import{s as e}from"./u88eXCXy.js";import{$n as t,B as n,D as r,Ht as i,J as a,L as o,Nt as s,On as c,Pt as l,Tn as u,Zn as d,at as f,b as p,ct as m,et as h,ft as g,g as _,gt as v,h as y,it as b,k as x,mt as S,nt as ee,o as te,ot as C,pt as ne,qt as w,r as T,v as E,vn as re,wt as ie,xt as ae,y as oe,z as se}from"./DZo3dYLJ.js";import{n as ce,t as le}from"./51OWHj8c.js";import{t as ue}from"./CsyY7ot8.js";import{r as de}from"./oXSDGTSr.js";import{h as fe,n as pe,p as me,t as he}from"./Baq-Hrpf.js";import{p as ge,s as _e,t as ve}from"./CZc2Mypg.js";import{t as ye}from"./CK9_veoz.js";import{t as be}from"./CviJuCa4.js";import{j as xe}from"#entry";var[Se,Ce]=fe(`DialogRoot`),we=x({inheritAttrs:!1,__name:`DialogRoot`,props:{open:{type:Boolean,required:!1,default:void 0},defaultOpen:{type:Boolean,required:!1,default:!1},modal:{type:Boolean,required:!1,default:!0},unmountOnHide:{type:Boolean,required:!1,default:!0}},emits:[`update:open`],setup(e,{emit:t}){let n=e,r=ge(n,`open`,t,{defaultValue:n.defaultOpen,passive:n.open===void 0}),i=re(),a=re(),{modal:o,unmountOnHide:s}=u(n);return Ce({open:r,modal:o,unmountOnHide:s,openModal:()=>{r.value=!0},onOpenChange:e=>{r.value=e},onOpenToggle:()=>{r.value=!r.value},contentId:``,titleId:``,descriptionId:``,triggerElement:i,contentElement:a}),(e,t)=>ae(e.$slots,`default`,{open:c(r),close:()=>r.value=!1})}}),Te=x({__name:`DialogPortal`,props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){let n=e;return(e,r)=>(S(),E(c(xe),t(se(n)),{default:w(()=>[ae(e.$slots,`default`)]),_:3},16))}}),Ee=x({__name:`DialogTrigger`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`button`}},setup(e){let t=e,n=Se(),{forwardRef:r,currentElement:i}=be();return n.contentId||=ue(void 0,`reka-dialog-content`),m(()=>{n.triggerElement.value=i.value}),(i,a)=>(S(),E(c(ye),h(t,{ref:c(r),type:e.as===`button`?`button`:void 0,"aria-haspopup":`dialog`,"aria-expanded":c(n).open.value||!1,"aria-controls":c(n).open.value?c(n).contentId:void 0,"data-state":c(n).open.value?`open`:`closed`,onClick:c(n).onOpenToggle}),{default:w(()=>[ae(i.$slots,`default`)]),_:3},16,[`type`,`aria-expanded`,`aria-controls`,`data-state`,`onClick`]))}});function De(e,t){let n=typeof e==`string`&&!t?`${e}Context`:t,r=Symbol(n);return[t=>{let n=a(r,t);if(n===void 0)throw Error(`Injection \`${r.toString()}\` not found. Component must be used within ${Array.isArray(e)?`one of the following components: ${e.join(`, `)}`:`\`${e}\``}`);return n},e=>(v(r,e),e),r]}function Oe(e,t){let{layoutGroup:n,presenceContext:r,config:i}=t,a=n.id&&e.layoutId?`${n.id}-${e.layoutId}`:e.layoutId||void 0;return{...e,layoutId:a,transition:e.transition??i.transition,layoutGroup:n,motionConfig:i,inViewOptions:e.inViewOptions??i.inViewOptions,presenceContext:r,initial:r.initial===!1?r.initial:e.initial===!0?void 0:e.initial}}function ke(e,t){e.indexOf(t)===-1&&e.push(t)}function Ae(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}var D=(e,t,n)=>n>t?t:n<e?e:n,O={},je=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),Me=e=>typeof e==`object`&&!!e,Ne=e=>/^0[^.\s]+$/u.test(e);function Pe(e){let t;return()=>(t===void 0&&(t=e()),t)}var k=e=>e,Fe=(...e)=>e.reduce((e,t)=>n=>t(e(n))),Ie=(e,t,n)=>{let r=t-e;return r?(n-e)/r:1},Le=class{constructor(){this.subscriptions=[]}add(e){return ke(this.subscriptions,e),()=>this.remove(e)}remove(e){Ae(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}},A=e=>e*1e3,j=e=>e/1e3,Re=(e,t)=>t?1e3/t*e:0,ze=(e,t,n)=>e*(3*(1-e)*((1-e)*t+e*n)+e*e);function Be(e,t,n,r){return e===t&&n===r?k:i=>{let a=0,o=1,s=i;for(let t=0;;t++){s>=a&&s<=o||(s=(a+o)/2);let r=ze(s,e,n)-i;if(r*r<1e-28||t===40)break;r>0?o=s:a=s,s-=r*1e-7/(ze(s+1e-7,e,n)-i-r)}return ze(s,t,r)}}var Ve=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,He=e=>t=>1-e(1-t),Ue=Be(.33,1.53,.69,.99),We=He(Ue),Ge=Ve(We),Ke=e=>e>=1?1:(e*=2)<1?.5*We(e):.5*(2-2**(-10*(e-1))),qe=e=>1-Math.sin(Math.acos(e)),Je=He(qe),Ye=Ve(qe),Xe=Be(.42,0,1,1),Ze=Be(0,0,.58,1),Qe=Be(.42,0,.58,1),$e=e=>Array.isArray(e)&&typeof e[0]!=`number`,et=e=>Array.isArray(e)&&typeof e[0]==`number`,tt={linear:k,easeIn:Xe,easeInOut:Qe,easeOut:Ze,circIn:qe,circInOut:Ye,circOut:Je,backIn:We,backInOut:Ge,backOut:Ue,anticipate:Ke},nt=e=>typeof e==`string`,rt=e=>{if(et(e)){e.length;let[t,n,r,i]=e;return Be(t,n,r,i)}return nt(e)?(tt[e],`${e}`,tt[e]):e},M={delta:0,timestamp:0,isProcessing:!1},it;function at(){it=void 0}var N={now:()=>(it===void 0&&N.set(M.isProcessing||O.useManualTiming?M.timestamp:performance.now()),it),set:e=>{it=e,queueMicrotask(at)}},ot=e=>Math.round(e*1e5)/1e5,st=e=>t=>typeof t==`string`&&t.startsWith(e),ct=st(`--`),lt=st(`var(--`),ut=e=>lt(e)?dt.test(e.split(`/*`)[0].trim()):!1,dt=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function ft(e){return typeof e==`string`&&e.split(`/*`)[0].includes(`var(--`)}var pt={test:e=>typeof e==`number`,parse:parseFloat,transform:e=>e},mt={...pt,transform:e=>D(0,1,e)},ht={...pt,default:1},gt=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function _t(e){return e==null}var vt=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,yt=(e,t)=>n=>!!(typeof n==`string`&&vt.test(n)&&n.startsWith(e)||t&&!_t(n)&&Object.prototype.hasOwnProperty.call(n,t)),bt=(e,t,n)=>r=>{if(typeof r!=`string`)return r;let[i,a,o,s]=r.match(gt);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s===void 0?1:parseFloat(s)}},xt=e=>D(0,255,e),St={...pt,transform:e=>Math.round(xt(e))},Ct={test:yt(`rgb`,`red`),parse:bt(`red`,`green`,`blue`),transform:({red:e,green:t,blue:n,alpha:r=1})=>`rgba(`+St.transform(e)+`, `+St.transform(t)+`, `+St.transform(n)+`, `+ot(mt.transform(r))+`)`};function wt(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 Tt={test:yt(`#`),parse:wt,transform:Ct.transform},Et=e=>({test:t=>typeof t==`string`&&t.endsWith(e)&&t.split(` `).length===1,parse:parseFloat,transform:t=>`${t}${e}`}),P=Et(`deg`),F=Et(`%`),I=Et(`px`),Dt=Et(`vh`),Ot=Et(`vw`),kt={...F,parse:e=>F.parse(e)/100,transform:e=>F.transform(e*100)},At={test:yt(`hsl`,`hue`),parse:bt(`hue`,`saturation`,`lightness`),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>`hsla(`+Math.round(e)+`, `+F.transform(ot(t))+`, `+F.transform(ot(n))+`, `+ot(mt.transform(r))+`)`},L={test:e=>Ct.test(e)||Tt.test(e)||At.test(e),parse:e=>Ct.test(e)?Ct.parse(e):At.test(e)?At.parse(e):Tt.parse(e),transform:e=>typeof e==`string`?e:e.hasOwnProperty(`red`)?Ct.transform(e):At.transform(e),getAnimatableNone:e=>{let t=L.parse(e);return t.alpha=0,L.transform(t)}},jt=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,Mt=new RegExp(gt.source),Nt=new RegExp(jt.source,`i`);function Pt(e){return isNaN(e)&&typeof e==`string`&&(Mt.test(e)||Nt.test(e))}var Ft=`number`,It=`color`,Lt=`var`,Rt=`var(`,zt="${}",Bt=/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+)(?![a-z]*\()/giu;function Vt(e){let t=e.toString();return Mt.test(t)||Nt.test(t)}function Ht(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],a=0;return{values:n,split:t.replace(Bt,e=>(L.test(e)?(r.color.push(a),i.push(It),n.push(L.parse(e))):e.startsWith(Rt)?(r.var.push(a),i.push(Lt),n.push(e)):(r.number.push(a),i.push(Ft),n.push(parseFloat(e))),++a,zt)).split(zt),indexes:r,types:i}}function Ut(e){return Ht(e).values}function Wt({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];i+=e===Ft?ot(r[a]):e===It?L.transform(r[a]):r[a]}return i}}function Gt(e){return Wt(Ht(e))}var Kt=e=>typeof e==`number`?0:L.test(e)?L.getAnimatableNone(e):e,qt=(e,t)=>typeof e==`number`?t?.trim().endsWith(`/`)?e:0:Kt(e);function Jt(e){let t=Ht(e);return Wt(t)(t.values.map((e,n)=>qt(e,t.split[n])))}var R={test:Pt,parse:Ut,createTransformer:Gt,getAnimatableNone:Jt};function Yt(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 Xt({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=Yt(s,r,e+1/3),a=Yt(s,r,e),o=Yt(s,r,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function Zt(e,t){return n=>n>0?t:e}var z=(e,t,n)=>e+(t-e)*n,Qt=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},$t=[Tt,Ct,At],en=e=>$t.find(t=>t.test(e));function tn(e){let t=en(e);if(!t)return`${e}`,!1;let n=t.parse(e);return t===At&&(n=Xt(n)),n}var nn=(e,t)=>{let n=tn(e),r=tn(t);if(!n||!r)return Zt(e,t);let i={...n};return e=>(i.red=Qt(n.red,r.red,e),i.green=Qt(n.green,r.green,e),i.blue=Qt(n.blue,r.blue,e),i.alpha=z(n.alpha,r.alpha,e),Ct.transform(i))},rn=new Set([`none`,`hidden`]);function an(e,t){return rn.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function on(e,t){return n=>z(e,t,n)}function sn(e){return typeof e==`number`?on:typeof e==`string`?ut(e)?Zt:L.test(e)?nn:dn:Array.isArray(e)?cn:typeof e==`object`?L.test(e)?nn:ln:Zt}function cn(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>sn(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function ln(e,t){let n={...e,...t},r={};for(let i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=sn(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}function un(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]],s=e.values[o]??0;n[i]=s,r[a]++}return n}var dn=(e,t)=>{let n=R.createTransformer(t),r=Ht(e),i=Ht(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?rn.has(e)&&!i.values.length||rn.has(t)&&!r.values.length?an(e,t):Fe(cn(un(r,i),i.values),n):(`${e}${t}`,Zt(e,t))},fn=/^(-?(?:\d+(?:\.\d*)?|\.\d+))([a-z%]*)$/iu;function pn(e,t){let n=fn.exec(e);if(!n)return;let r=fn.exec(t);if(!r||n[2]!==r[2])return;let i=n[2],a=parseFloat(n[1]),o=parseFloat(r[1]);return e=>ot(z(a,o,e))+i}function mn(e,t,n){if(typeof e==`number`&&typeof t==`number`&&typeof n==`number`)return z(e,t,n);if(typeof e==`string`&&typeof t==`string`){let n=pn(e,t);if(n)return n}return sn(e)(e,t)}var hn=[`setup`,`read`,`resolveKeyframes`,`preUpdate`,`update`,`preRender`,`render`,`postRender`];function gn(e){let t=new Set,n=new Set,r=!1,i=!1,a=new Set,o={delta:0,timestamp:0,isProcessing:!1};function s(t){a.has(t)&&(n.add(t),e()),t(o)}let c={schedule:(e,i=!1,o=!1)=>{let s=o&&r?t:n;return i&&a.add(e),s.add(e),e},cancel:e=>{n.delete(e),a.delete(e)},process:e=>{if(o=e,r){i=!0;return}r=!0;let a=t;t=n,n=a,t.forEach(s),t.clear(),r=!1,i&&(i=!1,c.process(e))}};return c}var _n=40;function vn(e,t,n={delta:0,timestamp:0,isProcessing:!1}){let r=!1,i=!0,a=()=>r=!0,o=hn.reduce((e,t)=>(e[t]=gn(a),e),{}),{setup:s,read:c,resolveKeyframes:l,preUpdate:u,update:d,preRender:f,render:p,postRender:m}=o,h=()=>{let a=O.useManualTiming,o=a?n.timestamp:performance.now();r=!1,a||(n.delta=i?1e3/60:Math.max(Math.min(o-n.timestamp,_n),1)),n.timestamp=o,n.isProcessing=!0,s.process(n),c.process(n),l.process(n),u.process(n),d.process(n),f.process(n),p.process(n),m.process(n),n.isProcessing=!1,r&&t&&(i=!1,e(h))},g=()=>{r=!0,i=!0,n.isProcessing||e(h)};return{schedule:hn.reduce((e,t)=>{let n=o[t];return e[t]=(e,t=!1,i=!1)=>(r||g(),n.schedule(e,t,i)),e},{}),cancel:e=>{for(let t=0;t<hn.length;t++)o[hn[t]].cancel(e)},state:n,steps:o}}var{schedule:B,cancel:V,steps:yn}=vn(typeof requestAnimationFrame<`u`?requestAnimationFrame:k,!0,M),bn=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>B.update(t,e),stop:()=>V(t),now:()=>M.isProcessing?M.timestamp:N.now()}},xn=(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)})`},Sn=2e4;function Cn(e,t=50,n=Sn,r){let i=0,a=e.next(i);for(r?.push(a.value);!a.done&&i<n;)i+=t,a=e.next(i),r?.push(a.value);return i>=n?1/0:i}function wn(e,t=100,n){let{keyframes:r,velocity:i}=e,a=r&&r[r.length-1]-r[0],o=n({...e,velocity:i&&a?i*t/a:i,keyframes:[0,t]}),s=Math.min(Cn(o),Sn);return{type:`keyframes`,ease:e=>o.next(s*e).value/t,duration:j(s)}}var H={stiffness:100,damping:10,mass:1,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05},Tn=e=>e<0?1/Math.max(1+e,H.minDamping):Math.max(1-e,H.minDamping);function En(e,t){if(!(e>1))return 1;let n=Math.sqrt(e*e-1),r=e-n,i=e+n,a=2*n*Math.exp(-t)*(1+t);return kn(e=>i*Math.exp(-r*e)-r*Math.exp(-i*e)-a,e=>Math.exp(-i*e)-Math.exp(-r*e),t)/t}function Dn(e,t){return e*Math.sqrt(1-t*t)}var On=12;function kn(e,t,n){let r=n;for(let n=1;n<On;n++)r-=e(r)/t(r);return r}var An=.001;function jn({duration:e=H.duration,bounce:t=H.bounce}){let n,r;H.maxDuration;let i=Tn(t);e=D(H.minDuration,H.maxDuration,j(e)),i<1?(n=t=>{let n=t*i,r=n*e,a=Dn(t,i),o=Math.exp(-r);return An-n/a*o},r=t=>{let r=t*i*e,a=i*i*t*t*e,o=Math.exp(-r),s=Dn(t*t,i);return(-n(t)+An>0?-1:1)*-a*o/s}):(n=t=>-.001+Math.exp(-t*e)*(t*e+1),r=t=>Math.exp(-t*e)*(-t*(e*e)));let a=5/e,o=kn(n,r,a),s=o*En(i,o*e),c=s*s;return{stiffness:c,damping:i*2*Math.sqrt(c),duration:A(e)}}var Mn=(e,t)=>(t?e>=0:e>0)&&e<1/0;function Nn(e,t){if(Mn(e,t))return e}function Pn(e){let t=Nn(e.stiffness),n=Nn(e.damping,!0),r=Nn(e.mass),i={...e,stiffness:t??H.stiffness,damping:n??H.damping,mass:r??H.mass,isResolvedFromDuration:!1,isTimeDefined:(t??n??r)===void 0&&(e.duration!==void 0||e.bounce!==void 0)};if(i.isTimeDefined){if(e.visualDuration){let t=Tn(e.bounce||0),n=2*Math.PI/(e.visualDuration*1.2)*En(t,2*Math.PI/1.2);i.stiffness=n*n,i.damping=2*t*Math.sqrt(i.stiffness)}else Object.assign(i,jn(i)),i.isResolvedFromDuration=!0;Mn(i.stiffness)&&Mn(i.damping,!0)||(i.stiffness=H.stiffness,i.damping=H.damping)}return i}function Fn(e=H.visualDuration,t=H.bounce){let n=typeof e==`object`?e:{visualDuration:e,keyframes:[0,1],bounce:t},r=n.keyframes[0],i=n.keyframes[n.keyframes.length-1],a={done:!1,value:r},{stiffness:o,damping:s,mass:c,duration:l,isResolvedFromDuration:u,isTimeDefined:d}=Pn({...n}),f=e=>d?0:-j(e),p=s/(2*Math.sqrt(o*c)),m=j(Math.sqrt(o/c)),h=p*m,g={target:i,delta:i-r,velocity:f(n.velocity||0)||0,restSpeed:0,restDelta:0},_=()=>{let e=Math.abs(g.delta)<5;g.restSpeed=n.restSpeed||(e?H.restSpeed.granular:H.restSpeed.default),g.restDelta=n.restDelta||(e?H.restDelta.granular:H.restDelta.default)};_();let v,y,b;if(p<1){let e=Dn(m,p),t={A:0,sinC:0,cosC:0,t:-1,env:0,sin:0,cos:0};b=()=>{t.A=(g.velocity+h*g.delta)/e,t.sinC=h*t.A+g.delta*e,t.cosC=h*g.delta-t.A*e};let n=n=>{n!==t.t&&(t.t=n,t.env=Math.exp(-h*n),t.sin=Math.sin(e*n),t.cos=Math.cos(e*n))};v=e=>(n(e),g.target-t.env*(t.A*t.sin+g.delta*t.cos)),y=e=>(n(e),t.env*(t.sinC*t.sin+t.cosC*t.cos))}else if(p===1){v=e=>g.target-Math.exp(-m*e)*(g.delta+(g.velocity+m*g.delta)*e);let e={C:0};b=()=>{e.C=g.velocity+m*g.delta},y=t=>Math.exp(-m*t)*(m*e.C*t-g.velocity)}else{let e=m*Math.sqrt(p*p-1),t=h-e,n=h+e,r=d?1/0:300/e,i=(e,t)=>Math.exp(t>r?-e*r-h*(t-r):-e*t),a={S:0,F:0};b=()=>{let t=(g.velocity+h*g.delta)/e;a.S=(g.delta+t)/2,a.F=(g.delta-t)/2},v=e=>g.target-a.S*i(t,e)-a.F*i(n,e),y=e=>t*a.S*i(t,e)+n*a.F*i(n,e)}b();let x=u&&l||null,S={calculatedDuration:x,retarget:(e,t)=>{g.target=e[e.length-1],g.delta=g.target-e[0],g.velocity=f(t),n.restSpeed&&n.restDelta||_(),S.calculatedDuration=x,a.done=!1,b()},velocity:e=>A(y(e)),next:e=>{let t=v(e);if(u)a.done=e>=l;else{let n=A(y(e));a.done=Math.abs(n)<=g.restSpeed&&Math.abs(g.target-t)<=g.restDelta}return a.value=a.done?g.target:t,a},toString:()=>{let e=Math.min(Cn(S),Sn),t=xn(t=>S.next(e*t).value,e,30);return e+`ms `+t},toTransition:()=>{}};return S}Fn.applyToOptions=e=>{let t=wn(e,100,Fn);return e.ease=t.ease,e.duration=A(t.duration),e.type=`keyframes`,e};function In({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=>e<s||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=>{let t=v(e);f.done=Math.abs(t)<=l,f.value=f.done?_:_+t},b,x,S=e=>{p(f.value)&&(b=e,x=Fn({keyframes:[f.value,m(f.value)],velocity:-v(e)/r*1e3,damping:i,stiffness:a,restDelta:l,restSpeed:u}))};return S(0),{calculatedDuration:null,next:e=>{let t=!1;return!x&&b===void 0&&(t=!0,y(e),S(e)),b!==void 0&&e>=b?x.next(e-b):(!t&&y(e),f)}}}function Ln(e,t,n){let r=[],i=n||O.mix||mn,a=e.length-1;for(let n=0;n<a;n++){let a=i(e[n],e[n+1]);t&&(a=Fe(Array.isArray(t)?t[n]||k:t,a)),r.push(a)}return r}function Rn(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=Ln(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=Ie(e[r],e[r+1],n);return s[r](i)};return n?t=>l(D(e[0],e[a-1],t)):l}function zn(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=Ie(0,t,r);e.push(z(n,1,i))}}function Bn(e){let t=[0];return zn(t,e.length-1),t}function Vn(e,t){return e.map(e=>e*t)}function Hn(e,t){return e.map(()=>t||Qe).splice(0,e.length-1)}function U({duration:e=300,keyframes:t,times:n,ease:r=`easeInOut`}){let i=$e(r)?r.map(rt):rt(r)||Qe,a={done:!1,value:t[0]};if(t.length===2&&!Array.isArray(i)&&(!n||n.length!==2||n[0]===0&&n[1]===1)){let[n,r]=t,o=n===r?void 0:(O.mix||mn)(n,r);return{calculatedDuration:e,next:t=>(a.value=o?o(i(e>0?D(0,1,t/e):1)):r,a.done=t>=e,a)}}let o=Rn(Vn(n&&n.length===t.length?n:Bn(t),e),t,{ease:Array.isArray(i)?i:Hn(t,i)});return{calculatedDuration:e,next:t=>(a.value=o(t),a.done=t>=e,a)}}var Un=5;function Wn(e,t,n){let r=Math.max(t-Un,0);return Re(n-e(r),t-r)}function Gn(e,t,n=0){return t<=0?n:e.velocity?e.velocity(t):Wn(t=>e.next(t).value,t,e.next(t).value)}var Kn=e=>e!==null;function qn(e,{repeat:t,repeatType:n=`loop`},r,i=1){let a=e.filter(Kn),o=i<0||t&&n!==`loop`&&t%2==1?0:a.length-1;return!o||r===void 0?a[o]:r}var Jn={decay:In,inertia:In,tween:U,keyframes:U,spring:Fn};function Yn(e){typeof e.type==`string`&&(e.type=Jn[e.type])}var Xn=40,Zn=(e,t)=>t-e>Xn&&!O.useManualTiming?t:e;function Qn(e,t){return{kind:e,animation:t,timestamp:N.now(),frameTimestamp:M.timestamp,frameIsProcessing:M.isProcessing}}function $n(e,t,n){let r=globalThis.__MOTION_INSPECT__;if(r)try{r({...Qn(`animation-start`,e),options:n?{...t,...n}:t})}catch{}}function er(e,t){let n=globalThis.__MOTION_INSPECT__;if(n)try{n({...Qn(`layout-animation-start`,e),node:t})}catch{}}var tr=class{constructor(){this.isResolved=!1}get finished(){return this._finished||=this.isResolved?Promise.resolve():new Promise(e=>{this._resolve=e}),this._finished}updateFinished(){this._finished=this._resolve=void 0,this.isResolved=!1}notifyFinished(){this.isResolved=!0,this._resolve?.()}then(e,t){return this.finished.then(e,t)}},nr=e=>e/100,rr=e=>Math.round(e*1e4)/1e4,ir=class extends tr{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!==N.now()&&this.tick(N.now()),this.isStopped=!0,this.state!==`idle`&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause(),$n(this,this.options)}initAnimation(){let{options:e}=this;Yn(e);let{type:t=U,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=e,{keyframes:o}=e,s=t||U;s!==U&&typeof o[0]!=`number`&&(this.mixKeyframes=Fe(nr,mn(o[0],o[1])),o=[0,100]);let c=s(o===e.keyframes?e:{...e,keyframes:o});i===`mirror`&&(this.mirroredGenerator=s({...e,keyframes:[...o].reverse(),velocity:-a})),c.calculatedDuration===null&&(c.calculatedDuration=Cn(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.currentTime=this.holdTime===null?t:this.holdTime}tick(e,t=!1){let{generator:n,totalDuration:r,calculatedDuration:i}=this;if(this.startTime===null)return n.next(0);let{delay:a=0,keyframes:o,type:s,onUpdate:c,finalKeyframe:l}=this.options;this.startTime===this.pendingStartTime&&(this.startTime=Zn(this.startTime,e)),this.pendingStartTime=void 0,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 u=this.currentTime-a*(this.playbackSpeed>=0?1:-1),d=this.playbackSpeed>=0?u<0:u>r;this.currentTime=Math.max(u,0),this.state===`finished`&&this.holdTime===null&&(this.currentTime=r);let f=this.generate(this.currentTime,d),{done:p}=f;!d&&i!==null&&(p=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let m=this.holdTime===null&&(this.state===`finished`||this.state===`running`&&p);return m&&s!==In&&(f.value=qn(o,this.options,l,this.speed)),c&&c(f.value),m&&this.finish(),f}at(e){return this.holdTime??rr((e-this.startTime)*this.playbackSpeed)}sampleAt(e,t){let{options:n,totalDuration:r}=this,i=this.at(e)-(n.delay||0);return i>=r&&n.type!==In?qn(n.keyframes,n,t?void 0:n.finalKeyframe):this.generate(Math.max(i,0),i<0).value}generate(e,t){let{generator:n,totalDuration:r,mixKeyframes:i,mirroredGenerator:a,resolvedDuration:o}=this,{keyframes:s,repeat:c,repeatType:l,repeatDelay:u}=this.options,d=e,f=n;if(c){let t=Math.min(e,r)/o,n=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),i===1&&n--,n=Math.min(n,c+1),n%2&&(l===`reverse`?(i=1-i,u&&(i-=u/o)):l===`mirror`&&(f=a)),d=D(0,1,i)*o}let p;return t?(this.delayState.value=s[0],p=this.delayState):p=f.next(d),i&&!t&&(p.value=i(p.value)),p}then(e,t){return this.finished.then(e,t)}get duration(){return j(this.calculatedDuration)}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+j(e)}get time(){return j(this.currentTime)}set time(e){e=A(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(){return Gn(this.generator,this.currentTime,this.options.velocity)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;t&&this.driver&&this.updateTime(N.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=j(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=bn,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??(this.pendingStartTime=n):this.startTime=n-this.holdTime/(this.playbackSpeed||1),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(N.now()),this.holdTime=this.currentTime}complete(){this.state!==`running`&&this.play(),this.state=`finished`,this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state=`finished`,this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state=`idle`,this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&=(this.driver.stop(),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)}},ar=new Set([`brightness`,`contrast`,`saturate`,`opacity`]);function or(e){let[t,n]=e.slice(0,-1).split(`(`);if(t===`drop-shadow`)return e;let[r]=n.match(gt)||[];if(!r)return e;let i=n.replace(r,``),a=+!!ar.has(t);return r!==n&&(a*=100),t+`(`+a+i+`)`}var sr=/\b([a-z-]*)\(.*?\)/gu,cr={...R,getAnimatableNone:e=>{let t=e.match(sr);return t?t.map(or).join(` `):e}},lr={...R,getAnimatableNone:e=>{let t=R.parse(e);return R.createTransformer(e)(t.map(e=>typeof e==`number`?0:typeof e==`object`?{...e,alpha:1}:e))}},ur={...pt,transform:Math.round},dr={borderWidth:I,borderTopWidth:I,borderRightWidth:I,borderBottomWidth:I,borderLeftWidth:I,borderRadius:I,borderTopLeftRadius:I,borderTopRightRadius:I,borderBottomRightRadius:I,borderBottomLeftRadius:I,width:I,maxWidth:I,height:I,maxHeight:I,top:I,right:I,bottom:I,left:I,inset:I,insetBlock:I,insetBlockStart:I,insetBlockEnd:I,insetInline:I,insetInlineStart:I,insetInlineEnd:I,padding:I,paddingTop:I,paddingRight:I,paddingBottom:I,paddingLeft:I,paddingBlock:I,paddingBlockStart:I,paddingBlockEnd:I,paddingInline:I,paddingInlineStart:I,paddingInlineEnd:I,margin:I,marginTop:I,marginRight:I,marginBottom:I,marginLeft:I,marginBlock:I,marginBlockStart:I,marginBlockEnd:I,marginInline:I,marginInlineStart:I,marginInlineEnd:I,fontSize:I,backgroundPositionX:I,backgroundPositionY:I,rotate:P,pathRotation:P,rotateX:P,rotateY:P,rotateZ:P,scale:ht,scaleX:ht,scaleY:ht,scaleZ:ht,skew:P,skewX:P,skewY:P,distance:I,translateX:I,translateY:I,translateZ:I,x:I,y:I,z:I,perspective:I,transformPerspective:I,opacity:mt,originX:kt,originY:kt,originZ:I,zIndex:ur,fillOpacity:mt,strokeOpacity:mt,numOctaves:ur},fr={...dr,color:L,backgroundColor:L,outlineColor:L,fill:L,stroke:L,borderColor:L,borderTopColor:L,borderRightColor:L,borderBottomColor:L,borderLeftColor:L,filter:cr,WebkitFilter:cr,mask:lr,WebkitMask:lr},pr=e=>fr[e],mr=new Set([cr,lr]);function hr(e,t){let n=pr(e);return mr.has(n)||(n=R),n.getAnimatableNone?n.getAnimatableNone(t):void 0}function gr(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}var _r=e=>e*180/Math.PI,vr=e=>br(_r(Math.atan2(e[1],e[0]))),yr={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scaleZ:()=>1,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:vr,rotateZ:vr,skewX:e=>_r(Math.atan(e[1])),skewY:e=>_r(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},br=e=>(e%=360,e<0&&(e+=360),e),xr=vr,Sr=e=>Math.hypot(e[0],e[1]),Cr=e=>Math.hypot(e[4],e[5]),wr={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Sr,scaleY:Cr,scaleZ:e=>Math.hypot(e[8],e[9],e[10]),scale:e=>(Sr(e)+Cr(e))/2,rotateX:e=>br(_r(Math.atan2(e[6],e[5]))),rotateY:e=>br(_r(Math.atan2(-e[2],e[0]))),rotateZ:xr,rotate:xr,skewX:e=>_r(Math.atan(e[4])),skewY:e=>_r(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Tr(e){return+!!e.includes(`scale`)}function Er(e,t){if(!e||e===`none`)return Tr(t);let n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),r,i;if(n)r=wr,i=n;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=yr,i=t}if(!i)return Tr(t);let a=r[t],o=i[1].split(`,`).map(Or);return typeof a==`function`?a(o):o[a]}var Dr=(e,t)=>{let{transform:n=`none`}=getComputedStyle(e);return Er(n,t)};function Or(e){return parseFloat(e.trim())}var W=[`transformPerspective`,`x`,`y`,`z`,`translateX`,`translateY`,`translateZ`,`scale`,`scaleX`,`scaleY`,`scaleZ`,`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skew`,`skewX`,`skewY`],kr=new Set([...W,`pathRotation`]),Ar=e=>e===pt||e===I,jr=new Set([`x`,`y`,`z`]),Mr=W.filter(e=>!jr.has(e));function Nr(e){let t=[];return Mr.forEach(n=>{let r=e.getValue(n);if(r!==void 0){let e=r.get(),i=+!!n.startsWith(`scale`);if(e===i)return;t.push([n,e]),r.set(i)}}),t}var Pr=new Set([`bottom`,`right`]);function Fr(e,t,n,r,i,a){let o=parseFloat(e);if(!isNaN(o))return o;let{min:s,max:c}=t()[n],l=c-s;return a===`border-box`?l:l-parseFloat(r)-parseFloat(i)}var Ir={width:({width:e,paddingLeft:t=`0`,paddingRight:n=`0`,boxSizing:r},i)=>Fr(e,i,`x`,t,n,r),height:({height:e,paddingTop:t=`0`,paddingBottom:n=`0`,boxSizing:r},i)=>Fr(e,i,`y`,t,n,r),top:({top:e})=>parseFloat(e),left:({left:e})=>parseFloat(e),bottom:({top:e},t)=>{let{y:n}=t();return parseFloat(e)+(n.max-n.min)},right:({left:e},t)=>{let{x:n}=t();return parseFloat(e)+(n.max-n.min)},x:({transform:e})=>Er(e,`x`),y:({transform:e})=>Er(e,`y`)};Ir.translateX=Ir.x,Ir.translateY=Ir.y;var Lr=new Set,Rr=!1,zr=!1,Br=!1;function Vr(){if(zr){let e=[],t=new Set,n=new Set;Lr.forEach(r=>{r.needsMeasurement&&(e.push(r),t.add(r.element),Pr.has(r.name)&&n.add(r.element))});let r=new Map;n.forEach(e=>{let t=Nr(e);t.length&&(r.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=r.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)})}zr=!1,Rr=!1,Lr.forEach(e=>e.complete(Br)),Lr.clear()}function Hr(){Lr.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(zr=!0)})}function Ur(){Br=!0,Hr(),Vr(),Br=!1}function Wr(e,t,n){if(typeof e==`string`){if(je(e)||Ne(e))return parseFloat(e);if(!R.test(e)&&R.test(n))return hr(t,n)}return e??void 0}var Gr=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?(Lr.add(this),Rr||(Rr=!0,B.read(Hr),B.resolveKeyframes(Vr))):(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=Wr(n.readValue(t,a),t,a);r!==void 0&&(e[0]=r)}e[0]===void 0&&(e[0]=a),r&&i===void 0&&r.set(e[0])}gr(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state=`complete`,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),Lr.delete(this)}cancel(){this.state===`scheduled`&&(Lr.delete(this),this.state=`pending`)}resume(){this.state===`pending`&&this.scheduleResolve()}},Kr=e=>e.startsWith(`--`);function qr(e,t,n){Kr(t)?e.style.setProperty(t,n):e.style[t]=n}var Jr={};function Yr(e,t){let n=Pe(e);return()=>Jr[t]??n()}var Xr=Yr(()=>window.ScrollTimeline!==void 0,`scrollTimeline`),Zr=Yr(()=>{try{document.createElement(`div`).animate({opacity:0},{easing:`linear(0, 1)`})}catch{return!1}return!0},`linearEasing`),Qr=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,$r={linear:`linear`,ease:`ease`,easeIn:`ease-in`,easeOut:`ease-out`,easeInOut:`ease-in-out`,circIn:Qr([0,.65,.55,1]),circOut:Qr([.55,0,1,.45]),backIn:Qr([.31,.01,.66,-.59]),backOut:Qr([.33,1.53,.69,.99])};function ei(e,t){if(e)return typeof e==`function`?Zr()?xn(e,t):`ease-out`:et(e)?Qr(e):Array.isArray(e)?e.map(e=>ei(e,t)||$r.easeOut):$r[e]}function ti(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=ei(s,i);Array.isArray(d)&&(u.easing=d);let f={delay:r,duration:i,easing:Array.isArray(d)?`linear`:d,fill:`both`,iterations:a+1,direction:o===`reverse`?`alternate`:`normal`};return l&&(f.pseudoElement=l),e.animate(u,f)}function ni(e){return typeof e==`function`&&`applyToOptions`in e}function ri({type:e,...t}){return ni(e)&&Zr()?e.applyToOptions(t):(t.duration??=300,t.ease??=`easeOut`,t)}var ii=class extends tr{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=ri(e);this.animation=ti(t,n,r,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=qn(r,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(e),qr(t,n,e),this.animation.cancel()}s?.(),this.notifyFinished()},$n(this,e,c)}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 j(Number(e))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+j(e)}get time(){return j(Number(this.animation.currentTime)||0)}set time(e){let t=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=A(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,onAttach:t,observe:n}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:`linear`}),this.animation.onfinish=null,e&&Xr()?(this.animation.timeline=e,t?.(this.animation),k):n(this)}},ai={anticipate:Ke,backInOut:Ge,circInOut:Ye};function oi(e){return e in ai}function si(e){typeof e.ease==`string`&&oi(e.ease)&&(e.ease=ai[e.ease])}var ci=class extends ii{constructor(e){si(e),Yn(e),super(e),e.startTime!==void 0&&e.autoplay!==!1&&(this.startTime=e.startTime),this.options=e}elapsed(){return this.state===`running`?(N.now()-this.startTime)*this.speed:this.time*1e3}sample(e){if(!this.sampler){let{motionValue:e,onUpdate:t,onComplete:n,onPlay:r,onStop:i,element:a,...o}=this.options;this.sampler=new ir({...o,autoplay:!1}),this.sampler.stop()}return this.sampler.sample(Math.max(0,e)).value}liveValue(){let{state:e}=this;if(e===`running`||e===`paused`)return this.sample(this.elapsed())}updateMotionValue(e){let{motionValue:t,element:n,name:r}=this.options;if(!t)return;if(e!==void 0){t.set(e);return}let{speed:i}=this,a=this.elapsed(),o=this.state===`running`&&i?D(0,10,a):0,s=this.sample(a);n&&r&&qr(n,r,s),t.setWithVelocity(this.sample(a-o*Math.sign(i)),s,o/Math.abs(i||1))}},li=(e,t)=>t!==`zIndex`&&!!(typeof e==`number`||Array.isArray(e)||typeof e==`string`&&(R.test(e)||e===`0`)&&!e.startsWith(`url(`));function ui(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 di(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=li(i,t),s=li(a,t);return!o||!s?(o!==s&&`${t}${i}${a}${o?a:i}`,!1):ui(e)||(n===`spring`||ni(n))&&r}function fi(e){e.duration=0,e.type=`keyframes`}var pi=new Set([`opacity`,`clipPath`,`filter`,`transform`,`backgroundColor`]),mi=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function hi(e){for(let t=0;t<e.length;t++)if(typeof e[t]==`string`&&mi.test(e[t]))return!0;return!1}var gi=new Set([`color`,`backgroundColor`,`outlineColor`,`fill`,`stroke`,`borderColor`,`borderTopColor`,`borderRightColor`,`borderBottomColor`,`borderLeftColor`]),_i=Pe(()=>Object.hasOwnProperty.call(Element.prototype,`animate`));function vi(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:o,keyframes:s}=e;if(!n||!(pi.has(n)||gi.has(n)))return!1;let c=t?.owner?.current;if(!(c instanceof HTMLElement)&&!(c instanceof SVGElement))return!1;let{onUpdate:l,transformTemplate:u}=t.owner.getProps();return _i()&&(pi.has(n)||gi.has(n)&&hi(s))&&(n!==`transform`||!u)&&!l&&!r&&i!==`mirror`&&a!==0&&o!==`inertia`}var yi=(e,t)=>t&&typeof e==`number`?t.transform(e):e,bi={x:`translateX`,y:`translateY`,z:`translateZ`,transformPerspective:`perspective`},xi=W.length;function Si(e,t,n){let r=``,i=!0;for(let a=0;a<xi;a++){let o=W[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=yi(s,dr[o]);if(!c){i=!1;let t=bi[o]||o;r+=`${t}(${e}) `}n&&(t[o]=e)}}let a=e.pathRotation;return a&&(i=!1,r+=`rotate(${yi(a,dr.pathRotation)}) `),r=r.trim(),n?r=n(t,i?``:r):i&&(r=`none`),r}var Ci=new WeakMap,wi=200,Ti=.001,Ei=.1,Di=.001,Oi=100,ki=e=>/^(linear|ease(In|Out|InOut))$/.test(e),Ai=(e,t)=>e-t,ji=(e,t,n)=>{let r=[];for(let i=0;i<=n;i++)r.push(z(e,t,i/n));return r},Mi=e=>e.motionValue.owner,Ni=e=>Ci.get(e),Pi=(e,t)=>e.latestValues?e.latestValues[t]:e.getValue(t)?.get(),Fi=({name:e,motionValue:t})=>e&&W.includes(e)&&t?.owner?.current instanceof HTMLElement&&_i()&&Zr();function Ii(e){let t=Mi(e),{onUpdate:n,transformTemplate:r}=t.getProps();return!e.isHandoff&&!n&&!e.hasOnUpdate&&!r&&e.type!==`inertia`&&(Pi(t,`transform`)||`none`)===`none`&&!Pi(t,`pathRotation`)&&!t.projection?.isProjecting()}var Li=class extends ir{constructor(e){let t=Mi(e).current,{driver:n=bn}=e,r,i=Ii(e);e.driver=e=>{let i=n(e);return{js:i,now:i.now,start:(e=!0)=>{let n=Ni(t);!n||n.isJS?i.start(e):n.schedule(!1,!e)},stop:()=>{i.stop();let e=Ni(t);e&&!e.isFinishing&&e.release(r)}}},super(e),r=this,this.canAccelerate=i;let{stop:a}=this;this.stop=()=>{this.isAccelerated()&&this.sync(),a()}}get group(){return Ni(Mi(this.options).current)}get js(){return this.driver?.js}get name(){return this.options.name}timing(){let{startTime:e,speed:t,totalDuration:n}=this,{delay:r=0,repeatType:i}=this.options;return this.holdTime===null?n===1/0?[e+r/t,this.resolvedDuration*(i===`loop`?1:2)/t||1]:[e+(r+n)/t,0]:[1/0,0]}isAccelerated(){let{group:e,state:t}=this;return e?.tracks.has(this)&&!e.isJS&&this.canAccelerate&&(t===`running`||t===`paused`)}liveValue(){return this.isAccelerated()?this.sampleAt(N.now()):void 0}tween(){let{keyframes:e,type:t,ease:n,times:r,repeat:i,delay:a=0}=this.options,o=et(n)?Qr(n):ki(n)&&$r[n];if(o&&!i&&!r&&e.length===2&&t===U&&this.holdTime===null){let e=this.startTime+a/this.speed;return[e,e+this.resolvedDuration/this.speed,o]}}boundaries(e,t){let{startTime:n,speed:r,resolvedDuration:i,options:a}=this,{delay:o=0,repeat:s=0,repeatDelay:c=0,repeatType:l,times:u,keyframes:d,type:f}=a,p=(f||U)===U?u||Bn(d):[0,1],m=n+o/r,h=[];if(this.holdTime!==null||!(i>0))return h;for(let n=Math.max(0,Math.floor((e-m)*r/i));n<=s;n++){let a=m+n*i/r;if(a>t)break;for(let o of p){let s=a+(n%2&&l&&l!==`loop`?1-o:o)*(i-c)/r;s>e&&s<t&&h.push(s)}}return h}numberAt(e){return parseFloat(this.sampleAt(e,!0))}sync(){let e=N.now();this.options.motionValue.setWithVelocity(this.sampleAt(e-10,!0),this.sampleAt(e,!0),10)}play(){this.isStopped||((this.group||Ri(Mi(this.options))).tracks.add(this),super.play())}pause(){super.pause(),this.isAccelerated()&&(this.sync(),this.group.schedule(!1))}complete(){super.complete();let{group:e}=this;e&&!e.isJS&&this.canAccelerate&&this.tick(N.now())}get time(){return this.isAccelerated()?j(D(0,this.totalDuration,this.at(N.now())-(this.options.delay||0))):super.time}set time(e){super.time=e,this.isAccelerated()&&this.sync()}attachTimeline(e){return this.canAccelerate=!1,this.group?.demote(!0),super.attachTimeline(e)}};function Ri(e){let t=e.current,n=new Set,r=new Map,i={},a=[],o=new Map,s=[],c=!1,l=!1,u=!1,d=!1,f=-1/0,p=e=>{for(let t of n)if(t.name===e)return!0},m=(t,n)=>{let o={};for(let s of t===void 0?W:a){let a=r.get(s),c=t===void 0?Pi(e,s):a?a.sampleAt(n>t&&!a.timing()[1]?n:t):i[s];c!==void 0&&(o[s]=c)}return o},h=(e,t)=>{let n=``,r=m(e,t);for(let e in r)n+=(bi[e]||e)+`(`+yi(r[e],dr[e])+`) `;return n||`none`},g=(e=m())=>{t.style.transform=Si(e,{})},_=(e=!0)=>{e&&g(),s.forEach(({animation:e})=>e.cancel()),s=[]},v=(e,t,n=1/0)=>{let r={animation:e,offset:t,end:n};e.startTime=N.now()+t,n<1/0&&(e.onfinish=()=>{r.isDone=!0,s.some(e=>e.end===1/0)&&(e.cancel(),s=s.filter(e=>e!==r)),T.schedule(!1)}),e.oncancel=()=>s.includes(r)&&T.demote(),s.push(r)},y=(e,t,n)=>{let r=(t,n)=>Math.abs(e(n)-e(t)),i=r(t,n);for(;n-t>.01;){let e=(t+n)/2;r(t,e)>r(e,n)?n=e:t=e}return r(t,n)>i/2?[t,n]:[]},b=(e,t,n,r)=>{let i=Math.min(wi,Math.max(2,Math.ceil((n-t)/10)));if(r.length*4>i)return;let a=ji(t,n,i).concat(r).sort(Ai),o=e=>Ie(t,n,e),s,c;for(let t of e){let e=a.map(e=>t.numberAt(e)),[n]=e,r=e.map(e=>e-n),i=r[r.length-1],o=r.some(e=>Math.abs(e)*Ti>Math.abs(i))?0:i,l=r.map(e=>o?e/o:e);if(!o){if(l.some(e=>!(Math.abs(e)<=Ti)))return}else if(!s)s=l,c=e=>(t.numberAt(e)-n)/o;else if(l.some((e,t)=>!(Math.abs(e-s[t])<=Ti)))return}if(!s||s.every((e,t)=>Math.abs(e-o(a[t]))<=Ti))return`linear`;let l=[],u=(e,t=c(e))=>l.push(rr(t)+` `+rr(o(e)*100)+`%`);return s.forEach((e,t)=>{t&&Math.abs(e-s[t-1])>.2&&y(c,a[t-1],a[t]).forEach(e=>u(e)),u(a[t],e)}),`linear(`+l+`)`},x=(e,t,n,r)=>{let i=[t],a=(t,n)=>e.every(e=>!(Math.abs(e.numberAt((t+n)/2)-(e.numberAt(t)+e.numberAt(n))/2)>(e.name.startsWith(`scale`)?Di:Ei))),o=(t,n,r)=>{if(n-t<1||a(t,n))i.push(n);else if(r<4)o(t,(t+n)/2,r+1),o((t+n)/2,n,r+1);else{for(let r of e)i.push(...y(e=>r.numberAt(e),t,n));i.push(n)}},s=ji(t,n,Math.ceil((n-t)/100));for(let e of r)s.push(e,Math.min(e+.01,n));let c=t;for(let e of s.sort(Ai))e>c&&o(c,e,0),c=e;return i.sort(Ai)},S=e=>{let t;for(let n of e){let e=n.tween();if(!e||t?.some((t,n)=>n<2?Math.abs(e[n]-t)>1:e[n]!==t))return;t=e}return t},ee=(e,n,r,i={fill:`both`},a,o)=>{let s=e.flatMap(e=>e.boundaries(n,r)),c=o||b(e,n,r,s),l=c?[n,r]:x(e,n,r,s),u=l.map(e=>h(e,a)),d={transform:u};return c||(d.offset=l.map(e=>Ie(n,r,e))),u.every(e=>e===u[0])&&(g(m(n,a)),d=null),t.animate(d,{...i,duration:r-n,easing:c||`linear`})},te=c=>{let l=c,u=0,d=0,f=[],p=[],m=new Set;r.clear(),o=new Map;for(let e of n){r.set(e.name,e);let[t,n]=e.timing(),i=t===1/0;if(o.set(e,[e.at(c),e.speed,i]),i)e.sync();else{if(e.speed<0)return;if(n){if(u){let e=(t-d)/n;if(Math.abs(n-u)>1||Math.abs(e-Math.round(e))*u>1)return}else u=n,d=t;p.push(e)}else m.add(t);f.push(e),l=Math.max(l,t)}}i={},a=W.filter(t=>{if(r.has(t))return!0;let n=i[t]=Pi(e,t);return n!==void 0&&parseFloat(n)!==+!!t.startsWith(`scale`)}),_(!1);let h=!u&&S(f);try{if(h&&h[1]>c){let[e,t,n]=h;v(ee(f,e,t,void 0,void 0,n),e-c,t-e)}else l>c&&(v(ee(f,c,l),0,l-c),m.forEach(e=>e<l-1&&v(t.animate(null,{duration:e-c}),0,e-c)));if(u){let e=d+Math.floor((l-d)/u)*u;v(ee(p,e,e+u,{iterations:1/0,iterationStart:(l-e)/u,fill:`forwards`},l),l-c)}}catch{return}return s.length||_(),!0},C=e=>{let t,r=0;for(let i of n){let n=o.get(i);if(!n)return!1;let[a,s,c]=n,l=i.at(e),u=i.timing()[0]===1/0;if(c){if(u&&l===a)continue;return!1}let d=(l-a)/s,f=u?0:i.speed/s;if(t===void 0)t=d,r=f;else if(Math.abs(d-t)>1||f!==r)return!1}if(t===void 0)return!0;if(!s.length)return!1;for(let{offset:e,end:n,isDone:r}of s){let i=t-e;if(n<1/0&&(r?i<n-1:i<0||i>=n))return!1}for(let{animation:n,offset:i,isDone:a}of s){if(a)continue;let o=t-i;r?(n.playbackRate=r,n.startTime=e-o/r):(n.pause(),n.currentTime=o)}return!0},ne=()=>!n.size&&(u=!0,Ci.delete(t),T.isJS||_(),!0),w=()=>{let t=N.now();if(T.isJS||(T.isFinishing=!0,n.forEach(n=>{let[r,a]=n.timing();n.state===`running`&&n.speed>0&&!a&&r<=t+1&&(n.complete(),i[n.name]=Pi(e,n.name),o.has(n)||(c=!0))}),T.isFinishing=!1),l=!1,u||(n.forEach(({state:e},t)=>{(e===`idle`||e===`finished`)&&n.delete(t)}),ne()))return;for(let e of n)if(!e.canAccelerate)return T.demote(!0);T.isJS&&(T.isJS=!1,c=!0,n.forEach(e=>e.js?.stop()));let r=c,a=d;if(c=d=!1,r||!C(t)){if(a){if(t-f<Oi)return T.demote();f=t}if(!te(t))return T.demote()}},T={tracks:n,isJS:!1,isFinishing:!1,schedule(e,t){u||(c||=e,d||=!!t,l||(l=!0,M.isProcessing?B.render(w,!1,!0):queueMicrotask(w)))},release(e){let{state:t}=e;(t===`idle`||t===`finished`)&&n.delete(e),ne()||T.schedule(!0)},check(){if(!T.isJS){for(let t in i)if(Pi(e,t)!==i[t]&&!p(t))return T.schedule(!0,!0)}},demote(e){T.isJS||u||(n.forEach(t=>{t.isAccelerated()&&t.sync(),e||(t.canAccelerate=!1)}),T.isJS=!0,o=new Map,_(),n.forEach(e=>e.state===`running`&&e.js?.start()))}};return Ci.set(t,T),T}var zi=class extends tr{constructor(e){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=N.now();let{keyframes:t,name:n,motionValue:r,element:i}=e,a=e;a.autoplay??=!0,a.delay??=0,a.type??=`keyframes`,a.repeat??=0,a.repeatDelay??=0,a.repeatType??=`loop`;let o=i?.KeyframeResolver||Gr;this.keyframeResolver=new o(t,(e,t,n)=>this.onKeyframesResolved(e,t,a,!n),n,r,i),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=N.now();let u=!0;di(e,i,a,o)||(u=!1,(O.instantAnimations||!s)&&l?.(qn(e,n,t)),e[0]=e[e.length-1],fi(n),n.repeat=0);let{onComplete:d}=n;n.finalKeyframe=t,n.keyframes=e,n.onComplete=()=>{d?.(),this.notifyFinished()};let f=u&&!c&&vi(n),p=!f&&Fi(n);r&&(f||p||this.resolvedAt!==this.createdAt)&&(n.startTime??=Zn(this.createdAt,this.resolvedAt));let m;if(f){n.element=n.motionValue?.owner?.current;try{m=new ci(n)}catch{m=new ir(n)}}else m=p?new Li(n):new ir(n);this.pendingTimeline&&=(this.stopTimeline=m.attachTimeline(this.pendingTimeline),void 0),this._animation=m}get finished(){return this._animation?this._animation.finished:super.finished}then(e,t){return this.finished.finally(e).then(()=>{})}liveValue(){return this._animation?.liveValue?.()}get animation(){return this._animation||(this.keyframeResolver?.resume(),Ur()),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 Bi(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 Vi=30,Hi=e=>!isNaN(parseFloat(e)),Ui={current:void 0},Wi=class{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=N.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.notifyChange(),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=N.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=Hi(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on(`change`,e)}on(e,t){var n;return e===`change`?this.onChangeSubscribe(t):((n=this.events)[e]||(n[e]=new Le)).add(t)}onChangeSubscribe(e){let{events:t}=this;return!t.change&&!this.changeSubscriber?this.changeSubscriber=e:(t.change||(t.change=new Le,t.change.add(this.changeSubscriber),this.changeSubscriber=void 0),t.change.add(e)),()=>{this.changeSubscriber===e?this.changeSubscriber=void 0:t.change?.remove(e),this.stopIfUnobserved()}}stopIfUnobserved(){B.read(()=>{!this.changeSubscriber&&!this.events.change?.getSize()&&this.stop()})}clearListeners(){this.changeSubscriber=void 0;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.notifyChange()}notifyChange(){let{current:e,changeSubscriber:t}=this;t?t(e):this.events.change?.notify(e)}addDependent(e){this.dependents||=new Set,this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){Ui.current&&Ui.current.push(this);let e=this.animation?.liveValue?.();return e===void 0?this.current:e}getCurrent(){return this.current}getPrevious(){return this.prev}getVelocity(){let e=N.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>Vi)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,Vi);return Re(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0;let n=!1,r;r=e(()=>{n=!0,this.events.animationComplete?.notify(),this.animation===r&&this.clearAnimation(),t()}),n||(this.animation=r),this.events.animationStart?.notify()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){this.animation=void 0}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function Gi(e,t){return new Wi(e,t)}function Ki(e,t){if(e?.inherit&&t){let{inherit:n,...r}=e;return{...t,...r}}return e}function qi(e,t){let n=e?.[t]??e?.default??e;return n===e?n:Ki(n,e)}var Ji={type:`spring`,stiffness:500,damping:25,restSpeed:10},Yi=e=>({type:`spring`,stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Xi={type:`keyframes`,duration:.8},Zi={type:`keyframes`,ease:[.25,.1,.35,1],duration:.3},Qi=(e,{keyframes:t})=>t.length>2?Xi:kr.has(e)?e.startsWith(`scale`)?Yi(t[1]):Ji:Zi,$i=new Set([`when`,`delay`,`delayChildren`,`staggerChildren`,`staggerDirection`,`repeat`,`repeatType`,`repeatDelay`,`from`,`elapsed`]);function ea(e){for(let t in e)if(!$i.has(t))return!0;return!1}var ta=(e,t,n,r={},i,a)=>o=>{let s=qi(r,e)||{},c=s.delay||r.delay||0,{elapsed:l=0}=r;l-=A(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,hasOnUpdate:!!s.onUpdate};ea(s)||Object.assign(u,Qi(e,u)),u.duration&&=A(u.duration),u.repeatDelay&&=A(u.repeatDelay),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(fi(u),u.delay===0&&(d=!0)),(O.instantAnimations||O.skipAnimations||i?.shouldSkipAnimations||s.skipAnimations)&&(d=!0,fi(u),u.delay=0),u.allowFlatten=!s.type&&!s.ease,d&&!a&&t.get()!==void 0){let e=qn(u.keyframes,s);if(e!==void 0){B.update(()=>{u.onUpdate(e),u.onComplete()});return}}return s.isSync?new ir(u):new zi(u)},na=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function ra(e){let t=na.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}function ia(e,t,n=1){`${e}`;let[r,i]=ra(e);if(!r)return;let a=window.getComputedStyle(t).getPropertyValue(r);if(a){let e=a.trim();return je(e)?parseFloat(e):e}return ut(i)?ia(i,t,n+1):i}function aa(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function oa(e,t,n,r){let i=t=>typeof t==`function`?t(n===void 0?e.custom:n,...aa(r)):t;return t=i(t),typeof t==`string`&&(t=e.variants&&e.variants[t]),i(t)}function sa(e,t,n){return oa(e.getProps(),t,n,e)}var ca=(e,t)=>t===`exit`?e.presenceContext?.custom:void 0,la=new Set([`width`,`height`,`top`,`left`,`right`,`bottom`,...W]),ua=e=>Array.isArray(e);function da(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Gi(n))}function fa(e){return ua(e)?e[e.length-1]||0:e}function pa(e,t){let{transitionEnd:n={},transition:r={},...i}=sa(e,t)||{};i={...i,...n};for(let t in i)da(e,t,fa(i[t]))}var G=e=>!!(e&&e.getVelocity);function ma(e){return!!(G(e)&&e.add)}function ha(e,t){let n=e.getValue(`willChange`);if(ma(n))return n.add(t);if(!n&&O.WillChange){let n=new O.WillChange(`auto`);e.addValue(`willChange`,n),n.add(t)}}function ga(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}var _a=`data-`+ga(`framerAppearId`);function va(e){return e.props[_a]}var ya=typeof window<`u`;function ba({protectedKeys:e,needsAnimating:t},n){let r=n in e&&!t[n];return t[n]=!1,r}function xa(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a,transitionEnd:o,...s}=t,c=e.getDefaultTransition();a=a?Ki(a,c):c;let l=a?.reduceMotion,u=a?.skipAnimations;r&&(a=r);let d=[],f=i&&e.animationState?.getState()[i],p=a?.path;p&&(p.animateValues?p.animateValues(t=>e.getValue(t,e.latestValues[t]??0),s,a,n,d):p.animateVisualElement?.(e,s,a,n,d));for(let t in s){let r=e.getValue(t,e.latestValues[t]??null),i=s[t];if(i===void 0||f&&ba(f,t))continue;let o={delay:n,...qi(a||{},t)};u&&(o.skipAnimations=!0);let c=r.get();if(c!==void 0&&!r.isAnimating()&&!Array.isArray(i)&&i===c&&!o.velocity){B.update(()=>r.set(i));continue}let p=!1;if(ya&&window.MotionHandoffAnimation){let n=va(e);if(n){let e=window.MotionHandoffAnimation(n,t,B);e!==null&&(o.startTime=e,p=!0)}}ha(e,t);let m=l??e.shouldReduceMotion;r.start(ta(t,r,i,m&&la.has(t)?{type:!1}:o,e,p));let h=r.animation;h&&d.push(h)}if(o){let t=()=>B.update(()=>{o&&pa(e,o)});d.length?Promise.all(d).then(t):t()}return d}function Sa(e,t,n={}){let r=sa(e,t,ca(e,n.type)),i=n.transitionOverride||(r?.transition??(e.getDefaultTransition()||{})),a=()=>Promise.all(r?xa(e,r,n):[]),o=(r=0)=>{let{variantChildren:a}=e,{delayChildren:o=0,staggerChildren:s,staggerDirection:c}=i,l=[];return a?.forEach(e=>{e.notify(`AnimationStart`,t),l.push(Sa(e,t,{...n,delay:r+(typeof o==`function`?0:o)+Bi(a,e,o,s,c)}).then(()=>e.notify(`AnimationComplete`,t)))}),Promise.all(l)},{when:s}=i;return s?s===`beforeChildren`?a().then(()=>o()):o().then(a):Promise.all([a(),o(n.delay)])}function Ca(e,t,n={}){return e.notify(`AnimationStart`,t),(Array.isArray(t)?Promise.all(t.map(t=>Sa(e,t,n))):typeof t==`string`?Sa(e,t,n):Promise.all(xa(e,sa(e,t,n.custom),n))).then(()=>{e.notify(`AnimationComplete`,t)})}var wa={test:e=>e===`auto`,parse:e=>e},Ta=e=>t=>t.test(e),Ea=[pt,I,F,P,Ot,Dt,wa],Da=e=>Ea.find(Ta(e));function Oa(e){return typeof e==`number`?e===0:e===null||e===`none`||e===`0`||Ne(e)}var ka=new Set([`auto`,`none`,`0`]);function Aa(e,t,n){let r=0,i;for(;r<e.length&&!i;){let t=e[r];typeof t==`string`&&!ka.has(t)&&Vt(t)&&(i=e[r]),r++}if(i&&n)for(let r of t)e[r]!==i&&(e[r]=hr(n,i))}var ja=class extends Gr{constructor(e,t,n,r,i){super(e,t,n,r,i,!0)}scheduleResolve(){if(this.canReadNow()&&(this.readKeyframes(),!this.needsMeasurement))return this.complete();super.scheduleResolve()}canReadNow(){let{unresolvedKeyframes:e,element:t,motionValue:n}=this,r=e[0]??n?.get();if(!t?.current||r===void 0)return!1;for(let t=0;t<e.length;t++)if(ft(t?e[t]:r))return!1;return!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(),ut(r))){let i=ia(r,t.current);i!==void 0&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!la.has(n)||e.length!==2)return;let[r,i]=e;if(typeof r==`number`&&typeof i==`number`)return;let a=Da(r),o=Da(i);if(ft(r)!==ft(i)&&Ir[n])this.needsMeasurement=!0;else if(a!==o){if(Ar(a)&&Ar(o))for(let t=0;t<e.length;t++){let n=e[t];typeof n==`string`&&(e[t]=parseFloat(n))}else Ir[n]&&(this.needsMeasurement=!0)}}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(e[t]===null||Oa(e[t]))&&n.push(t);n.length&&Aa(e,n,t)}measure(){let{element:e,name:t}=this;return Ir[t](window.getComputedStyle(e.current),()=>e.measureViewportBox())}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;n===`height`&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=this.measure(),t[0]=this.measuredOrigin;let r=t[t.length-1];r!==void 0&&this.motionValue?.jump(r,!1)}measureEndState(){let{element:e,unresolvedKeyframes:t}=this;if(!e||!e.current)return;this.motionValue?.jump(this.measuredOrigin,!1);let n=t.length-1,r=t[n];t[n]=this.measure(),r!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=r),this.removedTransforms?.length&&this.removedTransforms.forEach(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}},Ma=[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomRightRadius`,`borderBottomLeftRadius`];function Na(e){return Me(e)&&`offsetHeight`in e&&!(`ownerSVGElement`in e)}function Pa(e){return Me(e)&&`ownerSVGElement`in e}function Fa(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)}function Ia(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(kr.has(e))o=!0;else if(ct(e))i[e]=n;else{let t=yi(n,dr[e]);e.startsWith(`origin`)?(s=!0,a[e]=t):r[e]=t}}if(t.transform||(o||n?r.transform=Si(t,e.transform,n):r.transform&&=`none`),s){let{originX:e=`50%`,originY:t=`50%`,originZ:n=0}=a;r.transformOrigin=`${e} ${t} ${n}`}}var La={offset:`stroke-dashoffset`,array:`stroke-dasharray`},Ra={offset:`strokeDashoffset`,array:`strokeDasharray`};function za(e,t,n=1,r=0,i=!0){e.pathLength=1;let a=i?La:Ra;e[a.offset]=`${-r}`,e[a.array]=`${t} ${n}`}var Ba=[`transform`,`opacity`,`clipPath`,`filter`,`offsetDistance`,`offsetPath`,`offsetRotate`,`offsetAnchor`];function Va(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},c,l,u){if(Ia(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;for(let e of Ba)d[e]!==void 0&&(f[e]=d[e],delete d[e]);(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??`50% 50%`,delete d.transformOrigin),f.transform&&(f.transformBox=u?.transformBox??`fill-box`,delete d.transformBox),t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),i!==void 0&&za(d,i,a,o,!1)}function Ha({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Ua({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Wa(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 Ga(e){return e===void 0||e===1}function Ka({scale:e,scaleX:t,scaleY:n}){return!Ga(e)||!Ga(t)||!Ga(n)}function qa(e){return Ka(e)||Ja(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.rotateZ||e.skewX||e.skewY}function Ja(e){return Ya(e.x)||Ya(e.y)}function Ya(e){return e&&e!==`0%`}function Xa(e,t,n){return n+t*(e-n)}function Za(e,t,n,r,i){return i!==void 0&&(e=Xa(e,i,r)),Xa(e,n,r)+t}function Qa(e,t=0,n=1,r,i){e.min=Za(e.min,t,n,r,i),e.max=Za(e.max,t,n,r,i)}function $a(e,{x:t,y:n}){Qa(e.x,t.translate,t.scale,t.originPoint),Qa(e.y,n.translate,n.scale,n.originPoint)}var eo=.999999999999,to=1.0000000000001;function no(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&&(K(e.x,-a.scroll.offset.x),K(e.y,-a.scroll.offset.y)),o&&(t.x*=o.x.scale,t.y*=o.y.scale,$a(e,o)),r&&qa(a.latestValues)&&ao(e,a.latestValues,a.layout?.layoutBox))}t.x<to&&t.x>eo&&(t.x=1),t.y<to&&t.y>eo&&(t.y=1)}function K(e,t){e.min+=t,e.max+=t}function ro(e,t,n,r,i=.5){Qa(e,t,n,z(e.min,e.max,i),r)}function io(e,t){return typeof e==`string`?parseFloat(e)/100*(t.max-t.min):e}function ao(e,t,n){let r=n??e;ro(e.x,io(t.x,r.x),t.scaleX,t.scale,t.originX),ro(e.y,io(t.y,r.y),t.scaleY,t.scale,t.originY)}function oo(e,t){return Ha(Wa(e.getBoundingClientRect(),t))}function so(e,t,n){let r=oo(e,n),{scroll:i}=t;return i&&(K(r.x,i.offset.x),K(r.y,i.offset.y)),r}var{schedule:co,cancel:lo}=vn(queueMicrotask,!1),q={x:!1,y:!1};function uo(){return q.x||q.y}function fo(e){return e===`x`||e===`y`?q[e]?null:(q[e]=!0,()=>{q[e]=!1}):q.x||q.y?null:(q.x=q.y=!0,()=>{q.x=q.y=!1})}function po(e,t){let n=Fa(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function mo(e){return!(e.pointerType===`touch`||uo())}function ho(e,t,n={}){let[r,i,a]=po(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=>{e.pointerType!==`touch`&&(n?r=!0:s(e))};e.addEventListener(`pointerenter`,n=>{if(!mo(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 go=(e,t)=>t?e===t||go(e,t.parentElement):!1,_o=e=>e.pointerType===`mouse`?typeof e.button!=`number`||e.button<=0:e.isPrimary!==!1,vo=new Set([`BUTTON`,`INPUT`,`SELECT`,`TEXTAREA`,`A`]);function yo(e){return vo.has(e.tagName)||e.isContentEditable===!0}var bo=new Set([`INPUT`,`SELECT`,`TEXTAREA`]);function xo(e){return bo.has(e.tagName)||e.isContentEditable===!0}var So=new WeakSet;function Co(e){return t=>{t.key===`Enter`&&e(t)}}function wo(e,t){e.dispatchEvent(new PointerEvent(`pointer`+t,{isPrimary:!0,bubbles:!0}))}var To=(e,t)=>{let n=e.currentTarget;if(!n)return;let r=Co(()=>{if(So.has(n))return;wo(n,`down`);let e=Co(()=>{wo(n,`up`)});n.addEventListener(`keyup`,e,t),n.addEventListener(`blur`,()=>wo(n,`cancel`),t)});n.addEventListener(`keydown`,r,t),n.addEventListener(`blur`,()=>n.removeEventListener(`keydown`,r),t)};function Eo(e){return _o(e)&&!uo()}var Do=new WeakSet;function Oo(e,t,n={}){let[r,i,a]=po(e,n),o=e=>{let r=e.currentTarget;if(!Eo(e)||Do.has(e))return;So.add(r),n.stopPropagation&&Do.add(e);let a=t(r,e),o={...i,capture:!0},s=(e,t)=>{window.removeEventListener(`pointerup`,c,o),window.removeEventListener(`pointercancel`,l,o),So.has(r)&&So.delete(r),Eo(e)&&typeof a==`function`&&a(e,{success:t})},c=e=>{s(e,r===window||r===document||n.useGlobalTarget||go(r,e.target))},l=e=>{s(e,!1)};window.addEventListener(`pointerup`,c,o),window.addEventListener(`pointercancel`,l,o)};return r.forEach(e=>{(n.useGlobalTarget?window:e).addEventListener(`pointerdown`,o,i),Na(e)&&(e.addEventListener(`focus`,e=>To(e,i)),!yo(e)&&!e.hasAttribute(`tabindex`)&&(e.tabIndex=0))}),a}var ko=new WeakMap,Ao,jo=(e,t,n)=>(r,i)=>i&&i[0]?i[0][e+`Size`]:Pa(r)&&`getBBox`in r?r.getBBox()[t]:r[n],Mo=jo(`inline`,`width`,`offsetWidth`),No=jo(`block`,`height`,`offsetHeight`);function Po({target:e,borderBoxSize:t}){ko.get(e)?.forEach(n=>{n(e,{get width(){return Mo(e,t)},get height(){return No(e,t)}})})}function Fo(e){e.forEach(Po)}function Io(){typeof ResizeObserver<`u`&&(Ao=new ResizeObserver(Fo))}function Lo(e,t){Ao||Io();let n=Fa(e);return n.forEach(e=>{let n=ko.get(e);n||(n=new Set,ko.set(e,n)),n.add(t),Ao?.observe(e)}),()=>{n.forEach(e=>{let n=ko.get(e);n?.delete(t),n?.size||Ao?.unobserve(e)})}}var Ro=new Set,zo;function Bo(){zo=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};Ro.forEach(t=>t(e))},window.addEventListener(`resize`,zo)}function Vo(e){return Ro.add(e),zo||Bo(),()=>{Ro.delete(e),!Ro.size&&typeof zo==`function`&&(window.removeEventListener(`resize`,zo),zo=void 0)}}function Ho(e,t){return typeof e==`function`?Vo(e):Lo(e,t)}var Uo={value:null,addProjectionMetrics:null};function Wo(e){return Pa(e)&&e.tagName===`svg`}var Go=e=>typeof e==`number`?e:parseFloat(e),Ko=()=>({translate:0,scale:1,origin:0,originPoint:0}),qo=()=>({x:Ko(),y:Ko()}),Jo=()=>({min:0,max:0}),J=()=>({x:Jo(),y:Jo()}),Yo=new WeakMap;function Xo(e){return typeof e==`object`&&!!e&&typeof e.start==`function`}function Zo(e){return typeof e==`string`||Array.isArray(e)}var Qo=[`animate`,`whileInView`,`whileFocus`,`whileHover`,`whileTap`,`whileDrag`,`exit`],$o=[`initial`,...Qo];function es(e){if(Xo(e.animate))return!0;for(let t=0;t<$o.length;t++)if(Zo(e[$o[t]]))return!0;return!1}function ts(e){return!!(es(e)||e.variants)}function ns(e,t,n){for(let r in t){let i=t[r],a=n[r];if(G(i))e.addValue(r,i);else if(G(a))e.addValue(r,Gi(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,Gi(t===void 0?i:t,{owner:e}))}}}for(let r in n)t[r]===void 0&&e.removeValue(r);return t}var rs={current:null},is={current:!1},as=typeof window<`u`;function os(){if(is.current=!0,as){if(window.matchMedia){let e=window.matchMedia(`(prefers-reduced-motion)`),t=()=>rs.current=e.matches;e.addEventListener(`change`,t),t()}else rs.current=!1}}var ss=[`AnimationStart`,`AnimationComplete`,`Update`,`BeforeLayoutMeasure`,`LayoutMeasure`,`LayoutAnimationStart`,`LayoutAnimationComplete`],cs={},ls=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=Gr,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=N.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,B.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=es(t),this.isVariantNode=ts(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&&G(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];if(this.current=e,Yo.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.isVariantNode&&!this.isControllingVariants){let e=this;do e=e.props.inherit!==!1&&e.parent;while(e&&!e.isVariantNode);if(e){let{variantChildren:t}=e;t.add(this),this.removeFromVariantTree=()=>t.delete(this)}}this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),this.reducedMotionConfig===`never`?this.shouldReduceMotion=!1:this.reducedMotionConfig===`always`?this.shouldReduceMotion=!0:(is.current||os(),this.shouldReduceMotion=rs.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(),V(this.notifyUpdate),V(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&&pi.has(e)&&this.current instanceof HTMLElement){let{factory:n,keyframes:r,times:i,ease:a,duration:o}=t.accelerate,s=new ii({element:this.current,name:e,keyframes:r,times:i,ease:a,duration:A(o)}),c=n(s);this.valueSubscriptions.set(e,()=>{c(),s.cancel()});return}let n=kr.has(e);n&&this.onBindTransform&&this.onBindTransform();let r=t.on(`change`,t=>{this.latestValues[e]=t,this.props.onUpdate&&B.preRender(this.notifyUpdate),n&&(this.projection&&(this.projection.isTransformDirty=!0),Ci.get(this.current)?.check()),this.scheduleRender()}),i;typeof window<`u`&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{r(),i&&i()})}sortNodePosition(e){return!this.current||!e.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e=`animation`;for(e in cs){let t=cs[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):J()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){let{transformTemplate:n,onUpdate:r}=this.props;(e.transformTemplate||n)&&this.scheduleRender(),(e.transformTemplate&&!n||e.onUpdate&&!r)&&Ci.get(this.current)?.demote(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<ss.length;t++){let n=ss[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=ns(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}addValue(e,t){let n=this.values.get(e);if(t!==n){n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t);let r=t.get();r!==void 0&&(this.latestValues[e]=r)}}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=Gi(t??this.getDefaultValue?.(e),{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`&&(je(n)||Ne(n))?n=parseFloat(n):typeof n!=`number`&&!R.test(n)&&R.test(t)&&(n=hr(e,t)),this.setBaseTarget(e,G(n)?n.get():n)),G(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}on(e,t){return this.events[e]||(this.events[e]=new Le),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){co.render(this.render)}},us=class extends ls{constructor(){super(...arguments),this.KeyframeResolver=ja}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;G(e)&&(this.childSubscription=e.on(`change`,e=>{this.current&&(this.current.textContent=`${e}`)}))}};function ds(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])}var fs={};function ps(e){for(let t in e)fs[t]=e[t],ct(t)&&(fs[t].isCSSVariable=!0)}function ms(e,{layout:t,layoutId:n}){return kr.has(e)||e.startsWith(`origin`)||(t||n!==void 0)&&(!!fs[e]||e===`opacity`)}function hs(e,t,n){let r=e.style,i=t?.style,a={};if(!r)return a;for(let t in r)(G(r[t])||i&&G(i[t])||ms(t,e)||n?.getValue(t)?.liveStyle!==void 0)&&(a[t]=r[t]);return a}function gs(e){return window.getComputedStyle(e)}var _s=class extends us{constructor(){super(...arguments),this.type=`html`,this.renderInstance=ds}mount(e){e.style,super.mount(e)}readValueFromInstance(e,t){if(kr.has(t))return this.projection?.isProjecting?Tr(t):Dr(e,t);{let n=gs(e),r=(ct(t)?n.getPropertyValue(t):n[t])||0;return typeof r==`string`?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return oo(e,t)}build(e,t,n){Ia(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return hs(e,t,n)}},vs=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`]),ys=e=>typeof e==`string`&&e.toLowerCase()===`svg`;function bs(e,t,n,r){ds(e,t,void 0,r);for(let n in t.attrs)e.setAttribute(vs.has(n)?n:ga(n),t.attrs[n])}function xs(e,t,n){let r=hs(e,t,n);for(let n in e)if(n!==`children`&&(G(e[n])||G(t[n]))){let t=W.indexOf(n)===-1?n:`attr`+n.charAt(0).toUpperCase()+n.substring(1);r[t]=e[n]}return r}var Ss=class extends us{constructor(){super(...arguments),this.type=`svg`,this.isSVGTag=!1,this.measureInstanceViewportBox=J}getBaseTargetFromProps(e,t){return kr.has(t)?super.getBaseTargetFromProps(e,t)??Tr(t):e[t]}getDefaultValue(e){return kr.has(e)?this.latestValues[e]??Tr(e):void 0}readValueFromInstance(e,t){if(kr.has(t)){let e=pr(t);return e&&e.default||0}if(Ba.includes(t)){let n=getComputedStyle(e)[t];if(typeof n==`string`&&n)return n.trim()}return t=vs.has(t)?t:ga(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return xs(e,t,n)}build(e,t,n){Va(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){bs(e,t,n,r)}mount(e){this.isSVGTag=ys(e.tagName),super.mount(e)}};function Cs(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 ws=[...Qo].reverse();function Ts(e){let t=t=>Promise.all(t.map(({animation:t,options:n})=>Ca(e,t,n))),n=Ds(),r=!0,i=!1;function a(a){let{props:o,parent:s,manuallyAnimateOnMount:c}=e,l=r||i,u=[],d=new Set,f={},p=1/0,m=e;do m=m.props.inherit!==!1&&m.parent;while(m&&!m.isControllingVariants);if(ws.forEach((t,r)=>{let i=n[t],h=o[t],g=m&&m.props[t],_=h===void 0?Zo(g)||g===!1?g:void 0:h,v=Zo(_),y=t===a?i.isActive:null;y===!1&&(p=r);let b=v&&h===void 0&&!(l&&c);if(i.protectedKeys={...f},!i.isActive&&y===null||!_&&!i.prevProp||Xo(_)||typeof _==`boolean`)return;if(t===`exit`&&i.isActive&&y!==!0){f={...f,...i.prevResolvedValues};return}let x=Es(i.prevProp,_),S=x||v&&(y&&!b||r>p),ee=!1,te=Array.isArray(_)?_:[_],C={};if(y!==!1)for(let n of te){let{transition:r,transitionEnd:i,...a}=sa(e,n,ca(e,t))||{};C={...C,...a,...i}}let{prevResolvedValues:ne}=i;for(let t in{...ne,...C}){if(t in f)continue;let n=C[t],r=ne[t],a=Array.isArray(n)&&Array.isArray(r)?!Cs(n,r)||x:n!==r;if(a&&n==null)d.add(t);else if(a||n!==void 0&&d.has(t)){S=!0,d.delete(t)&&(ee=!0),i.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)}else i.protectedKeys[t]=!0}if(i.prevProp=_,i.prevResolvedValues=C,i.isActive&&(f={...f,...C}),S&&(!(b&&x)||ee))for(let n of te){let r={type:t};if(typeof n==`string`&&l&&c&&s?.enteringChildren){let t=sa(s,n)?.transition?.delayChildren;r.delay=Bi(s.enteringChildren,e,t)}u.push({animation:n,options:r})}}),d.size){let{initial:t}=o,n={},r=typeof t!=`boolean`&&sa(e,Array.isArray(t)?t[0]:t,e.presenceContext?.custom);r&&r.transition&&(n.transition=r.transition),d.forEach(i=>{let a=e.getValue(i);a&&(a.liveStyle=!0);let s=r&&!Array.isArray(t)?r[i]:void 0,c=e.getBaseTargetFromProps(o,i);n[i]=(s===void 0?c!==void 0&&!G(c)?c:e.initialValues[i]===void 0?e.baseTarget[i]:void 0:s)??null}),u.push({animation:n})}let h=l&&e.blockInitialAnimation||r&&!c&&(o.initial===!1||o.initial===o.animate);return r=i=!1,!h&&u.length?t(u):Promise.resolve()}function o(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=a(t);for(let e in n)n[e].protectedKeys={};return i}return{animateChanges:a,setActive:o,setAnimateFunction:n=>{t=n(e)},getState:()=>n,reset:()=>{n=Ds(),i=!0}}}function Es(e,t){return typeof t==`string`?t!==e:Array.isArray(t)?!Cs(t,e):!1}function Ds(){let e={};for(let t of Qo)e[t]={isActive:t===`animate`,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}};return e}function Os(e,t){e.min=t.min,e.max=t.max}function Y(e,t){Os(e.x,t.x),Os(e.y,t.y)}function ks(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}var As=.9999,js=1.0001,Ms=-.01,Ns=.01;function X(e){return e.max-e.min}function Ps(e,t,n){return Math.abs(e-t)<=n}function Fs(e,t,n,r=.5){e.origin=r,e.originPoint=z(t.min,t.max,e.origin),e.scale=X(n)/X(t),e.translate=z(n.min,n.max,e.origin)-e.originPoint,(e.scale>=As&&e.scale<=js||isNaN(e.scale))&&(e.scale=1),(e.translate>=Ms&&e.translate<=Ns||isNaN(e.translate))&&(e.translate=0)}function Is(e,t,n,r){Fs(e.x,t.x,n.x,r?r.originX:void 0),Fs(e.y,t.y,n.y,r?r.originY:void 0)}function Ls(e,t,n,r=0){e.min=(r?z(n.min,n.max,r):n.min)+t.min,e.max=e.min+X(t)}function Rs(e,t,n,r){Ls(e.x,t.x,n.x,r?.x),Ls(e.y,t.y,n.y,r?.y)}function zs(e,t,n,r=0){let i=r?z(n.min,n.max,r):n.min;e.min=t.min-i,e.max=e.min+X(t)}function Bs(e,t,n,r){zs(e.x,t.x,n.x,r?.x),zs(e.y,t.y,n.y,r?.y)}function Vs(e,t,n,r,i){return e-=t,e=Xa(e,1/n,r),i!==void 0&&(e=Xa(e,1/i,r)),e}function Hs(e,t=0,n=1,r=.5,i,a=e,o=e){if(F.test(t)&&(t=parseFloat(t),t=z(o.min,o.max,t/100)-o.min),typeof t!=`number`)return;let s=z(a.min,a.max,r);e===a&&(s-=t),e.min=Vs(e.min,t,n,s,i),e.max=Vs(e.max,t,n,s,i)}function Us(e,t,[n,r,i],a,o){Hs(e,t[n],t[r],t[i],t.scale,a,o)}var Ws=[`x`,`scaleX`,`originX`],Gs=[`y`,`scaleY`,`originY`];function Ks(e,t,n,r){Us(e.x,t,Ws,n?n.x:void 0,r?r.x:void 0),Us(e.y,t,Gs,n?n.y:void 0,r?r.y:void 0)}function qs(e){return e.translate===0&&e.scale===1}function Js(e){return qs(e.x)&&qs(e.y)}function Ys(e,t){return e.min===t.min&&e.max===t.max}function Xs(e,t){return Ys(e.x,t.x)&&Ys(e.y,t.y)}function Zs(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Qs(e,t){return Zs(e.x,t.x)&&Zs(e.y,t.y)}function $s(e){return X(e.x)/X(e.y)}function ec(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function Z(e){return[e(`x`),e(`y`)]}function tc(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var Q={correct:(e,t)=>{if(!t.target)return e;if(typeof e==`string`){if(I.test(e))e=parseFloat(e);else return e}return`${tc(e,t.target.x)}% ${tc(e,t.target.y)}%`}},nc={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=R.parse(e);if(i.length>5)return r;let a=R.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=z(s,c,.5);return typeof i[2+o]==`number`&&(i[2+o]/=l),typeof i[3+o]==`number`&&(i[3+o]/=l),a(i)}};function rc(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,pathRotation:i,rotateX:a,rotateY:o,rotateZ:s,skewX:c,skewY:l}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),i&&(r+=`rotate(${i}deg) `),a&&(r+=`rotateX(${a}deg) `),o&&(r+=`rotateY(${o}deg) `),s&&(r+=`rotateZ(${s}deg) `),c&&(r+=`skewX(${c}deg) `),l&&(r+=`skewY(${l}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 ic=Ma.length,ac=[`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skewX`,`skewY`],oc=ac.length,sc=e=>typeof e==`number`||I.test(e);function cc(e,t,n,r,i,a){i?(e.opacity=z(0,n.opacity??1,uc(r)),e.opacityExit=z(t.opacity??1,0,dc(r))):a&&(e.opacity=z(t.opacity??1,n.opacity??1,r));for(let i=0;i<ic;i++){let a=Ma[i],o=lc(t,a),s=lc(n,a);(o!==void 0||s!==void 0)&&(o||=0,s||=0,o===0||s===0||sc(o)===sc(s)?(e[a]=Math.max(z(Go(o),Go(s),r),0),(F.test(s)||F.test(o))&&(e[a]+=`%`)):e[a]=s)}for(let i=0;i<oc;i++){let a=ac[i];(t[a]||n[a])&&(e[a]=z(t[a]||0,n[a]||0,r))}}function lc(e,t){return e[t]===void 0?e.borderRadius:e[t]}var uc=fc(0,.5,Je),dc=fc(.5,.95,k);function fc(e,t,n){return r=>r<e?0:r>t?1:n(Ie(e,t,r))}function pc(e,t,n){let r=G(e)?e:Gi(e);return r.start(ta(``,r,t,n)),r.animation}function mc(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}var hc=(e,t)=>e.depth-t.depth,gc=class{constructor(){this.children=[],this.isDirty=!1}add(e){ke(this.children,e),this.isDirty=!0}remove(e){Ae(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(hc),this.isDirty=!1,this.children.forEach(e)}};function _c(e,t){let n=N.now(),r=({timestamp:i})=>{let a=i-n;a>=t&&(V(r),e(a-t))};return B.setup(r,!0),()=>V(r)}function vc(e){return G(e)?e.get():e}var yc=class{constructor(){this.members=[]}add(e){ke(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||(Ae(this.members,n),n.unmount())}e.scheduleRender()}remove(e){if(Ae(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)}},bc={borderRadius:{...Q,applyTo:[...Ma]},borderTopLeftRadius:Q,borderTopRightRadius:Q,borderBottomLeftRadius:Q,borderBottomRightRadius:Q,boxShadow:nc},xc={hasAnimatedSinceResize:!0,hasEverUpdated:!1};Object.assign(fs,{...bc,...fs});var Sc={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},Cc=[``,`X`,`Y`,`Z`],wc=1e3,Tc=0;function Ec(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}var Dc=({instance:e})=>e&&Ci.get(e)?.demote();function Oc(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let n=va(t);if(window.MotionHasOptimisedAnimation(n,`transform`)){let{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,`transform`,B,!(t||r))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Oc(r)}function kc({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=t?.()){this.id=Tc++,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.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Uo.value&&(Sc.nodes=Sc.calculatedTargetDeltas=Sc.calculatedProjections=0),this.nodes.forEach(Mc),this.nodes.forEach(Uc),this.nodes.forEach(Wc),this.nodes.forEach(Nc),Uo.addProjectionMetrics&&Uo.addProjectionMetrics(Sc)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new gc)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new Le),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=Pa(t)&&!Wo(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;B.read(()=>{r=window.innerWidth}),e(t,()=>{let e=window.innerWidth;e!==r&&(r=e,this.root.updateBlockedByResize=!0,n&&n(),n=_c(i,250),xc.hasAnimatedSinceResize&&(xc.hasAnimatedSinceResize=!1,this.nodes.forEach(Hc)))})}n&&this.root.registerSharedNode(n,this),this.addLayoutListener()}addLayoutListener(){let{layoutId:e,layout:t,visualElement:n,animate:r}=this.options;this.instance&&!this.hasLayoutListener&&r!==!1&&n&&(e||t)&&(this.hasLayoutListener=!0,this.addEventListener(`didUpdate`,({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:r,layout:i})=>{if(this.isAnimationBlocked){this.target=void 0,this.relativeTarget=void 0;return}let a=this.options.transition||n.getDefaultTransition()||Xc,{onLayoutAnimationStart:o,onLayoutAnimationComplete:s}=n.getProps(),c=!this.targetLayout||!Qs(this.targetLayout,i),l=!t&&r;if(this.options.layoutRoot||this.resumeFrom||l||t&&(c||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...qi(a,`layout`),onPlay:o,onComplete:s};(n.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,l,t.path)}else t||Hc(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=i}))}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(),this.hasLayoutListener=!1,V(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(Gc),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&&Oc(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;Dc(this),this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,Dc(t),(typeof t.latestValues.x==`string`||typeof t.latestValues.y==`string`)&&(t.isLayoutDirty=!0),t.updateScroll(`snapshot`),t.options.layoutRoot&&t.willUpdate(!1),t.isAnimationBlocked&&(t.dragSnapshot||=t.measure(),this.dragAncestor=t)}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(Ic),this.nodes.forEach(Fc);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Lc);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(zc),this.nodes.forEach(Bc),this.nodes.forEach(Vc),this.nodes.forEach(Ac),this.nodes.forEach(jc)):this.nodes.forEach(Lc),this.clearAllSnapshots();let e=N.now();M.delta=D(0,1e3/60,e-M.timestamp),M.timestamp=e,M.isProcessing=!0,yn.update.process(M),yn.preRender.process(M),yn.render.process(M),M.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,co.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Pc),this.sharedNodes.forEach((e,t)=>e.members.length?e.removeLeadSnapshot():this.sharedNodes.delete(t))}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,B.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){B.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),this.snapshot&&!X(this.snapshot.measuredBox.x)&&!X(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutCorrected||=J(),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;e&&Dc(this);let t=this.projectionDelta&&!Js(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,``):void 0,a=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||qa(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)),el(n),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return J();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(nl))){let{scroll:e}=this.root;e&&(K(t.x,e.offset.x),K(t.y,e.offset.y))}return t}removeElementScroll(e){let t=J();if(Y(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&&Y(t,e),K(t.x,i.offset.x),K(t.y,i.offset.y))}return t}applyTransform(e,t=!1,n){let r=n||J();Y(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&&(K(r.x,-n.scroll.offset.x),K(r.y,-n.scroll.offset.y)),qa(n.latestValues)&&ao(r,n.latestValues,n.layout?.layoutBox)}return qa(this.latestValues)&&ao(r,this.latestValues,this.layout?.layoutBox),r}removeTransform(e){let t=J();Y(t,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!qa(n.latestValues))continue;let r;n.instance&&(Ka(n.latestValues)&&n.updateSnapshot(),r=J(),Y(r,n.measurePageBox())),Ks(t,n.latestValues,n.snapshot?.layoutBox,r)}return qa(this.latestValues)&&Ks(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||e.crossfade},this.addLayoutListener()}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==M.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||=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=M.timestamp;let a=this.getClosestProjectingParent();!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=J(),this.targetWithTransforms=J()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Rs(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):Y(this.target,this.layout.layoutBox),$a(this.target,this.targetDelta)):Y(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),Uo.value&&Sc.calculatedTargetDeltas++)}getClosestProjectingParent(){if(!(!this.parent||Ka(this.parent.latestValues)||Ja(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.forceRelativeParentToResolveTarget(),this.relativeTarget=J(),this.relativeTargetOrigin=J(),Bs(this.relativeTargetOrigin,t,n,this.options.layoutAnchor||void 0),Y(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===M.timestamp&&(n=!1),n)return;let{layout:r,layoutId:i}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||i))return;Y(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,o=this.treeScale.y;no(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=J());let{target:s}=e;s?(!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(ks(this.prevProjectionDelta.x,this.projectionDelta.x),ks(this.prevProjectionDelta.y,this.projectionDelta.y)),Is(this.projectionDelta,this.layoutCorrected,s,this.latestValues),this.treeScale.x===a&&this.treeScale.y===o&&ec(this.projectionDelta.x,this.prevProjectionDelta.x)&&ec(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners(`projectionUpdate`,s)),Uo.value&&Sc.calculatedProjections++):this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender())}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=qo(),this.projectionDelta=qo(),this.projectionDeltaWithTransform=qo()}setAnimationOrigin(e,t=!1,n){let r=this.snapshot,i=r?r.latestValues:{},a={...this.latestValues},o=qo();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let s=J(),c=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),u=!l||l.members.length<=1,d=!(!c||u||this.options.crossfade!==!0||this.path.some(Yc));this.animationProgress=0;let f,p=n?.interpolateProjection(e);this.mixTargetDelta=t=>{let n=t/1e3,r=p?.(n);r?(o.x.translate=r.x,o.x.scale=z(e.x.scale,1,n),o.x.origin=e.x.origin,o.x.originPoint=e.x.originPoint,o.y.translate=r.y,o.y.scale=z(e.y.scale,1,n),o.y.origin=e.y.origin,o.y.originPoint=e.y.originPoint):(Kc(o.x,e.x,n),Kc(o.y,e.y,n)),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Bs(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),Jc(this.relativeTarget,this.relativeTargetOrigin,s,n),f&&Xs(this.relativeTarget,f)&&(this.isProjectionDirty=!1),f||=J(),Y(f,this.relativeTarget)),c&&(this.animationValues=a,cc(a,i,this.latestValues,n,d,u)),r&&r.rotate!==void 0&&(this.animationValues||=a,this.animationValues.pathRotation=r.rotate),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&&=(V(this.pendingAnimation),void 0),this.pendingAnimation=B.update(()=>{xc.hasAnimatedSinceResize=!0,this.motionValue||=Gi(0),this.motionValue.jump(0,!1),this.currentAnimation=pc(this.motionValue,[0,1e3],{...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),er(this.currentAnimation,this),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(wc),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,layout:n,latestValues:r}=e,{target:i}=e;if(t&&i&&n){if(this!==e&&this.layout&&n&&tl(this.options.animationType,this.layout.layoutBox,n.layoutBox)){i=this.target||J();let t=X(this.layout.layoutBox.x);i.x.min=e.target.x.min,i.x.max=i.x.min+t;let n=X(this.layout.layoutBox.y);i.y.min=e.target.y.min,i.y.max=i.y.min+n}Y(t,i),ao(t,r),Is(this.projectionDeltaWithTransform,this.layoutCorrected,t,r)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new yc),this.sharedNodes.get(e).add(t);let n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return e?e.relegate(this):!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&&Ec(`z`,e,r,this.animationValues);for(let t=0;t<Cc.length;t++)Ec(`rotate${Cc[t]}`,e,r,this.animationValues),Ec(`skew${Cc[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=vc(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=vc(t?.pointerEvents)||``),this.hasProjected&&!qa(this.latestValues)&&(e.transform=n?n({},``):`none`,this.hasProjected=!1);return}e.visibility=``;let i=r.animationValues||r.latestValues;this.applyTransformsToTarget();let a=rc(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`,e.opacity=r.animationValues?r===this?i.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit:r===this?i.opacity===void 0?``:i.opacity:i.opacityExit===void 0?0:i.opacityExit;for(let t in fs){if(i[t]===void 0)continue;let{correct:n,applyTo:o,isCSSVariable:s}=fs[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?vc(t?.pointerEvents)||``:`none`)}clearSnapshot(){this.resumeFrom=this.snapshot=this.dragSnapshot=this.dragAncestor=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(Fc),this.root.sharedNodes.clear()}}}function Ac(e){e.updateLayout(),Rc(e)}function jc(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`)Z(e=>{let r=a?t.measuredBox[e]:t.layoutBox[e],i=X(r);r.min=n[e].min,r.max=r.min+i});else if(i===`x`||i===`y`){let e=i===`x`?`y`:`x`;Os(a?t.measuredBox[e]:t.layoutBox[e],n[e])}else tl(i,t.layoutBox,n)&&Z(r=>{let i=a?t.measuredBox[r]:t.layoutBox[r],o=X(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=qo();Is(o,n,t.layoutBox);let s=qo();a?Is(s,e.applyTransform(r,!0),t.measuredBox):Is(s,n,t.layoutBox);let c=!Js(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=J();Bs(s,t.layoutBox,i.layoutBox,o);let c=J();Bs(c,n,a.layoutBox,o),Qs(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 Mc(e){Uo.value&&Sc.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 Nc(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Pc(e){e.clearSnapshot()}function Fc(e){e.clearMeasurements()}function Ic(e){e.isLayoutDirty=!0,e.updateLayout()}function Lc(e){e.isLayoutDirty=!1}function Rc(e){let{snapshot:t,dragAncestor:n}=e,r=n?.layout;if(!t||!r||e.resumeFrom||e.isAnimationBlocked)return;let i=n.dragSnapshot;Z(e=>K(t.layoutBox[e],r.layoutBox[e].min-i.layoutBox[e].min))}function zc(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.dragSnapshot||e.layout,e.isLayoutDirty=!0)}function Bc(e){e.relativeTarget&&e.relativeParent?.isLayoutDirty&&(e.currentAnimation?e.isLayoutDirty=!0:(e.targetDelta=void 0,e.removeRelativeTarget()))}function Vc(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify(`BeforeLayoutMeasure`),e.resetTransform()}function Hc(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Uc(e){e.resolveTargetDelta()}function Wc(e){e.calcProjection()}function Gc(e){e.resetSkewAndRotation()}function Kc(e,t,n){e.translate=z(t.translate,0,n),e.scale=z(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function qc(e,t,n,r){e.min=z(t.min,n.min,r),e.max=z(t.max,n.max,r)}function Jc(e,t,n,r){qc(e.x,t.x,n.x,r),qc(e.y,t.y,n.y,r)}function Yc(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var Xc={duration:.45,ease:[.4,0,.1,1]},Zc=e=>typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Qc=Zc(`applewebkit/`)&&!Zc(`chrome/`)?Math.round:k;function $c(e){e.min=Qc(e.min),e.max=Qc(e.max)}function el(e){$c(e.x),$c(e.y)}function tl(e,t,n){return e===`position`||e===`preserve-aspect`&&!Ps($s(t),$s(n),.2)}function nl(e){return e!==e.root&&e.scroll?.wasRoot}var rl=kc({attachResizeListener:(e,t)=>mc(e,`resize`,t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),il={current:void 0},al=kc({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!il.current){let e=new rl({});e.mount(window),e.setOptions({layoutScroll:!0}),il.current=e}return il.current},resetTransform:(e,t)=>{e.style.transform=t===void 0?`none`:t},checkIsScrollRoot:e=>window.getComputedStyle(e).position===`fixed`}),ol={some:0,all:1};function sl(e,t,{root:n,margin:r,amount:i=`some`}={}){let a=Fa(e),o=new WeakMap,s=new IntersectionObserver(e=>{e.forEach(e=>{let n=o.get(e.target);if(e.isIntersecting!==!!n){if(e.isIntersecting){let n=t(e.target,e);typeof n==`function`?o.set(e.target,n):s.unobserve(e.target)}else typeof n==`function`&&(n(e),o.delete(e.target))}})},{root:n,rootMargin:r,threshold:typeof i==`number`?i:ol[i]});return a.forEach(e=>s.observe(e)),()=>s.disconnect()}var cl=(e,t)=>Math.abs(e-t);function ll(e,t){let n=cl(e.x,t.x),r=cl(e.y,t.y);return Math.sqrt(n**2+r**2)}function ul({current:e}){return e?e.ownerDocument.defaultView:null}function dl(e){if(e)return e.nodeType===3||e.nodeType===8?dl(e.nextSibling):e}var[fl,pl,ml]=De(`Motion`),[hl,gl,_l]=De(`LayoutGroup`),vl={reducedMotion:`never`,transition:void 0,nonce:void 0},[yl,bl,xl]=De(`MotionConfig`);function Sl(){return yl(_(()=>vl))}function Cl(e,t,n){if(Array.isArray(e))return e.reduce((e,r)=>{let i=Cl(r,t,n);return i?{...e,...i}:e},{});if(typeof e==`object`)return e;if(e&&t){let r=t[e];return typeof r==`function`?r(n):r}}function wl(e,t,n){let r=Cl(e,t,n);if(!r)return;let{transition:i,transitionEnd:a,...o}=r;return{...o,...a}}function Tl(e,t){let n=(e.initial===void 0&&e.variants?t?.initial:e.initial)===!1?[`initial`,`animate`]:[`initial`],r=e.custom??e.presenceContext?.custom;return n.reduce((n,i)=>({...n,...wl(e[i]||t?.[i],e.variants,r)}),{})}var El=new Set(`animate.circle.defs.desc.ellipse.g.image.line.filter.marker.mask.metadata.path.pattern.polygon.polyline.rect.stop.svg.switch.symbol.text.tspan.use.view.clipPath.feBlend.feColorMatrix.feComponentTransfer.feComposite.feConvolveMatrix.feDiffuseLighting.feDisplacementMap.feDistantLight.feDropShadow.feFlood.feFuncA.feFuncB.feFuncG.feFuncR.feGaussianBlur.feImage.feMerge.feMergeNode.feMorphology.feOffset.fePointLight.feSpecularLighting.feSpotLight.feTile.feTurbulence.foreignObject.linearGradient.radialGradient.textPath`.split(`.`));function Dl(e){return El.has(e)}var Ol=new WeakMap,kl=class{constructor(e,t,n={}){this.element=null,this.isExiting=!1,this.children=new Set,this.features=new Map,this.featureCtors=[],this._context=null,this.options=e,this.parent=t,t?.children?.add(this),this.latestValues=Tl(e,this.context),this.type=Dl(this.options.as)?`svg`:`html`,this.setBundle(n)}get context(){if(!this._context){let e={get:(e,t)=>{let n=this.options[t];return Zo(n)||t===`initial`&&n===!1?n:this.parent?.context[t]}};this._context=new Proxy({},e)}return this._context}setBundle(e){e.renderer&&this.initVisualElement(e.renderer),e.features?.length&&(this.featureCtors=e.features),this.updateFeatures()}updateFeatures(){if(this.visualElement)for(let e of this.featureCtors){let t=this.features.get(e.key);t||(t=new e(this),this.features.set(e.key,t)),this.isMounted()&&(t.isMount?t.update():(t.mount(),t.isMount=!0))}}updateOptions(e){this.options=e,this.visualElement?.update({...this.options,whileTap:this.options.whilePress},this.options.presenceContext??null)}mount(e){Ol.set(e,this),this.element=e,this.features.get(`layout`)?.refreshRootScroll(),this.visualElement?.mount(e),this.updateFeatures()}beforeUnmount(){this.getSnapshot(!1)}unmount(){this.parent?.children?.delete(this),this.element&&Ol.delete(this.element),this.features.forEach(e=>{e.unmount(),e.isMount=!1}),this.visualElement?.unmount(),this.element=null}beforeUpdate(){this.getSnapshot(!this.isExiting)}update(){this.updateFeatures(),this.didUpdate()}getFeature(e){return this.features.get(e)}setActive(e,t){e===`exit`&&t&&(this.isExiting=!0);let n=e===`whilePress`?`whileTap`:e;this.visualElement?.animationState?.setActive(n,t).then(()=>{e===`exit`&&t&&(this.isExiting=!1)})}isMounted(){return!!this.element}initVisualElement(e){this.visualElement||(this.visualElement=e(this.options.as,{presenceContext:this.options.presenceContext??null,parent:this.parent?.visualElement,props:{...this.options,whileTap:this.options.whilePress},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{...this.latestValues}},reducedMotionConfig:this.options.motionConfig?.reducedMotion}),this.isMounted()&&this.visualElement.mount(this.element))}getSnapshot(e){this.features.get(`layout`)?.getSnapshot(e)}didUpdate(){}},$=class{constructor(e){this.isMount=!1,this.state=e}mount(){}beforeUnmount(){}unmount(){}update(){}getSnapshot(e){}};function Al(e){return e.style.display===`none`||e.offsetParent===null&&window.getComputedStyle(e).position!==`fixed`}var jl=class extends ${static{this.key=`animation`}constructor(e){super(e);let t=e.visualElement;t.animationState||=Ts(t)}updateAnimationControlsSubscription(){let{animate:e}=this.state.options;Xo(e)&&(this.unmountControls=e.subscribe(this.state.visualElement))}mount(){Al(this.state.element)?this.state.setActive(`exit`,!0):this.state.visualElement.animationState?.animateChanges(),this.updateAnimationControlsSubscription()}update(){this.state.visualElement.animationState?.animateChanges();let{animate:e}=this.state.visualElement.getProps(),{animate:t}=this.state.visualElement.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.state.visualElement.animationState.reset(),this.unmountControls?.()}},Ml=class extends ${constructor(...e){super(...e),this.exitGeneration=0}static{this.key=`exit`}exit(){let e=++this.exitGeneration,t=this.state;t.isExiting=!0;let n=new Promise(e=>{this.pendingExit={resolve:e}}),r=t.visualElement?.animationState?.setActive(`exit`,!0);return r?r.then(()=>{e===this.exitGeneration&&(t.isExiting=!1,t.options?.layoutId?B.postRender(()=>this.tryCompleteExit(e)):this.tryCompleteExit(e))}):(t.isExiting=!1,this.tryCompleteExit(e)),t.getSnapshot(!1),n}reenter(){this.exitGeneration++,this.settleExit(),this.state.isExiting=!1,this.state.setActive(`exit`,!1),this.state.getSnapshot(!0)}completeExitFromProjection(){this.tryCompleteExit(this.exitGeneration)}tryCompleteExit(e){e!==this.exitGeneration||this.state.isExiting||this.state.options?.layoutId&&this.state.visualElement.projection?.currentAnimation?.state===`running`||this.settleExit()}settleExit(){this.pendingExit?.resolve(),this.pendingExit=void 0}mount(){this.state.options.presenceContext?.register?.(this.state)}unmount(){this.state.options.presenceContext?.unregister?.(this.state),this.settleExit()}};function Nl(e,t){return Dl(e)?new Ss(t):new _s(t)}function Pl(e,t=`page`){return{point:{x:e[`${t}X`],y:e[`${t}Y`]}}}function Fl(e){return t=>_o(t)&&e(t,Pl(t))}var Il=class extends ${static{this.key=`press`}constructor(e){super(e)}isActive(){let{whilePress:e,onPress:t,onPressCancel:n,onPressStart:r}=this.state.options;return!!(e||t||n||r)}register(){let e=this.state.element;e&&this.isActive()&&(this.removePress?.(),this.removePress=Oo(e,(e,t)=>{let n=this.state.options;return this.state.setActive(`whilePress`,!0),n.onPressStart&&B.postRender(()=>n.onPressStart(t,Pl(t))),(e,{success:t})=>{this.state.setActive(`whilePress`,!1);let n=t?`onPress`:`onPressCancel`,r=this.state.options[n];r&&B.postRender(()=>r(e,Pl(e)))}},{useGlobalTarget:this.state.options.globalPressTarget}))}mount(){this.register()}update(){let e=this.state.visualElement.prevProps;!(e?.whilePress||e?.whileTap||e?.onPress||e?.onPressCancel||e?.onPressStart)&&this.isActive()&&this.register()}unmount(){this.removePress?.(),this.removePress=void 0}},Ll=class extends ${static{this.key=`hover`}constructor(e){super(e)}isActive(){let{whileHover:e,onHoverStart:t,onHoverEnd:n}=this.state.options;return!!(e||t||n)}register(){let e=this.state.element;e&&this.isActive()&&(this.removeHover?.(),this.removeHover=ho(e,(e,t)=>{let n=this.state.options;return this.state.setActive(`whileHover`,!0),n.onHoverStart&&B.postRender(()=>n.onHoverStart(t,Pl(t))),e=>{this.state.setActive(`whileHover`,!1);let t=this.state.options.onHoverEnd;t&&B.postRender(()=>t(e,Pl(e)))}}))}mount(){this.register()}update(){let e=this.state.visualElement.prevProps;!(e?.whileHover||e?.onHoverStart||e?.onHoverEnd)&&this.isActive()&&this.register()}unmount(){this.removeHover?.(),this.removeHover=void 0}},Rl=class extends ${static{this.key=`inView`}constructor(e){super(e)}isActive(){let{whileInView:e,onViewportEnter:t,onViewportLeave:n}=this.state.options;return!!(e||t||n)}startObserver(){let e=this.state.element;if(!e||!this.isActive())return;this.removeObserver?.();let{once:t,...n}=this.state.options.inViewOptions||{};this.removeObserver=sl(e,(e,n)=>{let r=this.state.options;if(this.state.setActive(`whileInView`,!0),r.onViewportEnter&&B.postRender(()=>r.onViewportEnter(n)),!t)return()=>{this.state.setActive(`whileInView`,!1);let e=this.state.options.onViewportLeave;e&&B.postRender(()=>e(n))}},n)}mount(){this.startObserver()}update(){let{props:e,prevProps:t}=this.state.visualElement;[`amount`,`margin`,`root`].some(n=>e.inViewOptions?.[n]!==t?.inViewOptions?.[n])&&this.startObserver()}unmount(){this.removeObserver?.(),this.removeObserver=void 0}},zl=class extends ${static{this.key=`focus`}constructor(e){super(e),this.isFocused=!1}onFocus(){let e=!1;try{e=this.state.element.matches(`:focus-visible`)}catch{e=!0}e&&(this.state.setActive(`whileFocus`,!0),this.isFocused=!0)}onBlur(){this.isFocused&&=(this.state.setActive(`whileFocus`,!1),!1)}mount(){let e=this.state.element;this.removeFocus=Fe(mc(e,`focus`,()=>this.onFocus()),mc(e,`blur`,()=>this.onBlur()))}unmount(){this.removeFocus?.(),this.removeFocus=void 0}};function Bl(e){if(e)return e.options.allowProjection===!1?Bl(e.parent):e.projection}var Vl={borderRadius:{...Q,applyTo:[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomLeftRadius`,`borderBottomRightRadius`]},borderTopLeftRadius:Q,borderTopRightRadius:Q,borderBottomLeftRadius:Q,borderBottomRightRadius:Q,boxShadow:nc},Hl=typeof window>`u`,Ul=class extends ${static{this.key=`projection`}constructor(e){super(e),ps(Vl),Hl||this.initProjection()}initProjection(){let e=this.state.options;this.state.visualElement.projection=new al(this.state.visualElement.latestValues,e[`data-framer-portal-id`]?void 0:Bl(this.state.visualElement.parent)),this.projection=this.state.visualElement.projection,this.projection.isPresent=!0,this.setOptions()}setOptions(){let e=this.state.options,{layoutId:t,layout:n,drag:r=!1,dragConstraints:i=!1}=e;this.projection?.setOptions({layout:n,layoutId:t,alwaysMeasureLayout:!!t||!!r||i&&Na(i),visualElement:this.state.visualElement,animationType:typeof e.layout==`string`?e.layout:`both`,layoutRoot:e.layoutRoot,layoutScroll:e.layoutScroll,crossfade:e.crossfade,onExitComplete:()=>{!this.projection?.isPresent&&this.state.options.layoutId&&!this.state.isExiting&&queueMicrotask(()=>{this.state.getFeature(`exit`)?.completeExitFromProjection()})}})}update(){this.setOptions()}mount(){this.projection?.mount(this.state.element)}};function Wl(e,t,n,r){return mc(e,t,Fl(n),r)}var Gl=new Set([`auto`,`scroll`]),Kl=class{constructor(e,t,{transformPagePoint:n,contextWindow:r,dragSnapToOrigin:i=!1,distanceThreshold:a=3,element:o}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.onElementScroll=e=>{this.handleScroll(e.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.hasPendingMove=!1,this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=ql(this.lastRawMoveEventInfo,this.transformPagePoint));let e=Yl(this.lastMoveEventInfo,this.history),t=this.startEvent!==null,n=ll(e.offset,{x:0,y:0})>=this.distanceThreshold;if(!t&&!n)return;let{point:r}=e;this.history.push({...r,timestamp:N.now()});let{onStart:i,onMove:a}=this.handlers;t||(i&&i(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),a&&a(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastRawMoveEventInfo=t,this.lastMoveEventInfo=ql(t,this.transformPagePoint),this.hasPendingMove=!0,B.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.hasPendingMove&&this.updatePoint(),this.end();let{onEnd:n,onSessionEnd:r,resumeAnimation:i}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let a=Yl(e.type===`pointercancel`?this.lastMoveEventInfo:ql(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,a),r&&r(e,a)},!_o(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=a,this.contextWindow=r||window;let s=ql(Pl(e),this.transformPagePoint),{point:c}=s,{timestamp:l}=M;this.history=[{...c,timestamp:l}];let{onSessionStart:u}=t;u&&u(e,Yl(s,this.history));let d={passive:!0,capture:!0};this.removeListeners=Fe(Wl(this.contextWindow,`pointermove`,this.handlePointerMove,d),Wl(this.contextWindow,`pointerup`,this.handlePointerUp,d),Wl(this.contextWindow,`pointercancel`,this.handlePointerUp,d)),o&&this.startScrollTracking(o)}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(Gl.has(e.overflowX)||Gl.has(e.overflowY))&&this.scrollPositions.set(t,{x:t.scrollLeft,y:t.scrollTop}),t=t.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener(`scroll`,this.onElementScroll,{capture:!0,passive:!0}),window.addEventListener(`scroll`,this.onWindowScroll,{passive:!0}),this.removeScrollListeners=()=>{window.removeEventListener(`scroll`,this.onElementScroll,{capture:!0}),window.removeEventListener(`scroll`,this.onWindowScroll)}}handleScroll(e){let t=this.scrollPositions.get(e);if(!t)return;let n=e===window,r=n?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},i={x:r.x-t.x,y:r.y-t.y};(i.x!==0||i.y!==0)&&(n?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(e,r),B.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners?.(),this.scrollPositions.clear(),V(this.updatePoint)}};function ql(e,t){return t?{point:t(e.point)}:e}function Jl(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Yl({point:e},t){return{point:e,delta:Jl(e,Zl(t)),offset:Jl(e,Xl(t)),velocity:Ql(t,.1)}}function Xl(e){return e[0]}function Zl(e){return e[e.length-1]}function Ql(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=Zl(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>A(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&i.timestamp-r.timestamp>A(t)*2&&(r=e[1]);let a=j(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};let o={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function $l(e){return(t,n)=>{e&&B.update(()=>e(t,n),!1,!0)}}var eu=class extends ${constructor(...e){super(...e),this.removePointerDownListener=k}static{this.key=`pan`}onPointerDown(e){this.session=new Kl(e,this.createPanHandlers(),{transformPagePoint:this.state.visualElement.getTransformPagePoint(),contextWindow:ul(this.state.visualElement)})}createPanHandlers(){return{onSessionStart:$l((e,t)=>{let{onPanSessionStart:n}=this.state.options;n&&n(e,t)}),onStart:$l((e,t)=>{let{onPanStart:n}=this.state.options;n&&n(e,t)}),onMove:$l((e,t)=>{let{onPan:n}=this.state.options;n&&n(e,t)}),onEnd:(e,t)=>{let{onPanEnd:n}=this.state.options;delete this.session,n&&B.postRender(()=>n(e,t))}}}mount(){this.removePointerDownListener=Wl(this.state.element,`pointerdown`,this.onPointerDown.bind(this))}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}};function tu(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?z(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?z(n,e,r.max):Math.min(e,n)),e}var nu=.35;function ru(e,{top:t,left:n,bottom:r,right:i}){return{x:iu(e.x,n,i),y:iu(e.y,t,r)}}function iu(e,t,n){return{min:t===void 0?void 0:e.min+t,max:n===void 0?void 0:e.max+n-(e.max-e.min)}}function au(e=nu){return e===!1?e=0:e===!0&&(e=nu),{x:ou(e,`left`,`right`),y:ou(e,`top`,`bottom`)}}function ou(e,t,n){return{min:su(e,t),max:su(e,n)}}function su(e,t){return typeof e==`number`?e:e[t]||0}function cu(e,t){let n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}function lu(e,t){return{x:uu(e.x,t.x),y:uu(e.y,t.y)}}function uu(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function du(e,t){let n=.5,r=X(e),i=X(t);return i>r?n=Ie(t.min,t.max-r,e.min):r>i&&(n=Ie(e.min,e.max-i,t.min)),D(0,1,n)}var fu=new WeakMap,pu=class{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=J(),this.latestPointerEvent=null,this.latestPanInfo=null,this.state=e}get visualElement(){return this.state.visualElement}start(e,{snapToCursor:t=!1,distanceThreshold:n}={}){if(this.state.isExiting)return;let r=e=>{t&&this.snapToCursor(e),this.stopAnimation()},i=(e,t)=>{this.stopAnimation();let{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();n&&!r&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=fo(n),!this.openGlobalLock)||(this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Z(e=>{let t=this.getAxisMotionValue(e).get()||0;if(F.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];r&&(t=X(r)*(parseFloat(t)/100))}}this.originPoint[e]=t}),i&&B.update(()=>i(e,t),!1,!0),ha(this.visualElement,`transform`),this.state.setActive(`whileDrag`,!0))},a=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:a}=this.getProps();if(!n&&!this.openGlobalLock)return;let{offset:o}=t;r&&this.currentDirection===null?(this.currentDirection=_u(o),this.currentDirection!==null&&i&&i(this.currentDirection)):(this.updateAxis(`x`,t.point,o),this.updateAxis(`y`,t.point,o),this.visualElement.render(),a&&B.update(()=>a(e,t),!1,!0))},o=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},s=()=>{let{dragSnapToOrigin:e}=this.getProps();(e||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:c}=this.getProps();this.panSession=new Kl(e,{onSessionStart:r,onStart:i,onMove:a,onSessionEnd:o,resumeAnimation:s},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,distanceThreshold:n,contextWindow:ul(this.visualElement),element:this.state.element})}stop(e,t){let n=e||this.latestPointerEvent,r=t||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!r||!n)return;let{velocity:a}=r;this.startAnimation(a);let{onDragEnd:o}=this.getProps();o&&B.postRender(()=>o(n,r))}cancel(){this.isDragging=!1;let{projection:e}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:t}=this.getProps();!t&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),this.state.setActive(`whileDrag`,!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!gu(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=tu(a,this.constraints[e],this.elastic[e])),i.set(a)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;e&&Na(e)?this.constraints||=this.resolveRefConstraints():this.constraints=e&&n?ru(n.layoutBox,e):!1,this.elastic=au(t),r!==this.constraints&&!Na(e)&&n&&this.constraints&&!this.hasMutatedConstraints&&Z(e=>{this.constraints!==!1&&this.getAxisMotionValue(e)&&(this.constraints[e]=cu(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){let{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!Na(e))return!1;let n=e,{projection:r}=this.visualElement;if(!r||!r.layout)return!1;r.root&&(r.root.scroll=void 0,r.root.updateScroll());let i=so(n,r.root,this.visualElement.getTransformPagePoint()),a=lu(r.layout.layoutBox,i);if(t){let e=t(Ua(a));this.hasMutatedConstraints=!!e,e&&(a=Ha(e))}return a}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:o}=this.getProps(),s=this.constraints||{},c=Z(o=>{if(!gu(o,t,this.currentDirection))return;let c=s&&s[o]||{};(a===!0||a===o)&&(c={min:0,max:0});let l=r?200:1e6,u=r?40:1e7,d={type:`inertia`,velocity:n?e[o]:0,bounceStiffness:l,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...i,...c};return this.startAxisValueAnimation(o,d)});return Promise.all(c).then(o)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return ha(this.visualElement,e),n.start(ta(e,n,0,t,this.visualElement,!1))}stopAnimation(){this.visualElement.projection?.isPresent&&Z(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`;return this.visualElement.getProps()[t]||this.visualElement.getValue(e,this.visualElement.latestValues[e]??0)}snapToCursor({clientX:e,clientY:t}){let{drag:n}=this.getProps(),r={x:e,y:t},i=this.visualElement.getTransformPagePoint()?.(r)||r,a=this.visualElement.measureViewportBox();Z(e=>{if(!gu(e,n,this.currentDirection))return;let t=this.getAxisMotionValue(e),{min:r,max:o}=a[e];t.set((t.get()||0)+i[e]-z(r,o,.5))})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!Na(t)||!n||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};Z(e=>{let t=this.getAxisMotionValue(e);if(t&&this.constraints!==!1){let n=t.get();r[e]=du({min:n,max:n},this.constraints[e])}});let{transformTemplate:i}=this.visualElement.getProps();this.state.element.style.transform=i?i({},``):`none`,n.root&&n.root.updateScroll(),n.updateLayout(),this.constraints=!1,this.resolveConstraints(),Z(t=>{let n=this.getAxisMotionValue(t);if(!gu(t,e,null)||!n.get())return;let{min:i,max:a}=this.constraints[t];n.set(z(i,a,r[t]))}),this.visualElement.render()}addListeners(){if(!this.state.element)return;fu.set(this.visualElement,this);let e=this.state.element,t=Wl(e,`pointerdown`,t=>{let{drag:n,dragListener:r=!0}=this.getProps(),i=t.target,a=i!==e&&xo(i);n&&r&&!a&&this.start(t)}),n,r=()=>{let{dragConstraints:t}=this.getProps();Na(t)&&(this.constraints=this.resolveRefConstraints(),n||=hu(e,t,()=>this.scalePositionWithinConstraints()))},{projection:i}=this.visualElement,a=i.addEventListener(`measure`,r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),B.read(r);let o=mc(window,`resize`,()=>this.scalePositionWithinConstraints()),s=i.addEventListener(`didUpdate`,(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(Z(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())}));return()=>{o(),t(),a(),s&&s(),n&&n()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:a=nu,dragMomentum:o=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:a,dragMomentum:o}}};function mu(e){let t=!0;return()=>{t?t=!1:e()}}function hu(e,t,n){let r=Ho(e,mu(n)),i=Ho(t,mu(n));return()=>{r(),i()}}function gu(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function _u(e,t=10){let n=null;return Math.abs(e.y)>t?n=`y`:Math.abs(e.x)>t&&(n=`x`),n}var vu={renderer:Nl,features:[jl,Ml,Il,Ll,Rl,zl,Ul,eu,class extends ${static{this.key=`drag`}constructor(e){super(e),this.removeGroupControls=k,this.removeListeners=k,this.controls=new pu(e)}mount(){let{dragControls:e}=this.state.options;e&&(this.removeGroupControls=e.subscribe(this.controls)),this.prevDragControls=e,this.removeListeners=this.controls.addListeners()||k}update(){let{dragControls:e}=this.state.options;e!==this.prevDragControls&&(this.removeGroupControls(),this.removeGroupControls=e?e.subscribe(this.controls):k,this.prevDragControls=e)}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}},class extends ${static{this.key=`layout`}constructor(e){super(e),ps(Vl)}updatePrevLead(e){let t=this.state.visualElement.projection;t.isPresent!==e&&(t.isPresent=e,e?!t.isLead()&&t?.promote():t.isLead()&&t?.relegate())}didUpdate(){(this.state.options.layout||this.state.options.layoutId||this.state.options.drag)&&this.state.visualElement.projection?.root?.didUpdate()}mount(){let e=this.state.options,t=this.state.options.layoutGroup;if(e.layout||e.layoutId){let n=this.state.visualElement.projection;if(e.layoutId){let e=!Al(this.state.element);n.isPresent=e,e?n?.promote():n?.relegate()}t?.group?.add(n),xc.hasEverUpdated=!0}this.didUpdate()}unmount(){let e=this.state.options.layoutGroup,t=this.state.visualElement.projection;t&&e?.group&&(this.state.options.layout||this.state.options.layoutId)&&e.group.remove(t)}getSnapshot(e){let t=this.state.visualElement.projection,{layout:n,layoutId:r,drag:i,layoutDependency:a}=this.state.visualElement.props,o=this.state.visualElement.prevProps;t&&(n||r||i)&&((i||o.layoutDependency!==a||a===void 0||e!==t.isPresent)&&t.willUpdate(),r&&this.updatePrevLead(e),this.didUpdate())}refreshRootScroll(){let e=this.state.visualElement?.projection?.root;e&&this.state.options.layoutId&&(e.scroll=void 0,e.updateScroll?.())}}]},[yu,bu]=De(`LazyMotionContext`),[xu,Su,Cu]=De(`AnimatePresenceContext`);function wu(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}function Tu(){return{transform:{},transformOrigin:{},style:{},vars:{}}}function Eu(){return{...Tu(),attrs:{}}}function Du(e,t){let n=Tu();Ia(n,e,t);let r={...n.style};r.transform===``&&delete r.transform;for(let e in n.vars)r[e]=n.vars[e];return Object.keys(r).length===0?null:r}function Ou(e,t,n){let r=Eu();Va(r,e,ys(t),void 0,n);let i={};for(let e in r.attrs){let t=vs.has(e)?e:wu(e);i[t]=r.attrs[e]}return{attrs:i,style:{...r.style,...r.vars}}}function ku(e,t={}){let n=fl(null),r=hl({}),a=Sl(),c=xu({}),l=yu({features:re({}),strict:!1}),u=s();function d(){return Oe(e,{layoutGroup:r,presenceContext:c,config:a.value})}function p(){return{...u,...d()}}let h=new kl(p(),n,t);pl(h),i(l.features,e=>{h.setBundle(e)},{immediate:!0,flush:`pre`});function _(){let t=h.type===`svg`,n={...u};Object.keys(u).forEach(e=>{G(u[e])&&(n[e]=u[e].get())});let r=h.visualElement?.latestValues||h.latestValues,i={...e.style,...t?{}:r};for(let e in i)G(i[e])&&(i[e]=i[e].get());if(t){let{attrs:t,style:a}=Ou({...r,...i},h.options.as,e.style);Object.assign(n,t),i=a}e.drag&&e.dragListener!==!1&&Object.assign(i,{userSelect:`none`,WebkitUserSelect:`none`,WebkitTouchCallout:`none`,touchAction:e.drag===!0?`none`:`pan-${e.drag===`x`?`y`:`x`}`});let a=Du(i,e.transformTemplate);return a&&(n.style=a),n}let v=o()?.proxy;function y(){let e=dl(v?.$el);h.mount(e)}b(()=>{h.updateOptions(p()),h.beforeUnmount()}),m(y);function x(){dl(v?.$el)?.isConnected||h.unmount()}return g(x),C(x),ee(()=>{h.isMounted()||y()}),f(()=>{h.updateOptions(p()),h.beforeUpdate()}),ne(()=>{h.update()}),{getProps:d,getAttrs:_,layoutGroup:r,state:h}}var Au={ignoreStrict:{type:Boolean},forwardMotionProps:{type:Boolean,default:!1},asChild:{type:Boolean,default:!1},whileDrag:{type:[String,Array,Object]},whileHover:{type:[String,Array,Object]},whilePress:{type:[String,Array,Object]},whileInView:{type:[String,Array,Object]},whileFocus:{type:[String,Array,Object]},custom:{type:[String,Number,Object,Array]},initial:{type:[String,Array,Object,Boolean],default:void 0},animate:{type:[String,Array,Object],default:void 0},exit:{type:[String,Array,Object]},variants:{type:Object},inherit:{type:Boolean,default:void 0},style:{type:Object},transformTemplate:{type:Function},transition:{type:Object},onAnimationComplete:{type:Function},onUpdate:{type:Function},layout:{type:[Boolean,String],default:!1},layoutId:{type:String,default:void 0},layoutScroll:{type:Boolean,default:!1},layoutRoot:{type:Boolean,default:!1},"data-framer-portal-id":{type:String},crossfade:{type:Boolean,default:!0},layoutDependency:{type:null,default:void 0},onBeforeLayoutMeasure:{type:Function},onLayoutMeasure:{type:Function},onLayoutAnimationStart:{type:Function},onLayoutAnimationComplete:{type:Function},globalPressTarget:{type:Boolean},onPressStart:{type:Function},onPress:{type:Function},onPressCancel:{type:Function},onHoverStart:{type:Function},onHoverEnd:{type:Function},inViewOptions:{type:Object},onViewportEnter:{type:Function},onViewportLeave:{type:Function},drag:{type:[Boolean,String]},dragSnapToOrigin:{type:[Boolean,String]},dragDirectionLock:{type:Boolean},dragPropagation:{type:Boolean},dragConstraints:{type:[Boolean,Object]},dragElastic:{type:[Boolean,Number,Object],default:.5},dragMomentum:{type:Boolean,default:!0},dragTransition:{type:Object},dragListener:{type:Boolean,default:!0},dragControls:{type:Object},onDragStart:{type:Function},onDragEnd:{type:Function},onDrag:{type:Function},onDirectionLock:{type:Function},onDragTransitionEnd:{type:Function},onMeasureDragConstraints:{type:Function},onPanSessionStart:{type:Function},onPanStart:{type:Function},onPan:{type:Function},onPanEnd:{type:Function}},ju=new Map,Mu=new Map;function Nu(e){if(!Array.isArray(e))return[e];let t=[];for(let n of e)Array.isArray(n)?t.push(...n):t.push(n);return t}var Pu=[`area`,`img`,`input`];function Fu(e,t,r){if(typeof e==`string`&&Pu.includes(e))return n(e,t);if(e===`template`){if(!r.default)return null;let e=Nu(r.default()),n=e.findIndex(e=>e.type!==T);if(n===-1)return e;let i=e[n];delete i.props?.ref;let a=i.props?h(t,i.props):t;t.class&&i.props?.class&&delete i.props.class;let o=y(i,a);for(let e in a)e.startsWith(`on`)&&(o.props||={},o.props[e]=a[e]);return e.length===1?o:(e[n]=o,e)}return null}function Iu(e,t={}){let r=typeof e==`string`,i=r?e:e.name||``,a=t.renderer?ju:Mu;if(r&&a.has(e))return a.get(e);let o=x({inheritAttrs:!1,props:{...Au,as:{type:[String,Object],default:e||`div`}},name:i?`motion.${i}`:`Motion`,setup(e,{slots:r}){let{getProps:i,getAttrs:a,state:o}=ku(e,t);function s(){let t=o.element;if((typeof e.as!=`object`||e.asChild)&&t){let{style:e}=a();if(e)for(let[n,r]of Object.entries(e))t.style[n]=r}}return()=>{let t=i(),o=a(),c=e.asChild?`template`:e.as,l={...e.forwardMotionProps?t:{},...o,onVnodeUpdated:s},u=Fu(c,l,r);return u===null?n(c,{...l},r):u}}});return r&&a.set(e,o),o}function Lu(e){return new Proxy({},{get(t,n){return n===`create`?(t,n)=>Iu(t,{...n,...e}):Iu(n,{...e})}})}var Ru=Lu(vu).create(`div`),zu=0;function Bu(e){let t=new Map;function n(t){if(e.props.mode!==`popLayout`)return;let n=t.el,r=n.offsetParent,i=r instanceof HTMLElement&&r.offsetWidth||0,a={height:n.offsetHeight||0,width:n.offsetWidth||0,top:n.offsetTop,left:n.offsetLeft,right:0};a.right=i-a.width-a.left;let o=e.props.anchorX===`left`?`left: ${a.left}px`:`right: ${a.right}px`,s=`pop-${zu++}`;n.dataset.motionPopId=s;let c=n.ownerDocument,l=c.createElement(`style`),u=e.getNonce();u&&(l.nonce=u),t.popStyle=l,c.head.appendChild(l),l.sheet&&l.sheet.insertRule(`
|
|
2
|
+
[data-motion-pop-id="${s}"] {
|
|
3
|
+
position: absolute !important;
|
|
4
|
+
width: ${a.width}px !important;
|
|
5
|
+
height: ${a.height}px !important;
|
|
6
|
+
top: ${a.top}px !important;
|
|
7
|
+
${o} !important;
|
|
8
|
+
}
|
|
9
|
+
`)}function r(e){let t=e.popStyle;t&&(e.popStyle=void 0,B.render(()=>{t.parentNode?.removeChild(t)}))}function i(e,r,i,a=[]){let s={el:e,states:r,handlers:a,done:i,aborted:!1};t.set(e,s),n(s);let c=r.map(e=>e.getFeature(`exit`)?.exit()??Promise.resolve());for(let e of a)c.push(Promise.resolve(e.onExit()));Promise.all(c).then(()=>{s.aborted||o(s)})}function a(e){let n=t.get(e);n&&(n.aborted=!0,t.delete(e),r(n),n.handlers.forEach(e=>e.onEnter?.()))}function o(n){t.delete(n.el),r(n),n.states.forEach(e=>{e.getSnapshot(!1)}),n.done(),n.el.isConnected||n.states.forEach(e=>{e.unmount()}),e.onAllComplete()}function s(){t.forEach(e=>{e.states.forEach(e=>{e.unmount()})}),t.clear()}return{track:i,abort:a,dispose:s}}function Vu(e){let t=Sl(),n=Bu({props:e,getNonce:()=>t.value.nonce,onAllComplete:()=>e.onExitComplete?.()}),r=new Set,i=new Set,a=!1;Su({get initial(){return a?void 0:e.initial},get custom(){return e.custom},register:e=>r.add(e),unregister:e=>r.delete(e),registerHandler:e=>i.add(e),unregisterHandler:e=>i.delete(e)}),m(()=>{a=!0});function o(e){let t=[];for(let n of r){let r=n.element;r&&(r===e||e.contains(r))&&t.push(n)}return t}function s(e){let t=[];for(let n of i){let r=n.element();r&&(r===e||e.contains(r))&&t.push(n)}return t}function c(e,t){n.abort(e),o(e).forEach(e=>{e.getFeature(`exit`)?.reenter()}),t()}function l(t,r){let i=t,a=o(i),c=s(i);a.length===0&&c.length===0?(r(),e.onExitComplete?.()):n.track(i,a,r,c)}return g(()=>{n.dispose()}),{enter:c,exit:l}}var Hu=x({name:`AnimatePresence`,inheritAttrs:!0,__name:`AnimatePresence`,props:{mode:{default:`sync`},initial:{type:Boolean,default:!0},as:{},custom:{},onExitComplete:{},anchorX:{default:`left`}},setup(e){let t=e,{enter:n,exit:r}=Vu(t),i=_(()=>t.mode===`wait`?{mode:t.mode===`wait`?`out-in`:void 0}:{tag:t.as});return(t,a)=>(S(),E(ie(e.mode===`wait`?le:ce),h(i.value,{appear:``,css:!1,onLeave:c(r),onEnter:c(n)}),{default:w(()=>[ae(t.$slots,`default`)]),_:3},16,[`onLeave`,`onEnter`]))}}),Uu={slots:{base:`rounded-md`,overlay:`fixed inset-0 bg-default/75 backdrop-blur-sm`,content:`fixed inset-0 flex items-center justify-center cursor-zoom-out focus:outline-none`,zoomedImage:`w-full h-auto max-w-[95vw] max-h-[95vh] object-contain rounded-md`},variants:{zoom:{true:`will-change-transform`},open:{true:``},width:{false:`w-full`}},compoundVariants:[{zoom:!0,open:!1,class:`cursor-zoom-in`}]},Wu=[`onClick`],Gu=Object.assign({inheritAttrs:!1},{__name:`ProseImg`,props:{src:{type:String,required:!0},alt:{type:String,required:!0},width:{type:[String,Number],required:!1},height:{type:[String,Number],required:!1},class:{type:null,required:!1},zoom:{type:Boolean,required:!1,default:!0},ui:{type:Object,required:!1}},setup(t){let n=pe(`prose.img`,t),i=de(),[a,o]=ve(),[s,u]=ve(),f=re(!1),m=_(()=>he({extend:Uu,...i.ui?.prose?.img||{}})({zoom:n.zoom,open:f.value,width:!!n.width})),g=_(()=>me(n.src,e().app.baseURL)),v=_(()=>`${g.value}::${l()}`);return n.zoom&&(_e(window,`scroll`,()=>{f.value=!1}),_e(window,`keydown`,e=>{e.key===`Escape`&&f.value&&(f.value=!1)})),(e,t)=>(S(),p(te,null,[r(c(a),null,{default:w(()=>[(S(),E(ie(c(`img`)),h({src:g.value,alt:c(n).alt,width:c(n).width,height:c(n).height},e.$attrs,{class:m.value.base({class:[c(n).ui?.base,c(n).class]})}),null,16,[`src`,`alt`,`width`,`height`,`class`]))]),_:1}),r(c(s),null,{default:w(()=>[(S(),E(ie(c(`img`)),h({src:g.value,alt:c(n).alt},e.$attrs,{class:m.value.zoomedImage({class:[c(n).ui?.zoomedImage]})}),null,16,[`src`,`alt`,`class`]))]),_:1}),c(n).zoom?(S(),E(c(we),{key:0,open:f.value,"onUpdate:open":t[0]||=e=>f.value=e,modal:!1},{default:w(({close:e})=>[r(c(Ee),{"as-child":``},{default:w(()=>[r(c(Ru),{"layout-id":v.value,"as-child":``,transition:{type:`spring`,bounce:.15,duration:.5,ease:`easeInOut`}},{default:w(()=>[r(c(o))]),_:1},8,[`layout-id`])]),_:1}),r(c(Te),null,{default:w(()=>[r(c(Hu),null,{default:w(()=>[f.value?(S(),E(c(Ru),{key:0,initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},class:d(m.value.overlay({class:[c(n).ui?.overlay]}))},null,8,[`class`])):oe(``,!0),f.value?(S(),p(`div`,{key:1,class:d(m.value.content({class:[c(n).ui?.content]})),onClick:e},[r(c(Ru),{"as-child":``,"layout-id":v.value,transition:{type:`spring`,bounce:.15,duration:.5,ease:`easeInOut`}},{default:w(()=>[r(c(u))]),_:1},8,[`layout-id`])],10,Wu)):oe(``,!0)]),_:2},1024)]),_:2},1024)]),_:1},8,[`open`])):(S(),E(c(o),{key:1}))],64))}});export{Gu as default};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{An as e,B as t,Bn as n,C as r,Cn as i,D as a,Fn as o,Gn as s,Hn as c,Ht as l,In as u,Jn as d,Kn as f,L as p,Ln as m,Mn as ee,Nn as h,On as te,Ot as g,Pn as ne,Qn as _,R as v,Rn as y,Tt as b,Un as x,Vn as re,Wn as S,Xn as C,Yn as w,at as ie,c as ae,ct as oe,ft as se,jn as T,k as ce,kn as le,n as ue,o as de,p as fe,pt as pe,qn as me,rr as he,t as ge,tt as _e,vt as ve,x as ye,zn as be,zt as xe}from"./DZo3dYLJ.js";var E=void 0,Se=typeof window<`u`&&window.trustedTypes;if(Se)try{E=Se.createPolicy(`vue`,{createHTML:e=>e})}catch{}var Ce=E?e=>E.createHTML(e):e=>e,we=`http://www.w3.org/2000/svg`,Te=`http://www.w3.org/1998/Math/MathML`,D=typeof document<`u`?document:null,Ee=D&&D.createElement(`template`),De={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{let t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{let i=t===`svg`?D.createElementNS(we,e):t===`mathml`?D.createElementNS(Te,e):n?D.createElement(e,{is:n}):D.createElement(e);return e===`select`&&r&&r.multiple!=null&&i.setAttribute(`multiple`,r.multiple),i},createText:e=>D.createTextNode(e),createComment:e=>D.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>D.querySelector(e),setScopeId(e,t){e.setAttribute(t,``)},insertStaticContent(e,t,n,r,i,a){let o=n?n.previousSibling:t.lastChild;if(i&&(i===a||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),i!==a&&(i=i.nextSibling););else{Ee.innerHTML=Ce(r===`svg`?`<svg>${e}</svg>`:r===`mathml`?`<math>${e}</math>`:e);let i=Ee.content;if(r===`svg`||r===`mathml`){let e=i.firstChild;for(;e.firstChild;)i.appendChild(e.firstChild);i.removeChild(e)}t.insertBefore(i,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},O=`transition`,k=`animation`,A=Symbol(`_vtc`),Oe={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},ke=h({},ue,Oe),Ae=(e=>(e.displayName=`Transition`,e.props=ke,e))((e,{slots:n})=>t(ge,Me(e),n)),j=(e,t=[])=>{y(e)?e.forEach(e=>e(...t)):e&&e(...t)},je=e=>e?y(e)?e.some(e=>e.length>1):e.length>1:!1;function Me(e){let t={};for(let n in e)n in Oe||(t[n]=e[n]);if(e.css===!1)return t;let{name:n=`v`,type:r,duration:i,enterFromClass:a=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:s=`${n}-enter-to`,appearFromClass:c=a,appearActiveClass:l=o,appearToClass:u=s,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:f=`${n}-leave-active`,leaveToClass:p=`${n}-leave-to`}=e,m=Ne(i),ee=m&&m[0],te=m&&m[1],{onBeforeEnter:g,onEnter:ne,onEnterCancelled:_,onLeave:v,onLeaveCancelled:y,onBeforeAppear:b=g,onAppear:x=ne,onAppearCancelled:re=_}=t,S=(e,t,n,r)=>{e._enterCancelled=r,P(e,t?u:s),P(e,t?l:o),n&&n()},C=(e,t)=>{e._isLeaving=!1,P(e,d),P(e,p),P(e,f),t&&t()},w=e=>(t,n)=>{let i=e?x:ne,o=()=>S(t,e,n);j(i,[t,o]),Pe(()=>{P(t,e?c:a),N(t,e?u:s),je(i)||Ie(t,r,ee,o)})};return h(t,{onBeforeEnter(e){j(g,[e]),N(e,a),N(e,o)},onBeforeAppear(e){j(b,[e]),N(e,c),N(e,l)},onEnter:w(!1),onAppear:w(!0),onLeave(e,t){e._isLeaving=!0;let n=()=>C(e,t);N(e,d),e._enterCancelled?(N(e,f),Be(e)):(Be(e),N(e,f)),Pe(()=>{e._isLeaving&&(P(e,d),N(e,p),je(v)||Ie(e,r,te,n))}),j(v,[e,n])},onEnterCancelled(e){S(e,!1,void 0,!0),j(_,[e])},onAppearCancelled(e){S(e,!0,void 0,!0),j(re,[e])},onLeaveCancelled(e){C(e),j(y,[e])}})}function Ne(e){if(e==null)return null;if(re(e))return[M(e.enter),M(e.leave)];{let t=M(e);return[t,t]}}function M(e){return he(e)}function N(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.add(t)),(e[A]||(e[A]=new Set)).add(t)}function P(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.remove(t));let n=e[A];n&&(n.delete(t),n.size||(e[A]=void 0))}function Pe(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}var Fe=0;function Ie(e,t,n,r){let i=e._endId=++Fe,a=()=>{i===e._endId&&r()};if(n!=null)return setTimeout(a,n);let{type:o,timeout:s,propCount:c}=Le(e,t);if(!o)return r();let l=o+`end`,u=0,d=()=>{e.removeEventListener(l,f),a()},f=t=>{t.target===e&&++u>=c&&d()};setTimeout(()=>{u<c&&d()},s+1),e.addEventListener(l,f)}function Le(e,t){let n=window.getComputedStyle(e),r=e=>(n[e]||``).split(`, `),i=r(`${O}Delay`),a=r(`${O}Duration`),o=Re(i,a),s=r(`${k}Delay`),c=r(`${k}Duration`),l=Re(s,c),u=null,d=0,f=0;t===O?o>0&&(u=O,d=o,f=a.length):t===k?l>0&&(u=k,d=l,f=c.length):(d=Math.max(o,l),u=d>0?o>l?O:k:null,f=u?u===O?a.length:c.length:0);let p=u===O&&/\b(?:transform|all)(?:,|$)/.test(r(`${O}Property`).toString());return{type:u,timeout:d,propCount:f,hasTransform:p}}function Re(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((t,n)=>ze(t)+ze(e[n])))}function ze(e){return e===`auto`?0:Number(e.slice(0,-1).replace(`,`,`.`))*1e3}function Be(e){return(e?e.ownerDocument:document).body.offsetHeight}function Ve(e,t,n){let r=e[A];r&&(t=(t?[t,...r]:[...r]).join(` `)),t==null?e.removeAttribute(`class`):n?e.setAttribute(`class`,t):e.className=t}var F=Symbol(`_vod`),I=Symbol(`_vsh`),He={name:`show`,beforeMount(e,{value:t},{transition:n}){e[F]=e.style.display===`none`?``:e.style.display,n&&t?n.beforeEnter(e):L(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),L(e,!0),r.enter(e)):r.leave(e,()=>{L(e,!1)}):L(e,t))},beforeUnmount(e,{value:t}){L(e,t)}};function L(e,t){e.style.display=t?e[F]:`none`,e[I]=!t}function Ue(){He.getSSRProps=({value:e})=>{if(!e)return{style:{display:`none`}}}}var We=Symbol(``);function Ge(t){let n=p();if(!n)return;let r=n.ut=(e=t(n.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${n.uid}"]`)).forEach(t=>z(t,e))},i=()=>{let e=t(n.proxy);n.ce?z(n.ce,e):R(n.subTree,e),r(e)};ie(()=>{ve(i)}),oe(()=>{l(i,e,{flush:`post`});let t=new MutationObserver(i);t.observe(n.subTree.el.parentNode,{childList:!0}),se(()=>t.disconnect())})}function R(e,t){if(e.shapeFlag&128){let n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{R(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)z(e.el,t);else if(e.type===de)e.children.forEach(e=>R(e,t));else if(e.type===ae){let{el:n,anchor:r}=e;for(;n&&(z(n,t),n!==r);)n=n.nextSibling}}function z(e,t){if(e.nodeType===1){let n=e.style,r=``;for(let e in t){let i=_(t[e]);n.setProperty(`--${e}`,i),r+=`--${e}: ${i};`}n[We]=r}}var Ke=/(?:^|;)\s*display\s*:/;function qe(e,t,n){let r=e.style,i=f(n),a=!1;if(n&&!i){if(t){if(f(t))for(let e of t.split(`;`)){let t=e.slice(0,e.indexOf(`:`)).trim();n[t]??V(r,t,``)}else for(let e in t)n[e]??V(r,e,``)}for(let i in n){i===`display`&&(a=!0);let o=n[i];o==null?V(r,i,``):Ze(e,i,!f(t)&&t?t[i]:void 0,o)||V(r,i,o)}}else if(i){if(t!==n){let e=r[We];e&&(n+=`;`+e),r.cssText=n,a=Ke.test(n)}}else t&&e.removeAttribute(`style`);F in e&&(i&&t===n||(e[F]=a?r.display:``),e[I]&&(r.display=`none`))}var B=/\s*!important$/;function V(e,t,n){if(y(n))n.forEach(n=>V(e,t,n));else if(n??=``,t.startsWith(`--`))B.test(n)?e.setProperty(t,n.replace(B,``),`important`):e.setProperty(t,n);else{let r=Xe(e,t);B.test(n)?e.setProperty(o(r),n.replace(B,``),`important`):e[r]=n}}var Je=[`Webkit`,`Moz`,`ms`],Ye={};function Xe(e,t){let n=Ye[t];if(n)return n;let r=T(t);if(r!==`filter`&&r in e)return Ye[t]=r;r=ee(r);for(let n=0;n<Je.length;n++){let i=Je[n]+r;if(i in e)return Ye[t]=i}return t}function Ze(e,t,n,r){return e.tagName===`TEXTAREA`&&(t===`width`||t===`height`)&&f(r)&&n===r}var Qe=`http://www.w3.org/1999/xlink`;function $e(e,t,n,r,i,a=s(t)){r&&t.startsWith(`xlink:`)?n==null?e.removeAttributeNS(Qe,t.slice(6,t.length)):e.setAttributeNS(Qe,t,n):n==null||a&&!u(n)?e.removeAttribute(t):e.setAttribute(t,a?``:me(n)?String(n):n)}function et(e,t,n,r,i){if(t===`innerHTML`||t===`textContent`){n!=null&&(e[t]=t===`innerHTML`?Ce(n):n);return}let a=e.tagName;if(t===`value`&&a!==`PROGRESS`&&!a.includes(`-`)){let r=a===`OPTION`?e.getAttribute(`value`)||``:e.value,i=n==null?e.type===`checkbox`?`on`:``:String(n);r===i&&`_value`in e||(e.value=i),n??e.removeAttribute(t),e._value=n;return}let o=!1;if(n===``||n==null){let r=typeof e[t];r===`boolean`?n=u(n):n==null&&r===`string`?(n=``,o=!0):r===`number`&&(n=0,o=!0)}try{e[t]=n}catch{}o&&e.removeAttribute(i||t)}function H(e,t,n,r){e.addEventListener(t,n,r)}function tt(e,t,n,r){e.removeEventListener(t,n,r)}var nt=Symbol(`_vei`);function rt(e,t,n,r,i=null){let a=e[nt]||(e[nt]={}),o=a[t];if(r&&o)o.value=r;else{let[n,s]=ot(t);r?H(e,n,a[t]=ut(r,i),s):o&&(tt(e,n,o,s),a[t]=void 0)}}var it=/(Once|Passive|Capture)$/,at=/^on:?(?:Once|Passive|Capture)$/;function ot(e){let t,n;for(;(n=e.match(it))&&!at.test(e);)t||={},e=e.slice(0,e.length-n[1].length),t[n[1].toLowerCase()]=!0;return[e[2]===`:`?e.slice(3):o(e.slice(2)),t]}var st=0,ct=Promise.resolve(),lt=()=>st||=(ct.then(()=>st=0),Date.now());function ut(e,t){let n=e=>{if(!e._vts)e._vts=Date.now();else if(e._vts<=n.attached)return;let r=n.value;if(y(r)){let n=e.stopImmediatePropagation;e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0};let i=r.slice(),a=[e];for(let n=0;n<i.length&&!e._stopped;n++){let e=i[n];e&&fe(e,t,5,a)}}else fe(r,t,5,[e])};return n.value=e,n.attached=lt(),n}var dt=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,ft=(e,t,r,i,a,o)=>{let s=a===`svg`;t===`class`?Ve(e,i,s):t===`style`?qe(e,r,i):c(t)?n(t)||rt(e,t,r,i,o):(t[0]===`.`?(t=t.slice(1),1):t[0]===`^`?(t=t.slice(1),0):pt(e,t,i,s))?(et(e,t,i),e.tagName.includes(`-`)||t!==`value`&&t!==`checked`&&t!==`selected`||$e(e,t,i,s,o,t!==`value`)):e._isVueCE&&(mt(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!f(i)))?et(e,T(t),i,o,t):(t===`true-value`?e._trueValue=i:t===`false-value`&&(e._falseValue=i),$e(e,t,i,s))};function pt(e,t,n,r){if(r)return!!(t===`innerHTML`||t===`textContent`||t in e&&dt(t)&&be(n));if(t===`spellcheck`||t===`draggable`||t===`translate`||t===`autocorrect`||t===`sandbox`&&e.tagName===`IFRAME`||t===`form`||t===`list`&&e.tagName===`INPUT`||t===`type`&&e.tagName===`TEXTAREA`)return!1;if(t===`width`||t===`height`){let t=e.tagName;if(t===`IMG`||t===`VIDEO`||t===`CANVAS`||t===`SOURCE`)return!1}return dt(t)&&f(n)?!1:t in e}function mt(e,t){let n=e._def.props;if(!n)return!1;let r=T(t);return Array.isArray(n)?n.some(e=>T(e)===r):Object.keys(n).some(e=>T(e)===r)}var ht={};function gt(e,t,n){let r=ce(e,t);x(r)&&(r=h({},r,t));class i extends yt{constructor(e){super(r,e,n)}}return i.def=r,i}var _t=((e,t)=>gt(e,t,on)),vt=typeof HTMLElement<`u`?HTMLElement:class{},yt=class e extends vt{constructor(e,t={},n=an){super(),this._def=e,this._props=t,this._createApp=n,this._isVueCE=!0,this._instance=null,this._app=null,this._nonce=this._def.nonce,this._connected=!1,this._resolved=!1,this._patching=!1,this._dirty=!1,this._numberProps=null,this._styleChildren=new WeakSet,this._styleAnchors=new WeakMap,this._ob=null,this.shadowRoot&&n!==an?this._root=this.shadowRoot:e.shadowRoot===!1?this._root=this:(this.attachShadow(h({},e.shadowRootOptions,{mode:`open`})),this._root=this.shadowRoot)}connectedCallback(){if(!this.isConnected)return;!this.shadowRoot&&!this._resolved&&this._parseSlots(),this._connected=!0;let t=this;for(;t&&=t.assignedSlot||t.parentNode||t.host;)if(t instanceof e){this._parent=t;break}this._instance||(this._resolved?this._mount(this._def):t&&t._pendingResolve?this._pendingResolve=t._pendingResolve.then(()=>{if(this._pendingResolve=void 0,this.isConnected)return this._resolveDef()}):this._resolveDef())}_setParent(e=this._parent){e&&(this._instance.parent=e._instance,this._inheritParentContext(e))}_inheritParentContext(e=this._parent){e&&this._app&&Object.setPrototypeOf(this._app._context.provides,e._instance.provides)}disconnectedCallback(){this._connected=!1,_e(()=>{this._connected||(this._ob&&=(this._ob.disconnect(),null),this._app&&this._app.unmount(),this._instance&&(this._instance.ce=void 0),this._app=this._instance=null,this._teleportTargets&&=(this._teleportTargets.clear(),void 0))})}_processMutations(e){for(let t of e)this._setAttr(t.attributeName)}_resolveDef(){if(this._pendingResolve)return this._pendingResolve;for(let e=0;e<this.attributes.length;e++)this._setAttr(this.attributes[e].name);this._ob=new MutationObserver(this._processMutations.bind(this)),this._ob.observe(this,{attributes:!0});let e=(e,t=!1)=>{this._resolved=!0,this._pendingResolve=void 0;let{props:n,styles:r}=e,i;if(n&&!y(n))for(let e in n){let t=n[e];(t===Number||t&&t.type===Number)&&(e in this._props&&(this._props[e]=he(this._props[e])),(i||=Object.create(null))[T(e)]=!0)}this._numberProps=i,this._resolveProps(e),this.shadowRoot&&this._applyStyles(r),this._connected&&this._mount(e)},t=this._def.__asyncLoader;if(t)return this._pendingResolve=t().then(t=>{t.configureApp=this._def.configureApp,e(this._def=t,!0)}),this._pendingResolve;e(this._def)}_mount(e){this._app=this._createApp(e),this._inheritParentContext(),e.configureApp&&e.configureApp(this._app),this._app._ceVNode=this._createVNode(),this._app.mount(this._root);let t=this._instance&&this._instance.exposed;if(t)for(let e in t)ne(this,e)||Object.defineProperty(this,e,{get:()=>te(t[e])})}_resolveProps(e){let{props:t}=e,n=y(t)?t:Object.keys(t||{});for(let e of Object.keys(this))e[0]!==`_`&&n.includes(e)&&this._setProp(e,this[e]);for(let e of n.map(T))Object.defineProperty(this,e,{get(){return this._getProp(e)},set(t){this._setProp(e,t,!0,!this._patching)}})}_setAttr(e){if(e.startsWith(`data-v-`))return;let t=this.hasAttribute(e),n=t?this.getAttribute(e):ht,r=T(e);t&&this._numberProps&&this._numberProps[r]&&(n=he(n)),this._setProp(r,n,!1,!0)}_getProp(e){return this._props[e]}_setProp(e,t,n=!0,r=!1){if(t!==this._props[e]&&(this._dirty=!0,t===ht?delete this._props[e]:(this._props[e]=t,e===`key`&&this._app&&(this._app._ceVNode.key=t)),r&&this._instance&&this._update(),n)){let n=this._ob;n&&(this._processMutations(n.takeRecords()),n.disconnect()),t===!0?this.setAttribute(o(e),``):typeof t==`string`||typeof t==`number`?this.setAttribute(o(e),t+``):t||this.removeAttribute(o(e)),n&&n.observe(this,{attributes:!0})}}_update(){let e=this._createVNode();this._app&&(e.appContext=this._app._context),nn(e,this._root)}_createVNode(){let e={};this.shadowRoot||(e.onVnodeMounted=e.onVnodeUpdated=this._renderSlots.bind(this));let t=a(this._def,h(e,this._props));return this._instance||(t.ce=e=>{this._instance=e,e.ce=this,e.isCE=!0;let t=(e,t)=>{this.dispatchEvent(new CustomEvent(e,x(t[0])?h({detail:t},t[0]):{detail:t}))};e.emit=(e,...n)=>{t(e,n),o(e)!==e&&t(o(e),n)},this._setParent()}),t}_applyStyles(e,t,n){if(!e)return;if(t){if(t===this._def||this._styleChildren.has(t))return;this._styleChildren.add(t)}let r=this._nonce,i=this.shadowRoot,a=n?this._getStyleAnchor(n)||this._getStyleAnchor(this._def):this._getRootStyleInsertionAnchor(i),o=null;for(let s=e.length-1;s>=0;s--){let c=document.createElement(`style`);r&&c.setAttribute(`nonce`,r),c.textContent=e[s],i.insertBefore(c,o||a),o=c,s===0&&(n||this._styleAnchors.set(this._def,c),t&&this._styleAnchors.set(t,c))}}_getStyleAnchor(e){if(!e)return null;let t=this._styleAnchors.get(e);return t&&t.parentNode===this.shadowRoot?t:(t&&this._styleAnchors.delete(e),null)}_getRootStyleInsertionAnchor(e){for(let t=0;t<e.childNodes.length;t++){let n=e.childNodes[t];if(!(n instanceof HTMLStyleElement))return n}return null}_parseSlots(){let e=this._slots={},t;for(;t=this.firstChild;){let n=t.nodeType===1&&t.getAttribute(`slot`)||`default`;(e[n]||(e[n]=[])).push(t),this.removeChild(t)}}_renderSlots(){let e=this._getSlots(),t=this._instance.type.__scopeId;for(let n=0;n<e.length;n++){let r=e[n],i=r.getAttribute(`name`)||`default`,a=this._slots[i],o=r.parentNode;if(a)for(let e of a){if(t&&e.nodeType===1){let n=t+`-s`,r=document.createTreeWalker(e,1);e.setAttribute(n,``);let i;for(;i=r.nextNode();)i.setAttribute(n,``)}o.insertBefore(e,r)}else for(;r.firstChild;)o.insertBefore(r.firstChild,r);o.removeChild(r)}}_getSlots(){let e=[this];this._teleportTargets&&e.push(...this._teleportTargets);let t=new Set;for(let n of e){let e=n.querySelectorAll(`slot`);for(let n=0;n<e.length;n++)t.add(e[n])}return Array.from(t)}_injectChildStyle(e,t){this._applyStyles(e.styles,e,t)}_beginPatch(){this._patching=!0,this._dirty=!1}_endPatch(){this._patching=!1,this._dirty&&this._instance&&this._update()}_hasShadowRoot(){return this._def.shadowRoot!==!1}_removeChildStyle(e){}};function bt(e){let t=p();return t&&t.ce||null}function xt(){let e=bt();return e&&e.shadowRoot}function St(e=`$style`){{let t=p();if(!t)return le;let n=t.type.__cssModules;return n&&n[e]||le}}var Ct=new WeakMap,wt=new WeakMap,U=Symbol(`_moveCb`),Tt=Symbol(`_enterCb`),W=new WeakMap,Et=(e=>(delete e.props.mode,e))({name:`TransitionGroup`,props:h({},ke,{tag:String,moveClass:String}),setup(e,{slots:t}){let n=p(),r=xe(),o,s,c,l,u=()=>(l===void 0&&(l=o.length>0&&Pt(o[0].el,n.vnode.el,Ot(e))),l);return pe(()=>{if(W.delete(n),!u()){o=[],c=void 0;return}let t=Ot(e);o.forEach(Dt);let r=c&&Nt(c,n.vnode.el);c=void 0,o.forEach(e=>kt(e,r));let i=o.filter(At);Be(n.vnode.el),i.forEach(e=>{let n=e.el,r=n.style;N(n,t),r.transform=r.webkitTransform=r.transitionDuration=``;let i=n[U]=e=>{e&&e.target!==n||(!e||e.propertyName.endsWith(`transform`))&&(n.removeEventListener(`transitionend`,i),n[U]=null,P(n,t))};n.addEventListener(`transitionend`,i)}),o=[]}),()=>{let d=i(e),f=Me(d),p=d.tag||de;if(o=[],l=void 0,s)for(let e=0;e<s.length;e++){let t=s[e];t.el&&t.el instanceof Element&&!t.el[I]&&(o.push(t),g(t,b(t,f,r,n)),Ct.set(t,G(t.el)))}s=t.default?v(t.default()):[];for(let e=0;e<s.length;e++){let t=s[e];t.key!=null&&g(t,b(t,f,r,n))}return o.length&&(c=jt(n),W.set(n,u)),a(p,null,s)}}});function Dt(e){let t=e.el;t[U]&&t[U](),t[Tt]&&t[Tt]()}function Ot(e){return e.moveClass||`${e.name||`v`}-move`}function kt(e,t){wt.set(e,G(e.el,t))}function At(e){let t=Ct.get(e),n=wt.get(e),r=t.left-n.left,i=t.top-n.top;if(r||i){let t=e.el,n=t.style,a=t.getBoundingClientRect(),o=1,s=1;return t.offsetWidth&&(o=a.width/t.offsetWidth),t.offsetHeight&&(s=a.height/t.offsetHeight),Number.isFinite(o)&&o!==0||(o=1),Number.isFinite(s)&&s!==0||(s=1),Math.abs(o-1)<.01&&(o=1),Math.abs(s-1)<.01&&(s=1),n.transform=n.webkitTransform=`translate(${r/o}px,${i/s}px)`,n.transitionDuration=`0s`,e}}function G(e,t){let n=e.getBoundingClientRect();return{left:n.left-(t?t.left:0),top:n.top-(t?t.top:0)}}function jt(e){let t;for(let n=e.parent;n;n=n.parent){let r=W.get(n);if(r){let i=Mt(n.vnode.el,e.vnode.el);i&&(t||=[]).push(h(G(i),{item:i,willMove:r}))}}return t}function Mt(e,t){let n=e.nodeType===1?e:e.parentNode;for(;t&&t.parentNode!==n;)t=t.parentNode;if(t&&t.nodeType===1)return t}function Nt(e,t){let n=e.find(e=>e.willMove()&&e.item.contains(t));return n&&G(n.item,n)}function Pt(e,t,n){let r=e.cloneNode(),i=e[A];i&&i.forEach(e=>{e.split(/\s+/).forEach(e=>e&&r.classList.remove(e))}),n.split(/\s+/).forEach(e=>e&&r.classList.add(e)),r.style.display=`none`;let a=t.nodeType===1?t:t.parentNode;a.appendChild(r);let{hasTransform:o}=Le(r);return a.removeChild(r),o}var K=e=>{let t=e.props[`onUpdate:modelValue`]||!1;return y(t)?e=>m(t,e):t};function Ft(e){e.target.composing=!0}function It(e){let t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event(`input`)))}var q=Symbol(`_assign`),J=Symbol(`_initialValue`);function Y(e,t,n){return t&&(e=e.trim()),n&&(e=C(e)),e}var X={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e.parentNode&&(e.type===`text`?e[J]=e.defaultValue.replace(/[\r\n]/g,``):e.type===`textarea`&&(e[J]=e.defaultValue.replace(/\r\n?/g,`
|
|
2
|
+
`))),e[q]=K(i);let a=r||i.props&&i.props.type===`number`;H(e,t?`change`:`input`,t=>{t.target.composing||e[q](Y(e.value,n,a))}),(n||a)&&H(e,`change`,()=>{e.value=Y(e.value,n,a)}),t||(H(e,`compositionstart`,Ft),H(e,`compositionend`,It),H(e,`change`,It))},mounted(e,{value:t,modifiers:{trim:n,number:r}}){let i=t??``,a=e[J];delete e[J],a!==void 0&&(e.type===`text`||e.type===`textarea`)&&e.value!==a?e[q](Y(e.value,n,r)):e.value=i},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:i,number:a}},o){if(e[q]=K(o),e.composing)return;let s=(a||e.type===`number`)&&!/^0\d/.test(e.value)?C(e.value):e.value,c=t??``;if(s===c)return;let l=e.getRootNode();(l instanceof Document||l instanceof ShadowRoot)&&l.activeElement===e&&e.type!==`range`&&(r&&t===n||i&&e.value.trim()===c)||(e.value=c)}},Lt={deep:!0,created(e,t,n){e[q]=K(n),H(e,`change`,()=>{let t=e._modelValue,n=Z(e),r=e.checked,i=e[q];if(y(t)){let e=w(t,n),a=e!==-1;if(r&&!a)i(t.concat(n));else if(!r&&a){let n=[...t];n.splice(e,1),i(n)}}else if(S(t)){let e=new Set(t);r?e.add(n):e.delete(n),i(e)}else i(Ut(e,r))})},mounted:Rt,beforeUpdate(e,t,n){e[q]=K(n),Rt(e,t,n)}};function Rt(e,{value:t,oldValue:n},r){e._modelValue=t;let i;if(y(t))i=w(t,r.props.value)>-1;else if(S(t))i=t.has(r.props.value);else{if(t===n)return;i=d(t,Ut(e,!0))}e.checked!==i&&(e.checked=i)}var zt={created(e,{value:t},n){e.checked=d(t,n.props.value),e[q]=K(n),H(e,`change`,()=>{e[q](Z(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[q]=K(r),t!==n&&(e.checked=d(t,r.props.value))}},Bt={deep:!0,created(e,{value:t,modifiers:{number:n}},r){e._modelValue=t,H(e,`change`,()=>{let t=Array.prototype.filter.call(e.options,e=>e.selected).map(e=>n?C(Z(e)):Z(e)),r=e.multiple,i=r?S(e._modelValue)?new Set(t):t:t[0],a=e._pendingValue=[r,r?y(i)?t.slice():t:i];try{e[q](i)}finally{_e(()=>{e._pendingValue===a&&(e._pendingValue=void 0)})}}),e[q]=K(r)},mounted(e,{value:t}){Ht(e,t)},beforeUpdate(e,{value:t},n){e._modelValue=t,e[q]=K(n)},updated(e,{value:t}){let n=e._pendingValue;e._pendingValue=void 0,n&&n[0]===e.multiple&&Vt(t,n[1],n[0])||Ht(e,t)}};function Vt(e,t,n){if(!n||y(e))return d(e,t);if(S(e)){if(e.size!==t.length)return!1;for(let n of t)if(!e.has(n))return!1;return!0}return!1}function Ht(e,t){let n=e.multiple,r=y(t);if(!n||r||S(t)){for(let i=0,a=e.options.length;i<a;i++){let a=e.options[i],o=Z(a);if(n){if(r){let e=typeof o;a.selected=e===`string`||e===`number`?t.some(e=>String(e)===String(o)):w(t,o)>-1}else a.selected=t.has(o)}else if(d(Z(a),t)){e.selectedIndex!==i&&(e.selectedIndex=i);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Z(e){return`_value`in e?e._value:e.value}function Ut(e,t){let n=t?`_trueValue`:`_falseValue`;return n in e?e[n]:t}var Wt={created(e,t,n){Q(e,t,n,null,`created`)},mounted(e,t,n){Q(e,t,n,null,`mounted`)},beforeUpdate(e,t,n,r){Q(e,t,n,r,`beforeUpdate`)},updated(e,t,n,r){Q(e,t,n,r,`updated`)}};function Gt(e,t){switch(e){case`SELECT`:return Bt;case`TEXTAREA`:return X;default:switch(t){case`checkbox`:return Lt;case`radio`:return zt;default:return X}}}function Q(e,t,n,r,i){let a=Gt(e.tagName,n.props&&n.props.type)[i];a&&a(e,t,n,r)}function Kt(){X.getSSRProps=({value:e})=>({value:e}),zt.getSSRProps=({value:e},t)=>{if(t.props&&d(t.props.value,e))return{checked:!0}},Lt.getSSRProps=({value:e},t)=>{if(y(e)){if(t.props&&w(e,t.props.value)>-1)return{checked:!0}}else if(S(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},Wt.getSSRProps=(e,t)=>{if(typeof t.type!=`string`)return;let n=Gt(t.type.toUpperCase(),t.props&&t.props.type);if(n.getSSRProps)return n.getSSRProps(e,t)}}var qt=[`ctrl`,`shift`,`alt`,`meta`],Jt={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>`button`in e&&e.button!==0,middle:e=>`button`in e&&e.button!==1,right:e=>`button`in e&&e.button!==2,exact:(e,t)=>qt.some(n=>e[`${n}Key`]&&!t.includes(n))},Yt=(e,t)=>{if(!e)return e;let n=e._withMods||={},r=t.join(`.`);return n[r]||(n[r]=((n,...r)=>{for(let e=0;e<t.length;e++){let r=Jt[t[e]];if(r&&r(n,t))return}return e(n,...r)}))},Xt={esc:`escape`,space:` `,up:`arrow-up`,left:`arrow-left`,right:`arrow-right`,down:`arrow-down`,delete:`backspace`},Zt=(e,t)=>{let n=e._withKeys||={},r=t.join(`.`);return n[r]||(n[r]=(n=>{if(!(`key`in n))return;let r=o(n.key);if(t.some(e=>e===r||Xt[e]===r))return e(n)}))},Qt=h({patchProp:ft},De),$,$t=!1;function en(){return $||=r(Qt)}function tn(){return $=$t?$:ye(Qt),$t=!0,$}var nn=((...e)=>{en().render(...e)}),rn=((...e)=>{tn().hydrate(...e)}),an=((...e)=>{let t=en().createApp(...e),{mount:n}=t;return t.mount=e=>{let r=cn(e);if(!r)return;let i=t._component;be(i)||i.render||i.template||(i.template=r.innerHTML),r.nodeType===1&&(r.textContent=``);let a=n(r,!1,sn(r));return r instanceof Element&&(r.removeAttribute(`v-cloak`),r.setAttribute(`data-v-app`,``)),a},t}),on=((...e)=>{let t=tn().createApp(...e),{mount:n}=t;return t.mount=e=>{let t=cn(e);if(t)return n(t,!0,sn(t))},t});function sn(e){if(e instanceof SVGElement)return`svg`;if(typeof MathMLElement==`function`&&e instanceof MathMLElement)return`mathml`}function cn(e){return f(e)?document.querySelector(e):e}var ln=!1,un=()=>{ln||(ln=!0,Kt(),Ue())};export{Zt as C,He as S,Lt as _,on as a,Bt as b,rn as c,ft as d,nn as f,xt as g,bt as h,an as i,un as l,Ge as m,Et as n,gt as o,St as p,yt as r,_t as s,Ae as t,De as u,Wt as v,Yt as w,X as x,zt as y};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{E as e,On as t,Zn as n,b as r,g as i,mt as a,tr as o,xt as s}from"./DZo3dYLJ.js";import{r as c}from"./oXSDGTSr.js";import{n as l,t as u}from"./Baq-Hrpf.js";var d={base:`pb-4 text-muted *:first:mt-0 *:last:mb-0 *:my-1.5`},f={__name:`ProseAccordionItem`,props:{label:{type:String,required:!0},description:{type:String,required:!1},class:{type:null,required:!1},ui:{type:Object,required:!1}},setup(f){let p=l(`prose.accordionItem`,f),m=c(),h=i(()=>u({extend:d,...m.ui?.prose?.accordionItem||{}}));return(i,c)=>(a(),r(`div`,{class:n(h.value({class:[t(p).ui?.base,t(p).class]}))},[s(i.$slots,`default`,{},()=>[e(o(t(p).description),1)])],2))}};export{f as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e}from"./oXSDGTSr.js";function t(t,n,r){let i=t.findIndex(t=>e(t,n)),a=t.findIndex(t=>e(t,r));if(i===-1||a===-1)return[];let[o,s]=[i,a].sort((e,t)=>e-t);return t.slice(o,s+1)}export{t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{On as e,mt as t,qt as n,v as r}from"./DZo3dYLJ.js";import{r as i}from"./oXSDGTSr.js";import{t as a}from"./CQTvWh4i.js";import o from"./DcWIG384.js";var s={__name:`ProseTip`,setup(s){let c=i();return(i,s)=>(t(),r(o,{color:`success`,icon:e(c).ui.icons.tip},{default:n(()=>[a(i.$slots,`default`,{mdcUnwrap:`p`})]),_:3},8,[`icon`]))}};export{s as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{E as e,Lt as t,On as n,Zn as r,_ as i,b as a,g as o,mt as s,qt as c,tr as l,v as u,y as d}from"./DZo3dYLJ.js";import{r as f}from"./oXSDGTSr.js";import{n as p,t as m}from"./Baq-Hrpf.js";import{t as h}from"./CK9_veoz.js";import{t as g}from"./CQTvWh4i.js";var _={slots:{root:`my-5`,container:`flex items-center gap-3 font-mono text-sm`,name:`font-semibold text-primary`,wrapper:`flex-1 flex items-center gap-1.5 text-xs`,required:`rounded-sm bg-error/10 text-error px-1.5 py-0.5`,type:`rounded-sm bg-elevated text-toned px-1.5 py-0.5`,description:`mt-3 text-muted text-sm [&_code]:text-xs/4`}},v={__name:`ProseField`,props:{as:{type:null,required:!1},name:{type:String,required:!1},type:{type:String,required:!1},description:{type:String,required:!1},required:{type:Boolean,required:!1},class:{type:null,required:!1},ui:{type:Object,required:!1}},setup(v){let y=v,b=t(),x=p(`prose.field`,y),S=f(),C=o(()=>m({extend:_,...S.ui?.prose?.field||{}})());return(t,o)=>(s(),u(n(h),{as:n(x).as,class:r(C.value.root({class:[n(x).ui?.root,n(x).class]}))},{default:c(()=>[i(`div`,{class:r(C.value.container({class:n(x).ui?.container}))},[n(x).name?(s(),a(`span`,{key:0,class:r(C.value.name({class:n(x).ui?.name}))},l(n(x).name),3)):d(``,!0),n(x).type||n(x).required?(s(),a(`div`,{key:1,class:r(C.value.wrapper({class:n(x).ui?.wrapper}))},[n(x).type?(s(),a(`span`,{key:0,class:r(C.value.type({class:n(x).ui?.type}))},l(n(x).type),3)):d(``,!0),n(x).required?(s(),a(`span`,{key:1,class:r(C.value.required({class:n(x).ui?.required}))},` required `,2)):d(``,!0)],2)):d(``,!0)],2),b.default||n(x).description?(s(),a(`div`,{key:0,class:r(C.value.description({class:n(x).ui?.description}))},[g(t.$slots,`default`,{mdcUnwrap:`p`},()=>[e(l(n(x).description),1)])],2)):d(``,!0)]),_:3},8,[`as`,`class`]))}};export{v as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{On as e,Zn as t,b as n,g as r,mt as i,xt as a}from"./DZo3dYLJ.js";import{r as o}from"./oXSDGTSr.js";import{n as s,t as c}from"./Baq-Hrpf.js";var l={base:`px-1.5 py-0.5 text-sm font-mono font-medium rounded-md inline-block`,variants:{color:{primary:`border border-primary/25 bg-primary/10 text-primary`,secondary:`border border-secondary/25 bg-secondary/10 text-secondary`,success:`border border-success/25 bg-success/10 text-success`,info:`border border-info/25 bg-info/10 text-info`,warning:`border border-warning/25 bg-warning/10 text-warning`,error:`border border-error/25 bg-error/10 text-error`,neutral:`border border-muted text-highlighted bg-muted`}},defaultVariants:{color:`neutral`}},u={__name:`ProseCode`,props:{lang:{type:String,required:!1},color:{type:null,required:!1},class:{type:null,required:!1},ui:{type:Object,required:!1}},setup(u){let d=s(`prose.code`,u),f=o(),p=r(()=>c({extend:l,...f.ui?.prose?.code||{}}));return(r,o)=>(i(),n(`code`,{class:t(p.value({class:[e(d).ui?.base,(e(d).class||``).split(`,`).join(` `)],color:e(d).color}))},[a(r.$slots,`default`)],2))}};export{u as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{g as e,vn as t}from"./DZo3dYLJ.js";import{r as n}from"./CsyY7ot8.js";function r(r){let i=n({dir:t(`ltr`)});return e(()=>r?.value||i.dir?.value||`ltr`)}export{r as t};
|