rssany 0.3.1 → 0.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.env.example +52 -52
- package/README.md +156 -147
- package/app/plugins/builtin/email.rssany.js +84 -84
- package/app/plugins/builtin/rss.rssany.js +164 -164
- package/app/plugins/builtin/xiaohongshu.rssany.js +59 -2
- package/app/statics/README.md +7 -7
- package/app/webui/build/200.html +36 -36
- package/app/webui/build/_app/immutable/assets/0.BLOTwIuF.css +1 -0
- package/app/webui/build/_app/immutable/assets/10.CmGYYZFR.css +1 -0
- package/app/webui/build/_app/immutable/assets/11.Dkz3VS_N.css +1 -0
- package/app/webui/build/_app/immutable/assets/14.BCCBoMGj.css +1 -0
- package/app/webui/build/_app/immutable/assets/6.Cm_jpHOq.css +1 -0
- package/app/webui/build/_app/immutable/assets/7.CJ3BjogD.css +1 -0
- package/app/webui/build/_app/immutable/assets/9.CATKVZ-n.css +1 -0
- package/app/webui/build/_app/immutable/assets/{SourcesList.D5Lso0bo.css → SourcesList.ke66uOSi.css} +1 -1
- package/app/webui/build/_app/immutable/assets/chevron-down.CV-KWLNP.css +1 -0
- package/app/webui/build/_app/immutable/chunks/{CGCMIfh3.js → 4TuV_psf.js} +1 -1
- package/app/webui/build/_app/immutable/chunks/{DAdOEnFb.js → B0czyjwj.js} +1 -1
- package/app/webui/build/_app/immutable/chunks/{CFwxUBGi.js → B553hBXT.js} +1 -1
- package/app/webui/build/_app/immutable/chunks/B8StT3Do.js +6 -0
- package/app/webui/build/_app/immutable/chunks/BI_ale1m.js +1 -0
- package/app/webui/build/_app/immutable/chunks/BK0ygNWX.js +2 -0
- package/app/webui/build/_app/immutable/chunks/BKm6QCwp.js +1 -0
- package/app/webui/build/_app/immutable/chunks/BT6b4LcZ.js +36 -0
- package/app/webui/build/_app/immutable/chunks/BZY5aksi.js +36 -0
- package/app/webui/build/_app/immutable/chunks/{C8umpVpB.js → BnqaikL8.js} +1 -1
- package/app/webui/build/_app/immutable/chunks/BsQ08Wq_.js +1 -0
- package/app/webui/build/_app/immutable/chunks/C9wTDiHH.js +1 -0
- package/app/webui/build/_app/immutable/chunks/{B-CeeY89.js → CAKuIoAf.js} +1 -1
- package/app/webui/build/_app/immutable/chunks/CEWi_rGa.js +1 -0
- package/app/webui/build/_app/immutable/chunks/{ChUctqXA.js → Cc7aBSsN.js} +1 -1
- package/app/webui/build/_app/immutable/chunks/{BAJAS8BI.js → D8G961Hm.js} +1 -1
- package/app/webui/build/_app/immutable/chunks/{CS53ooo0.js → DIeahUKq.js} +1 -1
- package/app/webui/build/_app/immutable/chunks/DO5OXNYS.js +1 -0
- package/app/webui/build/_app/immutable/chunks/Dg_D3pjF.js +1 -0
- package/app/webui/build/_app/immutable/chunks/{Dyvi1wBH.js → DptdhtA1.js} +1 -1
- package/app/webui/build/_app/immutable/chunks/{ClknbeNl.js → FDS7fbwH.js} +1 -1
- package/app/webui/build/_app/immutable/chunks/{CqYSO3Dx.js → GeNMTUn1.js} +1 -1
- package/app/webui/build/_app/immutable/chunks/{DCEayuDt.js → IhDlsCxD.js} +1 -1
- package/app/webui/build/_app/immutable/chunks/Nd0ktDhd.js +1 -0
- package/app/webui/build/_app/immutable/chunks/{D6kzEN_P.js → SvdgnirT.js} +1 -1
- package/app/webui/build/_app/immutable/chunks/WW6La7Nt.js +2 -0
- package/app/webui/build/_app/immutable/chunks/{DsxvjlCC.js → pd_p3yYy.js} +5 -5
- package/app/webui/build/_app/immutable/chunks/rNwPv4DZ.js +1 -0
- package/app/webui/build/_app/immutable/entry/app.BKLBG-4w.js +2 -0
- package/app/webui/build/_app/immutable/entry/start.D-X6pVtx.js +1 -0
- package/app/webui/build/_app/immutable/nodes/{0.DK_mcVDm.js → 0.CJDC_3s9.js} +3 -3
- package/app/webui/build/_app/immutable/nodes/1.DsKocFSb.js +1 -0
- package/app/webui/build/_app/immutable/nodes/10.BeejAn8z.js +1 -0
- package/app/webui/build/_app/immutable/nodes/11.D--uwkk0.js +3 -0
- package/app/webui/build/_app/immutable/nodes/12.BLyQ6rUu.js +1 -0
- package/app/webui/build/_app/immutable/nodes/13.Cl0WQK13.js +1 -0
- package/app/webui/build/_app/immutable/nodes/14.T9l5Rh19.js +1 -0
- package/app/webui/build/_app/immutable/nodes/15.DHfwIlBx.js +1 -0
- package/app/webui/build/_app/immutable/nodes/{16.zfSe93Ab.js → 16.BKDfR-KV.js} +2 -2
- package/app/webui/build/_app/immutable/nodes/17.DofB8HQB.js +1 -0
- package/app/webui/build/_app/immutable/nodes/2.BOYqXdCa.js +1 -0
- package/app/webui/build/_app/immutable/nodes/3.B9ucbp_W.js +1 -0
- package/app/webui/build/_app/immutable/nodes/5.9zgwFV6I.js +2 -0
- package/app/webui/build/_app/immutable/nodes/6.Bs32Ieii.js +2 -0
- package/app/webui/build/_app/immutable/nodes/7.Cigxrk0v.js +1 -0
- package/app/webui/build/_app/immutable/nodes/8.pG10rCF0.js +1 -0
- package/app/webui/build/_app/immutable/nodes/9.Bzqb3xHY.js +1 -0
- package/app/webui/build/_app/version.json +1 -1
- package/bin/rssany.js +55 -3
- package/dist/index.js +361 -99
- package/dist/index.js.map +1 -1
- package/package.json +107 -103
- package/scripts/dev.mjs +5 -1
- package/scripts/postinstall.mjs +44 -0
- package/scripts/reset.mjs +137 -135
- package/scripts/user-dir.mjs +52 -0
- package/app/webui/build/_app/immutable/assets/0.DsKls1SN.css +0 -1
- package/app/webui/build/_app/immutable/assets/10.Dj8_pmut.css +0 -1
- package/app/webui/build/_app/immutable/assets/13.Qu_tY6H9.css +0 -1
- package/app/webui/build/_app/immutable/assets/5.B-dPiwB7.css +0 -1
- package/app/webui/build/_app/immutable/assets/6.B27N7pdA.css +0 -1
- package/app/webui/build/_app/immutable/assets/8.Cgji2b15.css +0 -1
- package/app/webui/build/_app/immutable/assets/9.BsCIAvn3.css +0 -1
- package/app/webui/build/_app/immutable/chunks/6prdYIKP.js +0 -1
- package/app/webui/build/_app/immutable/chunks/B2cyTHdf.js +0 -2
- package/app/webui/build/_app/immutable/chunks/B6WG2Sd3.js +0 -1
- package/app/webui/build/_app/immutable/chunks/BA4Gucnq.js +0 -1
- package/app/webui/build/_app/immutable/chunks/BkD3yAYe.js +0 -1
- package/app/webui/build/_app/immutable/chunks/C4uF_YIK.js +0 -1
- package/app/webui/build/_app/immutable/chunks/CBY2biv-.js +0 -1
- package/app/webui/build/_app/immutable/chunks/CVW0ymE1.js +0 -1
- package/app/webui/build/_app/immutable/chunks/DJ2e04vK.js +0 -36
- package/app/webui/build/_app/immutable/chunks/DL3Q5sfb.js +0 -1
- package/app/webui/build/_app/immutable/chunks/DVa8Y-mQ.js +0 -1
- package/app/webui/build/_app/immutable/chunks/DkamXS6W.js +0 -36
- package/app/webui/build/_app/immutable/chunks/DoRPmqLn.js +0 -2
- package/app/webui/build/_app/immutable/chunks/_qj9U-za.js +0 -1
- package/app/webui/build/_app/immutable/chunks/vtBo8kBV.js +0 -1
- package/app/webui/build/_app/immutable/entry/app.RFfWi3_i.js +0 -2
- package/app/webui/build/_app/immutable/entry/start.DU_kyeGS.js +0 -1
- package/app/webui/build/_app/immutable/nodes/1.0PRrU2uQ.js +0 -1
- package/app/webui/build/_app/immutable/nodes/10.CsxzlUER.js +0 -1
- package/app/webui/build/_app/immutable/nodes/11.D-PkhIRW.js +0 -1
- package/app/webui/build/_app/immutable/nodes/12.GGf-JLUY.js +0 -1
- package/app/webui/build/_app/immutable/nodes/13.DWWcH27k.js +0 -6
- package/app/webui/build/_app/immutable/nodes/14.COwSLwDN.js +0 -1
- package/app/webui/build/_app/immutable/nodes/15.nDN_AHrs.js +0 -1
- package/app/webui/build/_app/immutable/nodes/2.AJd2163d.js +0 -1
- package/app/webui/build/_app/immutable/nodes/3.CEVEHuaH.js +0 -1
- package/app/webui/build/_app/immutable/nodes/4.BT_N8pCh.js +0 -2
- package/app/webui/build/_app/immutable/nodes/5.BZScQ2CH.js +0 -2
- package/app/webui/build/_app/immutable/nodes/6.CkFk8X--.js +0 -1
- package/app/webui/build/_app/immutable/nodes/7.CuQJk7te.js +0 -1
- package/app/webui/build/_app/immutable/nodes/8.DIavWJnU.js +0 -1
- package/app/webui/build/_app/immutable/nodes/9.Db30M8x0.js +0 -1
- /package/app/webui/build/_app/immutable/assets/{11.qYZMiTb0.css → 12.qYZMiTb0.css} +0 -0
- /package/app/webui/build/_app/immutable/assets/{12.DfJcfUWl.css → 13.DfJcfUWl.css} +0 -0
- /package/app/webui/build/_app/immutable/assets/{14.DfMfOrS3.css → 15.DfMfOrS3.css} +0 -0
- /package/app/webui/build/_app/immutable/assets/{15.nNGjXhCQ.css → 17.nNGjXhCQ.css} +0 -0
- /package/app/webui/build/_app/immutable/assets/{4.Di6rvlY-.css → 5.Di6rvlY-.css} +0 -0
- /package/app/webui/build/_app/immutable/assets/{7.CrNxmd8B.css → 8.CrNxmd8B.css} +0 -0
- /package/app/webui/build/_app/immutable/nodes/{17.BtYZF6FM.js → 18.BtYZF6FM.js} +0 -0
- /package/app/webui/build/_app/immutable/nodes/{18.BIzqhTqv.js → 4.BIzqhTqv.js} +0 -0
package/app/webui/build/_app/immutable/assets/{SourcesList.D5Lso0bo.css → SourcesList.ke66uOSi.css}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
.feed-wrap.svelte-1beoyzy{--feed-sticky-gap-after: 0;margin-top:calc(-1 * var(--main-padding-top));margin-left:calc(-1 * var(--shell-gutter));margin-right:calc(-1 * var(--shell-gutter));width:calc(100% + 2 * var(--shell-gutter));max-width:none;box-sizing:border-box;display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden}.feed-col.svelte-1beoyzy{display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden;background:transparent}.feed-toolbar-block.svelte-1beoyzy{flex-shrink:0;padding-top:var(--main-padding-top);padding-bottom:var(--feed-sticky-gap-after);padding-inline:var(--shell-gutter);box-sizing:border-box}.feed-body-scroll.svelte-1beoyzy{flex:1;min-height:0;display:flex;flex-direction:column;overflow-y:auto;overflow-x:auto;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch}.feed-header.svelte-1beoyzy{display:flex;align-items:center;gap:.75rem;padding:.75rem 0;flex-shrink:0}.header-left.svelte-1beoyzy{display:flex;align-items:center;gap:.5rem;flex:0 1 auto;min-width:0}.header-right.svelte-1beoyzy{display:flex;align-items:center;gap:.5rem;flex-shrink:0;margin-left:auto}.filter-input.svelte-1beoyzy{flex:0 1 auto;width:100%;min-width:6.5rem;max-width:12rem;padding:.35rem .6rem;font-size:.8125rem;border:1px solid var(--color-input);border-radius:var(--radius-sm);outline:none;background:var(--color-card-elevated);color:var(--color-foreground);transition:border-color .15s,background .15s}.filter-input.svelte-1beoyzy:focus{border-color:var(--color-primary);background:var(--color-card)}.filter-input.svelte-1beoyzy::placeholder{color:var(--color-muted-foreground-soft)}.btn-sort{display:inline-flex;align-items:center;justify-content:center;width:2rem;height:2rem;padding:0;flex-shrink:0;font:inherit;color:var(--color-muted-foreground-strong);background:transparent;border:1px solid var(--color-input);border-radius:var(--radius-sm);box-shadow:none;cursor:pointer;transition:color .15s,border-color .15s,background .15s}.btn-sort:hover{color:var(--color-primary);border-color:var(--color-primary);background:transparent}.btn-sort:focus-visible{outline:2px solid color-mix(in srgb,var(--color-primary) 45%,transparent);outline-offset:1px}.sort-menu{min-width:10.5rem;padding:.3rem;box-sizing:border-box}.sort-menu-item.svelte-1beoyzy{display:flex;align-items:center;justify-content:space-between;gap:.5rem;width:100%;padding:.4rem .55rem;font-size:.8125rem;text-align:left;border:none;border-radius:6px;cursor:pointer;background:transparent;color:var(--color-muted-foreground-strong);transition:background .12s,color .12s}.sort-menu-item.svelte-1beoyzy:hover{background:var(--color-muted);color:var(--color-accent-foreground)}.sort-menu-item.active.svelte-1beoyzy{color:var(--color-primary);font-weight:500}.sort-menu-dir.svelte-1beoyzy{font-size:.75rem;font-variant-numeric:tabular-nums;opacity:.9}.btn-add.svelte-1beoyzy{display:inline-flex;align-items:center;justify-content:center;width:2rem;height:2rem;padding:0;flex-shrink:0;color:var(--color-primary-foreground);background:var(--color-primary);border:none;border-radius:var(--radius-sm);cursor:pointer;transition:opacity .15s,background .15s}.btn-add.svelte-1beoyzy:hover{opacity:.9;background:var(--color-primary-hover, var(--color-primary))}.dropdown-panel{z-index:50;background:var(--color-card);border:1px solid var(--color-border);border-radius:var(--radius-sm);box-shadow:var(--shadow-panel)}.more-menu{width:11.5rem;min-width:11.5rem;padding:.25rem;box-sizing:border-box}.more-menu-item.svelte-1beoyzy{display:flex;align-items:center;gap:.5rem;width:100%;padding:.4rem .65rem;font-size:.8125rem;text-align:left;border:none;border-radius:6px;cursor:pointer;background:transparent;color:var(--color-muted-foreground-strong);text-decoration:none;transition:background .15s,color .15s}.more-menu-item.svelte-1beoyzy:hover:not(:disabled){background:var(--color-muted);color:var(--color-accent-foreground)}.more-menu-item.svelte-1beoyzy:disabled{opacity:.6;cursor:not-allowed}.more-menu-item-danger.svelte-1beoyzy:hover:not(:disabled){color:var(--color-destructive);background:color-mix(in srgb,var(--color-destructive) 14%,transparent)}.more-menu-item-remove.svelte-1beoyzy{color:var(--color-destructive)}.more-menu-item-remove.svelte-1beoyzy svg{color:var(--color-destructive)}.more-menu-item-remove.svelte-1beoyzy:hover:not(:disabled){background:color-mix(in srgb,var(--color-destructive) 14%,transparent);color:var(--color-destructive)}.more-menu-item.pulling.svelte-1beoyzy svg{animation:svelte-1beoyzy-spin .8s linear infinite}.state.svelte-1beoyzy{flex:1;display:flex;align-items:center;justify-content:center;text-align:center;padding:1.5rem calc(var(--shell-gutter) + 1rem);color:var(--color-muted-foreground);font-size:.875rem;gap:.25rem}.state.error.svelte-1beoyzy{color:var(--color-destructive)}.link-btn.svelte-1beoyzy{background:none;border:none;padding:0;color:var(--color-primary);font-size:inherit;cursor:pointer;text-decoration:underline}.link-btn.svelte-1beoyzy:hover{text-decoration:underline}.feed-body-scroll.svelte-1beoyzy>.list:where(.svelte-1beoyzy){flex-shrink:0}.list.svelte-1beoyzy{min-width:0;width:100%;display:flex;flex-direction:column;border-top:1px solid var(--color-border-muted)}.row-grid.svelte-1beoyzy{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.5rem .75rem;align-items:center;padding:.55rem var(--shell-gutter);box-sizing:border-box}.card.svelte-1beoyzy{border-bottom:1px solid var(--color-border-muted);transition:background .15s;cursor:pointer}.card.svelte-1beoyzy:hover{background:var(--color-muted)}.card.svelte-1beoyzy:focus-visible{outline:1px solid color-mix(in srgb,var(--color-primary) 55%,transparent);outline-offset:-1px}.card.svelte-1beoyzy:last-child{border-bottom:none}.cell-title.svelte-1beoyzy{min-width:0}.title-block.svelte-1beoyzy{display:flex;align-items:center;gap:.35rem;min-width:0;max-width:100%;width:100%;box-sizing:border-box;color:inherit}.title-line.svelte-1beoyzy{display:flex;align-items:baseline;gap:.35rem;min-width:0;flex:1 1 0%}.title-item-count.svelte-1beoyzy{flex-shrink:0;font-size:.72rem;font-weight:500;font-variant-numeric:tabular-nums;color:var(--color-muted-foreground-soft);line-height:1.2}.source-title-favicon-slot.svelte-1beoyzy{flex-shrink:0;box-sizing:border-box;width:1rem;height:1rem;border-radius:3px;background:transparent;overflow:hidden}.source-title-favicon.svelte-1beoyzy{display:block;width:100%;height:100%;object-fit:contain}.title-text.svelte-1beoyzy{font-size:.875rem;font-weight:500;line-height:1.2;color:var(--color-foreground);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}.cell-actions.svelte-1beoyzy{display:inline-flex;align-items:center;justify-content:flex-end;flex-shrink:0}@keyframes svelte-1beoyzy-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.btn-icon{flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;width:2rem;height:2rem;padding:0;color:var(--color-muted-foreground);background:transparent;border:none;border-radius:var(--radius-sm);cursor:pointer;transition:color .15s,background .15s}.btn-icon:hover{color:var(--color-foreground);background:var(--color-muted)}.modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#00000059;z-index:100}.modal{position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);background:var(--color-card-elevated);border-radius:10px;width:calc(100% - 2rem);max-width:460px;box-shadow:var(--shadow-panel);border:1px solid var(--color-border);display:flex;flex-direction:column;overflow:hidden;z-index:101}.modal .modal-header.svelte-1beoyzy{display:flex;align-items:center;justify-content:space-between;padding:1rem 1.25rem .75rem;border-bottom:1px solid var(--color-border-muted)}.modal-title{font-size:.9375rem;font-weight:600;margin:0;color:var(--color-foreground)}.modal-close{background:none;border:none;padding:.25rem;font-size:1rem;color:var(--color-muted-foreground);cursor:pointer;line-height:1;border-radius:4px}.modal-close:hover{color:var(--color-foreground);background:var(--color-muted)}.modal-body.svelte-1beoyzy{padding:1rem 1.25rem;display:flex;flex-direction:column;gap:.75rem}.field.svelte-1beoyzy{display:flex;flex-direction:column;gap:.3rem}.field-row.svelte-1beoyzy{display:grid;grid-template-columns:1fr 1fr;gap:.75rem}.field-label.svelte-1beoyzy{font-size:.8rem;font-weight:500;color:var(--color-muted-foreground-strong)}.required.svelte-1beoyzy{color:var(--color-destructive)}.ref-input-wrap.svelte-1beoyzy{display:flex;align-items:center;gap:.35rem;width:100%}.ref-input-wrap.svelte-1beoyzy .field-input:where(.svelte-1beoyzy){flex:1;min-width:0}.parse-hints.svelte-1beoyzy{display:flex;flex-wrap:wrap;align-items:center;gap:.35rem .5rem}.parse-hint.svelte-1beoyzy{display:inline-flex;align-items:center;gap:.3rem;padding:.2rem .45rem;font-size:.72rem;font-weight:500;color:var(--color-muted-foreground-soft);border-radius:5px;border:1px solid transparent;background:transparent;transition:color .15s,border-color .15s,background .15s}.parse-hint.active.svelte-1beoyzy{color:var(--color-primary);border-color:color-mix(in srgb,var(--color-primary) 35%,transparent);background:color-mix(in srgb,var(--color-primary) 10%,transparent)}.field-input.svelte-1beoyzy{padding:.4rem .65rem;font-size:.875rem;border:1px solid var(--color-input);border-radius:var(--radius-sm);outline:none;background:var(--color-card);color:var(--color-foreground);font-family:inherit;transition:border-color .15s,background .15s;width:100%}.field-input.svelte-1beoyzy:focus{border-color:var(--color-primary);background:var(--color-card-elevated)}.field-input--weight.svelte-1beoyzy{-moz-appearance:textfield}.field-input--weight.svelte-1beoyzy::-webkit-outer-spin-button,.field-input--weight.svelte-1beoyzy::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.save-error.svelte-1beoyzy{font-size:.8rem;color:var(--color-destructive);margin:0}.modal-footer.svelte-1beoyzy{display:flex;align-items:center;justify-content:space-between;gap:.5rem;padding:.75rem 1.25rem;border-top:1px solid var(--color-border-muted)}.remove-dialog-footer.svelte-1beoyzy{justify-content:flex-end}.remove-dialog-text.svelte-1beoyzy{margin:0;font-size:.875rem;line-height:1.5;color:var(--color-foreground)}.remove-dialog-target.svelte-1beoyzy{margin:0;margin-top:.5rem;font-size:.8125rem;color:var(--color-muted-foreground-strong);word-break:break-all}.modal-footer-left.svelte-1beoyzy{display:flex;align-items:center}.modal-footer-right.svelte-1beoyzy{display:flex;align-items:center;gap:.5rem}.btn-delete.svelte-1beoyzy{display:inline-flex;align-items:center;gap:.3rem;padding:.4rem .8rem;font-size:.875rem;color:var(--color-destructive);background:transparent;border:1px solid color-mix(in srgb,var(--color-destructive) 45%,transparent);border-radius:var(--radius-sm);cursor:pointer;transition:background .15s}.btn-delete.svelte-1beoyzy:hover:not(:disabled){background:color-mix(in srgb,var(--color-destructive) 12%,transparent)}.confirm-delete-row.svelte-1beoyzy{display:inline-flex;align-items:center;gap:.4rem;font-size:.8rem}.confirm-delete-text.svelte-1beoyzy{color:var(--color-destructive);font-weight:500}.btn-confirm-yes.svelte-1beoyzy{padding:.3rem .7rem;font-size:.8rem;color:var(--color-destructive-foreground);background:var(--color-destructive);border:none;border-radius:5px;cursor:pointer}.btn-confirm-yes.svelte-1beoyzy:disabled{opacity:.6;cursor:not-allowed}.btn-confirm-no.svelte-1beoyzy{padding:.3rem .6rem;font-size:.8rem;color:var(--color-foreground);background:var(--color-muted);border:1px solid var(--color-border);border-radius:5px;cursor:pointer}.btn-cancel{padding:.4rem 1rem;font-size:.875rem;color:var(--color-foreground);background:var(--color-muted);border:1px solid var(--color-border);border-radius:var(--radius-sm);cursor:pointer}.btn-cancel:hover:not(:disabled){background:var(--color-accent)}.btn-save.svelte-1beoyzy{padding:.4rem 1.2rem;font-size:.875rem;color:var(--color-primary-foreground);background:var(--color-primary);border:none;border-radius:6px;cursor:pointer;transition:opacity .15s}.btn-save.svelte-1beoyzy:hover:not(:disabled){opacity:.85}.btn-save.svelte-1beoyzy:disabled{opacity:.6;cursor:not-allowed}@media(max-width:600px){.feed-wrap.svelte-1beoyzy{max-width:100%}.field-row.svelte-1beoyzy{grid-template-columns:1fr}}
|
|
1
|
+
.feed-wrap.svelte-1beoyzy{--feed-sticky-gap-after: 0;margin-top:calc(-1 * var(--main-padding-top));margin-left:calc(-1 * var(--shell-gutter));margin-right:calc(-1 * var(--shell-gutter));width:calc(100% + 2 * var(--shell-gutter));max-width:none;box-sizing:border-box;display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden}.feed-col.svelte-1beoyzy{display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden;background:transparent}.feed-toolbar-block.svelte-1beoyzy{flex-shrink:0;padding-top:var(--main-padding-top);padding-bottom:var(--feed-sticky-gap-after);padding-inline:var(--shell-gutter);box-sizing:border-box}.feed-body-scroll.svelte-1beoyzy{flex:1;min-height:0;display:flex;flex-direction:column;overflow-y:auto;overflow-x:auto;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch}.feed-header.svelte-1beoyzy{display:flex;align-items:center;gap:.75rem;padding:.75rem 0;flex-shrink:0}.header-left.svelte-1beoyzy{display:flex;align-items:center;gap:.5rem;flex:0 1 auto;min-width:0}.header-right.svelte-1beoyzy{display:flex;align-items:center;gap:.5rem;flex-shrink:0;margin-left:auto}.filter-input.svelte-1beoyzy{flex:0 1 auto;width:100%;min-width:6.5rem;max-width:12rem;padding:.35rem .6rem;font-size:.8125rem;border:1px solid var(--color-input);border-radius:var(--radius-sm);outline:none;background:var(--color-card-elevated);color:var(--color-foreground);transition:border-color .15s,background .15s}.filter-input.svelte-1beoyzy:focus{border-color:var(--color-primary);background:var(--color-card)}.filter-input.svelte-1beoyzy::placeholder{color:var(--color-muted-foreground-soft)}.btn-sort{display:inline-flex;align-items:center;justify-content:center;width:2rem;height:2rem;padding:0;flex-shrink:0;font:inherit;color:var(--color-muted-foreground-strong);background:transparent;border:1px solid var(--color-input);border-radius:var(--radius-sm);box-shadow:none;cursor:pointer;transition:color .15s,border-color .15s,background .15s}.btn-sort:hover{color:var(--color-primary);border-color:var(--color-primary);background:transparent}.btn-sort:focus-visible{outline:2px solid color-mix(in srgb,var(--color-primary) 45%,transparent);outline-offset:1px}.sort-menu{min-width:10.5rem;padding:.3rem;box-sizing:border-box}.sort-menu-item.svelte-1beoyzy{display:flex;align-items:center;justify-content:space-between;gap:.5rem;width:100%;padding:.4rem .55rem;font-size:.8125rem;text-align:left;border:none;border-radius:6px;cursor:pointer;background:transparent;color:var(--color-muted-foreground-strong);transition:background .12s,color .12s}.sort-menu-item.svelte-1beoyzy:hover{background:var(--color-muted);color:var(--color-accent-foreground)}.sort-menu-item.active.svelte-1beoyzy{color:var(--color-primary);font-weight:500}.sort-menu-dir.svelte-1beoyzy{font-size:.75rem;font-variant-numeric:tabular-nums;opacity:.9}.btn-add.svelte-1beoyzy{display:inline-flex;align-items:center;justify-content:center;width:2rem;height:2rem;padding:0;flex-shrink:0;color:var(--color-primary-foreground);background:var(--color-primary);border:none;border-radius:var(--radius-sm);cursor:pointer;transition:opacity .15s,background .15s}.btn-add.svelte-1beoyzy:hover{opacity:.9;background:var(--color-primary-hover, var(--color-primary))}.dropdown-panel{z-index:50;background:var(--color-card);border:1px solid var(--color-border);border-radius:var(--radius-sm);box-shadow:var(--shadow-panel)}.more-menu{width:11.5rem;min-width:11.5rem;padding:.25rem;box-sizing:border-box}.more-menu-item.svelte-1beoyzy{display:flex;align-items:center;gap:.5rem;width:100%;padding:.4rem .65rem;font-size:.8125rem;text-align:left;border:none;border-radius:6px;cursor:pointer;background:transparent;color:var(--color-muted-foreground-strong);text-decoration:none;transition:background .15s,color .15s}.more-menu-item.svelte-1beoyzy:hover:not(:disabled){background:var(--color-muted);color:var(--color-accent-foreground)}.more-menu-item.svelte-1beoyzy:disabled{opacity:.6;cursor:not-allowed}.more-menu-item-danger.svelte-1beoyzy:hover:not(:disabled){color:var(--color-destructive);background:color-mix(in srgb,var(--color-destructive) 14%,transparent)}.more-menu-item-remove.svelte-1beoyzy{color:var(--color-destructive)}.more-menu-item-remove.svelte-1beoyzy svg{color:var(--color-destructive)}.more-menu-item-remove.svelte-1beoyzy:hover:not(:disabled){background:color-mix(in srgb,var(--color-destructive) 14%,transparent);color:var(--color-destructive)}.more-menu-item.pulling.svelte-1beoyzy svg{animation:svelte-1beoyzy-spin .8s linear infinite}.state.svelte-1beoyzy{flex:1;display:flex;align-items:center;justify-content:center;text-align:center;padding:1.5rem calc(var(--shell-gutter) + 1rem);color:var(--color-muted-foreground);font-size:.875rem;gap:.25rem}.state.error.svelte-1beoyzy{color:var(--color-destructive)}.link-btn.svelte-1beoyzy{background:none;border:none;padding:0;color:var(--color-primary);font-size:inherit;cursor:pointer;text-decoration:underline}.link-btn.svelte-1beoyzy:hover{text-decoration:underline}.feed-body-scroll.svelte-1beoyzy>.list:where(.svelte-1beoyzy){flex-shrink:0}.list.svelte-1beoyzy{min-width:0;width:100%;display:flex;flex-direction:column;border-top:1px solid var(--color-border-muted)}.row-grid.svelte-1beoyzy{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.5rem .75rem;align-items:center;padding:.55rem var(--shell-gutter);box-sizing:border-box}.card.svelte-1beoyzy{border-bottom:1px solid var(--color-border-muted);transition:background .15s;cursor:pointer}.card.svelte-1beoyzy:hover{background:var(--color-muted)}.card.svelte-1beoyzy:focus-visible{outline:1px solid color-mix(in srgb,var(--color-primary) 55%,transparent);outline-offset:-1px}.card.svelte-1beoyzy:last-child{border-bottom:none}.cell-title.svelte-1beoyzy{min-width:0}.title-block.svelte-1beoyzy{display:flex;align-items:center;gap:.35rem;min-width:0;max-width:100%;width:100%;box-sizing:border-box;color:inherit}.title-line.svelte-1beoyzy{display:flex;align-items:baseline;gap:.35rem;min-width:0;flex:1 1 0%}.title-item-count.svelte-1beoyzy{flex-shrink:0;font-size:.72rem;font-weight:500;font-variant-numeric:tabular-nums;color:var(--color-muted-foreground-soft);line-height:1.2}.source-title-favicon-slot.svelte-1beoyzy{flex-shrink:0;box-sizing:border-box;width:1rem;height:1rem;border-radius:3px;background:transparent;overflow:hidden}.source-title-favicon.svelte-1beoyzy{display:block;width:100%;height:100%;object-fit:contain}.title-text.svelte-1beoyzy{font-size:.875rem;font-weight:500;line-height:1.2;color:var(--color-foreground);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}.cell-actions.svelte-1beoyzy{display:inline-flex;align-items:center;justify-content:flex-end;flex-shrink:0}@keyframes svelte-1beoyzy-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.btn-icon{flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;width:2rem;height:2rem;padding:0;color:var(--color-muted-foreground);background:transparent;border:none;border-radius:var(--radius-sm);cursor:pointer;transition:color .15s,background .15s}.btn-icon:hover{color:var(--color-foreground);background:var(--color-muted)}.modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#00000059;z-index:100}.modal{position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);background:var(--color-card-elevated);border-radius:10px;width:calc(100% - 2rem);max-width:460px;box-shadow:var(--shadow-panel);border:1px solid var(--color-border);display:flex;flex-direction:column;overflow:hidden;z-index:101}.modal .modal-header.svelte-1beoyzy{display:flex;align-items:center;justify-content:space-between;padding:1rem 1.25rem .75rem;border-bottom:1px solid var(--color-border-muted)}.modal-title{font-size:.9375rem;font-weight:600;margin:0;color:var(--color-foreground)}.modal-close{background:none;border:none;padding:.25rem;font-size:1rem;color:var(--color-muted-foreground);cursor:pointer;line-height:1;border-radius:4px}.modal-close:hover{color:var(--color-foreground);background:var(--color-muted)}.modal-body.svelte-1beoyzy{padding:1rem 1.25rem;display:flex;flex-direction:column;gap:.75rem}.field.svelte-1beoyzy{display:flex;flex-direction:column;gap:.3rem}.field-row.svelte-1beoyzy{display:grid;grid-template-columns:1fr 1fr;gap:.75rem}.field-label.svelte-1beoyzy{font-size:.8rem;font-weight:500;color:var(--color-muted-foreground-strong)}.required.svelte-1beoyzy{color:var(--color-destructive)}.ref-input-wrap.svelte-1beoyzy{display:flex;align-items:center;gap:.35rem;width:100%}.ref-input-wrap.svelte-1beoyzy .field-input:where(.svelte-1beoyzy){flex:1;min-width:0}.parse-hints.svelte-1beoyzy{display:flex;flex-wrap:wrap;align-items:center;gap:.35rem .5rem}.parse-hint.svelte-1beoyzy{display:inline-flex;align-items:center;gap:.3rem;padding:.2rem .45rem;font-size:.72rem;font-weight:500;color:var(--color-muted-foreground-soft);border-radius:5px;border:1px solid transparent;background:transparent;transition:color .15s,border-color .15s,background .15s}.parse-hint.active.svelte-1beoyzy{color:var(--color-primary);border-color:color-mix(in srgb,var(--color-primary) 35%,transparent);background:color-mix(in srgb,var(--color-primary) 10%,transparent)}.field-input.svelte-1beoyzy{padding:.4rem .65rem;font-size:.875rem;border:1px solid var(--color-input);border-radius:var(--radius-sm);outline:none;background:var(--color-card);color:var(--color-foreground);font-family:inherit;transition:border-color .15s,background .15s;width:100%}.field-input.svelte-1beoyzy:focus{border-color:var(--color-primary);background:var(--color-card-elevated)}.source-modal-select-trigger{display:inline-flex;align-items:center;justify-content:space-between;gap:.5rem;width:100%;padding:.4rem .65rem;font-size:.875rem;border:1px solid var(--color-input);border-radius:var(--radius-sm);outline:none;background:var(--color-card);color:var(--color-foreground);font-family:inherit;cursor:pointer;transition:border-color .15s,background .15s}.source-modal-select-trigger:focus-visible{border-color:var(--color-primary);background:var(--color-card-elevated);box-shadow:0 0 0 3px var(--color-primary-light)}.source-modal-select-trigger span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.source-modal-select-content{z-index:140;width:var(--bits-select-anchor-width);max-width:min(34rem,calc(100vw - 2rem));padding:.25rem;background:var(--color-card-elevated);border:1px solid var(--color-border);border-radius:var(--radius-md);box-shadow:var(--shadow-panel)}.source-modal-select-viewport{display:flex;flex-direction:column;gap:.05rem;max-height:16rem;overflow:auto}.source-modal-select-item{display:flex;align-items:center;min-height:2rem;padding:.4rem .6rem;font-size:.8125rem;line-height:1.25;color:var(--color-foreground);border-radius:var(--radius-sm);outline:none;cursor:pointer;word-break:break-all}.source-modal-select-item[data-highlighted]{background:var(--color-muted)}.source-modal-select-item[data-selected]{color:var(--color-primary);background:var(--color-primary-light)}.field-hint.svelte-1beoyzy{margin:0;font-size:.75rem;color:var(--color-muted-foreground-soft);line-height:1.4}.field-input--weight.svelte-1beoyzy{-moz-appearance:textfield}.field-input--weight.svelte-1beoyzy::-webkit-outer-spin-button,.field-input--weight.svelte-1beoyzy::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.save-error.svelte-1beoyzy{font-size:.8rem;color:var(--color-destructive);margin:0}.modal-footer.svelte-1beoyzy{display:flex;align-items:center;justify-content:space-between;gap:.5rem;padding:.75rem 1.25rem;border-top:1px solid var(--color-border-muted)}.remove-dialog-footer.svelte-1beoyzy{justify-content:flex-end}.remove-dialog-text.svelte-1beoyzy{margin:0;font-size:.875rem;line-height:1.5;color:var(--color-foreground)}.remove-dialog-target.svelte-1beoyzy{margin:0;margin-top:.5rem;font-size:.8125rem;color:var(--color-muted-foreground-strong);word-break:break-all}.modal-footer-left.svelte-1beoyzy{display:flex;align-items:center}.modal-footer-right.svelte-1beoyzy{display:flex;align-items:center;gap:.5rem}.btn-delete.svelte-1beoyzy{display:inline-flex;align-items:center;gap:.3rem;padding:.4rem .8rem;font-size:.875rem;color:var(--color-destructive);background:transparent;border:1px solid color-mix(in srgb,var(--color-destructive) 45%,transparent);border-radius:var(--radius-sm);cursor:pointer;transition:background .15s}.btn-delete.svelte-1beoyzy:hover:not(:disabled){background:color-mix(in srgb,var(--color-destructive) 12%,transparent)}.confirm-delete-row.svelte-1beoyzy{display:inline-flex;align-items:center;gap:.4rem;font-size:.8rem}.confirm-delete-text.svelte-1beoyzy{color:var(--color-destructive);font-weight:500}.btn-confirm-yes.svelte-1beoyzy{padding:.3rem .7rem;font-size:.8rem;color:var(--color-destructive-foreground);background:var(--color-destructive);border:none;border-radius:5px;cursor:pointer}.btn-confirm-yes.svelte-1beoyzy:disabled{opacity:.6;cursor:not-allowed}.btn-confirm-no.svelte-1beoyzy{padding:.3rem .6rem;font-size:.8rem;color:var(--color-foreground);background:var(--color-muted);border:1px solid var(--color-border);border-radius:5px;cursor:pointer}.btn-cancel{padding:.4rem 1rem;font-size:.875rem;color:var(--color-foreground);background:var(--color-muted);border:1px solid var(--color-border);border-radius:var(--radius-sm);cursor:pointer}.btn-cancel:hover:not(:disabled){background:var(--color-accent)}.btn-save.svelte-1beoyzy{padding:.4rem 1.2rem;font-size:.875rem;color:var(--color-primary-foreground);background:var(--color-primary);border:none;border-radius:6px;cursor:pointer;transition:opacity .15s}.btn-save.svelte-1beoyzy:hover:not(:disabled){opacity:.85}.btn-save.svelte-1beoyzy:disabled{opacity:.6;cursor:not-allowed}@media(max-width:600px){.feed-wrap.svelte-1beoyzy{max-width:100%}.field-row.svelte-1beoyzy{grid-template-columns:1fr}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
[data-select-viewport],[data-combobox-viewport]{scrollbar-width:none!important;-ms-overflow-style:none!important;-webkit-overflow-scrolling:touch!important}[data-combobox-viewport]::-webkit-scrollbar{display:none!important}[data-select-viewport]::-webkit-scrollbar{display:none!important}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{w as a}from"./
|
|
1
|
+
import{w as a}from"./FDS7fbwH.js";let t=null;const s=a({msg:"",type:""});function m(e,o=""){s.set({msg:e,type:o}),t&&clearTimeout(t),t=setTimeout(()=>s.set({msg:"",type:""}),3500)}export{m as s,s as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var Ht=Object.defineProperty;var Bt=n=>{throw TypeError(n)};var Jt=(n,t,e)=>t in n?Ht(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e;var l=(n,t,e)=>Jt(n,typeof t!="symbol"?t+"":t,e),Lt=(n,t,e)=>t.has(n)||Bt("Cannot "+e);var r=(n,t,e)=>(Lt(n,t,"read from private field"),e?e.call(n):t.get(n)),c=(n,t,e)=>t.has(n)?Bt("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(n):t.set(n,e);import{p as pt,c as N,a as f,f as st}from"./CS53ooo0.js";import{b7 as O,i as s,a5 as h,aA as v,at as nt,f as y,au as it,av as ft,aj as at,ax as gt,aw as Mt}from"./vtBo8kBV.js";import{C as Qt,a as Kt,b as u,w as jt,o as Vt,c as Xt,d as vt,S as Yt,E as Zt,e as ut,g as $t,f as mt,s as S,m as D,n as M,F as te,h as ee,D as re,T as oe,i as Tt}from"./DsxvjlCC.js";import{i as x}from"./BkD3yAYe.js";import{d as yt}from"./DoRPmqLn.js";import{p as d,r as bt,s as Ct}from"./BAJAS8BI.js";const se=Xt({component:"dialog",parts:["content","trigger","overlay","title","description","close","cancel","action"]}),K=new Qt("Dialog.Root | AlertDialog.Root");var U,W,q,G,H,J,L,Q,V,X,Y;const St=class St{constructor(t,e){l(this,"opts");c(this,U,O(null));c(this,W,O(null));c(this,q,O(null));c(this,G,O(null));c(this,H,O(void 0));c(this,J,O(void 0));c(this,L,O(void 0));c(this,Q,O(void 0));c(this,V,O(null));c(this,X,O(0));l(this,"depth");l(this,"parent");l(this,"contentPresence");l(this,"overlayPresence");l(this,"getBitsAttr",t=>se.getAttr(t,this.opts.variant.current));c(this,Y,v(()=>({"data-state":$t(this.opts.open.current)})));this.opts=t,this.parent=e,this.depth=e?e.depth+1:0,this.handleOpen=this.handleOpen.bind(this),this.handleClose=this.handleClose.bind(this),this.contentPresence=new Kt({ref:u(()=>this.contentNode),open:this.opts.open,enabled:!0,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),this.overlayPresence=new Kt({ref:u(()=>this.overlayNode),open:this.opts.open,enabled:!0}),jt(()=>this.opts.open.current,i=>{this.parent&&(i?this.parent.incrementNested():this.parent.decrementNested())},{lazy:!0}),Vt(()=>{var i;this.opts.open.current&&((i=this.parent)==null||i.decrementNested())})}static create(t){const e=K.getOr(null);return K.set(new St(t,e))}get triggerNode(){return s(r(this,U))}set triggerNode(t){h(r(this,U),t,!0)}get contentNode(){return s(r(this,W))}set contentNode(t){h(r(this,W),t,!0)}get overlayNode(){return s(r(this,q))}set overlayNode(t){h(r(this,q),t,!0)}get descriptionNode(){return s(r(this,G))}set descriptionNode(t){h(r(this,G),t,!0)}get contentId(){return s(r(this,H))}set contentId(t){h(r(this,H),t,!0)}get titleId(){return s(r(this,J))}set titleId(t){h(r(this,J),t,!0)}get triggerId(){return s(r(this,L))}set triggerId(t){h(r(this,L),t,!0)}get descriptionId(){return s(r(this,Q))}set descriptionId(t){h(r(this,Q),t,!0)}get cancelNode(){return s(r(this,V))}set cancelNode(t){h(r(this,V),t,!0)}get nestedOpenCount(){return s(r(this,X))}set nestedOpenCount(t){h(r(this,X),t,!0)}handleOpen(){this.opts.open.current||(this.opts.open.current=!0)}handleClose(){this.opts.open.current&&(this.opts.open.current=!1)}incrementNested(){var t;this.nestedOpenCount++,(t=this.parent)==null||t.incrementNested()}decrementNested(){var t;this.nestedOpenCount!==0&&(this.nestedOpenCount--,(t=this.parent)==null||t.decrementNested())}get sharedProps(){return s(r(this,Y))}set sharedProps(t){h(r(this,Y),t)}};U=new WeakMap,W=new WeakMap,q=new WeakMap,G=new WeakMap,H=new WeakMap,J=new WeakMap,L=new WeakMap,Q=new WeakMap,V=new WeakMap,X=new WeakMap,Y=new WeakMap;let Ot=St;var Z;const kt=class kt{constructor(t,e){l(this,"opts");l(this,"root");l(this,"attachment");c(this,Z,v(()=>({id:this.opts.id.current,[this.root.getBitsAttr(this.opts.variant.current)]:"",onclick:this.onclick,onkeydown:this.onkeydown,disabled:this.opts.disabled.current?!0:void 0,tabindex:0,...this.root.sharedProps,...this.attachment})));this.opts=t,this.root=e,this.attachment=vt(this.opts.ref),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this)}static create(t){return new kt(t,K.get())}onclick(t){this.opts.disabled.current||t.button>0||this.root.handleClose()}onkeydown(t){this.opts.disabled.current||(t.key===Yt||t.key===Zt)&&(t.preventDefault(),this.root.handleClose())}get props(){return s(r(this,Z))}set props(t){h(r(this,Z),t)}};Z=new WeakMap;let Nt=kt;var $;const Ft=class Ft{constructor(t,e){l(this,"opts");l(this,"root");l(this,"attachment");c(this,$,v(()=>({id:this.opts.id.current,role:"heading","aria-level":this.opts.level.current,[this.root.getBitsAttr("title")]:"",...this.root.sharedProps,...this.attachment})));this.opts=t,this.root=e,this.root.titleId=this.opts.id.current,this.attachment=vt(this.opts.ref),jt.pre(()=>this.opts.id.current,i=>{this.root.titleId=i})}static create(t){return new Ft(t,K.get())}get props(){return s(r(this,$))}set props(t){h(r(this,$),t)}};$=new WeakMap;let It=Ft;var tt,et;const Dt=class Dt{constructor(t,e){l(this,"opts");l(this,"root");l(this,"attachment");c(this,tt,v(()=>({open:this.root.opts.open.current})));c(this,et,v(()=>({id:this.opts.id.current,role:this.root.opts.variant.current==="alert-dialog"?"alertdialog":"dialog","aria-modal":"true","aria-describedby":this.root.descriptionId,"aria-labelledby":this.root.titleId,[this.root.getBitsAttr("content")]:"",style:{pointerEvents:"auto",outline:this.root.opts.variant.current==="alert-dialog"?"none":void 0,"--bits-dialog-depth":this.root.depth,"--bits-dialog-nested-count":this.root.nestedOpenCount,contain:"layout style"},tabindex:this.root.opts.variant.current==="alert-dialog"?-1:void 0,"data-nested-open":ut(this.root.nestedOpenCount>0),"data-nested":ut(this.root.parent!==null),...this.root.sharedProps,...this.attachment})));this.opts=t,this.root=e,this.attachment=vt(this.opts.ref,i=>{this.root.contentNode=i,this.root.contentId=i==null?void 0:i.id})}static create(t){return new Dt(t,K.get())}get snippetProps(){return s(r(this,tt))}set snippetProps(t){h(r(this,tt),t)}get props(){return s(r(this,et))}set props(t){h(r(this,et),t)}get shouldRender(){return this.root.contentPresence.shouldRender}};tt=new WeakMap,et=new WeakMap;let wt=Dt;var rt,ot;const Et=class Et{constructor(t,e){l(this,"opts");l(this,"root");l(this,"attachment");c(this,rt,v(()=>({open:this.root.opts.open.current})));c(this,ot,v(()=>({id:this.opts.id.current,[this.root.getBitsAttr("overlay")]:"",style:{pointerEvents:"auto","--bits-dialog-depth":this.root.depth,"--bits-dialog-nested-count":this.root.nestedOpenCount},"data-nested-open":ut(this.root.nestedOpenCount>0),"data-nested":ut(this.root.parent!==null),...this.root.sharedProps,...this.attachment})));this.opts=t,this.root=e,this.attachment=vt(this.opts.ref,i=>this.root.overlayNode=i)}static create(t){return new Et(t,K.get())}get snippetProps(){return s(r(this,rt))}set snippetProps(t){h(r(this,rt),t)}get props(){return s(r(this,ot))}set props(t){h(r(this,ot),t)}get shouldRender(){return this.root.overlayPresence.shouldRender}};rt=new WeakMap,ot=new WeakMap;let At=Et;var ne=st("<div><!></div>");function Pe(n,t){const e=pt();nt(t,!0);let i=d(t,"id",19,()=>mt(e)),m=d(t,"ref",15,null),b=d(t,"level",3,2),I=bt(t,["$$slots","$$events","$$legacy","id","ref","child","children","level"]);const g=It.create({id:u(()=>i()),level:u(()=>b()),ref:u(()=>m(),a=>m(a))}),_=v(()=>D(I,g.props));var C=N(),E=y(C);{var k=a=>{var o=N(),p=y(o);S(p,()=>t.child,()=>({props:s(_)})),f(a,o)},P=a=>{var o=ne();yt(o,()=>({...s(_)}));var p=ft(o);S(p,()=>t.children??at),gt(o),f(a,o)};x(E,a=>{t.child?a(k):a(P,-1)})}f(n,C),it()}var ie=st("<div><!></div>");function _e(n,t){const e=pt();nt(t,!0);let i=d(t,"id",19,()=>mt(e)),m=d(t,"forceMount",3,!1),b=d(t,"ref",15,null),I=bt(t,["$$slots","$$events","$$legacy","id","forceMount","child","children","ref"]);const g=At.create({id:u(()=>i()),ref:u(()=>b(),P=>b(P))}),_=v(()=>D(I,g.props));var C=N(),E=y(C);{var k=P=>{var a=N(),o=y(a);{var p=F=>{var w=N(),A=y(w);{let lt=v(()=>({props:D(s(_)),...g.snippetProps}));S(A,()=>t.child,()=>s(lt))}f(F,w)},dt=F=>{var w=ie();yt(w,lt=>({...lt}),[()=>D(s(_))]);var A=ft(w);S(A,()=>t.children??at,()=>g.snippetProps),gt(w),f(F,w)};x(o,F=>{t.child?F(p):F(dt,-1)})}f(P,a)};x(E,P=>{(g.shouldRender||m())&&P(k)})}f(n,C),it()}function Ce(n,t){nt(t,!0);let e=d(t,"open",15,!1),i=d(t,"onOpenChange",3,M),m=d(t,"onOpenChangeComplete",3,M);Ot.create({variant:u(()=>"dialog"),open:u(()=>e(),g=>{e(g),i()(g)}),onOpenChangeComplete:u(()=>m())});var b=N(),I=y(b);S(I,()=>t.children??at),f(n,b),it()}var ae=st("<button><!></button>");function Oe(n,t){const e=pt();nt(t,!0);let i=d(t,"id",19,()=>mt(e)),m=d(t,"ref",15,null),b=d(t,"disabled",3,!1),I=bt(t,["$$slots","$$events","$$legacy","children","child","id","ref","disabled"]);const g=Nt.create({variant:u(()=>"close"),id:u(()=>i()),ref:u(()=>m(),a=>m(a)),disabled:u(()=>!!b())}),_=v(()=>D(I,g.props));var C=N(),E=y(C);{var k=a=>{var o=N(),p=y(o);S(p,()=>t.child,()=>({props:s(_)})),f(a,o)},P=a=>{var o=ae();yt(o,()=>({...s(_)}));var p=ft(o);S(p,()=>t.children??at),gt(o),f(a,o)};x(E,a=>{t.child?a(k):a(P,-1)})}f(n,C),it()}var de=st("<!> <!>",1),le=st("<!> <div><!></div>",1);function Ne(n,t){const e=pt();nt(t,!0);let i=d(t,"id",19,()=>mt(e)),m=d(t,"ref",15,null),b=d(t,"forceMount",3,!1),I=d(t,"onCloseAutoFocus",3,M),g=d(t,"onOpenAutoFocus",3,M),_=d(t,"onEscapeKeydown",3,M),C=d(t,"onInteractOutside",3,M),E=d(t,"trapFocus",3,!0),k=d(t,"preventScroll",3,!0),P=d(t,"restoreScrollDelay",3,null),a=bt(t,["$$slots","$$events","$$legacy","id","children","child","ref","forceMount","onCloseAutoFocus","onOpenAutoFocus","onEscapeKeydown","onInteractOutside","trapFocus","preventScroll","restoreScrollDelay"]);const o=wt.create({id:u(()=>i()),ref:u(()=>m(),A=>m(A))}),p=v(()=>D(a,o.props));var dt=N(),F=y(dt);{var w=A=>{te(A,{get ref(){return o.opts.ref},loop:!0,get trapFocus(){return E()},get enabled(){return o.root.opts.open.current},get onOpenAutoFocus(){return g()},get onCloseAutoFocus(){return I()},focusScope:(zt,Pt)=>{let Rt=()=>Pt==null?void 0:Pt().props;ee(zt,Ct(()=>s(p),{get enabled(){return o.root.opts.open.current},get ref(){return o.opts.ref},onEscapeKeydown:ct=>{_()(ct),!ct.defaultPrevented&&o.root.handleClose()},children:(ct,ce)=>{re(ct,Ct(()=>s(p),{get ref(){return o.opts.ref},get enabled(){return o.root.opts.open.current},onInteractOutside:ht=>{C()(ht),!ht.defaultPrevented&&o.root.handleClose()},children:(ht,he)=>{oe(ht,Ct(()=>s(p),{get ref(){return o.opts.ref},get enabled(){return o.root.opts.open.current},children:(Ut,ue)=>{var xt=N(),Wt=y(xt);{var qt=B=>{var T=de(),j=y(T);{var z=R=>{Tt(R,{get preventScroll(){return k()},get restoreScrollDelay(){return P()}})};x(j,R=>{o.root.opts.open.current&&R(z)})}var _t=Mt(j,2);{let R=v(()=>({props:D(s(p),Rt()),...o.snippetProps}));S(_t,()=>t.child,()=>s(R))}f(B,T)},Gt=B=>{var T=le(),j=y(T);Tt(j,{get preventScroll(){return k()}});var z=Mt(j,2);yt(z,R=>({...R}),[()=>D(s(p),Rt())]);var _t=ft(z);S(_t,()=>t.children??at),gt(z),f(B,T)};x(Wt,B=>{t.child?B(qt):B(Gt,-1)})}f(Ut,xt)},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{focusScope:!0}})};x(F,A=>{(o.shouldRender||b())&&A(w)})}f(n,dt),it()}export{Ce as D,_e as a,Ne as b,Pe as c,Oe as d};
|
|
1
|
+
var Ht=Object.defineProperty;var Bt=n=>{throw TypeError(n)};var Jt=(n,t,e)=>t in n?Ht(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e;var l=(n,t,e)=>Jt(n,typeof t!="symbol"?t+"":t,e),Lt=(n,t,e)=>t.has(n)||Bt("Cannot "+e);var r=(n,t,e)=>(Lt(n,t,"read from private field"),e?e.call(n):t.get(n)),c=(n,t,e)=>t.has(n)?Bt("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(n):t.set(n,e);import{p as pt,c as N,a as f,f as st}from"./DIeahUKq.js";import{b8 as O,k as s,a5 as h,aA as v,at as nt,f as y,au as it,av as ft,aj as at,ax as gt,aw as Mt}from"./BsQ08Wq_.js";import{C as Qt,a as Kt,b as u,w as jt,o as Vt,c as Xt,d as vt,S as Yt,E as Zt,e as ut,g as $t,f as mt,s as S,m as D,n as M,F as te,h as ee,D as re,T as oe,i as Tt}from"./pd_p3yYy.js";import{i as x}from"./rNwPv4DZ.js";import{f as yt}from"./WW6La7Nt.js";import{p as d,r as bt,s as Ct}from"./D8G961Hm.js";const se=Xt({component:"dialog",parts:["content","trigger","overlay","title","description","close","cancel","action"]}),K=new Qt("Dialog.Root | AlertDialog.Root");var U,W,q,G,H,J,L,Q,V,X,Y;const St=class St{constructor(t,e){l(this,"opts");c(this,U,O(null));c(this,W,O(null));c(this,q,O(null));c(this,G,O(null));c(this,H,O(void 0));c(this,J,O(void 0));c(this,L,O(void 0));c(this,Q,O(void 0));c(this,V,O(null));c(this,X,O(0));l(this,"depth");l(this,"parent");l(this,"contentPresence");l(this,"overlayPresence");l(this,"getBitsAttr",t=>se.getAttr(t,this.opts.variant.current));c(this,Y,v(()=>({"data-state":$t(this.opts.open.current)})));this.opts=t,this.parent=e,this.depth=e?e.depth+1:0,this.handleOpen=this.handleOpen.bind(this),this.handleClose=this.handleClose.bind(this),this.contentPresence=new Kt({ref:u(()=>this.contentNode),open:this.opts.open,enabled:!0,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),this.overlayPresence=new Kt({ref:u(()=>this.overlayNode),open:this.opts.open,enabled:!0}),jt(()=>this.opts.open.current,i=>{this.parent&&(i?this.parent.incrementNested():this.parent.decrementNested())},{lazy:!0}),Vt(()=>{var i;this.opts.open.current&&((i=this.parent)==null||i.decrementNested())})}static create(t){const e=K.getOr(null);return K.set(new St(t,e))}get triggerNode(){return s(r(this,U))}set triggerNode(t){h(r(this,U),t,!0)}get contentNode(){return s(r(this,W))}set contentNode(t){h(r(this,W),t,!0)}get overlayNode(){return s(r(this,q))}set overlayNode(t){h(r(this,q),t,!0)}get descriptionNode(){return s(r(this,G))}set descriptionNode(t){h(r(this,G),t,!0)}get contentId(){return s(r(this,H))}set contentId(t){h(r(this,H),t,!0)}get titleId(){return s(r(this,J))}set titleId(t){h(r(this,J),t,!0)}get triggerId(){return s(r(this,L))}set triggerId(t){h(r(this,L),t,!0)}get descriptionId(){return s(r(this,Q))}set descriptionId(t){h(r(this,Q),t,!0)}get cancelNode(){return s(r(this,V))}set cancelNode(t){h(r(this,V),t,!0)}get nestedOpenCount(){return s(r(this,X))}set nestedOpenCount(t){h(r(this,X),t,!0)}handleOpen(){this.opts.open.current||(this.opts.open.current=!0)}handleClose(){this.opts.open.current&&(this.opts.open.current=!1)}incrementNested(){var t;this.nestedOpenCount++,(t=this.parent)==null||t.incrementNested()}decrementNested(){var t;this.nestedOpenCount!==0&&(this.nestedOpenCount--,(t=this.parent)==null||t.decrementNested())}get sharedProps(){return s(r(this,Y))}set sharedProps(t){h(r(this,Y),t)}};U=new WeakMap,W=new WeakMap,q=new WeakMap,G=new WeakMap,H=new WeakMap,J=new WeakMap,L=new WeakMap,Q=new WeakMap,V=new WeakMap,X=new WeakMap,Y=new WeakMap;let Ot=St;var Z;const kt=class kt{constructor(t,e){l(this,"opts");l(this,"root");l(this,"attachment");c(this,Z,v(()=>({id:this.opts.id.current,[this.root.getBitsAttr(this.opts.variant.current)]:"",onclick:this.onclick,onkeydown:this.onkeydown,disabled:this.opts.disabled.current?!0:void 0,tabindex:0,...this.root.sharedProps,...this.attachment})));this.opts=t,this.root=e,this.attachment=vt(this.opts.ref),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this)}static create(t){return new kt(t,K.get())}onclick(t){this.opts.disabled.current||t.button>0||this.root.handleClose()}onkeydown(t){this.opts.disabled.current||(t.key===Yt||t.key===Zt)&&(t.preventDefault(),this.root.handleClose())}get props(){return s(r(this,Z))}set props(t){h(r(this,Z),t)}};Z=new WeakMap;let Nt=kt;var $;const Ft=class Ft{constructor(t,e){l(this,"opts");l(this,"root");l(this,"attachment");c(this,$,v(()=>({id:this.opts.id.current,role:"heading","aria-level":this.opts.level.current,[this.root.getBitsAttr("title")]:"",...this.root.sharedProps,...this.attachment})));this.opts=t,this.root=e,this.root.titleId=this.opts.id.current,this.attachment=vt(this.opts.ref),jt.pre(()=>this.opts.id.current,i=>{this.root.titleId=i})}static create(t){return new Ft(t,K.get())}get props(){return s(r(this,$))}set props(t){h(r(this,$),t)}};$=new WeakMap;let It=Ft;var tt,et;const Dt=class Dt{constructor(t,e){l(this,"opts");l(this,"root");l(this,"attachment");c(this,tt,v(()=>({open:this.root.opts.open.current})));c(this,et,v(()=>({id:this.opts.id.current,role:this.root.opts.variant.current==="alert-dialog"?"alertdialog":"dialog","aria-modal":"true","aria-describedby":this.root.descriptionId,"aria-labelledby":this.root.titleId,[this.root.getBitsAttr("content")]:"",style:{pointerEvents:"auto",outline:this.root.opts.variant.current==="alert-dialog"?"none":void 0,"--bits-dialog-depth":this.root.depth,"--bits-dialog-nested-count":this.root.nestedOpenCount,contain:"layout style"},tabindex:this.root.opts.variant.current==="alert-dialog"?-1:void 0,"data-nested-open":ut(this.root.nestedOpenCount>0),"data-nested":ut(this.root.parent!==null),...this.root.sharedProps,...this.attachment})));this.opts=t,this.root=e,this.attachment=vt(this.opts.ref,i=>{this.root.contentNode=i,this.root.contentId=i==null?void 0:i.id})}static create(t){return new Dt(t,K.get())}get snippetProps(){return s(r(this,tt))}set snippetProps(t){h(r(this,tt),t)}get props(){return s(r(this,et))}set props(t){h(r(this,et),t)}get shouldRender(){return this.root.contentPresence.shouldRender}};tt=new WeakMap,et=new WeakMap;let wt=Dt;var rt,ot;const Et=class Et{constructor(t,e){l(this,"opts");l(this,"root");l(this,"attachment");c(this,rt,v(()=>({open:this.root.opts.open.current})));c(this,ot,v(()=>({id:this.opts.id.current,[this.root.getBitsAttr("overlay")]:"",style:{pointerEvents:"auto","--bits-dialog-depth":this.root.depth,"--bits-dialog-nested-count":this.root.nestedOpenCount},"data-nested-open":ut(this.root.nestedOpenCount>0),"data-nested":ut(this.root.parent!==null),...this.root.sharedProps,...this.attachment})));this.opts=t,this.root=e,this.attachment=vt(this.opts.ref,i=>this.root.overlayNode=i)}static create(t){return new Et(t,K.get())}get snippetProps(){return s(r(this,rt))}set snippetProps(t){h(r(this,rt),t)}get props(){return s(r(this,ot))}set props(t){h(r(this,ot),t)}get shouldRender(){return this.root.overlayPresence.shouldRender}};rt=new WeakMap,ot=new WeakMap;let At=Et;var ne=st("<div><!></div>");function Pe(n,t){const e=pt();nt(t,!0);let i=d(t,"id",19,()=>mt(e)),m=d(t,"ref",15,null),b=d(t,"level",3,2),I=bt(t,["$$slots","$$events","$$legacy","id","ref","child","children","level"]);const g=It.create({id:u(()=>i()),level:u(()=>b()),ref:u(()=>m(),a=>m(a))}),_=v(()=>D(I,g.props));var C=N(),E=y(C);{var k=a=>{var o=N(),p=y(o);S(p,()=>t.child,()=>({props:s(_)})),f(a,o)},P=a=>{var o=ne();yt(o,()=>({...s(_)}));var p=ft(o);S(p,()=>t.children??at),gt(o),f(a,o)};x(E,a=>{t.child?a(k):a(P,-1)})}f(n,C),it()}var ie=st("<div><!></div>");function _e(n,t){const e=pt();nt(t,!0);let i=d(t,"id",19,()=>mt(e)),m=d(t,"forceMount",3,!1),b=d(t,"ref",15,null),I=bt(t,["$$slots","$$events","$$legacy","id","forceMount","child","children","ref"]);const g=At.create({id:u(()=>i()),ref:u(()=>b(),P=>b(P))}),_=v(()=>D(I,g.props));var C=N(),E=y(C);{var k=P=>{var a=N(),o=y(a);{var p=F=>{var w=N(),A=y(w);{let lt=v(()=>({props:D(s(_)),...g.snippetProps}));S(A,()=>t.child,()=>s(lt))}f(F,w)},dt=F=>{var w=ie();yt(w,lt=>({...lt}),[()=>D(s(_))]);var A=ft(w);S(A,()=>t.children??at,()=>g.snippetProps),gt(w),f(F,w)};x(o,F=>{t.child?F(p):F(dt,-1)})}f(P,a)};x(E,P=>{(g.shouldRender||m())&&P(k)})}f(n,C),it()}function Ce(n,t){nt(t,!0);let e=d(t,"open",15,!1),i=d(t,"onOpenChange",3,M),m=d(t,"onOpenChangeComplete",3,M);Ot.create({variant:u(()=>"dialog"),open:u(()=>e(),g=>{e(g),i()(g)}),onOpenChangeComplete:u(()=>m())});var b=N(),I=y(b);S(I,()=>t.children??at),f(n,b),it()}var ae=st("<button><!></button>");function Oe(n,t){const e=pt();nt(t,!0);let i=d(t,"id",19,()=>mt(e)),m=d(t,"ref",15,null),b=d(t,"disabled",3,!1),I=bt(t,["$$slots","$$events","$$legacy","children","child","id","ref","disabled"]);const g=Nt.create({variant:u(()=>"close"),id:u(()=>i()),ref:u(()=>m(),a=>m(a)),disabled:u(()=>!!b())}),_=v(()=>D(I,g.props));var C=N(),E=y(C);{var k=a=>{var o=N(),p=y(o);S(p,()=>t.child,()=>({props:s(_)})),f(a,o)},P=a=>{var o=ae();yt(o,()=>({...s(_)}));var p=ft(o);S(p,()=>t.children??at),gt(o),f(a,o)};x(E,a=>{t.child?a(k):a(P,-1)})}f(n,C),it()}var de=st("<!> <!>",1),le=st("<!> <div><!></div>",1);function Ne(n,t){const e=pt();nt(t,!0);let i=d(t,"id",19,()=>mt(e)),m=d(t,"ref",15,null),b=d(t,"forceMount",3,!1),I=d(t,"onCloseAutoFocus",3,M),g=d(t,"onOpenAutoFocus",3,M),_=d(t,"onEscapeKeydown",3,M),C=d(t,"onInteractOutside",3,M),E=d(t,"trapFocus",3,!0),k=d(t,"preventScroll",3,!0),P=d(t,"restoreScrollDelay",3,null),a=bt(t,["$$slots","$$events","$$legacy","id","children","child","ref","forceMount","onCloseAutoFocus","onOpenAutoFocus","onEscapeKeydown","onInteractOutside","trapFocus","preventScroll","restoreScrollDelay"]);const o=wt.create({id:u(()=>i()),ref:u(()=>m(),A=>m(A))}),p=v(()=>D(a,o.props));var dt=N(),F=y(dt);{var w=A=>{te(A,{get ref(){return o.opts.ref},loop:!0,get trapFocus(){return E()},get enabled(){return o.root.opts.open.current},get onOpenAutoFocus(){return g()},get onCloseAutoFocus(){return I()},focusScope:(zt,Pt)=>{let Rt=()=>Pt==null?void 0:Pt().props;ee(zt,Ct(()=>s(p),{get enabled(){return o.root.opts.open.current},get ref(){return o.opts.ref},onEscapeKeydown:ct=>{_()(ct),!ct.defaultPrevented&&o.root.handleClose()},children:(ct,ce)=>{re(ct,Ct(()=>s(p),{get ref(){return o.opts.ref},get enabled(){return o.root.opts.open.current},onInteractOutside:ht=>{C()(ht),!ht.defaultPrevented&&o.root.handleClose()},children:(ht,he)=>{oe(ht,Ct(()=>s(p),{get ref(){return o.opts.ref},get enabled(){return o.root.opts.open.current},children:(Ut,ue)=>{var xt=N(),Wt=y(xt);{var qt=B=>{var T=de(),j=y(T);{var z=R=>{Tt(R,{get preventScroll(){return k()},get restoreScrollDelay(){return P()}})};x(j,R=>{o.root.opts.open.current&&R(z)})}var _t=Mt(j,2);{let R=v(()=>({props:D(s(p),Rt()),...o.snippetProps}));S(_t,()=>t.child,()=>s(R))}f(B,T)},Gt=B=>{var T=le(),j=y(T);Tt(j,{get preventScroll(){return k()}});var z=Mt(j,2);yt(z,R=>({...R}),[()=>D(s(p),Rt())]);var _t=ft(z);S(_t,()=>t.children??at),gt(z),f(B,T)};x(Wt,B=>{t.child?B(qt):B(Gt,-1)})}f(Ut,xt)},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{focusScope:!0}})};x(F,A=>{(o.shouldRender||b())&&A(w)})}f(n,dt),it()}export{Ce as D,_e as a,Ne as b,Pe as c,Oe as d};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as ae,h as M,a as ie,
|
|
1
|
+
import{b as ae,h as M,a as ie,k as W,r as le,m as ue,s as Z,c as q,e as B,g as L,C as se,n as oe,o as $,i as ve,p as V,q as w,v as U,w as de,x as te,y as ce,z as pe,A as G,B as ge,D as he,F as _e,G as j,I as Ee,J as me,K as ne,L as re,M as Y,N as Te,O as we,P as Ae,Q as Ce,R as Se,S as Ie,T as Ne,U as fe,V as xe}from"./BsQ08Wq_.js";function Oe(e,r){return r}function De(e,r,u){for(var s=[],c=r.length,l,i=r.length,p=0;p<c;p++){let E=r[p];re(E,()=>{if(l){if(l.pending.delete(E),l.done.add(E),l.pending.size===0){var v=e.outrogroups;y(e,G(l.done)),v.delete(l),v.size===0&&(e.outrogroups=null)}}else i-=1},!1)}if(i===0){var a=s.length===0&&u!==null;if(a){var t=u,f=t.parentNode;we(f),f.append(t),e.items.clear()}y(e,r,!a)}else l={pending:new Set(r),done:new Set},(e.outrogroups??(e.outrogroups=new Set)).add(l)}function y(e,r,u=!0){var s;if(e.pending.size>0){s=new Set;for(const i of e.pending.values())for(const p of i)s.add(e.items.get(p).e)}for(var c=0;c<r.length;c++){var l=r[c];if(s!=null&&s.has(l)){l.f|=w;const i=document.createDocumentFragment();Ae(l,i)}else Ce(r[c],u)}}var ee;function be(e,r,u,s,c,l=null){var i=e,p=new Map,a=(r&fe)!==0;if(a){var t=e;i=M?q(Se(t)):t.appendChild(V())}M&&ie();var f=null,E=ce(()=>{var d=u();return pe(d)?d:d==null?[]:G(d)}),v,m=new Map,T=!0;function x(d){(C.effect.f&me)===0&&(C.pending.delete(d),C.fallback=f,Re(C,v,i,r,s),f!==null&&(v.length===0?(f.f&w)===0?ne(f):(f.f^=w,b(f,null,i)):re(f,()=>{f=null})))}function n(d){C.pending.delete(d)}var o=ae(()=>{v=W(E);var d=v.length;let h=!1;if(M){var F=le(i)===ue;F!==(d===0)&&(i=Z(),q(i),B(!1),h=!0)}for(var S=new Set,g=ve,R=te(),I=0;I<d;I+=1){M&&L.nodeType===se&&L.data===oe&&(i=L,h=!0,B(!1));var k=v[I],D=s(k,I),_=T?null:p.get(D);_?(_.v&&$(_.v,k),_.i&&$(_.i,I),R&&g.unskip_effect(_.e)):(_=ke(p,T?i:ee??(ee=V()),k,D,I,c,r,u),T||(_.e.f|=w),p.set(D,_)),S.add(D)}if(d===0&&l&&!f&&(T?f=U(()=>l(i)):(f=U(()=>l(ee??(ee=V()))),f.f|=w)),d>S.size&&de(),M&&d>0&&q(Z()),!T)if(m.set(g,S),R){for(const[H,z]of p)S.has(H)||g.skip_effect(z.e);g.oncommit(x),g.ondiscard(n)}else x(g);h&&B(!0),W(E)}),C={effect:o,items:p,pending:m,outrogroups:null,fallback:f};T=!1,M&&(i=L)}function O(e){for(;e!==null&&(e.f&Te)===0;)e=e.next;return e}function Re(e,r,u,s,c){var k,D,_,H,z,J,K,P,Q;var l=(s&xe)!==0,i=r.length,p=e.items,a=O(e.effect.first),t,f=null,E,v=[],m=[],T,x,n,o;if(l)for(o=0;o<i;o+=1)T=r[o],x=c(T,o),n=p.get(x).e,(n.f&w)===0&&((D=(k=n.nodes)==null?void 0:k.a)==null||D.measure(),(E??(E=new Set)).add(n));for(o=0;o<i;o+=1){if(T=r[o],x=c(T,o),n=p.get(x).e,e.outrogroups!==null)for(const A of e.outrogroups)A.pending.delete(n),A.done.delete(n);if((n.f&w)!==0)if(n.f^=w,n===a)b(n,null,u);else{var C=f?f.next:a;n===e.effect.last&&(e.effect.last=n.prev),n.prev&&(n.prev.next=n.next),n.next&&(n.next.prev=n.prev),N(e,f,n),N(e,n,C),b(n,C,u),f=n,v=[],m=[],a=O(f.next);continue}if((n.f&Y)!==0&&(ne(n),l&&((H=(_=n.nodes)==null?void 0:_.a)==null||H.unfix(),(E??(E=new Set)).delete(n))),n!==a){if(t!==void 0&&t.has(n)){if(v.length<m.length){var d=m[0],h;f=d.prev;var F=v[0],S=v[v.length-1];for(h=0;h<v.length;h+=1)b(v[h],d,u);for(h=0;h<m.length;h+=1)t.delete(m[h]);N(e,F.prev,S.next),N(e,f,F),N(e,S,d),a=d,f=S,o-=1,v=[],m=[]}else t.delete(n),b(n,a,u),N(e,n.prev,n.next),N(e,n,f===null?e.effect.first:f.next),N(e,f,n),f=n;continue}for(v=[],m=[];a!==null&&a!==n;)(t??(t=new Set)).add(a),m.push(a),a=O(a.next);if(a===null)continue}(n.f&w)===0&&v.push(n),f=n,a=O(n.next)}if(e.outrogroups!==null){for(const A of e.outrogroups)A.pending.size===0&&(y(e,G(A.done)),(z=e.outrogroups)==null||z.delete(A));e.outrogroups.size===0&&(e.outrogroups=null)}if(a!==null||t!==void 0){var g=[];if(t!==void 0)for(n of t)(n.f&Y)===0&&g.push(n);for(;a!==null;)(a.f&Y)===0&&a!==e.fallback&&g.push(a),a=O(a.next);var R=g.length;if(R>0){var I=(s&fe)!==0&&i===0?u:null;if(l){for(o=0;o<R;o+=1)(K=(J=g[o].nodes)==null?void 0:J.a)==null||K.measure();for(o=0;o<R;o+=1)(Q=(P=g[o].nodes)==null?void 0:P.a)==null||Q.fix()}De(e,g,I)}}l&&Ie(()=>{var A,X;if(E!==void 0)for(n of E)(X=(A=n.nodes)==null?void 0:A.a)==null||X.apply()})}function ke(e,r,u,s,c,l,i,p){var a=(i&ge)!==0?(i&he)===0?_e(u,!1,!1):j(u):null,t=(i&Ee)!==0?j(c):null;return{v:a,i:t,e:U(()=>(l(r,a??u,t??c,p),()=>{e.delete(s)}))}}function b(e,r,u){if(e.nodes)for(var s=e.nodes.start,c=e.nodes.end,l=r&&(r.f&w)===0?r.nodes.start:u;s!==null;){var i=Ne(s);if(l.before(s),s===c)return;s=i}}function N(e,r,u){r===null?e.effect.first=u:r.next=u,u===null?e.effect.last=r:u.prev=r}export{be as e,Oe as i};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
var Vi=Object.defineProperty;var Jn=e=>{throw TypeError(e)};var Ki=(e,t,n)=>t in e?Vi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var N=(e,t,n)=>Ki(e,typeof t!="symbol"?t+"":t,n),wn=(e,t,n)=>t.has(e)||Jn("Cannot "+n);var a=(e,t,n)=>(wn(e,t,"read from private field"),n?n.call(e):t.get(e)),b=(e,t,n)=>t.has(e)?Jn("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),Y=(e,t,n,i)=>(wn(e,t,"write to private field"),i?i.call(e,n):t.set(e,n),n),Bt=(e,t,n)=>(wn(e,t,"access private method"),n);import{c as L,a as _,f as at,p as hn}from"./DIeahUKq.js";import{aA as O,k as d,an as tt,u as zi,b8 as V,a4 as Ge,a5 as A,at as Q,f as k,au as $,aj as et,am as Ui,aw as In,av as Et,ax as Tt}from"./BsQ08Wq_.js";import{t as pi,u as Yi,b as R,n as ft,m as gt,v as St,C as Xe,x as Xi,d as _t,y as mi,z as qi,A as ji,w as Pt,B as Zi,s as U,G as vi,l as Mn,H as kt,J as qt,E as Qn,S as yn,K as $n,L as wi,M as yi,N as bi,O as xi,o as Gi,a as Ji,e as Oi,g as Si,q as Qi,c as $i,Q as to,R as ti,F as eo,i as ei,h as no,D as io,T as oo,f as fn,I as ro}from"./pd_p3yYy.js";import{i as G}from"./rNwPv4DZ.js";import{f as ht}from"./WW6La7Nt.js";import{p as x,r as vt,s as It,l as so}from"./D8G961Hm.js";import{o as ao}from"./DptdhtA1.js";import{e as lo}from"./B553hBXT.js";import{b as co}from"./BnqaikL8.js";import{c as uo}from"./C9wTDiHH.js";import{f as ho,o as fo}from"./BK0ygNWX.js";import"./CEWi_rGa.js";import{s as go}from"./Cc7aBSsN.js";const po={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",transform:"translateX(-100%)"},mo=pi(po);function vo(e){return typeof e=="function"}function ni(e){return vo(e)?e():e}var bt,Wt,Lt,Vt,xt,nn,on,Kt;class wo{constructor(t,n={box:"border-box"}){b(this,bt,{width:0,height:0});b(this,Wt,!1);b(this,Lt);b(this,Vt);b(this,xt);b(this,nn,O(()=>{var t;return(t=d(a(this,Kt)))==null||t(),this.getSize().width}));b(this,on,O(()=>{var t;return(t=d(a(this,Kt)))==null||t(),this.getSize().height}));b(this,Kt,O(()=>{const t=ni(a(this,Vt));if(t)return ho(n=>{if(!a(this,xt))return;const i=new(a(this,xt)).ResizeObserver(o=>{Y(this,Wt,!0);for(const s of o){const r=a(this,Lt).box==="content-box"?s.contentBoxSize:s.borderBoxSize,l=Array.isArray(r)?r:[r];a(this,bt).width=l.reduce((u,f)=>Math.max(u,f.inlineSize),0),a(this,bt).height=l.reduce((u,f)=>Math.max(u,f.blockSize),0)}n()});return i.observe(t),()=>{Y(this,Wt,!1),i.disconnect()}})}));Y(this,xt,n.window??Yi),Y(this,Lt,n),Y(this,Vt,t),Y(this,bt,{width:0,height:0})}calculateSize(){const t=ni(a(this,Vt));if(!t||!a(this,xt))return;const n=t.offsetWidth,i=t.offsetHeight;if(a(this,Lt).box==="border-box")return{width:n,height:i};const o=a(this,xt).getComputedStyle(t),s=parseFloat(o.paddingLeft)+parseFloat(o.paddingRight),r=parseFloat(o.paddingTop)+parseFloat(o.paddingBottom),l=parseFloat(o.borderLeftWidth)+parseFloat(o.borderRightWidth),u=parseFloat(o.borderTopWidth)+parseFloat(o.borderBottomWidth),f=n-s-l,h=i-r-u;return{width:f,height:h}}getSize(){return a(this,Wt)?a(this,bt):this.calculateSize()??a(this,bt)}get current(){var t;return(t=d(a(this,Kt)))==null||t(),this.getSize()}get width(){return d(a(this,nn))}get height(){return d(a(this,on))}}bt=new WeakMap,Wt=new WeakMap,Lt=new WeakMap,Vt=new WeakMap,xt=new WeakMap,nn=new WeakMap,on=new WeakMap,Kt=new WeakMap;var Zt,rn;class yo{constructor(t,n){b(this,Zt,()=>{});b(this,rn,O(()=>a(this,Zt).call(this)));let i;n!==void 0&&(i=n),Y(this,Zt,()=>{try{return i}finally{i=t()}})}get current(){return d(a(this,rn))}}Zt=new WeakMap,rn=new WeakMap;function bo(e){tt(()=>zi(()=>e()))}function xo(e,t,n=!0){if(!(e.length===0||t<0||t>=e.length))return e.length===1&&t===0?e[0]:t===e.length-1?n?e[0]:void 0:e[t+1]}function Oo(e,t,n=!0){if(!(e.length===0||t<0||t>=e.length))return e.length===1&&t===0?e[0]:t===0?n?e[e.length-1]:void 0:e[t-1]}function So(e,t,n,i=!0){if(e.length===0||t<0||t>=e.length)return;let o=t+n;return i?o=(o%e.length+e.length)%e.length:o=Math.max(0,Math.min(o,e.length-1)),e[o]}function Po(e,t,n,i=!0){if(e.length===0||t<0||t>=e.length)return;let o=t-n;return i?o=(o%e.length+e.length)%e.length:o=Math.max(0,Math.min(o,e.length-1)),e[o]}function Bn(e,t,n){const i=t.toLowerCase();if(i.endsWith(" ")){const c=i.slice(0,-1);if(e.filter(w=>w.toLowerCase().startsWith(c)).length<=1)return Bn(e,c,n);const g=n==null?void 0:n.toLowerCase();if(g&&g.startsWith(c)&&g.charAt(c.length)===" "&&t.trim()===c)return n;const m=e.filter(w=>w.toLowerCase().startsWith(i));if(m.length>0){const w=n?e.indexOf(n):-1;return ii(m,Math.max(w,0)).find(C=>C!==n)||n}}const s=t.length>1&&Array.from(t).every(c=>c===t[0])?t[0]:t,r=s.toLowerCase(),l=n?e.indexOf(n):-1;let u=ii(e,Math.max(l,0));s.length===1&&(u=u.filter(c=>c!==n));const h=u.find(c=>c==null?void 0:c.toLowerCase().startsWith(r));return h!==n?h:void 0}function ii(e,t){return e.map((n,i)=>e[(t+i)%e.length])}const Co={afterMs:1e4,onChange:ft};function Pi(e,t){const{afterMs:n,onChange:i,getWindow:o}={...Co,...t};let s=null,r=V(Ge(e));function l(){return o().setTimeout(()=>{A(r,e,!0),i==null||i(e)},n)}return tt(()=>()=>{s&&o().clearTimeout(s)}),R(()=>d(r),u=>{A(r,u,!0),i==null||i(u),s&&o().clearTimeout(s),s=l()})}var ct,ut,sn,an;class Ao{constructor(t){b(this,ct);b(this,ut);b(this,sn,O(()=>a(this,ct).onMatch?a(this,ct).onMatch:t=>t.focus()));b(this,an,O(()=>a(this,ct).getCurrentItem?a(this,ct).getCurrentItem:a(this,ct).getActiveElement));Y(this,ct,t),Y(this,ut,Pi("",{afterMs:1e3,getWindow:t.getWindow})),this.handleTypeaheadSearch=this.handleTypeaheadSearch.bind(this),this.resetTypeahead=this.resetTypeahead.bind(this)}handleTypeaheadSearch(t,n){var u,f;if(!n.length)return;a(this,ut).current=a(this,ut).current+t;const i=d(a(this,an))(),o=((f=(u=n.find(h=>h===i))==null?void 0:u.textContent)==null?void 0:f.trim())??"",s=n.map(h=>{var c;return((c=h.textContent)==null?void 0:c.trim())??""}),r=Bn(s,a(this,ut).current,o),l=n.find(h=>{var c;return((c=h.textContent)==null?void 0:c.trim())===r});return l&&d(a(this,sn))(l),l}resetTypeahead(){a(this,ut).current=""}get search(){return a(this,ut).current}}ct=new WeakMap,ut=new WeakMap,sn=new WeakMap,an=new WeakMap;var Ro=at("<input/>"),No=at("<input/>");function Eo(e,t){Q(t,!0);let n=x(t,"value",15),i=vt(t,["$$slots","$$events","$$legacy","value"]);const o=O(()=>gt(i,{"aria-hidden":"true",tabindex:-1,style:mo}));var s=L(),r=k(s);{var l=f=>{var h=Ro();ht(h,()=>({...d(o),value:n()}),void 0,void 0,void 0,void 0,!0),_(f,h)},u=f=>{var h=No();ht(h,()=>({...d(o)}),void 0,void 0,void 0,void 0,!0),co(h,n),_(f,h)};G(r,f=>{d(o).type==="checkbox"?f(l):f(u,-1)})}_(e,s),$()}const To=["top","right","bottom","left"],Ct=Math.min,Z=Math.max,Je=Math.round,Ze=Math.floor,rt=e=>({x:e,y:e}),Do={left:"right",right:"left",bottom:"top",top:"bottom"};function Sn(e,t,n){return Z(e,Ct(t,n))}function pt(e,t){return typeof e=="function"?e(t):e}function mt(e){return e.split("-")[0]}function Yt(e){return e.split("-")[1]}function kn(e){return e==="x"?"y":"x"}function Hn(e){return e==="y"?"height":"width"}function ot(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function Wn(e){return kn(ot(e))}function Fo(e,t,n){n===void 0&&(n=!1);const i=Yt(e),o=Wn(e),s=Hn(o);let r=o==="x"?i===(n?"end":"start")?"right":"left":i==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(r=Qe(r)),[r,Qe(r)]}function _o(e){const t=Qe(e);return[Pn(e),t,Pn(t)]}function Pn(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const oi=["left","right"],ri=["right","left"],Io=["top","bottom"],Mo=["bottom","top"];function Bo(e,t,n){switch(e){case"top":case"bottom":return n?t?ri:oi:t?oi:ri;case"left":case"right":return t?Io:Mo;default:return[]}}function ko(e,t,n,i){const o=Yt(e);let s=Bo(mt(e),n==="start",i);return o&&(s=s.map(r=>r+"-"+o),t&&(s=s.concat(s.map(Pn)))),s}function Qe(e){const t=mt(e);return Do[t]+e.slice(t.length)}function Ho(e){return{top:0,right:0,bottom:0,left:0,...e}}function Ci(e){return typeof e!="number"?Ho(e):{top:e,right:e,bottom:e,left:e}}function $e(e){const{x:t,y:n,width:i,height:o}=e;return{width:i,height:o,top:n,left:t,right:t+i,bottom:n+o,x:t,y:n}}function si(e,t,n){let{reference:i,floating:o}=e;const s=ot(t),r=Wn(t),l=Hn(r),u=mt(t),f=s==="y",h=i.x+i.width/2-o.width/2,c=i.y+i.height/2-o.height/2,p=i[l]/2-o[l]/2;let g;switch(u){case"top":g={x:h,y:i.y-o.height};break;case"bottom":g={x:h,y:i.y+i.height};break;case"right":g={x:i.x+i.width,y:c};break;case"left":g={x:i.x-o.width,y:c};break;default:g={x:i.x,y:i.y}}switch(Yt(t)){case"start":g[r]-=p*(n&&f?-1:1);break;case"end":g[r]+=p*(n&&f?-1:1);break}return g}async function Wo(e,t){var n;t===void 0&&(t={});const{x:i,y:o,platform:s,rects:r,elements:l,strategy:u}=e,{boundary:f="clippingAncestors",rootBoundary:h="viewport",elementContext:c="floating",altBoundary:p=!1,padding:g=0}=pt(t,e),m=Ci(g),S=l[p?c==="floating"?"reference":"floating":c],v=$e(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(S)))==null||n?S:S.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(l.floating)),boundary:f,rootBoundary:h,strategy:u})),C=c==="floating"?{x:i,y:o,width:r.floating.width,height:r.floating.height}:r.reference,P=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l.floating)),y=await(s.isElement==null?void 0:s.isElement(P))?await(s.getScale==null?void 0:s.getScale(P))||{x:1,y:1}:{x:1,y:1},T=$e(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:C,offsetParent:P,strategy:u}):C);return{top:(v.top-T.top+m.top)/y.y,bottom:(T.bottom-v.bottom+m.bottom)/y.y,left:(v.left-T.left+m.left)/y.x,right:(T.right-v.right+m.right)/y.x}}const Lo=50,Vo=async(e,t,n)=>{const{placement:i="bottom",strategy:o="absolute",middleware:s=[],platform:r}=n,l=r.detectOverflow?r:{...r,detectOverflow:Wo},u=await(r.isRTL==null?void 0:r.isRTL(t));let f=await r.getElementRects({reference:e,floating:t,strategy:o}),{x:h,y:c}=si(f,i,u),p=i,g=0;const m={};for(let w=0;w<s.length;w++){const S=s[w];if(!S)continue;const{name:v,fn:C}=S,{x:P,y,data:T,reset:D}=await C({x:h,y:c,initialPlacement:i,placement:p,strategy:o,middlewareData:m,rects:f,platform:l,elements:{reference:e,floating:t}});h=P??h,c=y??c,m[v]={...m[v],...T},D&&g<Lo&&(g++,typeof D=="object"&&(D.placement&&(p=D.placement),D.rects&&(f=D.rects===!0?await r.getElementRects({reference:e,floating:t,strategy:o}):D.rects),{x:h,y:c}=si(f,p,u)),w=-1)}return{x:h,y:c,placement:p,strategy:o,middlewareData:m}},Ko=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:i,placement:o,rects:s,platform:r,elements:l,middlewareData:u}=t,{element:f,padding:h=0}=pt(e,t)||{};if(f==null)return{};const c=Ci(h),p={x:n,y:i},g=Wn(o),m=Hn(g),w=await r.getDimensions(f),S=g==="y",v=S?"top":"left",C=S?"bottom":"right",P=S?"clientHeight":"clientWidth",y=s.reference[m]+s.reference[g]-p[g]-s.floating[m],T=p[g]-s.reference[g],D=await(r.getOffsetParent==null?void 0:r.getOffsetParent(f));let E=D?D[P]:0;(!E||!await(r.isElement==null?void 0:r.isElement(D)))&&(E=l.floating[P]||s.floating[m]);const W=y/2-T/2,I=E/2-w[m]/2-1,H=Ct(c[v],I),z=Ct(c[C],I),F=H,B=E-w[m]-z,M=E/2-w[m]/2+W,K=Sn(F,M,B),X=!u.arrow&&Yt(o)!=null&&M!==K&&s.reference[m]/2-(M<F?H:z)-w[m]/2<0,q=X?M<F?M-F:M-B:0;return{[g]:p[g]+q,data:{[g]:K,centerOffset:M-K-q,...X&&{alignmentOffset:q}},reset:X}}}),zo=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,i;const{placement:o,middlewareData:s,rects:r,initialPlacement:l,platform:u,elements:f}=t,{mainAxis:h=!0,crossAxis:c=!0,fallbackPlacements:p,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:w=!0,...S}=pt(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const v=mt(o),C=ot(l),P=mt(l)===l,y=await(u.isRTL==null?void 0:u.isRTL(f.floating)),T=p||(P||!w?[Qe(l)]:_o(l)),D=m!=="none";!p&&D&&T.push(...ko(l,w,m,y));const E=[l,...T],W=await u.detectOverflow(t,S),I=[];let H=((i=s.flip)==null?void 0:i.overflows)||[];if(h&&I.push(W[v]),c){const M=Fo(o,r,y);I.push(W[M[0]],W[M[1]])}if(H=[...H,{placement:o,overflows:I}],!I.every(M=>M<=0)){var z,F;const M=(((z=s.flip)==null?void 0:z.index)||0)+1,K=E[M];if(K&&(!(c==="alignment"?C!==ot(K):!1)||H.every(j=>ot(j.placement)===C?j.overflows[0]>0:!0)))return{data:{index:M,overflows:H},reset:{placement:K}};let X=(F=H.filter(q=>q.overflows[0]<=0).sort((q,j)=>q.overflows[1]-j.overflows[1])[0])==null?void 0:F.placement;if(!X)switch(g){case"bestFit":{var B;const q=(B=H.filter(j=>{if(D){const yt=ot(j.placement);return yt===C||yt==="y"}return!0}).map(j=>[j.placement,j.overflows.filter(yt=>yt>0).reduce((yt,Li)=>yt+Li,0)]).sort((j,yt)=>j[1]-yt[1])[0])==null?void 0:B[0];q&&(X=q);break}case"initialPlacement":X=l;break}if(o!==X)return{reset:{placement:X}}}return{}}}};function ai(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function li(e){return To.some(t=>e[t]>=0)}const Uo=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:i}=t,{strategy:o="referenceHidden",...s}=pt(e,t);switch(o){case"referenceHidden":{const r=await i.detectOverflow(t,{...s,elementContext:"reference"}),l=ai(r,n.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:li(l)}}}case"escaped":{const r=await i.detectOverflow(t,{...s,altBoundary:!0}),l=ai(r,n.floating);return{data:{escapedOffsets:l,escaped:li(l)}}}default:return{}}}}},Ai=new Set(["left","top"]);async function Yo(e,t){const{placement:n,platform:i,elements:o}=e,s=await(i.isRTL==null?void 0:i.isRTL(o.floating)),r=mt(n),l=Yt(n),u=ot(n)==="y",f=Ai.has(r)?-1:1,h=s&&u?-1:1,c=pt(t,e);let{mainAxis:p,crossAxis:g,alignmentAxis:m}=typeof c=="number"?{mainAxis:c,crossAxis:0,alignmentAxis:null}:{mainAxis:c.mainAxis||0,crossAxis:c.crossAxis||0,alignmentAxis:c.alignmentAxis};return l&&typeof m=="number"&&(g=l==="end"?m*-1:m),u?{x:g*h,y:p*f}:{x:p*f,y:g*h}}const Xo=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,i;const{x:o,y:s,placement:r,middlewareData:l}=t,u=await Yo(t,e);return r===((n=l.offset)==null?void 0:n.placement)&&(i=l.arrow)!=null&&i.alignmentOffset?{}:{x:o+u.x,y:s+u.y,data:{...u,placement:r}}}}},qo=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:i,placement:o,platform:s}=t,{mainAxis:r=!0,crossAxis:l=!1,limiter:u={fn:v=>{let{x:C,y:P}=v;return{x:C,y:P}}},...f}=pt(e,t),h={x:n,y:i},c=await s.detectOverflow(t,f),p=ot(mt(o)),g=kn(p);let m=h[g],w=h[p];if(r){const v=g==="y"?"top":"left",C=g==="y"?"bottom":"right",P=m+c[v],y=m-c[C];m=Sn(P,m,y)}if(l){const v=p==="y"?"top":"left",C=p==="y"?"bottom":"right",P=w+c[v],y=w-c[C];w=Sn(P,w,y)}const S=u.fn({...t,[g]:m,[p]:w});return{...S,data:{x:S.x-n,y:S.y-i,enabled:{[g]:r,[p]:l}}}}}},jo=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:i,placement:o,rects:s,middlewareData:r}=t,{offset:l=0,mainAxis:u=!0,crossAxis:f=!0}=pt(e,t),h={x:n,y:i},c=ot(o),p=kn(c);let g=h[p],m=h[c];const w=pt(l,t),S=typeof w=="number"?{mainAxis:w,crossAxis:0}:{mainAxis:0,crossAxis:0,...w};if(u){const P=p==="y"?"height":"width",y=s.reference[p]-s.floating[P]+S.mainAxis,T=s.reference[p]+s.reference[P]-S.mainAxis;g<y?g=y:g>T&&(g=T)}if(f){var v,C;const P=p==="y"?"width":"height",y=Ai.has(mt(o)),T=s.reference[c]-s.floating[P]+(y&&((v=r.offset)==null?void 0:v[c])||0)+(y?0:S.crossAxis),D=s.reference[c]+s.reference[P]+(y?0:((C=r.offset)==null?void 0:C[c])||0)-(y?S.crossAxis:0);m<T?m=T:m>D&&(m=D)}return{[p]:g,[c]:m}}}},Zo=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,i;const{placement:o,rects:s,platform:r,elements:l}=t,{apply:u=()=>{},...f}=pt(e,t),h=await r.detectOverflow(t,f),c=mt(o),p=Yt(o),g=ot(o)==="y",{width:m,height:w}=s.floating;let S,v;c==="top"||c==="bottom"?(S=c,v=p===(await(r.isRTL==null?void 0:r.isRTL(l.floating))?"start":"end")?"left":"right"):(v=c,S=p==="end"?"top":"bottom");const C=w-h.top-h.bottom,P=m-h.left-h.right,y=Ct(w-h[S],C),T=Ct(m-h[v],P),D=!t.middlewareData.shift;let E=y,W=T;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(W=P),(i=t.middlewareData.shift)!=null&&i.enabled.y&&(E=C),D&&!p){const H=Z(h.left,0),z=Z(h.right,0),F=Z(h.top,0),B=Z(h.bottom,0);g?W=m-2*(H!==0||z!==0?H+z:Z(h.left,h.right)):E=w-2*(F!==0||B!==0?F+B:Z(h.top,h.bottom))}await u({...t,availableWidth:W,availableHeight:E});const I=await r.getDimensions(l.floating);return m!==I.width||w!==I.height?{reset:{rects:!0}}:{}}}};function gn(){return typeof window<"u"}function Xt(e){return Ri(e)?(e.nodeName||"").toLowerCase():"#document"}function J(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function lt(e){var t;return(t=(Ri(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ri(e){return gn()?e instanceof Node||e instanceof J(e).Node:!1}function nt(e){return gn()?e instanceof Element||e instanceof J(e).Element:!1}function wt(e){return gn()?e instanceof HTMLElement||e instanceof J(e).HTMLElement:!1}function ci(e){return!gn()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof J(e).ShadowRoot}function qe(e){const{overflow:t,overflowX:n,overflowY:i,display:o}=it(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+n)&&o!=="inline"&&o!=="contents"}function Go(e){return/^(table|td|th)$/.test(Xt(e))}function pn(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const Jo=/transform|translate|scale|rotate|perspective|filter/,Qo=/paint|layout|strict|content/,Rt=e=>!!e&&e!=="none";let bn;function Ln(e){const t=nt(e)?it(e):e;return Rt(t.transform)||Rt(t.translate)||Rt(t.scale)||Rt(t.rotate)||Rt(t.perspective)||!Vn()&&(Rt(t.backdropFilter)||Rt(t.filter))||Jo.test(t.willChange||"")||Qo.test(t.contain||"")}function $o(e){let t=At(e);for(;wt(t)&&!Ut(t);){if(Ln(t))return t;if(pn(t))return null;t=At(t)}return null}function Vn(){return bn==null&&(bn=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),bn}function Ut(e){return/^(html|body|#document)$/.test(Xt(e))}function it(e){return J(e).getComputedStyle(e)}function mn(e){return nt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function At(e){if(Xt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||ci(e)&&e.host||lt(e);return ci(t)?t.host:t}function Ni(e){const t=At(e);return Ut(t)?e.ownerDocument?e.ownerDocument.body:e.body:wt(t)&&qe(t)?t:Ni(t)}function jt(e,t,n){var i;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Ni(e),s=o===((i=e.ownerDocument)==null?void 0:i.body),r=J(o);if(s){const l=Cn(r);return t.concat(r,r.visualViewport||[],qe(o)?o:[],l&&n?jt(l):[])}else return t.concat(o,jt(o,[],n))}function Cn(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Ei(e){const t=it(e);let n=parseFloat(t.width)||0,i=parseFloat(t.height)||0;const o=wt(e),s=o?e.offsetWidth:n,r=o?e.offsetHeight:i,l=Je(n)!==s||Je(i)!==r;return l&&(n=s,i=r),{width:n,height:i,$:l}}function Kn(e){return nt(e)?e:e.contextElement}function Ht(e){const t=Kn(e);if(!wt(t))return rt(1);const n=t.getBoundingClientRect(),{width:i,height:o,$:s}=Ei(t);let r=(s?Je(n.width):n.width)/i,l=(s?Je(n.height):n.height)/o;return(!r||!Number.isFinite(r))&&(r=1),(!l||!Number.isFinite(l))&&(l=1),{x:r,y:l}}const tr=rt(0);function Ti(e){const t=J(e);return!Vn()||!t.visualViewport?tr:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function er(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==J(e)?!1:t}function Mt(e,t,n,i){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=Kn(e);let r=rt(1);t&&(i?nt(i)&&(r=Ht(i)):r=Ht(e));const l=er(s,n,i)?Ti(s):rt(0);let u=(o.left+l.x)/r.x,f=(o.top+l.y)/r.y,h=o.width/r.x,c=o.height/r.y;if(s){const p=J(s),g=i&&nt(i)?J(i):i;let m=p,w=Cn(m);for(;w&&i&&g!==m;){const S=Ht(w),v=w.getBoundingClientRect(),C=it(w),P=v.left+(w.clientLeft+parseFloat(C.paddingLeft))*S.x,y=v.top+(w.clientTop+parseFloat(C.paddingTop))*S.y;u*=S.x,f*=S.y,h*=S.x,c*=S.y,u+=P,f+=y,m=J(w),w=Cn(m)}}return $e({width:h,height:c,x:u,y:f})}function vn(e,t){const n=mn(e).scrollLeft;return t?t.left+n:Mt(lt(e)).left+n}function Di(e,t){const n=e.getBoundingClientRect(),i=n.left+t.scrollLeft-vn(e,n),o=n.top+t.scrollTop;return{x:i,y:o}}function nr(e){let{elements:t,rect:n,offsetParent:i,strategy:o}=e;const s=o==="fixed",r=lt(i),l=t?pn(t.floating):!1;if(i===r||l&&s)return n;let u={scrollLeft:0,scrollTop:0},f=rt(1);const h=rt(0),c=wt(i);if((c||!c&&!s)&&((Xt(i)!=="body"||qe(r))&&(u=mn(i)),c)){const g=Mt(i);f=Ht(i),h.x=g.x+i.clientLeft,h.y=g.y+i.clientTop}const p=r&&!c&&!s?Di(r,u):rt(0);return{width:n.width*f.x,height:n.height*f.y,x:n.x*f.x-u.scrollLeft*f.x+h.x+p.x,y:n.y*f.y-u.scrollTop*f.y+h.y+p.y}}function ir(e){return Array.from(e.getClientRects())}function or(e){const t=lt(e),n=mn(e),i=e.ownerDocument.body,o=Z(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),s=Z(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight);let r=-n.scrollLeft+vn(e);const l=-n.scrollTop;return it(i).direction==="rtl"&&(r+=Z(t.clientWidth,i.clientWidth)-o),{width:o,height:s,x:r,y:l}}const ui=25;function rr(e,t){const n=J(e),i=lt(e),o=n.visualViewport;let s=i.clientWidth,r=i.clientHeight,l=0,u=0;if(o){s=o.width,r=o.height;const h=Vn();(!h||h&&t==="fixed")&&(l=o.offsetLeft,u=o.offsetTop)}const f=vn(i);if(f<=0){const h=i.ownerDocument,c=h.body,p=getComputedStyle(c),g=h.compatMode==="CSS1Compat"&&parseFloat(p.marginLeft)+parseFloat(p.marginRight)||0,m=Math.abs(i.clientWidth-c.clientWidth-g);m<=ui&&(s-=m)}else f<=ui&&(s+=f);return{width:s,height:r,x:l,y:u}}function sr(e,t){const n=Mt(e,!0,t==="fixed"),i=n.top+e.clientTop,o=n.left+e.clientLeft,s=wt(e)?Ht(e):rt(1),r=e.clientWidth*s.x,l=e.clientHeight*s.y,u=o*s.x,f=i*s.y;return{width:r,height:l,x:u,y:f}}function di(e,t,n){let i;if(t==="viewport")i=rr(e,n);else if(t==="document")i=or(lt(e));else if(nt(t))i=sr(t,n);else{const o=Ti(e);i={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return $e(i)}function Fi(e,t){const n=At(e);return n===t||!nt(n)||Ut(n)?!1:it(n).position==="fixed"||Fi(n,t)}function ar(e,t){const n=t.get(e);if(n)return n;let i=jt(e,[],!1).filter(l=>nt(l)&&Xt(l)!=="body"),o=null;const s=it(e).position==="fixed";let r=s?At(e):e;for(;nt(r)&&!Ut(r);){const l=it(r),u=Ln(r);!u&&l.position==="fixed"&&(o=null),(s?!u&&!o:!u&&l.position==="static"&&!!o&&(o.position==="absolute"||o.position==="fixed")||qe(r)&&!u&&Fi(e,r))?i=i.filter(h=>h!==r):o=l,r=At(r)}return t.set(e,i),i}function lr(e){let{element:t,boundary:n,rootBoundary:i,strategy:o}=e;const r=[...n==="clippingAncestors"?pn(t)?[]:ar(t,this._c):[].concat(n),i],l=di(t,r[0],o);let u=l.top,f=l.right,h=l.bottom,c=l.left;for(let p=1;p<r.length;p++){const g=di(t,r[p],o);u=Z(g.top,u),f=Ct(g.right,f),h=Ct(g.bottom,h),c=Z(g.left,c)}return{width:f-c,height:h-u,x:c,y:u}}function cr(e){const{width:t,height:n}=Ei(e);return{width:t,height:n}}function ur(e,t,n){const i=wt(t),o=lt(t),s=n==="fixed",r=Mt(e,!0,s,t);let l={scrollLeft:0,scrollTop:0};const u=rt(0);function f(){u.x=vn(o)}if(i||!i&&!s)if((Xt(t)!=="body"||qe(o))&&(l=mn(t)),i){const g=Mt(t,!0,s,t);u.x=g.x+t.clientLeft,u.y=g.y+t.clientTop}else o&&f();s&&!i&&o&&f();const h=o&&!i&&!s?Di(o,l):rt(0),c=r.left+l.scrollLeft-u.x-h.x,p=r.top+l.scrollTop-u.y-h.y;return{x:c,y:p,width:r.width,height:r.height}}function xn(e){return it(e).position==="static"}function hi(e,t){if(!wt(e)||it(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return lt(e)===n&&(n=n.ownerDocument.body),n}function _i(e,t){const n=J(e);if(pn(e))return n;if(!wt(e)){let o=At(e);for(;o&&!Ut(o);){if(nt(o)&&!xn(o))return o;o=At(o)}return n}let i=hi(e,t);for(;i&&Go(i)&&xn(i);)i=hi(i,t);return i&&Ut(i)&&xn(i)&&!Ln(i)?n:i||$o(e)||n}const dr=async function(e){const t=this.getOffsetParent||_i,n=this.getDimensions,i=await n(e.floating);return{reference:ur(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function hr(e){return it(e).direction==="rtl"}const fr={convertOffsetParentRelativeRectToViewportRelativeRect:nr,getDocumentElement:lt,getClippingRect:lr,getOffsetParent:_i,getElementRects:dr,getClientRects:ir,getDimensions:cr,getScale:Ht,isElement:nt,isRTL:hr};function Ii(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function gr(e,t){let n=null,i;const o=lt(e);function s(){var l;clearTimeout(i),(l=n)==null||l.disconnect(),n=null}function r(l,u){l===void 0&&(l=!1),u===void 0&&(u=1),s();const f=e.getBoundingClientRect(),{left:h,top:c,width:p,height:g}=f;if(l||t(),!p||!g)return;const m=Ze(c),w=Ze(o.clientWidth-(h+p)),S=Ze(o.clientHeight-(c+g)),v=Ze(h),P={rootMargin:-m+"px "+-w+"px "+-S+"px "+-v+"px",threshold:Z(0,Ct(1,u))||1};let y=!0;function T(D){const E=D[0].intersectionRatio;if(E!==u){if(!y)return r();E?r(!1,E):i=setTimeout(()=>{r(!1,1e-7)},1e3)}E===1&&!Ii(f,e.getBoundingClientRect())&&r(),y=!1}try{n=new IntersectionObserver(T,{...P,root:o.ownerDocument})}catch{n=new IntersectionObserver(T,P)}n.observe(e)}return r(!0),s}function pr(e,t,n,i){i===void 0&&(i={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:r=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:u=!1}=i,f=Kn(e),h=o||s?[...f?jt(f):[],...t?jt(t):[]]:[];h.forEach(v=>{o&&v.addEventListener("scroll",n,{passive:!0}),s&&v.addEventListener("resize",n)});const c=f&&l?gr(f,n):null;let p=-1,g=null;r&&(g=new ResizeObserver(v=>{let[C]=v;C&&C.target===f&&g&&t&&(g.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var P;(P=g)==null||P.observe(t)})),n()}),f&&!u&&g.observe(f),t&&g.observe(t));let m,w=u?Mt(e):null;u&&S();function S(){const v=Mt(e);w&&!Ii(w,v)&&n(),w=v,m=requestAnimationFrame(S)}return n(),()=>{var v;h.forEach(C=>{o&&C.removeEventListener("scroll",n),s&&C.removeEventListener("resize",n)}),c==null||c(),(v=g)==null||v.disconnect(),g=null,u&&cancelAnimationFrame(m)}}const mr=Xo,vr=qo,wr=zo,yr=Zo,br=Uo,xr=Ko,Or=jo,Sr=(e,t,n)=>{const i=new Map,o={platform:fr,...n},s={...o.platform,_c:i};return Vo(e,t,{...o,platform:s})};function Nt(e){return typeof e=="function"?e():e}function Mi(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function fi(e,t){const n=Mi(e);return Math.round(t*n)/n}function Pr(e){return{[`--bits-${e}-content-transform-origin`]:"var(--bits-floating-transform-origin)",[`--bits-${e}-content-available-width`]:"var(--bits-floating-available-width)",[`--bits-${e}-content-available-height`]:"var(--bits-floating-available-height)",[`--bits-${e}-anchor-width`]:"var(--bits-floating-anchor-width)",[`--bits-${e}-anchor-height`]:"var(--bits-floating-anchor-height)"}}function Cr(e){const t=e.whileElementsMounted,n=O(()=>Nt(e.open)??!0),i=O(()=>Nt(e.middleware)),o=O(()=>Nt(e.transform)??!0),s=O(()=>Nt(e.placement)??"bottom"),r=O(()=>Nt(e.strategy)??"absolute"),l=O(()=>Nt(e.sideOffset)??0),u=O(()=>Nt(e.alignOffset)??0),f=e.reference;let h=V(0),c=V(0);const p=St(null);let g=V(Ge(d(r))),m=V(Ge(d(s))),w=V(Ge({})),S=V(!1),v=!1;const C=O(()=>{const I=p.current?fi(p.current,d(h)):d(h),H=p.current?fi(p.current,d(c)):d(c);return d(o)?{position:d(g),left:"0",top:"0",transform:`translate(${I}px, ${H}px)`,...p.current&&Mi(p.current)>=1.5&&{willChange:"transform"}}:{position:d(g),left:`${I}px`,top:`${H}px`}});let P;function y(){f.current===null||p.current===null||Sr(f.current,p.current,{middleware:d(i),placement:d(s),strategy:d(r)}).then(I=>{const H=f.current;if(Ar(H)){A(w,{...d(w),hide:{...d(w).hide,referenceHidden:!0}},!0);return}if(!d(n)&&d(h)!==0&&d(c)!==0){const F=Math.max(Math.abs(d(l)),Math.abs(d(u)),15);if(I.x<=F&&I.y<=F)return}A(h,I.x,!0),A(c,I.y,!0),A(g,I.strategy,!0),A(m,I.placement,!0),A(w,I.middlewareData,!0),A(S,!0)})}function T(){typeof P=="function"&&(P(),P=void 0)}function D(){if(T(),t===void 0){y();return}d(n)&&(f.current===null||p.current===null||(P=t(f.current,p.current,y)))}function E(){!d(n)&&p.current===null&&A(S,!1)}function W(){return[d(i),d(s),d(r),d(l),d(u),d(n)]}return tt(()=>{t===void 0&&d(n)&&y()}),tt(D),tt(()=>{if(t!==void 0){if(W(),!d(n)){v=!1;return}if(!d(S)){v=!1;return}if(!v){v=!0;return}y()}}),tt(E),tt(()=>T),{floating:p,reference:f,get strategy(){return d(g)},get placement(){return d(m)},get middlewareData(){return d(w)},get isPositioned(){return d(S)},get floatingStyles(){return d(C)},get update(){return y}}}function Ar(e){return e instanceof Element?!e.isConnected||e instanceof HTMLElement&&e.hidden?!0:e.getClientRects().length===0:!1}const Rr={top:"bottom",right:"left",bottom:"top",left:"right"},zn=new Xe("Floating.Root"),gi=new Xe("Floating.Content"),Un=new Xe("Floating.Root");class tn{constructor(){N(this,"anchorNode",St(null));N(this,"customAnchorNode",St(null));N(this,"triggerNode",St(null));tt(()=>{this.customAnchorNode.current?typeof this.customAnchorNode.current=="string"?this.anchorNode.current=document.querySelector(this.customAnchorNode.current):this.anchorNode.current=this.customAnchorNode.current:this.anchorNode.current=this.triggerNode.current})}static create(t=!1){return t?Un.set(new tn):zn.set(new tn)}}var Gt,Jt,Qt,ln,$t,cn,te,ee,ne,ie,oe,re,se,ae,le,ce,ue,de,he,fe,ge,pe,me,ve;const un=class un{constructor(t,n){N(this,"opts");N(this,"root");N(this,"contentRef",St(null));N(this,"wrapperRef",St(null));N(this,"arrowRef",St(null));N(this,"contentAttachment",_t(this.contentRef));N(this,"wrapperAttachment",_t(this.wrapperRef));N(this,"arrowAttachment",_t(this.arrowRef));N(this,"arrowId",St(mi()));b(this,Gt,O(()=>{if(typeof this.opts.style=="string")return qi(this.opts.style);if(!this.opts.style)return{}}));b(this,Jt);b(this,Qt,new wo(()=>this.arrowRef.current??void 0));b(this,ln,O(()=>{var t;return((t=a(this,Qt))==null?void 0:t.width)??0}));b(this,$t,O(()=>{var t;return((t=a(this,Qt))==null?void 0:t.height)??0}));b(this,cn,O(()=>{var t;return((t=this.opts.side)==null?void 0:t.current)+(this.opts.align.current!=="center"?`-${this.opts.align.current}`:"")}));b(this,te,O(()=>Array.isArray(this.opts.collisionBoundary.current)?this.opts.collisionBoundary.current:[this.opts.collisionBoundary.current]));b(this,ee,O(()=>d(a(this,te)).length>0));b(this,ne,O(()=>({padding:this.opts.collisionPadding.current,boundary:d(a(this,te)).filter(ji),altBoundary:this.hasExplicitBoundaries})));b(this,ie,V(void 0));b(this,oe,V(void 0));b(this,re,V(void 0));b(this,se,V(void 0));b(this,ae,O(()=>[mr({mainAxis:this.opts.sideOffset.current+d(a(this,$t)),alignmentAxis:this.opts.alignOffset.current}),this.opts.avoidCollisions.current&&vr({mainAxis:!0,crossAxis:!1,limiter:this.opts.sticky.current==="partial"?Or():void 0,...this.detectOverflowOptions}),this.opts.avoidCollisions.current&&wr({...this.detectOverflowOptions}),yr({...this.detectOverflowOptions,apply:({rects:t,availableWidth:n,availableHeight:i})=>{const{width:o,height:s}=t.reference;A(a(this,ie),n,!0),A(a(this,oe),i,!0),A(a(this,re),o,!0),A(a(this,se),s,!0)}}),this.arrowRef.current&&xr({element:this.arrowRef.current,padding:this.opts.arrowPadding.current}),Nr({arrowWidth:d(a(this,ln)),arrowHeight:d(a(this,$t))}),this.opts.hideWhenDetached.current&&br({strategy:"referenceHidden",...this.detectOverflowOptions})].filter(Boolean)));N(this,"floating");b(this,le,O(()=>Er(this.floating.placement)));b(this,ce,O(()=>Tr(this.floating.placement)));b(this,ue,O(()=>{var t;return((t=this.floating.middlewareData.arrow)==null?void 0:t.x)??0}));b(this,de,O(()=>{var t;return((t=this.floating.middlewareData.arrow)==null?void 0:t.y)??0}));b(this,he,O(()=>{var t;return((t=this.floating.middlewareData.arrow)==null?void 0:t.centerOffset)!==0}));b(this,fe,V());b(this,ge,O(()=>Rr[this.placedSide]));b(this,pe,O(()=>{var t,n,i;return{id:this.opts.wrapperId.current,"data-bits-floating-content-wrapper":"",style:{...this.floating.floatingStyles,transform:this.floating.isPositioned?this.floating.floatingStyles.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:this.contentZIndex,"--bits-floating-transform-origin":`${(t=this.floating.middlewareData.transformOrigin)==null?void 0:t.x} ${(n=this.floating.middlewareData.transformOrigin)==null?void 0:n.y}`,"--bits-floating-available-width":`${d(a(this,ie))}px`,"--bits-floating-available-height":`${d(a(this,oe))}px`,"--bits-floating-anchor-width":`${d(a(this,re))}px`,"--bits-floating-anchor-height":`${d(a(this,se))}px`,...((i=this.floating.middlewareData.hide)==null?void 0:i.referenceHidden)&&{visibility:"hidden","pointer-events":"none"},...d(a(this,Gt))},dir:this.opts.dir.current,...this.wrapperAttachment}}));b(this,me,O(()=>({"data-side":this.placedSide,"data-align":this.placedAlign,style:pi({...d(a(this,Gt))}),...this.contentAttachment})));b(this,ve,O(()=>({position:"absolute",left:this.arrowX?`${this.arrowX}px`:void 0,top:this.arrowY?`${this.arrowY}px`:void 0,[this.arrowBaseSide]:0,"transform-origin":{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[this.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[this.placedSide],visibility:this.cannotCenterArrow?"hidden":void 0})));this.opts=t,this.root=n,Y(this,Jt,t.updatePositionStrategy),t.customAnchor&&(this.root.customAnchorNode.current=t.customAnchor.current),Pt(()=>t.customAnchor.current,i=>{this.root.customAnchorNode.current=i}),this.floating=Cr({strategy:()=>this.opts.strategy.current,placement:()=>d(a(this,cn)),middleware:()=>this.middleware,reference:this.root.anchorNode,whileElementsMounted:(...i)=>{var s;return pr(...i,{animationFrame:((s=a(this,Jt))==null?void 0:s.current)==="always"})},open:()=>this.opts.enabled.current,sideOffset:()=>this.opts.sideOffset.current,alignOffset:()=>this.opts.alignOffset.current}),tt(()=>{var i;this.floating.isPositioned&&((i=this.opts.onPlaced)==null||i.current())}),Pt(()=>this.contentRef.current,i=>{if(!i||!this.opts.enabled.current)return;const o=Zi(i),s=o.requestAnimationFrame(()=>{if(this.contentRef.current!==i||!this.opts.enabled.current)return;const r=o.getComputedStyle(i).zIndex;r!==this.contentZIndex&&(this.contentZIndex=r)});return()=>{o.cancelAnimationFrame(s)}}),tt(()=>{this.floating.floating.current=this.wrapperRef.current})}static create(t,n=!1){return n?gi.set(new un(t,Un.get())):gi.set(new un(t,zn.get()))}get hasExplicitBoundaries(){return d(a(this,ee))}set hasExplicitBoundaries(t){A(a(this,ee),t)}get detectOverflowOptions(){return d(a(this,ne))}set detectOverflowOptions(t){A(a(this,ne),t)}get middleware(){return d(a(this,ae))}set middleware(t){A(a(this,ae),t)}get placedSide(){return d(a(this,le))}set placedSide(t){A(a(this,le),t)}get placedAlign(){return d(a(this,ce))}set placedAlign(t){A(a(this,ce),t)}get arrowX(){return d(a(this,ue))}set arrowX(t){A(a(this,ue),t)}get arrowY(){return d(a(this,de))}set arrowY(t){A(a(this,de),t)}get cannotCenterArrow(){return d(a(this,he))}set cannotCenterArrow(t){A(a(this,he),t)}get contentZIndex(){return d(a(this,fe))}set contentZIndex(t){A(a(this,fe),t,!0)}get arrowBaseSide(){return d(a(this,ge))}set arrowBaseSide(t){A(a(this,ge),t)}get wrapperProps(){return d(a(this,pe))}set wrapperProps(t){A(a(this,pe),t)}get props(){return d(a(this,me))}set props(t){A(a(this,me),t)}get arrowStyle(){return d(a(this,ve))}set arrowStyle(t){A(a(this,ve),t)}};Gt=new WeakMap,Jt=new WeakMap,Qt=new WeakMap,ln=new WeakMap,$t=new WeakMap,cn=new WeakMap,te=new WeakMap,ee=new WeakMap,ne=new WeakMap,ie=new WeakMap,oe=new WeakMap,re=new WeakMap,se=new WeakMap,ae=new WeakMap,le=new WeakMap,ce=new WeakMap,ue=new WeakMap,de=new WeakMap,he=new WeakMap,fe=new WeakMap,ge=new WeakMap,pe=new WeakMap,me=new WeakMap,ve=new WeakMap;let An=un;class en{constructor(t,n){N(this,"opts");N(this,"root");this.opts=t,this.root=n,t.virtualEl&&t.virtualEl.current?n.triggerNode=Xi(t.virtualEl.current):n.triggerNode=t.ref}static create(t,n=!1){return n?new en(t,Un.get()):new en(t,zn.get())}}function Nr(e){return{name:"transformOrigin",options:e,fn(t){var S,v,C;const{placement:n,rects:i,middlewareData:o}=t,r=((S=o.arrow)==null?void 0:S.centerOffset)!==0,l=r?0:e.arrowWidth,u=r?0:e.arrowHeight,[f,h]=Yn(n),c={start:"0%",center:"50%",end:"100%"}[h],p=(((v=o.arrow)==null?void 0:v.x)??0)+l/2,g=(((C=o.arrow)==null?void 0:C.y)??0)+u/2;let m="",w="";return f==="bottom"?(m=r?c:`${p}px`,w=`${-u}px`):f==="top"?(m=r?c:`${p}px`,w=`${i.floating.height+u}px`):f==="right"?(m=`${-u}px`,w=r?c:`${g}px`):f==="left"&&(m=`${i.floating.width+u}px`,w=r?c:`${g}px`),{data:{x:m,y:w}}}}}function Yn(e){const[t,n="center"]=e.split("-");return[t,n]}function Er(e){return Yn(e)[0]}function Tr(e){return Yn(e)[1]}function Dr(e,t){Q(t,!0);let n=x(t,"tooltip",3,!1);tn.create(n());var i=L(),o=k(i);U(o,()=>t.children??et),_(e,i),$()}var dt,Dt,Ot;class Fr{constructor(t){b(this,dt);b(this,Dt,O(()=>a(this,dt).candidateValues()));b(this,Ot);Y(this,dt,t),Y(this,Ot,Pi("",{afterMs:1e3,getWindow:a(this,dt).getWindow})),this.handleTypeaheadSearch=this.handleTypeaheadSearch.bind(this),this.resetTypeahead=this.resetTypeahead.bind(this)}handleTypeaheadSearch(t){if(!a(this,dt).enabled()||!d(a(this,Dt)).length)return;a(this,Ot).current=a(this,Ot).current+t;const n=a(this,dt).getCurrentItem(),i=d(a(this,Dt)).find(l=>l===n)??"",o=d(a(this,Dt)).map(l=>l??""),s=Bn(o,a(this,Ot).current,i),r=d(a(this,Dt)).find(l=>l===s);return r&&a(this,dt).onMatch(r),r}resetTypeahead(){a(this,Ot).current=""}}dt=new WeakMap,Dt=new WeakMap,Ot=new WeakMap;const _r=[qt,wi,yi],Ir=[kt,bi,xi],Mr=[..._r,...Ir],Br=$i({component:"select",parts:["trigger","content","item","viewport","scroll-up-button","scroll-down-button","group","group-label","separator","arrow","input","content-wrapper","item-text","value"]}),je=new Xe("Select.Root | Combobox.Root"),Bi=new Xe("Select.Content | Combobox.Content");var we,ye,be,xe,Oe,Se,Pe,Ce,Ae,Re;class ki{constructor(t){N(this,"opts");b(this,we,V(!1));b(this,ye,V(null));b(this,be,V(null));N(this,"contentPresence");b(this,xe,V(null));b(this,Oe,V(null));b(this,Se,V(""));b(this,Pe,V(null));b(this,Ce,O(()=>this.highlightedNode?this.highlightedNode.getAttribute("data-value"):null));b(this,Ae,O(()=>{if(this.highlightedNode)return this.highlightedNode.id}));b(this,Re,O(()=>this.highlightedNode?this.highlightedNode.getAttribute("data-label"):null));N(this,"isUsingKeyboard",!1);N(this,"isCombobox",!1);N(this,"domContext",new Mn(()=>null));N(this,"getBitsAttr",t=>Br.getAttr(t,this.isCombobox?"combobox":void 0));this.opts=t,this.isCombobox=t.isCombobox,this.contentPresence=new Ji({ref:R(()=>this.contentNode),open:this.opts.open,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),Ui(()=>{this.opts.open.current||this.setHighlightedNode(null)})}get touchedInput(){return d(a(this,we))}set touchedInput(t){A(a(this,we),t,!0)}get inputNode(){return d(a(this,ye))}set inputNode(t){A(a(this,ye),t,!0)}get contentNode(){return d(a(this,be))}set contentNode(t){A(a(this,be),t,!0)}get viewportNode(){return d(a(this,xe))}set viewportNode(t){A(a(this,xe),t,!0)}get triggerNode(){return d(a(this,Oe))}set triggerNode(t){A(a(this,Oe),t,!0)}get valueId(){return d(a(this,Se))}set valueId(t){A(a(this,Se),t,!0)}get highlightedNode(){return d(a(this,Pe))}set highlightedNode(t){A(a(this,Pe),t,!0)}get highlightedValue(){return d(a(this,Ce))}set highlightedValue(t){A(a(this,Ce),t)}get highlightedId(){return d(a(this,Ae))}set highlightedId(t){A(a(this,Ae),t)}get highlightedLabel(){return d(a(this,Re))}set highlightedLabel(t){A(a(this,Re),t)}setHighlightedNode(t,n=!1){this.highlightedNode=t,t&&(this.isUsingKeyboard||n)&&t.scrollIntoView({block:this.opts.scrollAlignment.current})}getCandidateNodes(){const t=this.contentNode;return t?Array.from(t.querySelectorAll(`[${this.getBitsAttr("item")}]:not([data-disabled])`)):[]}setHighlightedToFirstCandidate(t=!1){this.setHighlightedNode(null);let n=this.getCandidateNodes();if(n.length){if(this.viewportNode){const i=this.viewportNode.getBoundingClientRect();n=n.filter(o=>{if(!this.viewportNode)return!1;const s=o.getBoundingClientRect();return s.right<=i.right&&s.left>=i.left&&s.bottom<=i.bottom&&s.top>=i.top})}this.setHighlightedNode(n[0],t)}}getNodeByValue(t){return this.getCandidateNodes().find(i=>i.dataset.value===t)??null}setOpen(t){this.opts.open.current=t}toggleOpen(){this.opts.open.current=!this.opts.open.current}handleOpen(){this.setOpen(!0)}handleClose(){this.setHighlightedNode(null),this.setOpen(!1)}toggleMenu(){this.toggleOpen()}}we=new WeakMap,ye=new WeakMap,be=new WeakMap,xe=new WeakMap,Oe=new WeakMap,Se=new WeakMap,Pe=new WeakMap,Ce=new WeakMap,Ae=new WeakMap,Re=new WeakMap;var Ne,Ee,Te,De;class kr extends ki{constructor(n){super(n);N(this,"opts");N(this,"isMulti",!1);b(this,Ne,O(()=>this.opts.value.current!==""));b(this,Ee,O(()=>{var n;return this.opts.items.current.length?((n=this.opts.items.current.find(i=>i.value===this.opts.value.current))==null?void 0:n.label)??"":""}));b(this,Te,O(()=>this.opts.items.current.length?this.opts.items.current.filter(i=>!i.disabled).map(i=>i.label):[]));b(this,De,O(()=>!(this.isMulti||this.opts.items.current.length===0)));this.opts=n,tt(()=>{!this.opts.open.current&&this.highlightedNode&&this.setHighlightedNode(null)}),Pt(()=>this.opts.open.current,()=>{this.opts.open.current&&this.setInitialHighlightedNode()})}get hasValue(){return d(a(this,Ne))}set hasValue(n){A(a(this,Ne),n)}get currentLabel(){return d(a(this,Ee))}set currentLabel(n){A(a(this,Ee),n)}get candidateLabels(){return d(a(this,Te))}set candidateLabels(n){A(a(this,Te),n)}get dataTypeaheadEnabled(){return d(a(this,De))}set dataTypeaheadEnabled(n){A(a(this,De),n)}includesItem(n){return this.opts.value.current===n}toggleItem(n,i=n){const o=this.includesItem(n)?"":n;this.opts.value.current=o,o!==""&&(this.opts.inputValue.current=i)}setInitialHighlightedNode(){vi(()=>{if(!(this.highlightedNode&&this.domContext.getDocument().contains(this.highlightedNode))){if(this.opts.value.current!==""){const n=this.getNodeByValue(this.opts.value.current);if(n){this.setHighlightedNode(n,!0);return}}this.setHighlightedToFirstCandidate(!0)}})}}Ne=new WeakMap,Ee=new WeakMap,Te=new WeakMap,De=new WeakMap;var Fe;class Hr extends ki{constructor(n){super(n);N(this,"opts");N(this,"isMulti",!0);b(this,Fe,O(()=>this.opts.value.current.length>0));this.opts=n,tt(()=>{!this.opts.open.current&&this.highlightedNode&&this.setHighlightedNode(null)}),Pt(()=>this.opts.open.current,()=>{this.opts.open.current&&this.setInitialHighlightedNode()})}get hasValue(){return d(a(this,Fe))}set hasValue(n){A(a(this,Fe),n)}includesItem(n){return this.opts.value.current.includes(n)}toggleItem(n,i=n){this.includesItem(n)?this.opts.value.current=this.opts.value.current.filter(o=>o!==n):this.opts.value.current=[...this.opts.value.current,n],this.opts.inputValue.current=i}setInitialHighlightedNode(){vi(()=>{if(this.domContext&&!(this.highlightedNode&&this.domContext.getDocument().contains(this.highlightedNode))){if(this.opts.value.current.length&&this.opts.value.current[0]!==""){const n=this.getNodeByValue(this.opts.value.current[0]);if(n){this.setHighlightedNode(n,!0);return}}this.setHighlightedToFirstCandidate(!0)}})}}Fe=new WeakMap;class Wr{static create(t){const{type:n,...i}=t,o=n==="single"?new kr(i):new Hr(i);return je.set(o)}}var Ft,zt,st,Hi,Nn,En,_e;const Xn=class Xn{constructor(t,n){b(this,st);N(this,"opts");N(this,"root");N(this,"attachment");b(this,Ft);b(this,zt);b(this,_e,O(()=>({id:this.opts.id.current,disabled:this.root.opts.disabled.current?!0:void 0,"aria-haspopup":"listbox","aria-expanded":Qi(this.root.opts.open.current),"aria-activedescendant":this.root.highlightedId,"data-state":Si(this.root.opts.open.current),"data-disabled":Oi(this.root.opts.disabled.current),"data-placeholder":this.root.hasValue?void 0:"",[this.root.getBitsAttr("trigger")]:"",onpointerdown:this.onpointerdown,onkeydown:this.onkeydown,onclick:this.onclick,onpointerup:this.onpointerup,...this.attachment})));this.opts=t,this.root=n,this.attachment=_t(t.ref,i=>this.root.triggerNode=i),this.root.domContext=new Mn(t.ref),Y(this,Ft,new Ao({getCurrentItem:()=>this.root.highlightedNode,onMatch:i=>{this.root.setHighlightedNode(i)},getActiveElement:()=>this.root.domContext.getActiveElement(),getWindow:()=>this.root.domContext.getWindow()})),Y(this,zt,new Fr({getCurrentItem:()=>this.root.isMulti?"":this.root.currentLabel,onMatch:i=>{if(this.root.isMulti||!this.root.opts.items.current)return;const o=this.root.opts.items.current.find(s=>s.label===i);o&&(this.root.opts.value.current=o.value)},enabled:()=>!this.root.isMulti&&this.root.dataTypeaheadEnabled,candidateValues:()=>this.root.isMulti?[]:this.root.candidateLabels,getWindow:()=>this.root.domContext.getWindow()})),this.onkeydown=this.onkeydown.bind(this),this.onpointerdown=this.onpointerdown.bind(this),this.onpointerup=this.onpointerup.bind(this),this.onclick=this.onclick.bind(this)}static create(t){return new Xn(t,je.get())}onkeydown(t){if(this.root.isUsingKeyboard=!0,(t.key===kt||t.key===qt)&&t.preventDefault(),!this.root.opts.open.current){if(t.key===Qn||t.key===yn||t.key===qt||t.key===kt)t.preventDefault(),this.root.handleOpen();else if(!this.root.isMulti&&this.root.dataTypeaheadEnabled){a(this,zt).handleTypeaheadSearch(t.key);return}if(this.root.hasValue)return;const r=this.root.getCandidateNodes();if(!r.length)return;if(t.key===qt){const l=r[0];this.root.setHighlightedNode(l)}else if(t.key===kt){const l=r[r.length-1];this.root.setHighlightedNode(l)}return}if(t.key===$n){this.root.handleClose();return}if((t.key===Qn||t.key===yn&&a(this,Ft).search==="")&&!t.isComposing&&(t.preventDefault(),Bt(this,st,En).call(this)))return;if(t.key===kt&&t.altKey&&this.root.handleClose(),Mr.includes(t.key)){t.preventDefault();const r=this.root.getCandidateNodes(),l=this.root.highlightedNode,u=l?r.indexOf(l):-1,f=this.root.opts.loop.current;let h;if(t.key===qt?h=xo(r,u,f):t.key===kt?h=Oo(r,u,f):t.key===bi?h=So(r,u,10,f):t.key===wi?h=Po(r,u,10,f):t.key===yi?h=r[0]:t.key===xi&&(h=r[r.length-1]),!h)return;this.root.setHighlightedNode(h);return}const n=t.ctrlKey||t.altKey||t.metaKey,i=t.key.length===1,o=t.key===yn,s=this.root.getCandidateNodes();if(t.key!==$n){if(!n&&(i||o)){!a(this,Ft).handleTypeaheadSearch(t.key,s)&&o&&(t.preventDefault(),Bt(this,st,En).call(this));return}this.root.highlightedNode||this.root.setHighlightedToFirstCandidate()}}onclick(t){t.currentTarget.focus()}onpointerdown(t){if(this.root.opts.disabled.current)return;if(t.pointerType==="touch")return t.preventDefault();const n=t.target;n!=null&&n.hasPointerCapture(t.pointerId)&&(n==null||n.releasePointerCapture(t.pointerId)),t.button===0&&t.ctrlKey===!1&&(this.root.opts.open.current===!1?Bt(this,st,Nn).call(this,t):this.root.handleClose())}onpointerup(t){this.root.opts.disabled.current||(t.preventDefault(),t.pointerType==="touch"&&(this.root.opts.open.current===!1?Bt(this,st,Nn).call(this,t):this.root.handleClose()))}get props(){return d(a(this,_e))}set props(t){A(a(this,_e),t)}};Ft=new WeakMap,zt=new WeakMap,st=new WeakSet,Hi=function(){this.root.opts.open.current=!0,a(this,zt).resetTypeahead(),a(this,Ft).resetTypeahead()},Nn=function(t){Bt(this,st,Hi).call(this)},En=function(){const t=this.root.highlightedValue===this.root.opts.value.current;return!this.root.opts.allowDeselect.current&&t&&!this.root.isMulti?(this.root.handleClose(),!0):(this.root.highlightedValue!==null&&this.root.toggleItem(this.root.highlightedValue,this.root.highlightedLabel??void 0),!this.root.isMulti&&!t?(this.root.handleClose(),!0):!1)},_e=new WeakMap;let Rn=Xn;var Ie,dn,Me,Be;const qn=class qn{constructor(t,n){N(this,"opts");N(this,"root");N(this,"attachment");b(this,Ie,V(!1));N(this,"domContext");b(this,dn,O(()=>Pr(this.root.isCombobox?"combobox":"select")));N(this,"onInteractOutside",t=>{if(t.target===this.root.triggerNode||t.target===this.root.inputNode){t.preventDefault();return}this.opts.onInteractOutside.current(t),!t.defaultPrevented&&this.root.handleClose()});N(this,"onEscapeKeydown",t=>{this.opts.onEscapeKeydown.current(t),!t.defaultPrevented&&this.root.handleClose()});N(this,"onOpenAutoFocus",t=>{t.preventDefault()});N(this,"onCloseAutoFocus",t=>{t.preventDefault()});b(this,Me,O(()=>({open:this.root.opts.open.current})));b(this,Be,O(()=>({id:this.opts.id.current,role:"listbox","aria-multiselectable":this.root.isMulti?"true":void 0,"data-state":Si(this.root.opts.open.current),[this.root.getBitsAttr("content")]:"",style:{display:"flex",flexDirection:"column",outline:"none",boxSizing:"border-box",pointerEvents:"auto",...d(a(this,dn))},onpointermove:this.onpointermove,...this.attachment})));N(this,"popperProps",{onInteractOutside:this.onInteractOutside,onEscapeKeydown:this.onEscapeKeydown,onOpenAutoFocus:this.onOpenAutoFocus,onCloseAutoFocus:this.onCloseAutoFocus,trapFocus:!1,loop:!1,onPlaced:()=>{this.root.opts.open.current&&(this.isPositioned=!0)}});this.opts=t,this.root=n,this.attachment=_t(t.ref,i=>this.root.contentNode=i),this.domContext=new Mn(this.opts.ref),this.root.domContext===null&&(this.root.domContext=this.domContext),Gi(()=>{this.root.contentNode=null,this.isPositioned=!1}),Pt(()=>this.root.opts.open.current,()=>{this.root.opts.open.current||(this.isPositioned=!1)}),this.onpointermove=this.onpointermove.bind(this)}static create(t){return Bi.set(new qn(t,je.get()))}get isPositioned(){return d(a(this,Ie))}set isPositioned(t){A(a(this,Ie),t,!0)}onpointermove(t){this.root.isUsingKeyboard=!1}get shouldRender(){return this.root.contentPresence.shouldRender}get snippetProps(){return d(a(this,Me))}set snippetProps(t){A(a(this,Me),t)}get props(){return d(a(this,Be))}set props(t){A(a(this,Be),t)}};Ie=new WeakMap,dn=new WeakMap,Me=new WeakMap,Be=new WeakMap;let Tn=qn;var ke,He,We,Le,Ve;const jn=class jn{constructor(t,n){N(this,"opts");N(this,"root");N(this,"attachment");b(this,ke,O(()=>this.root.includesItem(this.opts.value.current)));b(this,He,O(()=>this.root.highlightedValue===this.opts.value.current));N(this,"prevHighlighted",new yo(()=>this.isHighlighted));b(this,We,V(!1));b(this,Le,O(()=>({selected:this.isSelected,highlighted:this.isHighlighted})));b(this,Ve,O(()=>({id:this.opts.id.current,role:"option","aria-selected":this.root.includesItem(this.opts.value.current)?"true":void 0,"data-value":this.opts.value.current,"data-disabled":Oi(this.opts.disabled.current),"data-highlighted":this.root.highlightedValue===this.opts.value.current&&!this.opts.disabled.current?"":void 0,"data-selected":this.root.includesItem(this.opts.value.current)?"":void 0,"data-label":this.opts.label.current,[this.root.getBitsAttr("item")]:"",onpointermove:this.onpointermove,onpointerdown:this.onpointerdown,onpointerup:this.onpointerup,...this.attachment})));this.opts=t,this.root=n,this.attachment=_t(t.ref),Pt([()=>this.isHighlighted,()=>this.prevHighlighted.current],()=>{this.isHighlighted?this.opts.onHighlight.current():this.prevHighlighted.current&&this.opts.onUnhighlight.current()}),Pt(()=>this.mounted,()=>{this.mounted&&this.root.setInitialHighlightedNode()}),this.onpointerdown=this.onpointerdown.bind(this),this.onpointerup=this.onpointerup.bind(this),this.onpointermove=this.onpointermove.bind(this)}static create(t){return new jn(t,je.get())}get isSelected(){return d(a(this,ke))}set isSelected(t){A(a(this,ke),t)}get isHighlighted(){return d(a(this,He))}set isHighlighted(t){A(a(this,He),t)}get mounted(){return d(a(this,We))}set mounted(t){A(a(this,We),t,!0)}handleSelect(){if(this.opts.disabled.current)return;const t=this.opts.value.current===this.root.opts.value.current;if(!this.root.opts.allowDeselect.current&&t&&!this.root.isMulti){this.root.handleClose();return}this.root.toggleItem(this.opts.value.current,this.opts.label.current),!this.root.isMulti&&!t&&this.root.handleClose()}get snippetProps(){return d(a(this,Le))}set snippetProps(t){A(a(this,Le),t)}onpointerdown(t){t.preventDefault()}onpointerup(t){if(!(t.defaultPrevented||!this.opts.ref.current)){if(t.pointerType==="touch"&&!to){fo(this.opts.ref.current,"click",()=>{this.handleSelect(),this.root.setHighlightedNode(this.opts.ref.current)},{once:!0});return}t.preventDefault(),this.handleSelect(),t.pointerType==="touch"&&this.root.setHighlightedNode(this.opts.ref.current)}}onpointermove(t){t.pointerType!=="touch"&&this.root.highlightedNode!==this.opts.ref.current&&this.root.setHighlightedNode(this.opts.ref.current)}get props(){return d(a(this,Ve))}set props(t){A(a(this,Ve),t)}};ke=new WeakMap,He=new WeakMap,We=new WeakMap,Le=new WeakMap,Ve=new WeakMap;let Dn=jn;var Ke,ze;const Zn=class Zn{constructor(t,n){N(this,"opts");N(this,"root");b(this,Ke,O(()=>this.root.opts.name.current!==""));b(this,ze,O(()=>({disabled:ti(this.root.opts.disabled.current),required:ti(this.root.opts.required.current),name:this.root.opts.name.current,value:this.opts.value.current,onfocus:this.onfocus})));this.opts=t,this.root=n,this.onfocus=this.onfocus.bind(this)}static create(t){return new Zn(t,je.get())}get shouldRender(){return d(a(this,Ke))}set shouldRender(t){A(a(this,Ke),t)}onfocus(t){var n,i;t.preventDefault(),this.root.isCombobox?(i=this.root.inputNode)==null||i.focus():(n=this.root.triggerNode)==null||n.focus()}get props(){return d(a(this,ze))}set props(t){A(a(this,ze),t)}};Ke=new WeakMap,ze=new WeakMap;let Fn=Zn;var Ue,Ye;const Gn=class Gn{constructor(t,n){N(this,"opts");N(this,"content");N(this,"root");N(this,"attachment");b(this,Ue,V(0));b(this,Ye,O(()=>({id:this.opts.id.current,role:"presentation",[this.root.getBitsAttr("viewport")]:"",style:{position:"relative",flex:1,overflow:"auto"},...this.attachment})));this.opts=t,this.content=n,this.root=n.root,this.attachment=_t(t.ref,i=>{this.root.viewportNode=i})}static create(t){return new Gn(t,Bi.get())}get prevScrollTop(){return d(a(this,Ue))}set prevScrollTop(t){A(a(this,Ue),t,!0)}get props(){return d(a(this,Ye))}set props(t){A(a(this,Ye),t)}};Ue=new WeakMap,Ye=new WeakMap;let _n=Gn;function On(e,t){Q(t,!0);let n=x(t,"value",15);const i=Fn.create({value:R(()=>n())});var o=L(),s=k(o);{var r=l=>{Eo(l,It(()=>i.props,{get autocomplete(){return t.autocomplete},get value(){return n()},set value(u){n(u)}}))};G(s,l=>{i.shouldRender&&l(r)})}_(e,o),$()}function Lr(e,t){Q(t,!0);let n=x(t,"tooltip",3,!1);en.create({id:R(()=>t.id),virtualEl:R(()=>t.virtualEl),ref:t.ref},n());var i=L(),o=k(i);U(o,()=>t.children??et),_(e,i),$()}function Vr(e,t){Q(t,!0);let n=x(t,"side",3,"bottom"),i=x(t,"sideOffset",3,0),o=x(t,"align",3,"center"),s=x(t,"alignOffset",3,0),r=x(t,"arrowPadding",3,0),l=x(t,"avoidCollisions",3,!0),u=x(t,"collisionBoundary",19,()=>[]),f=x(t,"collisionPadding",3,0),h=x(t,"hideWhenDetached",3,!1),c=x(t,"onPlaced",3,()=>{}),p=x(t,"sticky",3,"partial"),g=x(t,"updatePositionStrategy",3,"optimized"),m=x(t,"strategy",3,"fixed"),w=x(t,"dir",3,"ltr"),S=x(t,"style",19,()=>({})),v=x(t,"wrapperId",19,mi),C=x(t,"customAnchor",3,null),P=x(t,"tooltip",3,!1);const y=An.create({side:R(()=>n()),sideOffset:R(()=>i()),align:R(()=>o()),alignOffset:R(()=>s()),id:R(()=>t.id),arrowPadding:R(()=>r()),avoidCollisions:R(()=>l()),collisionBoundary:R(()=>u()),collisionPadding:R(()=>f()),hideWhenDetached:R(()=>h()),onPlaced:R(()=>c()),sticky:R(()=>p()),updatePositionStrategy:R(()=>g()),strategy:R(()=>m()),dir:R(()=>w()),style:R(()=>S()),enabled:R(()=>t.enabled),wrapperId:R(()=>v()),customAnchor:R(()=>C())},P()),T=O(()=>gt(y.wrapperProps,{style:{pointerEvents:"auto"}}));var D=L(),E=k(D);U(E,()=>t.content??et,()=>({props:y.props,wrapperProps:d(T)})),_(e,D),$()}function Kr(e,t){Q(t,!0),ao(()=>{var o;(o=t.onPlaced)==null||o.call(t)});var n=L(),i=k(n);U(i,()=>t.content??et,()=>({props:{},wrapperProps:{}})),_(e,n),$()}function zr(e,t){let n=x(t,"isStatic",3,!1),i=vt(t,["$$slots","$$events","$$legacy","content","isStatic","onPlaced"]);var o=L(),s=k(o);{var r=u=>{Kr(u,{get content(){return t.content},get onPlaced(){return t.onPlaced}})},l=u=>{Vr(u,It({get content(){return t.content},get onPlaced(){return t.onPlaced}},()=>i))};G(s,u=>{n()?u(r):u(l,-1)})}_(e,o)}var Ur=at("<!> <!>",1);function Wi(e,t){Q(t,!0);let n=x(t,"interactOutsideBehavior",3,"close"),i=x(t,"trapFocus",3,!0),o=x(t,"isValidEvent",3,()=>!1),s=x(t,"customAnchor",3,null),r=x(t,"isStatic",3,!1),l=x(t,"tooltip",3,!1),u=x(t,"contentPointerEvents",3,"auto"),f=vt(t,["$$slots","$$events","$$legacy","popper","onEscapeKeydown","escapeKeydownBehavior","preventOverflowTextSelection","id","onPointerDown","onPointerUp","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","strategy","dir","preventScroll","wrapperId","style","onPlaced","onInteractOutside","onCloseAutoFocus","onOpenAutoFocus","onFocusOutside","interactOutsideBehavior","loop","trapFocus","isValidEvent","customAnchor","isStatic","enabled","ref","tooltip","contentPointerEvents"]);zr(e,{get isStatic(){return r()},get id(){return t.id},get side(){return t.side},get sideOffset(){return t.sideOffset},get align(){return t.align},get alignOffset(){return t.alignOffset},get arrowPadding(){return t.arrowPadding},get avoidCollisions(){return t.avoidCollisions},get collisionBoundary(){return t.collisionBoundary},get collisionPadding(){return t.collisionPadding},get sticky(){return t.sticky},get hideWhenDetached(){return t.hideWhenDetached},get updatePositionStrategy(){return t.updatePositionStrategy},get strategy(){return t.strategy},get dir(){return t.dir},get wrapperId(){return t.wrapperId},get style(){return t.style},get onPlaced(){return t.onPlaced},get customAnchor(){return s()},get enabled(){return t.enabled},get tooltip(){return l()},content:(c,p)=>{let g=()=>p==null?void 0:p().props,m=()=>p==null?void 0:p().wrapperProps;var w=Ur(),S=k(w);{var v=y=>{ei(y,{get preventScroll(){return t.preventScroll}})},C=y=>{ei(y,{get preventScroll(){return t.preventScroll}})};G(S,y=>{t.forceMount&&t.enabled?y(v):t.forceMount||y(C,1)})}var P=In(S,2);eo(P,{get onOpenAutoFocus(){return t.onOpenAutoFocus},get onCloseAutoFocus(){return t.onCloseAutoFocus},get loop(){return t.loop},get enabled(){return t.enabled},get trapFocus(){return i()},get forceMount(){return t.forceMount},get ref(){return t.ref},focusScope:(T,D)=>{let E=()=>D==null?void 0:D().props;no(T,{get onEscapeKeydown(){return t.onEscapeKeydown},get escapeKeydownBehavior(){return t.escapeKeydownBehavior},get enabled(){return t.enabled},get ref(){return t.ref},children:(W,I)=>{io(W,{get id(){return t.id},get onInteractOutside(){return t.onInteractOutside},get onFocusOutside(){return t.onFocusOutside},get interactOutsideBehavior(){return n()},get isValidEvent(){return o()},get enabled(){return t.enabled},get ref(){return t.ref},children:(z,F)=>{let B=()=>F==null?void 0:F().props;oo(z,{get id(){return t.id},get preventOverflowTextSelection(){return t.preventOverflowTextSelection},get onPointerDown(){return t.onPointerDown},get onPointerUp(){return t.onPointerUp},get enabled(){return t.enabled},get ref(){return t.ref},children:(M,K)=>{var X=L(),q=k(X);{let j=O(()=>({props:gt(f,g(),B(),E(),{style:{pointerEvents:u()}}),wrapperProps:m()}));U(q,()=>t.popper??et,()=>d(j))}_(M,X)},$$slots:{default:!0}})},$$slots:{default:!0}})},$$slots:{default:!0}})},$$slots:{focusScope:!0}}),_(c,w)},$$slots:{content:!0}}),$()}function Yr(e,t){let n=x(t,"interactOutsideBehavior",3,"close"),i=x(t,"trapFocus",3,!0),o=x(t,"isValidEvent",3,()=>!1),s=x(t,"customAnchor",3,null),r=x(t,"isStatic",3,!1),l=vt(t,["$$slots","$$events","$$legacy","popper","open","onEscapeKeydown","escapeKeydownBehavior","preventOverflowTextSelection","id","onPointerDown","onPointerUp","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","strategy","dir","preventScroll","wrapperId","style","onPlaced","onInteractOutside","onCloseAutoFocus","onOpenAutoFocus","onFocusOutside","interactOutsideBehavior","loop","trapFocus","isValidEvent","customAnchor","isStatic","ref","shouldRender"]);var u=L(),f=k(u);{var h=c=>{Wi(c,It({get popper(){return t.popper},get onEscapeKeydown(){return t.onEscapeKeydown},get escapeKeydownBehavior(){return t.escapeKeydownBehavior},get preventOverflowTextSelection(){return t.preventOverflowTextSelection},get id(){return t.id},get onPointerDown(){return t.onPointerDown},get onPointerUp(){return t.onPointerUp},get side(){return t.side},get sideOffset(){return t.sideOffset},get align(){return t.align},get alignOffset(){return t.alignOffset},get arrowPadding(){return t.arrowPadding},get avoidCollisions(){return t.avoidCollisions},get collisionBoundary(){return t.collisionBoundary},get collisionPadding(){return t.collisionPadding},get sticky(){return t.sticky},get hideWhenDetached(){return t.hideWhenDetached},get updatePositionStrategy(){return t.updatePositionStrategy},get strategy(){return t.strategy},get dir(){return t.dir},get preventScroll(){return t.preventScroll},get wrapperId(){return t.wrapperId},get style(){return t.style},get onPlaced(){return t.onPlaced},get customAnchor(){return s()},get isStatic(){return r()},get enabled(){return t.open},get onInteractOutside(){return t.onInteractOutside},get onCloseAutoFocus(){return t.onCloseAutoFocus},get onOpenAutoFocus(){return t.onOpenAutoFocus},get interactOutsideBehavior(){return n()},get loop(){return t.loop},get trapFocus(){return i()},get isValidEvent(){return o()},get onFocusOutside(){return t.onFocusOutside},forceMount:!1,get ref(){return t.ref}},()=>l))};G(f,c=>{t.shouldRender&&c(h)})}_(e,u)}function Xr(e,t){let n=x(t,"interactOutsideBehavior",3,"close"),i=x(t,"trapFocus",3,!0),o=x(t,"isValidEvent",3,()=>!1),s=x(t,"customAnchor",3,null),r=x(t,"isStatic",3,!1),l=vt(t,["$$slots","$$events","$$legacy","popper","onEscapeKeydown","escapeKeydownBehavior","preventOverflowTextSelection","id","onPointerDown","onPointerUp","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","strategy","dir","preventScroll","wrapperId","style","onPlaced","onInteractOutside","onCloseAutoFocus","onOpenAutoFocus","onFocusOutside","interactOutsideBehavior","loop","trapFocus","isValidEvent","customAnchor","isStatic","enabled"]);Wi(e,It({get popper(){return t.popper},get onEscapeKeydown(){return t.onEscapeKeydown},get escapeKeydownBehavior(){return t.escapeKeydownBehavior},get preventOverflowTextSelection(){return t.preventOverflowTextSelection},get id(){return t.id},get onPointerDown(){return t.onPointerDown},get onPointerUp(){return t.onPointerUp},get side(){return t.side},get sideOffset(){return t.sideOffset},get align(){return t.align},get alignOffset(){return t.alignOffset},get arrowPadding(){return t.arrowPadding},get avoidCollisions(){return t.avoidCollisions},get collisionBoundary(){return t.collisionBoundary},get collisionPadding(){return t.collisionPadding},get sticky(){return t.sticky},get hideWhenDetached(){return t.hideWhenDetached},get updatePositionStrategy(){return t.updatePositionStrategy},get strategy(){return t.strategy},get dir(){return t.dir},get preventScroll(){return t.preventScroll},get wrapperId(){return t.wrapperId},get style(){return t.style},get onPlaced(){return t.onPlaced},get customAnchor(){return s()},get isStatic(){return r()},get enabled(){return t.enabled},get onInteractOutside(){return t.onInteractOutside},get onCloseAutoFocus(){return t.onCloseAutoFocus},get onOpenAutoFocus(){return t.onOpenAutoFocus},get interactOutsideBehavior(){return n()},get loop(){return t.loop},get trapFocus(){return i()},get isValidEvent(){return o()},get onFocusOutside(){return t.onFocusOutside}},()=>l,{forceMount:!0}))}var qr=at("<div><div><!></div></div>"),jr=at("<div><div><!></div></div>");function ps(e,t){const n=hn();Q(t,!0);let i=x(t,"id",19,()=>fn(n)),o=x(t,"ref",15,null),s=x(t,"forceMount",3,!1),r=x(t,"side",3,"bottom"),l=x(t,"onInteractOutside",3,ft),u=x(t,"onEscapeKeydown",3,ft),f=x(t,"preventScroll",3,!1),h=vt(t,["$$slots","$$events","$$legacy","id","ref","forceMount","side","onInteractOutside","onEscapeKeydown","children","child","preventScroll","style"]);const c=Tn.create({id:R(()=>i()),ref:R(()=>o(),v=>o(v)),onInteractOutside:R(()=>l()),onEscapeKeydown:R(()=>u())}),p=O(()=>gt(h,c.props));var g=L(),m=k(g);{var w=v=>{Xr(v,It(()=>d(p),()=>c.popperProps,{get ref(){return c.opts.ref},get side(){return r()},get enabled(){return c.root.opts.open.current},get id(){return i()},get preventScroll(){return f()},forceMount:!0,get shouldRender(){return c.shouldRender},popper:(P,y)=>{let T=()=>y==null?void 0:y().props,D=()=>y==null?void 0:y().wrapperProps;const E=O(()=>gt(T(),{style:c.props.style},{style:t.style}));var W=L(),I=k(W);{var H=F=>{var B=L(),M=k(B);{let K=O(()=>({props:d(E),wrapperProps:D(),...c.snippetProps}));U(M,()=>t.child,()=>d(K))}_(F,B)},z=F=>{var B=qr();ht(B,()=>({...D()}));var M=Et(B);ht(M,()=>({...d(E)}));var K=Et(M);U(K,()=>t.children??et),Tt(M),Tt(B),_(F,B)};G(I,F=>{t.child?F(H):F(z,-1)})}_(P,W)},$$slots:{popper:!0}}))},S=v=>{Yr(v,It(()=>d(p),()=>c.popperProps,{get ref(){return c.opts.ref},get side(){return r()},get open(){return c.root.opts.open.current},get id(){return i()},get preventScroll(){return f()},forceMount:!1,get shouldRender(){return c.shouldRender},popper:(P,y)=>{let T=()=>y==null?void 0:y().props,D=()=>y==null?void 0:y().wrapperProps;const E=O(()=>gt(T(),{style:c.props.style},{style:t.style}));var W=L(),I=k(W);{var H=F=>{var B=L(),M=k(B);{let K=O(()=>({props:d(E),wrapperProps:D(),...c.snippetProps}));U(M,()=>t.child,()=>d(K))}_(F,B)},z=F=>{var B=jr();ht(B,()=>({...D()}));var M=Et(B);ht(M,()=>({...d(E)}));var K=Et(M);U(K,()=>t.children??et),Tt(M),Tt(B),_(F,B)};G(I,F=>{t.child?F(H):F(z,-1)})}_(P,W)},$$slots:{popper:!0}}))};G(m,v=>{s()?v(w):s()||v(S,1)})}_(e,g),$()}function Zr(e,t){Q(t,!0);let n=x(t,"mounted",15,!1),i=x(t,"onMountedChange",3,ft);bo(()=>(n(!0),i()(!0),()=>{n(!1),i()(!1)})),$()}var Gr=at("<div><!></div>"),Jr=at("<!> <!>",1);function ms(e,t){const n=hn();Q(t,!0);let i=x(t,"id",19,()=>fn(n)),o=x(t,"ref",15,null),s=x(t,"label",19,()=>t.value),r=x(t,"disabled",3,!1),l=x(t,"onHighlight",3,ft),u=x(t,"onUnhighlight",3,ft),f=vt(t,["$$slots","$$events","$$legacy","id","ref","value","label","disabled","children","child","onHighlight","onUnhighlight"]);const h=Dn.create({id:R(()=>i()),ref:R(()=>o(),v=>o(v)),value:R(()=>t.value),disabled:R(()=>r()),label:R(()=>s()),onHighlight:R(()=>l()),onUnhighlight:R(()=>u())}),c=O(()=>gt(f,h.props));var p=Jr(),g=k(p);{var m=v=>{var C=L(),P=k(C);{let y=O(()=>({props:d(c),...h.snippetProps}));U(P,()=>t.child,()=>d(y))}_(v,C)},w=v=>{var C=Gr();ht(C,()=>({...d(c)}));var P=Et(C);U(P,()=>t.children??et,()=>h.snippetProps),Tt(C),_(v,C)};G(g,v=>{t.child?v(m):v(w,-1)})}var S=In(g,2);Zr(S,{get mounted(){return h.mounted},set mounted(v){h.mounted=v}}),_(e,p),$()}var Qr=at("<div><!></div>");function vs(e,t){const n=hn();Q(t,!0);let i=x(t,"id",19,()=>fn(n)),o=x(t,"ref",15,null),s=vt(t,["$$slots","$$events","$$legacy","id","ref","children","child"]);const r=_n.create({id:R(()=>i()),ref:R(()=>o(),p=>o(p))}),l=O(()=>gt(s,r.props));var u=L(),f=k(u);{var h=p=>{var g=L(),m=k(g);U(m,()=>t.child,()=>({props:d(l)})),_(p,g)},c=p=>{var g=Qr();ht(g,()=>({...d(l)}));var m=Et(g);U(m,()=>t.children??et),Tt(g),_(p,g)};G(f,p=>{t.child?p(h):p(c,-1)})}_(e,u),$()}var $r=at("<!> <!>",1);function ws(e,t){Q(t,!0);let n=x(t,"value",15),i=x(t,"onValueChange",3,ft),o=x(t,"name",3,""),s=x(t,"disabled",3,!1),r=x(t,"open",15,!1),l=x(t,"onOpenChange",3,ft),u=x(t,"onOpenChangeComplete",3,ft),f=x(t,"loop",3,!1),h=x(t,"scrollAlignment",3,"nearest"),c=x(t,"required",3,!1),p=x(t,"items",19,()=>[]),g=x(t,"allowDeselect",3,!1);function m(){n()===void 0&&n(t.type==="single"?"":[])}m(),Pt.pre(()=>n(),()=>{m()});let w=V("");const S=Wr.create({type:t.type,value:R(()=>n(),E=>{n(E),i()(E)}),disabled:R(()=>s()),required:R(()=>c()),open:R(()=>r(),E=>{r(E),l()(E)}),loop:R(()=>f()),scrollAlignment:R(()=>h()),name:R(()=>o()),isCombobox:!1,items:R(()=>p()),allowDeselect:R(()=>g()),inputValue:R(()=>d(w),E=>A(w,E,!0)),onOpenChangeComplete:R(()=>u())});var v=$r(),C=k(v);Dr(C,{children:(E,W)=>{var I=L(),H=k(I);U(H,()=>t.children??et),_(E,I)},$$slots:{default:!0}});var P=In(C,2);{var y=E=>{var W=L(),I=k(W);{var H=F=>{On(F,{get autocomplete(){return t.autocomplete}})},z=F=>{var B=L(),M=k(B);lo(M,16,()=>S.opts.value.current,K=>K,(K,X)=>{On(K,{get value(){return X},get autocomplete(){return t.autocomplete}})}),_(F,B)};G(I,F=>{S.opts.value.current.length===0?F(H):F(z,-1)})}_(E,W)},T=O(()=>Array.isArray(S.opts.value.current)),D=E=>{On(E,{get autocomplete(){return t.autocomplete},get value(){return S.opts.value.current},set value(W){S.opts.value.current=W}})};G(P,E=>{d(T)?E(y):E(D,-1)})}_(e,v),$()}var ts=at("<button><!></button>");function ys(e,t){const n=hn();Q(t,!0);let i=x(t,"id",19,()=>fn(n)),o=x(t,"ref",15,null),s=x(t,"type",3,"button"),r=vt(t,["$$slots","$$events","$$legacy","id","ref","child","children","type"]);const l=Rn.create({id:R(()=>i()),ref:R(()=>o(),c=>o(c))}),u=O(()=>gt(r,l.props,{type:s()}));var f=L(),h=k(f);uo(h,()=>Lr,(c,p)=>{p(c,{get id(){return i()},get ref(){return l.opts.ref},children:(g,m)=>{var w=L(),S=k(w);{var v=P=>{var y=L(),T=k(y);U(T,()=>t.child,()=>({props:d(u)})),_(P,y)},C=P=>{var y=ts();ht(y,()=>({...d(u)}));var T=Et(y);U(T,()=>t.children??et),Tt(y),_(P,y)};G(S,P=>{t.child?P(v):P(C,-1)})}_(g,w)},$$slots:{default:!0}})}),_(e,f),$()}function bs(e,t){const n=so(t,["children","$$slots","$$events","$$legacy"]);/**
|
|
2
|
+
* @license lucide-svelte v0.460.1 - ISC
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the ISC license.
|
|
5
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/const i=[["path",{d:"m6 9 6 6 6-6"}]];ro(e,It({name:"chevron-down"},()=>n,{get iconNode(){return i},children:(o,s)=>{var r=L(),l=k(r);go(l,t,"default",{}),_(o,r)},$$slots:{default:!0}}))}export{bs as C,Lr as F,Xr as P,ws as S,ys as a,ps as b,vs as c,ms as d,Yr as e,Dr as f,Pr as g};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{s as c,g as l}from"./FDS7fbwH.js";import{ah as o,ai as b,aj as f,F as p,k as d,a5 as _}from"./BsQ08Wq_.js";let s=!1,i=Symbol();function y(e,n,r){const u=r[n]??(r[n]={store:null,source:p(void 0),unsubscribe:f});if(u.store!==e&&!(i in r))if(u.unsubscribe(),u.store=e??null,e==null)u.source.v=void 0,u.unsubscribe=f;else{var t=!0;u.unsubscribe=c(e,a=>{t?u.source.v=a:_(u.source,a)}),t=!1}return e&&i in r?l(e):d(u.source)}function m(){const e={};function n(){o(()=>{for(var r in e)e[r].unsubscribe();b(e,i,{enumerable:!1,value:!0})})}return[e,n]}function N(e){var n=s;try{return s=!1,[e(),s]}finally{s=n}}export{y as a,N as c,m as s};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var Ie=Object.defineProperty;var he=t=>{throw TypeError(t)};var Me=(t,e,r)=>e in t?Ie(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var q=(t,e,r)=>Me(t,typeof e!="symbol"?e+"":e,r),re=(t,e,r)=>e.has(t)||he("Cannot "+r);var s=(t,e,r)=>(re(t,e,"read from private field"),r?r.call(t):e.get(t)),l=(t,e,r)=>e.has(t)?he("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),a=(t,e,r,i)=>(re(t,e,"write to private field"),i?i.call(t,r):e.set(t,r),r),p=(t,e,r)=>(re(t,e,"access private method"),r);import{aN as Fe,k as Ee,j as Ye,u as Ce,aO as de,S as j,G as me,g as M,h as D,Y as V,aP as _e,b as Pe,a as Ve,m as We,aQ as pe,v as I,p as Te,L as se,i as ve,P as xe,aR as ge,aS as Be,aT as He,aU as je,a8 as J,aV as Z,aW as ye,aX as $e,aY as qe,aZ as we,W as Se,o as ze,Q as ie,c as K,ay as Ue,s as Ge,a_ as z,E as Qe,al as Xe,a$ as Je,b0 as Ze,ah as Ke,b1 as et,ai as tt,b2 as ne,R as rt,C as Re,H as st,T as it,b3 as ae,e as U,b4 as nt,O as at,b5 as ot,A as ft,at as ut,n as ct,b6 as lt,au as ht}from"./BsQ08Wq_.js";import{b as dt}from"./DIeahUKq.js";function _t(t){let e=0,r=me(0),i;return()=>{Fe()&&(Ee(r),Ye(()=>(e===0&&(i=Ce(()=>t(()=>de(r)))),e+=1,()=>{j(()=>{e-=1,e===0&&(i==null||i(),i=void 0,de(r))})})))}}var pt=Qe|Xe;function vt(t,e,r,i){new gt(t,e,r,i)}var E,$,w,Y,v,S,m,T,R,C,N,W,x,B,A,ee,u,Ae,ke,Ne,oe,Q,X,fe;class gt{constructor(e,r,i,o){l(this,u);q(this,"parent");q(this,"is_pending",!1);q(this,"transform_error");l(this,E);l(this,$,D?M:null);l(this,w);l(this,Y);l(this,v);l(this,S,null);l(this,m,null);l(this,T,null);l(this,R,null);l(this,C,0);l(this,N,0);l(this,W,!1);l(this,x,new Set);l(this,B,new Set);l(this,A,null);l(this,ee,_t(()=>(a(this,A,me(s(this,C))),()=>{a(this,A,null)})));var n;a(this,E,e),a(this,w,r),a(this,Y,f=>{var d=V;d.b=this,d.f|=_e,i(f)}),this.parent=V.b,this.transform_error=o??((n=this.parent)==null?void 0:n.transform_error)??(f=>f),a(this,v,Pe(()=>{if(D){const f=s(this,$);Ve();const d=f.data===We;if(f.data.startsWith(pe)){const h=JSON.parse(f.data.slice(pe.length));p(this,u,ke).call(this,h)}else d?p(this,u,Ne).call(this):p(this,u,Ae).call(this)}else p(this,u,oe).call(this)},pt)),D&&a(this,E,M)}defer_effect(e){je(e,s(this,x),s(this,B))}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!s(this,w).pending}update_pending_count(e,r){p(this,u,fe).call(this,e,r),a(this,C,s(this,C)+e),!(!s(this,A)||s(this,W))&&(a(this,W,!0),j(()=>{a(this,W,!1),s(this,A)&&ze(s(this,A),s(this,C))}))}get_effect_pending(){return s(this,ee).call(this),Ee(s(this,A))}error(e){var r=s(this,w).onerror;let i=s(this,w).failed;if(!r&&!i)throw e;s(this,S)&&(ie(s(this,S)),a(this,S,null)),s(this,m)&&(ie(s(this,m)),a(this,m,null)),s(this,T)&&(ie(s(this,T)),a(this,T,null)),D&&(K(s(this,$)),Ue(),K(Ge()));var o=!1,n=!1;const f=()=>{if(o){Ze();return}o=!0,n&&Je(),s(this,T)!==null&&se(s(this,T),()=>{a(this,T,null)}),p(this,u,X).call(this,()=>{p(this,u,oe).call(this)})},d=c=>{try{n=!0,r==null||r(c,f),n=!1}catch(h){z(h,s(this,v)&&s(this,v).parent)}i&&a(this,T,p(this,u,X).call(this,()=>{try{return I(()=>{var h=V;h.b=this,h.f|=_e,i(s(this,E),()=>c,()=>f)})}catch(h){return z(h,s(this,v).parent),null}}))};j(()=>{var c;try{c=this.transform_error(e)}catch(h){z(h,s(this,v)&&s(this,v).parent);return}c!==null&&typeof c=="object"&&typeof c.then=="function"?c.then(d,h=>z(h,s(this,v)&&s(this,v).parent)):d(c)})}}E=new WeakMap,$=new WeakMap,w=new WeakMap,Y=new WeakMap,v=new WeakMap,S=new WeakMap,m=new WeakMap,T=new WeakMap,R=new WeakMap,C=new WeakMap,N=new WeakMap,W=new WeakMap,x=new WeakMap,B=new WeakMap,A=new WeakMap,ee=new WeakMap,u=new WeakSet,Ae=function(){try{a(this,S,I(()=>s(this,Y).call(this,s(this,E))))}catch(e){this.error(e)}},ke=function(e){const r=s(this,w).failed;r&&a(this,T,I(()=>{r(s(this,E),()=>e,()=>()=>{})}))},Ne=function(){const e=s(this,w).pending;if(e){this.is_pending=!0,a(this,m,I(()=>e(s(this,E))));var r=ve;j(()=>{var i=a(this,R,document.createDocumentFragment()),o=Te();i.append(o),a(this,S,p(this,u,X).call(this,()=>I(()=>s(this,Y).call(this,o)))),s(this,N)===0&&(s(this,E).before(i),a(this,R,null),se(s(this,m),()=>{a(this,m,null)}),p(this,u,Q).call(this,r))})}},oe=function(){var e=ve;try{if(this.is_pending=this.has_pending_snippet(),a(this,N,0),a(this,C,0),a(this,S,I(()=>{s(this,Y).call(this,s(this,E))})),s(this,N)>0){var r=a(this,R,document.createDocumentFragment());xe(s(this,S),r);const i=s(this,w).pending;a(this,m,I(()=>i(s(this,E))))}else p(this,u,Q).call(this,e)}catch(i){this.error(i)}},Q=function(e){this.is_pending=!1;for(const r of s(this,x))ge(r,Be),e.schedule(r);for(const r of s(this,B))ge(r,He),e.schedule(r);s(this,x).clear(),s(this,B).clear()},X=function(e){var r=V,i=we,o=Se;J(s(this,v)),Z(s(this,v)),ye(s(this,v).ctx);try{return $e.ensure(),e()}catch(n){return qe(n),null}finally{J(r),Z(i),ye(o)}},fe=function(e,r){var i;if(!this.has_pending_snippet()){this.parent&&p(i=this.parent,u,fe).call(i,e,r);return}a(this,N,s(this,N)+e),s(this,N)===0&&(p(this,u,Q).call(this,r),s(this,m)&&se(s(this,m),()=>{a(this,m,null)}),s(this,R)&&(s(this,E).before(s(this,R)),a(this,R,null)))};function kt(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}const yt=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function Nt(t){return yt.includes(t)}const bt={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject",novalidate:"noValidate",allowfullscreen:"allowFullscreen",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback"};function Dt(t){return t=t.toLowerCase(),bt[t]??t}const Et=["touchstart","touchmove"];function mt(t){return Et.includes(t)}const Tt=["textarea","script","style","title"];function Ot(t){return Tt.includes(t)}const F=Symbol("events"),De=new Set,ue=new Set;function Lt(t){if(!D)return;t.removeAttribute("onload"),t.removeAttribute("onerror");const e=t.__e;e!==void 0&&(t.__e=void 0,queueMicrotask(()=>{t.isConnected&&t.dispatchEvent(e)}))}function Oe(t,e,r,i={}){function o(n){if(i.capture||ce.call(e,n),!n.cancelBubble)return et(()=>r==null?void 0:r.call(this,n))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?j(()=>{e.addEventListener(t,o,i)}):e.addEventListener(t,o,i),o}function It(t,e,r,i={}){var o=Oe(e,t,r,i);return()=>{t.removeEventListener(e,o,i)}}function Mt(t,e,r,i,o){var n={capture:i,passive:o},f=Oe(t,e,r,n);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&Ke(()=>{e.removeEventListener(t,f,n)})}function Ft(t,e,r){(e[F]??(e[F]={}))[t]=r}function Yt(t){for(var e=0;e<t.length;e++)De.add(t[e]);for(var r of ue)r(t)}let be=null;function ce(t){var O,b;var e=this,r=e.ownerDocument,i=t.type,o=((O=t.composedPath)==null?void 0:O.call(t))||[],n=o[0]||t.target;be=t;var f=0,d=be===t&&t[F];if(d){var c=o.indexOf(d);if(c!==-1&&(e===document||e===window)){t[F]=e;return}var h=o.indexOf(e);if(h===-1)return;c<=h&&(f=c)}if(n=o[f]||t.target,n!==e){tt(t,"currentTarget",{configurable:!0,get(){return n||r}});var P=we,H=V;Z(null),J(null);try{for(var k,g=[];n!==null;){var _=n.assignedSlot||n.parentNode||n.host||null;try{var y=(b=n[F])==null?void 0:b[i];y!=null&&(!n.disabled||t.target===n)&&y.call(n,t)}catch(L){k?g.push(L):k=L}if(t.cancelBubble||_===e||_===null)break;n=_}if(k){for(let L of g)queueMicrotask(()=>{throw L});throw k}}finally{t[F]=e,delete t.currentTarget,Z(P),J(H)}}}function Ct(t,e){var r=e==null?"":typeof e=="object"?`${e}`:e;r!==(t.__t??(t.__t=t.nodeValue))&&(t.__t=r,t.nodeValue=`${r}`)}function wt(t,e){return Le(t,e)}function Pt(t,e){ne(),e.intro=e.intro??!1;const r=e.target,i=D,o=M;try{for(var n=rt(r);n&&(n.nodeType!==Re||n.data!==st);)n=it(n);if(!n)throw ae;U(!0),K(n);const f=Le(t,{...e,anchor:n});return U(!1),f}catch(f){if(f instanceof Error&&f.message.split(`
|
|
2
|
+
`).some(d=>d.startsWith("https://svelte.dev/e/")))throw f;return f!==ae&&console.warn("Failed to hydrate: ",f),e.recover===!1&&nt(),ne(),at(r),U(!1),wt(t,e)}finally{U(i),K(o)}}const G=new Map;function Le(t,{target:e,anchor:r,props:i={},events:o,context:n,intro:f=!0,transformError:d}){ne();var c=void 0,h=ot(()=>{var P=r??e.appendChild(Te());vt(P,{pending:()=>{}},g=>{ut({});var _=Se;if(n&&(_.c=n),o&&(i.$$events=o),D&&dt(g,null),c=t(g,i)||{},D&&(V.nodes.end=M,M===null||M.nodeType!==Re||M.data!==ct))throw lt(),ae;ht()},d);var H=new Set,k=g=>{for(var _=0;_<g.length;_++){var y=g[_];if(!H.has(y)){H.add(y);var O=mt(y);for(const te of[e,document]){var b=G.get(te);b===void 0&&(b=new Map,G.set(te,b));var L=b.get(y);L===void 0?(te.addEventListener(y,ce,{passive:O}),b.set(y,1)):b.set(y,L+1)}}}};return k(ft(De)),ue.add(k),()=>{var O;for(var g of H)for(const b of[e,document]){var _=G.get(b),y=_.get(g);--y==0?(b.removeEventListener(g,ce),_.delete(g),_.size===0&&G.delete(b)):_.set(g,y)}ue.delete(k),P!==r&&((O=P.parentNode)==null||O.removeChild(P))}});return le.set(c,h),c}let le=new WeakMap;function Vt(t,e){const r=le.get(t);return r?(le.delete(t),r(e)):Promise.resolve()}export{Ft as a,Nt as b,Oe as c,Yt as d,Mt as e,_t as f,Ot as g,Pt as h,kt as i,wt as m,Dt as n,It as o,Lt as r,Ct as s,Vt as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var Zt=t=>{throw TypeError(t)};var Ne=(t,e,n)=>e.has(t)||Zt("Cannot "+n);var v=(t,e,n)=>(Ne(t,e,"read from private field"),n?n.call(t):e.get(t)),A=(t,e,n)=>e.has(t)?Zt("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n);import{b8 as P,k as T,a5 as I,t as gt,bu as De}from"./BsQ08Wq_.js";import{w as Dt}from"./FDS7fbwH.js";import{b as qe,H as qt,S as Vt,R as Bt}from"./BUApaBEI.js";import{o as te}from"./DptdhtA1.js";new URL("sveltekit-internal://");function Ve(t,e){return t==="/"||e==="ignore"?t:e==="never"?t.endsWith("/")?t.slice(0,-1):t:e==="always"&&!t.endsWith("/")?t+"/":t}function Be(t){return t.split("%25").map(decodeURI).join("%25")}function Ke(t){for(const e in t)t[e]=decodeURIComponent(t[e]);return t}function At({href:t}){return t.split("#")[0]}function Fe(t,e,n,r=!1){const a=new URL(t);Object.defineProperty(a,"searchParams",{value:new Proxy(a.searchParams,{get(i,o){if(o==="get"||o==="getAll"||o==="has")return(c,...p)=>(n(c),i[o](c,...p));e();const l=Reflect.get(i,o);return typeof l=="function"?l.bind(i):l}}),enumerable:!0,configurable:!0});const s=["href","pathname","search","toString","toJSON"];r&&s.push("hash");for(const i of s)Object.defineProperty(a,i,{get(){return e(),t[i]},enumerable:!0,configurable:!0});return a}function Ge(...t){let e=5381;for(const n of t)if(typeof n=="string"){let r=n.length;for(;r;)e=e*33^n.charCodeAt(--r)}else if(ArrayBuffer.isView(n)){const r=new Uint8Array(n.buffer,n.byteOffset,n.byteLength);let a=r.length;for(;a;)e=e*33^r[--a]}else throw new TypeError("value must be a string or TypedArray");return(e>>>0).toString(36)}const He=window.fetch;window.fetch=(t,e)=>((t instanceof Request?t.method:(e==null?void 0:e.method)||"GET")!=="GET"&&z.delete(Kt(t)),He(t,e));const z=new Map;function Me(t,e){const n=Kt(t,e),r=document.querySelector(n);if(r!=null&&r.textContent){r.remove();let{body:a,...s}=JSON.parse(r.textContent);const i=r.getAttribute("data-ttl");return i&&z.set(n,{body:a,init:s,ttl:1e3*Number(i)}),r.getAttribute("data-b64")!==null&&(a=qe(a)),Promise.resolve(new Response(a,s))}return window.fetch(t,e)}function We(t,e,n){if(z.size>0){const r=Kt(t,n),a=z.get(r);if(a){if(performance.now()<a.ttl&&["default","force-cache","only-if-cached",void 0].includes(n==null?void 0:n.cache))return new Response(a.body,a.init);z.delete(r)}}return window.fetch(e,n)}function Kt(t,e){let r=`script[data-sveltekit-fetched][data-url=${JSON.stringify(t instanceof Request?t.url:t)}]`;if(e!=null&&e.headers||e!=null&&e.body){const a=[];e.headers&&a.push([...new Headers(e.headers)].join(",")),e.body&&(typeof e.body=="string"||ArrayBuffer.isView(e.body))&&a.push(e.body),r+=`[data-hash="${Ge(...a)}"]`}return r}const Ye=/^(\[)?(\.\.\.)?(\w+)(?:=(\w+))?(\])?$/;function ze(t){const e=[];return{pattern:t==="/"?/^\/$/:new RegExp(`^${Xe(t).map(r=>{const a=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(r);if(a)return e.push({name:a[1],matcher:a[2],optional:!1,rest:!0,chained:!0}),"(?:/([^]*))?";const s=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(r);if(s)return e.push({name:s[1],matcher:s[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!r)return;const i=r.split(/\[(.+?)\](?!\])/);return"/"+i.map((l,c)=>{if(c%2){if(l.startsWith("x+"))return Pt(String.fromCharCode(parseInt(l.slice(2),16)));if(l.startsWith("u+"))return Pt(String.fromCharCode(...l.slice(2).split("-").map(f=>parseInt(f,16))));const p=Ye.exec(l),[,h,_,g,d]=p;return e.push({name:g,matcher:d,optional:!!h,rest:!!_,chained:_?c===1&&i[0]==="":!1}),_?"([^]*?)":h?"([^/]*)?":"([^/]+?)"}return Pt(l)}).join("")}).join("")}/?$`),params:e}}function Je(t){return t!==""&&!/^\([^)]+\)$/.test(t)}function Xe(t){return t.slice(1).split("/").filter(Je)}function Qe(t,e,n){const r={},a=t.slice(1),s=a.filter(o=>o!==void 0);let i=0;for(let o=0;o<e.length;o+=1){const l=e[o];let c=a[o-i];if(l.chained&&l.rest&&i&&(c=a.slice(o-i,o+1).filter(p=>p).join("/"),i=0),c===void 0)if(l.rest)c="";else continue;if(!l.matcher||n[l.matcher](c)){r[l.name]=c;const p=e[o+1],h=a[o+1];p&&!p.rest&&p.optional&&h&&l.chained&&(i=0),!p&&!h&&Object.keys(r).length===s.length&&(i=0);continue}if(l.optional&&l.chained){i++;continue}return}if(!i)return r}function Pt(t){return t.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function Ze({nodes:t,server_loads:e,dictionary:n,matchers:r}){const a=new Set(e);return Object.entries(n).map(([o,[l,c,p]])=>{const{pattern:h,params:_}=ze(o),g={id:o,exec:d=>{const f=h.exec(d);if(f)return Qe(f,_,r)},errors:[1,...p||[]].map(d=>t[d]),layouts:[0,...c||[]].map(i),leaf:s(l)};return g.errors.length=g.layouts.length=Math.max(g.errors.length,g.layouts.length),g});function s(o){const l=o<0;return l&&(o=~o),[l,t[o]]}function i(o){return o===void 0?o:[a.has(o),t[o]]}}function ge(t,e=JSON.parse){try{return e(sessionStorage[t])}catch{}}function ee(t,e,n=JSON.stringify){const r=n(e);try{sessionStorage[t]=r}catch{}}var fe;const U=((fe=globalThis.__sveltekit_d5v56a)==null?void 0:fe.base)??"";var ue;const tn=((ue=globalThis.__sveltekit_d5v56a)==null?void 0:ue.assets)??U??"",en="1780905173365",me="sveltekit:snapshot",_e="sveltekit:scroll",we="sveltekit:states",nn="sveltekit:pageurl",F="sveltekit:history",X="sveltekit:navigation",D={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},Et=location.origin;function Ft(t){if(t instanceof URL)return t;let e=document.baseURI;if(!e){const n=document.getElementsByTagName("base");e=n.length?n[0].href:document.URL}return new URL(t,e)}function V(){return{x:pageXOffset,y:pageYOffset}}function K(t,e){return t.getAttribute(`data-sveltekit-${e}`)}const ne={...D,"":D.hover};function ve(t){let e=t.assignedSlot??t.parentNode;return(e==null?void 0:e.nodeType)===11&&(e=e.host),e}function ye(t,e){for(;t&&t!==e;){if(t.nodeName.toUpperCase()==="A"&&t.hasAttribute("href"))return t;t=ve(t)}}function Ot(t,e,n){let r;try{if(r=new URL(t instanceof SVGAElement?t.href.baseVal:t.href,document.baseURI),n&&r.hash.match(/^#[^/]/)){const o=location.hash.split("#")[1]||"/";r.hash=`#${o}${r.hash}`}}catch{}const a=t instanceof SVGAElement?t.target.baseVal:t.target,s=!r||!!a||St(r,e,n)||(t.getAttribute("rel")||"").split(/\s+/).includes("external"),i=(r==null?void 0:r.origin)===Et&&t.hasAttribute("download");return{url:r,external:s,target:a,download:i}}function mt(t){let e=null,n=null,r=null,a=null,s=null,i=null,o=t;for(;o&&o!==document.documentElement;)r===null&&(r=K(o,"preload-code")),a===null&&(a=K(o,"preload-data")),e===null&&(e=K(o,"keepfocus")),n===null&&(n=K(o,"noscroll")),s===null&&(s=K(o,"reload")),i===null&&(i=K(o,"replacestate")),o=ve(o);function l(c){switch(c){case"":case"true":return!0;case"off":case"false":return!1;default:return}}return{preload_code:ne[r??"off"],preload_data:ne[a??"off"],keepfocus:l(e),noscroll:l(n),reload:l(s),replace_state:l(i)}}function ae(t){const e=Dt(t);let n=!0;function r(){n=!0,e.update(i=>i)}function a(i){n=!1,e.set(i)}function s(i){let o;return e.subscribe(l=>{(o===void 0||n&&l!==o)&&i(o=l)})}return{notify:r,set:a,subscribe:s}}const be={v:()=>{}};function an(){const{set:t,subscribe:e}=Dt(!1);let n;async function r(){clearTimeout(n);try{const a=await fetch(`${tn}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!a.ok)return!1;const i=(await a.json()).version!==en;return i&&(t(!0),be.v(),clearTimeout(n)),i}catch{return!1}}return{subscribe:e,check:r}}function St(t,e,n){return t.origin!==Et||!t.pathname.startsWith(e)?!0:n?t.pathname!==location.pathname:!1}function Cn(t){}const ke=new Set(["load","prerender","csr","ssr","trailingSlash","config"]);[...ke];const rn=new Set([...ke]);[...rn];function on(t){return t.filter(e=>e!=null)}function Gt(t){return t instanceof qt||t instanceof Vt?t.status:500}function sn(t){return t instanceof Vt?t.text:"Internal Error"}let S,Q,Tt;const ln=te.toString().includes("$$")||/function \w+\(\) \{\}/.test(te.toString()),re="a:";var at,rt,ot,it,st,lt,ct,ft,de,ut,he,dt,pe;ln?(S={data:{},form:null,error:null,params:{},route:{id:null},state:{},status:-1,url:new URL(re)},Q={current:null},Tt={current:!1}):(S=new(de=class{constructor(){A(this,at,P({}));A(this,rt,P(null));A(this,ot,P(null));A(this,it,P({}));A(this,st,P({id:null}));A(this,lt,P({}));A(this,ct,P(-1));A(this,ft,P(new URL(re)))}get data(){return T(v(this,at))}set data(e){I(v(this,at),e)}get form(){return T(v(this,rt))}set form(e){I(v(this,rt),e)}get error(){return T(v(this,ot))}set error(e){I(v(this,ot),e)}get params(){return T(v(this,it))}set params(e){I(v(this,it),e)}get route(){return T(v(this,st))}set route(e){I(v(this,st),e)}get state(){return T(v(this,lt))}set state(e){I(v(this,lt),e)}get status(){return T(v(this,ct))}set status(e){I(v(this,ct),e)}get url(){return T(v(this,ft))}set url(e){I(v(this,ft),e)}},at=new WeakMap,rt=new WeakMap,ot=new WeakMap,it=new WeakMap,st=new WeakMap,lt=new WeakMap,ct=new WeakMap,ft=new WeakMap,de),Q=new(he=class{constructor(){A(this,ut,P(null))}get current(){return T(v(this,ut))}set current(e){I(v(this,ut),e)}},ut=new WeakMap,he),Tt=new(pe=class{constructor(){A(this,dt,P(!1))}get current(){return T(v(this,dt))}set current(e){I(v(this,dt),e)}},dt=new WeakMap,pe),be.v=()=>Tt.current=!0);function cn(t){Object.assign(S,t)}const oe={spanContext(){return fn},setAttribute(){return this},setAttributes(){return this},addEvent(){return this},setStatus(){return this},updateName(){return this},end(){return this},isRecording(){return!1},recordException(){return this},addLink(){return this},addLinks(){return this}},fn={traceId:"",spanId:"",traceFlags:0},un=new Set(["icon","shortcut icon","apple-touch-icon"]);let W=null;const j=ge(_e)??{},Z=ge(me)??{},$={url:ae({}),page:ae({}),navigating:Dt(null),updated:an()};function Ht(t){j[t]=V()}function dn(t,e){let n=t+1;for(;j[n];)delete j[n],n+=1;for(n=e+1;Z[n];)delete Z[n],n+=1}function tt(t,e=!1){return e?location.replace(t.href):location.href=t.href,new Promise(()=>{})}async function Re(){if("serviceWorker"in navigator){const t=await navigator.serviceWorker.getRegistration(U||"/");t&&await t.update()}}function ie(){}let Mt,Ct,_t,O,$t,k;const wt=[],vt=[];let b=null;function jt(){var t;(t=b==null?void 0:b.fork)==null||t.then(e=>e==null?void 0:e.discard()),b=null}const pt=new Map,Ee=new Set,hn=new Set,J=new Set;let w={branch:[],error:null,url:null},Se=!1,yt=!1,se=!0,et=!1,Y=!1,xe=!1,Wt=!1,Le,R,L,q;const bt=new Set,le=new Map;async function Dn(t,e,n){var s,i,o,l,c;(s=globalThis.__sveltekit_d5v56a)!=null&&s.data&&globalThis.__sveltekit_d5v56a.data,document.URL!==location.href&&(location.href=location.href),k=t,await((o=(i=t.hooks).init)==null?void 0:o.call(i)),Mt=Ze(t),O=document.documentElement,$t=e,Ct=t.nodes[0],_t=t.nodes[1],Ct(),_t(),R=(l=history.state)==null?void 0:l[F],L=(c=history.state)==null?void 0:c[X],R||(R=L=Date.now(),history.replaceState({...history.state,[F]:R,[X]:L},""));const r=j[R];function a(){r&&(history.scrollRestoration="manual",scrollTo(r.x,r.y))}n?(a(),await Sn($t,n)):(await G({type:"enter",url:Ft(k.hash?Un(new URL(location.href)):location.href),replace_state:!0}),a()),En()}function pn(){wt.length=0,Wt=!1}function Ue(t){vt.some(e=>e==null?void 0:e.snapshot)&&(Z[t]=vt.map(e=>{var n;return(n=e==null?void 0:e.snapshot)==null?void 0:n.capture()}))}function Ae(t){var e;(e=Z[t])==null||e.forEach((n,r)=>{var a,s;(s=(a=vt[r])==null?void 0:a.snapshot)==null||s.restore(n)})}function ce(){Ht(R),ee(_e,j),Ue(L),ee(me,Z)}async function Pe(t,e,n,r){let a;e.invalidateAll&&jt(),await G({type:"goto",url:Ft(t),keepfocus:e.keepFocus,noscroll:e.noScroll,replace_state:e.replaceState,state:e.state,redirect_count:n,nav_token:r,accept:()=>{e.invalidateAll&&(Wt=!0,a=[...le.keys()]),e.invalidate&&e.invalidate.forEach(Rn)}}),e.invalidateAll&>().then(gt).then(()=>{le.forEach(({resource:s},i)=>{var o;a!=null&&a.includes(i)&&((o=s.refresh)==null||o.call(s))})})}async function gn(t){if(t.id!==(b==null?void 0:b.id)){jt();const e={};bt.add(e),b={id:t.id,token:e,promise:Oe({...t,preload:e}).then(n=>(bt.delete(e),n.type==="loaded"&&n.state.error&&jt(),n)),fork:null}}return b.promise}async function It(t){var n;const e=(n=await xt(t,!1))==null?void 0:n.route;e&&await Promise.all([...e.layouts,e.leaf].filter(Boolean).map(r=>r[1]()))}async function Te(t,e,n){var s;const r={params:w.params,route:{id:((s=w.route)==null?void 0:s.id)??null},url:new URL(location.href)};w={...t.state,nav:r};const a=document.querySelector("style[data-sveltekit]");if(a&&a.remove(),Object.assign(S,t.props.page),Le=new k.root({target:e,props:{...t.props,stores:$,components:vt},hydrate:n,sync:!1,transformError:void 0}),await Promise.resolve(),Ae(L),n){const i={from:null,to:{...r,scroll:j[R]??V()},willUnload:!1,type:"enter",complete:Promise.resolve()};J.forEach(o=>o(i))}yt=!0}async function kt({url:t,params:e,branch:n,errors:r,status:a,error:s,route:i,form:o}){let l="never";if(U&&(t.pathname===U||t.pathname===U+"/"))l="always";else for(const d of n)(d==null?void 0:d.slash)!==void 0&&(l=d.slash);t.pathname=Ve(t.pathname,l),t.search=t.search;const c={type:"loaded",state:{url:t,params:e,branch:n,error:s,route:i},props:{constructors:on(n).map(d=>d.node.component),page:Qt(S)}};o!==void 0&&(c.props.form=o);let p={},h=!S,_=0;for(let d=0;d<Math.max(n.length,w.branch.length);d+=1){const f=n[d],u=w.branch[d];(f==null?void 0:f.data)!==(u==null?void 0:u.data)&&(h=!0),f&&(p={...p,...f.data},h&&(c.props[`data_${_}`]=p),_+=1)}return(!w.url||t.href!==w.url.href||w.error!==s||o!==void 0&&o!==S.form||h)&&(c.props.page={error:s,params:e,route:{id:(i==null?void 0:i.id)??null},state:{},status:a,url:new URL(t),form:o??null,data:h?p:S.data}),c}async function Yt({loader:t,parent:e,url:n,params:r,route:a,server_data_node:s}){var p,h,_;let i=null,o=!0;const l={dependencies:new Set,params:new Set,parent:!1,route:!1,url:!1,search_params:new Set},c=await t();if((p=c.universal)!=null&&p.load){let g=function(...f){for(const u of f){const{href:m}=new URL(u,n);l.dependencies.add(m)}};const d={tracing:{enabled:!1,root:oe,current:oe},route:new Proxy(a,{get:(f,u)=>(o&&(l.route=!0),f[u])}),params:new Proxy(r,{get:(f,u)=>(o&&l.params.add(u),f[u])}),data:(s==null?void 0:s.data)??null,url:Fe(n,()=>{o&&(l.url=!0)},f=>{o&&l.search_params.add(f)},k.hash),async fetch(f,u){f instanceof Request&&(u={body:f.method==="GET"||f.method==="HEAD"?void 0:await f.blob(),cache:f.cache,credentials:f.credentials,headers:[...f.headers].length>0?f==null?void 0:f.headers:void 0,integrity:f.integrity,keepalive:f.keepalive,method:f.method,mode:f.mode,redirect:f.redirect,referrer:f.referrer,referrerPolicy:f.referrerPolicy,signal:f.signal,...u});const{resolved:m,promise:y}=Ie(f,u,n);return o&&g(m.href),y},setHeaders:()=>{},depends:g,parent(){return o&&(l.parent=!0),e()},untrack(f){o=!1;try{return f()}finally{o=!0}}};i=await c.universal.load.call(null,d)??null}return{node:c,loader:t,server:s,universal:(h=c.universal)!=null&&h.load?{type:"data",data:i,uses:l}:null,data:i??(s==null?void 0:s.data)??null,slash:((_=c.universal)==null?void 0:_.trailingSlash)??(s==null?void 0:s.slash)}}function Ie(t,e,n){let r=t instanceof Request?t.url:t;const a=new URL(r,n);a.origin===n.origin&&(r=a.href.slice(n.origin.length));const s=yt?We(r,a.href,e):Me(r,e);return{resolved:a,promise:s}}function mn(t,e,n,r,a,s){if(Wt)return!0;if(!a)return!1;if(a.parent&&t||a.route&&e||a.url&&n)return!0;for(const i of a.search_params)if(r.has(i))return!0;for(const i of a.params)if(s[i]!==w.params[i])return!0;for(const i of a.dependencies)if(wt.some(o=>o(new URL(i))))return!0;return!1}function zt(t,e){return(t==null?void 0:t.type)==="data"?t:(t==null?void 0:t.type)==="skip"?e??null:null}function _n(t,e){if(!t)return new Set(e.searchParams.keys());const n=new Set([...t.searchParams.keys(),...e.searchParams.keys()]);for(const r of n){const a=t.searchParams.getAll(r),s=e.searchParams.getAll(r);a.every(i=>s.includes(i))&&s.every(i=>a.includes(i))&&n.delete(r)}return n}function wn({error:t,url:e,route:n,params:r}){return{type:"loaded",state:{error:t,url:e,route:n,params:r,branch:[]},props:{page:Qt(S),constructors:[]}}}async function Oe({id:t,invalidating:e,url:n,params:r,route:a,preload:s}){if((b==null?void 0:b.id)===t)return bt.delete(b.token),b.promise;const{errors:i,layouts:o,leaf:l}=a,c=[...o,l];i.forEach(u=>u==null?void 0:u().catch(()=>{})),c.forEach(u=>u==null?void 0:u[1]().catch(()=>{}));const p=w.url?t!==Rt(w.url):!1,h=w.route?a.id!==w.route.id:!1,_=_n(w.url,n);let g=!1;const d=c.map(async(u,m)=>{var C;if(!u)return;const y=w.branch[m];return u[1]===(y==null?void 0:y.loader)&&!mn(g,h,p,_,(C=y.universal)==null?void 0:C.uses,r)?y:(g=!0,Yt({loader:u[1],url:n,params:r,route:a,parent:async()=>{var ht;const N={};for(let B=0;B<m;B+=1)Object.assign(N,(ht=await d[B])==null?void 0:ht.data);return N},server_data_node:zt(u[0]?{type:"skip"}:null,u[0]?y==null?void 0:y.server:void 0)}))});for(const u of d)u.catch(()=>{});const f=[];for(let u=0;u<c.length;u+=1)if(c[u])try{f.push(await d[u])}catch(m){if(m instanceof Bt)return{type:"redirect",location:m.location};if(bt.has(s))return wn({error:await nt(m,{params:r,url:n,route:{id:a.id}}),url:n,params:r,route:a});let y=Gt(m),x;if(m instanceof qt)x=m.body;else{if(await $.updated.check())return await Re(),await tt(n);x=await nt(m,{params:r,url:n,route:{id:a.id}})}const C=await vn(u,f,i);return C?kt({url:n,params:r,branch:f.slice(0,C.idx).concat(C.node),errors:i,status:y,error:x,route:a}):await $e(n,{id:a.id},x,y)}else f.push(void 0);return kt({url:n,params:r,branch:f,errors:i,status:200,error:null,route:a,form:e?void 0:null})}async function vn(t,e,n){for(;t--;)if(n[t]){let r=t;for(;!e[r];)r-=1;try{return{idx:r+1,node:{node:await n[t](),loader:n[t],data:{},server:null,universal:null}}}catch{continue}}}async function Jt({status:t,error:e,url:n,route:r}){const a={};let s=null;try{const i=await Yt({loader:Ct,url:n,params:a,route:r,parent:()=>Promise.resolve({}),server_data_node:zt(s)}),o={node:await _t(),loader:_t,universal:null,server:null,data:null};return kt({url:n,params:a,branch:[i,o],status:t,error:e,errors:[],route:null})}catch(i){if(i instanceof Bt)return Pe(new URL(i.location,location.href),{},0);throw i}}async function yn(t){const e=t.href;if(pt.has(e))return pt.get(e);let n;try{const r=(async()=>{let a=await k.hooks.reroute({url:new URL(t),fetch:async(s,i)=>Ie(s,i,t).promise})??t;if(typeof a=="string"){const s=new URL(t);k.hash?s.hash=a:s.pathname=a,a=s}return a})();pt.set(e,r),n=await r}catch{pt.delete(e);return}return n}async function xt(t,e){if(t&&!St(t,U,k.hash)){const n=await yn(t);if(!n)return;const r=bn(n);for(const a of Mt){const s=a.exec(r);if(s)return{id:Rt(t),invalidating:e,route:a,params:Ke(s),url:t}}}}function bn(t){return Be(k.hash?t.hash.replace(/^#/,"").replace(/[?#].+/,""):t.pathname.slice(U.length))||"/"}function Rt(t){return(k.hash?t.hash.replace(/^#/,""):t.pathname)+t.search}function Ce({url:t,type:e,intent:n,delta:r,event:a,scroll:s}){let i=!1;const o=Xt(w,n,t,e,s??null);r!==void 0&&(o.navigation.delta=r),a!==void 0&&(o.navigation.event=a);const l={...o.navigation,cancel:()=>{i=!0,o.reject(new Error("navigation cancelled"))}};return et||Ee.forEach(c=>c(l)),i?null:o}async function G({type:t,url:e,popped:n,keepfocus:r,noscroll:a,replace_state:s,state:i={},redirect_count:o=0,nav_token:l={},accept:c=ie,block:p=ie,event:h}){var B;const _=q;q=l;const g=await xt(e,!1),d=t==="enter"?Xt(w,g,e,t):Ce({url:e,type:t,delta:n==null?void 0:n.delta,intent:g,scroll:n==null?void 0:n.scroll,event:h});if(!d){p(),q===l&&(q=_);return}const f=R,u=L;c(),et=!0,yt&&d.navigation.type!=="enter"&&$.navigating.set(Q.current=d.navigation);let m=g&&await Oe(g);if(!m){if(St(e,U,k.hash))return await tt(e,s);m=await $e(e,{id:null},await nt(new Vt(404,"Not Found",`Not found: ${e.pathname}`),{url:e,params:{},route:{id:null}}),404,s)}if(e=(g==null?void 0:g.url)||e,q!==l)return d.reject(new Error("navigation aborted")),!1;if(m.type==="redirect"){if(o<20){await G({type:t,url:new URL(m.location,e),popped:n,keepfocus:r,noscroll:a,replace_state:s,state:i,redirect_count:o+1,nav_token:l}),d.fulfil(void 0);return}m=await Jt({status:500,error:await nt(new Error("Redirect loop"),{url:e,params:{},route:{id:null}}),url:e,route:{id:null}})}else m.props.page.status>=400&&await $.updated.check()&&(await Re(),await tt(e,s));if(pn(),Ht(f),Ue(u),m.props.page.url.pathname!==e.pathname&&(e.pathname=m.props.page.url.pathname),i=n?n.state:i,!n){const E=s?0:1,H={[F]:R+=E,[X]:L+=E,[we]:i};(s?history.replaceState:history.pushState).call(history,H,"",e),s||dn(R,L)}const y=g&&(b==null?void 0:b.id)===g.id?b.fork:null;b=null,m.props.page.state=i;let x;if(yt){const E=(await Promise.all(Array.from(hn,M=>M(d.navigation)))).filter(M=>typeof M=="function");if(E.length>0){let M=function(){E.forEach(Ut=>{J.delete(Ut)})};E.push(M),E.forEach(Ut=>{J.add(Ut)})}const H=d.navigation.to;w={...m.state,nav:{params:H.params,route:H.route,url:H.url}},m.props.page&&(m.props.page.url=e);const Lt=y&&await y;Lt?x=Lt.commit():(W=null,Le.$set(m.props),W&&Object.assign(m.props.page,W),cn(m.props.page),x=(B=De)==null?void 0:B()),xe=!0}else await Te(m,$t,!1);const{activeElement:C}=document;await x,await gt(),await gt();let N=null;if(se){const E=n?n.scroll:a?V():null;E?scrollTo(E.x,E.y):(N=e.hash&&document.getElementById(je(e)))?N.scrollIntoView():scrollTo(0,0)}const ht=document.activeElement!==C&&document.activeElement!==document.body;!r&&!ht&&Ln(e,!N),se=!0,m.props.page&&(W&&Object.assign(m.props.page,W),Object.assign(S,m.props.page)),et=!1,t==="popstate"&&Ae(L),d.fulfil(void 0),d.navigation.to&&(d.navigation.to.scroll=V()),J.forEach(E=>E(d.navigation)),$.navigating.set(Q.current=null)}async function $e(t,e,n,r,a){return t.origin===Et&&t.pathname===location.pathname&&!Se?await Jt({status:r,error:n,url:t,route:e}):await tt(t,a)}function kn(){let t,e={element:void 0,href:void 0},n;O.addEventListener("mousemove",o=>{const l=o.target;clearTimeout(t),t=setTimeout(()=>{s(l,D.hover)},20)});function r(o){o.defaultPrevented||s(o.composedPath()[0],D.tap)}O.addEventListener("mousedown",r),O.addEventListener("touchstart",r,{passive:!0});const a=new IntersectionObserver(o=>{for(const l of o)l.isIntersecting&&(It(new URL(l.target.href)),a.unobserve(l.target))},{threshold:0});async function s(o,l){const c=ye(o,O),p=c===e.element&&(c==null?void 0:c.href)===e.href&&l>=n;if(!c||p)return;const{url:h,external:_,download:g}=Ot(c,U,k.hash);if(_||g)return;const d=mt(c),f=h&&Rt(w.url)===Rt(h);if(!(d.reload||f))if(l<=d.preload_data){e={element:c,href:c.href},n=D.tap;const u=await xt(h,!1);if(!u)return;gn(u)}else l<=d.preload_code&&(e={element:c,href:c.href},n=l,It(h))}function i(){a.disconnect();for(const o of O.querySelectorAll("a")){const{url:l,external:c,download:p}=Ot(o,U,k.hash);if(c||p)continue;const h=mt(o);h.reload||(h.preload_code===D.viewport&&a.observe(o),h.preload_code===D.eager&&It(l))}}J.add(i),i()}function nt(t,e){if(t instanceof qt)return t.body;const n=Gt(t),r=sn(t);return k.hooks.handleError({error:t,event:e,status:n,message:r})??{message:r}}function qn(t,e={}){return t=new URL(Ft(t)),t.origin!==Et?Promise.reject(new Error("goto: invalid URL")):Pe(t,e,0)}function Rn(t){if(typeof t=="function")wt.push(t);else{const{href:e}=new URL(t,location.href);wt.push(n=>n.href===e)}}function En(){var e;history.scrollRestoration="manual",addEventListener("beforeunload",n=>{let r=!1;if(ce(),!et){const a=Xt(w,void 0,null,"leave"),s={...a.navigation,cancel:()=>{r=!0,a.reject(new Error("navigation cancelled"))}};Ee.forEach(i=>i(s))}r?(n.preventDefault(),n.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&ce()}),(e=navigator.connection)!=null&&e.saveData||kn(),O.addEventListener("click",async n=>{if(n.button||n.which!==1||n.metaKey||n.ctrlKey||n.shiftKey||n.altKey||n.defaultPrevented)return;const r=ye(n.composedPath()[0],O);if(!r)return;const{url:a,external:s,target:i,download:o}=Ot(r,U,k.hash);if(!a)return;if(i==="_parent"||i==="_top"){if(window.parent!==window)return}else if(i&&i!=="_self")return;const l=mt(r);if(!(r instanceof SVGAElement)&&a.protocol!==location.protocol&&!(a.protocol==="https:"||a.protocol==="http:")||o)return;const[p,h]=(k.hash?a.hash.replace(/^#/,""):a.href).split("#"),_=p===At(location);if(s||l.reload&&(!_||!h)){Ce({url:a,type:"link",event:n})?et=!0:n.preventDefault();return}if(h!==void 0&&_){const[,g]=w.url.href.split("#");if(g===h){if(n.preventDefault(),h===""||h==="top"&&r.ownerDocument.getElementById("top")===null)scrollTo({top:0});else{const d=r.ownerDocument.getElementById(decodeURIComponent(h));d&&(d.scrollIntoView(),d.focus())}return}if(Y=!0,Ht(R),t(a),!l.replace_state)return;Y=!1}n.preventDefault(),await new Promise(g=>{requestAnimationFrame(()=>{setTimeout(g,0)}),setTimeout(g,100)}),await G({type:"link",url:a,keepfocus:l.keepfocus,noscroll:l.noscroll,replace_state:l.replace_state??a.href===location.href,event:n})}),O.addEventListener("submit",n=>{if(n.defaultPrevented)return;const r=HTMLFormElement.prototype.cloneNode.call(n.target),a=n.submitter;if(((a==null?void 0:a.formTarget)||r.target)==="_blank"||((a==null?void 0:a.formMethod)||r.method)!=="get")return;const o=new URL((a==null?void 0:a.hasAttribute("formaction"))&&(a==null?void 0:a.formAction)||r.action);if(St(o,U,!1))return;const l=n.target,c=mt(l);if(c.reload)return;n.preventDefault(),n.stopPropagation();const p=new FormData(l,a);o.search=new URLSearchParams(p).toString(),G({type:"form",url:o,keepfocus:c.keepfocus,noscroll:c.noscroll,replace_state:c.replace_state??o.href===location.href,event:n})}),addEventListener("popstate",async n=>{var r;if(!Nt){if((r=n.state)!=null&&r[F]){const a=n.state[F];if(q={},a===R)return;const s=j[a],i=n.state[we]??{},o=new URL(n.state[nn]??location.href),l=n.state[X],c=w.url?At(location)===At(w.url):!1;if(l===L&&(xe||c)){i!==S.state&&(S.state=i),t(o),j[R]=V(),s&&scrollTo(s.x,s.y),R=a;return}const h=a-R;await G({type:"popstate",url:o,popped:{state:i,scroll:s,delta:h},accept:()=>{R=a,L=l},block:()=>{history.go(-h)},nav_token:q,event:n})}else if(!Y){const a=new URL(location.href);t(a),k.hash&&location.reload()}}}),addEventListener("hashchange",()=>{Y&&(Y=!1,history.replaceState({...history.state,[F]:++R,[X]:L},"",location.href))});for(const n of document.querySelectorAll("link"))un.has(n.rel)&&(n.href=n.href);addEventListener("pageshow",n=>{n.persisted&&$.navigating.set(Q.current=null)});function t(n){w.url=S.url=n,$.page.set(Qt(S)),$.page.notify()}}async function Sn(t,{status:e=200,error:n,node_ids:r,params:a,route:s,server_route:i,data:o,form:l}){Se=!0;const c=new URL(location.href);let p;({params:a={},route:s={id:null}}=await xt(c,!1)||{}),p=Mt.find(({id:g})=>g===s.id);let h,_=!0;try{const g=r.map(async(f,u)=>{const m=o[u];return m!=null&&m.uses&&(m.uses=xn(m.uses)),Yt({loader:k.nodes[f],url:c,params:a,route:s,parent:async()=>{const y={};for(let x=0;x<u;x+=1)Object.assign(y,(await g[x]).data);return y},server_data_node:zt(m)})}),d=await Promise.all(g);if(p){const f=p.layouts;for(let u=0;u<f.length;u++)f[u]||d.splice(u,0,void 0)}h=await kt({url:c,params:a,branch:d,status:e,error:n,errors:p==null?void 0:p.errors,form:l,route:p??null})}catch(g){if(g instanceof Bt){await tt(new URL(g.location,location.href));return}h=await Jt({status:Gt(g),error:await nt(g,{url:c,params:a,route:s}),url:c,route:s}),t.textContent="",_=!1}h.props.page&&(h.props.page.state={}),await Te(h,t,_)}function xn(t){return{dependencies:new Set((t==null?void 0:t.dependencies)??[]),params:new Set((t==null?void 0:t.params)??[]),parent:!!(t!=null&&t.parent),route:!!(t!=null&&t.route),url:!!(t!=null&&t.url),search_params:new Set((t==null?void 0:t.search_params)??[])}}let Nt=!1;function Ln(t,e=!0){const n=document.querySelector("[autofocus]");if(n)n.focus();else{const r=je(t);if(r&&document.getElementById(r)){const{x:s,y:i}=V();setTimeout(()=>{const o=history.state;Nt=!0,location.replace(new URL(`#${r}`,location.href)),history.replaceState(o,"",t),e&&scrollTo(s,i),Nt=!1})}else{const s=document.body,i=s.getAttribute("tabindex");s.tabIndex=-1,s.focus({preventScroll:!0,focusVisible:!1}),i!==null?s.setAttribute("tabindex",i):s.removeAttribute("tabindex")}const a=getSelection();if(a&&a.type!=="None"){const s=[];for(let i=0;i<a.rangeCount;i+=1)s.push(a.getRangeAt(i));setTimeout(()=>{if(a.rangeCount===s.length){for(let i=0;i<a.rangeCount;i+=1){const o=s[i],l=a.getRangeAt(i);if(o.commonAncestorContainer!==l.commonAncestorContainer||o.startContainer!==l.startContainer||o.endContainer!==l.endContainer||o.startOffset!==l.startOffset||o.endOffset!==l.endOffset)return}a.removeAllRanges()}})}}}function Xt(t,e,n,r,a=null){var c,p;let s,i;const o=new Promise((h,_)=>{s=h,i=_});return o.catch(()=>{}),{navigation:{from:{params:t.params,route:{id:((c=t.route)==null?void 0:c.id)??null},url:t.url,scroll:V()},to:n&&{params:(e==null?void 0:e.params)??null,route:{id:((p=e==null?void 0:e.route)==null?void 0:p.id)??null},url:n,scroll:a},willUnload:!e,type:r,complete:o},fulfil:s,reject:i}}function Qt(t){return{data:t.data,error:t.error,form:t.form,params:t.params,route:t.route,state:t.state,status:t.status,url:t.url}}function Un(t){const e=new URL(t);return e.hash=decodeURIComponent(t.hash),e}function je(t){let e;if(k.hash){const[,,n]=t.hash.split("#",3);e=n??""}else e=t.hash.slice(1);return decodeURIComponent(e)}export{Dn as a,qn as g,Cn as l,S as p,$ as s};
|