screenreader-speech-capture 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.mjs +15 -5
- package/dist/ui/adapter-node.js +4 -4
- package/dist/ui/client/ui/_app/immutable/assets/0.CeDGT9MW.css +1 -0
- package/dist/ui/client/ui/_app/immutable/assets/0.CeDGT9MW.css.br +0 -0
- package/dist/ui/client/ui/_app/immutable/assets/0.CeDGT9MW.css.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/assets/2.DJfIfRJB.css +1 -0
- package/dist/ui/client/ui/_app/immutable/assets/2.DJfIfRJB.css.br +0 -0
- package/dist/ui/client/ui/_app/immutable/assets/2.DJfIfRJB.css.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/assets/material-symbols-outlined-latin-400-normal.BhEvR8fk.woff2 +0 -0
- package/dist/ui/client/ui/_app/immutable/assets/roboto-flex-cyrillic-ext-opsz-normal.nDQikIyu.woff2 +0 -0
- package/dist/ui/client/ui/_app/immutable/assets/roboto-flex-cyrillic-opsz-normal.SjuC5rw5.woff2 +0 -0
- package/dist/ui/client/ui/_app/immutable/assets/roboto-flex-greek-opsz-normal.C14fFRny.woff2 +0 -0
- package/dist/ui/client/ui/_app/immutable/assets/roboto-flex-latin-ext-opsz-normal.xNclTVCo.woff2 +0 -0
- package/dist/ui/client/ui/_app/immutable/assets/roboto-flex-latin-opsz-normal.hy8fyBBC.woff2 +0 -0
- package/dist/ui/client/ui/_app/immutable/assets/roboto-flex-vietnamese-opsz-normal.C-H_yGOU.woff2 +0 -0
- package/dist/ui/client/ui/_app/immutable/assets/roboto-mono-cyrillic-400-normal.B3hIXASd.woff +0 -0
- package/dist/ui/client/ui/_app/immutable/assets/roboto-mono-cyrillic-400-normal.C-_K-ZCn.woff2 +0 -0
- package/dist/ui/client/ui/_app/immutable/assets/roboto-mono-cyrillic-500-normal.DGZ7-lUP.woff2 +0 -0
- package/dist/ui/client/ui/_app/immutable/assets/roboto-mono-cyrillic-500-normal.NpUJFYX7.woff +0 -0
- package/dist/ui/client/ui/_app/immutable/assets/roboto-mono-cyrillic-ext-400-normal.BHxv52bw.woff2 +0 -0
- package/dist/ui/client/ui/_app/immutable/assets/roboto-mono-cyrillic-ext-400-normal.W26xs1TL.woff +0 -0
- package/dist/ui/client/ui/_app/immutable/assets/roboto-mono-cyrillic-ext-500-normal.6xdwlG7p.woff +0 -0
- package/dist/ui/client/ui/_app/immutable/assets/roboto-mono-cyrillic-ext-500-normal.DC57U9n8.woff2 +0 -0
- package/dist/ui/client/ui/_app/immutable/assets/roboto-mono-greek-400-normal.CH_u3Aru.woff2 +0 -0
- package/dist/ui/client/ui/_app/immutable/assets/roboto-mono-greek-400-normal.P8xe1gs1.woff +0 -0
- package/dist/ui/client/ui/_app/immutable/assets/roboto-mono-greek-500-normal.C2M8jX6G.woff +0 -0
- package/dist/ui/client/ui/_app/immutable/assets/roboto-mono-greek-500-normal.DpRFkptA.woff2 +0 -0
- package/dist/ui/client/ui/_app/immutable/assets/roboto-mono-latin-400-normal.DBZPkcnn.woff +0 -0
- package/dist/ui/client/ui/_app/immutable/assets/roboto-mono-latin-400-normal.GekRknry.woff2 +0 -0
- package/dist/ui/client/ui/_app/immutable/assets/roboto-mono-latin-500-normal.D6j6AMzd.woff +0 -0
- package/dist/ui/client/ui/_app/immutable/assets/roboto-mono-latin-500-normal.pxIOXZmA.woff2 +0 -0
- package/dist/ui/client/ui/_app/immutable/assets/roboto-mono-latin-ext-400-normal.BwLXVYNz.woff +0 -0
- package/dist/ui/client/ui/_app/immutable/assets/roboto-mono-latin-ext-400-normal.DLAV9S_w.woff2 +0 -0
- package/dist/ui/client/ui/_app/immutable/assets/roboto-mono-latin-ext-500-normal.B1IjfbhL.woff +0 -0
- package/dist/ui/client/ui/_app/immutable/assets/roboto-mono-latin-ext-500-normal.Db3ge6Oe.woff2 +0 -0
- package/dist/ui/client/ui/_app/immutable/assets/roboto-mono-vietnamese-400-normal.CzWHQABp.woff +0 -0
- package/dist/ui/client/ui/_app/immutable/assets/roboto-mono-vietnamese-400-normal.yYTFiTTs.woff2 +0 -0
- package/dist/ui/client/ui/_app/immutable/assets/roboto-mono-vietnamese-500-normal.Cq-quQMu.woff2 +0 -0
- package/dist/ui/client/ui/_app/immutable/assets/roboto-mono-vietnamese-500-normal.IxzxMIj7.woff +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/BaD2EyfF.js +1 -0
- package/dist/ui/client/ui/_app/immutable/chunks/BaD2EyfF.js.br +1 -0
- package/dist/ui/client/ui/_app/immutable/chunks/BaD2EyfF.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/CcBdu3S8.js +3 -0
- package/dist/ui/client/ui/_app/immutable/chunks/CcBdu3S8.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/CcBdu3S8.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/DSHrAZZ8.js +37 -0
- package/dist/ui/client/ui/_app/immutable/chunks/DSHrAZZ8.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/DSHrAZZ8.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/DbiAGPgw.js +1 -0
- package/dist/ui/client/ui/_app/immutable/chunks/DbiAGPgw.js.br +2 -0
- package/dist/ui/client/ui/_app/immutable/chunks/DbiAGPgw.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/Dg9MaatX.js +1 -0
- package/dist/ui/client/ui/_app/immutable/chunks/Dg9MaatX.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/Dg9MaatX.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/DvmLiMpQ.js +3 -0
- package/dist/ui/client/ui/_app/immutable/chunks/DvmLiMpQ.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/DvmLiMpQ.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/entry/app.2mjWY9ga.js +2 -0
- package/dist/ui/client/ui/_app/immutable/entry/app.2mjWY9ga.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/entry/app.2mjWY9ga.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/entry/start.BHpKgjPx.js +2 -0
- package/dist/ui/client/ui/_app/immutable/entry/start.BHpKgjPx.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/entry/start.BHpKgjPx.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/0.CQ_XophD.js +1 -0
- package/dist/ui/client/ui/_app/immutable/nodes/0.CQ_XophD.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/0.CQ_XophD.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/1.Bd-KoKuj.js +1 -0
- package/dist/ui/client/ui/_app/immutable/nodes/1.Bd-KoKuj.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/1.Bd-KoKuj.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/2.BTJ1n3E7.js +224 -0
- package/dist/ui/client/ui/_app/immutable/nodes/2.BTJ1n3E7.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/2.BTJ1n3E7.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/3.CsdEJLWJ.js +1 -0
- package/dist/ui/client/ui/_app/immutable/nodes/3.CsdEJLWJ.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/3.CsdEJLWJ.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/4.CXVi2Rvi.js +1 -0
- package/dist/ui/client/ui/_app/immutable/nodes/4.CXVi2Rvi.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/4.CXVi2Rvi.js.gz +0 -0
- package/dist/ui/client/ui/_app/version.json +1 -0
- package/dist/ui/client/ui/_app/version.json.br +0 -0
- package/dist/ui/client/ui/_app/version.json.gz +0 -0
- package/dist/ui/server/.vite/manifest.json +269 -4
- package/dist/ui/server/_app/immutable/assets/_layout.CeDGT9MW.css +1 -0
- package/dist/ui/server/_app/immutable/assets/_page.DJfIfRJB.css +1 -0
- package/dist/ui/server/_app/immutable/assets/material-symbols-outlined-latin-400-normal.BhEvR8fk.woff2 +0 -0
- package/dist/ui/server/_app/immutable/assets/roboto-flex-cyrillic-ext-opsz-normal.nDQikIyu.woff2 +0 -0
- package/dist/ui/server/_app/immutable/assets/roboto-flex-cyrillic-opsz-normal.SjuC5rw5.woff2 +0 -0
- package/dist/ui/server/_app/immutable/assets/roboto-flex-greek-opsz-normal.C14fFRny.woff2 +0 -0
- package/dist/ui/server/_app/immutable/assets/roboto-flex-latin-ext-opsz-normal.xNclTVCo.woff2 +0 -0
- package/dist/ui/server/_app/immutable/assets/roboto-flex-latin-opsz-normal.hy8fyBBC.woff2 +0 -0
- package/dist/ui/server/_app/immutable/assets/roboto-flex-vietnamese-opsz-normal.C-H_yGOU.woff2 +0 -0
- package/dist/ui/server/_app/immutable/assets/roboto-mono-cyrillic-400-normal.B3hIXASd.woff +0 -0
- package/dist/ui/server/_app/immutable/assets/roboto-mono-cyrillic-400-normal.C-_K-ZCn.woff2 +0 -0
- package/dist/ui/server/_app/immutable/assets/roboto-mono-cyrillic-500-normal.DGZ7-lUP.woff2 +0 -0
- package/dist/ui/server/_app/immutable/assets/roboto-mono-cyrillic-500-normal.NpUJFYX7.woff +0 -0
- package/dist/ui/server/_app/immutable/assets/roboto-mono-cyrillic-ext-400-normal.BHxv52bw.woff2 +0 -0
- package/dist/ui/server/_app/immutable/assets/roboto-mono-cyrillic-ext-400-normal.W26xs1TL.woff +0 -0
- package/dist/ui/server/_app/immutable/assets/roboto-mono-cyrillic-ext-500-normal.6xdwlG7p.woff +0 -0
- package/dist/ui/server/_app/immutable/assets/roboto-mono-cyrillic-ext-500-normal.DC57U9n8.woff2 +0 -0
- package/dist/ui/server/_app/immutable/assets/roboto-mono-greek-400-normal.CH_u3Aru.woff2 +0 -0
- package/dist/ui/server/_app/immutable/assets/roboto-mono-greek-400-normal.P8xe1gs1.woff +0 -0
- package/dist/ui/server/_app/immutable/assets/roboto-mono-greek-500-normal.C2M8jX6G.woff +0 -0
- package/dist/ui/server/_app/immutable/assets/roboto-mono-greek-500-normal.DpRFkptA.woff2 +0 -0
- package/dist/ui/server/_app/immutable/assets/roboto-mono-latin-400-normal.DBZPkcnn.woff +0 -0
- package/dist/ui/server/_app/immutable/assets/roboto-mono-latin-400-normal.GekRknry.woff2 +0 -0
- package/dist/ui/server/_app/immutable/assets/roboto-mono-latin-500-normal.D6j6AMzd.woff +0 -0
- package/dist/ui/server/_app/immutable/assets/roboto-mono-latin-500-normal.pxIOXZmA.woff2 +0 -0
- package/dist/ui/server/_app/immutable/assets/roboto-mono-latin-ext-400-normal.BwLXVYNz.woff +0 -0
- package/dist/ui/server/_app/immutable/assets/roboto-mono-latin-ext-400-normal.DLAV9S_w.woff2 +0 -0
- package/dist/ui/server/_app/immutable/assets/roboto-mono-latin-ext-500-normal.B1IjfbhL.woff +0 -0
- package/dist/ui/server/_app/immutable/assets/roboto-mono-latin-ext-500-normal.Db3ge6Oe.woff2 +0 -0
- package/dist/ui/server/_app/immutable/assets/roboto-mono-vietnamese-400-normal.CzWHQABp.woff +0 -0
- package/dist/ui/server/_app/immutable/assets/roboto-mono-vietnamese-400-normal.yYTFiTTs.woff2 +0 -0
- package/dist/ui/server/_app/immutable/assets/roboto-mono-vietnamese-500-normal.Cq-quQMu.woff2 +0 -0
- package/dist/ui/server/_app/immutable/assets/roboto-mono-vietnamese-500-normal.IxzxMIj7.woff +0 -0
- package/dist/ui/server/chunks/bridge-api.js +61 -0
- package/dist/ui/server/chunks/bridge-api.js.map +1 -0
- package/dist/ui/server/chunks/composition.js +232 -0
- package/dist/ui/server/chunks/composition.js.map +1 -0
- package/dist/ui/server/chunks/exports.js +69 -1
- package/dist/ui/server/chunks/exports.js.map +1 -1
- package/dist/ui/server/chunks/instance.js +20 -26
- package/dist/ui/server/chunks/instance.js.map +1 -1
- package/dist/ui/server/chunks/internal.js +102 -7
- package/dist/ui/server/chunks/internal.js.map +1 -1
- package/dist/ui/server/chunks/navigation.js +15 -0
- package/dist/ui/server/chunks/navigation.js.map +1 -0
- package/dist/ui/server/chunks/server2.js +30 -1
- package/dist/ui/server/chunks/server2.js.map +1 -1
- package/dist/ui/server/chunks/src.js +968 -0
- package/dist/ui/server/chunks/src.js.map +1 -0
- package/dist/ui/server/chunks/state.js +38 -0
- package/dist/ui/server/chunks/state.js.map +1 -0
- package/dist/ui/server/entries/endpoints/api/sessions/_server.ts.js +18 -0
- package/dist/ui/server/entries/endpoints/api/sessions/_server.ts.js.map +1 -0
- package/dist/ui/server/entries/endpoints/api/sessions/end/_server.ts.js +10 -0
- package/dist/ui/server/entries/endpoints/api/sessions/end/_server.ts.js.map +1 -0
- package/dist/ui/server/entries/endpoints/api/status/_server.ts.js +10 -0
- package/dist/ui/server/entries/endpoints/api/status/_server.ts.js.map +1 -0
- package/dist/ui/server/entries/fallbacks/error.svelte.js +2 -35
- package/dist/ui/server/entries/fallbacks/error.svelte.js.map +1 -1
- package/dist/ui/server/entries/pages/_layout.server.ts.js +5 -980
- package/dist/ui/server/entries/pages/_layout.server.ts.js.map +1 -1
- package/dist/ui/server/entries/pages/_layout.svelte.js +194 -7
- package/dist/ui/server/entries/pages/_layout.svelte.js.map +1 -1
- package/dist/ui/server/entries/pages/_page.server.ts.js +18 -0
- package/dist/ui/server/entries/pages/_page.server.ts.js.map +1 -0
- package/dist/ui/server/entries/pages/_page.svelte.js +213 -2
- package/dist/ui/server/entries/pages/_page.svelte.js.map +1 -1
- package/dist/ui/server/entries/pages/settings/_page.svelte.js +8 -0
- package/dist/ui/server/entries/pages/settings/_page.svelte.js.map +1 -0
- package/dist/ui/server/entries/pages/setup/_page.svelte.js +8 -0
- package/dist/ui/server/entries/pages/setup/_page.svelte.js.map +1 -0
- package/dist/ui/server/index.js +2 -2
- package/dist/ui/server/manifest-full.js +40 -3
- package/dist/ui/server/manifest.js +40 -3
- package/dist/ui/server/nodes/0.js +3 -3
- package/dist/ui/server/nodes/1.js +1 -1
- package/dist/ui/server/nodes/2.js +5 -3
- package/dist/ui/server/nodes/3.js +8 -0
- package/dist/ui/server/nodes/4.js +8 -0
- package/dist/ui/server/remote-entry.js +3 -3
- package/dist/ui/server/remote-entry.js.map +1 -1
- package/dist/ui/server/server.js +40 -3
- package/package.json +1 -1
- package/dist/ui/client/_app/immutable/chunks/BMrJcSB7.js +0 -3
- package/dist/ui/client/_app/immutable/chunks/BMrJcSB7.js.br +0 -0
- package/dist/ui/client/_app/immutable/chunks/BMrJcSB7.js.gz +0 -0
- package/dist/ui/client/_app/immutable/chunks/BueZJg5y.js +0 -2
- package/dist/ui/client/_app/immutable/chunks/BueZJg5y.js.br +0 -0
- package/dist/ui/client/_app/immutable/chunks/BueZJg5y.js.gz +0 -0
- package/dist/ui/client/_app/immutable/chunks/ZzrMKdp0.js +0 -1
- package/dist/ui/client/_app/immutable/chunks/ZzrMKdp0.js.br +0 -0
- package/dist/ui/client/_app/immutable/chunks/ZzrMKdp0.js.gz +0 -0
- package/dist/ui/client/_app/immutable/entry/app.BGREpuCm.js +0 -2
- package/dist/ui/client/_app/immutable/entry/app.BGREpuCm.js.br +0 -0
- package/dist/ui/client/_app/immutable/entry/app.BGREpuCm.js.gz +0 -0
- package/dist/ui/client/_app/immutable/entry/start.Bj3y6VYi.js +0 -2
- package/dist/ui/client/_app/immutable/entry/start.Bj3y6VYi.js.br +0 -0
- package/dist/ui/client/_app/immutable/entry/start.Bj3y6VYi.js.gz +0 -0
- package/dist/ui/client/_app/immutable/nodes/0.BdmtdjrF.js +0 -1
- package/dist/ui/client/_app/immutable/nodes/0.BdmtdjrF.js.br +0 -0
- package/dist/ui/client/_app/immutable/nodes/0.BdmtdjrF.js.gz +0 -0
- package/dist/ui/client/_app/immutable/nodes/1.B76I_t5U.js +0 -1
- package/dist/ui/client/_app/immutable/nodes/1.B76I_t5U.js.br +0 -0
- package/dist/ui/client/_app/immutable/nodes/1.B76I_t5U.js.gz +0 -0
- package/dist/ui/client/_app/immutable/nodes/2.CpNTEXmI.js +0 -1
- package/dist/ui/client/_app/immutable/nodes/2.CpNTEXmI.js.br +0 -0
- package/dist/ui/client/_app/immutable/nodes/2.CpNTEXmI.js.gz +0 -0
- package/dist/ui/client/_app/version.json +0 -1
- package/dist/ui/client/_app/version.json.br +0 -0
- package/dist/ui/client/_app/version.json.gz +0 -0
- /package/dist/ui/client/{_app → ui/_app}/immutable/chunks/Bjy-W4x2.js +0 -0
- /package/dist/ui/client/{_app → ui/_app}/immutable/chunks/Bjy-W4x2.js.br +0 -0
- /package/dist/ui/client/{_app → ui/_app}/immutable/chunks/Bjy-W4x2.js.gz +0 -0
- /package/dist/ui/client/{_app → ui/_app}/immutable/chunks/DclECHGd.js +0 -0
- /package/dist/ui/client/{_app → ui/_app}/immutable/chunks/DclECHGd.js.br +0 -0
- /package/dist/ui/client/{_app → ui/_app}/immutable/chunks/DclECHGd.js.gz +0 -0
- /package/dist/ui/client/{_app → ui/_app}/immutable/entry/payload.DSmR2FwN.js +0 -0
- /package/dist/ui/client/{_app → ui/_app}/immutable/entry/payload.DSmR2FwN.js.br +0 -0
- /package/dist/ui/client/{_app → ui/_app}/immutable/entry/payload.DSmR2FwN.js.gz +0 -0
- /package/dist/ui/client/{robots.txt → ui/robots.txt} +0 -0
- /package/dist/ui/client/{robots.txt.br → ui/robots.txt.br} +0 -0
- /package/dist/ui/client/{robots.txt.gz → ui/robots.txt.gz} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{I as e,L as t,O as n,T as r}from"./CcBdu3S8.js";import{payload as i}from"../entry/payload.DSmR2FwN.js";var a=`font-weight: bold`,o=`font-weight: normal`;function s(e,t,n){let r=Error(`${e}\n${t}\nhttps://svelte.dev/e/kit/${e}`);throw r.name=`SvelteKit error`,Error.captureStackTrace?.(r,n),r}function c(e){try{e()}catch(e){return e}}function l(e){throw Error(`https://svelte.dev/e/kit/invalid_export`)}function u(e){throw Error(`https://svelte.dev/e/kit/invalid_export_location`)}function d(e){throw Error(`https://svelte.dev/e/kit/param_matcher_async`)}function f(e){throw Error(`https://svelte.dev/e/kit/param_matcher_result_invalid`)}function p(e){throw Error(`https://svelte.dev/e/kit/resolve_params_missing`)}function m(e){throw Error(`https://svelte.dev/e/kit/resolve_url_input`)}function h(e){throw Error(`https://svelte.dev/e/kit/route_param_missing`)}function g(e){throw Error(`https://svelte.dev/e/kit/route_param_slash`)}function _(e){throw Error(`https://svelte.dev/e/kit/route_param_value_invalid`)}function v(e){throw Error(`https://svelte.dev/e/kit/router_hash_page_options`)}var y=i.base??`/ui`,b=i.assets??y??``;function x(e){}function S(e){return e.replace(/[.*+?^${}()|[\]\\]/g,e=>`\\`+e)}var C=/^(\[)?(\.\.\.)?([\w-]+)(?:=([\w-]+))?(\])?$/,ee=/^\/\((?:[^)]+)\)$/,w=/\[([ux])\+([^\]]+)\]/;function T(e){return String.fromCodePoint(...e.split(`-`).map(e=>parseInt(e,16)))}function E(e){return e.replace(/[%/?#]/g,e=>`%`+e.charCodeAt(0).toString(16).toUpperCase().padStart(2,`0`))}function D(e){let t=[];return{pattern:e===`/`||ee.test(e)?/^\/$/:RegExp(`^${k(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+`)||e.startsWith(`u+`))return N(T(e.slice(2)));let[,r,a,o,s]=C.exec(e);return t.push({name:o,matcher:s,optional:!!r,rest:!!a,chained:a?n===1&&i[0]===``:!1}),a?`([^]*?)`:r?`([^/]*)?`:`([^/]+?)`}return N(e)}).join(``)}).join(``)}/?$`),params:t}}function O(e){return e!==``&&!/^\([^)]+\)$/.test(e)}function k(e){return e.slice(1).split(`/`).filter(O)}function A(e,t){let n=e[`~standard`].validate(t);if(n instanceof Promise&&d(),n.issues)return{success:!1};let r=n.value;return typeof r!=`string`&&typeof r!=`number`&&typeof r!=`boolean`&&typeof r!=`bigint`&&f(),{success:!0,value:r}}function j(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}let l=decodeURIComponent(c);if(s.matcher){let e=A(n[s.matcher],l);if(!e.success){if(s.optional&&s.chained){o++;continue}return}r[s.name]=e.value}else r[s.name]=l;let u=t[e+1],d=i[e+1];u&&!u.rest&&u.optional&&d&&s.chained&&(o=0),!u&&!d&&Object.keys(r).length===a.length&&(o=0)}if(!o)return r}var M={"%":`%25`,"/":`%2[Ff]`,"?":`%3[Ff]`,"#":`%23`};function N(e){return e.normalize().split(/([%/?#])/).map((e,t)=>t%2?M[e]:S(e)).join(``)}var P=RegExp(`${w.source}|\\[(\\[)?(\\.\\.\\.)?([\\w-]+?)(?:=([\\w-]+))?\\]\\]?`,`g`);function F(e,t){let n=k(e),r=e!=`/`&&e.endsWith(`/`);return`/`+n.map(n=>n.replace(P,(n,r,i,a,o,s)=>{if(r)return E(T(i));let c=t[s];if(c===void 0||c===``){if(a||o&&c!==void 0)return``;h({name:s,id:e})}if(typeof c==`string`)return(c.startsWith(`/`)||c.endsWith(`/`))&&g({name:s,id:e}),c;if(typeof c==`number`||typeof c==`boolean`||typeof c==`bigint`)return String(c);_({name:s,id:e})})).filter(Boolean).join(`/`)+(r?`/`:``)}var I=/^[a-z][a-z\d+\-.]*:/i;function L(e){return I.test(e)||e.startsWith(`//`)}new URL(`a://`);function R(e,t){return e===`/`||t===`ignore`?e:t===`never`?e.endsWith(`/`)?e.slice(0,-1):e:t===`always`&&!e.endsWith(`/`)?e+`/`:e}function z(e){return e.split(`%25`).map(decodeURI).join(`%25`)}function B({href:e}){return e.split(`#`)[0]}var V=y;function H(...e){let[t,n]=e;return L(t)&&m({id:t}),t[0]===`/`?(t.includes(`[`)&&!n&&p({id:t}),V+F(t,n??{})):V+`/`+t}var U=i.version,W=new class{#e=t({});get data(){return r(this.#e)}set data(t){e(this.#e,t)}#t=t(null);get form(){return r(this.#t)}set form(t){e(this.#t,t)}#n=t(null);get error(){return r(this.#n)}set error(t){e(this.#n,t)}#r=t({});get params(){return r(this.#r)}set params(t){e(this.#r,t)}#i=t({id:null});get route(){return r(this.#i)}set route(t){e(this.#i,t)}#a=t(null);get shallow(){return r(this.#a)}set shallow(t){e(this.#a,t)}#o=t({});get state(){return r(this.#o)}set state(t){e(this.#o,t)}#s=t(-1);get status(){return r(this.#s)}set status(t){e(this.#s,t)}#c=t(new URL(`a:`));get url(){return r(this.#c)}set url(t){e(this.#c,t)}};function G(e){Object.assign(W,e)}var K={get data(){return W.data},get error(){return W.error},get form(){return W.form},get params(){return W.params},get route(){return W.route},get shallow(){return W.shallow},get state(){return W.state},get status(){return W.status},get url(){return W.url}},q=t(null);function J(t){e(q,t)}var Y=36e5,X,Z,Q=t(!1),$={get current(){return r(Q)},async check(){return window.clearTimeout(X),r(Q)?Promise.resolve(!0):Z??=(async()=>{try{let t=await fetch(`${b}/_app/version.json`,{headers:{"cache-control":`no-cache`}});if(!t.ok)return!1;let n=await t.json();return e(Q,r(Q)||n.version!==U)}catch{return!1}finally{Z=void 0,r(Q)||(X=window.setTimeout($.check,Y))}})()}};Y&&(X=window.setTimeout($.check,Y));function te(t){t&&n(()=>e(Q,r(Q)||t!==U))}export{a as _,$ as a,s as b,R as c,D as d,y as f,v as g,u as h,G as i,B as l,l as m,K as n,H as o,x as p,J as r,z as s,te as t,j as u,c as v,o as y};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{payload as e}from"../entry/payload.DSmR2FwN.js";import{B as t,D as n,E as r,H as i,I as a,L as o,M as s,P as c,R as l,T as u,U as d,_ as f,b as p,d as m,f as h,g,h as _,j as v,k as y,l as b,m as x,n as S,t as ee,v as C,x as te,y as ne,z as re}from"./CcBdu3S8.js";import{a as w,c as ie,d as ae,f as T,i as oe,l as se,n as ce,p as le,r as E,s as ue,t as de,u as fe,v as pe}from"./Dg9MaatX.js";var me=class{constructor(e){this.status=e.status,this.body=e}toString(){return JSON.stringify(this.body)}},he=class extends me{},ge=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}},_e=class extends Error{constructor(e,t,n){super(n),this.status=e,this.text=t}};function ve(...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)}function ye(e,t){let n=[];return e&&n.push([...new Headers(e)].join(`,`)),t&&n.push(t),ve(...n)}new TextEncoder,new TextDecoder;function be(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 xe=2**32-1,Se=xe-1,D=class extends Error{constructor(e,t,n,r){super(e),this.name=`DevalueError`,this.path=t.join(``),this.value=n,this.root=r}},Ce=Object.getOwnPropertyNames(Object.prototype).sort().join(`\0`);function we(e){let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null||Object.getPrototypeOf(t)===null||Object.getOwnPropertyNames(t).sort().join(`\0`)===Ce}function Te(e){return Object.prototype.toString.call(e).slice(8,-1)}function Ee(e){return typeof Buffer<`u`&&Buffer.isBuffer(e)}function De(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 O(e){let t=``,n=0,r=e.length;for(let i=0;i<r;i+=1){let r=e[i],a=De(r);a&&(t+=e.slice(n,i)+a,n=i+1)}return`"${n===0?e:t+e.slice(n)}"`}function Oe(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.getOwnPropertyDescriptor(e,t).enumerable)}var ke=/^[a-zA-Z_$][a-zA-Z_$0-9]*$/;function Ae(e){return ke.test(e)?`.`+e:`[`+JSON.stringify(e)+`]`}function je(e){return!(!Number.isInteger(e)||e<0||e>Se)}function Me(e){return!(!Number.isInteger(e)||e<0||e>xe)}function Ne(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 je(+e)}function Pe(e){for(var t=e.length-1;t>=0&&!Ne(e[t]);t--);return t+1}function Fe(e){let t=Object.keys(e);return t.length=Pe(t),t}function Ie(e){return new Uint8Array(e).toBase64()}function Le(e){return Uint8Array.fromBase64(e).buffer}function Re(e){return Buffer.from(e).toString(`base64`)}function ze(e){return Uint8Array.from(Buffer.from(e,`base64`)).buffer}function Be(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 Ve(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 He=typeof Uint8Array.fromBase64==`function`,Ue=typeof process==`object`&&process.versions?.node!==void 0,We=He?Ie:Ue?Re:Be,Ge=He?Le:Ue?ze:Ve;function Ke(e,t){if(!t)return e;let n={};for(let r of Object.keys(e))n[r]=t[r]??e[r];return n}var qe=Object.freeze({kind:`not-plain`}),Je=Object.freeze({kind:`symbol-keys`}),Ye=Object.freeze({identify:e=>e,typeOf:e=>e===null?`null`:typeof e,toPrimitive:e=>e,tagOf:e=>Te(e),isThenable:e=>typeof e.then==`function`,toPromise:e=>Promise.resolve(e),unbox:e=>e.valueOf(),toISOString:e=>isNaN(e.getDate())?``:e.toISOString(),toStringValue:e=>e.toString(),regExpInfo:e=>({source:e.source,flags:e.flags}),valuesOf:e=>e,entriesOf:e=>e,viewInfo:e=>(Ee(e)&&(e=new Uint8Array(e)),{buffer:e.buffer,byteOffset:e.byteOffset,byteLength:e.byteLength,length:e.length,bufferByteLength:e.buffer.byteLength}),toArrayBuffer:e=>e,lengthOf:e=>e.length,hasOwn:(e,t)=>Object.hasOwn(e,t),indicesOf:e=>Fe(e),shapeOf:e=>we(e)?Oe(e).length>0?Je:{kind:Object.getPrototypeOf(e)===null?`null-proto`:`plain`,keys:Object.keys(e)}:qe,get:(e,t)=>e[t]}),Xe=Object.getOwnPropertyDescriptor(ArrayBuffer.prototype,`byteLength`).get,Ze=typeof SharedArrayBuffer>`u`?void 0:Object.getOwnPropertyDescriptor(SharedArrayBuffer.prototype,`byteLength`).get,Qe=Object.freeze({fromPrimitive:e=>e,fromISOString:e=>new Date(e),fromStringValue:(e,t)=>e===`URL`?new URL(t):e===`URLSearchParams`?new URLSearchParams(t):Temporal[e.slice(9)].from(t),fromArrayBuffer:e=>e,fromRegExpInfo:(e,t)=>new RegExp(e,t),fromViewInfo:(e,t,n,r)=>{try{Xe.call(t)}catch(e){if(!Ze)throw e;Ze.call(t)}let i=globalThis[e];return n===void 0?new i(t):new i(t,n,r)},box:e=>Object(e),createArray:e=>Array(e),createSparseArray:e=>{let t=[];return t[Se]=void 0,delete t[Se],t.length=e,t},createObject:()=>({}),createNullPrototypeObject:()=>Object.create(null),createSet:()=>new Set,createMap:()=>new Map,set:(e,t,n)=>{e[t]=n},addValue:(e,t)=>{e.add(t)},addEntry:(e,t,n)=>{e.set(t,n)}});function $e(e,t,n){return et(JSON.parse(e),t,n)}function et(e,t,n){let r=Ke(Qe,n?.operations);if(typeof e==`number`)return s(e,!0);if(!Array.isArray(e)||e.length===0)throw Error(`Invalid input`);let i=e,a=Array(i.length),o=null;function s(e,n=!1){if(e===-1)return r.fromPrimitive(void 0);if(e===-3)return r.fromPrimitive(NaN);if(e===-4)return r.fromPrimitive(1/0);if(e===-5)return r.fromPrimitive(-1/0);if(e===-6)return r.fromPrimitive(-0);if(n||typeof e!=`number`)throw Error(`Invalid input`);if(e in a)return a[e];if(e>=i.length)throw Error(`Invalid input`);let c=i[e];if(!c||typeof c!=`object`)a[e]=r.fromPrimitive(c);else if(Array.isArray(c)){if(typeof c[0]==`string`){let n=c[0],l=t&&Object.hasOwn(t,n)?t[n]:void 0;if(l){let t=c[1];if(typeof t!=`number`&&(t=i.push(c[1])-1),Object.hasOwn(a,t))return a[e]=l(a[t]);if(o??=new Set,o.has(t))throw Error(`Invalid circular reference`);return o.add(t),a[e]=l(s(t)),o.delete(t),a[e]}switch(n){case`Date`:a[e]=r.fromISOString(c[1]);break;case`Set`:let t=r.createSet();a[e]=t;for(let e=1;e<c.length;e+=1)r.addValue(t,s(c[e]));break;case`Map`:let o=r.createMap();a[e]=o;for(let e=1;e<c.length;e+=2)r.addEntry(o,s(c[e]),s(c[e+1]));break;case`RegExp`:a[e]=r.fromRegExpInfo(c[1],c[2]);break;case`Object`:{let t=c[1];if(typeof i[t]==`object`&&i[t][0]!==`BigInt`)throw Error(`Invalid input`);a[e]=r.box(s(t));break}case`BigInt`:a[e]=r.fromPrimitive(BigInt(c[1]));break;case`null`:let l=r.createNullPrototypeObject();a[e]=l;for(let e=1;e<c.length;e+=2){let t=c[e];if(typeof t!=`string`)throw Error(`Cannot parse an object with a non-string key`);if(t===`__proto__`)throw Error("Cannot parse an object with a `__proto__` property");r.set(l,t,s(c[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(i[c[1]][0]!==`ArrayBuffer`)throw Error(`Invalid data`);let t=s(c[1]);a[e]=r.fromViewInfo(n,t,c[2],c[3]);break}case`ArrayBuffer`:{let t=c[1];if(typeof t!=`string`)throw Error(`Invalid ArrayBuffer encoding`);a[e]=r.fromArrayBuffer(Ge(t));break}case`URL`:case`URLSearchParams`:case`Temporal.Duration`:case`Temporal.Instant`:case`Temporal.PlainDate`:case`Temporal.PlainTime`:case`Temporal.PlainDateTime`:case`Temporal.PlainMonthDay`:case`Temporal.PlainYearMonth`:case`Temporal.ZonedDateTime`:a[e]=r.fromStringValue(n,c[1]);break;default:throw Error(`Unknown type ${n}`)}}else if(c[0]===-7){let t=c[1];if(!Me(t))throw Error(`Invalid input`);let n=r.createSparseArray(t);a[e]=n;for(let e=2;e<c.length;e+=2){let i=c[e];if(!je(i)||i>=t)throw Error(`Invalid input`);r.set(n,i,s(c[e+1]))}}else{let t=r.createArray(c.length);a[e]=t;for(let e=0;e<c.length;e+=1){let n=c[e];n!==-2&&r.set(t,e,s(n))}}}else{let t=r.createObject();a[e]=t;for(let e of Object.keys(c)){if(e===`__proto__`)throw Error("Cannot parse an object with a `__proto__` property");r.set(t,e,s(c[e]))}}return a[e]}return s(0)}function tt(e,t,n){let r=nt(!1,e,t,n);return typeof r==`string`?r:`[${r.join(`,`)}]`}function nt(e,t,n,r){let i=Ke(Ye,r?.operations),a=[],o=new Map,s=[];if(n)for(let e of Object.getOwnPropertyNames(n))s.push({key:e,fn:n[e]});let c=[],l=0;function u(n,r){let d=i.typeOf(n);if(d===`undefined`)return-1;let f;if(d===`number`){if(f=i.toPrimitive(n),Number.isNaN(f))return-3;if(f===1/0)return-4;if(f===-1/0)return-5;if(f===0&&1/f<0)return-6}let p=i.identify(n);if(o.has(p))return o.get(p);r??=l++,o.set(p,r);for(let{key:e,fn:t}of s){let i=t(n);if(i)return a[r]=`["${e}",${u(i)}]`,r}if(d===`function`)throw new D(`Cannot stringify a function`,c,n,t);if(d===`symbol`)throw new D(`Cannot stringify a Symbol primitive`,c,n,t);let m=``;if(d!==`object`)m=rt(d===`number`?f:i.toPrimitive(n));else if(i.isThenable(n)){if(!e)throw new D(`Cannot stringify a Promise or thenable — use stringifyAsync instead`,c,n,t);m=i.toPromise(n).then(e=>{let t=u(e,r);t<0&&(a[r]=t)}),m.catch(()=>{})}else{let e=i.tagOf(n);switch(e){case`Number`:case`String`:case`Boolean`:case`BigInt`:m=`["Object",${u(i.unbox(n))}]`;break;case`Date`:m=`["Date","${i.toISOString(n)}"]`;break;case`URL`:m=`["URL",${O(i.toStringValue(n))}]`;break;case`URLSearchParams`:m=`["URLSearchParams",${O(i.toStringValue(n))}]`;break;case`RegExp`:let{source:r,flags:a}=i.regExpInfo(n);m=a?`["RegExp",${O(r)},"${a}"]`:`["RegExp",${O(r)}]`;break;case`Array`:{let e=!1,t=i.lengthOf(n);m=`[`;for(let r=0;r<t;r+=1)if(r>0&&(m+=`,`),i.hasOwn(n,r))c.push(`[${r}]`),m+=u(i.get(n,r)),c.pop();else if(e)m+=-2;else{let r=i.indicesOf(n),a=r.length,o=String(t).length;if((t-a)*3>4+o+a*(o+1)){m=`[-7,`+t;for(let e=0;e<r.length;e++){let t=r[e];c.push(`[${t}]`),m+=`,`+t+`,`+u(i.get(n,t)),c.pop()}break}e=!0,m+=-2}m+=`]`;break}case`Set`:m=`["Set"`;for(let e of i.valuesOf(n))m+=`,${u(e)}`;m+=`]`;break;case`Map`:m=`["Map"`;for(let[e,t]of i.entriesOf(n)){let n=i.typeOf(e),r=n!==`object`&&n!==`function`&&n!==`symbol`;c.push(`.get(${r?rt(i.toPrimitive(e)):`...`})`),m+=`,${u(e)},${u(t)}`,c.pop()}m+=`]`;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`:{let t=i.viewInfo(n);m=`["`+e+`",`+u(t.buffer),t.byteLength!==t.bufferByteLength&&(m+=`,${t.byteOffset},${t.length}`),m+=`]`;break}case`DataView`:{let t=i.viewInfo(n);m=`["`+e+`",`+u(t.buffer),t.byteLength!==t.bufferByteLength&&(m+=`,${t.byteOffset},${t.byteLength}`),m+=`]`;break}case`ArrayBuffer`:m=`["ArrayBuffer","${We(i.toArrayBuffer(n))}"]`;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`:m=`["${e}",${O(i.toStringValue(n))}]`;break;default:{let e=i.shapeOf(n);if(e.kind===`not-plain`)throw new D(`Cannot stringify arbitrary non-POJOs`,c,n,t);if(e.kind===`symbol-keys`)throw new D(`Cannot stringify POJOs with symbolic keys`,c,n,t);if(e.kind===`null-proto`){m=`["null"`;for(let r of e.keys){if(r===`__proto__`)throw new D(`Cannot stringify objects with __proto__ keys`,c,n,t);c.push(Ae(r)),m+=`,${O(r)},${u(i.get(n,r))}`,c.pop()}m+=`]`}else{m=`{`;let r=!1;for(let a of e.keys){if(a===`__proto__`)throw new D(`Cannot stringify objects with __proto__ keys`,c,n,t);r&&(m+=`,`),r=!0,c.push(Ae(a)),m+=`${O(a)}:${u(i.get(n,a))}`,c.pop()}m+=`}`}}}}return a[r]=m,r}let d=u(t);return d<0?`${d}`:a}function rt(e){let t=typeof e;return t===`string`?O(e):e===void 0?`-1`:e===0&&1/e<0?`-6`:t===`bigint`?`["BigInt","${e}"]`:String(e)}var it=()=>{throw Error(``)},k=()=>{throw Error(``)},at={},ot={};function st(e){let t=Object.entries(e);t.length,at=Object.fromEntries(t.map(([e,t])=>[e,t.encode])),ot=Object.fromEntries(t.map(([e,t])=>[e,t.decode])),it=e=>tt(e,at),k=e=>$e(e,ot)}function ct(e,t){return e.origin===t.origin?e.href.slice(t.origin.length):e.href}var lt=`x-sveltekit-invalidated`,ut=`x-sveltekit-trailing-slash`;function dt(e,t){return e+`/`+t}var ft=window.fetch;window.fetch=(e,t)=>((e instanceof Request?e.method:t?.method||`GET`)!==`GET`&&ht(e),ft(e,t));var A=new Map;function pt(e,t){let n=_t(e,t);if(n){let e=document.querySelector(n);if(e?.textContent){e.remove();let{body:t,...r}=JSON.parse(e.textContent);e.getAttribute(`data-b64`)!==null&&(t=be(t));let i=e.getAttribute(`data-ttl`);return i&&A.set(n,{body:t,init:r,ttl:1e3*Number(i)}),Promise.resolve(new Response(t,r))}}return window.fetch(e,t)}function mt(e,t,n){if(A.size>0){let t=_t(e,n),r=t&&A.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);A.delete(t)}}return window.fetch(t,n)}function ht(e){let t=_t(gt(e));for(let e of A.keys())e.startsWith(t)&&A.delete(e)}function gt(e){return ct(new URL(e instanceof Request?e.url:e,location.href),location)}function _t(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.body;if(e&&typeof e!=`string`&&!ArrayBuffer.isView(e))return null;n+=`[data-hash="${ye(t.headers,e)}"]`}return n}function vt({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}=ae(t),u={id:t,exec:e=>{let t=c.exec(e);if(t)return fe(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 yt(e,t=JSON.parse){try{return t(sessionStorage[e])}catch{}}function bt(e,t,n=JSON.stringify){let r=n(t);try{sessionStorage[e]=r}catch{}}var xt=`sveltekit:snapshot`,St=`sveltekit:navigation-snapshot`,Ct=`sveltekit:history-info`,j=`sveltekit:metadata`,M={tap:1,hover:2,viewport:3,eager:4,false:-1},wt=location.origin;function Tt(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 Et(){return{x:pageXOffset,y:pageYOffset}}function Dt(e,t){return e.getAttribute(`data-sveltekit-${t}`)}var Ot={...M,"":M.hover};function kt(e){let t=e.assignedSlot??e.parentNode;return t?.nodeType===11&&(t=t.host),t}function At(e,t){for(;e&&e!==t;){if((e instanceof HTMLAnchorElement||e instanceof SVGAElement)&&e.hasAttribute(`href`))return e;e=kt(e)}}function jt(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||Mt(r,t,n)||(e.getAttribute(`rel`)||``).split(/\s+/).includes(`external`),o=r?.origin===wt&&e.hasAttribute(`download`);return{url:r,external:a,target:i,download:o}}function N(e){let t=null,n=null,r=null,i=null,a=null,o=e;for(;o&&o!==document.documentElement;)t===null&&(t=Dt(o,`preload-code`)),n===null&&(n=Dt(o,`preload-data`)),r===null&&(r=Dt(o,`reload`)),i===null&&(i=Dt(o,`replacestate`)),a===null&&(a=Dt(o,`reset`)),o=kt(o);function s(e){switch(e){case``:case`true`:return!0;case`false`:return!1;default:return}}return{preload_code:Ot[t??`false`],preload_data:Ot[n??`false`],reload:s(r),replace_state:s(i),reset:s(a)??!0}}function Mt(e,t,n){return e.origin!==wt||!e.pathname.startsWith(t)?!0:n?e.pathname!==location.pathname:!1}function Nt(e,t){let n=t?e.hash.split(`#`,3)[2]??``:e.hash.slice(1);return n?document.getElementById(decodeURIComponent(n)):null}function Pt(e){}function Ft(e){let t=document.activeElement;e&&(t instanceof HTMLElement||t instanceof SVGElement)&&t!==document.body&&t.blur()}function It(e){let t=e.getAttribute(`tabindex`);e.setAttribute(`tabindex`,`-1`),e.focus({preventScroll:!0,focusVisible:!1}),t===null?e.removeAttribute(`tabindex`):e.setAttribute(`tabindex`,t)}function Lt(e){let t=window.parent===window||document.hasFocus(),n=document.querySelector(`[autofocus]`);if(n)t&&n.focus();else{t&&It(Nt(e,!1)??document.body);let n=getSelection();if(n&&n.type!==`None`){let e=[];for(let t=0;t<n.rangeCount;t+=1)e.push(n.getRangeAt(t));setTimeout(()=>{if(n.rangeCount===e.length){for(let t=0;t<n.rangeCount;t+=1){let r=e[t],i=n.getRangeAt(t);if(r.commonAncestorContainer!==i.commonAncestorContainer||r.startContainer!==i.startContainer||r.endContainer!==i.endContainer||r.startOffset!==i.startOffset||r.endOffset!==i.endOffset)return}n.removeAllRanges()}})}}}var Rt=!0;function zt(e,t,n){if(t&&Rt){if(n)scrollTo(n.x,n.y);else{let t=Nt(e,!1);t?t.scrollIntoView():scrollTo(0,0)}}Rt=!0}function Bt(e){throw Error(`https://svelte.dev/e/kit/navigation_external_url`)}function Vt(e){throw Error(`https://svelte.dev/e/kit/navigation_route_missing`)}function Ht(e){throw Error(`https://svelte.dev/e/kit/redirect_loop`)}function Ut(e){throw Error(`https://svelte.dev/e/kit/reserved_query_parameter`)}var P=yt(`sveltekit:navigation-snapshot`)??{},Wt=new Set;function Gt(){return new Set(Wt)}function Kt(e){Wt.size===0?delete P[e]:P[e]=Object.fromEntries(Array.from(Wt,({id:e,capture:t})=>[e,it(t())]))}function qt(e,t){let n=P[e];for(let e of Wt)n&&Object.hasOwn(n,e.id)?e.restore(k(n[e.id])):t?.has(e)&&e.reset?.()}function Jt(e){delete P[e]}function Yt(e){Kt(e),bt(St,P)}var Xt=new Set([`load`,`prerender`,`csr`,`ssr`,`trailingSlash`,`config`]);[...Xt],[...new Set([...Xt])];function F(){}var Zt=`/__data.json`,Qt=`.html__data.json`;function $t(e){return e.endsWith(`.html`)?e.replace(/\.html$/,Qt):e.replace(/\/$/,``)+Zt}async function*en(e,t,n){let r=!1,i=[],a=``,o=new TextDecoder(void 0,n),s=t.length-1;for(;!r;){let n=await e.read();r=n.done;let c=a;n.value&&(c+=o.decode(n.value,{stream:!0})),r&&(c+=o.decode());let l=0,u=c.indexOf(t);for(;u!==-1;)i.length>0?(i.push(c.slice(l,u)),yield i.join(``),i=[]):yield c.slice(l,u),l=u+t.length,u=c.indexOf(t,l);let d=Math.max(l,c.length-s);d>l&&i.push(c.slice(l,d)),a=c.slice(d)}(i.length>0||a)&&(yield i.join(``)+a)}async function*tn(e){for await(let t of en(e,`
|
|
3
|
+
`,{fatal:!0})){let e=t.trim();e&&(yield JSON.parse(e))}}var nn=p(`<div id="svelte-announcer" aria-live="assertive" aria-atomic="true" style="position: absolute; left: 0; top: 0; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; width: 1px; height: 1px"><!></div>`),rn=p(`<!> <!>`,1);function an(e,n){t(n,!0);let r=(e,t=d,i=d)=>{let a=(e,t=d)=>{var n=ne(),r=s(n);b(r,()=>u(c),(e,n)=>{n(e,{get error(){return t()}})}),C(e,n)},o=l(()=>t().component),c=l(()=>t().error),h=l(()=>t().data);var g=ne(),_=s(g);f(_,{get failed(){return u(c)?a:void 0},get onerror(){return u(c)?n.onerror:void 0}},e=>{var a=ne(),c=s(a),l=e=>{var a=ne(),c=s(a);b(c,()=>u(o),(e,a)=>{S(a(e,{get data(){return u(h)},get form(){return n.form},get params(){return n.page.params},children:(e,n)=>{r(e,()=>t().child,()=>i()+1)},$$slots:{default:!0}}),e=>p()[i()]=e,()=>p()?.[i()])}),C(e,a)},d=e=>{var t=ne(),r=s(t);b(r,()=>u(o),(e,t)=>{S(t(e,{get data(){return u(h)},get form(){return n.form},get params(){return n.page.params},get error(){return n.error}}),e=>p()[i()]=e,()=>p()?.[i()])}),C(e,t)};m(c,e=>{t().child?e(l):e(d,-1)}),C(e,a)}),C(e,g)},p=ee(n,`components`,7),h=o(!1),_=o(!1),x=o(``);mr(()=>{u(h)?(a(_,!0),a(x,document.title||`untitled page`,!0)):a(h,!0)});var w=rn(),ie=s(w);r(ie,()=>n.tree,()=>0);var ae=c(ie,2),T=e=>{var t=nn(),n=v(t),r=e=>{var t=te();y(()=>g(t,u(x))),C(e,t)};m(n,e=>{u(_)&&e(r)}),i(t),C(e,t)};m(ae,e=>{u(h)&&e(T)}),C(e,w),re()}var on=class{#e;get form(){return u(this.#e)}set form(e){a(this.#e,e)}#t;get error(){return u(this.#t)}set error(e){a(this.#t,e)}page;components=[];tree;onerror;constructor({page:e,tree:t,form:n,error:r,onerror:i=F}){this.page=e,this.tree=t,this.onerror=i,this.#e=o(n),this.#t=o(r)}},sn=class{component;error;#e=o({});get data(){return u(this.#e)}set data(e){a(this.#e,e)}#t=o();get child(){return u(this.#t)}set child(e){a(this.#t,e)}constructor(e,t){this.component=e,this.error=t}};function cn(e,t,n){let r=[void 0],i=-1;for(let a=1;a<e.length;a+=1){if(!e[a])continue;let o=a-1;for(;o>i+1&&t[o]==null;)--o;i=o;let s=t[o];r.push(s==null?void 0:n(s)?.catch(()=>void 0))}return Promise.all(r)}function*ln(e,t,n){for(;e--;){let r=n[e];if(r!=null){let n=e;for(;!t[n];)--n;yield{error:r,idx:n+1}}}}var un=new Set([`icon`,`shortcut icon`,`apple-touch-icon`]),dn=new Set,I=yt(`sveltekit:history-info`)??{},fn=yt(`sveltekit:snapshot`)??{},L;function pn(e){I[e].scroll=Et()}function mn(e,t){I[e]={...I[e],resetIndex:t.resetIndex}}function hn(e,t){Jt(e);let n=e+1;for(;I[n];)delete I[n],Jt(n),n+=1;for(n=t+1;fn[n];)delete fn[n],n+=1}function R(e,t=!1){return t?location.replace(e.href):location.href=e.href,new Promise(F)}async function gn(){try{if(`serviceWorker`in navigator){let e=await navigator.serviceWorker.getRegistration(T||`/`);e&&await e.update()}}catch{}}var _n,vn,yn,z,bn,B,xn={},Sn={},Cn=[],V=null;function wn(){V?.fork?.then(e=>e?.discard()),V=null,Q={element:void 0,href:void 0}}var Tn=new Map,En=new Set,Dn=new Set,H=new Set,U={branch:[],error:null,url:null,nav:null},On=!1,kn=!1,W=!1,G=null,An=!1,jn=!1,K,q,J;function Mn(e=history.state){return e?.[j]}var Y,X,Nn=new Set,Pn=new Map,Fn=new Map;le(async e=>{typeof e==`string`&&(e=new URL(e,location.href));let t=await Z(e,!1);return t?{id:t.route.id,params:t.params}:null}),Promise.resolve();function In(e,t,n){return Rn(e,t,n)}function*Ln(e){for(let[t,n]of e)for(let[e,r]of n)yield[dt(t,e),r]}async function Rn(t,n,r){if(e.data){let{q:t={},p:n={},l:r={},f:i={}}=e.data;for(let e in t)xn[e]=t[e];for(let e in r)xn[e]=r[e];for(let e in i)xn[e]=i[e];for(let e in n)Sn[e]=n[e]}document.URL!==location.href&&(location.href=location.href),B=t,st(B.hooks.transport??{}),await t.hooks.init?.(),_n=vt(t),z=document.documentElement,bn=n,vn=t.nodes[0],yn=t.nodes[1];let[i]=await Promise.all([vn(),yn()]),a=new sn(i.component,void 0);L=new on({page:ce,tree:a,form:void 0,error:void 0,onerror:(e,t)=>dn.add(t)});let o=Mn();K=o?.historyIndex??0,q=o?.navigationIndex??0,J=o?.resetIndex??0,K||(K=q=J=Date.now(),history.replaceState({...history.state,[j]:{historyIndex:K,navigationIndex:q,state:it({}),persistState:!1,resetIndex:K}},``)),mn(K,Mn());let s=I[K]?.scroll;function c(){s&&(history.scrollRestoration=`manual`,scrollTo(s.x,s.y))}r?(c(),await br(bn,r)):(await cr({type:`enter`,url:Tt(B.hash?Tr(new URL(location.href)):location.href),replace_state:!0,state:o?.persistState?k(o.state):{},persist_state:o?.persistState??!1}),c()),yr()}function zn(){Cn.length=0,jn=!1}function Bn(e){L.components.some(e=>e?.snapshot)&&(fn[e]=L.components.map(e=>e?.snapshot?.capture()))}function Vn(e){fn[e]?.forEach((e,t)=>{L.components[t]?.snapshot?.restore(e)})}function Hn(){pn(K),bt(Ct,I),Bn(q),bt(xt,fn),Yt(K)}async function Un(e,t={},r=0,i={},a){let o,s;t.refreshAll&&wn(),await cr({type:t.type??`goto`,url:Tt(e),reset:t.reset,replace_state:t.replace,state:t.state,persist_state:t.persistState,event:t.event,action_result:t.action_result,redirect_count:r,nav_token:i,intent:a,accept:()=>{if(t.refreshAll){jn=!0,o=new Set;for(let[e,t]of Ln(Pn))t.resource?.reset(),o.add(e);s=new Set;for(let[e]of Ln(Fn))s.add(e)}t.invalidate&&t.invalidate.forEach(_r)}}),t.refreshAll&&n().then(n).then(()=>{for(let[e,{resource:t}]of Ln(Pn))o?.has(e)&&t.start();for(let[e,{resource:t}]of Ln(Fn))s?.has(e)&&t.reconnect()})}async function Wn(e){if(e.id!==V?.id){wn();let t={};Nn.add(t),V={id:e.id,token:t,promise:er({...e,preload:t}).finally(()=>{Nn.delete(t)}),fork:null},V.promise.catch(wn)}return V.promise}async function Gn(e){await Promise.all([...e.layouts,e.leaf].filter(Boolean).map(([,e])=>e()))}async function Kn(e){let t=(await Z(e,!1))?.route;t&&await Gn(t)}async function qn(e,t,n){let r={params:e.state.params,route:{id:e.state.route?.id??null},url:new URL(location.href)};if(U={...e.state,nav:r},Er(e),(n?x:_)(an,{target:t,props:L,transformError:async e=>{let t=await $(e,U.nav);return oe({error:t,status:t.status}),t}}),await Promise.resolve(),n){let e={from:null,to:{...r,scroll:I[K]?.scroll??Et()},willUnload:!1,type:`enter`,shallow:!1,complete:Promise.resolve()};H.forEach(t=>t(e))}Vn(q),On&&qt(K),kn=!0}async function Jn({url:e,params:t,branch:n,errors:r,status:i,error:a,route:o,form:s}){let c=`never`;if(T&&(e.pathname===T||e.pathname===T+`/`))c=`always`;else for(let e of n)e?.slash!==void 0&&(c=e.slash);e.pathname=ie(e.pathname,c),e.search=e.search;let l={type:`loaded`,state:{url:e,params:t,branch:n,error:a,route:o},props:{page:{...ce},tree:{}}};a&&(l.props.error=a),s!==void 0&&(l.props.form=s);let u={},d=!ce,f=r&&await cn(n,r,e=>e().then(e=>e.component)),p=l.props.tree,m=1,h=L.tree;for(let e=0;e<n.length;e+=1){let t=n[e],r=U.branch[e];if(t&&(d||!h||t?.data!==r?.data?(p.data={...u,...t.data},d=!0):p.data=h.data,u=p.data,e<n.length-1)){let t=e+1;for(;t<n.length&&!n[t];)t+=1;let r=n[t];r&&(p=p.child=new sn(r.node.component,f?.[m++]),h=h?.child)}}return(!U.url||e.href!==U.url.href||U.error!==a||s!==void 0&&s!==ce.form||d)&&(l.props.page={error:a,params:t,route:{id:o?.id??null},state:{},shallow:null,status:i??a?.status??200,url:new URL(e),form:s??null,data:u}),l}async function Yn({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 Xn(e,t,n){let r=new URL(e instanceof Request?e.url:e,n),i=ct(r,n);return{resolved:r,promise:kn?mt(i,r.href,t):pt(i,t)}}function Zn(e,t,n,r,i,a){if(jn)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]!==U.params[e])return!0;for(let e of i.dependencies)if(Cn.some(t=>t(new URL(e))))return!0;return!1}function Qn(e,t){return e?.type===`data`?e:e?.type===`skip`?t??null:null}function $n(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).sort(),a=t.searchParams.getAll(r).sort();i.length===a.length&&i.every((e,t)=>e===a[t])&&n.delete(r)}return n}async function er({id:e,invalidating:t,url:n,params:r,route:i,preload:a,action_result:o}){if(!o&&V?.id===e)return Nn.delete(V.token),V.promise;let{errors:s,layouts:c,leaf:l}=i,u=[...c,l],d=u.length-1,f=o?.type===`error`;s.forEach(e=>e?.().catch(F)),u.forEach(e=>e?.[1]().catch(F));let p=null,m=U.url?e!==or(U.url):!1,h=!U.route||i.id!==U.route.id,g=$n(U.url,n),_=!1;{let t=u.map((e,t)=>{if(f&&t===d)return!1;let n=U.branch[t],i=!!e?.[0]&&(n?.loader!==e[1]||Zn(_,h,m,g,n.server?.uses,r));return i&&(_=!0),i});if(t.some(Boolean)){try{p=await xr(n,t)}catch(t){let o=await $(t,{url:n,params:r,route:{id:e}});if(a&&Nn.has(a))throw o;return rr({error:o,url:n,route:i})}if(p.type===`redirect`)return p}}let v=p?.nodes,y=!1,b=u.map(async(e,t)=>{if(!e||f&&t===d)return;let a=U.branch[t],o=v?.[t];if((!o||o.type===`skip`)&&e[1]===a?.loader&&!Zn(y,h,m,g,a.universal?.uses,r))return a;if(y=!0,o?.type===`error`)throw new he(o.error);return Yn({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 b[n])?.data);return e},server_data_node:Qn(o===void 0&&e[0]?{type:`skip`}:o??null,e[0]?a?.server:void 0)})});for(let e of b)e.catch(F);let x=[];for(let e=0;e<u.length;e+=1)if(u[e])try{x.push(await b[e])}catch(t){if(t instanceof ge)return{type:`redirect`,status:t.status,location:t.location};if(a&&Nn.has(a))throw await $(t,{params:r,url:n,route:{id:i.id}});let o;if(v?.includes(t))o=t.error;else if(t instanceof me)o=await $(t,{params:r,url:n,route:{id:i.id}});else{if(await w.check())return await gn(),await R(n);o=await $(t,{params:r,url:n,route:{id:i.id}})}return nr({i:e,branch:x,errors:s,error:o,url:n,params:r,route:i})}else x.push(void 0);return o?.type===`error`?nr({i:u.length,branch:x,errors:s,error:o.error,status:o.status,url:n,params:r,route:i}):Jn({url:n,params:r,branch:x,errors:s,error:null,route:i,status:o?.status,form:o?.type===`success`||o?.type===`failure`?o.data??null:t?void 0:null})}async function tr(e,t,n){for(let{error:r,idx:i}of ln(e,t,n))try{return t.slice(0,i).concat({node:await r(),loader:r,data:{},server:null,universal:null})}catch{continue}}async function nr({i:e,branch:t,errors:n,error:r,status:i,url:a,params:o,route:s}){let c=await tr(e,t,n);return c?Jn({url:a,params:o,branch:c,errors:n,error:r,status:i,route:s}):dr(a,{id:s.id},r)}async function rr({error:e,url:t,route:n}){let r={},i=null;if(B.server_loads[0]===0)try{let e=await xr(t,[!0]);if(e.type!==`data`||e.nodes[0]&&e.nodes[0].type!==`data`)throw 0;i=e.nodes[0]??null}catch(e){if(!(e instanceof me&&e.status===404)&&(t.origin!==wt||t.pathname!==location.pathname||On))return await R(t)}try{return Jn({url:t,params:r,branch:[await Yn({loader:vn,url:t,params:r,route:n,parent:()=>Promise.resolve({}),server_data_node:Qn(i)}),{node:await yn(),loader:yn,universal:null,server:null,data:null}],error:e,errors:[],route:null})}catch(e){if(e instanceof ge){await Un(new URL(e.location,location.href));return}let i=await B.get_error_template(),a=await $(e,{url:t,params:r,route:n}),o=String(a?.message??``).replace(/&/g,`&`).replace(/</g,`<`).replace(/>/g,`>`),s=i({status:a.status,message:o}),c=new DOMParser().parseFromString(s,`text/html`);throw document.documentElement.replaceChild(document.adoptNode(c.head),document.head),document.documentElement.replaceChild(document.adoptNode(c.body),document.body),e}}async function ir(e){let t=e.href;if(Tn.has(t))return Tn.get(t);let n;try{let r=(async()=>{let t=await B.hooks.reroute({url:new URL(e),fetch:async(t,n)=>Xn(t,n,e).promise})??e;if(typeof t==`string`){let n=new URL(e);B.hash?n.hash=t:n.pathname=t,t=n}return t})();Tn.set(t,r),n=await r}catch{Tn.delete(t);return}return n}async function Z(e,t){if(e&&!Mt(e,T,B.hash)){let n=await ir(e);if(!n)return;let r=ar(n);for(let n of _n){let i=n.exec(r);if(i)return{id:or(e),invalidating:t,route:n,params:i,url:e}}}}function ar(e){return ue(B.hash?e.hash.replace(/^#/,``).replace(/[?#].+/,``):e.pathname.slice(T.length))||`/`}function or(e){return(B.hash?e.hash.replace(/^#/,``):e.pathname)+e.search}function sr({url:e,type:t,intent:n,delta:r,event:i,scroll:a,shallow:o=!1,target:s}){let c=!1,l=wr(U,n,e,t,a??null,o,s);l.navigation.type===`popstate`&&r!==void 0&&(l.navigation.delta=r),i!==void 0&&(l.navigation.event=i);let u={...l.navigation,cancel:()=>{c=!0,l.reject(Error(`navigation cancelled`))}};return W||En.forEach(e=>e(u)),c?null:l}async function cr({type:e,url:t,popped:n,reset:i=!0,replace_state:a,state:o={},persist_state:s=!1,redirect_count:c=0,nav_token:l={},accept:u=F,block:d=F,event:f,intent:p,action_result:m}){let h=Y,g=X;Y=X=l,p??=await Z(t,!1);let _=e===`enter`?wr(U,p,t,e):sr({url:t,type:e,delta:n?.delta,intent:p,scroll:n?.scroll,shallow:!!n?.shallow,target:n?.shallow??void 0,event:f});if(!_){d(),Y===l&&(Y=h),X===l&&(X=g);return}let v=K,y=q,b=Gt();u(),W=!0,kn&&_.navigation.type!==`enter`&&E(_.navigation);let x=p&&await er({...p,action_result:m});if(!x){let e=Mt(t,T,B.hash),n=e&&!1;if(e&&!n)return await R(t,a);x=await dr(t,{id:null},await $(new _e(404,`Not Found`,`Not found: ${t.pathname}${n?` (did you forget the hash?)`:``}`),{url:t,params:{},route:{id:null}}),a)}if(t=p?.url||t,Y!==l){_.reject(Error(`navigation aborted`));return}if(!x)return;if(x.type===`redirect`){if(c<20){V?.id===p?.id&&wn(),await cr({type:e,url:new URL(x.location,t),popped:n,reset:i,replace_state:a,state:o,persist_state:s,redirect_count:c+1,nav_token:l}),_.fulfil(void 0);return}if(x=await rr({error:await $(pe(()=>Ht({url:t.href})),{url:t,params:{},route:{id:null}}),url:t,route:{id:null}}),!x)return}else if(x.props.page.status>=400&&await w.check())return await gn(),await R(t,a);if(zn(),kn&&!n&&(pn(v),Bn(y),a?Jt(v):Kt(v)),x.props.page.url.pathname!==t.pathname&&(t.pathname=x.props.page.url.pathname),n)o=n.state;else{let n=it(o);o=k(n);let r=+!a;e!==`enter`&&i&&(J+=1);let c={[j]:{historyIndex:K+=r,navigationIndex:q+=r,state:n,persistState:s,resetIndex:J}};(a?history.replaceState:history.pushState).call(history,c,``,t),mn(K,c[j]),a||hn(K,q)}let S=p&&V?.id===p.id?V.fork:null;V?.fork&&!S?wn():(V=null,Q={element:void 0,href:void 0}),x.props.page.state=o,x.props.page.shallow=n?.shallow??null;let ee;if(kn){await lr(_.navigation);let e=n?.shallow?{params:x.state.params,route:{id:x.state.route?.id??null},url:x.state.url}:_.navigation.to;U={...x.state,nav:{params:e.params,route:e.route,url:e.url}},x.props.page&&(x.props.page.url=t),Ft(i);let a=S&&await S;if(a){ee=a.commit();for(let e of dn)e();dn.clear()}else Er(x),ee=r().then(()=>{for(let e of dn)e();dn.clear()});An=!0}else await qn(x,bn,!1);await ur(_,l,t,n?.scroll,i,ee)&&(e===`popstate`&&Vn(q),qt(K,b),E(null))}async function lr(e){let t=(await Promise.all(Array.from(Dn,t=>t(e)))).filter(e=>typeof e==`function`);if(t.length>0){function e(){t.forEach(e=>H.delete(e))}t.push(e),t.forEach(e=>H.add(e))}}async function ur(e,t,n,r,i,a){return await a,Y===t?(zt(n,i,r),i&&document.activeElement===document.body&&Lt(n),W=!1,e.fulfil(void 0),e.navigation.to&&(e.navigation.to.scroll=Et()),H.forEach(t=>t(e.navigation)),!0):(e.reject(Error(`navigation aborted`)),!1)}async function dr(e,t,n,r){return e.origin===wt&&e.pathname===location.pathname&&!On?await rr({error:n,url:e,route:t}):await R(e,r)}var Q={element:void 0,href:void 0};function fr(){let e,t,n;function r(){clearTimeout(e),t?.removeEventListener(`mousemove`,i),t?.removeEventListener(`mouseleave`,r),t=void 0}function i(){clearTimeout(e),e=setTimeout(()=>{t&&s(t,M.hover)},20)}z.addEventListener(`mouseover`,e=>{if(!(e.target instanceof Element))return;let n=At(e.target,z);if(!n||n===t)return;r(),t=n;let a=N(n);a.preload_code<M.hover&&a.preload_data<M.hover||(n.addEventListener(`mousemove`,i),n.addEventListener(`mouseleave`,r,{once:!0}),i())});function a(e){if(e.defaultPrevented)return;let t=At(e.composedPath()[0],z);t&&s(t,M.tap)}z.addEventListener(`mousedown`,a),z.addEventListener(`touchstart`,a,{passive:!0});let o=new IntersectionObserver(e=>{for(let t of e)t.isIntersecting&&(Kn(new URL(t.target.href)),o.unobserve(t.target))},{threshold:0});async function s(e,t){let r=e===Q.element&&e?.href===Q.href&&t>=n;if(!e||r)return;let{url:i,external:a,download:o}=jt(e,T,B.hash);if(a||o)return;let s=N(e),c=i&&or(U.url)===or(i);if(!(s.reload||c)){if(t<=s.preload_data){Q={element:e,href:e.href},n=M.tap;let t=await Z(i,!1);if(!t)return;Wn(t).catch(F)}else t<=s.preload_code&&(Q={element:e,href:e.href},n=t,Kn(i))}}function c(){o.disconnect();for(let e of z.querySelectorAll(`a`)){let{url:t,external:n,download:r}=jt(e,T,B.hash);if(n||r)continue;let i=N(e);i.reload||(i.preload_code===M.viewport&&o.observe(e),i.preload_code===M.eager&&Kn(t))}}H.add(c),c()}async function $(e,t){if(e instanceof he)return e.body;let n;n=e instanceof me?{kind:`app`,error:e.body}:e instanceof _e?{kind:`framework`,error:{status:e.status,message:e.text}}:{kind:`unknown`,error:e};let r=n.kind===`unknown`?{status:500,message:`Internal Error`}:n.error,i={...n,event:t},a=await B.hooks.handleError(i);return{...r,...a}}function pr(e,t){h(()=>(e.add(t),()=>{e.delete(t)}))}function mr(e){pr(H,e)}async function hr(e,t){let n=new URL(Tt(e));n.origin!==wt&&Bt({caller:t,url:String(e)});let r=await Z(n,!1);return r||Vt({caller:t,url:String(e)}),r}async function gr(e,t={}){let n=t.replace??t.replaceState??!1,r=await hr(e,`goto`);return t.shallow?vr(r,t.state??{},{replace:n,persist_state:t.persistState??!1,reset:t.reset??!1},`goto`):Un(r.url,{...t,replace:n,refreshAll:t.refreshAll??t.invalidateAll},0,{},r)}function _r(e){if(typeof e==`function`)Cn.push(e);else{let{href:t}=new URL(e,location.href);Cn.push(e=>e.href===t)}}async function vr(e,t,{replace:n,persist_state:i,reset:a},o){let s=e.url,c=Gt(),l=o===`goto`?sr({url:s,type:`goto`,intent:e,shallow:!0}):void 0;if(!l&&o===`goto`)return;let u={};l&&(Y=X=u,W=!0,E(l.navigation)),n?Jt(K):(pn(K),Kt(K)),a&&(J+=1);let d=it(t);t=k(d);let f={[j]:{historyIndex:K+=+!n,navigationIndex:q,pageUrl:ce.url.href,state:d,persistState:i,resetIndex:J}};(n?history.replaceState:history.pushState).call(history,f,``,s),mn(K,f[j]),n||(An=!0,hn(K,q)),l&&await lr(l.navigation),Ft(a),oe({state:t,shallow:{params:e?.params??null,route:e?{id:e.route.id}:null,url:s}}),(!l||await ur(l,u,s,null,a,r()))&&(qt(K,c),l&&E(null))}function yr(){history.scrollRestoration=`manual`,addEventListener(`beforeunload`,e=>{let t=!1;if(Hn(),!W){let e=wr(U,void 0,null,`leave`),n={...e.navigation,cancel:()=>{t=!0,e.reject(Error(`navigation cancelled`))}};En.forEach(e=>e(n))}t&&(e.preventDefault(),e.returnValue=``)}),addEventListener(`visibilitychange`,()=>{document.visibilityState===`hidden`?Hn():w.check()}),addEventListener(`focus`,()=>{w.check()}),navigator.connection?.saveData||fr(),z.addEventListener(`click`,async t=>{if(t.button||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.defaultPrevented)return;let n=At(t.composedPath()[0],z);if(!n)return;let{url:r,external:i,target:a,download:o}=jt(n,T,B.hash);if(!r)return;if(a===`_parent`||a===`_top`){if(window.parent!==window)return}else if(a&&a!==`_self`)return;let s=N(n);if(!(n instanceof SVGAElement)&&r.protocol!==location.protocol&&r.protocol!==`https:`&&r.protocol!==`http:`||o)return;let[c,l]=(B.hash?r.hash.replace(/^#/,``):r.href).split(`#`),u=c===se(location);if(i||s.reload&&(!u||!l)){sr({url:r,type:`link`,event:t})?W=!0:t.preventDefault();return}if(l!==void 0&&u){let[,i]=U.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(G={...Mn(),resetIndex:J+ +!!s.reset},pn(K),e(r),!s.replace_state)return;G=null}t.preventDefault(),await new Promise(e=>{requestAnimationFrame(()=>{setTimeout(e,0)}),setTimeout(e,100)});let d=r.href!==location.href;await Un(r,{type:`link`,reset:s.reset,replace:s.replace_state??!d,refreshAll:!d,event:t})}),z.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(Mt(r,T,!1))return;let i=e.target,a=N(i);if(a.reload)return;e.preventDefault(),e.stopPropagation();let o=new FormData(i,n);r.search=new URLSearchParams(o).toString(),cr({type:`form`,url:r,reset:a.reset,replace_state:a.replace_state??r.href===location.href,event:e})}),addEventListener(`popstate`,async t=>{let n=Mn(t.state);if(n?.historyIndex){let r=n.historyIndex,i=I[K];if(r===K)return;Y=X={};let a=r-K,o=n.resetIndex,s=o!==(i?.resetIndex??J),c=I[r]?.scroll,l=k(n.state),u=new URL(n.pageUrl??location.href),d=n.navigationIndex,f=U.url&&(location.href+U.url.href).includes(`#`)?se(location)===se(U.url):!1,p=d===q&&(An&&(n.pageUrl===void 0||n.pageUrl===location.href)||f),m=n.pageUrl?new URL(location.href):null,h=K,g=q,_=J;pn(h),p||Bn(g),Kt(h),K=r,q=d,J=o;let v=Y,y=m?await Z(m,!1):void 0;if(Y!==v)return;let b=m?{params:y?.params??null,route:y?{id:y.route.id}:null,url:m}:null;if(p){Ft(s),oe({state:l,shallow:b}),e(u),s&&c&&scrollTo(c.x,c.y),qt(K,Gt()),W=!1,E(null);return}await cr({type:`popstate`,url:u,reset:s,popped:{state:l,scroll:c,delta:a,shallow:b},block:()=>{K=h,q=g,J=_,history.go(-a)},nav_token:v,event:t})}else G||(e(new URL(location.href)),B.hash&&location.reload())}),addEventListener(`hashchange`,()=>{if(G){let e=G;G=null,J=e.resetIndex,history.replaceState({...history.state,[j]:{...e,historyIndex:++K,navigationIndex:q}},``,location.href),mn(K,e)}});for(let e of document.querySelectorAll(`link`))un.has(e.rel)&&(e.href=e.href);addEventListener(`pageshow`,e=>{if(e.persisted){E(null);let e=I[K]?.scroll;e&&scrollTo(e.x,e.y)}});function e(e){U.url=e,oe({url:e})}}async function br(e,{status:t,error:n,node_ids:r,params:i,route:a,server_route:o,data:s,form:c}){On=!0;let l=new URL(location.href),u;({params:i={},route:a={id:null}}=await Z(l,!1)||{}),u=_n.find(({id:e})=>e===a.id);let d,f=!0;try{let e=r.map(async(t,n)=>{let r=s[n];return r?.uses&&(r.uses=Cr(r.uses)),Yn({loader:B.nodes[t],url:l,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:Qn(r)})}),o=await Promise.all(e);if(u){let e=u.layouts;for(let t=0;t<e.length;t++)e[t]||o.splice(t,0,void 0)}d=await Jn({url:l,params:i,branch:o,status:t,error:n,errors:u?.errors,form:c,route:u??null})}catch(t){if(t instanceof ge)return await R(new URL(t.location,location.href));d=await rr({error:await $(t,{url:l,params:i,route:a}),url:l,route:a}),e.textContent=``,f=!1}if(d){if(d.props.page){let e=Mn();d.props.page.state=e?.persistState?k(e.state):{}}await qn(d,e,f)}}async function xr(e,t){for(let t of e.searchParams.keys())t.startsWith(`x-sveltekit-`)&&Ut({key:t});let n=new URL(e);n.pathname=$t(e.pathname),e.pathname.endsWith(`/`)&&n.searchParams.append(ut,`1`),n.searchParams.append(lt,t.map(e=>e?`1`:`0`).join(``));let r=await(0,window.fetch)(n.href,{});if(de(r.headers.get(`x-sveltekit-version`)),!r.ok){let e={status:r.status,message:`Internal Error`};throw r.headers.get(`content-type`)?.includes(`application/json`)?e={status:r.status,...await r.json()}:r.status===404&&(e.message=`Not Found`),new he(e)}return new Promise((e,t)=>{Sr(e,r).catch(t)})}async function Sr(e,t){let n=t.body.getReader(),r=new Map;function i(e){return et(e,{...B.decoders,Promise:e=>new Promise((t,n)=>{r.set(e,{fulfil:t,reject:n})})})}for await(let t of tn(n)){if(t.type===`redirect`)return e(t);if(t.type===`data`)t.nodes?.forEach(e=>{e?.type===`data`&&(e.uses=Cr(e.uses),e.data=i(e.data))}),e(t);else if(t.type===`chunk`){let{id:e,data:n,error:a}=t,o=r.get(e);r.delete(e),a?o.reject(i(a)):o.fulfil(i(n))}}}function Cr(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??[])}}function wr(e,t,n,r,i=null,a=!1,o){let s,c,l=new Promise((e,t)=>{s=e,c=t});return l.catch(F),{navigation:{from:r===`enter`?null:{params:e.params,route:{id:e.route?.id??null},url:e.url,scroll:Et()},to:n&&{params:o?o.params:t?.params??null,route:{id:o?o.route?.id??null:t?.route?.id??null},url:o?.url??n,scroll:i},willUnload:!a&&!t,type:r,shallow:a,complete:l},fulfil:s,reject:c}}function Tr(e){let t=new URL(e);return t.hash=decodeURIComponent(e.hash),t}function Er(e){oe(e.props.page),L.tree.data=e.props.tree.data,L.tree.child=e.props.tree.child,`form`in e.props&&(L.form=e.props.form),`error`in e.props&&(L.error=e.props.error)}export{In as n,Pt as r,gr as t};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.CQ_XophD.js","../chunks/CcBdu3S8.js","../chunks/Dg9MaatX.js","./payload.DSmR2FwN.js","../chunks/DSHrAZZ8.js","../chunks/DbiAGPgw.js","../assets/0.CeDGT9MW.css","../nodes/1.Bd-KoKuj.js","../nodes/2.BTJ1n3E7.js","../chunks/DvmLiMpQ.js","../assets/2.DJfIfRJB.css","../nodes/3.CsdEJLWJ.js","../nodes/4.CXVi2Rvi.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{t as e}from"../chunks/DclECHGd.js";var t={},n=[()=>e(()=>import(`../nodes/0.CQ_XophD.js`),__vite__mapDeps([0,1,2,3,4,5,6]),import.meta.url),()=>e(()=>import(`../nodes/1.Bd-KoKuj.js`),__vite__mapDeps([7,1,2,3,5]),import.meta.url),()=>e(()=>import(`../nodes/2.BTJ1n3E7.js`),__vite__mapDeps([8,1,2,3,9,4,5,10]),import.meta.url),()=>e(()=>import(`../nodes/3.CsdEJLWJ.js`),__vite__mapDeps([11,1]),import.meta.url),()=>e(()=>import(`../nodes/4.CXVi2Rvi.js`),__vite__mapDeps([12,1]),import.meta.url)],r=[0],i={"/":[-3],"/settings":[3],"/setup":[4]},a={handleError:(({kind:e,error:t})=>{e===`unknown`&&console.error(t)}),reroute:(()=>{}),transport:{}},o=Object.fromEntries(Object.entries(a.transport).map(([e,t])=>[e,t.decode])),s=Object.fromEntries(Object.entries(a.transport).map(([e,t])=>[e,t.encode])),c=!1,l=(e,t)=>o[e](t),u=()=>e(()=>import(`../chunks/Bjy-W4x2.js`).then(e=>e.default),[],import.meta.url);export{l as decode,o as decoders,i as dictionary,s as encoders,u as get_error_template,c as hash,a as hooks,t as matchers,n as nodes,r as server_loads};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../chunks/BaD2EyfF.js","../chunks/DvmLiMpQ.js","./payload.DSmR2FwN.js","../chunks/CcBdu3S8.js","../chunks/Dg9MaatX.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{set_payload as e}from"./payload.DSmR2FwN.js";import{t}from"../chunks/DclECHGd.js";var n;function r(r){e(r),n??=t(()=>import(`../chunks/BaD2EyfF.js`),__vite__mapDeps([0,1,2,3,4]),import.meta.url)}async function i(...e){return(await n).start(...e)}async function a(...e){return(await n).load_css(...e)}export{r as init,a as load_css,i as start};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{B as e,C as t,H as n,M as r,N as i,P as a,R as o,S as s,T as c,V as l,b as u,c as d,f,g as p,i as m,j as h,k as g,o as _,p as v,r as y,s as b,u as x,v as S,z as C}from"../chunks/CcBdu3S8.js";import{n as w,o as T}from"../chunks/Dg9MaatX.js";import{n as E,r as D}from"../chunks/DSHrAZZ8.js";import"../chunks/DbiAGPgw.js";var O=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='44'%20height='44'%20viewBox='0%200%2044%2044'%3e%3ctitle%3eSpeech%20Capture%3c/title%3e%3crect%20width='44'%20height='44'%20rx='14'%20fill='%23415f91'/%3e%3cpath%20d='M4%2010v4M8%206v12M12%203v18M16%208v8M20%2011v2'%20transform='translate(10%2010)'%20fill='none'%20stroke='%23fff'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e`,k=new URL(`../assets/material-symbols-outlined-latin-400-normal.BhEvR8fk.woff2`,import.meta.url).href,A=u(`<li><span aria-hidden="true"></span> <span aria-hidden="true" class="chip-label svelte-19wvxlf"> </span></li>`),j=u(`<ul aria-label="Bridge status" class="svelte-19wvxlf"></ul> <span class="sr-only svelte-19wvxlf" role="status"> </span>`,1);function M(e,t){var o=j(),s=r(o);x(s,21,()=>t.chips,e=>e.id,(e,t)=>{var r=A();let o;var s=h(r),l=a(s,2),u=i(l,!0);n(r),g(()=>{o=_(r,1,b(c(t).tone),`svelte-19wvxlf`,o,{down:c(t).down}),y(r,`aria-label`,c(t).description),y(r,`title`,c(t).text),_(s,1,`dot ${c(t).dot??``}`,`svelte-19wvxlf`),p(u,c(t).text)}),S(e,r)}),n(s);var l=a(s,2),u=i(l,!0);g(()=>p(u,t.announcement)),S(e,o)}var N=u(`<md-icon-button><md-icon>refresh</md-icon></md-icon-button>`,2);function P(e,r){var i=N();m(i,`title`,`Refresh status`),_(i,1,`svelte-5q7qd7`);var a=h(i);let o;n(i),g(()=>o=_(a,1,`svelte-5q7qd7`,null,o,{spin:r.loading})),t(`click`,i,function(...e){r.onRetry?.apply(this,e)}),S(e,i)}s([`click`]);var F=`24px "Material Symbols Outlined"`;async function I(){try{await document.fonts.load(F)}catch{}document.documentElement.setAttribute(`data-icons-ready`,``)}function L(e,t){if(e===null)return[R(`playwright`,`Playwright`),R(`mcp`,`MCP`),R(`session`,`Session`)];let n=[z(`playwright`,`Playwright`,e.playwright),z(`mcp`,`MCP`,e.mcp),B(e)];return t?n:n.map(e=>({...e,tone:`neutral`,down:!0}))}function R(e,t){return{id:e,text:t,tone:`neutral`,dot:`hollow`,description:`${t}, state unknown`,down:!0}}function z(e,t,n){let r=`${t} ${n.version}`;switch(n.state){case`running`:return{id:e,text:r,tone:`ok`,dot:`filled`,description:`${r}, running`};case`crashed`:case`failed`:return{id:e,text:`${r} · ${n.state}`,tone:`warning`,dot:`filled`,description:`${r}, ${n.state}`};case`starting`:return{id:e,text:r,tone:`neutral`,dot:`hollow`,description:`${r}, starting`,down:!0};case`stopped`:return{id:e,text:r,tone:`neutral`,dot:`hollow`,description:`${r}, stopped`,down:!0}}}function B({session:e}){if(e.current===null)return{id:`session`,text:`No session`,tone:`neutral`,dot:`hollow`,description:`No session is running`};let t=`Session #${e.current.id}`;return{id:`session`,text:t,tone:`ok`,dot:`filled`,description:`${t}, live`}}function V(e,t){return t?e.filter(e=>e.tone===`error`||e.tone===`warning`).map(e=>`${e.description}.`).join(` `):`Bridge unreachable.`}var H=u(`<!> <!>`,1);function U(t,n){e(n,!0);let i=o(()=>w.data.status),s=o(()=>E.status??c(i)),l=o(()=>L(c(s),E.reachable));f(()=>E.init(c(i)));var u=H(),d=r(u);{let e=o(()=>V(c(l),E.reachable));M(d,{get chips(){return c(l)},get announcement(){return c(e)}})}P(a(d,2),{get loading(){return E.loading},onRetry:()=>void E.retry()}),S(t,u),C()}var W=u(`<header class="svelte-4j9s4f"><div class="logo-slot svelte-4j9s4f"><div class="logo svelte-4j9s4f"><svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M4 10v4M8 6v12M12 3v18M16 8v8M20 11v2"></path></svg></div></div> <div class="title svelte-4j9s4f"><span class="name svelte-4j9s4f">Speech Capture</span> <span class="meta svelte-4j9s4f"> </span></div> <!></header>`);function G(e,t){var r=W(),o=a(h(r),2),s=a(h(o),2),c=i(s,!0);n(o),U(a(o,2),{}),n(r),g(()=>p(c,t.host)),S(e,r)}var K=e=>e.length>1?e.replace(/\/+$/,``):e;function q(e,t){let n=K(e.href),r=K(t);return e.exact?r===n:r===n||r.startsWith(`${n}/`)}var J=u(`<li><a class="svelte-sxtjmn"><span><md-icon> </md-icon></span> <span class="label svelte-sxtjmn"> </span></a></li>`,2),Y=u(`<nav aria-label="Pages" class="svelte-sxtjmn"><ul class="svelte-sxtjmn"></ul></nav>`);function X(t,r){e(r,!0);var s=Y(),l=h(s);x(l,21,()=>r.items,e=>e.href,(e,t)=>{let s=o(()=>q(c(t),r.currentPath));var l=J(),u=h(l),d=h(u);let f;var m=h(d),v=i(m,!0);n(d);var b=a(d,2),x=i(b,!0);n(u),n(l),g(()=>{y(u,`href`,c(t).href),y(u,`aria-current`,c(s)?`page`:void 0),f=_(d,1,`indicator svelte-sxtjmn`,null,f,{current:c(s)}),p(v,c(t).icon),p(x,c(t).label)}),S(e,l)}),n(l),n(s),S(t,s),C()}var Z=u(`<link rel="icon"/> <link rel="preload" as="font" type="font/woff2" crossorigin="anonymous"/> <meta name="color-scheme" content="light dark"/>`,1),Q=u(`<div class="app svelte-12qhfyh"><!> <div class="body svelte-12qhfyh"><!> <main class="svelte-12qhfyh"><!></main></div></div>`);function $(t,i){e(i,!0);let o=[{href:T(`/`),label:`Monitor`,icon:`monitor`,exact:!0},{href:T(`/settings`),label:`Settings`,icon:`settings`},{href:T(`/setup`),label:`Setup`,icon:`build`}];f(()=>{D.init(),I()});var s=Q();d(`12qhfyh`,e=>{var t=Z(),n=r(t),i=a(n,2);l(2),g(()=>{y(n,`href`,O),y(i,`href`,k)}),S(e,t)});var c=h(s);G(c,{get host(){return w.url.host}});var u=a(c,2),p=h(u);X(p,{get items(){return o},get currentPath(){return w.url.pathname}});var m=a(p,2),_=h(m);v(_,()=>i.children),n(m),n(u),n(s),S(t,s),C()}export{$ as component};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{B as e,M as t,N as n,P as r,b as i,g as a,k as o,v as s,z as c}from"../chunks/CcBdu3S8.js";import{n as l}from"../chunks/Dg9MaatX.js";import"../chunks/DbiAGPgw.js";var u=i(`<h1> </h1> <p> </p>`,1);function d(i,d){e(d,!0);var f=u(),p=t(f),m=n(p,!0),h=r(p,2),g=n(h,!0);o(()=>{a(m,l.status),a(g,l.error?.message)}),s(i,f),c()}export{d as component};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,224 @@
|
|
|
1
|
+
import{A as e,B as t,C as n,H as r,I as i,L as a,M as o,N as s,P as c,R as l,S as u,T as d,a as f,b as p,d as m,f as h,g,i as _,j as v,k as y,o as b,p as x,r as S,s as C,t as w,u as T,v as E,w as D,z as O}from"../chunks/CcBdu3S8.js";import{n as k,o as A}from"../chunks/Dg9MaatX.js";import{t as ee}from"../chunks/DvmLiMpQ.js";import{A as j,C as M,D as N,E as P,O as F,S as I,T as te,_ as L,a as ne,b as re,c as R,d as ie,f as ae,g as oe,h as se,i as ce,k as z,l as le,m as B,o as ue,p as V,s as de,t as H,u as fe,v as U,w as W,x as G,y as K}from"../chunks/DSHrAZZ8.js";import"../chunks/DbiAGPgw.js";function q(e){return(t,n)=>{let{slot:r,selector:i}=e??{},a=`slot`+(r?`[name=${r}]`:`:not([name])`);return te(t,n,{get(){let t=(this.renderRoot?.querySelector(a))?.assignedElements(e)??[];return i===void 0?t:t.filter(e=>e.matches(i))}})}}var pe=F`:host{border-start-start-radius:var(--_container-shape-start-start);border-start-end-radius:var(--_container-shape-start-end);border-end-start-radius:var(--_container-shape-end-start);border-end-end-radius:var(--_container-shape-end-end);box-sizing:border-box;cursor:pointer;display:inline-flex;gap:8px;min-height:var(--_container-height);outline:none;padding-block:calc((var(--_container-height) - max(var(--_label-text-line-height),var(--_icon-size)))/2);padding-inline-start:var(--_leading-space);padding-inline-end:var(--_trailing-space);place-content:center;place-items:center;position:relative;font-family:var(--_label-text-font);font-size:var(--_label-text-size);line-height:var(--_label-text-line-height);font-weight:var(--_label-text-weight);text-overflow:ellipsis;text-wrap:nowrap;user-select:none;-webkit-tap-highlight-color:rgba(0,0,0,0);vertical-align:top;--md-ripple-hover-color: var(--_hover-state-layer-color);--md-ripple-pressed-color: var(--_pressed-state-layer-color);--md-ripple-hover-opacity: var(--_hover-state-layer-opacity);--md-ripple-pressed-opacity: var(--_pressed-state-layer-opacity)}md-focus-ring{--md-focus-ring-shape-start-start: var(--_container-shape-start-start);--md-focus-ring-shape-start-end: var(--_container-shape-start-end);--md-focus-ring-shape-end-end: var(--_container-shape-end-end);--md-focus-ring-shape-end-start: var(--_container-shape-end-start)}:host(:is([disabled],[soft-disabled])){cursor:default;pointer-events:none}.button{border-radius:inherit;cursor:inherit;display:inline-flex;align-items:center;justify-content:center;border:none;outline:none;-webkit-appearance:none;vertical-align:middle;background:rgba(0,0,0,0);text-decoration:none;min-width:calc(64px - var(--_leading-space) - var(--_trailing-space));width:100%;z-index:0;height:100%;font:inherit;color:var(--_label-text-color);padding:0;gap:inherit;text-transform:inherit}.button::-moz-focus-inner{padding:0;border:0}:host(:hover) .button{color:var(--_hover-label-text-color)}:host(:focus-within) .button{color:var(--_focus-label-text-color)}:host(:active) .button{color:var(--_pressed-label-text-color)}.background{background:var(--_container-color);border-radius:inherit;inset:0;position:absolute}.label{overflow:hidden}:is(.button,.label,.label slot),.label ::slotted(*){text-overflow:inherit}:host(:is([disabled],[soft-disabled])) .label{color:var(--_disabled-label-text-color);opacity:var(--_disabled-label-text-opacity)}:host(:is([disabled],[soft-disabled])) .background{background:var(--_disabled-container-color);opacity:var(--_disabled-container-opacity)}@media(forced-colors: active){.background{border:1px solid CanvasText}:host(:is([disabled],[soft-disabled])){--_disabled-icon-color: GrayText;--_disabled-icon-opacity: 1;--_disabled-container-opacity: 1;--_disabled-label-text-color: GrayText;--_disabled-label-text-opacity: 1}}:host([has-icon]:not([trailing-icon])){padding-inline-start:var(--_with-leading-icon-leading-space);padding-inline-end:var(--_with-leading-icon-trailing-space)}:host([has-icon][trailing-icon]){padding-inline-start:var(--_with-trailing-icon-leading-space);padding-inline-end:var(--_with-trailing-icon-trailing-space)}::slotted([slot=icon]){display:inline-flex;position:relative;writing-mode:horizontal-tb;fill:currentColor;flex-shrink:0;color:var(--_icon-color);font-size:var(--_icon-size);inline-size:var(--_icon-size);block-size:var(--_icon-size)}:host(:hover) ::slotted([slot=icon]){color:var(--_hover-icon-color)}:host(:focus-within) ::slotted([slot=icon]){color:var(--_focus-icon-color)}:host(:active) ::slotted([slot=icon]){color:var(--_pressed-icon-color)}:host(:is([disabled],[soft-disabled])) ::slotted([slot=icon]){color:var(--_disabled-icon-color);opacity:var(--_disabled-icon-opacity)}.touch{position:absolute;top:50%;height:max(48px,100%);left:0;right:0;transform:translateY(-50%)}:host([touch-target=wrapper]){margin:max(0px,(48px - var(--_container-height))/2) 0}:host([touch-target=none]) .touch{display:none}
|
|
2
|
+
`;pe.styleSheet;function me(e){let t=new MouseEvent(`click`,{bubbles:!0});return e.dispatchEvent(t),t}function he(e){return e.currentTarget!==e.target||e.composedPath()[0]!==e.target||e.target.disabled?!1:!ge(e)}function ge(e){let t=_e;return t&&(e.preventDefault(),e.stopImmediatePropagation()),ve(),t}var _e=!1;async function ve(){_e=!0,await null,_e=!1}var ye=fe(ne(de(le(U)))),J=class extends ye{constructor(){super(),this.softDisabled=!1,this.href=``,this.download=``,this.target=``,this.trailingIcon=!1,this.hasIcon=!1,this.addEventListener(`click`,this.handleClick.bind(this))}focus(){this.buttonElement?.focus()}blur(){this.buttonElement?.blur()}render(){let e=this.disabled||this.softDisabled,t=this.href?this.renderLink():this.renderButton(),n=this.href?`link`:`button`;return I`
|
|
3
|
+
${this.renderElevationOrOutline?.()}
|
|
4
|
+
<div class="background"></div>
|
|
5
|
+
<md-focus-ring part="focus-ring" for=${n}></md-focus-ring>
|
|
6
|
+
<md-ripple
|
|
7
|
+
part="ripple"
|
|
8
|
+
for=${n}
|
|
9
|
+
?disabled="${e}"></md-ripple>
|
|
10
|
+
${t}
|
|
11
|
+
`}renderButton(){let{ariaLabel:e,ariaHasPopup:t,ariaExpanded:n}=this;return I`<button
|
|
12
|
+
id="button"
|
|
13
|
+
class="button"
|
|
14
|
+
?disabled=${this.disabled}
|
|
15
|
+
aria-disabled=${this.softDisabled||K}
|
|
16
|
+
aria-label="${e||K}"
|
|
17
|
+
aria-haspopup="${t||K}"
|
|
18
|
+
aria-expanded="${n||K}">
|
|
19
|
+
${this.renderContent()}
|
|
20
|
+
</button>`}renderLink(){let{ariaLabel:e,ariaHasPopup:t,ariaExpanded:n}=this;return I`<a
|
|
21
|
+
id="link"
|
|
22
|
+
class="button"
|
|
23
|
+
aria-label="${e||K}"
|
|
24
|
+
aria-haspopup="${t||K}"
|
|
25
|
+
aria-expanded="${n||K}"
|
|
26
|
+
aria-disabled=${this.disabled||this.softDisabled||K}
|
|
27
|
+
tabindex="${this.disabled&&!this.softDisabled?-1:K}"
|
|
28
|
+
href=${this.href}
|
|
29
|
+
download=${this.download||K}
|
|
30
|
+
target=${this.target||K}
|
|
31
|
+
>${this.renderContent()}
|
|
32
|
+
</a>`}renderContent(){let e=I`<slot
|
|
33
|
+
name="icon"
|
|
34
|
+
@slotchange="${this.handleSlotChange}"></slot>`;return I`
|
|
35
|
+
<span class="touch"></span>
|
|
36
|
+
${this.trailingIcon?K:e}
|
|
37
|
+
<span class="label"><slot></slot></span>
|
|
38
|
+
${this.trailingIcon?e:K}
|
|
39
|
+
`}handleClick(e){this.softDisabled||this.disabled&&this.href?(e.stopImmediatePropagation(),e.preventDefault()):he(e)&&this.buttonElement&&(this.focus(),me(this.buttonElement))}handleSlotChange(){this.hasIcon=this.assignedIcons.length>0}};J.shadowRootOptions={mode:`open`,delegatesFocus:!0},j([N({type:Boolean,attribute:`soft-disabled`,reflect:!0})],J.prototype,`softDisabled`,void 0),j([N()],J.prototype,`href`,void 0),j([N()],J.prototype,`download`,void 0),j([N()],J.prototype,`target`,void 0),j([N({type:Boolean,attribute:`trailing-icon`,reflect:!0})],J.prototype,`trailingIcon`,void 0),j([N({type:Boolean,attribute:`has-icon`,reflect:!0})],J.prototype,`hasIcon`,void 0),j([W(`.button`)],J.prototype,`buttonElement`,void 0),j([q({slot:`icon`,flatten:!0})],J.prototype,`assignedIcons`,void 0);var be=class extends J{},xe=F`:host{--_container-height: var(--md-text-button-container-height, 40px);--_disabled-label-text-color: var(--md-text-button-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-label-text-opacity: var(--md-text-button-disabled-label-text-opacity, 0.38);--_focus-label-text-color: var(--md-text-button-focus-label-text-color, var(--md-sys-color-primary, #6750a4));--_hover-label-text-color: var(--md-text-button-hover-label-text-color, var(--md-sys-color-primary, #6750a4));--_hover-state-layer-color: var(--md-text-button-hover-state-layer-color, var(--md-sys-color-primary, #6750a4));--_hover-state-layer-opacity: var(--md-text-button-hover-state-layer-opacity, 0.08);--_label-text-color: var(--md-text-button-label-text-color, var(--md-sys-color-primary, #6750a4));--_label-text-font: var(--md-text-button-label-text-font, var(--md-sys-typescale-label-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--md-text-button-label-text-line-height, var(--md-sys-typescale-label-large-line-height, 1.25rem));--_label-text-size: var(--md-text-button-label-text-size, var(--md-sys-typescale-label-large-size, 0.875rem));--_label-text-weight: var(--md-text-button-label-text-weight, var(--md-sys-typescale-label-large-weight, var(--md-ref-typeface-weight-medium, 500)));--_pressed-label-text-color: var(--md-text-button-pressed-label-text-color, var(--md-sys-color-primary, #6750a4));--_pressed-state-layer-color: var(--md-text-button-pressed-state-layer-color, var(--md-sys-color-primary, #6750a4));--_pressed-state-layer-opacity: var(--md-text-button-pressed-state-layer-opacity, 0.12);--_disabled-icon-color: var(--md-text-button-disabled-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-icon-opacity: var(--md-text-button-disabled-icon-opacity, 0.38);--_focus-icon-color: var(--md-text-button-focus-icon-color, var(--md-sys-color-primary, #6750a4));--_hover-icon-color: var(--md-text-button-hover-icon-color, var(--md-sys-color-primary, #6750a4));--_icon-color: var(--md-text-button-icon-color, var(--md-sys-color-primary, #6750a4));--_icon-size: var(--md-text-button-icon-size, 18px);--_pressed-icon-color: var(--md-text-button-pressed-icon-color, var(--md-sys-color-primary, #6750a4));--_container-shape-start-start: var(--md-text-button-container-shape-start-start, var(--md-text-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-start-end: var(--md-text-button-container-shape-start-end, var(--md-text-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-end-end: var(--md-text-button-container-shape-end-end, var(--md-text-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-end-start: var(--md-text-button-container-shape-end-start, var(--md-text-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_leading-space: var(--md-text-button-leading-space, 12px);--_trailing-space: var(--md-text-button-trailing-space, 12px);--_with-leading-icon-leading-space: var(--md-text-button-with-leading-icon-leading-space, 12px);--_with-leading-icon-trailing-space: var(--md-text-button-with-leading-icon-trailing-space, 16px);--_with-trailing-icon-leading-space: var(--md-text-button-with-trailing-icon-leading-space, 16px);--_with-trailing-icon-trailing-space: var(--md-text-button-with-trailing-icon-trailing-space, 12px);--_container-color: none;--_disabled-container-color: none;--_disabled-container-opacity: 0}
|
|
40
|
+
`;xe.styleSheet;var Se=class extends be{};Se.styles=[pe,xe],Se=j([z(`md-text-button`)],Se);var Ce=class extends U{constructor(){super(...arguments),this.inset=!1,this.insetStart=!1,this.insetEnd=!1}};j([N({type:Boolean,reflect:!0})],Ce.prototype,`inset`,void 0),j([N({type:Boolean,reflect:!0,attribute:`inset-start`})],Ce.prototype,`insetStart`,void 0),j([N({type:Boolean,reflect:!0,attribute:`inset-end`})],Ce.prototype,`insetEnd`,void 0);var we=F`:host{box-sizing:border-box;color:var(--md-divider-color, var(--md-sys-color-outline-variant, #cac4d0));display:flex;height:var(--md-divider-thickness, 1px);width:100%}:host([inset]),:host([inset-start]){padding-inline-start:16px}:host([inset]),:host([inset-end]){padding-inline-end:16px}:host::before{background:currentColor;content:"";height:100%;width:100%}@media(forced-colors: active){:host::before{background:CanvasText}}
|
|
41
|
+
`;we.styleSheet;var Te=class extends Ce{};Te.styles=[we],Te=j([z(`md-divider`)],Te);function Ee(e,t){t.bubbles&&(!e.shadowRoot||t.composed)&&t.stopPropagation();let n=Reflect.construct(t.constructor,[t.type,t]),r=e.dispatchEvent(n);return r||t.preventDefault(),r}var De={dialog:[[[{transform:`translateY(-50px)`},{transform:`translateY(0)`}],{duration:500,easing:V.EMPHASIZED}]],scrim:[[[{opacity:0},{opacity:.32}],{duration:500,easing:`linear`}]],container:[[[{opacity:0},{opacity:1}],{duration:50,easing:`linear`,pseudoElement:`::before`}],[[{height:`35%`},{height:`100%`}],{duration:500,easing:V.EMPHASIZED,pseudoElement:`::before`}]],headline:[[[{opacity:0},{opacity:0,offset:.2},{opacity:1}],{duration:250,easing:`linear`,fill:`forwards`}]],content:[[[{opacity:0},{opacity:0,offset:.2},{opacity:1}],{duration:250,easing:`linear`,fill:`forwards`}]],actions:[[[{opacity:0},{opacity:0,offset:.5},{opacity:1}],{duration:300,easing:`linear`,fill:`forwards`}]]},Oe={dialog:[[[{transform:`translateY(0)`},{transform:`translateY(-50px)`}],{duration:150,easing:V.EMPHASIZED_ACCELERATE}]],scrim:[[[{opacity:.32},{opacity:0}],{duration:150,easing:`linear`}]],container:[[[{height:`100%`},{height:`35%`}],{duration:150,easing:V.EMPHASIZED_ACCELERATE,pseudoElement:`::before`}],[[{opacity:`1`},{opacity:`0`}],{delay:100,duration:50,easing:`linear`,pseudoElement:`::before`}]],headline:[[[{opacity:1},{opacity:0}],{duration:100,easing:`linear`,fill:`forwards`}]],content:[[[{opacity:1},{opacity:0}],{duration:100,easing:`linear`,fill:`forwards`}]],actions:[[[{opacity:1},{opacity:0}],{duration:100,easing:`linear`,fill:`forwards`}]]},ke=fe(U),Y=class extends ke{get open(){return this.isOpen}set open(e){e!==this.isOpen&&(this.isOpen=e,e?(this.setAttribute(`open`,``),this.show()):(this.removeAttribute(`open`),this.close()))}constructor(){super(),this.quick=!1,this.returnValue=``,this.noFocusTrap=!1,this.getOpenAnimation=()=>De,this.getCloseAnimation=()=>Oe,this.isOpen=!1,this.isOpening=!1,this.isConnectedPromise=this.getIsConnectedPromise(),this.isAtScrollTop=!1,this.isAtScrollBottom=!1,this.nextClickIsFromContent=!1,this.hasHeadline=!1,this.hasActions=!1,this.hasIcon=!1,this.escapePressedWithoutCancel=!1,this.treewalker=document.createTreeWalker(this,NodeFilter.SHOW_ELEMENT),this.addEventListener(`submit`,this.handleSubmit)}async show(){this.isOpening=!0,await this.isConnectedPromise,await this.updateComplete;let e=this.dialog;e.open||!this.isOpening?this.isOpening=!1:this.dispatchEvent(new Event(`open`,{cancelable:!0}))?(e.showModal(),this.open=!0,this.scroller&&(this.scroller.scrollTop=0),this.querySelector(`[autofocus]`)?.focus(),await this.animateDialog(this.getOpenAnimation()),this.dispatchEvent(new Event(`opened`)),this.isOpening=!1):(this.open=!1,this.isOpening=!1)}async close(e=this.returnValue){if(this.isOpening=!1,!this.isConnected){this.open=!1;return}await this.updateComplete;let t=this.dialog;if(!t.open||this.isOpening){this.open=!1;return}let n=this.returnValue;this.returnValue=e,this.dispatchEvent(new Event(`close`,{cancelable:!0}))?(await this.animateDialog(this.getCloseAnimation()),t.close(e),this.open=!1,this.dispatchEvent(new Event(`closed`))):this.returnValue=n}connectedCallback(){super.connectedCallback(),this.isConnectedPromiseResolve()}disconnectedCallback(){super.disconnectedCallback(),this.isConnectedPromise=this.getIsConnectedPromise()}render(){let e=this.open&&!(this.isAtScrollTop&&this.isAtScrollBottom),t={"has-headline":this.hasHeadline,"has-actions":this.hasActions,"has-icon":this.hasIcon,scrollable:e,"show-top-divider":e&&!this.isAtScrollTop,"show-bottom-divider":e&&!this.isAtScrollBottom},n=this.open&&!this.noFocusTrap,r=I`
|
|
42
|
+
<div
|
|
43
|
+
class="focus-trap"
|
|
44
|
+
tabindex="0"
|
|
45
|
+
aria-hidden="true"
|
|
46
|
+
@focus=${this.handleFocusTrapFocus}></div>
|
|
47
|
+
`,{ariaLabel:i}=this;return I`
|
|
48
|
+
<div class="scrim"></div>
|
|
49
|
+
<dialog
|
|
50
|
+
class=${B(t)}
|
|
51
|
+
aria-label=${i||K}
|
|
52
|
+
aria-labelledby=${this.hasHeadline?`headline`:K}
|
|
53
|
+
role=${this.type===`alert`?`alertdialog`:K}
|
|
54
|
+
@cancel=${this.handleCancel}
|
|
55
|
+
@click=${this.handleDialogClick}
|
|
56
|
+
@close=${this.handleClose}
|
|
57
|
+
@keydown=${this.handleKeydown}
|
|
58
|
+
.returnValue=${this.returnValue||K}>
|
|
59
|
+
${n?r:K}
|
|
60
|
+
<div class="container" @click=${this.handleContentClick}>
|
|
61
|
+
<div class="headline">
|
|
62
|
+
<div class="icon" aria-hidden="true">
|
|
63
|
+
<slot name="icon" @slotchange=${this.handleIconChange}></slot>
|
|
64
|
+
</div>
|
|
65
|
+
<h2 id="headline" aria-hidden=${!this.hasHeadline||K}>
|
|
66
|
+
<slot
|
|
67
|
+
name="headline"
|
|
68
|
+
@slotchange=${this.handleHeadlineChange}></slot>
|
|
69
|
+
</h2>
|
|
70
|
+
<md-divider></md-divider>
|
|
71
|
+
</div>
|
|
72
|
+
<div class="scroller">
|
|
73
|
+
<div class="content">
|
|
74
|
+
<div class="top anchor"></div>
|
|
75
|
+
<slot name="content"></slot>
|
|
76
|
+
<div class="bottom anchor"></div>
|
|
77
|
+
</div>
|
|
78
|
+
</div>
|
|
79
|
+
<div class="actions">
|
|
80
|
+
<md-divider></md-divider>
|
|
81
|
+
<slot name="actions" @slotchange=${this.handleActionsChange}></slot>
|
|
82
|
+
</div>
|
|
83
|
+
</div>
|
|
84
|
+
${n?r:K}
|
|
85
|
+
</dialog>
|
|
86
|
+
`}firstUpdated(){this.intersectionObserver=new IntersectionObserver(e=>{for(let t of e)this.handleAnchorIntersection(t)},{root:this.scroller}),this.intersectionObserver.observe(this.topAnchor),this.intersectionObserver.observe(this.bottomAnchor)}handleDialogClick(){this.nextClickIsFromContent?this.nextClickIsFromContent=!1:this.dispatchEvent(new Event(`cancel`,{cancelable:!0}))&&this.close()}handleContentClick(){this.nextClickIsFromContent=!0}handleSubmit(e){let t=e.target,{submitter:n}=e;t.getAttribute(`method`)===`dialog`&&n&&this.close(n.getAttribute(`value`)??this.returnValue)}handleCancel(e){if(e.target!==this.dialog)return;this.escapePressedWithoutCancel=!1;let t=!Ee(this,e);e.preventDefault(),t||this.close()}handleClose(){this.escapePressedWithoutCancel&&(this.escapePressedWithoutCancel=!1,this.dialog?.dispatchEvent(new Event(`cancel`,{cancelable:!0})))}handleKeydown(e){e.key===`Escape`&&(this.escapePressedWithoutCancel=!0,setTimeout(()=>{this.escapePressedWithoutCancel=!1}))}async animateDialog(e){if(this.cancelAnimations?.abort(),this.cancelAnimations=new AbortController,this.quick)return;let{dialog:t,scrim:n,container:r,headline:i,content:a,actions:o}=this;if(!t||!n||!r||!i||!a||!o)return;let{container:s,dialog:c,scrim:l,headline:u,content:d,actions:f}=e,p=[[t,c??[]],[n,l??[]],[r,s??[]],[i,u??[]],[a,d??[]],[o,f??[]]],m=[];for(let[e,t]of p)for(let n of t){let t=e.animate(...n);this.cancelAnimations.signal.addEventListener(`abort`,()=>{t.cancel()}),m.push(t)}await Promise.all(m.map(e=>e.finished.catch(()=>{})))}handleHeadlineChange(e){let t=e.target;this.hasHeadline=t.assignedElements().length>0}handleActionsChange(e){let t=e.target;this.hasActions=t.assignedElements().length>0}handleIconChange(e){let t=e.target;this.hasIcon=t.assignedElements().length>0}handleAnchorIntersection(e){let{target:t,isIntersecting:n}=e;t===this.topAnchor&&(this.isAtScrollTop=n),t===this.bottomAnchor&&(this.isAtScrollBottom=n)}getIsConnectedPromise(){return new Promise(e=>{this.isConnectedPromiseResolve=e})}handleFocusTrapFocus(e){let[t,n]=this.getFirstAndLastFocusableChildren();if(!t||!n){this.dialog?.focus();return}let r=e.target===this.firstFocusTrap,i=!r,a=e.relatedTarget===t,o=e.relatedTarget===n,s=!a&&!o;i&&o||r&&s?t.focus():(r&&a||i&&s)&&n.focus()}getFirstAndLastFocusableChildren(){if(!this.treewalker)return[null,null];let e=null,t=null;for(this.treewalker.currentNode=this.treewalker.root;this.treewalker.nextNode();){let n=this.treewalker.currentNode;Ae(n)&&(e||=n,t=n)}return[e,t]}};j([N({type:Boolean})],Y.prototype,`open`,null),j([N({type:Boolean})],Y.prototype,`quick`,void 0),j([N({attribute:!1})],Y.prototype,`returnValue`,void 0),j([N()],Y.prototype,`type`,void 0),j([N({type:Boolean,attribute:`no-focus-trap`})],Y.prototype,`noFocusTrap`,void 0),j([W(`dialog`)],Y.prototype,`dialog`,void 0),j([W(`.scrim`)],Y.prototype,`scrim`,void 0),j([W(`.container`)],Y.prototype,`container`,void 0),j([W(`.headline`)],Y.prototype,`headline`,void 0),j([W(`.content`)],Y.prototype,`content`,void 0),j([W(`.actions`)],Y.prototype,`actions`,void 0),j([P()],Y.prototype,`isAtScrollTop`,void 0),j([P()],Y.prototype,`isAtScrollBottom`,void 0),j([W(`.scroller`)],Y.prototype,`scroller`,void 0),j([W(`.top.anchor`)],Y.prototype,`topAnchor`,void 0),j([W(`.bottom.anchor`)],Y.prototype,`bottomAnchor`,void 0),j([W(`.focus-trap`)],Y.prototype,`firstFocusTrap`,void 0),j([P()],Y.prototype,`hasHeadline`,void 0),j([P()],Y.prototype,`hasActions`,void 0),j([P()],Y.prototype,`hasIcon`,void 0);function Ae(e){let t=`:not(:disabled,[disabled])`;return e.matches(`:is(button,input,select,textarea,object,:is(a,area)[href],[tabindex],[contenteditable=true])`+t+`:not([tabindex^="-"])`)?!0:!e.localName.includes(`-`)||!e.matches(t)?!1:e.shadowRoot?.delegatesFocus??!1}var je=F`:host{border-start-start-radius:var(--md-dialog-container-shape-start-start, var(--md-dialog-container-shape, var(--md-sys-shape-corner-extra-large, 28px)));border-start-end-radius:var(--md-dialog-container-shape-start-end, var(--md-dialog-container-shape, var(--md-sys-shape-corner-extra-large, 28px)));border-end-end-radius:var(--md-dialog-container-shape-end-end, var(--md-dialog-container-shape, var(--md-sys-shape-corner-extra-large, 28px)));border-end-start-radius:var(--md-dialog-container-shape-end-start, var(--md-dialog-container-shape, var(--md-sys-shape-corner-extra-large, 28px)));display:contents;margin:auto;max-height:min(560px,100% - 48px);max-width:min(560px,100% - 48px);min-height:140px;min-width:280px;position:fixed;height:fit-content;width:fit-content}dialog{background:rgba(0,0,0,0);border:none;border-radius:inherit;flex-direction:column;height:inherit;margin:inherit;max-height:inherit;max-width:inherit;min-height:inherit;min-width:inherit;outline:none;overflow:visible;padding:0;width:inherit}dialog[open]{display:flex}::backdrop{background:none}.scrim{background:var(--md-sys-color-scrim, #000);display:none;inset:0;opacity:32%;pointer-events:none;position:fixed;z-index:1}:host([open]) .scrim{display:flex}h2{all:unset;align-self:stretch}.headline{align-items:center;color:var(--md-dialog-headline-color, var(--md-sys-color-on-surface, #1d1b20));display:flex;flex-direction:column;font-family:var(--md-dialog-headline-font, var(--md-sys-typescale-headline-small-font, var(--md-ref-typeface-brand, Roboto)));font-size:var(--md-dialog-headline-size, var(--md-sys-typescale-headline-small-size, 1.5rem));line-height:var(--md-dialog-headline-line-height, var(--md-sys-typescale-headline-small-line-height, 2rem));font-weight:var(--md-dialog-headline-weight, var(--md-sys-typescale-headline-small-weight, var(--md-ref-typeface-weight-regular, 400)));position:relative}slot[name=headline]::slotted(*){align-items:center;align-self:stretch;box-sizing:border-box;display:flex;gap:8px;padding:24px 24px 0}.icon{display:flex}slot[name=icon]::slotted(*){color:var(--md-dialog-icon-color, var(--md-sys-color-secondary, #625b71));fill:currentColor;font-size:var(--md-dialog-icon-size, 24px);margin-top:24px;height:var(--md-dialog-icon-size, 24px);width:var(--md-dialog-icon-size, 24px)}.has-icon slot[name=headline]::slotted(*){justify-content:center;padding-top:16px}.scrollable slot[name=headline]::slotted(*){padding-bottom:16px}.scrollable.has-headline slot[name=content]::slotted(*){padding-top:8px}.container{border-radius:inherit;display:flex;flex-direction:column;flex-grow:1;overflow:hidden;position:relative;transform-origin:top}.container::before{background:var(--md-dialog-container-color, var(--md-sys-color-surface-container-high, #ece6f0));border-radius:inherit;content:"";inset:0;position:absolute}.scroller{display:flex;flex:1;flex-direction:column;overflow:hidden;z-index:1}.scrollable .scroller{overflow-y:scroll}.content{color:var(--md-dialog-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));font-family:var(--md-dialog-supporting-text-font, var(--md-sys-typescale-body-medium-font, var(--md-ref-typeface-plain, Roboto)));font-size:var(--md-dialog-supporting-text-size, var(--md-sys-typescale-body-medium-size, 0.875rem));line-height:var(--md-dialog-supporting-text-line-height, var(--md-sys-typescale-body-medium-line-height, 1.25rem));flex:1;font-weight:var(--md-dialog-supporting-text-weight, var(--md-sys-typescale-body-medium-weight, var(--md-ref-typeface-weight-regular, 400)));height:min-content;position:relative}slot[name=content]::slotted(*){box-sizing:border-box;padding:24px}.anchor{position:absolute}.top.anchor{top:0}.bottom.anchor{bottom:0}.actions{position:relative}slot[name=actions]::slotted(*){box-sizing:border-box;display:flex;gap:8px;justify-content:flex-end;padding:16px 24px 24px}.has-actions slot[name=content]::slotted(*){padding-bottom:8px}md-divider{display:none;position:absolute}.has-headline.show-top-divider .headline md-divider,.has-actions.show-bottom-divider .actions md-divider{display:flex}.headline md-divider{bottom:0}.actions md-divider{top:0}@media(forced-colors: active){dialog{outline:2px solid WindowText}}
|
|
87
|
+
`;je.styleSheet;var Me=class extends Y{};Me.styles=[je],Me=j([z(`md-dialog`)],Me);var Ne=p(`<p class="svelte-17z3k9b">This session has no entries, so ending it deletes it. Its number is not reused.</p>`),Pe=p(`<p class="svelte-17z3k9b">Speech captured after this belongs to no session.</p>`),Fe=p(`<p role="alert" class="failure svelte-17z3k9b"> </p>`),Ie=p(`<md-dialog><div slot="headline"> </div> <div slot="content"><!> <!></div> <div slot="actions"><md-text-button>Cancel</md-text-button> <md-text-button>End session</md-text-button></div></md-dialog>`,2);function Le(o,u){t(u,!0);let f=l(()=>u.entries===0),p=a(``),h=a(!1);e(()=>{u.open&&i(p,``)});async function x(){if(!d(h)){i(p,``),i(h,!0);try{await u.onEnd(),u.onClose()}catch(e){i(p,e instanceof Error?e.message:`The session could not be ended.`,!0)}finally{i(h,!1)}}}var S=Ie();y(()=>_(S,`open`,u.open)),b(S,1,`svelte-17z3k9b`);var C=v(S),w=s(C),T=c(C,2),k=v(T),A=e=>{var t=Ne();E(e,t)},ee=e=>{var t=Pe();E(e,t)};m(k,e=>{d(f)?e(A):e(ee,-1)});var j=c(k,2),M=e=>{var t=Fe(),n=s(t,!0);y(()=>g(n,d(p))),E(e,t)};m(j,e=>{d(p)!==``&&e(M)}),r(T);var N=c(T,2),P=v(N);_(P,`type`,`button`);var F=c(P,2);_(F,`type`,`button`),y(()=>_(F,`disabled`,d(h))),r(N),r(S),y(()=>g(w,`${d(f)?`Drop`:`End`} session ${u.sessionId===null?``:`#${u.sessionId}`}?`)),D(`closed`,S,function(...e){u.onClose?.apply(this,e)}),n(`click`,P,function(...e){u.onClose?.apply(this,e)}),n(`click`,F,x),E(o,S),O()}u([`click`]);var Re=p(`<span class="subtitle svelte-3qlloz"><!></span>`),ze=p(`<span class="sr-only svelte-3qlloz"> </span>`),Be=p(`<span class="trailing svelte-3qlloz"><!></span>`),Ve=p(`<li><md-ripple></md-ripple> <button type="button" class="select svelte-3qlloz"><span class="title svelte-3qlloz"> </span> <!> <!></button> <!></li>`,2);function He(e,t){let i=w(t,`selected`,3,!1);var a=Ve();let o,l;var u=v(a);_(u,`aria-hidden`,`true`);var d=c(u,2),p=v(d),h=s(p,!0),C=c(p,2),T=e=>{var n=Re(),i=v(n);x(i,()=>t.subtitle),r(n),y(()=>S(n,`aria-hidden`,t.description===void 0?void 0:`true`)),E(e,n)};m(C,e=>{t.subtitle&&e(T)});var D=c(C,2),O=e=>{var n=ze(),r=s(n,!0);y(()=>g(r,t.description)),E(e,n)};m(D,e=>{t.description!==void 0&&e(O)}),r(d);var k=c(d,2),A=e=>{var n=Be(),i=v(n);x(i,()=>t.trailing),r(n),E(e,n)};m(k,e=>{t.trailing&&e(A)}),r(a),y(()=>{o=b(a,1,`svelte-3qlloz`,null,o,{selected:i()}),l=f(a,``,l,{"--list-item-shape":t.shape}),S(d,`aria-current`,i()?`true`:void 0),g(h,t.title)}),n(`click`,d,function(...e){t.onSelect?.apply(this,e)}),E(e,a)}u([`click`]);function Ue(e){let t=Math.max(0,Math.floor(e/1e3)),n=Math.floor(t/3600),r=Math.floor(t%3600/60),i=t%60;return n>0?`${n} h ${String(r).padStart(2,`0`)} min`:r>0?`${r} min ${i} s`:`${i} s`}function We(e,t){let n=Ue((e.endedAt===null?t:Date.parse(e.endedAt))-Date.parse(e.startedAt)),r=e.endedAt===null,i=`${e.entries} ${e.entries===1?`entry`:`entries`}`,a=[`Session ${e.id}`,r?`live`:null,e.run===null?null:`run ${e.run}`,n,i];return{id:`#${e.id}`,run:e.run,duration:n,entries:i,spoken:a.filter(e=>e!==null).join(`, `)}}function Ge(e,t,n){let r=e===null||!/^\d+$/.test(e)?null:Number(e);return r!==null&&t.some(e=>e.id===r)?r:n}var Ke=p(`<span class="dot svelte-wvg2ho"></span>`),qe=p(`<span class="run svelte-wvg2ho"> </span>`),Je=p(`<span class="meta svelte-wvg2ho"><!> <span class="svelte-wvg2ho"> </span> <!> <span class="svelte-wvg2ho"> </span> <span class="svelte-wvg2ho"> </span></span>`);function Ye(e,n){t(n,!0);let i=e=>{var t=Je(),i=v(t),o=e=>{var t=Ke();E(e,t)};m(i,e=>{n.live&&e(o)});var l=c(i,2),u=s(l,!0),f=c(l,2),p=e=>{var t=qe(),n=s(t,!0);y(()=>g(n,d(a).run)),E(e,t)};m(f,e=>{d(a).run!==null&&e(p)});var h=c(f,2),_=s(h,!0),b=c(h,2),x=s(b,!0);r(t),y(()=>{g(u,d(a).id),g(_,d(a).duration),g(x,d(a).entries)}),E(e,t)},a=l(()=>We(n.session,n.now));He(e,{get title(){return n.session.name},shape:`var(--md-sys-shape-corner-extra-large, 28px)`,get subtitle(){return i},get selected(){return n.selected},get description(){return d(a).spoken},get onSelect(){return n.onSelect}}),O()}var X=class extends U{constructor(){super(...arguments),this.disabled=!1,this.error=!1,this.focused=!1,this.label=``,this.noAsterisk=!1,this.populated=!1,this.required=!1,this.resizable=!1,this.supportingText=``,this.errorText=``,this.count=-1,this.max=-1,this.hasStart=!1,this.hasEnd=!1,this.isAnimating=!1,this.refreshErrorAlert=!1,this.disableTransitions=!1}get counterText(){let e=this.count??-1,t=this.max??-1;return e<0||t<=0?``:`${e} / ${t}`}get supportingOrErrorText(){return this.error&&this.errorText?this.errorText:this.supportingText}reannounceError(){this.refreshErrorAlert=!0}update(e){e.has(`disabled`)&&e.get(`disabled`)!==void 0&&(this.disableTransitions=!0),this.disabled&&this.focused&&(e.set(`focused`,!0),this.focused=!1),this.animateLabelIfNeeded({wasFocused:e.get(`focused`),wasPopulated:e.get(`populated`)}),super.update(e)}render(){let e=this.renderLabel(!0),t=this.renderLabel(!1),n=this.renderOutline?.(e),r={disabled:this.disabled,"disable-transitions":this.disableTransitions,error:this.error&&!this.disabled,focused:this.focused,"with-start":this.hasStart,"with-end":this.hasEnd,populated:this.populated,resizable:this.resizable,required:this.required,"no-label":!this.label};return I`
|
|
88
|
+
<div class="field ${B(r)}">
|
|
89
|
+
<div class="container-overflow">
|
|
90
|
+
${this.renderBackground?.()}
|
|
91
|
+
<slot name="container"></slot>
|
|
92
|
+
${this.renderStateLayer?.()} ${this.renderIndicator?.()} ${n}
|
|
93
|
+
<div class="container">
|
|
94
|
+
<div class="start">
|
|
95
|
+
<slot name="start"></slot>
|
|
96
|
+
</div>
|
|
97
|
+
<div class="middle">
|
|
98
|
+
<div class="label-wrapper">
|
|
99
|
+
${t} ${n?K:e}
|
|
100
|
+
</div>
|
|
101
|
+
<div class="content">
|
|
102
|
+
<slot></slot>
|
|
103
|
+
</div>
|
|
104
|
+
</div>
|
|
105
|
+
<div class="end">
|
|
106
|
+
<slot name="end"></slot>
|
|
107
|
+
</div>
|
|
108
|
+
</div>
|
|
109
|
+
</div>
|
|
110
|
+
${this.renderSupportingText()}
|
|
111
|
+
</div>
|
|
112
|
+
`}updated(e){(e.has(`supportingText`)||e.has(`errorText`)||e.has(`count`)||e.has(`max`))&&this.updateSlottedAriaDescribedBy(),this.refreshErrorAlert&&requestAnimationFrame(()=>{this.refreshErrorAlert=!1}),this.disableTransitions&&requestAnimationFrame(()=>{this.disableTransitions=!1})}renderSupportingText(){let{supportingOrErrorText:e,counterText:t}=this;if(!e&&!t)return K;let n=I`<span>${e}</span>`,r=t?I`<span class="counter">${t}</span>`:K,i=this.error&&this.errorText&&!this.refreshErrorAlert?`alert`:K;return I`
|
|
113
|
+
<div class="supporting-text" role=${i}>${n}${r}</div>
|
|
114
|
+
<slot
|
|
115
|
+
name="aria-describedby"
|
|
116
|
+
@slotchange=${this.updateSlottedAriaDescribedBy}></slot>
|
|
117
|
+
`}updateSlottedAriaDescribedBy(){for(let e of this.slottedAriaDescribedBy)re(I`${this.supportingOrErrorText} ${this.counterText}`,e),e.setAttribute(`hidden`,``)}renderLabel(e){if(!this.label)return K;let t;t=e?this.focused||this.populated||this.isAnimating:!this.focused&&!this.populated&&!this.isAnimating;let n={hidden:!t,floating:e,resting:!e},r=`${this.label}${this.required&&!this.noAsterisk?`*`:``}`;return I`
|
|
118
|
+
<span class="label ${B(n)}" aria-hidden=${!t}
|
|
119
|
+
>${r}</span
|
|
120
|
+
>
|
|
121
|
+
`}animateLabelIfNeeded({wasFocused:e,wasPopulated:t}){if(!this.label||(e??=this.focused,t??=this.populated,(e||t)===(this.focused||this.populated)))return;let n=this.getLabelKeyframes();n.length&&(this.isAnimating=!0,this.labelAnimation?.cancel(),this.labelAnimation=this.floatingLabelEl?.animate(n,{duration:150,easing:V.STANDARD}),this.labelAnimation?.addEventListener(`finish`,()=>{this.isAnimating=!1}))}getLabelKeyframes(){let{floatingLabelEl:e,restingLabelEl:t}=this;if(!e||!t)return[];let{x:n,y:r,height:i}=e.getBoundingClientRect(),{x:a,y:o,height:s}=t.getBoundingClientRect(),c=e.scrollWidth,l=t.scrollWidth;if(c===0||l===0)return[];let u=l/c,d=`translateX(${a-n}px) translateY(${o-r+Math.round((s-i*u)/2)}px) scale(${u})`,f=`translateX(0) translateY(0) scale(1)`,p=t.clientWidth,m=l>p?`${p/u}px`:``;return this.focused||this.populated?[{transform:d,width:m},{transform:f,width:m}]:[{transform:f,width:m},{transform:d,width:m}]}getSurfacePositionClientRect(){return this.containerEl.getBoundingClientRect()}};j([N({type:Boolean})],X.prototype,`disabled`,void 0),j([N({type:Boolean})],X.prototype,`error`,void 0),j([N({type:Boolean})],X.prototype,`focused`,void 0),j([N()],X.prototype,`label`,void 0),j([N({type:Boolean,attribute:`no-asterisk`})],X.prototype,`noAsterisk`,void 0),j([N({type:Boolean})],X.prototype,`populated`,void 0),j([N({type:Boolean})],X.prototype,`required`,void 0),j([N({type:Boolean})],X.prototype,`resizable`,void 0),j([N({attribute:`supporting-text`})],X.prototype,`supportingText`,void 0),j([N({attribute:`error-text`})],X.prototype,`errorText`,void 0),j([N({type:Number})],X.prototype,`count`,void 0),j([N({type:Number})],X.prototype,`max`,void 0),j([N({type:Boolean,attribute:`has-start`})],X.prototype,`hasStart`,void 0),j([N({type:Boolean,attribute:`has-end`})],X.prototype,`hasEnd`,void 0),j([q({slot:`aria-describedby`})],X.prototype,`slottedAriaDescribedBy`,void 0),j([P()],X.prototype,`isAnimating`,void 0),j([P()],X.prototype,`refreshErrorAlert`,void 0),j([P()],X.prototype,`disableTransitions`,void 0),j([W(`.label.floating`)],X.prototype,`floatingLabelEl`,void 0),j([W(`.label.resting`)],X.prototype,`restingLabelEl`,void 0),j([W(`.container`)],X.prototype,`containerEl`,void 0);var Xe=class extends X{renderOutline(e){return I`
|
|
122
|
+
<div class="outline">
|
|
123
|
+
<div class="outline-start"></div>
|
|
124
|
+
<div class="outline-notch">
|
|
125
|
+
<div class="outline-panel-inactive"></div>
|
|
126
|
+
<div class="outline-panel-active"></div>
|
|
127
|
+
<div class="outline-label">${e}</div>
|
|
128
|
+
</div>
|
|
129
|
+
<div class="outline-end"></div>
|
|
130
|
+
</div>
|
|
131
|
+
`}},Ze=F`@layer styles{:host{--_bottom-space: var(--md-outlined-field-bottom-space, 16px);--_content-color: var(--md-outlined-field-content-color, var(--md-sys-color-on-surface, #1d1b20));--_content-font: var(--md-outlined-field-content-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));--_content-line-height: var(--md-outlined-field-content-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));--_content-size: var(--md-outlined-field-content-size, var(--md-sys-typescale-body-large-size, 1rem));--_content-space: var(--md-outlined-field-content-space, 16px);--_content-weight: var(--md-outlined-field-content-weight, var(--md-sys-typescale-body-large-weight, var(--md-ref-typeface-weight-regular, 400)));--_disabled-content-color: var(--md-outlined-field-disabled-content-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-content-opacity: var(--md-outlined-field-disabled-content-opacity, 0.38);--_disabled-label-text-color: var(--md-outlined-field-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-label-text-opacity: var(--md-outlined-field-disabled-label-text-opacity, 0.38);--_disabled-leading-content-color: var(--md-outlined-field-disabled-leading-content-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-leading-content-opacity: var(--md-outlined-field-disabled-leading-content-opacity, 0.38);--_disabled-outline-color: var(--md-outlined-field-disabled-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-outline-opacity: var(--md-outlined-field-disabled-outline-opacity, 0.12);--_disabled-outline-width: var(--md-outlined-field-disabled-outline-width, 1px);--_disabled-supporting-text-color: var(--md-outlined-field-disabled-supporting-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-supporting-text-opacity: var(--md-outlined-field-disabled-supporting-text-opacity, 0.38);--_disabled-trailing-content-color: var(--md-outlined-field-disabled-trailing-content-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-trailing-content-opacity: var(--md-outlined-field-disabled-trailing-content-opacity, 0.38);--_error-content-color: var(--md-outlined-field-error-content-color, var(--md-sys-color-on-surface, #1d1b20));--_error-focus-content-color: var(--md-outlined-field-error-focus-content-color, var(--md-sys-color-on-surface, #1d1b20));--_error-focus-label-text-color: var(--md-outlined-field-error-focus-label-text-color, var(--md-sys-color-error, #b3261e));--_error-focus-leading-content-color: var(--md-outlined-field-error-focus-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-focus-outline-color: var(--md-outlined-field-error-focus-outline-color, var(--md-sys-color-error, #b3261e));--_error-focus-supporting-text-color: var(--md-outlined-field-error-focus-supporting-text-color, var(--md-sys-color-error, #b3261e));--_error-focus-trailing-content-color: var(--md-outlined-field-error-focus-trailing-content-color, var(--md-sys-color-error, #b3261e));--_error-hover-content-color: var(--md-outlined-field-error-hover-content-color, var(--md-sys-color-on-surface, #1d1b20));--_error-hover-label-text-color: var(--md-outlined-field-error-hover-label-text-color, var(--md-sys-color-on-error-container, #410e0b));--_error-hover-leading-content-color: var(--md-outlined-field-error-hover-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-hover-outline-color: var(--md-outlined-field-error-hover-outline-color, var(--md-sys-color-on-error-container, #410e0b));--_error-hover-supporting-text-color: var(--md-outlined-field-error-hover-supporting-text-color, var(--md-sys-color-error, #b3261e));--_error-hover-trailing-content-color: var(--md-outlined-field-error-hover-trailing-content-color, var(--md-sys-color-on-error-container, #410e0b));--_error-label-text-color: var(--md-outlined-field-error-label-text-color, var(--md-sys-color-error, #b3261e));--_error-leading-content-color: var(--md-outlined-field-error-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-outline-color: var(--md-outlined-field-error-outline-color, var(--md-sys-color-error, #b3261e));--_error-supporting-text-color: var(--md-outlined-field-error-supporting-text-color, var(--md-sys-color-error, #b3261e));--_error-trailing-content-color: var(--md-outlined-field-error-trailing-content-color, var(--md-sys-color-error, #b3261e));--_focus-content-color: var(--md-outlined-field-focus-content-color, var(--md-sys-color-on-surface, #1d1b20));--_focus-label-text-color: var(--md-outlined-field-focus-label-text-color, var(--md-sys-color-primary, #6750a4));--_focus-leading-content-color: var(--md-outlined-field-focus-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_focus-outline-color: var(--md-outlined-field-focus-outline-color, var(--md-sys-color-primary, #6750a4));--_focus-outline-width: var(--md-outlined-field-focus-outline-width, 3px);--_focus-supporting-text-color: var(--md-outlined-field-focus-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_focus-trailing-content-color: var(--md-outlined-field-focus-trailing-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-content-color: var(--md-outlined-field-hover-content-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-label-text-color: var(--md-outlined-field-hover-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-leading-content-color: var(--md-outlined-field-hover-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-outline-color: var(--md-outlined-field-hover-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-outline-width: var(--md-outlined-field-hover-outline-width, 1px);--_hover-supporting-text-color: var(--md-outlined-field-hover-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-trailing-content-color: var(--md-outlined-field-hover-trailing-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_label-text-color: var(--md-outlined-field-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_label-text-font: var(--md-outlined-field-label-text-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--md-outlined-field-label-text-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));--_label-text-padding-bottom: var(--md-outlined-field-label-text-padding-bottom, 8px);--_label-text-populated-line-height: var(--md-outlined-field-label-text-populated-line-height, var(--md-sys-typescale-body-small-line-height, 1rem));--_label-text-populated-size: var(--md-outlined-field-label-text-populated-size, var(--md-sys-typescale-body-small-size, 0.75rem));--_label-text-size: var(--md-outlined-field-label-text-size, var(--md-sys-typescale-body-large-size, 1rem));--_label-text-weight: var(--md-outlined-field-label-text-weight, var(--md-sys-typescale-body-large-weight, var(--md-ref-typeface-weight-regular, 400)));--_leading-content-color: var(--md-outlined-field-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_leading-space: var(--md-outlined-field-leading-space, 16px);--_outline-color: var(--md-outlined-field-outline-color, var(--md-sys-color-outline, #79747e));--_outline-label-padding: var(--md-outlined-field-outline-label-padding, 4px);--_outline-width: var(--md-outlined-field-outline-width, 1px);--_supporting-text-color: var(--md-outlined-field-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_supporting-text-font: var(--md-outlined-field-supporting-text-font, var(--md-sys-typescale-body-small-font, var(--md-ref-typeface-plain, Roboto)));--_supporting-text-leading-space: var(--md-outlined-field-supporting-text-leading-space, 16px);--_supporting-text-line-height: var(--md-outlined-field-supporting-text-line-height, var(--md-sys-typescale-body-small-line-height, 1rem));--_supporting-text-size: var(--md-outlined-field-supporting-text-size, var(--md-sys-typescale-body-small-size, 0.75rem));--_supporting-text-top-space: var(--md-outlined-field-supporting-text-top-space, 4px);--_supporting-text-trailing-space: var(--md-outlined-field-supporting-text-trailing-space, 16px);--_supporting-text-weight: var(--md-outlined-field-supporting-text-weight, var(--md-sys-typescale-body-small-weight, var(--md-ref-typeface-weight-regular, 400)));--_top-space: var(--md-outlined-field-top-space, 16px);--_trailing-content-color: var(--md-outlined-field-trailing-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_trailing-space: var(--md-outlined-field-trailing-space, 16px);--_with-leading-content-leading-space: var(--md-outlined-field-with-leading-content-leading-space, 12px);--_with-trailing-content-trailing-space: var(--md-outlined-field-with-trailing-content-trailing-space, 12px);--_container-shape-start-start: var(--md-outlined-field-container-shape-start-start, var(--md-outlined-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)));--_container-shape-start-end: var(--md-outlined-field-container-shape-start-end, var(--md-outlined-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)));--_container-shape-end-end: var(--md-outlined-field-container-shape-end-end, var(--md-outlined-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)));--_container-shape-end-start: var(--md-outlined-field-container-shape-end-start, var(--md-outlined-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)))}.outline{border-color:var(--_outline-color);border-radius:inherit;display:flex;pointer-events:none;height:100%;position:absolute;width:100%;z-index:1}.outline-start::before,.outline-start::after,.outline-panel-inactive::before,.outline-panel-inactive::after,.outline-panel-active::before,.outline-panel-active::after,.outline-end::before,.outline-end::after{border:inherit;content:"";inset:0;position:absolute}.outline-start,.outline-end{border:inherit;border-radius:inherit;box-sizing:border-box;position:relative}.outline-start::before,.outline-start::after,.outline-end::before,.outline-end::after{border-bottom-style:solid;border-top-style:solid}.outline-start::after,.outline-end::after{opacity:0;transition:opacity 150ms cubic-bezier(0.2, 0, 0, 1)}.focused .outline-start::after,.focused .outline-end::after{opacity:1}.outline-start::before,.outline-start::after{border-inline-start-style:solid;border-inline-end-style:none;border-start-start-radius:inherit;border-start-end-radius:0;border-end-start-radius:inherit;border-end-end-radius:0;margin-inline-end:var(--_outline-label-padding)}.outline-end{flex-grow:1;margin-inline-start:calc(-1*var(--_outline-label-padding))}.outline-end::before,.outline-end::after{border-inline-start-style:none;border-inline-end-style:solid;border-start-start-radius:0;border-start-end-radius:inherit;border-end-start-radius:0;border-end-end-radius:inherit}.outline-notch{align-items:flex-start;border:inherit;display:flex;margin-inline-start:calc(-1*var(--_outline-label-padding));margin-inline-end:var(--_outline-label-padding);max-width:calc(100% - var(--_leading-space) - var(--_trailing-space));padding:0 var(--_outline-label-padding);position:relative}.no-label .outline-notch{display:none}.outline-panel-inactive,.outline-panel-active{border:inherit;border-bottom-style:solid;inset:0;position:absolute}.outline-panel-inactive::before,.outline-panel-inactive::after,.outline-panel-active::before,.outline-panel-active::after{border-top-style:solid;border-bottom:none;bottom:auto;transform:scaleX(1);transition:transform 150ms cubic-bezier(0.2, 0, 0, 1)}.outline-panel-inactive::before,.outline-panel-active::before{right:50%;transform-origin:top left}.outline-panel-inactive::after,.outline-panel-active::after{left:50%;transform-origin:top right}.populated .outline-panel-inactive::before,.populated .outline-panel-inactive::after,.populated .outline-panel-active::before,.populated .outline-panel-active::after,.focused .outline-panel-inactive::before,.focused .outline-panel-inactive::after,.focused .outline-panel-active::before,.focused .outline-panel-active::after{transform:scaleX(0)}.outline-panel-active{opacity:0;transition:opacity 150ms cubic-bezier(0.2, 0, 0, 1)}.focused .outline-panel-active{opacity:1}.outline-label{display:flex;max-width:100%;transform:translateY(calc(-100% + var(--_label-text-padding-bottom)))}.outline-start,.field:not(.with-start) .content ::slotted(*){padding-inline-start:max(var(--_leading-space),max(var(--_container-shape-start-start),var(--_container-shape-end-start)) + var(--_outline-label-padding))}.field:not(.with-start) .label-wrapper{margin-inline-start:max(var(--_leading-space),max(var(--_container-shape-start-start),var(--_container-shape-end-start)) + var(--_outline-label-padding))}.field:not(.with-end) .content ::slotted(*){padding-inline-end:max(var(--_trailing-space),max(var(--_container-shape-start-end),var(--_container-shape-end-end)))}.field:not(.with-end) .label-wrapper{margin-inline-end:max(var(--_trailing-space),max(var(--_container-shape-start-end),var(--_container-shape-end-end)))}.outline-start::before,.outline-end::before,.outline-panel-inactive,.outline-panel-inactive::before,.outline-panel-inactive::after{border-width:var(--_outline-width)}:hover .outline{border-color:var(--_hover-outline-color);color:var(--_hover-outline-color)}:hover .outline-start::before,:hover .outline-end::before,:hover .outline-panel-inactive,:hover .outline-panel-inactive::before,:hover .outline-panel-inactive::after{border-width:var(--_hover-outline-width)}.focused .outline{border-color:var(--_focus-outline-color);color:var(--_focus-outline-color)}.outline-start::after,.outline-end::after,.outline-panel-active,.outline-panel-active::before,.outline-panel-active::after{border-width:var(--_focus-outline-width)}.disabled .outline{border-color:var(--_disabled-outline-color);color:var(--_disabled-outline-color)}.disabled .outline-start,.disabled .outline-end,.disabled .outline-panel-inactive{opacity:var(--_disabled-outline-opacity)}.disabled .outline-start::before,.disabled .outline-end::before,.disabled .outline-panel-inactive,.disabled .outline-panel-inactive::before,.disabled .outline-panel-inactive::after{border-width:var(--_disabled-outline-width)}.error .outline{border-color:var(--_error-outline-color);color:var(--_error-outline-color)}.error:hover .outline{border-color:var(--_error-hover-outline-color);color:var(--_error-hover-outline-color)}.error.focused .outline{border-color:var(--_error-focus-outline-color);color:var(--_error-focus-outline-color)}.resizable .container{bottom:var(--_focus-outline-width);inset-inline-end:var(--_focus-outline-width);clip-path:inset(var(--_focus-outline-width) 0 0 var(--_focus-outline-width))}.resizable .container>*{top:var(--_focus-outline-width);inset-inline-start:var(--_focus-outline-width)}.resizable .container:dir(rtl){clip-path:inset(var(--_focus-outline-width) var(--_focus-outline-width) 0 0)}}@layer hcm{@media(forced-colors: active){.disabled .outline{border-color:GrayText;color:GrayText}.disabled :is(.outline-start,.outline-end,.outline-panel-inactive){opacity:1}}}
|
|
132
|
+
`;Ze.styleSheet;var Qe=F`:host{display:inline-flex;resize:both}.field{display:flex;flex:1;flex-direction:column;writing-mode:horizontal-tb;max-width:100%}.container-overflow{border-start-start-radius:var(--_container-shape-start-start);border-start-end-radius:var(--_container-shape-start-end);border-end-end-radius:var(--_container-shape-end-end);border-end-start-radius:var(--_container-shape-end-start);display:flex;height:100%;position:relative}.container{align-items:center;border-radius:inherit;display:flex;flex:1;max-height:100%;min-height:100%;min-width:min-content;position:relative}.field,.container-overflow{resize:inherit}.resizable:not(.disabled) .container{resize:inherit;overflow:hidden}.disabled{pointer-events:none}slot[name=container]{border-radius:inherit}slot[name=container]::slotted(*){border-radius:inherit;inset:0;pointer-events:none;position:absolute}@layer styles{.start,.middle,.end{display:flex;box-sizing:border-box;height:100%;position:relative}.start{color:var(--_leading-content-color)}.end{color:var(--_trailing-content-color)}.start,.end{align-items:center;justify-content:center}.with-start .start{margin-inline:var(--_with-leading-content-leading-space) var(--_content-space)}.with-end .end{margin-inline:var(--_content-space) var(--_with-trailing-content-trailing-space)}.middle{align-items:stretch;align-self:baseline;flex:1}.content{color:var(--_content-color);display:flex;flex:1;opacity:0;transition:opacity 83ms cubic-bezier(0.2, 0, 0, 1)}.no-label .content,.focused .content,.populated .content{opacity:1;transition-delay:67ms}:is(.disabled,.disable-transitions) .content{transition:none}.content ::slotted(*){all:unset;color:currentColor;font-family:var(--_content-font);font-size:var(--_content-size);line-height:var(--_content-line-height);font-weight:var(--_content-weight);width:100%;overflow-wrap:revert;white-space:revert}.content ::slotted(:not(textarea)){padding-top:var(--_top-space);padding-bottom:var(--_bottom-space)}.content ::slotted(textarea){margin-top:var(--_top-space);margin-bottom:var(--_bottom-space)}:hover .content{color:var(--_hover-content-color)}:hover .start{color:var(--_hover-leading-content-color)}:hover .end{color:var(--_hover-trailing-content-color)}.focused .content{color:var(--_focus-content-color)}.focused .start{color:var(--_focus-leading-content-color)}.focused .end{color:var(--_focus-trailing-content-color)}.disabled .content{color:var(--_disabled-content-color)}.disabled.no-label .content,.disabled.focused .content,.disabled.populated .content{opacity:var(--_disabled-content-opacity)}.disabled .start{color:var(--_disabled-leading-content-color);opacity:var(--_disabled-leading-content-opacity)}.disabled .end{color:var(--_disabled-trailing-content-color);opacity:var(--_disabled-trailing-content-opacity)}.error .content{color:var(--_error-content-color)}.error .start{color:var(--_error-leading-content-color)}.error .end{color:var(--_error-trailing-content-color)}.error:hover .content{color:var(--_error-hover-content-color)}.error:hover .start{color:var(--_error-hover-leading-content-color)}.error:hover .end{color:var(--_error-hover-trailing-content-color)}.error.focused .content{color:var(--_error-focus-content-color)}.error.focused .start{color:var(--_error-focus-leading-content-color)}.error.focused .end{color:var(--_error-focus-trailing-content-color)}}@layer hcm{@media(forced-colors: active){.disabled :is(.start,.content,.end){color:GrayText;opacity:1}}}@layer styles{.label{box-sizing:border-box;color:var(--_label-text-color);overflow:hidden;max-width:100%;text-overflow:ellipsis;white-space:nowrap;z-index:1;font-family:var(--_label-text-font);font-size:var(--_label-text-size);line-height:var(--_label-text-line-height);font-weight:var(--_label-text-weight);width:min-content}.label-wrapper{inset:0;pointer-events:none;position:absolute}.label.resting{position:absolute;top:var(--_top-space)}.label.floating{font-size:var(--_label-text-populated-size);line-height:var(--_label-text-populated-line-height);transform-origin:top left}.label.hidden{opacity:0}.no-label .label{display:none}.label-wrapper{inset:0;position:absolute;text-align:initial}:hover .label{color:var(--_hover-label-text-color)}.focused .label{color:var(--_focus-label-text-color)}.disabled .label{color:var(--_disabled-label-text-color)}.disabled .label:not(.hidden){opacity:var(--_disabled-label-text-opacity)}.error .label{color:var(--_error-label-text-color)}.error:hover .label{color:var(--_error-hover-label-text-color)}.error.focused .label{color:var(--_error-focus-label-text-color)}}@layer hcm{@media(forced-colors: active){.disabled .label:not(.hidden){color:GrayText;opacity:1}}}@layer styles{.supporting-text{color:var(--_supporting-text-color);display:flex;font-family:var(--_supporting-text-font);font-size:var(--_supporting-text-size);line-height:var(--_supporting-text-line-height);font-weight:var(--_supporting-text-weight);gap:16px;justify-content:space-between;padding-inline-start:var(--_supporting-text-leading-space);padding-inline-end:var(--_supporting-text-trailing-space);padding-top:var(--_supporting-text-top-space)}.supporting-text :nth-child(2){flex-shrink:0}:hover .supporting-text{color:var(--_hover-supporting-text-color)}.focus .supporting-text{color:var(--_focus-supporting-text-color)}.disabled .supporting-text{color:var(--_disabled-supporting-text-color);opacity:var(--_disabled-supporting-text-opacity)}.error .supporting-text{color:var(--_error-supporting-text-color)}.error:hover .supporting-text{color:var(--_error-hover-supporting-text-color)}.error.focus .supporting-text{color:var(--_error-focus-supporting-text-color)}}@layer hcm{@media(forced-colors: active){.disabled .supporting-text{color:GrayText;opacity:1}}}
|
|
133
|
+
`;Qe.styleSheet;var $e=class extends Xe{};$e.styles=[Qe,Ze],$e=j([z(`md-outlined-field`)],$e);var et=F`:host{--_caret-color: var(--md-outlined-text-field-caret-color, var(--md-sys-color-primary, #6750a4));--_disabled-input-text-color: var(--md-outlined-text-field-disabled-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-input-text-opacity: var(--md-outlined-text-field-disabled-input-text-opacity, 0.38);--_disabled-label-text-color: var(--md-outlined-text-field-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-label-text-opacity: var(--md-outlined-text-field-disabled-label-text-opacity, 0.38);--_disabled-leading-icon-color: var(--md-outlined-text-field-disabled-leading-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-leading-icon-opacity: var(--md-outlined-text-field-disabled-leading-icon-opacity, 0.38);--_disabled-outline-color: var(--md-outlined-text-field-disabled-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-outline-opacity: var(--md-outlined-text-field-disabled-outline-opacity, 0.12);--_disabled-outline-width: var(--md-outlined-text-field-disabled-outline-width, 1px);--_disabled-supporting-text-color: var(--md-outlined-text-field-disabled-supporting-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-supporting-text-opacity: var(--md-outlined-text-field-disabled-supporting-text-opacity, 0.38);--_disabled-trailing-icon-color: var(--md-outlined-text-field-disabled-trailing-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-trailing-icon-opacity: var(--md-outlined-text-field-disabled-trailing-icon-opacity, 0.38);--_error-focus-caret-color: var(--md-outlined-text-field-error-focus-caret-color, var(--md-sys-color-error, #b3261e));--_error-focus-input-text-color: var(--md-outlined-text-field-error-focus-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_error-focus-label-text-color: var(--md-outlined-text-field-error-focus-label-text-color, var(--md-sys-color-error, #b3261e));--_error-focus-leading-icon-color: var(--md-outlined-text-field-error-focus-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-focus-outline-color: var(--md-outlined-text-field-error-focus-outline-color, var(--md-sys-color-error, #b3261e));--_error-focus-supporting-text-color: var(--md-outlined-text-field-error-focus-supporting-text-color, var(--md-sys-color-error, #b3261e));--_error-focus-trailing-icon-color: var(--md-outlined-text-field-error-focus-trailing-icon-color, var(--md-sys-color-error, #b3261e));--_error-hover-input-text-color: var(--md-outlined-text-field-error-hover-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_error-hover-label-text-color: var(--md-outlined-text-field-error-hover-label-text-color, var(--md-sys-color-on-error-container, #410e0b));--_error-hover-leading-icon-color: var(--md-outlined-text-field-error-hover-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-hover-outline-color: var(--md-outlined-text-field-error-hover-outline-color, var(--md-sys-color-on-error-container, #410e0b));--_error-hover-supporting-text-color: var(--md-outlined-text-field-error-hover-supporting-text-color, var(--md-sys-color-error, #b3261e));--_error-hover-trailing-icon-color: var(--md-outlined-text-field-error-hover-trailing-icon-color, var(--md-sys-color-on-error-container, #410e0b));--_error-input-text-color: var(--md-outlined-text-field-error-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_error-label-text-color: var(--md-outlined-text-field-error-label-text-color, var(--md-sys-color-error, #b3261e));--_error-leading-icon-color: var(--md-outlined-text-field-error-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-outline-color: var(--md-outlined-text-field-error-outline-color, var(--md-sys-color-error, #b3261e));--_error-supporting-text-color: var(--md-outlined-text-field-error-supporting-text-color, var(--md-sys-color-error, #b3261e));--_error-trailing-icon-color: var(--md-outlined-text-field-error-trailing-icon-color, var(--md-sys-color-error, #b3261e));--_focus-input-text-color: var(--md-outlined-text-field-focus-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_focus-label-text-color: var(--md-outlined-text-field-focus-label-text-color, var(--md-sys-color-primary, #6750a4));--_focus-leading-icon-color: var(--md-outlined-text-field-focus-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_focus-outline-color: var(--md-outlined-text-field-focus-outline-color, var(--md-sys-color-primary, #6750a4));--_focus-outline-width: var(--md-outlined-text-field-focus-outline-width, 3px);--_focus-supporting-text-color: var(--md-outlined-text-field-focus-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_focus-trailing-icon-color: var(--md-outlined-text-field-focus-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-input-text-color: var(--md-outlined-text-field-hover-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-label-text-color: var(--md-outlined-text-field-hover-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-leading-icon-color: var(--md-outlined-text-field-hover-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-outline-color: var(--md-outlined-text-field-hover-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-outline-width: var(--md-outlined-text-field-hover-outline-width, 1px);--_hover-supporting-text-color: var(--md-outlined-text-field-hover-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-trailing-icon-color: var(--md-outlined-text-field-hover-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_input-text-color: var(--md-outlined-text-field-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_input-text-font: var(--md-outlined-text-field-input-text-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));--_input-text-line-height: var(--md-outlined-text-field-input-text-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));--_input-text-placeholder-color: var(--md-outlined-text-field-input-text-placeholder-color, var(--md-sys-color-on-surface-variant, #49454f));--_input-text-prefix-color: var(--md-outlined-text-field-input-text-prefix-color, var(--md-sys-color-on-surface-variant, #49454f));--_input-text-size: var(--md-outlined-text-field-input-text-size, var(--md-sys-typescale-body-large-size, 1rem));--_input-text-suffix-color: var(--md-outlined-text-field-input-text-suffix-color, var(--md-sys-color-on-surface-variant, #49454f));--_input-text-weight: var(--md-outlined-text-field-input-text-weight, var(--md-sys-typescale-body-large-weight, var(--md-ref-typeface-weight-regular, 400)));--_label-text-color: var(--md-outlined-text-field-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_label-text-font: var(--md-outlined-text-field-label-text-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--md-outlined-text-field-label-text-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));--_label-text-populated-line-height: var(--md-outlined-text-field-label-text-populated-line-height, var(--md-sys-typescale-body-small-line-height, 1rem));--_label-text-populated-size: var(--md-outlined-text-field-label-text-populated-size, var(--md-sys-typescale-body-small-size, 0.75rem));--_label-text-size: var(--md-outlined-text-field-label-text-size, var(--md-sys-typescale-body-large-size, 1rem));--_label-text-weight: var(--md-outlined-text-field-label-text-weight, var(--md-sys-typescale-body-large-weight, var(--md-ref-typeface-weight-regular, 400)));--_leading-icon-color: var(--md-outlined-text-field-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_leading-icon-size: var(--md-outlined-text-field-leading-icon-size, 24px);--_outline-color: var(--md-outlined-text-field-outline-color, var(--md-sys-color-outline, #79747e));--_outline-width: var(--md-outlined-text-field-outline-width, 1px);--_supporting-text-color: var(--md-outlined-text-field-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_supporting-text-font: var(--md-outlined-text-field-supporting-text-font, var(--md-sys-typescale-body-small-font, var(--md-ref-typeface-plain, Roboto)));--_supporting-text-line-height: var(--md-outlined-text-field-supporting-text-line-height, var(--md-sys-typescale-body-small-line-height, 1rem));--_supporting-text-size: var(--md-outlined-text-field-supporting-text-size, var(--md-sys-typescale-body-small-size, 0.75rem));--_supporting-text-weight: var(--md-outlined-text-field-supporting-text-weight, var(--md-sys-typescale-body-small-weight, var(--md-ref-typeface-weight-regular, 400)));--_trailing-icon-color: var(--md-outlined-text-field-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_trailing-icon-size: var(--md-outlined-text-field-trailing-icon-size, 24px);--_container-shape-start-start: var(--md-outlined-text-field-container-shape-start-start, var(--md-outlined-text-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)));--_container-shape-start-end: var(--md-outlined-text-field-container-shape-start-end, var(--md-outlined-text-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)));--_container-shape-end-end: var(--md-outlined-text-field-container-shape-end-end, var(--md-outlined-text-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)));--_container-shape-end-start: var(--md-outlined-text-field-container-shape-end-start, var(--md-outlined-text-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)));--_icon-input-space: var(--md-outlined-text-field-icon-input-space, 16px);--_leading-space: var(--md-outlined-text-field-leading-space, 16px);--_trailing-space: var(--md-outlined-text-field-trailing-space, 16px);--_top-space: var(--md-outlined-text-field-top-space, 16px);--_bottom-space: var(--md-outlined-text-field-bottom-space, 16px);--_input-text-prefix-trailing-space: var(--md-outlined-text-field-input-text-prefix-trailing-space, 2px);--_input-text-suffix-leading-space: var(--md-outlined-text-field-input-text-suffix-leading-space, 2px);--_focus-caret-color: var(--md-outlined-text-field-focus-caret-color, var(--md-sys-color-primary, #6750a4));--_with-leading-icon-leading-space: var(--md-outlined-text-field-with-leading-icon-leading-space, 12px);--_with-trailing-icon-trailing-space: var(--md-outlined-text-field-with-trailing-icon-trailing-space, 12px);--md-outlined-field-bottom-space: var(--_bottom-space);--md-outlined-field-container-shape-end-end: var(--_container-shape-end-end);--md-outlined-field-container-shape-end-start: var(--_container-shape-end-start);--md-outlined-field-container-shape-start-end: var(--_container-shape-start-end);--md-outlined-field-container-shape-start-start: var(--_container-shape-start-start);--md-outlined-field-content-color: var(--_input-text-color);--md-outlined-field-content-font: var(--_input-text-font);--md-outlined-field-content-line-height: var(--_input-text-line-height);--md-outlined-field-content-size: var(--_input-text-size);--md-outlined-field-content-space: var(--_icon-input-space);--md-outlined-field-content-weight: var(--_input-text-weight);--md-outlined-field-disabled-content-color: var(--_disabled-input-text-color);--md-outlined-field-disabled-content-opacity: var(--_disabled-input-text-opacity);--md-outlined-field-disabled-label-text-color: var(--_disabled-label-text-color);--md-outlined-field-disabled-label-text-opacity: var(--_disabled-label-text-opacity);--md-outlined-field-disabled-leading-content-color: var(--_disabled-leading-icon-color);--md-outlined-field-disabled-leading-content-opacity: var(--_disabled-leading-icon-opacity);--md-outlined-field-disabled-outline-color: var(--_disabled-outline-color);--md-outlined-field-disabled-outline-opacity: var(--_disabled-outline-opacity);--md-outlined-field-disabled-outline-width: var(--_disabled-outline-width);--md-outlined-field-disabled-supporting-text-color: var(--_disabled-supporting-text-color);--md-outlined-field-disabled-supporting-text-opacity: var(--_disabled-supporting-text-opacity);--md-outlined-field-disabled-trailing-content-color: var(--_disabled-trailing-icon-color);--md-outlined-field-disabled-trailing-content-opacity: var(--_disabled-trailing-icon-opacity);--md-outlined-field-error-content-color: var(--_error-input-text-color);--md-outlined-field-error-focus-content-color: var(--_error-focus-input-text-color);--md-outlined-field-error-focus-label-text-color: var(--_error-focus-label-text-color);--md-outlined-field-error-focus-leading-content-color: var(--_error-focus-leading-icon-color);--md-outlined-field-error-focus-outline-color: var(--_error-focus-outline-color);--md-outlined-field-error-focus-supporting-text-color: var(--_error-focus-supporting-text-color);--md-outlined-field-error-focus-trailing-content-color: var(--_error-focus-trailing-icon-color);--md-outlined-field-error-hover-content-color: var(--_error-hover-input-text-color);--md-outlined-field-error-hover-label-text-color: var(--_error-hover-label-text-color);--md-outlined-field-error-hover-leading-content-color: var(--_error-hover-leading-icon-color);--md-outlined-field-error-hover-outline-color: var(--_error-hover-outline-color);--md-outlined-field-error-hover-supporting-text-color: var(--_error-hover-supporting-text-color);--md-outlined-field-error-hover-trailing-content-color: var(--_error-hover-trailing-icon-color);--md-outlined-field-error-label-text-color: var(--_error-label-text-color);--md-outlined-field-error-leading-content-color: var(--_error-leading-icon-color);--md-outlined-field-error-outline-color: var(--_error-outline-color);--md-outlined-field-error-supporting-text-color: var(--_error-supporting-text-color);--md-outlined-field-error-trailing-content-color: var(--_error-trailing-icon-color);--md-outlined-field-focus-content-color: var(--_focus-input-text-color);--md-outlined-field-focus-label-text-color: var(--_focus-label-text-color);--md-outlined-field-focus-leading-content-color: var(--_focus-leading-icon-color);--md-outlined-field-focus-outline-color: var(--_focus-outline-color);--md-outlined-field-focus-outline-width: var(--_focus-outline-width);--md-outlined-field-focus-supporting-text-color: var(--_focus-supporting-text-color);--md-outlined-field-focus-trailing-content-color: var(--_focus-trailing-icon-color);--md-outlined-field-hover-content-color: var(--_hover-input-text-color);--md-outlined-field-hover-label-text-color: var(--_hover-label-text-color);--md-outlined-field-hover-leading-content-color: var(--_hover-leading-icon-color);--md-outlined-field-hover-outline-color: var(--_hover-outline-color);--md-outlined-field-hover-outline-width: var(--_hover-outline-width);--md-outlined-field-hover-supporting-text-color: var(--_hover-supporting-text-color);--md-outlined-field-hover-trailing-content-color: var(--_hover-trailing-icon-color);--md-outlined-field-label-text-color: var(--_label-text-color);--md-outlined-field-label-text-font: var(--_label-text-font);--md-outlined-field-label-text-line-height: var(--_label-text-line-height);--md-outlined-field-label-text-populated-line-height: var(--_label-text-populated-line-height);--md-outlined-field-label-text-populated-size: var(--_label-text-populated-size);--md-outlined-field-label-text-size: var(--_label-text-size);--md-outlined-field-label-text-weight: var(--_label-text-weight);--md-outlined-field-leading-content-color: var(--_leading-icon-color);--md-outlined-field-leading-space: var(--_leading-space);--md-outlined-field-outline-color: var(--_outline-color);--md-outlined-field-outline-width: var(--_outline-width);--md-outlined-field-supporting-text-color: var(--_supporting-text-color);--md-outlined-field-supporting-text-font: var(--_supporting-text-font);--md-outlined-field-supporting-text-line-height: var(--_supporting-text-line-height);--md-outlined-field-supporting-text-size: var(--_supporting-text-size);--md-outlined-field-supporting-text-weight: var(--_supporting-text-weight);--md-outlined-field-top-space: var(--_top-space);--md-outlined-field-trailing-content-color: var(--_trailing-icon-color);--md-outlined-field-trailing-space: var(--_trailing-space);--md-outlined-field-with-leading-content-leading-space: var(--_with-leading-icon-leading-space);--md-outlined-field-with-trailing-content-trailing-space: var(--_with-trailing-icon-trailing-space)}
|
|
134
|
+
`;et.styleSheet;var{I:tt}=M,nt=e=>e.strings===void 0,rt={},it=(e,t=rt)=>e._$AH=t,at=se(class extends oe{constructor(e){if(super(e),e.type!==L.PROPERTY&&e.type!==L.ATTRIBUTE&&e.type!==L.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!nt(e))throw Error("`live` bindings can only contain a single expression")}render(e){return e}update(e,[t]){if(t===G||t===K)return t;let n=e.element,r=e.name;if(e.type===L.PROPERTY){if(t===n[r])return G}else if(e.type===L.BOOLEAN_ATTRIBUTE){if(!!t===n.hasAttribute(r))return G}else if(e.type===L.ATTRIBUTE&&n.getAttribute(r)===t+``)return G;return it(e),t}}),ot=`important`,st=` !`+ot,ct=se(class extends oe{constructor(e){if(super(e),e.type!==L.ATTRIBUTE||e.name!==`style`||e.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(e){return Object.keys(e).reduce((t,n)=>{let r=e[n];return r==null?t:t+`${n=n.includes(`-`)?n:n.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,`-$&`).toLowerCase()}:${r};`},``)}update(e,[t]){let{style:n}=e.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(t)),this.render(t);for(let e of this.ft)t[e]??(this.ft.delete(e),e.includes(`-`)?n.removeProperty(e):n[e]=null);for(let e in t){let r=t[e];if(r!=null){this.ft.add(e);let t=typeof r==`string`&&r.endsWith(st);e.includes(`-`)||t?n.setProperty(e,t?r.slice(0,-11):r,t?ot:``):n[e]=r}}return G}}),lt={fromAttribute(e){return e??``},toAttribute(e){return e||null}},ut=Symbol(`createValidator`),dt=Symbol(`getValidityAnchor`),ft=Symbol(`privateValidator`),Z=Symbol(`privateSyncValidity`),pt=Symbol(`privateCustomValidationMessage`);function mt(e){var t;class n extends e{constructor(){super(...arguments),this[t]=``}get validity(){return this[Z](),this[R].validity}get validationMessage(){return this[Z](),this[R].validationMessage}get willValidate(){return this[Z](),this[R].willValidate}checkValidity(){return this[Z](),this[R].checkValidity()}reportValidity(){return this[Z](),this[R].reportValidity()}setCustomValidity(e){this[pt]=e,this[Z]()}requestUpdate(e,t,n){super.requestUpdate(e,t,n),this[Z]()}firstUpdated(e){super.firstUpdated(e),this[Z]()}[(t=pt,Z)](){this[ft]||(this[ft]=this[ut]());let{validity:e,validationMessage:t}=this[ft].getValidity(),n=!!this[pt],r=this[pt]||t;this[R].setValidity({...e,customError:n},r,this[dt]()??void 0)}[ut](){throw Error(`Implement [createValidator]`)}[dt](){throw Error(`Implement [getValidityAnchor]`)}}return n}var ht=Symbol(`onReportValidity`),gt=Symbol(`privateCleanupFormListeners`),_t=Symbol(`privateDoNotReportInvalid`),vt=Symbol(`privateIsSelfReportingValidity`),yt=Symbol(`privateCallOnReportValidity`);function bt(e){var t,n,r;class i extends e{constructor(...e){super(...e),this[t]=new AbortController,this[n]=!1,this[r]=!1,this.addEventListener(`invalid`,e=>{!this[_t]&&e.isTrusted&&this.addEventListener(`invalid`,()=>{this[yt](e)},{once:!0})},{capture:!0})}checkValidity(){this[_t]=!0;let e=super.checkValidity();return this[_t]=!1,e}reportValidity(){this[vt]=!0;let e=super.reportValidity();return e&&this[yt](null),this[vt]=!1,e}[(t=gt,n=_t,r=vt,yt)](e){let t=e?.defaultPrevented;t||(this[ht](e),!t&&e?.defaultPrevented&&(this[vt]||wt(this[R].form,this))&&this.focus())}[ht](e){throw Error(`Implement [onReportValidity]`)}formAssociatedCallback(e){super.formAssociatedCallback&&super.formAssociatedCallback(e),this[gt].abort(),e&&(this[gt]=new AbortController,xt(this,e,()=>{this[yt](null)},this[gt].signal))}}return i}function xt(e,t,n,r){let i=Ct(t),a=!1,o,s=!1;i.addEventListener(`before`,()=>{s=!0,o=new AbortController,a=!1,e.addEventListener(`invalid`,()=>{a=!0},{signal:o.signal})},{signal:r}),i.addEventListener(`after`,()=>{s=!1,o?.abort(),a||n()},{signal:r}),t.addEventListener(`submit`,()=>{s||n()},{signal:r})}var St=new WeakMap;function Ct(e){if(!St.has(e)){let t=new EventTarget;St.set(e,t);for(let n of[`reportValidity`,`requestSubmit`]){let r=e[n];e[n]=function(){t.dispatchEvent(new Event(`before`));let e=Reflect.apply(r,this,arguments);return t.dispatchEvent(new Event(`after`)),e}}}return St.get(e)}function wt(e,t){if(!e)return!0;let n;for(let t of e.elements)if(t.matches(`:invalid`)){n=t;break}return n===t}var Tt=class{constructor(e){this.getCurrentState=e,this.currentValidity={validity:{},validationMessage:``}}getValidity(){let e=this.getCurrentState();if(this.prevState&&this.equals(this.prevState,e))return this.currentValidity;let{validity:t,validationMessage:n}=this.computeValidity(e);return this.prevState=this.copy(e),this.currentValidity={validationMessage:n,validity:{badInput:t.badInput,customError:t.customError,patternMismatch:t.patternMismatch,rangeOverflow:t.rangeOverflow,rangeUnderflow:t.rangeUnderflow,stepMismatch:t.stepMismatch,tooLong:t.tooLong,tooShort:t.tooShort,typeMismatch:t.typeMismatch,valueMissing:t.valueMissing}},this.currentValidity}},Et=class extends Tt{computeValidity({state:e,renderedControl:t}){let n=t;Q(e)&&!n?(n=this.inputControl||document.createElement(`input`),this.inputControl=n):n||(n=this.textAreaControl||document.createElement(`textarea`),this.textAreaControl=n);let r=Q(e)?n:null;if(r&&(r.type=e.type),n.value!==e.value&&(n.value=e.value),n.required=e.required,r){let t=e;t.pattern?r.pattern=t.pattern:r.removeAttribute(`pattern`),t.min?r.min=t.min:r.removeAttribute(`min`),t.max?r.max=t.max:r.removeAttribute(`max`),t.step?r.step=t.step:r.removeAttribute(`step`)}return(e.minLength??-1)>-1?n.setAttribute(`minlength`,String(e.minLength)):n.removeAttribute(`minlength`),(e.maxLength??-1)>-1?n.setAttribute(`maxlength`,String(e.maxLength)):n.removeAttribute(`maxlength`),{validity:n.validity,validationMessage:n.validationMessage}}equals({state:e},{state:t}){let n=e.type===t.type&&e.value===t.value&&e.required===t.required&&e.minLength===t.minLength&&e.maxLength===t.maxLength;return!Q(e)||!Q(t)?n:n&&e.pattern===t.pattern&&e.min===t.min&&e.max===t.max&&e.step===t.step}copy({state:e}){return{state:Q(e)?this.copyInput(e):this.copyTextArea(e),renderedControl:null}}copyInput(e){let{type:t,pattern:n,min:r,max:i,step:a}=e;return{...this.copySharedState(e),type:t,pattern:n,min:r,max:i,step:a}}copyTextArea(e){return{...this.copySharedState(e),type:e.type}}copySharedState({value:e,required:t,minLength:n,maxLength:r}){return{value:e,required:t,minLength:n,maxLength:r}}};function Q(e){return e.type!==`textarea`}var Dt=fe(bt(mt(de(le(U))))),$=class extends Dt{constructor(){super(...arguments),this.error=!1,this.errorText=``,this.label=``,this.noAsterisk=!1,this.required=!1,this.value=``,this.prefixText=``,this.suffixText=``,this.hasLeadingIcon=!1,this.hasTrailingIcon=!1,this.supportingText=``,this.textDirection=``,this.rows=2,this.cols=20,this.inputMode=``,this.max=``,this.maxLength=-1,this.min=``,this.minLength=-1,this.noSpinner=!1,this.pattern=``,this.placeholder=``,this.readOnly=!1,this.multiple=!1,this.step=``,this.type=`text`,this.autocomplete=``,this.dirty=!1,this.focused=!1,this.nativeError=!1,this.nativeErrorText=``}get selectionDirection(){return this.getInputOrTextarea().selectionDirection}set selectionDirection(e){this.getInputOrTextarea().selectionDirection=e}get selectionEnd(){return this.getInputOrTextarea().selectionEnd}set selectionEnd(e){this.getInputOrTextarea().selectionEnd=e}get selectionStart(){return this.getInputOrTextarea().selectionStart}set selectionStart(e){this.getInputOrTextarea().selectionStart=e}get valueAsNumber(){let e=this.getInput();return e?e.valueAsNumber:NaN}set valueAsNumber(e){let t=this.getInput();t&&(t.valueAsNumber=e,this.value=t.value)}get valueAsDate(){let e=this.getInput();return e?e.valueAsDate:null}set valueAsDate(e){let t=this.getInput();t&&(t.valueAsDate=e,this.value=t.value)}get hasError(){return this.error||this.nativeError}select(){this.getInputOrTextarea().select()}setRangeText(...e){this.getInputOrTextarea().setRangeText(...e),this.value=this.getInputOrTextarea().value}setSelectionRange(e,t,n){this.getInputOrTextarea().setSelectionRange(e,t,n)}showPicker(){let e=this.getInput();e&&e.showPicker()}stepDown(e){let t=this.getInput();t&&(t.stepDown(e),this.value=t.value)}stepUp(e){let t=this.getInput();t&&(t.stepUp(e),this.value=t.value)}reset(){this.dirty=!1,this.value=this.getAttribute(`value`)??``,this.nativeError=!1,this.nativeErrorText=``}attributeChangedCallback(e,t,n){e===`value`&&this.dirty||super.attributeChangedCallback(e,t,n)}render(){let e={disabled:this.disabled,error:!this.disabled&&this.hasError,textarea:this.type===`textarea`,"no-spinner":this.noSpinner};return I`
|
|
135
|
+
<span class="text-field ${B(e)}">
|
|
136
|
+
${this.renderField()}
|
|
137
|
+
</span>
|
|
138
|
+
`}updated(e){let t=this.getInputOrTextarea().value;this.value!==t&&(this.value=t)}renderField(){return ae`<${this.fieldTag}
|
|
139
|
+
class="field"
|
|
140
|
+
count=${this.value.length}
|
|
141
|
+
?disabled=${this.disabled}
|
|
142
|
+
?error=${this.hasError}
|
|
143
|
+
error-text=${this.getErrorText()}
|
|
144
|
+
?focused=${this.focused}
|
|
145
|
+
?has-end=${this.hasTrailingIcon}
|
|
146
|
+
?has-start=${this.hasLeadingIcon}
|
|
147
|
+
label=${this.label}
|
|
148
|
+
?no-asterisk=${this.noAsterisk}
|
|
149
|
+
max=${this.maxLength}
|
|
150
|
+
?populated=${!!this.value}
|
|
151
|
+
?required=${this.required}
|
|
152
|
+
?resizable=${this.type===`textarea`}
|
|
153
|
+
supporting-text=${this.supportingText}
|
|
154
|
+
>
|
|
155
|
+
${this.renderLeadingIcon()}
|
|
156
|
+
${this.renderInputOrTextarea()}
|
|
157
|
+
${this.renderTrailingIcon()}
|
|
158
|
+
<div id="description" slot="aria-describedby"></div>
|
|
159
|
+
<slot name="container" slot="container"></slot>
|
|
160
|
+
</${this.fieldTag}>`}renderLeadingIcon(){return I`
|
|
161
|
+
<span class="icon leading" slot="start">
|
|
162
|
+
<slot name="leading-icon" @slotchange=${this.handleIconChange}></slot>
|
|
163
|
+
</span>
|
|
164
|
+
`}renderTrailingIcon(){return I`
|
|
165
|
+
<span class="icon trailing" slot="end">
|
|
166
|
+
<slot name="trailing-icon" @slotchange=${this.handleIconChange}></slot>
|
|
167
|
+
</span>
|
|
168
|
+
`}renderInputOrTextarea(){let e={direction:this.textDirection},t=this.ariaLabel||this.label||K,n=this.autocomplete,r=(this.maxLength??-1)>-1,i=(this.minLength??-1)>-1;if(this.type===`textarea`)return I`
|
|
169
|
+
<textarea
|
|
170
|
+
class="input"
|
|
171
|
+
style=${ct(e)}
|
|
172
|
+
aria-describedby="description"
|
|
173
|
+
aria-invalid=${this.hasError}
|
|
174
|
+
aria-label=${t}
|
|
175
|
+
autocomplete=${n||K}
|
|
176
|
+
name=${this.name||K}
|
|
177
|
+
?disabled=${this.disabled}
|
|
178
|
+
maxlength=${r?this.maxLength:K}
|
|
179
|
+
minlength=${i?this.minLength:K}
|
|
180
|
+
placeholder=${this.placeholder||K}
|
|
181
|
+
?readonly=${this.readOnly}
|
|
182
|
+
?required=${this.required}
|
|
183
|
+
rows=${this.rows}
|
|
184
|
+
cols=${this.cols}
|
|
185
|
+
.value=${at(this.value)}
|
|
186
|
+
@change=${this.redispatchEvent}
|
|
187
|
+
@focus=${this.handleFocusChange}
|
|
188
|
+
@blur=${this.handleFocusChange}
|
|
189
|
+
@input=${this.handleInput}
|
|
190
|
+
@select=${this.redispatchEvent}></textarea>
|
|
191
|
+
`;let a=this.renderPrefix(),o=this.renderSuffix(),s=this.inputMode;return I`
|
|
192
|
+
<div class="input-wrapper">
|
|
193
|
+
${a}
|
|
194
|
+
<input
|
|
195
|
+
class="input"
|
|
196
|
+
style=${ct(e)}
|
|
197
|
+
aria-describedby="description"
|
|
198
|
+
aria-invalid=${this.hasError}
|
|
199
|
+
aria-label=${t}
|
|
200
|
+
autocomplete=${n||K}
|
|
201
|
+
name=${this.name||K}
|
|
202
|
+
?disabled=${this.disabled}
|
|
203
|
+
inputmode=${s||K}
|
|
204
|
+
max=${this.max||K}
|
|
205
|
+
maxlength=${r?this.maxLength:K}
|
|
206
|
+
min=${this.min||K}
|
|
207
|
+
minlength=${i?this.minLength:K}
|
|
208
|
+
pattern=${this.pattern||K}
|
|
209
|
+
placeholder=${this.placeholder||K}
|
|
210
|
+
?readonly=${this.readOnly}
|
|
211
|
+
?required=${this.required}
|
|
212
|
+
?multiple=${this.multiple}
|
|
213
|
+
step=${this.step||K}
|
|
214
|
+
type=${this.type}
|
|
215
|
+
.value=${at(this.value)}
|
|
216
|
+
@change=${this.redispatchEvent}
|
|
217
|
+
@focus=${this.handleFocusChange}
|
|
218
|
+
@blur=${this.handleFocusChange}
|
|
219
|
+
@input=${this.handleInput}
|
|
220
|
+
@select=${this.redispatchEvent} />
|
|
221
|
+
${o}
|
|
222
|
+
</div>
|
|
223
|
+
`}renderPrefix(){return this.renderAffix(this.prefixText,!1)}renderSuffix(){return this.renderAffix(this.suffixText,!0)}renderAffix(e,t){return e?I`<span class="${B({suffix:t,prefix:!t})}">${e}</span>`:K}getErrorText(){return this.error?this.errorText:this.nativeErrorText}handleFocusChange(){this.focused=this.inputOrTextarea?.matches(`:focus`)??!1}handleInput(e){this.dirty=!0,this.value=e.target.value}redispatchEvent(e){Ee(this,e)}getInputOrTextarea(){return this.inputOrTextarea||(this.connectedCallback(),this.scheduleUpdate()),this.isUpdatePending&&this.scheduleUpdate(),this.inputOrTextarea}getInput(){return this.type===`textarea`?null:this.getInputOrTextarea()}handleIconChange(){this.hasLeadingIcon=this.leadingIcons.length>0,this.hasTrailingIcon=this.trailingIcons.length>0}[ue](){return this.value}formResetCallback(){this.reset()}formStateRestoreCallback(e){this.value=e}focus(){this.getInputOrTextarea().focus()}[ut](){return new Et(()=>({state:this,renderedControl:this.inputOrTextarea}))}[dt](){return this.inputOrTextarea}[ht](e){e?.preventDefault();let t=this.getErrorText();this.nativeError=!!e,this.nativeErrorText=this.validationMessage,t===this.getErrorText()&&this.field?.reannounceError()}};$.shadowRootOptions={...U.shadowRootOptions,delegatesFocus:!0},j([N({type:Boolean,reflect:!0})],$.prototype,`error`,void 0),j([N({attribute:`error-text`})],$.prototype,`errorText`,void 0),j([N()],$.prototype,`label`,void 0),j([N({type:Boolean,attribute:`no-asterisk`})],$.prototype,`noAsterisk`,void 0),j([N({type:Boolean,reflect:!0})],$.prototype,`required`,void 0),j([N()],$.prototype,`value`,void 0),j([N({attribute:`prefix-text`})],$.prototype,`prefixText`,void 0),j([N({attribute:`suffix-text`})],$.prototype,`suffixText`,void 0),j([N({type:Boolean,attribute:`has-leading-icon`})],$.prototype,`hasLeadingIcon`,void 0),j([N({type:Boolean,attribute:`has-trailing-icon`})],$.prototype,`hasTrailingIcon`,void 0),j([N({attribute:`supporting-text`})],$.prototype,`supportingText`,void 0),j([N({attribute:`text-direction`})],$.prototype,`textDirection`,void 0),j([N({type:Number})],$.prototype,`rows`,void 0),j([N({type:Number})],$.prototype,`cols`,void 0),j([N({reflect:!0})],$.prototype,`inputMode`,void 0),j([N()],$.prototype,`max`,void 0),j([N({type:Number})],$.prototype,`maxLength`,void 0),j([N()],$.prototype,`min`,void 0),j([N({type:Number})],$.prototype,`minLength`,void 0),j([N({type:Boolean,attribute:`no-spinner`})],$.prototype,`noSpinner`,void 0),j([N()],$.prototype,`pattern`,void 0),j([N({reflect:!0,converter:lt})],$.prototype,`placeholder`,void 0),j([N({type:Boolean,reflect:!0})],$.prototype,`readOnly`,void 0),j([N({type:Boolean,reflect:!0})],$.prototype,`multiple`,void 0),j([N()],$.prototype,`step`,void 0),j([N({reflect:!0})],$.prototype,`type`,void 0),j([N({reflect:!0})],$.prototype,`autocomplete`,void 0),j([P()],$.prototype,`dirty`,void 0),j([P()],$.prototype,`focused`,void 0),j([P()],$.prototype,`nativeError`,void 0),j([P()],$.prototype,`nativeErrorText`,void 0),j([W(`.input`)],$.prototype,`inputOrTextarea`,void 0),j([W(`.field`)],$.prototype,`field`,void 0),j([q({slot:`leading-icon`})],$.prototype,`leadingIcons`,void 0),j([q({slot:`trailing-icon`})],$.prototype,`trailingIcons`,void 0);var Ot=class extends ${constructor(){super(...arguments),this.fieldTag=ie`md-outlined-field`}},kt=F`:host{display:inline-flex;outline:none;resize:both;text-align:start;-webkit-tap-highlight-color:rgba(0,0,0,0)}.text-field,.field{width:100%}.text-field{display:inline-flex}.field{cursor:text}.disabled .field{cursor:default}.text-field,.textarea .field{resize:inherit}slot[name=container]{border-radius:inherit}.icon{color:currentColor;display:flex;align-items:center;justify-content:center;fill:currentColor;position:relative}.icon ::slotted(*){display:flex;position:absolute}[has-start] .icon.leading{font-size:var(--_leading-icon-size);height:var(--_leading-icon-size);width:var(--_leading-icon-size)}[has-end] .icon.trailing{font-size:var(--_trailing-icon-size);height:var(--_trailing-icon-size);width:var(--_trailing-icon-size)}.input-wrapper{display:flex}.input-wrapper>*{all:inherit;padding:0}.input{caret-color:var(--_caret-color);overflow-x:hidden;text-align:inherit}.input::placeholder{color:currentColor;opacity:1}.input::-webkit-calendar-picker-indicator{display:none}.input::-webkit-search-decoration,.input::-webkit-search-cancel-button{display:none}@media(forced-colors: active){.input{background:none}}.no-spinner .input::-webkit-inner-spin-button,.no-spinner .input::-webkit-outer-spin-button{display:none}.no-spinner .input[type=number]{-moz-appearance:textfield}:focus-within .input{caret-color:var(--_focus-caret-color)}.error:focus-within .input{caret-color:var(--_error-focus-caret-color)}.text-field:not(.disabled) .prefix{color:var(--_input-text-prefix-color)}.text-field:not(.disabled) .suffix{color:var(--_input-text-suffix-color)}.text-field:not(.disabled) .input::placeholder{color:var(--_input-text-placeholder-color)}.prefix,.suffix{text-wrap:nowrap;width:min-content}.prefix{padding-inline-end:var(--_input-text-prefix-trailing-space)}.suffix{padding-inline-start:var(--_input-text-suffix-leading-space)}
|
|
224
|
+
`;kt.styleSheet;var At=class extends Ot{constructor(){super(...arguments),this.fieldTag=ie`md-outlined-field`}};At.styles=[kt,et],At=j([z(`md-outlined-text-field`)],At);var jt=p(`<p role="alert" class="failure svelte-2k1elc"> </p>`),Mt=p(`<md-dialog><div slot="headline">Start a session</div> <form slot="content" id="start-session-form" novalidate="" class="svelte-2k1elc"><md-outlined-text-field></md-outlined-text-field> <md-outlined-text-field></md-outlined-text-field> <!></form> <div slot="actions"><md-text-button>Cancel</md-text-button> <md-text-button>Start</md-text-button></div></md-dialog>`,2);function Nt(o,l){t(l,!0);let u=a(``),f=a(``),p=a(``),h=a(``),x=a(!1);e(()=>{l.open&&(i(u,``),i(f,``),i(p,``),i(h,``))});async function S(e){if(e.preventDefault(),d(x))return;let t=d(u).trim();if(t===``)i(p,`Enter a name.`);else{i(p,``),i(h,``),i(x,!0);try{await l.onStart(t,d(f).trim()===``?null:d(f).trim()),l.onClose()}catch(e){i(h,e instanceof Error?e.message:`The session could not be started.`,!0)}finally{i(x,!1)}}}var C=Mt();y(()=>_(C,`open`,l.open)),b(C,1,`svelte-2k1elc`);var w=c(v(C),2),T=v(w);_(T,`label`,`Name`),_(T,`required`,!0),y(()=>_(T,`maxlength`,ce.sessionLabelLength)),y(()=>_(T,`value`,d(u))),y(()=>_(T,`error`,d(p)!==``)),y(()=>_(T,`error-text`,d(p)));var k=c(T,2);_(k,`label`,`Run (optional)`),_(k,`supporting-text`,`Groups sessions, for example one run id per test run.`),y(()=>_(k,`maxlength`,ce.sessionLabelLength)),y(()=>_(k,`value`,d(f)));var A=c(k,2),ee=e=>{var t=jt(),n=s(t,!0);y(()=>g(n,d(h))),E(e,t)};m(A,e=>{d(h)!==``&&e(ee)}),r(w);var j=c(w,2),M=v(j);_(M,`type`,`button`);var N=c(M,2);_(N,`type`,`submit`),_(N,`form`,`start-session-form`),y(()=>_(N,`disabled`,d(x))),r(j),r(C),D(`closed`,C,function(...e){l.onClose?.apply(this,e)}),D(`submit`,w,S),n(`input`,T,e=>i(u,e.target.value,!0)),n(`input`,k,e=>i(f,e.target.value,!0)),n(`click`,M,function(...e){l.onClose?.apply(this,e)}),E(o,C),O()}u([`input`,`click`]);var Pt=p(`<p class="empty svelte-1fz71rn">No sessions in the buffer. Start one with the play button.</p>`),Ft=p(`<ul aria-labelledby="sessions-heading" class="svelte-1fz71rn"></ul>`),It=p(`<section aria-labelledby="sessions-heading" class="svelte-1fz71rn"><header class="svelte-1fz71rn"><h2 id="sessions-heading" class="svelte-1fz71rn">Sessions</h2> <md-icon-button><md-icon> </md-icon></md-icon-button></header> <!></section> <!> <!>`,3);function Lt(e,u){t(u,!0);let f=a(!1),p=a(!1),h=l(()=>u.currentId===null?`Start a session`:`End session ${u.currentId}`);var x=It(),S=o(x),w=v(S),D=c(v(w),2);y(()=>_(D,`title`,d(h))),y(()=>_(D,`aria-label`,d(h)));var k=v(D);_(k,`aria-hidden`,`true`);var A=s(k,!0);r(D),r(w);var ee=c(w,2),j=e=>{var t=Pt();E(e,t)},M=e=>{var t=Ft();T(t,21,()=>u.sessions,e=>e.id,(e,t)=>{{let n=l(()=>d(t).id===u.currentId),r=l(()=>d(t).id===u.selectedId);Ye(e,{get session(){return d(t)},get now(){return u.now},get live(){return d(n)},get selected(){return d(r)},onSelect:()=>u.onSelect(d(t).id)})}}),r(t),E(e,t)};m(ee,e=>{u.sessions.length===0?e(j):e(M,-1)}),r(S);var N=c(S,2);Nt(N,{get open(){return d(f)},get onStart(){return u.onStart},onClose:()=>i(f,!1)});var P=c(N,2);{let e=l(()=>u.sessions.find(e=>e.id===u.currentId)?.entries??null);Le(P,{get open(){return d(p)},get sessionId(){return u.currentId},get entries(){return d(e)},get onEnd(){return u.onEnd},onClose:()=>i(p,!1)})}y(()=>{b(D,1,C(u.currentId===null?`start`:`stop`),`svelte-1fz71rn`),g(A,u.currentId===null?`play_arrow`:`stop`)}),n(`click`,D,()=>u.currentId===null?i(f,!0):i(p,!0)),E(e,x),O()}u([`click`]);var Rt=p(`<p> </p>`),zt=p(`<p>The bridge is not reachable.</p>`),Bt=p(`<div class="monitor svelte-1uha8ag"><aside class="svelte-1uha8ag"><!></aside> <div class="log svelte-1uha8ag"><h1>Monitor</h1> <!></div></div>`);function Vt(e,n){t(n,!0);let i=l(()=>H.loaded?{sessions:H.sessions,currentId:H.currentId}:n.data.sessions??{sessions:[],currentId:null}),a=l(()=>H.loaded?H.now:n.data.now),o=l(()=>Ge(k.url.searchParams.get(`session`),d(i).sessions,d(i).currentId));h(()=>H.init(n.data.sessions));function u(e){let t=e===null||e===d(i).currentId;return ee(t?A(`/`):`${A(`/`)}?session=${e}`,{reset:!1})}async function f(e,t){await H.start(e,t),await u(null)}var p=Bt(),_=v(p);Lt(v(_),{get sessions(){return d(i).sessions},get currentId(){return d(i).currentId},get selectedId(){return d(o)},get now(){return d(a)},onSelect:e=>void u(e),onStart:f,onEnd:()=>H.end()}),r(_);var b=c(_,2),x=c(v(b),2),S=e=>{var t=Rt(),r=s(t);y(()=>g(r,`Bridge ${n.data.status.bridge.version??``} is ${n.data.status.bridge.state??``}.`)),E(e,t)},C=e=>{var t=zt();E(e,t)};m(x,e=>{n.data.status?e(S):e(C,-1)}),r(b),r(p),E(e,p),O()}export{Vt as component};
|
|
Binary file
|