studiograph 1.3.48-next.37 → 1.3.48-next.39
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/server/routes/auth-api.js +14 -3
- package/dist/server/routes/auth-api.js.map +1 -1
- package/dist/web/_app/immutable/assets/2.D77cn8ik.css +1 -0
- package/dist/web/_app/immutable/chunks/{BE4TtdPN.js → BWoDznmJ.js} +1 -1
- package/dist/web/_app/immutable/chunks/{COOrgt0b.js → BwtrEg3l.js} +1 -1
- package/dist/web/_app/immutable/chunks/{DDq2bIqK.js → CKhbOUJD.js} +1 -1
- package/dist/web/_app/immutable/chunks/{rb_7YHFy.js → CNh6J1Ak.js} +1 -1
- package/dist/web/_app/immutable/chunks/{CFkaiHzt.js → CToHYjcL.js} +1 -1
- package/dist/web/_app/immutable/chunks/DAsetsxE.js +1 -0
- package/dist/web/_app/immutable/chunks/{DwC6ADdT.js → DCuYbn_z.js} +1 -1
- package/dist/web/_app/immutable/chunks/{CPztWKzQ.js → DQO1YURa.js} +1 -1
- package/dist/web/_app/immutable/chunks/{DSxHxFkQ.js → DgzlPw1e.js} +2 -2
- package/dist/web/_app/immutable/chunks/{Kd6pn1yr.js → DiG3Ahs1.js} +1 -1
- package/dist/web/_app/immutable/chunks/{3TFrlHok.js → Dmj5X8vc.js} +1 -1
- package/dist/web/_app/immutable/chunks/{-cu2GjEm.js → Dwi13G_M.js} +1 -1
- package/dist/web/_app/immutable/chunks/{j6-Xgn0y.js → FND3XtE8.js} +1 -1
- package/dist/web/_app/immutable/chunks/{COTW6jrp.js → IOusrodm.js} +1 -1
- package/dist/web/_app/immutable/chunks/{DagzUaKV.js → inRnuvZm.js} +1 -1
- package/dist/web/_app/immutable/entry/{app.CUQGv9GN.js → app.BmHy7hX4.js} +2 -2
- package/dist/web/_app/immutable/entry/start.B04ltWzB.js +1 -0
- package/dist/web/_app/immutable/nodes/{0.DCltqies.js → 0.BwaB_3ig.js} +2 -2
- package/dist/web/_app/immutable/nodes/{1.Jr4vMKQr.js → 1.DY7-i0Xl.js} +1 -1
- package/dist/web/_app/immutable/nodes/{10.C2cRAfU-.js → 10.DLrd00N4.js} +1 -1
- package/dist/web/_app/immutable/nodes/{11.BHK9p9WZ.js → 11.UaG0a37J.js} +1 -1
- package/dist/web/_app/immutable/nodes/{12.BpZA5lkw.js → 12.CCwhofBP.js} +1 -1
- package/dist/web/_app/immutable/nodes/2.BE_WzycC.js +271 -0
- package/dist/web/_app/immutable/nodes/{3.Bx5HJbb2.js → 3.DvdE-O2F.js} +3 -3
- package/dist/web/_app/immutable/nodes/{4.FhbxBvGe.js → 4.DVvnNLgA.js} +3 -3
- package/dist/web/_app/immutable/nodes/{5.tx4d5fYZ.js → 5.D1QntrJI.js} +1 -1
- package/dist/web/_app/immutable/nodes/{6.Bc9fFZXW.js → 6.jMj4Us97.js} +1 -1
- package/dist/web/_app/immutable/nodes/{7.CTHK2Jmz.js → 7.BHJU2gyP.js} +1 -1
- package/dist/web/_app/immutable/nodes/{8.CkC8Op-d.js → 8.Ca1dI4sz.js} +1 -1
- package/dist/web/_app/immutable/nodes/{9.BU7-_zN6.js → 9.oR-pKeyV.js} +1 -1
- package/dist/web/_app/version.json +1 -1
- package/dist/web/index.html +6 -6
- package/package.json +1 -1
- package/dist/web/_app/immutable/assets/2.B9ObS72O.css +0 -1
- package/dist/web/_app/immutable/chunks/Dz2qxt2R.js +0 -1
- package/dist/web/_app/immutable/entry/start.rgZ1TrrM.js +0 -1
- package/dist/web/_app/immutable/nodes/2.DxSpdJ6N.js +0 -269
|
@@ -46,6 +46,17 @@ function requireOwner(req, authService) {
|
|
|
46
46
|
return null;
|
|
47
47
|
return user;
|
|
48
48
|
}
|
|
49
|
+
/**
|
|
50
|
+
* Resolve the caller to an AuthUser. The global auth hook skips /api/auth/*
|
|
51
|
+
* so endpoints that need identity (like the token CRUD routes below) must
|
|
52
|
+
* look up the JWT cookie themselves.
|
|
53
|
+
*/
|
|
54
|
+
function requireUser(req, authService) {
|
|
55
|
+
const token = req.cookies?.['__sg_token'];
|
|
56
|
+
if (!token)
|
|
57
|
+
return null;
|
|
58
|
+
return authService.verifyToken(token);
|
|
59
|
+
}
|
|
49
60
|
/** Create the auto-provisioned private "My Entries" collection for a user. */
|
|
50
61
|
async function ensurePrivateCollection(workspacePath, workspaceManager, user) {
|
|
51
62
|
if (workspaceManager.getUserPrivateRepo(user.id))
|
|
@@ -172,7 +183,7 @@ export async function registerAuthApiRoutes(fastify, authService, workspacePath,
|
|
|
172
183
|
// POST /api/auth/tokens — mint a new token for the authenticated user.
|
|
173
184
|
// Body: { name: string }. Returns the raw token once; only its hash is stored.
|
|
174
185
|
fastify.post('/api/auth/tokens', async (req, reply) => {
|
|
175
|
-
const user = req
|
|
186
|
+
const user = requireUser(req, authService);
|
|
176
187
|
if (!user)
|
|
177
188
|
return reply.status(401).send({ error: 'Unauthorized' });
|
|
178
189
|
const { name } = (req.body ?? {});
|
|
@@ -189,14 +200,14 @@ export async function registerAuthApiRoutes(fastify, authService, workspacePath,
|
|
|
189
200
|
});
|
|
190
201
|
// GET /api/auth/tokens — list the authenticated user's tokens (metadata only).
|
|
191
202
|
fastify.get('/api/auth/tokens', async (req, reply) => {
|
|
192
|
-
const user = req
|
|
203
|
+
const user = requireUser(req, authService);
|
|
193
204
|
if (!user)
|
|
194
205
|
return reply.status(401).send({ error: 'Unauthorized' });
|
|
195
206
|
return reply.send({ tokens: authService.listApiTokens(user.id) });
|
|
196
207
|
});
|
|
197
208
|
// DELETE /api/auth/tokens/:id — revoke one of the user's own tokens.
|
|
198
209
|
fastify.delete('/api/auth/tokens/:id', async (req, reply) => {
|
|
199
|
-
const user = req
|
|
210
|
+
const user = requireUser(req, authService);
|
|
200
211
|
if (!user)
|
|
201
212
|
return reply.status(401).send({ error: 'Unauthorized' });
|
|
202
213
|
const tokenId = parseInt(req.params.id, 10);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth-api.js","sourceRoot":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AAG,WAAW,CAAC,UAAU,CAAC,KAAK,EAAE,QAAQ,EAAE,WAAW,IAAI,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC;YAClG,MAAM,uBAAuB,CAAC,aAAa,EAAE,gBAAgB,EAAE,IAAI,CAAC,CAAC;YACrE,MAAM,MAAM,GAAG,WAAW,CAAC,YAAY,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC;YACzD,IAAI,CAAC,MAAM,EAAE,CAAC;gBACZ,OAAO,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,oCAAoC,EAAE,CAAC,CAAC;YACjF,CAAC;YAED,MAAM,MAAM,GAAG,GAAG,CAAC,OAAO,CAAC,mBAAmB,CAAC,KAAK,OAAO,CAAC;YAC5D,KAAK,CAAC,SAAS,CAAC,YAAY,EAAE,MAAM,CAAC,KAAK,EAAE;gBAC1C,IAAI,EAAE,GAAG;gBACT,QAAQ,EAAE,IAAI;gBACd,QAAQ,EAAE,QAAQ;gBAClB,MAAM;gBACN,MAAM,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE;aACzB,CAAC,CAAC;YAEH,OAAO,KAAK,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC;QAC9B,CAAC;QAAC,OAAO,GAAQ,EAAE,CAAC;YAClB,OAAO,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,GAAG,CAAC,OAAO,EAAE,CAAC,CAAC;QACxD,CAAC;IACH,CAAC,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.resize-handle.svelte-tfh9g9{position:absolute;top:0;bottom:0;width:6px;cursor:col-resize;z-index:10}.resize-handle.right.svelte-tfh9g9{right:-3px}.resize-handle.left.svelte-tfh9g9{left:-3px}.resize-handle.svelte-tfh9g9:hover,.resize-handle.active.svelte-tfh9g9{background:var(--color-accent);opacity:.3}.resize-handle.active.svelte-tfh9g9{opacity:.5}.folder-members.svelte-vz89pt{display:flex;flex-direction:column;gap:4px}.fm-header.svelte-vz89pt{display:flex;align-items:center;margin-bottom:4px}.fm-label.svelte-vz89pt,.fm-sublabel.svelte-vz89pt{font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.06em;color:var(--color-text-tertiary)}.fm-sublabel.svelte-vz89pt{margin-top:12px;margin-bottom:4px}.fm-hint.svelte-vz89pt{font-size:13px;color:var(--color-text-tertiary);padding:8px 0}.fm-row.svelte-vz89pt{display:flex;align-items:center;gap:10px;height:44px;font-size:14px;padding:0 12px;border:1px solid transparent;border-radius:8px}.fm-confirm.svelte-vz89pt{background:color-mix(in srgb,var(--color-accent-fg) 10%,transparent);border-color:color-mix(in srgb,var(--color-accent-fg) 30%,transparent)}.fm-confirm.svelte-vz89pt svg{color:var(--color-accent-fg)!important}.fm-confirm.svelte-vz89pt button:not([class*=destructive]):hover{background:color-mix(in srgb,var(--color-accent-fg) 15%,transparent)!important;color:var(--color-text-primary)!important}.fm-confirm-text.svelte-vz89pt{font-size:14px;color:var(--color-text-primary);flex:1}.fm-actions.svelte-vz89pt{display:flex;gap:4px;flex-shrink:0}.fm-avatar.svelte-vz89pt{width:18px;height:18px;border-radius:50%;background:var(--color-accent);color:var(--color-accent-text, #ededef);font-size:10px;font-weight:600;display:flex;align-items:center;justify-content:center;flex-shrink:0}.fm-name.svelte-vz89pt{font-size:14px;font-weight:500;color:var(--color-text-primary)}.fm-name-muted.svelte-vz89pt{color:var(--color-text-secondary);font-weight:400}.fm-role-label.svelte-vz89pt{font-size:12px;font-weight:400;color:var(--color-text-tertiary);padding-right:4px}.fm-flex.svelte-vz89pt{flex:1}.fm-trash-placeholder.svelte-vz89pt{width:28px;height:28px;flex-shrink:0}.role-chip{display:inline-flex;align-items:center;gap:2px;font-size:12px;font-weight:400;color:var(--color-text-tertiary);padding:2px 4px 2px 6px;border-radius:4px;background:transparent;border:none;cursor:pointer;transition:background .15s}.role-chip:hover,.role-chip[data-state=open]{background:var(--color-bg-hover)}.role-menu{min-width:140px;background:var(--color-bg-elevated, var(--color-bg));border:1px solid var(--color-border);border-radius:8px;padding:4px;box-shadow:0 4px 12px #00000014;z-index:1100}.role-menu-item{display:flex;align-items:center;justify-content:space-between;padding:6px 10px;font-size:13px;border-radius:4px;cursor:pointer;color:var(--color-text-primary);outline:none}.role-menu-item[data-highlighted]{background:var(--color-bg-hover)}.asset-manager.svelte-3ci416{max-height:calc(70vh - 80px);overflow-y:auto;padding-right:12px}.asset-status.svelte-3ci416{color:var(--color-text-secondary);font-size:14px;text-align:center;padding:32px 0}.asset-error.svelte-3ci416{color:var(--color-destructive-fg, #f04e4e)}.asset-grid.svelte-3ci416{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:12px}.asset-card.svelte-3ci416{position:relative;border:1px solid var(--color-border);border-radius:6px;overflow:hidden;background:var(--color-bg-secondary)}.asset-card.svelte-3ci416:hover .asset-delete:where(.svelte-3ci416){opacity:1}.asset-preview.svelte-3ci416{width:100%;aspect-ratio:1;display:flex;align-items:center;justify-content:center;overflow:hidden;background:var(--color-bg-tertiary, var(--color-bg-secondary))}.asset-preview.svelte-3ci416 img:where(.svelte-3ci416){width:100%;height:100%;object-fit:cover}.asset-icon.svelte-3ci416{color:var(--color-text-secondary)}.asset-info.svelte-3ci416{padding:8px 10px;display:flex;flex-direction:column;gap:2px}.asset-filename.svelte-3ci416{font-size:12px;font-weight:500;color:var(--color-text-primary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.asset-meta.svelte-3ci416{font-size:11px;color:var(--color-text-secondary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.asset-delete.svelte-3ci416{position:absolute;top:6px;right:6px;width:24px;height:24px;display:flex;align-items:center;justify-content:center;border:none;border-radius:4px;background:#0009;color:#ededef;cursor:pointer;opacity:0;transition:opacity .15s}.asset-delete.svelte-3ci416:hover{background:#e05050e6}.sidebar.svelte-6dohdz{position:relative;z-index:2;flex-shrink:0;display:flex;flex-direction:column;overflow:clip;overflow-x:visible;background:var(--color-bg);border-right:1px solid var(--color-border);transition:width .15s ease}.sidebar.collapsed.svelte-6dohdz{overflow:visible}.rail.svelte-6dohdz{display:flex;flex-direction:column;align-items:center;padding:8px 0;gap:4px;height:100%}.rail-spacer.svelte-6dohdz{flex:1}.rail-btn{width:36px!important;height:36px!important;display:flex!important;align-items:center;justify-content:center;border-radius:8px;transition:none}.rail-btn:hover{background:var(--color-bg-hover)!important}.rail.svelte-6dohdz .workspace-icon:where(.svelte-6dohdz){width:28px;height:28px;font-size:14px}.sidebar-header.svelte-6dohdz{height:var(--row-height);display:flex;align-items:center;gap:11px;padding:0 12px 0 16px;box-shadow:inset 0 -1px 0 var(--color-border);flex-shrink:0}.header-actions.svelte-6dohdz{margin-left:auto;display:flex;align-items:center;gap:4px}.header-action-btn{display:flex;align-items:center;justify-content:center;position:relative;width:28px;height:28px;border-radius:6px;color:var(--color-text-secondary);cursor:pointer;background:none;border:none}.header-action-btn:hover{background:var(--color-bg-hover);color:var(--color-text-primary)}.header-action-btn.header-action-btn-accent{background:var(--color-accent);color:var(--color-accent-text, #ededef)}.header-action-btn.header-action-btn-accent:hover{background:var(--color-accent-hover);color:var(--color-accent-text, #ededef)}.header-add-menu{background:var(--color-bg-elevated)!important;border:1px solid var(--color-border-strong)!important;border-radius:8px!important;box-shadow:0 4px 16px #0003!important;padding:4px!important;min-width:var(--menu-min-width);z-index:200!important}.menu-divider.svelte-6dohdz{height:1px;background:var(--color-border);margin:4px 8px}.header-add-item{display:flex!important;align-items:center;gap:8px;min-height:var(--menu-item-height);padding:var(--menu-item-padding)!important;border-radius:var(--menu-item-radius)!important;font-size:var(--menu-font-size);color:var(--color-text-secondary);cursor:pointer}.header-add-item:hover,.header-add-item[data-highlighted]{background:var(--color-bg-hover)!important;color:var(--color-text-primary)}.notif-dropdown{width:320px!important;max-height:400px;background:var(--color-bg)!important;border:1px solid var(--color-border)!important;border-radius:8px!important;box-shadow:0 4px 16px #0000001f!important;display:flex;flex-direction:column;overflow:hidden;padding:0!important;z-index:200!important}.notif-dropdown .notif-header{display:flex;align-items:baseline;justify-content:space-between;padding:10px 14px;border-bottom:1px solid var(--color-border);flex-shrink:0}.notif-dropdown .notif-title{font-size:var(--menu-font-size);font-weight:400;color:var(--color-text-primary)}.notif-dropdown .notif-mark-all{background:none;border:none;color:var(--color-accent-fg);font-size:12px;cursor:pointer;padding:0}.notif-dropdown .notif-mark-all:hover{text-decoration:underline}.notif-dropdown .notif-list{overflow-y:auto;flex:1}.notif-dropdown .notif-empty{padding:24px 12px;text-align:center;font-size:var(--menu-font-size);color:var(--color-text-tertiary)}.notif-item{display:flex!important;flex-direction:row!important;align-items:flex-start;position:relative;padding:12px 16px 12px 32px!important;border:none;background:none;text-align:left;width:100%;cursor:pointer;border-radius:0!important}.notif-item+.notif-item{border-top:1px solid var(--color-border)}.notif-item:hover,.notif-item[data-highlighted]{background:var(--color-bg-hover)!important}.notif-dot{position:absolute;left:12px;top:17px;width:6px;height:6px;border-radius:3px;background:var(--color-accent)}.notif-item-body{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}.notif-item-line{display:flex;align-items:baseline;gap:4px;font-size:var(--menu-font-size);line-height:16px}.notif-item-who{font-weight:600;color:var(--color-text-primary);white-space:nowrap}.notif-item-time{font-size:12px;color:var(--color-text-tertiary);white-space:nowrap;margin-left:auto}.notif-item-preview{font-size:12px;line-height:16px;color:var(--color-text-secondary);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.notif-mention{color:var(--color-accent-fg)}.notif-badge.svelte-6dohdz{position:absolute;top:2px;right:2px;min-width:14px;height:14px;border-radius:7px;background:var(--color-accent);color:var(--color-accent-text, #ededef);font-size:9px;font-weight:600;display:flex;align-items:center;justify-content:center;padding:0 3px;line-height:1}.sidebar-header.svelte-6dohdz .home-btn:where(.svelte-6dohdz){all:unset;display:inline-flex;align-items:center;gap:8px;min-width:0;cursor:pointer;flex:0 0 auto}.workspace-icon.svelte-6dohdz{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:6px;background:var(--color-accent, #f04e4e);color:var(--color-accent-text, #ededef);flex-shrink:0;transition:background .15s}.home-btn.svelte-6dohdz:hover .workspace-icon:where(.svelte-6dohdz){background:var(--color-accent-hover, #d83a3a)}.workspace-name.svelte-6dohdz{font-size:14px;font-weight:600;color:var(--color-text-primary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sidebar-scroll.svelte-6dohdz{flex:1;overflow-y:auto;min-height:0}.repo-row{display:flex;align-items:baseline;height:var(--row-height);line-height:var(--row-height);width:100%;padding:0 12px 0 22px;border:none;background:transparent;font-family:inherit;text-align:left;border-radius:0;gap:0;justify-content:flex-start;transition:none}.repo-row:hover,.repo-row.focused{background:var(--color-bg-hover)}.tree-row{position:relative;display:flex;align-items:baseline;height:var(--row-height);line-height:var(--row-height);padding-right:40px;color:var(--color-text-secondary);font-size:14px;border:none;background:transparent;font-family:inherit;text-align:left;width:100%;border-radius:0;gap:0;justify-content:flex-start;transition:none}.tree-row:hover,.tree-row.focused{background:var(--color-bg-hover)}.tree-row.selected{background:var(--color-bg-selected);color:var(--color-text-primary);font-weight:600}.tree-row.ancestor{color:var(--color-text-primary);font-weight:600}.row-chevron.svelte-6dohdz{display:inline-flex;align-items:center;justify-content:center;align-self:center;width:16px;height:16px;flex-shrink:0;margin-right:14px;color:var(--color-text-secondary);transition:transform .15s}.row-chevron.open.svelte-6dohdz{transform:rotate(90deg)}.row-label.svelte-6dohdz{flex:1;overflow:hidden;white-space:nowrap;mask-image:linear-gradient(to right,black calc(100% - 16px),transparent 100%);-webkit-mask-image:linear-gradient(to right,black calc(100% - 16px),transparent 100%)}.type-header-row{color:var(--color-text-secondary)}.type-header-row.type-active{color:var(--color-text-primary);font-weight:600}.type-header-row .row-label.svelte-6dohdz{flex:none;mask-image:none;-webkit-mask-image:none}.entity-type-dot.svelte-6dohdz{width:6px;height:6px;border-radius:3px;flex-shrink:0;margin-right:2px}.new-entity-row{color:var(--color-text-tertiary);align-items:center}.new-entity-row:hover{color:var(--color-text-secondary)}.entity-row-wrapper.svelte-6dohdz{position:relative;display:flex;align-items:center}.entity-row-wrapper.svelte-6dohdz .tree-row{flex:1;min-width:0}.entity-row-wrapper.svelte-6dohdz .entity-actions-btn{display:none;width:28px;height:28px;position:absolute;right:12px;flex-shrink:0;padding:0;border:none;background:none;cursor:pointer;color:var(--color-text-tertiary);border-radius:4px;align-items:center;justify-content:center}.entity-row-wrapper.svelte-6dohdz .entity-actions-btn:hover{background:var(--color-bg-hover);color:var(--color-text-primary)}.entity-row-wrapper.svelte-6dohdz:hover .tree-row,.entity-row-wrapper.svelte-6dohdz:has(.entity-actions-btn.menu-open) .tree-row{background:var(--color-bg-hover)}.entity-row-wrapper.svelte-6dohdz:hover .entity-actions-btn,.entity-row-wrapper.svelte-6dohdz .entity-actions-btn.menu-open{display:inline-flex}.entity-type-dot.svelte-6dohdz{width:6px;height:6px;border-radius:50%;flex-shrink:0;margin-right:19px;align-self:center}.presence-avatar.svelte-6dohdz{width:18px;height:18px;border-radius:50%;font-size:10px;font-weight:600;color:var(--color-accent-text, #ededef);background:var(--color-accent);display:flex;align-items:center;justify-content:center;margin-left:-3px;border:none;box-sizing:border-box;flex-shrink:0;align-self:center}.presence-avatar.svelte-6dohdz:nth-child(1){z-index:3}.presence-avatar.svelte-6dohdz:nth-child(2){z-index:2}.presence-avatar.svelte-6dohdz:nth-child(3){z-index:1}.unread-dot.svelte-6dohdz{width:6px;height:6px;border-radius:50%;background:var(--color-accent);display:block}.repo-row .repo-rename-input{flex:1;min-width:0;height:100%;padding:0 6px;margin:0;border:1px solid var(--color-accent-fg, #f04e4e);border-radius:3px;font-size:14px;font-weight:600}.repo-row-wrapper.svelte-6dohdz{position:relative;display:flex;align-items:center}.import-description.svelte-6dohdz{font-size:14px;color:var(--color-text-primary);margin:0 0 16px}.import-description-hint.svelte-6dohdz{color:var(--color-text-tertiary)}.import-modal-body.svelte-6dohdz{padding:0}.import-skipped.svelte-6dohdz{font-size:var(--font-xs);color:var(--color-text-secondary);margin:0 0 8px}.import-file-list.svelte-6dohdz{display:flex;flex-direction:column;max-height:240px;overflow-y:auto}.import-file-row.svelte-6dohdz{display:flex;align-items:center;gap:10px;padding:10px 12px;border-bottom:1px solid var(--color-border)}.import-file-icon.svelte-6dohdz{flex-shrink:0;color:var(--color-text-tertiary)}.import-file-info.svelte-6dohdz{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}.import-file-name.svelte-6dohdz{font-size:14px;color:var(--color-text-primary);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.import-file-size.svelte-6dohdz{font-size:12px;color:var(--color-text-tertiary)}.import-file-remove.svelte-6dohdz{flex-shrink:0;background:none;border:none;color:var(--color-text-tertiary);cursor:pointer;padding:4px;border-radius:4px;display:flex;align-items:center;justify-content:center}.import-file-remove.svelte-6dohdz:hover{color:var(--color-text-primary);background:var(--color-bg-hover)}.import-drop-zone.svelte-6dohdz{border:1px solid var(--color-border, #333);border-radius:8px;padding:40px 16px;text-align:center;color:var(--color-text-tertiary);font-size:14px;min-height:180px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;transition:background .15s}.import-drop-zone-active.svelte-6dohdz{border-color:var(--color-accent-fg);background:color-mix(in srgb,var(--color-accent-fg) 6%,transparent);color:var(--color-accent-fg)}.import-drop-zone-compact.svelte-6dohdz{min-height:0;padding:14px 16px;border-top:none}.import-hint.svelte-6dohdz{font-size:13px;color:var(--color-text-tertiary);margin:0}.file-picker-link.svelte-6dohdz{background:none;border:none;padding:0;font:inherit;font-size:15px;color:inherit;text-decoration:underline;text-decoration-color:color-mix(in srgb,currentColor 50%,transparent);text-decoration-thickness:1px;text-underline-offset:3px;transition:text-decoration-color .15s ease;cursor:pointer}.file-picker-link.svelte-6dohdz:hover{text-decoration-color:transparent}.file-picker-link-sm.svelte-6dohdz{font-size:13px}.repo-row-wrapper.svelte-6dohdz .repo-row{flex:1;min-width:0}.repo-row-wrapper.svelte-6dohdz .repo-actions-btn{display:none;width:28px;height:28px;position:absolute;right:12px;flex-shrink:0;padding:0;border:none;background:none;cursor:pointer;color:var(--color-text-secondary);border-radius:4px;align-items:center;justify-content:center}.repo-row-wrapper.svelte-6dohdz .repo-actions-btn:hover{background:var(--color-bg-hover);color:var(--color-text-primary)}.repo-actions-menu{min-width:var(--menu-min-width);padding:4px!important;border-radius:8px!important;background:var(--color-bg-elevated)!important;border:1px solid var(--color-border-strong)!important;box-shadow:0 4px 16px #0003!important;z-index:1000}.repo-menu-item{display:flex!important;align-items:center;gap:8px;min-height:var(--menu-item-height);padding:var(--menu-item-padding)!important;border-radius:var(--menu-item-radius)!important;cursor:pointer;font-size:var(--menu-font-size);color:var(--color-text-secondary)}.repo-menu-item:hover,.repo-menu-item[data-highlighted]{background:var(--color-bg-hover)!important;color:var(--color-text-primary)}.new-collection-btn,.new-collection-btn .row-chevron.svelte-6dohdz{color:var(--color-text-tertiary)}.new-collection-btn:hover{color:var(--color-text-secondary)}@keyframes svelte-6dohdz-shake{0%,to{transform:translate(0)}20%{transform:translate(-4px)}40%{transform:translate(4px)}60%{transform:translate(-3px)}80%{transform:translate(2px)}}.sidebar-footer.svelte-6dohdz{display:flex;align-items:center;height:var(--row-height);padding:0 12px 0 52px;border-top:1px solid var(--color-border);flex-shrink:0;gap:8px;margin-top:auto}.user-name.svelte-6dohdz{flex:1;font-size:14px;color:var(--color-text-secondary);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sidebar-footer.svelte-6dohdz .footer-icon-btn{display:flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:6px;color:var(--color-text-secondary);cursor:pointer;background:none;border:none;flex-shrink:0}.sidebar-footer.svelte-6dohdz .footer-icon-btn:hover{background:var(--color-bg-hover);color:var(--color-text-primary)}.transfer-header-col.svelte-6dohdz{display:flex;flex-direction:column;gap:4px}.transfer-list.svelte-6dohdz{display:flex;flex-direction:column;gap:2px}.transfer-list-item.svelte-6dohdz{display:flex;align-items:center;gap:10px;width:100%;padding:8px 12px;border-radius:6px;color:var(--color-text);font-size:13px;cursor:pointer}.transfer-list-item.svelte-6dohdz:hover{background:var(--color-bg-hover)}.entity-floating-tooltip.svelte-6dohdz{position:fixed;z-index:1000;transform:translateY(-50%);display:flex;flex-direction:column;gap:2px;padding:6px 10px;border-radius:6px;background:var(--color-bg-elevated);border:1px solid var(--color-border);box-shadow:0 4px 16px #0000004d;pointer-events:none;min-width:120px;max-width:260px}.entity-floating-tooltip.fading.svelte-6dohdz{opacity:0;transition:opacity .12s ease-out}.entity-tooltip-title.svelte-6dohdz{font-size:13px;font-weight:600;color:var(--color-text-primary)}.entity-tooltip-meta.svelte-6dohdz{font-size:13px;color:var(--color-text-tertiary)}.section-add-btn{display:flex!important;align-items:center;justify-content:center;width:24px!important;height:24px!important;border:none!important;background:none!important;color:var(--color-text-secondary);cursor:pointer;border-radius:4px;padding:0!important}.section-add-btn:hover{background:var(--color-bg-hover)!important;color:var(--color-text-primary)}.view-icon-dot.svelte-6dohdz{position:relative;background:none!important;overflow:visible}.view-icon-dot.svelte-6dohdz svg{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:14px;height:14px;color:inherit}.no-transition.svelte-6dohdz .tree-row{transition:none!important}.section-row-wrapper.svelte-6dohdz{height:var(--row-height);box-shadow:inset 0 1px 0 var(--color-border)}.sidebar-scroll.svelte-6dohdz>.section-row-wrapper:where(.svelte-6dohdz):first-child{box-shadow:none}.section-row-wrapper.svelte-6dohdz .repo-actions-btn{display:inline-flex}.section-name.svelte-6dohdz{font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.05em;color:var(--color-text-secondary);flex:1;text-align:left}.section-row-wrapper.svelte-6dohdz:hover .repo-row{background:var(--color-bg-hover)}.new-entry-form.svelte-6dohdz{display:flex;flex-direction:column;gap:16px}.new-entry-field.svelte-6dohdz{display:flex;flex-direction:column;gap:6px}.new-entry-label.svelte-6dohdz{font-size:13px;font-weight:500;color:var(--color-text-secondary)}.type-dot-item.svelte-6dohdz{display:flex;align-items:center;gap:8px}.type-dot-color.svelte-6dohdz{width:6px;height:6px;border-radius:50%;flex-shrink:0}.app-footer.svelte-1jf7fcf{height:var(--row-height, 44px);flex-shrink:0;display:flex;align-items:center;justify-content:space-between;padding:0 16px;background:var(--color-bg);border-top:1px solid var(--color-border);font-size:12px;z-index:50}.footer-left.svelte-1jf7fcf{display:flex;align-items:center;gap:0}.theme-toggle.svelte-1jf7fcf{display:flex;align-items:center;justify-content:center;width:28px;height:28px;border:none;background:none;color:var(--color-text-secondary);cursor:pointer;border-radius:6px;flex-shrink:0;transition:color .15s,background .15s}.theme-toggle.svelte-1jf7fcf:hover{background:var(--color-bg-hover);color:var(--color-text-primary)}.footer-stat.svelte-1jf7fcf{color:var(--color-text-secondary);font-size:12px;margin-left:8px}.footer-sep.svelte-1jf7fcf{color:var(--color-text-secondary);opacity:.5;font-size:12px;margin:0 6px}.footer-link.svelte-1jf7fcf{font-size:12px;color:var(--color-text-secondary);text-decoration:none}.footer-link.svelte-1jf7fcf:hover{color:var(--color-text-primary)}.footer-right.svelte-1jf7fcf{display:flex;align-items:center;gap:8px}.collaborator.svelte-1jf7fcf{display:inline-flex;align-items:center;gap:4px}.collaborator-avatar.svelte-1jf7fcf{width:18px;height:18px;border-radius:50%;background:var(--color-accent);color:var(--color-accent-text, #ededef);font-size:10px;font-weight:600;display:flex;align-items:center;justify-content:center}.collaborator-name.svelte-1jf7fcf{font-size:12px;color:var(--color-text-secondary)}.footer-center.svelte-1jf7fcf{display:flex;align-items:center;gap:2px}.fmt-btn.svelte-1jf7fcf{display:flex;align-items:center;justify-content:center;width:26px;height:26px;border:none;border-radius:4px;background:transparent;color:var(--color-text-secondary);cursor:pointer;transition:background .15s,color .15s}.fmt-btn.svelte-1jf7fcf:hover{background:var(--color-bg-hover);color:var(--color-text-primary)}.fmt-sep.svelte-1jf7fcf{width:1px;height:14px;background:var(--color-border);margin:0 3px}.cm-reply-citation.svelte-jvotkk{display:flex;align-items:flex-start;gap:6px;padding:4px 8px;margin-bottom:4px;background:transparent;border:none;border-left:2px solid var(--color-border);border-radius:0;font:inherit;color:var(--color-text-tertiary);text-align:left;cursor:pointer;max-width:100%;min-width:0;transition:border-color .15s,color .15s}.cm-reply-citation.svelte-jvotkk:hover{border-left-color:var(--color-accent-fg);color:var(--color-text-secondary)}.cm-reply-arrow.svelte-jvotkk{font-size:12px;line-height:18px;flex-shrink:0;opacity:.7}.cm-reply-text.svelte-jvotkk{display:flex;flex-direction:column;gap:1px;min-width:0;flex:1}.cm-reply-author.svelte-jvotkk{font-size:12px;font-weight:500;color:var(--color-text-secondary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cm-reply-author.cm-reply-missing.svelte-jvotkk{font-style:italic;font-weight:400;color:var(--color-text-tertiary)}.cm-reply-quote.svelte-jvotkk{font-size:12px;line-height:16px;color:var(--color-text-tertiary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chat-panel.svelte-1xwj6s7{position:relative;flex-shrink:0;display:flex;flex-direction:column;background:var(--color-bg);border-left:1px solid var(--color-border)}.chat-header.svelte-1xwj6s7{height:var(--row-height);display:flex;align-items:center;justify-content:flex-end;padding:0 16px;border-bottom:1px solid var(--color-border);position:relative;flex-shrink:0;gap:8px}.chat-header-right.svelte-1xwj6s7{display:flex;align-items:center;gap:2px;margin-left:auto}.chat-empty-placeholder.svelte-1xwj6s7{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;padding:0 32px;color:var(--color-text-tertiary);font-size:14px;line-height:1.5;text-align:center;text-wrap:balance}.chat-empty-placeholder.svelte-1xwj6s7 .share-folder-btn{min-width:0}.chat-messages.svelte-1xwj6s7{flex:1;overflow-y:auto;padding:16px 0;display:flex;flex-direction:column;gap:16px}.empty-state.svelte-1xwj6s7{flex:1;display:flex;align-items:center;justify-content:center;min-height:100%;padding:0 16px;color:var(--color-text-tertiary);font-size:14px}.prose.svelte-1xwj6s7 h1{font-size:18px;font-weight:600;color:var(--color-text-primary);margin:24px 0 12px}.prose.svelte-1xwj6s7 h2{font-size:16px;font-weight:600;color:var(--color-text-primary);margin:22px 0 10px}.prose.svelte-1xwj6s7 h3{font-size:15px;font-weight:600;color:var(--color-text-primary);margin:20px 0 8px}.prose.svelte-1xwj6s7 p{margin:0 0 14px}.prose.svelte-1xwj6s7 p:last-child{margin-bottom:0}.prose.svelte-1xwj6s7 strong{font-weight:600}.prose.svelte-1xwj6s7 ul,.prose.svelte-1xwj6s7 ol{padding-left:20px;margin:0 0 14px;color:var(--color-text-primary)}.prose.svelte-1xwj6s7 li ul,.prose.svelte-1xwj6s7 li ol{margin:4px 0 0}.prose.svelte-1xwj6s7 ul{list-style-type:disc}.prose.svelte-1xwj6s7 ol{list-style-type:decimal}.prose.svelte-1xwj6s7 li{margin-bottom:6px}.prose.svelte-1xwj6s7 table{width:100%;border-collapse:collapse;font-size:13px;margin:16px 0}.prose.svelte-1xwj6s7 th,.prose.svelte-1xwj6s7 td{border:1px solid var(--color-border);padding:4px 8px;text-align:left;vertical-align:top}.prose.svelte-1xwj6s7 th{font-weight:600}.prose.svelte-1xwj6s7 pre{background:var(--color-bg-surface);border-radius:6px;padding:10px 12px;overflow-x:auto;margin:16px 0;font-family:var(--font-mono);font-size:13px;line-height:18px}.prose.svelte-1xwj6s7 code{font-family:var(--font-mono);font-size:13px;background:var(--color-bg-surface);padding:1px 4px;border-radius:3px}.prose.svelte-1xwj6s7 pre code{background:none;padding:0}.prose.svelte-1xwj6s7 a{color:var(--color-link);text-decoration:none}.prose.svelte-1xwj6s7 a:hover{text-decoration:underline}.prose.svelte-1xwj6s7 blockquote{border-left:3px solid var(--color-accent-fg);padding-left:12px;margin:16px 0;color:var(--color-text-secondary)}.prose.svelte-1xwj6s7 hr{border:none;border-top:1px solid var(--color-border);margin:24px 0}.streaming-dot.svelte-1xwj6s7{display:inline-block;width:8px;height:8px;background:var(--color-accent);border-radius:4px;animation:svelte-1xwj6s7-pulse 1s ease-in-out infinite}@keyframes svelte-1xwj6s7-pulse{0%,to{opacity:.3}50%{opacity:1}}.context-chip.svelte-1xwj6s7{font-size:12px;color:var(--color-text-tertiary);padding:0 2px 4px;overflow:hidden;white-space:nowrap;-webkit-mask-image:linear-gradient(to right,black calc(100% - 16px),transparent);mask-image:linear-gradient(to right,black calc(100% - 16px),transparent)}.scroll-to-bottom-wrapper.svelte-1xwj6s7{position:absolute;left:0;right:0;bottom:76px;display:flex;justify-content:center;z-index:100;pointer-events:none}.scroll-to-bottom.svelte-1xwj6s7{width:28px;height:28px;border-radius:50%;border:1px solid var(--color-border);background:var(--color-bg-elevated);color:var(--color-text-secondary);display:flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 2px 8px #00000026;pointer-events:auto;transition:opacity .15s}.scroll-to-bottom.is-hidden.svelte-1xwj6s7{opacity:0;pointer-events:none}.scroll-to-bottom.svelte-1xwj6s7:hover{background:var(--color-bg-hover);color:var(--color-text-primary)}.chat-input-area.svelte-1xwj6s7{padding:12px 16px 16px;position:relative}.text-input.svelte-1xwj6s7{display:flex;align-items:flex-end;min-height:var(--row-height);max-height:140px;padding:0 0 0 13px;background:transparent;border:1px solid var(--color-border);border-radius:8px;transition:border-color .15s}.text-input.svelte-1xwj6s7:focus-within{border-color:var(--color-accent)}.send-btn{color:var(--color-text-tertiary);margin:7px;flex-shrink:0;pointer-events:none}.send-btn.send-active,.stop-btn{pointer-events:auto;color:var(--color-accent-text, #ededef);background:var(--color-accent);border-radius:6px}.input-field.svelte-1xwj6s7{flex:1;background:transparent;border:none;outline:none;font-family:inherit;font-size:14px;line-height:20px;color:var(--color-text-primary);resize:none;overflow-y:auto;padding:7px 0 11px;max-height:120px;min-height:20px;white-space:pre-wrap;word-wrap:break-word;field-sizing:content}.input-field[data-placeholder].svelte-1xwj6s7:empty:before{content:attr(data-placeholder);color:var(--color-text-tertiary);pointer-events:none}.input-field.svelte-1xwj6s7::placeholder{color:var(--color-text-tertiary)}.input-field.svelte-1xwj6s7:disabled{opacity:.5}.input-field.svelte-1xwj6s7 .cm-mention-input{color:var(--color-accent-fg)}.cm-loading-more.svelte-1xwj6s7{text-align:center;padding:8px 16px;font-size:12px;color:var(--color-text-tertiary)}.cm-message.svelte-1xwj6s7{display:flex;flex-direction:column;gap:2px;padding:8px 16px;background:transparent;transition:background 1.5s ease-out}.cm-highlight{background:var(--color-bg-hover)!important}.cm-meta.svelte-1xwj6s7{display:flex;align-items:center;gap:6px}.cm-meta.svelte-1xwj6s7 .cm-name:where(.svelte-1xwj6s7){align-self:baseline}.cm-avatar.svelte-1xwj6s7{width:18px;height:18px;border-radius:9px;background:var(--color-accent);color:var(--color-accent-text, #ededef);font-size:9px;font-weight:600;display:flex;align-items:center;justify-content:center;flex-shrink:0}.cm-body.svelte-1xwj6s7{display:flex;flex-direction:column;gap:2px;min-width:0;padding-left:24px}.cm-name.svelte-1xwj6s7{font-size:14px;font-weight:600;color:var(--color-text-primary)}.cm-time.svelte-1xwj6s7{font-size:12px;color:var(--color-text-tertiary)}.cm-content.svelte-1xwj6s7{font-size:14px;line-height:22px;color:var(--color-text-primary)}.cm-truncated.svelte-1xwj6s7{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.cm-msg-footer.svelte-1xwj6s7{display:flex;gap:12px;align-items:center;line-height:22px}@media(hover:hover){.cm-msg-footer.svelte-1xwj6s7 .cm-expand:where(.svelte-1xwj6s7),.cm-msg-footer.svelte-1xwj6s7 .cm-reply-btn:where(.svelte-1xwj6s7){display:none}.cm-message.svelte-1xwj6s7:hover .cm-msg-footer:where(.svelte-1xwj6s7) .cm-expand:where(.svelte-1xwj6s7),.cm-message.svelte-1xwj6s7:hover .cm-msg-footer:where(.svelte-1xwj6s7) .cm-reply-btn:where(.svelte-1xwj6s7),.cm-message.svelte-1xwj6s7:focus-within .cm-msg-footer:where(.svelte-1xwj6s7) .cm-expand:where(.svelte-1xwj6s7),.cm-message.svelte-1xwj6s7:focus-within .cm-msg-footer:where(.svelte-1xwj6s7) .cm-reply-btn:where(.svelte-1xwj6s7){display:inline-block}}.cm-expand.svelte-1xwj6s7{background:none;border:none;color:var(--color-text-tertiary);font-size:12px;line-height:inherit;cursor:pointer;padding:0}.cm-expand.svelte-1xwj6s7:hover{color:var(--color-accent-fg)}.cm-reply-btn.svelte-1xwj6s7{background:none;border:none;color:var(--color-text-tertiary);font-size:12px;line-height:inherit;cursor:pointer;padding:0}.cm-reply-btn.svelte-1xwj6s7:hover{color:var(--color-accent-fg)}.cm-suggestion-prompts.svelte-1xwj6s7{display:flex;flex-direction:column;gap:8px;width:100%}.cm-suggestion-prompts.svelte-1xwj6s7 .seed-prompt{font-size:14px;line-height:20px;padding:9px 13px;min-height:var(--row-height);height:auto;border-radius:8px;color:var(--color-text-secondary);background:var(--color-bg-secondary, rgba(128, 128, 128, .06));text-align:left;white-space:normal;justify-content:flex-start}.cm-suggestion-prompts.svelte-1xwj6s7 .seed-prompt:hover{background:var(--color-bg-hover);color:var(--color-text-primary)}.cm-suggestion-busy.svelte-1xwj6s7,.cm-suggestion-done.svelte-1xwj6s7{font-size:14px;line-height:20px;padding:9px 13px;min-height:var(--row-height);height:auto;border:1px solid var(--color-border);border-radius:8px;color:var(--color-text-tertiary);text-align:left;white-space:normal}.cm-suggestion-done.svelte-1xwj6s7 a:where(.svelte-1xwj6s7){color:var(--color-link);text-decoration:none}.cm-suggestion-done.svelte-1xwj6s7 a:where(.svelte-1xwj6s7):hover{text-decoration:underline}.cm-suggestion-undone.svelte-1xwj6s7{color:var(--color-text-tertiary);text-decoration:line-through}.cm-undo-btn.svelte-1xwj6s7{margin-left:8px;background:transparent;border:none;padding:0;color:var(--color-link);font:inherit;cursor:pointer}.cm-undo-btn.svelte-1xwj6s7:hover{text-decoration:underline}.cm-suggestion-busy-inline.svelte-1xwj6s7{margin-left:8px;color:var(--color-text-tertiary)}.cm-ellipsis.svelte-1xwj6s7:after{content:"";animation:svelte-1xwj6s7-ellipsis 1.5s steps(4,end) infinite}@keyframes svelte-1xwj6s7-ellipsis{0%{content:""}25%{content:"."}50%{content:".."}75%{content:"..."}}.cm-content.svelte-1xwj6s7 .cm-mention{color:var(--color-accent-fg);font-weight:400}.reply-chip.svelte-1xwj6s7{display:flex;align-items:center;gap:8px;padding:4px 8px;margin-bottom:6px;background:var(--color-bg-surface);border-left:2px solid var(--color-accent-fg);border-radius:4px;font-size:12px;min-width:0}.reply-chip-label.svelte-1xwj6s7{color:var(--color-accent-fg);font-weight:500;flex-shrink:0}.reply-chip-preview.svelte-1xwj6s7{color:var(--color-text-tertiary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0;flex:1}.reply-chip-close.svelte-1xwj6s7{display:flex;align-items:center;justify-content:center;background:none;border:none;color:var(--color-text-tertiary);cursor:pointer;padding:0;border-radius:3px;flex-shrink:0;margin-left:auto}.reply-chip-close.svelte-1xwj6s7:hover{color:var(--color-text-primary)}.at-popup.svelte-1xwj6s7{position:absolute;bottom:100%;left:16px;margin-bottom:4px;background:var(--color-bg);border:1px solid var(--color-border);border-radius:8px;box-shadow:0 2px 8px #0000001f;padding:4px;z-index:10}.at-popup-item.svelte-1xwj6s7{display:flex;align-items:center;gap:8px;padding:5px 8px;border-radius:5px;cursor:pointer;font-size:13px;color:var(--color-text-primary)}.at-popup-item.svelte-1xwj6s7:hover,.at-popup-selected.svelte-1xwj6s7{background:var(--color-bg-hover)}.at-popup-avatar.svelte-1xwj6s7{width:18px;height:18px;font-size:9px}.at-popup-hint.svelte-1xwj6s7{margin-left:auto;font-size:11px;color:var(--color-text-tertiary);background:var(--color-bg-surface);padding:1px 5px;border-radius:3px}.at-popup-hint.is-hidden.svelte-1xwj6s7{visibility:hidden}.agent-overlay-root.svelte-2kfnqv{position:absolute;inset:0;pointer-events:none;z-index:99}.agent-overlay-root.svelte-2kfnqv>:where(.svelte-2kfnqv){pointer-events:auto}.agent-fab.svelte-2kfnqv{position:absolute;right:16px;bottom:16px;width:48px;height:48px;padding:0;line-height:0;border-radius:50%;border:1px solid var(--color-accent);background:var(--color-accent);color:var(--color-accent-text, #ededef);display:flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 4px 14px #0000002e;transition:box-shadow .15s,background .15s,color .15s;z-index:2}.agent-fab.svelte-2kfnqv:hover{box-shadow:0 4px 14px #00000047}.agent-fab.is-open.svelte-2kfnqv{background:var(--color-bg-elevated, var(--color-bg));color:var(--color-text-primary);border-color:var(--color-border)}.agent-fab.has-unread.svelte-2kfnqv{animation:svelte-2kfnqv-fab-unread 1.6s ease-out infinite}@keyframes svelte-2kfnqv-fab-unread{0%{box-shadow:0 4px 14px #0000002e,0 0 rgba(var(--color-accent-rgb),.55)}70%{box-shadow:0 4px 14px #0000002e,0 0 0 14px rgba(var(--color-accent-rgb),0)}to{box-shadow:0 4px 14px #0000002e,0 0 rgba(var(--color-accent-rgb),0)}}.agent-panel.svelte-2kfnqv{position:absolute;right:16px;bottom:72px;width:420px;height:680px;max-width:calc(100% - 32px);max-height:calc(100% - 88px);display:flex;flex-direction:column;background:var(--color-bg);border:1px solid var(--color-border);border-radius:10px;box-shadow:0 10px 30px #0000002e;overflow:hidden;z-index:1}.agent-header.svelte-2kfnqv{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;padding:16px;min-height:var(--row-height, 44px);flex-shrink:0}.agent-header.svelte-2kfnqv>:where(.svelte-2kfnqv):first-child{justify-self:start}.agent-header.svelte-2kfnqv>:where(.svelte-2kfnqv):last-child{justify-self:end}.agent-session-nav.svelte-2kfnqv{display:flex;align-items:center;justify-self:center;gap:0}.agent-session-label.svelte-2kfnqv{font-size:13px;color:var(--color-text-primary);font-variant-numeric:tabular-nums;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:140px;text-align:center;padding:2px 8px}.agent-header-btn.svelte-2kfnqv{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;padding:0;border:none;background:transparent;color:var(--color-text-secondary);border-radius:4px;cursor:pointer;transition:background .15s,color .15s}.agent-header-btn.svelte-2kfnqv:hover:not(:disabled){background:var(--color-bg-hover);color:var(--color-text-primary)}.agent-header-btn.svelte-2kfnqv:disabled{opacity:.3;cursor:default}.agent-messages.svelte-2kfnqv{flex:1;overflow-y:auto;padding:16px 0;display:flex;flex-direction:column;gap:16px;min-height:0}.empty-state.svelte-2kfnqv{flex:1;display:flex;align-items:center;justify-content:center;min-height:100%;padding:0 16px}.seed-prompts.svelte-2kfnqv{display:flex;flex-direction:column;gap:8px;width:100%}.seed-prompts.svelte-2kfnqv .seed-prompt,.follow-up-prompts.svelte-2kfnqv .seed-prompt{font-size:14px;line-height:20px;padding:9px 13px;min-height:var(--row-height);height:auto;width:100%;border-radius:8px;color:var(--color-text-secondary);background:var(--color-bg-secondary, rgba(128, 128, 128, .06));text-align:left;white-space:normal;justify-content:flex-start}.seed-prompts.svelte-2kfnqv .seed-prompt:hover,.follow-up-prompts.svelte-2kfnqv .seed-prompt:hover{background:var(--color-bg-hover);color:var(--color-text-primary)}.follow-up-prompts.svelte-2kfnqv{display:flex;flex-direction:column;gap:8px;padding:0 16px;width:100%}.message-group.svelte-2kfnqv{display:flex;flex-direction:column;gap:16px;padding:0 16px}.user-bubble.svelte-2kfnqv{background:var(--color-bg-surface);border-radius:8px;padding:12px 14px;font-size:14px;line-height:22px;color:var(--color-text-primary)}.agent-content.svelte-2kfnqv{display:flex;flex-direction:column;gap:14px;position:relative}.msg-actions.svelte-2kfnqv{display:flex;gap:4px;align-self:flex-start}.copy-btn.svelte-2kfnqv{display:flex;align-items:center;justify-content:center;background:none;border:none;color:var(--color-text-tertiary);cursor:pointer;padding:4px;border-radius:4px}.copy-btn.svelte-2kfnqv:hover{color:var(--color-text-primary);background:var(--color-bg-hover)}.tool-calls.svelte-2kfnqv{display:flex;flex-direction:column;gap:4px}.tool-call.svelte-2kfnqv{font-family:var(--font-mono);font-size:12px;color:var(--color-accent-fg)}.agent-text.svelte-2kfnqv{font-size:14px;line-height:22px;color:var(--color-text-primary)}.prose.svelte-2kfnqv h1{font-size:18px;font-weight:600;color:var(--color-text-primary);margin:24px 0 12px}.prose.svelte-2kfnqv h2{font-size:16px;font-weight:600;color:var(--color-text-primary);margin:22px 0 10px}.prose.svelte-2kfnqv h3{font-size:15px;font-weight:600;color:var(--color-text-primary);margin:20px 0 8px}.prose.svelte-2kfnqv p{margin:0 0 14px}.prose.svelte-2kfnqv p:last-child{margin-bottom:0}.prose.svelte-2kfnqv strong{font-weight:600}.prose.svelte-2kfnqv ul,.prose.svelte-2kfnqv ol{padding-left:20px;margin:0 0 14px;color:var(--color-text-primary)}.prose.svelte-2kfnqv li ul,.prose.svelte-2kfnqv li ol{margin:4px 0 0}.prose.svelte-2kfnqv ul{list-style-type:disc}.prose.svelte-2kfnqv ol{list-style-type:decimal}.prose.svelte-2kfnqv li{margin-bottom:6px}.prose.svelte-2kfnqv table{width:100%;border-collapse:collapse;font-size:13px;margin:16px 0}.prose.svelte-2kfnqv th,.prose.svelte-2kfnqv td{border:1px solid var(--color-border);padding:4px 8px;text-align:left;vertical-align:top}.prose.svelte-2kfnqv th{font-weight:600}.prose.svelte-2kfnqv pre{background:var(--color-bg-surface);border-radius:6px;padding:10px 12px;overflow-x:auto;margin:16px 0;font-family:var(--font-mono);font-size:13px;line-height:18px}.prose.svelte-2kfnqv code{font-family:var(--font-mono);font-size:13px;background:var(--color-bg-surface);padding:1px 4px;border-radius:3px}.prose.svelte-2kfnqv pre code{background:none;padding:0}.prose.svelte-2kfnqv a{color:var(--color-link);text-decoration:none}.prose.svelte-2kfnqv a:hover{text-decoration:underline}.prose.svelte-2kfnqv blockquote{border-left:3px solid var(--color-accent-fg);padding-left:12px;margin:16px 0;color:var(--color-text-secondary)}.prose.svelte-2kfnqv hr{border:none;border-top:1px solid var(--color-border);margin:24px 0}.streaming-dot.svelte-2kfnqv{display:inline-block;width:8px;height:8px;background:var(--color-accent);border-radius:4px;animation:svelte-2kfnqv-pulse 1s ease-in-out infinite}@keyframes svelte-2kfnqv-pulse{0%,to{opacity:.3}50%{opacity:1}}.scroll-to-bottom-wrapper.svelte-2kfnqv{position:absolute;left:0;right:0;bottom:76px;display:flex;justify-content:center;z-index:2;pointer-events:none}.scroll-to-bottom.svelte-2kfnqv{width:28px;height:28px;border-radius:50%;border:1px solid var(--color-border);background:var(--color-bg-elevated);color:var(--color-text-secondary);display:flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 2px 8px #00000026;pointer-events:auto;transition:opacity .15s}.scroll-to-bottom.is-hidden.svelte-2kfnqv{opacity:0;pointer-events:none}.scroll-to-bottom.svelte-2kfnqv:hover{background:var(--color-bg-hover);color:var(--color-text-primary)}.agent-input-area.svelte-2kfnqv{padding:12px 16px 16px;flex-shrink:0}.context-chip.svelte-2kfnqv{font-size:12px;color:var(--color-text-tertiary);padding:0 2px 4px;overflow:hidden;white-space:nowrap;-webkit-mask-image:linear-gradient(to right,black calc(100% - 16px),transparent);mask-image:linear-gradient(to right,black calc(100% - 16px),transparent)}.text-input.svelte-2kfnqv{display:flex;align-items:flex-end;min-height:var(--row-height);max-height:140px;padding:0 0 0 13px;background:transparent;border:1px solid var(--color-border);border-radius:8px;transition:border-color .15s}.text-input.svelte-2kfnqv:focus-within{border-color:var(--color-accent)}.input-field.svelte-2kfnqv{flex:1;background:transparent;border:none;outline:none;font-family:inherit;font-size:14px;line-height:20px;color:var(--color-text-primary);resize:none;overflow-y:auto;padding:7px 0 11px;max-height:120px;min-height:20px;white-space:pre-wrap;word-wrap:break-word;field-sizing:content}.input-field.svelte-2kfnqv::placeholder{color:var(--color-text-tertiary)}.agent-panel .stop-btn.send-btn{color:var(--color-accent-text, #ededef)!important;background:var(--color-accent)!important;border-radius:6px}.sg-switch{all:unset;box-sizing:border-box;position:relative;display:inline-flex;align-items:center;width:32px;height:18px;padding:2px;border-radius:999px;background:var(--color-border);cursor:pointer;transition:background .15s;flex-shrink:0}.sg-switch[data-state=checked]{background:var(--color-accent)}.sg-switch[data-disabled]{opacity:.5;cursor:not-allowed}.sg-switch:focus-visible{outline:2px solid var(--color-accent);outline-offset:2px}.sg-switch-thumb{display:block;width:14px;height:14px;border-radius:50%;background:var(--color-bg);transform:translate(0);transition:transform .15s;pointer-events:none}.sg-switch[data-state=checked] .sg-switch-thumb{transform:translate(14px);background:var(--color-accent-text)}.modal-body.svelte-1vpgrso{padding:20px;overflow-y:auto;max-height:calc(85vh - 40px);display:flex;flex-direction:column;gap:24px}.section.svelte-1vpgrso{display:flex;flex-direction:column;gap:12px}.section-label.svelte-1vpgrso{font-size:14px;font-weight:500;color:var(--color-text-primary);margin:0}.color-grid.svelte-1vpgrso{display:flex;gap:10px;flex-wrap:wrap}.color-swatch.svelte-1vpgrso{width:24px;height:24px;border-radius:50%;border:none;cursor:pointer;outline:2px solid transparent;outline-offset:2px;transition:outline-color .15s}.color-swatch.svelte-1vpgrso:hover:not(.active){outline-color:var(--swatch-color)}.color-swatch.active.svelte-1vpgrso{outline-color:var(--color-text-primary)}.toggle-row.svelte-1vpgrso{display:inline-flex;align-items:center;gap:10px;cursor:pointer;width:fit-content}.toggle-title.svelte-1vpgrso{font-size:14px;color:var(--color-text-primary);line-height:1.3}.fields.svelte-1vpgrso{display:flex;flex-direction:column;gap:16px}.field.svelte-1vpgrso{display:flex;flex-direction:column;gap:8px}.password-wrapper.svelte-1vpgrso{position:relative}.pw-toggle.svelte-1vpgrso{position:absolute;right:10px;top:50%;transform:translateY(-50%);background:none;border:none;cursor:pointer;color:var(--color-text-tertiary);padding:4px;display:flex}.pw-toggle.svelte-1vpgrso:hover{color:var(--color-text-secondary)}.error-msg.svelte-1vpgrso{font-size:14px;color:var(--color-error, #e55)}.meeting-settings.svelte-67gzoi{padding:24px 32px}.panel-title.svelte-67gzoi{font-size:18px;font-weight:600;margin-bottom:8px}.panel-description.svelte-67gzoi{font-size:14px;color:var(--color-text-secondary);margin-bottom:24px;line-height:1.5}.setting-group.svelte-67gzoi{margin-bottom:20px}.setting-help.svelte-67gzoi{font-size:13px;color:var(--color-text-tertiary);margin-top:4px}.setting-help.svelte-67gzoi a:where(.svelte-67gzoi){color:var(--color-accent-fg)}.select-input.svelte-67gzoi{width:100%;padding:8px 12px;border-radius:6px;border:1px solid var(--color-border);background:var(--color-bg);color:var(--color-text-primary);font-size:14px;font-family:inherit;outline:none;margin-top:4px}.select-input.svelte-67gzoi:focus{border-color:var(--color-border-strong)}.error-text.svelte-67gzoi{color:var(--color-destructive-fg, #f04e4e);font-size:13px;margin-bottom:12px}.loading-text.svelte-67gzoi{color:var(--color-text-tertiary);font-size:14px}.save-row.svelte-67gzoi{margin-top:24px}.split-layout.svelte-1pdwh4i{display:flex;height:520px;max-height:calc(100vh - 160px)}.settings-sidebar.svelte-1pdwh4i{width:210px;flex-shrink:0;border-right:1px solid var(--color-border);display:flex;flex-direction:column;padding:26px 0}.sidebar-header.svelte-1pdwh4i{font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.06em;color:var(--color-text-tertiary);padding:0 20px 12px}.sidebar-nav.svelte-1pdwh4i{display:flex;flex-direction:column;gap:2px;padding:0 8px}.sidebar-nav.svelte-1pdwh4i .nav-item{display:flex;align-items:center;gap:10px;padding:0 12px;height:var(--row-height, 44px);border-radius:8px;font-size:14px;color:var(--color-text-secondary);text-align:left;width:100%;justify-content:flex-start}.sidebar-nav.svelte-1pdwh4i .nav-item:hover{background:var(--color-bg-hover);color:var(--color-text-primary)}.sidebar-nav.svelte-1pdwh4i .nav-item.active{background:var(--color-bg-selected);color:var(--color-text-primary);font-weight:600}.settings-main.svelte-1pdwh4i{flex:1;min-width:0;display:flex;flex-direction:column}.settings-main.svelte-1pdwh4i .dialog-body{padding-top:0}.panel-title.svelte-1pdwh4i{font-size:20px;font-weight:400;color:var(--color-text-primary);margin:0 0 24px;letter-spacing:-.01em;line-height:1.2}.hint.svelte-1pdwh4i{font-size:14px;color:var(--color-text-tertiary);margin:0}.error-msg.svelte-1pdwh4i{font-size:14px;color:var(--color-error, #e55)}.card.svelte-1pdwh4i{background:var(--color-bg);border:1px solid var(--color-border);border-radius:10px;padding:12px 16px;transition:border-color .15s}.card-row.svelte-1pdwh4i{display:flex;align-items:center;gap:14px}.card-title.svelte-1pdwh4i{font-size:14px;font-weight:600;color:var(--color-text-primary)}.panel-lede.svelte-1pdwh4i{margin:0 0 20px;max-width:620px;font-size:14px;line-height:22px;color:var(--color-text-primary)}.member-list.svelte-1pdwh4i{display:flex;flex-direction:column;gap:8px}.token-card.svelte-1pdwh4i{cursor:pointer;width:100%;text-align:left;font-family:inherit}.token-card.svelte-1pdwh4i:hover{border-color:var(--color-text-tertiary)}.token-card.svelte-1pdwh4i .card-title:where(.svelte-1pdwh4i){flex:1;min-width:0}.token-icon.svelte-1pdwh4i{width:18px;flex-shrink:0;display:flex;align-items:center;justify-content:center;color:var(--color-text-secondary)}.collection-chevron.svelte-1pdwh4i{color:var(--color-text-tertiary);display:flex;align-items:center;justify-content:center;flex-shrink:0}.add-btn.svelte-1pdwh4i{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;height:var(--control-height);padding:0 16px;margin-top:8px;margin-bottom:8px;background:var(--color-bg-surface);border:1px solid var(--color-border);border-radius:9px;color:var(--color-text-secondary);font-size:13px;font-weight:550;font-family:inherit;cursor:pointer;transition:all .15s}.add-btn.svelte-1pdwh4i:hover{background:var(--color-bg-hover)}.add-form.svelte-1pdwh4i{display:flex;flex-direction:column;gap:20px;padding:20px;background:var(--color-bg-surface);border:1px solid var(--color-border);border-radius:10px;margin-top:8px;margin-bottom:16px}.user-detail-header.svelte-1pdwh4i{display:flex;align-items:center;gap:8px;margin-bottom:16px}.token-icon-lg.svelte-1pdwh4i{width:32px;height:32px;flex-shrink:0;color:var(--color-text-secondary);display:flex;align-items:center;justify-content:center}.user-detail-name.svelte-1pdwh4i{font-size:20px;font-weight:400;color:var(--color-text-primary);letter-spacing:-.01em;line-height:1.2;min-width:0}.user-detail-field.svelte-1pdwh4i{display:flex;flex-direction:column;gap:6px;margin-bottom:16px}.user-detail-field.svelte-1pdwh4i:last-of-type{margin-bottom:24px}.static-value.svelte-1pdwh4i{font-size:14px;color:var(--color-text-primary);line-height:1.4}.value-copy-row.svelte-1pdwh4i{display:flex;align-items:center;gap:8px;min-height:var(--input-height);padding:0 8px 0 13px;background:var(--color-bg);border:1px solid var(--color-border);border-radius:9px;font-size:14px;color:var(--color-text-primary)}.value-copy-row.mono.svelte-1pdwh4i{font-family:var(--font-mono, ui-monospace, monospace);font-size:13px}.value-copy-row.secret.svelte-1pdwh4i{color:var(--color-success-fg, #1B7F3A)}.value-copy-text.svelte-1pdwh4i{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.copy-inline.svelte-1pdwh4i{width:28px;height:28px;flex-shrink:0;display:flex;align-items:center;justify-content:center;background:transparent;border:none;border-radius:6px;color:var(--color-text-tertiary);cursor:pointer;transition:all .15s}.copy-inline.svelte-1pdwh4i:hover{color:var(--color-text-primary);background:var(--color-bg-hover)}.security-section.svelte-1pdwh4i{margin-top:24px;display:flex;flex-direction:column;gap:8px}.section-label.svelte-1pdwh4i{font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.06em;color:var(--color-text-tertiary)}.security-alert.mint-alert{align-items:flex-start!important}.security-alert.mint-alert>svg{margin-top:2px}.security-alert.mint-alert .security-body{gap:14px!important;width:100%}.security-body.svelte-1pdwh4i{flex:1;display:flex;flex-direction:column;gap:8px;min-width:0}.mint-field.svelte-1pdwh4i{display:flex;flex-direction:column;gap:6px}.mint-field-label-row.svelte-1pdwh4i{display:flex;align-items:center;justify-content:space-between}.config-block.svelte-1pdwh4i{font-family:var(--font-mono, ui-monospace, monospace);font-size:12.5px;line-height:20px;color:var(--color-text-primary);background:var(--color-bg);border:1px solid var(--color-border);border-radius:9px;padding:12px 14px;margin:0;white-space:pre-wrap;word-break:break-all;overflow:auto;max-height:240px}.lost-config-hint.svelte-1pdwh4i{font-size:14px;color:var(--color-text-primary);margin:0 0 24px}.inline-link.svelte-1pdwh4i{background:transparent;border:none;padding:0;font:inherit;color:var(--color-text-primary);text-decoration:underline;text-decoration-color:color-mix(in srgb,currentColor 50%,transparent);text-decoration-thickness:1px;text-underline-offset:3px;transition:text-decoration-color .15s ease;cursor:pointer}.inline-link.svelte-1pdwh4i:hover{text-decoration-color:transparent}.danger-zone.svelte-1pdwh4i{margin-top:24px;display:flex;flex-direction:column;gap:8px}.danger-label.svelte-1pdwh4i{font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.06em;color:var(--color-text-tertiary)}.danger-body.svelte-1pdwh4i{flex:1;display:flex;flex-direction:column;gap:2px;min-width:0}.danger-actions.svelte-1pdwh4i{display:flex;gap:4px;flex-shrink:0}.mono-input{font-family:var(--font-mono, monospace)!important;font-size:13px!important}.mcp-config-textarea{font-family:var(--font-mono, ui-monospace, monospace)!important;font-size:13px!important}.connector-list.svelte-1pdwh4i{display:flex;flex-direction:column;gap:8px}.card-actions.svelte-1pdwh4i{display:flex;align-items:center;gap:4px}.connected-label.svelte-1pdwh4i{display:flex;align-items:center;gap:4px;font-size:13px;color:var(--color-accent-fg);background:none;border:none;font-family:inherit;cursor:default;padding:0}button.connected-label.svelte-1pdwh4i{cursor:pointer}button.connected-label.svelte-1pdwh4i:hover{opacity:.7}.confirm-row.svelte-1pdwh4i{display:flex;align-items:center;gap:10px;background:color-mix(in srgb,var(--color-accent-fg) 10%,transparent);border-color:color-mix(in srgb,var(--color-accent-fg) 30%,transparent)}.confirm-row.svelte-1pdwh4i svg{color:var(--color-accent-fg)!important}.confirm-row.svelte-1pdwh4i button:not([class*=destructive]):hover{background:color-mix(in srgb,var(--color-accent-fg) 15%,transparent)!important;color:var(--color-text-primary)!important}.confirm-text.svelte-1pdwh4i{font-size:14px;color:var(--color-text-primary);flex:1}.confirm-actions.svelte-1pdwh4i{display:flex;gap:4px;flex-shrink:0}.edit-form.svelte-1pdwh4i{display:flex;flex-direction:column;gap:8px;padding:12px 0}.add-form.svelte-1pdwh4i{display:flex;flex-direction:column;gap:20px;padding:20px;background:var(--color-bg-surface);border:1px solid var(--color-border);border-radius:10px;margin-top:8px;margin-bottom:8px}.field.svelte-1pdwh4i{display:flex;flex-direction:column;gap:8px}.add-form.svelte-1pdwh4i label{font-size:14px}.form-actions.svelte-1pdwh4i{display:flex;justify-content:flex-end;gap:8px}.add-server-btn.svelte-1pdwh4i{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;height:var(--control-height);padding:0 16px;margin-top:8px;margin-bottom:8px;background:var(--color-bg-surface);border:1px solid var(--color-border);border-radius:10px;color:var(--color-text-secondary);font-size:13px;font-weight:550;font-family:inherit;cursor:pointer;transition:all .15s}.add-server-btn.svelte-1pdwh4i:hover{background:var(--color-bg-hover)}.inline-edit.svelte-1e8pbku{display:flex;align-items:center;position:relative}.inline-edit.svelte-1e8pbku .inline-edit-input{height:40px!important;padding-right:72px!important}.inline-edit.lg.svelte-1e8pbku .inline-edit-input{font-size:20px!important;font-weight:400;line-height:1.2;letter-spacing:-.01em}.inline-edit-save.svelte-1e8pbku,.inline-edit-cancel.svelte-1e8pbku{position:absolute;top:50%;transform:translateY(-50%);border:none;border-radius:6px;cursor:pointer;width:28px;height:28px;padding:0;display:inline-flex;align-items:center;justify-content:center;transition:background .15s,color .15s}.inline-edit-save.svelte-1e8pbku{right:8px;background:var(--color-accent);color:var(--color-accent-text, #ededef)}.inline-edit-save.svelte-1e8pbku:hover:not(:disabled){background:var(--color-accent-hover, var(--color-accent))}.inline-edit-cancel.svelte-1e8pbku{right:40px;background:transparent;color:var(--color-text-tertiary)}.inline-edit-cancel.svelte-1e8pbku:hover:not(:disabled){background:var(--color-bg-hover);color:var(--color-text-primary)}.inline-edit-save.svelte-1e8pbku:disabled,.inline-edit-cancel.svelte-1e8pbku:disabled{opacity:.5;cursor:not-allowed}.user-folders.svelte-cwrr30{display:flex;flex-direction:column;gap:4px}.uf-header.svelte-cwrr30{display:flex;align-items:center;margin-bottom:4px}.uf-label.svelte-cwrr30,.uf-sublabel.svelte-cwrr30{font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.06em;color:var(--color-text-tertiary)}.uf-sublabel.svelte-cwrr30{margin-top:12px;margin-bottom:4px}.uf-row.svelte-cwrr30{display:flex;align-items:center;gap:10px;height:44px;font-size:14px;padding:0 12px;border:1px solid transparent;border-radius:8px}.uf-confirm.svelte-cwrr30{background:color-mix(in srgb,var(--color-accent-fg) 10%,transparent);border-color:color-mix(in srgb,var(--color-accent-fg) 30%,transparent)}.uf-confirm.svelte-cwrr30 button:not([class*=destructive]):hover{background:color-mix(in srgb,var(--color-accent-fg) 15%,transparent)!important;color:var(--color-text-primary)!important}.uf-confirm.svelte-cwrr30 svg{color:var(--color-accent-fg)!important}.uf-confirm-text.svelte-cwrr30{font-size:14px;color:var(--color-text-primary);flex:1}.uf-actions.svelte-cwrr30{display:flex;gap:4px;flex-shrink:0}.uf-row.svelte-cwrr30 svg{color:var(--color-text-secondary);flex-shrink:0}.uf-name.svelte-cwrr30{font-size:14px;font-weight:500;color:var(--color-text-primary)}.uf-name-muted.svelte-cwrr30{color:var(--color-text-secondary);font-weight:400}.uf-role-label.svelte-cwrr30{font-size:12px;font-weight:400;color:var(--color-text-tertiary);padding-right:4px}.uf-flex.svelte-cwrr30{flex:1}.uf-trash-placeholder.svelte-cwrr30{width:28px;height:28px;flex-shrink:0}.split-layout.svelte-1hdlfew{display:flex;height:560px;max-height:calc(100vh - 160px)}.settings-sidebar.svelte-1hdlfew{width:210px;flex-shrink:0;border-right:1px solid var(--color-border);display:flex;flex-direction:column;padding:26px 0}.sidebar-header.svelte-1hdlfew{font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.06em;color:var(--color-text-tertiary);padding:0 20px 12px}.sidebar-nav.svelte-1hdlfew{display:flex;flex-direction:column;gap:2px;padding:0 8px}.sidebar-nav.svelte-1hdlfew .nav-item{display:flex;align-items:center;gap:10px;padding:0 12px;border-radius:8px;font-size:14px;color:var(--color-text-secondary);text-align:left;width:100%;justify-content:flex-start;height:var(--row-height, 44px)}.sidebar-nav.svelte-1hdlfew .nav-item:hover{background:var(--color-bg-hover);color:var(--color-text-primary)}.sidebar-nav.svelte-1hdlfew .nav-item.active{background:var(--color-bg-selected);color:var(--color-text-primary);font-weight:600}.settings-main.svelte-1hdlfew{flex:1;min-width:0;display:flex;flex-direction:column}.close-only-header{justify-content:flex-end;min-height:0;padding:16px}.settings-body{padding-top:0!important}.panel-title.svelte-1hdlfew{font-size:20px;font-weight:400;color:var(--color-text-primary);margin:0 0 24px;letter-spacing:-.01em;line-height:1.2}.hint.svelte-1hdlfew{font-size:14px;color:var(--color-text-tertiary);margin:0}.error-msg.svelte-1hdlfew{font-size:14px;color:var(--color-error, #e55)}.fields.svelte-1hdlfew{display:flex;flex-direction:column;gap:16px;margin-bottom:20px}.field.svelte-1hdlfew{display:flex;flex-direction:column;gap:6px}.form-actions.svelte-1hdlfew{display:flex;justify-content:flex-end;gap:8px}.save-row.svelte-1hdlfew{display:flex;justify-content:flex-end;gap:8px;padding-top:8px}.search-wrapper.svelte-1hdlfew{position:relative;margin-bottom:8px;color:var(--color-text-tertiary)}.search-wrapper.svelte-1hdlfew svg{position:absolute;left:12px;top:50%;transform:translateY(-50%);pointer-events:none}.search-input.svelte-1hdlfew{width:100%;height:var(--input-height);padding:0 13px 0 36px;background:var(--color-bg);border:1px solid var(--color-border);border-radius:9px;font-size:14px;color:var(--color-text-primary);font-family:inherit;outline:none;transition:border-color .15s}.search-input.svelte-1hdlfew::placeholder{color:var(--color-text-tertiary)}.search-input.svelte-1hdlfew:focus{border-color:var(--color-accent)}.card.svelte-1hdlfew{background:var(--color-bg);border:1px solid var(--color-border);border-radius:8px;padding:14px;transition:border-color .15s}.card-row.svelte-1hdlfew{display:flex;align-items:center;gap:14px}.card-text.svelte-1hdlfew{display:flex;flex-direction:column;gap:6px;min-width:0;flex:1}.card-title.svelte-1hdlfew{font-size:14px;font-weight:600;color:var(--color-text-primary);line-height:1.2}.card-desc.svelte-1hdlfew{font-size:12px;color:var(--color-text-tertiary);line-height:1.2}.card-desc-sep.svelte-1hdlfew{color:var(--color-text-tertiary);opacity:.5;margin:0 6px}.member-list.svelte-1hdlfew,.collection-list.svelte-1hdlfew{display:flex;flex-direction:column;gap:8px}.role-label.svelte-1hdlfew{font-size:12px;font-weight:400;color:var(--color-accent-fg);margin-left:8px}.user-avatar.svelte-1hdlfew{width:18px;height:18px;border-radius:50%;background:var(--color-accent);color:var(--color-accent-text, #ededef);font-size:10px;font-weight:600;display:flex;align-items:center;justify-content:center;flex-shrink:0}.icon-danger:hover{color:var(--color-text-primary)!important;background:var(--color-bg-hover)!important}.collection-card.svelte-1hdlfew,.member-card.svelte-1hdlfew{cursor:pointer;width:100%;text-align:left;font-family:inherit}.collection-card.svelte-1hdlfew:hover,.member-card.svelte-1hdlfew:hover{border-color:var(--color-text-tertiary)}.collection-chevron.svelte-1hdlfew{color:var(--color-text-tertiary);display:flex;align-items:center;justify-content:center;width:28px;flex-shrink:0}.folder-detail-header.svelte-1hdlfew{display:flex;align-items:center;gap:8px;margin-bottom:16px}.folder-icon-lg.svelte-1hdlfew{width:32px;height:32px;color:var(--color-text-secondary);display:flex;align-items:center;justify-content:center;flex-shrink:0}.folder-detail-name.svelte-1hdlfew{font-size:20px;font-weight:400;color:var(--color-text-primary);letter-spacing:-.01em;line-height:1.2;min-width:0}.detail-section.svelte-1hdlfew{display:flex;flex-direction:column;gap:8px;margin-top:24px}.danger-zone.svelte-1hdlfew{margin-top:32px;display:flex;flex-direction:column;gap:8px}.danger-label.svelte-1hdlfew{font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.06em;color:var(--color-text-tertiary)}.danger-alert{align-items:center!important;gap:14px!important;padding:14px 20px!important}.danger-body.svelte-1hdlfew{flex:1;display:flex;flex-direction:column;gap:2px;min-width:0}.danger-actions.svelte-1hdlfew{display:flex;gap:4px;flex-shrink:0}.danger-cancel:hover{background-color:color-mix(in srgb,var(--color-accent-fg) 15%,transparent)!important}.delete-col-btn:hover{color:var(--color-accent-fg)!important;background:var(--color-accent-muted)!important}.user-detail-header.svelte-1hdlfew{display:flex;align-items:center;gap:8px;margin-bottom:16px}.user-avatar-lg.svelte-1hdlfew{width:28px;height:28px;border-radius:50%;background:var(--color-accent);color:var(--color-accent-text, #ededef);font-size:13px;font-weight:600;display:flex;align-items:center;justify-content:center;flex-shrink:0}.user-detail-name.svelte-1hdlfew{font-size:20px;font-weight:400;color:var(--color-text-primary);letter-spacing:-.01em;line-height:1.2;min-width:0}.user-detail-field.svelte-1hdlfew{display:flex;flex-direction:column;gap:6px;margin-bottom:16px}.user-detail-field.svelte-1hdlfew:last-of-type{margin-bottom:24px}.security-section.svelte-1hdlfew{margin-top:32px;display:flex;flex-direction:column;gap:8px}.section-label.svelte-1hdlfew{font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.06em;color:var(--color-text-tertiary)}.security-alert{align-items:center!important;gap:14px!important;padding:14px 20px!important}.security-body.svelte-1hdlfew{flex:1;display:flex;flex-direction:column;gap:8px;min-width:0}.reset-inline-row.svelte-1hdlfew{display:flex;align-items:center;gap:8px}.reset-inline-row.svelte-1hdlfew .reset-input{flex:1}.security-alert .reset-submit-btn{background:var(--color-accent)!important;color:var(--color-accent-text, #ededef)!important}.security-alert .reset-submit-btn:hover:not(:disabled){background:var(--color-accent-hover)!important}.security-alert .reset-input:focus{border-color:var(--color-accent)!important}.add-btn.svelte-1hdlfew{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;height:var(--control-height);padding:0 16px;margin-top:8px;margin-bottom:8px;background:var(--color-bg-surface);border:1px solid var(--color-border);border-radius:9px;color:var(--color-text-secondary);font-size:13px;font-weight:550;font-family:inherit;cursor:pointer;transition:all .15s}.add-btn.svelte-1hdlfew:hover{background:var(--color-bg-hover)}.add-form.svelte-1hdlfew label{font-size:14px}.add-form.svelte-1hdlfew{display:flex;flex-direction:column;gap:20px;padding:20px;background:var(--color-bg-surface);border:1px solid var(--color-border);border-radius:10px;margin-top:8px;margin-bottom:8px}.role-hint.svelte-1hdlfew{font-size:12px;color:var(--color-text-tertiary);margin:4px 0 0;line-height:1.4}.app-frame.svelte-vr1z90{width:100vw;height:100vh;display:flex;flex-direction:column;overflow:hidden;background:var(--color-bg)}.app-body.svelte-vr1z90{flex:1;display:flex;min-height:0;overflow:hidden}.main-content.svelte-vr1z90{flex:1;display:flex;flex-direction:column;min-width:0;min-height:0;overflow:hidden;position:relative}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{E as C,V as L,a as c,W as g}from"./DnL9f0lc.js";import{r as S,f as y}from"./
|
|
1
|
+
import{E as C,V as L,a as c,W as g}from"./DnL9f0lc.js";import{r as S,f as y}from"./FND3XtE8.js";import{syntaxTree as E}from"./wDIGUaoU.js";class M extends g{toDOM(){const e=document.createElement("span");return e.className="cm-bullet-widget",e.textContent="•",e}}class W extends g{constructor(e){super(),this.num=e}eq(e){return this.num===e.num}toDOM(){const e=document.createElement("span");return e.className="cm-ordered-widget",e.textContent=this.num.replace(/[.)]$/,""),e}}class F extends g{toDOM(){const e=document.createElement("div");return e.className="cm-hr-widget",e}}class I extends g{toDOM(){const e=document.createElement("span");return e.textContent="—",e}}class T extends g{constructor(e){super(),this.char=e}eq(e){return this.char===e.char}toDOM(){const e=document.createElement("span");return e.textContent=this.char,e}}class D extends g{constructor(e,m){super(),this.alt=e,this.url=m}eq(e){return this.alt===e.alt&&this.url===e.url}toDOM(){const e=document.createElement("div");e.className="cm-image-widget";const m=document.createElement("img");return m.src=this.url,m.alt=this.alt,m.loading="lazy",m.onerror=()=>{e.textContent=`[Image not found: ${this.alt||this.url}]`,e.className="cm-image-error"},e.appendChild(m),e}ignoreEvent(e){return e.type==="mousedown"}}class O extends g{constructor(e,m,l){super(),this.text=e,this.className=m,this.entityId=l}eq(e){return this.text===e.text&&this.className===e.className&&this.entityId===e.entityId}toDOM(){const e=document.createElement("span");return e.className=this.className,e.textContent=this.text,e.dataset.entityId=this.entityId,e.addEventListener("click",m=>{m.preventDefault(),m.stopPropagation(),e.dispatchEvent(new CustomEvent("wikilink-click",{bubbles:!0,detail:this.entityId}))}),e}ignoreEvent(e){return e.type==="mousedown"}}function q(n){return n.doc.lineAt(n.selection.main.head).number}function h(n,e,m){const l=n.selection.main.head;return l>=e&&l<=m}function v(n,e,m,l,d=!0){const t=n.from>0?e.doc.sliceString(n.from-1,n.from):"",u=n.to<e.doc.length?e.doc.sliceString(n.to,n.to+1):"";if(t!=="["||u!=="]")return!1;const i=n.from-1,r=n.to+1,s=e.doc.sliceString(n.from+1,n.to-1),o=S(s),a=o?"cm-live-wikilink cm-wikilink-active":"cm-live-wikilink cm-wikilink-inactive",f=l?`${a} ${l}`:a,p=s.indexOf("|"),x=p===-1?s:s.slice(0,p).trim();if(!d||!h(e,i,r)){const k=o?o.title:y(s);m.push(c.replace({widget:new O(k,f,x)}).range(i,r))}else m.push(c.mark({class:f}).range(i,r));return!0}function b(n){const e=n.state,m=n.hasFocus?q(e):-1,l=[];E(e).iterate({enter(t){const u=e.doc.lineAt(t.from).number;if(t.name.startsWith("ATXHeading")){const r=`cm-live-heading cm-live-heading-${parseInt(t.name.replace("ATXHeading",""),10)||1}`;if(l.push(c.mark({class:r}).range(t.from,t.to)),u!==m){let s=t.node.firstChild;for(;s;){if(s.name==="HeaderMark"){const o=Math.min(s.to+1,t.to);l.push(c.replace({}).range(s.from,o))}else s.name==="Link"&&v(s,e,l,r,n.hasFocus);s=s.nextSibling}}return!1}if(t.name==="Blockquote"){const i=e.doc.lineAt(t.from).number,r=e.doc.lineAt(t.to).number;for(let s=i;s<=r;s++){const o=e.doc.line(s);l.push(c.line({class:"cm-quote-line"}).range(o.from))}}if(t.name==="QuoteMark"&&u!==m){const r=e.doc.sliceString(t.to,Math.min(t.to+1,e.doc.length))===" "?t.to+1:t.to;l.push(c.replace({}).range(t.from,r))}if(t.name==="FencedCode"){const i=e.doc.lineAt(t.from).number,r=e.doc.lineAt(t.to).number;for(let s=i;s<=r;s++){const o=e.doc.line(s);l.push(c.line({class:"cm-code-line"}).range(o.from))}}if(t.name==="CodeMark"||t.name==="CodeInfo"){const i=t.node.parent;i?.name==="FencedCode"&&(n.hasFocus&&h(e,i.from,i.to)||l.push(c.replace({}).range(t.from,t.to)))}if(t.name==="HorizontalRule"&&u!==m&&l.push(c.replace({widget:new F}).range(t.from,t.to)),t.name==="ListMark"&&u!==m){const i=e.doc.lineAt(t.from),r=e.doc.sliceString(i.from,t.from);let s;r.includes(" ")?s=(r.match(/\t/g)||[]).length:s=Math.floor(r.length/2),s=Math.max(0,Math.min(s,5)),t.from>i.from&&l.push(c.replace({}).range(i.from,t.from));const o=Math.min(t.to+1,i.to);if(t.node.parent?.parent?.name==="OrderedList"){const f=e.doc.sliceString(t.from,t.to);l.push(c.replace({widget:new W(f)}).range(t.from,o))}else l.push(c.replace({widget:new M}).range(t.from,o));l.push(c.line({class:`cm-list-line cm-list-line-l${s}`}).range(i.from))}if(t.name==="StrongEmphasis"){if(!n.hasFocus||!h(e,t.from,t.to)){let i=t.node.firstChild,r=!1;for(;i;)i.name==="Link"&&(r=v(i,e,l,"cm-live-strong",n.hasFocus)),i=i.nextSibling;for(r||l.push(c.mark({class:"cm-live-strong"}).range(t.from,t.to)),i=t.node.firstChild;i;)i.name==="EmphasisMark"&&l.push(c.replace({}).range(i.from,i.to)),i=i.nextSibling}else l.push(c.mark({class:"cm-live-strong"}).range(t.from,t.to));return!1}if(t.name==="Emphasis"){if(!n.hasFocus||!h(e,t.from,t.to)){let i=t.node.firstChild,r=!1;for(;i;)i.name==="Link"&&(r=v(i,e,l,"cm-live-em",n.hasFocus)),i=i.nextSibling;for(r||l.push(c.mark({class:"cm-live-em"}).range(t.from,t.to)),i=t.node.firstChild;i;)i.name==="EmphasisMark"&&l.push(c.replace({}).range(i.from,i.to)),i=i.nextSibling}else l.push(c.mark({class:"cm-live-em"}).range(t.from,t.to));return!1}if(t.name==="InlineCode"){if(l.push(c.mark({class:"cm-live-code"}).range(t.from,t.to)),!n.hasFocus||!h(e,t.from,t.to)){let i=t.node.firstChild;for(;i;)i.name==="CodeMark"&&l.push(c.replace({}).range(i.from,i.to)),i=i.nextSibling}return!1}if(t.name==="Link"){const i=e.doc.sliceString(t.from,t.to);if(v(t,e,l,void 0,n.hasFocus))return!1;if(i.includes("](")){let r=t.node.firstChild;const s=[];let o=null;for(;r;)r.name==="LinkMark"&&s.push({from:r.from,to:r.to}),r.name==="URL"&&(o={from:r.from,to:r.to}),r=r.nextSibling;const a=o?e.doc.sliceString(o.from,o.to):"";return l.push(c.mark({class:"cm-live-link",attributes:a?{"data-href":a}:{}}).range(t.from,t.to)),(!n.hasFocus||!h(e,t.from,t.to))&&s.length>=2&&o&&(l.push(c.replace({}).range(s[0].from,s[0].to)),l.push(c.replace({}).range(s[1].from,t.to))),!1}}if(t.name==="Image"){if(!n.hasFocus||!h(e,t.from,t.to)){const r=e.doc.sliceString(t.from,t.to).match(/!\[([^\]]*)\]/),s=r?r[1]:"";let o="",a=t.node.firstChild;for(;a;)a.name==="URL"&&(o=e.doc.sliceString(a.from,a.to)),a=a.nextSibling;o&&l.push(c.replace({widget:new D(s,o)}).range(t.from,t.to))}else l.push(c.mark({class:"cm-image-raw"}).range(t.from,t.to));return!1}}});const d=e.doc;for(let t=1;t<=d.lines;t++){if(t===m)continue;const u=d.line(t),i=u.text,r=i.trim(),s=/^-{3,}$/.test(r)||/^\*{3,}$/.test(r)||/^_{3,}$/.test(r);let o=0;for(;!s&&(o=i.indexOf("--",o))!==-1;){const a=u.from+o,f=a+2;h(e,a,f)||l.push(c.replace({widget:new I}).range(a,f)),o+=2}for(let a=0;a<i.length;a++){const f=i[a];if(f!=='"'&&f!=="'")continue;const p=u.from+a;if(h(e,p,p+1))continue;const x=a>0?i[a-1]:"",k=!x||/[\s([\-—]/.test(x);let w;f==='"'?w=k?"“":"”":w=k?"‘":"’",l.push(c.replace({widget:new T(w)}).range(p,p+1))}}return c.set(l,!0)}const z=L.fromClass(class{decorations;constructor(n){this.decorations=b(n)}update(n){(n.docChanged||n.selectionSet||n.viewportChanged||n.focusChanged)&&(this.decorations=b(n.view))}},{decorations:n=>n.decorations}),H=C.baseTheme({".cm-live-heading":{fontWeight:"600"},".cm-live-heading-1":{fontSize:"1.5em"},".cm-live-heading-2":{fontSize:"1.2em"},".cm-live-heading-3":{fontSize:"1.05em"},".cm-live-strong":{fontWeight:"600"},".cm-live-em":{fontStyle:"italic"},".cm-live-code":{fontFamily:"monospace",fontSize:"0.9em",padding:"1px 4px",borderRadius:"3px",backgroundColor:"rgba(128,128,128,0.12)"},".cm-live-wikilink":{borderRadius:"3px"},".cm-wikilink-active":{color:"var(--color-accent, #f04e4e)",cursor:"pointer",textDecoration:"none"},".cm-wikilink-active:hover":{textDecoration:"underline"},".cm-wikilink-inactive":{color:"var(--color-text-tertiary)"},".cm-live-link":{color:"var(--color-link, #f37373)",textDecoration:"none",cursor:"pointer"},".cm-live-link:hover":{textDecoration:"underline"},".cm-bullet-widget":{color:"var(--color-text-tertiary)",display:"inline-block",width:"16px",marginLeft:"-16px"},".cm-ordered-widget":{color:"var(--color-text-tertiary)",display:"inline-block",width:"20px",marginLeft:"-20px"},".cm-line.cm-list-line":{paddingLeft:"20px"},".cm-line.cm-list-line-l1":{paddingLeft:"40px"},".cm-line.cm-list-line-l2":{paddingLeft:"60px"},".cm-line.cm-list-line-l3":{paddingLeft:"80px"},".cm-line.cm-list-line-l4":{paddingLeft:"100px"},".cm-line.cm-list-line-l5":{paddingLeft:"120px"},".cm-hr-widget":{borderTop:"1px solid var(--color-border, #333)",margin:"8px 0"},".cm-image-widget":{display:"block",lineHeight:"0"},".cm-image-widget img":{maxWidth:"100%",borderRadius:"4px"},".cm-image-error":{color:"var(--color-text-tertiary)",fontSize:"13px",fontStyle:"italic"},".cm-image-raw":{color:"var(--color-text-tertiary)"},".cm-line.cm-quote-line":{borderLeft:"1px solid var(--color-border)",paddingLeft:"12px",color:"var(--color-text-secondary)"},".cm-line.cm-quote-line.cm-list-line":{paddingLeft:"32px"},".cm-line.cm-quote-line.cm-list-line-l1":{paddingLeft:"52px"},".cm-line.cm-quote-line.cm-list-line-l2":{paddingLeft:"72px"},".cm-line.cm-quote-line.cm-list-line-l3":{paddingLeft:"92px"},".cm-line.cm-quote-line.cm-list-line-l4":{paddingLeft:"112px"},".cm-line.cm-quote-line.cm-list-line-l5":{paddingLeft:"132px"},".cm-line.cm-code-line":{fontFamily:"var(--font-mono, ui-monospace, monospace)",fontSize:"0.9em",backgroundColor:"rgba(128,128,128,0.08)",paddingLeft:"12px",paddingRight:"12px"}});export{z as livePreviewPlugin,H as livePreviewTheme};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as a,s as o,e as S,V as z,p as L,l as h,d as p,a as M,c as C,n as T,r as b,b as $,m as v,t as N}from"./txOdadJq.js";import{apiFetch as R}from"./DFYOFE3o.js";import{r as O}from"./
|
|
1
|
+
import{g as a,s as o,e as S,V as z,p as L,l as h,d as p,a as M,c as C,n as T,r as b,b as $,m as v,t as N}from"./txOdadJq.js";import{apiFetch as R}from"./DFYOFE3o.js";import{r as O}from"./DQO1YURa.js";import"./DsnmJJEf.js";import{i as P}from"./DpgUPK2a.js";import{a as A,s as V,f as B}from"./9gtwoV4P.js";import{l as w,p as x,i as k}from"./BCLL87Av.js";import{a as G}from"./ypcxmEdT.js";let c=S(null);const et={register(t){o(c,t,!0)},unregister(){o(c,null)},get available(){return a(c)!==null},open(t,e){a(c)?.(t,e)}},y=["#FE3C3C","#C06A6A","#CC7013","#AB8630","#5A9A08","#369770","#289795","#4289C4","#718599","#7C7CD9","#B267F3","#B269C0","#DC6CD4"],H="#7C7CD9";let d=S(z({}));async function g(){try{const{colors:t}=await R("/api/auth/colors");o(d,t,!0)}catch{}}function K(t,e){if(e==="agent")return H;const r=a(d)[String(t)];if(r)return r;const n=typeof t=="number"?t:parseInt(String(t),10),s=(Number.isFinite(n)?n:Y(String(t)))%y.length;return y[Math.abs(s)]}function Y(t){let e=0;for(let r=0;r<t.length;r++)e=(e<<5)-e+t.charCodeAt(r)|0;return e}g();O.addConnectHandler(()=>g());const rt={getColor:K,load:g,get colors(){return a(d)}},at=z({count:null});var j=B("<title> </title>"),q=B('<svg><!><path d="M24.59 16.59 17 24.17 17 4 15 4 15 24.17 7.41 16.59 6 18 16 28 26 18 24.59 16.59z"></path></svg>');function st(t,e){const r=w(e,["children","$$slots","$$events","$$legacy"]),n=w(r,["size","title"]);L(e,!1);const s=v(),m=v();let _=x(e,"size",8,16),i=x(e,"title",8,void 0);h(()=>(p(r),p(i())),()=>{o(s,r["aria-label"]||r["aria-labelledby"]||i())}),h(()=>(a(s),p(r)),()=>{o(m,{"aria-hidden":a(s)?void 0:!0,role:a(s)?"img":void 0,focusable:Number(r.tabindex)===0?!0:void 0})}),M(),P();var l=q();G(l,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:_(),height:_(),...a(m),...n}));var D=C(l);{var E=f=>{var u=j(),F=C(u,!0);b(u),N(()=>V(F,i())),A(f,u)};k(D,f=>{i()&&f(E)})}T(),b(l),A(t,l),$()}export{st as A,at as f,et as n,rt as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./DsnmJJEf.js";import{p as fe,c as J,r as Y,t as K,b as ve,e as A,V as ye,i as ht,s as r,g as e,P as Xt,ao as we,h as Ct,u as l,I as lt,f as h}from"./txOdadJq.js";import{a,b as G,o as xe,g as Lt,e as Me,c as b,d as Ee,t as he,s as Yt,f as Ft}from"./9gtwoV4P.js";import{p as T,i as B,b as Ie,s as le,r as Pe}from"./BCLL87Av.js";import{e as ue}from"./COTW6jrp.js";import{f as st,b as rt,c as y,d as ce,s as p,a as Ae,S as Ce}from"./ypcxmEdT.js";import{a as O,c as it,s as Le,S as He}from"./QFQ05a0D.js";import{c as Tt}from"./DerefRkG.js";import"./DpgUPK2a.js";const Oe=Array(12).fill(0);var ke=G('<div class="sonner-loading-bar"></div>'),Ne=G('<div><div class="sonner-spinner"></div></div>');function Re(_,t){fe(t,!0);var C=Ne(),k=J(C);ue(k,23,()=>Oe,($,tt)=>`spinner-bar-${tt}`,($,tt)=>{var ct=ke();a($,ct)}),Y(k),Y(C),K($=>{rt(C,1,$),y(C,"data-visible",t.visible)},[()=>st(["sonner-loading-wrapper",t.class].filter(Boolean).join(" "))]),a(_,C),ve()}function Zt(_){return _.label!==void 0}function Fe(){let _=A(ye(typeof document<"u"?document.hidden:!1));return ht(()=>xe(document,"visibilitychange",()=>{r(_,document.hidden,!0)})),{get current(){return e(_)}}}const be=4e3,ze=14,We=45,Ve=200,Ue=.05,je={toast:"",title:"",description:"",loader:"",closeButton:"",cancelButton:"",actionButton:"",action:"",warning:"",error:"",success:"",default:"",info:"",loading:""};function Ke(_){const[t,C]=_.split("-"),k=[];return t&&k.push(t),C&&k.push(C),k}function _e(_){return 1/(1.5+Math.abs(_)/20)}var Ye=G("<div><!></div>"),Ze=G('<button data-close-button=""><!></button>'),Ge=G('<div data-icon=""><!> <!></div>'),Xe=G('<div data-description=""><!></div>'),Qe=G('<button data-button="" data-cancel=""> </button>'),qe=G('<button data-button=""> </button>'),Je=G('<!> <div data-content=""><div data-title=""><!></div> <!></div> <!> <!>',1),pe=G('<li aria-atomic="true" data-sonner-toast=""><!> <!></li>');function $e(_,t){fe(t,!0);const C=s=>{var c=b(),v=h(c);{var w=m=>{var L=Ye(),It=J(L);p(It,()=>t.loadingIcon),Y(L),K(Rt=>{rt(L,1,Rt),y(L,"data-visible",e(S)==="loading")},[()=>st(it(e(j)?.loader,t.toast?.classes?.loader,"sonner-loader"))]),a(m,L)},x=m=>{{let L=l(()=>it(e(j)?.loader,t.toast.classes?.loader)),It=l(()=>e(S)==="loading");Re(m,{get class(){return e(L)},get visible(){return e(It)}})}};B(v,m=>{t.loadingIcon?m(w):m(x,!1)})}a(s,c)};let k=T(t,"cancelButtonStyle",3,""),$=T(t,"actionButtonStyle",3,""),tt=T(t,"descriptionClass",3,""),ct=T(t,"unstyled",3,!1),Bt=T(t,"defaultRichColors",3,!1);const St={...je};let U=A(!1),N=A(!1),Dt=A(!1),Ht=A(!1),Ot=A(!1),W=A(0),dt=A(0),Mt=t.toast.duration||t.duration||be,Z=A(void 0),et=A(null),kt=A(null);const Qt=l(()=>t.index===0),qt=l(()=>t.index+1<=t.visibleToasts),S=l(()=>t.toast.type),V=l(()=>t.toast.dismissible!==void 0?t.toast.dismissible!==!1:t.toast.dismissable!==!1),Et=l(()=>t.toast.class||""),yt=l(()=>t.toast.descriptionClass||""),ut=l(()=>O.heights.findIndex(s=>s.toastId===t.toast.id)||0),ft=l(()=>t.toast.closeButton??t.closeButton),wt=l(()=>t.toast.duration??t.duration??be);let bt=null;const zt=l(()=>t.position.split("-")),Jt=l(()=>O.heights.reduce((s,c,v)=>v>=e(ut)?s:s+c.height,0)),pt=Fe(),$t=l(()=>t.toast.invert||t.invert),Nt=l(()=>e(S)==="loading"),j=l(()=>({...St,...t.classes})),te=l(()=>t.toast.title),ee=l(()=>t.toast.description);let vt=A(0),Wt=A(0);const Pt=l(()=>Math.round(e(ut)*ze+e(Jt)));ht(()=>{e(te),e(ee);let s;t.expanded||t.expandByDefault?s=1:s=1-t.index*Ue;const c=Xt(()=>e(Z));if(c===void 0)return;c.style.setProperty("height","auto");const v=c.offsetHeight,w=c.getBoundingClientRect().height,x=Math.round(w/s+Number.EPSILON&100)/100;c.style.removeProperty("height");let m;Math.abs(x-v)<1?m=x:m=v,r(dt,m,!0),O.setHeight({toastId:t.toast.id,height:m})});function n(){r(N,!0),r(W,e(Pt),!0),O.removeHeight(t.toast.id),setTimeout(()=>{O.remove(t.toast.id)},Ve)}let M;const nt=l(()=>t.toast.promise&&e(S)==="loading"||t.toast.duration===Number.POSITIVE_INFINITY);function at(){r(vt,new Date().getTime(),!0),M=setTimeout(()=>{t.toast.onAutoClose?.(t.toast),n()},Mt)}function xt(){if(e(Wt)<e(vt)){const s=new Date().getTime()-e(vt);Mt=Mt-s}r(Wt,new Date().getTime(),!0)}ht(()=>{t.toast.updated&&(clearTimeout(M),Mt=e(wt),at())}),ht(()=>(e(nt)||(t.expanded||t.interacting||t.pauseWhenPageIsHidden&&pt.current?xt():at()),()=>clearTimeout(M))),we(()=>{r(U,!0);const s=e(Z)?.getBoundingClientRect().height;return r(dt,s,!0),O.setHeight({toastId:t.toast.id,height:s}),()=>{O.removeHeight(t.toast.id)}}),ht(()=>{t.toast.delete&&Xt(()=>{n(),t.toast.onDismiss?.(t.toast)})});const ne=s=>{if(e(Nt))return;r(W,e(Pt),!0);const c=s.target;c.setPointerCapture(s.pointerId),c.tagName!=="BUTTON"&&(r(Dt,!0),bt={x:s.clientX,y:s.clientY})},ge=()=>{if(e(Ht)||!e(V))return;bt=null;const s=Number(e(Z)?.style.getPropertyValue("--swipe-amount-x").replace("px","")||0),c=Number(e(Z)?.style.getPropertyValue("--swipe-amount-y").replace("px","")||0),v=new Date().getTime()-0,w=e(et)==="x"?s:c,x=Math.abs(w)/v;if(Math.abs(w)>=We||x>.11){r(W,e(Pt),!0),t.toast.onDismiss?.(t.toast),e(et)==="x"?r(kt,s>0?"right":"left",!0):r(kt,c>0?"down":"up",!0),n(),r(Ht,!0);return}else e(Z)?.style.setProperty("--swipe-amount-x","0px"),e(Z)?.style.setProperty("--swipe-amount-y","0px");r(Ot,!1),r(Dt,!1),r(et,null)},Vt=s=>{if(!bt||!e(V)||(window.getSelection()?.toString().length??-1)>0)return;const v=s.clientY-bt.y,w=s.clientX-bt.x,x=t.swipeDirections??Ke(t.position);!e(et)&&(Math.abs(w)>1||Math.abs(v)>1)&&r(et,Math.abs(w)>Math.abs(v)?"x":"y",!0);let m={x:0,y:0};if(e(et)==="y"){if(x.includes("top")||x.includes("bottom"))if(x.includes("top")&&v<0||x.includes("bottom")&&v>0)m.y=v;else{const L=v*_e(v);m.y=Math.abs(L)<Math.abs(v)?L:v}}else if(e(et)==="x"&&(x.includes("left")||x.includes("right")))if(x.includes("left")&&w<0||x.includes("right")&&w>0)m.x=w;else{const L=w*_e(w);m.x=Math.abs(L)<Math.abs(w)?L:w}(Math.abs(m.x)>0||Math.abs(m.y)>0)&&r(Ot,!0),e(Z)?.style.setProperty("--swipe-amount-x",`${m.x}px`),e(Z)?.style.setProperty("--swipe-amount-y",`${m.y}px`)},ot=()=>{r(Dt,!1),r(et,null),bt=null},gt=l(()=>t.toast.icon?t.toast.icon:e(S)==="success"?t.successIcon:e(S)==="error"?t.errorIcon:e(S)==="warning"?t.warningIcon:e(S)==="info"?t.infoIcon:e(S)==="loading"?t.loadingIcon:null);var i=pe();y(i,"tabindex",0);let At;var Ut=J(i);{var me=s=>{var c=Ze(),v=J(c);p(v,()=>t.closeIcon??lt),Y(c),K(w=>{y(c,"aria-label",t.closeButtonAriaLabel),y(c,"data-disabled",e(Nt)),rt(c,1,w)},[()=>st(it(e(j)?.closeButton,t.toast?.classes?.closeButton))]),Lt("click",c,()=>{e(Nt)||!e(V)||(n(),t.toast.onDismiss?.(t.toast))}),a(s,c)};B(Ut,s=>{e(ft)&&!t.toast.component&&e(S)!=="loading"&&t.closeIcon!==null&&s(me)})}var ae=Ct(Ut,2);{var oe=s=>{const c=l(()=>t.toast.component);var v=b(),w=h(v);Tt(w,()=>e(c),(x,m)=>{m(x,le(()=>t.toast.componentProps,{closeToast:n}))}),a(s,v)},ie=s=>{var c=Je(),v=h(c);{var w=u=>{var g=Ge(),o=J(g);{var I=d=>{var f=b(),z=h(f);{var E=_t=>{var Kt=b(),re=h(Kt);Tt(re,()=>t.toast.icon,(H,F)=>{F(H,{})}),a(_t,Kt)},q=_t=>{C(_t)};B(z,_t=>{t.toast.icon?_t(E):_t(q,!1)})}a(d,f)};B(o,d=>{(t.toast.promise||e(S)==="loading")&&d(I)})}var P=Ct(o,2);{var D=d=>{var f=b(),z=h(f);{var E=H=>{var F=b(),mt=h(F);Tt(mt,()=>t.toast.icon,(Se,De)=>{De(Se,{})}),a(H,F)},q=H=>{var F=b(),mt=h(F);p(mt,()=>t.successIcon??lt),a(H,F)},_t=H=>{var F=b(),mt=h(F);p(mt,()=>t.errorIcon??lt),a(H,F)},Kt=H=>{var F=b(),mt=h(F);p(mt,()=>t.warningIcon??lt),a(H,F)},re=H=>{var F=b(),mt=h(F);p(mt,()=>t.infoIcon??lt),a(H,F)};B(z,H=>{t.toast.icon?H(E):e(S)==="success"?H(q,1):e(S)==="error"?H(_t,2):e(S)==="warning"?H(Kt,3):e(S)==="info"&&H(re,4)})}a(d,f)};B(P,d=>{t.toast.type!=="loading"&&d(D)})}Y(g),K(d=>rt(g,1,d),[()=>st(it(e(j)?.icon,t.toast?.classes?.icon))]),a(u,g)};B(v,u=>{(e(S)||t.toast.icon||t.toast.promise)&&t.toast.icon!==null&&(e(gt)!==null||t.toast.icon)&&u(w)})}var x=Ct(v,2),m=J(x),L=J(m);{var It=u=>{var g=b(),o=h(g);{var I=D=>{const d=l(()=>t.toast.title);var f=b(),z=h(f);Tt(z,()=>e(d),(E,q)=>{q(E,le(()=>t.toast.componentProps))}),a(D,f)},P=D=>{var d=he();K(()=>Yt(d,t.toast.title)),a(D,d)};B(o,D=>{typeof t.toast.title!="string"?D(I):D(P,!1)})}a(u,g)};B(L,u=>{t.toast.title&&u(It)})}Y(m);var Rt=Ct(m,2);{var se=u=>{var g=Xe(),o=J(g);{var I=D=>{const d=l(()=>t.toast.description);var f=b(),z=h(f);Tt(z,()=>e(d),(E,q)=>{q(E,le(()=>t.toast.componentProps))}),a(D,f)},P=D=>{var d=he();K(()=>Yt(d,t.toast.description)),a(D,d)};B(o,D=>{typeof t.toast.description!="string"?D(I):D(P,!1)})}Y(g),K(D=>rt(g,1,D),[()=>st(it(tt(),e(yt),e(j)?.description,t.toast.classes?.description))]),a(u,g)};B(Rt,u=>{t.toast.description&&u(se)})}Y(x);var jt=Ct(x,2);{var X=u=>{var g=b(),o=h(g);{var I=d=>{var f=b(),z=h(f);Tt(z,()=>t.toast.cancel,(E,q)=>{q(E,{})}),a(d,f)},P=d=>{var f=Qe(),z=J(f,!0);Y(f),K(E=>{ce(f,t.toast.cancelButtonStyle??k()),rt(f,1,E),Yt(z,t.toast.cancel.label)},[()=>st(it(e(j)?.cancelButton,t.toast?.classes?.cancelButton))]),Lt("click",f,E=>{Zt(t.toast.cancel)&&e(V)&&(t.toast.cancel?.onClick?.(E),n())}),a(d,f)},D=l(()=>Zt(t.toast.cancel));B(o,d=>{typeof t.toast.cancel=="function"?d(I):e(D)&&d(P,1)})}a(u,g)};B(jt,u=>{t.toast.cancel&&u(X)})}var R=Ct(jt,2);{var Q=u=>{var g=b(),o=h(g);{var I=d=>{var f=b(),z=h(f);Tt(z,()=>t.toast.action,(E,q)=>{q(E,{})}),a(d,f)},P=d=>{var f=qe(),z=J(f,!0);Y(f),K(E=>{ce(f,t.toast.actionButtonStyle??$()),rt(f,1,E),Yt(z,t.toast.action.label)},[()=>st(it(e(j)?.actionButton,t.toast?.classes?.actionButton))]),Lt("click",f,E=>{Zt(t.toast.action)&&(t.toast.action?.onClick(E),!E.defaultPrevented&&n())}),a(d,f)},D=l(()=>Zt(t.toast.action));B(o,d=>{typeof t.toast.action=="function"?d(I):e(D)&&d(P,1)})}a(u,g)};B(R,u=>{t.toast.action&&u(Q)})}K((u,g)=>{rt(x,1,u),rt(m,1,g)},[()=>st(it(e(j)?.content,t.toast?.classes?.content)),()=>st(it(e(j)?.title,t.toast?.classes?.title))]),a(s,c)};B(ae,s=>{t.toast.component?s(oe):s(ie,!1)})}Y(i),Ie(i,s=>r(Z,s),()=>e(Z)),K((s,c,v)=>{rt(i,1,s),y(i,"aria-live",t.toast.important?"assertive":"polite"),y(i,"data-rich-colors",t.toast.richColors??Bt()),y(i,"data-styled",!(t.toast.component||t.toast.unstyled||ct())),y(i,"data-mounted",e(U)),y(i,"data-promise",c),y(i,"data-swiped",e(Ot)),y(i,"data-removed",e(N)),y(i,"data-visible",e(qt)),y(i,"data-y-position",e(zt)[0]),y(i,"data-x-position",e(zt)[1]),y(i,"data-index",t.index),y(i,"data-front",e(Qt)),y(i,"data-swiping",e(Dt)),y(i,"data-dismissible",e(V)),y(i,"data-type",e(S)),y(i,"data-invert",e($t)),y(i,"data-swipe-out",e(Ht)),y(i,"data-swipe-direction",e(kt)),y(i,"data-expanded",v),At=ce(i,`${t.style} ${t.toast.style}`,At,{"--index":t.index,"--toasts-before":t.index,"--z-index":O.toasts.length-t.index,"--offset":`${e(N)?e(W):e(Pt)}px`,"--initial-height":t.expandByDefault?"auto":`${e(dt)}px`})},[()=>st(it(t.class,e(Et),e(j)?.toast,t.toast?.classes?.toast,e(j)?.[e(S)],t.toast?.classes?.[e(S)])),()=>!!t.toast.promise,()=>!!(t.expanded||t.expandByDefault&&e(U))]),Lt("pointermove",i,Vt),Lt("pointerup",i,ge),Lt("pointerdown",i,ne),Me("dragend",i,ot),a(_,i),ve()}Ee(["pointermove","pointerup","pointerdown","click"]);var tn=Ft('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" height="20" width="20" data-sonner-success-icon=""><path fill-rule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z" clip-rule="evenodd"></path></svg>');function en(_){var t=tn();a(_,t)}var nn=Ft('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" height="20" width="20" data-sonner-error-icon=""><path fill-rule="evenodd" d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z" clip-rule="evenodd"></path></svg>');function an(_){var t=nn();a(_,t)}var on=Ft('<svg viewBox="0 0 64 64" fill="currentColor" height="20" width="20" data-sonner-warning-icon="" xmlns="http://www.w3.org/2000/svg"><path d="M32.427,7.987c2.183,0.124 4,1.165 5.096,3.281l17.936,36.208c1.739,3.66 -0.954,8.585 -5.373,8.656l-36.119,0c-4.022,-0.064 -7.322,-4.631 -5.352,-8.696l18.271,-36.207c0.342,-0.65 0.498,-0.838 0.793,-1.179c1.186,-1.375 2.483,-2.111 4.748,-2.063Zm-0.295,3.997c-0.687,0.034 -1.316,0.419 -1.659,1.017c-6.312,11.979 -12.397,24.081 -18.301,36.267c-0.546,1.225 0.391,2.797 1.762,2.863c12.06,0.195 24.125,0.195 36.185,0c1.325,-0.064 2.321,-1.584 1.769,-2.85c-5.793,-12.184 -11.765,-24.286 -17.966,-36.267c-0.366,-0.651 -0.903,-1.042 -1.79,-1.03Z"></path><path d="M33.631,40.581l-3.348,0l-0.368,-16.449l4.1,0l-0.384,16.449Zm-3.828,5.03c0,-0.609 0.197,-1.113 0.592,-1.514c0.396,-0.4 0.935,-0.601 1.618,-0.601c0.684,0 1.223,0.201 1.618,0.601c0.395,0.401 0.593,0.905 0.593,1.514c0,0.587 -0.193,1.078 -0.577,1.473c-0.385,0.395 -0.929,0.593 -1.634,0.593c-0.705,0 -1.249,-0.198 -1.634,-0.593c-0.384,-0.395 -0.576,-0.886 -0.576,-1.473Z"></path></svg>');function sn(_){var t=on();a(_,t)}var rn=Ft('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" height="20" width="20" data-sonner-info-icon=""><path fill-rule="evenodd" d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z" clip-rule="evenodd"></path></svg>');function ln(_){var t=rn();a(_,t)}var cn=Ft('<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" data-sonner-close-icon=""><line x1="18" y1="6" x2="6" y2="18"></line><line x1="6" y1="6" x2="18" y2="18"></line></svg>');function dn(_){var t=cn();a(_,t)}const un=3,Te="24px",Be="16px",fn=4e3,vn=356,gn=14,de="dark",Gt="light";function mn(_,t){const C={};return[_,t].forEach((k,$)=>{const tt=$===1,ct=tt?"--mobile-offset":"--offset",Bt=tt?Be:Te;function St(U){["top","right","bottom","left"].forEach(N=>{C[`${ct}-${N}`]=typeof U=="number"?`${U}px`:U})}typeof k=="number"||typeof k=="string"?St(k):typeof k=="object"?["top","right","bottom","left"].forEach(U=>{const N=k[U];N===void 0?C[`${ct}-${U}`]=Bt:C[`${ct}-${U}`]=typeof N=="number"?`${N}px`:N}):St(Bt)}),C}var hn=G("<ol></ol>"),bn=G('<section aria-live="polite" aria-relevant="additions text" aria-atomic="false" class="svelte-nbs0zk"><!></section>');function Mn(_,t){fe(t,!0);function C(n){return n!=="system"?n:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?de:Gt}let k=T(t,"invert",3,!1),$=T(t,"position",3,"bottom-right"),tt=T(t,"hotkey",19,()=>["altKey","KeyT"]),ct=T(t,"expand",3,!1),Bt=T(t,"closeButton",3,!1),St=T(t,"offset",3,Te),U=T(t,"mobileOffset",3,Be),N=T(t,"theme",3,"light"),Dt=T(t,"richColors",3,!1),Ht=T(t,"duration",3,fn),Ot=T(t,"visibleToasts",3,un),W=T(t,"toastOptions",19,()=>({})),dt=T(t,"dir",7,"auto"),Mt=T(t,"gap",3,gn),Z=T(t,"pauseWhenPageIsHidden",3,!1),et=T(t,"containerAriaLabel",3,"Notifications"),kt=T(t,"closeButtonAriaLabel",3,"Close toast"),Qt=Pe(t,["$$slots","$$events","$$legacy","invert","position","hotkey","expand","closeButton","offset","mobileOffset","theme","richColors","duration","visibleToasts","toastOptions","dir","gap","pauseWhenPageIsHidden","loadingIcon","successIcon","errorIcon","warningIcon","closeIcon","infoIcon","containerAriaLabel","class","closeButtonAriaLabel","onblur","onfocus","onmouseenter","onmousemove","onmouseleave","ondragend","onpointerdown","onpointerup"]);function qt(){if(dt()!=="auto")return dt();if(typeof window>"u"||typeof document>"u")return"ltr";const n=document.documentElement.getAttribute("dir");return n==="auto"||!n?(Xt(()=>dt(window.getComputedStyle(document.documentElement).direction??"ltr")),dt()):(Xt(()=>dt(n)),n)}const S=l(()=>Array.from(new Set([$(),...O.toasts.filter(n=>n.position).map(n=>n.position)].filter(Boolean))));let V=A(!1),Et=A(!1),yt=A(ye(C(N()))),ut=A(void 0),ft=A(null),wt=A(!1);const bt=l(()=>tt().join("+").replace(/Key/g,"").replace(/Digit/g,""));ht(()=>{O.toasts.length<=1&&r(V,!1)}),ht(()=>{const n=O.toasts.filter(M=>M.dismiss&&!M.delete);if(n.length>0){const M=O.toasts.map(nt=>n.find(xt=>xt.id===nt.id)?{...nt,delete:!0}:nt);O.toasts=M}}),ht(()=>()=>{e(ut)&&e(ft)&&(e(ft).focus({preventScroll:!0}),r(ft,null),r(wt,!1))}),we(()=>(O.reset(),xe(document,"keydown",M=>{tt().every(at=>M[at]||M.code===at)&&(r(V,!0),e(ut)?.focus()),M.code==="Escape"&&(document.activeElement===e(ut)||e(ut)?.contains(document.activeElement))&&r(V,!1)}))),ht(()=>{if(N()!=="system"&&r(yt,N()),typeof window<"u"){N()==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?r(yt,de):r(yt,Gt));const n=window.matchMedia("(prefers-color-scheme: dark)"),M=({matches:nt})=>{N()==="system"&&r(yt,nt?de:Gt,!0)};"addEventListener"in n?n.addEventListener("change",M):n.addListener(M)}});const zt=n=>{t.onblur?.(n),e(wt)&&!n.currentTarget.contains(n.relatedTarget)&&(r(wt,!1),e(ft)&&(e(ft).focus({preventScroll:!0}),r(ft,null)))},Jt=n=>{t.onfocus?.(n),!(n.target instanceof HTMLElement&&n.target.dataset.dismissible==="false")&&(e(wt)||(r(wt,!0),r(ft,n.relatedTarget,!0)))},pt=n=>{t.onpointerdown?.(n),!(n.target instanceof HTMLElement&&n.target.dataset.dismissible==="false")&&r(Et,!0)},$t=n=>{t.onmouseenter?.(n),r(V,!0)},Nt=n=>{t.onmouseleave?.(n),e(Et)||r(V,!1)},j=n=>{t.onmousemove?.(n),r(V,!0)},te=n=>{t.ondragend?.(n),r(V,!1)},ee=n=>{t.onpointerup?.(n),r(Et,!1)};Le.set(new He);var vt=bn();y(vt,"tabindex",-1);var Wt=J(vt);{var Pt=n=>{var M=b(),nt=h(M);ue(nt,18,()=>e(S),at=>at,(at,xt,ne,ge)=>{const Vt=l(()=>{const[i,At]=xt.split("-");return{y:i,x:At}}),ot=l(()=>mn(St(),U()));var gt=hn();Ae(gt,i=>({tabindex:-1,dir:i,class:t.class,"data-sonner-toaster":!0,"data-sonner-theme":e(yt),"data-y-position":e(Vt).y,"data-x-position":e(Vt).x,style:t.style,onblur:zt,onfocus:Jt,onmouseenter:$t,onmousemove:j,onmouseleave:Nt,ondragend:te,onpointerdown:pt,onpointerup:ee,...Qt,[Ce]:{"--front-toast-height":`${O.heights[0]?.height}px`,"--width":`${vn}px`,"--gap":`${Mt()}px`,"--offset-top":e(ot)["--offset-top"],"--offset-right":e(ot)["--offset-right"],"--offset-bottom":e(ot)["--offset-bottom"],"--offset-left":e(ot)["--offset-left"],"--mobile-offset-top":e(ot)["--mobile-offset-top"],"--mobile-offset-right":e(ot)["--mobile-offset-right"],"--mobile-offset-bottom":e(ot)["--mobile-offset-bottom"],"--mobile-offset-left":e(ot)["--mobile-offset-left"]}}),[qt],void 0,void 0,"svelte-nbs0zk"),ue(gt,23,()=>O.toasts.filter(i=>!i.position&&e(ne)===0||i.position===xt),i=>i.id,(i,At,Ut,me)=>{{const ae=X=>{var R=b(),Q=h(R);{var u=o=>{var I=b(),P=h(I);p(P,()=>t.successIcon??lt),a(o,I)},g=o=>{en(o)};B(Q,o=>{t.successIcon?o(u):t.successIcon!==null&&o(g,1)})}a(X,R)},oe=X=>{var R=b(),Q=h(R);{var u=o=>{var I=b(),P=h(I);p(P,()=>t.errorIcon??lt),a(o,I)},g=o=>{an(o)};B(Q,o=>{t.errorIcon?o(u):t.errorIcon!==null&&o(g,1)})}a(X,R)},ie=X=>{var R=b(),Q=h(R);{var u=o=>{var I=b(),P=h(I);p(P,()=>t.warningIcon??lt),a(o,I)},g=o=>{sn(o)};B(Q,o=>{t.warningIcon?o(u):t.warningIcon!==null&&o(g,1)})}a(X,R)},s=X=>{var R=b(),Q=h(R);{var u=o=>{var I=b(),P=h(I);p(P,()=>t.infoIcon??lt),a(o,I)},g=o=>{ln(o)};B(Q,o=>{t.infoIcon?o(u):t.infoIcon!==null&&o(g,1)})}a(X,R)},c=X=>{var R=b(),Q=h(R);{var u=o=>{var I=b(),P=h(I);p(P,()=>t.closeIcon??lt),a(o,I)},g=o=>{dn(o)};B(Q,o=>{t.closeIcon?o(u):t.closeIcon!==null&&o(g,1)})}a(X,R)};let v=l(()=>W()?.duration??Ht()),w=l(()=>W()?.class??""),x=l(()=>W()?.descriptionClass||""),m=l(()=>W()?.style??""),L=l(()=>W().classes||{}),It=l(()=>W().unstyled??!1),Rt=l(()=>W()?.cancelButtonStyle??""),se=l(()=>W()?.actionButtonStyle??""),jt=l(()=>W()?.closeButtonAriaLabel??kt());$e(i,{get index(){return e(Ut)},get toast(){return e(At)},get defaultRichColors(){return Dt()},get duration(){return e(v)},get class(){return e(w)},get descriptionClass(){return e(x)},get invert(){return k()},get visibleToasts(){return Ot()},get closeButton(){return Bt()},get interacting(){return e(Et)},get position(){return xt},get style(){return e(m)},get classes(){return e(L)},get unstyled(){return e(It)},get cancelButtonStyle(){return e(Rt)},get actionButtonStyle(){return e(se)},get closeButtonAriaLabel(){return e(jt)},get expandByDefault(){return ct()},get expanded(){return e(V)},get pauseWhenPageIsHidden(){return Z()},get loadingIcon(){return t.loadingIcon},successIcon:ae,errorIcon:oe,warningIcon:ie,infoIcon:s,closeIcon:c,$$slots:{successIcon:!0,errorIcon:!0,warningIcon:!0,infoIcon:!0,closeIcon:!0}})}}),Y(gt),Ie(gt,i=>r(ut,i),()=>e(ut)),K(()=>gt.dir=gt.dir),a(at,gt)}),a(n,M)};B(Wt,n=>{O.toasts.length>0&&n(Pt)})}Y(vt),K(()=>y(vt,"aria-label",`${et()??""} ${e(bt)??""}`)),a(_,vt),ve()}export{Re as L,Mn as T};
|
|
1
|
+
import"./DsnmJJEf.js";import{p as fe,c as J,r as Y,t as K,b as ve,e as A,V as ye,i as ht,s as r,g as e,P as Xt,ao as we,h as Ct,u as l,I as lt,f as h}from"./txOdadJq.js";import{a,b as G,o as xe,g as Lt,e as Me,c as b,d as Ee,t as he,s as Yt,f as Ft}from"./9gtwoV4P.js";import{p as T,i as B,b as Ie,s as le,r as Pe}from"./BCLL87Av.js";import{e as ue}from"./IOusrodm.js";import{f as st,b as rt,c as y,d as ce,s as p,a as Ae,S as Ce}from"./ypcxmEdT.js";import{a as O,c as it,s as Le,S as He}from"./QFQ05a0D.js";import{c as Tt}from"./DerefRkG.js";import"./DpgUPK2a.js";const Oe=Array(12).fill(0);var ke=G('<div class="sonner-loading-bar"></div>'),Ne=G('<div><div class="sonner-spinner"></div></div>');function Re(_,t){fe(t,!0);var C=Ne(),k=J(C);ue(k,23,()=>Oe,($,tt)=>`spinner-bar-${tt}`,($,tt)=>{var ct=ke();a($,ct)}),Y(k),Y(C),K($=>{rt(C,1,$),y(C,"data-visible",t.visible)},[()=>st(["sonner-loading-wrapper",t.class].filter(Boolean).join(" "))]),a(_,C),ve()}function Zt(_){return _.label!==void 0}function Fe(){let _=A(ye(typeof document<"u"?document.hidden:!1));return ht(()=>xe(document,"visibilitychange",()=>{r(_,document.hidden,!0)})),{get current(){return e(_)}}}const be=4e3,ze=14,We=45,Ve=200,Ue=.05,je={toast:"",title:"",description:"",loader:"",closeButton:"",cancelButton:"",actionButton:"",action:"",warning:"",error:"",success:"",default:"",info:"",loading:""};function Ke(_){const[t,C]=_.split("-"),k=[];return t&&k.push(t),C&&k.push(C),k}function _e(_){return 1/(1.5+Math.abs(_)/20)}var Ye=G("<div><!></div>"),Ze=G('<button data-close-button=""><!></button>'),Ge=G('<div data-icon=""><!> <!></div>'),Xe=G('<div data-description=""><!></div>'),Qe=G('<button data-button="" data-cancel=""> </button>'),qe=G('<button data-button=""> </button>'),Je=G('<!> <div data-content=""><div data-title=""><!></div> <!></div> <!> <!>',1),pe=G('<li aria-atomic="true" data-sonner-toast=""><!> <!></li>');function $e(_,t){fe(t,!0);const C=s=>{var c=b(),v=h(c);{var w=m=>{var L=Ye(),It=J(L);p(It,()=>t.loadingIcon),Y(L),K(Rt=>{rt(L,1,Rt),y(L,"data-visible",e(S)==="loading")},[()=>st(it(e(j)?.loader,t.toast?.classes?.loader,"sonner-loader"))]),a(m,L)},x=m=>{{let L=l(()=>it(e(j)?.loader,t.toast.classes?.loader)),It=l(()=>e(S)==="loading");Re(m,{get class(){return e(L)},get visible(){return e(It)}})}};B(v,m=>{t.loadingIcon?m(w):m(x,!1)})}a(s,c)};let k=T(t,"cancelButtonStyle",3,""),$=T(t,"actionButtonStyle",3,""),tt=T(t,"descriptionClass",3,""),ct=T(t,"unstyled",3,!1),Bt=T(t,"defaultRichColors",3,!1);const St={...je};let U=A(!1),N=A(!1),Dt=A(!1),Ht=A(!1),Ot=A(!1),W=A(0),dt=A(0),Mt=t.toast.duration||t.duration||be,Z=A(void 0),et=A(null),kt=A(null);const Qt=l(()=>t.index===0),qt=l(()=>t.index+1<=t.visibleToasts),S=l(()=>t.toast.type),V=l(()=>t.toast.dismissible!==void 0?t.toast.dismissible!==!1:t.toast.dismissable!==!1),Et=l(()=>t.toast.class||""),yt=l(()=>t.toast.descriptionClass||""),ut=l(()=>O.heights.findIndex(s=>s.toastId===t.toast.id)||0),ft=l(()=>t.toast.closeButton??t.closeButton),wt=l(()=>t.toast.duration??t.duration??be);let bt=null;const zt=l(()=>t.position.split("-")),Jt=l(()=>O.heights.reduce((s,c,v)=>v>=e(ut)?s:s+c.height,0)),pt=Fe(),$t=l(()=>t.toast.invert||t.invert),Nt=l(()=>e(S)==="loading"),j=l(()=>({...St,...t.classes})),te=l(()=>t.toast.title),ee=l(()=>t.toast.description);let vt=A(0),Wt=A(0);const Pt=l(()=>Math.round(e(ut)*ze+e(Jt)));ht(()=>{e(te),e(ee);let s;t.expanded||t.expandByDefault?s=1:s=1-t.index*Ue;const c=Xt(()=>e(Z));if(c===void 0)return;c.style.setProperty("height","auto");const v=c.offsetHeight,w=c.getBoundingClientRect().height,x=Math.round(w/s+Number.EPSILON&100)/100;c.style.removeProperty("height");let m;Math.abs(x-v)<1?m=x:m=v,r(dt,m,!0),O.setHeight({toastId:t.toast.id,height:m})});function n(){r(N,!0),r(W,e(Pt),!0),O.removeHeight(t.toast.id),setTimeout(()=>{O.remove(t.toast.id)},Ve)}let M;const nt=l(()=>t.toast.promise&&e(S)==="loading"||t.toast.duration===Number.POSITIVE_INFINITY);function at(){r(vt,new Date().getTime(),!0),M=setTimeout(()=>{t.toast.onAutoClose?.(t.toast),n()},Mt)}function xt(){if(e(Wt)<e(vt)){const s=new Date().getTime()-e(vt);Mt=Mt-s}r(Wt,new Date().getTime(),!0)}ht(()=>{t.toast.updated&&(clearTimeout(M),Mt=e(wt),at())}),ht(()=>(e(nt)||(t.expanded||t.interacting||t.pauseWhenPageIsHidden&&pt.current?xt():at()),()=>clearTimeout(M))),we(()=>{r(U,!0);const s=e(Z)?.getBoundingClientRect().height;return r(dt,s,!0),O.setHeight({toastId:t.toast.id,height:s}),()=>{O.removeHeight(t.toast.id)}}),ht(()=>{t.toast.delete&&Xt(()=>{n(),t.toast.onDismiss?.(t.toast)})});const ne=s=>{if(e(Nt))return;r(W,e(Pt),!0);const c=s.target;c.setPointerCapture(s.pointerId),c.tagName!=="BUTTON"&&(r(Dt,!0),bt={x:s.clientX,y:s.clientY})},ge=()=>{if(e(Ht)||!e(V))return;bt=null;const s=Number(e(Z)?.style.getPropertyValue("--swipe-amount-x").replace("px","")||0),c=Number(e(Z)?.style.getPropertyValue("--swipe-amount-y").replace("px","")||0),v=new Date().getTime()-0,w=e(et)==="x"?s:c,x=Math.abs(w)/v;if(Math.abs(w)>=We||x>.11){r(W,e(Pt),!0),t.toast.onDismiss?.(t.toast),e(et)==="x"?r(kt,s>0?"right":"left",!0):r(kt,c>0?"down":"up",!0),n(),r(Ht,!0);return}else e(Z)?.style.setProperty("--swipe-amount-x","0px"),e(Z)?.style.setProperty("--swipe-amount-y","0px");r(Ot,!1),r(Dt,!1),r(et,null)},Vt=s=>{if(!bt||!e(V)||(window.getSelection()?.toString().length??-1)>0)return;const v=s.clientY-bt.y,w=s.clientX-bt.x,x=t.swipeDirections??Ke(t.position);!e(et)&&(Math.abs(w)>1||Math.abs(v)>1)&&r(et,Math.abs(w)>Math.abs(v)?"x":"y",!0);let m={x:0,y:0};if(e(et)==="y"){if(x.includes("top")||x.includes("bottom"))if(x.includes("top")&&v<0||x.includes("bottom")&&v>0)m.y=v;else{const L=v*_e(v);m.y=Math.abs(L)<Math.abs(v)?L:v}}else if(e(et)==="x"&&(x.includes("left")||x.includes("right")))if(x.includes("left")&&w<0||x.includes("right")&&w>0)m.x=w;else{const L=w*_e(w);m.x=Math.abs(L)<Math.abs(w)?L:w}(Math.abs(m.x)>0||Math.abs(m.y)>0)&&r(Ot,!0),e(Z)?.style.setProperty("--swipe-amount-x",`${m.x}px`),e(Z)?.style.setProperty("--swipe-amount-y",`${m.y}px`)},ot=()=>{r(Dt,!1),r(et,null),bt=null},gt=l(()=>t.toast.icon?t.toast.icon:e(S)==="success"?t.successIcon:e(S)==="error"?t.errorIcon:e(S)==="warning"?t.warningIcon:e(S)==="info"?t.infoIcon:e(S)==="loading"?t.loadingIcon:null);var i=pe();y(i,"tabindex",0);let At;var Ut=J(i);{var me=s=>{var c=Ze(),v=J(c);p(v,()=>t.closeIcon??lt),Y(c),K(w=>{y(c,"aria-label",t.closeButtonAriaLabel),y(c,"data-disabled",e(Nt)),rt(c,1,w)},[()=>st(it(e(j)?.closeButton,t.toast?.classes?.closeButton))]),Lt("click",c,()=>{e(Nt)||!e(V)||(n(),t.toast.onDismiss?.(t.toast))}),a(s,c)};B(Ut,s=>{e(ft)&&!t.toast.component&&e(S)!=="loading"&&t.closeIcon!==null&&s(me)})}var ae=Ct(Ut,2);{var oe=s=>{const c=l(()=>t.toast.component);var v=b(),w=h(v);Tt(w,()=>e(c),(x,m)=>{m(x,le(()=>t.toast.componentProps,{closeToast:n}))}),a(s,v)},ie=s=>{var c=Je(),v=h(c);{var w=u=>{var g=Ge(),o=J(g);{var I=d=>{var f=b(),z=h(f);{var E=_t=>{var Kt=b(),re=h(Kt);Tt(re,()=>t.toast.icon,(H,F)=>{F(H,{})}),a(_t,Kt)},q=_t=>{C(_t)};B(z,_t=>{t.toast.icon?_t(E):_t(q,!1)})}a(d,f)};B(o,d=>{(t.toast.promise||e(S)==="loading")&&d(I)})}var P=Ct(o,2);{var D=d=>{var f=b(),z=h(f);{var E=H=>{var F=b(),mt=h(F);Tt(mt,()=>t.toast.icon,(Se,De)=>{De(Se,{})}),a(H,F)},q=H=>{var F=b(),mt=h(F);p(mt,()=>t.successIcon??lt),a(H,F)},_t=H=>{var F=b(),mt=h(F);p(mt,()=>t.errorIcon??lt),a(H,F)},Kt=H=>{var F=b(),mt=h(F);p(mt,()=>t.warningIcon??lt),a(H,F)},re=H=>{var F=b(),mt=h(F);p(mt,()=>t.infoIcon??lt),a(H,F)};B(z,H=>{t.toast.icon?H(E):e(S)==="success"?H(q,1):e(S)==="error"?H(_t,2):e(S)==="warning"?H(Kt,3):e(S)==="info"&&H(re,4)})}a(d,f)};B(P,d=>{t.toast.type!=="loading"&&d(D)})}Y(g),K(d=>rt(g,1,d),[()=>st(it(e(j)?.icon,t.toast?.classes?.icon))]),a(u,g)};B(v,u=>{(e(S)||t.toast.icon||t.toast.promise)&&t.toast.icon!==null&&(e(gt)!==null||t.toast.icon)&&u(w)})}var x=Ct(v,2),m=J(x),L=J(m);{var It=u=>{var g=b(),o=h(g);{var I=D=>{const d=l(()=>t.toast.title);var f=b(),z=h(f);Tt(z,()=>e(d),(E,q)=>{q(E,le(()=>t.toast.componentProps))}),a(D,f)},P=D=>{var d=he();K(()=>Yt(d,t.toast.title)),a(D,d)};B(o,D=>{typeof t.toast.title!="string"?D(I):D(P,!1)})}a(u,g)};B(L,u=>{t.toast.title&&u(It)})}Y(m);var Rt=Ct(m,2);{var se=u=>{var g=Xe(),o=J(g);{var I=D=>{const d=l(()=>t.toast.description);var f=b(),z=h(f);Tt(z,()=>e(d),(E,q)=>{q(E,le(()=>t.toast.componentProps))}),a(D,f)},P=D=>{var d=he();K(()=>Yt(d,t.toast.description)),a(D,d)};B(o,D=>{typeof t.toast.description!="string"?D(I):D(P,!1)})}Y(g),K(D=>rt(g,1,D),[()=>st(it(tt(),e(yt),e(j)?.description,t.toast.classes?.description))]),a(u,g)};B(Rt,u=>{t.toast.description&&u(se)})}Y(x);var jt=Ct(x,2);{var X=u=>{var g=b(),o=h(g);{var I=d=>{var f=b(),z=h(f);Tt(z,()=>t.toast.cancel,(E,q)=>{q(E,{})}),a(d,f)},P=d=>{var f=Qe(),z=J(f,!0);Y(f),K(E=>{ce(f,t.toast.cancelButtonStyle??k()),rt(f,1,E),Yt(z,t.toast.cancel.label)},[()=>st(it(e(j)?.cancelButton,t.toast?.classes?.cancelButton))]),Lt("click",f,E=>{Zt(t.toast.cancel)&&e(V)&&(t.toast.cancel?.onClick?.(E),n())}),a(d,f)},D=l(()=>Zt(t.toast.cancel));B(o,d=>{typeof t.toast.cancel=="function"?d(I):e(D)&&d(P,1)})}a(u,g)};B(jt,u=>{t.toast.cancel&&u(X)})}var R=Ct(jt,2);{var Q=u=>{var g=b(),o=h(g);{var I=d=>{var f=b(),z=h(f);Tt(z,()=>t.toast.action,(E,q)=>{q(E,{})}),a(d,f)},P=d=>{var f=qe(),z=J(f,!0);Y(f),K(E=>{ce(f,t.toast.actionButtonStyle??$()),rt(f,1,E),Yt(z,t.toast.action.label)},[()=>st(it(e(j)?.actionButton,t.toast?.classes?.actionButton))]),Lt("click",f,E=>{Zt(t.toast.action)&&(t.toast.action?.onClick(E),!E.defaultPrevented&&n())}),a(d,f)},D=l(()=>Zt(t.toast.action));B(o,d=>{typeof t.toast.action=="function"?d(I):e(D)&&d(P,1)})}a(u,g)};B(R,u=>{t.toast.action&&u(Q)})}K((u,g)=>{rt(x,1,u),rt(m,1,g)},[()=>st(it(e(j)?.content,t.toast?.classes?.content)),()=>st(it(e(j)?.title,t.toast?.classes?.title))]),a(s,c)};B(ae,s=>{t.toast.component?s(oe):s(ie,!1)})}Y(i),Ie(i,s=>r(Z,s),()=>e(Z)),K((s,c,v)=>{rt(i,1,s),y(i,"aria-live",t.toast.important?"assertive":"polite"),y(i,"data-rich-colors",t.toast.richColors??Bt()),y(i,"data-styled",!(t.toast.component||t.toast.unstyled||ct())),y(i,"data-mounted",e(U)),y(i,"data-promise",c),y(i,"data-swiped",e(Ot)),y(i,"data-removed",e(N)),y(i,"data-visible",e(qt)),y(i,"data-y-position",e(zt)[0]),y(i,"data-x-position",e(zt)[1]),y(i,"data-index",t.index),y(i,"data-front",e(Qt)),y(i,"data-swiping",e(Dt)),y(i,"data-dismissible",e(V)),y(i,"data-type",e(S)),y(i,"data-invert",e($t)),y(i,"data-swipe-out",e(Ht)),y(i,"data-swipe-direction",e(kt)),y(i,"data-expanded",v),At=ce(i,`${t.style} ${t.toast.style}`,At,{"--index":t.index,"--toasts-before":t.index,"--z-index":O.toasts.length-t.index,"--offset":`${e(N)?e(W):e(Pt)}px`,"--initial-height":t.expandByDefault?"auto":`${e(dt)}px`})},[()=>st(it(t.class,e(Et),e(j)?.toast,t.toast?.classes?.toast,e(j)?.[e(S)],t.toast?.classes?.[e(S)])),()=>!!t.toast.promise,()=>!!(t.expanded||t.expandByDefault&&e(U))]),Lt("pointermove",i,Vt),Lt("pointerup",i,ge),Lt("pointerdown",i,ne),Me("dragend",i,ot),a(_,i),ve()}Ee(["pointermove","pointerup","pointerdown","click"]);var tn=Ft('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" height="20" width="20" data-sonner-success-icon=""><path fill-rule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z" clip-rule="evenodd"></path></svg>');function en(_){var t=tn();a(_,t)}var nn=Ft('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" height="20" width="20" data-sonner-error-icon=""><path fill-rule="evenodd" d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z" clip-rule="evenodd"></path></svg>');function an(_){var t=nn();a(_,t)}var on=Ft('<svg viewBox="0 0 64 64" fill="currentColor" height="20" width="20" data-sonner-warning-icon="" xmlns="http://www.w3.org/2000/svg"><path d="M32.427,7.987c2.183,0.124 4,1.165 5.096,3.281l17.936,36.208c1.739,3.66 -0.954,8.585 -5.373,8.656l-36.119,0c-4.022,-0.064 -7.322,-4.631 -5.352,-8.696l18.271,-36.207c0.342,-0.65 0.498,-0.838 0.793,-1.179c1.186,-1.375 2.483,-2.111 4.748,-2.063Zm-0.295,3.997c-0.687,0.034 -1.316,0.419 -1.659,1.017c-6.312,11.979 -12.397,24.081 -18.301,36.267c-0.546,1.225 0.391,2.797 1.762,2.863c12.06,0.195 24.125,0.195 36.185,0c1.325,-0.064 2.321,-1.584 1.769,-2.85c-5.793,-12.184 -11.765,-24.286 -17.966,-36.267c-0.366,-0.651 -0.903,-1.042 -1.79,-1.03Z"></path><path d="M33.631,40.581l-3.348,0l-0.368,-16.449l4.1,0l-0.384,16.449Zm-3.828,5.03c0,-0.609 0.197,-1.113 0.592,-1.514c0.396,-0.4 0.935,-0.601 1.618,-0.601c0.684,0 1.223,0.201 1.618,0.601c0.395,0.401 0.593,0.905 0.593,1.514c0,0.587 -0.193,1.078 -0.577,1.473c-0.385,0.395 -0.929,0.593 -1.634,0.593c-0.705,0 -1.249,-0.198 -1.634,-0.593c-0.384,-0.395 -0.576,-0.886 -0.576,-1.473Z"></path></svg>');function sn(_){var t=on();a(_,t)}var rn=Ft('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" height="20" width="20" data-sonner-info-icon=""><path fill-rule="evenodd" d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z" clip-rule="evenodd"></path></svg>');function ln(_){var t=rn();a(_,t)}var cn=Ft('<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" data-sonner-close-icon=""><line x1="18" y1="6" x2="6" y2="18"></line><line x1="6" y1="6" x2="18" y2="18"></line></svg>');function dn(_){var t=cn();a(_,t)}const un=3,Te="24px",Be="16px",fn=4e3,vn=356,gn=14,de="dark",Gt="light";function mn(_,t){const C={};return[_,t].forEach((k,$)=>{const tt=$===1,ct=tt?"--mobile-offset":"--offset",Bt=tt?Be:Te;function St(U){["top","right","bottom","left"].forEach(N=>{C[`${ct}-${N}`]=typeof U=="number"?`${U}px`:U})}typeof k=="number"||typeof k=="string"?St(k):typeof k=="object"?["top","right","bottom","left"].forEach(U=>{const N=k[U];N===void 0?C[`${ct}-${U}`]=Bt:C[`${ct}-${U}`]=typeof N=="number"?`${N}px`:N}):St(Bt)}),C}var hn=G("<ol></ol>"),bn=G('<section aria-live="polite" aria-relevant="additions text" aria-atomic="false" class="svelte-nbs0zk"><!></section>');function Mn(_,t){fe(t,!0);function C(n){return n!=="system"?n:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?de:Gt}let k=T(t,"invert",3,!1),$=T(t,"position",3,"bottom-right"),tt=T(t,"hotkey",19,()=>["altKey","KeyT"]),ct=T(t,"expand",3,!1),Bt=T(t,"closeButton",3,!1),St=T(t,"offset",3,Te),U=T(t,"mobileOffset",3,Be),N=T(t,"theme",3,"light"),Dt=T(t,"richColors",3,!1),Ht=T(t,"duration",3,fn),Ot=T(t,"visibleToasts",3,un),W=T(t,"toastOptions",19,()=>({})),dt=T(t,"dir",7,"auto"),Mt=T(t,"gap",3,gn),Z=T(t,"pauseWhenPageIsHidden",3,!1),et=T(t,"containerAriaLabel",3,"Notifications"),kt=T(t,"closeButtonAriaLabel",3,"Close toast"),Qt=Pe(t,["$$slots","$$events","$$legacy","invert","position","hotkey","expand","closeButton","offset","mobileOffset","theme","richColors","duration","visibleToasts","toastOptions","dir","gap","pauseWhenPageIsHidden","loadingIcon","successIcon","errorIcon","warningIcon","closeIcon","infoIcon","containerAriaLabel","class","closeButtonAriaLabel","onblur","onfocus","onmouseenter","onmousemove","onmouseleave","ondragend","onpointerdown","onpointerup"]);function qt(){if(dt()!=="auto")return dt();if(typeof window>"u"||typeof document>"u")return"ltr";const n=document.documentElement.getAttribute("dir");return n==="auto"||!n?(Xt(()=>dt(window.getComputedStyle(document.documentElement).direction??"ltr")),dt()):(Xt(()=>dt(n)),n)}const S=l(()=>Array.from(new Set([$(),...O.toasts.filter(n=>n.position).map(n=>n.position)].filter(Boolean))));let V=A(!1),Et=A(!1),yt=A(ye(C(N()))),ut=A(void 0),ft=A(null),wt=A(!1);const bt=l(()=>tt().join("+").replace(/Key/g,"").replace(/Digit/g,""));ht(()=>{O.toasts.length<=1&&r(V,!1)}),ht(()=>{const n=O.toasts.filter(M=>M.dismiss&&!M.delete);if(n.length>0){const M=O.toasts.map(nt=>n.find(xt=>xt.id===nt.id)?{...nt,delete:!0}:nt);O.toasts=M}}),ht(()=>()=>{e(ut)&&e(ft)&&(e(ft).focus({preventScroll:!0}),r(ft,null),r(wt,!1))}),we(()=>(O.reset(),xe(document,"keydown",M=>{tt().every(at=>M[at]||M.code===at)&&(r(V,!0),e(ut)?.focus()),M.code==="Escape"&&(document.activeElement===e(ut)||e(ut)?.contains(document.activeElement))&&r(V,!1)}))),ht(()=>{if(N()!=="system"&&r(yt,N()),typeof window<"u"){N()==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?r(yt,de):r(yt,Gt));const n=window.matchMedia("(prefers-color-scheme: dark)"),M=({matches:nt})=>{N()==="system"&&r(yt,nt?de:Gt,!0)};"addEventListener"in n?n.addEventListener("change",M):n.addListener(M)}});const zt=n=>{t.onblur?.(n),e(wt)&&!n.currentTarget.contains(n.relatedTarget)&&(r(wt,!1),e(ft)&&(e(ft).focus({preventScroll:!0}),r(ft,null)))},Jt=n=>{t.onfocus?.(n),!(n.target instanceof HTMLElement&&n.target.dataset.dismissible==="false")&&(e(wt)||(r(wt,!0),r(ft,n.relatedTarget,!0)))},pt=n=>{t.onpointerdown?.(n),!(n.target instanceof HTMLElement&&n.target.dataset.dismissible==="false")&&r(Et,!0)},$t=n=>{t.onmouseenter?.(n),r(V,!0)},Nt=n=>{t.onmouseleave?.(n),e(Et)||r(V,!1)},j=n=>{t.onmousemove?.(n),r(V,!0)},te=n=>{t.ondragend?.(n),r(V,!1)},ee=n=>{t.onpointerup?.(n),r(Et,!1)};Le.set(new He);var vt=bn();y(vt,"tabindex",-1);var Wt=J(vt);{var Pt=n=>{var M=b(),nt=h(M);ue(nt,18,()=>e(S),at=>at,(at,xt,ne,ge)=>{const Vt=l(()=>{const[i,At]=xt.split("-");return{y:i,x:At}}),ot=l(()=>mn(St(),U()));var gt=hn();Ae(gt,i=>({tabindex:-1,dir:i,class:t.class,"data-sonner-toaster":!0,"data-sonner-theme":e(yt),"data-y-position":e(Vt).y,"data-x-position":e(Vt).x,style:t.style,onblur:zt,onfocus:Jt,onmouseenter:$t,onmousemove:j,onmouseleave:Nt,ondragend:te,onpointerdown:pt,onpointerup:ee,...Qt,[Ce]:{"--front-toast-height":`${O.heights[0]?.height}px`,"--width":`${vn}px`,"--gap":`${Mt()}px`,"--offset-top":e(ot)["--offset-top"],"--offset-right":e(ot)["--offset-right"],"--offset-bottom":e(ot)["--offset-bottom"],"--offset-left":e(ot)["--offset-left"],"--mobile-offset-top":e(ot)["--mobile-offset-top"],"--mobile-offset-right":e(ot)["--mobile-offset-right"],"--mobile-offset-bottom":e(ot)["--mobile-offset-bottom"],"--mobile-offset-left":e(ot)["--mobile-offset-left"]}}),[qt],void 0,void 0,"svelte-nbs0zk"),ue(gt,23,()=>O.toasts.filter(i=>!i.position&&e(ne)===0||i.position===xt),i=>i.id,(i,At,Ut,me)=>{{const ae=X=>{var R=b(),Q=h(R);{var u=o=>{var I=b(),P=h(I);p(P,()=>t.successIcon??lt),a(o,I)},g=o=>{en(o)};B(Q,o=>{t.successIcon?o(u):t.successIcon!==null&&o(g,1)})}a(X,R)},oe=X=>{var R=b(),Q=h(R);{var u=o=>{var I=b(),P=h(I);p(P,()=>t.errorIcon??lt),a(o,I)},g=o=>{an(o)};B(Q,o=>{t.errorIcon?o(u):t.errorIcon!==null&&o(g,1)})}a(X,R)},ie=X=>{var R=b(),Q=h(R);{var u=o=>{var I=b(),P=h(I);p(P,()=>t.warningIcon??lt),a(o,I)},g=o=>{sn(o)};B(Q,o=>{t.warningIcon?o(u):t.warningIcon!==null&&o(g,1)})}a(X,R)},s=X=>{var R=b(),Q=h(R);{var u=o=>{var I=b(),P=h(I);p(P,()=>t.infoIcon??lt),a(o,I)},g=o=>{ln(o)};B(Q,o=>{t.infoIcon?o(u):t.infoIcon!==null&&o(g,1)})}a(X,R)},c=X=>{var R=b(),Q=h(R);{var u=o=>{var I=b(),P=h(I);p(P,()=>t.closeIcon??lt),a(o,I)},g=o=>{dn(o)};B(Q,o=>{t.closeIcon?o(u):t.closeIcon!==null&&o(g,1)})}a(X,R)};let v=l(()=>W()?.duration??Ht()),w=l(()=>W()?.class??""),x=l(()=>W()?.descriptionClass||""),m=l(()=>W()?.style??""),L=l(()=>W().classes||{}),It=l(()=>W().unstyled??!1),Rt=l(()=>W()?.cancelButtonStyle??""),se=l(()=>W()?.actionButtonStyle??""),jt=l(()=>W()?.closeButtonAriaLabel??kt());$e(i,{get index(){return e(Ut)},get toast(){return e(At)},get defaultRichColors(){return Dt()},get duration(){return e(v)},get class(){return e(w)},get descriptionClass(){return e(x)},get invert(){return k()},get visibleToasts(){return Ot()},get closeButton(){return Bt()},get interacting(){return e(Et)},get position(){return xt},get style(){return e(m)},get classes(){return e(L)},get unstyled(){return e(It)},get cancelButtonStyle(){return e(Rt)},get actionButtonStyle(){return e(se)},get closeButtonAriaLabel(){return e(jt)},get expandByDefault(){return ct()},get expanded(){return e(V)},get pauseWhenPageIsHidden(){return Z()},get loadingIcon(){return t.loadingIcon},successIcon:ae,errorIcon:oe,warningIcon:ie,infoIcon:s,closeIcon:c,$$slots:{successIcon:!0,errorIcon:!0,warningIcon:!0,infoIcon:!0,closeIcon:!0}})}}),Y(gt),Ie(gt,i=>r(ut,i),()=>e(ut)),K(()=>gt.dir=gt.dir),a(at,gt)}),a(n,M)};B(Wt,n=>{O.toasts.length>0&&n(Pt)})}Y(vt),K(()=>y(vt,"aria-label",`${et()??""} ${e(bt)??""}`)),a(_,vt),ve()}export{Re as L,Mn as T};
|