@kozou/svelte-ui 1.0.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +33 -3
- package/build/client/_app/immutable/assets/0._vgqT-Ja.css +2 -0
- package/build/client/_app/immutable/assets/0._vgqT-Ja.css.br +0 -0
- package/build/client/_app/immutable/assets/{0.B45CfnXC.css.gz → 0._vgqT-Ja.css.gz} +0 -0
- package/build/client/_app/immutable/chunks/{BatBMP3E.js → B1d2TdTR.js} +3 -3
- package/build/client/_app/immutable/chunks/B1d2TdTR.js.br +0 -0
- package/build/client/_app/immutable/chunks/B1d2TdTR.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BgT5WiOF.js +2 -0
- package/build/client/_app/immutable/chunks/BgT5WiOF.js.br +0 -0
- package/build/client/_app/immutable/chunks/BgT5WiOF.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{Ds-FbTMg.js → Cn0w88Fq.js} +1 -1
- package/build/client/_app/immutable/chunks/Cn0w88Fq.js.br +0 -0
- package/build/client/_app/immutable/chunks/Cn0w88Fq.js.gz +0 -0
- package/build/client/_app/immutable/chunks/D5sfkRNZ.js +1 -0
- package/build/client/_app/immutable/chunks/D5sfkRNZ.js.br +0 -0
- package/build/client/_app/immutable/chunks/D5sfkRNZ.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DPra5YQV.js +214 -0
- package/build/client/_app/immutable/chunks/DPra5YQV.js.br +0 -0
- package/build/client/_app/immutable/chunks/DPra5YQV.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DxikiVqj.js +1 -0
- package/build/client/_app/immutable/chunks/DxikiVqj.js.br +0 -0
- package/build/client/_app/immutable/chunks/DxikiVqj.js.gz +0 -0
- package/build/client/_app/immutable/entry/app.DHE9drsq.js +2 -0
- package/build/client/_app/immutable/entry/app.DHE9drsq.js.br +0 -0
- package/build/client/_app/immutable/entry/app.DHE9drsq.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.BzGMfeBV.js +1 -0
- package/build/client/_app/immutable/entry/start.BzGMfeBV.js.br +0 -0
- package/build/client/_app/immutable/entry/start.BzGMfeBV.js.gz +0 -0
- package/build/client/_app/immutable/nodes/0.BTi1ueXu.js +1 -0
- package/build/client/_app/immutable/nodes/0.BTi1ueXu.js.br +0 -0
- package/build/client/_app/immutable/nodes/0.BTi1ueXu.js.gz +0 -0
- package/build/client/_app/immutable/nodes/1.D560IYiX.js +1 -0
- package/build/client/_app/immutable/nodes/1.D560IYiX.js.br +0 -0
- package/build/client/_app/immutable/nodes/1.D560IYiX.js.gz +0 -0
- package/build/client/_app/immutable/nodes/2.CWOXCYvQ.js +1 -0
- package/build/client/_app/immutable/nodes/2.CWOXCYvQ.js.br +0 -0
- package/build/client/_app/immutable/nodes/2.CWOXCYvQ.js.gz +0 -0
- package/build/client/_app/immutable/nodes/3.BfuWEZdX.js +1 -0
- package/build/client/_app/immutable/nodes/3.BfuWEZdX.js.br +0 -0
- package/build/client/_app/immutable/nodes/3.BfuWEZdX.js.gz +0 -0
- package/build/client/_app/immutable/nodes/4.B99LqPAe.js +1 -0
- package/build/client/_app/immutable/nodes/4.B99LqPAe.js.br +0 -0
- package/build/client/_app/immutable/nodes/4.B99LqPAe.js.gz +0 -0
- package/build/client/_app/immutable/nodes/5.DReWNUeS.js +1 -0
- package/build/client/_app/immutable/nodes/5.DReWNUeS.js.br +0 -0
- package/build/client/_app/immutable/nodes/5.DReWNUeS.js.gz +0 -0
- package/build/client/_app/immutable/nodes/6.k15tkojQ.js +1 -0
- package/build/client/_app/immutable/nodes/6.k15tkojQ.js.br +0 -0
- package/build/client/_app/immutable/nodes/6.k15tkojQ.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{7.mp1zOZZv.js → 7.CjEmXoAF.js} +1 -1
- package/build/client/_app/immutable/nodes/7.CjEmXoAF.js.br +1 -0
- package/build/client/_app/immutable/nodes/7.CjEmXoAF.js.gz +0 -0
- package/build/client/_app/version.json +1 -1
- package/build/client/_app/version.json.br +0 -0
- package/build/client/_app/version.json.gz +0 -0
- package/build/server/chunks/{0-D3i8OEah.js → 0-C4CgvBlc.js} +3 -3
- package/build/server/chunks/{0-D3i8OEah.js.map → 0-C4CgvBlc.js.map} +1 -1
- package/build/server/chunks/{1-HR1yd0wU.js → 1-9vEmRESU.js} +3 -3
- package/build/server/chunks/{1-HR1yd0wU.js.map → 1-9vEmRESU.js.map} +1 -1
- package/build/server/chunks/{2-CE6m9qid.js → 2-D9il_3ty.js} +2 -2
- package/build/server/chunks/{2-CE6m9qid.js.map → 2-D9il_3ty.js.map} +1 -1
- package/build/server/chunks/{3-BfIWDc-d.js → 3-DfrqlU53.js} +3 -3
- package/build/server/chunks/3-DfrqlU53.js.map +1 -0
- package/build/server/chunks/{4-Dqn3l8BI.js → 4-B5b-ipUm.js} +46 -4
- package/build/server/chunks/4-B5b-ipUm.js.map +1 -0
- package/build/server/chunks/{5-DA-bCkUw.js → 5-CsUNrHuc.js} +25 -12
- package/build/server/chunks/5-CsUNrHuc.js.map +1 -0
- package/build/server/chunks/{6-DEjxcpBy.js → 6-DDoMrGFt.js} +23 -12
- package/build/server/chunks/6-DDoMrGFt.js.map +1 -0
- package/build/server/chunks/{7-BFDTBBBE.js → 7-CKkRKfs8.js} +3 -3
- package/build/server/chunks/7-CKkRKfs8.js.map +1 -0
- package/build/server/chunks/{_page.svelte-CyAlYQ7a.js → _page.svelte-BEtFIV7C.js} +3 -3
- package/build/server/chunks/{_page.svelte-CyAlYQ7a.js.map → _page.svelte-BEtFIV7C.js.map} +1 -1
- package/build/server/chunks/_page.svelte-CDGnOeZp.js +167 -0
- package/build/server/chunks/_page.svelte-CDGnOeZp.js.map +1 -0
- package/build/server/chunks/_page.svelte-DZ2Ayw0S.js +167 -0
- package/build/server/chunks/_page.svelte-DZ2Ayw0S.js.map +1 -0
- package/build/server/chunks/_server.ts-C-Wy675T.js +19 -0
- package/build/server/chunks/_server.ts-C-Wy675T.js.map +1 -0
- package/build/server/chunks/{adapter-1jZYeJkL.js → adapter-CXNsjV1V.js} +22 -10
- package/build/server/chunks/adapter-CXNsjV1V.js.map +1 -0
- package/build/server/chunks/{client-B9o82f8t.js → client-DLR5dxwU.js} +2 -2
- package/build/server/chunks/{client-B9o82f8t.js.map → client-DLR5dxwU.js.map} +1 -1
- package/build/server/chunks/{zod-from-table-D-zpiAdX.js → composite-form-BHZcuFIS.js} +250 -7
- package/build/server/chunks/composite-form-BHZcuFIS.js.map +1 -0
- package/build/server/chunks/{error.svelte-CCf63hYR.js → error.svelte-B3vg3Q2F.js} +3 -3
- package/build/server/chunks/{error.svelte-CCf63hYR.js.map → error.svelte-B3vg3Q2F.js.map} +1 -1
- package/build/server/chunks/{hooks.server-gNQ4wkwm.js → hooks.server-VuiVxiIQ.js} +35 -22
- package/build/server/chunks/hooks.server-VuiVxiIQ.js.map +1 -0
- package/build/server/chunks/{internal-CCj4Us-1.js → internal-BkKkeKsj.js} +3 -3
- package/build/server/chunks/{internal-CCj4Us-1.js.map → internal-BkKkeKsj.js.map} +1 -1
- package/build/server/chunks/relation-options-Dzy9DaQG.js +87 -0
- package/build/server/chunks/relation-options-Dzy9DaQG.js.map +1 -0
- package/build/server/chunks/{widget-registry-CYJ6dCZP.js → widget-registry-hWgMHMd3.js} +283 -43
- package/build/server/chunks/widget-registry-hWgMHMd3.js.map +1 -0
- package/build/server/index.js +1 -1
- package/build/server/manifest.js +16 -9
- package/build/server/manifest.js.map +1 -1
- package/package.json +4 -4
- package/build/client/_app/immutable/assets/0.B45CfnXC.css +0 -2
- package/build/client/_app/immutable/assets/0.B45CfnXC.css.br +0 -0
- package/build/client/_app/immutable/chunks/1PNfJiP5.js +0 -2
- package/build/client/_app/immutable/chunks/1PNfJiP5.js.br +0 -0
- package/build/client/_app/immutable/chunks/1PNfJiP5.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BatBMP3E.js.br +0 -0
- package/build/client/_app/immutable/chunks/BatBMP3E.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DhQvJhgX.js +0 -214
- package/build/client/_app/immutable/chunks/DhQvJhgX.js.br +0 -0
- package/build/client/_app/immutable/chunks/DhQvJhgX.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Ds-FbTMg.js.br +0 -0
- package/build/client/_app/immutable/chunks/Ds-FbTMg.js.gz +0 -0
- package/build/client/_app/immutable/chunks/y9cSQmno.js +0 -1
- package/build/client/_app/immutable/chunks/y9cSQmno.js.br +0 -0
- package/build/client/_app/immutable/chunks/y9cSQmno.js.gz +0 -0
- package/build/client/_app/immutable/entry/app.CZ136DH2.js +0 -2
- package/build/client/_app/immutable/entry/app.CZ136DH2.js.br +0 -0
- package/build/client/_app/immutable/entry/app.CZ136DH2.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.B2SCrcq3.js +0 -1
- package/build/client/_app/immutable/entry/start.B2SCrcq3.js.br +0 -0
- package/build/client/_app/immutable/entry/start.B2SCrcq3.js.gz +0 -0
- package/build/client/_app/immutable/nodes/0.DAriStmJ.js +0 -1
- package/build/client/_app/immutable/nodes/0.DAriStmJ.js.br +0 -0
- package/build/client/_app/immutable/nodes/0.DAriStmJ.js.gz +0 -0
- package/build/client/_app/immutable/nodes/1.C6AP-LKV.js +0 -1
- package/build/client/_app/immutable/nodes/1.C6AP-LKV.js.br +0 -0
- package/build/client/_app/immutable/nodes/1.C6AP-LKV.js.gz +0 -0
- package/build/client/_app/immutable/nodes/2.C3ChRVrO.js +0 -1
- package/build/client/_app/immutable/nodes/2.C3ChRVrO.js.br +0 -0
- package/build/client/_app/immutable/nodes/2.C3ChRVrO.js.gz +0 -0
- package/build/client/_app/immutable/nodes/3.C2gCkFBC.js +0 -1
- package/build/client/_app/immutable/nodes/3.C2gCkFBC.js.br +0 -0
- package/build/client/_app/immutable/nodes/3.C2gCkFBC.js.gz +0 -0
- package/build/client/_app/immutable/nodes/4.BT4cE3lU.js +0 -1
- package/build/client/_app/immutable/nodes/4.BT4cE3lU.js.br +0 -0
- package/build/client/_app/immutable/nodes/4.BT4cE3lU.js.gz +0 -0
- package/build/client/_app/immutable/nodes/5.q_Qsfmij.js +0 -1
- package/build/client/_app/immutable/nodes/5.q_Qsfmij.js.br +0 -0
- package/build/client/_app/immutable/nodes/5.q_Qsfmij.js.gz +0 -0
- package/build/client/_app/immutable/nodes/6.Ca5RA2Y5.js +0 -1
- package/build/client/_app/immutable/nodes/6.Ca5RA2Y5.js.br +0 -0
- package/build/client/_app/immutable/nodes/6.Ca5RA2Y5.js.gz +0 -0
- package/build/client/_app/immutable/nodes/7.mp1zOZZv.js.br +0 -1
- package/build/client/_app/immutable/nodes/7.mp1zOZZv.js.gz +0 -0
- package/build/server/chunks/3-BfIWDc-d.js.map +0 -1
- package/build/server/chunks/4-Dqn3l8BI.js.map +0 -1
- package/build/server/chunks/5-DA-bCkUw.js.map +0 -1
- package/build/server/chunks/6-DEjxcpBy.js.map +0 -1
- package/build/server/chunks/7-BFDTBBBE.js.map +0 -1
- package/build/server/chunks/_page.svelte-CYEmRGgG.js +0 -70
- package/build/server/chunks/_page.svelte-CYEmRGgG.js.map +0 -1
- package/build/server/chunks/_page.svelte-NvCEA5JB.js +0 -70
- package/build/server/chunks/_page.svelte-NvCEA5JB.js.map +0 -1
- package/build/server/chunks/adapter-1jZYeJkL.js.map +0 -1
- package/build/server/chunks/hooks.server-gNQ4wkwm.js.map +0 -1
- package/build/server/chunks/widget-registry-CYJ6dCZP.js.map +0 -1
- package/build/server/chunks/zod-from-table-D-zpiAdX.js.map +0 -1
package/README.md
CHANGED
|
@@ -32,6 +32,34 @@ the default is Kozou's bundled in-house REST backend (`@kozou/api`).
|
|
|
32
32
|
| `/tables/[table]/[id]/edit` | Edit record |
|
|
33
33
|
| `/views/[view]` | Read-only view listing |
|
|
34
34
|
|
|
35
|
+
## Relation pickers
|
|
36
|
+
|
|
37
|
+
The create / edit forms render a searchable picker for foreign-key columns:
|
|
38
|
+
|
|
39
|
+
- a **single-column FK** gets a picker when it references the target's
|
|
40
|
+
single-column primary key and the target's label column is
|
|
41
|
+
text-searchable; otherwise the column stays a plain scalar input the
|
|
42
|
+
operator types.
|
|
43
|
+
- a **composite (multi-column) FK** becomes ONE picker that fills every key
|
|
44
|
+
column at once, when it references the target's primary key (any column
|
|
45
|
+
order), the target's label is text-searchable, and none of its columns is
|
|
46
|
+
shared with another foreign key. Ineligible relations keep scalar inputs.
|
|
47
|
+
- the forms also work without JavaScript: the picker submits natively and an
|
|
48
|
+
untouched save keeps the current values.
|
|
49
|
+
|
|
50
|
+
Known limitation: a key containing an **empty-string component** cannot be
|
|
51
|
+
picked or round-tripped through the form — `''` is the picker contract's
|
|
52
|
+
unselected sentinel (shared with the single-column picker). Such rows remain
|
|
53
|
+
manageable through the API.
|
|
54
|
+
|
|
55
|
+
Picker eligibility and the all-or-nothing composite write are **UI-level
|
|
56
|
+
conveniences, not an enforcement boundary**: the form actions validate
|
|
57
|
+
per-column shapes and forward the payload through the configured adapter
|
|
58
|
+
(including service-token mode under `kozou dev`), and the same composite
|
|
59
|
+
component columns are individually editable wherever the relation is not
|
|
60
|
+
picker-eligible. Row-level invariants belong to PostgreSQL constraints and
|
|
61
|
+
RLS — the project's enforcement posture.
|
|
62
|
+
|
|
35
63
|
Query parameters on the list / view routes:
|
|
36
64
|
|
|
37
65
|
- `?q=<text>` — case-insensitive search across the resolved
|
|
@@ -70,10 +98,12 @@ Building before running `pnpm test` exercises the smoke case in
|
|
|
70
98
|
the build artifacts are absent so a fresh checkout still gets a
|
|
71
99
|
green `pnpm test` run.
|
|
72
100
|
|
|
73
|
-
## Manual smoke checklist
|
|
101
|
+
## Manual smoke checklist
|
|
74
102
|
|
|
75
|
-
Run end-to-end against a real PostgreSQL
|
|
76
|
-
|
|
103
|
+
Run the standalone dev server end-to-end against a real PostgreSQL and a
|
|
104
|
+
REST backend at `KOZOU_ADAPTER_URL` (default `http://localhost:3000`).
|
|
105
|
+
Standalone, this package's default adapter speaks PostgREST, so bring up
|
|
106
|
+
a PostgreSQL and a PostgREST pointed at it:
|
|
77
107
|
|
|
78
108
|
1. `pnpm --filter @kozou/svelte-ui run dev` — open
|
|
79
109
|
`http://localhost:5173/`.
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! tailwindcss v4.3.0 | MIT License | https://tailwindcss.com */
|
|
2
|
+
@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-space-y-reverse:0;--tw-border-style:solid;--tw-font-weight:initial;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-animation-delay:0s;--tw-animation-direction:normal;--tw-animation-duration:initial;--tw-animation-fill-mode:none;--tw-animation-iteration-count:1;--tw-enter-blur:0;--tw-enter-opacity:1;--tw-enter-rotate:0;--tw-enter-scale:1;--tw-enter-translate-x:0;--tw-enter-translate-y:0;--tw-exit-blur:0;--tw-exit-opacity:1;--tw-exit-rotate:0;--tw-exit-scale:1;--tw-exit-translate-x:0;--tw-exit-translate-y:0}}}@layer theme{:root,:host{--font-sans:ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--spacing:.25rem;--container-5xl:64rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-lg:1.125rem;--text-lg--line-height:calc(1.75 / 1.125);--text-2xl:1.5rem;--text-2xl--line-height:calc(2 / 1.5);--font-weight-medium:500;--font-weight-semibold:600;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}*{border-color:var(--border);outline-color:var(--ring)}@supports (color:color-mix(in lab, red, red)){*{outline-color:color-mix(in oklab, var(--ring) 50%, transparent)}}body{background-color:var(--background);color:var(--foreground)}}@layer components;@layer utilities{.collapse{visibility:collapse}.visible{visibility:visible}.fixed{position:fixed}.relative{position:relative}.container{width:100%}@media (width>=40rem){.container{max-width:40rem}}@media (width>=48rem){.container{max-width:48rem}}@media (width>=64rem){.container{max-width:64rem}}@media (width>=80rem){.container{max-width:80rem}}@media (width>=96rem){.container{max-width:96rem}}.mx-auto{margin-inline:auto}.mt-1{margin-top:calc(var(--spacing) * 1)}.mt-2{margin-top:calc(var(--spacing) * 2)}.mt-4{margin-top:calc(var(--spacing) * 4)}.mt-8{margin-top:calc(var(--spacing) * 8)}.mb-1{margin-bottom:calc(var(--spacing) * 1)}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.mb-3{margin-bottom:calc(var(--spacing) * 3)}.mb-4{margin-bottom:calc(var(--spacing) * 4)}.mb-6{margin-bottom:calc(var(--spacing) * 6)}.mb-10{margin-bottom:calc(var(--spacing) * 10)}.ml-1{margin-left:calc(var(--spacing) * 1)}.block{display:block}.contents{display:contents}.flex{display:flex}.hidden{display:none}.table{display:table}.h-4{height:calc(var(--spacing) * 4)}.max-h-32{max-height:calc(var(--spacing) * 32)}.max-h-48{max-height:calc(var(--spacing) * 48)}.min-h-screen{min-height:100vh}.w-4{width:calc(var(--spacing) * 4)}.w-full{width:100%}.max-w-5xl{max-width:var(--container-5xl)}.min-w-0{min-width:calc(var(--spacing) * 0)}.min-w-full{min-width:100%}.flex-1{flex:1}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-between{justify-content:space-between}.gap-2{gap:calc(var(--spacing) * 2)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 2) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 2) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 4) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 4) * calc(1 - var(--tw-space-y-reverse)))}.overflow-x-auto{overflow-x:auto}.rounded{border-radius:.25rem}.rounded-md{border-radius:calc(var(--radius) - 2px)}.border{border-style:var(--tw-border-style);border-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-border{border-color:var(--border)}.border-destructive{border-color:var(--destructive)}.border-input{border-color:var(--input)}.bg-background{background-color:var(--background)}.bg-muted{background-color:var(--muted)}.bg-primary{background-color:var(--primary)}.object-contain{object-fit:contain}.p-2{padding:calc(var(--spacing) * 2)}.p-3{padding:calc(var(--spacing) * 3)}.p-4{padding:calc(var(--spacing) * 4)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-6{padding-inline:calc(var(--spacing) * 6)}.py-1{padding-block:calc(var(--spacing) * 1)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-4{padding-block:calc(var(--spacing) * 4)}.py-6{padding-block:calc(var(--spacing) * 6)}.py-8{padding-block:calc(var(--spacing) * 8)}.text-center{text-align:center}.text-left{text-align:left}.font-mono{font-family:var(--font-mono)}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.text-destructive{color:var(--destructive)}.text-foreground{color:var(--foreground)}.text-muted-foreground{color:var(--muted-foreground)}.text-primary{color:var(--primary)}.text-primary-foreground{color:var(--primary-foreground)}.underline{text-decoration-line:underline}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.running{animation-play-state:running}@media (hover:hover){.hover\:bg-muted:hover{background-color:var(--muted)}.hover\:underline:hover{text-decoration-line:underline}}.disabled\:opacity-50:disabled{opacity:.5}}@property --tw-animation-delay{syntax:"*";inherits:false;initial-value:0s}@property --tw-animation-direction{syntax:"*";inherits:false;initial-value:normal}@property --tw-animation-duration{syntax:"*";inherits:false}@property --tw-animation-fill-mode{syntax:"*";inherits:false;initial-value:none}@property --tw-animation-iteration-count{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-blur{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-opacity{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-rotate{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-scale{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-blur{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-opacity{syntax:"*";inherits:false;initial-value:1}@property --tw-exit-rotate{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-scale{syntax:"*";inherits:false;initial-value:1}@property --tw-exit-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-translate-y{syntax:"*";inherits:false;initial-value:0}:root{--background:oklch(100% 0 0);--foreground:oklch(14.5% 0 0);--card:oklch(100% 0 0);--card-foreground:oklch(14.5% 0 0);--popover:oklch(100% 0 0);--popover-foreground:oklch(14.5% 0 0);--primary:oklch(20.5% 0 0);--primary-foreground:oklch(98.5% 0 0);--secondary:oklch(97% 0 0);--secondary-foreground:oklch(20.5% 0 0);--muted:oklch(97% 0 0);--muted-foreground:oklch(55.6% 0 0);--accent:oklch(97% 0 0);--accent-foreground:oklch(20.5% 0 0);--destructive:oklch(57.7% .245 27.325);--border:oklch(92.2% 0 0);--input:oklch(92.2% 0 0);--ring:oklch(70.8% 0 0);--chart-1:oklch(64.6% .222 41.116);--chart-2:oklch(60% .118 184.704);--chart-3:oklch(39.8% .07 227.392);--chart-4:oklch(82.8% .189 84.429);--chart-5:oklch(76.9% .188 70.08);--radius:.625rem;--sidebar:oklch(98.5% 0 0);--sidebar-foreground:oklch(14.5% 0 0);--sidebar-primary:oklch(20.5% 0 0);--sidebar-primary-foreground:oklch(98.5% 0 0);--sidebar-accent:oklch(97% 0 0);--sidebar-accent-foreground:oklch(20.5% 0 0);--sidebar-border:oklch(92.2% 0 0);--sidebar-ring:oklch(70.8% 0 0)}.dark{--background:oklch(14.5% 0 0);--foreground:oklch(98.5% 0 0);--card:oklch(20.5% 0 0);--card-foreground:oklch(98.5% 0 0);--popover:oklch(20.5% 0 0);--popover-foreground:oklch(98.5% 0 0);--primary:oklch(92.2% 0 0);--primary-foreground:oklch(20.5% 0 0);--secondary:oklch(26.9% 0 0);--secondary-foreground:oklch(98.5% 0 0);--muted:oklch(26.9% 0 0);--muted-foreground:oklch(70.8% 0 0);--accent:oklch(26.9% 0 0);--accent-foreground:oklch(98.5% 0 0);--destructive:oklch(70.4% .191 22.216);--border:oklch(100% 0 0/.1);--input:oklch(100% 0 0/.15);--ring:oklch(55.6% 0 0);--chart-1:oklch(48.8% .243 264.376);--chart-2:oklch(69.6% .17 162.48);--chart-3:oklch(76.9% .188 70.08);--chart-4:oklch(62.7% .265 303.9);--chart-5:oklch(64.5% .246 16.439);--sidebar:oklch(20.5% 0 0);--sidebar-foreground:oklch(98.5% 0 0);--sidebar-primary:oklch(48.8% .243 264.376);--sidebar-primary-foreground:oklch(98.5% 0 0);--sidebar-accent:oklch(26.9% 0 0);--sidebar-accent-foreground:oklch(98.5% 0 0);--sidebar-border:oklch(100% 0 0/.1);--sidebar-ring:oklch(43.9% 0 0)}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}
|
|
Binary file
|
|
Binary file
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{
|
|
2
|
-
`:return`\\n`;case`\r`:return`\\r`;case` `:return`\\t`;case`\b`:return`\\b`;case`\f`:return`\\f`;case`\u2028`:return`\\u2028`;case`\u2029`:return`\\u2029`;default:return e<` `?`\\u${e.charCodeAt(0).toString(16).padStart(4,`0`)}`:``}}function Fe(e){let t=``,n=0,r=e.length;for(let i=0;i<r;i+=1){let r=e[i],a=Pe(r);a&&(t+=e.slice(n,i)+a,n=i+1)}return`"${n===0?e:t+e.slice(n)}"`}function Ie(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.getOwnPropertyDescriptor(e,t).enumerable)}var Le=/^[a-zA-Z_$][a-zA-Z_$0-9]*$/;function Re(e){return Le.test(e)?`.`+e:`[`+JSON.stringify(e)+`]`}function ze(e){return!(!Number.isInteger(e)||e<0||e>Oe)}function Be(e){return!(!Number.isInteger(e)||e<0||e>De)}function Ve(e){if(e.length===0||e.length>1&&e.charCodeAt(0)===48)return!1;for(let t=0;t<e.length;t++){let n=e.charCodeAt(t);if(n<48||n>57)return!1}return ze(+e)}function He(e){let t=Object.keys(e);for(var n=t.length-1;n>=0&&!Ve(t[n]);n--);return t.length=n+1,t}function Ue(e){return new Uint8Array(e).toBase64()}function We(e){return Uint8Array.fromBase64(e).buffer}function Ge(e){return Buffer.from(e).toString(`base64`)}function Ke(e){return Uint8Array.from(Buffer.from(e,`base64`)).buffer}function qe(e){let t=new Uint8Array(e),n=``,r=32768;for(let e=0;e<t.length;e+=r){let i=t.subarray(e,e+r);n+=String.fromCharCode.apply(null,i)}return btoa(n)}function Je(e){let t=atob(e),n=t.length,r=new Uint8Array(n);for(let e=0;e<n;e++)r[e]=t.charCodeAt(e);return r.buffer}var Ye=typeof Uint8Array.fromBase64==`function`,Xe=typeof process==`object`&&process.versions?.node!==void 0,Ze=Ye?Ue:Xe?Ge:qe,Qe=Ye?We:Xe?Ke:Je;function $e(e,t){return et(JSON.parse(e),t)}function et(e,t){if(typeof e==`number`)return a(e,!0);if(!Array.isArray(e)||e.length===0)throw Error(`Invalid input`);let n=e,r=Array(n.length),i=null;function a(e,o=!1){if(e===-1)return;if(e===-3)return NaN;if(e===-4)return 1/0;if(e===-5)return-1/0;if(e===-6)return-0;if(o||typeof e!=`number`)throw Error(`Invalid input`);if(e in r)return r[e];let s=n[e];if(!s||typeof s!=`object`)r[e]=s;else if(Array.isArray(s))if(typeof s[0]==`string`){let o=s[0],c=t&&Object.hasOwn(t,o)?t[o]:void 0;if(c){let t=s[1];if(typeof t!=`number`&&(t=n.push(s[1])-1),i??=new Set,i.has(t))throw Error(`Invalid circular reference`);return i.add(t),r[e]=c(a(t)),i.delete(t),r[e]}switch(o){case`Date`:r[e]=new Date(s[1]);break;case`Set`:let t=new Set;r[e]=t;for(let e=1;e<s.length;e+=1)t.add(a(s[e]));break;case`Map`:let i=new Map;r[e]=i;for(let e=1;e<s.length;e+=2)i.set(a(s[e]),a(s[e+1]));break;case`RegExp`:r[e]=new RegExp(s[1],s[2]);break;case`Object`:{let t=s[1];if(typeof n[t]==`object`&&n[t][0]!==`BigInt`)throw Error(`Invalid input`);r[e]=Object(a(t));break}case`BigInt`:r[e]=BigInt(s[1]);break;case`null`:let c=Object.create(null);r[e]=c;for(let e=1;e<s.length;e+=2){if(s[e]===`__proto__`)throw Error("Cannot parse an object with a `__proto__` property");c[s[e]]=a(s[e+1])}break;case`Int8Array`:case`Uint8Array`:case`Uint8ClampedArray`:case`Int16Array`:case`Uint16Array`:case`Float16Array`:case`Int32Array`:case`Uint32Array`:case`Float32Array`:case`Float64Array`:case`BigInt64Array`:case`BigUint64Array`:case`DataView`:{if(n[s[1]][0]!==`ArrayBuffer`)throw Error(`Invalid data`);let t=globalThis[o],i=a(s[1]);r[e]=s[2]===void 0?new t(i):new t(i,s[2],s[3]);break}case`ArrayBuffer`:{let t=s[1];if(typeof t!=`string`)throw Error(`Invalid ArrayBuffer encoding`);r[e]=Qe(t);break}case`Temporal.Duration`:case`Temporal.Instant`:case`Temporal.PlainDate`:case`Temporal.PlainTime`:case`Temporal.PlainDateTime`:case`Temporal.PlainMonthDay`:case`Temporal.PlainYearMonth`:case`Temporal.ZonedDateTime`:{let t=o.slice(9);r[e]=Temporal[t].from(s[1]);break}case`URL`:r[e]=new URL(s[1]);break;case`URLSearchParams`:r[e]=new URLSearchParams(s[1]);break;default:throw Error(`Unknown type ${o}`)}}else if(s[0]===-7){let t=s[1];if(!Be(t))throw Error(`Invalid input`);let n=[];r[e]=n,n[Oe]=void 0,delete n[Oe];for(let e=2;e<s.length;e+=2){let r=s[e];if(!ze(r)||r>=t)throw Error(`Invalid input`);n[r]=a(s[e+1])}n.length=t}else{let t=Array(s.length);r[e]=t;for(let e=0;e<s.length;e+=1){let n=s[e];n!==-2&&(t[e]=a(n))}}else{let t={};r[e]=t;for(let e of Object.keys(s)){if(e===`__proto__`)throw Error("Cannot parse an object with a `__proto__` property");let n=s[e];t[e]=a(n)}}return r[e]}return a(0)}var tt=new Set([`load`,`prerender`,`csr`,`ssr`,`trailingSlash`,`config`]);new Set([...tt,`entries`]);var nt=new Set([...tt]);new Set([...nt,`actions`,`entries`]),new Set([`GET`,`POST`,`PATCH`,`PUT`,`DELETE`,`OPTIONS`,`HEAD`,`fallback`,`prerender`,`trailingSlash`,`config`,`entries`]);function rt(e){return e.filter(e=>e!=null)}var it=`x-sveltekit-invalidated`,at=`x-sveltekit-trailing-slash`;function k(e,t){return e+`/`+t}function ot(e){return e instanceof c||e instanceof u?e.status:500}function st(e){return e instanceof u?e.text:`Internal Error`}var A,j,ct,lt=
|
|
1
|
+
import{A as e,H as t,V as n,X as r,j as i,k as a,r as o,t as s}from"./BgT5WiOF.js";var c=class{constructor(e,t){this.status=e,typeof t==`string`?this.body={message:t}:t?this.body=t:this.body={message:`Error: ${e}`}}toString(){return JSON.stringify(this.body)}},l=class{constructor(e,t){try{new Headers({location:t})}catch{throw Error(`Invalid redirect location ${JSON.stringify(t)}: this string contains characters that cannot be used in HTTP headers`)}this.status=e,this.location=t}},u=class extends Error{constructor(e,t,n){super(n),this.status=e,this.text=t}};new URL(`sveltekit-internal://`);function d(e,t){return e===`/`||t===`ignore`?e:t===`never`?e.endsWith(`/`)?e.slice(0,-1):e:t===`always`&&!e.endsWith(`/`)?e+`/`:e}function f(e){return e.split(`%25`).map(decodeURI).join(`%25`)}function p(e){for(let t in e)e[t]=decodeURIComponent(e[t]);return e}function m({href:e}){return e.split(`#`)[0]}function h(){}function ee(...e){let t=5381;for(let n of e)if(typeof n==`string`){let e=n.length;for(;e;)t=t*33^n.charCodeAt(--e)}else if(ArrayBuffer.isView(n)){let e=new Uint8Array(n.buffer,n.byteOffset,n.byteLength),r=e.length;for(;r;)t=t*33^e[--r]}else throw TypeError(`value must be a string or TypedArray`);return(t>>>0).toString(36)}new TextEncoder;function g(e){let t=atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;e++)n[e]=t.charCodeAt(e);return n}var _=window.fetch;window.fetch=(e,t)=>((e instanceof Request?e.method:t?.method||`GET`)!==`GET`&&v.delete(x(e)),_(e,t));var v=new Map;function y(e,t){let n=x(e,t),r=document.querySelector(n);if(r?.textContent){r.remove();let{body:e,...t}=JSON.parse(r.textContent),i=r.getAttribute(`data-ttl`);return i&&v.set(n,{body:e,init:t,ttl:1e3*Number(i)}),r.getAttribute(`data-b64`)!==null&&(e=g(e)),Promise.resolve(new Response(e,t))}return window.fetch(e,t)}function b(e,t,n){if(v.size>0){let t=x(e,n),r=v.get(t);if(r){if(performance.now()<r.ttl&&[`default`,`force-cache`,`only-if-cached`,void 0].includes(n?.cache))return new Response(r.body,r.init);v.delete(t)}}return window.fetch(t,n)}function x(e,t){let n=`script[data-sveltekit-fetched][data-url=${JSON.stringify(e instanceof Request?e.url:e)}]`;if(t?.headers||t?.body){let e=[];t.headers&&e.push([...new Headers(t.headers)].join(`,`)),t.body&&(typeof t.body==`string`||ArrayBuffer.isView(t.body))&&e.push(t.body),n+=`[data-hash="${ee(...e)}"]`}return n}var te=/^(\[)?(\.\.\.)?(\w+)(?:=(\w+))?(\])?$/,ne=/^\/\((?:[^)]+)\)$/;function re(e){let t=[];return{pattern:e===`/`||ne.test(e)?/^\/$/:RegExp(`^${ae(e).map(e=>{let n=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(e);if(n)return t.push({name:n[1],matcher:n[2],optional:!1,rest:!0,chained:!0}),`(?:/([^]*))?`;let r=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(e);if(r)return t.push({name:r[1],matcher:r[2],optional:!0,rest:!1,chained:!0}),`(?:/([^/]+))?`;if(!e)return;let i=e.split(/\[(.+?)\](?!\])/);return`/`+i.map((e,n)=>{if(n%2){if(e.startsWith(`x+`))return se(String.fromCharCode(parseInt(e.slice(2),16)));if(e.startsWith(`u+`))return se(String.fromCharCode(...e.slice(2).split(`-`).map(e=>parseInt(e,16))));let[,r,a,o,s]=te.exec(e);return t.push({name:o,matcher:s,optional:!!r,rest:!!a,chained:a?n===1&&i[0]===``:!1}),a?`([^]*?)`:r?`([^/]*)?`:`([^/]+?)`}return se(e)}).join(``)}).join(``)}/?$`),params:t}}function ie(e){return e!==``&&!/^\([^)]+\)$/.test(e)}function ae(e){return e.slice(1).split(`/`).filter(ie)}function oe(e,t,n){let r={},i=e.slice(1),a=i.filter(e=>e!==void 0),o=0;for(let e=0;e<t.length;e+=1){let s=t[e],c=i[e-o];if(s.chained&&s.rest&&o&&(c=i.slice(e-o,e+1).filter(e=>e).join(`/`),o=0),c===void 0)if(s.rest)c=``;else continue;if(!s.matcher||n[s.matcher](c)){r[s.name]=c;let n=t[e+1],l=i[e+1];n&&!n.rest&&n.optional&&l&&s.chained&&(o=0),!n&&!l&&Object.keys(r).length===a.length&&(o=0);continue}if(s.optional&&s.chained){o++;continue}return}if(!o)return r}function se(e){return e.normalize().replace(/[[\]]/g,`\\$&`).replace(/%/g,`%25`).replace(/\//g,`%2[Ff]`).replace(/\?/g,`%3[Ff]`).replace(/#/g,`%23`).replace(/[.*+?^${}()|\\]/g,`\\$&`)}function ce({nodes:e,server_loads:t,dictionary:n,matchers:r}){let i=new Set(t);return Object.entries(n).map(([t,[n,i,s]])=>{let{pattern:c,params:l}=re(t),u={id:t,exec:e=>{let t=c.exec(e);if(t)return oe(t,l,r)},errors:[1,...s||[]].map(t=>e[t]),layouts:[0,...i||[]].map(o),leaf:a(n)};return u.errors.length=u.layouts.length=Math.max(u.errors.length,u.layouts.length),u});function a(t){let n=t<0;return n&&(t=~t),[n,e[t]]}function o(t){return t===void 0?t:[i.has(t),e[t]]}}function le(e,t=JSON.parse){try{return t(sessionStorage[e])}catch{}}function ue(e,t,n=JSON.stringify){let r=n(t);try{sessionStorage[e]=r}catch{}}var S=globalThis.__sveltekit_1aizyhc?.base??``,de=globalThis.__sveltekit_1aizyhc?.assets??S??``,fe=`1781250743490`,pe=`sveltekit:snapshot`,me=`sveltekit:scroll`,he=`sveltekit:states`,C=`sveltekit:history`,w=`sveltekit:navigation`,T={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},E=location.origin;function ge(e){if(e instanceof URL)return e;let t=document.baseURI;if(!t){let e=document.getElementsByTagName(`base`);t=e.length?e[0].href:document.URL}return new URL(e,t)}function D(){return{x:pageXOffset,y:pageYOffset}}function O(e,t){return e.getAttribute(`data-sveltekit-${t}`)}var _e={...T,"":T.hover};function ve(e){let t=e.assignedSlot??e.parentNode;return t?.nodeType===11&&(t=t.host),t}function ye(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()===`A`&&e.hasAttribute(`href`))return e;e=ve(e)}}function be(e,t,n){let r;try{if(r=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI),n&&r.hash.match(/^#[^/]/)){let e=location.hash.split(`#`)[1]||`/`;r.hash=`#${e}${r.hash}`}}catch{}let i=e instanceof SVGAElement?e.target.baseVal:e.target,a=!r||!!i||Te(r,t,n)||(e.getAttribute(`rel`)||``).split(/\s+/).includes(`external`),o=r?.origin===E&&e.hasAttribute(`download`);return{url:r,external:a,target:i,download:o}}function xe(e){let t=null,n=null,r=null,i=null,a=null,o=null,s=e;for(;s&&s!==document.documentElement;)r===null&&(r=O(s,`preload-code`)),i===null&&(i=O(s,`preload-data`)),t===null&&(t=O(s,`keepfocus`)),n===null&&(n=O(s,`noscroll`)),a===null&&(a=O(s,`reload`)),o===null&&(o=O(s,`replacestate`)),s=ve(s);function c(e){switch(e){case``:case`true`:return!0;case`off`:case`false`:return!1;default:return}}return{preload_code:_e[r??`off`],preload_data:_e[i??`off`],keepfocus:c(t),noscroll:c(n),reload:c(a),replace_state:c(o)}}function Se(e){let t=r(e),n=!0;function i(){n=!0,t.update(e=>e)}function a(e){n=!1,t.set(e)}function o(e){let r;return t.subscribe(t=>{(r===void 0||n&&t!==r)&&e(r=t)})}return{notify:i,set:a,subscribe:o}}var Ce={v:h};function we(){let{set:e,subscribe:t}=r(!1);async function n(){clearTimeout(void 0);try{let t=await fetch(`${de}/_app/version.json`,{headers:{pragma:`no-cache`,"cache-control":`no-cache`}});if(!t.ok)return!1;let n=(await t.json()).version!==fe;return n&&(e(!0),Ce.v(),clearTimeout(void 0)),n}catch{return!1}}return{subscribe:t,check:n}}function Te(e,t,n){return e.origin!==E||!e.pathname.startsWith(t)?!0:n?e.pathname!==location.pathname:!1}function Ee(e){}var De=2**32-1,Oe=De-1,ke=class extends Error{constructor(e,t,n,r){super(e),this.name=`DevalueError`,this.path=t.join(``),this.value=n,this.root=r}};function Ae(e){return e===null||typeof e!=`object`&&typeof e!=`function`}var je=Object.getOwnPropertyNames(Object.prototype).sort().join(`\0`);function Me(e){let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null||Object.getPrototypeOf(t)===null||Object.getOwnPropertyNames(t).sort().join(`\0`)===je}function Ne(e){return Object.prototype.toString.call(e).slice(8,-1)}function Pe(e){switch(e){case`"`:return`\\"`;case`<`:return`\\u003C`;case`\\`:return`\\\\`;case`
|
|
2
|
+
`:return`\\n`;case`\r`:return`\\r`;case` `:return`\\t`;case`\b`:return`\\b`;case`\f`:return`\\f`;case`\u2028`:return`\\u2028`;case`\u2029`:return`\\u2029`;default:return e<` `?`\\u${e.charCodeAt(0).toString(16).padStart(4,`0`)}`:``}}function Fe(e){let t=``,n=0,r=e.length;for(let i=0;i<r;i+=1){let r=e[i],a=Pe(r);a&&(t+=e.slice(n,i)+a,n=i+1)}return`"${n===0?e:t+e.slice(n)}"`}function Ie(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.getOwnPropertyDescriptor(e,t).enumerable)}var Le=/^[a-zA-Z_$][a-zA-Z_$0-9]*$/;function Re(e){return Le.test(e)?`.`+e:`[`+JSON.stringify(e)+`]`}function ze(e){return!(!Number.isInteger(e)||e<0||e>Oe)}function Be(e){return!(!Number.isInteger(e)||e<0||e>De)}function Ve(e){if(e.length===0||e.length>1&&e.charCodeAt(0)===48)return!1;for(let t=0;t<e.length;t++){let n=e.charCodeAt(t);if(n<48||n>57)return!1}return ze(+e)}function He(e){let t=Object.keys(e);for(var n=t.length-1;n>=0&&!Ve(t[n]);n--);return t.length=n+1,t}function Ue(e){return new Uint8Array(e).toBase64()}function We(e){return Uint8Array.fromBase64(e).buffer}function Ge(e){return Buffer.from(e).toString(`base64`)}function Ke(e){return Uint8Array.from(Buffer.from(e,`base64`)).buffer}function qe(e){let t=new Uint8Array(e),n=``,r=32768;for(let e=0;e<t.length;e+=r){let i=t.subarray(e,e+r);n+=String.fromCharCode.apply(null,i)}return btoa(n)}function Je(e){let t=atob(e),n=t.length,r=new Uint8Array(n);for(let e=0;e<n;e++)r[e]=t.charCodeAt(e);return r.buffer}var Ye=typeof Uint8Array.fromBase64==`function`,Xe=typeof process==`object`&&process.versions?.node!==void 0,Ze=Ye?Ue:Xe?Ge:qe,Qe=Ye?We:Xe?Ke:Je;function $e(e,t){return et(JSON.parse(e),t)}function et(e,t){if(typeof e==`number`)return a(e,!0);if(!Array.isArray(e)||e.length===0)throw Error(`Invalid input`);let n=e,r=Array(n.length),i=null;function a(e,o=!1){if(e===-1)return;if(e===-3)return NaN;if(e===-4)return 1/0;if(e===-5)return-1/0;if(e===-6)return-0;if(o||typeof e!=`number`)throw Error(`Invalid input`);if(e in r)return r[e];let s=n[e];if(!s||typeof s!=`object`)r[e]=s;else if(Array.isArray(s))if(typeof s[0]==`string`){let o=s[0],c=t&&Object.hasOwn(t,o)?t[o]:void 0;if(c){let t=s[1];if(typeof t!=`number`&&(t=n.push(s[1])-1),i??=new Set,i.has(t))throw Error(`Invalid circular reference`);return i.add(t),r[e]=c(a(t)),i.delete(t),r[e]}switch(o){case`Date`:r[e]=new Date(s[1]);break;case`Set`:let t=new Set;r[e]=t;for(let e=1;e<s.length;e+=1)t.add(a(s[e]));break;case`Map`:let i=new Map;r[e]=i;for(let e=1;e<s.length;e+=2)i.set(a(s[e]),a(s[e+1]));break;case`RegExp`:r[e]=new RegExp(s[1],s[2]);break;case`Object`:{let t=s[1];if(typeof n[t]==`object`&&n[t][0]!==`BigInt`)throw Error(`Invalid input`);r[e]=Object(a(t));break}case`BigInt`:r[e]=BigInt(s[1]);break;case`null`:let c=Object.create(null);r[e]=c;for(let e=1;e<s.length;e+=2){if(s[e]===`__proto__`)throw Error("Cannot parse an object with a `__proto__` property");c[s[e]]=a(s[e+1])}break;case`Int8Array`:case`Uint8Array`:case`Uint8ClampedArray`:case`Int16Array`:case`Uint16Array`:case`Float16Array`:case`Int32Array`:case`Uint32Array`:case`Float32Array`:case`Float64Array`:case`BigInt64Array`:case`BigUint64Array`:case`DataView`:{if(n[s[1]][0]!==`ArrayBuffer`)throw Error(`Invalid data`);let t=globalThis[o],i=a(s[1]);r[e]=s[2]===void 0?new t(i):new t(i,s[2],s[3]);break}case`ArrayBuffer`:{let t=s[1];if(typeof t!=`string`)throw Error(`Invalid ArrayBuffer encoding`);r[e]=Qe(t);break}case`Temporal.Duration`:case`Temporal.Instant`:case`Temporal.PlainDate`:case`Temporal.PlainTime`:case`Temporal.PlainDateTime`:case`Temporal.PlainMonthDay`:case`Temporal.PlainYearMonth`:case`Temporal.ZonedDateTime`:{let t=o.slice(9);r[e]=Temporal[t].from(s[1]);break}case`URL`:r[e]=new URL(s[1]);break;case`URLSearchParams`:r[e]=new URLSearchParams(s[1]);break;default:throw Error(`Unknown type ${o}`)}}else if(s[0]===-7){let t=s[1];if(!Be(t))throw Error(`Invalid input`);let n=[];r[e]=n,n[Oe]=void 0,delete n[Oe];for(let e=2;e<s.length;e+=2){let r=s[e];if(!ze(r)||r>=t)throw Error(`Invalid input`);n[r]=a(s[e+1])}n.length=t}else{let t=Array(s.length);r[e]=t;for(let e=0;e<s.length;e+=1){let n=s[e];n!==-2&&(t[e]=a(n))}}else{let t={};r[e]=t;for(let e of Object.keys(s)){if(e===`__proto__`)throw Error("Cannot parse an object with a `__proto__` property");let n=s[e];t[e]=a(n)}}return r[e]}return a(0)}var tt=new Set([`load`,`prerender`,`csr`,`ssr`,`trailingSlash`,`config`]);new Set([...tt,`entries`]);var nt=new Set([...tt]);new Set([...nt,`actions`,`entries`]),new Set([`GET`,`POST`,`PATCH`,`PUT`,`DELETE`,`OPTIONS`,`HEAD`,`fallback`,`prerender`,`trailingSlash`,`config`,`entries`]);function rt(e){return e.filter(e=>e!=null)}var it=`x-sveltekit-invalidated`,at=`x-sveltekit-trailing-slash`;function k(e,t){return e+`/`+t}function ot(e){return e instanceof c||e instanceof u?e.status:500}function st(e){return e instanceof u?e.text:`Internal Error`}var A,j,ct,lt=o.toString().includes(`$$`)||/function \w+\(\) \{\}/.test(o.toString()),ut=`a:`;lt?(A={data:{},form:null,error:null,params:{},route:{id:null},state:{},status:-1,url:new URL(ut)},j={current:null},ct={current:!1}):(A=new class{#e=t({});get data(){return a(this.#e)}set data(e){n(this.#e,e)}#t=t(null);get form(){return a(this.#t)}set form(e){n(this.#t,e)}#n=t(null);get error(){return a(this.#n)}set error(e){n(this.#n,e)}#r=t({});get params(){return a(this.#r)}set params(e){n(this.#r,e)}#i=t({id:null});get route(){return a(this.#i)}set route(e){n(this.#i,e)}#a=t({});get state(){return a(this.#a)}set state(e){n(this.#a,e)}#o=t(-1);get status(){return a(this.#o)}set status(e){n(this.#o,e)}#s=t(new URL(ut));get url(){return a(this.#s)}set url(e){n(this.#s,e)}},j=new class{#e=t(null);get current(){return a(this.#e)}set current(e){n(this.#e,e)}},ct=new class{#e=t(!1);get current(){return a(this.#e)}set current(e){n(this.#e,e)}},Ce.v=()=>ct.current=!0);function dt(e){Object.assign(A,e)}var ft=`/__data.json`,pt=`.html__data.json`;function mt(e){return e.endsWith(`.html`)?e.replace(/\.html$/,pt):e.replace(/\/$/,``)+ft}async function*ht(e){let t=!1,n=``,r=new TextDecoder;for(;;){let i=n.indexOf(`
|
|
3
3
|
`);for(;i!==-1;){let e=n.slice(0,i).trim();n=n.slice(i+1),e&&(yield JSON.parse(e)),i=n.indexOf(`
|
|
4
|
-
`)}if(t){let e=n.trim();e&&(yield JSON.parse(e));return}let a=await e.read();t=a.done,a.value&&(n+=r.decode(a.value,{stream:!0})),t&&(n+=r.decode())}}var{onMount:gt,tick:_t}=o,vt=new Set([`icon`,`shortcut icon`,`apple-touch-icon`]),M=null,N=le(`sveltekit:scroll`)??{},P=le(`sveltekit:snapshot`)??{},F={url:Se({}),page:Se({}),navigating:i(null),updated:we()};function yt(e){N[e]=D()}function bt(e,t){let n=e+1;for(;N[n];)delete N[n],n+=1;for(n=t+1;P[n];)delete P[n],n+=1}function I(e,t=!1){return t?location.replace(e.href):location.href=e.href,new Promise(h)}async function xt(){if(`serviceWorker`in navigator){let e=await navigator.serviceWorker.getRegistration(S||`/`);e&&await e.update()}}var St,Ct,wt,L,Tt,R,Et=[],Dt=[],z=null;function B(){z?.fork?.then(e=>e?.discard()),z=null}var Ot=new Map,kt=new Set,At=new Set,V=new Set,H={branch:[],error:null,url:null,nav:null},jt=!1,Mt=!1,Nt=!0,U=!1,W=!1,Pt=!1,G=!1,K,q,J,Y,X=new Set,Ft,It=new Map,Lt=new Map;async function Rt(e,t,n){globalThis.__sveltekit_1paeeic&&(globalThis.__sveltekit_1paeeic.query,globalThis.__sveltekit_1paeeic.prerender),document.URL!==location.href&&(location.href=location.href),R=e,await e.hooks.init?.(),St=ce(e),L=document.documentElement,Tt=t,Ct=e.nodes[0],wt=e.nodes[1],Ct(),wt(),q=history.state?.[C],J=history.state?.[w],q||(q=J=Date.now(),history.replaceState({...history.state,[C]:q,[w]:J},``));let r=N[q];function i(){r&&(history.scrollRestoration=`manual`,scrollTo(r.x,r.y))}n?(i(),await bn(Tt,n)):(await Q({type:`enter`,url:ge(R.hash?Dn(new URL(location.href)):location.href),replace_state:!0}),i()),yn()}async function zt(e=!0,t=!0){if(await(Ft||=Promise.resolve()),!Ft)return;Ft=null;let n=Y={},r=await an(H.url,!0);B();let i=new Map;if(G){for(let e of It.values())for(let{resource:t}of e.values())t.refresh();for(let[e,t]of Lt)for(let[n,{resource:r}]of t){let t=k(e,n),a=r.reconnect();a.catch(h),i.set(t,a)}}if(e){let e=A.state,i=r&&await en(r);if(!i||n!==Y)return;if(i.type===`redirect`)return Wt(new URL(i.location,H.url).href,{replaceState:!0},1,n);t||(i.props.page.state=e),dt(i.props.page),H={...i.state,nav:H.nav},Bt(),K.$set(i.props)}else Bt();let a=[];for(let e of It.values())for(let{resource:t}of e.values())a.push(t);for(let[e,t]of Lt)for(let n of t.keys()){let t=k(e,n),r=i.get(t);r&&a.push(r)}await Promise.all(a).catch(h)}function Bt(){Et.length=0,G=!1}function Vt(e){Dt.some(e=>e?.snapshot)&&(P[e]=Dt.map(e=>e?.snapshot?.capture()))}function Ht(e){P[e]?.forEach((e,t)=>{Dt[t]?.snapshot?.restore(e)})}function Ut(){yt(q),ue(me,N),Vt(J),ue(pe,P)}async function Wt(e,t,r,i){let a,o;t.invalidateAll&&B(),await Q({type:`goto`,url:ge(e),keepfocus:t.keepFocus,noscroll:t.noScroll,replace_state:t.replaceState,state:t.state,redirect_count:r,nav_token:i,accept:()=>{if(t.invalidateAll){G=!0,a=new Set;for(let[e,t]of It)for(let n of t.keys())a.add(k(e,n));o=new Set;for(let[e,t]of Lt)for(let n of t.keys())o.add(k(e,n))}t.invalidate&&t.invalidate.forEach(hn)}}),t.invalidateAll&&n().then(n).then(()=>{for(let[e,t]of It)for(let[n,{resource:r}]of t)a?.has(k(e,n))&&r.refresh();for(let[e,t]of Lt)for(let[n,{resource:r}]of t)o?.has(k(e,n))&&r.reconnect()})}async function Gt(e){if(e.id!==z?.id){B();let t={};X.add(t),z={id:e.id,token:t,promise:en({...e,preload:t}).then(e=>(X.delete(t),e.type===`loaded`&&e.state.error&&B(),e)),fork:null}}return z.promise}async function Kt(e){let t=(await an(e,!1))?.route;t&&await Promise.all([...t.layouts,t.leaf].filter(Boolean).map(e=>e[1]()))}async function qt(e,t,n){let r={params:H.params,route:{id:H.route?.id??null},url:new URL(location.href)};if(H={...e.state,nav:r},dt(e.props.page),K=new R.root({target:t,props:{...e.props,stores:F,components:Dt},hydrate:n,sync:!1,transformError:void 0}),await Promise.resolve(),Ht(J),n){let e={from:null,to:{...r,scroll:N[q]??D()},willUnload:!1,type:`enter`,complete:Promise.resolve()};V.forEach(t=>t(e))}Mt=!0}async function Z({url:e,params:t,branch:n,errors:r,status:i,error:a,route:o,form:s}){let c=`never`;if(S&&(e.pathname===S||e.pathname===S+`/`))c=`always`;else for(let e of n)e?.slash!==void 0&&(c=e.slash);e.pathname=d(e.pathname,c),e.search=e.search;let l={type:`loaded`,state:{url:e,params:t,branch:n,error:a,route:o},props:{constructors:rt(n).map(e=>e.node.component),page:En(A)}};s!==void 0&&(l.props.form=s);let u={},f=!A,p=0;for(let e=0;e<Math.max(n.length,H.branch.length);e+=1){let t=n[e],r=H.branch[e];t?.data!==r?.data&&(f=!0),t&&(u={...u,...t.data},f&&(l.props[`data_${p}`]=u),p+=1)}return(!H.url||e.href!==H.url.href||H.error!==a||s!==void 0&&s!==A.form||f)&&(l.props.page={error:a,params:t,route:{id:o?.id??null},state:{},status:i,url:new URL(e),form:s??null,data:f?u:A.data}),l}async function Jt({loader:e,parent:t,url:n,params:r,route:i,server_data_node:a}){let o={dependencies:new Set,params:new Set,parent:!1,route:!1,url:!1,search_params:new Set},s=await e();return{node:s,loader:e,server:a,universal:s.universal?.load?{type:`data`,data:null,uses:o}:null,data:a?.data??null,slash:s.universal?.trailingSlash??a?.slash}}function Yt(e,t,n){let r=e instanceof Request?e.url:e,i=new URL(r,n);return i.origin===n.origin&&(r=i.href.slice(n.origin.length)),{resolved:i,promise:Mt?b(r,i.href,t):y(r,t)}}function Xt(e,t,n,r,i,a){if(G)return!0;if(!i)return!1;if(i.parent&&e||i.route&&t||i.url&&n)return!0;for(let e of i.search_params)if(r.has(e))return!0;for(let e of i.params)if(a[e]!==H.params[e])return!0;for(let e of i.dependencies)if(Et.some(t=>t(new URL(e))))return!0;return!1}function Zt(e,t){return e?.type===`data`?e:e?.type===`skip`?t??null:null}function Qt(e,t){if(!e)return new Set(t.searchParams.keys());let n=new Set([...e.searchParams.keys(),...t.searchParams.keys()]);for(let r of n){let i=e.searchParams.getAll(r),a=t.searchParams.getAll(r);i.every(e=>a.includes(e))&&a.every(e=>i.includes(e))&&n.delete(r)}return n}function $t({error:e,url:t,route:n,params:r}){return{type:`loaded`,state:{error:e,url:t,route:n,params:r,branch:[]},props:{page:En(A),constructors:[]}}}async function en({id:e,invalidating:t,url:n,params:r,route:i,preload:a}){if(z?.id===e)return X.delete(z.token),z.promise;let{errors:o,layouts:s,leaf:u}=i,d=[...s,u];o.forEach(e=>e?.().catch(h)),d.forEach(e=>e?.[1]().catch(h));let f=null,p=H.url?e!==sn(H.url):!1,m=H.route?i.id!==H.route.id:!1,ee=Qt(H.url,n),g=!1;{let t=d.map((e,t)=>{let n=H.branch[t],i=!!e?.[0]&&(n?.loader!==e[1]||Xt(g,m,p,ee,n.server?.uses,r));return i&&(g=!0),i});if(t.some(Boolean)){try{f=await xn(n,t)}catch(t){let o=await $(t,{url:n,params:r,route:{id:e}});return X.has(a)?$t({error:o,url:n,params:r,route:i}):nn({status:ot(t),error:o,url:n,route:i})}if(f.type===`redirect`)return f}}let _=f?.nodes,v=!1,y=d.map(async(e,t)=>{if(!e)return;let a=H.branch[t],o=_?.[t];if((!o||o.type===`skip`)&&e[1]===a?.loader&&!Xt(v,m,p,ee,a.universal?.uses,r))return a;if(v=!0,o?.type===`error`)throw o;return Jt({loader:e[1],url:n,params:r,route:i,parent:async()=>{let e={};for(let n=0;n<t;n+=1)Object.assign(e,(await y[n])?.data);return e},server_data_node:Zt(o===void 0&&e[0]?{type:`skip`}:o??null,e[0]?a?.server:void 0)})});for(let e of y)e.catch(h);let b=[];for(let e=0;e<d.length;e+=1)if(d[e])try{b.push(await y[e])}catch(t){if(t instanceof l)return{type:`redirect`,location:t.location};if(X.has(a))return $t({error:await $(t,{params:r,url:n,route:{id:i.id}}),url:n,params:r,route:i});let s=ot(t),u;if(_?.includes(t))s=t.status??s,u=t.error;else if(t instanceof c)u=t.body;else{if(await F.updated.check())return await xt(),await I(n);u=await $(t,{params:r,url:n,route:{id:i.id}})}let d=await tn(e,b,o);return d?Z({url:n,params:r,branch:b.slice(0,d.idx).concat(d.node),errors:o,status:s,error:u,route:i}):await ln(n,{id:i.id},u,s)}else b.push(void 0);return Z({url:n,params:r,branch:b,errors:o,status:200,error:null,route:i,form:t?void 0:null})}async function tn(e,t,n){for(;e--;)if(n[e]){let r=e;for(;!t[r];)--r;try{return{idx:r+1,node:{node:await n[e](),loader:n[e],data:{},server:null,universal:null}}}catch{continue}}}async function nn({status:e,error:t,url:n,route:r}){let i={},a=null;if(R.server_loads[0]===0)try{let e=await xn(n,[!0]);if(e.type!==`data`||e.nodes[0]&&e.nodes[0].type!==`data`)throw 0;a=e.nodes[0]??null}catch{(n.origin!==E||n.pathname!==location.pathname||jt)&&await I(n)}try{return Z({url:n,params:i,branch:[await Jt({loader:Ct,url:n,params:i,route:r,parent:()=>Promise.resolve({}),server_data_node:Zt(a)}),{node:await wt(),loader:wt,universal:null,server:null,data:null}],status:e,error:t,errors:[],route:null})}catch(e){if(e instanceof l)return Wt(new URL(e.location,location.href),{},0);throw e}}async function rn(e){let t=e.href;if(Ot.has(t))return Ot.get(t);let n;try{let r=(async()=>{let t=await R.hooks.reroute({url:new URL(e),fetch:async(t,n)=>Yt(t,n,e).promise})??e;if(typeof t==`string`){let n=new URL(e);R.hash?n.hash=t:n.pathname=t,t=n}return t})();Ot.set(t,r),n=await r}catch{Ot.delete(t);return}return n}async function an(e,t){if(e&&!Te(e,S,R.hash)){let n=await rn(e);if(!n)return;let r=on(n);for(let n of St){let i=n.exec(r);if(i)return{id:sn(e),invalidating:t,route:n,params:p(i),url:e}}}}function on(e){return f(R.hash?e.hash.replace(/^#/,``).replace(/[?#].+/,``):e.pathname.slice(S.length))||`/`}function sn(e){return(R.hash?e.hash.replace(/^#/,``):e.pathname)+e.search}function cn({url:e,type:t,intent:n,delta:r,event:i,scroll:a}){let o=!1,s=Tn(H,n,e,t,a??null);r!==void 0&&(s.navigation.delta=r),i!==void 0&&(s.navigation.event=i);let c={...s.navigation,cancel:()=>{o=!0,s.reject(Error(`navigation cancelled`))}};return U||kt.forEach(e=>e(c)),o?null:s}async function Q({type:t,url:r,popped:i,keepfocus:a,noscroll:o,replace_state:s,state:c={},redirect_count:l=0,nav_token:d={},accept:f=h,block:p=h,event:m}){let ee=Y;Y=d;let g=await an(r,!1),_=t===`enter`?Tn(H,g,r,t):cn({url:r,type:t,delta:i?.delta,intent:g,scroll:i?.scroll,event:m});if(!_){p(),Y===d&&(Y=ee);return}let v=q,y=J;f(),U=!0,Mt&&_.navigation.type!==`enter`&&F.navigating.set(j.current=_.navigation);let b=g&&await en(g);if(!b){if(Te(r,S,R.hash))return await I(r,s);b=await ln(r,{id:null},await $(new u(404,`Not Found`,`Not found: ${r.pathname}`),{url:r,params:{},route:{id:null}}),404,s)}if(r=g?.url||r,Y!==d)return _.reject(Error(`navigation aborted`)),!1;if(b.type===`redirect`){if(l<20){await Q({type:t,url:new URL(b.location,r),popped:i,keepfocus:a,noscroll:o,replace_state:s,state:c,redirect_count:l+1,nav_token:d}),_.fulfil(void 0);return}b=await nn({status:500,error:await $(Error(`Redirect loop`),{url:r,params:{},route:{id:null}}),url:r,route:{id:null}})}else b.props.page.status>=400&&await F.updated.check()&&(await xt(),await I(r,s));if(Bt(),yt(v),Vt(y),b.props.page.url.pathname!==r.pathname&&(r.pathname=b.props.page.url.pathname),c=i?i.state:c,!i){let e=+!s,t={[C]:q+=e,[w]:J+=e,[he]:c};(s?history.replaceState:history.pushState).call(history,t,``,r),s||bt(q,J)}let x=g&&z?.id===g.id?z.fork:null;z?.fork&&!x&&B(),z=null,b.props.page.state=c;let te;if(Mt){let t=(await Promise.all(Array.from(At,e=>e(_.navigation)))).filter(e=>typeof e==`function`);if(t.length>0){function e(){t.forEach(e=>{V.delete(e)})}t.push(e),t.forEach(e=>{V.add(e)})}let n=_.navigation.to;H={...b.state,nav:{params:n.params,route:n.route,url:n.url}},b.props.page&&(b.props.page.url=r);let i=x&&await x;i?te=i.commit():(M=null,K.$set(b.props),M&&Object.assign(b.props.page,M),dt(b.props.page),te=e?.()),Pt=!0}else await qt(b,Tt,!1);let{activeElement:ne}=document;if(await te,await n(),await n(),Y!==d)return _.reject(Error(`navigation aborted`)),!1;b.props.page&&M&&Object.assign(b.props.page,M);let re=null;if(Nt){let e=i?i.scroll:o?D():null;e?scrollTo(e.x,e.y):(re=r.hash&&document.getElementById(On(r)))?re.scrollIntoView():scrollTo(0,0)}let ie=document.activeElement!==ne&&document.activeElement!==document.body;!a&&!ie&&wn(r,!re),Nt=!0,U=!1,t===`popstate`&&Ht(J),_.fulfil(void 0),_.navigation.to&&(_.navigation.to.scroll=D()),V.forEach(e=>e(_.navigation)),F.navigating.set(j.current=null)}async function ln(e,t,n,r,i){return e.origin===E&&e.pathname===location.pathname&&!jt?await nn({status:r,error:n,url:e,route:t}):await I(e,i)}function un(){let e,t={element:void 0,href:void 0},n;L.addEventListener(`mousemove`,t=>{let n=t.target;clearTimeout(e),e=setTimeout(()=>{a(n,T.hover)},20)});function r(e){e.defaultPrevented||a(e.composedPath()[0],T.tap)}L.addEventListener(`mousedown`,r),L.addEventListener(`touchstart`,r,{passive:!0});let i=new IntersectionObserver(e=>{for(let t of e)t.isIntersecting&&(Kt(new URL(t.target.href)),i.unobserve(t.target))},{threshold:0});async function a(e,r){let i=ye(e,L),a=i===t.element&&i?.href===t.href&&r>=n;if(!i||a)return;let{url:o,external:s,download:c}=be(i,S,R.hash);if(s||c)return;let l=xe(i),u=o&&sn(H.url)===sn(o);if(!(l.reload||u))if(r<=l.preload_data){t={element:i,href:i.href},n=T.tap;let e=await an(o,!1);if(!e)return;Gt(e)}else r<=l.preload_code&&(t={element:i,href:i.href},n=r,Kt(o))}function o(){i.disconnect();for(let e of L.querySelectorAll(`a`)){let{url:t,external:n,download:r}=be(e,S,R.hash);if(n||r)continue;let a=xe(e);a.reload||(a.preload_code===T.viewport&&i.observe(e),a.preload_code===T.eager&&Kt(t))}}V.add(o),o()}function $(e,t){if(e instanceof c)return e.body;let n=ot(e),r=st(e);return R.hooks.handleError({error:e,event:t,status:n,message:r})??{message:r}}function dn(e,t){gt(()=>(e.add(t),()=>{e.delete(t)}))}function fn(e){dn(V,e)}function pn(e){dn(kt,e)}function mn(e,t={}){return e=new URL(ge(e)),e.origin===E?Wt(e,t,0):Promise.reject(Error(`goto: invalid URL`))}function hn(e){if(typeof e==`function`)Et.push(e);else{let{href:t}=new URL(e,location.href);Et.push(e=>e.href===t)}}function gn(){return G=!0,zt()}async function _n(e){e.type===`error`?await vn(e.error,e.status):e.type===`redirect`?await Wt(e.location,{invalidateAll:!0},0):(A.form=e.data,A.status=e.status,K.$set({form:null,page:En(A)}),await _t(),K.$set({form:e.data}),e.type===`success`&&wn(A.url))}async function vn(e,t=500){let n=new URL(location.href),{branch:r,route:i}=H;if(!i)return;let a=await tn(H.branch.length,r,i.errors);if(a){let o=await Z({url:n,params:H.params,branch:r.slice(0,a.idx).concat(a.node),status:t,error:e,route:i});H={...o.state,nav:H.nav},K.$set(o.props),dt(o.props.page),_t().then(()=>wn(H.url))}}function yn(){history.scrollRestoration=`manual`,addEventListener(`beforeunload`,e=>{let t=!1;if(Ut(),!U){let e=Tn(H,void 0,null,`leave`),n={...e.navigation,cancel:()=>{t=!0,e.reject(Error(`navigation cancelled`))}};kt.forEach(e=>e(n))}t?(e.preventDefault(),e.returnValue=``):history.scrollRestoration=`auto`}),addEventListener(`visibilitychange`,()=>{document.visibilityState===`hidden`&&Ut()}),!navigator.connection?.saveData&&!/2g/.test(navigator.connection?.effectiveType)&&un(),L.addEventListener(`click`,async t=>{if(t.button||t.which!==1||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.defaultPrevented)return;let n=ye(t.composedPath()[0],L);if(!n)return;let{url:r,external:i,target:a,download:o}=be(n,S,R.hash);if(!r)return;if(a===`_parent`||a===`_top`){if(window.parent!==window)return}else if(a&&a!==`_self`)return;let s=xe(n);if(!(n instanceof SVGAElement)&&r.protocol!==location.protocol&&!(r.protocol===`https:`||r.protocol===`http:`)||o)return;let[c,l]=(R.hash?r.hash.replace(/^#/,``):r.href).split(`#`),u=c===m(location);if(i||s.reload&&(!u||!l)){cn({url:r,type:`link`,event:t})?U=!0:t.preventDefault();return}if(l!==void 0&&u){let[,i]=H.url.href.split(`#`);if(i===l){if(t.preventDefault(),l===``||l===`top`&&n.ownerDocument.getElementById(`top`)===null)scrollTo({top:0});else{let e=n.ownerDocument.getElementById(decodeURIComponent(l));e&&(e.scrollIntoView(),e.focus())}return}if(W=!0,yt(q),e(r),!s.replace_state)return;W=!1}t.preventDefault(),await new Promise(e=>{requestAnimationFrame(()=>{setTimeout(e,0)}),setTimeout(e,100)}),await Q({type:`link`,url:r,keepfocus:s.keepfocus,noscroll:s.noscroll,replace_state:s.replace_state??r.href===location.href,event:t})}),L.addEventListener(`submit`,e=>{if(e.defaultPrevented)return;let t=HTMLFormElement.prototype.cloneNode.call(e.target),n=e.submitter;if((n?.formTarget||t.target)===`_blank`||(n?.formMethod||t.method)!==`get`)return;let r=new URL(n?.hasAttribute(`formaction`)&&n?.formAction||t.action);if(Te(r,S,!1))return;let i=e.target,a=xe(i);if(a.reload)return;e.preventDefault(),e.stopPropagation();let o=new FormData(i,n);r.search=new URLSearchParams(o).toString(),Q({type:`form`,url:r,keepfocus:a.keepfocus,noscroll:a.noscroll,replace_state:a.replace_state??r.href===location.href,event:e})}),addEventListener(`popstate`,async t=>{if(!Cn)if(t.state?.[`sveltekit:history`]){let n=t.state[C];if(Y={},n===q)return;let r=N[n],i=t.state[`sveltekit:states`]??{},a=new URL(t.state[`sveltekit:pageurl`]??location.href),o=t.state[w],s=H.url?m(location)===m(H.url):!1;if(o===J&&(Pt||s)){i!==A.state&&(A.state=i),e(a),N[q]=D(),r&&scrollTo(r.x,r.y),q=n;return}let c=n-q;await Q({type:`popstate`,url:a,popped:{state:i,scroll:r,delta:c},accept:()=>{q=n,J=o},block:()=>{history.go(-c)},nav_token:Y,event:t})}else W||(e(new URL(location.href)),R.hash&&location.reload())}),addEventListener(`hashchange`,()=>{W&&(W=!1,history.replaceState({...history.state,[C]:++q,[w]:J},``,location.href))});for(let e of document.querySelectorAll(`link`))vt.has(e.rel)&&(e.href=e.href);addEventListener(`pageshow`,e=>{e.persisted&&F.navigating.set(j.current=null)});function e(e){H.url=A.url=e,F.page.set(En(A)),F.page.notify()}}async function bn(e,{status:t=200,error:n,node_ids:r,params:i,route:a,server_route:o,data:s,form:c}){jt=!0;let u=new URL(location.href),d;({params:i={},route:a={id:null}}=await an(u,!1)||{}),d=St.find(({id:e})=>e===a.id);let f,p=!0;try{let e=r.map(async(t,n)=>{let r=s[n];return r?.uses&&(r.uses=Sn(r.uses)),Jt({loader:R.nodes[t],url:u,params:i,route:a,parent:async()=>{let t={};for(let r=0;r<n;r+=1)Object.assign(t,(await e[r]).data);return t},server_data_node:Zt(r)})}),o=await Promise.all(e);if(d){let e=d.layouts;for(let t=0;t<e.length;t++)e[t]||o.splice(t,0,void 0)}f=await Z({url:u,params:i,branch:o,status:t,error:n,errors:d?.errors,form:c,route:d??null})}catch(t){if(t instanceof l){await I(new URL(t.location,location.href));return}f=await nn({status:ot(t),error:await $(t,{url:u,params:i,route:a}),url:u,route:a}),e.textContent=``,p=!1}f.props.page&&(f.props.page.state={}),await qt(f,e,p)}async function xn(e,t){let n=new URL(e);n.pathname=mt(e.pathname),e.pathname.endsWith(`/`)&&n.searchParams.append(at,`1`),n.searchParams.append(it,t.map(e=>e?`1`:`0`).join(``));let r=await(0,window.fetch)(n.href,{});if(!r.ok){let e;throw r.headers.get(`content-type`)?.includes(`application/json`)?e=await r.json():r.status===404?e=`Not Found`:r.status===500&&(e=`Internal Error`),new c(r.status,e)}return new Promise(async e=>{let t=new Map,n=r.body.getReader();function i(e){return et(e,{...R.decoders,Promise:e=>new Promise((n,r)=>{t.set(e,{fulfil:n,reject:r})})})}for await(let r of ht(n)){if(r.type===`redirect`)return e(r);if(r.type===`data`)r.nodes?.forEach(e=>{e?.type===`data`&&(e.uses=Sn(e.uses),e.data=i(e.data))}),e(r);else if(r.type===`chunk`){let{id:e,data:n,error:a}=r,o=t.get(e);t.delete(e),a?o.reject(i(a)):o.fulfil(i(n))}}})}function Sn(e){return{dependencies:new Set(e?.dependencies??[]),params:new Set(e?.params??[]),parent:!!e?.parent,route:!!e?.route,url:!!e?.url,search_params:new Set(e?.search_params??[])}}var Cn=!1;function wn(e,t=!0){let n=document.querySelector(`[autofocus]`);if(n)n.focus();else{let n=On(e);if(n&&document.getElementById(n)){let{x:r,y:i}=D();setTimeout(()=>{let a=history.state;Cn=!0,location.replace(new URL(`#${n}`,location.href)),history.replaceState(a,``,e),t&&scrollTo(r,i),Cn=!1})}else{let e=document.body,t=e.getAttribute(`tabindex`);e.tabIndex=-1,e.focus({preventScroll:!0,focusVisible:!1}),t===null?e.removeAttribute(`tabindex`):e.setAttribute(`tabindex`,t)}let r=getSelection();if(r&&r.type!==`None`){let e=[];for(let t=0;t<r.rangeCount;t+=1)e.push(r.getRangeAt(t));setTimeout(()=>{if(r.rangeCount===e.length){for(let t=0;t<r.rangeCount;t+=1){let n=e[t],i=r.getRangeAt(t);if(n.commonAncestorContainer!==i.commonAncestorContainer||n.startContainer!==i.startContainer||n.endContainer!==i.endContainer||n.startOffset!==i.startOffset||n.endOffset!==i.endOffset)return}r.removeAllRanges()}})}}}function Tn(e,t,n,r,i=null){let a,o,s=new Promise((e,t)=>{a=e,o=t});return s.catch(h),{navigation:{from:{params:e.params,route:{id:e.route?.id??null},url:e.url,scroll:D()},to:n&&{params:t?.params??null,route:{id:t?.route?.id??null},url:n,scroll:i},willUnload:!t,type:r,complete:s},fulfil:a,reject:o}}function En(e){return{data:e.data,error:e.error,form:e.form,params:e.params,route:e.route,state:e.state,status:e.status,url:e.url}}function Dn(e){let t=new URL(e);return t.hash=decodeURIComponent(e.hash),t}function On(e){let t;if(R.hash){let[,,n]=e.hash.split(`#`,3);t=n??``}else t=e.hash.slice(1);return decodeURIComponent(t)}export{h as C,Ee as S,Me as _,mn as a,Fe as b,F as c,ct as d,$e as f,Ne as g,Ie as h,pn as i,j as l,ke as m,R as n,gn as o,Ze as p,_n as r,Rt as s,fn as t,A as u,Ae as v,He as x,Re as y};
|
|
4
|
+
`)}if(t){let e=n.trim();e&&(yield JSON.parse(e));return}let a=await e.read();t=a.done,a.value&&(n+=r.decode(a.value,{stream:!0})),t&&(n+=r.decode())}}var{onMount:gt,tick:_t}=s,vt=new Set([`icon`,`shortcut icon`,`apple-touch-icon`]),M=null,N=le(`sveltekit:scroll`)??{},P=le(`sveltekit:snapshot`)??{},F={url:Se({}),page:Se({}),navigating:r(null),updated:we()};function yt(e){N[e]=D()}function bt(e,t){let n=e+1;for(;N[n];)delete N[n],n+=1;for(n=t+1;P[n];)delete P[n],n+=1}function I(e,t=!1){return t?location.replace(e.href):location.href=e.href,new Promise(h)}async function xt(){if(`serviceWorker`in navigator){let e=await navigator.serviceWorker.getRegistration(S||`/`);e&&await e.update()}}var St,Ct,wt,L,Tt,R,Et=[],Dt=[],z=null;function B(){z?.fork?.then(e=>e?.discard()),z=null}var Ot=new Map,kt=new Set,At=new Set,V=new Set,H={branch:[],error:null,url:null,nav:null},jt=!1,Mt=!1,Nt=!0,U=!1,W=!1,Pt=!1,G=!1,K,q,J,Y,X=new Set,Ft,It=new Map,Lt=new Map;async function Rt(e,t,n){globalThis.__sveltekit_1aizyhc&&(globalThis.__sveltekit_1aizyhc.query,globalThis.__sveltekit_1aizyhc.prerender),document.URL!==location.href&&(location.href=location.href),R=e,await e.hooks.init?.(),St=ce(e),L=document.documentElement,Tt=t,Ct=e.nodes[0],wt=e.nodes[1],Ct(),wt(),q=history.state?.[C],J=history.state?.[w],q||(q=J=Date.now(),history.replaceState({...history.state,[C]:q,[w]:J},``));let r=N[q];function i(){r&&(history.scrollRestoration=`manual`,scrollTo(r.x,r.y))}n?(i(),await bn(Tt,n)):(await Q({type:`enter`,url:ge(R.hash?Dn(new URL(location.href)):location.href),replace_state:!0}),i()),yn()}async function zt(e=!0,t=!0){if(await(Ft||=Promise.resolve()),!Ft)return;Ft=null;let n=Y={},r=await an(H.url,!0);B();let i=new Map;if(G){for(let e of It.values())for(let{resource:t}of e.values())t.refresh();for(let[e,t]of Lt)for(let[n,{resource:r}]of t){let t=k(e,n),a=r.reconnect();a.catch(h),i.set(t,a)}}if(e){let e=A.state,i=r&&await en(r);if(!i||n!==Y)return;if(i.type===`redirect`)return Wt(new URL(i.location,H.url).href,{replaceState:!0},1,n);t||(i.props.page.state=e),dt(i.props.page),H={...i.state,nav:H.nav},Bt(),K.$set(i.props)}else Bt();let a=[];for(let e of It.values())for(let{resource:t}of e.values())a.push(t);for(let[e,t]of Lt)for(let n of t.keys()){let t=k(e,n),r=i.get(t);r&&a.push(r)}await Promise.all(a).catch(h)}function Bt(){Et.length=0,G=!1}function Vt(e){Dt.some(e=>e?.snapshot)&&(P[e]=Dt.map(e=>e?.snapshot?.capture()))}function Ht(e){P[e]?.forEach((e,t)=>{Dt[t]?.snapshot?.restore(e)})}function Ut(){yt(q),ue(me,N),Vt(J),ue(pe,P)}async function Wt(e,t,n,r){let a,o;t.invalidateAll&&B(),await Q({type:`goto`,url:ge(e),keepfocus:t.keepFocus,noscroll:t.noScroll,replace_state:t.replaceState,state:t.state,redirect_count:n,nav_token:r,accept:()=>{if(t.invalidateAll){G=!0,a=new Set;for(let[e,t]of It)for(let n of t.keys())a.add(k(e,n));o=new Set;for(let[e,t]of Lt)for(let n of t.keys())o.add(k(e,n))}t.invalidate&&t.invalidate.forEach(hn)}}),t.invalidateAll&&i().then(i).then(()=>{for(let[e,t]of It)for(let[n,{resource:r}]of t)a?.has(k(e,n))&&r.refresh();for(let[e,t]of Lt)for(let[n,{resource:r}]of t)o?.has(k(e,n))&&r.reconnect()})}async function Gt(e){if(e.id!==z?.id){B();let t={};X.add(t),z={id:e.id,token:t,promise:en({...e,preload:t}).then(e=>(X.delete(t),e.type===`loaded`&&e.state.error&&B(),e)),fork:null}}return z.promise}async function Kt(e){let t=(await an(e,!1))?.route;t&&await Promise.all([...t.layouts,t.leaf].filter(Boolean).map(e=>e[1]()))}async function qt(e,t,n){let r={params:H.params,route:{id:H.route?.id??null},url:new URL(location.href)};if(H={...e.state,nav:r},dt(e.props.page),K=new R.root({target:t,props:{...e.props,stores:F,components:Dt},hydrate:n,sync:!1,transformError:void 0}),await Promise.resolve(),Ht(J),n){let e={from:null,to:{...r,scroll:N[q]??D()},willUnload:!1,type:`enter`,complete:Promise.resolve()};V.forEach(t=>t(e))}Mt=!0}async function Z({url:e,params:t,branch:n,errors:r,status:i,error:a,route:o,form:s}){let c=`never`;if(S&&(e.pathname===S||e.pathname===S+`/`))c=`always`;else for(let e of n)e?.slash!==void 0&&(c=e.slash);e.pathname=d(e.pathname,c),e.search=e.search;let l={type:`loaded`,state:{url:e,params:t,branch:n,error:a,route:o},props:{constructors:rt(n).map(e=>e.node.component),page:En(A)}};s!==void 0&&(l.props.form=s);let u={},f=!A,p=0;for(let e=0;e<Math.max(n.length,H.branch.length);e+=1){let t=n[e],r=H.branch[e];t?.data!==r?.data&&(f=!0),t&&(u={...u,...t.data},f&&(l.props[`data_${p}`]=u),p+=1)}return(!H.url||e.href!==H.url.href||H.error!==a||s!==void 0&&s!==A.form||f)&&(l.props.page={error:a,params:t,route:{id:o?.id??null},state:{},status:i,url:new URL(e),form:s??null,data:f?u:A.data}),l}async function Jt({loader:e,parent:t,url:n,params:r,route:i,server_data_node:a}){let o={dependencies:new Set,params:new Set,parent:!1,route:!1,url:!1,search_params:new Set},s=await e();return{node:s,loader:e,server:a,universal:s.universal?.load?{type:`data`,data:null,uses:o}:null,data:a?.data??null,slash:s.universal?.trailingSlash??a?.slash}}function Yt(e,t,n){let r=e instanceof Request?e.url:e,i=new URL(r,n);return i.origin===n.origin&&(r=i.href.slice(n.origin.length)),{resolved:i,promise:Mt?b(r,i.href,t):y(r,t)}}function Xt(e,t,n,r,i,a){if(G)return!0;if(!i)return!1;if(i.parent&&e||i.route&&t||i.url&&n)return!0;for(let e of i.search_params)if(r.has(e))return!0;for(let e of i.params)if(a[e]!==H.params[e])return!0;for(let e of i.dependencies)if(Et.some(t=>t(new URL(e))))return!0;return!1}function Zt(e,t){return e?.type===`data`?e:e?.type===`skip`?t??null:null}function Qt(e,t){if(!e)return new Set(t.searchParams.keys());let n=new Set([...e.searchParams.keys(),...t.searchParams.keys()]);for(let r of n){let i=e.searchParams.getAll(r),a=t.searchParams.getAll(r);i.every(e=>a.includes(e))&&a.every(e=>i.includes(e))&&n.delete(r)}return n}function $t({error:e,url:t,route:n,params:r}){return{type:`loaded`,state:{error:e,url:t,route:n,params:r,branch:[]},props:{page:En(A),constructors:[]}}}async function en({id:e,invalidating:t,url:n,params:r,route:i,preload:a}){if(z?.id===e)return X.delete(z.token),z.promise;let{errors:o,layouts:s,leaf:u}=i,d=[...s,u];o.forEach(e=>e?.().catch(h)),d.forEach(e=>e?.[1]().catch(h));let f=null,p=H.url?e!==sn(H.url):!1,m=H.route?i.id!==H.route.id:!1,ee=Qt(H.url,n),g=!1;{let t=d.map((e,t)=>{let n=H.branch[t],i=!!e?.[0]&&(n?.loader!==e[1]||Xt(g,m,p,ee,n.server?.uses,r));return i&&(g=!0),i});if(t.some(Boolean)){try{f=await xn(n,t)}catch(t){let o=await $(t,{url:n,params:r,route:{id:e}});return X.has(a)?$t({error:o,url:n,params:r,route:i}):nn({status:ot(t),error:o,url:n,route:i})}if(f.type===`redirect`)return f}}let _=f?.nodes,v=!1,y=d.map(async(e,t)=>{if(!e)return;let a=H.branch[t],o=_?.[t];if((!o||o.type===`skip`)&&e[1]===a?.loader&&!Xt(v,m,p,ee,a.universal?.uses,r))return a;if(v=!0,o?.type===`error`)throw o;return Jt({loader:e[1],url:n,params:r,route:i,parent:async()=>{let e={};for(let n=0;n<t;n+=1)Object.assign(e,(await y[n])?.data);return e},server_data_node:Zt(o===void 0&&e[0]?{type:`skip`}:o??null,e[0]?a?.server:void 0)})});for(let e of y)e.catch(h);let b=[];for(let e=0;e<d.length;e+=1)if(d[e])try{b.push(await y[e])}catch(t){if(t instanceof l)return{type:`redirect`,location:t.location};if(X.has(a))return $t({error:await $(t,{params:r,url:n,route:{id:i.id}}),url:n,params:r,route:i});let s=ot(t),u;if(_?.includes(t))s=t.status??s,u=t.error;else if(t instanceof c)u=t.body;else{if(await F.updated.check())return await xt(),await I(n);u=await $(t,{params:r,url:n,route:{id:i.id}})}let d=await tn(e,b,o);return d?Z({url:n,params:r,branch:b.slice(0,d.idx).concat(d.node),errors:o,status:s,error:u,route:i}):await ln(n,{id:i.id},u,s)}else b.push(void 0);return Z({url:n,params:r,branch:b,errors:o,status:200,error:null,route:i,form:t?void 0:null})}async function tn(e,t,n){for(;e--;)if(n[e]){let r=e;for(;!t[r];)--r;try{return{idx:r+1,node:{node:await n[e](),loader:n[e],data:{},server:null,universal:null}}}catch{continue}}}async function nn({status:e,error:t,url:n,route:r}){let i={},a=null;if(R.server_loads[0]===0)try{let e=await xn(n,[!0]);if(e.type!==`data`||e.nodes[0]&&e.nodes[0].type!==`data`)throw 0;a=e.nodes[0]??null}catch{(n.origin!==E||n.pathname!==location.pathname||jt)&&await I(n)}try{return Z({url:n,params:i,branch:[await Jt({loader:Ct,url:n,params:i,route:r,parent:()=>Promise.resolve({}),server_data_node:Zt(a)}),{node:await wt(),loader:wt,universal:null,server:null,data:null}],status:e,error:t,errors:[],route:null})}catch(e){if(e instanceof l)return Wt(new URL(e.location,location.href),{},0);throw e}}async function rn(e){let t=e.href;if(Ot.has(t))return Ot.get(t);let n;try{let r=(async()=>{let t=await R.hooks.reroute({url:new URL(e),fetch:async(t,n)=>Yt(t,n,e).promise})??e;if(typeof t==`string`){let n=new URL(e);R.hash?n.hash=t:n.pathname=t,t=n}return t})();Ot.set(t,r),n=await r}catch{Ot.delete(t);return}return n}async function an(e,t){if(e&&!Te(e,S,R.hash)){let n=await rn(e);if(!n)return;let r=on(n);for(let n of St){let i=n.exec(r);if(i)return{id:sn(e),invalidating:t,route:n,params:p(i),url:e}}}}function on(e){return f(R.hash?e.hash.replace(/^#/,``).replace(/[?#].+/,``):e.pathname.slice(S.length))||`/`}function sn(e){return(R.hash?e.hash.replace(/^#/,``):e.pathname)+e.search}function cn({url:e,type:t,intent:n,delta:r,event:i,scroll:a}){let o=!1,s=Tn(H,n,e,t,a??null);r!==void 0&&(s.navigation.delta=r),i!==void 0&&(s.navigation.event=i);let c={...s.navigation,cancel:()=>{o=!0,s.reject(Error(`navigation cancelled`))}};return U||kt.forEach(e=>e(c)),o?null:s}async function Q({type:t,url:n,popped:r,keepfocus:a,noscroll:o,replace_state:s,state:c={},redirect_count:l=0,nav_token:d={},accept:f=h,block:p=h,event:m}){let ee=Y;Y=d;let g=await an(n,!1),_=t===`enter`?Tn(H,g,n,t):cn({url:n,type:t,delta:r?.delta,intent:g,scroll:r?.scroll,event:m});if(!_){p(),Y===d&&(Y=ee);return}let v=q,y=J;f(),U=!0,Mt&&_.navigation.type!==`enter`&&F.navigating.set(j.current=_.navigation);let b=g&&await en(g);if(!b){if(Te(n,S,R.hash))return await I(n,s);b=await ln(n,{id:null},await $(new u(404,`Not Found`,`Not found: ${n.pathname}`),{url:n,params:{},route:{id:null}}),404,s)}if(n=g?.url||n,Y!==d)return _.reject(Error(`navigation aborted`)),!1;if(b.type===`redirect`){if(l<20){await Q({type:t,url:new URL(b.location,n),popped:r,keepfocus:a,noscroll:o,replace_state:s,state:c,redirect_count:l+1,nav_token:d}),_.fulfil(void 0);return}b=await nn({status:500,error:await $(Error(`Redirect loop`),{url:n,params:{},route:{id:null}}),url:n,route:{id:null}})}else b.props.page.status>=400&&await F.updated.check()&&(await xt(),await I(n,s));if(Bt(),yt(v),Vt(y),b.props.page.url.pathname!==n.pathname&&(n.pathname=b.props.page.url.pathname),c=r?r.state:c,!r){let e=+!s,t={[C]:q+=e,[w]:J+=e,[he]:c};(s?history.replaceState:history.pushState).call(history,t,``,n),s||bt(q,J)}let x=g&&z?.id===g.id?z.fork:null;z?.fork&&!x&&B(),z=null,b.props.page.state=c;let te;if(Mt){let t=(await Promise.all(Array.from(At,e=>e(_.navigation)))).filter(e=>typeof e==`function`);if(t.length>0){function e(){t.forEach(e=>{V.delete(e)})}t.push(e),t.forEach(e=>{V.add(e)})}let r=_.navigation.to;H={...b.state,nav:{params:r.params,route:r.route,url:r.url}},b.props.page&&(b.props.page.url=n);let i=x&&await x;i?te=i.commit():(M=null,K.$set(b.props),M&&Object.assign(b.props.page,M),dt(b.props.page),te=e?.()),Pt=!0}else await qt(b,Tt,!1);let{activeElement:ne}=document;if(await te,await i(),await i(),Y!==d)return _.reject(Error(`navigation aborted`)),!1;b.props.page&&M&&Object.assign(b.props.page,M);let re=null;if(Nt){let e=r?r.scroll:o?D():null;e?scrollTo(e.x,e.y):(re=n.hash&&document.getElementById(On(n)))?re.scrollIntoView():scrollTo(0,0)}let ie=document.activeElement!==ne&&document.activeElement!==document.body;!a&&!ie&&wn(n,!re),Nt=!0,U=!1,t===`popstate`&&Ht(J),_.fulfil(void 0),_.navigation.to&&(_.navigation.to.scroll=D()),V.forEach(e=>e(_.navigation)),F.navigating.set(j.current=null)}async function ln(e,t,n,r,i){return e.origin===E&&e.pathname===location.pathname&&!jt?await nn({status:r,error:n,url:e,route:t}):await I(e,i)}function un(){let e,t={element:void 0,href:void 0},n;L.addEventListener(`mousemove`,t=>{let n=t.target;clearTimeout(e),e=setTimeout(()=>{a(n,T.hover)},20)});function r(e){e.defaultPrevented||a(e.composedPath()[0],T.tap)}L.addEventListener(`mousedown`,r),L.addEventListener(`touchstart`,r,{passive:!0});let i=new IntersectionObserver(e=>{for(let t of e)t.isIntersecting&&(Kt(new URL(t.target.href)),i.unobserve(t.target))},{threshold:0});async function a(e,r){let i=ye(e,L),a=i===t.element&&i?.href===t.href&&r>=n;if(!i||a)return;let{url:o,external:s,download:c}=be(i,S,R.hash);if(s||c)return;let l=xe(i),u=o&&sn(H.url)===sn(o);if(!(l.reload||u))if(r<=l.preload_data){t={element:i,href:i.href},n=T.tap;let e=await an(o,!1);if(!e)return;Gt(e)}else r<=l.preload_code&&(t={element:i,href:i.href},n=r,Kt(o))}function o(){i.disconnect();for(let e of L.querySelectorAll(`a`)){let{url:t,external:n,download:r}=be(e,S,R.hash);if(n||r)continue;let a=xe(e);a.reload||(a.preload_code===T.viewport&&i.observe(e),a.preload_code===T.eager&&Kt(t))}}V.add(o),o()}function $(e,t){if(e instanceof c)return e.body;let n=ot(e),r=st(e);return R.hooks.handleError({error:e,event:t,status:n,message:r})??{message:r}}function dn(e,t){gt(()=>(e.add(t),()=>{e.delete(t)}))}function fn(e){dn(V,e)}function pn(e){dn(kt,e)}function mn(e,t={}){return e=new URL(ge(e)),e.origin===E?Wt(e,t,0):Promise.reject(Error(`goto: invalid URL`))}function hn(e){if(typeof e==`function`)Et.push(e);else{let{href:t}=new URL(e,location.href);Et.push(e=>e.href===t)}}function gn(){return G=!0,zt()}async function _n(e){e.type===`error`?await vn(e.error,e.status):e.type===`redirect`?await Wt(e.location,{invalidateAll:!0},0):(A.form=e.data,A.status=e.status,K.$set({form:null,page:En(A)}),await _t(),K.$set({form:e.data}),e.type===`success`&&wn(A.url))}async function vn(e,t=500){let n=new URL(location.href),{branch:r,route:i}=H;if(!i)return;let a=await tn(H.branch.length,r,i.errors);if(a){let o=await Z({url:n,params:H.params,branch:r.slice(0,a.idx).concat(a.node),status:t,error:e,route:i});H={...o.state,nav:H.nav},K.$set(o.props),dt(o.props.page),_t().then(()=>wn(H.url))}}function yn(){history.scrollRestoration=`manual`,addEventListener(`beforeunload`,e=>{let t=!1;if(Ut(),!U){let e=Tn(H,void 0,null,`leave`),n={...e.navigation,cancel:()=>{t=!0,e.reject(Error(`navigation cancelled`))}};kt.forEach(e=>e(n))}t?(e.preventDefault(),e.returnValue=``):history.scrollRestoration=`auto`}),addEventListener(`visibilitychange`,()=>{document.visibilityState===`hidden`&&Ut()}),!navigator.connection?.saveData&&!/2g/.test(navigator.connection?.effectiveType)&&un(),L.addEventListener(`click`,async t=>{if(t.button||t.which!==1||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.defaultPrevented)return;let n=ye(t.composedPath()[0],L);if(!n)return;let{url:r,external:i,target:a,download:o}=be(n,S,R.hash);if(!r)return;if(a===`_parent`||a===`_top`){if(window.parent!==window)return}else if(a&&a!==`_self`)return;let s=xe(n);if(!(n instanceof SVGAElement)&&r.protocol!==location.protocol&&!(r.protocol===`https:`||r.protocol===`http:`)||o)return;let[c,l]=(R.hash?r.hash.replace(/^#/,``):r.href).split(`#`),u=c===m(location);if(i||s.reload&&(!u||!l)){cn({url:r,type:`link`,event:t})?U=!0:t.preventDefault();return}if(l!==void 0&&u){let[,i]=H.url.href.split(`#`);if(i===l){if(t.preventDefault(),l===``||l===`top`&&n.ownerDocument.getElementById(`top`)===null)scrollTo({top:0});else{let e=n.ownerDocument.getElementById(decodeURIComponent(l));e&&(e.scrollIntoView(),e.focus())}return}if(W=!0,yt(q),e(r),!s.replace_state)return;W=!1}t.preventDefault(),await new Promise(e=>{requestAnimationFrame(()=>{setTimeout(e,0)}),setTimeout(e,100)}),await Q({type:`link`,url:r,keepfocus:s.keepfocus,noscroll:s.noscroll,replace_state:s.replace_state??r.href===location.href,event:t})}),L.addEventListener(`submit`,e=>{if(e.defaultPrevented)return;let t=HTMLFormElement.prototype.cloneNode.call(e.target),n=e.submitter;if((n?.formTarget||t.target)===`_blank`||(n?.formMethod||t.method)!==`get`)return;let r=new URL(n?.hasAttribute(`formaction`)&&n?.formAction||t.action);if(Te(r,S,!1))return;let i=e.target,a=xe(i);if(a.reload)return;e.preventDefault(),e.stopPropagation();let o=new FormData(i,n);r.search=new URLSearchParams(o).toString(),Q({type:`form`,url:r,keepfocus:a.keepfocus,noscroll:a.noscroll,replace_state:a.replace_state??r.href===location.href,event:e})}),addEventListener(`popstate`,async t=>{if(!Cn)if(t.state?.[`sveltekit:history`]){let n=t.state[C];if(Y={},n===q)return;let r=N[n],i=t.state[`sveltekit:states`]??{},a=new URL(t.state[`sveltekit:pageurl`]??location.href),o=t.state[w],s=H.url?m(location)===m(H.url):!1;if(o===J&&(Pt||s)){i!==A.state&&(A.state=i),e(a),N[q]=D(),r&&scrollTo(r.x,r.y),q=n;return}let c=n-q;await Q({type:`popstate`,url:a,popped:{state:i,scroll:r,delta:c},accept:()=>{q=n,J=o},block:()=>{history.go(-c)},nav_token:Y,event:t})}else W||(e(new URL(location.href)),R.hash&&location.reload())}),addEventListener(`hashchange`,()=>{W&&(W=!1,history.replaceState({...history.state,[C]:++q,[w]:J},``,location.href))});for(let e of document.querySelectorAll(`link`))vt.has(e.rel)&&(e.href=e.href);addEventListener(`pageshow`,e=>{e.persisted&&F.navigating.set(j.current=null)});function e(e){H.url=A.url=e,F.page.set(En(A)),F.page.notify()}}async function bn(e,{status:t=200,error:n,node_ids:r,params:i,route:a,server_route:o,data:s,form:c}){jt=!0;let u=new URL(location.href),d;({params:i={},route:a={id:null}}=await an(u,!1)||{}),d=St.find(({id:e})=>e===a.id);let f,p=!0;try{let e=r.map(async(t,n)=>{let r=s[n];return r?.uses&&(r.uses=Sn(r.uses)),Jt({loader:R.nodes[t],url:u,params:i,route:a,parent:async()=>{let t={};for(let r=0;r<n;r+=1)Object.assign(t,(await e[r]).data);return t},server_data_node:Zt(r)})}),o=await Promise.all(e);if(d){let e=d.layouts;for(let t=0;t<e.length;t++)e[t]||o.splice(t,0,void 0)}f=await Z({url:u,params:i,branch:o,status:t,error:n,errors:d?.errors,form:c,route:d??null})}catch(t){if(t instanceof l){await I(new URL(t.location,location.href));return}f=await nn({status:ot(t),error:await $(t,{url:u,params:i,route:a}),url:u,route:a}),e.textContent=``,p=!1}f.props.page&&(f.props.page.state={}),await qt(f,e,p)}async function xn(e,t){let n=new URL(e);n.pathname=mt(e.pathname),e.pathname.endsWith(`/`)&&n.searchParams.append(at,`1`),n.searchParams.append(it,t.map(e=>e?`1`:`0`).join(``));let r=await(0,window.fetch)(n.href,{});if(!r.ok){let e;throw r.headers.get(`content-type`)?.includes(`application/json`)?e=await r.json():r.status===404?e=`Not Found`:r.status===500&&(e=`Internal Error`),new c(r.status,e)}return new Promise(async e=>{let t=new Map,n=r.body.getReader();function i(e){return et(e,{...R.decoders,Promise:e=>new Promise((n,r)=>{t.set(e,{fulfil:n,reject:r})})})}for await(let r of ht(n)){if(r.type===`redirect`)return e(r);if(r.type===`data`)r.nodes?.forEach(e=>{e?.type===`data`&&(e.uses=Sn(e.uses),e.data=i(e.data))}),e(r);else if(r.type===`chunk`){let{id:e,data:n,error:a}=r,o=t.get(e);t.delete(e),a?o.reject(i(a)):o.fulfil(i(n))}}})}function Sn(e){return{dependencies:new Set(e?.dependencies??[]),params:new Set(e?.params??[]),parent:!!e?.parent,route:!!e?.route,url:!!e?.url,search_params:new Set(e?.search_params??[])}}var Cn=!1;function wn(e,t=!0){let n=document.querySelector(`[autofocus]`);if(n)n.focus();else{let n=On(e);if(n&&document.getElementById(n)){let{x:r,y:i}=D();setTimeout(()=>{let a=history.state;Cn=!0,location.replace(new URL(`#${n}`,location.href)),history.replaceState(a,``,e),t&&scrollTo(r,i),Cn=!1})}else{let e=document.body,t=e.getAttribute(`tabindex`);e.tabIndex=-1,e.focus({preventScroll:!0,focusVisible:!1}),t===null?e.removeAttribute(`tabindex`):e.setAttribute(`tabindex`,t)}let r=getSelection();if(r&&r.type!==`None`){let e=[];for(let t=0;t<r.rangeCount;t+=1)e.push(r.getRangeAt(t));setTimeout(()=>{if(r.rangeCount===e.length){for(let t=0;t<r.rangeCount;t+=1){let n=e[t],i=r.getRangeAt(t);if(n.commonAncestorContainer!==i.commonAncestorContainer||n.startContainer!==i.startContainer||n.endContainer!==i.endContainer||n.startOffset!==i.startOffset||n.endOffset!==i.endOffset)return}r.removeAllRanges()}})}}}function Tn(e,t,n,r,i=null){let a,o,s=new Promise((e,t)=>{a=e,o=t});return s.catch(h),{navigation:{from:{params:e.params,route:{id:e.route?.id??null},url:e.url,scroll:D()},to:n&&{params:t?.params??null,route:{id:t?.route?.id??null},url:n,scroll:i},willUnload:!t,type:r,complete:s},fulfil:a,reject:o}}function En(e){return{data:e.data,error:e.error,form:e.form,params:e.params,route:e.route,state:e.state,status:e.status,url:e.url}}function Dn(e){let t=new URL(e);return t.hash=decodeURIComponent(e.hash),t}function On(e){let t;if(R.hash){let[,,n]=e.hash.split(`#`,3);t=n??``}else t=e.hash.slice(1);return decodeURIComponent(t)}export{h as C,Ee as S,Me as _,mn as a,Fe as b,F as c,ct as d,$e as f,Ne as g,Ie as h,pn as i,j as l,ke as m,R as n,gn as o,Ze as p,_n as r,Rt as s,fn as t,A as u,Ae as v,He as x,Re as y};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var e=Object.defineProperty,t=(t,n)=>{let r={};for(var i in t)e(r,i,{get:t[i],enumerable:!0});return n||e(r,Symbol.toStringTag,{value:`Module`}),r},n=Array.isArray,r=Array.prototype.indexOf,i=Array.prototype.includes,a=Array.from,o=Object.defineProperty,s=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyDescriptors,l=Object.prototype,u=Array.prototype,d=Object.getPrototypeOf,f=Object.isExtensible,p=()=>{};function m(e){for(var t=0;t<e.length;t++)e[t]()}function h(){var e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}var g=1024,_=2048,v=4096,y=8192,ee=16384,b=32768,x=1<<25,te=65536,S=1<<19,ne=1<<20,re=1<<25,ie=65536,ae=1<<21,oe=1<<22,se=1<<23,ce=Symbol(`$state`),le=Symbol(`legacy props`),ue=Symbol(``),de=Symbol(`attributes`),fe=Symbol(`class`),pe=Symbol(`style`),me=Symbol(`text`),he=Symbol(`form reset`),ge=new class extends Error{name=`StaleReactionError`;message="The reaction that called `getAbortSignal()` was re-run or destroyed"},_e=!!globalThis.document?.contentType&&globalThis.document.contentType.includes(`xml`);function ve(e){throw Error(`https://svelte.dev/e/experimental_async_required`)}function ye(e){throw Error(`https://svelte.dev/e/lifecycle_outside_component`)}function be(){throw Error(`https://svelte.dev/e/missing_context`)}function xe(){throw Error(`https://svelte.dev/e/async_derived_orphan`)}function Se(e,t,n){throw Error(`https://svelte.dev/e/each_key_duplicate`)}function Ce(e){throw Error(`https://svelte.dev/e/effect_in_teardown`)}function we(){throw Error(`https://svelte.dev/e/effect_in_unowned_derived`)}function Te(e){throw Error(`https://svelte.dev/e/effect_orphan`)}function Ee(){throw Error(`https://svelte.dev/e/effect_update_depth_exceeded`)}function De(){throw Error(`https://svelte.dev/e/fork_discarded`)}function Oe(){throw Error(`https://svelte.dev/e/fork_timing`)}function ke(){throw Error(`https://svelte.dev/e/get_abort_signal_outside_reaction`)}function Ae(){throw Error(`https://svelte.dev/e/hydration_failed`)}function je(e){throw Error(`https://svelte.dev/e/lifecycle_legacy_only`)}function Me(e){throw Error(`https://svelte.dev/e/props_invalid_value`)}function Ne(){throw Error(`https://svelte.dev/e/set_context_after_init`)}function Pe(){throw Error(`https://svelte.dev/e/state_descriptors_fixed`)}function Fe(){throw Error(`https://svelte.dev/e/state_prototype_fixed`)}function Ie(){throw Error(`https://svelte.dev/e/state_unsafe_mutation`)}function Le(){throw Error(`https://svelte.dev/e/svelte_boundary_reset_onerror`)}var Re={},C=Symbol(`uninitialized`),ze=`http://www.w3.org/1999/xhtml`;function Be(){console.warn(`https://svelte.dev/e/derived_inert`)}function Ve(e){console.warn(`https://svelte.dev/e/hydratable_missing_but_expected`)}function He(e){console.warn(`https://svelte.dev/e/hydration_mismatch`)}function Ue(){console.warn(`https://svelte.dev/e/select_multiple_invalid_value`)}function We(){console.warn(`https://svelte.dev/e/svelte_boundary_reset_noop`)}var w=!1;function T(e){w=e}var E;function D(e){if(e===null)throw He(),Re;return E=e}function Ge(){return D(R(E))}function Ke(e){if(w){if(R(E)!==null)throw He(),Re;E=e}}function qe(e=1){if(w){for(var t=e,n=E;t--;)n=R(n);E=n}}function Je(e=!0){for(var t=0,n=E;;){if(n.nodeType===8){var r=n.data;if(r===`]`){if(t===0)return n;--t}else (r===`[`||r===`[!`||r[0]===`[`&&!isNaN(Number(r.slice(1))))&&(t+=1)}var i=R(n);e&&n.remove(),n=i}}function Ye(e){if(!e||e.nodeType!==8)throw He(),Re;return e.data}function Xe(e){return e===this.v}function Ze(e,t){return e==e?e!==t||typeof e==`object`&&!!e||typeof e==`function`:t==t}function Qe(e){return!Ze(e,this.v)}var O=!1,$e=!1;function et(){$e=!0}var k=null;function tt(e){k=e}function nt(){let e={};return[()=>(at(e)||be(),rt(e)),t=>it(e,t)]}function rt(e){return ut(`getContext`).get(e)}function it(e,t){let n=ut(`setContext`);if(O){var r=G.f;!H&&r&32&&!k.i||Ne()}return n.set(e,t),t}function at(e){return ut(`hasContext`).has(e)}function ot(){return ut(`getAllContexts`)}function st(e,t=!1,n){k={p:k,i:!1,c:null,e:null,s:e,x:null,r:G,l:$e&&!t?{s:null,u:null,$:[]}:null}}function ct(e){var t=k,n=t.e;if(n!==null){t.e=null;for(var r of n)ir(r)}return e!==void 0&&(t.x=e),t.i=!0,k=t.p,e??{}}function lt(){return!$e||k!==null&&k.l===null}function ut(e){return k===null&&ye(e),k.c??=new Map(dt(k)||void 0)}function dt(e){let t=e.p;for(;t!==null;){let e=t.c;if(e!==null)return e;t=t.p}return null}var ft=[];function pt(){var e=ft;ft=[],m(e)}function mt(e){if(ft.length===0&&!Vt){var t=ft;queueMicrotask(()=>{t===ft&&pt()})}ft.push(e)}function ht(){for(;ft.length>0;)pt()}function gt(e){var t=G;if(t===null)return H.f|=se,e;if(!(t.f&32768)&&!(t.f&4))throw e;_t(e,t)}function _t(e,t){for(;t!==null;){if(t.f&128){if(!(t.f&32768))throw e;try{t.b.error(e);return}catch(t){e=t}}t=t.parent}throw e}var vt=~(_|v|g);function A(e,t){e.f=e.f&vt|t}function yt(e){e.f&512||e.deps===null?A(e,g):A(e,v)}function bt(e){if(e!==null)for(let t of e)!(t.f&2)||!(t.f&65536)||(t.f^=ie,bt(t.deps))}function xt(e,t,n){e.f&2048?t.add(e):e.f&4096&&n.add(e),bt(e.deps),A(e,g)}function St(e,t,n){if(e==null)return t(void 0),n&&n(void 0),p;let r=Q(()=>e.subscribe(t,n));return r.unsubscribe?()=>r.unsubscribe():r}var Ct=[];function wt(e,t){return{subscribe:Tt(e,t).subscribe}}function Tt(e,t=p){let n=null,r=new Set;function i(t){if(Ze(e,t)&&(e=t,n)){let t=!Ct.length;for(let t of r)t[1](),Ct.push(t,e);if(t){for(let e=0;e<Ct.length;e+=2)Ct[e][0](Ct[e+1]);Ct.length=0}}}function a(t){i(t(e))}function o(o,s=p){let c=[o,s];return r.add(c),r.size===1&&(n=t(i,a)||p),o(e),()=>{r.delete(c),r.size===0&&n&&(n(),n=null)}}return{set:i,update:a,subscribe:o}}function Et(e,t,n){let r=!Array.isArray(e),i=r?[e]:e;if(!i.every(Boolean))throw Error(`derived() expects stores as input, got a falsy value`);let a=t.length<2;return wt(n,(e,n)=>{let o=!1,s=[],c=0,l=p,u=()=>{if(c)return;l();let i=t(r?s[0]:s,e,n);a?e(i):l=typeof i==`function`?i:p},d=i.map((e,t)=>St(e,e=>{s[t]=e,c&=~(1<<t),o&&u()},()=>{c|=1<<t}));return o=!0,u(),function(){m(d),l(),o=!1}})}function Dt(e){return{subscribe:e.subscribe.bind(e)}}function Ot(e){let t;return St(e,e=>t=e)(),t}var kt=!1,At=!1,jt=Symbol(`unmounted`);function Mt(e,t,n){let r=n[t]??={store:null,source:On(void 0),unsubscribe:p};if(r.store!==e&&!(jt in n))if(r.unsubscribe(),r.store=e??null,e==null)r.source.v=void 0,r.unsubscribe=p;else{var i=!0;r.unsubscribe=St(e,e=>{i?r.source.v=e:F(r.source,e)}),i=!1}return e&&jt in n?Ot(e):Z(r.source)}function Nt(){let e={};function t(){nr(()=>{for(var t in e)e[t].unsubscribe();o(e,jt,{enumerable:!1,value:!0})})}return[e,t]}function Pt(e,t){kt=!0;try{e.set(t)}finally{kt=!1}}function Ft(e,t,n){return Pt(e,n),t}function It(e){var t=At;try{return At=!1,[e(),At]}finally{At=t}}var Lt=null,Rt=null,j=null,zt=null,M=null,Bt=null,Vt=!1,Ht=!1,Ut=null,Wt=null,Gt=0,Kt=1,qt=class e{id=Kt++;#e=!1;linked=!0;#t=null;#n=null;async_deriveds=new Map;current=new Map;previous=new Map;unblocked=new Set;#r=new Set;#i=new Set;#a=new Set;#o=0;#s=new Map;#c=null;#l=[];#u=[];#d=new Set;#f=new Set;#p=new Map;#m=new Set;is_fork=!1;#h=!1;#g(){if(this.is_fork)return!0;for(let n of this.#s.keys()){for(var e=n,t=!1;e.parent!==null;){if(this.#p.has(e)){t=!0;break}e=e.parent}if(!t)return!0}return!1}skip_effect(e){this.#p.has(e)||this.#p.set(e,{d:[],m:[]}),this.#m.delete(e)}unskip_effect(e,t=e=>this.schedule(e)){var n=this.#p.get(e);if(n){this.#p.delete(e);for(var r of n.d)A(r,_),t(r);for(r of n.m)A(r,v),t(r)}this.#m.add(e)}#_(){if(this.#e=!0,Gt++>1e3&&(this.#w(),Yt()),!this.#g()){for(let e of this.#d)this.#f.delete(e),A(e,_),this.schedule(e);for(let e of this.#f)A(e,v),this.schedule(e)}let t=this.#l;this.#l=[],this.apply();var n=Ut=[],r=[],i=Wt=[];for(let e of t)try{this.#v(e,n,r)}catch(t){throw nn(e),t}if(j=null,i.length>0){var a=e.ensure();for(let e of i)a.schedule(e)}if(Ut=null,Wt=null,this.#g()){this.#x(r),this.#x(n);for(let[e,t]of this.#p)tn(e,t);i.length>0&&j.#_();return}let o=this.#y();if(o){o.#b(this);return}this.#d.clear(),this.#f.clear();for(let e of this.#r)e(this);this.#r.clear(),zt=this,Xt(r),Xt(n),zt=null,this.#c?.resolve();var s=j;if(this.linked&&this.#o===0&&this.#w(),O&&!this.linked&&(this.#S(),j=s),this.#l.length>0){s===null&&(s=this,this.#C());let e=s;e.#l.push(...this.#l.filter(t=>!e.#l.includes(t)))}s!==null&&s.#_()}#v(e,t,n){e.f^=g;for(var r=e.first;r!==null;){var i=r.f,a=(i&96)!=0;if(!(a&&i&1024||i&8192||this.#p.has(r))&&r.fn!==null){a?r.f^=g:i&4?t.push(r):O&&i&16777224?n.push(r):Nr(r)&&(i&16&&this.#f.add(r),Rr(r));var o=r.first;if(o!==null){r=o;continue}}for(;r!==null;){var s=r.next;if(s!==null){r=s;break}r=r.parent}}}#y(){for(var e=this.#t;e!==null;){if(!e.is_fork){for(let[t,[,n]]of this.current)if(e.current.has(t)&&!n)return e}e=e.#t}return null}#b(e){for(let[t,n]of e.current)!this.previous.has(t)&&e.previous.has(t)&&this.previous.set(t,e.previous.get(t)),this.current.set(t,n);for(let[t,n]of e.async_deriveds){let e=this.async_deriveds.get(t);e&&n.promise.then(e.resolve)}let t=e=>{var n=e.reactions;if(n!==null)for(let e of n){var r=e.f;if(r&2)t(e);else{var i=e;r&4194320&&!this.async_deriveds.has(i)&&(this.#f.delete(i),A(i,_),this.schedule(i))}}};for(let e of this.current.keys())t(e);this.oncommit(()=>e.discard()),e.#w(),j=this,this.#_()}#x(e){for(var t=0;t<e.length;t+=1)xt(e[t],this.#d,this.#f)}capture(e,t,n=!1){e.v!==C&&!this.previous.has(e)&&this.previous.set(e,e.v),e.f&8388608||(this.current.set(e,[t,n]),M?.set(e,t)),this.is_fork||(e.v=t)}activate(){j=this}deactivate(){j=null,M=null}flush(){try{Ht=!0,j=this,this.#_()}finally{Gt=0,Bt=null,Ut=null,Wt=null,Ht=!1,j=null,M=null,wn.clear()}}discard(){for(let e of this.#i)e(this);this.#i.clear(),this.#a.clear(),this.#w()}register_created_effect(e){this.#u.push(e)}#S(){this.#w();for(let l=Lt;l!==null;l=l.#n){var e=l.id<this.id,t=[];for(let[r,[i,a]]of this.current){if(l.current.has(r)){var n=l.current.get(r)[0];if(e&&i!==n)l.current.set(r,[i,a]);else continue}t.push(r)}if(e)for(let[e,t]of this.async_deriveds){let n=l.async_deriveds.get(e);n&&t.promise.then(n.resolve)}if(l.#e){var r=[...l.current.keys()].filter(e=>!this.current.has(e));if(r.length===0)e&&l.discard();else if(t.length>0){if(e)for(let e of this.#m)l.unskip_effect(e,e=>{e.f&4194320?l.schedule(e):l.#x([e])});l.activate();var i=new Set,a=new Map;for(var o of t)Zt(o,r,i,a);a=new Map;var s=[...l.current.keys()].filter(e=>this.current.has(e)?this.current.get(e)[0]!==e.v:!0);if(s.length>0)for(let e of this.#u)!(e.f&155648)&&$t(e,s,a)&&(e.f&4194320?(A(e,_),l.schedule(e)):l.#d.add(e));if(l.#l.length>0&&!l.#h){l.apply();for(var c of l.#l)l.#v(c,[],[]);l.#l=[]}l.deactivate()}}}}increment(e,t){if(this.#o+=1,e){let e=this.#s.get(t)??0;this.#s.set(t,e+1)}}decrement(e,t){if(--this.#o,e){let e=this.#s.get(t)??0;e===1?this.#s.delete(t):this.#s.set(t,e-1)}this.#h||(this.#h=!0,mt(()=>{this.#h=!1,this.linked&&this.flush()}))}transfer_effects(e,t){for(let t of e)this.#d.add(t);for(let e of t)this.#f.add(e);e.clear(),t.clear()}oncommit(e){this.#r.add(e)}ondiscard(e){this.#i.add(e)}on_fork_commit(e){this.#a.add(e)}run_fork_commit_callbacks(){for(let e of this.#a)e(this);this.#a.clear()}settled(){return(this.#c??=h()).promise}static ensure(){if(j===null){let t=j=new e;t.#C(),!Ht&&!Vt&&mt(()=>{t.#e||t.flush()})}return j}apply(){if(!O||!this.is_fork&&this.#t===null&&this.#n===null){M=null;return}M=new Map;for(let[e,[t]]of this.current)M.set(e,t);for(let t=Lt;t!==null;t=t.#n)if(!(t===this||t.is_fork)){var e=!1;if(t.id<this.id){for(let[n,[,r]]of t.current)if(!r&&this.current.has(n)){e=!0;break}}if(!e)for(let[e,n]of t.previous)M.has(e)||M.set(e,n)}}schedule(e){if(Bt=e,e.b?.is_pending&&e.f&16777228&&!(e.f&32768)){e.b.defer_effect(e);return}for(var t=e;t.parent!==null;){t=t.parent;var n=t.f;if(Ut!==null&&t===G&&(O||(H===null||!(H.f&2))&&!kt))return;if(n&96){if(!(n&1024))return;t.f^=g}}this.#l.push(t)}#C(){Rt===null?Lt=Rt=this:(Rt.#n=this,this.#t=Rt),Rt=this}#w(){var e=this.#t,t=this.#n;e===null?Lt=t:e.#n=t,t===null?Rt=e:t.#t=e,this.linked=!1}};function Jt(e){var t=Vt;Vt=!0;try{var n;for(e&&(j!==null&&!j.is_fork&&j.flush(),n=e());;){if(ht(),j===null)return n;j.flush()}}finally{Vt=t}}function Yt(){try{Ee()}catch(e){_t(e,Bt)}}var N=null;function Xt(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if(!(r.f&24576)&&Nr(r)&&(N=new Set,Rr(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&gr(r),N?.size>0)){wn.clear();for(let e of N){if(e.f&24576)continue;let t=[e],n=e.parent;for(;n!==null;)N.has(n)&&(N.delete(n),t.push(n)),n=n.parent;for(let e=t.length-1;e>=0;e--){let n=t[e];n.f&24576||Rr(n)}}N.clear()}}N=null}}function Zt(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(let i of e.reactions){let e=i.f;e&2?Zt(i,t,n,r):e&4194320&&!(e&2048)&&$t(i,t,r)&&(A(i,_),en(i))}}function Qt(e,t){if(e.reactions!==null)for(let n of e.reactions){let e=n.f;e&2?Qt(n,t):e&131072&&(A(n,_),t.add(n))}}function $t(e,t,n){let r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(let r of e.deps){if(i.call(t,r))return!0;if(r.f&2&&$t(r,t,n))return n.set(r,!0),!0}return n.set(e,!1),!1}function en(e){j.schedule(e)}function tn(e,t){if(!(e.f&32&&e.f&1024)){e.f&2048?t.d.push(e):e.f&4096&&t.m.push(e),A(e,g);for(var n=e.first;n!==null;)tn(n,t),n=n.next}}function nn(e){A(e,g);for(var t=e.first;t!==null;)nn(t),t=t.next}function rn(e){O||ve(`fork`),j!==null&&Oe();var t=qt.ensure();t.is_fork=!0,M=new Map;var n=!1,r=t.settled();return Jt(e),{commit:async()=>{if(n){await r;return}t.linked||De(),n=!0,t.is_fork=!1;for(var[e,[i]]of t.current)e.v=i,e.wv=Mr();t.activate(),t.run_fork_commit_callbacks(),t.deactivate(),Jt(()=>{var e=new Set;for(var n of t.current.keys())Qt(n,e);Tn(e),An()}),t.flush(),await r},discard:()=>{for(var e of t.current.keys())e.wv=Mr();!n&&t.linked&&t.discard()}}}function an(e){let t=0,n=Dn(0),r;return()=>{tr()&&(Z(n),lr(()=>(t===0&&(r=Q(()=>e(()=>jn(n)))),t+=1,()=>{mt(()=>{--t,t===0&&(r?.(),r=void 0,jn(n))})})))}}var on=te|S;function sn(e,t,n,r){new cn(e,t,n,r)}var cn=class{parent;is_pending=!1;transform_error;#e;#t=w?E:null;#n;#r;#i;#a=null;#o=null;#s=null;#c=null;#l=0;#u=0;#d=!1;#f=new Set;#p=new Set;#m=null;#h=an(()=>(this.#m=Dn(this.#l),()=>{this.#m=null}));constructor(e,t,n,r){this.#e=e,this.#n=t,this.#r=e=>{var t=G;t.b=this,t.f|=128,n(e)},this.parent=G.b,this.transform_error=r??this.parent?.transform_error??(e=>e),this.#i=dr(()=>{if(w){let e=this.#t;Ge();let t=e.data===`[!`;if(e.data.startsWith(`[?`)){let t=JSON.parse(e.data.slice(2));this.#_(t)}else t?this.#v():this.#g()}else this.#y()},on),w&&(this.#e=E)}#g(){try{this.#a=B(()=>this.#r(this.#e))}catch(e){this.error(e)}}#_(e){let t=this.#n.failed;t&&(this.#s=B(()=>{t(this.#e,()=>e,()=>()=>{})}))}#v(){let e=this.#n.pending;e&&(this.is_pending=!0,this.#o=B(()=>e(this.#e)),mt(()=>{var e=this.#c=document.createDocumentFragment(),t=I();e.append(t),this.#a=this.#x(()=>B(()=>this.#r(t))),this.#u===0&&(this.#e.before(e),this.#c=null,_r(this.#o,()=>{this.#o=null}),this.#b(j))}))}#y(){try{if(this.is_pending=this.has_pending_snippet(),this.#u=0,this.#l=0,this.#a=B(()=>{this.#r(this.#e)}),this.#u>0){var e=this.#c=document.createDocumentFragment();xr(this.#a,e);let t=this.#n.pending;this.#o=B(()=>t(this.#e))}else this.#b(j)}catch(e){this.error(e)}}#b(e){this.is_pending=!1,e.transfer_effects(this.#f,this.#p)}defer_effect(e){xt(e,this.#f,this.#p)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#n.pending}#x(e){var t=G,n=H,r=k;K(this.#i),W(this.#i),tt(this.#i.ctx);try{return qt.ensure(),e()}catch(e){return gt(e),null}finally{K(t),W(n),tt(r)}}#S(e,t){if(!this.has_pending_snippet()){this.parent&&this.parent.#S(e,t);return}this.#u+=e,this.#u===0&&(this.#b(t),this.#o&&_r(this.#o,()=>{this.#o=null}),this.#c&&=(this.#e.before(this.#c),null))}update_pending_count(e,t){this.#S(e,t),this.#l+=e,!(!this.#m||this.#d)&&(this.#d=!0,mt(()=>{this.#d=!1,this.#m&&kn(this.#m,this.#l)}))}get_effect_pending(){return this.#h(),Z(this.#m)}error(e){if(!this.#n.onerror&&!this.#n.failed)throw e;j?.is_fork?(this.#a&&j.skip_effect(this.#a),this.#o&&j.skip_effect(this.#o),this.#s&&j.skip_effect(this.#s),j.on_fork_commit(()=>{this.#C(e)})):this.#C(e)}#C(e){this.#a&&=(V(this.#a),null),this.#o&&=(V(this.#o),null),this.#s&&=(V(this.#s),null),w&&(D(this.#t),qe(),D(Je()));var t=this.#n.onerror;let n=this.#n.failed;var r=!1,i=!1;let a=()=>{if(r){We();return}r=!0,i&&Le(),this.#s!==null&&_r(this.#s,()=>{this.#s=null}),this.#x(()=>{this.#y()})},o=e=>{try{i=!0,t?.(e,a),i=!1}catch(e){_t(e,this.#i&&this.#i.parent)}n&&(this.#s=this.#x(()=>{try{return B(()=>{var t=G;t.b=this,t.f|=128,n(this.#e,()=>e,()=>a)})}catch(e){return _t(e,this.#i.parent),null}}))};mt(()=>{var t;try{t=this.transform_error(e)}catch(e){_t(e,this.#i&&this.#i.parent);return}typeof t==`object`&&t&&typeof t.then==`function`?t.then(o,e=>_t(e,this.#i&&this.#i.parent)):o(t)})}};function ln(e,t,n,r){let i=lt()?pn:_n;var a=e.filter(e=>!e.settled);if(n.length===0&&a.length===0){r(t.map(i));return}var o=G,s=un(),c=a.length===1?a[0].promise:a.length>1?Promise.all(a.map(e=>e.promise)):null;function l(e){if(!(o.f&16384)){s();try{r(e)}catch(e){_t(e,o)}dn()}}var u=fn();if(n.length===0){c.then(()=>l(t.map(i))).finally(u);return}function d(){Promise.all(n.map(e=>hn(e))).then(e=>l([...t.map(i),...e])).catch(e=>_t(e,o)).finally(u)}c?c.then(()=>{s(),d(),dn()}):d()}function un(){var e=G,t=H,n=k,r=j;return function(i=!0){K(e),W(t),tt(n),i&&!(e.f&16384)&&(r?.activate(),r?.apply())}}function dn(e=!0){K(null),W(null),tt(null),e&&j?.deactivate()}function fn(){var e=G,t=e.b,n=j,r=t.is_rendered();return t.update_pending_count(1,n),n.increment(r,e),()=>{t.update_pending_count(-1,n),n.decrement(r,e)}}function pn(e){var t=2|_;return G!==null&&(G.f|=S),{ctx:k,deps:null,effects:null,equals:Xe,f:t,fn:e,reactions:null,rv:0,v:C,wv:0,parent:G,ac:null}}var mn=Symbol(`obsolete`);function hn(e,t,n){let r=G;r===null&&xe();var i=void 0,a=Dn(C),o=!H,s=new Set;return cr(()=>{var t=G,n=h();i=n.promise;try{Promise.resolve(e()).then(n.resolve,e=>{e!==ge&&n.reject(e)}).finally(dn)}catch(e){n.reject(e),dn()}var c=j;if(o){if(t.f&32768)var l=fn();if(r.b.is_rendered())c.async_deriveds.get(t)?.reject(mn);else for(let e of s.values())e.reject(mn);s.add(n),c.async_deriveds.set(t,n)}let u=(e,t=void 0)=>{l?.(),s.delete(n),t!==mn&&(c.activate(),t?(a.f|=se,kn(a,t)):(a.f&8388608&&(a.f^=se),kn(a,e)),c.deactivate())};n.promise.then(u,e=>u(null,e||`unknown`))}),nr(()=>{for(let e of s)e.reject(mn)}),new Promise(e=>{function t(n){function r(){n===i?e(a):t(i)}n.then(r,r)}t(i)})}function gn(e){let t=pn(e);return O||Er(t),t}function _n(e){let t=pn(e);return t.equals=Qe,t}function vn(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)V(t[n])}}function yn(e){var t,n=G,r=e.parent;if(!wr&&r!==null&&e.v!==C&&r.f&24576)return Be(),e.v;K(r);try{e.f&=~ie,vn(e),t=Fr(e)}finally{K(n)}return t}function bn(e){var t=yn(e);if(!e.equals(t)&&(e.wv=Mr(),(!j?.is_fork||e.deps===null)&&(j===null?e.v=t:(j.capture(e,t,!0),zt?.capture(e,t,!0)),e.deps===null))){A(e,g);return}wr||(M===null?yt(e):(tr()||j?.is_fork)&&M.set(e,t))}function xn(e){if(e.effects!==null)for(let t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(ge),t.fn!==null&&(t.teardown=p),t.ac=null,Lr(t,0),pr(t))}function Sn(e){if(e.effects!==null)for(let t of e.effects)t.teardown&&t.fn!==null&&Rr(t)}var Cn=new Set,wn=new Map;function Tn(e){Cn=e}var En=!1;function Dn(e,t){return{f:0,v:e,reactions:null,equals:Xe,rv:0,wv:0}}function P(e,t){let n=Dn(e,t);return Er(n),n}function On(e,t=!1,n=!0){let r=Dn(e);return t||(r.equals=Qe),$e&&n&&k!==null&&k.l!==null&&(k.l.s??=[]).push(r),r}function F(e,t,n=!1){return H!==null&&(!U||H.f&131072)&<()&&H.f&4325394&&(q===null||!i.call(q,e))&&Ie(),kn(e,n?Nn(t):t,Wt)}function kn(e,t,n=null){if(!e.equals(t)){wn.set(e,wr?t:e.v);var r=qt.ensure();if(r.capture(e,t),e.f&2){let t=e;e.f&2048&&yn(t),M===null&&yt(t)}e.wv=Mr(),Mn(e,_,n),lt()&&G!==null&&G.f&1024&&!(G.f&96)&&(X===null?Dr([e]):X.push(e)),!r.is_fork&&Cn.size>0&&!En&&An()}return t}function An(){En=!1;for(let e of Cn){e.f&1024&&A(e,v);let t;try{t=Nr(e)}catch{t=!0}t&&Rr(e)}Cn.clear()}function jn(e){F(e,e.v+1)}function Mn(e,t,n){var r=e.reactions;if(r!==null)for(var i=lt(),a=r.length,o=0;o<a;o++){var s=r[o],c=s.f;if(!(!i&&s===G)){var l=(c&_)===0;if(l&&A(s,t),c&131072)Cn.add(s);else if(c&2){var u=s;M?.delete(u),c&65536||(c&512&&(G===null||!(G.f&2097152))&&(s.f|=ie),Mn(u,v,n))}else if(l){var d=s;c&16&&N!==null&&N.add(d),n===null?en(d):n.push(d)}}}}function Nn(e){if(typeof e!=`object`||!e||ce in e)return e;let t=d(e);if(t!==l&&t!==u)return e;var r=new Map,i=n(e),a=P(0),o=null,c=Ar,f=e=>{if(Ar===c)return e();var t=H,n=Ar;W(null),jr(c);var r=e();return W(t),jr(n),r};return i&&r.set(`length`,P(e.length,o)),new Proxy(e,{defineProperty(e,t,n){(!(`value`in n)||n.configurable===!1||n.enumerable===!1||n.writable===!1)&&Pe();var i=r.get(t);return i===void 0?f(()=>{var e=P(n.value,o);return r.set(t,e),e}):F(i,n.value,!0),!0},deleteProperty(e,t){var n=r.get(t);if(n===void 0){if(t in e){let e=f(()=>P(C,o));r.set(t,e),jn(a)}}else F(n,C),jn(a);return!0},get(t,n,i){if(n===ce)return e;var a=r.get(n),c=n in t;if(a===void 0&&(!c||s(t,n)?.writable)&&(a=f(()=>P(Nn(c?t[n]:C),o)),r.set(n,a)),a!==void 0){var l=Z(a);return l===C?void 0:l}return Reflect.get(t,n,i)},getOwnPropertyDescriptor(e,t){var n=Reflect.getOwnPropertyDescriptor(e,t);if(n&&`value`in n){var i=r.get(t);i&&(n.value=Z(i))}else if(n===void 0){var a=r.get(t),o=a?.v;if(a!==void 0&&o!==C)return{enumerable:!0,configurable:!0,value:o,writable:!0}}return n},has(e,t){if(t===ce)return!0;var n=r.get(t),i=n!==void 0&&n.v!==C||Reflect.has(e,t);return(n!==void 0||G!==null&&(!i||s(e,t)?.writable))&&(n===void 0&&(n=f(()=>P(i?Nn(e[t]):C,o)),r.set(t,n)),Z(n)===C)?!1:i},set(e,t,n,c){var l=r.get(t),u=t in e;if(i&&t===`length`)for(var d=n;d<l.v;d+=1){var p=r.get(d+``);p===void 0?d in e&&(p=f(()=>P(C,o)),r.set(d+``,p)):F(p,C)}if(l===void 0)(!u||s(e,t)?.writable)&&(l=f(()=>P(void 0,o)),F(l,Nn(n)),r.set(t,l));else{u=l.v!==C;var m=f(()=>Nn(n));F(l,m)}var h=Reflect.getOwnPropertyDescriptor(e,t);if(h?.set&&h.set.call(c,n),!u){if(i&&typeof t==`string`){var g=r.get(`length`),_=Number(t);Number.isInteger(_)&&_>=g.v&&F(g,_+1)}jn(a)}return!0},ownKeys(e){Z(a);var t=Reflect.ownKeys(e).filter(e=>{var t=r.get(e);return t===void 0||t.v!==C});for(var[n,i]of r)i.v!==C&&!(n in e)&&t.push(n);return t},setPrototypeOf(){Fe()}})}function Pn(e){try{if(typeof e==`object`&&e&&ce in e)return e[ce]}catch{}return e}function Fn(e,t){return Object.is(Pn(e),Pn(t))}new Set([`copyWithin`,`fill`,`pop`,`push`,`reverse`,`shift`,`sort`,`splice`,`unshift`]);var In,Ln,Rn,zn;function Bn(){if(In===void 0){In=window,Ln=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Rn=s(t,`firstChild`).get,zn=s(t,`nextSibling`).get,f(e)&&(e[fe]=void 0,e[de]=null,e[pe]=void 0,e.__e=void 0),f(n)&&(n[me]=void 0)}}function I(e=``){return document.createTextNode(e)}function L(e){return Rn.call(e)}function R(e){return zn.call(e)}function Vn(e,t){if(!w)return L(e);var n=L(E);if(n===null)n=E.appendChild(I());else if(t&&n.nodeType!==3){var r=I();return n?.before(r),D(r),r}return t&&qn(n),D(n),n}function Hn(e,t=!1){if(!w){var n=L(e);return n instanceof Comment&&n.data===``?R(n):n}if(t){if(E?.nodeType!==3){var r=I();return E?.before(r),D(r),r}qn(E)}return E}function Un(e,t=1,n=!1){let r=w?E:e;for(var i;t--;)i=r,r=R(r);if(!w)return r;if(n){if(r?.nodeType!==3){var a=I();return r===null?i?.after(a):r.before(a),D(a),a}qn(r)}return D(r),r}function Wn(e){e.textContent=``}function Gn(){return!O||N!==null?!1:(G.f&b)!==0}function Kn(e,t,n){let r=n?{is:n}:void 0;return document.createElementNS(t??`http://www.w3.org/1999/xhtml`,e,r)}function qn(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===3;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function Jn(e){w&&L(e)!==null&&Wn(e)}var Yn=!1;function Xn(){Yn||(Yn=!0,document.addEventListener(`reset`,e=>{Promise.resolve().then(()=>{if(!e.defaultPrevented)for(let t of e.target.elements)t[he]?.()})},{capture:!0}))}function Zn(e){var t=H,n=G;W(null),K(null);try{return e()}finally{W(t),K(n)}}function Qn(e,t,n,r=n){e.addEventListener(t,()=>Zn(n));let i=e[he];i?e[he]=()=>{i(),r(!0)}:e[he]=()=>r(!0),Xn()}function $n(e){G===null&&(H===null&&Te(e),we()),wr&&Ce(e)}function er(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function z(e,t){var n=G;n!==null&&n.f&8192&&(e|=y);var r={ctx:k,deps:null,nodes:null,f:e|_|512,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null};j?.register_created_effect(r);var i=r;if(e&4)Ut===null?qt.ensure().schedule(r):Ut.push(r);else if(t!==null){try{Rr(r)}catch(e){throw V(r),e}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&!(i.f&524288)&&(i=i.first,e&16&&e&65536&&i!==null&&(i.f|=te))}if(i!==null&&(i.parent=n,n!==null&&er(i,n),H!==null&&H.f&2&&!(e&64))){var a=H;(a.effects??=[]).push(i)}return r}function tr(){return H!==null&&!U}function nr(e){let t=z(8,null);return A(t,g),t.teardown=e,t}function rr(e){$n(`$effect`);var t=G.f;if(!H&&t&32&&!(t&32768)){var n=k;(n.e??=[]).push(e)}else return ir(e)}function ir(e){return z(4|ne,e)}function ar(e){return $n(`$effect.pre`),z(8|ne,e)}function or(e){qt.ensure();let t=z(64|S,e);return(e={})=>new Promise(n=>{e.outro?_r(t,()=>{V(t),n(void 0)}):(V(t),n(void 0))})}function sr(e){return z(4,e)}function cr(e){return z(oe|S,e)}function lr(e,t=0){return z(8|t,e)}function ur(e,t=[],n=[],r=[]){ln(r,t,n,t=>{z(8,()=>e(...t.map(Z)))})}function dr(e,t=0){return z(16|t,e)}function B(e){return z(32|S,e)}function fr(e){var t=e.teardown;if(t!==null){let e=wr,n=H;Tr(!0),W(null);try{t.call(null)}finally{Tr(e),W(n)}}}function pr(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){let e=n.ac;e!==null&&Zn(()=>{e.abort(ge)});var r=n.next;n.f&64?n.parent=null:V(n,t),n=r}}function mr(e){for(var t=e.first;t!==null;){var n=t.next;t.f&32||V(t),t=n}}function V(e,t=!0){var n=!1;(t||e.f&262144)&&e.nodes!==null&&e.nodes.end!==null&&(hr(e.nodes.start,e.nodes.end),n=!0),A(e,x),pr(e,t&&!n),Lr(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)e.stop();fr(e),e.f^=x,e.f|=ee;var i=e.parent;i!==null&&i.first!==null&&gr(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function hr(e,t){for(;e!==null;){var n=e===t?null:R(e);e.remove(),e=n}}function gr(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function _r(e,t,n=!0){var r=[];vr(e,r,!0);var i=()=>{n&&V(e),t&&t()},a=r.length;if(a>0){var o=()=>--a||i();for(var s of r)s.out(o)}else i()}function vr(e,t,n){if(!(e.f&8192)){e.f^=y;var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)(e.is_global||n)&&t.push(e);for(var i=e.first;i!==null;){var a=i.next;if(!(i.f&64)){var o=(i.f&65536)!=0||(i.f&32)!=0&&(e.f&16)!=0;vr(i,t,o?n:!1)}i=a}}}function yr(e){br(e,!0)}function br(e,t){if(e.f&8192){e.f^=y,e.f&1024||(A(e,_),qt.ensure().schedule(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&65536)!=0||(n.f&32)!=0;br(n,i?t:!1),n=r}var a=e.nodes&&e.nodes.t;if(a!==null)for(let e of a)(e.is_global||t)&&e.in()}}function xr(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var i=n===r?null:R(n);t.append(n),n=i}}var Sr=null,Cr=!1,wr=!1;function Tr(e){wr=e}var H=null,U=!1;function W(e){H=e}var G=null;function K(e){G=e}var q=null;function Er(e){H!==null&&(!O||H.f&2)&&(q===null?q=[e]:q.push(e))}var J=null,Y=0,X=null;function Dr(e){X=e}var Or=1,kr=0,Ar=kr;function jr(e){Ar=e}function Mr(){return++Or}function Nr(e){var t=e.f;if(t&2048)return!0;if(t&2&&(e.f&=~ie),t&4096){for(var n=e.deps,r=n.length,i=0;i<r;i++){var a=n[i];if(Nr(a)&&bn(a),a.wv>e.wv)return!0}t&512&&M===null&&A(e,g)}return!1}function Pr(e,t,n=!0){var r=e.reactions;if(r!==null&&!(!O&&q!==null&&i.call(q,e)))for(var a=0;a<r.length;a++){var o=r[a];o.f&2?Pr(o,t,!1):t===o&&(n?A(o,_):o.f&1024&&A(o,v),en(o))}}function Fr(e){var t=J,n=Y,r=X,i=H,a=q,o=k,s=U,c=Ar,l=e.f;J=null,Y=0,X=null,H=l&96?null:e,q=null,tt(e.ctx),U=!1,Ar=++kr,e.ac!==null&&(Zn(()=>{e.ac.abort(ge)}),e.ac=null);try{e.f|=ae;var u=e.fn,d=u();e.f|=b;var f=e.deps,p=j?.is_fork;if(J!==null){var m;if(p||Lr(e,Y),f!==null&&Y>0)for(f.length=Y+J.length,m=0;m<J.length;m++)f[Y+m]=J[m];else e.deps=f=J;if(tr()&&e.f&512)for(m=Y;m<f.length;m++)(f[m].reactions??=[]).push(e)}else !p&&f!==null&&Y<f.length&&(Lr(e,Y),f.length=Y);if(lt()&&X!==null&&!U&&f!==null&&!(e.f&6146))for(m=0;m<X.length;m++)Pr(X[m],e);if(i!==null&&i!==e){if(kr++,i.deps!==null)for(let e=0;e<n;e+=1)i.deps[e].rv=kr;if(t!==null)for(let e of t)e.rv=kr;X!==null&&(r===null?r=X:r.push(...X))}return e.f&8388608&&(e.f^=se),d}catch(e){return gt(e)}finally{e.f^=ae,J=t,Y=n,X=r,H=i,q=a,tt(o),U=s,Ar=c}}function Ir(e,t){let n=t.reactions;if(n!==null){var a=r.call(n,e);if(a!==-1){var o=n.length-1;o===0?n=t.reactions=null:(n[a]=n[o],n.pop())}}if(n===null&&t.f&2&&(J===null||!i.call(J,t))){var s=t;s.f&512&&(s.f^=512,s.f&=~ie),s.v!==C&&yt(s),xn(s),Lr(s,0)}}function Lr(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)Ir(e,n[r])}function Rr(e){var t=e.f;if(!(t&16384)){A(e,g);var n=G,r=Cr;G=e,Cr=!0;try{t&16777232?mr(e):pr(e),fr(e);var i=Fr(e);e.teardown=typeof i==`function`?i:null,e.wv=Or}finally{Cr=r,G=n}}}async function zr(){if(O)return new Promise(e=>{requestAnimationFrame(()=>e()),setTimeout(()=>e())});await Promise.resolve(),Jt()}function Br(){return qt.ensure().settled()}function Z(e){var t=(e.f&2)!=0;if(Sr?.add(e),H!==null&&!U&&!(G!==null&&G.f&16384)&&(q===null||!i.call(q,e))){var n=H.deps;if(H.f&2097152)e.rv<kr&&(e.rv=kr,J===null&&n!==null&&n[Y]===e?Y++:J===null?J=[e]:J.push(e));else{H.deps??=[],i.call(H.deps,e)||H.deps.push(e);var r=e.reactions;r===null?e.reactions=[H]:i.call(r,H)||r.push(H)}}if(wr&&wn.has(e))return wn.get(e);if(t){var a=e;if(wr){var o=a.v;return(!(a.f&1024)&&a.reactions!==null||Hr(a))&&(o=yn(a)),wn.set(a,o),o}var s=(a.f&512)==0&&!U&&H!==null&&(Cr||(H.f&512)!=0),c=(a.f&b)===0;Nr(a)&&(s&&(a.f|=512),bn(a)),s&&!c&&(Sn(a),Vr(a))}if(M?.has(e))return M.get(e);if(e.f&8388608)throw e.v;return e.v}function Vr(e){if(e.f|=512,e.deps!==null)for(let t of e.deps)(t.reactions??=[]).push(e),t.f&2&&!(t.f&512)&&(Sn(t),Vr(t))}function Hr(e){if(e.v===C)return!0;if(e.deps===null)return!1;for(let t of e.deps)if(wn.has(t)||t.f&2&&Hr(t))return!0;return!1}function Q(e){var t=U;try{return U=!0,e()}finally{U=t}}function Ur(e){if(!(typeof e!=`object`||!e||e instanceof EventTarget)){if(ce in e)Wr(e);else if(!Array.isArray(e))for(let t in e){let n=e[t];typeof n==`object`&&n&&ce in n&&Wr(n)}}}function Wr(e,t=new Set){if(typeof e==`object`&&e&&!(e instanceof EventTarget)&&!t.has(e)){t.add(e),e instanceof Date&&e.getTime();for(let n in e)try{Wr(e[n],t)}catch{}let n=d(e);if(n!==Object.prototype&&n!==Array.prototype&&n!==Map.prototype&&n!==Set.prototype&&n!==Date.prototype){let t=c(n);for(let n in t){let r=t[n].get;if(r)try{r.call(e)}catch{}}}}}[...`allowfullscreen.async.autofocus.autoplay.checked.controls.default.disabled.formnovalidate.indeterminate.inert.ismap.loop.multiple.muted.nomodule.novalidate.open.playsinline.readonly.required.reversed.seamless.selected.webkitdirectory.defer.disablepictureinpicture.disableremoteplayback`.split(`.`)];var Gr=[`touchstart`,`touchmove`];function Kr(e){return Gr.includes(e)}var qr=Symbol(`events`),Jr=new Set,Yr=new Set;function Xr(e,t,n){(t[qr]??={})[e]=n}function Zr(e){for(var t=0;t<e.length;t++)Jr.add(e[t]);for(var n of Yr)n(e)}var Qr=null;function $r(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],a=i[0]||e.target;Qr=e;var s=0,c=Qr===e&&e[qr];if(c){var l=i.indexOf(c);if(l!==-1&&(t===document||t===window)){e[qr]=t;return}var u=i.indexOf(t);if(u===-1)return;l<=u&&(s=l)}if(a=i[s]||e.target,a!==t){o(e,`currentTarget`,{configurable:!0,get(){return a||n}});var d=H,f=G;W(null),K(null);try{for(var p,m=[];a!==null;){var h=a.assignedSlot||a.parentNode||a.host||null;try{var g=a[qr]?.[r];g!=null&&(!a.disabled||e.target===a)&&g.call(a,e)}catch(e){p?m.push(e):p=e}if(e.cancelBubble||h===t||h===null)break;a=h}if(p){for(let e of m)queueMicrotask(()=>{throw e});throw p}}finally{e[qr]=t,delete e.currentTarget,W(d),K(f)}}}var ei=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy(`svelte-trusted-html`,{createHTML:e=>e});function ti(e){return ei?.createHTML(e)??e}function ni(e){var t=Kn(`template`);return t.innerHTML=ti(e.replaceAll(`<!>`,`<!---->`)),t.content}function $(e,t){var n=G;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function ri(e,t){var n=(t&1)!=0,r=(t&2)!=0,i,a=!e.startsWith(`<!>`);return()=>{if(w)return $(E,null),E;i===void 0&&(i=ni(a?e:`<!>`+e),n||(i=L(i)));var t=r||Ln?document.importNode(i,!0):i.cloneNode(!0);if(n){var o=L(t),s=t.lastChild;$(o,s)}else $(t,t);return t}}function ii(e,t,n=`svg`){var r=!e.startsWith(`<!>`),i=(t&1)!=0,a=`<${n}>${r?e:`<!>`+e}</${n}>`,o;return()=>{if(w)return $(E,null),E;if(!o){var e=L(ni(a));if(i)for(o=document.createDocumentFragment();L(e);)o.appendChild(L(e));else o=L(e)}var t=o.cloneNode(!0);if(i){var n=L(t),r=t.lastChild;$(n,r)}else $(t,t);return t}}function ai(e,t){return ii(e,t,`svg`)}function oi(e=``){if(!w){var t=I(e+``);return $(t,t),t}var n=E;return n.nodeType===3?qn(n):(n.before(n=I()),D(n)),$(n,n),n}function si(){if(w)return $(E,null),E;var e=document.createDocumentFragment(),t=document.createComment(``),n=I();return e.append(t,n),$(t,n),e}function ci(e,t){if(w){var n=G;(!(n.f&32768)||n.nodes.end===null)&&(n.nodes.end=E),Ge();return}e!==null&&e.before(t)}function li(e,t){var n=t==null?``:typeof t==`object`?`${t}`:t;n!==(e[me]??=e.nodeValue)&&(e[me]=n,e.nodeValue=`${n}`)}function ui(e,t){return pi(e,t)}function di(e,t){Bn(),t.intro=t.intro??!1;let n=t.target,r=w,i=E;try{for(var a=L(n);a&&(a.nodeType!==8||a.data!==`[`);)a=R(a);if(!a)throw Re;T(!0),D(a);let r=pi(e,{...t,anchor:a});return T(!1),r}catch(r){if(r instanceof Error&&r.message.split(`
|
|
2
|
+
`).some(e=>e.startsWith(`https://svelte.dev/e/`)))throw r;return r!==Re&&console.warn(`Failed to hydrate: `,r),t.recover===!1&&Ae(),Bn(),Wn(n),T(!1),ui(e,t)}finally{T(r),D(i)}}var fi=new Map;function pi(e,{target:t,anchor:n,props:r={},events:i,context:o,intro:s=!0,transformError:c}){Bn();var l=void 0,u=or(()=>{var s=n??t.appendChild(I());sn(s,{pending:()=>{}},t=>{st({});var n=k;if(o&&(n.c=o),i&&(r.$$events=i),w&&$(t,null),l=e(t,r)||{},w&&(G.nodes.end=E,E===null||E.nodeType!==8||E.data!==`]`))throw He(),Re;ct()},c);var u=new Set,d=e=>{for(var n=0;n<e.length;n++){var r=e[n];if(!u.has(r)){u.add(r);var i=Kr(r);for(let e of[t,document]){var a=fi.get(e);a===void 0&&(a=new Map,fi.set(e,a));var o=a.get(r);o===void 0?(e.addEventListener(r,$r,{passive:i}),a.set(r,1)):a.set(r,o+1)}}}};return d(a(Jr)),Yr.add(d),()=>{for(var e of u)for(let n of[t,document]){var r=fi.get(n),i=r.get(e);--i==0?(n.removeEventListener(e,$r),r.delete(e),r.size===0&&fi.delete(n)):r.set(e,i)}Yr.delete(d),s!==n&&s.parentNode?.removeChild(s)}});return mi.set(l,u),l}var mi=new WeakMap;function hi(e,t){let n=mi.get(e);return n?(mi.delete(e),n(t)):Promise.resolve()}var gi=class{anchor;#e=new Map;#t=new Map;#n=new Map;#r=new Set;#i=!0;constructor(e,t=!0){this.anchor=e,this.#i=t}#a=e=>{if(this.#e.has(e)){var t=this.#e.get(e),n=this.#t.get(t);if(n)yr(n),this.#r.delete(t);else{var r=this.#n.get(t);r&&(this.#t.set(t,r.effect),this.#n.delete(t),r.fragment.lastChild.remove(),this.anchor.before(r.fragment),n=r.effect)}for(let[t,n]of this.#e){if(this.#e.delete(t),t===e)break;let r=this.#n.get(n);r&&(V(r.effect),this.#n.delete(n))}for(let[e,r]of this.#t){if(e===t||this.#r.has(e))continue;let i=()=>{if(Array.from(this.#e.values()).includes(e)){var t=document.createDocumentFragment();xr(r,t),t.append(I()),this.#n.set(e,{effect:r,fragment:t})}else V(r);this.#r.delete(e),this.#t.delete(e)};this.#i||!n?(this.#r.add(e),_r(r,i,!1)):i()}}};#o=e=>{this.#e.delete(e);let t=Array.from(this.#e.values());for(let[e,n]of this.#n)t.includes(e)||(V(n.effect),this.#n.delete(e))};ensure(e,t){var n=j,r=Gn();if(t&&!this.#t.has(e)&&!this.#n.has(e))if(r){var i=document.createDocumentFragment(),a=I();i.append(a),this.#n.set(e,{effect:B(()=>t(a)),fragment:i})}else this.#t.set(e,B(()=>t(this.anchor)));if(this.#e.set(n,e),r){for(let[t,r]of this.#t)t===e?n.unskip_effect(r):n.skip_effect(r);for(let[t,r]of this.#n)t===e?n.unskip_effect(r.effect):n.skip_effect(r.effect);n.oncommit(this.#a),n.ondiscard(this.#o)}else w&&(this.anchor=E),this.#a(n)}};function _i(e,t,n=!1){var r;w&&(r=E,Ge());var i=new gi(e),a=n?te:0;function o(e,t){if(w){var n=Ye(r);if(e!==parseInt(n.substring(1))){var a=Je();D(a),i.anchor=a,T(!1),i.ensure(e,t),T(!0);return}}i.ensure(e,t)}dr(()=>{var e=!1;t((t,n=0)=>{e=!0,o(n,t)}),e||o(-1,null)},a)}var vi=Symbol(`NaN`);function yi(e,t,n){w&&Ge();var r=new gi(e),i=!lt();dr(()=>{var e=t();e!==e&&(e=vi),i&&typeof e==`object`&&e&&(e={}),r.ensure(e,n)})}function bi(e,t,n){for(var r=[],i=t.length,o,s=t.length,c=0;c<i;c++){let n=t[c];_r(n,()=>{if(o){if(o.pending.delete(n),o.done.add(n),o.pending.size===0){var t=e.outrogroups;xi(e,a(o.done)),t.delete(o),t.size===0&&(e.outrogroups=null)}}else --s},!1)}if(s===0){var l=r.length===0&&n!==null;if(l){var u=n,d=u.parentNode;Wn(d),d.append(u),e.items.clear()}xi(e,t,!l)}else o={pending:new Set(t),done:new Set},(e.outrogroups??=new Set).add(o)}function xi(e,t,n=!0){var r;if(e.pending.size>0){r=new Set;for(let t of e.pending.values())for(let n of t)r.add(e.items.get(n).e)}for(var i=0;i<t.length;i++){var a=t[i];r?.has(a)?(a.f|=re,xr(a,document.createDocumentFragment())):V(t[i],n)}}var Si;function Ci(e,t,r,i,o,s=null){var c=e,l=new Map;if(t&4){var u=e;c=w?D(L(u)):u.appendChild(I())}w&&Ge();var d=null,f=_n(()=>{var e=r();return n(e)?e:e==null?[]:a(e)}),p,m=new Map,h=!0;function g(e){v.effect.f&16384||(v.pending.delete(e),v.fallback=d,Ti(v,p,c,t,i),d!==null&&(p.length===0?d.f&33554432?(d.f^=re,Di(d,null,c)):yr(d):_r(d,()=>{d=null})))}function _(e){v.pending.delete(e)}var v={effect:dr(()=>{p=Z(f);var e=p.length;let n=!1;w&&Ye(c)===`[!`!=(e===0)&&(c=Je(),D(c),T(!1),n=!0);for(var a=new Set,u=j,v=Gn(),y=0;y<e;y+=1){w&&E.nodeType===8&&E.data===`]`&&(c=E,n=!0,T(!1));var ee=p[y],b=i(ee,y),x=h?null:l.get(b);x?(x.v&&kn(x.v,ee),x.i&&kn(x.i,y),v&&u.unskip_effect(x.e)):(x=Ei(l,h?c:Si??=I(),ee,b,y,o,t,r),h||(x.e.f|=re),l.set(b,x)),a.add(b)}if(e===0&&s&&!d&&(h?d=B(()=>s(c)):(d=B(()=>s(Si??=I())),d.f|=re)),e>a.size&&Se(``,``,``),w&&e>0&&D(Je()),!h)if(m.set(u,a),v){for(let[e,t]of l)a.has(e)||u.skip_effect(t.e);u.oncommit(g),u.ondiscard(_)}else g(u);n&&T(!0),Z(f)}),flags:t,items:l,pending:m,outrogroups:null,fallback:d};h=!1,w&&(c=E)}function wi(e){for(;e!==null&&!(e.f&32);)e=e.next;return e}function Ti(e,t,n,r,i){var o=(r&8)!=0,s=t.length,c=e.items,l=wi(e.effect.first),u,d=null,f,p=[],m=[],h,g,_,v;if(o)for(v=0;v<s;v+=1)h=t[v],g=i(h,v),_=c.get(g).e,_.f&33554432||(_.nodes?.a?.measure(),(f??=new Set).add(_));for(v=0;v<s;v+=1){if(h=t[v],g=i(h,v),_=c.get(g).e,e.outrogroups!==null)for(let t of e.outrogroups)t.pending.delete(_),t.done.delete(_);if(_.f&8192&&(yr(_),o&&(_.nodes?.a?.unfix(),(f??=new Set).delete(_))),_.f&33554432)if(_.f^=re,_===l)Di(_,null,n);else{var y=d?d.next:l;_===e.effect.last&&(e.effect.last=_.prev),_.prev&&(_.prev.next=_.next),_.next&&(_.next.prev=_.prev),Oi(e,d,_),Oi(e,_,y),Di(_,y,n),d=_,p=[],m=[],l=wi(d.next);continue}if(_!==l){if(u!==void 0&&u.has(_)){if(p.length<m.length){var ee=m[0],b;d=ee.prev;var x=p[0],te=p[p.length-1];for(b=0;b<p.length;b+=1)Di(p[b],ee,n);for(b=0;b<m.length;b+=1)u.delete(m[b]);Oi(e,x.prev,te.next),Oi(e,d,x),Oi(e,te,ee),l=ee,d=te,--v,p=[],m=[]}else u.delete(_),Di(_,l,n),Oi(e,_.prev,_.next),Oi(e,_,d===null?e.effect.first:d.next),Oi(e,d,_),d=_;continue}for(p=[],m=[];l!==null&&l!==_;)(u??=new Set).add(l),m.push(l),l=wi(l.next);if(l===null)continue}_.f&33554432||p.push(_),d=_,l=wi(_.next)}if(e.outrogroups!==null){for(let t of e.outrogroups)t.pending.size===0&&(xi(e,a(t.done)),e.outrogroups?.delete(t));e.outrogroups.size===0&&(e.outrogroups=null)}if(l!==null||u!==void 0){var S=[];if(u!==void 0)for(_ of u)_.f&8192||S.push(_);for(;l!==null;)!(l.f&8192)&&l!==e.fallback&&S.push(l),l=wi(l.next);var ne=S.length;if(ne>0){var ie=r&4&&s===0?n:null;if(o){for(v=0;v<ne;v+=1)S[v].nodes?.a?.measure();for(v=0;v<ne;v+=1)S[v].nodes?.a?.fix()}bi(e,S,ie)}}o&&mt(()=>{if(f!==void 0)for(_ of f)_.nodes?.a?.apply()})}function Ei(e,t,n,r,i,a,o,s){var c=o&1?o&16?Dn(n):On(n,!1,!1):null,l=o&2?Dn(i):null;return{v:c,i:l,e:B(()=>(a(t,c??n,l??i,s),()=>{e.delete(r)}))}}function Di(e,t,n){if(e.nodes)for(var r=e.nodes.start,i=e.nodes.end,a=t&&!(t.f&33554432)?t.nodes.start:n;r!==null;){var o=R(r);if(a.before(r),r===i)return;r=o}}function Oi(e,t,n){t===null?e.effect.first=n:t.next=n,n===null?e.effect.last=t:n.prev=t}function ki(e,t,...n){var r=new gi(e);dr(()=>{let e=t()??null;r.ensure(e,e&&(t=>e(t,...n)))},te)}function Ai(e){return(t,...n)=>{var r=e(...n),i;w?(i=E,Ge()):(i=L(ni(r.render().trim())),t.before(i));let a=r.setup?.(i);$(i,i),typeof a==`function`&&nr(a)}}function ji(e,t,n){var r;w&&(r=E,Ge());var i=new gi(e);dr(()=>{var e=t()??null;if(w&&Ye(r)===`[`!=(e!==null)){var a=Je();D(a),i.anchor=a,T(!1),i.ensure(e,e&&(t=>n(t,e))),T(!0);return}i.ensure(e,e&&(t=>n(t,e)))},te)}function Mi(e,t,n){sr(()=>{var r=Q(()=>t(e,n?.())||{});if(n&&r?.update){var i=!1,a={};lr(()=>{var e=n();Ur(e),i&&Ze(a,e)&&(a=e,r.update(e))}),i=!0}if(r?.destroy)return()=>r.destroy()})}function Ni(e,t,r=!1){if(e.multiple){if(t==null)return;if(!n(t))return Ue();for(var i of e.options)i.selected=t.includes(Ii(i));return}for(i of e.options)if(Fn(Ii(i),t)){i.selected=!0;return}(!r||t!==void 0)&&(e.selectedIndex=-1)}function Pi(e){var t=new MutationObserver(()=>{Ni(e,e.__value)});t.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[`value`]}),nr(()=>{t.disconnect()})}function Fi(e,t,n=t){var r=new WeakSet,i=!0;Qn(e,`change`,t=>{var i=t?`[selected]`:`:checked`,a;if(e.multiple)a=[].map.call(e.querySelectorAll(i),Ii);else{var o=e.querySelector(i)??e.querySelector(`option:not([disabled])`);a=o&&Ii(o)}n(a),e.__value=a,j!==null&&r.add(j)}),sr(()=>{var a=t();if(e===document.activeElement){var o=O?zt:j;if(r.has(o))return}if(Ni(e,a,i),i&&a===void 0){var s=e.querySelector(`:checked`);s!==null&&(a=Ii(s),n(a))}e.__value=a,i=!1}),Pi(e)}function Ii(e){return`__value`in e?e.__value:e.value}var Li=Symbol(`is custom element`),Ri=Symbol(`is html`),zi=_e?`link`:`LINK`,Bi=_e?`progress`:`PROGRESS`;function Vi(e){if(w){var t=!1,n=()=>{if(!t){if(t=!0,e.hasAttribute(`value`)){var n=e.value;Ui(e,`value`,null),e.value=n}if(e.hasAttribute(`checked`)){var r=e.checked;Ui(e,`checked`,null),e.checked=r}}};e[he]=n,mt(n),Xn()}}function Hi(e,t){var n=Wi(e);n.value===(n.value=t??void 0)||e.value===t&&(t!==0||e.nodeName!==Bi)||(e.value=t??``)}function Ui(e,t,n,r){var i=Wi(e);w&&(i[t]=e.getAttribute(t),t===`src`||t===`srcset`||t===`href`&&e.nodeName===zi)||i[t]!==(i[t]=n)&&(t===`loading`&&(e[ue]=n),n==null?e.removeAttribute(t):typeof n!=`string`&&Ki(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function Wi(e){return e[de]??={[Li]:e.nodeName.includes(`-`),[Ri]:e.namespaceURI===ze}}var Gi=new Map;function Ki(e){var t=e.getAttribute(`is`)||e.nodeName,n=Gi.get(t);if(n)return n;Gi.set(t,n=[]);for(var r,i=e,a=Element.prototype;a!==i;){for(var o in r=c(i),r)r[o].set&&o!==`innerHTML`&&o!==`textContent`&&o!==`innerText`&&n.push(o);i=d(i)}return n}function qi(e,t,n=t){var r=new WeakSet;Qn(e,`input`,async i=>{var a=i?e.defaultValue:e.value;if(a=Yi(e)?Xi(a):a,n(a),j!==null&&r.add(j),await zr(),a!==(a=t())){var o=e.selectionStart,s=e.selectionEnd,c=e.value.length;if(e.value=a??``,s!==null){var l=e.value.length;o===s&&s===c&&l>c?(e.selectionStart=l,e.selectionEnd=l):(e.selectionStart=o,e.selectionEnd=Math.min(s,l))}}}),(w&&e.defaultValue!==e.value||Q(t)==null&&e.value)&&(n(Yi(e)?Xi(e.value):e.value),j!==null&&r.add(j)),lr(()=>{var n=t();if(e===document.activeElement){var i=O?zt:j;if(r.has(i))return}Yi(e)&&n===Xi(e.value)||e.type===`date`&&!n&&!e.value||n!==e.value&&(e.value=n??``)})}function Ji(e,t,n=t){Qn(e,`change`,t=>{n(t?e.defaultChecked:e.checked)}),(w&&e.defaultChecked!==e.checked||Q(t)==null)&&n(e.checked),lr(()=>{e.checked=!!t()})}function Yi(e){var t=e.type;return t===`number`||t===`range`}function Xi(e){return e===``?null:+e}function Zi(e,t){return e===t||e?.[ce]===t}function Qi(e={},t,n,r){var i=k.r,a=G;return sr(()=>{var o,s;return lr(()=>{o=s,s=r?.()||[],Q(()=>{Zi(n(...s),e)||(t(e,...s),o&&Zi(n(...o),e)&&t(null,...o))})}),()=>{let r=a;for(;r!==i&&r.parent!==null&&r.parent.f&33554432;)r=r.parent;let o=()=>{s&&Zi(n(...s),e)&&t(null,...s)},c=r.teardown;r.teardown=()=>{o(),c?.()}}}),e}function $i(e,t,n,r){var i=!$e||(n&2)!=0,a=(n&8)!=0,o=(n&16)!=0,c=r,l=!0,u=void 0,d=()=>o&&i?(u??=pn(r),Z(u)):(l&&(l=!1,c=o?Q(r):r),c);let f;if(a){var p=ce in e||le in e;f=s(e,t)?.set??(p&&t in e?n=>e[t]=n:void 0)}var m,h=!1;a?[m,h]=It(()=>e[t]):m=e[t],m===void 0&&r!==void 0&&(m=d(),f&&(i&&Me(t),f(m)));var g=i?()=>{var n=e[t];return n===void 0?d():(l=!0,n)}:()=>{var n=e[t];return n!==void 0&&(c=void 0),n===void 0?c:n};if(i&&!(n&4))return g;if(f){var _=e.$$legacy;return(function(e,t){return arguments.length>0?((!i||!t||_||h)&&f(t?g():e),e):g()})}var v=!1,y=(n&1?pn:_n)(()=>(v=!1,g()));a&&Z(y);var ee=G;return(function(e,t){if(arguments.length>0){let n=t?Z(y):i&&a?Nn(e):e;return F(y,n),v=!0,c!==void 0&&(c=n),e}return wr&&v||ee.f&16384?y.v:Z(y)})}function ea(e){return class extends ta{constructor(t){super({component:e,...t})}}}var ta=class{#e;#t;constructor(e){var t=new Map,n=(e,n)=>{var r=On(n,!1,!1);return t.set(e,r),r};let r=new Proxy({...e.props||{},$$events:{}},{get(e,r){return Z(t.get(r)??n(r,Reflect.get(e,r)))},has(e,r){return r===le?!0:(Z(t.get(r)??n(r,Reflect.get(e,r))),Reflect.has(e,r))},set(e,r,i){return F(t.get(r)??n(r,i),i),Reflect.set(e,r,i)}});this.#t=(e.hydrate?di:ui)(e.component,{target:e.target,anchor:e.anchor,props:r,context:e.context,intro:e.intro??!1,recover:e.recover,transformError:e.transformError}),!O&&(!e?.props?.$$host||e.sync===!1)&&Jt(),this.#e=r.$$events;for(let e of Object.keys(this.#t))e===`$set`||e===`$destroy`||e===`$on`||o(this,e,{get(){return this.#t[e]},set(t){this.#t[e]=t},enumerable:!0});this.#t.$set=e=>{Object.assign(r,e)},this.#t.$destroy=()=>{hi(this.#t)}}$set(e){this.#t.$set(e)}$on(e,t){this.#e[e]=this.#e[e]||[];let n=(...e)=>t.call(this,...e);return this.#e[e].push(n),()=>{this.#e[e]=this.#e[e].filter(e=>e!==n)}}$destroy(){this.#t.$destroy()}};function na(e,t){if(O||ve(`hydratable`),w){let t=window.__svelte?.h;if(t?.has(e))return t.get(e);Ve(e)}return t()}var ra=t({afterUpdate:()=>ua,beforeUpdate:()=>la,createContext:()=>nt,createEventDispatcher:()=>ca,createRawSnippet:()=>Ai,flushSync:()=>Jt,fork:()=>rn,getAbortSignal:()=>ia,getAllContexts:()=>ot,getContext:()=>rt,hasContext:()=>at,hydratable:()=>na,hydrate:()=>di,mount:()=>ui,onDestroy:()=>oa,onMount:()=>aa,setContext:()=>it,settled:()=>Br,tick:()=>zr,unmount:()=>hi,untrack:()=>Q});function ia(){return H===null&&ke(),(H.ac??=new AbortController).signal}function aa(e){k===null&&ye(`onMount`),$e&&k.l!==null?da(k).m.push(e):rr(()=>{let t=Q(e);if(typeof t==`function`)return t})}function oa(e){k===null&&ye(`onDestroy`),aa(()=>()=>Q(e))}function sa(e,t,{bubbles:n=!1,cancelable:r=!1}={}){return new CustomEvent(e,{detail:t,bubbles:n,cancelable:r})}function ca(){let e=k;return e===null&&ye(`createEventDispatcher`),(t,r,i)=>{let a=e.s.$$events?.[t];if(a){let o=n(a)?a.slice():[a],s=sa(t,r,i);for(let t of o)t.call(e.x,s);return!s.defaultPrevented}return!0}}function la(e){k===null&&ye(`beforeUpdate`),k.l===null&&je(`beforeUpdate`),da(k).b.push(e)}function ua(e){k===null&&ye(`afterUpdate`),k.l===null&&je(`afterUpdate`),da(k).a.push(e)}function da(e){var t=e.l;return t.u??={a:[],b:[],m:[]}}export{st as $,Br as A,Nn as B,si as C,Zr as D,oi as E,ar as F,Mt as G,P as H,Jn as I,Ot as J,Ft as K,Vn as L,Q as M,ur as N,Xr as O,rr as P,ct as Q,Hn as R,ci as S,ai as T,gn as U,F as V,Nt as W,Tt as X,Dt as Y,rt as Z,ki as _,$i as a,_i as b,qi as c,Hi as d,it as et,Fi as f,ji as g,Mi as h,ea as i,zr as j,Z as k,Vi as l,Ni as m,oa as n,Ke as nt,Qi as o,Pi as p,Et as q,aa as r,Ji as s,ra as t,et as tt,Ui as u,Ci as v,ri as w,li as x,yi as y,Un as z};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{C as e,f as t,n,o as r,r as i}from"./
|
|
1
|
+
import{C as e,f as t,n,o as r,r as i}from"./B1d2TdTR.js";function a(e){let r=JSON.parse(e);return r.data&&=t(r.data,n.decoders),r}function o(e){return HTMLElement.prototype.cloneNode.call(e)}function s(t,n=e){let s=async({action:e,result:n,reset:a=!0,invalidateAll:o=!0})=>{n.type===`success`&&(a&&HTMLFormElement.prototype.reset.call(t),o&&await r()),(location.origin+location.pathname===e.origin+e.pathname||n.type===`redirect`||n.type===`error`)&&await i(n)};async function c(e){if((e.submitter?.hasAttribute(`formmethod`)?e.submitter.formMethod:o(t).method)!==`post`)return;e.preventDefault();let r=new URL(e.submitter?.hasAttribute(`formaction`)?e.submitter.formAction:o(t).action),i=e.submitter?.hasAttribute(`formenctype`)?e.submitter.formEnctype:o(t).enctype,c=new FormData(t,e.submitter),l=new AbortController,u=!1,d=await n({action:r,cancel:()=>u=!0,controller:l,formData:c,formElement:t,submitter:e.submitter})??s;if(u)return;let f;try{let e=new Headers({accept:`application/json`,"x-sveltekit-action":`true`});i!==`multipart/form-data`&&e.set(`Content-Type`,/^(:?application\/x-www-form-urlencoded|text\/plain)$/.test(i)?i:`application/x-www-form-urlencoded`);let t=i===`multipart/form-data`?c:new URLSearchParams(c),n=await fetch(r,{method:`POST`,headers:e,cache:`no-store`,body:t,signal:l.signal});f=a(await n.text()),f.type===`error`&&(f.status=n.status)}catch(e){if(e?.name===`AbortError`)return;f={type:`error`,error:e}}await d({action:r,formData:c,formElement:t,update:e=>s({action:r,result:f,reset:e?.reset,invalidateAll:e?.invalidateAll}),result:f})}return HTMLFormElement.prototype.addEventListener.call(t,`submit`,c),{destroy(){HTMLFormElement.prototype.removeEventListener.call(t,`submit`,c)}}}export{s as n,a as t};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function e(e,t){if(t.length===0)return null;let n=[];for(let r of t){let t=e[r];if(t==null)return null;n.push(encodeURIComponent(String(t)))}return n.join(`,`)}function t(e){return Array.isArray(e)?e.map(e=>encodeURIComponent(String(e))).join(`,`):encodeURIComponent(String(e))}export{e as n,t};
|
|
Binary file
|
|
Binary file
|