From fc2403317124ada037d1bdb31531b4a31ba94b50 Mon Sep 17 00:00:00 2001 From: larbish Date: Thu, 28 Dec 2023 10:04:03 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20nuxt-mod?= =?UTF-8?q?ules/supabase@0cc1f2cb1ee16ce0ae692822b52550ee957dea65=20?= =?UTF-8?q?=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 200.html | 26 +++---- 404.html | 26 +++---- __studio.json | 2 +- ...{Cached.55e8291f.js => Cached.e6d2f62a.js} | 2 +- ...allout.8f8ee156.js => Callout.d8907a73.js} | 2 +- _nuxt/{Card.a10986e6.js => Card.428980e9.js} | 2 +- _nuxt/{Card.a6294156.js => Card.68bb9e1d.js} | 2 +- ...roup.e0a1ecca.js => CardGroup.bfc0b923.js} | 2 +- ...roup.4475af6b.js => CodeGroup.80c331bd.js} | 2 +- ...le.e83ea7ff.js => Collapsible.d92e4f74.js} | 2 +- ...Doc.c766ccb9.js => ContentDoc.9abd704d.js} | 2 +- ...st.c8f4c1af.js => ContentList.4312565f.js} | 2 +- ...4d29a.js => ContentNavigation.23d4fb51.js} | 2 +- ...y.499a6888.js => ContentQuery.9f00e65c.js} | 2 +- ...04d2a66.js => ContentRenderer.f8fda652.js} | 2 +- _nuxt/ContentRendererMarkdown.281ccbbc.js | 1 - _nuxt/ContentRendererMarkdown.baefbace.js | 1 + ...> ContentRendererMarkdown.vue.1b328542.js} | 2 +- ...ot.1f1f3c23.js => ContentSlot.58c58190.js} | 2 +- ...rch.ed2a84a9.js => DocsSearch.d2ddbeb8.js} | 2 +- ...9d3.js => DocumentDrivenEmpty.ce5f88ec.js} | 2 +- ....js => DocumentDrivenNotFound.425e24d1.js} | 2 +- ...ynamic.5a3e2755.js => Dynamic.01943a6f.js} | 2 +- .../{Field.7af909af.js => Field.54335140.js} | 2 +- ...oup.fc071874.js => FieldGroup.0c22c700.js} | 2 +- ....9feac534.js => GithubCommits.655e7df4.js} | 2 +- ...b7f1.js => GithubContributors.75b45979.js} | 2 +- ....js => GithubFileContributors.c58662e6.js} | 2 +- ...7e73f.js => GithubLastRelease.94c1d66c.js} | 2 +- ...ink.e7026b0f.js => GithubLink.99d55faa.js} | 2 +- ...e.b4204bde.js => GithubReadme.767cfc29.js} | 2 +- ....b9e3718c.js => GithubRelease.ba7ea252.js} | 2 +- ...c555d27b.js => GithubReleases.d4b85ceb.js} | 2 +- ...4b13e8.js => GithubRepository.c7f34d2f.js} | 2 +- ...conCSS.c0eec719.js => IconCSS.59c034f1.js} | 2 +- ...er.84953d36.js => MDCRenderer.8dddf3be.js} | 2 +- ...kdown.9bba4ad0.js => Markdown.3084d0d2.js} | 2 +- ...{ProseA.43fb90fc.js => ProseA.8a6b2d65.js} | 2 +- ...08dcb78.js => ProseBlockquote.c7ac24ba.js} | 2 +- _nuxt/ProseCode.b119e06f.js | 1 + _nuxt/ProseCode.ca61194c.js | 1 - ....b02f0b0f.js => ProseCode.vue.63c11675.js} | 2 +- _nuxt/ProseCodeButton.f1caafd9.js | 1 - _nuxt/ProseCodeButton.f9e6a65d.js | 1 + ...2ad.js => ProseCodeButton.vue.f7f8450a.js} | 2 +- _nuxt/ProseCodeIcon.40cbc64e.js | 1 - _nuxt/ProseCodeIcon.be1fc9f4.js | 1 + ...3ef12.js => ProseCodeIcon.vue.d817ff5a.js} | 2 +- ...9f201ec.js => ProseCodeInline.1bf00f76.js} | 2 +- ...roseEm.c5098f33.js => ProseEm.99bf76f9.js} | 2 +- ...roseH1.1c331cdb.js => ProseH1.4e623985.js} | 2 +- _nuxt/ProseH2.d9eb3590.js | 1 + _nuxt/ProseH2.e82063a5.js | 1 - ...ue.0efd9217.js => ProseH2.vue.f4d56c2c.js} | 2 +- ...roseH3.edf516ad.js => ProseH3.48b35a00.js} | 2 +- ...roseH4.fcc970d3.js => ProseH4.8e15d4c4.js} | 2 +- ...roseH5.281ef778.js => ProseH5.9a39ed8c.js} | 2 +- ...roseH6.7167fed8.js => ProseH6.8d289c55.js} | 2 +- ...roseHr.ea054e84.js => ProseHr.fa27e9ff.js} | 2 +- ...seImg.a7db9461.js => ProseImg.0e30254c.js} | 2 +- ...roseLi.c33ec5bc.js => ProseLi.beba3964.js} | 2 +- ...roseOl.94f0a7ea.js => ProseOl.0b9d32e8.js} | 2 +- ...{ProseP.b1e35a2e.js => ProseP.4e2998a9.js} | 2 +- ...sePre.cdf20fd4.js => ProsePre.216d0682.js} | 2 +- ...pt.6f2ab91b.js => ProseScript.70514ad4.js} | 2 +- ...ng.3a32b838.js => ProseStrong.4f2d04f6.js} | 2 +- ...ble.84b7eb95.js => ProseTable.fdd156d0.js} | 2 +- ...ody.d1ef0eb7.js => ProseTbody.19438e1b.js} | 2 +- ...roseTd.243dd7e5.js => ProseTd.c52c2096.js} | 2 +- ...roseTh.f2f16b4d.js => ProseTh.ff3e2232.js} | 2 +- ...ead.68632ec8.js => ProseThead.6118c350.js} | 2 +- ...roseTr.cca10edc.js => ProseTr.b6601b5c.js} | 2 +- ...roseUl.5c2040c7.js => ProseUl.afdfd058.js} | 2 +- ...eases.d5862482.js => Releases.1501e637.js} | 2 +- ...hot.705c5245.js => Screenshot.afda911a.js} | 2 +- ...rtcut.bc590fd3.js => Shortcut.bdb882e5.js} | 2 +- ...{Static.b18b3ef7.js => Static.041e034c.js} | 2 +- _nuxt/{Tabs.53377085.js => Tabs.51077da8.js} | 2 +- ...ard.434441cf.js => VoltaBoard.625e4cb3.js} | 2 +- ...e.0a5bf573.js => WithoutCache.3a23f08d.js} | 2 +- ...lug_.cfdc5a31.js => _...slug_.f48004ed.js} | 2 +- _nuxt/builds/latest.json | 2 +- .../329cb327-e812-42bb-8e32-b09413458b56.json | 1 + .../70482045-f0af-4a07-998c-4b4484f348d7.json | 1 - ...t-db.b4788cc1.js => client-db.a6713f3f.js} | 2 +- _nuxt/{docs.8f80e350.js => docs.2f1ccbf0.js} | 2 +- .../{entry.8c781d5d.js => entry.ae6f67a5.js} | 10 +-- ...er.a520effb.js => highlighter.21095fce.js} | 2 +- .../{index.25b95eab.js => index.7e128566.js} | 2 +- .../{index.7fba0786.js => index.b27d3d40.js} | 4 +- _nuxt/{slot.68f639bf.js => slot.98627438.js} | 2 +- ...thub.eb11860f.js => useGithub.b9a4816c.js} | 2 +- ...udio.7c0e5dea.js => useStudio.33bdffc2.js} | 2 +- _payload.json | 2 +- ...71384174.json => cache.1703757791295.json} | 2 +- ...174.json => u7BbTyuhiE.1703757791295.json} | 0 ...174.json => 0gudQYZdI3.1703757791295.json} | 0 ...174.json => 0wFsGmvw10.1703757791295.json} | 0 ...174.json => 4zYVP4W6op.1703757791295.json} | 0 ...174.json => 5lOdqeHnNL.1703757791295.json} | 0 ...174.json => 76BoSDA4U0.1703757791295.json} | 0 ...174.json => CsvcZ6zVi1.1703757791295.json} | 0 ...174.json => JW0JBzZZMj.1703757791295.json} | 0 ...174.json => L15561AOag.1703757791295.json} | 0 ...174.json => U0fhu5Rxhl.1703757791295.json} | 0 ...174.json => Y4LEUEirY6.1703757791295.json} | 0 ...174.json => YSHNqHnuhS.1703757791295.json} | 0 ...174.json => brX4CwCJoQ.1703757791295.json} | 0 ...174.json => dKXPFPos09.1703757791295.json} | 0 ...174.json => hYpPLZd268.1703757791295.json} | 0 ...174.json => mUC1LoY5SU.1703757791295.json} | 0 ...174.json => mjPUuLZ5K0.1703757791295.json} | 0 ...174.json => pTByVtROxU.1703757791295.json} | 0 ...174.json => sY2lwz2oSi.1703757791295.json} | 0 ...174.json => unQN3QZxvJ.1703757791295.json} | 0 ...174.json => xTj1Y0li2H.1703757791295.json} | 0 ...174.json => yZYG07dTrW.1703757791295.json} | 0 api/_github/contributors/index.json | 2 +- authentication/_payload.json | 2 +- authentication/index.html | 68 ++++++++--------- changelog/_payload.json | 2 +- changelog/index.html | 60 +++++++-------- demo/_payload.json | 2 +- demo/index.html | 50 ++++++------ get-started/_payload.json | 2 +- get-started/index.html | 76 +++++++++---------- index.html | 50 ++++++------ roadmap/_payload.json | 2 +- roadmap/index.html | 40 +++++----- .../usesupabaseclient/_payload.json | 2 +- .../composables/usesupabaseclient/index.html | 66 ++++++++-------- .../composables/usesupabaseuser/_payload.json | 2 +- usage/composables/usesupabaseuser/index.html | 64 ++++++++-------- .../serversupabaseclient/_payload.json | 2 +- .../services/serversupabaseclient/index.html | 64 ++++++++-------- .../serversupabaseservicerole/_payload.json | 2 +- .../serversupabaseservicerole/index.html | 64 ++++++++-------- .../services/serversupabaseuser/_payload.json | 2 +- usage/services/serversupabaseuser/index.html | 64 ++++++++-------- 139 files changed, 462 insertions(+), 462 deletions(-) rename _nuxt/{Cached.55e8291f.js => Cached.e6d2f62a.js} (53%) rename _nuxt/{Callout.8f8ee156.js => Callout.d8907a73.js} (97%) rename _nuxt/{Card.a10986e6.js => Card.428980e9.js} (94%) rename _nuxt/{Card.a6294156.js => Card.68bb9e1d.js} (94%) rename _nuxt/{CardGroup.e0a1ecca.js => CardGroup.bfc0b923.js} (83%) rename _nuxt/{CodeGroup.4475af6b.js => CodeGroup.80c331bd.js} (91%) rename _nuxt/{Collapsible.e83ea7ff.js => Collapsible.d92e4f74.js} (88%) rename _nuxt/{ContentDoc.c766ccb9.js => ContentDoc.9abd704d.js} (87%) rename _nuxt/{ContentList.c8f4c1af.js => ContentList.4312565f.js} (84%) rename _nuxt/{ContentNavigation.8f24d29a.js => ContentNavigation.23d4fb51.js} (92%) rename _nuxt/{ContentQuery.499a6888.js => ContentQuery.9f00e65c.js} (97%) rename _nuxt/{ContentRenderer.404d2a66.js => ContentRenderer.f8fda652.js} (84%) delete mode 100644 _nuxt/ContentRendererMarkdown.281ccbbc.js create mode 100644 _nuxt/ContentRendererMarkdown.baefbace.js rename _nuxt/{ContentRendererMarkdown.vue.703eebc0.js => ContentRendererMarkdown.vue.1b328542.js} (84%) rename _nuxt/{ContentSlot.1f1f3c23.js => ContentSlot.58c58190.js} (92%) rename _nuxt/{DocsSearch.ed2a84a9.js => DocsSearch.d2ddbeb8.js} (99%) rename _nuxt/{DocumentDrivenEmpty.ae0269d3.js => DocumentDrivenEmpty.ce5f88ec.js} (77%) rename _nuxt/{DocumentDrivenNotFound.1a87674d.js => DocumentDrivenNotFound.425e24d1.js} (59%) rename _nuxt/{Dynamic.5a3e2755.js => Dynamic.01943a6f.js} (53%) rename _nuxt/{Field.7af909af.js => Field.54335140.js} (94%) rename _nuxt/{FieldGroup.fc071874.js => FieldGroup.0c22c700.js} (86%) rename _nuxt/{GithubCommits.9feac534.js => GithubCommits.655e7df4.js} (75%) rename _nuxt/{GithubContributors.439db7f1.js => GithubContributors.75b45979.js} (76%) rename _nuxt/{GithubFileContributors.5ee57836.js => GithubFileContributors.c58662e6.js} (89%) rename _nuxt/{GithubLastRelease.dfb7e73f.js => GithubLastRelease.94c1d66c.js} (75%) rename _nuxt/{GithubLink.e7026b0f.js => GithubLink.99d55faa.js} (93%) rename _nuxt/{GithubReadme.b4204bde.js => GithubReadme.767cfc29.js} (74%) rename _nuxt/{GithubRelease.b9e3718c.js => GithubRelease.ba7ea252.js} (76%) rename _nuxt/{GithubReleases.c555d27b.js => GithubReleases.d4b85ceb.js} (75%) rename _nuxt/{GithubRepository.894b13e8.js => GithubRepository.c7f34d2f.js} (75%) rename _nuxt/{IconCSS.c0eec719.js => IconCSS.59c034f1.js} (93%) rename _nuxt/{MDCRenderer.84953d36.js => MDCRenderer.8dddf3be.js} (99%) rename _nuxt/{Markdown.9bba4ad0.js => Markdown.3084d0d2.js} (64%) rename _nuxt/{ProseA.43fb90fc.js => ProseA.8a6b2d65.js} (82%) rename _nuxt/{ProseBlockquote.e08dcb78.js => ProseBlockquote.c7ac24ba.js} (66%) create mode 100644 _nuxt/ProseCode.b119e06f.js delete mode 100644 _nuxt/ProseCode.ca61194c.js rename _nuxt/{ProseCode.vue.b02f0b0f.js => ProseCode.vue.63c11675.js} (83%) delete mode 100644 _nuxt/ProseCodeButton.f1caafd9.js create mode 100644 _nuxt/ProseCodeButton.f9e6a65d.js rename _nuxt/{ProseCodeButton.vue.ec8552ad.js => ProseCodeButton.vue.f7f8450a.js} (93%) delete mode 100644 _nuxt/ProseCodeIcon.40cbc64e.js create mode 100644 _nuxt/ProseCodeIcon.be1fc9f4.js rename _nuxt/{ProseCodeIcon.vue.ffb3ef12.js => ProseCodeIcon.vue.d817ff5a.js} (96%) rename _nuxt/{ProseCodeInline.49f201ec.js => ProseCodeInline.1bf00f76.js} (66%) rename _nuxt/{ProseEm.c5098f33.js => ProseEm.99bf76f9.js} (65%) rename _nuxt/{ProseH1.1c331cdb.js => ProseH1.4e623985.js} (92%) create mode 100644 _nuxt/ProseH2.d9eb3590.js delete mode 100644 _nuxt/ProseH2.e82063a5.js rename _nuxt/{ProseH2.vue.0efd9217.js => ProseH2.vue.f4d56c2c.js} (92%) rename _nuxt/{ProseH3.edf516ad.js => ProseH3.48b35a00.js} (92%) rename _nuxt/{ProseH4.fcc970d3.js => ProseH4.8e15d4c4.js} (92%) rename _nuxt/{ProseH5.281ef778.js => ProseH5.9a39ed8c.js} (85%) rename _nuxt/{ProseH6.7167fed8.js => ProseH6.8d289c55.js} (85%) rename _nuxt/{ProseHr.ea054e84.js => ProseHr.fa27e9ff.js} (55%) rename _nuxt/{ProseImg.a7db9461.js => ProseImg.0e30254c.js} (89%) rename _nuxt/{ProseLi.c33ec5bc.js => ProseLi.beba3964.js} (65%) rename _nuxt/{ProseOl.94f0a7ea.js => ProseOl.0b9d32e8.js} (65%) rename _nuxt/{ProseP.b1e35a2e.js => ProseP.4e2998a9.js} (65%) rename _nuxt/{ProsePre.cdf20fd4.js => ProsePre.216d0682.js} (69%) rename _nuxt/{ProseScript.6f2ab91b.js => ProseScript.70514ad4.js} (86%) rename _nuxt/{ProseStrong.3a32b838.js => ProseStrong.4f2d04f6.js} (66%) rename _nuxt/{ProseTable.84b7eb95.js => ProseTable.fdd156d0.js} (66%) rename _nuxt/{ProseTbody.d1ef0eb7.js => ProseTbody.19438e1b.js} (66%) rename _nuxt/{ProseTd.243dd7e5.js => ProseTd.c52c2096.js} (65%) rename _nuxt/{ProseTh.f2f16b4d.js => ProseTh.ff3e2232.js} (65%) rename _nuxt/{ProseThead.68632ec8.js => ProseThead.6118c350.js} (66%) rename _nuxt/{ProseTr.cca10edc.js => ProseTr.b6601b5c.js} (65%) rename _nuxt/{ProseUl.5c2040c7.js => ProseUl.afdfd058.js} (65%) rename _nuxt/{Releases.d5862482.js => Releases.1501e637.js} (62%) rename _nuxt/{Screenshot.705c5245.js => Screenshot.afda911a.js} (54%) rename _nuxt/{Shortcut.bc590fd3.js => Shortcut.bdb882e5.js} (87%) rename _nuxt/{Static.b18b3ef7.js => Static.041e034c.js} (53%) rename _nuxt/{Tabs.53377085.js => Tabs.51077da8.js} (96%) rename _nuxt/{VoltaBoard.434441cf.js => VoltaBoard.625e4cb3.js} (81%) rename _nuxt/{WithoutCache.0a5bf573.js => WithoutCache.3a23f08d.js} (55%) rename _nuxt/{_...slug_.cfdc5a31.js => _...slug_.f48004ed.js} (98%) create mode 100644 _nuxt/builds/meta/329cb327-e812-42bb-8e32-b09413458b56.json delete mode 100644 _nuxt/builds/meta/70482045-f0af-4a07-998c-4b4484f348d7.json rename _nuxt/{client-db.b4788cc1.js => client-db.a6713f3f.js} (99%) rename _nuxt/{docs.8f80e350.js => docs.2f1ccbf0.js} (95%) rename _nuxt/{entry.8c781d5d.js => entry.ae6f67a5.js} (97%) rename _nuxt/{highlighter.a520effb.js => highlighter.21095fce.js} (99%) rename _nuxt/{index.25b95eab.js => index.7e128566.js} (51%) rename _nuxt/{index.7fba0786.js => index.b27d3d40.js} (99%) rename _nuxt/{slot.68f639bf.js => slot.98627438.js} (67%) rename _nuxt/{useGithub.eb11860f.js => useGithub.b9a4816c.js} (88%) rename _nuxt/{useStudio.7c0e5dea.js => useStudio.33bdffc2.js} (98%) rename api/_content/{cache.1703671384174.json => cache.1703757791295.json} (99%) rename api/_content/navigation/{u7BbTyuhiE.1703671384174.json => u7BbTyuhiE.1703757791295.json} (100%) rename api/_content/query/{0gudQYZdI3.1703671384174.json => 0gudQYZdI3.1703757791295.json} (100%) rename api/_content/query/{0wFsGmvw10.1703671384174.json => 0wFsGmvw10.1703757791295.json} (100%) rename api/_content/query/{4zYVP4W6op.1703671384174.json => 4zYVP4W6op.1703757791295.json} (100%) rename api/_content/query/{5lOdqeHnNL.1703671384174.json => 5lOdqeHnNL.1703757791295.json} (100%) rename api/_content/query/{76BoSDA4U0.1703671384174.json => 76BoSDA4U0.1703757791295.json} (100%) rename api/_content/query/{CsvcZ6zVi1.1703671384174.json => CsvcZ6zVi1.1703757791295.json} (100%) rename api/_content/query/{JW0JBzZZMj.1703671384174.json => JW0JBzZZMj.1703757791295.json} (100%) rename api/_content/query/{L15561AOag.1703671384174.json => L15561AOag.1703757791295.json} (100%) rename api/_content/query/{U0fhu5Rxhl.1703671384174.json => U0fhu5Rxhl.1703757791295.json} (100%) rename api/_content/query/{Y4LEUEirY6.1703671384174.json => Y4LEUEirY6.1703757791295.json} (100%) rename api/_content/query/{YSHNqHnuhS.1703671384174.json => YSHNqHnuhS.1703757791295.json} (100%) rename api/_content/query/{brX4CwCJoQ.1703671384174.json => brX4CwCJoQ.1703757791295.json} (100%) rename api/_content/query/{dKXPFPos09.1703671384174.json => dKXPFPos09.1703757791295.json} (100%) rename api/_content/query/{hYpPLZd268.1703671384174.json => hYpPLZd268.1703757791295.json} (100%) rename api/_content/query/{mUC1LoY5SU.1703671384174.json => mUC1LoY5SU.1703757791295.json} (100%) rename api/_content/query/{mjPUuLZ5K0.1703671384174.json => mjPUuLZ5K0.1703757791295.json} (100%) rename api/_content/query/{pTByVtROxU.1703671384174.json => pTByVtROxU.1703757791295.json} (100%) rename api/_content/query/{sY2lwz2oSi.1703671384174.json => sY2lwz2oSi.1703757791295.json} (100%) rename api/_content/query/{unQN3QZxvJ.1703671384174.json => unQN3QZxvJ.1703757791295.json} (100%) rename api/_content/query/{xTj1Y0li2H.1703671384174.json => xTj1Y0li2H.1703757791295.json} (100%) rename api/_content/query/{yZYG07dTrW.1703671384174.json => yZYG07dTrW.1703757791295.json} (100%) diff --git a/200.html b/200.html index b894e8f3..44faa5bc 100644 --- a/200.html +++ b/200.html @@ -9,22 +9,22 @@ - - - - - - - - + + + + + + + + - - + + - -
- + \ No newline at end of file diff --git a/404.html b/404.html index b894e8f3..44faa5bc 100644 --- a/404.html +++ b/404.html @@ -9,22 +9,22 @@ - - - - - - - - + + + + + + + + - - + + - -
- + \ No newline at end of file diff --git a/__studio.json b/__studio.json index 55b6cc6a..068908d5 100644 --- a/__studio.json +++ b/__studio.json @@ -1 +1 @@ -{"version":"1.0.4","tokens":"6a7843a41c6847d5400e0b1ff1bb9d8c2ff908fb099d2d5ad5058d6658474b99","appConfigSchema":{"properties":{"id":"#appConfig","properties":{"nuxtIcon":{"title":"Nuxt Icon","description":"Configure Nuxt Icon module preferences.","id":"#appConfig/nuxtIcon","properties":{"size":{"title":"Icon Size","description":"Set the default icon size. Set to false to disable the sizing of icon in style.","tags":["@studioIcon material-symbols:format-size-rounded"],"tsType":"string | false","id":"#appConfig/nuxtIcon/size","default":"1em","type":"string"},"class":{"title":"CSS Class","description":"Set the default CSS class.","tags":["@studioIcon material-symbols:css"],"id":"#appConfig/nuxtIcon/class","default":"","type":"string"},"aliases":{"title":"Icon aliases","description":"Define Icon aliases to update them easily without code changes.","tags":["@studioIcon material-symbols:star-rounded"],"tsType":"{ [alias: string]: string }","id":"#appConfig/nuxtIcon/aliases","default":{},"type":"object"},"iconifyApiOptions":{"title":"Iconify API Options","description":"Define preferences for Iconify API fetch.","tags":["@studioIcon material-symbols:tv-options-input-settings"],"id":"#appConfig/nuxtIcon/iconifyApiOptions","properties":{"url":{"title":"Iconify API URL","description":"Define a custom Iconify API URL. Useful if you want to use a self-hosted Iconify API. Learn more: https://iconify.design/docs/api.","tags":["@studioIcon material-symbols:api"],"id":"#appConfig/nuxtIcon/iconifyApiOptions/url","default":"https://api.iconify.design","type":"string"},"publicApiFallback":{"title":"Public Iconify API fallback","description":"Define if the public Iconify API should be used as fallback.","tags":["@studioIcon material-symbols:public"],"id":"#appConfig/nuxtIcon/iconifyApiOptions/publicApiFallback","default":false,"type":"boolean"}},"type":"object","default":{"url":"https://api.iconify.design","publicApiFallback":false}}},"type":"object","default":{"size":"1em","class":"","aliases":{},"iconifyApiOptions":{"url":"https://api.iconify.design","publicApiFallback":false}}},"ui":{"title":"UI","description":"UI Customization.","tags":["@studioIcon i-mdi-palette-outline"],"id":"#appConfig/ui","properties":{"icons":{"title":"Icons","description":"Manage icons used in UI Pro.","tags":["@studioIcon i-mdi-application-settings-outline"],"id":"#appConfig/ui/icons","properties":{"search":{"type":"string","title":"Search Bar","description":"Icon to display in the search bar.","default":"i-heroicons-magnifying-glass-20-solid","tags":["@studioInput icon","@studioIcon i-heroicons-magnifying-glass-20-solid"],"id":"#appConfig/ui/icons/search"},"dark":{"type":"string","title":"Dark mode","description":"Icon of color mode button for dark mode.","default":"i-heroicons-moon-20-solid","tags":["@studioInput icon","@studioIcon i-heroicons-moon-20-solid"],"id":"#appConfig/ui/icons/dark"},"light":{"type":"string","title":"Light mode","description":"Icon of color mode button for light mode.","default":"i-heroicons-sun-20-solid","tags":["@studioInput icon","@studioIcon i-heroicons-sun-20-solid"],"id":"#appConfig/ui/icons/light"},"external":{"type":"string","title":"External Link","description":"Icon for external link.","default":"i-heroicons-arrow-up-right-20-solid","tags":["@studioInput icon","@studioIcon i-heroicons-arrow-up-right-20-solid"],"id":"#appConfig/ui/icons/external"},"chevron":{"type":"string","title":"Chevron","description":"Icon for chevron.","default":"i-heroicons-chevron-down-20-solid","tags":["@studioInput icon","@studioIcon i-heroicons-chevron-down-20-solid"],"id":"#appConfig/ui/icons/chevron"},"hash":{"type":"string","title":"Hash","description":"Icon for hash anchors.","default":"i-heroicons-hashtag-20-solid","tags":["@studioInput icon","@studioIcon i-heroicons-hashtag-20-solid"],"id":"#appConfig/ui/icons/hash"}},"type":"object","default":{"search":"i-heroicons-magnifying-glass-20-solid","dark":"i-heroicons-moon-20-solid","light":"i-heroicons-sun-20-solid","external":"i-heroicons-arrow-up-right-20-solid","chevron":"i-heroicons-chevron-down-20-solid","hash":"i-heroicons-hashtag-20-solid"}}},"type":"object","default":{"icons":{"search":"i-heroicons-magnifying-glass-20-solid","dark":"i-heroicons-moon-20-solid","light":"i-heroicons-sun-20-solid","external":"i-heroicons-arrow-up-right-20-solid","chevron":"i-heroicons-chevron-down-20-solid","hash":"i-heroicons-hashtag-20-solid"}}},"header":{"title":"Header","description":"Header configuration.","tags":["@studioIcon i-mdi-page-layout-header"],"id":"#appConfig/header","properties":{"logo":{"title":"Logo","description":"Footer logo configuration.","tags":["@studioIcon i-mdi-image-filter-center-focus-strong-outline"],"id":"#appConfig/header/logo","properties":{"light":{"type":"string","title":"Light Mode Logo","description":"Pick an image from your gallery.","default":"","tags":["@studioInput media","@studioIcon i-heroicons-sun-20-solid"],"id":"#appConfig/header/logo/light"},"dark":{"type":"string","title":"Dark Mode Logo","description":"Pick an image from your gallery.","default":"","tags":["@studioInput media","@studioIcon i-heroicons-moon-20-solid"],"id":"#appConfig/header/logo/dark"},"alt":{"type":"string","title":"Alt","description":"Alt to display for accessibility.","default":"","tags":["@studioInput string","@studioIcon i-mdi-alphabet-latin"],"id":"#appConfig/header/logo/alt"}},"type":"object","default":{"light":"","dark":"","alt":""}},"search":{"type":"boolean","title":"Search Bar","description":"Hide or display the search bar.","default":true,"tags":["@studioInput boolean","@studioIcon i-mdi-magnify"],"id":"#appConfig/header/search"},"colorMode":{"type":"boolean","title":"Color Mode","description":"Hide or display the color mode button in your header.","default":true,"tags":["@studioInput boolean","@studioIcon i-heroicons-moon-20-solid"],"id":"#appConfig/header/colorMode"},"links":{"type":"array","title":"Links","description":"Array of link object displayed in header.","default":[],"tags":["@studioInput array","@studioIcon i-mdi-link-variant"],"id":"#appConfig/header/links","items":{"type":"any"}}},"type":"object","default":{"logo":{"light":"","dark":"","alt":""},"search":true,"colorMode":true,"links":[]}},"footer":{"title":"Footer","description":"Footer configuration.","tags":["@studioIcon i-mdi-page-layout-footer"],"id":"#appConfig/footer","properties":{"credits":{"type":"string","title":"Footer credits section","description":"Text to display as credits in the footer.","default":"","tags":["@studioInput string","@studioIcon i-mdi-circle-edit-outline"],"id":"#appConfig/footer/credits"},"colorMode":{"type":"boolean","title":"Color Mode","description":"Hide or display the color mode button in the footer.","default":false,"tags":["@studioInput boolean","@studioIcon i-heroicons-moon-20-solid"],"id":"#appConfig/footer/colorMode"},"links":{"type":"array","title":"Links","description":"Array of link object displayed in footer.","default":[],"tags":["@studioInput array","@studioIcon i-mdi-link-variant"],"id":"#appConfig/footer/links","items":{"type":"any"}}},"type":"object","default":{"credits":"","colorMode":false,"links":[]}},"toc":{"title":"Table of contents","description":"TOC configuration.","tags":["@studioIcon i-heroicons-table-cells-solid"],"id":"#appConfig/toc","properties":{"title":{"type":"string","title":"Title","description":"Text to display as title of the main toc.","default":"","tags":["@studioInput string","@studioIcon i-mdi-format-title"],"id":"#appConfig/toc/title"},"bottom":{"title":"Bottom","description":"Bottom TOC configuration.","tags":["@studioIcon i-heroicons-bars-arrow-down-solid"],"id":"#appConfig/toc/bottom","properties":{"title":{"type":"string","title":"Title","description":"Text to display as title of the bottom toc.","default":"","tags":["@studioInput string","@studioIcon i-mdi-format-title"],"id":"#appConfig/toc/bottom/title"},"edit":{"type":"string","title":"Edit Page Link","description":"URL of your repository content folder.","default":"","tags":["@studioInput string","@studioIcon i-heroicons-pencil-square"],"id":"#appConfig/toc/bottom/edit"},"links":{"type":"array","title":"Links","description":"Array of link object displayed in bottom toc.","default":[],"tags":["@studioInput array","@studioIcon i-mdi-link-variant"],"id":"#appConfig/toc/bottom/links","items":{"type":"any"}}},"type":"object","default":{"title":"","edit":"","links":[]}}},"type":"object","default":{"title":"","bottom":{"title":"","edit":"","links":[]}}}},"type":"object","default":{"nuxtIcon":{"size":"1em","class":"","aliases":{},"iconifyApiOptions":{"url":"https://api.iconify.design","publicApiFallback":false}},"ui":{"icons":{"search":"i-heroicons-magnifying-glass-20-solid","dark":"i-heroicons-moon-20-solid","light":"i-heroicons-sun-20-solid","external":"i-heroicons-arrow-up-right-20-solid","chevron":"i-heroicons-chevron-down-20-solid","hash":"i-heroicons-hashtag-20-solid"}},"header":{"logo":{"light":"","dark":"","alt":""},"search":true,"colorMode":true,"links":[]},"footer":{"credits":"","colorMode":false,"links":[]},"toc":{"title":"","bottom":{"title":"","edit":"","links":[]}}}},"default":{"nuxtIcon":{"size":"1em","class":"","aliases":{},"iconifyApiOptions":{"url":"https://api.iconify.design","publicApiFallback":false}},"ui":{"icons":{"search":"i-heroicons-magnifying-glass-20-solid","dark":"i-heroicons-moon-20-solid","light":"i-heroicons-sun-20-solid","external":"i-heroicons-arrow-up-right-20-solid","chevron":"i-heroicons-chevron-down-20-solid","hash":"i-heroicons-hashtag-20-solid"}},"header":{"logo":{"light":"","dark":"","alt":""},"search":true,"colorMode":true,"links":[]},"footer":{"credits":"","colorMode":false,"links":[]},"toc":{"title":"","bottom":{"title":"","edit":"","links":[]}}}},"appConfig":{"nuxt":{"buildId":"70482045-f0af-4a07-998c-4b4484f348d7"},"ui":{"primary":"green","gray":"slate","colors":["red","orange","amber","yellow","lime","green","emerald","teal","cyan","sky","blue","indigo","violet","purple","fuchsia","pink","rose","primary"],"strategy":"merge","variables":{"light":{"background":"255 255 255","foreground":"var(--color-gray-700)"},"dark":{"background":"var(--color-gray-900)","foreground":"var(--color-gray-200)"},"header":{"height":"4rem"}},"icons":{"dark":"i-heroicons-moon","light":"i-heroicons-sun","search":"i-heroicons-magnifying-glass-20-solid","external":"i-heroicons-arrow-up-right-20-solid","chevron":"i-heroicons-chevron-down-20-solid","hash":"i-heroicons-hashtag-20-solid"},"presets":{"button":{"primary":{"color":"white","variant":"solid"},"secondary":{"color":"gray","variant":"ghost"},"input":{"color":"white","variant":"outline","ui":{"font":"","color":{"white":{"outline":"ring-1 ring-inset ring-gray-300 dark:ring-gray-700 hover:ring-gray-300 dark:hover:ring-gray-700 hover:bg-gray-100/50 dark:hover:bg-gray-800/50 text-gray-400 dark:text-gray-500 hover:text-gray-700 dark:hover:text-gray-200 focus-visible:ring-2 focus-visible:ring-primary-500 dark:focus-visible-ring-primary-400"}}}}}},"footer":{"bottom":{"left":"text-sm text-gray-500 dark:text-gray-400","wrapper":"border-t border-gray-200 dark:border-gray-800"}}},"header":{"logo":{"alt":"logo nuxt supabase module","light":"/logo-nuxt-supabase-light.png","dark":"/logo-nuxt-supabase-dark.png"},"search":true,"colorMode":true,"links":[{"icon":"i-simple-icons-x","to":"https://x.com/nuxt_js","target":"_blank","aria-label":"Nuxt on X"},{"icon":"i-simple-icons-github","to":"https://github.com/nuxt-modules/supabase","target":"_blank","aria-label":"Module on GitHub"},{"icon":"i-simple-icons-nuxtdotjs","to":"https://nuxt.com","target":"_blank","aria-label":"Nuxt official website"},{"icon":"i-simple-icons-supabase","to":"https://supabase.com","target":"_blank","aria-label":"Supabase official website"}]},"footer":{"credits":"Made with Nuxt Studio","colorMode":false,"links":[{"icon":"i-simple-icons-x","to":"https://x.com/nuxt_js","target":"_blank","aria-label":"Nuxt on X"},{"icon":"i-simple-icons-github","to":"https://github.com/nuxt-modules/supabase","target":"_blank","aria-label":"Module on GitHub"},{"icon":"i-simple-icons-nuxtdotjs","to":"https://nuxt.com","target":"_blank","aria-label":"Nuxt official website"},{"icon":"i-simple-icons-supabase","to":"https://supabase.com","target":"_blank","aria-label":"Supabase official website"}]},"toc":{"title":"Table of Contents","bottom":{"title":"Community","edit":"https://github.com/nuxt-modules/supabase/edit/main/docs/content","links":[{"icon":"i-heroicons-star","label":"Star on GitHub","to":"https://github.com/nuxt-modules/supabase","target":"_blank"},{"icon":"i-simple-icons-nuxtdotjs","label":"Nuxt docs","to":"https://nuxt.com","target":"_blank"},{"icon":"i-simple-icons-supabase","label":"Supabase docs","to":"https://supabase.com","target":"_blank"}]}}},"content":{"sources":{},"ignores":[],"locales":[],"defaultLocale":"","highlight":{"theme":{"light":"material-theme-lighter","default":"material-theme","dark":"material-theme-palenight"},"preload":["json","js","ts","html","css","vue","diff","shell","markdown","yaml","bash","ini"]},"navigation":{"fields":["icon"]},"documentDriven":false,"experimental":{"clientDB":false,"stripQueryParameters":false,"advanceQuery":false,"search":""}},"components":[{"name":"Releases","path":"components/content/Releases.vue","meta":{"props":[],"slots":[],"events":[]}},{"name":"VoltaBoard","path":"components/content/VoltaBoard.vue","meta":{"props":[{"name":"token","global":false,"description":"","tags":[],"required":true,"type":"string","declarations":[{"file":"/home/runner/work/supabase/supabase/docs/components/content/VoltaBoard.vue","range":[154,203]},{"file":"/home/runner/work/supabase/supabase/docs/components/content/VoltaBoard.vue","range":[154,203]}],"schema":"string"}],"slots":[],"events":[]}},{"name":"Callout","path":"node_modules/.pnpm/@nuxt+ui-pro-edge@0.4.2-28327301.722ea75_nuxt@3.8.1_vite@4.5.0_vue@3.3.8_webpack@5.89.0/node_modules/@nuxt/ui-pro-edge/modules/pro/runtime/components/content/Callout.vue","meta":{"props":[],"slots":[],"events":[]}},{"name":"Card","path":"node_modules/.pnpm/@nuxt+ui-pro-edge@0.4.2-28327301.722ea75_nuxt@3.8.1_vite@4.5.0_vue@3.3.8_webpack@5.89.0/node_modules/@nuxt/ui-pro-edge/modules/pro/runtime/components/content/Card.vue","meta":{"props":[],"slots":[],"events":[]}},{"name":"CardGroup","path":"node_modules/.pnpm/@nuxt+ui-pro-edge@0.4.2-28327301.722ea75_nuxt@3.8.1_vite@4.5.0_vue@3.3.8_webpack@5.89.0/node_modules/@nuxt/ui-pro-edge/modules/pro/runtime/components/content/CardGroup.vue","meta":{"props":[],"slots":[],"events":[]}},{"name":"CodeGroup","path":"node_modules/.pnpm/@nuxt+ui-pro-edge@0.4.2-28327301.722ea75_nuxt@3.8.1_vite@4.5.0_vue@3.3.8_webpack@5.89.0/node_modules/@nuxt/ui-pro-edge/modules/pro/runtime/components/content/CodeGroup.vue","meta":{"props":[],"slots":[],"events":[]}},{"name":"Collapsible","path":"node_modules/.pnpm/@nuxt+ui-pro-edge@0.4.2-28327301.722ea75_nuxt@3.8.1_vite@4.5.0_vue@3.3.8_webpack@5.89.0/node_modules/@nuxt/ui-pro-edge/modules/pro/runtime/components/content/Collapsible.vue","meta":{"props":[],"slots":[],"events":[]}},{"name":"Field","path":"node_modules/.pnpm/@nuxt+ui-pro-edge@0.4.2-28327301.722ea75_nuxt@3.8.1_vite@4.5.0_vue@3.3.8_webpack@5.89.0/node_modules/@nuxt/ui-pro-edge/modules/pro/runtime/components/content/Field.vue","meta":{"props":[],"slots":[],"events":[]}},{"name":"FieldGroup","path":"node_modules/.pnpm/@nuxt+ui-pro-edge@0.4.2-28327301.722ea75_nuxt@3.8.1_vite@4.5.0_vue@3.3.8_webpack@5.89.0/node_modules/@nuxt/ui-pro-edge/modules/pro/runtime/components/content/FieldGroup.vue","meta":{"props":[],"slots":[],"events":[]}},{"name":"Shortcut","path":"node_modules/.pnpm/@nuxt+ui-pro-edge@0.4.2-28327301.722ea75_nuxt@3.8.1_vite@4.5.0_vue@3.3.8_webpack@5.89.0/node_modules/@nuxt/ui-pro-edge/modules/pro/runtime/components/content/Shortcut.vue","meta":{"props":[],"slots":[],"events":[]}},{"name":"Tabs","path":"node_modules/.pnpm/@nuxt+ui-pro-edge@0.4.2-28327301.722ea75_nuxt@3.8.1_vite@4.5.0_vue@3.3.8_webpack@5.89.0/node_modules/@nuxt/ui-pro-edge/modules/pro/runtime/components/content/Tabs.vue","meta":{"props":[],"slots":[],"events":[]}},{"name":"Icon","path":"node_modules/.pnpm/nuxt-icon@0.6.6_nuxt@3.8.1_vite@4.5.0_vue@3.3.8/node_modules/nuxt-icon/dist/runtime/Icon.vue","meta":{"props":[],"slots":[],"events":[]}},{"name":"IconCss","path":"node_modules/.pnpm/nuxt-icon@0.6.6_nuxt@3.8.1_vite@4.5.0_vue@3.3.8/node_modules/nuxt-icon/dist/runtime/IconCSS.vue","meta":{"props":[],"slots":[],"events":[]}},{"name":"OgImageStatic","path":"node_modules/.pnpm/nuxt-og-image@2.2.4_@nuxt+devtools@1.0.0_@vue+compiler-core@3.3.8_nuxt@3.8.1_postcss@8.4.31_v_nzn33ufiyu47ulmzmnof6ejtbu/node_modules/nuxt-og-image/dist/runtime/components/OgImage/Static.mjs","meta":{"props":[],"slots":[],"events":[]}},{"name":"OgImageDynamic","path":"node_modules/.pnpm/nuxt-og-image@2.2.4_@nuxt+devtools@1.0.0_@vue+compiler-core@3.3.8_nuxt@3.8.1_postcss@8.4.31_v_nzn33ufiyu47ulmzmnof6ejtbu/node_modules/nuxt-og-image/dist/runtime/components/OgImage/Dynamic.mjs","meta":{"props":[],"slots":[],"events":[]}},{"name":"OgImage","path":"node_modules/.pnpm/nuxt-og-image@2.2.4_@nuxt+devtools@1.0.0_@vue+compiler-core@3.3.8_nuxt@3.8.1_postcss@8.4.31_v_nzn33ufiyu47ulmzmnof6ejtbu/node_modules/nuxt-og-image/dist/runtime/components/OgImage/index.mjs","meta":{"props":[],"slots":[],"events":[]}},{"name":"OgImageCached","path":"node_modules/.pnpm/nuxt-og-image@2.2.4_@nuxt+devtools@1.0.0_@vue+compiler-core@3.3.8_nuxt@3.8.1_postcss@8.4.31_v_nzn33ufiyu47ulmzmnof6ejtbu/node_modules/nuxt-og-image/dist/runtime/components/OgImage/Cached.mjs","meta":{"props":[],"slots":[],"events":[]}},{"name":"OgImageWithoutCache","path":"node_modules/.pnpm/nuxt-og-image@2.2.4_@nuxt+devtools@1.0.0_@vue+compiler-core@3.3.8_nuxt@3.8.1_postcss@8.4.31_v_nzn33ufiyu47ulmzmnof6ejtbu/node_modules/nuxt-og-image/dist/runtime/components/OgImage/WithoutCache.mjs","meta":{"props":[],"slots":[],"events":[]}},{"name":"OgImageScreenshot","path":"node_modules/.pnpm/nuxt-og-image@2.2.4_@nuxt+devtools@1.0.0_@vue+compiler-core@3.3.8_nuxt@3.8.1_postcss@8.4.31_v_nzn33ufiyu47ulmzmnof6ejtbu/node_modules/nuxt-og-image/dist/runtime/components/OgImage/Screenshot.mjs","meta":{"props":[],"slots":[],"events":[]}},{"name":"GithubRepository","path":"node_modules/.pnpm/@nuxtlabs+github-module@1.6.3/node_modules/@nuxtlabs/github-module/dist/runtime/components/GithubRepository.mjs","meta":{"props":[],"slots":[],"events":[]}},{"name":"GithubLink","path":"node_modules/.pnpm/@nuxtlabs+github-module@1.6.3/node_modules/@nuxtlabs/github-module/dist/runtime/components/GithubLink.mjs","meta":{"props":[],"slots":[],"events":[]}},{"name":"GithubReadme","path":"node_modules/.pnpm/@nuxtlabs+github-module@1.6.3/node_modules/@nuxtlabs/github-module/dist/runtime/components/GithubReadme.mjs","meta":{"props":[],"slots":[],"events":[]}},{"name":"GithubReleases","path":"node_modules/.pnpm/@nuxtlabs+github-module@1.6.3/node_modules/@nuxtlabs/github-module/dist/runtime/components/GithubReleases.mjs","meta":{"props":[],"slots":[],"events":[]}},{"name":"GithubLastRelease","path":"node_modules/.pnpm/@nuxtlabs+github-module@1.6.3/node_modules/@nuxtlabs/github-module/dist/runtime/components/GithubLastRelease.mjs","meta":{"props":[],"slots":[],"events":[]}},{"name":"GithubRelease","path":"node_modules/.pnpm/@nuxtlabs+github-module@1.6.3/node_modules/@nuxtlabs/github-module/dist/runtime/components/GithubRelease.mjs","meta":{"props":[],"slots":[],"events":[]}},{"name":"GithubContributors","path":"node_modules/.pnpm/@nuxtlabs+github-module@1.6.3/node_modules/@nuxtlabs/github-module/dist/runtime/components/GithubContributors.mjs","meta":{"props":[],"slots":[],"events":[]}},{"name":"GithubFileContributors","path":"node_modules/.pnpm/@nuxtlabs+github-module@1.6.3/node_modules/@nuxtlabs/github-module/dist/runtime/components/GithubFileContributors.mjs","meta":{"props":[],"slots":[],"events":[]}},{"name":"GithubCommits","path":"node_modules/.pnpm/@nuxtlabs+github-module@1.6.3/node_modules/@nuxtlabs/github-module/dist/runtime/components/GithubCommits.mjs","meta":{"props":[],"slots":[],"events":[]}}]} \ No newline at end of file +{"version":"1.0.4","tokens":"6a7843a41c6847d5400e0b1ff1bb9d8c2ff908fb099d2d5ad5058d6658474b99","appConfigSchema":{"properties":{"id":"#appConfig","properties":{"nuxtIcon":{"title":"Nuxt Icon","description":"Configure Nuxt Icon module preferences.","id":"#appConfig/nuxtIcon","properties":{"size":{"title":"Icon Size","description":"Set the default icon size. Set to false to disable the sizing of icon in style.","tags":["@studioIcon material-symbols:format-size-rounded"],"tsType":"string | false","id":"#appConfig/nuxtIcon/size","default":"1em","type":"string"},"class":{"title":"CSS Class","description":"Set the default CSS class.","tags":["@studioIcon material-symbols:css"],"id":"#appConfig/nuxtIcon/class","default":"","type":"string"},"aliases":{"title":"Icon aliases","description":"Define Icon aliases to update them easily without code changes.","tags":["@studioIcon material-symbols:star-rounded"],"tsType":"{ [alias: string]: string }","id":"#appConfig/nuxtIcon/aliases","default":{},"type":"object"},"iconifyApiOptions":{"title":"Iconify API Options","description":"Define preferences for Iconify API fetch.","tags":["@studioIcon material-symbols:tv-options-input-settings"],"id":"#appConfig/nuxtIcon/iconifyApiOptions","properties":{"url":{"title":"Iconify API URL","description":"Define a custom Iconify API URL. Useful if you want to use a self-hosted Iconify API. Learn more: https://iconify.design/docs/api.","tags":["@studioIcon material-symbols:api"],"id":"#appConfig/nuxtIcon/iconifyApiOptions/url","default":"https://api.iconify.design","type":"string"},"publicApiFallback":{"title":"Public Iconify API fallback","description":"Define if the public Iconify API should be used as fallback.","tags":["@studioIcon material-symbols:public"],"id":"#appConfig/nuxtIcon/iconifyApiOptions/publicApiFallback","default":false,"type":"boolean"}},"type":"object","default":{"url":"https://api.iconify.design","publicApiFallback":false}}},"type":"object","default":{"size":"1em","class":"","aliases":{},"iconifyApiOptions":{"url":"https://api.iconify.design","publicApiFallback":false}}},"ui":{"title":"UI","description":"UI Customization.","tags":["@studioIcon i-mdi-palette-outline"],"id":"#appConfig/ui","properties":{"icons":{"title":"Icons","description":"Manage icons used in UI Pro.","tags":["@studioIcon i-mdi-application-settings-outline"],"id":"#appConfig/ui/icons","properties":{"search":{"type":"string","title":"Search Bar","description":"Icon to display in the search bar.","default":"i-heroicons-magnifying-glass-20-solid","tags":["@studioInput icon","@studioIcon i-heroicons-magnifying-glass-20-solid"],"id":"#appConfig/ui/icons/search"},"dark":{"type":"string","title":"Dark mode","description":"Icon of color mode button for dark mode.","default":"i-heroicons-moon-20-solid","tags":["@studioInput icon","@studioIcon i-heroicons-moon-20-solid"],"id":"#appConfig/ui/icons/dark"},"light":{"type":"string","title":"Light mode","description":"Icon of color mode button for light mode.","default":"i-heroicons-sun-20-solid","tags":["@studioInput icon","@studioIcon i-heroicons-sun-20-solid"],"id":"#appConfig/ui/icons/light"},"external":{"type":"string","title":"External Link","description":"Icon for external link.","default":"i-heroicons-arrow-up-right-20-solid","tags":["@studioInput icon","@studioIcon i-heroicons-arrow-up-right-20-solid"],"id":"#appConfig/ui/icons/external"},"chevron":{"type":"string","title":"Chevron","description":"Icon for chevron.","default":"i-heroicons-chevron-down-20-solid","tags":["@studioInput icon","@studioIcon i-heroicons-chevron-down-20-solid"],"id":"#appConfig/ui/icons/chevron"},"hash":{"type":"string","title":"Hash","description":"Icon for hash anchors.","default":"i-heroicons-hashtag-20-solid","tags":["@studioInput icon","@studioIcon i-heroicons-hashtag-20-solid"],"id":"#appConfig/ui/icons/hash"}},"type":"object","default":{"search":"i-heroicons-magnifying-glass-20-solid","dark":"i-heroicons-moon-20-solid","light":"i-heroicons-sun-20-solid","external":"i-heroicons-arrow-up-right-20-solid","chevron":"i-heroicons-chevron-down-20-solid","hash":"i-heroicons-hashtag-20-solid"}}},"type":"object","default":{"icons":{"search":"i-heroicons-magnifying-glass-20-solid","dark":"i-heroicons-moon-20-solid","light":"i-heroicons-sun-20-solid","external":"i-heroicons-arrow-up-right-20-solid","chevron":"i-heroicons-chevron-down-20-solid","hash":"i-heroicons-hashtag-20-solid"}}},"header":{"title":"Header","description":"Header configuration.","tags":["@studioIcon i-mdi-page-layout-header"],"id":"#appConfig/header","properties":{"logo":{"title":"Logo","description":"Footer logo configuration.","tags":["@studioIcon i-mdi-image-filter-center-focus-strong-outline"],"id":"#appConfig/header/logo","properties":{"light":{"type":"string","title":"Light Mode Logo","description":"Pick an image from your gallery.","default":"","tags":["@studioInput media","@studioIcon i-heroicons-sun-20-solid"],"id":"#appConfig/header/logo/light"},"dark":{"type":"string","title":"Dark Mode Logo","description":"Pick an image from your gallery.","default":"","tags":["@studioInput media","@studioIcon i-heroicons-moon-20-solid"],"id":"#appConfig/header/logo/dark"},"alt":{"type":"string","title":"Alt","description":"Alt to display for accessibility.","default":"","tags":["@studioInput string","@studioIcon i-mdi-alphabet-latin"],"id":"#appConfig/header/logo/alt"}},"type":"object","default":{"light":"","dark":"","alt":""}},"search":{"type":"boolean","title":"Search Bar","description":"Hide or display the search bar.","default":true,"tags":["@studioInput boolean","@studioIcon i-mdi-magnify"],"id":"#appConfig/header/search"},"colorMode":{"type":"boolean","title":"Color Mode","description":"Hide or display the color mode button in your header.","default":true,"tags":["@studioInput boolean","@studioIcon i-heroicons-moon-20-solid"],"id":"#appConfig/header/colorMode"},"links":{"type":"array","title":"Links","description":"Array of link object displayed in header.","default":[],"tags":["@studioInput array","@studioIcon i-mdi-link-variant"],"id":"#appConfig/header/links","items":{"type":"any"}}},"type":"object","default":{"logo":{"light":"","dark":"","alt":""},"search":true,"colorMode":true,"links":[]}},"footer":{"title":"Footer","description":"Footer configuration.","tags":["@studioIcon i-mdi-page-layout-footer"],"id":"#appConfig/footer","properties":{"credits":{"type":"string","title":"Footer credits section","description":"Text to display as credits in the footer.","default":"","tags":["@studioInput string","@studioIcon i-mdi-circle-edit-outline"],"id":"#appConfig/footer/credits"},"colorMode":{"type":"boolean","title":"Color Mode","description":"Hide or display the color mode button in the footer.","default":false,"tags":["@studioInput boolean","@studioIcon i-heroicons-moon-20-solid"],"id":"#appConfig/footer/colorMode"},"links":{"type":"array","title":"Links","description":"Array of link object displayed in footer.","default":[],"tags":["@studioInput array","@studioIcon i-mdi-link-variant"],"id":"#appConfig/footer/links","items":{"type":"any"}}},"type":"object","default":{"credits":"","colorMode":false,"links":[]}},"toc":{"title":"Table of contents","description":"TOC configuration.","tags":["@studioIcon i-heroicons-table-cells-solid"],"id":"#appConfig/toc","properties":{"title":{"type":"string","title":"Title","description":"Text to display as title of the main toc.","default":"","tags":["@studioInput string","@studioIcon i-mdi-format-title"],"id":"#appConfig/toc/title"},"bottom":{"title":"Bottom","description":"Bottom TOC configuration.","tags":["@studioIcon i-heroicons-bars-arrow-down-solid"],"id":"#appConfig/toc/bottom","properties":{"title":{"type":"string","title":"Title","description":"Text to display as title of the bottom toc.","default":"","tags":["@studioInput string","@studioIcon i-mdi-format-title"],"id":"#appConfig/toc/bottom/title"},"edit":{"type":"string","title":"Edit Page Link","description":"URL of your repository content folder.","default":"","tags":["@studioInput string","@studioIcon i-heroicons-pencil-square"],"id":"#appConfig/toc/bottom/edit"},"links":{"type":"array","title":"Links","description":"Array of link object displayed in bottom toc.","default":[],"tags":["@studioInput array","@studioIcon i-mdi-link-variant"],"id":"#appConfig/toc/bottom/links","items":{"type":"any"}}},"type":"object","default":{"title":"","edit":"","links":[]}}},"type":"object","default":{"title":"","bottom":{"title":"","edit":"","links":[]}}}},"type":"object","default":{"nuxtIcon":{"size":"1em","class":"","aliases":{},"iconifyApiOptions":{"url":"https://api.iconify.design","publicApiFallback":false}},"ui":{"icons":{"search":"i-heroicons-magnifying-glass-20-solid","dark":"i-heroicons-moon-20-solid","light":"i-heroicons-sun-20-solid","external":"i-heroicons-arrow-up-right-20-solid","chevron":"i-heroicons-chevron-down-20-solid","hash":"i-heroicons-hashtag-20-solid"}},"header":{"logo":{"light":"","dark":"","alt":""},"search":true,"colorMode":true,"links":[]},"footer":{"credits":"","colorMode":false,"links":[]},"toc":{"title":"","bottom":{"title":"","edit":"","links":[]}}}},"default":{"nuxtIcon":{"size":"1em","class":"","aliases":{},"iconifyApiOptions":{"url":"https://api.iconify.design","publicApiFallback":false}},"ui":{"icons":{"search":"i-heroicons-magnifying-glass-20-solid","dark":"i-heroicons-moon-20-solid","light":"i-heroicons-sun-20-solid","external":"i-heroicons-arrow-up-right-20-solid","chevron":"i-heroicons-chevron-down-20-solid","hash":"i-heroicons-hashtag-20-solid"}},"header":{"logo":{"light":"","dark":"","alt":""},"search":true,"colorMode":true,"links":[]},"footer":{"credits":"","colorMode":false,"links":[]},"toc":{"title":"","bottom":{"title":"","edit":"","links":[]}}}},"appConfig":{"nuxt":{"buildId":"329cb327-e812-42bb-8e32-b09413458b56"},"ui":{"primary":"green","gray":"slate","colors":["red","orange","amber","yellow","lime","green","emerald","teal","cyan","sky","blue","indigo","violet","purple","fuchsia","pink","rose","primary"],"strategy":"merge","variables":{"light":{"background":"255 255 255","foreground":"var(--color-gray-700)"},"dark":{"background":"var(--color-gray-900)","foreground":"var(--color-gray-200)"},"header":{"height":"4rem"}},"icons":{"dark":"i-heroicons-moon","light":"i-heroicons-sun","search":"i-heroicons-magnifying-glass-20-solid","external":"i-heroicons-arrow-up-right-20-solid","chevron":"i-heroicons-chevron-down-20-solid","hash":"i-heroicons-hashtag-20-solid"},"presets":{"button":{"primary":{"color":"white","variant":"solid"},"secondary":{"color":"gray","variant":"ghost"},"input":{"color":"white","variant":"outline","ui":{"font":"","color":{"white":{"outline":"ring-1 ring-inset ring-gray-300 dark:ring-gray-700 hover:ring-gray-300 dark:hover:ring-gray-700 hover:bg-gray-100/50 dark:hover:bg-gray-800/50 text-gray-400 dark:text-gray-500 hover:text-gray-700 dark:hover:text-gray-200 focus-visible:ring-2 focus-visible:ring-primary-500 dark:focus-visible-ring-primary-400"}}}}}},"footer":{"bottom":{"left":"text-sm text-gray-500 dark:text-gray-400","wrapper":"border-t border-gray-200 dark:border-gray-800"}}},"header":{"logo":{"alt":"logo nuxt supabase module","light":"/logo-nuxt-supabase-light.png","dark":"/logo-nuxt-supabase-dark.png"},"search":true,"colorMode":true,"links":[{"icon":"i-simple-icons-x","to":"https://x.com/nuxt_js","target":"_blank","aria-label":"Nuxt on X"},{"icon":"i-simple-icons-github","to":"https://github.com/nuxt-modules/supabase","target":"_blank","aria-label":"Module on GitHub"},{"icon":"i-simple-icons-nuxtdotjs","to":"https://nuxt.com","target":"_blank","aria-label":"Nuxt official website"},{"icon":"i-simple-icons-supabase","to":"https://supabase.com","target":"_blank","aria-label":"Supabase official website"}]},"footer":{"credits":"Made with Nuxt Studio","colorMode":false,"links":[{"icon":"i-simple-icons-x","to":"https://x.com/nuxt_js","target":"_blank","aria-label":"Nuxt on X"},{"icon":"i-simple-icons-github","to":"https://github.com/nuxt-modules/supabase","target":"_blank","aria-label":"Module on GitHub"},{"icon":"i-simple-icons-nuxtdotjs","to":"https://nuxt.com","target":"_blank","aria-label":"Nuxt official website"},{"icon":"i-simple-icons-supabase","to":"https://supabase.com","target":"_blank","aria-label":"Supabase official website"}]},"toc":{"title":"Table of Contents","bottom":{"title":"Community","edit":"https://github.com/nuxt-modules/supabase/edit/main/docs/content","links":[{"icon":"i-heroicons-star","label":"Star on GitHub","to":"https://github.com/nuxt-modules/supabase","target":"_blank"},{"icon":"i-simple-icons-nuxtdotjs","label":"Nuxt docs","to":"https://nuxt.com","target":"_blank"},{"icon":"i-simple-icons-supabase","label":"Supabase docs","to":"https://supabase.com","target":"_blank"}]}}},"content":{"sources":{},"ignores":[],"locales":[],"defaultLocale":"","highlight":{"theme":{"light":"material-theme-lighter","default":"material-theme","dark":"material-theme-palenight"},"preload":["json","js","ts","html","css","vue","diff","shell","markdown","yaml","bash","ini"]},"navigation":{"fields":["icon"]},"documentDriven":false,"experimental":{"clientDB":false,"stripQueryParameters":false,"advanceQuery":false,"search":""}},"components":[{"name":"Releases","path":"components/content/Releases.vue","meta":{"props":[],"slots":[],"events":[]}},{"name":"VoltaBoard","path":"components/content/VoltaBoard.vue","meta":{"props":[{"name":"token","global":false,"description":"","tags":[],"required":true,"type":"string","declarations":[{"file":"/home/runner/work/supabase/supabase/docs/components/content/VoltaBoard.vue","range":[154,203]},{"file":"/home/runner/work/supabase/supabase/docs/components/content/VoltaBoard.vue","range":[154,203]}],"schema":"string"}],"slots":[],"events":[]}},{"name":"Callout","path":"node_modules/.pnpm/@nuxt+ui-pro-edge@0.4.2-28327301.722ea75_nuxt@3.8.1_vite@4.5.0_vue@3.3.8_webpack@5.89.0/node_modules/@nuxt/ui-pro-edge/modules/pro/runtime/components/content/Callout.vue","meta":{"props":[],"slots":[],"events":[]}},{"name":"Card","path":"node_modules/.pnpm/@nuxt+ui-pro-edge@0.4.2-28327301.722ea75_nuxt@3.8.1_vite@4.5.0_vue@3.3.8_webpack@5.89.0/node_modules/@nuxt/ui-pro-edge/modules/pro/runtime/components/content/Card.vue","meta":{"props":[],"slots":[],"events":[]}},{"name":"CardGroup","path":"node_modules/.pnpm/@nuxt+ui-pro-edge@0.4.2-28327301.722ea75_nuxt@3.8.1_vite@4.5.0_vue@3.3.8_webpack@5.89.0/node_modules/@nuxt/ui-pro-edge/modules/pro/runtime/components/content/CardGroup.vue","meta":{"props":[],"slots":[],"events":[]}},{"name":"CodeGroup","path":"node_modules/.pnpm/@nuxt+ui-pro-edge@0.4.2-28327301.722ea75_nuxt@3.8.1_vite@4.5.0_vue@3.3.8_webpack@5.89.0/node_modules/@nuxt/ui-pro-edge/modules/pro/runtime/components/content/CodeGroup.vue","meta":{"props":[],"slots":[],"events":[]}},{"name":"Collapsible","path":"node_modules/.pnpm/@nuxt+ui-pro-edge@0.4.2-28327301.722ea75_nuxt@3.8.1_vite@4.5.0_vue@3.3.8_webpack@5.89.0/node_modules/@nuxt/ui-pro-edge/modules/pro/runtime/components/content/Collapsible.vue","meta":{"props":[],"slots":[],"events":[]}},{"name":"Field","path":"node_modules/.pnpm/@nuxt+ui-pro-edge@0.4.2-28327301.722ea75_nuxt@3.8.1_vite@4.5.0_vue@3.3.8_webpack@5.89.0/node_modules/@nuxt/ui-pro-edge/modules/pro/runtime/components/content/Field.vue","meta":{"props":[],"slots":[],"events":[]}},{"name":"FieldGroup","path":"node_modules/.pnpm/@nuxt+ui-pro-edge@0.4.2-28327301.722ea75_nuxt@3.8.1_vite@4.5.0_vue@3.3.8_webpack@5.89.0/node_modules/@nuxt/ui-pro-edge/modules/pro/runtime/components/content/FieldGroup.vue","meta":{"props":[],"slots":[],"events":[]}},{"name":"Shortcut","path":"node_modules/.pnpm/@nuxt+ui-pro-edge@0.4.2-28327301.722ea75_nuxt@3.8.1_vite@4.5.0_vue@3.3.8_webpack@5.89.0/node_modules/@nuxt/ui-pro-edge/modules/pro/runtime/components/content/Shortcut.vue","meta":{"props":[],"slots":[],"events":[]}},{"name":"Tabs","path":"node_modules/.pnpm/@nuxt+ui-pro-edge@0.4.2-28327301.722ea75_nuxt@3.8.1_vite@4.5.0_vue@3.3.8_webpack@5.89.0/node_modules/@nuxt/ui-pro-edge/modules/pro/runtime/components/content/Tabs.vue","meta":{"props":[],"slots":[],"events":[]}},{"name":"Icon","path":"node_modules/.pnpm/nuxt-icon@0.6.6_nuxt@3.8.1_vite@4.5.0_vue@3.3.8/node_modules/nuxt-icon/dist/runtime/Icon.vue","meta":{"props":[],"slots":[],"events":[]}},{"name":"IconCss","path":"node_modules/.pnpm/nuxt-icon@0.6.6_nuxt@3.8.1_vite@4.5.0_vue@3.3.8/node_modules/nuxt-icon/dist/runtime/IconCSS.vue","meta":{"props":[],"slots":[],"events":[]}},{"name":"OgImageStatic","path":"node_modules/.pnpm/nuxt-og-image@2.2.4_@nuxt+devtools@1.0.0_@vue+compiler-core@3.3.8_nuxt@3.8.1_postcss@8.4.31_v_nzn33ufiyu47ulmzmnof6ejtbu/node_modules/nuxt-og-image/dist/runtime/components/OgImage/Static.mjs","meta":{"props":[],"slots":[],"events":[]}},{"name":"OgImageDynamic","path":"node_modules/.pnpm/nuxt-og-image@2.2.4_@nuxt+devtools@1.0.0_@vue+compiler-core@3.3.8_nuxt@3.8.1_postcss@8.4.31_v_nzn33ufiyu47ulmzmnof6ejtbu/node_modules/nuxt-og-image/dist/runtime/components/OgImage/Dynamic.mjs","meta":{"props":[],"slots":[],"events":[]}},{"name":"OgImage","path":"node_modules/.pnpm/nuxt-og-image@2.2.4_@nuxt+devtools@1.0.0_@vue+compiler-core@3.3.8_nuxt@3.8.1_postcss@8.4.31_v_nzn33ufiyu47ulmzmnof6ejtbu/node_modules/nuxt-og-image/dist/runtime/components/OgImage/index.mjs","meta":{"props":[],"slots":[],"events":[]}},{"name":"OgImageCached","path":"node_modules/.pnpm/nuxt-og-image@2.2.4_@nuxt+devtools@1.0.0_@vue+compiler-core@3.3.8_nuxt@3.8.1_postcss@8.4.31_v_nzn33ufiyu47ulmzmnof6ejtbu/node_modules/nuxt-og-image/dist/runtime/components/OgImage/Cached.mjs","meta":{"props":[],"slots":[],"events":[]}},{"name":"OgImageWithoutCache","path":"node_modules/.pnpm/nuxt-og-image@2.2.4_@nuxt+devtools@1.0.0_@vue+compiler-core@3.3.8_nuxt@3.8.1_postcss@8.4.31_v_nzn33ufiyu47ulmzmnof6ejtbu/node_modules/nuxt-og-image/dist/runtime/components/OgImage/WithoutCache.mjs","meta":{"props":[],"slots":[],"events":[]}},{"name":"OgImageScreenshot","path":"node_modules/.pnpm/nuxt-og-image@2.2.4_@nuxt+devtools@1.0.0_@vue+compiler-core@3.3.8_nuxt@3.8.1_postcss@8.4.31_v_nzn33ufiyu47ulmzmnof6ejtbu/node_modules/nuxt-og-image/dist/runtime/components/OgImage/Screenshot.mjs","meta":{"props":[],"slots":[],"events":[]}},{"name":"GithubRepository","path":"node_modules/.pnpm/@nuxtlabs+github-module@1.6.3/node_modules/@nuxtlabs/github-module/dist/runtime/components/GithubRepository.mjs","meta":{"props":[],"slots":[],"events":[]}},{"name":"GithubLink","path":"node_modules/.pnpm/@nuxtlabs+github-module@1.6.3/node_modules/@nuxtlabs/github-module/dist/runtime/components/GithubLink.mjs","meta":{"props":[],"slots":[],"events":[]}},{"name":"GithubReadme","path":"node_modules/.pnpm/@nuxtlabs+github-module@1.6.3/node_modules/@nuxtlabs/github-module/dist/runtime/components/GithubReadme.mjs","meta":{"props":[],"slots":[],"events":[]}},{"name":"GithubReleases","path":"node_modules/.pnpm/@nuxtlabs+github-module@1.6.3/node_modules/@nuxtlabs/github-module/dist/runtime/components/GithubReleases.mjs","meta":{"props":[],"slots":[],"events":[]}},{"name":"GithubLastRelease","path":"node_modules/.pnpm/@nuxtlabs+github-module@1.6.3/node_modules/@nuxtlabs/github-module/dist/runtime/components/GithubLastRelease.mjs","meta":{"props":[],"slots":[],"events":[]}},{"name":"GithubRelease","path":"node_modules/.pnpm/@nuxtlabs+github-module@1.6.3/node_modules/@nuxtlabs/github-module/dist/runtime/components/GithubRelease.mjs","meta":{"props":[],"slots":[],"events":[]}},{"name":"GithubContributors","path":"node_modules/.pnpm/@nuxtlabs+github-module@1.6.3/node_modules/@nuxtlabs/github-module/dist/runtime/components/GithubContributors.mjs","meta":{"props":[],"slots":[],"events":[]}},{"name":"GithubFileContributors","path":"node_modules/.pnpm/@nuxtlabs+github-module@1.6.3/node_modules/@nuxtlabs/github-module/dist/runtime/components/GithubFileContributors.mjs","meta":{"props":[],"slots":[],"events":[]}},{"name":"GithubCommits","path":"node_modules/.pnpm/@nuxtlabs+github-module@1.6.3/node_modules/@nuxtlabs/github-module/dist/runtime/components/GithubCommits.mjs","meta":{"props":[],"slots":[],"events":[]}}]} \ No newline at end of file diff --git a/_nuxt/Cached.55e8291f.js b/_nuxt/Cached.e6d2f62a.js similarity index 53% rename from _nuxt/Cached.55e8291f.js rename to _nuxt/Cached.e6d2f62a.js index 016af22a..68173ebc 100644 --- a/_nuxt/Cached.55e8291f.js +++ b/_nuxt/Cached.e6d2f62a.js @@ -1 +1 @@ -import{d as e}from"./entry.8c781d5d.js";const o=e({name:"OgImageCached",async setup(a,{attrs:t}){return()=>null}});export{o as default}; +import{d as e}from"./entry.ae6f67a5.js";const o=e({name:"OgImageCached",async setup(a,{attrs:t}){return()=>null}});export{o as default}; diff --git a/_nuxt/Callout.8f8ee156.js b/_nuxt/Callout.d8907a73.js similarity index 97% rename from _nuxt/Callout.8f8ee156.js rename to _nuxt/Callout.d8907a73.js index f99670cb..22c53fb5 100644 --- a/_nuxt/Callout.8f8ee156.js +++ b/_nuxt/Callout.d8907a73.js @@ -1 +1 @@ -import{d as y,x as v,ah as x,ai as c,E as i,b1 as d,b as t,c as _,a8 as n,w,f as s,n as u,aC as e,aa as C,e as E,aE as I,a3 as A}from"./entry.8c781d5d.js";import{r as B}from"./slot.68f639bf.js";import"./node.f7b4ab96.js";const L=E("span",{class:"absolute inset-0","aria-hidden":"true"},null,-1),F=y({inheritAttrs:!1,__name:"Callout",props:{icon:{default:void 0},color:{default:"primary"},to:{default:void 0},target:{default:void 0},ui:{default:()=>({})},class:{default:void 0}},setup(p){const g=v(),m={wrapper:"block pl-4 pr-6 py-3 rounded-md border border-gray-200 dark:border-gray-700 bg-gray-50 dark:bg-gray-800 text-gray-700 dark:text-gray-300 text-sm/6 my-5 last:mb-0 font-normal group relative prose-code:bg-white dark:prose-code:bg-gray-900",to:"hover:border-[--color-light] dark:hover:border-[--color-dark] hover:text-[--color-light] dark:hover:text-[--color-dark] border-dashed hover:border-solid hover:text-gray-800 dark:hover:text-gray-200",icon:{base:"w-4 h-4 mr-2 inline-flex items-center align-sub text-[--color-light] dark:text-[--color-dark]"},externalIcon:{name:g.ui.icons.external,base:"w-4 h-4 absolute right-2 top-2 text-gray-400 dark:text-gray-500 group-hover:text-[--color-light] dark:group-hover:text-[--color-dark]"}},o=p,{ui:a,attrs:b}=x("content.callout",c(o,"ui"),m,c(o,"class"),!0),f=i(()=>{var r;return o.color==="primary"?"rgb(var(--color-primary-DEFAULT))":((r=d[o.color])==null?void 0:r["500"])||o.color}),h=i(()=>{var r;return o.color==="primary"?"rgb(var(--color-primary-DEFAULT))":((r=d[o.color])==null?void 0:r["400"])||o.color});return(r,U)=>{const k=I,l=A;return t(),_("div",C({class:[e(a).wrapper,r.to&&e(a).to]},e(b),{style:{"--color-light":e(f),"--color-dark":e(h)}}),[r.to?(t(),n(k,{key:0,to:r.to,target:r.target,class:"focus:outline-none",tabindex:"-1"},{default:w(()=>[L]),_:1},8,["to","target"])):s("",!0),r.icon?(t(),n(l,{key:1,name:r.icon,class:u(e(a).icon.base)},null,8,["name","class"])):s("",!0),r.to&&r.target==="_blank"?(t(),n(l,{key:2,name:e(a).externalIcon.name,class:u(e(a).externalIcon.base)},null,8,["name","class"])):s("",!0),B(r.$slots,"default",{unwrap:"p"})],16)}}});export{F as default}; +import{d as y,x as v,ah as x,ai as c,E as i,b1 as d,b as t,c as _,a8 as n,w,f as s,n as u,aC as e,aa as C,e as E,aE as I,a3 as A}from"./entry.ae6f67a5.js";import{r as B}from"./slot.98627438.js";import"./node.f7b4ab96.js";const L=E("span",{class:"absolute inset-0","aria-hidden":"true"},null,-1),F=y({inheritAttrs:!1,__name:"Callout",props:{icon:{default:void 0},color:{default:"primary"},to:{default:void 0},target:{default:void 0},ui:{default:()=>({})},class:{default:void 0}},setup(p){const g=v(),m={wrapper:"block pl-4 pr-6 py-3 rounded-md border border-gray-200 dark:border-gray-700 bg-gray-50 dark:bg-gray-800 text-gray-700 dark:text-gray-300 text-sm/6 my-5 last:mb-0 font-normal group relative prose-code:bg-white dark:prose-code:bg-gray-900",to:"hover:border-[--color-light] dark:hover:border-[--color-dark] hover:text-[--color-light] dark:hover:text-[--color-dark] border-dashed hover:border-solid hover:text-gray-800 dark:hover:text-gray-200",icon:{base:"w-4 h-4 mr-2 inline-flex items-center align-sub text-[--color-light] dark:text-[--color-dark]"},externalIcon:{name:g.ui.icons.external,base:"w-4 h-4 absolute right-2 top-2 text-gray-400 dark:text-gray-500 group-hover:text-[--color-light] dark:group-hover:text-[--color-dark]"}},o=p,{ui:a,attrs:b}=x("content.callout",c(o,"ui"),m,c(o,"class"),!0),f=i(()=>{var r;return o.color==="primary"?"rgb(var(--color-primary-DEFAULT))":((r=d[o.color])==null?void 0:r["500"])||o.color}),h=i(()=>{var r;return o.color==="primary"?"rgb(var(--color-primary-DEFAULT))":((r=d[o.color])==null?void 0:r["400"])||o.color});return(r,U)=>{const k=I,l=A;return t(),_("div",C({class:[e(a).wrapper,r.to&&e(a).to]},e(b),{style:{"--color-light":e(f),"--color-dark":e(h)}}),[r.to?(t(),n(k,{key:0,to:r.to,target:r.target,class:"focus:outline-none",tabindex:"-1"},{default:w(()=>[L]),_:1},8,["to","target"])):s("",!0),r.icon?(t(),n(l,{key:1,name:r.icon,class:u(e(a).icon.base)},null,8,["name","class"])):s("",!0),r.to&&r.target==="_blank"?(t(),n(l,{key:2,name:e(a).externalIcon.name,class:u(e(a).externalIcon.base)},null,8,["name","class"])):s("",!0),B(r.$slots,"default",{unwrap:"p"})],16)}}});export{F as default}; diff --git a/_nuxt/Card.a10986e6.js b/_nuxt/Card.428980e9.js similarity index 94% rename from _nuxt/Card.a10986e6.js rename to _nuxt/Card.428980e9.js index 85b6083e..3d2b6785 100644 --- a/_nuxt/Card.a10986e6.js +++ b/_nuxt/Card.428980e9.js @@ -1 +1 @@ -import{d as v,x as w,ah as C,ai as c,E as u,b1 as d,b as a,a8 as n,w as p,f as s,n as l,aC as t,e as m,t as E,c as I,aa as U,aE as A,a3 as B}from"./entry.8c781d5d.js";import{_ as D}from"./Card.a6294156.js";import{r as L}from"./slot.68f639bf.js";import"./node.f7b4ab96.js";const $=m("span",{class:"absolute inset-0","aria-hidden":"true"},null,-1),z=v({inheritAttrs:!1,__name:"Card",props:{icon:{default:void 0},color:{default:"primary"},to:{default:void 0},target:{default:void 0},title:{default:void 0},ui:{default:()=>({})},class:{default:void 0}},setup(g){const f=w(),h={wrapper:"relative group overflow-hidden flex items-center rounded-lg",to:"hover:ring-1 hover:ring-[--color-light] dark:hover:ring-[--color-dark] hover:bg-gray-100/50 dark:hover:bg-gray-800/50",icon:{base:"w-6 h-6 mb-4 inline-flex items-center text-[--color-light] dark:text-[--color-dark] pointer-events-none"},body:{base:"flex-1"},externalIcon:{name:f.ui.icons.external,base:"w-4 h-4 absolute right-2 top-2 text-gray-400 dark:text-gray-500 group-hover:text-[--color-light] dark:group-hover:text-[--color-dark]"},title:"text-gray-900 dark:text-white font-semibold text-base my-0",description:"text-[15px] text-gray-500 dark:text-gray-400 mt-1 mb-0"},o=g,{ui:r,attrs:k}=C("content.card",c(o,"ui"),h,c(o,"class"),!0),y=u(()=>{var e;return o.color==="primary"?"rgb(var(--color-primary-DEFAULT))":((e=d[o.color])==null?void 0:e["500"])||o.color}),b=u(()=>{var e;return o.color==="primary"?"rgb(var(--color-primary-DEFAULT))":((e=d[o.color])==null?void 0:e["400"])||o.color});return(e,N)=>{const _=A,i=B,x=D;return a(),n(x,U({class:[t(r).wrapper,e.to&&t(r).to]},t(k),{ui:t(r),style:{"--color-light":t(y),"--color-dark":t(b)}}),{default:p(()=>[e.to?(a(),n(_,{key:0,to:e.to,target:e.target,class:"focus:outline-none",tabindex:"-1"},{default:p(()=>[$]),_:1},8,["to","target"])):s("",!0),e.icon?(a(),n(i,{key:1,name:e.icon,class:l(t(r).icon.base)},null,8,["name","class"])):s("",!0),e.to&&e.target==="_blank"?(a(),n(i,{key:2,name:t(r).externalIcon.name,class:l(t(r).externalIcon.base)},null,8,["name","class"])):s("",!0),m("p",{class:l(t(r).title)},E(e.title),3),e.$slots.default?(a(),I("p",{key:3,class:l(t(r).description)},[L(e.$slots,"default",{unwrap:"p"})],2)):s("",!0)]),_:3},16,["class","ui","style"])}}});export{z as default}; +import{d as v,x as w,ah as C,ai as c,E as u,b1 as d,b as a,a8 as n,w as p,f as s,n as l,aC as t,e as m,t as E,c as I,aa as U,aE as A,a3 as B}from"./entry.ae6f67a5.js";import{_ as D}from"./Card.68bb9e1d.js";import{r as L}from"./slot.98627438.js";import"./node.f7b4ab96.js";const $=m("span",{class:"absolute inset-0","aria-hidden":"true"},null,-1),z=v({inheritAttrs:!1,__name:"Card",props:{icon:{default:void 0},color:{default:"primary"},to:{default:void 0},target:{default:void 0},title:{default:void 0},ui:{default:()=>({})},class:{default:void 0}},setup(g){const f=w(),h={wrapper:"relative group overflow-hidden flex items-center rounded-lg",to:"hover:ring-1 hover:ring-[--color-light] dark:hover:ring-[--color-dark] hover:bg-gray-100/50 dark:hover:bg-gray-800/50",icon:{base:"w-6 h-6 mb-4 inline-flex items-center text-[--color-light] dark:text-[--color-dark] pointer-events-none"},body:{base:"flex-1"},externalIcon:{name:f.ui.icons.external,base:"w-4 h-4 absolute right-2 top-2 text-gray-400 dark:text-gray-500 group-hover:text-[--color-light] dark:group-hover:text-[--color-dark]"},title:"text-gray-900 dark:text-white font-semibold text-base my-0",description:"text-[15px] text-gray-500 dark:text-gray-400 mt-1 mb-0"},o=g,{ui:r,attrs:k}=C("content.card",c(o,"ui"),h,c(o,"class"),!0),y=u(()=>{var e;return o.color==="primary"?"rgb(var(--color-primary-DEFAULT))":((e=d[o.color])==null?void 0:e["500"])||o.color}),b=u(()=>{var e;return o.color==="primary"?"rgb(var(--color-primary-DEFAULT))":((e=d[o.color])==null?void 0:e["400"])||o.color});return(e,N)=>{const _=A,i=B,x=D;return a(),n(x,U({class:[t(r).wrapper,e.to&&t(r).to]},t(k),{ui:t(r),style:{"--color-light":t(y),"--color-dark":t(b)}}),{default:p(()=>[e.to?(a(),n(_,{key:0,to:e.to,target:e.target,class:"focus:outline-none",tabindex:"-1"},{default:p(()=>[$]),_:1},8,["to","target"])):s("",!0),e.icon?(a(),n(i,{key:1,name:e.icon,class:l(t(r).icon.base)},null,8,["name","class"])):s("",!0),e.to&&e.target==="_blank"?(a(),n(i,{key:2,name:t(r).externalIcon.name,class:l(t(r).externalIcon.base)},null,8,["name","class"])):s("",!0),m("p",{class:l(t(r).title)},E(e.title),3),e.$slots.default?(a(),I("p",{key:3,class:l(t(r).description)},[L(e.$slots,"default",{unwrap:"p"})],2)):s("",!0)]),_:3},16,["class","ui","style"])}}});export{z as default}; diff --git a/_nuxt/Card.a6294156.js b/_nuxt/Card.68bb9e1d.js similarity index 94% rename from _nuxt/Card.a6294156.js rename to _nuxt/Card.68bb9e1d.js index a1014d78..f1c86e0f 100644 --- a/_nuxt/Card.a6294156.js +++ b/_nuxt/Card.68bb9e1d.js @@ -1 +1 @@ -import{k as l,ad as c,b3 as f,af as n,d as p,ah as b,ai as g,E as m,aG as v,al as y,b as s,a8 as h,w as k,c as i,n as o,a9 as r,f as u,e as $,aa as C,b4 as w}from"./entry.8c781d5d.js";const B=c(n.ui.strategy,n.ui.card,f),S=p({inheritAttrs:!1,props:{as:{type:String,default:"div"},class:{type:[String,Object,Array],default:void 0},ui:{type:Object,default:void 0}},setup(a){const{ui:e,attrs:t}=b("card",g(a,"ui"),B),d=m(()=>v(y(e.value.base,e.value.rounded,e.value.divide,e.value.ring,e.value.shadow,e.value.background),a.class));return{ui:e,attrs:t,cardClass:d}}});function j(a,e,t,d,A,E){return s(),h(w(a.$attrs.onSubmit?"form":a.as),C({class:a.cardClass},a.attrs),{default:k(()=>[a.$slots.header?(s(),i("div",{key:0,class:o([a.ui.header.base,a.ui.header.padding,a.ui.header.background])},[r(a.$slots,"header")],2)):u("",!0),$("div",{class:o([a.ui.body.base,a.ui.body.padding,a.ui.body.background])},[r(a.$slots,"default")],2),a.$slots.footer?(s(),i("div",{key:1,class:o([a.ui.footer.base,a.ui.footer.padding,a.ui.footer.background])},[r(a.$slots,"footer")],2)):u("",!0)]),_:3},16,["class"])}const O=l(S,[["render",j]]);export{O as _}; +import{k as l,ad as c,b3 as f,af as n,d as p,ah as b,ai as g,E as m,aG as v,al as y,b as s,a8 as h,w as k,c as i,n as o,a9 as r,f as u,e as $,aa as C,b4 as w}from"./entry.ae6f67a5.js";const B=c(n.ui.strategy,n.ui.card,f),S=p({inheritAttrs:!1,props:{as:{type:String,default:"div"},class:{type:[String,Object,Array],default:void 0},ui:{type:Object,default:void 0}},setup(a){const{ui:e,attrs:t}=b("card",g(a,"ui"),B),d=m(()=>v(y(e.value.base,e.value.rounded,e.value.divide,e.value.ring,e.value.shadow,e.value.background),a.class));return{ui:e,attrs:t,cardClass:d}}});function j(a,e,t,d,A,E){return s(),h(w(a.$attrs.onSubmit?"form":a.as),C({class:a.cardClass},a.attrs),{default:k(()=>[a.$slots.header?(s(),i("div",{key:0,class:o([a.ui.header.base,a.ui.header.padding,a.ui.header.background])},[r(a.$slots,"header")],2)):u("",!0),$("div",{class:o([a.ui.body.base,a.ui.body.padding,a.ui.body.background])},[r(a.$slots,"default")],2),a.$slots.footer?(s(),i("div",{key:1,class:o([a.ui.footer.base,a.ui.footer.padding,a.ui.footer.background])},[r(a.$slots,"footer")],2)):u("",!0)]),_:3},16,["class"])}const O=l(S,[["render",j]]);export{O as _}; diff --git a/_nuxt/CardGroup.e0a1ecca.js b/_nuxt/CardGroup.bfc0b923.js similarity index 83% rename from _nuxt/CardGroup.e0a1ecca.js rename to _nuxt/CardGroup.bfc0b923.js index 0cfb14c8..10e55bec 100644 --- a/_nuxt/CardGroup.e0a1ecca.js +++ b/_nuxt/CardGroup.bfc0b923.js @@ -1 +1 @@ -import{d as c,ah as p,ai as i,b as l,c as d,a9 as u,aa as f,aC as s}from"./entry.8c781d5d.js";const _=c({inheritAttrs:!1,__name:"CardGroup",props:{class:{}},setup(a){const e={wrapper:"grid sm:grid-cols-2 gap-4"},r=a,{ui:t,attrs:o}=p("content.cardGroup",void 0,e,i(r,"class"),!0);return(n,m)=>(l(),d("div",f({class:s(t).wrapper},s(o)),[u(n.$slots,"default")],16))}});export{_ as default}; +import{d as c,ah as p,ai as i,b as l,c as d,a9 as u,aa as f,aC as s}from"./entry.ae6f67a5.js";const _=c({inheritAttrs:!1,__name:"CardGroup",props:{class:{}},setup(a){const e={wrapper:"grid sm:grid-cols-2 gap-4"},r=a,{ui:t,attrs:o}=p("content.cardGroup",void 0,e,i(r,"class"),!0);return(n,m)=>(l(),d("div",f({class:s(t).wrapper},s(o)),[u(n.$slots,"default")],16))}});export{_ as default}; diff --git a/_nuxt/CodeGroup.4475af6b.js b/_nuxt/CodeGroup.80c331bd.js similarity index 91% rename from _nuxt/CodeGroup.4475af6b.js rename to _nuxt/CodeGroup.80c331bd.js index 9160875b..2c796541 100644 --- a/_nuxt/CodeGroup.4475af6b.js +++ b/_nuxt/CodeGroup.80c331bd.js @@ -1 +1 @@ -import{_ as k}from"./ProseCodeIcon.vue.ffb3ef12.js";import{d as x,b0 as C,ah as B,ai as w,r as I,E as u,b as n,c as p,e as f,F as $,a7 as D,n as m,aC as e,g as E,t as F,a8 as G,b4 as N,aa as P}from"./entry.8c781d5d.js";const S=["onClick"],A=x({inheritAttrs:!1,__name:"CodeGroup",props:{class:{}},setup(g){const v={wrapper:"relative [&>div:last-child]:!my-0 [&>div:last-child]:!static my-5",header:"flex items-center gap-1 border border-gray-200 dark:border-gray-700 border-b-0 rounded-t-md overflow-hidden p-2",tab:{base:"px-2 py-1.5 focus:outline-none text-gray-700 dark:text-gray-200 text-sm rounded-md flex items-center gap-1.5",active:"bg-gray-100 dark:bg-gray-800",inactive:"hover:bg-gray-50 dark:hover:bg-gray-800/50",icon:{base:""}}},y=g,c=C(),{ui:s,attrs:_}=B("content.codeGroup",void 0,v,w(y,"class"),!0),i=I(0),b=u(()=>{var o;return((o=c.default)==null?void 0:o.call(c).map((a,l)=>{var r,t,d;return{label:((r=a.props)==null?void 0:r.filename)||((t=a.props)==null?void 0:t.label)||`${l}`,icon:(d=a.props)==null?void 0:d.icon,component:a}}))||[]}),h=u(()=>b.value.find((o,a)=>a===i.value));return(o,a)=>{const l=k;return n(),p("div",P({class:e(s).wrapper},e(_)),[f("div",{class:m(e(s).header)},[(n(!0),p($,null,D(e(b),(r,t)=>(n(),p("button",{key:t,tabindex:"-1",class:m([e(s).tab.base,e(i)===t?e(s).tab.active:e(s).tab.inactive]),onClick:d=>i.value=t},[E(l,{icon:r.icon,filename:r.label,class:m(e(s).tab.icon.base)},null,8,["icon","filename","class"]),f("span",null,F(r.label),1)],10,S))),128))],2),(n(),G(N(e(h).component),{"hide-header":""}))],16)}}});export{A as default}; +import{_ as k}from"./ProseCodeIcon.vue.d817ff5a.js";import{d as x,b0 as C,ah as B,ai as w,r as I,E as u,b as n,c as p,e as f,F as $,a7 as D,n as m,aC as e,g as E,t as F,a8 as G,b4 as N,aa as P}from"./entry.ae6f67a5.js";const S=["onClick"],A=x({inheritAttrs:!1,__name:"CodeGroup",props:{class:{}},setup(g){const v={wrapper:"relative [&>div:last-child]:!my-0 [&>div:last-child]:!static my-5",header:"flex items-center gap-1 border border-gray-200 dark:border-gray-700 border-b-0 rounded-t-md overflow-hidden p-2",tab:{base:"px-2 py-1.5 focus:outline-none text-gray-700 dark:text-gray-200 text-sm rounded-md flex items-center gap-1.5",active:"bg-gray-100 dark:bg-gray-800",inactive:"hover:bg-gray-50 dark:hover:bg-gray-800/50",icon:{base:""}}},y=g,c=C(),{ui:s,attrs:_}=B("content.codeGroup",void 0,v,w(y,"class"),!0),i=I(0),b=u(()=>{var o;return((o=c.default)==null?void 0:o.call(c).map((a,l)=>{var r,t,d;return{label:((r=a.props)==null?void 0:r.filename)||((t=a.props)==null?void 0:t.label)||`${l}`,icon:(d=a.props)==null?void 0:d.icon,component:a}}))||[]}),h=u(()=>b.value.find((o,a)=>a===i.value));return(o,a)=>{const l=k;return n(),p("div",P({class:e(s).wrapper},e(_)),[f("div",{class:m(e(s).header)},[(n(!0),p($,null,D(e(b),(r,t)=>(n(),p("button",{key:t,tabindex:"-1",class:m([e(s).tab.base,e(i)===t?e(s).tab.active:e(s).tab.inactive]),onClick:d=>i.value=t},[E(l,{icon:r.icon,filename:r.label,class:m(e(s).tab.icon.base)},null,8,["icon","filename","class"]),f("span",null,F(r.label),1)],10,S))),128))],2),(n(),G(N(e(h).component),{"hide-header":""}))],16)}}});export{A as default}; diff --git a/_nuxt/Collapsible.e83ea7ff.js b/_nuxt/Collapsible.d92e4f74.js similarity index 88% rename from _nuxt/Collapsible.e83ea7ff.js rename to _nuxt/Collapsible.d92e4f74.js index a5c4bacc..9d4e0182 100644 --- a/_nuxt/Collapsible.e83ea7ff.js +++ b/_nuxt/Collapsible.d92e4f74.js @@ -1 +1 @@ -import{d as p,x as u,ah as m,b as d,a8 as b,w as t,g as o,aC as a,b5 as f,n,e as _,t as i,b6 as g,b7 as v,a3 as x}from"./entry.8c781d5d.js";import{r as h}from"./slot.68f639bf.js";import"./node.f7b4ab96.js";const V=p({__name:"Collapsible",props:{name:{default:"properties"}},setup(y){const l={button:{base:"flex items-center gap-1 text-sm text-gray-500 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-200",icon:{name:u().ui.icons.chevron,base:"w-4 h-4 transform transition-transform duration-200",active:"",inactive:"-rotate-90"}},panel:"mt-4 ml-2 py-2.5 pl-4 border-l border-gray-200 dark:border-gray-800 [&>div]:!mt-0"},{ui:e}=m("prose.collapsible",void 0,l,void 0,!0);return(s,k)=>{const c=x;return d(),b(a(v),null,{default:t(({open:r})=>[o(a(f),{class:n(a(e).button.base)},{default:t(()=>[o(c,{name:a(e).button.icon.name,class:n([a(e).button.icon.base,r?a(e).button.icon.active:a(e).button.icon.inactive])},null,8,["name","class"]),_("span",null,i(r?"Hide":"Show")+" "+i(s.name),1)]),_:2},1032,["class"]),o(a(g),{class:n(a(e).panel)},{default:t(()=>[h(s.$slots,"default",{unwrap:"p"})]),_:3},8,["class"])]),_:3})}}});export{V as default}; +import{d as p,x as u,ah as m,b as d,a8 as b,w as t,g as o,aC as a,b5 as f,n,e as _,t as i,b6 as g,b7 as v,a3 as x}from"./entry.ae6f67a5.js";import{r as h}from"./slot.98627438.js";import"./node.f7b4ab96.js";const V=p({__name:"Collapsible",props:{name:{default:"properties"}},setup(y){const l={button:{base:"flex items-center gap-1 text-sm text-gray-500 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-200",icon:{name:u().ui.icons.chevron,base:"w-4 h-4 transform transition-transform duration-200",active:"",inactive:"-rotate-90"}},panel:"mt-4 ml-2 py-2.5 pl-4 border-l border-gray-200 dark:border-gray-800 [&>div]:!mt-0"},{ui:e}=m("prose.collapsible",void 0,l,void 0,!0);return(s,k)=>{const c=x;return d(),b(a(v),null,{default:t(({open:r})=>[o(a(f),{class:n(a(e).button.base)},{default:t(()=>[o(c,{name:a(e).button.icon.name,class:n([a(e).button.icon.base,r?a(e).button.icon.active:a(e).button.icon.inactive])},null,8,["name","class"]),_("span",null,i(r?"Hide":"Show")+" "+i(s.name),1)]),_:2},1032,["class"]),o(a(g),{class:n(a(e).panel)},{default:t(()=>[h(s.$slots,"default",{unwrap:"p"})]),_:3},8,["class"])]),_:3})}}});export{V as default}; diff --git a/_nuxt/ContentDoc.c766ccb9.js b/_nuxt/ContentDoc.9abd704d.js similarity index 87% rename from _nuxt/ContentDoc.c766ccb9.js rename to _nuxt/ContentDoc.9abd704d.js index 2f9e8c46..fb215999 100644 --- a/_nuxt/ContentDoc.c766ccb9.js +++ b/_nuxt/ContentDoc.9abd704d.js @@ -1 +1 @@ -import{aC as d,M as b,s as y,a0 as w,b8 as D,l as g,d as H,b0 as S,b9 as _,N as s}from"./entry.8c781d5d.js";import q from"./ContentRenderer.404d2a66.js";import x from"./ContentQuery.499a6888.js";import"./ContentRendererMarkdown.vue.703eebc0.js";import"./MDCRenderer.84953d36.js";const a=(u,p=y())=>{const e=d(u),f=g();b(()=>d(u),(n=e)=>{if(!p.path||!n)return;const t=Object.assign({},(n==null?void 0:n.head)||{});t.meta=[...t.meta||[]],t.link=[...t.link||[]];const r=t.title||(n==null?void 0:n.title);r&&(t.title=r),f.public.content.host;const c=(t==null?void 0:t.description)||(n==null?void 0:n.description);c&&t.meta.filter(l=>l.name==="description").length===0&&t.meta.push({name:"description",content:c}),t!=null&&t.image||(n==null||n.image),w(()=>D(t))},{immediate:!0})},$=H({name:"ContentDoc",props:{tag:{type:String,required:!1,default:"div"},excerpt:{type:Boolean,default:!1},path:{type:String,required:!1,default:void 0},query:{type:Object,required:!1,default:void 0},head:{type:Boolean,required:!1,default:void 0}},render(u){const{contentHead:p}=g().public.content,e=S(),{tag:f,excerpt:m,path:n,query:t,head:r}=u,c=r===void 0?p:r,l={...t||{},path:n||(t==null?void 0:t.path)||_(y().path),find:"one"},C=(o,i)=>s("pre",null,JSON.stringify({message:"You should use slots with ",slot:o,data:i},null,2));return s(x,l,{default:e!=null&&e.default?({data:o,refresh:i,isPartial:v})=>{var h;return c&&a(o),(h=e.default)==null?void 0:h.call(e,{doc:o,refresh:i,isPartial:v,excerpt:m,...this.$attrs})}:({data:o})=>(c&&a(o),s(q,{value:o,excerpt:m,tag:f,...this.$attrs},{empty:i=>e!=null&&e.empty?e.empty(i):C("default",o)})),empty:o=>{var i;return((i=e==null?void 0:e.empty)==null?void 0:i.call(e,o))||s("p",null,"Document is empty, overwrite this content with #empty slot in .")},"not-found":o=>{var i;return((i=e==null?void 0:e["not-found"])==null?void 0:i.call(e,o))||s("p",null,"Document not found, overwrite this content with #not-found slot in .")}})}}),R=$;export{R as default}; +import{aC as d,M as b,s as y,a0 as w,b8 as D,l as g,d as H,b0 as S,b9 as _,N as s}from"./entry.ae6f67a5.js";import q from"./ContentRenderer.f8fda652.js";import x from"./ContentQuery.9f00e65c.js";import"./ContentRendererMarkdown.vue.1b328542.js";import"./MDCRenderer.8dddf3be.js";const a=(u,p=y())=>{const e=d(u),f=g();b(()=>d(u),(n=e)=>{if(!p.path||!n)return;const t=Object.assign({},(n==null?void 0:n.head)||{});t.meta=[...t.meta||[]],t.link=[...t.link||[]];const r=t.title||(n==null?void 0:n.title);r&&(t.title=r),f.public.content.host;const c=(t==null?void 0:t.description)||(n==null?void 0:n.description);c&&t.meta.filter(l=>l.name==="description").length===0&&t.meta.push({name:"description",content:c}),t!=null&&t.image||(n==null||n.image),w(()=>D(t))},{immediate:!0})},$=H({name:"ContentDoc",props:{tag:{type:String,required:!1,default:"div"},excerpt:{type:Boolean,default:!1},path:{type:String,required:!1,default:void 0},query:{type:Object,required:!1,default:void 0},head:{type:Boolean,required:!1,default:void 0}},render(u){const{contentHead:p}=g().public.content,e=S(),{tag:f,excerpt:m,path:n,query:t,head:r}=u,c=r===void 0?p:r,l={...t||{},path:n||(t==null?void 0:t.path)||_(y().path),find:"one"},C=(o,i)=>s("pre",null,JSON.stringify({message:"You should use slots with ",slot:o,data:i},null,2));return s(x,l,{default:e!=null&&e.default?({data:o,refresh:i,isPartial:v})=>{var h;return c&&a(o),(h=e.default)==null?void 0:h.call(e,{doc:o,refresh:i,isPartial:v,excerpt:m,...this.$attrs})}:({data:o})=>(c&&a(o),s(q,{value:o,excerpt:m,tag:f,...this.$attrs},{empty:i=>e!=null&&e.empty?e.empty(i):C("default",o)})),empty:o=>{var i;return((i=e==null?void 0:e.empty)==null?void 0:i.call(e,o))||s("p",null,"Document is empty, overwrite this content with #empty slot in .")},"not-found":o=>{var i;return((i=e==null?void 0:e["not-found"])==null?void 0:i.call(e,o))||s("p",null,"Document not found, overwrite this content with #not-found slot in .")}})}}),R=$;export{R as default}; diff --git a/_nuxt/ContentList.c8f4c1af.js b/_nuxt/ContentList.4312565f.js similarity index 84% rename from _nuxt/ContentList.c8f4c1af.js rename to _nuxt/ContentList.4312565f.js index 8fb25624..0a76c1c8 100644 --- a/_nuxt/ContentList.c8f4c1af.js +++ b/_nuxt/ContentList.4312565f.js @@ -1 +1 @@ -import m from"./ContentQuery.499a6888.js";import{d as c,b0 as l,N as r}from"./entry.8c781d5d.js";const f=(u,t)=>r("pre",null,JSON.stringify({message:"You should use slots with ",slot:u,data:t},null,2)),h=c({name:"ContentList",props:{path:{type:String,required:!1,default:void 0},query:{type:Object,required:!1,default:void 0}},render(u){const t=l(),{path:p,query:a}=u,d={...a||{},path:p||(a==null?void 0:a.path)||"/"};return r(m,d,{default:t!=null&&t.default?({data:e,refresh:o,isPartial:n})=>t.default({list:e,refresh:o,isPartial:n,...this.$attrs}):e=>f("default",e.data),empty:e=>t!=null&&t.empty?t.empty(e):f("default",e==null?void 0:e.data),"not-found":e=>{var o;return t!=null&&t["not-found"]?(o=t==null?void 0:t["not-found"])==null?void 0:o.call(t,e):f("not-found",e==null?void 0:e.data)}})}}),_=h;export{_ as default}; +import m from"./ContentQuery.9f00e65c.js";import{d as c,b0 as l,N as r}from"./entry.ae6f67a5.js";const f=(u,t)=>r("pre",null,JSON.stringify({message:"You should use slots with ",slot:u,data:t},null,2)),h=c({name:"ContentList",props:{path:{type:String,required:!1,default:void 0},query:{type:Object,required:!1,default:void 0}},render(u){const t=l(),{path:p,query:a}=u,d={...a||{},path:p||(a==null?void 0:a.path)||"/"};return r(m,d,{default:t!=null&&t.default?({data:e,refresh:o,isPartial:n})=>t.default({list:e,refresh:o,isPartial:n,...this.$attrs}):e=>f("default",e.data),empty:e=>t!=null&&t.empty?t.empty(e):f("default",e==null?void 0:e.data),"not-found":e=>{var o;return t!=null&&t["not-found"]?(o=t==null?void 0:t["not-found"])==null?void 0:o.call(t,e):f("not-found",e==null?void 0:e.data)}})}}),_=h;export{_ as default}; diff --git a/_nuxt/ContentNavigation.8f24d29a.js b/_nuxt/ContentNavigation.23d4fb51.js similarity index 92% rename from _nuxt/ContentNavigation.8f24d29a.js rename to _nuxt/ContentNavigation.23d4fb51.js index 8eb75d4c..8485048f 100644 --- a/_nuxt/ContentNavigation.8f24d29a.js +++ b/_nuxt/ContentNavigation.23d4fb51.js @@ -1 +1 @@ -import{d,ba as l,E as v,m as f,z as p,aP as m,bb as g,aU as h,b0 as y,N as i,aE as _}from"./entry.8c781d5d.js";const b=d({name:"ContentNavigation",props:{query:{type:Object,required:!1,default:void 0}},async setup(u){const{query:a}=l(u),n=v(()=>{var t;return typeof((t=a.value)==null?void 0:t.params)=="function"?a.value.params():a.value});if(!n.value&&f("dd-navigation").value){const{navigation:t}=p();return{navigation:t}}const{data:o}=await m(`content-navigation-${h(n.value)}`,()=>g(n.value));return{navigation:o}},render(u){const a=y(),{navigation:n}=u,o=e=>i(_,{to:e._path},()=>e.title),t=(e,r)=>i("ul",r?{"data-level":r}:null,e.map(s=>s.children?i("li",null,[o(s),t(s.children,r+1)]):i("li",null,o(s)))),c=e=>t(e,0);return a!=null&&a.default?a.default({navigation:n,...this.$attrs}):c(n)}}),N=b;export{N as default}; +import{d,ba as l,E as v,m as f,z as p,aP as m,bb as g,aU as h,b0 as y,N as i,aE as _}from"./entry.ae6f67a5.js";const b=d({name:"ContentNavigation",props:{query:{type:Object,required:!1,default:void 0}},async setup(u){const{query:a}=l(u),n=v(()=>{var t;return typeof((t=a.value)==null?void 0:t.params)=="function"?a.value.params():a.value});if(!n.value&&f("dd-navigation").value){const{navigation:t}=p();return{navigation:t}}const{data:o}=await m(`content-navigation-${h(n.value)}`,()=>g(n.value));return{navigation:o}},render(u){const a=y(),{navigation:n}=u,o=e=>i(_,{to:e._path},()=>e.title),t=(e,r)=>i("ul",r?{"data-level":r}:null,e.map(s=>s.children?i("li",null,[o(s),t(s.children,r+1)]):i("li",null,o(s)))),c=e=>t(e,0);return a!=null&&a.default?a.default({navigation:n,...this.$attrs}):c(n)}}),N=b;export{N as default}; diff --git a/_nuxt/ContentQuery.499a6888.js b/_nuxt/ContentQuery.9f00e65c.js similarity index 97% rename from _nuxt/ContentQuery.499a6888.js rename to _nuxt/ContentQuery.9f00e65c.js index 1a324d53..ae886279 100644 --- a/_nuxt/ContentQuery.499a6888.js +++ b/_nuxt/ContentQuery.9f00e65c.js @@ -1 +1 @@ -import{d as g,ba as b,E as C,l as S,M as N,aP as _,q as m,aU as k,b0 as A,N as O}from"./entry.8c781d5d.js";const Q=g({name:"ContentQuery",props:{path:{type:String,required:!1,default:void 0},only:{type:Array,required:!1,default:void 0},without:{type:Array,required:!1,default:void 0},where:{type:Object,required:!1,default:void 0},sort:{type:Object,required:!1,default:void 0},limit:{type:Number,required:!1,default:void 0},skip:{type:Number,required:!1,default:void 0},locale:{type:String,required:!1,default:void 0},find:{type:String,required:!1,default:void 0}},async setup(a){const{path:t,only:r,without:o,where:u,sort:l,limit:d,skip:f,locale:s,find:h}=b(a),p=C(()=>{var e;return(e=t.value)==null?void 0:e.includes("/_")}),y=!S().public.content.experimental.advanceQuery;N(()=>a,()=>n(),{deep:!0});const i=e=>y?e!=null&&e.surround?e.surround:e!=null&&e._id||Array.isArray(e)?e:e==null?void 0:e.result:e.result,{data:v,refresh:n}=await _(`content-query-${k(a)}`,()=>{let e;return t.value?e=m(t.value):e=m(),r.value&&(e=e.only(r.value)),o.value&&(e=e.without(o.value)),u.value&&(e=e.where(u.value)),l.value&&(e=e.sort(l.value)),d.value&&(e=e.limit(d.value)),f.value&&(e=e.skip(f.value)),s.value&&(e=e.where({_locale:s.value})),h.value==="one"?e.findOne().then(i):h.value==="surround"?t.value?y?e.findSurround(t.value):e.withSurround(t.value).findOne().then(i):(console.warn("[Content] Surround queries requires `path` prop to be set."),console.warn("[Content] Query without `path` will return regular `find()` results."),e.find().then(i)):e.find().then(i)});return{isPartial:p,data:v,refresh:n}},render(a){var c;const t=A(),{data:r,refresh:o,isPartial:u,path:l,only:d,without:f,where:s,sort:h,limit:p,skip:y,locale:i,find:v}=a,n={path:l,only:d,without:f,where:s,sort:h,limit:p,skip:y,locale:i,find:v};if(n.find==="one"){if(!r&&(t!=null&&t["not-found"]))return t["not-found"]({props:n,...this.$attrs});if(t!=null&&t.empty&&(r==null?void 0:r._type)==="markdown"&&!((c=r==null?void 0:r.body)!=null&&c.children.length))return t.empty({props:n,...this.$attrs})}else if((!r||!r.length)&&t!=null&&t["not-found"])return t["not-found"]({props:n,...this.$attrs});return t!=null&&t.default?t.default({data:r,refresh:o,isPartial:u,props:n,...this.$attrs}):((w,q)=>O("pre",null,JSON.stringify({message:"You should use slots with !",slot:w,data:q},null,2)))("default",{data:r,props:n,isPartial:u})}}),P=Q;export{P as default}; +import{d as g,ba as b,E as C,l as S,M as N,aP as _,q as m,aU as k,b0 as A,N as O}from"./entry.ae6f67a5.js";const Q=g({name:"ContentQuery",props:{path:{type:String,required:!1,default:void 0},only:{type:Array,required:!1,default:void 0},without:{type:Array,required:!1,default:void 0},where:{type:Object,required:!1,default:void 0},sort:{type:Object,required:!1,default:void 0},limit:{type:Number,required:!1,default:void 0},skip:{type:Number,required:!1,default:void 0},locale:{type:String,required:!1,default:void 0},find:{type:String,required:!1,default:void 0}},async setup(a){const{path:t,only:r,without:o,where:u,sort:l,limit:d,skip:f,locale:s,find:h}=b(a),p=C(()=>{var e;return(e=t.value)==null?void 0:e.includes("/_")}),y=!S().public.content.experimental.advanceQuery;N(()=>a,()=>n(),{deep:!0});const i=e=>y?e!=null&&e.surround?e.surround:e!=null&&e._id||Array.isArray(e)?e:e==null?void 0:e.result:e.result,{data:v,refresh:n}=await _(`content-query-${k(a)}`,()=>{let e;return t.value?e=m(t.value):e=m(),r.value&&(e=e.only(r.value)),o.value&&(e=e.without(o.value)),u.value&&(e=e.where(u.value)),l.value&&(e=e.sort(l.value)),d.value&&(e=e.limit(d.value)),f.value&&(e=e.skip(f.value)),s.value&&(e=e.where({_locale:s.value})),h.value==="one"?e.findOne().then(i):h.value==="surround"?t.value?y?e.findSurround(t.value):e.withSurround(t.value).findOne().then(i):(console.warn("[Content] Surround queries requires `path` prop to be set."),console.warn("[Content] Query without `path` will return regular `find()` results."),e.find().then(i)):e.find().then(i)});return{isPartial:p,data:v,refresh:n}},render(a){var c;const t=A(),{data:r,refresh:o,isPartial:u,path:l,only:d,without:f,where:s,sort:h,limit:p,skip:y,locale:i,find:v}=a,n={path:l,only:d,without:f,where:s,sort:h,limit:p,skip:y,locale:i,find:v};if(n.find==="one"){if(!r&&(t!=null&&t["not-found"]))return t["not-found"]({props:n,...this.$attrs});if(t!=null&&t.empty&&(r==null?void 0:r._type)==="markdown"&&!((c=r==null?void 0:r.body)!=null&&c.children.length))return t.empty({props:n,...this.$attrs})}else if((!r||!r.length)&&t!=null&&t["not-found"])return t["not-found"]({props:n,...this.$attrs});return t!=null&&t.default?t.default({data:r,refresh:o,isPartial:u,props:n,...this.$attrs}):((w,q)=>O("pre",null,JSON.stringify({message:"You should use slots with !",slot:w,data:q},null,2)))("default",{data:r,props:n,isPartial:u})}}),P=Q;export{P as default}; diff --git a/_nuxt/ContentRenderer.404d2a66.js b/_nuxt/ContentRenderer.f8fda652.js similarity index 84% rename from _nuxt/ContentRenderer.404d2a66.js rename to _nuxt/ContentRenderer.f8fda652.js index 7dc25f83..948cd5bd 100644 --- a/_nuxt/ContentRenderer.404d2a66.js +++ b/_nuxt/ContentRenderer.f8fda652.js @@ -1 +1 @@ -import{_ as o}from"./ContentRendererMarkdown.vue.703eebc0.js";import{d as l,M as s,b0 as d,N as f}from"./entry.8c781d5d.js";import"./MDCRenderer.84953d36.js";const x=l({name:"ContentRenderer",props:{value:{type:Object,required:!1,default:()=>({})},excerpt:{type:Boolean,default:!1},tag:{type:String,default:"div"}},setup(t){s(()=>t.excerpt,n=>{var e,a,u;n&&!((e=t.value)!=null&&e.excerpt)&&(console.warn(`No excerpt found for document content/${(a=t==null?void 0:t.value)==null?void 0:a._path}.${(u=t==null?void 0:t.value)==null?void 0:u._extension}!`),console.warn("Make sure to use in your content if you want to use excerpt feature."))},{immediate:!0})},render(t){var i,c;const n=d(),{value:e,excerpt:a,tag:u}=t,r=a?e==null?void 0:e.excerpt:e==null?void 0:e.body;return!((i=r==null?void 0:r.children)!=null&&i.length)&&(n!=null&&n.empty)?n.empty({value:e,excerpt:a,tag:u,...this.$attrs}):n!=null&&n.default?n.default({value:e,excerpt:a,tag:u,...this.$attrs}):(r==null?void 0:r.type)==="root"&&((c=r==null?void 0:r.children)!=null&&c.length)?f(o,{value:e,excerpt:a,tag:u,...this.$attrs}):f("pre",null,JSON.stringify({message:"You should use slots with ",value:e,excerpt:a,tag:u},null,2))}});export{x as default}; +import{_ as o}from"./ContentRendererMarkdown.vue.1b328542.js";import{d as l,M as s,b0 as d,N as f}from"./entry.ae6f67a5.js";import"./MDCRenderer.8dddf3be.js";const x=l({name:"ContentRenderer",props:{value:{type:Object,required:!1,default:()=>({})},excerpt:{type:Boolean,default:!1},tag:{type:String,default:"div"}},setup(t){s(()=>t.excerpt,n=>{var e,a,u;n&&!((e=t.value)!=null&&e.excerpt)&&(console.warn(`No excerpt found for document content/${(a=t==null?void 0:t.value)==null?void 0:a._path}.${(u=t==null?void 0:t.value)==null?void 0:u._extension}!`),console.warn("Make sure to use in your content if you want to use excerpt feature."))},{immediate:!0})},render(t){var i,c;const n=d(),{value:e,excerpt:a,tag:u}=t,r=a?e==null?void 0:e.excerpt:e==null?void 0:e.body;return!((i=r==null?void 0:r.children)!=null&&i.length)&&(n!=null&&n.empty)?n.empty({value:e,excerpt:a,tag:u,...this.$attrs}):n!=null&&n.default?n.default({value:e,excerpt:a,tag:u,...this.$attrs}):(r==null?void 0:r.type)==="root"&&((c=r==null?void 0:r.children)!=null&&c.length)?f(o,{value:e,excerpt:a,tag:u,...this.$attrs}):f("pre",null,JSON.stringify({message:"You should use slots with ",value:e,excerpt:a,tag:u},null,2))}});export{x as default}; diff --git a/_nuxt/ContentRendererMarkdown.281ccbbc.js b/_nuxt/ContentRendererMarkdown.281ccbbc.js deleted file mode 100644 index 9b47b671..00000000 --- a/_nuxt/ContentRendererMarkdown.281ccbbc.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as o}from"./ContentRendererMarkdown.vue.703eebc0.js";import"./MDCRenderer.84953d36.js";import"./entry.8c781d5d.js";export{o as default}; diff --git a/_nuxt/ContentRendererMarkdown.baefbace.js b/_nuxt/ContentRendererMarkdown.baefbace.js new file mode 100644 index 00000000..1fb33be5 --- /dev/null +++ b/_nuxt/ContentRendererMarkdown.baefbace.js @@ -0,0 +1 @@ +import{_ as o}from"./ContentRendererMarkdown.vue.1b328542.js";import"./MDCRenderer.8dddf3be.js";import"./entry.ae6f67a5.js";export{o as default}; diff --git a/_nuxt/ContentRendererMarkdown.vue.703eebc0.js b/_nuxt/ContentRendererMarkdown.vue.1b328542.js similarity index 84% rename from _nuxt/ContentRendererMarkdown.vue.703eebc0.js rename to _nuxt/ContentRendererMarkdown.vue.1b328542.js index 8d0662f7..be3e09c5 100644 --- a/_nuxt/ContentRendererMarkdown.vue.703eebc0.js +++ b/_nuxt/ContentRendererMarkdown.vue.1b328542.js @@ -1 +1 @@ -import{_ as p}from"./MDCRenderer.84953d36.js";import{d as l,bc as m,E as o,b as i,a8 as b,aC as v}from"./entry.8c781d5d.js";const _=l({__name:"ContentRendererMarkdown",props:{value:{type:Object,required:!0},excerpt:{type:Boolean,default:!1},tag:{type:String,default:"div"},components:{type:Object,default:()=>({})},data:{type:Object,default:()=>({})}},setup(a){const e=a,d=m().isEnabled(),r=o(()=>{let t=e.value.body||e.value;return e.excerpt&&e.value.excerpt&&(t=e.value.excerpt),t}),c=o(()=>{const{body:t,excerpt:u,...n}=e.value;return{...n,...e.data}}),s=o(()=>({...e.components,...c.value._components||{}}));return(t,u)=>{const n=p;return i(),b(n,{body:r.value,data:c.value,tag:a.tag,components:s.value,"data-content-id":v(d)?a.value._id:void 0},null,8,["body","data","tag","components","data-content-id"])}}});export{_}; +import{_ as p}from"./MDCRenderer.8dddf3be.js";import{d as l,bc as m,E as o,b as i,a8 as b,aC as v}from"./entry.ae6f67a5.js";const _=l({__name:"ContentRendererMarkdown",props:{value:{type:Object,required:!0},excerpt:{type:Boolean,default:!1},tag:{type:String,default:"div"},components:{type:Object,default:()=>({})},data:{type:Object,default:()=>({})}},setup(a){const e=a,d=m().isEnabled(),r=o(()=>{let t=e.value.body||e.value;return e.excerpt&&e.value.excerpt&&(t=e.value.excerpt),t}),c=o(()=>{const{body:t,excerpt:u,...n}=e.value;return{...n,...e.data}}),s=o(()=>({...e.components,...c.value._components||{}}));return(t,u)=>{const n=p;return i(),b(n,{body:r.value,data:c.value,tag:a.tag,components:s.value,"data-content-id":v(d)?a.value._id:void 0},null,8,["body","data","tag","components","data-content-id"])}}});export{_}; diff --git a/_nuxt/ContentSlot.1f1f3c23.js b/_nuxt/ContentSlot.58c58190.js similarity index 92% rename from _nuxt/ContentSlot.1f1f3c23.js rename to _nuxt/ContentSlot.58c58190.js index bba6e9b1..f8d16137 100644 --- a/_nuxt/ContentSlot.1f1f3c23.js +++ b/_nuxt/ContentSlot.58c58190.js @@ -1 +1 @@ -import{f as i}from"./node.f7b4ab96.js";import{d as u,b0 as f,E as c,N as a,bj as d}from"./entry.8c781d5d.js";const p=u({name:"MDCSlot",functional:!0,props:{name:{type:String,default:"default"},unwrap:{type:[Boolean,String],default:!1},use:{type:Function,default:void 0}},setup(t){const{parent:s}=d(),{default:o}=f(),r=c(()=>typeof t.unwrap=="string"?t.unwrap.split(" "):["*"]);return{fallbackSlot:o,tags:r,parent:s}},render({use:t,unwrap:s,fallbackSlot:o,tags:r,parent:e}){var l;try{let n=t;return typeof t=="string"&&(n=(e==null?void 0:e.slots[t])||((l=e==null?void 0:e.parent)==null?void 0:l.slots[t]),console.warn(`Please set :use="$slots.${t}" in component to enable reactivity`)),n?s?i(n(),r):[n()]:o?o():a("div")}catch{return a("div")}}}),g=u({props:{use:{type:Function,default:void 0},unwrap:{type:[Boolean,String],default:!1}},render(t){return a(p,t)}});export{g as default}; +import{f as i}from"./node.f7b4ab96.js";import{d as u,b0 as f,E as c,N as a,bj as d}from"./entry.ae6f67a5.js";const p=u({name:"MDCSlot",functional:!0,props:{name:{type:String,default:"default"},unwrap:{type:[Boolean,String],default:!1},use:{type:Function,default:void 0}},setup(t){const{parent:s}=d(),{default:o}=f(),r=c(()=>typeof t.unwrap=="string"?t.unwrap.split(" "):["*"]);return{fallbackSlot:o,tags:r,parent:s}},render({use:t,unwrap:s,fallbackSlot:o,tags:r,parent:e}){var l;try{let n=t;return typeof t=="string"&&(n=(e==null?void 0:e.slots[t])||((l=e==null?void 0:e.parent)==null?void 0:l.slots[t]),console.warn(`Please set :use="$slots.${t}" in component to enable reactivity`)),n?s?i(n(),r):[n()]:o?o():a("div")}catch{return a("div")}}}),g=u({props:{use:{type:Function,default:void 0},unwrap:{type:[Boolean,String],default:!1}},render(t){return a(p,t)}});export{g as default}; diff --git a/_nuxt/DocsSearch.ed2a84a9.js b/_nuxt/DocsSearch.d2ddbeb8.js similarity index 99% rename from _nuxt/DocsSearch.ed2a84a9.js rename to _nuxt/DocsSearch.d2ddbeb8.js index 043c1921..687cc19d 100644 --- a/_nuxt/DocsSearch.ed2a84a9.js +++ b/_nuxt/DocsSearch.d2ddbeb8.js @@ -1 +1 @@ -import{C as fe,D as Ke,r as _,E as x,d as ee,G as X,A as N,H as j,I as ht,J as vt,K as mt,L as he,o as ce,M as re,N as Ne,O as gt,P as bt,Q as yt,R as Se,S as He,F as ve,U as Ee,V as me,W as St,X as It,Y as Ot,Z as kt,$ as G,a0 as Ue,a as Ct,a1 as Mt,a2 as W,k as $e,a3 as Ie,a4 as ze,a5 as We,a6 as J,b as L,c as K,n as P,t as Z,f as H,e as U,a7 as ge,a8 as V,w as z,a9 as oe,aa as ae,ab as wt,ac as xt,ad as qe,ae as Rt,af as be,ag as Ge,ah as Pe,ai as de,aj as Ye,ak as Xe,al as At,am as Et,g as ue,an as $t,ao as Pt,ap as Lt,aq as Tt,ar as Nt,as as _t,at as Bt,au as Ft,av as jt,aw as Je,ax as Vt,u as Dt,x as Kt,ay as Ht,az as Ut,aA as zt,aB as Wt,aC as Y,aD as qt}from"./entry.8c781d5d.js";function Gt(e){throw new Error("Unexpected object: "+e)}var F=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(F||{});function Yt(e,t){let n=t.resolveItems();if(n.length<=0)return null;let s=t.resolveActiveIndex(),a=s??-1,o=(()=>{switch(e.focus){case 0:return n.findIndex(i=>!t.resolveDisabled(i));case 1:{let i=n.slice().reverse().findIndex((l,u,c)=>a!==-1&&c.length-u-1>=a?!1:!t.resolveDisabled(l));return i===-1?i:n.length-1-i}case 2:return n.findIndex((i,l)=>l<=a?!1:!t.resolveDisabled(i));case 3:{let i=n.slice().reverse().findIndex(l=>!t.resolveDisabled(l));return i===-1?i:n.length-1-i}case 4:return n.findIndex(i=>t.resolveId(i)===e.id);case 5:return null;default:Gt(e)}})();return o===-1?s:o}function Xt({container:e,accept:t,walk:n,enabled:s}){fe(()=>{let a=e.value;if(!a||s!==void 0&&!s.value)return;let o=Ke(e);if(!o)return;let i=Object.assign(u=>t(u),{acceptNode:t}),l=o.createTreeWalker(a,NodeFilter.SHOW_ELEMENT,i,!1);for(;l.nextNode();)n(l.currentNode)})}function Qe(e={},t=null,n=[]){for(let[s,a]of Object.entries(e))et(n,Ze(t,s),a);return n}function Ze(e,t){return e?e+"["+t+"]":t}function et(e,t,n){if(Array.isArray(n))for(let[s,a]of n.entries())et(e,Ze(t,s.toString()),a);else n instanceof Date?e.push([t,n.toISOString()]):typeof n=="boolean"?e.push([t,n?"1":"0"]):typeof n=="string"?e.push([t,n]):typeof n=="number"?e.push([t,`${n}`]):n==null?e.push([t,""]):Qe(n,t,e)}function Jt(e,t,n){let s=_(n==null?void 0:n.value),a=x(()=>e.value!==void 0);return[x(()=>a.value?e.value:s.value),function(o){return a.value||(s.value=o),t==null?void 0:t(o)}]}function _e(e){return[e.screenX,e.screenY]}function Qt(){let e=_([-1,-1]);return{wasMoved(t){let n=_e(t);return e.value[0]===n[0]&&e.value[1]===n[1]?!1:(e.value=n,!0)},update(t){e.value=_e(t)}}}function Zt(e,t){return e===t}var en=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(en||{}),tn=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(tn||{}),nn=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(nn||{});let tt=Symbol("ComboboxContext");function Oe(e){let t=It(tt,null);if(t===null){let n=new Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Oe),n}return t}let on=ee({name:"Combobox",emits:{"update:modelValue":e=>!0},props:{as:{type:[Object,String],default:"template"},disabled:{type:[Boolean],default:!1},by:{type:[String,Function],default:()=>Zt},modelValue:{type:[Object,String,Number,Boolean],default:void 0},defaultValue:{type:[Object,String,Number,Boolean],default:void 0},form:{type:String,optional:!0},name:{type:String,optional:!0},nullable:{type:Boolean,default:!1},multiple:{type:[Boolean],default:!1}},inheritAttrs:!1,setup(e,{slots:t,attrs:n,emit:s}){let a=_(1),o=_(null),i=_(null),l=_(null),u=_(null),c=_({static:!1,hold:!1}),r=_([]),p=_(null),f=_(1),y=_(!1);function O(d=h=>h){let h=p.value!==null?r.value[p.value]:null,I=Ot(d(r.value.slice()),R=>j(R.dataRef.domRef)),S=h?I.indexOf(h):null;return S===-1&&(S=null),{options:I,activeOptionIndex:S}}let M=x(()=>e.multiple?1:0),A=x(()=>e.nullable),[v,$]=Jt(x(()=>e.modelValue),d=>s("update:modelValue",d),x(()=>e.defaultValue)),E=x(()=>v.value===void 0?X(M.value,{1:[],0:void 0}):v.value),T=null,k=null,b={comboboxState:a,value:E,mode:M,compare(d,h){if(typeof e.by=="string"){let I=e.by;return(d==null?void 0:d[I])===(h==null?void 0:h[I])}return e.by(d,h)},defaultValue:x(()=>e.defaultValue),nullable:A,inputRef:i,labelRef:o,buttonRef:l,optionsRef:u,disabled:x(()=>e.disabled),options:r,change(d){$(d)},activeOptionIndex:x(()=>{if(y.value&&p.value===null&&r.value.length>0){let d=r.value.findIndex(h=>!h.dataRef.disabled);d!==-1&&(p.value=d)}return p.value}),activationTrigger:f,optionsPropsRef:c,closeCombobox(){y.value=!1,!e.disabled&&a.value!==1&&(a.value=1,p.value=null)},openCombobox(){if(y.value=!0,e.disabled||a.value===0)return;let d=r.value.findIndex(h=>{let I=N(h.dataRef.value);return X(M.value,{0:()=>b.compare(N(b.value.value),N(I)),1:()=>N(b.value.value).some(S=>b.compare(N(S),N(I)))})});d!==-1&&(p.value=d),a.value=0},goToOption(d,h,I){y.value=!1,T!==null&&cancelAnimationFrame(T),T=requestAnimationFrame(()=>{if(e.disabled||u.value&&!c.value.static&&a.value===1)return;let S=O();if(S.activeOptionIndex===null){let w=S.options.findIndex(B=>!B.dataRef.disabled);w!==-1&&(S.activeOptionIndex=w)}let R=Yt(d===F.Specific?{focus:F.Specific,id:h}:{focus:d},{resolveItems:()=>S.options,resolveActiveIndex:()=>S.activeOptionIndex,resolveId:w=>w.id,resolveDisabled:w=>w.dataRef.disabled});p.value=R,f.value=I??1,r.value=S.options})},selectOption(d){let h=r.value.find(S=>S.id===d);if(!h)return;let{dataRef:I}=h;$(X(M.value,{0:()=>I.value,1:()=>{let S=N(b.value.value).slice(),R=N(I.value),w=S.findIndex(B=>b.compare(R,N(B)));return w===-1?S.push(R):S.splice(w,1),S}}))},selectActiveOption(){if(b.activeOptionIndex.value===null)return;let{dataRef:d,id:h}=r.value[b.activeOptionIndex.value];$(X(M.value,{0:()=>d.value,1:()=>{let I=N(b.value.value).slice(),S=N(d.value),R=I.findIndex(w=>b.compare(S,N(w)));return R===-1?I.push(S):I.splice(R,1),I}})),b.goToOption(F.Specific,h)},registerOption(d,h){k&&cancelAnimationFrame(k);let I={id:d,dataRef:h},S=O(R=>(R.push(I),R));if(p.value===null){let R=h.value.value;X(M.value,{0:()=>b.compare(N(b.value.value),N(R)),1:()=>N(b.value.value).some(w=>b.compare(N(w),N(R)))})&&(S.activeOptionIndex=S.options.indexOf(I))}r.value=S.options,p.value=S.activeOptionIndex,f.value=1,S.options.some(R=>!j(R.dataRef.domRef))&&(k=requestAnimationFrame(()=>{let R=O();r.value=R.options,p.value=R.activeOptionIndex}))},unregisterOption(d){var h;b.activeOptionIndex.value!==null&&((h=b.options.value[b.activeOptionIndex.value])==null?void 0:h.id)===d&&(y.value=!0);let I=O(S=>{let R=S.findIndex(w=>w.id===d);return R!==-1&&S.splice(R,1),S});r.value=I.options,p.value=I.activeOptionIndex,f.value=1}};ht([i,l,u],()=>b.closeCombobox(),x(()=>a.value===0)),vt(tt,b),mt(x(()=>X(a.value,{0:he.Open,1:he.Closed})));let m=x(()=>b.activeOptionIndex.value===null?null:r.value[b.activeOptionIndex.value].dataRef.value),g=x(()=>{var d;return(d=j(i))==null?void 0:d.closest("form")});return ce(()=>{re([g],()=>{if(!g.value||e.defaultValue===void 0)return;function d(){b.change(e.defaultValue)}return g.value.addEventListener("reset",d),()=>{var h;(h=g.value)==null||h.removeEventListener("reset",d)}},{immediate:!0})}),()=>{let{name:d,disabled:h,form:I,...S}=e,R={open:a.value===0,disabled:h,activeIndex:b.activeOptionIndex.value,activeOption:m.value,value:E.value};return Ne(ve,[...d!=null&&E.value!=null?Qe({[d]:E.value}).map(([w,B])=>Ne(gt,bt({features:yt.Hidden,key:w,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:I,name:w,value:B}))):[],Se({theirProps:{...n,...He(S,["modelValue","defaultValue","nullable","multiple","onUpdate:modelValue","by"])},ourProps:{},slot:R,slots:t,attrs:n,name:"Combobox"})])}}}),an=ee({name:"ComboboxInput",props:{as:{type:[Object,String],default:"input"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},displayValue:{type:Function},defaultValue:{type:String,default:void 0},id:{type:String,default:()=>`headlessui-combobox-input-${Ee()}`}},emits:{change:e=>!0},setup(e,{emit:t,attrs:n,slots:s,expose:a}){let o=Oe("ComboboxInput"),i=x(()=>Ke(j(o.inputRef))),l={value:!1};a({el:o.inputRef,$el:o.inputRef});function u(){o.change(null);let v=j(o.optionsRef);v&&(v.scrollTop=0),o.goToOption(F.Nothing)}let c=x(()=>{var v;let $=o.value.value;return j(o.inputRef)?typeof e.displayValue<"u"&&$!==void 0?(v=e.displayValue($))!=null?v:"":typeof $=="string"?$:"":""});ce(()=>{re([c,o.comboboxState,i],([v,$],[E,T])=>{if(l.value)return;let k=j(o.inputRef);k&&((T===0&&$===1||v!==E)&&(k.value=v),requestAnimationFrame(()=>{var b;if(l.value||!k||((b=i.value)==null?void 0:b.activeElement)!==k)return;let{selectionStart:m,selectionEnd:g}=k;Math.abs((g??0)-(m??0))===0&&m===0&&k.setSelectionRange(k.value.length,k.value.length)}))},{immediate:!0}),re([o.comboboxState],([v],[$])=>{if(v===0&&$===1){if(l.value)return;let E=j(o.inputRef);if(!E)return;let T=E.value,{selectionStart:k,selectionEnd:b,selectionDirection:m}=E;E.value="",E.value=T,m!==null?E.setSelectionRange(k,b,m):E.setSelectionRange(k,b)}})});let r=_(!1);function p(){r.value=!0}function f(){kt().nextFrame(()=>{r.value=!1})}function y(v){switch(l.value=!0,v.key){case G.Enter:if(l.value=!1,o.comboboxState.value!==0||r.value)return;if(v.preventDefault(),v.stopPropagation(),o.activeOptionIndex.value===null){o.closeCombobox();return}o.selectActiveOption(),o.mode.value===0&&o.closeCombobox();break;case G.ArrowDown:return l.value=!1,v.preventDefault(),v.stopPropagation(),X(o.comboboxState.value,{0:()=>o.goToOption(F.Next),1:()=>o.openCombobox()});case G.ArrowUp:return l.value=!1,v.preventDefault(),v.stopPropagation(),X(o.comboboxState.value,{0:()=>o.goToOption(F.Previous),1:()=>{o.openCombobox(),Ue(()=>{o.value.value||o.goToOption(F.Last)})}});case G.Home:if(v.shiftKey)break;return l.value=!1,v.preventDefault(),v.stopPropagation(),o.goToOption(F.First);case G.PageUp:return l.value=!1,v.preventDefault(),v.stopPropagation(),o.goToOption(F.First);case G.End:if(v.shiftKey)break;return l.value=!1,v.preventDefault(),v.stopPropagation(),o.goToOption(F.Last);case G.PageDown:return l.value=!1,v.preventDefault(),v.stopPropagation(),o.goToOption(F.Last);case G.Escape:if(l.value=!1,o.comboboxState.value!==0)return;v.preventDefault(),o.optionsRef.value&&!o.optionsPropsRef.value.static&&v.stopPropagation(),o.nullable.value&&o.mode.value===0&&o.value.value===null&&u(),o.closeCombobox();break;case G.Tab:if(l.value=!1,o.comboboxState.value!==0)return;o.mode.value===0&&o.selectActiveOption(),o.closeCombobox();break}}function O(v){t("change",v),o.nullable.value&&o.mode.value===0&&v.target.value===""&&u(),o.openCombobox()}function M(){l.value=!1}let A=x(()=>{var v,$,E,T;return(T=(E=($=e.defaultValue)!=null?$:o.defaultValue.value!==void 0?(v=e.displayValue)==null?void 0:v.call(e,o.defaultValue.value):null)!=null?E:o.defaultValue.value)!=null?T:""});return()=>{var v,$,E,T,k,b;let m={open:o.comboboxState.value===0},{id:g,displayValue:d,onChange:h,...I}=e,S={"aria-controls":(v=o.optionsRef.value)==null?void 0:v.id,"aria-expanded":o.comboboxState.value===0,"aria-activedescendant":o.activeOptionIndex.value===null||($=o.options.value[o.activeOptionIndex.value])==null?void 0:$.id,"aria-labelledby":(k=(E=j(o.labelRef))==null?void 0:E.id)!=null?k:(T=j(o.buttonRef))==null?void 0:T.id,"aria-autocomplete":"list",id:g,onCompositionstart:p,onCompositionend:f,onKeydown:y,onInput:O,onBlur:M,role:"combobox",type:(b=n.type)!=null?b:"text",tabIndex:0,ref:o.inputRef,defaultValue:A.value,disabled:o.disabled.value===!0?!0:void 0};return Se({ourProps:S,theirProps:I,slot:m,attrs:n,slots:s,features:me.RenderStrategy|me.Static,name:"ComboboxInput"})}}}),sn=ee({name:"ComboboxOptions",props:{as:{type:[Object,String],default:"ul"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},hold:{type:[Boolean],default:!1}},setup(e,{attrs:t,slots:n,expose:s}){let a=Oe("ComboboxOptions"),o=`headlessui-combobox-options-${Ee()}`;s({el:a.optionsRef,$el:a.optionsRef}),fe(()=>{a.optionsPropsRef.value.static=e.static}),fe(()=>{a.optionsPropsRef.value.hold=e.hold});let i=St(),l=x(()=>i!==null?(i.value&he.Open)===he.Open:a.comboboxState.value===0);return Xt({container:x(()=>j(a.optionsRef)),enabled:x(()=>a.comboboxState.value===0),accept(u){return u.getAttribute("role")==="option"?NodeFilter.FILTER_REJECT:u.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk(u){u.setAttribute("role","none")}}),()=>{var u,c,r;let p={open:a.comboboxState.value===0},f={"aria-labelledby":(r=(u=j(a.labelRef))==null?void 0:u.id)!=null?r:(c=j(a.buttonRef))==null?void 0:c.id,id:o,ref:a.optionsRef,role:"listbox","aria-multiselectable":a.mode.value===1?!0:void 0},y=He(e,["hold"]);return Se({ourProps:f,theirProps:y,slot:p,attrs:t,slots:n,features:me.RenderStrategy|me.Static,visible:l.value,name:"ComboboxOptions"})}}}),rn=ee({name:"ComboboxOption",props:{as:{type:[Object,String],default:"li"},value:{type:[Object,String,Number,Boolean]},disabled:{type:Boolean,default:!1}},setup(e,{slots:t,attrs:n,expose:s}){let a=Oe("ComboboxOption"),o=`headlessui-combobox-option-${Ee()}`,i=_(null);s({el:i,$el:i});let l=x(()=>a.activeOptionIndex.value!==null?a.options.value[a.activeOptionIndex.value].id===o:!1),u=x(()=>X(a.mode.value,{0:()=>a.compare(N(a.value.value),N(e.value)),1:()=>N(a.value.value).some(A=>a.compare(N(A),N(e.value)))})),c=x(()=>({disabled:e.disabled,value:e.value,domRef:i}));ce(()=>a.registerOption(o,c)),Ct(()=>a.unregisterOption(o)),fe(()=>{a.comboboxState.value===0&&l.value&&a.activationTrigger.value!==0&&Ue(()=>{var A,v;return(v=(A=j(i))==null?void 0:A.scrollIntoView)==null?void 0:v.call(A,{block:"nearest"})})});function r(A){if(e.disabled)return A.preventDefault();a.selectOption(o),a.mode.value===0&&a.closeCombobox(),Mt()||requestAnimationFrame(()=>{var v;return(v=j(a.inputRef))==null?void 0:v.focus()})}function p(){if(e.disabled)return a.goToOption(F.Nothing);a.goToOption(F.Specific,o)}let f=Qt();function y(A){f.update(A)}function O(A){f.wasMoved(A)&&(e.disabled||l.value||a.goToOption(F.Specific,o,0))}function M(A){f.wasMoved(A)&&(e.disabled||l.value&&(a.optionsPropsRef.value.hold||a.goToOption(F.Nothing)))}return()=>{let{disabled:A}=e,v={active:l.value,selected:u.value,disabled:A},$={id:o,ref:i,role:"option",tabIndex:A===!0?void 0:-1,"aria-disabled":A===!0?!0:void 0,"aria-selected":u.value,disabled:void 0,onClick:r,onFocus:p,onPointerenter:y,onMouseenter:y,onPointermove:O,onMousemove:O,onPointerleave:M,onMouseleave:M};return Se({ourProps:$,theirProps:e,slot:v,attrs:n,slots:t,name:"ComboboxOption"})}}});function Q(e){return Array.isArray?Array.isArray(e):at(e)==="[object Array]"}const ln=1/0;function un(e){if(typeof e=="string")return e;let t=e+"";return t=="0"&&1/e==-ln?"-0":t}function cn(e){return e==null?"":un(e)}function q(e){return typeof e=="string"}function nt(e){return typeof e=="number"}function dn(e){return e===!0||e===!1||pn(e)&&at(e)=="[object Boolean]"}function ot(e){return typeof e=="object"}function pn(e){return ot(e)&&e!==null}function D(e){return e!=null}function ke(e){return!e.trim().length}function at(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const fn="Incorrect 'index' type",hn=e=>`Invalid value for key ${e}`,vn=e=>`Pattern length exceeds max of ${e}.`,mn=e=>`Missing ${e} property in key`,gn=e=>`Property 'weight' in key '${e}' must be a positive integer`,Be=Object.prototype.hasOwnProperty;class bn{constructor(t){this._keys=[],this._keyMap={};let n=0;t.forEach(s=>{let a=st(s);n+=a.weight,this._keys.push(a),this._keyMap[a.id]=a,n+=a.weight}),this._keys.forEach(s=>{s.weight/=n})}get(t){return this._keyMap[t]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function st(e){let t=null,n=null,s=null,a=1,o=null;if(q(e)||Q(e))s=e,t=Fe(e),n=Ce(e);else{if(!Be.call(e,"name"))throw new Error(mn("name"));const i=e.name;if(s=i,Be.call(e,"weight")&&(a=e.weight,a<=0))throw new Error(gn(i));t=Fe(i),n=Ce(i),o=e.getFn}return{path:t,id:n,weight:a,src:s,getFn:o}}function Fe(e){return Q(e)?e:e.split(".")}function Ce(e){return Q(e)?e.join("."):e}function yn(e,t){let n=[],s=!1;const a=(o,i,l)=>{if(D(o))if(!i[l])n.push(o);else{let u=i[l];const c=o[u];if(!D(c))return;if(l===i.length-1&&(q(c)||nt(c)||dn(c)))n.push(cn(c));else if(Q(c)){s=!0;for(let r=0,p=c.length;re.score===t.score?e.idx{this._keysMap[n.id]=s})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,q(this.docs[0])?this.docs.forEach((t,n)=>{this._addString(t,n)}):this.docs.forEach((t,n)=>{this._addObject(t,n)}),this.norm.clear())}add(t){const n=this.size();q(t)?this._addString(t,n):this._addObject(t,n)}removeAt(t){this.records.splice(t,1);for(let n=t,s=this.size();n{let i=a.getFn?a.getFn(t):this.getFn(t,a.path);if(D(i)){if(Q(i)){let l=[];const u=[{nestedArrIndex:-1,value:i}];for(;u.length;){const{nestedArrIndex:c,value:r}=u.pop();if(D(r))if(q(r)&&!ke(r)){let p={v:r,i:c,n:this.norm.get(r)};l.push(p)}else Q(r)&&r.forEach((p,f)=>{u.push({nestedArrIndex:f,value:p})})}s.$[o]=l}else if(q(i)&&!ke(i)){let l={v:i,n:this.norm.get(i)};s.$[o]=l}}}),this.records.push(s)}toJSON(){return{keys:this.keys,records:this.records}}}function it(e,t,{getFn:n=C.getFn,fieldNormWeight:s=C.fieldNormWeight}={}){const a=new Le({getFn:n,fieldNormWeight:s});return a.setKeys(e.map(st)),a.setSources(t),a.create(),a}function wn(e,{getFn:t=C.getFn,fieldNormWeight:n=C.fieldNormWeight}={}){const{keys:s,records:a}=e,o=new Le({getFn:t,fieldNormWeight:n});return o.setKeys(s),o.setIndexRecords(a),o}function pe(e,{errors:t=0,currentLocation:n=0,expectedLocation:s=0,distance:a=C.distance,ignoreLocation:o=C.ignoreLocation}={}){const i=t/e.length;if(o)return i;const l=Math.abs(s-n);return a?i+l/a:l?1:i}function xn(e=[],t=C.minMatchCharLength){let n=[],s=-1,a=-1,o=0;for(let i=e.length;o=t&&n.push([s,a]),s=-1)}return e[o-1]&&o-s>=t&&n.push([s,o-1]),n}const ne=32;function Rn(e,t,n,{location:s=C.location,distance:a=C.distance,threshold:o=C.threshold,findAllMatches:i=C.findAllMatches,minMatchCharLength:l=C.minMatchCharLength,includeMatches:u=C.includeMatches,ignoreLocation:c=C.ignoreLocation}={}){if(t.length>ne)throw new Error(vn(ne));const r=t.length,p=e.length,f=Math.max(0,Math.min(s,p));let y=o,O=f;const M=l>1||u,A=M?Array(p):[];let v;for(;(v=e.indexOf(t,O))>-1;){let m=pe(t,{currentLocation:v,expectedLocation:f,distance:a,ignoreLocation:c});if(y=Math.min(m,y),O=v+r,M){let g=0;for(;g=h;w-=1){let B=w-1,se=n[e.charAt(B)];if(M&&(A[B]=+!!se),S[w]=(S[w+1]<<1|1)&se,m&&(S[w]|=($[w+1]|$[w])<<1|1|$[w+1]),S[w]&k&&(E=pe(t,{errors:m,currentLocation:B,expectedLocation:f,distance:a,ignoreLocation:c}),E<=y)){if(y=E,O=B,O<=f)break;h=Math.max(1,2*f-O)}}if(pe(t,{errors:m+1,currentLocation:f,expectedLocation:f,distance:a,ignoreLocation:c})>y)break;$=S}const b={isMatch:O>=0,score:Math.max(.001,E)};if(M){const m=xn(A,l);m.length?u&&(b.indices=m):b.isMatch=!1}return b}function An(e){let t={};for(let n=0,s=e.length;n{this.chunks.push({pattern:f,alphabet:An(f),startIndex:y})},p=this.pattern.length;if(p>ne){let f=0;const y=p%ne,O=p-y;for(;f{const{isMatch:v,score:$,indices:E}=Rn(t,O,M,{location:a+A,distance:o,threshold:i,findAllMatches:l,minMatchCharLength:u,includeMatches:s,ignoreLocation:c});v&&(f=!0),p+=$,v&&E&&(r=[...r,...E])});let y={isMatch:f,score:f?p/this.chunks.length:1};return f&&s&&(y.indices=r),y}}class te{constructor(t){this.pattern=t}static isMultiMatch(t){return je(t,this.multiRegex)}static isSingleMatch(t){return je(t,this.singleRegex)}search(){}}function je(e,t){const n=e.match(t);return n?n[1]:null}class En extends te{constructor(t){super(t)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(t){const n=t===this.pattern;return{isMatch:n,score:n?0:1,indices:[0,this.pattern.length-1]}}}class $n extends te{constructor(t){super(t)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(t){const s=t.indexOf(this.pattern)===-1;return{isMatch:s,score:s?0:1,indices:[0,t.length-1]}}}class Pn extends te{constructor(t){super(t)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(t){const n=t.startsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,this.pattern.length-1]}}}class Ln extends te{constructor(t){super(t)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(t){const n=!t.startsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,t.length-1]}}}class Tn extends te{constructor(t){super(t)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(t){const n=t.endsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[t.length-this.pattern.length,t.length-1]}}}class Nn extends te{constructor(t){super(t)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(t){const n=!t.endsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,t.length-1]}}}class lt extends te{constructor(t,{location:n=C.location,threshold:s=C.threshold,distance:a=C.distance,includeMatches:o=C.includeMatches,findAllMatches:i=C.findAllMatches,minMatchCharLength:l=C.minMatchCharLength,isCaseSensitive:u=C.isCaseSensitive,ignoreLocation:c=C.ignoreLocation}={}){super(t),this._bitapSearch=new rt(t,{location:n,threshold:s,distance:a,includeMatches:o,findAllMatches:i,minMatchCharLength:l,isCaseSensitive:u,ignoreLocation:c})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(t){return this._bitapSearch.searchIn(t)}}class ut extends te{constructor(t){super(t)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(t){let n=0,s;const a=[],o=this.pattern.length;for(;(s=t.indexOf(this.pattern,n))>-1;)n=s+o,a.push([s,n-1]);const i=!!a.length;return{isMatch:i,score:i?0:1,indices:a}}}const Me=[En,ut,Pn,Ln,Nn,Tn,$n,lt],Ve=Me.length,_n=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,Bn="|";function Fn(e,t={}){return e.split(Bn).map(n=>{let s=n.trim().split(_n).filter(o=>o&&!!o.trim()),a=[];for(let o=0,i=s.length;o!!(e[ye.AND]||e[ye.OR]),Kn=e=>!!e[Re.PATH],Hn=e=>!Q(e)&&ot(e)&&!Ae(e),De=e=>({[ye.AND]:Object.keys(e).map(t=>({[t]:e[t]}))});function ct(e,t,{auto:n=!0}={}){const s=a=>{let o=Object.keys(a);const i=Kn(a);if(!i&&o.length>1&&!Ae(a))return s(De(a));if(Hn(a)){const u=i?a[Re.PATH]:o[0],c=i?a[Re.PATTERN]:a[u];if(!q(c))throw new Error(hn(u));const r={keyId:Ce(u),pattern:c};return n&&(r.searcher=xe(c,t)),r}let l={children:[],operator:o[0]};return o.forEach(u=>{const c=a[u];Q(c)&&c.forEach(r=>{l.children.push(s(r))})}),l};return Ae(e)||(e=De(e)),s(e)}function Un(e,{ignoreFieldNorm:t=C.ignoreFieldNorm}){e.forEach(n=>{let s=1;n.matches.forEach(({key:a,norm:o,score:i})=>{const l=a?a.weight:null;s*=Math.pow(i===0&&l?Number.EPSILON:i,(l||1)*(t?1:o))}),n.score=s})}function zn(e,t){const n=e.matches;t.matches=[],D(n)&&n.forEach(s=>{if(!D(s.indices)||!s.indices.length)return;const{indices:a,value:o}=s;let i={indices:a,value:o};s.key&&(i.key=s.key.src),s.idx>-1&&(i.refIndex=s.idx),t.matches.push(i)})}function Wn(e,t){t.score=e.score}function qn(e,t,{includeMatches:n=C.includeMatches,includeScore:s=C.includeScore}={}){const a=[];return n&&a.push(zn),s&&a.push(Wn),e.map(o=>{const{idx:i}=o,l={item:t[i],refIndex:i};return a.length&&a.forEach(u=>{u(o,l)}),l})}class le{constructor(t,n={},s){this.options={...C,...n},this.options.useExtendedSearch,this._keyStore=new bn(this.options.keys),this.setCollection(t,s)}setCollection(t,n){if(this._docs=t,n&&!(n instanceof Le))throw new Error(fn);this._myIndex=n||it(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(t){D(t)&&(this._docs.push(t),this._myIndex.add(t))}remove(t=()=>!1){const n=[];for(let s=0,a=this._docs.length;s-1&&(u=u.slice(0,n)),qn(u,this._docs,{includeMatches:s,includeScore:a})}_searchStringList(t){const n=xe(t,this.options),{records:s}=this._myIndex,a=[];return s.forEach(({v:o,i,n:l})=>{if(!D(o))return;const{isMatch:u,score:c,indices:r}=n.searchIn(o);u&&a.push({item:o,idx:i,matches:[{score:c,value:o,norm:l,indices:r}]})}),a}_searchLogical(t){const n=ct(t,this.options),s=(l,u,c)=>{if(!l.children){const{keyId:p,searcher:f}=l,y=this._findMatches({key:this._keyStore.get(p),value:this._myIndex.getValueForItemAtKeyId(u,p),searcher:f});return y&&y.length?[{idx:c,item:u,matches:y}]:[]}const r=[];for(let p=0,f=l.children.length;p{if(D(l)){let c=s(n,l,u);c.length&&(o[u]||(o[u]={idx:u,item:l,matches:[]},i.push(o[u])),c.forEach(({matches:r})=>{o[u].matches.push(...r)}))}}),i}_searchObjectList(t){const n=xe(t,this.options),{keys:s,records:a}=this._myIndex,o=[];return a.forEach(({$:i,i:l})=>{if(!D(i))return;let u=[];s.forEach((c,r)=>{u.push(...this._findMatches({key:c,value:i[r],searcher:n}))}),u.length&&o.push({idx:l,item:i,matches:u})}),o}_findMatches({key:t,value:n,searcher:s}){if(!D(n))return[];let a=[];if(Q(n))n.forEach(({v:o,i,n:l})=>{if(!D(o))return;const{isMatch:u,score:c,indices:r}=s.searchIn(o);u&&a.push({score:c,key:t,value:o,idx:i,norm:l,indices:r})});else{const{v:o,n:i}=n,{isMatch:l,score:u,indices:c}=s.searchIn(o);l&&a.push({score:u,key:t,value:o,norm:i,indices:c})}return a}}le.version="6.6.2";le.createIndex=it;le.parseIndex=wn;le.config=C;le.parseQuery=ct;Dn(Vn);function Gn(e,t,n){const s=()=>{var i,l;return new le((i=W(t))!=null?i:[],(l=W(n))==null?void 0:l.fuseOptions)},a=_(s());re(()=>{var i;return(i=W(n))==null?void 0:i.fuseOptions},()=>{a.value=s()},{deep:!0}),re(()=>W(t),i=>{a.value.setCollection(i)},{deep:!0});const o=x(()=>{const i=W(n);if(i!=null&&i.matchAllWhenSearchEmpty&&!W(e))return W(t).map((u,c)=>({item:u,refIndex:c}));const l=i==null?void 0:i.resultLimit;return a.value.search(W(e),l?{limit:l}:void 0)});return{fuse:a,results:o}}const Yn=ee({components:{HComboboxOption:rn,UIcon:Ie,UAvatar:ze,UKbd:We},props:{group:{type:Object,required:!0},query:{type:String,default:""},groupAttribute:{type:String,required:!0},commandAttribute:{type:String,required:!0},selectedIcon:{type:String,required:!0},ui:{type:Object,required:!0}},setup(e){const t=x(()=>{const s=e.group[e.groupAttribute];return typeof s=="function"?s(e.query):s});function n(s,{indices:a,value:o}){if(s===o)return"";let i="",l=0;a.forEach(c=>{const r=c[1]+1,p=r-c[0]>=e.query.length;i+=[o.substring(l,c[0]),p&&"",o.substring(c[0],r),p&&""].filter(Boolean).join(""),l=r}),i+=o.substring(l);const u=i.indexOf("");return u>60&&(i=`...${i.substring(u-60)}`),i}return{label:t,highlight:n}}}),Xn=["aria-label"],Jn=["innerHTML"];function Qn(e,t,n,s,a,o){const i=Ie,l=ze,u=We,c=J("HComboboxOption");return L(),K("div",{class:P(e.ui.group.wrapper),role:"option"},[e.label?(L(),K("h2",{key:0,class:P(e.ui.group.label)},Z(e.label),3)):H("",!0),U("div",{class:P(e.ui.group.container),role:"listbox","aria-label":e.group[e.groupAttribute]},[(L(!0),K(ve,null,ge(e.group.commands,(r,p)=>(L(),V(c,{key:`${e.group.key}-${p}`,value:r,disabled:r.disabled,as:"template"},{default:z(({active:f,selected:y})=>[U("div",{class:P([e.ui.group.command.base,f?e.ui.group.command.active:e.ui.group.command.inactive,r.disabled?"cursor-not-allowed":"cursor-pointer"])},[U("div",{class:P(e.ui.group.command.container)},[oe(e.$slots,`${e.group.key}-icon`,{group:e.group,command:r,active:f,selected:y},()=>[r.icon?(L(),V(i,{key:0,name:r.icon,class:P([e.ui.group.command.icon.base,f?e.ui.group.command.icon.active:e.ui.group.command.icon.inactive,r.iconClass]),"aria-hidden":"true"},null,8,["name","class"])):r.avatar?(L(),V(l,ae({key:1},{size:e.ui.group.command.avatar.size,...r.avatar},{class:e.ui.group.command.avatar.base,"aria-hidden":"true"}),null,16,["class"])):r.chip?(L(),K("span",{key:2,class:P(e.ui.group.command.chip.base),style:wt({background:`#${r.chip}`})},null,6)):H("",!0)]),U("div",{class:P([e.ui.group.command.label,r.disabled&&e.ui.group.command.disabled])},[oe(e.$slots,`${e.group.key}-command`,{group:e.group,command:r,active:f,selected:y},()=>{var O,M;return[r.prefix?(L(),K("span",{key:0,class:P(["flex-shrink-0",r.prefixClass||e.ui.group.command.prefix])},Z(r.prefix),3)):H("",!0),U("span",{class:P(["truncate",{"flex-none":r.suffix||((O=r.matches)==null?void 0:O.length)}])},Z(r[e.commandAttribute]),3),(M=r.matches)!=null&&M.length?(L(),K("span",{key:1,class:P(["truncate",r.suffixClass||e.ui.group.command.suffix]),innerHTML:e.highlight(r[e.commandAttribute],r.matches[0])},null,10,Jn)):r.suffix?(L(),K("span",{key:2,class:P(["truncate",r.suffixClass||e.ui.group.command.suffix])},Z(r.suffix),3)):H("",!0)]})],2)],2),y?(L(),V(i,{key:0,name:e.selectedIcon,class:P(e.ui.group.command.selectedIcon.base),"aria-hidden":"true"},null,8,["name","class"])):f&&(e.group.active||e.$slots[`${e.group.key}-active`])?oe(e.$slots,`${e.group.key}-active`,{key:1,group:e.group,command:r,active:f,selected:y},()=>[e.group.active?(L(),K("span",{key:0,class:P(e.ui.group.active)},Z(e.group.active),3)):H("",!0)]):oe(e.$slots,`${e.group.key}-inactive`,{key:2,group:e.group,command:r,active:f,selected:y},()=>{var O;return[(O=r.shortcuts)!=null&&O.length?(L(),K("span",{key:0,class:P(e.ui.group.command.shortcuts)},[(L(!0),K(ve,null,ge(r.shortcuts,M=>(L(),V(u,{key:M},{default:z(()=>[xt(Z(M),1)]),_:2},1024))),128))],2)):!r.disabled&&e.group.inactive?(L(),K("span",{key:1,class:P(e.ui.group.inactive)},Z(e.group.inactive),3)):H("",!0)]})],2)]),_:2},1032,["value","disabled"]))),128))],10,Xn)],2)}const Zn=$e(Yn,[["render",Qn]]),ie=qe(be.ui.strategy,be.ui.commandPalette,Rt),eo=ee({components:{HCombobox:on,HComboboxInput:an,HComboboxOptions:sn,UIcon:Ie,UButton:Ge,CommandPaletteGroup:Zn},inheritAttrs:!1,props:{modelValue:{type:[String,Number,Object,Array],default:null},by:{type:String,default:"id"},multiple:{type:Boolean,default:!1},nullable:{type:Boolean,default:!1},searchable:{type:Boolean,default:!0},loading:{type:Boolean,default:!1},groups:{type:Array,default:()=>[]},icon:{type:String,default:()=>ie.default.icon},loadingIcon:{type:String,default:()=>ie.default.loadingIcon},selectedIcon:{type:String,default:()=>ie.default.selectedIcon},closeButton:{type:Object,default:()=>ie.default.closeButton},emptyState:{type:Object,default:()=>ie.default.emptyState},placeholder:{type:String,default:"Search..."},groupAttribute:{type:String,default:"label"},commandAttribute:{type:String,default:"label"},autoselect:{type:Boolean,default:!0},autoclear:{type:Boolean,default:!0},debounce:{type:Number,default:200},fuse:{type:Object,default:()=>({})},class:{type:[String,Object,Array],default:void 0},ui:{type:Object,default:void 0}},emits:["update:modelValue","close"],setup(e,{emit:t,expose:n}){const{ui:s,attrs:a}=Pe("commandPalette",de(e,"ui"),ie,de(e,"class")),o=_(""),i=_(),l=_(null),u=_(!1);ce(()=>{e.autoselect&&$()}),ce(()=>{setTimeout(()=>{var m;const k=(m=i.value)==null?void 0:m.$.provides;if(!k)return;const b=Object.getOwnPropertySymbols(k);l.value=b.length&&k[b[0]]},200)});const c=x(()=>Ye({},e.fuse,{fuseOptions:{keys:[e.commandAttribute]},resultLimit:12,matchAllWhenSearchEmpty:!0})),r=x(()=>{const k=[];for(const b of e.groups)b.search||k.push(...b.commands.map(m=>({...m,group:b.key})));return k}),p=_({}),{results:f}=Gn(o,r,c),y=x(()=>{var m,g;const k=[],b={};for(const d of f.value)b[m=d.item.group]||(b[m]=[]),b[d.item.group].push(d);for(const d in b){const h=e.groups.find(S=>S.key===d);let I=b[d].map(S=>{const{item:R,...w}=S;return{...R,...w}});h.filter&&typeof h.filter=="function"&&(I=h.filter(o.value,I)),k.push({...h,commands:I.slice(0,c.value.resultLimit)})}for(const d of e.groups)if(d.search&&((g=p.value[d.key])!=null&&g.length)){let h=p.value[d.key]||[];d.filter&&typeof d.filter=="function"&&(h=d.filter(o.value,h)),k.push({...d,commands:h.slice(0,c.value.resultLimit)})}return k}),O=Xe(async()=>{const k=e.groups.filter(b=>!!b.search);k.length&&(u.value=!0,await Promise.all(k.map(async b=>{p.value[b.key]=await b.search(o.value)})),u.value=!1)},e.debounce);re(o,()=>{O(),setTimeout(()=>{var k;(k=i.value)==null||k.$el.dispatchEvent(new KeyboardEvent("keydown",{key:"PageUp"}))},0)});const M=x(()=>(e.loading||u.value)&&e.loadingIcon?e.loadingIcon:e.icon),A=x(()=>At(s.value.input.icon.base,s.value.input.icon.size,(e.loading||u.value)&&e.loadingIcon&&"animate-spin")),v=x(()=>({...s.value.default.emptyState,...e.emptyState}));function $(){setTimeout(()=>{var k;(k=i.value)==null||k.$el.dispatchEvent(new KeyboardEvent("keydown",{key:"ArrowDown"}))},0)}function E(k){t("update:modelValue",k,{query:o.value}),e.autoclear&&setTimeout(()=>{o.value=""},0)}function T(){o.value?o.value="":t("close")}return n({query:o,updateQuery:k=>{o.value=k},comboboxApi:l,results:f}),{ui:s,attrs:a,groups:y,comboboxInput:i,query:o,iconName:M,iconClass:A,emptyState:v,onSelect:E,onClear:T}}});function to(e,t,n,s,a,o){const i=Ie,l=J("HComboboxInput"),u=Ge,c=J("CommandPaletteGroup"),r=J("HComboboxOptions"),p=J("HCombobox");return L(),V(p,ae({by:e.by,"model-value":e.modelValue,multiple:e.multiple,nullable:e.nullable,class:e.ui.wrapper},e.attrs,{as:"div","onUpdate:modelValue":e.onSelect}),{default:z(()=>[Et(U("div",{class:P(e.ui.input.wrapper)},[e.iconName?(L(),V(i,{key:0,name:e.iconName,class:P(e.iconClass),"aria-hidden":"true"},null,8,["name","class"])):H("",!0),ue(l,{ref:"comboboxInput",value:e.query,class:P([e.ui.input.base,e.ui.input.size,e.ui.input.height,e.ui.input.padding,e.icon&&e.ui.input.icon.padding]),placeholder:e.placeholder,"aria-label":e.placeholder,autocomplete:"off",onChange:t[0]||(t[0]=f=>e.query=f.target.value)},null,8,["value","class","placeholder","aria-label"]),e.closeButton?(L(),V(u,ae({key:1,"aria-label":"Close"},{...e.ui.default.closeButton,...e.closeButton},{class:e.ui.input.closeButton,onClick:e.onClear}),null,16,["class","onClick"])):H("",!0)],2),[[$t,e.searchable]]),e.groups.length?(L(),V(r,{key:0,static:"",hold:"",as:"div","aria-label":"Commands",class:P(e.ui.container)},{default:z(()=>[(L(!0),K(ve,null,ge(e.groups,f=>(L(),V(c,{key:f.key,query:e.query,group:f,"group-attribute":e.groupAttribute,"command-attribute":e.commandAttribute,"selected-icon":e.selectedIcon,ui:e.ui},Pt({_:2},[ge(e.$slots,(y,O)=>({name:O,fn:z(M=>[oe(e.$slots,O,Lt(Tt(M)))])}))]),1032,["query","group","group-attribute","command-attribute","selected-icon","ui"]))),128))]),_:3},8,["class"])):e.emptyState?oe(e.$slots,"empty-state",{key:1},()=>[U("div",{class:P(e.ui.emptyState.wrapper)},[e.emptyState.icon?(L(),V(i,{key:0,name:e.emptyState.icon,class:P(e.ui.emptyState.icon),"aria-hidden":"true"},null,8,["name","class"])):H("",!0),U("p",{class:P(e.query?e.ui.emptyState.queryLabel:e.ui.emptyState.label)},Z(e.query?e.emptyState.queryLabel:e.emptyState.label),3)],2)]):H("",!0)]),_:3},16,["by","model-value","multiple","nullable","class","onUpdate:modelValue"])}const no=$e(eo,[["render",to]]),oo=qe(be.ui.strategy,be.ui.modal,Nt),ao=ee({components:{HDialog:_t,HDialogPanel:Bt,TransitionRoot:Ft,TransitionChild:jt},inheritAttrs:!1,props:{modelValue:{type:Boolean,default:!1},appear:{type:Boolean,default:!1},overlay:{type:Boolean,default:!0},transition:{type:Boolean,default:!0},preventClose:{type:Boolean,default:!1},fullscreen:{type:Boolean,default:!1},class:{type:[String,Object,Array],default:void 0},ui:{type:Object,default:void 0}},emits:["update:modelValue","close"],setup(e,{emit:t}){const{ui:n,attrs:s}=Pe("modal",de(e,"ui"),oo,de(e,"class")),a=x({get(){return e.modelValue},set(l){t("update:modelValue",l)}}),o=x(()=>e.transition?{...n.value.transition}:{});function i(l){a.value=l,t("close")}return{ui:n,attrs:s,isOpen:a,transitionClass:o,close:i}}});function so(e,t,n,s,a,o){const i=J("TransitionChild"),l=J("HDialogPanel"),u=J("HDialog"),c=J("TransitionRoot");return L(),V(c,{appear:e.appear,show:e.isOpen,as:"template"},{default:z(()=>[ue(u,ae({class:e.ui.wrapper},e.attrs,{onClose:t[0]||(t[0]=r=>!e.preventClose&&e.close(r))}),{default:z(()=>[e.overlay?(L(),V(i,ae({key:0,as:"template",appear:e.appear},e.ui.overlay.transition),{default:z(()=>[U("div",{class:P([e.ui.overlay.base,e.ui.overlay.background])},null,2)]),_:1},16,["appear"])):H("",!0),U("div",{class:P(e.ui.inner)},[U("div",{class:P([e.ui.container,!e.fullscreen&&e.ui.padding])},[ue(i,ae({as:"template",appear:e.appear},e.transitionClass),{default:z(()=>[ue(l,{class:P([e.ui.base,e.ui.background,e.ui.ring,e.ui.shadow,e.fullscreen?"w-screen":e.ui.width,e.fullscreen?"h-screen":e.ui.height,e.fullscreen?"rounded-none":e.ui.rounded,e.fullscreen?"m-0":e.ui.margin])},{default:z(()=>[oe(e.$slots,"default")]),_:3},8,["class"])]),_:3},16,["appear"])],2)],2)]),_:3},16,["class"])]),_:3},8,["appear","show"])}const io=$e(ao,[["render",so]]),dt=e=>{if(!e.children)return e._path;for(const t of(e==null?void 0:e.children)||[]){const n=dt(t);if(n)return n}},pt=(e,t)=>{for(const n of t){if(n._path===e&&!n._id)return n.children;if(n.children){const s=pt(e,n.children);if(s)return s}}},ft=(e,t)=>{for(const n of t){if(n._path===e)return n;if(n.children){const s=ft(e,n.children);if(s)return s}}},ro=(e,t,n)=>{let s;const a=(o,i)=>{for(const l of i)if(!(o!=="/"&&l._path==="/")){if(o!=null&&o.startsWith(l._path)&&l[t]&&(s=l[t]),l._path===o)return;l.children&&a(o,l.children)}};return a(e,n),s},lo=()=>({navBottomLink:dt,navDirFromPath:pt,navPageFromPath:ft,navKeyFromPath:ro});function uo(...e){return x(()=>e.every(t=>W(t)))}function co(e){return x(()=>!W(e))}const po=(e,t={})=>{const{macOS:n,usingInput:s}=Je();let a=[];const o=_([]),i=()=>{o.value.splice(0,o.value.length)},l=Xe(i,t.chainDelay??800),u=c=>{if(!c.key)return;const r=/^[a-z]{1}$/i.test(c.key);let p;if(o.value.push(c.key),o.value.length>=2){p=o.value.slice(-2).join("-");for(const f of a.filter(y=>y.chained))if(f.key===p){f.condition.value&&(c.preventDefault(),f.handler()),i();return}}for(const f of a.filter(y=>!y.chained))if(c.key.toLowerCase()===f.key&&c.metaKey===f.metaKey&&c.ctrlKey===f.ctrlKey&&!(r&&c.shiftKey!==f.shiftKey)){f.condition.value&&(c.preventDefault(),f.handler()),i();return}l()};a=Object.entries(e).map(([c,r])=>{if(!r)return null;let p;if(c.includes("-")&&c.includes("_"))return console.trace("[Shortcut] Invalid key"),null;const f=c.includes("-");if(f)p={key:c.toLowerCase(),metaKey:!1,ctrlKey:!1,shiftKey:!1,altKey:!1};else{const O=c.toLowerCase().split("_").map(M=>M);p={key:O.filter(M=>!["meta","ctrl","shift","alt"].includes(M)).join("_"),metaKey:O.includes("meta"),ctrlKey:O.includes("ctrl"),shiftKey:O.includes("shift"),altKey:O.includes("alt")}}if(p.chained=f,!n.value&&p.metaKey&&!p.ctrlKey&&(p.metaKey=!1,p.ctrlKey=!0),typeof r=="function"?p.handler=r:typeof r=="object"&&(p={...p,handler:r.handler}),!p.handler)return console.trace("[Shortcut] Invalid value"),null;const y=[];return r.usingInput?typeof r.usingInput=="string"&&y.push(x(()=>s.value===r.usingInput)):y.push(co(s)),p.condition=uo(...y,...r.whenever||[]),p}).filter(Boolean),Vt("keydown",u)},ho=ee({__name:"DocsSearch",props:{files:{},navigation:{},links:{},groups:{},fuse:{},ui:{}},setup(e,{expose:t}){const n={padding:"p-0 sm:p-4",rounded:"rounded-none sm:rounded-lg",width:"sm:max-w-3xl",height:"h-screen sm:h-[28rem]",commandPalette:{input:{height:"h-[--header-height] sm:h-12",icon:{size:"h-5 w-5",padding:"ps-11"}},group:{command:{prefix:"!text-foreground after:content-['_>']"}},container:"scroll-py-10",closeButton:{icon:"i-heroicons-x-mark-20-solid",color:"gray",variant:"ghost",size:"xs"}},fileIcon:{name:"i-heroicons-document-text"}},s=e,a=Dt(),{navKeyFromPath:o}=lo(),i=Kt(),{usingInput:l}=Je(),{isDocsSearchModalOpen:u}=Ht(),c=Ut({mobile:640}),r=zt(),{ui:p,attrs:f}=Pe("docs.search",de(s,"ui"),n,void 0,!0),y=c.smaller("mobile"),O=_();function M(m){var g;return m.icon?m.icon:(g=m.navigation)!=null&&g.icon?m.navigation.icon:(s.navigation&&(m.icon=o(m._path,"icon",s.navigation)),m.icon||p.value.fileIcon.name)}const A=x(()=>Ye({},s.fuse,{fuseOptions:{ignoreLocation:!0,includeMatches:!0,threshold:.1,keys:[{name:"title",weight:5},{name:"label",weight:5},{name:"suffix",weight:3},"children.children.value","children.children.children.value"]},resultLimit:12})),v=x(()=>{var m;return[((m=s.links)==null?void 0:m.length)&&{key:"links",label:"Links",commands:s.links.flatMap(g=>[g.to&&{id:a.resolve(g.to).fullPath,...g,icon:g.icon||p.value.fileIcon.name},...(g.children||[]).map(d=>({id:a.resolve(d.to).fullPath,prefix:g.label,suffix:d.description,...d,icon:d.icon||g.icon||p.value.fileIcon.name}))]).filter(Boolean)},...(s.navigation||[]).map(g=>({key:g._path,label:g.title,commands:s.files.filter(d=>{var h;return(h=d._path)==null?void 0:h.startsWith(g._path)}).flatMap(d=>{var I,S,R;const h=(I=Wt(g.children,d))==null?void 0:I.map(({title:w})=>w).join(" > ");return[{id:d._id,label:((S=d.navigation)==null?void 0:S.title)||d.title,title:((R=d.navigation)==null?void 0:R.title)||d.title,prefix:h,to:d._path,suffix:d.description,icon:M(d)},...Object.entries(k(d.body.children)).map(([w,{title:B,children:se}])=>{var Te;if(B)return{id:`${d._path}${w}`,label:B,prefix:(h?`${h} > `:"")+`${((Te=d.navigation)==null?void 0:Te.title)||d.title}`,to:`${d._path}${w}`,children:T(se),icon:M(d),child:!0}})].filter(Boolean)}),filter:(d,h)=>d?h:h==null?void 0:h.filter(I=>!I.child)})),...s.groups||[],!(r!=null&&r.forced)&&{key:"theme",label:"Theme",commands:[{id:"theme-light",label:"Light",icon:i.ui.icons.light,disabled:r.preference==="light",click:()=>{r.preference="light"}},{id:"theme-dark",label:"Dark",icon:i.ui.icons.dark,disabled:r.preference==="dark",click:()=>{r.preference="dark"}}]}].filter(Boolean)}),$=x(()=>u.value||!l.value);function E(m){return m==null?void 0:m.map(g=>{var d;return["code","code-inline","em","a","strong"].includes(g.tag)?{type:"text",value:((d=g.children.find(h=>h.type==="text"))==null?void 0:d.value)||""}:g})}function T(m){return m.map(g=>{var d;return["callout"].includes(g.tag)&&(g.children=T(g.children)),g.tag==="p"&&(g.children=E(g.children),g.children=(d=g.children)==null?void 0:d.reduce((h,I)=>(I.type==="text"&&h.length&&h[h.length-1].type==="text"?h[h.length-1].value+=I.value:h.push(I),h),[])),["style"].includes(g.tag)?null:g})}function k(m){var I;const g={};let d="",h;for(const S of m)["h2","h3"].includes(S.tag)&&(h=(I=S.children)==null?void 0:I.map(R=>{var w,B;if(R.type==="text")return R.value;if(["code","code-inline","em","a","strong"].includes(R.tag))return(B=(w=R.children)==null?void 0:w.find(se=>se.type==="text"))==null?void 0:B.value}).filter(Boolean).join(" "),h&&(d=`#${S.props.id}`)),g[d]?g[d].children.push(S):g[d]={children:[S],title:h};return g}function b(m){u.value=!1,m.click?m.click():m.to?m.target==="_blank"||m.to.startsWith("http")?window.open(m.to,m.target||"_blank"):a.push(m.to):m.href&&window.open(m.href,"_blank")}return po({meta_k:{usingInput:!0,whenever:[$],handler:()=>{u.value=!u.value}},escape:{usingInput:!0,whenever:[u],handler:()=>{u.value=!1}}}),t({commandPaletteRef:O}),(m,g)=>{const d=no,h=io;return L(),V(h,ae({modelValue:Y(u),"onUpdate:modelValue":g[1]||(g[1]=I=>qt(u)?u.value=I:null),overlay:!Y(y),transition:!Y(y),ui:Y(p)},Y(f)),{default:z(()=>[ue(d,{ref_key:"commandPaletteRef",ref:O,groups:Y(v),ui:Y(p).commandPalette,"close-button":Y(p).commandPalette.closeButton,fuse:Y(A),"onUpdate:modelValue":b,onClose:g[0]||(g[0]=I=>u.value=!1)},null,8,["groups","ui","close-button","fuse"])]),_:1},16,["modelValue","overlay","transition","ui"])}}});export{ho as default}; +import{C as fe,D as Ke,r as _,E as x,d as ee,G as X,A as N,H as j,I as ht,J as vt,K as mt,L as he,o as ce,M as re,N as Ne,O as gt,P as bt,Q as yt,R as Se,S as He,F as ve,U as Ee,V as me,W as St,X as It,Y as Ot,Z as kt,$ as G,a0 as Ue,a as Ct,a1 as Mt,a2 as W,k as $e,a3 as Ie,a4 as ze,a5 as We,a6 as J,b as L,c as K,n as P,t as Z,f as H,e as U,a7 as ge,a8 as V,w as z,a9 as oe,aa as ae,ab as wt,ac as xt,ad as qe,ae as Rt,af as be,ag as Ge,ah as Pe,ai as de,aj as Ye,ak as Xe,al as At,am as Et,g as ue,an as $t,ao as Pt,ap as Lt,aq as Tt,ar as Nt,as as _t,at as Bt,au as Ft,av as jt,aw as Je,ax as Vt,u as Dt,x as Kt,ay as Ht,az as Ut,aA as zt,aB as Wt,aC as Y,aD as qt}from"./entry.ae6f67a5.js";function Gt(e){throw new Error("Unexpected object: "+e)}var F=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(F||{});function Yt(e,t){let n=t.resolveItems();if(n.length<=0)return null;let s=t.resolveActiveIndex(),a=s??-1,o=(()=>{switch(e.focus){case 0:return n.findIndex(i=>!t.resolveDisabled(i));case 1:{let i=n.slice().reverse().findIndex((l,u,c)=>a!==-1&&c.length-u-1>=a?!1:!t.resolveDisabled(l));return i===-1?i:n.length-1-i}case 2:return n.findIndex((i,l)=>l<=a?!1:!t.resolveDisabled(i));case 3:{let i=n.slice().reverse().findIndex(l=>!t.resolveDisabled(l));return i===-1?i:n.length-1-i}case 4:return n.findIndex(i=>t.resolveId(i)===e.id);case 5:return null;default:Gt(e)}})();return o===-1?s:o}function Xt({container:e,accept:t,walk:n,enabled:s}){fe(()=>{let a=e.value;if(!a||s!==void 0&&!s.value)return;let o=Ke(e);if(!o)return;let i=Object.assign(u=>t(u),{acceptNode:t}),l=o.createTreeWalker(a,NodeFilter.SHOW_ELEMENT,i,!1);for(;l.nextNode();)n(l.currentNode)})}function Qe(e={},t=null,n=[]){for(let[s,a]of Object.entries(e))et(n,Ze(t,s),a);return n}function Ze(e,t){return e?e+"["+t+"]":t}function et(e,t,n){if(Array.isArray(n))for(let[s,a]of n.entries())et(e,Ze(t,s.toString()),a);else n instanceof Date?e.push([t,n.toISOString()]):typeof n=="boolean"?e.push([t,n?"1":"0"]):typeof n=="string"?e.push([t,n]):typeof n=="number"?e.push([t,`${n}`]):n==null?e.push([t,""]):Qe(n,t,e)}function Jt(e,t,n){let s=_(n==null?void 0:n.value),a=x(()=>e.value!==void 0);return[x(()=>a.value?e.value:s.value),function(o){return a.value||(s.value=o),t==null?void 0:t(o)}]}function _e(e){return[e.screenX,e.screenY]}function Qt(){let e=_([-1,-1]);return{wasMoved(t){let n=_e(t);return e.value[0]===n[0]&&e.value[1]===n[1]?!1:(e.value=n,!0)},update(t){e.value=_e(t)}}}function Zt(e,t){return e===t}var en=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(en||{}),tn=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(tn||{}),nn=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(nn||{});let tt=Symbol("ComboboxContext");function Oe(e){let t=It(tt,null);if(t===null){let n=new Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Oe),n}return t}let on=ee({name:"Combobox",emits:{"update:modelValue":e=>!0},props:{as:{type:[Object,String],default:"template"},disabled:{type:[Boolean],default:!1},by:{type:[String,Function],default:()=>Zt},modelValue:{type:[Object,String,Number,Boolean],default:void 0},defaultValue:{type:[Object,String,Number,Boolean],default:void 0},form:{type:String,optional:!0},name:{type:String,optional:!0},nullable:{type:Boolean,default:!1},multiple:{type:[Boolean],default:!1}},inheritAttrs:!1,setup(e,{slots:t,attrs:n,emit:s}){let a=_(1),o=_(null),i=_(null),l=_(null),u=_(null),c=_({static:!1,hold:!1}),r=_([]),p=_(null),f=_(1),y=_(!1);function O(d=h=>h){let h=p.value!==null?r.value[p.value]:null,I=Ot(d(r.value.slice()),R=>j(R.dataRef.domRef)),S=h?I.indexOf(h):null;return S===-1&&(S=null),{options:I,activeOptionIndex:S}}let M=x(()=>e.multiple?1:0),A=x(()=>e.nullable),[v,$]=Jt(x(()=>e.modelValue),d=>s("update:modelValue",d),x(()=>e.defaultValue)),E=x(()=>v.value===void 0?X(M.value,{1:[],0:void 0}):v.value),T=null,k=null,b={comboboxState:a,value:E,mode:M,compare(d,h){if(typeof e.by=="string"){let I=e.by;return(d==null?void 0:d[I])===(h==null?void 0:h[I])}return e.by(d,h)},defaultValue:x(()=>e.defaultValue),nullable:A,inputRef:i,labelRef:o,buttonRef:l,optionsRef:u,disabled:x(()=>e.disabled),options:r,change(d){$(d)},activeOptionIndex:x(()=>{if(y.value&&p.value===null&&r.value.length>0){let d=r.value.findIndex(h=>!h.dataRef.disabled);d!==-1&&(p.value=d)}return p.value}),activationTrigger:f,optionsPropsRef:c,closeCombobox(){y.value=!1,!e.disabled&&a.value!==1&&(a.value=1,p.value=null)},openCombobox(){if(y.value=!0,e.disabled||a.value===0)return;let d=r.value.findIndex(h=>{let I=N(h.dataRef.value);return X(M.value,{0:()=>b.compare(N(b.value.value),N(I)),1:()=>N(b.value.value).some(S=>b.compare(N(S),N(I)))})});d!==-1&&(p.value=d),a.value=0},goToOption(d,h,I){y.value=!1,T!==null&&cancelAnimationFrame(T),T=requestAnimationFrame(()=>{if(e.disabled||u.value&&!c.value.static&&a.value===1)return;let S=O();if(S.activeOptionIndex===null){let w=S.options.findIndex(B=>!B.dataRef.disabled);w!==-1&&(S.activeOptionIndex=w)}let R=Yt(d===F.Specific?{focus:F.Specific,id:h}:{focus:d},{resolveItems:()=>S.options,resolveActiveIndex:()=>S.activeOptionIndex,resolveId:w=>w.id,resolveDisabled:w=>w.dataRef.disabled});p.value=R,f.value=I??1,r.value=S.options})},selectOption(d){let h=r.value.find(S=>S.id===d);if(!h)return;let{dataRef:I}=h;$(X(M.value,{0:()=>I.value,1:()=>{let S=N(b.value.value).slice(),R=N(I.value),w=S.findIndex(B=>b.compare(R,N(B)));return w===-1?S.push(R):S.splice(w,1),S}}))},selectActiveOption(){if(b.activeOptionIndex.value===null)return;let{dataRef:d,id:h}=r.value[b.activeOptionIndex.value];$(X(M.value,{0:()=>d.value,1:()=>{let I=N(b.value.value).slice(),S=N(d.value),R=I.findIndex(w=>b.compare(S,N(w)));return R===-1?I.push(S):I.splice(R,1),I}})),b.goToOption(F.Specific,h)},registerOption(d,h){k&&cancelAnimationFrame(k);let I={id:d,dataRef:h},S=O(R=>(R.push(I),R));if(p.value===null){let R=h.value.value;X(M.value,{0:()=>b.compare(N(b.value.value),N(R)),1:()=>N(b.value.value).some(w=>b.compare(N(w),N(R)))})&&(S.activeOptionIndex=S.options.indexOf(I))}r.value=S.options,p.value=S.activeOptionIndex,f.value=1,S.options.some(R=>!j(R.dataRef.domRef))&&(k=requestAnimationFrame(()=>{let R=O();r.value=R.options,p.value=R.activeOptionIndex}))},unregisterOption(d){var h;b.activeOptionIndex.value!==null&&((h=b.options.value[b.activeOptionIndex.value])==null?void 0:h.id)===d&&(y.value=!0);let I=O(S=>{let R=S.findIndex(w=>w.id===d);return R!==-1&&S.splice(R,1),S});r.value=I.options,p.value=I.activeOptionIndex,f.value=1}};ht([i,l,u],()=>b.closeCombobox(),x(()=>a.value===0)),vt(tt,b),mt(x(()=>X(a.value,{0:he.Open,1:he.Closed})));let m=x(()=>b.activeOptionIndex.value===null?null:r.value[b.activeOptionIndex.value].dataRef.value),g=x(()=>{var d;return(d=j(i))==null?void 0:d.closest("form")});return ce(()=>{re([g],()=>{if(!g.value||e.defaultValue===void 0)return;function d(){b.change(e.defaultValue)}return g.value.addEventListener("reset",d),()=>{var h;(h=g.value)==null||h.removeEventListener("reset",d)}},{immediate:!0})}),()=>{let{name:d,disabled:h,form:I,...S}=e,R={open:a.value===0,disabled:h,activeIndex:b.activeOptionIndex.value,activeOption:m.value,value:E.value};return Ne(ve,[...d!=null&&E.value!=null?Qe({[d]:E.value}).map(([w,B])=>Ne(gt,bt({features:yt.Hidden,key:w,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:I,name:w,value:B}))):[],Se({theirProps:{...n,...He(S,["modelValue","defaultValue","nullable","multiple","onUpdate:modelValue","by"])},ourProps:{},slot:R,slots:t,attrs:n,name:"Combobox"})])}}}),an=ee({name:"ComboboxInput",props:{as:{type:[Object,String],default:"input"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},displayValue:{type:Function},defaultValue:{type:String,default:void 0},id:{type:String,default:()=>`headlessui-combobox-input-${Ee()}`}},emits:{change:e=>!0},setup(e,{emit:t,attrs:n,slots:s,expose:a}){let o=Oe("ComboboxInput"),i=x(()=>Ke(j(o.inputRef))),l={value:!1};a({el:o.inputRef,$el:o.inputRef});function u(){o.change(null);let v=j(o.optionsRef);v&&(v.scrollTop=0),o.goToOption(F.Nothing)}let c=x(()=>{var v;let $=o.value.value;return j(o.inputRef)?typeof e.displayValue<"u"&&$!==void 0?(v=e.displayValue($))!=null?v:"":typeof $=="string"?$:"":""});ce(()=>{re([c,o.comboboxState,i],([v,$],[E,T])=>{if(l.value)return;let k=j(o.inputRef);k&&((T===0&&$===1||v!==E)&&(k.value=v),requestAnimationFrame(()=>{var b;if(l.value||!k||((b=i.value)==null?void 0:b.activeElement)!==k)return;let{selectionStart:m,selectionEnd:g}=k;Math.abs((g??0)-(m??0))===0&&m===0&&k.setSelectionRange(k.value.length,k.value.length)}))},{immediate:!0}),re([o.comboboxState],([v],[$])=>{if(v===0&&$===1){if(l.value)return;let E=j(o.inputRef);if(!E)return;let T=E.value,{selectionStart:k,selectionEnd:b,selectionDirection:m}=E;E.value="",E.value=T,m!==null?E.setSelectionRange(k,b,m):E.setSelectionRange(k,b)}})});let r=_(!1);function p(){r.value=!0}function f(){kt().nextFrame(()=>{r.value=!1})}function y(v){switch(l.value=!0,v.key){case G.Enter:if(l.value=!1,o.comboboxState.value!==0||r.value)return;if(v.preventDefault(),v.stopPropagation(),o.activeOptionIndex.value===null){o.closeCombobox();return}o.selectActiveOption(),o.mode.value===0&&o.closeCombobox();break;case G.ArrowDown:return l.value=!1,v.preventDefault(),v.stopPropagation(),X(o.comboboxState.value,{0:()=>o.goToOption(F.Next),1:()=>o.openCombobox()});case G.ArrowUp:return l.value=!1,v.preventDefault(),v.stopPropagation(),X(o.comboboxState.value,{0:()=>o.goToOption(F.Previous),1:()=>{o.openCombobox(),Ue(()=>{o.value.value||o.goToOption(F.Last)})}});case G.Home:if(v.shiftKey)break;return l.value=!1,v.preventDefault(),v.stopPropagation(),o.goToOption(F.First);case G.PageUp:return l.value=!1,v.preventDefault(),v.stopPropagation(),o.goToOption(F.First);case G.End:if(v.shiftKey)break;return l.value=!1,v.preventDefault(),v.stopPropagation(),o.goToOption(F.Last);case G.PageDown:return l.value=!1,v.preventDefault(),v.stopPropagation(),o.goToOption(F.Last);case G.Escape:if(l.value=!1,o.comboboxState.value!==0)return;v.preventDefault(),o.optionsRef.value&&!o.optionsPropsRef.value.static&&v.stopPropagation(),o.nullable.value&&o.mode.value===0&&o.value.value===null&&u(),o.closeCombobox();break;case G.Tab:if(l.value=!1,o.comboboxState.value!==0)return;o.mode.value===0&&o.selectActiveOption(),o.closeCombobox();break}}function O(v){t("change",v),o.nullable.value&&o.mode.value===0&&v.target.value===""&&u(),o.openCombobox()}function M(){l.value=!1}let A=x(()=>{var v,$,E,T;return(T=(E=($=e.defaultValue)!=null?$:o.defaultValue.value!==void 0?(v=e.displayValue)==null?void 0:v.call(e,o.defaultValue.value):null)!=null?E:o.defaultValue.value)!=null?T:""});return()=>{var v,$,E,T,k,b;let m={open:o.comboboxState.value===0},{id:g,displayValue:d,onChange:h,...I}=e,S={"aria-controls":(v=o.optionsRef.value)==null?void 0:v.id,"aria-expanded":o.comboboxState.value===0,"aria-activedescendant":o.activeOptionIndex.value===null||($=o.options.value[o.activeOptionIndex.value])==null?void 0:$.id,"aria-labelledby":(k=(E=j(o.labelRef))==null?void 0:E.id)!=null?k:(T=j(o.buttonRef))==null?void 0:T.id,"aria-autocomplete":"list",id:g,onCompositionstart:p,onCompositionend:f,onKeydown:y,onInput:O,onBlur:M,role:"combobox",type:(b=n.type)!=null?b:"text",tabIndex:0,ref:o.inputRef,defaultValue:A.value,disabled:o.disabled.value===!0?!0:void 0};return Se({ourProps:S,theirProps:I,slot:m,attrs:n,slots:s,features:me.RenderStrategy|me.Static,name:"ComboboxInput"})}}}),sn=ee({name:"ComboboxOptions",props:{as:{type:[Object,String],default:"ul"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},hold:{type:[Boolean],default:!1}},setup(e,{attrs:t,slots:n,expose:s}){let a=Oe("ComboboxOptions"),o=`headlessui-combobox-options-${Ee()}`;s({el:a.optionsRef,$el:a.optionsRef}),fe(()=>{a.optionsPropsRef.value.static=e.static}),fe(()=>{a.optionsPropsRef.value.hold=e.hold});let i=St(),l=x(()=>i!==null?(i.value&he.Open)===he.Open:a.comboboxState.value===0);return Xt({container:x(()=>j(a.optionsRef)),enabled:x(()=>a.comboboxState.value===0),accept(u){return u.getAttribute("role")==="option"?NodeFilter.FILTER_REJECT:u.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk(u){u.setAttribute("role","none")}}),()=>{var u,c,r;let p={open:a.comboboxState.value===0},f={"aria-labelledby":(r=(u=j(a.labelRef))==null?void 0:u.id)!=null?r:(c=j(a.buttonRef))==null?void 0:c.id,id:o,ref:a.optionsRef,role:"listbox","aria-multiselectable":a.mode.value===1?!0:void 0},y=He(e,["hold"]);return Se({ourProps:f,theirProps:y,slot:p,attrs:t,slots:n,features:me.RenderStrategy|me.Static,visible:l.value,name:"ComboboxOptions"})}}}),rn=ee({name:"ComboboxOption",props:{as:{type:[Object,String],default:"li"},value:{type:[Object,String,Number,Boolean]},disabled:{type:Boolean,default:!1}},setup(e,{slots:t,attrs:n,expose:s}){let a=Oe("ComboboxOption"),o=`headlessui-combobox-option-${Ee()}`,i=_(null);s({el:i,$el:i});let l=x(()=>a.activeOptionIndex.value!==null?a.options.value[a.activeOptionIndex.value].id===o:!1),u=x(()=>X(a.mode.value,{0:()=>a.compare(N(a.value.value),N(e.value)),1:()=>N(a.value.value).some(A=>a.compare(N(A),N(e.value)))})),c=x(()=>({disabled:e.disabled,value:e.value,domRef:i}));ce(()=>a.registerOption(o,c)),Ct(()=>a.unregisterOption(o)),fe(()=>{a.comboboxState.value===0&&l.value&&a.activationTrigger.value!==0&&Ue(()=>{var A,v;return(v=(A=j(i))==null?void 0:A.scrollIntoView)==null?void 0:v.call(A,{block:"nearest"})})});function r(A){if(e.disabled)return A.preventDefault();a.selectOption(o),a.mode.value===0&&a.closeCombobox(),Mt()||requestAnimationFrame(()=>{var v;return(v=j(a.inputRef))==null?void 0:v.focus()})}function p(){if(e.disabled)return a.goToOption(F.Nothing);a.goToOption(F.Specific,o)}let f=Qt();function y(A){f.update(A)}function O(A){f.wasMoved(A)&&(e.disabled||l.value||a.goToOption(F.Specific,o,0))}function M(A){f.wasMoved(A)&&(e.disabled||l.value&&(a.optionsPropsRef.value.hold||a.goToOption(F.Nothing)))}return()=>{let{disabled:A}=e,v={active:l.value,selected:u.value,disabled:A},$={id:o,ref:i,role:"option",tabIndex:A===!0?void 0:-1,"aria-disabled":A===!0?!0:void 0,"aria-selected":u.value,disabled:void 0,onClick:r,onFocus:p,onPointerenter:y,onMouseenter:y,onPointermove:O,onMousemove:O,onPointerleave:M,onMouseleave:M};return Se({ourProps:$,theirProps:e,slot:v,attrs:n,slots:t,name:"ComboboxOption"})}}});function Q(e){return Array.isArray?Array.isArray(e):at(e)==="[object Array]"}const ln=1/0;function un(e){if(typeof e=="string")return e;let t=e+"";return t=="0"&&1/e==-ln?"-0":t}function cn(e){return e==null?"":un(e)}function q(e){return typeof e=="string"}function nt(e){return typeof e=="number"}function dn(e){return e===!0||e===!1||pn(e)&&at(e)=="[object Boolean]"}function ot(e){return typeof e=="object"}function pn(e){return ot(e)&&e!==null}function D(e){return e!=null}function ke(e){return!e.trim().length}function at(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const fn="Incorrect 'index' type",hn=e=>`Invalid value for key ${e}`,vn=e=>`Pattern length exceeds max of ${e}.`,mn=e=>`Missing ${e} property in key`,gn=e=>`Property 'weight' in key '${e}' must be a positive integer`,Be=Object.prototype.hasOwnProperty;class bn{constructor(t){this._keys=[],this._keyMap={};let n=0;t.forEach(s=>{let a=st(s);n+=a.weight,this._keys.push(a),this._keyMap[a.id]=a,n+=a.weight}),this._keys.forEach(s=>{s.weight/=n})}get(t){return this._keyMap[t]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function st(e){let t=null,n=null,s=null,a=1,o=null;if(q(e)||Q(e))s=e,t=Fe(e),n=Ce(e);else{if(!Be.call(e,"name"))throw new Error(mn("name"));const i=e.name;if(s=i,Be.call(e,"weight")&&(a=e.weight,a<=0))throw new Error(gn(i));t=Fe(i),n=Ce(i),o=e.getFn}return{path:t,id:n,weight:a,src:s,getFn:o}}function Fe(e){return Q(e)?e:e.split(".")}function Ce(e){return Q(e)?e.join("."):e}function yn(e,t){let n=[],s=!1;const a=(o,i,l)=>{if(D(o))if(!i[l])n.push(o);else{let u=i[l];const c=o[u];if(!D(c))return;if(l===i.length-1&&(q(c)||nt(c)||dn(c)))n.push(cn(c));else if(Q(c)){s=!0;for(let r=0,p=c.length;re.score===t.score?e.idx{this._keysMap[n.id]=s})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,q(this.docs[0])?this.docs.forEach((t,n)=>{this._addString(t,n)}):this.docs.forEach((t,n)=>{this._addObject(t,n)}),this.norm.clear())}add(t){const n=this.size();q(t)?this._addString(t,n):this._addObject(t,n)}removeAt(t){this.records.splice(t,1);for(let n=t,s=this.size();n{let i=a.getFn?a.getFn(t):this.getFn(t,a.path);if(D(i)){if(Q(i)){let l=[];const u=[{nestedArrIndex:-1,value:i}];for(;u.length;){const{nestedArrIndex:c,value:r}=u.pop();if(D(r))if(q(r)&&!ke(r)){let p={v:r,i:c,n:this.norm.get(r)};l.push(p)}else Q(r)&&r.forEach((p,f)=>{u.push({nestedArrIndex:f,value:p})})}s.$[o]=l}else if(q(i)&&!ke(i)){let l={v:i,n:this.norm.get(i)};s.$[o]=l}}}),this.records.push(s)}toJSON(){return{keys:this.keys,records:this.records}}}function it(e,t,{getFn:n=C.getFn,fieldNormWeight:s=C.fieldNormWeight}={}){const a=new Le({getFn:n,fieldNormWeight:s});return a.setKeys(e.map(st)),a.setSources(t),a.create(),a}function wn(e,{getFn:t=C.getFn,fieldNormWeight:n=C.fieldNormWeight}={}){const{keys:s,records:a}=e,o=new Le({getFn:t,fieldNormWeight:n});return o.setKeys(s),o.setIndexRecords(a),o}function pe(e,{errors:t=0,currentLocation:n=0,expectedLocation:s=0,distance:a=C.distance,ignoreLocation:o=C.ignoreLocation}={}){const i=t/e.length;if(o)return i;const l=Math.abs(s-n);return a?i+l/a:l?1:i}function xn(e=[],t=C.minMatchCharLength){let n=[],s=-1,a=-1,o=0;for(let i=e.length;o=t&&n.push([s,a]),s=-1)}return e[o-1]&&o-s>=t&&n.push([s,o-1]),n}const ne=32;function Rn(e,t,n,{location:s=C.location,distance:a=C.distance,threshold:o=C.threshold,findAllMatches:i=C.findAllMatches,minMatchCharLength:l=C.minMatchCharLength,includeMatches:u=C.includeMatches,ignoreLocation:c=C.ignoreLocation}={}){if(t.length>ne)throw new Error(vn(ne));const r=t.length,p=e.length,f=Math.max(0,Math.min(s,p));let y=o,O=f;const M=l>1||u,A=M?Array(p):[];let v;for(;(v=e.indexOf(t,O))>-1;){let m=pe(t,{currentLocation:v,expectedLocation:f,distance:a,ignoreLocation:c});if(y=Math.min(m,y),O=v+r,M){let g=0;for(;g=h;w-=1){let B=w-1,se=n[e.charAt(B)];if(M&&(A[B]=+!!se),S[w]=(S[w+1]<<1|1)&se,m&&(S[w]|=($[w+1]|$[w])<<1|1|$[w+1]),S[w]&k&&(E=pe(t,{errors:m,currentLocation:B,expectedLocation:f,distance:a,ignoreLocation:c}),E<=y)){if(y=E,O=B,O<=f)break;h=Math.max(1,2*f-O)}}if(pe(t,{errors:m+1,currentLocation:f,expectedLocation:f,distance:a,ignoreLocation:c})>y)break;$=S}const b={isMatch:O>=0,score:Math.max(.001,E)};if(M){const m=xn(A,l);m.length?u&&(b.indices=m):b.isMatch=!1}return b}function An(e){let t={};for(let n=0,s=e.length;n{this.chunks.push({pattern:f,alphabet:An(f),startIndex:y})},p=this.pattern.length;if(p>ne){let f=0;const y=p%ne,O=p-y;for(;f{const{isMatch:v,score:$,indices:E}=Rn(t,O,M,{location:a+A,distance:o,threshold:i,findAllMatches:l,minMatchCharLength:u,includeMatches:s,ignoreLocation:c});v&&(f=!0),p+=$,v&&E&&(r=[...r,...E])});let y={isMatch:f,score:f?p/this.chunks.length:1};return f&&s&&(y.indices=r),y}}class te{constructor(t){this.pattern=t}static isMultiMatch(t){return je(t,this.multiRegex)}static isSingleMatch(t){return je(t,this.singleRegex)}search(){}}function je(e,t){const n=e.match(t);return n?n[1]:null}class En extends te{constructor(t){super(t)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(t){const n=t===this.pattern;return{isMatch:n,score:n?0:1,indices:[0,this.pattern.length-1]}}}class $n extends te{constructor(t){super(t)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(t){const s=t.indexOf(this.pattern)===-1;return{isMatch:s,score:s?0:1,indices:[0,t.length-1]}}}class Pn extends te{constructor(t){super(t)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(t){const n=t.startsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,this.pattern.length-1]}}}class Ln extends te{constructor(t){super(t)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(t){const n=!t.startsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,t.length-1]}}}class Tn extends te{constructor(t){super(t)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(t){const n=t.endsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[t.length-this.pattern.length,t.length-1]}}}class Nn extends te{constructor(t){super(t)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(t){const n=!t.endsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,t.length-1]}}}class lt extends te{constructor(t,{location:n=C.location,threshold:s=C.threshold,distance:a=C.distance,includeMatches:o=C.includeMatches,findAllMatches:i=C.findAllMatches,minMatchCharLength:l=C.minMatchCharLength,isCaseSensitive:u=C.isCaseSensitive,ignoreLocation:c=C.ignoreLocation}={}){super(t),this._bitapSearch=new rt(t,{location:n,threshold:s,distance:a,includeMatches:o,findAllMatches:i,minMatchCharLength:l,isCaseSensitive:u,ignoreLocation:c})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(t){return this._bitapSearch.searchIn(t)}}class ut extends te{constructor(t){super(t)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(t){let n=0,s;const a=[],o=this.pattern.length;for(;(s=t.indexOf(this.pattern,n))>-1;)n=s+o,a.push([s,n-1]);const i=!!a.length;return{isMatch:i,score:i?0:1,indices:a}}}const Me=[En,ut,Pn,Ln,Nn,Tn,$n,lt],Ve=Me.length,_n=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,Bn="|";function Fn(e,t={}){return e.split(Bn).map(n=>{let s=n.trim().split(_n).filter(o=>o&&!!o.trim()),a=[];for(let o=0,i=s.length;o!!(e[ye.AND]||e[ye.OR]),Kn=e=>!!e[Re.PATH],Hn=e=>!Q(e)&&ot(e)&&!Ae(e),De=e=>({[ye.AND]:Object.keys(e).map(t=>({[t]:e[t]}))});function ct(e,t,{auto:n=!0}={}){const s=a=>{let o=Object.keys(a);const i=Kn(a);if(!i&&o.length>1&&!Ae(a))return s(De(a));if(Hn(a)){const u=i?a[Re.PATH]:o[0],c=i?a[Re.PATTERN]:a[u];if(!q(c))throw new Error(hn(u));const r={keyId:Ce(u),pattern:c};return n&&(r.searcher=xe(c,t)),r}let l={children:[],operator:o[0]};return o.forEach(u=>{const c=a[u];Q(c)&&c.forEach(r=>{l.children.push(s(r))})}),l};return Ae(e)||(e=De(e)),s(e)}function Un(e,{ignoreFieldNorm:t=C.ignoreFieldNorm}){e.forEach(n=>{let s=1;n.matches.forEach(({key:a,norm:o,score:i})=>{const l=a?a.weight:null;s*=Math.pow(i===0&&l?Number.EPSILON:i,(l||1)*(t?1:o))}),n.score=s})}function zn(e,t){const n=e.matches;t.matches=[],D(n)&&n.forEach(s=>{if(!D(s.indices)||!s.indices.length)return;const{indices:a,value:o}=s;let i={indices:a,value:o};s.key&&(i.key=s.key.src),s.idx>-1&&(i.refIndex=s.idx),t.matches.push(i)})}function Wn(e,t){t.score=e.score}function qn(e,t,{includeMatches:n=C.includeMatches,includeScore:s=C.includeScore}={}){const a=[];return n&&a.push(zn),s&&a.push(Wn),e.map(o=>{const{idx:i}=o,l={item:t[i],refIndex:i};return a.length&&a.forEach(u=>{u(o,l)}),l})}class le{constructor(t,n={},s){this.options={...C,...n},this.options.useExtendedSearch,this._keyStore=new bn(this.options.keys),this.setCollection(t,s)}setCollection(t,n){if(this._docs=t,n&&!(n instanceof Le))throw new Error(fn);this._myIndex=n||it(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(t){D(t)&&(this._docs.push(t),this._myIndex.add(t))}remove(t=()=>!1){const n=[];for(let s=0,a=this._docs.length;s-1&&(u=u.slice(0,n)),qn(u,this._docs,{includeMatches:s,includeScore:a})}_searchStringList(t){const n=xe(t,this.options),{records:s}=this._myIndex,a=[];return s.forEach(({v:o,i,n:l})=>{if(!D(o))return;const{isMatch:u,score:c,indices:r}=n.searchIn(o);u&&a.push({item:o,idx:i,matches:[{score:c,value:o,norm:l,indices:r}]})}),a}_searchLogical(t){const n=ct(t,this.options),s=(l,u,c)=>{if(!l.children){const{keyId:p,searcher:f}=l,y=this._findMatches({key:this._keyStore.get(p),value:this._myIndex.getValueForItemAtKeyId(u,p),searcher:f});return y&&y.length?[{idx:c,item:u,matches:y}]:[]}const r=[];for(let p=0,f=l.children.length;p{if(D(l)){let c=s(n,l,u);c.length&&(o[u]||(o[u]={idx:u,item:l,matches:[]},i.push(o[u])),c.forEach(({matches:r})=>{o[u].matches.push(...r)}))}}),i}_searchObjectList(t){const n=xe(t,this.options),{keys:s,records:a}=this._myIndex,o=[];return a.forEach(({$:i,i:l})=>{if(!D(i))return;let u=[];s.forEach((c,r)=>{u.push(...this._findMatches({key:c,value:i[r],searcher:n}))}),u.length&&o.push({idx:l,item:i,matches:u})}),o}_findMatches({key:t,value:n,searcher:s}){if(!D(n))return[];let a=[];if(Q(n))n.forEach(({v:o,i,n:l})=>{if(!D(o))return;const{isMatch:u,score:c,indices:r}=s.searchIn(o);u&&a.push({score:c,key:t,value:o,idx:i,norm:l,indices:r})});else{const{v:o,n:i}=n,{isMatch:l,score:u,indices:c}=s.searchIn(o);l&&a.push({score:u,key:t,value:o,norm:i,indices:c})}return a}}le.version="6.6.2";le.createIndex=it;le.parseIndex=wn;le.config=C;le.parseQuery=ct;Dn(Vn);function Gn(e,t,n){const s=()=>{var i,l;return new le((i=W(t))!=null?i:[],(l=W(n))==null?void 0:l.fuseOptions)},a=_(s());re(()=>{var i;return(i=W(n))==null?void 0:i.fuseOptions},()=>{a.value=s()},{deep:!0}),re(()=>W(t),i=>{a.value.setCollection(i)},{deep:!0});const o=x(()=>{const i=W(n);if(i!=null&&i.matchAllWhenSearchEmpty&&!W(e))return W(t).map((u,c)=>({item:u,refIndex:c}));const l=i==null?void 0:i.resultLimit;return a.value.search(W(e),l?{limit:l}:void 0)});return{fuse:a,results:o}}const Yn=ee({components:{HComboboxOption:rn,UIcon:Ie,UAvatar:ze,UKbd:We},props:{group:{type:Object,required:!0},query:{type:String,default:""},groupAttribute:{type:String,required:!0},commandAttribute:{type:String,required:!0},selectedIcon:{type:String,required:!0},ui:{type:Object,required:!0}},setup(e){const t=x(()=>{const s=e.group[e.groupAttribute];return typeof s=="function"?s(e.query):s});function n(s,{indices:a,value:o}){if(s===o)return"";let i="",l=0;a.forEach(c=>{const r=c[1]+1,p=r-c[0]>=e.query.length;i+=[o.substring(l,c[0]),p&&"",o.substring(c[0],r),p&&""].filter(Boolean).join(""),l=r}),i+=o.substring(l);const u=i.indexOf("");return u>60&&(i=`...${i.substring(u-60)}`),i}return{label:t,highlight:n}}}),Xn=["aria-label"],Jn=["innerHTML"];function Qn(e,t,n,s,a,o){const i=Ie,l=ze,u=We,c=J("HComboboxOption");return L(),K("div",{class:P(e.ui.group.wrapper),role:"option"},[e.label?(L(),K("h2",{key:0,class:P(e.ui.group.label)},Z(e.label),3)):H("",!0),U("div",{class:P(e.ui.group.container),role:"listbox","aria-label":e.group[e.groupAttribute]},[(L(!0),K(ve,null,ge(e.group.commands,(r,p)=>(L(),V(c,{key:`${e.group.key}-${p}`,value:r,disabled:r.disabled,as:"template"},{default:z(({active:f,selected:y})=>[U("div",{class:P([e.ui.group.command.base,f?e.ui.group.command.active:e.ui.group.command.inactive,r.disabled?"cursor-not-allowed":"cursor-pointer"])},[U("div",{class:P(e.ui.group.command.container)},[oe(e.$slots,`${e.group.key}-icon`,{group:e.group,command:r,active:f,selected:y},()=>[r.icon?(L(),V(i,{key:0,name:r.icon,class:P([e.ui.group.command.icon.base,f?e.ui.group.command.icon.active:e.ui.group.command.icon.inactive,r.iconClass]),"aria-hidden":"true"},null,8,["name","class"])):r.avatar?(L(),V(l,ae({key:1},{size:e.ui.group.command.avatar.size,...r.avatar},{class:e.ui.group.command.avatar.base,"aria-hidden":"true"}),null,16,["class"])):r.chip?(L(),K("span",{key:2,class:P(e.ui.group.command.chip.base),style:wt({background:`#${r.chip}`})},null,6)):H("",!0)]),U("div",{class:P([e.ui.group.command.label,r.disabled&&e.ui.group.command.disabled])},[oe(e.$slots,`${e.group.key}-command`,{group:e.group,command:r,active:f,selected:y},()=>{var O,M;return[r.prefix?(L(),K("span",{key:0,class:P(["flex-shrink-0",r.prefixClass||e.ui.group.command.prefix])},Z(r.prefix),3)):H("",!0),U("span",{class:P(["truncate",{"flex-none":r.suffix||((O=r.matches)==null?void 0:O.length)}])},Z(r[e.commandAttribute]),3),(M=r.matches)!=null&&M.length?(L(),K("span",{key:1,class:P(["truncate",r.suffixClass||e.ui.group.command.suffix]),innerHTML:e.highlight(r[e.commandAttribute],r.matches[0])},null,10,Jn)):r.suffix?(L(),K("span",{key:2,class:P(["truncate",r.suffixClass||e.ui.group.command.suffix])},Z(r.suffix),3)):H("",!0)]})],2)],2),y?(L(),V(i,{key:0,name:e.selectedIcon,class:P(e.ui.group.command.selectedIcon.base),"aria-hidden":"true"},null,8,["name","class"])):f&&(e.group.active||e.$slots[`${e.group.key}-active`])?oe(e.$slots,`${e.group.key}-active`,{key:1,group:e.group,command:r,active:f,selected:y},()=>[e.group.active?(L(),K("span",{key:0,class:P(e.ui.group.active)},Z(e.group.active),3)):H("",!0)]):oe(e.$slots,`${e.group.key}-inactive`,{key:2,group:e.group,command:r,active:f,selected:y},()=>{var O;return[(O=r.shortcuts)!=null&&O.length?(L(),K("span",{key:0,class:P(e.ui.group.command.shortcuts)},[(L(!0),K(ve,null,ge(r.shortcuts,M=>(L(),V(u,{key:M},{default:z(()=>[xt(Z(M),1)]),_:2},1024))),128))],2)):!r.disabled&&e.group.inactive?(L(),K("span",{key:1,class:P(e.ui.group.inactive)},Z(e.group.inactive),3)):H("",!0)]})],2)]),_:2},1032,["value","disabled"]))),128))],10,Xn)],2)}const Zn=$e(Yn,[["render",Qn]]),ie=qe(be.ui.strategy,be.ui.commandPalette,Rt),eo=ee({components:{HCombobox:on,HComboboxInput:an,HComboboxOptions:sn,UIcon:Ie,UButton:Ge,CommandPaletteGroup:Zn},inheritAttrs:!1,props:{modelValue:{type:[String,Number,Object,Array],default:null},by:{type:String,default:"id"},multiple:{type:Boolean,default:!1},nullable:{type:Boolean,default:!1},searchable:{type:Boolean,default:!0},loading:{type:Boolean,default:!1},groups:{type:Array,default:()=>[]},icon:{type:String,default:()=>ie.default.icon},loadingIcon:{type:String,default:()=>ie.default.loadingIcon},selectedIcon:{type:String,default:()=>ie.default.selectedIcon},closeButton:{type:Object,default:()=>ie.default.closeButton},emptyState:{type:Object,default:()=>ie.default.emptyState},placeholder:{type:String,default:"Search..."},groupAttribute:{type:String,default:"label"},commandAttribute:{type:String,default:"label"},autoselect:{type:Boolean,default:!0},autoclear:{type:Boolean,default:!0},debounce:{type:Number,default:200},fuse:{type:Object,default:()=>({})},class:{type:[String,Object,Array],default:void 0},ui:{type:Object,default:void 0}},emits:["update:modelValue","close"],setup(e,{emit:t,expose:n}){const{ui:s,attrs:a}=Pe("commandPalette",de(e,"ui"),ie,de(e,"class")),o=_(""),i=_(),l=_(null),u=_(!1);ce(()=>{e.autoselect&&$()}),ce(()=>{setTimeout(()=>{var m;const k=(m=i.value)==null?void 0:m.$.provides;if(!k)return;const b=Object.getOwnPropertySymbols(k);l.value=b.length&&k[b[0]]},200)});const c=x(()=>Ye({},e.fuse,{fuseOptions:{keys:[e.commandAttribute]},resultLimit:12,matchAllWhenSearchEmpty:!0})),r=x(()=>{const k=[];for(const b of e.groups)b.search||k.push(...b.commands.map(m=>({...m,group:b.key})));return k}),p=_({}),{results:f}=Gn(o,r,c),y=x(()=>{var m,g;const k=[],b={};for(const d of f.value)b[m=d.item.group]||(b[m]=[]),b[d.item.group].push(d);for(const d in b){const h=e.groups.find(S=>S.key===d);let I=b[d].map(S=>{const{item:R,...w}=S;return{...R,...w}});h.filter&&typeof h.filter=="function"&&(I=h.filter(o.value,I)),k.push({...h,commands:I.slice(0,c.value.resultLimit)})}for(const d of e.groups)if(d.search&&((g=p.value[d.key])!=null&&g.length)){let h=p.value[d.key]||[];d.filter&&typeof d.filter=="function"&&(h=d.filter(o.value,h)),k.push({...d,commands:h.slice(0,c.value.resultLimit)})}return k}),O=Xe(async()=>{const k=e.groups.filter(b=>!!b.search);k.length&&(u.value=!0,await Promise.all(k.map(async b=>{p.value[b.key]=await b.search(o.value)})),u.value=!1)},e.debounce);re(o,()=>{O(),setTimeout(()=>{var k;(k=i.value)==null||k.$el.dispatchEvent(new KeyboardEvent("keydown",{key:"PageUp"}))},0)});const M=x(()=>(e.loading||u.value)&&e.loadingIcon?e.loadingIcon:e.icon),A=x(()=>At(s.value.input.icon.base,s.value.input.icon.size,(e.loading||u.value)&&e.loadingIcon&&"animate-spin")),v=x(()=>({...s.value.default.emptyState,...e.emptyState}));function $(){setTimeout(()=>{var k;(k=i.value)==null||k.$el.dispatchEvent(new KeyboardEvent("keydown",{key:"ArrowDown"}))},0)}function E(k){t("update:modelValue",k,{query:o.value}),e.autoclear&&setTimeout(()=>{o.value=""},0)}function T(){o.value?o.value="":t("close")}return n({query:o,updateQuery:k=>{o.value=k},comboboxApi:l,results:f}),{ui:s,attrs:a,groups:y,comboboxInput:i,query:o,iconName:M,iconClass:A,emptyState:v,onSelect:E,onClear:T}}});function to(e,t,n,s,a,o){const i=Ie,l=J("HComboboxInput"),u=Ge,c=J("CommandPaletteGroup"),r=J("HComboboxOptions"),p=J("HCombobox");return L(),V(p,ae({by:e.by,"model-value":e.modelValue,multiple:e.multiple,nullable:e.nullable,class:e.ui.wrapper},e.attrs,{as:"div","onUpdate:modelValue":e.onSelect}),{default:z(()=>[Et(U("div",{class:P(e.ui.input.wrapper)},[e.iconName?(L(),V(i,{key:0,name:e.iconName,class:P(e.iconClass),"aria-hidden":"true"},null,8,["name","class"])):H("",!0),ue(l,{ref:"comboboxInput",value:e.query,class:P([e.ui.input.base,e.ui.input.size,e.ui.input.height,e.ui.input.padding,e.icon&&e.ui.input.icon.padding]),placeholder:e.placeholder,"aria-label":e.placeholder,autocomplete:"off",onChange:t[0]||(t[0]=f=>e.query=f.target.value)},null,8,["value","class","placeholder","aria-label"]),e.closeButton?(L(),V(u,ae({key:1,"aria-label":"Close"},{...e.ui.default.closeButton,...e.closeButton},{class:e.ui.input.closeButton,onClick:e.onClear}),null,16,["class","onClick"])):H("",!0)],2),[[$t,e.searchable]]),e.groups.length?(L(),V(r,{key:0,static:"",hold:"",as:"div","aria-label":"Commands",class:P(e.ui.container)},{default:z(()=>[(L(!0),K(ve,null,ge(e.groups,f=>(L(),V(c,{key:f.key,query:e.query,group:f,"group-attribute":e.groupAttribute,"command-attribute":e.commandAttribute,"selected-icon":e.selectedIcon,ui:e.ui},Pt({_:2},[ge(e.$slots,(y,O)=>({name:O,fn:z(M=>[oe(e.$slots,O,Lt(Tt(M)))])}))]),1032,["query","group","group-attribute","command-attribute","selected-icon","ui"]))),128))]),_:3},8,["class"])):e.emptyState?oe(e.$slots,"empty-state",{key:1},()=>[U("div",{class:P(e.ui.emptyState.wrapper)},[e.emptyState.icon?(L(),V(i,{key:0,name:e.emptyState.icon,class:P(e.ui.emptyState.icon),"aria-hidden":"true"},null,8,["name","class"])):H("",!0),U("p",{class:P(e.query?e.ui.emptyState.queryLabel:e.ui.emptyState.label)},Z(e.query?e.emptyState.queryLabel:e.emptyState.label),3)],2)]):H("",!0)]),_:3},16,["by","model-value","multiple","nullable","class","onUpdate:modelValue"])}const no=$e(eo,[["render",to]]),oo=qe(be.ui.strategy,be.ui.modal,Nt),ao=ee({components:{HDialog:_t,HDialogPanel:Bt,TransitionRoot:Ft,TransitionChild:jt},inheritAttrs:!1,props:{modelValue:{type:Boolean,default:!1},appear:{type:Boolean,default:!1},overlay:{type:Boolean,default:!0},transition:{type:Boolean,default:!0},preventClose:{type:Boolean,default:!1},fullscreen:{type:Boolean,default:!1},class:{type:[String,Object,Array],default:void 0},ui:{type:Object,default:void 0}},emits:["update:modelValue","close"],setup(e,{emit:t}){const{ui:n,attrs:s}=Pe("modal",de(e,"ui"),oo,de(e,"class")),a=x({get(){return e.modelValue},set(l){t("update:modelValue",l)}}),o=x(()=>e.transition?{...n.value.transition}:{});function i(l){a.value=l,t("close")}return{ui:n,attrs:s,isOpen:a,transitionClass:o,close:i}}});function so(e,t,n,s,a,o){const i=J("TransitionChild"),l=J("HDialogPanel"),u=J("HDialog"),c=J("TransitionRoot");return L(),V(c,{appear:e.appear,show:e.isOpen,as:"template"},{default:z(()=>[ue(u,ae({class:e.ui.wrapper},e.attrs,{onClose:t[0]||(t[0]=r=>!e.preventClose&&e.close(r))}),{default:z(()=>[e.overlay?(L(),V(i,ae({key:0,as:"template",appear:e.appear},e.ui.overlay.transition),{default:z(()=>[U("div",{class:P([e.ui.overlay.base,e.ui.overlay.background])},null,2)]),_:1},16,["appear"])):H("",!0),U("div",{class:P(e.ui.inner)},[U("div",{class:P([e.ui.container,!e.fullscreen&&e.ui.padding])},[ue(i,ae({as:"template",appear:e.appear},e.transitionClass),{default:z(()=>[ue(l,{class:P([e.ui.base,e.ui.background,e.ui.ring,e.ui.shadow,e.fullscreen?"w-screen":e.ui.width,e.fullscreen?"h-screen":e.ui.height,e.fullscreen?"rounded-none":e.ui.rounded,e.fullscreen?"m-0":e.ui.margin])},{default:z(()=>[oe(e.$slots,"default")]),_:3},8,["class"])]),_:3},16,["appear"])],2)],2)]),_:3},16,["class"])]),_:3},8,["appear","show"])}const io=$e(ao,[["render",so]]),dt=e=>{if(!e.children)return e._path;for(const t of(e==null?void 0:e.children)||[]){const n=dt(t);if(n)return n}},pt=(e,t)=>{for(const n of t){if(n._path===e&&!n._id)return n.children;if(n.children){const s=pt(e,n.children);if(s)return s}}},ft=(e,t)=>{for(const n of t){if(n._path===e)return n;if(n.children){const s=ft(e,n.children);if(s)return s}}},ro=(e,t,n)=>{let s;const a=(o,i)=>{for(const l of i)if(!(o!=="/"&&l._path==="/")){if(o!=null&&o.startsWith(l._path)&&l[t]&&(s=l[t]),l._path===o)return;l.children&&a(o,l.children)}};return a(e,n),s},lo=()=>({navBottomLink:dt,navDirFromPath:pt,navPageFromPath:ft,navKeyFromPath:ro});function uo(...e){return x(()=>e.every(t=>W(t)))}function co(e){return x(()=>!W(e))}const po=(e,t={})=>{const{macOS:n,usingInput:s}=Je();let a=[];const o=_([]),i=()=>{o.value.splice(0,o.value.length)},l=Xe(i,t.chainDelay??800),u=c=>{if(!c.key)return;const r=/^[a-z]{1}$/i.test(c.key);let p;if(o.value.push(c.key),o.value.length>=2){p=o.value.slice(-2).join("-");for(const f of a.filter(y=>y.chained))if(f.key===p){f.condition.value&&(c.preventDefault(),f.handler()),i();return}}for(const f of a.filter(y=>!y.chained))if(c.key.toLowerCase()===f.key&&c.metaKey===f.metaKey&&c.ctrlKey===f.ctrlKey&&!(r&&c.shiftKey!==f.shiftKey)){f.condition.value&&(c.preventDefault(),f.handler()),i();return}l()};a=Object.entries(e).map(([c,r])=>{if(!r)return null;let p;if(c.includes("-")&&c.includes("_"))return console.trace("[Shortcut] Invalid key"),null;const f=c.includes("-");if(f)p={key:c.toLowerCase(),metaKey:!1,ctrlKey:!1,shiftKey:!1,altKey:!1};else{const O=c.toLowerCase().split("_").map(M=>M);p={key:O.filter(M=>!["meta","ctrl","shift","alt"].includes(M)).join("_"),metaKey:O.includes("meta"),ctrlKey:O.includes("ctrl"),shiftKey:O.includes("shift"),altKey:O.includes("alt")}}if(p.chained=f,!n.value&&p.metaKey&&!p.ctrlKey&&(p.metaKey=!1,p.ctrlKey=!0),typeof r=="function"?p.handler=r:typeof r=="object"&&(p={...p,handler:r.handler}),!p.handler)return console.trace("[Shortcut] Invalid value"),null;const y=[];return r.usingInput?typeof r.usingInput=="string"&&y.push(x(()=>s.value===r.usingInput)):y.push(co(s)),p.condition=uo(...y,...r.whenever||[]),p}).filter(Boolean),Vt("keydown",u)},ho=ee({__name:"DocsSearch",props:{files:{},navigation:{},links:{},groups:{},fuse:{},ui:{}},setup(e,{expose:t}){const n={padding:"p-0 sm:p-4",rounded:"rounded-none sm:rounded-lg",width:"sm:max-w-3xl",height:"h-screen sm:h-[28rem]",commandPalette:{input:{height:"h-[--header-height] sm:h-12",icon:{size:"h-5 w-5",padding:"ps-11"}},group:{command:{prefix:"!text-foreground after:content-['_>']"}},container:"scroll-py-10",closeButton:{icon:"i-heroicons-x-mark-20-solid",color:"gray",variant:"ghost",size:"xs"}},fileIcon:{name:"i-heroicons-document-text"}},s=e,a=Dt(),{navKeyFromPath:o}=lo(),i=Kt(),{usingInput:l}=Je(),{isDocsSearchModalOpen:u}=Ht(),c=Ut({mobile:640}),r=zt(),{ui:p,attrs:f}=Pe("docs.search",de(s,"ui"),n,void 0,!0),y=c.smaller("mobile"),O=_();function M(m){var g;return m.icon?m.icon:(g=m.navigation)!=null&&g.icon?m.navigation.icon:(s.navigation&&(m.icon=o(m._path,"icon",s.navigation)),m.icon||p.value.fileIcon.name)}const A=x(()=>Ye({},s.fuse,{fuseOptions:{ignoreLocation:!0,includeMatches:!0,threshold:.1,keys:[{name:"title",weight:5},{name:"label",weight:5},{name:"suffix",weight:3},"children.children.value","children.children.children.value"]},resultLimit:12})),v=x(()=>{var m;return[((m=s.links)==null?void 0:m.length)&&{key:"links",label:"Links",commands:s.links.flatMap(g=>[g.to&&{id:a.resolve(g.to).fullPath,...g,icon:g.icon||p.value.fileIcon.name},...(g.children||[]).map(d=>({id:a.resolve(d.to).fullPath,prefix:g.label,suffix:d.description,...d,icon:d.icon||g.icon||p.value.fileIcon.name}))]).filter(Boolean)},...(s.navigation||[]).map(g=>({key:g._path,label:g.title,commands:s.files.filter(d=>{var h;return(h=d._path)==null?void 0:h.startsWith(g._path)}).flatMap(d=>{var I,S,R;const h=(I=Wt(g.children,d))==null?void 0:I.map(({title:w})=>w).join(" > ");return[{id:d._id,label:((S=d.navigation)==null?void 0:S.title)||d.title,title:((R=d.navigation)==null?void 0:R.title)||d.title,prefix:h,to:d._path,suffix:d.description,icon:M(d)},...Object.entries(k(d.body.children)).map(([w,{title:B,children:se}])=>{var Te;if(B)return{id:`${d._path}${w}`,label:B,prefix:(h?`${h} > `:"")+`${((Te=d.navigation)==null?void 0:Te.title)||d.title}`,to:`${d._path}${w}`,children:T(se),icon:M(d),child:!0}})].filter(Boolean)}),filter:(d,h)=>d?h:h==null?void 0:h.filter(I=>!I.child)})),...s.groups||[],!(r!=null&&r.forced)&&{key:"theme",label:"Theme",commands:[{id:"theme-light",label:"Light",icon:i.ui.icons.light,disabled:r.preference==="light",click:()=>{r.preference="light"}},{id:"theme-dark",label:"Dark",icon:i.ui.icons.dark,disabled:r.preference==="dark",click:()=>{r.preference="dark"}}]}].filter(Boolean)}),$=x(()=>u.value||!l.value);function E(m){return m==null?void 0:m.map(g=>{var d;return["code","code-inline","em","a","strong"].includes(g.tag)?{type:"text",value:((d=g.children.find(h=>h.type==="text"))==null?void 0:d.value)||""}:g})}function T(m){return m.map(g=>{var d;return["callout"].includes(g.tag)&&(g.children=T(g.children)),g.tag==="p"&&(g.children=E(g.children),g.children=(d=g.children)==null?void 0:d.reduce((h,I)=>(I.type==="text"&&h.length&&h[h.length-1].type==="text"?h[h.length-1].value+=I.value:h.push(I),h),[])),["style"].includes(g.tag)?null:g})}function k(m){var I;const g={};let d="",h;for(const S of m)["h2","h3"].includes(S.tag)&&(h=(I=S.children)==null?void 0:I.map(R=>{var w,B;if(R.type==="text")return R.value;if(["code","code-inline","em","a","strong"].includes(R.tag))return(B=(w=R.children)==null?void 0:w.find(se=>se.type==="text"))==null?void 0:B.value}).filter(Boolean).join(" "),h&&(d=`#${S.props.id}`)),g[d]?g[d].children.push(S):g[d]={children:[S],title:h};return g}function b(m){u.value=!1,m.click?m.click():m.to?m.target==="_blank"||m.to.startsWith("http")?window.open(m.to,m.target||"_blank"):a.push(m.to):m.href&&window.open(m.href,"_blank")}return po({meta_k:{usingInput:!0,whenever:[$],handler:()=>{u.value=!u.value}},escape:{usingInput:!0,whenever:[u],handler:()=>{u.value=!1}}}),t({commandPaletteRef:O}),(m,g)=>{const d=no,h=io;return L(),V(h,ae({modelValue:Y(u),"onUpdate:modelValue":g[1]||(g[1]=I=>qt(u)?u.value=I:null),overlay:!Y(y),transition:!Y(y),ui:Y(p)},Y(f)),{default:z(()=>[ue(d,{ref_key:"commandPaletteRef",ref:O,groups:Y(v),ui:Y(p).commandPalette,"close-button":Y(p).commandPalette.closeButton,fuse:Y(A),"onUpdate:modelValue":b,onClose:g[0]||(g[0]=I=>u.value=!1)},null,8,["groups","ui","close-button","fuse"])]),_:1},16,["modelValue","overlay","transition","ui"])}}});export{ho as default}; diff --git a/_nuxt/DocumentDrivenEmpty.ae0269d3.js b/_nuxt/DocumentDrivenEmpty.ce5f88ec.js similarity index 77% rename from _nuxt/DocumentDrivenEmpty.ae0269d3.js rename to _nuxt/DocumentDrivenEmpty.ce5f88ec.js index df76c311..bd8ebded 100644 --- a/_nuxt/DocumentDrivenEmpty.ae0269d3.js +++ b/_nuxt/DocumentDrivenEmpty.ce5f88ec.js @@ -1 +1 @@ -import{d as n,N as e}from"./entry.8c781d5d.js";const r=n({name:"DocumentDrivenEmpty",props:{value:{type:Object,required:!0}},render({value:t}){return e("div",void 0,[e("p","Document is empty"),e("p",`Add content to it by opening ${t._source}/${t._file} file.`)])}});export{r as default}; +import{d as n,N as e}from"./entry.ae6f67a5.js";const r=n({name:"DocumentDrivenEmpty",props:{value:{type:Object,required:!0}},render({value:t}){return e("div",void 0,[e("p","Document is empty"),e("p",`Add content to it by opening ${t._source}/${t._file} file.`)])}});export{r as default}; diff --git a/_nuxt/DocumentDrivenNotFound.1a87674d.js b/_nuxt/DocumentDrivenNotFound.425e24d1.js similarity index 59% rename from _nuxt/DocumentDrivenNotFound.1a87674d.js rename to _nuxt/DocumentDrivenNotFound.425e24d1.js index 0d35da28..95b75f96 100644 --- a/_nuxt/DocumentDrivenNotFound.1a87674d.js +++ b/_nuxt/DocumentDrivenNotFound.425e24d1.js @@ -1 +1 @@ -import{d as n,N as e}from"./entry.8c781d5d.js";const t=n({name:"DocumentDrivenNotFound",render(){return e("div","Document not found")}});export{t as default}; +import{d as n,N as e}from"./entry.ae6f67a5.js";const t=n({name:"DocumentDrivenNotFound",render(){return e("div","Document not found")}});export{t as default}; diff --git a/_nuxt/Dynamic.5a3e2755.js b/_nuxt/Dynamic.01943a6f.js similarity index 53% rename from _nuxt/Dynamic.5a3e2755.js rename to _nuxt/Dynamic.01943a6f.js index 698dedb8..ee273fe3 100644 --- a/_nuxt/Dynamic.5a3e2755.js +++ b/_nuxt/Dynamic.01943a6f.js @@ -1 +1 @@ -import{d as n}from"./entry.8c781d5d.js";const m=n({name:"OgImageDynamic",async setup(a,{attrs:e}){return()=>null}});export{m as default}; +import{d as n}from"./entry.ae6f67a5.js";const m=n({name:"OgImageDynamic",async setup(a,{attrs:e}){return()=>null}});export{m as default}; diff --git a/_nuxt/Field.7af909af.js b/_nuxt/Field.54335140.js similarity index 94% rename from _nuxt/Field.7af909af.js rename to _nuxt/Field.54335140.js index 646315fe..a90282f4 100644 --- a/_nuxt/Field.7af909af.js +++ b/_nuxt/Field.54335140.js @@ -1 +1 @@ -import{d as m,ah as u,ai as y,b as o,c as i,e as r,n as s,aC as e,t as n,f as d,a9 as g,ac as v,aa as x}from"./entry.8c781d5d.js";const q=m({inheritAttrs:!1,__name:"Field",props:{name:{},description:{default:void 0},type:{default:"string"},required:{type:Boolean,default:!1},default:{default:void 0},class:{default:void 0}},setup(l){const p={wrapper:"mt-5",container:"flex items-start gap-x-2.5 font-mono text-sm",name:"rounded-md font-semibold text-primary",required:"text-gray-500 dark:text-gray-400",type:"text-right",label:"flex flex-1 gap-x-2.5",description:"mt-3 mb-0 text-gray-600 dark:text-gray-300 text-sm space-y-3"},c=l,{ui:a,attrs:f}=u("content.field",void 0,p,y(c,"class"),!0);return(t,k)=>(o(),i("div",x({class:e(a).wrapper},e(f)),[r("div",{class:s(e(a).container)},[r("div",{class:s(e(a).label)},[r("span",{class:s(e(a).name)},n(t.name),3),t.required?(o(),i("span",{key:0,class:s(e(a).required)},"required",2)):d("",!0)],2),r("div",{class:s(e(a).type)},n(t.type),3)],2),t.$slots.default||t.description?(o(),i("div",{key:0,class:s(e(a).description)},[g(t.$slots,"default",{},()=>[v(n(t.description),1)])],2)):d("",!0)],16))}});export{q as default}; +import{d as m,ah as u,ai as y,b as o,c as i,e as r,n as s,aC as e,t as n,f as d,a9 as g,ac as v,aa as x}from"./entry.ae6f67a5.js";const q=m({inheritAttrs:!1,__name:"Field",props:{name:{},description:{default:void 0},type:{default:"string"},required:{type:Boolean,default:!1},default:{default:void 0},class:{default:void 0}},setup(l){const p={wrapper:"mt-5",container:"flex items-start gap-x-2.5 font-mono text-sm",name:"rounded-md font-semibold text-primary",required:"text-gray-500 dark:text-gray-400",type:"text-right",label:"flex flex-1 gap-x-2.5",description:"mt-3 mb-0 text-gray-600 dark:text-gray-300 text-sm space-y-3"},c=l,{ui:a,attrs:f}=u("content.field",void 0,p,y(c,"class"),!0);return(t,k)=>(o(),i("div",x({class:e(a).wrapper},e(f)),[r("div",{class:s(e(a).container)},[r("div",{class:s(e(a).label)},[r("span",{class:s(e(a).name)},n(t.name),3),t.required?(o(),i("span",{key:0,class:s(e(a).required)},"required",2)):d("",!0)],2),r("div",{class:s(e(a).type)},n(t.type),3)],2),t.$slots.default||t.description?(o(),i("div",{key:0,class:s(e(a).description)},[g(t.$slots,"default",{},()=>[v(n(t.description),1)])],2)):d("",!0)],16))}});export{q as default}; diff --git a/_nuxt/FieldGroup.fc071874.js b/_nuxt/FieldGroup.0c22c700.js similarity index 86% rename from _nuxt/FieldGroup.fc071874.js rename to _nuxt/FieldGroup.0c22c700.js index dc2b4e4f..23258497 100644 --- a/_nuxt/FieldGroup.fc071874.js +++ b/_nuxt/FieldGroup.0c22c700.js @@ -1 +1 @@ -import{d,ah as c,ai as n,b as p,c as l,a9 as f,aa as u,aC as e}from"./entry.8c781d5d.js";const h=d({inheritAttrs:!1,__name:"FieldGroup",props:{class:{}},setup(s){const a={wrapper:"mt-5 space-y-5 divide-y divide-gray-200 dark:divide-gray-800 [&>div]:pt-5 [&>div:first-child]:pt-0 [&>div:first-child]:mt-0"},t=s,{ui:r,attrs:i}=c("content.fieldGroup",void 0,a,n(t,"class"),!0);return(o,m)=>(p(),l("div",u({class:e(r).wrapper},e(i)),[f(o.$slots,"default")],16))}});export{h as default}; +import{d,ah as c,ai as n,b as p,c as l,a9 as f,aa as u,aC as e}from"./entry.ae6f67a5.js";const h=d({inheritAttrs:!1,__name:"FieldGroup",props:{class:{}},setup(s){const a={wrapper:"mt-5 space-y-5 divide-y divide-gray-200 dark:divide-gray-800 [&>div]:pt-5 [&>div:first-child]:pt-0 [&>div:first-child]:mt-0"},t=s,{ui:r,attrs:i}=c("content.fieldGroup",void 0,a,n(t,"class"),!0);return(o,m)=>(p(),l("div",u({class:e(r).wrapper},e(i)),[f(o.$slots,"default")],16))}});export{h as default}; diff --git a/_nuxt/GithubCommits.9feac534.js b/_nuxt/GithubCommits.655e7df4.js similarity index 75% rename from _nuxt/GithubCommits.9feac534.js rename to _nuxt/GithubCommits.655e7df4.js index 7de20b72..0b763069 100644 --- a/_nuxt/GithubCommits.9feac534.js +++ b/_nuxt/GithubCommits.655e7df4.js @@ -1 +1 @@ -import{d as u,aP as n,aU as i,b0 as m}from"./entry.8c781d5d.js";import{u as o}from"./useGithub.eb11860f.js";const f=u({props:{query:{type:Object,required:!1,default:()=>({})}},async setup(t){const{fetchCommits:r}=o(),{data:s,pending:e,refresh:a}=await n(`github-commits-${i(t.query)}`,()=>r(t.query));return{commits:s,pending:e,refresh:a}},render({commits:t,pending:r,refresh:s}){var a;const e=m();return(a=e==null?void 0:e.default)==null?void 0:a.call(e,{commits:t,pending:r,refresh:s})}});export{f as default}; +import{d as u,aP as n,aU as i,b0 as m}from"./entry.ae6f67a5.js";import{u as o}from"./useGithub.b9a4816c.js";const f=u({props:{query:{type:Object,required:!1,default:()=>({})}},async setup(t){const{fetchCommits:r}=o(),{data:s,pending:e,refresh:a}=await n(`github-commits-${i(t.query)}`,()=>r(t.query));return{commits:s,pending:e,refresh:a}},render({commits:t,pending:r,refresh:s}){var a;const e=m();return(a=e==null?void 0:e.default)==null?void 0:a.call(e,{commits:t,pending:r,refresh:s})}});export{f as default}; diff --git a/_nuxt/GithubContributors.439db7f1.js b/_nuxt/GithubContributors.75b45979.js similarity index 76% rename from _nuxt/GithubContributors.439db7f1.js rename to _nuxt/GithubContributors.75b45979.js index afce9729..ff743361 100644 --- a/_nuxt/GithubContributors.439db7f1.js +++ b/_nuxt/GithubContributors.75b45979.js @@ -1 +1 @@ -import{d as n,aP as s,aU as o,b0 as i}from"./entry.8c781d5d.js";import{u as c}from"./useGithub.eb11860f.js";const f=n({props:{query:{type:Object,required:!1,default:()=>({})}},async setup(e){const{fetchContributors:u}=c(),{data:a,refresh:t,pending:r}=await s(`github-contributors-${o(e.query)}`,()=>u(e.query));return{contributors:a,refresh:t,pending:r}},render({contributors:e,refresh:u,pending:a}){var r;const t=i();return(r=t==null?void 0:t.default)==null?void 0:r.call(t,{contributors:e,refresh:u,pending:a})}});export{f as default}; +import{d as n,aP as s,aU as o,b0 as i}from"./entry.ae6f67a5.js";import{u as c}from"./useGithub.b9a4816c.js";const f=n({props:{query:{type:Object,required:!1,default:()=>({})}},async setup(e){const{fetchContributors:u}=c(),{data:a,refresh:t,pending:r}=await s(`github-contributors-${o(e.query)}`,()=>u(e.query));return{contributors:a,refresh:t,pending:r}},render({contributors:e,refresh:u,pending:a}){var r;const t=i();return(r=t==null?void 0:t.default)==null?void 0:r.call(t,{contributors:e,refresh:u,pending:a})}});export{f as default}; diff --git a/_nuxt/GithubFileContributors.5ee57836.js b/_nuxt/GithubFileContributors.c58662e6.js similarity index 89% rename from _nuxt/GithubFileContributors.5ee57836.js rename to _nuxt/GithubFileContributors.c58662e6.js index d3487add..ef5dbfd8 100644 --- a/_nuxt/GithubFileContributors.5ee57836.js +++ b/_nuxt/GithubFileContributors.c58662e6.js @@ -1 +1 @@ -import{d as o,ai as n,M as i,aP as c,aU as f,b0 as b}from"./entry.8c781d5d.js";import{u as d}from"./useGithub.eb11860f.js";const l=o({props:{query:{type:Object,required:!1,default:()=>({})}},async setup(r){const a=n(r.query,"source"),{fetchFileContributors:u}=d();i(a,()=>{t&&t()});const{data:e,refresh:t,pending:s}=await c(`github-file-contributors-${f(r.query)}`,()=>u(r.query));return{contributors:e,refresh:t,pending:s}},render({contributors:r,refresh:a,pending:u}){var t;const e=b();return(t=e==null?void 0:e.default)==null?void 0:t.call(e,{contributors:r,refresh:a,pending:u})}});export{l as default}; +import{d as o,ai as n,M as i,aP as c,aU as f,b0 as b}from"./entry.ae6f67a5.js";import{u as d}from"./useGithub.b9a4816c.js";const l=o({props:{query:{type:Object,required:!1,default:()=>({})}},async setup(r){const a=n(r.query,"source"),{fetchFileContributors:u}=d();i(a,()=>{t&&t()});const{data:e,refresh:t,pending:s}=await c(`github-file-contributors-${f(r.query)}`,()=>u(r.query));return{contributors:e,refresh:t,pending:s}},render({contributors:r,refresh:a,pending:u}){var t;const e=b();return(t=e==null?void 0:e.default)==null?void 0:t.call(e,{contributors:r,refresh:a,pending:u})}});export{l as default}; diff --git a/_nuxt/GithubLastRelease.dfb7e73f.js b/_nuxt/GithubLastRelease.94c1d66c.js similarity index 75% rename from _nuxt/GithubLastRelease.dfb7e73f.js rename to _nuxt/GithubLastRelease.94c1d66c.js index ddf83169..1ecea397 100644 --- a/_nuxt/GithubLastRelease.dfb7e73f.js +++ b/_nuxt/GithubLastRelease.94c1d66c.js @@ -1 +1 @@ -import{d as u,aP as n,aU as d,b0 as f}from"./entry.8c781d5d.js";import{u as i}from"./useGithub.eb11860f.js";const h=u({props:{query:{type:Object,required:!1,default:()=>({})}},async setup(a){const{fetchLastRelease:s}=i(),{data:r,refresh:e,pending:t}=await n(`github-last-release-${d(a.query)}`,()=>s(a.query));return{release:r,refresh:e,pending:t}},render({release:a,refresh:s,pending:r}){var t;const e=f();return(t=e==null?void 0:e.default)==null?void 0:t.call(e,{release:a,refresh:s,pending:r})}});export{h as default}; +import{d as u,aP as n,aU as d,b0 as f}from"./entry.ae6f67a5.js";import{u as i}from"./useGithub.b9a4816c.js";const h=u({props:{query:{type:Object,required:!1,default:()=>({})}},async setup(a){const{fetchLastRelease:s}=i(),{data:r,refresh:e,pending:t}=await n(`github-last-release-${d(a.query)}`,()=>s(a.query));return{release:r,refresh:e,pending:t}},render({release:a,refresh:s,pending:r}){var t;const e=f();return(t=e==null?void 0:e.default)==null?void 0:t.call(e,{release:a,refresh:s,pending:r})}});export{h as default}; diff --git a/_nuxt/GithubLink.e7026b0f.js b/_nuxt/GithubLink.99d55faa.js similarity index 93% rename from _nuxt/GithubLink.e7026b0f.js rename to _nuxt/GithubLink.99d55faa.js index 2d903c3e..1d67eb3d 100644 --- a/_nuxt/GithubLink.e7026b0f.js +++ b/_nuxt/GithubLink.99d55faa.js @@ -1 +1 @@ -import{d as y,l as u,E as l,bg as v,b0 as w}from"./entry.8c781d5d.js";const p=y({props:{owner:{type:String,default:()=>{var e,t;return(t=(e=u())==null?void 0:e.github)==null?void 0:t.owner},required:!1},repo:{type:String,default:()=>{var e,t;return(t=(e=u())==null?void 0:e.github)==null?void 0:t.repo},required:!1},branch:{type:String,default:()=>{var e,t;return(t=(e=u())==null?void 0:e.github)==null?void 0:t.branch},required:!1},dir:{type:String,default:()=>{var e,t;return(t=(e=u())==null?void 0:e.github)==null?void 0:t.dir},required:!1},source:{type:String,required:!1,default:void 0},page:{type:Object,required:!1,default:void 0},contentDir:{type:String,required:!1,default:"content"},edit:{type:Boolean,required:!1,default:!0}},setup(e){if(!e.owner||!e.repo||!e.branch)throw new Error("If you want to use `GithubLink` component, you must specify: `owner`, `repo` and `branch`.");const t=l(()=>{var h,s;let{repo:r,owner:a,branch:c,contentDir:f}=e,d="";if((s=(h=u())==null?void 0:h.public)!=null&&s.content){let n;const{sources:b}=u().public.content;for(const g in b||[])if(e.page._id.startsWith(g)){n=b[g];break}(n==null?void 0:n.driver)==="github"&&(r=n.repo||e.repo||"",a=n.owner||e.owner||"",c=n.branch||e.branch||"main",f=n.dir||e.contentDir||"",d=n.prefix||"")}return{repo:r,owner:a,branch:c,contentDir:f,prefix:d}}),i=l(()=>v("https://github.com",`${t.value.owner}/${t.value.repo}`)),o=l(()=>{var a;const r=[];return(a=e==null?void 0:e.page)!=null&&a._path?(t.value.contentDir&&r.push(t.value.contentDir),r.push(e.page._file.substring(t.value.prefix.length)),r):(e.dir&&r.push(e.dir),e.source&&r.push(e.source),r)});return{url:l(()=>{const r=[i.value];return e.edit?r.push("edit"):r.push("tree"),r.push(t.value.branch,...o.value),r.filter(Boolean).join("/")})}},render(e){var o;const{url:t}=e,i=w();return(o=i==null?void 0:i.default)==null?void 0:o.call(i,{url:t})}});export{p as default}; +import{d as y,l as u,E as l,bg as v,b0 as w}from"./entry.ae6f67a5.js";const p=y({props:{owner:{type:String,default:()=>{var e,t;return(t=(e=u())==null?void 0:e.github)==null?void 0:t.owner},required:!1},repo:{type:String,default:()=>{var e,t;return(t=(e=u())==null?void 0:e.github)==null?void 0:t.repo},required:!1},branch:{type:String,default:()=>{var e,t;return(t=(e=u())==null?void 0:e.github)==null?void 0:t.branch},required:!1},dir:{type:String,default:()=>{var e,t;return(t=(e=u())==null?void 0:e.github)==null?void 0:t.dir},required:!1},source:{type:String,required:!1,default:void 0},page:{type:Object,required:!1,default:void 0},contentDir:{type:String,required:!1,default:"content"},edit:{type:Boolean,required:!1,default:!0}},setup(e){if(!e.owner||!e.repo||!e.branch)throw new Error("If you want to use `GithubLink` component, you must specify: `owner`, `repo` and `branch`.");const t=l(()=>{var h,s;let{repo:r,owner:a,branch:c,contentDir:f}=e,d="";if((s=(h=u())==null?void 0:h.public)!=null&&s.content){let n;const{sources:b}=u().public.content;for(const g in b||[])if(e.page._id.startsWith(g)){n=b[g];break}(n==null?void 0:n.driver)==="github"&&(r=n.repo||e.repo||"",a=n.owner||e.owner||"",c=n.branch||e.branch||"main",f=n.dir||e.contentDir||"",d=n.prefix||"")}return{repo:r,owner:a,branch:c,contentDir:f,prefix:d}}),i=l(()=>v("https://github.com",`${t.value.owner}/${t.value.repo}`)),o=l(()=>{var a;const r=[];return(a=e==null?void 0:e.page)!=null&&a._path?(t.value.contentDir&&r.push(t.value.contentDir),r.push(e.page._file.substring(t.value.prefix.length)),r):(e.dir&&r.push(e.dir),e.source&&r.push(e.source),r)});return{url:l(()=>{const r=[i.value];return e.edit?r.push("edit"):r.push("tree"),r.push(t.value.branch,...o.value),r.filter(Boolean).join("/")})}},render(e){var o;const{url:t}=e,i=w();return(o=i==null?void 0:i.default)==null?void 0:o.call(i,{url:t})}});export{p as default}; diff --git a/_nuxt/GithubReadme.b4204bde.js b/_nuxt/GithubReadme.767cfc29.js similarity index 74% rename from _nuxt/GithubReadme.b4204bde.js rename to _nuxt/GithubReadme.767cfc29.js index dbd5b909..68d94ef7 100644 --- a/_nuxt/GithubReadme.b4204bde.js +++ b/_nuxt/GithubReadme.767cfc29.js @@ -1 +1 @@ -import{d as n,aP as s,aU as d,b0 as f}from"./entry.8c781d5d.js";import{u as i}from"./useGithub.eb11860f.js";const c=n({props:{query:{type:Object,required:!1,default:()=>({})}},async setup(a){const{fetchReadme:r}=i(),{data:u,refresh:e,pending:t}=await s(`github-readme-${d(a.query)}`,()=>r(a.query));return{readme:u,refresh:e,pending:t}},render({readme:a,refresh:r,pending:u}){var t;const e=f();return(t=e==null?void 0:e.default)==null?void 0:t.call(e,{readme:a,refresh:r,pending:u})}});export{c as default}; +import{d as n,aP as s,aU as d,b0 as f}from"./entry.ae6f67a5.js";import{u as i}from"./useGithub.b9a4816c.js";const c=n({props:{query:{type:Object,required:!1,default:()=>({})}},async setup(a){const{fetchReadme:r}=i(),{data:u,refresh:e,pending:t}=await s(`github-readme-${d(a.query)}`,()=>r(a.query));return{readme:u,refresh:e,pending:t}},render({readme:a,refresh:r,pending:u}){var t;const e=f();return(t=e==null?void 0:e.default)==null?void 0:t.call(e,{readme:a,refresh:r,pending:u})}});export{c as default}; diff --git a/_nuxt/GithubRelease.b9e3718c.js b/_nuxt/GithubRelease.ba7ea252.js similarity index 76% rename from _nuxt/GithubRelease.b9e3718c.js rename to _nuxt/GithubRelease.ba7ea252.js index 7b3068b9..d30e03aa 100644 --- a/_nuxt/GithubRelease.b9e3718c.js +++ b/_nuxt/GithubRelease.ba7ea252.js @@ -1 +1 @@ -import{d as s,aP as n,aU as f,b0 as i}from"./entry.8c781d5d.js";import{u as d}from"./useGithub.eb11860f.js";const h=s({props:{query:{type:Object,required:!1,default:()=>({})}},async setup(a){const{fetchRelease:r}=d();if(!a.query.tag)return;const{data:u,refresh:e,pending:t}=await n(`github-release-${f(a.query)}`,()=>r(a.query));return{release:u,refresh:e,pending:t}},render({release:a,refresh:r,pending:u}){var t;const e=i();return(t=e==null?void 0:e.default)==null?void 0:t.call(e,{release:a,refresh:r,pending:u})}});export{h as default}; +import{d as s,aP as n,aU as f,b0 as i}from"./entry.ae6f67a5.js";import{u as d}from"./useGithub.b9a4816c.js";const h=s({props:{query:{type:Object,required:!1,default:()=>({})}},async setup(a){const{fetchRelease:r}=d();if(!a.query.tag)return;const{data:u,refresh:e,pending:t}=await n(`github-release-${f(a.query)}`,()=>r(a.query));return{release:u,refresh:e,pending:t}},render({release:a,refresh:r,pending:u}){var t;const e=i();return(t=e==null?void 0:e.default)==null?void 0:t.call(e,{release:a,refresh:r,pending:u})}});export{h as default}; diff --git a/_nuxt/GithubReleases.c555d27b.js b/_nuxt/GithubReleases.d4b85ceb.js similarity index 75% rename from _nuxt/GithubReleases.c555d27b.js rename to _nuxt/GithubReleases.d4b85ceb.js index 88c7a2c4..19417238 100644 --- a/_nuxt/GithubReleases.c555d27b.js +++ b/_nuxt/GithubReleases.d4b85ceb.js @@ -1 +1 @@ -import{d as u,aP as n,aU as d,b0 as f}from"./entry.8c781d5d.js";import{u as i}from"./useGithub.eb11860f.js";const h=u({props:{query:{type:Object,required:!1,default:()=>({})}},async setup(a){const{fetchReleases:t}=i(),{data:r,refresh:e,pending:s}=await n(`github-releases-${d(a.query)}`,()=>t(a.query));return{releases:r,refresh:e,pending:s}},render({releases:a,refresh:t,pending:r}){var s;const e=f();return(s=e==null?void 0:e.default)==null?void 0:s.call(e,{releases:a,refresh:t,pending:r})}});export{h as default}; +import{d as u,aP as n,aU as d,b0 as f}from"./entry.ae6f67a5.js";import{u as i}from"./useGithub.b9a4816c.js";const h=u({props:{query:{type:Object,required:!1,default:()=>({})}},async setup(a){const{fetchReleases:t}=i(),{data:r,refresh:e,pending:s}=await n(`github-releases-${d(a.query)}`,()=>t(a.query));return{releases:r,refresh:e,pending:s}},render({releases:a,refresh:t,pending:r}){var s;const e=f();return(s=e==null?void 0:e.default)==null?void 0:s.call(e,{releases:a,refresh:t,pending:r})}});export{h as default}; diff --git a/_nuxt/GithubRepository.894b13e8.js b/_nuxt/GithubRepository.c7f34d2f.js similarity index 75% rename from _nuxt/GithubRepository.894b13e8.js rename to _nuxt/GithubRepository.c7f34d2f.js index 42f4e350..fa2883dd 100644 --- a/_nuxt/GithubRepository.894b13e8.js +++ b/_nuxt/GithubRepository.c7f34d2f.js @@ -1 +1 @@ -import{d as o,aP as u,aU as n,b0 as i}from"./entry.8c781d5d.js";import{u as p}from"./useGithub.eb11860f.js";const f=o({props:{query:{type:Object,required:!1,default:()=>({})}},async setup(t){const{fetchRepository:a}=p(),{data:s,refresh:e,pending:r}=await u(`github-repository-${n(t.query)}`,()=>a(t.query));return{repository:s,refresh:e,pending:r}},render({repository:t,refresh:a,pending:s}){var r;const e=i();return(r=e==null?void 0:e.default)==null?void 0:r.call(e,{repository:t,refresh:a,pending:s})}});export{f as default}; +import{d as o,aP as u,aU as n,b0 as i}from"./entry.ae6f67a5.js";import{u as p}from"./useGithub.b9a4816c.js";const f=o({props:{query:{type:Object,required:!1,default:()=>({})}},async setup(t){const{fetchRepository:a}=p(),{data:s,refresh:e,pending:r}=await u(`github-repository-${n(t.query)}`,()=>a(t.query));return{repository:s,refresh:e,pending:r}},render({repository:t,refresh:a,pending:s}){var r;const e=i();return(r=e==null?void 0:e.default)==null?void 0:r.call(e,{repository:t,refresh:a,pending:s})}});export{f as default}; diff --git a/_nuxt/IconCSS.c0eec719.js b/_nuxt/IconCSS.59c034f1.js similarity index 93% rename from _nuxt/IconCSS.c0eec719.js rename to _nuxt/IconCSS.59c034f1.js index 46318ae4..2fb0a1a9 100644 --- a/_nuxt/IconCSS.c0eec719.js +++ b/_nuxt/IconCSS.59c034f1.js @@ -1 +1 @@ -import{d as f,a$ as _,x as m,E as c,bl as I,b as d,c as x,ab as v,k as S}from"./entry.8c781d5d.js";const y=f({__name:"IconCSS",props:{name:{type:String,required:!0},size:{type:String,default:""}},setup(u){_(e=>({"5991ee62":p.value}));const t=m(),s=u,l=c(()=>{var e,n;return(n=(e=t.nuxtIcon)==null?void 0:e.aliases)!=null&&n[s.name]?t.nuxtIcon.aliases[s.name]:s.name}),r=c(()=>I(l.value)),p=c(()=>{var o,a;const e=(a=(o=t.nuxtIcon)==null?void 0:o.iconifyApiOptions)==null?void 0:a.url;if(e)try{new URL(e)}catch{console.warn("Nuxt IconCSS: Invalid custom Iconify API URL");return}return`url('${e||"https://api.iconify.design"}/${r.value.prefix}/${r.value.name}.svg')`}),i=c(()=>{var n,o,a;if(!s.size&&typeof((n=t.nuxtIcon)==null?void 0:n.size)=="boolean"&&!((o=t.nuxtIcon)!=null&&o.size))return;const e=s.size||((a=t.nuxtIcon)==null?void 0:a.size)||"1em";return String(Number(e))===e?`${e}px`:e});return(e,n)=>(d(),x("span",{style:v({width:i.value,height:i.value})},null,4))}});const C=S(y,[["__scopeId","data-v-908af7ff"]]);export{C as default}; +import{d as f,a$ as _,x as m,E as c,bl as I,b as d,c as x,ab as v,k as S}from"./entry.ae6f67a5.js";const y=f({__name:"IconCSS",props:{name:{type:String,required:!0},size:{type:String,default:""}},setup(u){_(e=>({"5991ee62":p.value}));const t=m(),s=u,l=c(()=>{var e,n;return(n=(e=t.nuxtIcon)==null?void 0:e.aliases)!=null&&n[s.name]?t.nuxtIcon.aliases[s.name]:s.name}),r=c(()=>I(l.value)),p=c(()=>{var o,a;const e=(a=(o=t.nuxtIcon)==null?void 0:o.iconifyApiOptions)==null?void 0:a.url;if(e)try{new URL(e)}catch{console.warn("Nuxt IconCSS: Invalid custom Iconify API URL");return}return`url('${e||"https://api.iconify.design"}/${r.value.prefix}/${r.value.name}.svg')`}),i=c(()=>{var n,o,a;if(!s.size&&typeof((n=t.nuxtIcon)==null?void 0:n.size)=="boolean"&&!((o=t.nuxtIcon)!=null&&o.size))return;const e=s.size||((a=t.nuxtIcon)==null?void 0:a.size)||"1em";return String(Number(e))===e?`${e}px`:e});return(e,n)=>(d(),x("span",{style:v({width:i.value,height:i.value})},null,4))}});const C=S(y,[["__scopeId","data-v-908af7ff"]]);export{C as default}; diff --git a/_nuxt/MDCRenderer.84953d36.js b/_nuxt/MDCRenderer.8dddf3be.js similarity index 99% rename from _nuxt/MDCRenderer.84953d36.js rename to _nuxt/MDCRenderer.8dddf3be.js index 51a348a5..73bed0c8 100644 --- a/_nuxt/MDCRenderer.84953d36.js +++ b/_nuxt/MDCRenderer.8dddf3be.js @@ -1 +1 @@ -import{d as $,l as Z,A as J,E as G,N as A,a6 as Q,bd as B,be as x,aT as nn,s as ln,bf as en}from"./entry.8c781d5d.js";class C{constructor(e,o,t){this.property=e,this.normal=o,t&&(this.space=t)}}C.prototype.property={};C.prototype.normal={};C.prototype.space=null;function z(n,e){const o={},t={};let r=-1;for(;++r4&&o.slice(0,4)==="data"&&un.test(e)){if(e.charAt(4)==="-"){const a=e.slice(5).replace(U,dn);t="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=e.slice(4);if(!U.test(a)){let i=a.replace(sn,pn);i.charAt(0)!=="-"&&(i="-"+i),e="data"+i}}r=M}return new r(t,e)}function pn(n){return"-"+n.toLowerCase()}function dn(n){return n.charAt(1).toUpperCase()}const gn=z([F,j,V,N,rn],"html"),Ln=z([F,j,V,N,an],"svg"),T=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","math","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","section","select","slot","small","source","span","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"],L="default",q=/^@|^v-on:/,W=/^:|^v-bind:/,K=/^v-model/,hn=["select","textarea","input"],fn=Object.fromEntries(["p","a","blockquote","code","pre","code","em","h1","h2","h3","h4","h5","h6","hr","img","ul","ol","li","strong","table","thead","tbody","td","th","tr","script"].map(n=>[n,`prose-${n}`])),Mn=$({name:"MDCRenderer",props:{body:{type:Object,required:!0},data:{type:Object,default:()=>({})},tag:{type:[String,Boolean],default:void 0},prose:{type:Boolean,default:void 0},components:{type:Object,default:()=>({})}},async setup(n){var r,a;const{mdc:e}=Z().public,o={...e.components.prose&&n.prose!==!1?fn:{},...e.components.map,...J(((a=(r=n.data)==null?void 0:r.mdc)==null?void 0:a.components)||{}),...n.components},t=G(()=>{var s;const i=(((s=n.body)==null?void 0:s.children)||[]).map(c=>c.tag||c.type).filter(c=>!T.includes(c));return Array.from(new Set(i)).sort().join(".")});return await On(n.body,{tags:o}),{tags:o,contentKey:t}},render(n){var h,y,d;const{tags:e,tag:o,body:t,data:r,contentKey:a}=n;if(!t)return null;const i={...r,tags:e},s=o!==!1?R(o||((h=i.component)==null?void 0:h.name)||i.component||"div"):void 0,c=X(t,A,i,i);return s?A(s,{...(y=i.component)==null?void 0:y.props,...this.$attrs,key:a},c):(d=c.default)==null?void 0:d.call(c)}});function mn(n,e,o,t={}){if(n.type==="text")return e(x,n.value);const r=n.tag,a=Y(n,o.tags);if(n.tag==="binding")return yn(n,e,o,t);const i=R(a);typeof i=="object"&&(i.tag=r);const s=vn(n,o);return e(i,s,X(n,e,o,{...t,...s}))}function yn(n,e,o,t={}){var h,y;const r={...t,$route:()=>ln(),$document:o,$doc:o},a=/\.|\[(\d+)\]/,s=((h=n.props)==null?void 0:h.value.trim().split(a).filter(Boolean)).reduce((d,b)=>b in d?typeof d[b]=="function"?d[b]():d[b]:{},r),c=(y=n.props)==null?void 0:y.defaultValue;return e(x,s??c??"")}function X(n,e,o,t){const a=(n.children||[]).reduce((s,c)=>{if(!wn(c))return s[L].push(c),s;const h=xn(c);return s[h]=s[h]||[],c.type==="element"&&s[h].push(...c.children||[]),s},{[L]:[]});return Object.entries(a).reduce((s,[c,h])=>(h.length&&(s[c]=()=>{const y=h.map(d=>mn(d,e,o,t));return Pn(y)}),s),{})}function vn(n,e){const{tag:o="",props:t={}}=n;return Object.keys(t).reduce(function(r,a){if(a==="__ignoreMap")return r;const i=t[a];if(K.test(a)&&!hn.includes(o))return bn(a,i,r,e);if(a==="v-bind")return kn(a,i,r,e);if(q.test(a))return Sn(a,i,r,e);if(W.test(a))return Cn(a,i,r,e);const{attribute:s}=cn(gn,a);return Array.isArray(i)&&i.every(c=>typeof c=="string")?(r[s]=i.join(" "),r):(r[s]=i,r)},{})}function bn(n,e,o,t){const r=d=>+d,a=d=>d.trim(),i=d=>d,s=n.replace(K,"").split(".").filter(d=>d).reduce((d,b)=>(d[b]=!0,d),{}),c="value",h=s.lazy?"change":"input",y=s.number?r:s.trim?a:i;return o[c]=w(e,t),o.on=o.on||{},o.on[h]=d=>t[e]=y(d),o}function kn(n,e,o,t){const r=w(e,t);return o=Object.assign(o,r),o}function Sn(n,e,o,t){return n=n.replace(q,""),o.on=o.on||{},o.on[n]=()=>w(e,t),o}function Cn(n,e,o,t){return n=n.replace(W,""),o[n]=w(e,t),o}const R=n=>{if(!T.includes(n)&&!(n!=null&&n.render)){const e=Q(B(n),!1);if(typeof e=="object")return e}return n};function w(n,e){const o=n.split(".").reduce((t,r)=>typeof t=="object"?t[r]:void 0,e);return typeof o>"u"?en(n):o}function xn(n){let e="";for(const o of Object.keys(n.props||{}))if(!(!o.startsWith("#")&&!o.startsWith("v-slot:"))){e=o.split(/[:#]/,2)[1];break}return e||L}function wn(n){return n.tag==="template"}function Pn(n){const e=[];for(const o of n){const t=e[e.length-1];o.type===x&&(t==null?void 0:t.type)===x?t.children=t.children+o.children:e.push(o)}return e}async function On(n,e){if(!n)return;const o=Array.from(new Set(t(n,e)));await Promise.all(o.map(async r=>{if(r!=null&&r.render||r!=null&&r.ssrRender||r!=null&&r.__ssrInlineRender)return;const a=R(r);a!=null&&a.__asyncLoader&&!a.__asyncResolved&&await a.__asyncLoader()}));function t(r,a){const i=r.tag;if(r.type==="text"||i==="binding")return[];const s=Y(r,a.tags),c=[];r.type!=="root"&&!T.includes(s)&&c.push(s);for(const h of r.children||[])c.push(...t(h,a));return c}}function Y(n,e){var t;const o=n.tag;return!o||typeof((t=n.props)==null?void 0:t.__ignoreMap)<"u"?o:e[o]||e[B(o)]||e[nn(n.tag)]||o}export{Mn as _,gn as a,cn as f,T as h,O as n,Ln as s}; +import{d as $,l as Z,A as J,E as G,N as A,a6 as Q,bd as B,be as x,aT as nn,s as ln,bf as en}from"./entry.ae6f67a5.js";class C{constructor(e,o,t){this.property=e,this.normal=o,t&&(this.space=t)}}C.prototype.property={};C.prototype.normal={};C.prototype.space=null;function z(n,e){const o={},t={};let r=-1;for(;++r4&&o.slice(0,4)==="data"&&un.test(e)){if(e.charAt(4)==="-"){const a=e.slice(5).replace(U,dn);t="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=e.slice(4);if(!U.test(a)){let i=a.replace(sn,pn);i.charAt(0)!=="-"&&(i="-"+i),e="data"+i}}r=M}return new r(t,e)}function pn(n){return"-"+n.toLowerCase()}function dn(n){return n.charAt(1).toUpperCase()}const gn=z([F,j,V,N,rn],"html"),Ln=z([F,j,V,N,an],"svg"),T=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","math","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","section","select","slot","small","source","span","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"],L="default",q=/^@|^v-on:/,W=/^:|^v-bind:/,K=/^v-model/,hn=["select","textarea","input"],fn=Object.fromEntries(["p","a","blockquote","code","pre","code","em","h1","h2","h3","h4","h5","h6","hr","img","ul","ol","li","strong","table","thead","tbody","td","th","tr","script"].map(n=>[n,`prose-${n}`])),Mn=$({name:"MDCRenderer",props:{body:{type:Object,required:!0},data:{type:Object,default:()=>({})},tag:{type:[String,Boolean],default:void 0},prose:{type:Boolean,default:void 0},components:{type:Object,default:()=>({})}},async setup(n){var r,a;const{mdc:e}=Z().public,o={...e.components.prose&&n.prose!==!1?fn:{},...e.components.map,...J(((a=(r=n.data)==null?void 0:r.mdc)==null?void 0:a.components)||{}),...n.components},t=G(()=>{var s;const i=(((s=n.body)==null?void 0:s.children)||[]).map(c=>c.tag||c.type).filter(c=>!T.includes(c));return Array.from(new Set(i)).sort().join(".")});return await On(n.body,{tags:o}),{tags:o,contentKey:t}},render(n){var h,y,d;const{tags:e,tag:o,body:t,data:r,contentKey:a}=n;if(!t)return null;const i={...r,tags:e},s=o!==!1?R(o||((h=i.component)==null?void 0:h.name)||i.component||"div"):void 0,c=X(t,A,i,i);return s?A(s,{...(y=i.component)==null?void 0:y.props,...this.$attrs,key:a},c):(d=c.default)==null?void 0:d.call(c)}});function mn(n,e,o,t={}){if(n.type==="text")return e(x,n.value);const r=n.tag,a=Y(n,o.tags);if(n.tag==="binding")return yn(n,e,o,t);const i=R(a);typeof i=="object"&&(i.tag=r);const s=vn(n,o);return e(i,s,X(n,e,o,{...t,...s}))}function yn(n,e,o,t={}){var h,y;const r={...t,$route:()=>ln(),$document:o,$doc:o},a=/\.|\[(\d+)\]/,s=((h=n.props)==null?void 0:h.value.trim().split(a).filter(Boolean)).reduce((d,b)=>b in d?typeof d[b]=="function"?d[b]():d[b]:{},r),c=(y=n.props)==null?void 0:y.defaultValue;return e(x,s??c??"")}function X(n,e,o,t){const a=(n.children||[]).reduce((s,c)=>{if(!wn(c))return s[L].push(c),s;const h=xn(c);return s[h]=s[h]||[],c.type==="element"&&s[h].push(...c.children||[]),s},{[L]:[]});return Object.entries(a).reduce((s,[c,h])=>(h.length&&(s[c]=()=>{const y=h.map(d=>mn(d,e,o,t));return Pn(y)}),s),{})}function vn(n,e){const{tag:o="",props:t={}}=n;return Object.keys(t).reduce(function(r,a){if(a==="__ignoreMap")return r;const i=t[a];if(K.test(a)&&!hn.includes(o))return bn(a,i,r,e);if(a==="v-bind")return kn(a,i,r,e);if(q.test(a))return Sn(a,i,r,e);if(W.test(a))return Cn(a,i,r,e);const{attribute:s}=cn(gn,a);return Array.isArray(i)&&i.every(c=>typeof c=="string")?(r[s]=i.join(" "),r):(r[s]=i,r)},{})}function bn(n,e,o,t){const r=d=>+d,a=d=>d.trim(),i=d=>d,s=n.replace(K,"").split(".").filter(d=>d).reduce((d,b)=>(d[b]=!0,d),{}),c="value",h=s.lazy?"change":"input",y=s.number?r:s.trim?a:i;return o[c]=w(e,t),o.on=o.on||{},o.on[h]=d=>t[e]=y(d),o}function kn(n,e,o,t){const r=w(e,t);return o=Object.assign(o,r),o}function Sn(n,e,o,t){return n=n.replace(q,""),o.on=o.on||{},o.on[n]=()=>w(e,t),o}function Cn(n,e,o,t){return n=n.replace(W,""),o[n]=w(e,t),o}const R=n=>{if(!T.includes(n)&&!(n!=null&&n.render)){const e=Q(B(n),!1);if(typeof e=="object")return e}return n};function w(n,e){const o=n.split(".").reduce((t,r)=>typeof t=="object"?t[r]:void 0,e);return typeof o>"u"?en(n):o}function xn(n){let e="";for(const o of Object.keys(n.props||{}))if(!(!o.startsWith("#")&&!o.startsWith("v-slot:"))){e=o.split(/[:#]/,2)[1];break}return e||L}function wn(n){return n.tag==="template"}function Pn(n){const e=[];for(const o of n){const t=e[e.length-1];o.type===x&&(t==null?void 0:t.type)===x?t.children=t.children+o.children:e.push(o)}return e}async function On(n,e){if(!n)return;const o=Array.from(new Set(t(n,e)));await Promise.all(o.map(async r=>{if(r!=null&&r.render||r!=null&&r.ssrRender||r!=null&&r.__ssrInlineRender)return;const a=R(r);a!=null&&a.__asyncLoader&&!a.__asyncResolved&&await a.__asyncLoader()}));function t(r,a){const i=r.tag;if(r.type==="text"||i==="binding")return[];const s=Y(r,a.tags),c=[];r.type!=="root"&&!T.includes(s)&&c.push(s);for(const h of r.children||[])c.push(...t(h,a));return c}}function Y(n,e){var t;const o=n.tag;return!o||typeof((t=n.props)==null?void 0:t.__ignoreMap)<"u"?o:e[o]||e[B(o)]||e[nn(n.tag)]||o}export{Mn as _,gn as a,cn as f,T as h,O as n,Ln as s}; diff --git a/_nuxt/Markdown.9bba4ad0.js b/_nuxt/Markdown.3084d0d2.js similarity index 64% rename from _nuxt/Markdown.9bba4ad0.js rename to _nuxt/Markdown.3084d0d2.js index cbf56154..53e63109 100644 --- a/_nuxt/Markdown.9bba4ad0.js +++ b/_nuxt/Markdown.3084d0d2.js @@ -1 +1 @@ -import s from"./ContentSlot.1f1f3c23.js";import{d as o,b0 as u,E as f,bj as m}from"./entry.8c781d5d.js";import"./node.f7b4ab96.js";const d=o({name:"Markdown",extends:s,setup(t){const{parent:e}=m(),{between:n,default:a}=u(),r=f(()=>typeof t.unwrap=="string"?t.unwrap.split(" "):["*"]);return{fallbackSlot:a,tags:r,between:n,parent:e}}});export{d as default}; +import s from"./ContentSlot.58c58190.js";import{d as o,b0 as u,E as f,bj as m}from"./entry.ae6f67a5.js";import"./node.f7b4ab96.js";const d=o({name:"Markdown",extends:s,setup(t){const{parent:e}=m(),{between:n,default:a}=u(),r=f(()=>typeof t.unwrap=="string"?t.unwrap.split(" "):["*"]);return{fallbackSlot:a,tags:r,between:n,parent:e}}});export{d as default}; diff --git a/_nuxt/ProseA.43fb90fc.js b/_nuxt/ProseA.8a6b2d65.js similarity index 82% rename from _nuxt/ProseA.43fb90fc.js rename to _nuxt/ProseA.8a6b2d65.js index 7fb1723f..1c7275b3 100644 --- a/_nuxt/ProseA.43fb90fc.js +++ b/_nuxt/ProseA.8a6b2d65.js @@ -1 +1 @@ -import{d as r,b as n,a8 as o,w as s,a9 as f,aE as u}from"./entry.8c781d5d.js";const l=r({__name:"ProseA",props:{href:{type:String,default:""},target:{type:String,default:void 0,required:!1}},setup(e){return(t,c)=>{const a=u;return n(),o(a,{href:e.href,target:e.target},{default:s(()=>[f(t.$slots,"default")]),_:3},8,["href","target"])}}});export{l as default}; +import{d as r,b as n,a8 as o,w as s,a9 as f,aE as u}from"./entry.ae6f67a5.js";const l=r({__name:"ProseA",props:{href:{type:String,default:""},target:{type:String,default:void 0,required:!1}},setup(e){return(t,c)=>{const a=u;return n(),o(a,{href:e.href,target:e.target},{default:s(()=>[f(t.$slots,"default")]),_:3},8,["href","target"])}}});export{l as default}; diff --git a/_nuxt/ProseBlockquote.e08dcb78.js b/_nuxt/ProseBlockquote.c7ac24ba.js similarity index 66% rename from _nuxt/ProseBlockquote.e08dcb78.js rename to _nuxt/ProseBlockquote.c7ac24ba.js index b1a7b973..bfd034dc 100644 --- a/_nuxt/ProseBlockquote.e08dcb78.js +++ b/_nuxt/ProseBlockquote.c7ac24ba.js @@ -1 +1 @@ -import{k as o,b as t,c,a9 as r}from"./entry.8c781d5d.js";const s={};function n(e,a){return t(),c("blockquote",null,[r(e.$slots,"default")])}const f=o(s,[["render",n]]);export{f as default}; +import{k as o,b as t,c,a9 as r}from"./entry.ae6f67a5.js";const s={};function n(e,a){return t(),c("blockquote",null,[r(e.$slots,"default")])}const f=o(s,[["render",n]]);export{f as default}; diff --git a/_nuxt/ProseCode.b119e06f.js b/_nuxt/ProseCode.b119e06f.js new file mode 100644 index 00000000..d2fddf23 --- /dev/null +++ b/_nuxt/ProseCode.b119e06f.js @@ -0,0 +1 @@ +import{_ as o}from"./ProseCode.vue.63c11675.js";import"./ProseCodeIcon.vue.d817ff5a.js";import"./entry.ae6f67a5.js";import"./ProseCodeButton.vue.f7f8450a.js";export{o as default}; diff --git a/_nuxt/ProseCode.ca61194c.js b/_nuxt/ProseCode.ca61194c.js deleted file mode 100644 index e2440164..00000000 --- a/_nuxt/ProseCode.ca61194c.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as o}from"./ProseCode.vue.b02f0b0f.js";import"./ProseCodeIcon.vue.ffb3ef12.js";import"./entry.8c781d5d.js";import"./ProseCodeButton.vue.ec8552ad.js";export{o as default}; diff --git a/_nuxt/ProseCode.vue.b02f0b0f.js b/_nuxt/ProseCode.vue.63c11675.js similarity index 83% rename from _nuxt/ProseCode.vue.b02f0b0f.js rename to _nuxt/ProseCode.vue.63c11675.js index f15510cc..8ef8425d 100644 --- a/_nuxt/ProseCode.vue.b02f0b0f.js +++ b/_nuxt/ProseCode.vue.63c11675.js @@ -1 +1 @@ -import{_ as c}from"./ProseCodeIcon.vue.ffb3ef12.js";import{_ as m}from"./ProseCodeButton.vue.ec8552ad.js";import{d as p,ah as f,b as n,c as r,n as o,aC as s,g as t,e as u,t as _,f as g,a9 as b}from"./entry.8c781d5d.js";const B=p({__name:"ProseCode",props:{code:{},icon:{},language:{},hideHeader:{type:Boolean},filename:{},highlights:{},meta:{}},setup(y){const i={wrapper:"[&>pre]:!rounded-t-none [&>pre]:!my-0 my-5",header:"flex items-center gap-1.5 border border-gray-200 dark:border-gray-700 border-b-0 relative rounded-t-md px-4 py-3 not-prose",icon:{base:""},button:{base:"absolute top-2.5 right-2.5"},filename:"text-gray-700 dark:text-gray-200 text-sm/6"},{ui:a}=f("content.prose.code",void 0,i,void 0,!0);return(e,h)=>{const d=c,l=m;return n(),r("div",{class:o(["relative",!!e.filename&&s(a).wrapper])},[e.filename&&!e.hideHeader?(n(),r("div",{key:0,class:o(s(a).header)},[t(d,{icon:e.icon,filename:e.filename,class:o(s(a).icon.base)},null,8,["icon","filename","class"]),u("span",{class:o(s(a).filename)},_(e.filename),3)],2)):g("",!0),t(l,{code:e.code,class:o(s(a).button.base)},null,8,["code","class"]),b(e.$slots,"default")],2)}}});export{B as _}; +import{_ as c}from"./ProseCodeIcon.vue.d817ff5a.js";import{_ as m}from"./ProseCodeButton.vue.f7f8450a.js";import{d as p,ah as f,b as n,c as r,n as o,aC as s,g as t,e as u,t as _,f as g,a9 as b}from"./entry.ae6f67a5.js";const B=p({__name:"ProseCode",props:{code:{},icon:{},language:{},hideHeader:{type:Boolean},filename:{},highlights:{},meta:{}},setup(y){const i={wrapper:"[&>pre]:!rounded-t-none [&>pre]:!my-0 my-5",header:"flex items-center gap-1.5 border border-gray-200 dark:border-gray-700 border-b-0 relative rounded-t-md px-4 py-3 not-prose",icon:{base:""},button:{base:"absolute top-2.5 right-2.5"},filename:"text-gray-700 dark:text-gray-200 text-sm/6"},{ui:a}=f("content.prose.code",void 0,i,void 0,!0);return(e,h)=>{const d=c,l=m;return n(),r("div",{class:o(["relative",!!e.filename&&s(a).wrapper])},[e.filename&&!e.hideHeader?(n(),r("div",{key:0,class:o(s(a).header)},[t(d,{icon:e.icon,filename:e.filename,class:o(s(a).icon.base)},null,8,["icon","filename","class"]),u("span",{class:o(s(a).filename)},_(e.filename),3)],2)):g("",!0),t(l,{code:e.code,class:o(s(a).button.base)},null,8,["code","class"]),b(e.$slots,"default")],2)}}});export{B as _}; diff --git a/_nuxt/ProseCodeButton.f1caafd9.js b/_nuxt/ProseCodeButton.f1caafd9.js deleted file mode 100644 index 146eab61..00000000 --- a/_nuxt/ProseCodeButton.f1caafd9.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as m}from"./ProseCodeButton.vue.ec8552ad.js";import"./entry.8c781d5d.js";export{m as default}; diff --git a/_nuxt/ProseCodeButton.f9e6a65d.js b/_nuxt/ProseCodeButton.f9e6a65d.js new file mode 100644 index 00000000..386926b0 --- /dev/null +++ b/_nuxt/ProseCodeButton.f9e6a65d.js @@ -0,0 +1 @@ +import{_ as m}from"./ProseCodeButton.vue.f7f8450a.js";import"./entry.ae6f67a5.js";export{m as default}; diff --git a/_nuxt/ProseCodeButton.vue.ec8552ad.js b/_nuxt/ProseCodeButton.vue.f7f8450a.js similarity index 93% rename from _nuxt/ProseCodeButton.vue.ec8552ad.js rename to _nuxt/ProseCodeButton.vue.f7f8450a.js index 933b5778..159a6678 100644 --- a/_nuxt/ProseCodeButton.vue.ec8552ad.js +++ b/_nuxt/ProseCodeButton.vue.f7f8450a.js @@ -1 +1 @@ -import{bh as d,bi as u,d as l,ah as b,r as _,b as m,a8 as f,aC as y,ag as C}from"./entry.8c781d5d.js";function v(c={}){const{copy:t,isSupported:i}=d(),o=u();function a(e,n={},r={}){i&&t(e).then(()=>{!n.title&&!n.description||o.add({...n,...c})},function(p){o.add({...r,description:r.description||p.message,...c})})}return{copy:a}}const k=l({__name:"ProseCodeButton",props:{code:{}},setup(c){const t=c,i={icon:{copy:"i-heroicons-clipboard-document",copied:"i-heroicons-clipboard-document-check"}},{ui:o}=b("content.prose.code.button",void 0,i,void 0,!0),a=v({timeout:2e3}),e=_(o.value.icon.copy);function n(){a.copy(t.code,{title:"Copied to clipboard!"}),e.value=o.value.icon.copied,setTimeout(()=>{e.value=o.value.icon.copy},2e3)}return(r,p)=>{const s=C;return m(),f(s,{icon:y(e),color:"gray",variant:"link",size:"xs","aria-label":"Copy code to clipboard",tabindex:"-1",onClick:n},null,8,["icon"])}}});export{k as _}; +import{bh as d,bi as u,d as l,ah as b,r as _,b as m,a8 as f,aC as y,ag as C}from"./entry.ae6f67a5.js";function v(c={}){const{copy:t,isSupported:i}=d(),o=u();function a(e,n={},r={}){i&&t(e).then(()=>{!n.title&&!n.description||o.add({...n,...c})},function(p){o.add({...r,description:r.description||p.message,...c})})}return{copy:a}}const k=l({__name:"ProseCodeButton",props:{code:{}},setup(c){const t=c,i={icon:{copy:"i-heroicons-clipboard-document",copied:"i-heroicons-clipboard-document-check"}},{ui:o}=b("content.prose.code.button",void 0,i,void 0,!0),a=v({timeout:2e3}),e=_(o.value.icon.copy);function n(){a.copy(t.code,{title:"Copied to clipboard!"}),e.value=o.value.icon.copied,setTimeout(()=>{e.value=o.value.icon.copy},2e3)}return(r,p)=>{const s=C;return m(),f(s,{icon:y(e),color:"gray",variant:"link",size:"xs","aria-label":"Copy code to clipboard",tabindex:"-1",onClick:n},null,8,["icon"])}}});export{k as _}; diff --git a/_nuxt/ProseCodeIcon.40cbc64e.js b/_nuxt/ProseCodeIcon.40cbc64e.js deleted file mode 100644 index fe8a13be..00000000 --- a/_nuxt/ProseCodeIcon.40cbc64e.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as m}from"./ProseCodeIcon.vue.ffb3ef12.js";import"./entry.8c781d5d.js";export{m as default}; diff --git a/_nuxt/ProseCodeIcon.be1fc9f4.js b/_nuxt/ProseCodeIcon.be1fc9f4.js new file mode 100644 index 00000000..bdde1aae --- /dev/null +++ b/_nuxt/ProseCodeIcon.be1fc9f4.js @@ -0,0 +1 @@ +import{_ as m}from"./ProseCodeIcon.vue.d817ff5a.js";import"./entry.ae6f67a5.js";export{m as default}; diff --git a/_nuxt/ProseCodeIcon.vue.ffb3ef12.js b/_nuxt/ProseCodeIcon.vue.d817ff5a.js similarity index 96% rename from _nuxt/ProseCodeIcon.vue.ffb3ef12.js rename to _nuxt/ProseCodeIcon.vue.d817ff5a.js index f6d3a6bd..2e537ce2 100644 --- a/_nuxt/ProseCodeIcon.vue.ffb3ef12.js +++ b/_nuxt/ProseCodeIcon.vue.d817ff5a.js @@ -1 +1 @@ -import{d as a,ah as v,E as i,aC as c,b as y,a8 as r,f as m,a3 as u}from"./entry.8c781d5d.js";const _=a({__name:"ProseCodeIcon",props:{icon:{},filename:{}},setup(t){const e=t,p={"package.json":"vscode-icons:file-type-node","tsconfig.json":"vscode-icons:file-type-tsconfig",".npmrc":"vscode-icons:file-type-npm",".editorconfig":"vscode-icons:file-type-editorconfig",".eslintrc":"vscode-icons:file-type-eslint",".eslintrc.cjs":"vscode-icons:file-type-eslint",".eslintignore":"vscode-icons:file-type-eslint",".gitignore":"vscode-icons:file-type-git","yarn.lock":"vscode-icons:file-type-yarn",".env":"vscode-icons:file-type-dotenv",".env.example":"vscode-icons:file-type-dotenv",".vscode/settings.json":"vscode-icons:file-type-vscode",".nuxtrc":"vscode-icons:file-type-nuxt",".nuxtignore":"vscode-icons:file-type-nuxt","nuxt.config.ts":"vscode-icons:file-type-nuxt","tailwind.config.ts":"vscode-icons:file-type-tailwind",ts:"vscode-icons:file-type-typescript",tsx:"vscode-icons:file-type-typescript",mjs:"vscode-icons:file-type-js",cjs:"vscode-icons:file-type-js",js:"vscode-icons:file-type-js",jsx:"vscode-icons:file-type-js",md:"vscode-icons:file-type-markdown",py:"vscode-icons:file-type-python",ico:"vscode-icons:file-type-favicon",npm:"vscode-icons:file-type-npm",pnpm:"vscode-icons:file-type-pnpm",npx:"vscode-icons:file-type-npm",yarn:"vscode-icons:file-type-yarn",bun:"vscode-icons:file-type-bun",yml:"vscode-icons:file-type-yaml",terminal:"i-heroicons-command-line"},{ui:o}=v("content.prose.code.icon",void 0,p,void 0,!0),n=i(()=>{var s;return(((s=e.filename)==null?void 0:s.split(".").pop())||"").toLowerCase()}),l=i(()=>e.icon||o.value[n.value]||e.filename.includes(".")),d=i(()=>e.icon??(e.filename&&(o.value[e.filename.split("/").pop()]??o.value[n.value]??`vscode-icons:file-type-${n.value}`)));return(s,g)=>{const f=u;return c(l)?(y(),r(f,{key:0,name:c(d).split(" ").pop(),dynamic:""},null,8,["name"])):m("",!0)}}});export{_}; +import{d as a,ah as v,E as i,aC as c,b as y,a8 as r,f as m,a3 as u}from"./entry.ae6f67a5.js";const _=a({__name:"ProseCodeIcon",props:{icon:{},filename:{}},setup(t){const e=t,p={"package.json":"vscode-icons:file-type-node","tsconfig.json":"vscode-icons:file-type-tsconfig",".npmrc":"vscode-icons:file-type-npm",".editorconfig":"vscode-icons:file-type-editorconfig",".eslintrc":"vscode-icons:file-type-eslint",".eslintrc.cjs":"vscode-icons:file-type-eslint",".eslintignore":"vscode-icons:file-type-eslint",".gitignore":"vscode-icons:file-type-git","yarn.lock":"vscode-icons:file-type-yarn",".env":"vscode-icons:file-type-dotenv",".env.example":"vscode-icons:file-type-dotenv",".vscode/settings.json":"vscode-icons:file-type-vscode",".nuxtrc":"vscode-icons:file-type-nuxt",".nuxtignore":"vscode-icons:file-type-nuxt","nuxt.config.ts":"vscode-icons:file-type-nuxt","tailwind.config.ts":"vscode-icons:file-type-tailwind",ts:"vscode-icons:file-type-typescript",tsx:"vscode-icons:file-type-typescript",mjs:"vscode-icons:file-type-js",cjs:"vscode-icons:file-type-js",js:"vscode-icons:file-type-js",jsx:"vscode-icons:file-type-js",md:"vscode-icons:file-type-markdown",py:"vscode-icons:file-type-python",ico:"vscode-icons:file-type-favicon",npm:"vscode-icons:file-type-npm",pnpm:"vscode-icons:file-type-pnpm",npx:"vscode-icons:file-type-npm",yarn:"vscode-icons:file-type-yarn",bun:"vscode-icons:file-type-bun",yml:"vscode-icons:file-type-yaml",terminal:"i-heroicons-command-line"},{ui:o}=v("content.prose.code.icon",void 0,p,void 0,!0),n=i(()=>{var s;return(((s=e.filename)==null?void 0:s.split(".").pop())||"").toLowerCase()}),l=i(()=>e.icon||o.value[n.value]||e.filename.includes(".")),d=i(()=>e.icon??(e.filename&&(o.value[e.filename.split("/").pop()]??o.value[n.value]??`vscode-icons:file-type-${n.value}`)));return(s,g)=>{const f=u;return c(l)?(y(),r(f,{key:0,name:c(d).split(" ").pop(),dynamic:""},null,8,["name"])):m("",!0)}}});export{_}; diff --git a/_nuxt/ProseCodeInline.49f201ec.js b/_nuxt/ProseCodeInline.1bf00f76.js similarity index 66% rename from _nuxt/ProseCodeInline.49f201ec.js rename to _nuxt/ProseCodeInline.1bf00f76.js index 7f0af18d..4ec478f2 100644 --- a/_nuxt/ProseCodeInline.49f201ec.js +++ b/_nuxt/ProseCodeInline.1bf00f76.js @@ -1 +1 @@ -import{k as o,b as n,c as r,a9 as c}from"./entry.8c781d5d.js";const s={};function t(e,a){return n(),r("code",null,[c(e.$slots,"default")])}const d=o(s,[["render",t]]);export{d as default}; +import{k as o,b as n,c as r,a9 as c}from"./entry.ae6f67a5.js";const s={};function t(e,a){return n(),r("code",null,[c(e.$slots,"default")])}const d=o(s,[["render",t]]);export{d as default}; diff --git a/_nuxt/ProseEm.c5098f33.js b/_nuxt/ProseEm.99bf76f9.js similarity index 65% rename from _nuxt/ProseEm.c5098f33.js rename to _nuxt/ProseEm.99bf76f9.js index b4ca32b0..b411e8fa 100644 --- a/_nuxt/ProseEm.c5098f33.js +++ b/_nuxt/ProseEm.99bf76f9.js @@ -1 +1 @@ -import{k as r,b as o,c as s,a9 as t}from"./entry.8c781d5d.js";const c={};function n(e,a){return o(),s("em",null,[t(e.$slots,"default")])}const f=r(c,[["render",n]]);export{f as default}; +import{k as r,b as o,c as s,a9 as t}from"./entry.ae6f67a5.js";const c={};function n(e,a){return o(),s("em",null,[t(e.$slots,"default")])}const f=r(c,[["render",n]]);export{f as default}; diff --git a/_nuxt/ProseH1.1c331cdb.js b/_nuxt/ProseH1.4e623985.js similarity index 92% rename from _nuxt/ProseH1.1c331cdb.js rename to _nuxt/ProseH1.4e623985.js index 0426ea22..abd6f0db 100644 --- a/_nuxt/ProseH1.1c331cdb.js +++ b/_nuxt/ProseH1.4e623985.js @@ -1 +1 @@ -import{d as p,x as i,ah as l,b as _,c as d,g as n,w as m,e as u,n as s,aC as a,a9 as h,a3 as f,aE as g}from"./entry.8c781d5d.js";const x=["id"],b=p({__name:"ProseH1",props:{id:{}},setup(w){const t={wrapper:"scroll-mt-[calc(48px+48px+var(--header-height))] lg:scroll-mt-[calc(48px+var(--header-height))]",icon:{wrapper:"-ml-6 pr-2 py-2 inline-flex opacity-0 group-hover:lg:opacity-100 transition-opacity absolute",base:"w-4 h-4 text-primary",name:i().ui.icons.hash}},{ui:e}=l("content.prose.h1",void 0,t,void 0,!0);return(o,v)=>{const r=f,c=g;return _(),d("h1",{id:o.id,class:s(a(e).wrapper)},[n(c,{href:`#${o.id}`,class:"group"},{default:m(()=>[u("div",{class:s(a(e).icon.wrapper)},[n(r,{name:a(e).icon.name,class:s(a(e).icon.base)},null,8,["name","class"])],2),h(o.$slots,"default")]),_:3},8,["href"])],10,x)}}});export{b as default}; +import{d as p,x as i,ah as l,b as _,c as d,g as n,w as m,e as u,n as s,aC as a,a9 as h,a3 as f,aE as g}from"./entry.ae6f67a5.js";const x=["id"],b=p({__name:"ProseH1",props:{id:{}},setup(w){const t={wrapper:"scroll-mt-[calc(48px+48px+var(--header-height))] lg:scroll-mt-[calc(48px+var(--header-height))]",icon:{wrapper:"-ml-6 pr-2 py-2 inline-flex opacity-0 group-hover:lg:opacity-100 transition-opacity absolute",base:"w-4 h-4 text-primary",name:i().ui.icons.hash}},{ui:e}=l("content.prose.h1",void 0,t,void 0,!0);return(o,v)=>{const r=f,c=g;return _(),d("h1",{id:o.id,class:s(a(e).wrapper)},[n(c,{href:`#${o.id}`,class:"group"},{default:m(()=>[u("div",{class:s(a(e).icon.wrapper)},[n(r,{name:a(e).icon.name,class:s(a(e).icon.base)},null,8,["name","class"])],2),h(o.$slots,"default")]),_:3},8,["href"])],10,x)}}});export{b as default}; diff --git a/_nuxt/ProseH2.d9eb3590.js b/_nuxt/ProseH2.d9eb3590.js new file mode 100644 index 00000000..870c9117 --- /dev/null +++ b/_nuxt/ProseH2.d9eb3590.js @@ -0,0 +1 @@ +import{_ as m}from"./ProseH2.vue.f4d56c2c.js";import"./entry.ae6f67a5.js";export{m as default}; diff --git a/_nuxt/ProseH2.e82063a5.js b/_nuxt/ProseH2.e82063a5.js deleted file mode 100644 index 14e9ad18..00000000 --- a/_nuxt/ProseH2.e82063a5.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as m}from"./ProseH2.vue.0efd9217.js";import"./entry.8c781d5d.js";export{m as default}; diff --git a/_nuxt/ProseH2.vue.0efd9217.js b/_nuxt/ProseH2.vue.f4d56c2c.js similarity index 92% rename from _nuxt/ProseH2.vue.0efd9217.js rename to _nuxt/ProseH2.vue.f4d56c2c.js index 50242515..f1944494 100644 --- a/_nuxt/ProseH2.vue.0efd9217.js +++ b/_nuxt/ProseH2.vue.f4d56c2c.js @@ -1 +1 @@ -import{d as p,x as i,ah as l,b as _,c as m,g as n,w as d,e as h,n as s,aC as a,a9 as u,a3 as f,aE as g}from"./entry.8c781d5d.js";const x=["id"],b=p({__name:"ProseH2",props:{id:{}},setup(w){const t={wrapper:"scroll-mt-[calc(48px+48px+var(--header-height))] lg:scroll-mt-[calc(48px+var(--header-height))]",icon:{wrapper:"-ml-6 pr-2 py-2 inline-flex opacity-0 group-hover:lg:opacity-100 transition-opacity absolute",base:"w-4 h-4 text-primary",name:i().ui.icons.hash}},{ui:e}=l("content.prose.h2",void 0,t,void 0,!0);return(o,v)=>{const r=f,c=g;return _(),m("h2",{id:o.id,class:s(a(e).wrapper)},[n(c,{href:`#${o.id}`,class:"group"},{default:d(()=>[h("div",{class:s(a(e).icon.wrapper)},[n(r,{name:a(e).icon.name,class:s(a(e).icon.base)},null,8,["name","class"])],2),u(o.$slots,"default")]),_:3},8,["href"])],10,x)}}});export{b as _}; +import{d as p,x as i,ah as l,b as _,c as m,g as n,w as d,e as h,n as s,aC as a,a9 as u,a3 as f,aE as g}from"./entry.ae6f67a5.js";const x=["id"],b=p({__name:"ProseH2",props:{id:{}},setup(w){const t={wrapper:"scroll-mt-[calc(48px+48px+var(--header-height))] lg:scroll-mt-[calc(48px+var(--header-height))]",icon:{wrapper:"-ml-6 pr-2 py-2 inline-flex opacity-0 group-hover:lg:opacity-100 transition-opacity absolute",base:"w-4 h-4 text-primary",name:i().ui.icons.hash}},{ui:e}=l("content.prose.h2",void 0,t,void 0,!0);return(o,v)=>{const r=f,c=g;return _(),m("h2",{id:o.id,class:s(a(e).wrapper)},[n(c,{href:`#${o.id}`,class:"group"},{default:d(()=>[h("div",{class:s(a(e).icon.wrapper)},[n(r,{name:a(e).icon.name,class:s(a(e).icon.base)},null,8,["name","class"])],2),u(o.$slots,"default")]),_:3},8,["href"])],10,x)}}});export{b as _}; diff --git a/_nuxt/ProseH3.edf516ad.js b/_nuxt/ProseH3.48b35a00.js similarity index 92% rename from _nuxt/ProseH3.edf516ad.js rename to _nuxt/ProseH3.48b35a00.js index d7aeb915..266bf189 100644 --- a/_nuxt/ProseH3.edf516ad.js +++ b/_nuxt/ProseH3.48b35a00.js @@ -1 +1 @@ -import{d as p,x as i,ah as l,b as _,c as d,g as n,w as m,e as u,n as s,aC as a,a9 as h,a3 as f,aE as g}from"./entry.8c781d5d.js";const x=["id"],b=p({__name:"ProseH3",props:{id:{}},setup(w){const t={wrapper:"scroll-mt-[calc(48px+32px+var(--header-height))] lg:scroll-mt-[calc(32px+var(--header-height))]",icon:{wrapper:"-ml-6 pr-2 py-2 inline-flex opacity-0 group-hover:lg:opacity-100 transition-opacity absolute",base:"w-4 h-4 text-primary",name:i().ui.icons.hash}},{ui:e}=l("content.prose.h3",void 0,t,void 0,!0);return(o,v)=>{const r=f,c=g;return _(),d("h3",{id:o.id,class:s(a(e).wrapper)},[n(c,{href:`#${o.id}`,class:"group"},{default:m(()=>[u("div",{class:s(a(e).icon.wrapper)},[n(r,{name:a(e).icon.name,class:s(a(e).icon.base)},null,8,["name","class"])],2),h(o.$slots,"default")]),_:3},8,["href"])],10,x)}}});export{b as default}; +import{d as p,x as i,ah as l,b as _,c as d,g as n,w as m,e as u,n as s,aC as a,a9 as h,a3 as f,aE as g}from"./entry.ae6f67a5.js";const x=["id"],b=p({__name:"ProseH3",props:{id:{}},setup(w){const t={wrapper:"scroll-mt-[calc(48px+32px+var(--header-height))] lg:scroll-mt-[calc(32px+var(--header-height))]",icon:{wrapper:"-ml-6 pr-2 py-2 inline-flex opacity-0 group-hover:lg:opacity-100 transition-opacity absolute",base:"w-4 h-4 text-primary",name:i().ui.icons.hash}},{ui:e}=l("content.prose.h3",void 0,t,void 0,!0);return(o,v)=>{const r=f,c=g;return _(),d("h3",{id:o.id,class:s(a(e).wrapper)},[n(c,{href:`#${o.id}`,class:"group"},{default:m(()=>[u("div",{class:s(a(e).icon.wrapper)},[n(r,{name:a(e).icon.name,class:s(a(e).icon.base)},null,8,["name","class"])],2),h(o.$slots,"default")]),_:3},8,["href"])],10,x)}}});export{b as default}; diff --git a/_nuxt/ProseH4.fcc970d3.js b/_nuxt/ProseH4.8e15d4c4.js similarity index 92% rename from _nuxt/ProseH4.fcc970d3.js rename to _nuxt/ProseH4.8e15d4c4.js index f1c3bb11..557cca00 100644 --- a/_nuxt/ProseH4.fcc970d3.js +++ b/_nuxt/ProseH4.8e15d4c4.js @@ -1 +1 @@ -import{d as p,x as i,ah as l,b as _,c as d,g as n,w as m,e as u,n as s,aC as a,a9 as h,a3 as f,aE as g}from"./entry.8c781d5d.js";const x=["id"],b=p({__name:"ProseH4",props:{id:{}},setup(w){const t={wrapper:"scroll-mt-[calc(48px+32px+var(--header-height))] lg:scroll-mt-[calc(32px+var(--header-height))]",icon:{wrapper:"-ml-6 pr-2 py-2 inline-flex opacity-0 group-hover:lg:opacity-100 transition-opacity absolute",base:"w-4 h-4 text-primary",name:i().ui.icons.hash}},{ui:e}=l("content.prose.h4",void 0,t,void 0,!0);return(o,v)=>{const r=f,c=g;return _(),d("h4",{id:o.id,class:s(a(e).wrapper)},[n(c,{href:`#${o.id}`,class:"group"},{default:m(()=>[u("div",{class:s(a(e).icon.wrapper)},[n(r,{name:a(e).icon.name,class:s(a(e).icon.base)},null,8,["name","class"])],2),h(o.$slots,"default")]),_:3},8,["href"])],10,x)}}});export{b as default}; +import{d as p,x as i,ah as l,b as _,c as d,g as n,w as m,e as u,n as s,aC as a,a9 as h,a3 as f,aE as g}from"./entry.ae6f67a5.js";const x=["id"],b=p({__name:"ProseH4",props:{id:{}},setup(w){const t={wrapper:"scroll-mt-[calc(48px+32px+var(--header-height))] lg:scroll-mt-[calc(32px+var(--header-height))]",icon:{wrapper:"-ml-6 pr-2 py-2 inline-flex opacity-0 group-hover:lg:opacity-100 transition-opacity absolute",base:"w-4 h-4 text-primary",name:i().ui.icons.hash}},{ui:e}=l("content.prose.h4",void 0,t,void 0,!0);return(o,v)=>{const r=f,c=g;return _(),d("h4",{id:o.id,class:s(a(e).wrapper)},[n(c,{href:`#${o.id}`,class:"group"},{default:m(()=>[u("div",{class:s(a(e).icon.wrapper)},[n(r,{name:a(e).icon.name,class:s(a(e).icon.base)},null,8,["name","class"])],2),h(o.$slots,"default")]),_:3},8,["href"])],10,x)}}});export{b as default}; diff --git a/_nuxt/ProseH5.281ef778.js b/_nuxt/ProseH5.9a39ed8c.js similarity index 85% rename from _nuxt/ProseH5.281ef778.js rename to _nuxt/ProseH5.9a39ed8c.js index 940038a6..77d3cb89 100644 --- a/_nuxt/ProseH5.281ef778.js +++ b/_nuxt/ProseH5.9a39ed8c.js @@ -1 +1 @@ -import{d as i,l as c,E as l,b as o,c as n,aC as p,a9 as t}from"./entry.8c781d5d.js";const u=["id"],f=["href"],k=i({__name:"ProseH5",props:{id:{}},setup(a){const r=a,{headings:s}=c().public.mdc,d=l(()=>{var e;return r.id&&((e=s==null?void 0:s.anchorLinks)==null?void 0:e.h5)});return(e,m)=>(o(),n("h5",{id:e.id},[e.id&&p(d)?(o(),n("a",{key:0,href:`#${e.id}`},[t(e.$slots,"default")],8,f)):t(e.$slots,"default",{key:1})],8,u))}});export{k as default}; +import{d as i,l as c,E as l,b as o,c as n,aC as p,a9 as t}from"./entry.ae6f67a5.js";const u=["id"],f=["href"],k=i({__name:"ProseH5",props:{id:{}},setup(a){const r=a,{headings:s}=c().public.mdc,d=l(()=>{var e;return r.id&&((e=s==null?void 0:s.anchorLinks)==null?void 0:e.h5)});return(e,m)=>(o(),n("h5",{id:e.id},[e.id&&p(d)?(o(),n("a",{key:0,href:`#${e.id}`},[t(e.$slots,"default")],8,f)):t(e.$slots,"default",{key:1})],8,u))}});export{k as default}; diff --git a/_nuxt/ProseH6.7167fed8.js b/_nuxt/ProseH6.8d289c55.js similarity index 85% rename from _nuxt/ProseH6.7167fed8.js rename to _nuxt/ProseH6.8d289c55.js index 5ef26aab..d7c0128b 100644 --- a/_nuxt/ProseH6.7167fed8.js +++ b/_nuxt/ProseH6.8d289c55.js @@ -1 +1 @@ -import{d as i,l as c,E as l,b as o,c as n,aC as p,a9 as t}from"./entry.8c781d5d.js";const u=["id"],f=["href"],k=i({__name:"ProseH6",props:{id:{}},setup(a){const r=a,{headings:s}=c().public.mdc,d=l(()=>{var e;return r.id&&((e=s==null?void 0:s.anchorLinks)==null?void 0:e.h6)});return(e,m)=>(o(),n("h6",{id:e.id},[e.id&&p(d)?(o(),n("a",{key:0,href:`#${e.id}`},[t(e.$slots,"default")],8,f)):t(e.$slots,"default",{key:1})],8,u))}});export{k as default}; +import{d as i,l as c,E as l,b as o,c as n,aC as p,a9 as t}from"./entry.ae6f67a5.js";const u=["id"],f=["href"],k=i({__name:"ProseH6",props:{id:{}},setup(a){const r=a,{headings:s}=c().public.mdc,d=l(()=>{var e;return r.id&&((e=s==null?void 0:s.anchorLinks)==null?void 0:e.h6)});return(e,m)=>(o(),n("h6",{id:e.id},[e.id&&p(d)?(o(),n("a",{key:0,href:`#${e.id}`},[t(e.$slots,"default")],8,f)):t(e.$slots,"default",{key:1})],8,u))}});export{k as default}; diff --git a/_nuxt/ProseHr.ea054e84.js b/_nuxt/ProseHr.fa27e9ff.js similarity index 55% rename from _nuxt/ProseHr.ea054e84.js rename to _nuxt/ProseHr.fa27e9ff.js index 58e037f6..2540bf9d 100644 --- a/_nuxt/ProseHr.ea054e84.js +++ b/_nuxt/ProseHr.fa27e9ff.js @@ -1 +1 @@ -import{k as e,b as r,c}from"./entry.8c781d5d.js";const o={};function t(n,s){return r(),c("hr")}const _=e(o,[["render",t]]);export{_ as default}; +import{k as e,b as r,c}from"./entry.ae6f67a5.js";const o={};function t(n,s){return r(),c("hr")}const _=e(o,[["render",t]]);export{_ as default}; diff --git a/_nuxt/ProseImg.a7db9461.js b/_nuxt/ProseImg.0e30254c.js similarity index 89% rename from _nuxt/ProseImg.a7db9461.js rename to _nuxt/ProseImg.0e30254c.js index 78ac9427..b1e9d347 100644 --- a/_nuxt/ProseImg.a7db9461.js +++ b/_nuxt/ProseImg.0e30254c.js @@ -1 +1 @@ -import{d as r,E as n,bk as c,b9 as h,l as o,bg as l,b as d,c as u,aC as g}from"./entry.8c781d5d.js";const f=["src","alt","width","height"],p=r({__name:"ProseImg",props:{src:{type:String,default:""},alt:{type:String,default:""},width:{type:[String,Number],default:void 0},height:{type:[String,Number],default:void 0}},setup(e){const t=e,i=n(()=>{var a;if((a=t.src)!=null&&a.startsWith("/")&&!t.src.startsWith("//")){const s=c(h(o().app.baseURL));if(s!=="/"&&!t.src.startsWith(s))return l(s,t.src)}return t.src});return(a,s)=>(d(),u("img",{src:g(i),alt:e.alt,width:e.width,height:e.height},null,8,f))}});export{p as default}; +import{d as r,E as n,bk as c,b9 as h,l as o,bg as l,b as d,c as u,aC as g}from"./entry.ae6f67a5.js";const f=["src","alt","width","height"],p=r({__name:"ProseImg",props:{src:{type:String,default:""},alt:{type:String,default:""},width:{type:[String,Number],default:void 0},height:{type:[String,Number],default:void 0}},setup(e){const t=e,i=n(()=>{var a;if((a=t.src)!=null&&a.startsWith("/")&&!t.src.startsWith("//")){const s=c(h(o().app.baseURL));if(s!=="/"&&!t.src.startsWith(s))return l(s,t.src)}return t.src});return(a,s)=>(d(),u("img",{src:g(i),alt:e.alt,width:e.width,height:e.height},null,8,f))}});export{p as default}; diff --git a/_nuxt/ProseLi.c33ec5bc.js b/_nuxt/ProseLi.beba3964.js similarity index 65% rename from _nuxt/ProseLi.c33ec5bc.js rename to _nuxt/ProseLi.beba3964.js index 572c985d..493d4985 100644 --- a/_nuxt/ProseLi.c33ec5bc.js +++ b/_nuxt/ProseLi.beba3964.js @@ -1 +1 @@ -import{k as r,b as o,c as s,a9 as t}from"./entry.8c781d5d.js";const c={};function n(e,a){return o(),s("li",null,[t(e.$slots,"default")])}const f=r(c,[["render",n]]);export{f as default}; +import{k as r,b as o,c as s,a9 as t}from"./entry.ae6f67a5.js";const c={};function n(e,a){return o(),s("li",null,[t(e.$slots,"default")])}const f=r(c,[["render",n]]);export{f as default}; diff --git a/_nuxt/ProseOl.94f0a7ea.js b/_nuxt/ProseOl.0b9d32e8.js similarity index 65% rename from _nuxt/ProseOl.94f0a7ea.js rename to _nuxt/ProseOl.0b9d32e8.js index da8ce291..48391f0e 100644 --- a/_nuxt/ProseOl.94f0a7ea.js +++ b/_nuxt/ProseOl.0b9d32e8.js @@ -1 +1 @@ -import{k as o,b as r,c as s,a9 as t}from"./entry.8c781d5d.js";const c={};function n(e,a){return r(),s("ol",null,[t(e.$slots,"default")])}const f=o(c,[["render",n]]);export{f as default}; +import{k as o,b as r,c as s,a9 as t}from"./entry.ae6f67a5.js";const c={};function n(e,a){return r(),s("ol",null,[t(e.$slots,"default")])}const f=o(c,[["render",n]]);export{f as default}; diff --git a/_nuxt/ProseP.b1e35a2e.js b/_nuxt/ProseP.4e2998a9.js similarity index 65% rename from _nuxt/ProseP.b1e35a2e.js rename to _nuxt/ProseP.4e2998a9.js index e487a89a..fa7f957d 100644 --- a/_nuxt/ProseP.b1e35a2e.js +++ b/_nuxt/ProseP.4e2998a9.js @@ -1 +1 @@ -import{k as r,b as o,c as s,a9 as t}from"./entry.8c781d5d.js";const c={};function n(e,a){return o(),s("p",null,[t(e.$slots,"default")])}const f=r(c,[["render",n]]);export{f as default}; +import{k as r,b as o,c as s,a9 as t}from"./entry.ae6f67a5.js";const c={};function n(e,a){return o(),s("p",null,[t(e.$slots,"default")])}const f=r(c,[["render",n]]);export{f as default}; diff --git a/_nuxt/ProsePre.cdf20fd4.js b/_nuxt/ProsePre.216d0682.js similarity index 69% rename from _nuxt/ProsePre.cdf20fd4.js rename to _nuxt/ProsePre.216d0682.js index 1968f9a2..7ba80520 100644 --- a/_nuxt/ProsePre.cdf20fd4.js +++ b/_nuxt/ProsePre.216d0682.js @@ -1 +1 @@ -import{_ as l}from"./ProseCode.vue.b02f0b0f.js";import{d as n,b as s,a8 as i,w as r,e as o,n as u,ab as g,a9 as m}from"./entry.8c781d5d.js";import"./ProseCodeIcon.vue.ffb3ef12.js";import"./ProseCodeButton.vue.ec8552ad.js";const p=n({__name:"ProsePre",props:{code:{type:String,default:""},language:{type:String,default:null},filename:{type:String,default:null},highlights:{type:Array,default:()=>[]},meta:{type:String,default:null},class:{type:String,default:null},style:{type:[String,Object],default:null}},setup(e){return(t,d)=>{const a=l;return s(),i(a,{code:e.code,language:e.language,filename:e.filename,highlights:e.highlights,meta:e.meta},{default:r(()=>[o("pre",{class:u(t.$props.class),style:g(e.style)},[m(t.$slots,"default")],6)]),_:3},8,["code","language","filename","highlights","meta"])}}});export{p as default}; +import{_ as l}from"./ProseCode.vue.63c11675.js";import{d as n,b as s,a8 as i,w as r,e as o,n as u,ab as g,a9 as m}from"./entry.ae6f67a5.js";import"./ProseCodeIcon.vue.d817ff5a.js";import"./ProseCodeButton.vue.f7f8450a.js";const p=n({__name:"ProsePre",props:{code:{type:String,default:""},language:{type:String,default:null},filename:{type:String,default:null},highlights:{type:Array,default:()=>[]},meta:{type:String,default:null},class:{type:String,default:null},style:{type:[String,Object],default:null}},setup(e){return(t,d)=>{const a=l;return s(),i(a,{code:e.code,language:e.language,filename:e.filename,highlights:e.highlights,meta:e.meta},{default:r(()=>[o("pre",{class:u(t.$props.class),style:g(e.style)},[m(t.$slots,"default")],6)]),_:3},8,["code","language","filename","highlights","meta"])}}});export{p as default}; diff --git a/_nuxt/ProseScript.6f2ab91b.js b/_nuxt/ProseScript.70514ad4.js similarity index 86% rename from _nuxt/ProseScript.6f2ab91b.js rename to _nuxt/ProseScript.70514ad4.js index f173edcd..df4640d1 100644 --- a/_nuxt/ProseScript.6f2ab91b.js +++ b/_nuxt/ProseScript.70514ad4.js @@ -1 +1 @@ -import{d as s,E as n,b as r,c as a,ac as e,f as c,e as t}from"./entry.8c781d5d.js";const d={key:0},i=t("code",null,"script",-1),l=t("code",null,"ProseScript",-1),f=s({__name:"ProseScript",props:{src:{type:String,default:""}},setup(p){const o=n(()=>!1);return(_,m)=>o.value?(r(),a("div",d,[e(" Rendering the "),i,e(" element is dangerous and is disabled by default. Consider implementing your own "),l,e(" element to have control over script rendering. ")])):c("",!0)}});export{f as default}; +import{d as s,E as n,b as r,c as a,ac as e,f as c,e as t}from"./entry.ae6f67a5.js";const d={key:0},i=t("code",null,"script",-1),l=t("code",null,"ProseScript",-1),f=s({__name:"ProseScript",props:{src:{type:String,default:""}},setup(p){const o=n(()=>!1);return(_,m)=>o.value?(r(),a("div",d,[e(" Rendering the "),i,e(" element is dangerous and is disabled by default. Consider implementing your own "),l,e(" element to have control over script rendering. ")])):c("",!0)}});export{f as default}; diff --git a/_nuxt/ProseStrong.3a32b838.js b/_nuxt/ProseStrong.4f2d04f6.js similarity index 66% rename from _nuxt/ProseStrong.3a32b838.js rename to _nuxt/ProseStrong.4f2d04f6.js index 02d767b9..aa7284cf 100644 --- a/_nuxt/ProseStrong.3a32b838.js +++ b/_nuxt/ProseStrong.4f2d04f6.js @@ -1 +1 @@ -import{k as r,b as o,c as t,a9 as n}from"./entry.8c781d5d.js";const s={};function c(e,a){return o(),t("strong",null,[n(e.$slots,"default")])}const f=r(s,[["render",c]]);export{f as default}; +import{k as r,b as o,c as t,a9 as n}from"./entry.ae6f67a5.js";const s={};function c(e,a){return o(),t("strong",null,[n(e.$slots,"default")])}const f=r(s,[["render",c]]);export{f as default}; diff --git a/_nuxt/ProseTable.84b7eb95.js b/_nuxt/ProseTable.fdd156d0.js similarity index 66% rename from _nuxt/ProseTable.84b7eb95.js rename to _nuxt/ProseTable.fdd156d0.js index 656f49fa..0a1beecb 100644 --- a/_nuxt/ProseTable.84b7eb95.js +++ b/_nuxt/ProseTable.fdd156d0.js @@ -1 +1 @@ -import{k as r,b as t,c as a,a9 as o}from"./entry.8c781d5d.js";const s={};function c(e,n){return t(),a("table",null,[o(e.$slots,"default")])}const f=r(s,[["render",c]]);export{f as default}; +import{k as r,b as t,c as a,a9 as o}from"./entry.ae6f67a5.js";const s={};function c(e,n){return t(),a("table",null,[o(e.$slots,"default")])}const f=r(s,[["render",c]]);export{f as default}; diff --git a/_nuxt/ProseTbody.d1ef0eb7.js b/_nuxt/ProseTbody.19438e1b.js similarity index 66% rename from _nuxt/ProseTbody.d1ef0eb7.js rename to _nuxt/ProseTbody.19438e1b.js index 4c3b3d43..5fa3fb11 100644 --- a/_nuxt/ProseTbody.d1ef0eb7.js +++ b/_nuxt/ProseTbody.19438e1b.js @@ -1 +1 @@ -import{k as o,b as r,c as t,a9 as s}from"./entry.8c781d5d.js";const c={};function n(e,a){return r(),t("tbody",null,[s(e.$slots,"default")])}const d=o(c,[["render",n]]);export{d as default}; +import{k as o,b as r,c as t,a9 as s}from"./entry.ae6f67a5.js";const c={};function n(e,a){return r(),t("tbody",null,[s(e.$slots,"default")])}const d=o(c,[["render",n]]);export{d as default}; diff --git a/_nuxt/ProseTd.243dd7e5.js b/_nuxt/ProseTd.c52c2096.js similarity index 65% rename from _nuxt/ProseTd.243dd7e5.js rename to _nuxt/ProseTd.c52c2096.js index 14eb0a36..e52bc855 100644 --- a/_nuxt/ProseTd.243dd7e5.js +++ b/_nuxt/ProseTd.c52c2096.js @@ -1 +1 @@ -import{k as r,b as t,c as o,a9 as s}from"./entry.8c781d5d.js";const c={};function n(e,a){return t(),o("td",null,[s(e.$slots,"default")])}const d=r(c,[["render",n]]);export{d as default}; +import{k as r,b as t,c as o,a9 as s}from"./entry.ae6f67a5.js";const c={};function n(e,a){return t(),o("td",null,[s(e.$slots,"default")])}const d=r(c,[["render",n]]);export{d as default}; diff --git a/_nuxt/ProseTh.f2f16b4d.js b/_nuxt/ProseTh.ff3e2232.js similarity index 65% rename from _nuxt/ProseTh.f2f16b4d.js rename to _nuxt/ProseTh.ff3e2232.js index d45c4968..34e898a1 100644 --- a/_nuxt/ProseTh.f2f16b4d.js +++ b/_nuxt/ProseTh.ff3e2232.js @@ -1 +1 @@ -import{k as r,b as t,c as o,a9 as s}from"./entry.8c781d5d.js";const c={};function n(e,a){return t(),o("th",null,[s(e.$slots,"default")])}const f=r(c,[["render",n]]);export{f as default}; +import{k as r,b as t,c as o,a9 as s}from"./entry.ae6f67a5.js";const c={};function n(e,a){return t(),o("th",null,[s(e.$slots,"default")])}const f=r(c,[["render",n]]);export{f as default}; diff --git a/_nuxt/ProseThead.68632ec8.js b/_nuxt/ProseThead.6118c350.js similarity index 66% rename from _nuxt/ProseThead.68632ec8.js rename to _nuxt/ProseThead.6118c350.js index 4b215303..9ea235d6 100644 --- a/_nuxt/ProseThead.68632ec8.js +++ b/_nuxt/ProseThead.6118c350.js @@ -1 +1 @@ -import{k as r,b as t,c as a,a9 as o}from"./entry.8c781d5d.js";const s={};function c(e,n){return t(),a("thead",null,[o(e.$slots,"default")])}const d=r(s,[["render",c]]);export{d as default}; +import{k as r,b as t,c as a,a9 as o}from"./entry.ae6f67a5.js";const s={};function c(e,n){return t(),a("thead",null,[o(e.$slots,"default")])}const d=r(s,[["render",c]]);export{d as default}; diff --git a/_nuxt/ProseTr.cca10edc.js b/_nuxt/ProseTr.b6601b5c.js similarity index 65% rename from _nuxt/ProseTr.cca10edc.js rename to _nuxt/ProseTr.b6601b5c.js index fb99bc0b..8ff7615e 100644 --- a/_nuxt/ProseTr.cca10edc.js +++ b/_nuxt/ProseTr.b6601b5c.js @@ -1 +1 @@ -import{k as r,b as t,c as o,a9 as s}from"./entry.8c781d5d.js";const c={};function n(e,a){return t(),o("tr",null,[s(e.$slots,"default")])}const f=r(c,[["render",n]]);export{f as default}; +import{k as r,b as t,c as o,a9 as s}from"./entry.ae6f67a5.js";const c={};function n(e,a){return t(),o("tr",null,[s(e.$slots,"default")])}const f=r(c,[["render",n]]);export{f as default}; diff --git a/_nuxt/ProseUl.5c2040c7.js b/_nuxt/ProseUl.afdfd058.js similarity index 65% rename from _nuxt/ProseUl.5c2040c7.js rename to _nuxt/ProseUl.afdfd058.js index 049141a5..df492dde 100644 --- a/_nuxt/ProseUl.5c2040c7.js +++ b/_nuxt/ProseUl.afdfd058.js @@ -1 +1 @@ -import{k as r,b as o,c as s,a9 as t}from"./entry.8c781d5d.js";const c={};function n(e,a){return o(),s("ul",null,[t(e.$slots,"default")])}const f=r(c,[["render",n]]);export{f as default}; +import{k as r,b as o,c as s,a9 as t}from"./entry.ae6f67a5.js";const c={};function n(e,a){return o(),s("ul",null,[t(e.$slots,"default")])}const f=r(c,[["render",n]]);export{f as default}; diff --git a/_nuxt/Releases.d5862482.js b/_nuxt/Releases.1501e637.js similarity index 62% rename from _nuxt/Releases.d5862482.js rename to _nuxt/Releases.1501e637.js index 90733699..f4c9dd88 100644 --- a/_nuxt/Releases.d5862482.js +++ b/_nuxt/Releases.1501e637.js @@ -1 +1 @@ -import{_ as g}from"./ProseH2.vue.0efd9217.js";import h from"./ContentRenderer.404d2a66.js";import{u as B}from"./useGithub.eb11860f.js";import{d as D,aM as x,aP as C,a6 as v,b as a,c as n,F as w,a7 as L,g as o,w as c,ac as i,t as _,aC as l}from"./entry.8c781d5d.js";import"./ContentRendererMarkdown.vue.703eebc0.js";import"./MDCRenderer.84953d36.js";const b=(s,e={year:"numeric",month:"long",day:"numeric"})=>new Date(s).toLocaleDateString("en",e),k={style:{"margin-top":"50px"}},$=D({__name:"Releases",async setup(s){let e,r;const{fetchReleases:p}=B(),{data:u}=([e,r]=x(()=>C("releases",()=>p({}))),e=await e,r(),e);return(m,R)=>{const d=v("Badge"),f=g,y=h;return a(),n("div",k,[(a(!0),n(w,null,L(l(u),t=>(a(),n("div",{key:t.name,style:{"margin-bottom":"50px"}},[o(f,{id:t.name},{default:c(()=>[i(_(t.name)+" ",1),o(d,{style:{"margin-left":"10px"}},{default:c(()=>[i(_(("formatDateByLocale"in m?m.formatDateByLocale:l(b))(t.date)),1)]),_:2},1024)]),_:2},1032,["id"]),o(y,{value:t},null,8,["value"])]))),128))])}}});export{$ as default}; +import{_ as g}from"./ProseH2.vue.f4d56c2c.js";import h from"./ContentRenderer.f8fda652.js";import{u as B}from"./useGithub.b9a4816c.js";import{d as D,aM as x,aP as C,a6 as v,b as a,c as n,F as w,a7 as L,g as o,w as c,ac as i,t as _,aC as l}from"./entry.ae6f67a5.js";import"./ContentRendererMarkdown.vue.1b328542.js";import"./MDCRenderer.8dddf3be.js";const b=(s,e={year:"numeric",month:"long",day:"numeric"})=>new Date(s).toLocaleDateString("en",e),k={style:{"margin-top":"50px"}},$=D({__name:"Releases",async setup(s){let e,r;const{fetchReleases:p}=B(),{data:u}=([e,r]=x(()=>C("releases",()=>p({}))),e=await e,r(),e);return(m,R)=>{const d=v("Badge"),f=g,y=h;return a(),n("div",k,[(a(!0),n(w,null,L(l(u),t=>(a(),n("div",{key:t.name,style:{"margin-bottom":"50px"}},[o(f,{id:t.name},{default:c(()=>[i(_(t.name)+" ",1),o(d,{style:{"margin-left":"10px"}},{default:c(()=>[i(_(("formatDateByLocale"in m?m.formatDateByLocale:l(b))(t.date)),1)]),_:2},1024)]),_:2},1032,["id"]),o(y,{value:t},null,8,["value"])]))),128))])}}});export{$ as default}; diff --git a/_nuxt/Screenshot.705c5245.js b/_nuxt/Screenshot.afda911a.js similarity index 54% rename from _nuxt/Screenshot.705c5245.js rename to _nuxt/Screenshot.afda911a.js index d9eb792c..cc52e93a 100644 --- a/_nuxt/Screenshot.705c5245.js +++ b/_nuxt/Screenshot.afda911a.js @@ -1 +1 @@ -import{d as e}from"./entry.8c781d5d.js";const r=e({name:"OgImageScreenshot",async setup(t,{attrs:n}){return()=>null}});export{r as default}; +import{d as e}from"./entry.ae6f67a5.js";const r=e({name:"OgImageScreenshot",async setup(t,{attrs:n}){return()=>null}});export{r as default}; diff --git a/_nuxt/Shortcut.bc590fd3.js b/_nuxt/Shortcut.bdb882e5.js similarity index 87% rename from _nuxt/Shortcut.bc590fd3.js rename to _nuxt/Shortcut.bdb882e5.js index ee4b7133..93fe3109 100644 --- a/_nuxt/Shortcut.bc590fd3.js +++ b/_nuxt/Shortcut.bdb882e5.js @@ -1 +1 @@ -import{d as p,aw as l,ah as i,ai as m,E as _,b as f,a8 as d,w as h,ac as x,t as v,aC as a,aa as w,a5 as g}from"./entry.8c781d5d.js";const C=p({inheritAttrs:!1,__name:"Shortcut",props:{value:{},class:{}},setup(s){const e={wrapper:"!my-0 align-text-top"},t=s,{metaSymbol:o}=l(),{ui:c,attrs:n}=i("content.shortcut",void 0,e,m(t,"class"),!0),r=_(()=>t.value==="meta"?o.value:t.value);return(S,b)=>{const u=g;return f(),d(u,w({class:a(c).wrapper},a(n)),{default:h(()=>[x(v(a(r)),1)]),_:1},16,["class"])}}});export{C as default}; +import{d as p,aw as l,ah as i,ai as m,E as _,b as f,a8 as d,w as h,ac as x,t as v,aC as a,aa as w,a5 as g}from"./entry.ae6f67a5.js";const C=p({inheritAttrs:!1,__name:"Shortcut",props:{value:{},class:{}},setup(s){const e={wrapper:"!my-0 align-text-top"},t=s,{metaSymbol:o}=l(),{ui:c,attrs:n}=i("content.shortcut",void 0,e,m(t,"class"),!0),r=_(()=>t.value==="meta"?o.value:t.value);return(S,b)=>{const u=g;return f(),d(u,w({class:a(c).wrapper},a(n)),{default:h(()=>[x(v(a(r)),1)]),_:1},16,["class"])}}});export{C as default}; diff --git a/_nuxt/Static.b18b3ef7.js b/_nuxt/Static.041e034c.js similarity index 53% rename from _nuxt/Static.b18b3ef7.js rename to _nuxt/Static.041e034c.js index aee68a2b..c6fb9a0d 100644 --- a/_nuxt/Static.b18b3ef7.js +++ b/_nuxt/Static.041e034c.js @@ -1 +1 @@ -import{d as t}from"./entry.8c781d5d.js";const o=t({name:"OgImageStatic",async setup(a,{attrs:e}){return()=>null}});export{o as default}; +import{d as t}from"./entry.ae6f67a5.js";const o=t({name:"OgImageStatic",async setup(a,{attrs:e}){return()=>null}});export{o as default}; diff --git a/_nuxt/Tabs.53377085.js b/_nuxt/Tabs.51077da8.js similarity index 96% rename from _nuxt/Tabs.53377085.js rename to _nuxt/Tabs.51077da8.js index 65fd1ab9..2c68fea2 100644 --- a/_nuxt/Tabs.53377085.js +++ b/_nuxt/Tabs.51077da8.js @@ -1 +1 @@ -import{d as k,b0 as x,ah as C,ai as w,r as B,E as D,b as s,c as o,e as b,n as l,aC as e,F as d,a7 as v,a8 as y,f as I,t as S,am as z,an as E,b4 as F,aa as N,a3 as U}from"./entry.8c781d5d.js";const V=["onClick"],G=k({inheritAttrs:!1,__name:"Tabs",props:{class:{}},setup(f){const g={wrapper:"relative my-5 space-y-6",header:"flex items-center relative",border:"absolute bottom-0 inset-x-0 w-full h-px bg-gray-200 dark:bg-gray-800",tab:{base:"px-4 py-2.5 font-semibold text-sm/6 flex items-center gap-1.5 border-b z-[1] focus-visible:outline-primary",active:"text-primary border-primary",inactive:"text-gray-500 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-200 border-transparent hover:border-gray-300 dark:hover:border-gray-700",icon:{base:"w-5 h-5 flex-shrink-0"}}},h=f,i=x(),{ui:t,attrs:_}=C("content.codeGroup",void 0,g,w(h,"class"),!0),p=B(0),u=D(()=>{var m;return((m=i.default)==null?void 0:m.call(i).map((n,c)=>{var r,a;return{index:c,label:((r=n.props)==null?void 0:r.label)||`${c}`,icon:(a=n.props)==null?void 0:a.icon,component:n}}))||[]});return(m,n)=>{const c=U;return s(),o("div",N({class:e(t).wrapper},e(_)),[b("div",{class:l(e(t).header)},[b("div",{class:l(e(t).border)},null,2),(s(!0),o(d,null,v(e(u),(r,a)=>(s(),o("button",{key:a,class:l([e(t).tab.base,e(p)===a?e(t).tab.active:e(t).tab.inactive]),onClick:$=>p.value=a},[r.icon?(s(),y(c,{key:0,name:r.icon,class:l(e(t).tab.icon.base)},null,8,["name","class"])):I("",!0),b("span",null,S(r.label),1)],10,V))),128))],2),(s(!0),o(d,null,v(e(u),(r,a)=>z((s(),o("div",{key:a},[(s(),y(F(r.component)))])),[[E,e(p)===a]])),128))],16)}}});export{G as default}; +import{d as k,b0 as x,ah as C,ai as w,r as B,E as D,b as s,c as o,e as b,n as l,aC as e,F as d,a7 as v,a8 as y,f as I,t as S,am as z,an as E,b4 as F,aa as N,a3 as U}from"./entry.ae6f67a5.js";const V=["onClick"],G=k({inheritAttrs:!1,__name:"Tabs",props:{class:{}},setup(f){const g={wrapper:"relative my-5 space-y-6",header:"flex items-center relative",border:"absolute bottom-0 inset-x-0 w-full h-px bg-gray-200 dark:bg-gray-800",tab:{base:"px-4 py-2.5 font-semibold text-sm/6 flex items-center gap-1.5 border-b z-[1] focus-visible:outline-primary",active:"text-primary border-primary",inactive:"text-gray-500 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-200 border-transparent hover:border-gray-300 dark:hover:border-gray-700",icon:{base:"w-5 h-5 flex-shrink-0"}}},h=f,i=x(),{ui:t,attrs:_}=C("content.codeGroup",void 0,g,w(h,"class"),!0),p=B(0),u=D(()=>{var m;return((m=i.default)==null?void 0:m.call(i).map((n,c)=>{var r,a;return{index:c,label:((r=n.props)==null?void 0:r.label)||`${c}`,icon:(a=n.props)==null?void 0:a.icon,component:n}}))||[]});return(m,n)=>{const c=U;return s(),o("div",N({class:e(t).wrapper},e(_)),[b("div",{class:l(e(t).header)},[b("div",{class:l(e(t).border)},null,2),(s(!0),o(d,null,v(e(u),(r,a)=>(s(),o("button",{key:a,class:l([e(t).tab.base,e(p)===a?e(t).tab.active:e(t).tab.inactive]),onClick:$=>p.value=a},[r.icon?(s(),y(c,{key:0,name:r.icon,class:l(e(t).tab.icon.base)},null,8,["name","class"])):I("",!0),b("span",null,S(r.label),1)],10,V))),128))],2),(s(!0),o(d,null,v(e(u),(r,a)=>z((s(),o("div",{key:a},[(s(),y(F(r.component)))])),[[E,e(p)===a]])),128))],16)}}});export{G as default}; diff --git a/_nuxt/VoltaBoard.434441cf.js b/_nuxt/VoltaBoard.625e4cb3.js similarity index 81% rename from _nuxt/VoltaBoard.434441cf.js rename to _nuxt/VoltaBoard.625e4cb3.js index ae9026c6..7eaf6ac6 100644 --- a/_nuxt/VoltaBoard.434441cf.js +++ b/_nuxt/VoltaBoard.625e4cb3.js @@ -1 +1 @@ -import{d as n,E as r,b as s,c,aC as a}from"./entry.8c781d5d.js";const p=["src"],d=n({__name:"VoltaBoard",props:{token:{type:String,required:!0}},setup(e){const t=e,o=r(()=>`https://volta.net/embed/${t.token}`);return(i,l)=>(s(),c("iframe",{style:{width:"100%","min-height":"calc(100vh / 1.5)"},src:a(o)},null,8,p))}});export{d as default}; +import{d as n,E as r,b as s,c,aC as a}from"./entry.ae6f67a5.js";const p=["src"],d=n({__name:"VoltaBoard",props:{token:{type:String,required:!0}},setup(e){const t=e,o=r(()=>`https://volta.net/embed/${t.token}`);return(i,l)=>(s(),c("iframe",{style:{width:"100%","min-height":"calc(100vh / 1.5)"},src:a(o)},null,8,p))}});export{d as default}; diff --git a/_nuxt/WithoutCache.0a5bf573.js b/_nuxt/WithoutCache.3a23f08d.js similarity index 55% rename from _nuxt/WithoutCache.0a5bf573.js rename to _nuxt/WithoutCache.3a23f08d.js index f0b6a643..6c8bc92a 100644 --- a/_nuxt/WithoutCache.0a5bf573.js +++ b/_nuxt/WithoutCache.3a23f08d.js @@ -1 +1 @@ -import{d as t}from"./entry.8c781d5d.js";const o=t({name:"OgImageWithoutCache",async setup(e,{attrs:a}){return()=>null}});export{o as default}; +import{d as t}from"./entry.ae6f67a5.js";const o=t({name:"OgImageWithoutCache",async setup(e,{attrs:a}){return()=>null}});export{o as default}; diff --git a/_nuxt/_...slug_.cfdc5a31.js b/_nuxt/_...slug_.f48004ed.js similarity index 98% rename from _nuxt/_...slug_.cfdc5a31.js rename to _nuxt/_...slug_.f48004ed.js index b5f926a3..188a9b7e 100644 --- a/_nuxt/_...slug_.cfdc5a31.js +++ b/_nuxt/_...slug_.f48004ed.js @@ -1 +1 @@ -import{d as U,ah as S,ai as h,b as r,c as d,n as c,aC as e,a9 as _,ac as L,t as $,f as m,e as f,g as C,F as H,a7 as M,a8 as k,aa as w,a3 as A,ag as ie,w as I,aE as le,k as ce,ad as ue,aF as de,af as Y,a4 as O,E as z,aG as pe,al as N,x as q,aH as ge,aI as me,r as B,M as se,aJ as ve,aK as fe,s as ne,u as he,aL as be,aM as Z,aN as ke,aO as ye,ao as ee,aP as te,aQ as _e,aR as we,q as ae,aS as xe}from"./entry.8c781d5d.js";import $e from"./ContentRenderer.404d2a66.js";import"./ContentRendererMarkdown.vue.703eebc0.js";import"./MDCRenderer.84953d36.js";const Ce={class:"flex flex-col lg:flex-row items-start gap-6"},Ue={class:"flex-1"},Se=U({inheritAttrs:!1,__name:"PageHeader",props:{headline:{default:void 0},title:{default:""},description:{default:""},icon:{default:void 0},links:{default:()=>[]},ui:{default:()=>({})},class:{default:void 0}},setup(a){const o={wrapper:"relative border-b border-gray-200 dark:border-gray-800 py-8",container:"flex flex-col lg:flex-row lg:items-center lg:justify-between",headline:"mb-4 text-sm/6 font-semibold text-primary flex items-center gap-1.5",title:"text-3xl sm:text-4xl font-bold text-gray-900 dark:text-white tracking-tight",description:"mt-4 text-lg text-gray-500 dark:text-gray-400",icon:{wrapper:"flex",base:"w-10 h-10 flex-shrink-0 text-primary"},links:"flex flex-wrap items-center gap-1.5 mt-4 lg:mt-0"},l=a,{ui:n,attrs:s}=S("page.header",h(l,"ui"),o,h(l,"class"),!0);return(t,i)=>{var p;const u=A,v=ie;return r(),d("div",w({class:e(n).wrapper},e(s)),[t.headline||t.$slots.headline?(r(),d("div",{key:0,class:c(e(n).headline)},[_(t.$slots,"headline",{},()=>[L($(t.headline),1)])],2)):m("",!0),f("div",Ce,[t.icon||t.$slots.icon?(r(),d("div",{key:0,class:c(e(n).icon.wrapper)},[_(t.$slots,"icon",{},()=>[C(u,{name:t.icon,class:c(e(n).icon.base)},null,8,["name","class"])])],2)):m("",!0),f("div",Ue,[f("div",{class:c(e(n).container)},[f("h1",{class:c(e(n).title)},[_(t.$slots,"title",{},()=>[L($(t.title),1)])],2),(p=t.links)!=null&&p.length||t.$slots.links?(r(),d("div",{key:0,class:c(e(n).links)},[_(t.$slots,"links",{},()=>[(r(!0),d(H,null,M(t.links,(b,g)=>(r(),k(v,w({key:g},{...b,target:b.target||"_blank",color:b.color||"white"},{onClick:b.click}),null,16,["onClick"]))),128))])],2)):m("",!0)],2),t.description||t.$slots.description?(r(),d("p",{key:0,class:c(e(n).description)},[_(t.$slots,"description",{},()=>[L($(t.description),1)])],2)):m("",!0),_(t.$slots,"default")])])],16)}}}),Ie=U({inheritAttrs:!1,__name:"DocsSurroundLink",props:{link:{},icon:{},ui:{},class:{}},setup(a){const o={wrapper:"block px-6 py-8 border not-prose rounded-lg border-gray-200 dark:border-gray-800 hover:bg-gray-100/50 dark:hover:bg-gray-800/50 group",icon:{wrapper:"inline-flex items-center rounded-full p-1.5 bg-gray-100 dark:bg-gray-800 group-hover:bg-primary/10 ring-1 ring-gray-300 dark:ring-gray-700 mb-4 group-hover:ring-primary/50",base:"w-5 h-5 text-gray-900 dark:text-white group-hover:text-primary"},title:"font-medium text-gray-900 dark:text-white text-[15px] mb-1",description:"text-sm font-normal text-gray-500 dark:text-gray-400 line-clamp-2"},l=a,{ui:n,attrs:s}=S("docs.surround.link",h(l,"ui"),o,h(l,"class"),!0);return(t,i)=>{const u=A,v=le;return r(),k(v,w({to:t.link._path,class:e(n).wrapper},e(s)),{default:I(()=>[t.icon||t.link.icon?(r(),d("div",{key:0,class:c(e(n).icon.wrapper)},[C(u,{name:t.icon||t.link.icon,class:c(e(n).icon.base)},null,8,["name","class"])],2)):m("",!0),f("p",{class:c(e(n).title)},$(t.link.title),3),f("p",{class:c(e(n).description)},$(t.link.description),3)]),_:1},16,["to","class"])}}}),ze={key:1,class:"hidden sm:block"},Ae=U({inheritAttrs:!1,__name:"DocsSurround",props:{surround:{},ui:{},class:{}},setup(a){const o={wrapper:"grid gap-8 sm:grid-cols-2",icon:{prev:"i-heroicons-arrow-left-20-solid",next:"i-heroicons-arrow-right-20-solid"},link:{}},l=a,{ui:n,attrs:s}=S("docs.surround",h(l,"ui"),o,h(l,"class"),!0),[t,i]=l.surround||[];return(u,v)=>{const p=Ie;return r(),d("div",w({class:e(n).wrapper},e(s)),[e(t)?(r(),k(p,{key:0,link:e(t),ui:e(n).link,icon:e(n).icon.prev},null,8,["link","ui","icon"])):(r(),d("span",ze," ")),e(i)?(r(),k(p,{key:2,link:e(i),ui:e(n).link,icon:e(n).icon.next,class:"text-right"},null,8,["link","ui","icon"])):m("",!0)],16)}}}),De=U({inheritAttrs:!1,__name:"PageBody",props:{prose:{type:Boolean,default:!1},ui:{default:()=>({})},class:{default:void 0}},setup(a){const o={wrapper:"mt-8 pb-24",prose:"prose prose-primary dark:prose-invert max-w-none"},l=a,{ui:n,attrs:s}=S("page.body",h(l,"ui"),o,h(l,"class"),!0);return(t,i)=>(r(),d("div",w({class:[e(n).wrapper,t.prose&&e(n).prose]},e(s)),[_(t.$slots,"default")],16))}}),Le=ue(Y.ui.strategy,Y.ui.divider,de),Te=U({components:{UIcon:A,UAvatar:O},inheritAttrs:!1,props:{label:{type:String,default:null},icon:{type:String,default:null},avatar:{type:Object,default:null},orientation:{type:String,default:"horizontal",validator:a=>["horizontal","vertical"].includes(a)},type:{type:String,default:"solid",validator:a=>["solid","dotted","dashed"].includes(a)},class:{type:[String,Object,Array],default:void 0},ui:{type:Object,default:void 0}},setup(a){const{ui:o,attrs:l}=S("divider",h(a,"ui"),Le),n=z(()=>a.orientation==="horizontal"),s=z(()=>pe(N(o.value.wrapper.base,n.value?o.value.wrapper.horizontal:o.value.wrapper.vertical),a.class)),t=z(()=>N(o.value.container.base,n.value?o.value.container.horizontal:o.value.container.vertical)),i=z(()=>{const u={solid:"border-solid",dotted:"border-dotted",dashed:"border-dashed"}[a.type];return N(o.value.border.base,n.value?o.value.border.horizontal:o.value.border.vertical,n.value?o.value.border.size.horizontal:o.value.border.size.vertical,u)});return{ui:o,attrs:l,wrapperClass:s,containerClass:t,borderClass:i}}});function Be(a,o,l,n,s,t){const i=A,u=O;return r(),d("div",w({class:a.wrapperClass},a.attrs),[f("div",{class:c(a.borderClass)},null,2),a.label||a.icon||a.avatar||a.$slots.default?(r(),d(H,{key:0},[f("div",{class:c(a.containerClass)},[_(a.$slots,"default",{},()=>[a.label?(r(),d("span",{key:0,class:c(a.ui.label)},$(a.label),3)):a.icon?(r(),k(i,{key:1,name:a.icon,class:c(a.ui.icon.base)},null,8,["name","class"])):a.avatar?(r(),k(u,w({key:2},{size:a.ui.avatar.size,...a.avatar},{class:a.ui.avatar.base}),null,16,["class"])):m("",!0)])],2),f("div",{class:c(a.borderClass)},null,2)],64)):m("",!0)],16)}const He=ce(Te,[["render",Be]]),Pe=U({inheritAttrs:!1,__name:"PageLinks",props:{title:{},links:{},ui:{},class:{}},setup(a){const o=q(),l={wrapper:"space-y-3",title:"text-sm/6 font-semibold flex items-center gap-1.5",container:"space-y-3 lg:space-y-1.5",base:"flex items-center gap-1.5",active:"text-primary",inactive:"text-gray-500 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-200",icon:{base:"w-5 h-5 flex-shrink-0"},avatar:{base:"flex-shrink-0 self-center",size:"2xs"},externalIcon:{name:o.ui.icons.external,base:"w-3 h-3 absolute top-0.5 -right-3.5 text-gray-400 dark:text-gray-500"},label:"text-sm/6 font-medium relative"},n=a,{ui:s,attrs:t}=S("page.links",h(n,"ui"),l,h(n,"class"),!0);return(i,u)=>{const v=A,p=O,b=me;return r(),d("div",w({class:e(s).wrapper},e(t)),[i.title||i.$slots.title?(r(),d("p",{key:0,class:c(e(s).title)},[_(i.$slots,"title",{},()=>[L($(i.title),1)])],2)):m("",!0),f("div",{class:c(e(s).container)},[_(i.$slots,"default",{},()=>[(r(!0),d(H,null,M(i.links,(g,y)=>(r(),k(b,w({key:y},e(ge)(g,["label","icon","iconClass","badge","children"]),{class:e(s).base,"active-class":e(s).active,"inactive-class":e(s).inactive}),{default:I(()=>[g.icon?(r(),k(v,{key:0,name:g.icon,class:c(e(s).icon.base)},null,8,["name","class"])):m("",!0),g.avatar?(r(),k(p,w({key:1},{size:e(s).avatar.size,...g.avatar},{class:e(s).avatar.base}),null,16,["class"])):m("",!0),f("span",{class:c(e(s).label)},[L($(g.label)+" ",1),g.target==="_blank"?(r(),k(v,{key:0,name:e(s).externalIcon.name,class:c(e(s).externalIcon.base)},null,8,["name","class"])):m("",!0)],2)]),_:2},1040,["class","active-class","inactive-class"]))),128))])],2)],16)}}}),Ee=()=>{const a=B(),o=B([]),l=B([]),n=t=>{t.forEach(i=>{const u=i.target.id;i.isIntersecting?o.value=[...o.value,u]:o.value=o.value.filter(v=>v!==u)})},s=t=>{t.forEach(i=>{a.value&&a.value.observe(i)})};return se(o,(t,i)=>{t.length===0?l.value=i:l.value=t}),ve(()=>a.value=new IntersectionObserver(n)),fe(()=>{var t;return(t=a.value)==null?void 0:t.disconnect()}),{visibleHeadings:o,activeHeadings:l,updateHeadings:s}},Ne=["href","onClick"],oe=U({inheritAttrs:!1,__name:"DocsTocLinks",props:{links:{},ui:{},class:{}},emits:["move"],setup(a,{emit:o}){const l={wrapper:"space-y-1",base:"block text-sm/6 truncate",active:"text-primary",inactive:"text-gray-500 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-200",depth:"ml-3"},n=a,s=o,t=ne(),i=he(),{activeHeadings:u,updateHeadings:v}=Ee(),{ui:p,attrs:b}=S("docs.toc.links",h(n,"ui"),l,h(n,"class"),!0);se(()=>t.path,()=>{setTimeout(()=>{v([...document.querySelectorAll("h2"),...document.querySelectorAll("h3")])},300)},{immediate:!0});const g=y=>{i.push(`#${y}`),s("move",y)};return(y,P)=>{var T;const E=oe;return(T=y.links)!=null&&T.length?(r(),d("ul",w({key:0,class:e(p).wrapper},e(b)),[(r(!0),d(H,null,M(y.links,x=>(r(),d("li",{key:x.text,class:c([e(p).wrapper,x.depth===3&&e(p).depth])},[f("a",{href:`#${x.id}`,class:c([e(p).base,e(u).includes(x.id)?e(p).active:e(p).inactive]),onClick:be(R=>g(x.id),["prevent"])},$(x.text),11,Ne),x.children?(r(),k(E,{key:0,links:x.children},null,8,["links"])):m("",!0)],2))),128))],16)):m("",!0)}}}),Me=U({inheritAttrs:!1,__name:"DocsToc",props:{title:{default:"Table of Contents"},links:{default:()=>[]},ui:{default:()=>({})},class:{default:void 0}},setup(a){const o=q(),l={wrapper:"sticky top-[--header-height] bg-background/75 backdrop-blur group -mx-4 sm:-mx-6 px-4 sm:px-6 lg:px-4 lg:-mx-4 overflow-y-auto max-h-[calc(100vh-var(--header-height))]",container:{base:"py-3 lg:py-8 border-b border-dashed border-gray-200 dark:border-gray-800 lg:border-0 space-y-3",empty:"lg:py-8 space-y-3"},button:{base:"flex items-center gap-1.5 lg:cursor-text lg:select-text w-full",label:"font-semibold text-sm/6 truncate",trailingIcon:{name:o.ui.icons.chevron,base:"w-5 h-5 ms-auto transform transition-transform duration-200 flex-shrink-0 mr-1.5",active:"text-gray-700 dark:text-gray-200",inactive:"text-gray-500 dark:text-gray-400 group-hover:text-gray-700 dark:group-hover:text-gray-200 -rotate-90"}},links:{}},n=a,{ui:s,attrs:t}=S("docs.toc",h(n,"ui"),l,h(n,"class"),!0),i=B(!1);return(u,v)=>{var g,y;const p=A,b=oe;return r(),d("nav",w({class:e(s).wrapper},e(t)),[f("div",{class:c([(g=u.links)!=null&&g.length?e(s).container.base:e(s).container.empty])},[_(u.$slots,"top"),(y=u.links)!=null&&y.length?(r(),d("button",{key:0,class:c(e(s).button.base),tabindex:"-1",onClick:v[0]||(v[0]=P=>i.value=!e(i))},[f("span",{class:c(e(s).button.label)},$(u.title),3),C(p,{name:e(s).button.trailingIcon.name,class:c(["lg:hidden",[e(s).button.trailingIcon.base,e(i)?e(s).button.trailingIcon.active:e(s).button.trailingIcon.inactive]])},null,8,["name","class"])],2)):m("",!0),C(b,{links:u.links,ui:e(s).links,class:c([e(i)?"lg:block":"hidden lg:block"])},null,8,["links","ui","class"]),_(u.$slots,"bottom")],2)],16)}}}),Oe={key:1},Fe=U({__name:"[...slug]",async setup(a){let o,l;const n=ne(),{toc:s}=q(),{data:t}=([o,l]=Z(()=>te(n.path,()=>ae(n.path).findOne(),"$aROEKgqrzL")),o=await o,l(),o);if(!t.value)throw ke({statusCode:404,statusMessage:"Page not found",fatal:!0});const{data:i}=([o,l]=Z(()=>te(`${n.path}-surround`,()=>ae().where({_extension:"md",navigation:{$ne:!1}}).only(["title","description","_path"]).findSurround(xe(n.path)))),o=await o,l(),o);ye({titleTemplate:"%s - Nuxt x Supabase - Docs",title:t.value.title,ogTitle:`${t.value.title} - Nuxt x Supabase - Docs`,description:t.value.description,ogDescription:t.value.description});const u=z(()=>_e(t.value)),v=z(()=>{var p,b,g;return[((p=s==null?void 0:s.bottom)==null?void 0:p.edit)&&{icon:"i-heroicons-pencil-square",label:"Edit this page",to:`${s.bottom.edit}/${(b=t==null?void 0:t.value)==null?void 0:b._file}`,target:"_blank"},...((g=s==null?void 0:s.bottom)==null?void 0:g.links)||[]].filter(Boolean)});return(p,b)=>{const g=Se,y=$e,P=Ae,E=De,T=He,x=Pe,R=Me,re=we;return r(),k(re,null,ee({default:I(()=>[C(g,{title:e(t).title,description:e(t).description,links:e(t).links,headline:e(u)},null,8,["title","description","links","headline"]),C(E,{prose:""},{default:I(()=>{var D;return[e(t).body?(r(),k(y,{key:0,value:e(t)},null,8,["value"])):m("",!0),(D=e(i))!=null&&D.length?(r(),d("hr",Oe)):m("",!0),C(P,{surround:e(i)},null,8,["surround"])]}),_:1})]),_:2},[e(t).toc!==!1?{name:"right",fn:I(()=>{var D,j,V,F;return[C(R,{title:(D=e(s))==null?void 0:D.title,links:(V=(j=e(t).body)==null?void 0:j.toc)==null?void 0:V.links},ee({_:2},[(F=e(s))!=null&&F.bottom?{name:"bottom",fn:I(()=>{var J,K,G,Q,W,X;return[f("div",{class:c(["hidden lg:block space-y-6",{"!mt-6":(G=(K=(J=e(t).body)==null?void 0:J.toc)==null?void 0:K.links)==null?void 0:G.length}])},[(X=(W=(Q=e(t).body)==null?void 0:Q.toc)==null?void 0:W.links)!=null&&X.length?(r(),k(T,{key:0,type:"dashed"})):m("",!0),C(x,{title:e(s).bottom.title,links:e(v)},null,8,["title","links"])],2)]}),key:"0"}:void 0]),1032,["title","links"])]}),key:"0"}:void 0]),1024)}}});export{Fe as default}; +import{d as U,ah as S,ai as h,b as r,c as d,n as c,aC as e,a9 as _,ac as L,t as $,f as m,e as f,g as C,F as H,a7 as M,a8 as k,aa as w,a3 as A,ag as ie,w as I,aE as le,k as ce,ad as ue,aF as de,af as Y,a4 as O,E as z,aG as pe,al as N,x as q,aH as ge,aI as me,r as B,M as se,aJ as ve,aK as fe,s as ne,u as he,aL as be,aM as Z,aN as ke,aO as ye,ao as ee,aP as te,aQ as _e,aR as we,q as ae,aS as xe}from"./entry.ae6f67a5.js";import $e from"./ContentRenderer.f8fda652.js";import"./ContentRendererMarkdown.vue.1b328542.js";import"./MDCRenderer.8dddf3be.js";const Ce={class:"flex flex-col lg:flex-row items-start gap-6"},Ue={class:"flex-1"},Se=U({inheritAttrs:!1,__name:"PageHeader",props:{headline:{default:void 0},title:{default:""},description:{default:""},icon:{default:void 0},links:{default:()=>[]},ui:{default:()=>({})},class:{default:void 0}},setup(a){const o={wrapper:"relative border-b border-gray-200 dark:border-gray-800 py-8",container:"flex flex-col lg:flex-row lg:items-center lg:justify-between",headline:"mb-4 text-sm/6 font-semibold text-primary flex items-center gap-1.5",title:"text-3xl sm:text-4xl font-bold text-gray-900 dark:text-white tracking-tight",description:"mt-4 text-lg text-gray-500 dark:text-gray-400",icon:{wrapper:"flex",base:"w-10 h-10 flex-shrink-0 text-primary"},links:"flex flex-wrap items-center gap-1.5 mt-4 lg:mt-0"},l=a,{ui:n,attrs:s}=S("page.header",h(l,"ui"),o,h(l,"class"),!0);return(t,i)=>{var p;const u=A,v=ie;return r(),d("div",w({class:e(n).wrapper},e(s)),[t.headline||t.$slots.headline?(r(),d("div",{key:0,class:c(e(n).headline)},[_(t.$slots,"headline",{},()=>[L($(t.headline),1)])],2)):m("",!0),f("div",Ce,[t.icon||t.$slots.icon?(r(),d("div",{key:0,class:c(e(n).icon.wrapper)},[_(t.$slots,"icon",{},()=>[C(u,{name:t.icon,class:c(e(n).icon.base)},null,8,["name","class"])])],2)):m("",!0),f("div",Ue,[f("div",{class:c(e(n).container)},[f("h1",{class:c(e(n).title)},[_(t.$slots,"title",{},()=>[L($(t.title),1)])],2),(p=t.links)!=null&&p.length||t.$slots.links?(r(),d("div",{key:0,class:c(e(n).links)},[_(t.$slots,"links",{},()=>[(r(!0),d(H,null,M(t.links,(b,g)=>(r(),k(v,w({key:g},{...b,target:b.target||"_blank",color:b.color||"white"},{onClick:b.click}),null,16,["onClick"]))),128))])],2)):m("",!0)],2),t.description||t.$slots.description?(r(),d("p",{key:0,class:c(e(n).description)},[_(t.$slots,"description",{},()=>[L($(t.description),1)])],2)):m("",!0),_(t.$slots,"default")])])],16)}}}),Ie=U({inheritAttrs:!1,__name:"DocsSurroundLink",props:{link:{},icon:{},ui:{},class:{}},setup(a){const o={wrapper:"block px-6 py-8 border not-prose rounded-lg border-gray-200 dark:border-gray-800 hover:bg-gray-100/50 dark:hover:bg-gray-800/50 group",icon:{wrapper:"inline-flex items-center rounded-full p-1.5 bg-gray-100 dark:bg-gray-800 group-hover:bg-primary/10 ring-1 ring-gray-300 dark:ring-gray-700 mb-4 group-hover:ring-primary/50",base:"w-5 h-5 text-gray-900 dark:text-white group-hover:text-primary"},title:"font-medium text-gray-900 dark:text-white text-[15px] mb-1",description:"text-sm font-normal text-gray-500 dark:text-gray-400 line-clamp-2"},l=a,{ui:n,attrs:s}=S("docs.surround.link",h(l,"ui"),o,h(l,"class"),!0);return(t,i)=>{const u=A,v=le;return r(),k(v,w({to:t.link._path,class:e(n).wrapper},e(s)),{default:I(()=>[t.icon||t.link.icon?(r(),d("div",{key:0,class:c(e(n).icon.wrapper)},[C(u,{name:t.icon||t.link.icon,class:c(e(n).icon.base)},null,8,["name","class"])],2)):m("",!0),f("p",{class:c(e(n).title)},$(t.link.title),3),f("p",{class:c(e(n).description)},$(t.link.description),3)]),_:1},16,["to","class"])}}}),ze={key:1,class:"hidden sm:block"},Ae=U({inheritAttrs:!1,__name:"DocsSurround",props:{surround:{},ui:{},class:{}},setup(a){const o={wrapper:"grid gap-8 sm:grid-cols-2",icon:{prev:"i-heroicons-arrow-left-20-solid",next:"i-heroicons-arrow-right-20-solid"},link:{}},l=a,{ui:n,attrs:s}=S("docs.surround",h(l,"ui"),o,h(l,"class"),!0),[t,i]=l.surround||[];return(u,v)=>{const p=Ie;return r(),d("div",w({class:e(n).wrapper},e(s)),[e(t)?(r(),k(p,{key:0,link:e(t),ui:e(n).link,icon:e(n).icon.prev},null,8,["link","ui","icon"])):(r(),d("span",ze," ")),e(i)?(r(),k(p,{key:2,link:e(i),ui:e(n).link,icon:e(n).icon.next,class:"text-right"},null,8,["link","ui","icon"])):m("",!0)],16)}}}),De=U({inheritAttrs:!1,__name:"PageBody",props:{prose:{type:Boolean,default:!1},ui:{default:()=>({})},class:{default:void 0}},setup(a){const o={wrapper:"mt-8 pb-24",prose:"prose prose-primary dark:prose-invert max-w-none"},l=a,{ui:n,attrs:s}=S("page.body",h(l,"ui"),o,h(l,"class"),!0);return(t,i)=>(r(),d("div",w({class:[e(n).wrapper,t.prose&&e(n).prose]},e(s)),[_(t.$slots,"default")],16))}}),Le=ue(Y.ui.strategy,Y.ui.divider,de),Te=U({components:{UIcon:A,UAvatar:O},inheritAttrs:!1,props:{label:{type:String,default:null},icon:{type:String,default:null},avatar:{type:Object,default:null},orientation:{type:String,default:"horizontal",validator:a=>["horizontal","vertical"].includes(a)},type:{type:String,default:"solid",validator:a=>["solid","dotted","dashed"].includes(a)},class:{type:[String,Object,Array],default:void 0},ui:{type:Object,default:void 0}},setup(a){const{ui:o,attrs:l}=S("divider",h(a,"ui"),Le),n=z(()=>a.orientation==="horizontal"),s=z(()=>pe(N(o.value.wrapper.base,n.value?o.value.wrapper.horizontal:o.value.wrapper.vertical),a.class)),t=z(()=>N(o.value.container.base,n.value?o.value.container.horizontal:o.value.container.vertical)),i=z(()=>{const u={solid:"border-solid",dotted:"border-dotted",dashed:"border-dashed"}[a.type];return N(o.value.border.base,n.value?o.value.border.horizontal:o.value.border.vertical,n.value?o.value.border.size.horizontal:o.value.border.size.vertical,u)});return{ui:o,attrs:l,wrapperClass:s,containerClass:t,borderClass:i}}});function Be(a,o,l,n,s,t){const i=A,u=O;return r(),d("div",w({class:a.wrapperClass},a.attrs),[f("div",{class:c(a.borderClass)},null,2),a.label||a.icon||a.avatar||a.$slots.default?(r(),d(H,{key:0},[f("div",{class:c(a.containerClass)},[_(a.$slots,"default",{},()=>[a.label?(r(),d("span",{key:0,class:c(a.ui.label)},$(a.label),3)):a.icon?(r(),k(i,{key:1,name:a.icon,class:c(a.ui.icon.base)},null,8,["name","class"])):a.avatar?(r(),k(u,w({key:2},{size:a.ui.avatar.size,...a.avatar},{class:a.ui.avatar.base}),null,16,["class"])):m("",!0)])],2),f("div",{class:c(a.borderClass)},null,2)],64)):m("",!0)],16)}const He=ce(Te,[["render",Be]]),Pe=U({inheritAttrs:!1,__name:"PageLinks",props:{title:{},links:{},ui:{},class:{}},setup(a){const o=q(),l={wrapper:"space-y-3",title:"text-sm/6 font-semibold flex items-center gap-1.5",container:"space-y-3 lg:space-y-1.5",base:"flex items-center gap-1.5",active:"text-primary",inactive:"text-gray-500 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-200",icon:{base:"w-5 h-5 flex-shrink-0"},avatar:{base:"flex-shrink-0 self-center",size:"2xs"},externalIcon:{name:o.ui.icons.external,base:"w-3 h-3 absolute top-0.5 -right-3.5 text-gray-400 dark:text-gray-500"},label:"text-sm/6 font-medium relative"},n=a,{ui:s,attrs:t}=S("page.links",h(n,"ui"),l,h(n,"class"),!0);return(i,u)=>{const v=A,p=O,b=me;return r(),d("div",w({class:e(s).wrapper},e(t)),[i.title||i.$slots.title?(r(),d("p",{key:0,class:c(e(s).title)},[_(i.$slots,"title",{},()=>[L($(i.title),1)])],2)):m("",!0),f("div",{class:c(e(s).container)},[_(i.$slots,"default",{},()=>[(r(!0),d(H,null,M(i.links,(g,y)=>(r(),k(b,w({key:y},e(ge)(g,["label","icon","iconClass","badge","children"]),{class:e(s).base,"active-class":e(s).active,"inactive-class":e(s).inactive}),{default:I(()=>[g.icon?(r(),k(v,{key:0,name:g.icon,class:c(e(s).icon.base)},null,8,["name","class"])):m("",!0),g.avatar?(r(),k(p,w({key:1},{size:e(s).avatar.size,...g.avatar},{class:e(s).avatar.base}),null,16,["class"])):m("",!0),f("span",{class:c(e(s).label)},[L($(g.label)+" ",1),g.target==="_blank"?(r(),k(v,{key:0,name:e(s).externalIcon.name,class:c(e(s).externalIcon.base)},null,8,["name","class"])):m("",!0)],2)]),_:2},1040,["class","active-class","inactive-class"]))),128))])],2)],16)}}}),Ee=()=>{const a=B(),o=B([]),l=B([]),n=t=>{t.forEach(i=>{const u=i.target.id;i.isIntersecting?o.value=[...o.value,u]:o.value=o.value.filter(v=>v!==u)})},s=t=>{t.forEach(i=>{a.value&&a.value.observe(i)})};return se(o,(t,i)=>{t.length===0?l.value=i:l.value=t}),ve(()=>a.value=new IntersectionObserver(n)),fe(()=>{var t;return(t=a.value)==null?void 0:t.disconnect()}),{visibleHeadings:o,activeHeadings:l,updateHeadings:s}},Ne=["href","onClick"],oe=U({inheritAttrs:!1,__name:"DocsTocLinks",props:{links:{},ui:{},class:{}},emits:["move"],setup(a,{emit:o}){const l={wrapper:"space-y-1",base:"block text-sm/6 truncate",active:"text-primary",inactive:"text-gray-500 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-200",depth:"ml-3"},n=a,s=o,t=ne(),i=he(),{activeHeadings:u,updateHeadings:v}=Ee(),{ui:p,attrs:b}=S("docs.toc.links",h(n,"ui"),l,h(n,"class"),!0);se(()=>t.path,()=>{setTimeout(()=>{v([...document.querySelectorAll("h2"),...document.querySelectorAll("h3")])},300)},{immediate:!0});const g=y=>{i.push(`#${y}`),s("move",y)};return(y,P)=>{var T;const E=oe;return(T=y.links)!=null&&T.length?(r(),d("ul",w({key:0,class:e(p).wrapper},e(b)),[(r(!0),d(H,null,M(y.links,x=>(r(),d("li",{key:x.text,class:c([e(p).wrapper,x.depth===3&&e(p).depth])},[f("a",{href:`#${x.id}`,class:c([e(p).base,e(u).includes(x.id)?e(p).active:e(p).inactive]),onClick:be(R=>g(x.id),["prevent"])},$(x.text),11,Ne),x.children?(r(),k(E,{key:0,links:x.children},null,8,["links"])):m("",!0)],2))),128))],16)):m("",!0)}}}),Me=U({inheritAttrs:!1,__name:"DocsToc",props:{title:{default:"Table of Contents"},links:{default:()=>[]},ui:{default:()=>({})},class:{default:void 0}},setup(a){const o=q(),l={wrapper:"sticky top-[--header-height] bg-background/75 backdrop-blur group -mx-4 sm:-mx-6 px-4 sm:px-6 lg:px-4 lg:-mx-4 overflow-y-auto max-h-[calc(100vh-var(--header-height))]",container:{base:"py-3 lg:py-8 border-b border-dashed border-gray-200 dark:border-gray-800 lg:border-0 space-y-3",empty:"lg:py-8 space-y-3"},button:{base:"flex items-center gap-1.5 lg:cursor-text lg:select-text w-full",label:"font-semibold text-sm/6 truncate",trailingIcon:{name:o.ui.icons.chevron,base:"w-5 h-5 ms-auto transform transition-transform duration-200 flex-shrink-0 mr-1.5",active:"text-gray-700 dark:text-gray-200",inactive:"text-gray-500 dark:text-gray-400 group-hover:text-gray-700 dark:group-hover:text-gray-200 -rotate-90"}},links:{}},n=a,{ui:s,attrs:t}=S("docs.toc",h(n,"ui"),l,h(n,"class"),!0),i=B(!1);return(u,v)=>{var g,y;const p=A,b=oe;return r(),d("nav",w({class:e(s).wrapper},e(t)),[f("div",{class:c([(g=u.links)!=null&&g.length?e(s).container.base:e(s).container.empty])},[_(u.$slots,"top"),(y=u.links)!=null&&y.length?(r(),d("button",{key:0,class:c(e(s).button.base),tabindex:"-1",onClick:v[0]||(v[0]=P=>i.value=!e(i))},[f("span",{class:c(e(s).button.label)},$(u.title),3),C(p,{name:e(s).button.trailingIcon.name,class:c(["lg:hidden",[e(s).button.trailingIcon.base,e(i)?e(s).button.trailingIcon.active:e(s).button.trailingIcon.inactive]])},null,8,["name","class"])],2)):m("",!0),C(b,{links:u.links,ui:e(s).links,class:c([e(i)?"lg:block":"hidden lg:block"])},null,8,["links","ui","class"]),_(u.$slots,"bottom")],2)],16)}}}),Oe={key:1},Fe=U({__name:"[...slug]",async setup(a){let o,l;const n=ne(),{toc:s}=q(),{data:t}=([o,l]=Z(()=>te(n.path,()=>ae(n.path).findOne(),"$aROEKgqrzL")),o=await o,l(),o);if(!t.value)throw ke({statusCode:404,statusMessage:"Page not found",fatal:!0});const{data:i}=([o,l]=Z(()=>te(`${n.path}-surround`,()=>ae().where({_extension:"md",navigation:{$ne:!1}}).only(["title","description","_path"]).findSurround(xe(n.path)))),o=await o,l(),o);ye({titleTemplate:"%s - Nuxt x Supabase - Docs",title:t.value.title,ogTitle:`${t.value.title} - Nuxt x Supabase - Docs`,description:t.value.description,ogDescription:t.value.description});const u=z(()=>_e(t.value)),v=z(()=>{var p,b,g;return[((p=s==null?void 0:s.bottom)==null?void 0:p.edit)&&{icon:"i-heroicons-pencil-square",label:"Edit this page",to:`${s.bottom.edit}/${(b=t==null?void 0:t.value)==null?void 0:b._file}`,target:"_blank"},...((g=s==null?void 0:s.bottom)==null?void 0:g.links)||[]].filter(Boolean)});return(p,b)=>{const g=Se,y=$e,P=Ae,E=De,T=He,x=Pe,R=Me,re=we;return r(),k(re,null,ee({default:I(()=>[C(g,{title:e(t).title,description:e(t).description,links:e(t).links,headline:e(u)},null,8,["title","description","links","headline"]),C(E,{prose:""},{default:I(()=>{var D;return[e(t).body?(r(),k(y,{key:0,value:e(t)},null,8,["value"])):m("",!0),(D=e(i))!=null&&D.length?(r(),d("hr",Oe)):m("",!0),C(P,{surround:e(i)},null,8,["surround"])]}),_:1})]),_:2},[e(t).toc!==!1?{name:"right",fn:I(()=>{var D,j,V,F;return[C(R,{title:(D=e(s))==null?void 0:D.title,links:(V=(j=e(t).body)==null?void 0:j.toc)==null?void 0:V.links},ee({_:2},[(F=e(s))!=null&&F.bottom?{name:"bottom",fn:I(()=>{var J,K,G,Q,W,X;return[f("div",{class:c(["hidden lg:block space-y-6",{"!mt-6":(G=(K=(J=e(t).body)==null?void 0:J.toc)==null?void 0:K.links)==null?void 0:G.length}])},[(X=(W=(Q=e(t).body)==null?void 0:Q.toc)==null?void 0:W.links)!=null&&X.length?(r(),k(T,{key:0,type:"dashed"})):m("",!0),C(x,{title:e(s).bottom.title,links:e(v)},null,8,["title","links"])],2)]}),key:"0"}:void 0]),1032,["title","links"])]}),key:"0"}:void 0]),1024)}}});export{Fe as default}; diff --git a/_nuxt/builds/latest.json b/_nuxt/builds/latest.json index 60cf8b57..a457402b 100644 --- a/_nuxt/builds/latest.json +++ b/_nuxt/builds/latest.json @@ -1 +1 @@ -{"id":"70482045-f0af-4a07-998c-4b4484f348d7","timestamp":1703671385425} \ No newline at end of file +{"id":"329cb327-e812-42bb-8e32-b09413458b56","timestamp":1703757792564} \ No newline at end of file diff --git a/_nuxt/builds/meta/329cb327-e812-42bb-8e32-b09413458b56.json b/_nuxt/builds/meta/329cb327-e812-42bb-8e32-b09413458b56.json new file mode 100644 index 00000000..3620c999 --- /dev/null +++ b/_nuxt/builds/meta/329cb327-e812-42bb-8e32-b09413458b56.json @@ -0,0 +1 @@ +{"id":"329cb327-e812-42bb-8e32-b09413458b56","timestamp":1703757792564,"matcher":{"static":{},"wildcard":{},"dynamic":{}},"prerendered":["/","/authentication","/get-started","/usage/services/serversupabaseclient","/usage/services/serversupabaseuser","/usage/composables/usesupabaseuser","/demo","/usage/composables/usesupabaseclient","/usage/services/serversupabaseservicerole","/roadmap","/changelog"]} \ No newline at end of file diff --git a/_nuxt/builds/meta/70482045-f0af-4a07-998c-4b4484f348d7.json b/_nuxt/builds/meta/70482045-f0af-4a07-998c-4b4484f348d7.json deleted file mode 100644 index ab1d5627..00000000 --- a/_nuxt/builds/meta/70482045-f0af-4a07-998c-4b4484f348d7.json +++ /dev/null @@ -1 +0,0 @@ -{"id":"70482045-f0af-4a07-998c-4b4484f348d7","timestamp":1703671385425,"matcher":{"static":{},"wildcard":{},"dynamic":{}},"prerendered":["/","/get-started","/authentication","/usage/services/serversupabaseclient","/demo","/usage/services/serversupabaseuser","/usage/composables/usesupabaseuser","/usage/composables/usesupabaseclient","/usage/services/serversupabaseservicerole","/roadmap","/changelog"]} \ No newline at end of file diff --git a/_nuxt/client-db.b4788cc1.js b/_nuxt/client-db.a6713f3f.js similarity index 99% rename from _nuxt/client-db.b4788cc1.js rename to _nuxt/client-db.a6713f3f.js index 683d3444..ba02fd8c 100644 --- a/_nuxt/client-db.b4788cc1.js +++ b/_nuxt/client-db.a6713f3f.js @@ -1 +1 @@ -import{bf as _,bq as Y,br as j,bs as E,bt as W,bu as B,bv as $,bw as P,bx as x,bg as T,bd as J,l as M,by as k,bc as z,bz as H,j as q}from"./entry.8c781d5d.js";import{c as G}from"./_commonjsHelpers.725317a4.js";const Z="memory",F=()=>{const r=new Map;return{name:Z,options:{},hasItem(t){return r.has(t)},getItem(t){return r.get(t)??null},getItemRaw(t){return r.get(t)??null},setItem(t,n){r.set(t,n)},setItemRaw(t,n){r.set(t,n)},removeItem(t){r.delete(t)},getKeys(){return Array.from(r.keys())},clear(){r.clear()},dispose(){r.clear()}}};function V(r){return!r||typeof r.then!="function"?Promise.resolve(r):r}function p(r,...t){try{return V(r(...t))}catch(n){return Promise.reject(n)}}function Q(r){const t=typeof r;return r===null||t!=="object"&&t!=="function"}function X(r){const t=Object.getPrototypeOf(r);return!t||t.isPrototypeOf(Object)}function K(r){if(Q(r))return String(r);if(X(r)||Array.isArray(r))return JSON.stringify(r);if(typeof r.toJSON=="function")return K(r.toJSON());throw new Error("[unstorage] Cannot stringify value!")}function N(){if(typeof Buffer===void 0)throw new TypeError("[unstorage] Buffer is not supported!")}const C="base64:";function ee(r){if(typeof r=="string")return r;N();const t=Buffer.from(r).toString("base64");return C+t}function te(r){return typeof r!="string"||!r.startsWith(C)?r:(N(),Buffer.from(r.slice(C.length),"base64"))}const re=["hasItem","getItem","getItemRaw","setItem","setItemRaw","removeItem","getMeta","setMeta","removeMeta","getKeys","clear","mount","unmount"];function ne(r,t){if(t=A(t),!t)return r;const n={...r};for(const a of re)n[a]=(l="",...c)=>r[a](t+l,...c);return n.getKeys=(a="",...l)=>r.getKeys(t+a,...l).then(c=>c.map(o=>o.slice(t.length))),n}function d(r){return r?r.split("?")[0].replace(/[/\\]/g,":").replace(/:+/g,":").replace(/^:|:$/g,""):""}function ie(...r){return d(r.join(":"))}function A(r){return r=d(r),r?r+":":""}const ae="memory",se=()=>{const r=new Map;return{name:ae,options:{},hasItem(t){return r.has(t)},getItem(t){return r.get(t)??null},getItemRaw(t){return r.get(t)??null},setItem(t,n){r.set(t,n)},setItemRaw(t,n){r.set(t,n)},removeItem(t){r.delete(t)},getKeys(){return Array.from(r.keys())},clear(){r.clear()},dispose(){r.clear()}}};function oe(r={}){const t={mounts:{"":r.driver||se()},mountpoints:[""],watching:!1,watchListeners:[],unwatch:{}},n=e=>{for(const i of t.mountpoints)if(e.startsWith(i))return{base:i,relativeKey:e.slice(i.length),driver:t.mounts[i]};return{base:"",relativeKey:e,driver:t.mounts[""]}},a=(e,i)=>t.mountpoints.filter(s=>s.startsWith(e)||i&&e.startsWith(s)).map(s=>({relativeBase:e.length>s.length?e.slice(s.length):void 0,mountpoint:s,driver:t.mounts[s]})),l=(e,i)=>{if(t.watching){i=d(i);for(const s of t.watchListeners)s(e,i)}},c=async()=>{if(!t.watching){t.watching=!0;for(const e in t.mounts)t.unwatch[e]=await b(t.mounts[e],l,e)}},o=async()=>{if(t.watching){for(const e in t.unwatch)await t.unwatch[e]();t.unwatch={},t.watching=!1}},h=(e,i,s)=>{const u=new Map,f=m=>{let y=u.get(m.base);return y||(y={driver:m.driver,base:m.base,items:[]},u.set(m.base,y)),y};for(const m of e){const y=typeof m=="string",v=d(y?m:m.key),w=y?void 0:m.value,I=y||!m.options?i:{...i,...m.options},O=n(v);f(O).items.push({key:v,value:w,relativeKey:O.relativeKey,options:I})}return Promise.all([...u.values()].map(m=>s(m))).then(m=>m.flat())},g={hasItem(e,i={}){e=d(e);const{relativeKey:s,driver:u}=n(e);return p(u.hasItem,s,i)},getItem(e,i={}){e=d(e);const{relativeKey:s,driver:u}=n(e);return p(u.getItem,s,i).then(f=>_(f))},getItems(e,i){return h(e,i,s=>s.driver.getItems?p(s.driver.getItems,s.items.map(u=>({key:u.relativeKey,options:u.options})),i).then(u=>u.map(f=>({key:ie(s.base,f.key),value:_(f.value)}))):Promise.all(s.items.map(u=>p(s.driver.getItem,u.relativeKey,u.options).then(f=>({key:u.key,value:_(f)})))))},getItemRaw(e,i={}){e=d(e);const{relativeKey:s,driver:u}=n(e);return u.getItemRaw?p(u.getItemRaw,s,i):p(u.getItem,s,i).then(f=>te(f))},async setItem(e,i,s={}){if(i===void 0)return g.removeItem(e);e=d(e);const{relativeKey:u,driver:f}=n(e);f.setItem&&(await p(f.setItem,u,K(i),s),f.watch||l("update",e))},async setItems(e,i){await h(e,i,async s=>{s.driver.setItems&&await p(s.driver.setItems,s.items.map(u=>({key:u.relativeKey,value:K(u.value),options:u.options})),i),s.driver.setItem&&await Promise.all(s.items.map(u=>p(s.driver.setItem,u.relativeKey,K(u.value),u.options)))})},async setItemRaw(e,i,s={}){if(i===void 0)return g.removeItem(e,s);e=d(e);const{relativeKey:u,driver:f}=n(e);if(f.setItemRaw)await p(f.setItemRaw,u,i,s);else if(f.setItem)await p(f.setItem,u,ee(i),s);else return;f.watch||l("update",e)},async removeItem(e,i={}){typeof i=="boolean"&&(i={removeMeta:i}),e=d(e);const{relativeKey:s,driver:u}=n(e);u.removeItem&&(await p(u.removeItem,s,i),(i.removeMeta||i.removeMata)&&await p(u.removeItem,s+"$",i),u.watch||l("remove",e))},async getMeta(e,i={}){typeof i=="boolean"&&(i={nativeOnly:i}),e=d(e);const{relativeKey:s,driver:u}=n(e),f=Object.create(null);if(u.getMeta&&Object.assign(f,await p(u.getMeta,s,i)),!i.nativeOnly){const m=await p(u.getItem,s+"$",i).then(y=>_(y));m&&typeof m=="object"&&(typeof m.atime=="string"&&(m.atime=new Date(m.atime)),typeof m.mtime=="string"&&(m.mtime=new Date(m.mtime)),Object.assign(f,m))}return f},setMeta(e,i,s={}){return this.setItem(e+"$",i,s)},removeMeta(e,i={}){return this.removeItem(e+"$",i)},async getKeys(e,i={}){e=A(e);const s=a(e,!0);let u=[];const f=[];for(const m of s){const v=(await p(m.driver.getKeys,m.relativeBase,i)).map(w=>m.mountpoint+d(w)).filter(w=>!u.some(I=>w.startsWith(I)));f.push(...v),u=[m.mountpoint,...u.filter(w=>!w.startsWith(m.mountpoint))]}return e?f.filter(m=>m.startsWith(e)&&!m.endsWith("$")):f.filter(m=>!m.endsWith("$"))},async clear(e,i={}){e=A(e),await Promise.all(a(e,!1).map(async s=>{if(s.driver.clear)return p(s.driver.clear,s.relativeBase,i);if(s.driver.removeItem){const u=await s.driver.getKeys(s.relativeBase||"",i);return Promise.all(u.map(f=>s.driver.removeItem(f,i)))}}))},async dispose(){await Promise.all(Object.values(t.mounts).map(e=>D(e)))},async watch(e){return await c(),t.watchListeners.push(e),async()=>{t.watchListeners=t.watchListeners.filter(i=>i!==e),t.watchListeners.length===0&&await o()}},async unwatch(){t.watchListeners=[],await o()},mount(e,i){if(e=A(e),e&&t.mounts[e])throw new Error(`already mounted at ${e}`);return e&&(t.mountpoints.push(e),t.mountpoints.sort((s,u)=>u.length-s.length)),t.mounts[e]=i,t.watching&&Promise.resolve(b(i,l,e)).then(s=>{t.unwatch[e]=s}).catch(console.error),g},async unmount(e,i=!0){e=A(e),!(!e||!t.mounts[e])&&(t.watching&&e in t.unwatch&&(t.unwatch[e](),delete t.unwatch[e]),i&&await D(t.mounts[e]),t.mountpoints=t.mountpoints.filter(s=>s!==e),delete t.mounts[e])},getMount(e=""){e=d(e)+":";const i=n(e);return{driver:i.driver,base:i.base}},getMounts(e="",i={}){return e=d(e),a(e,i.parents).map(u=>({driver:u.driver,base:u.mountpoint}))}};return g}function b(r,t,n){return r.watch?r.watch((a,l)=>t(a,n+l)):()=>{}}async function D(r){typeof r.dispose=="function"&&await p(r.dispose)}function ue(r={}){const t=ce(n,r.operators);function n(a,l){return typeof l!="object"||l instanceof RegExp?t.$eq(a,l):Object.keys(l||{}).every(c=>{const o=l[c];if(c.startsWith("$")&&t[c]){const h=t[c];return typeof h=="function"?h(a,o):!1}return n(Y(a,c),o)})}return n}function ce(r,t={}){return{$match:(n,a)=>r(n,a),$eq:(n,a)=>a instanceof RegExp?a.test(n):n===a,$ne:(n,a)=>a instanceof RegExp?!a.test(n):n!==a,$not:(n,a)=>!r(n,a),$and:(n,a)=>(j(a,"$and requires an array as condition"),a.every(l=>r(n,l))),$or:(n,a)=>(j(a,"$or requires an array as condition"),a.some(l=>r(n,l))),$in:(n,a)=>E(a).some(l=>Array.isArray(n)?r(n,{$contains:l}):r(n,l)),$contains:(n,a)=>(n=Array.isArray(n)?n:String(n),E(a).every(l=>n.includes(l))),$icontains:(n,a)=>{if(typeof a!="string")throw new TypeError("$icontains requires a string, use $contains instead");return n=String(n).toLocaleLowerCase(),E(a).every(l=>n.includes(l.toLocaleLowerCase()))},$containsAny:(n,a)=>(j(a,"$containsAny requires an array as condition"),n=Array.isArray(n)?n:String(n),a.some(l=>n.includes(l))),$exists:(n,a)=>a?typeof n<"u":typeof n>"u",$type:(n,a)=>typeof n===String(a),$regex:(n,a)=>{if(!(a instanceof RegExp)){const l=String(a).match(/\/(.*)\/([dgimsuy]*)$/);a=l?new RegExp(l[1],l[2]||""):new RegExp(a)}return a.test(String(n||""))},$lt:(n,a)=>nn<=a,$gt:(n,a)=>n>a,$gte:(n,a)=>n>=a,...t||{}}}function le(r){const t=ue(),n=(c,{query:o,before:h,after:g})=>{const e=typeof o=="string"?{_path:o}:o,i=c.findIndex(u=>t(u,e));h=h??1,g=g??1;const s=new Array(h+g).fill(null,0);return i===-1?s:s.map((u,f)=>c[i-h+f+ +(f>=h)]||null)},a=[(c,o)=>{const h=c.result.filter(g=>E(o.where).every(e=>t(g,e)));return{...c,result:h,total:h.length}},(c,o)=>E(o.sort).forEach(h=>B(c.result,h)),function(o,h,g){var e;if(h.surround){let i=n(((e=o.result)==null?void 0:e.length)===1?g:o.result,h.surround);i=$(P(h.without))(i),i=$(x(h.only))(i),o.surround=i}return o}],l=[(c,o)=>{if(o.skip)return{...c,result:c.result.slice(o.skip),skip:o.skip}},(c,o)=>{if(o.limit)return{...c,result:c.result.slice(0,o.limit),limit:o.limit}},function(o,h,g){var e,i,s;if(h.dirConfig){const u=((e=o.result[0])==null?void 0:e._path)||((s=(i=h.where)==null?void 0:i.find(f=>f._path))==null?void 0:s._path);if(typeof u=="string"){const f=g.find(m=>m._path===T(u,"_dir"));f&&(o.dirConfig={_path:f._path,...P(["_"])(f)})}}return o},(c,o)=>({...c,result:$(P(o.without))(c.result)}),(c,o)=>({...c,result:$(x(o.only))(c.result)})];return async c=>{const o=await r(),h=c.params(),g={result:o,limit:0,skip:0,total:o.length},e=a.reduce((s,u)=>u(s,h,o)||s,g);if(h.count)return{result:e.result.length};const i=l.reduce((s,u)=>u(s,h,o)||s,e);return h.first?{...W(["skip","limit","total"])(i),result:i.result[0]}:i}}function L(r){const t=le(r);return async n=>{var c;const a=n.params(),l=await t(n);return a.surround?l==null?void 0:l.surround:(l!=null&&l.dirConfig&&(l.result={_path:(c=l.dirConfig)==null?void 0:c._path,...l.result,_dir:l.dirConfig}),l==null?void 0:l.result)}}var fe={exports:{}};(function(r,t){(function(n,a,l){r.exports=l(),r.exports.default=l()})("slugify",G,function(){var n=JSON.parse(`{"$":"dollar","%":"percent","&":"and","<":"less",">":"greater","|":"or","¢":"cent","£":"pound","¤":"currency","¥":"yen","©":"(c)","ª":"a","®":"(r)","º":"o","À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Æ":"AE","Ç":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ý":"Y","Þ":"TH","ß":"ss","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","æ":"ae","ç":"c","è":"e","é":"e","ê":"e","ë":"e","ì":"i","í":"i","î":"i","ï":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ù":"u","ú":"u","û":"u","ü":"u","ý":"y","þ":"th","ÿ":"y","Ā":"A","ā":"a","Ă":"A","ă":"a","Ą":"A","ą":"a","Ć":"C","ć":"c","Č":"C","č":"c","Ď":"D","ď":"d","Đ":"DJ","đ":"dj","Ē":"E","ē":"e","Ė":"E","ė":"e","Ę":"e","ę":"e","Ě":"E","ě":"e","Ğ":"G","ğ":"g","Ģ":"G","ģ":"g","Ĩ":"I","ĩ":"i","Ī":"i","ī":"i","Į":"I","į":"i","İ":"I","ı":"i","Ķ":"k","ķ":"k","Ļ":"L","ļ":"l","Ľ":"L","ľ":"l","Ł":"L","ł":"l","Ń":"N","ń":"n","Ņ":"N","ņ":"n","Ň":"N","ň":"n","Ō":"O","ō":"o","Ő":"O","ő":"o","Œ":"OE","œ":"oe","Ŕ":"R","ŕ":"r","Ř":"R","ř":"r","Ś":"S","ś":"s","Ş":"S","ş":"s","Š":"S","š":"s","Ţ":"T","ţ":"t","Ť":"T","ť":"t","Ũ":"U","ũ":"u","Ū":"u","ū":"u","Ů":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","ź":"z","Ż":"Z","ż":"z","Ž":"Z","ž":"z","Ə":"E","ƒ":"f","Ơ":"O","ơ":"o","Ư":"U","ư":"u","Lj":"LJ","lj":"lj","Nj":"NJ","nj":"nj","Ș":"S","ș":"s","Ț":"T","ț":"t","ə":"e","˚":"o","Ά":"A","Έ":"E","Ή":"H","Ί":"I","Ό":"O","Ύ":"Y","Ώ":"W","ΐ":"i","Α":"A","Β":"B","Γ":"G","Δ":"D","Ε":"E","Ζ":"Z","Η":"H","Θ":"8","Ι":"I","Κ":"K","Λ":"L","Μ":"M","Ν":"N","Ξ":"3","Ο":"O","Π":"P","Ρ":"R","Σ":"S","Τ":"T","Υ":"Y","Φ":"F","Χ":"X","Ψ":"PS","Ω":"W","Ϊ":"I","Ϋ":"Y","ά":"a","έ":"e","ή":"h","ί":"i","ΰ":"y","α":"a","β":"b","γ":"g","δ":"d","ε":"e","ζ":"z","η":"h","θ":"8","ι":"i","κ":"k","λ":"l","μ":"m","ν":"n","ξ":"3","ο":"o","π":"p","ρ":"r","ς":"s","σ":"s","τ":"t","υ":"y","φ":"f","χ":"x","ψ":"ps","ω":"w","ϊ":"i","ϋ":"y","ό":"o","ύ":"y","ώ":"w","Ё":"Yo","Ђ":"DJ","Є":"Ye","І":"I","Ї":"Yi","Ј":"J","Љ":"LJ","Њ":"NJ","Ћ":"C","Џ":"DZ","А":"A","Б":"B","В":"V","Г":"G","Д":"D","Е":"E","Ж":"Zh","З":"Z","И":"I","Й":"J","К":"K","Л":"L","М":"M","Н":"N","О":"O","П":"P","Р":"R","С":"S","Т":"T","У":"U","Ф":"F","Х":"H","Ц":"C","Ч":"Ch","Ш":"Sh","Щ":"Sh","Ъ":"U","Ы":"Y","Ь":"","Э":"E","Ю":"Yu","Я":"Ya","а":"a","б":"b","в":"v","г":"g","д":"d","е":"e","ж":"zh","з":"z","и":"i","й":"j","к":"k","л":"l","м":"m","н":"n","о":"o","п":"p","р":"r","с":"s","т":"t","у":"u","ф":"f","х":"h","ц":"c","ч":"ch","ш":"sh","щ":"sh","ъ":"u","ы":"y","ь":"","э":"e","ю":"yu","я":"ya","ё":"yo","ђ":"dj","є":"ye","і":"i","ї":"yi","ј":"j","љ":"lj","њ":"nj","ћ":"c","ѝ":"u","џ":"dz","Ґ":"G","ґ":"g","Ғ":"GH","ғ":"gh","Қ":"KH","қ":"kh","Ң":"NG","ң":"ng","Ү":"UE","ү":"ue","Ұ":"U","ұ":"u","Һ":"H","һ":"h","Ә":"AE","ә":"ae","Ө":"OE","ө":"oe","Ա":"A","Բ":"B","Գ":"G","Դ":"D","Ե":"E","Զ":"Z","Է":"E'","Ը":"Y'","Թ":"T'","Ժ":"JH","Ի":"I","Լ":"L","Խ":"X","Ծ":"C'","Կ":"K","Հ":"H","Ձ":"D'","Ղ":"GH","Ճ":"TW","Մ":"M","Յ":"Y","Ն":"N","Շ":"SH","Չ":"CH","Պ":"P","Ջ":"J","Ռ":"R'","Ս":"S","Վ":"V","Տ":"T","Ր":"R","Ց":"C","Փ":"P'","Ք":"Q'","Օ":"O''","Ֆ":"F","և":"EV","ء":"a","آ":"aa","أ":"a","ؤ":"u","إ":"i","ئ":"e","ا":"a","ب":"b","ة":"h","ت":"t","ث":"th","ج":"j","ح":"h","خ":"kh","د":"d","ذ":"th","ر":"r","ز":"z","س":"s","ش":"sh","ص":"s","ض":"dh","ط":"t","ظ":"z","ع":"a","غ":"gh","ف":"f","ق":"q","ك":"k","ل":"l","م":"m","ن":"n","ه":"h","و":"w","ى":"a","ي":"y","ً":"an","ٌ":"on","ٍ":"en","َ":"a","ُ":"u","ِ":"e","ْ":"","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","پ":"p","چ":"ch","ژ":"zh","ک":"k","گ":"g","ی":"y","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","฿":"baht","ა":"a","ბ":"b","გ":"g","დ":"d","ე":"e","ვ":"v","ზ":"z","თ":"t","ი":"i","კ":"k","ლ":"l","მ":"m","ნ":"n","ო":"o","პ":"p","ჟ":"zh","რ":"r","ს":"s","ტ":"t","უ":"u","ფ":"f","ქ":"k","ღ":"gh","ყ":"q","შ":"sh","ჩ":"ch","ც":"ts","ძ":"dz","წ":"ts","ჭ":"ch","ხ":"kh","ჯ":"j","ჰ":"h","Ṣ":"S","ṣ":"s","Ẁ":"W","ẁ":"w","Ẃ":"W","ẃ":"w","Ẅ":"W","ẅ":"w","ẞ":"SS","Ạ":"A","ạ":"a","Ả":"A","ả":"a","Ấ":"A","ấ":"a","Ầ":"A","ầ":"a","Ẩ":"A","ẩ":"a","Ẫ":"A","ẫ":"a","Ậ":"A","ậ":"a","Ắ":"A","ắ":"a","Ằ":"A","ằ":"a","Ẳ":"A","ẳ":"a","Ẵ":"A","ẵ":"a","Ặ":"A","ặ":"a","Ẹ":"E","ẹ":"e","Ẻ":"E","ẻ":"e","Ẽ":"E","ẽ":"e","Ế":"E","ế":"e","Ề":"E","ề":"e","Ể":"E","ể":"e","Ễ":"E","ễ":"e","Ệ":"E","ệ":"e","Ỉ":"I","ỉ":"i","Ị":"I","ị":"i","Ọ":"O","ọ":"o","Ỏ":"O","ỏ":"o","Ố":"O","ố":"o","Ồ":"O","ồ":"o","Ổ":"O","ổ":"o","Ỗ":"O","ỗ":"o","Ộ":"O","ộ":"o","Ớ":"O","ớ":"o","Ờ":"O","ờ":"o","Ở":"O","ở":"o","Ỡ":"O","ỡ":"o","Ợ":"O","ợ":"o","Ụ":"U","ụ":"u","Ủ":"U","ủ":"u","Ứ":"U","ứ":"u","Ừ":"U","ừ":"u","Ử":"U","ử":"u","Ữ":"U","ữ":"u","Ự":"U","ự":"u","Ỳ":"Y","ỳ":"y","Ỵ":"Y","ỵ":"y","Ỷ":"Y","ỷ":"y","Ỹ":"Y","ỹ":"y","–":"-","‘":"'","’":"'","“":"\\"","”":"\\"","„":"\\"","†":"+","•":"*","…":"...","₠":"ecu","₢":"cruzeiro","₣":"french franc","₤":"lira","₥":"mill","₦":"naira","₧":"peseta","₨":"rupee","₩":"won","₪":"new shequel","₫":"dong","€":"euro","₭":"kip","₮":"tugrik","₯":"drachma","₰":"penny","₱":"peso","₲":"guarani","₳":"austral","₴":"hryvnia","₵":"cedi","₸":"kazakhstani tenge","₹":"indian rupee","₺":"turkish lira","₽":"russian ruble","₿":"bitcoin","℠":"sm","™":"tm","∂":"d","∆":"delta","∑":"sum","∞":"infinity","♥":"love","元":"yuan","円":"yen","﷼":"rial","ﻵ":"laa","ﻷ":"laa","ﻹ":"lai","ﻻ":"la"}`),a=JSON.parse('{"bg":{"Й":"Y","Ц":"Ts","Щ":"Sht","Ъ":"A","Ь":"Y","й":"y","ц":"ts","щ":"sht","ъ":"a","ь":"y"},"de":{"Ä":"AE","ä":"ae","Ö":"OE","ö":"oe","Ü":"UE","ü":"ue","ß":"ss","%":"prozent","&":"und","|":"oder","∑":"summe","∞":"unendlich","♥":"liebe"},"es":{"%":"por ciento","&":"y","<":"menor que",">":"mayor que","|":"o","¢":"centavos","£":"libras","¤":"moneda","₣":"francos","∑":"suma","∞":"infinito","♥":"amor"},"fr":{"%":"pourcent","&":"et","<":"plus petit",">":"plus grand","|":"ou","¢":"centime","£":"livre","¤":"devise","₣":"franc","∑":"somme","∞":"infini","♥":"amour"},"pt":{"%":"porcento","&":"e","<":"menor",">":"maior","|":"ou","¢":"centavo","∑":"soma","£":"libra","∞":"infinito","♥":"amor"},"uk":{"И":"Y","и":"y","Й":"Y","й":"y","Ц":"Ts","ц":"ts","Х":"Kh","х":"kh","Щ":"Shch","щ":"shch","Г":"H","г":"h"},"vi":{"Đ":"D","đ":"d"},"da":{"Ø":"OE","ø":"oe","Å":"AA","å":"aa","%":"procent","&":"og","|":"eller","$":"dollar","<":"mindre end",">":"større end"},"nb":{"&":"og","Å":"AA","Æ":"AE","Ø":"OE","å":"aa","æ":"ae","ø":"oe"},"it":{"&":"e"},"nl":{"&":"en"},"sv":{"&":"och","Å":"AA","Ä":"AE","Ö":"OE","å":"aa","ä":"ae","ö":"oe"}}');function l(c,o){if(typeof c!="string")throw new Error("slugify: string argument expected");o=typeof o=="string"?{replacement:o}:o||{};var h=a[o.locale]||{},g=o.replacement===void 0?"-":o.replacement,e=o.trim===void 0?!0:o.trim,i=c.normalize().split("").reduce(function(s,u){var f=h[u];return f===void 0&&(f=n[u]),f===void 0&&(f=u),f===g&&(f=" "),s+f.replace(o.remove||/[^\w\s$*_+~.()'"!\-:@]+/g,"")},"");return o.strict&&(i=i.replace(/[^A-Za-z0-9\s]/g,"")),e&&(i=i.trim()),i=i.replace(/\s+/g,g),o.lower&&(i=i.toLowerCase()),i}return l.extend=function(c){Object.assign(n,c)},l})})(fe);const me=r=>r.split(/[\s-]/g).map(J).join(" ");function he(r,t){const{navigation:n}=M().public.content,a=c=>({...pe(["title",...n.fields])(c),...de(c==null?void 0:c.navigation)?c.navigation:{}}),l=r.sort((c,o)=>c._path.localeCompare(o._path)).reduce((c,o)=>{const h=o._path.substring(1).split("/"),g=o._id.split(":").slice(1),e=!!g[g.length-1].match(/([1-9][0-9]*\.)?index.md/g),i=f=>({title:f.title,_path:f._path,_file:f._file,children:[],...a(f),...f._draft?{_draft:!0}:{}}),s=i(o);if(e){const f=t[s._path];if(typeof(f==null?void 0:f.navigation)<"u"&&!(f!=null&&f.navigation))return c;if(o._path!=="/"){const m=i(o);s.children.push(m)}Object.assign(s,a(f))}return h.length===1?(c.push(s),c):(h.slice(0,-1).reduce((f,m,y)=>{const v="/"+h.slice(0,y+1).join("/"),w=t[v];if(typeof(w==null?void 0:w.navigation)<"u"&&!w.navigation)return[];let I=f.find(O=>O._path===v);return I||(I={title:me(m),_path:v,_file:o._file,children:[],...a(w)},f.push(I)),I.children},c).push(s),c)},[]);return U(l)}const ge=new Intl.Collator(void 0,{numeric:!0,sensitivity:"base"});function U(r){var n;const t=r.sort((a,l)=>ge.compare(a._file,l._file));for(const a of t)(n=a.children)!=null&&n.length?U(a.children):delete a.children,delete a._file;return r}function pe(r){return t=>(t=t||{},r&&r.length?r.filter(n=>typeof t[n]<"u").reduce((n,a)=>Object.assign(n,{[a]:t[a]}),{}):t)}function de(r){return Object.prototype.toString.call(r)==="[object Object]"}const ye=r=>H(r,M().public.content.api.baseURL),we=ne(oe({driver:F()}),"@content");function ve(r){async function t(){const n=new Set(await r.getKeys("cache:")),a=z().getPreviewToken();if(a){const c=await r.getItem(`${a}$`).then(g=>g||{});if(Array.isArray(c.ignoreSources)){const g=c.ignoreSources.map(e=>`cache:${e.trim()}:`);for(const e of n)g.some(i=>e.startsWith(i))&&n.delete(e)}const o=await r.getKeys(`${a}:`),h=await Promise.all(o.map(g=>r.getItem(g)));for(const g of h)n.delete(`cache:${g._id}`),g.__deleted||n.add(`${a}:${g._id}`)}return await Promise.all(Array.from(n).map(c=>r.getItem(c)))}return{storage:r,fetch:L(t),query:n=>k(L(t),{initialParams:n,legacy:!0})}}let R=null,S=null;async function Ie(){return S?await S:R||(S=Ae(),R=await S),R}async function Ae(){const r=q(),{content:t}=M().public,n=ve(we),a=await n.storage.getItem("integrity");if(t.integrity!==+(a||0)){const{contents:l,navigation:c}=await $fetch(ye(t.integrity?`cache.${t.integrity}.json`:"cache.json"));await Promise.all(l.map(o=>n.storage.setItem(`cache:${o._id}`,o))),await n.storage.setItem("navigation",c),await n.storage.setItem("integrity",t.integrity)}return await r.callHook("content:storage",n.storage),n}async function _e(r){const t=await Ie();if(!z().getPreviewToken()&&Object.keys(r||{}).length===0)return t.storage.getItem("navigation");const n=await t.query(r).where({_partial:!1,navigation:{$ne:!1}}).find(),l=(await t.query().where({_path:/\/_dir$/i,_partial:!0}).find()).reduce((c,o)=>{var g;((g=o.title)==null?void 0:g.toLowerCase())==="dir"&&(o.title=void 0);const h=o._path.split("/").slice(0,-1).join("/")||"/";return c[h]={...o,...o.body},c},{});return he(n,l)}export{we as contentStorage,ve as createDB,_e as generateNavigation,Ie as useContentDatabase}; +import{bf as _,bq as Y,br as j,bs as E,bt as W,bu as B,bv as $,bw as P,bx as x,bg as T,bd as J,l as M,by as k,bc as z,bz as H,j as q}from"./entry.ae6f67a5.js";import{c as G}from"./_commonjsHelpers.725317a4.js";const Z="memory",F=()=>{const r=new Map;return{name:Z,options:{},hasItem(t){return r.has(t)},getItem(t){return r.get(t)??null},getItemRaw(t){return r.get(t)??null},setItem(t,n){r.set(t,n)},setItemRaw(t,n){r.set(t,n)},removeItem(t){r.delete(t)},getKeys(){return Array.from(r.keys())},clear(){r.clear()},dispose(){r.clear()}}};function V(r){return!r||typeof r.then!="function"?Promise.resolve(r):r}function p(r,...t){try{return V(r(...t))}catch(n){return Promise.reject(n)}}function Q(r){const t=typeof r;return r===null||t!=="object"&&t!=="function"}function X(r){const t=Object.getPrototypeOf(r);return!t||t.isPrototypeOf(Object)}function K(r){if(Q(r))return String(r);if(X(r)||Array.isArray(r))return JSON.stringify(r);if(typeof r.toJSON=="function")return K(r.toJSON());throw new Error("[unstorage] Cannot stringify value!")}function N(){if(typeof Buffer===void 0)throw new TypeError("[unstorage] Buffer is not supported!")}const C="base64:";function ee(r){if(typeof r=="string")return r;N();const t=Buffer.from(r).toString("base64");return C+t}function te(r){return typeof r!="string"||!r.startsWith(C)?r:(N(),Buffer.from(r.slice(C.length),"base64"))}const re=["hasItem","getItem","getItemRaw","setItem","setItemRaw","removeItem","getMeta","setMeta","removeMeta","getKeys","clear","mount","unmount"];function ne(r,t){if(t=A(t),!t)return r;const n={...r};for(const a of re)n[a]=(l="",...c)=>r[a](t+l,...c);return n.getKeys=(a="",...l)=>r.getKeys(t+a,...l).then(c=>c.map(o=>o.slice(t.length))),n}function d(r){return r?r.split("?")[0].replace(/[/\\]/g,":").replace(/:+/g,":").replace(/^:|:$/g,""):""}function ie(...r){return d(r.join(":"))}function A(r){return r=d(r),r?r+":":""}const ae="memory",se=()=>{const r=new Map;return{name:ae,options:{},hasItem(t){return r.has(t)},getItem(t){return r.get(t)??null},getItemRaw(t){return r.get(t)??null},setItem(t,n){r.set(t,n)},setItemRaw(t,n){r.set(t,n)},removeItem(t){r.delete(t)},getKeys(){return Array.from(r.keys())},clear(){r.clear()},dispose(){r.clear()}}};function oe(r={}){const t={mounts:{"":r.driver||se()},mountpoints:[""],watching:!1,watchListeners:[],unwatch:{}},n=e=>{for(const i of t.mountpoints)if(e.startsWith(i))return{base:i,relativeKey:e.slice(i.length),driver:t.mounts[i]};return{base:"",relativeKey:e,driver:t.mounts[""]}},a=(e,i)=>t.mountpoints.filter(s=>s.startsWith(e)||i&&e.startsWith(s)).map(s=>({relativeBase:e.length>s.length?e.slice(s.length):void 0,mountpoint:s,driver:t.mounts[s]})),l=(e,i)=>{if(t.watching){i=d(i);for(const s of t.watchListeners)s(e,i)}},c=async()=>{if(!t.watching){t.watching=!0;for(const e in t.mounts)t.unwatch[e]=await b(t.mounts[e],l,e)}},o=async()=>{if(t.watching){for(const e in t.unwatch)await t.unwatch[e]();t.unwatch={},t.watching=!1}},h=(e,i,s)=>{const u=new Map,f=m=>{let y=u.get(m.base);return y||(y={driver:m.driver,base:m.base,items:[]},u.set(m.base,y)),y};for(const m of e){const y=typeof m=="string",v=d(y?m:m.key),w=y?void 0:m.value,I=y||!m.options?i:{...i,...m.options},O=n(v);f(O).items.push({key:v,value:w,relativeKey:O.relativeKey,options:I})}return Promise.all([...u.values()].map(m=>s(m))).then(m=>m.flat())},g={hasItem(e,i={}){e=d(e);const{relativeKey:s,driver:u}=n(e);return p(u.hasItem,s,i)},getItem(e,i={}){e=d(e);const{relativeKey:s,driver:u}=n(e);return p(u.getItem,s,i).then(f=>_(f))},getItems(e,i){return h(e,i,s=>s.driver.getItems?p(s.driver.getItems,s.items.map(u=>({key:u.relativeKey,options:u.options})),i).then(u=>u.map(f=>({key:ie(s.base,f.key),value:_(f.value)}))):Promise.all(s.items.map(u=>p(s.driver.getItem,u.relativeKey,u.options).then(f=>({key:u.key,value:_(f)})))))},getItemRaw(e,i={}){e=d(e);const{relativeKey:s,driver:u}=n(e);return u.getItemRaw?p(u.getItemRaw,s,i):p(u.getItem,s,i).then(f=>te(f))},async setItem(e,i,s={}){if(i===void 0)return g.removeItem(e);e=d(e);const{relativeKey:u,driver:f}=n(e);f.setItem&&(await p(f.setItem,u,K(i),s),f.watch||l("update",e))},async setItems(e,i){await h(e,i,async s=>{s.driver.setItems&&await p(s.driver.setItems,s.items.map(u=>({key:u.relativeKey,value:K(u.value),options:u.options})),i),s.driver.setItem&&await Promise.all(s.items.map(u=>p(s.driver.setItem,u.relativeKey,K(u.value),u.options)))})},async setItemRaw(e,i,s={}){if(i===void 0)return g.removeItem(e,s);e=d(e);const{relativeKey:u,driver:f}=n(e);if(f.setItemRaw)await p(f.setItemRaw,u,i,s);else if(f.setItem)await p(f.setItem,u,ee(i),s);else return;f.watch||l("update",e)},async removeItem(e,i={}){typeof i=="boolean"&&(i={removeMeta:i}),e=d(e);const{relativeKey:s,driver:u}=n(e);u.removeItem&&(await p(u.removeItem,s,i),(i.removeMeta||i.removeMata)&&await p(u.removeItem,s+"$",i),u.watch||l("remove",e))},async getMeta(e,i={}){typeof i=="boolean"&&(i={nativeOnly:i}),e=d(e);const{relativeKey:s,driver:u}=n(e),f=Object.create(null);if(u.getMeta&&Object.assign(f,await p(u.getMeta,s,i)),!i.nativeOnly){const m=await p(u.getItem,s+"$",i).then(y=>_(y));m&&typeof m=="object"&&(typeof m.atime=="string"&&(m.atime=new Date(m.atime)),typeof m.mtime=="string"&&(m.mtime=new Date(m.mtime)),Object.assign(f,m))}return f},setMeta(e,i,s={}){return this.setItem(e+"$",i,s)},removeMeta(e,i={}){return this.removeItem(e+"$",i)},async getKeys(e,i={}){e=A(e);const s=a(e,!0);let u=[];const f=[];for(const m of s){const v=(await p(m.driver.getKeys,m.relativeBase,i)).map(w=>m.mountpoint+d(w)).filter(w=>!u.some(I=>w.startsWith(I)));f.push(...v),u=[m.mountpoint,...u.filter(w=>!w.startsWith(m.mountpoint))]}return e?f.filter(m=>m.startsWith(e)&&!m.endsWith("$")):f.filter(m=>!m.endsWith("$"))},async clear(e,i={}){e=A(e),await Promise.all(a(e,!1).map(async s=>{if(s.driver.clear)return p(s.driver.clear,s.relativeBase,i);if(s.driver.removeItem){const u=await s.driver.getKeys(s.relativeBase||"",i);return Promise.all(u.map(f=>s.driver.removeItem(f,i)))}}))},async dispose(){await Promise.all(Object.values(t.mounts).map(e=>D(e)))},async watch(e){return await c(),t.watchListeners.push(e),async()=>{t.watchListeners=t.watchListeners.filter(i=>i!==e),t.watchListeners.length===0&&await o()}},async unwatch(){t.watchListeners=[],await o()},mount(e,i){if(e=A(e),e&&t.mounts[e])throw new Error(`already mounted at ${e}`);return e&&(t.mountpoints.push(e),t.mountpoints.sort((s,u)=>u.length-s.length)),t.mounts[e]=i,t.watching&&Promise.resolve(b(i,l,e)).then(s=>{t.unwatch[e]=s}).catch(console.error),g},async unmount(e,i=!0){e=A(e),!(!e||!t.mounts[e])&&(t.watching&&e in t.unwatch&&(t.unwatch[e](),delete t.unwatch[e]),i&&await D(t.mounts[e]),t.mountpoints=t.mountpoints.filter(s=>s!==e),delete t.mounts[e])},getMount(e=""){e=d(e)+":";const i=n(e);return{driver:i.driver,base:i.base}},getMounts(e="",i={}){return e=d(e),a(e,i.parents).map(u=>({driver:u.driver,base:u.mountpoint}))}};return g}function b(r,t,n){return r.watch?r.watch((a,l)=>t(a,n+l)):()=>{}}async function D(r){typeof r.dispose=="function"&&await p(r.dispose)}function ue(r={}){const t=ce(n,r.operators);function n(a,l){return typeof l!="object"||l instanceof RegExp?t.$eq(a,l):Object.keys(l||{}).every(c=>{const o=l[c];if(c.startsWith("$")&&t[c]){const h=t[c];return typeof h=="function"?h(a,o):!1}return n(Y(a,c),o)})}return n}function ce(r,t={}){return{$match:(n,a)=>r(n,a),$eq:(n,a)=>a instanceof RegExp?a.test(n):n===a,$ne:(n,a)=>a instanceof RegExp?!a.test(n):n!==a,$not:(n,a)=>!r(n,a),$and:(n,a)=>(j(a,"$and requires an array as condition"),a.every(l=>r(n,l))),$or:(n,a)=>(j(a,"$or requires an array as condition"),a.some(l=>r(n,l))),$in:(n,a)=>E(a).some(l=>Array.isArray(n)?r(n,{$contains:l}):r(n,l)),$contains:(n,a)=>(n=Array.isArray(n)?n:String(n),E(a).every(l=>n.includes(l))),$icontains:(n,a)=>{if(typeof a!="string")throw new TypeError("$icontains requires a string, use $contains instead");return n=String(n).toLocaleLowerCase(),E(a).every(l=>n.includes(l.toLocaleLowerCase()))},$containsAny:(n,a)=>(j(a,"$containsAny requires an array as condition"),n=Array.isArray(n)?n:String(n),a.some(l=>n.includes(l))),$exists:(n,a)=>a?typeof n<"u":typeof n>"u",$type:(n,a)=>typeof n===String(a),$regex:(n,a)=>{if(!(a instanceof RegExp)){const l=String(a).match(/\/(.*)\/([dgimsuy]*)$/);a=l?new RegExp(l[1],l[2]||""):new RegExp(a)}return a.test(String(n||""))},$lt:(n,a)=>nn<=a,$gt:(n,a)=>n>a,$gte:(n,a)=>n>=a,...t||{}}}function le(r){const t=ue(),n=(c,{query:o,before:h,after:g})=>{const e=typeof o=="string"?{_path:o}:o,i=c.findIndex(u=>t(u,e));h=h??1,g=g??1;const s=new Array(h+g).fill(null,0);return i===-1?s:s.map((u,f)=>c[i-h+f+ +(f>=h)]||null)},a=[(c,o)=>{const h=c.result.filter(g=>E(o.where).every(e=>t(g,e)));return{...c,result:h,total:h.length}},(c,o)=>E(o.sort).forEach(h=>B(c.result,h)),function(o,h,g){var e;if(h.surround){let i=n(((e=o.result)==null?void 0:e.length)===1?g:o.result,h.surround);i=$(P(h.without))(i),i=$(x(h.only))(i),o.surround=i}return o}],l=[(c,o)=>{if(o.skip)return{...c,result:c.result.slice(o.skip),skip:o.skip}},(c,o)=>{if(o.limit)return{...c,result:c.result.slice(0,o.limit),limit:o.limit}},function(o,h,g){var e,i,s;if(h.dirConfig){const u=((e=o.result[0])==null?void 0:e._path)||((s=(i=h.where)==null?void 0:i.find(f=>f._path))==null?void 0:s._path);if(typeof u=="string"){const f=g.find(m=>m._path===T(u,"_dir"));f&&(o.dirConfig={_path:f._path,...P(["_"])(f)})}}return o},(c,o)=>({...c,result:$(P(o.without))(c.result)}),(c,o)=>({...c,result:$(x(o.only))(c.result)})];return async c=>{const o=await r(),h=c.params(),g={result:o,limit:0,skip:0,total:o.length},e=a.reduce((s,u)=>u(s,h,o)||s,g);if(h.count)return{result:e.result.length};const i=l.reduce((s,u)=>u(s,h,o)||s,e);return h.first?{...W(["skip","limit","total"])(i),result:i.result[0]}:i}}function L(r){const t=le(r);return async n=>{var c;const a=n.params(),l=await t(n);return a.surround?l==null?void 0:l.surround:(l!=null&&l.dirConfig&&(l.result={_path:(c=l.dirConfig)==null?void 0:c._path,...l.result,_dir:l.dirConfig}),l==null?void 0:l.result)}}var fe={exports:{}};(function(r,t){(function(n,a,l){r.exports=l(),r.exports.default=l()})("slugify",G,function(){var n=JSON.parse(`{"$":"dollar","%":"percent","&":"and","<":"less",">":"greater","|":"or","¢":"cent","£":"pound","¤":"currency","¥":"yen","©":"(c)","ª":"a","®":"(r)","º":"o","À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Æ":"AE","Ç":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ý":"Y","Þ":"TH","ß":"ss","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","æ":"ae","ç":"c","è":"e","é":"e","ê":"e","ë":"e","ì":"i","í":"i","î":"i","ï":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ù":"u","ú":"u","û":"u","ü":"u","ý":"y","þ":"th","ÿ":"y","Ā":"A","ā":"a","Ă":"A","ă":"a","Ą":"A","ą":"a","Ć":"C","ć":"c","Č":"C","č":"c","Ď":"D","ď":"d","Đ":"DJ","đ":"dj","Ē":"E","ē":"e","Ė":"E","ė":"e","Ę":"e","ę":"e","Ě":"E","ě":"e","Ğ":"G","ğ":"g","Ģ":"G","ģ":"g","Ĩ":"I","ĩ":"i","Ī":"i","ī":"i","Į":"I","į":"i","İ":"I","ı":"i","Ķ":"k","ķ":"k","Ļ":"L","ļ":"l","Ľ":"L","ľ":"l","Ł":"L","ł":"l","Ń":"N","ń":"n","Ņ":"N","ņ":"n","Ň":"N","ň":"n","Ō":"O","ō":"o","Ő":"O","ő":"o","Œ":"OE","œ":"oe","Ŕ":"R","ŕ":"r","Ř":"R","ř":"r","Ś":"S","ś":"s","Ş":"S","ş":"s","Š":"S","š":"s","Ţ":"T","ţ":"t","Ť":"T","ť":"t","Ũ":"U","ũ":"u","Ū":"u","ū":"u","Ů":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","ź":"z","Ż":"Z","ż":"z","Ž":"Z","ž":"z","Ə":"E","ƒ":"f","Ơ":"O","ơ":"o","Ư":"U","ư":"u","Lj":"LJ","lj":"lj","Nj":"NJ","nj":"nj","Ș":"S","ș":"s","Ț":"T","ț":"t","ə":"e","˚":"o","Ά":"A","Έ":"E","Ή":"H","Ί":"I","Ό":"O","Ύ":"Y","Ώ":"W","ΐ":"i","Α":"A","Β":"B","Γ":"G","Δ":"D","Ε":"E","Ζ":"Z","Η":"H","Θ":"8","Ι":"I","Κ":"K","Λ":"L","Μ":"M","Ν":"N","Ξ":"3","Ο":"O","Π":"P","Ρ":"R","Σ":"S","Τ":"T","Υ":"Y","Φ":"F","Χ":"X","Ψ":"PS","Ω":"W","Ϊ":"I","Ϋ":"Y","ά":"a","έ":"e","ή":"h","ί":"i","ΰ":"y","α":"a","β":"b","γ":"g","δ":"d","ε":"e","ζ":"z","η":"h","θ":"8","ι":"i","κ":"k","λ":"l","μ":"m","ν":"n","ξ":"3","ο":"o","π":"p","ρ":"r","ς":"s","σ":"s","τ":"t","υ":"y","φ":"f","χ":"x","ψ":"ps","ω":"w","ϊ":"i","ϋ":"y","ό":"o","ύ":"y","ώ":"w","Ё":"Yo","Ђ":"DJ","Є":"Ye","І":"I","Ї":"Yi","Ј":"J","Љ":"LJ","Њ":"NJ","Ћ":"C","Џ":"DZ","А":"A","Б":"B","В":"V","Г":"G","Д":"D","Е":"E","Ж":"Zh","З":"Z","И":"I","Й":"J","К":"K","Л":"L","М":"M","Н":"N","О":"O","П":"P","Р":"R","С":"S","Т":"T","У":"U","Ф":"F","Х":"H","Ц":"C","Ч":"Ch","Ш":"Sh","Щ":"Sh","Ъ":"U","Ы":"Y","Ь":"","Э":"E","Ю":"Yu","Я":"Ya","а":"a","б":"b","в":"v","г":"g","д":"d","е":"e","ж":"zh","з":"z","и":"i","й":"j","к":"k","л":"l","м":"m","н":"n","о":"o","п":"p","р":"r","с":"s","т":"t","у":"u","ф":"f","х":"h","ц":"c","ч":"ch","ш":"sh","щ":"sh","ъ":"u","ы":"y","ь":"","э":"e","ю":"yu","я":"ya","ё":"yo","ђ":"dj","є":"ye","і":"i","ї":"yi","ј":"j","љ":"lj","њ":"nj","ћ":"c","ѝ":"u","џ":"dz","Ґ":"G","ґ":"g","Ғ":"GH","ғ":"gh","Қ":"KH","қ":"kh","Ң":"NG","ң":"ng","Ү":"UE","ү":"ue","Ұ":"U","ұ":"u","Һ":"H","һ":"h","Ә":"AE","ә":"ae","Ө":"OE","ө":"oe","Ա":"A","Բ":"B","Գ":"G","Դ":"D","Ե":"E","Զ":"Z","Է":"E'","Ը":"Y'","Թ":"T'","Ժ":"JH","Ի":"I","Լ":"L","Խ":"X","Ծ":"C'","Կ":"K","Հ":"H","Ձ":"D'","Ղ":"GH","Ճ":"TW","Մ":"M","Յ":"Y","Ն":"N","Շ":"SH","Չ":"CH","Պ":"P","Ջ":"J","Ռ":"R'","Ս":"S","Վ":"V","Տ":"T","Ր":"R","Ց":"C","Փ":"P'","Ք":"Q'","Օ":"O''","Ֆ":"F","և":"EV","ء":"a","آ":"aa","أ":"a","ؤ":"u","إ":"i","ئ":"e","ا":"a","ب":"b","ة":"h","ت":"t","ث":"th","ج":"j","ح":"h","خ":"kh","د":"d","ذ":"th","ر":"r","ز":"z","س":"s","ش":"sh","ص":"s","ض":"dh","ط":"t","ظ":"z","ع":"a","غ":"gh","ف":"f","ق":"q","ك":"k","ل":"l","م":"m","ن":"n","ه":"h","و":"w","ى":"a","ي":"y","ً":"an","ٌ":"on","ٍ":"en","َ":"a","ُ":"u","ِ":"e","ْ":"","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","پ":"p","چ":"ch","ژ":"zh","ک":"k","گ":"g","ی":"y","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","฿":"baht","ა":"a","ბ":"b","გ":"g","დ":"d","ე":"e","ვ":"v","ზ":"z","თ":"t","ი":"i","კ":"k","ლ":"l","მ":"m","ნ":"n","ო":"o","პ":"p","ჟ":"zh","რ":"r","ს":"s","ტ":"t","უ":"u","ფ":"f","ქ":"k","ღ":"gh","ყ":"q","შ":"sh","ჩ":"ch","ც":"ts","ძ":"dz","წ":"ts","ჭ":"ch","ხ":"kh","ჯ":"j","ჰ":"h","Ṣ":"S","ṣ":"s","Ẁ":"W","ẁ":"w","Ẃ":"W","ẃ":"w","Ẅ":"W","ẅ":"w","ẞ":"SS","Ạ":"A","ạ":"a","Ả":"A","ả":"a","Ấ":"A","ấ":"a","Ầ":"A","ầ":"a","Ẩ":"A","ẩ":"a","Ẫ":"A","ẫ":"a","Ậ":"A","ậ":"a","Ắ":"A","ắ":"a","Ằ":"A","ằ":"a","Ẳ":"A","ẳ":"a","Ẵ":"A","ẵ":"a","Ặ":"A","ặ":"a","Ẹ":"E","ẹ":"e","Ẻ":"E","ẻ":"e","Ẽ":"E","ẽ":"e","Ế":"E","ế":"e","Ề":"E","ề":"e","Ể":"E","ể":"e","Ễ":"E","ễ":"e","Ệ":"E","ệ":"e","Ỉ":"I","ỉ":"i","Ị":"I","ị":"i","Ọ":"O","ọ":"o","Ỏ":"O","ỏ":"o","Ố":"O","ố":"o","Ồ":"O","ồ":"o","Ổ":"O","ổ":"o","Ỗ":"O","ỗ":"o","Ộ":"O","ộ":"o","Ớ":"O","ớ":"o","Ờ":"O","ờ":"o","Ở":"O","ở":"o","Ỡ":"O","ỡ":"o","Ợ":"O","ợ":"o","Ụ":"U","ụ":"u","Ủ":"U","ủ":"u","Ứ":"U","ứ":"u","Ừ":"U","ừ":"u","Ử":"U","ử":"u","Ữ":"U","ữ":"u","Ự":"U","ự":"u","Ỳ":"Y","ỳ":"y","Ỵ":"Y","ỵ":"y","Ỷ":"Y","ỷ":"y","Ỹ":"Y","ỹ":"y","–":"-","‘":"'","’":"'","“":"\\"","”":"\\"","„":"\\"","†":"+","•":"*","…":"...","₠":"ecu","₢":"cruzeiro","₣":"french franc","₤":"lira","₥":"mill","₦":"naira","₧":"peseta","₨":"rupee","₩":"won","₪":"new shequel","₫":"dong","€":"euro","₭":"kip","₮":"tugrik","₯":"drachma","₰":"penny","₱":"peso","₲":"guarani","₳":"austral","₴":"hryvnia","₵":"cedi","₸":"kazakhstani tenge","₹":"indian rupee","₺":"turkish lira","₽":"russian ruble","₿":"bitcoin","℠":"sm","™":"tm","∂":"d","∆":"delta","∑":"sum","∞":"infinity","♥":"love","元":"yuan","円":"yen","﷼":"rial","ﻵ":"laa","ﻷ":"laa","ﻹ":"lai","ﻻ":"la"}`),a=JSON.parse('{"bg":{"Й":"Y","Ц":"Ts","Щ":"Sht","Ъ":"A","Ь":"Y","й":"y","ц":"ts","щ":"sht","ъ":"a","ь":"y"},"de":{"Ä":"AE","ä":"ae","Ö":"OE","ö":"oe","Ü":"UE","ü":"ue","ß":"ss","%":"prozent","&":"und","|":"oder","∑":"summe","∞":"unendlich","♥":"liebe"},"es":{"%":"por ciento","&":"y","<":"menor que",">":"mayor que","|":"o","¢":"centavos","£":"libras","¤":"moneda","₣":"francos","∑":"suma","∞":"infinito","♥":"amor"},"fr":{"%":"pourcent","&":"et","<":"plus petit",">":"plus grand","|":"ou","¢":"centime","£":"livre","¤":"devise","₣":"franc","∑":"somme","∞":"infini","♥":"amour"},"pt":{"%":"porcento","&":"e","<":"menor",">":"maior","|":"ou","¢":"centavo","∑":"soma","£":"libra","∞":"infinito","♥":"amor"},"uk":{"И":"Y","и":"y","Й":"Y","й":"y","Ц":"Ts","ц":"ts","Х":"Kh","х":"kh","Щ":"Shch","щ":"shch","Г":"H","г":"h"},"vi":{"Đ":"D","đ":"d"},"da":{"Ø":"OE","ø":"oe","Å":"AA","å":"aa","%":"procent","&":"og","|":"eller","$":"dollar","<":"mindre end",">":"større end"},"nb":{"&":"og","Å":"AA","Æ":"AE","Ø":"OE","å":"aa","æ":"ae","ø":"oe"},"it":{"&":"e"},"nl":{"&":"en"},"sv":{"&":"och","Å":"AA","Ä":"AE","Ö":"OE","å":"aa","ä":"ae","ö":"oe"}}');function l(c,o){if(typeof c!="string")throw new Error("slugify: string argument expected");o=typeof o=="string"?{replacement:o}:o||{};var h=a[o.locale]||{},g=o.replacement===void 0?"-":o.replacement,e=o.trim===void 0?!0:o.trim,i=c.normalize().split("").reduce(function(s,u){var f=h[u];return f===void 0&&(f=n[u]),f===void 0&&(f=u),f===g&&(f=" "),s+f.replace(o.remove||/[^\w\s$*_+~.()'"!\-:@]+/g,"")},"");return o.strict&&(i=i.replace(/[^A-Za-z0-9\s]/g,"")),e&&(i=i.trim()),i=i.replace(/\s+/g,g),o.lower&&(i=i.toLowerCase()),i}return l.extend=function(c){Object.assign(n,c)},l})})(fe);const me=r=>r.split(/[\s-]/g).map(J).join(" ");function he(r,t){const{navigation:n}=M().public.content,a=c=>({...pe(["title",...n.fields])(c),...de(c==null?void 0:c.navigation)?c.navigation:{}}),l=r.sort((c,o)=>c._path.localeCompare(o._path)).reduce((c,o)=>{const h=o._path.substring(1).split("/"),g=o._id.split(":").slice(1),e=!!g[g.length-1].match(/([1-9][0-9]*\.)?index.md/g),i=f=>({title:f.title,_path:f._path,_file:f._file,children:[],...a(f),...f._draft?{_draft:!0}:{}}),s=i(o);if(e){const f=t[s._path];if(typeof(f==null?void 0:f.navigation)<"u"&&!(f!=null&&f.navigation))return c;if(o._path!=="/"){const m=i(o);s.children.push(m)}Object.assign(s,a(f))}return h.length===1?(c.push(s),c):(h.slice(0,-1).reduce((f,m,y)=>{const v="/"+h.slice(0,y+1).join("/"),w=t[v];if(typeof(w==null?void 0:w.navigation)<"u"&&!w.navigation)return[];let I=f.find(O=>O._path===v);return I||(I={title:me(m),_path:v,_file:o._file,children:[],...a(w)},f.push(I)),I.children},c).push(s),c)},[]);return U(l)}const ge=new Intl.Collator(void 0,{numeric:!0,sensitivity:"base"});function U(r){var n;const t=r.sort((a,l)=>ge.compare(a._file,l._file));for(const a of t)(n=a.children)!=null&&n.length?U(a.children):delete a.children,delete a._file;return r}function pe(r){return t=>(t=t||{},r&&r.length?r.filter(n=>typeof t[n]<"u").reduce((n,a)=>Object.assign(n,{[a]:t[a]}),{}):t)}function de(r){return Object.prototype.toString.call(r)==="[object Object]"}const ye=r=>H(r,M().public.content.api.baseURL),we=ne(oe({driver:F()}),"@content");function ve(r){async function t(){const n=new Set(await r.getKeys("cache:")),a=z().getPreviewToken();if(a){const c=await r.getItem(`${a}$`).then(g=>g||{});if(Array.isArray(c.ignoreSources)){const g=c.ignoreSources.map(e=>`cache:${e.trim()}:`);for(const e of n)g.some(i=>e.startsWith(i))&&n.delete(e)}const o=await r.getKeys(`${a}:`),h=await Promise.all(o.map(g=>r.getItem(g)));for(const g of h)n.delete(`cache:${g._id}`),g.__deleted||n.add(`${a}:${g._id}`)}return await Promise.all(Array.from(n).map(c=>r.getItem(c)))}return{storage:r,fetch:L(t),query:n=>k(L(t),{initialParams:n,legacy:!0})}}let R=null,S=null;async function Ie(){return S?await S:R||(S=Ae(),R=await S),R}async function Ae(){const r=q(),{content:t}=M().public,n=ve(we),a=await n.storage.getItem("integrity");if(t.integrity!==+(a||0)){const{contents:l,navigation:c}=await $fetch(ye(t.integrity?`cache.${t.integrity}.json`:"cache.json"));await Promise.all(l.map(o=>n.storage.setItem(`cache:${o._id}`,o))),await n.storage.setItem("navigation",c),await n.storage.setItem("integrity",t.integrity)}return await r.callHook("content:storage",n.storage),n}async function _e(r){const t=await Ie();if(!z().getPreviewToken()&&Object.keys(r||{}).length===0)return t.storage.getItem("navigation");const n=await t.query(r).where({_partial:!1,navigation:{$ne:!1}}).find(),l=(await t.query().where({_path:/\/_dir$/i,_partial:!0}).find()).reduce((c,o)=>{var g;((g=o.title)==null?void 0:g.toLowerCase())==="dir"&&(o.title=void 0);const h=o._path.split("/").slice(0,-1).join("/")||"/";return c[h]={...o,...o.body},c},{});return he(n,l)}export{we as contentStorage,ve as createDB,_e as generateNavigation,Ie as useContentDatabase}; diff --git a/_nuxt/docs.8f80e350.js b/_nuxt/docs.2f1ccbf0.js similarity index 95% rename from _nuxt/docs.8f80e350.js rename to _nuxt/docs.2f1ccbf0.js index 13034594..b32df634 100644 --- a/_nuxt/docs.8f80e350.js +++ b/_nuxt/docs.2f1ccbf0.js @@ -1 +1 @@ -import{d as h,ah as v,ai as f,b as m,c as g,e as i,n as r,aC as a,a9 as o,f as b,g as l,aa as $,bm as C,X as w,a8 as y,w as t,bn as N,bo as U,bp as x,aR as A,aV as B}from"./entry.8c781d5d.js";const V={class:"relative"},z=h({inheritAttrs:!1,__name:"Aside",props:{links:{},ui:{},class:{}},setup(_){const c={wrapper:"hidden overflow-y-auto lg:block lg:max-h-[calc(100vh-var(--header-height))] lg:sticky lg:top-[--header-height] py-8 lg:px-4 lg:-mx-4",top:{wrapper:"sticky -top-8 -mt-8 pointer-events-none z-[1]",header:"h-8 bg-background -mx-4 px-4",body:"bg-background relative pointer-events-auto flex -mx-4 px-4",footer:"h-8 bg-gradient-to-b from-background -mx-4 px-4"}},s=_,{ui:n,attrs:p}=v("aside",f(s,"ui"),c,f(s,"class"),!0);return(e,u)=>{const d=C;return m(),g("aside",$({class:a(n).wrapper},a(p)),[i("div",V,[e.$slots.top?(m(),g("div",{key:0,class:r(a(n).top.wrapper)},[i("div",{class:r(a(n).top.header)},null,2),i("div",{class:r(a(n).top.body)},[o(e.$slots,"top")],2),i("div",{class:r(a(n).top.footer)},null,2)],2)):b("",!0),o(e.$slots,"links",{},()=>[l(d,{links:e.links},null,8,["links"])]),o(e.$slots,"default"),o(e.$slots,"bottom")])],16)}}}),R=h({__name:"docs",setup(_){const c=w("navigation");return(s,n)=>{const p=x,e=z,u=A,d=B,k=N;return m(),y(k,null,{default:t(()=>[l(d,null,{default:t(()=>[l(u,null,{left:t(()=>[l(e,null,{default:t(()=>[l(p,{links:("mapContentNavigation"in s?s.mapContentNavigation:a(U))(a(c))},null,8,["links"])]),_:1})]),default:t(()=>[o(s.$slots,"default")]),_:3})]),_:3})]),_:3})}}});export{R as default}; +import{d as h,ah as v,ai as f,b as m,c as g,e as i,n as r,aC as a,a9 as o,f as b,g as l,aa as $,bm as C,X as w,a8 as y,w as t,bn as N,bo as U,bp as x,aR as A,aV as B}from"./entry.ae6f67a5.js";const V={class:"relative"},z=h({inheritAttrs:!1,__name:"Aside",props:{links:{},ui:{},class:{}},setup(_){const c={wrapper:"hidden overflow-y-auto lg:block lg:max-h-[calc(100vh-var(--header-height))] lg:sticky lg:top-[--header-height] py-8 lg:px-4 lg:-mx-4",top:{wrapper:"sticky -top-8 -mt-8 pointer-events-none z-[1]",header:"h-8 bg-background -mx-4 px-4",body:"bg-background relative pointer-events-auto flex -mx-4 px-4",footer:"h-8 bg-gradient-to-b from-background -mx-4 px-4"}},s=_,{ui:n,attrs:p}=v("aside",f(s,"ui"),c,f(s,"class"),!0);return(e,u)=>{const d=C;return m(),g("aside",$({class:a(n).wrapper},a(p)),[i("div",V,[e.$slots.top?(m(),g("div",{key:0,class:r(a(n).top.wrapper)},[i("div",{class:r(a(n).top.header)},null,2),i("div",{class:r(a(n).top.body)},[o(e.$slots,"top")],2),i("div",{class:r(a(n).top.footer)},null,2)],2)):b("",!0),o(e.$slots,"links",{},()=>[l(d,{links:e.links},null,8,["links"])]),o(e.$slots,"default"),o(e.$slots,"bottom")])],16)}}}),R=h({__name:"docs",setup(_){const c=w("navigation");return(s,n)=>{const p=x,e=z,u=A,d=B,k=N;return m(),y(k,null,{default:t(()=>[l(d,null,{default:t(()=>[l(u,null,{left:t(()=>[l(e,null,{default:t(()=>[l(p,{links:("mapContentNavigation"in s?s.mapContentNavigation:a(U))(a(c))},null,8,["links"])]),_:1})]),default:t(()=>[o(s.$slots,"default")]),_:3})]),_:3})]),_:3})}}});export{R as default}; diff --git a/_nuxt/entry.8c781d5d.js b/_nuxt/entry.ae6f67a5.js similarity index 97% rename from _nuxt/entry.8c781d5d.js rename to _nuxt/entry.ae6f67a5.js index c9af2244..e0eb03b7 100644 --- a/_nuxt/entry.8c781d5d.js +++ b/_nuxt/entry.ae6f67a5.js @@ -1,11 +1,11 @@ -function Wa(e,t){const n=Object.create(null),r=e.split(",");for(let o=0;o!!n[o.toLowerCase()]:o=>!!n[o]}const Be={},Er=[],Ht=()=>{},sg=()=>!1,ig=/^on[^a-z]/,jo=e=>ig.test(e),qa=e=>e.startsWith("onUpdate:"),Ze=Object.assign,Ka=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},ag=Object.prototype.hasOwnProperty,Pe=(e,t)=>ag.call(e,t),ce=Array.isArray,Cr=e=>Do(e)==="[object Map]",xf=e=>Do(e)==="[object Set]",lg=e=>Do(e)==="[object RegExp]",de=e=>typeof e=="function",Ue=e=>typeof e=="string",Vs=e=>typeof e=="symbol",De=e=>e!==null&&typeof e=="object",Ga=e=>(De(e)||de(e))&&de(e.then)&&de(e.catch),kf=Object.prototype.toString,Do=e=>kf.call(e),cg=e=>Do(e).slice(8,-1),Ef=e=>Do(e)==="[object Object]",Qa=e=>Ue(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,io=Wa(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Ws=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},ug=/-(\w)/g,Zt=Ws(e=>e.replace(ug,(t,n)=>n?n.toUpperCase():"")),fg=/\B([A-Z])/g,pr=Ws(e=>e.replace(fg,"-$1").toLowerCase()),qs=Ws(e=>e.charAt(0).toUpperCase()+e.slice(1)),hi=Ws(e=>e?`on${qs(e)}`:""),ir=(e,t)=>!Object.is(e,t),ao=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},dg=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Cf=e=>{const t=Ue(e)?Number(e):NaN;return isNaN(t)?e:t};let hc;const Hi=()=>hc||(hc=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function fn(e){if(ce(e)){const t={};for(let n=0;n{if(n){const r=n.split(hg);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function G(e){let t="";if(Ue(e))t=e;else if(ce(e))for(let n=0;nUe(e)?e:e==null?"":ce(e)||De(e)&&(e.toString===kf||!de(e.toString))?JSON.stringify(e,Sf,2):String(e),Sf=(e,t)=>t&&t.__v_isRef?Sf(e,t.value):Cr(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,o])=>(n[`${r} =>`]=o,n),{})}:xf(t)?{[`Set(${t.size})`]:[...t.values()]}:De(t)&&!ce(t)&&!Ef(t)?String(t):t;let kt;class Tf{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=kt,!t&&kt&&(this.index=(kt.scopes||(kt.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=kt;try{return kt=this,t()}finally{kt=n}}}on(){kt=this}off(){kt=this.parent}stop(t){if(this._active){let n,r;for(n=0,r=this.effects.length;n{const t=new Set(e);return t.w=0,t.n=0,t},Of=e=>(e.w&Ln)>0,$f=e=>(e.n&Ln)>0,wg=({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r{(u==="length"||!Vs(u)&&u>=l)&&a.push(c)})}else switch(n!==void 0&&a.push(i.get(n)),t){case"add":ce(e)?Qa(n)&&a.push(i.get("length")):(a.push(i.get(tr)),Cr(e)&&a.push(i.get(zi)));break;case"delete":ce(e)||(a.push(i.get(tr)),Cr(e)&&a.push(i.get(zi)));break;case"set":Cr(e)&&a.push(i.get(tr));break}if(a.length===1)a[0]&&Vi(a[0]);else{const l=[];for(const c of a)c&&l.push(...c);Vi(Ja(l))}}function Vi(e,t){const n=ce(e)?e:[...e];for(const r of n)r.computed&&mc(r);for(const r of n)r.computed||mc(r)}function mc(e,t){(e!==Ft||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}function xg(e,t){var n;return(n=Ss.get(e))==null?void 0:n.get(t)}const kg=Wa("__proto__,__v_isRef,__isVue"),Lf=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Vs)),vc=Eg();function Eg(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const r=Se(this);for(let s=0,i=this.length;s{e[t]=function(...n){Ur();const r=Se(this)[t].apply(this,n);return zr(),r}}),e}function Cg(e){const t=Se(this);return vt(t,"has",e),t.hasOwnProperty(e)}class Mf{constructor(t=!1,n=!1){this._isReadonly=t,this._shallow=n}get(t,n,r){const o=this._isReadonly,s=this._shallow;if(n==="__v_isReactive")return!o;if(n==="__v_isReadonly")return o;if(n==="__v_isShallow")return s;if(n==="__v_raw"&&r===(o?s?Fg:Nf:s?Ff:Df).get(t))return t;const i=ce(t);if(!o){if(i&&Pe(vc,n))return Reflect.get(vc,n,r);if(n==="hasOwnProperty")return Cg}const a=Reflect.get(t,n,r);return(Vs(n)?Lf.has(n):kg(n))||(o||vt(t,"get",n),s)?a:Xe(a)?i&&Qa(n)?a:a.value:De(a)?o?Gs(a):Rt(a):a}}class jf extends Mf{constructor(t=!1){super(!1,t)}set(t,n,r,o){let s=t[n];if(ar(s)&&Xe(s)&&!Xe(r))return!1;if(!this._shallow&&(!Ts(r)&&!ar(r)&&(s=Se(s),r=Se(r)),!ce(t)&&Xe(s)&&!Xe(r)))return s.value=r,!0;const i=ce(t)&&Qa(n)?Number(n)e,Ks=e=>Reflect.getPrototypeOf(e);function Xo(e,t,n=!1,r=!1){e=e.__v_raw;const o=Se(e),s=Se(t);n||(ir(t,s)&&vt(o,"get",t),vt(o,"get",s));const{has:i}=Ks(o),a=r?el:n?rl:wo;if(i.call(o,t))return a(e.get(t));if(i.call(o,s))return a(e.get(s));e!==o&&e.get(t)}function Yo(e,t=!1){const n=this.__v_raw,r=Se(n),o=Se(e);return t||(ir(e,o)&&vt(r,"has",e),vt(r,"has",o)),e===o?n.has(e):n.has(e)||n.has(o)}function Jo(e,t=!1){return e=e.__v_raw,!t&&vt(Se(e),"iterate",tr),Reflect.get(e,"size",e)}function yc(e){e=Se(e);const t=Se(this);return Ks(t).has.call(t,e)||(t.add(e),un(t,"add",e,e)),this}function bc(e,t){t=Se(t);const n=Se(this),{has:r,get:o}=Ks(n);let s=r.call(n,e);s||(e=Se(e),s=r.call(n,e));const i=o.call(n,e);return n.set(e,t),s?ir(t,i)&&un(n,"set",e,t):un(n,"add",e,t),this}function wc(e){const t=Se(this),{has:n,get:r}=Ks(t);let o=n.call(t,e);o||(e=Se(e),o=n.call(t,e)),r&&r.call(t,e);const s=t.delete(e);return o&&un(t,"delete",e,void 0),s}function _c(){const e=Se(this),t=e.size!==0,n=e.clear();return t&&un(e,"clear",void 0,void 0),n}function Zo(e,t){return function(r,o){const s=this,i=s.__v_raw,a=Se(i),l=t?el:e?rl:wo;return!e&&vt(a,"iterate",tr),i.forEach((c,u)=>r.call(o,l(c),l(u),s))}}function es(e,t,n){return function(...r){const o=this.__v_raw,s=Se(o),i=Cr(s),a=e==="entries"||e===Symbol.iterator&&i,l=e==="keys"&&i,c=o[e](...r),u=n?el:t?rl:wo;return!t&&vt(s,"iterate",l?zi:tr),{next(){const{value:f,done:d}=c.next();return d?{value:f,done:d}:{value:a?[u(f[0]),u(f[1])]:u(f),done:d}},[Symbol.iterator](){return this}}}}function yn(e){return function(...t){return e==="delete"?!1:this}}function Og(){const e={get(s){return Xo(this,s)},get size(){return Jo(this)},has:Yo,add:yc,set:bc,delete:wc,clear:_c,forEach:Zo(!1,!1)},t={get(s){return Xo(this,s,!1,!0)},get size(){return Jo(this)},has:Yo,add:yc,set:bc,delete:wc,clear:_c,forEach:Zo(!1,!0)},n={get(s){return Xo(this,s,!0)},get size(){return Jo(this,!0)},has(s){return Yo.call(this,s,!0)},add:yn("add"),set:yn("set"),delete:yn("delete"),clear:yn("clear"),forEach:Zo(!0,!1)},r={get(s){return Xo(this,s,!0,!0)},get size(){return Jo(this,!0)},has(s){return Yo.call(this,s,!0)},add:yn("add"),set:yn("set"),delete:yn("delete"),clear:yn("clear"),forEach:Zo(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(s=>{e[s]=es(s,!1,!1),n[s]=es(s,!0,!1),t[s]=es(s,!1,!0),r[s]=es(s,!0,!0)}),[e,n,t,r]}const[$g,Ig,Rg,Lg]=Og();function tl(e,t){const n=t?e?Lg:Rg:e?Ig:$g;return(r,o,s)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?r:Reflect.get(Pe(n,o)&&o in r?n:r,o,s)}const Mg={get:tl(!1,!1)},jg={get:tl(!1,!0)},Dg={get:tl(!0,!1)},Df=new WeakMap,Ff=new WeakMap,Nf=new WeakMap,Fg=new WeakMap;function Ng(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Bg(e){return e.__v_skip||!Object.isExtensible(e)?0:Ng(cg(e))}function Rt(e){return ar(e)?e:nl(e,!1,Sg,Mg,Df)}function No(e){return nl(e,!1,Ag,jg,Ff)}function Gs(e){return nl(e,!0,Tg,Dg,Nf)}function nl(e,t,n,r,o){if(!De(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const s=o.get(e);if(s)return s;const i=Bg(e);if(i===0)return e;const a=new Proxy(e,i===2?r:n);return o.set(e,a),a}function Pr(e){return ar(e)?Pr(e.__v_raw):!!(e&&e.__v_isReactive)}function ar(e){return!!(e&&e.__v_isReadonly)}function Ts(e){return!!(e&&e.__v_isShallow)}function Bf(e){return Pr(e)||ar(e)}function Se(e){const t=e&&e.__v_raw;return t?Se(t):e}function Hf(e){return Ps(e,"__v_skip",!0),e}const wo=e=>De(e)?Rt(e):e,rl=e=>De(e)?Gs(e):e;function ol(e){On&&Ft&&(e=Se(e),Rf(e.dep||(e.dep=Ja())))}function sl(e,t){e=Se(e);const n=e.dep;n&&Vi(n)}function Xe(e){return!!(e&&e.__v_isRef===!0)}function B(e){return Uf(e,!1)}function lr(e){return Uf(e,!0)}function Uf(e,t){return Xe(e)?e:new Hg(e,t)}class Hg{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:Se(t),this._value=n?t:wo(t)}get value(){return ol(this),this._value}set value(t){const n=this.__v_isShallow||Ts(t)||ar(t);t=n?t:Se(t),ir(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:wo(t),sl(this))}}function E(e){return Xe(e)?e.value:e}function gi(e){return de(e)?e():E(e)}const Ug={get:(e,t,n)=>E(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const o=e[t];return Xe(o)&&!Xe(n)?(o.value=n,!0):Reflect.set(e,t,n,r)}};function zf(e){return Pr(e)?e:new Proxy(e,Ug)}class zg{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:r}=t(()=>ol(this),()=>sl(this));this._get=n,this._set=r}get value(){return this._get()}set value(t){this._set(t)}}function Vf(e){return new zg(e)}function QS(e){const t=ce(e)?new Array(e.length):{};for(const n in e)t[n]=Wf(e,n);return t}class Vg{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return xg(Se(this._object),this._key)}}class Wg{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function we(e,t,n){return Xe(e)?e:de(e)?new Wg(e):De(e)&&arguments.length>1?Wf(e,t,n):B(e)}function Wf(e,t,n){const r=e[t];return Xe(r)?r:new Vg(e,t,n)}class qg{constructor(t,n,r,o){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new Za(t,()=>{this._dirty||(this._dirty=!0,sl(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=r}get value(){const t=Se(this);return ol(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function Kg(e,t,n=!1){let r,o;const s=de(e);return s?(r=e,o=Ht):(r=e.get,o=e.set),new qg(r,o,s||!o,n)}function $n(e,t,n,r){let o;try{o=r?e(...r):e()}catch(s){Vr(s,t,n)}return o}function $t(e,t,n,r){if(de(e)){const s=$n(e,t,n,r);return s&&Ga(s)&&s.catch(i=>{Vr(i,t,n)}),s}const o=[];for(let s=0;s>>1,o=st[r],s=xo(o);sXt&&st.splice(t,1)}function qi(e){ce(e)?Sr.push(...e):(!ln||!ln.includes(e,e.allowRecurse?Gn+1:Gn))&&Sr.push(e),Kf()}function xc(e,t=_o?Xt+1:0){for(;txo(n)-xo(r)),Gn=0;Gne.id==null?1/0:e.id,Yg=(e,t)=>{const n=xo(e)-xo(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Gf(e){Wi=!1,_o=!0,st.sort(Yg);const t=Ht;try{for(Xt=0;XtUe(p)?p.trim():p)),f&&(o=n.map(dg))}let a,l=r[a=hi(t)]||r[a=hi(Zt(t))];!l&&s&&(l=r[a=hi(pr(t))]),l&&$t(l,e,6,o);const c=r[a+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,$t(c,e,6,o)}}function Qf(e,t,n=!1){const r=t.emitsCache,o=r.get(e);if(o!==void 0)return o;const s=e.emits;let i={},a=!1;if(!de(e)){const l=c=>{const u=Qf(c,t,!0);u&&(a=!0,Ze(i,u))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!s&&!a?(De(e)&&r.set(e,null),null):(ce(s)?s.forEach(l=>i[l]=null):Ze(i,s),De(e)&&r.set(e,i),i)}function Xs(e,t){return!e||!jo(t)?!1:(t=t.slice(2).replace(/Once$/,""),Pe(e,t[0].toLowerCase()+t.slice(1))||Pe(e,pr(t))||Pe(e,t))}let tt=null,Ys=null;function Os(e){const t=tt;return tt=e,Ys=e&&e.type.__scopeId||null,t}function XS(e){Ys=e}function YS(){Ys=null}function le(e,t=tt,n){if(!t||e._n)return e;const r=(...o)=>{r._d&&jc(-1);const s=Os(t);let i;try{i=e(...o)}finally{Os(s),r._d&&jc(1)}return i};return r._n=!0,r._c=!0,r._d=!0,r}function mi(e){const{type:t,vnode:n,proxy:r,withProxy:o,props:s,propsOptions:[i],slots:a,attrs:l,emit:c,render:u,renderCache:f,data:d,setupState:p,ctx:h,inheritAttrs:g}=e;let y,x;const b=Os(e);try{if(n.shapeFlag&4){const m=o||r;y=At(u.call(m,m,f,s,p,d,h)),x=l}else{const m=t;y=At(m.length>1?m(s,{attrs:l,slots:a,emit:c}):m(s,null)),x=t.props?l:em(l)}}catch(m){fo.length=0,Vr(m,e,1),y=Y(dt)}let v=y;if(x&&g!==!1){const m=Object.keys(x),{shapeFlag:_}=v;m.length&&_&7&&(i&&m.some(qa)&&(x=tm(x,i)),v=en(v,x))}return n.dirs&&(v=en(v),v.dirs=v.dirs?v.dirs.concat(n.dirs):n.dirs),n.transition&&(v.transition=n.transition),y=v,Os(b),y}function Zg(e){let t;for(let n=0;n{let t;for(const n in e)(n==="class"||n==="style"||jo(n))&&((t||(t={}))[n]=e[n]);return t},tm=(e,t)=>{const n={};for(const r in e)(!qa(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function nm(e,t,n){const{props:r,children:o,component:s}=e,{props:i,children:a,patchFlag:l}=t,c=s.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return r?kc(r,i,c):!!i;if(l&8){const u=t.dynamicProps;for(let f=0;fe.__isSuspense,rm={name:"Suspense",__isSuspense:!0,process(e,t,n,r,o,s,i,a,l,c){e==null?om(t,n,r,o,s,i,a,l,c):sm(e,t,n,r,o,i,a,l,c)},hydrate:im,create:ul,normalize:am},cl=rm;function ko(e,t){const n=e.props&&e.props[t];de(n)&&n()}function om(e,t,n,r,o,s,i,a,l){const{p:c,o:{createElement:u}}=l,f=u("div"),d=e.suspense=ul(e,o,r,t,f,n,s,i,a,l);c(null,d.pendingBranch=e.ssContent,f,null,r,d,s,i),d.deps>0?(ko(e,"onPending"),ko(e,"onFallback"),c(null,e.ssFallback,t,n,r,null,s,i),Tr(d,e.ssFallback)):d.resolve(!1,!0)}function sm(e,t,n,r,o,s,i,a,{p:l,um:c,o:{createElement:u}}){const f=t.suspense=e.suspense;f.vnode=t,t.el=e.el;const d=t.ssContent,p=t.ssFallback,{activeBranch:h,pendingBranch:g,isInFallback:y,isHydrating:x}=f;if(g)f.pendingBranch=d,Nt(d,g)?(l(g,d,f.hiddenContainer,null,o,f,s,i,a),f.deps<=0?f.resolve():y&&(l(h,p,n,r,o,null,s,i,a),Tr(f,p))):(f.pendingId++,x?(f.isHydrating=!1,f.activeBranch=g):c(g,o,f),f.deps=0,f.effects.length=0,f.hiddenContainer=u("div"),y?(l(null,d,f.hiddenContainer,null,o,f,s,i,a),f.deps<=0?f.resolve():(l(h,p,n,r,o,null,s,i,a),Tr(f,p))):h&&Nt(d,h)?(l(h,d,n,r,o,f,s,i,a),f.resolve(!0)):(l(null,d,f.hiddenContainer,null,o,f,s,i,a),f.deps<=0&&f.resolve()));else if(h&&Nt(d,h))l(h,d,n,r,o,f,s,i,a),Tr(f,d);else if(ko(t,"onPending"),f.pendingBranch=d,f.pendingId++,l(null,d,f.hiddenContainer,null,o,f,s,i,a),f.deps<=0)f.resolve();else{const{timeout:b,pendingId:v}=f;b>0?setTimeout(()=>{f.pendingId===v&&f.fallback(p)},b):b===0&&f.fallback(p)}}function ul(e,t,n,r,o,s,i,a,l,c,u=!1){const{p:f,m:d,um:p,n:h,o:{parentNode:g,remove:y}}=c;let x;const b=lm(e);b&&t!=null&&t.pendingBranch&&(x=t.pendingId,t.deps++);const v=e.props?Cf(e.props.timeout):void 0,m={vnode:e,parent:t,parentComponent:n,isSVG:i,container:r,hiddenContainer:o,anchor:s,deps:0,pendingId:0,timeout:typeof v=="number"?v:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:u,isUnmounted:!1,effects:[],resolve(_=!1,C=!1){const{vnode:S,activeBranch:T,pendingBranch:M,pendingId:I,effects:q,parentComponent:A,container:N}=m;let he=!1;if(m.isHydrating)m.isHydrating=!1;else if(!_){he=T&&M.transition&&M.transition.mode==="out-in",he&&(T.transition.afterLeave=()=>{I===m.pendingId&&(d(M,N,V,0),qi(q))});let{anchor:V}=m;T&&(V=h(T),p(T,A,m,!0)),he||d(M,N,V,0)}Tr(m,M),m.pendingBranch=null,m.isInFallback=!1;let fe=m.parent,U=!1;for(;fe;){if(fe.pendingBranch){fe.effects.push(...q),U=!0;break}fe=fe.parent}!U&&!he&&qi(q),m.effects=[],b&&t&&t.pendingBranch&&x===t.pendingId&&(t.deps--,t.deps===0&&!C&&t.resolve()),ko(S,"onResolve")},fallback(_){if(!m.pendingBranch)return;const{vnode:C,activeBranch:S,parentComponent:T,container:M,isSVG:I}=m;ko(C,"onFallback");const q=h(S),A=()=>{m.isInFallback&&(f(null,_,M,q,T,null,I,a,l),Tr(m,_))},N=_.transition&&_.transition.mode==="out-in";N&&(S.transition.afterLeave=A),m.isInFallback=!0,p(S,T,null,!0),N||A()},move(_,C,S){m.activeBranch&&d(m.activeBranch,_,C,S),m.container=_},next(){return m.activeBranch&&h(m.activeBranch)},registerDep(_,C){const S=!!m.pendingBranch;S&&m.deps++;const T=_.vnode.el;_.asyncDep.catch(M=>{Vr(M,_,0)}).then(M=>{if(_.isUnmounted||m.isUnmounted||m.pendingId!==_.suspenseId)return;_.asyncResolved=!0;const{vnode:I}=_;Zi(_,M,!1),T&&(I.el=T);const q=!T&&_.subTree.el;C(_,I,g(T||_.subTree.el),T?null:h(_.subTree),m,i,l),q&&y(q),al(_,I.el),S&&--m.deps===0&&m.resolve()})},unmount(_,C){m.isUnmounted=!0,m.activeBranch&&p(m.activeBranch,n,_,C),m.pendingBranch&&p(m.pendingBranch,n,_,C)}};return m}function im(e,t,n,r,o,s,i,a,l){const c=t.suspense=ul(t,r,n,e.parentNode,document.createElement("div"),null,o,s,i,a,!0),u=l(e,c.pendingBranch=t.ssContent,n,c,s,i);return c.deps===0&&c.resolve(!1,!0),u}function am(e){const{shapeFlag:t,children:n}=e,r=t&32;e.ssContent=Cc(r?n.default:n),e.ssFallback=r?Cc(n.fallback):Y(dt)}function Cc(e){let t;if(de(e)){const n=$r&&e._c;n&&(e._d=!1,R()),e=e(),n&&(e._d=!0,t=Ot,Ed())}return ce(e)&&(e=Zg(e)),e=At(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function Zf(e,t){t&&t.pendingBranch?ce(e)?t.effects.push(...e):t.effects.push(e):qi(e)}function Tr(e,t){e.activeBranch=t;const{vnode:n,parentComponent:r}=e,o=n.el=t.el;r&&r.subTree===n&&(r.vnode.el=o,al(r,o))}function lm(e){var t;return((t=e.props)==null?void 0:t.suspensible)!=null&&e.props.suspensible!==!1}function Ye(e,t){return Js(e,null,t)}function cm(e,t){return Js(e,null,{flush:"post"})}const ts={};function ze(e,t,n){return Js(e,t,n)}function Js(e,t,{immediate:n,deep:r,flush:o,onTrack:s,onTrigger:i}=Be){var a;const l=Xa()===((a=Qe)==null?void 0:a.scope)?Qe:null;let c,u=!1,f=!1;if(Xe(e)?(c=()=>e.value,u=Ts(e)):Pr(e)?(c=()=>e,r=!0):ce(e)?(f=!0,u=e.some(m=>Pr(m)||Ts(m)),c=()=>e.map(m=>{if(Xe(m))return m.value;if(Pr(m))return Yn(m);if(de(m))return $n(m,l,2)})):de(e)?t?c=()=>$n(e,l,2):c=()=>{if(!(l&&l.isUnmounted))return d&&d(),$t(e,l,3,[p])}:c=Ht,t&&r){const m=c;c=()=>Yn(m())}let d,p=m=>{d=b.onStop=()=>{$n(m,l,4)}},h;if(Rr)if(p=Ht,t?n&&$t(t,l,3,[c(),f?[]:void 0,p]):c(),o==="sync"){const m=Zm();h=m.__watcherHandles||(m.__watcherHandles=[])}else return Ht;let g=f?new Array(e.length).fill(ts):ts;const y=()=>{if(b.active)if(t){const m=b.run();(r||u||(f?m.some((_,C)=>ir(_,g[C])):ir(m,g)))&&(d&&d(),$t(t,l,3,[m,g===ts?void 0:f&&g[0]===ts?[]:g,p]),g=m)}else b.run()};y.allowRecurse=!!t;let x;o==="sync"?x=y:o==="post"?x=()=>rt(y,l&&l.suspense):(y.pre=!0,l&&(y.id=l.uid),x=()=>Qs(y));const b=new Za(c,x);t?n?y():g=b.run():o==="post"?rt(b.run.bind(b),l&&l.suspense):b.run();const v=()=>{b.stop(),l&&l.scope&&Ka(l.scope.effects,b)};return h&&h.push(v),v}function um(e,t,n){const r=this.proxy,o=Ue(e)?e.includes(".")?ed(r,e):()=>r[e]:e.bind(r,r);let s;de(t)?s=t:(s=t.handler,n=t);const i=Qe;Mn(this);const a=Js(o,s.bind(r),n);return i?Mn(i):In(),a}function ed(e,t){const n=t.split(".");return()=>{let r=e;for(let o=0;o{Yn(n,t)});else if(Ef(e))for(const n in e)Yn(e[n],t);return e}function fm(e,t){const n=tt;if(n===null)return e;const r=ni(n)||n.proxy,o=e.dirs||(e.dirs=[]);for(let s=0;s{e.isMounted=!0}),Ho(()=>{e.isUnmounting=!0}),e}const Tt=[Function,Array],td={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Tt,onEnter:Tt,onAfterEnter:Tt,onEnterCancelled:Tt,onBeforeLeave:Tt,onLeave:Tt,onAfterLeave:Tt,onLeaveCancelled:Tt,onBeforeAppear:Tt,onAppear:Tt,onAfterAppear:Tt,onAppearCancelled:Tt},pm={name:"BaseTransition",props:td,setup(e,{slots:t}){const n=mn(),r=dm();let o;return()=>{const s=t.default&&rd(t.default(),!0);if(!s||!s.length)return;let i=s[0];if(s.length>1){for(const g of s)if(g.type!==dt){i=g;break}}const a=Se(e),{mode:l}=a;if(r.isLeaving)return vi(i);const c=Pc(i);if(!c)return vi(i);const u=Ki(c,a,r,n);$s(c,u);const f=n.subTree,d=f&&Pc(f);let p=!1;const{getTransitionKey:h}=c.type;if(h){const g=h();o===void 0?o=g:g!==o&&(o=g,p=!0)}if(d&&d.type!==dt&&(!Nt(c,d)||p)){const g=Ki(d,a,r,n);if($s(d,g),l==="out-in")return r.isLeaving=!0,g.afterLeave=()=>{r.isLeaving=!1,n.update.active!==!1&&n.update()},vi(i);l==="in-out"&&c.type!==dt&&(g.delayLeave=(y,x,b)=>{const v=nd(r,d);v[String(d.key)]=d,y[Cn]=()=>{x(),y[Cn]=void 0,delete u.delayedLeave},u.delayedLeave=b})}return i}}},hm=pm;function nd(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function Ki(e,t,n,r){const{appear:o,mode:s,persisted:i=!1,onBeforeEnter:a,onEnter:l,onAfterEnter:c,onEnterCancelled:u,onBeforeLeave:f,onLeave:d,onAfterLeave:p,onLeaveCancelled:h,onBeforeAppear:g,onAppear:y,onAfterAppear:x,onAppearCancelled:b}=t,v=String(e.key),m=nd(n,e),_=(T,M)=>{T&&$t(T,r,9,M)},C=(T,M)=>{const I=M[1];_(T,M),ce(T)?T.every(q=>q.length<=1)&&I():T.length<=1&&I()},S={mode:s,persisted:i,beforeEnter(T){let M=a;if(!n.isMounted)if(o)M=g||a;else return;T[Cn]&&T[Cn](!0);const I=m[v];I&&Nt(e,I)&&I.el[Cn]&&I.el[Cn](),_(M,[T])},enter(T){let M=l,I=c,q=u;if(!n.isMounted)if(o)M=y||l,I=x||c,q=b||u;else return;let A=!1;const N=T[ns]=he=>{A||(A=!0,he?_(q,[T]):_(I,[T]),S.delayedLeave&&S.delayedLeave(),T[ns]=void 0)};M?C(M,[T,N]):N()},leave(T,M){const I=String(e.key);if(T[ns]&&T[ns](!0),n.isUnmounting)return M();_(f,[T]);let q=!1;const A=T[Cn]=N=>{q||(q=!0,M(),N?_(h,[T]):_(p,[T]),T[Cn]=void 0,m[I]===e&&delete m[I])};m[I]=e,d?C(d,[T,A]):A()},clone(T){return Ki(T,t,n,r)}};return S}function vi(e){if(Bo(e))return e=en(e),e.children=null,e}function Pc(e){return Bo(e)?e.children?e.children[0]:void 0:e}function $s(e,t){e.shapeFlag&6&&e.component?$s(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function rd(e,t=!1,n){let r=[],o=0;for(let s=0;s1)for(let s=0;sZe({name:e.name},t,{setup:e}))():e}const rr=e=>!!e.type.__asyncLoader;/*! #__NO_SIDE_EFFECTS__ */function Z(e){de(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:r,delay:o=200,timeout:s,suspensible:i=!0,onError:a}=e;let l=null,c,u=0;const f=()=>(u++,l=null,d()),d=()=>{let p;return l||(p=l=t().catch(h=>{if(h=h instanceof Error?h:new Error(String(h)),a)return new Promise((g,y)=>{a(h,()=>g(f()),()=>y(h),u+1)});throw h}).then(h=>p!==l&&l?l:(h&&(h.__esModule||h[Symbol.toStringTag]==="Module")&&(h=h.default),c=h,h)))};return ne({name:"AsyncComponentWrapper",__asyncLoader:d,get __asyncResolved(){return c},setup(){const p=Qe;if(c)return()=>yi(c,p);const h=b=>{l=null,Vr(b,p,13,!r)};if(i&&p.suspense||Rr)return d().then(b=>()=>yi(b,p)).catch(b=>(h(b),()=>r?Y(r,{error:b}):null));const g=B(!1),y=B(),x=B(!!o);return o&&setTimeout(()=>{x.value=!1},o),s!=null&&setTimeout(()=>{if(!g.value&&!y.value){const b=new Error(`Async component timed out after ${s}ms.`);h(b),y.value=b}},s),d().then(()=>{g.value=!0,p.parent&&Bo(p.parent.vnode)&&Qs(p.parent.update)}).catch(b=>{h(b),y.value=b}),()=>{if(g.value&&c)return yi(c,p);if(y.value&&r)return Y(r,{error:y.value});if(n&&!x.value)return Y(n)}}})}function yi(e,t){const{ref:n,props:r,children:o,ce:s}=t.vnode,i=Y(e,r,o);return i.ref=n,i.ce=s,delete t.vnode.ce,i}const Bo=e=>e.type.__isKeepAlive,gm={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=mn(),r=n.ctx;if(!r.renderer)return()=>{const b=t.default&&t.default();return b&&b.length===1?b[0]:b};const o=new Map,s=new Set;let i=null;const a=n.suspense,{renderer:{p:l,m:c,um:u,o:{createElement:f}}}=r,d=f("div");r.activate=(b,v,m,_,C)=>{const S=b.component;c(b,v,m,0,a),l(S.vnode,b,v,m,S,a,_,b.slotScopeIds,C),rt(()=>{S.isDeactivated=!1,S.a&&ao(S.a);const T=b.props&&b.props.onVnodeMounted;T&>(T,S.parent,b)},a)},r.deactivate=b=>{const v=b.component;c(b,d,null,1,a),rt(()=>{v.da&&ao(v.da);const m=b.props&&b.props.onVnodeUnmounted;m&>(m,v.parent,b),v.isDeactivated=!0},a)};function p(b){bi(b),u(b,n,a,!0)}function h(b){o.forEach((v,m)=>{const _=ea(v.type);_&&(!b||!b(_))&&g(m)})}function g(b){const v=o.get(b);!i||!Nt(v,i)?p(v):i&&bi(i),o.delete(b),s.delete(b)}ze(()=>[e.include,e.exclude],([b,v])=>{b&&h(m=>oo(b,m)),v&&h(m=>!oo(v,m))},{flush:"post",deep:!0});let y=null;const x=()=>{y!=null&&o.set(y,wi(n.subTree))};return Le(x),ld(x),Ho(()=>{o.forEach(b=>{const{subTree:v,suspense:m}=n,_=wi(v);if(b.type===_.type&&b.key===_.key){bi(_);const C=_.component.da;C&&rt(C,m);return}p(b)})}),()=>{if(y=null,!t.default)return null;const b=t.default(),v=b[0];if(b.length>1)return i=null,b;if(!Ir(v)||!(v.shapeFlag&4)&&!(v.shapeFlag&128))return i=null,v;let m=wi(v);const _=m.type,C=ea(rr(m)?m.type.__asyncResolved||{}:_),{include:S,exclude:T,max:M}=e;if(S&&(!C||!oo(S,C))||T&&C&&oo(T,C))return i=m,v;const I=m.key==null?_:m.key,q=o.get(I);return m.el&&(m=en(m),v.shapeFlag&128&&(v.ssContent=m)),y=I,q?(m.el=q.el,m.component=q.component,m.transition&&$s(m,m.transition),m.shapeFlag|=512,s.delete(I),s.add(I)):(s.add(I),M&&s.size>parseInt(M,10)&&g(s.values().next().value)),m.shapeFlag|=256,i=m,Jf(v.type)?v:m}}},mm=gm;function oo(e,t){return ce(e)?e.some(n=>oo(n,t)):Ue(e)?e.split(",").includes(t):lg(e)?e.test(t):!1}function od(e,t){id(e,"a",t)}function sd(e,t){id(e,"da",t)}function id(e,t,n=Qe){const r=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(Zs(t,r,n),n){let o=n.parent;for(;o&&o.parent;)Bo(o.parent.vnode)&&vm(r,t,n,o),o=o.parent}}function vm(e,t,n,r){const o=Zs(t,e,r,!0);et(()=>{Ka(r[t],o)},n)}function bi(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function wi(e){return e.shapeFlag&128?e.ssContent:e}function Zs(e,t,n=Qe,r=!1){if(n){const o=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...i)=>{if(n.isUnmounted)return;Ur(),Mn(n);const a=$t(t,n,e,i);return In(),zr(),a});return r?o.unshift(s):o.push(s),s}}const gn=e=>(t,n=Qe)=>(!Rr||e==="sp")&&Zs(e,(...r)=>t(...r),n),ad=gn("bm"),Le=gn("m"),ym=gn("bu"),ld=gn("u"),Ho=gn("bum"),et=gn("um"),bm=gn("sp"),wm=gn("rtg"),_m=gn("rtc");function cd(e,t=Qe){Zs("ec",e,t)}function yt(e,t,n,r){let o;const s=n&&n[r];if(ce(e)||Ue(e)){o=new Array(e.length);for(let i=0,a=e.length;it(i,a,void 0,s&&s[a]));else{const i=Object.keys(e);o=new Array(i.length);for(let a=0,l=i.length;a{const s=r.fn(...o);return s&&(s.key=r.key),s}:r.fn)}return e}function ye(e,t,n={},r,o){if(tt.isCE||tt.parent&&rr(tt.parent)&&tt.parent.isCE)return t!=="default"&&(n.name=t),Y("slot",n,r&&r());let s=e[t];s&&s._c&&(s._d=!1),R();const i=s&&ud(s(n)),a=ae(ke,{key:n.key||i&&i.key||`_${t}`},i||(r?r():[]),i&&e._===1?64:-2);return!o&&a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),s&&s._c&&(s._d=!0),a}function ud(e){return e.some(t=>Ir(t)?!(t.type===dt||t.type===ke&&!ud(t.children)):!0)?e:null}const Gi=e=>e?Sd(e)?ni(e)||e.proxy:Gi(e.parent):null,lo=Ze(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Gi(e.parent),$root:e=>Gi(e.root),$emit:e=>e.emit,$options:e=>dl(e),$forceUpdate:e=>e.f||(e.f=()=>Qs(e.update)),$nextTick:e=>e.n||(e.n=hn.bind(e.proxy)),$watch:e=>um.bind(e)}),_i=(e,t)=>e!==Be&&!e.__isScriptSetup&&Pe(e,t),xm={get({_:e},t){const{ctx:n,setupState:r,data:o,props:s,accessCache:i,type:a,appContext:l}=e;let c;if(t[0]!=="$"){const p=i[t];if(p!==void 0)switch(p){case 1:return r[t];case 2:return o[t];case 4:return n[t];case 3:return s[t]}else{if(_i(r,t))return i[t]=1,r[t];if(o!==Be&&Pe(o,t))return i[t]=2,o[t];if((c=e.propsOptions[0])&&Pe(c,t))return i[t]=3,s[t];if(n!==Be&&Pe(n,t))return i[t]=4,n[t];Qi&&(i[t]=0)}}const u=lo[t];let f,d;if(u)return t==="$attrs"&&vt(e,"get",t),u(e);if((f=a.__cssModules)&&(f=f[t]))return f;if(n!==Be&&Pe(n,t))return i[t]=4,n[t];if(d=l.config.globalProperties,Pe(d,t))return d[t]},set({_:e},t,n){const{data:r,setupState:o,ctx:s}=e;return _i(o,t)?(o[t]=n,!0):r!==Be&&Pe(r,t)?(r[t]=n,!0):Pe(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(s[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:o,propsOptions:s}},i){let a;return!!n[i]||e!==Be&&Pe(e,i)||_i(t,i)||(a=s[0])&&Pe(a,i)||Pe(r,i)||Pe(lo,i)||Pe(o.config.globalProperties,i)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Pe(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function km(){return fd().slots}function Em(){return fd().attrs}function fd(){const e=mn();return e.setupContext||(e.setupContext=Ad(e))}function Sc(e){return ce(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function fl(e){const t=mn();let n=e();return In(),Ga(n)&&(n=n.catch(r=>{throw Mn(t),r})),[n,()=>Mn(t)]}let Qi=!0;function Cm(e){const t=dl(e),n=e.proxy,r=e.ctx;Qi=!1,t.beforeCreate&&Tc(t.beforeCreate,e,"bc");const{data:o,computed:s,methods:i,watch:a,provide:l,inject:c,created:u,beforeMount:f,mounted:d,beforeUpdate:p,updated:h,activated:g,deactivated:y,beforeDestroy:x,beforeUnmount:b,destroyed:v,unmounted:m,render:_,renderTracked:C,renderTriggered:S,errorCaptured:T,serverPrefetch:M,expose:I,inheritAttrs:q,components:A,directives:N,filters:he}=t;if(c&&Pm(c,r,null),i)for(const V in i){const W=i[V];de(W)&&(r[V]=W.bind(n))}if(o){const V=o.call(n,n);De(V)&&(e.data=Rt(V))}if(Qi=!0,s)for(const V in s){const W=s[V],_e=de(W)?W.bind(n,n):de(W.get)?W.get.bind(n,n):Ht,Re=!de(W)&&de(W.set)?W.set.bind(n):Ht,Fe=j({get:_e,set:Re});Object.defineProperty(r,V,{enumerable:!0,configurable:!0,get:()=>Fe.value,set:Ee=>Fe.value=Ee})}if(a)for(const V in a)dd(a[V],r,n,V);if(l){const V=de(l)?l.call(n):l;Reflect.ownKeys(V).forEach(W=>{Ve(W,V[W])})}u&&Tc(u,e,"c");function U(V,W){ce(W)?W.forEach(_e=>V(_e.bind(n))):W&&V(W.bind(n))}if(U(ad,f),U(Le,d),U(ym,p),U(ld,h),U(od,g),U(sd,y),U(cd,T),U(_m,C),U(wm,S),U(Ho,b),U(et,m),U(bm,M),ce(I))if(I.length){const V=e.exposed||(e.exposed={});I.forEach(W=>{Object.defineProperty(V,W,{get:()=>n[W],set:_e=>n[W]=_e})})}else e.exposed||(e.exposed={});_&&e.render===Ht&&(e.render=_),q!=null&&(e.inheritAttrs=q),A&&(e.components=A),N&&(e.directives=N)}function Pm(e,t,n=Ht){ce(e)&&(e=Xi(e));for(const r in e){const o=e[r];let s;De(o)?"default"in o?s=Te(o.from||r,o.default,!0):s=Te(o.from||r):s=Te(o),Xe(s)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>s.value,set:i=>s.value=i}):t[r]=s}}function Tc(e,t,n){$t(ce(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function dd(e,t,n,r){const o=r.includes(".")?ed(n,r):()=>n[r];if(Ue(e)){const s=t[e];de(s)&&ze(o,s)}else if(de(e))ze(o,e.bind(n));else if(De(e))if(ce(e))e.forEach(s=>dd(s,t,n,r));else{const s=de(e.handler)?e.handler.bind(n):t[e.handler];de(s)&&ze(o,s,e)}}function dl(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:o,optionsCache:s,config:{optionMergeStrategies:i}}=e.appContext,a=s.get(t);let l;return a?l=a:!o.length&&!n&&!r?l=t:(l={},o.length&&o.forEach(c=>Is(l,c,i,!0)),Is(l,t,i)),De(t)&&s.set(t,l),l}function Is(e,t,n,r=!1){const{mixins:o,extends:s}=t;s&&Is(e,s,n,!0),o&&o.forEach(i=>Is(e,i,n,!0));for(const i in t)if(!(r&&i==="expose")){const a=Sm[i]||n&&n[i];e[i]=a?a(e[i],t[i]):t[i]}return e}const Sm={data:Ac,props:Oc,emits:Oc,methods:so,computed:so,beforeCreate:ut,created:ut,beforeMount:ut,mounted:ut,beforeUpdate:ut,updated:ut,beforeDestroy:ut,beforeUnmount:ut,destroyed:ut,unmounted:ut,activated:ut,deactivated:ut,errorCaptured:ut,serverPrefetch:ut,components:so,directives:so,watch:Am,provide:Ac,inject:Tm};function Ac(e,t){return t?e?function(){return Ze(de(e)?e.call(this,this):e,de(t)?t.call(this,this):t)}:t:e}function Tm(e,t){return so(Xi(e),Xi(t))}function Xi(e){if(ce(e)){const t={};for(let n=0;n1)return n&&de(t)?t.call(r&&r.proxy):t}}function hd(){return!!(Qe||tt||Eo)}function Im(e,t,n,r=!1){const o={},s={};Ps(s,ti,1),e.propsDefaults=Object.create(null),gd(e,t,o,s);for(const i in e.propsOptions[0])i in o||(o[i]=void 0);n?e.props=r?o:No(o):e.type.props?e.props=o:e.props=s,e.attrs=s}function Rm(e,t,n,r){const{props:o,attrs:s,vnode:{patchFlag:i}}=e,a=Se(o),[l]=e.propsOptions;let c=!1;if((r||i>0)&&!(i&16)){if(i&8){const u=e.vnode.dynamicProps;for(let f=0;f{l=!0;const[d,p]=md(f,t,!0);Ze(i,d),p&&a.push(...p)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!s&&!l)return De(e)&&r.set(e,Er),Er;if(ce(s))for(let u=0;u-1,p[1]=g<0||h-1||Pe(p,"default"))&&a.push(f)}}}const c=[i,a];return De(e)&&r.set(e,c),c}function $c(e){return e[0]!=="$"}function Ic(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function Rc(e,t){return Ic(e)===Ic(t)}function Lc(e,t){return ce(t)?t.findIndex(n=>Rc(n,e)):de(t)&&Rc(t,e)?0:-1}const vd=e=>e[0]==="_"||e==="$stable",pl=e=>ce(e)?e.map(At):[At(e)],Lm=(e,t,n)=>{if(t._n)return t;const r=le((...o)=>pl(t(...o)),n);return r._c=!1,r},yd=(e,t,n)=>{const r=e._ctx;for(const o in e){if(vd(o))continue;const s=e[o];if(de(s))t[o]=Lm(o,s,r);else if(s!=null){const i=pl(s);t[o]=()=>i}}},bd=(e,t)=>{const n=pl(t);e.slots.default=()=>n},Mm=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=Se(t),Ps(t,"_",n)):yd(t,e.slots={})}else e.slots={},t&&bd(e,t);Ps(e.slots,ti,1)},jm=(e,t,n)=>{const{vnode:r,slots:o}=e;let s=!0,i=Be;if(r.shapeFlag&32){const a=t._;a?n&&a===1?s=!1:(Ze(o,t),!n&&a===1&&delete o._):(s=!t.$stable,yd(t,o)),i=t}else t&&(bd(e,t),i={default:1});if(s)for(const a in o)!vd(a)&&i[a]==null&&delete o[a]};function Rs(e,t,n,r,o=!1){if(ce(e)){e.forEach((d,p)=>Rs(d,t&&(ce(t)?t[p]:t),n,r,o));return}if(rr(r)&&!o)return;const s=r.shapeFlag&4?ni(r.component)||r.component.proxy:r.el,i=o?null:s,{i:a,r:l}=e,c=t&&t.r,u=a.refs===Be?a.refs={}:a.refs,f=a.setupState;if(c!=null&&c!==l&&(Ue(c)?(u[c]=null,Pe(f,c)&&(f[c]=null)):Xe(c)&&(c.value=null)),de(l))$n(l,a,12,[i,u]);else{const d=Ue(l),p=Xe(l);if(d||p){const h=()=>{if(e.f){const g=d?Pe(f,l)?f[l]:u[l]:l.value;o?ce(g)&&Ka(g,s):ce(g)?g.includes(s)||g.push(s):d?(u[l]=[s],Pe(f,l)&&(f[l]=u[l])):(l.value=[s],e.k&&(u[e.k]=l.value))}else d?(u[l]=i,Pe(f,l)&&(f[l]=i)):p&&(l.value=i,e.k&&(u[e.k]=i))};i?(h.id=-1,rt(h,n)):h()}}}let bn=!1;const rs=e=>/svg/.test(e.namespaceURI)&&e.tagName!=="foreignObject",os=e=>e.nodeType===8;function Dm(e){const{mt:t,p:n,o:{patchProp:r,createText:o,nextSibling:s,parentNode:i,remove:a,insert:l,createComment:c}}=e,u=(v,m)=>{if(!m.hasChildNodes()){n(null,v,m),As(),m._vnode=v;return}bn=!1,f(m.firstChild,v,null,null,null),As(),m._vnode=v,bn&&console.error("Hydration completed but contains mismatches.")},f=(v,m,_,C,S,T=!1)=>{const M=os(v)&&v.data==="[",I=()=>g(v,m,_,C,S,M),{type:q,ref:A,shapeFlag:N,patchFlag:he}=m;let fe=v.nodeType;m.el=v,he===-2&&(T=!1,m.dynamicChildren=null);let U=null;switch(q){case Or:fe!==3?m.children===""?(l(m.el=o(""),i(v),v),U=v):U=I():(v.data!==m.children&&(bn=!0,v.data=m.children),U=s(v));break;case dt:b(v)?(U=s(v),x(m.el=v.content.firstChild,v,_)):fe!==8||M?U=I():U=s(v);break;case uo:if(M&&(v=s(v),fe=v.nodeType),fe===1||fe===3){U=v;const V=!m.children.length;for(let W=0;W{T=T||!!m.dynamicChildren;const{type:M,props:I,patchFlag:q,shapeFlag:A,dirs:N,transition:he}=m,fe=M==="input"&&N||M==="option";if(fe||q!==-1){if(N&&Qt(m,null,_,"created"),I)if(fe||!T||q&48)for(const W in I)(fe&&W.endsWith("value")||jo(W)&&!io(W))&&r(v,W,null,I[W],!1,void 0,_);else I.onClick&&r(v,"onClick",null,I.onClick,!1,void 0,_);let U;(U=I&&I.onVnodeBeforeMount)&>(U,_,m);let V=!1;if(b(v)){V=_d(C,he)&&_&&_.vnode.props&&_.vnode.props.appear;const W=v.content.firstChild;V&&he.beforeEnter(W),x(W,v,_),m.el=v=W}if(N&&Qt(m,null,_,"beforeMount"),((U=I&&I.onVnodeMounted)||N||V)&&Zf(()=>{U&>(U,_,m),V&&he.enter(v),N&&Qt(m,null,_,"mounted")},C),A&16&&!(I&&(I.innerHTML||I.textContent))){let W=p(v.firstChild,m,v,_,C,S,T);for(;W;){bn=!0;const _e=W;W=W.nextSibling,a(_e)}}else A&8&&v.textContent!==m.children&&(bn=!0,v.textContent=m.children)}return v.nextSibling},p=(v,m,_,C,S,T,M)=>{M=M||!!m.dynamicChildren;const I=m.children,q=I.length;for(let A=0;A{const{slotScopeIds:M}=m;M&&(S=S?S.concat(M):M);const I=i(v),q=p(s(v),m,I,_,C,S,T);return q&&os(q)&&q.data==="]"?s(m.anchor=q):(bn=!0,l(m.anchor=c("]"),I,q),q)},g=(v,m,_,C,S,T)=>{if(bn=!0,m.el=null,T){const q=y(v);for(;;){const A=s(v);if(A&&A!==q)a(A);else break}}const M=s(v),I=i(v);return a(v),n(null,m,I,M,_,C,rs(I),S),M},y=(v,m="[",_="]")=>{let C=0;for(;v;)if(v=s(v),v&&os(v)&&(v.data===m&&C++,v.data===_)){if(C===0)return s(v);C--}return v},x=(v,m,_)=>{const C=m.parentNode;C&&C.replaceChild(v,m);let S=_;for(;S;)S.vnode.el===m&&(S.vnode.el=S.subTree.el=v),S=S.parent},b=v=>v.nodeType===1&&v.tagName.toLowerCase()==="template";return[u,f]}const rt=Zf;function Fm(e){return wd(e)}function Nm(e){return wd(e,Dm)}function wd(e,t){const n=Hi();n.__VUE__=!0;const{insert:r,remove:o,patchProp:s,createElement:i,createText:a,createComment:l,setText:c,setElementText:u,parentNode:f,nextSibling:d,setScopeId:p=Ht,insertStaticContent:h}=e,g=(w,k,P,O=null,L=null,D=null,J=!1,H=null,z=!!k.dynamicChildren)=>{if(w===k)return;w&&!Nt(w,k)&&(O=$(w),Ee(w,L,D,!0),w=null),k.patchFlag===-2&&(z=!1,k.dynamicChildren=null);const{type:F,ref:ie,shapeFlag:te}=k;switch(F){case Or:y(w,k,P,O);break;case dt:x(w,k,P,O);break;case uo:w==null&&b(k,P,O,J);break;case ke:A(w,k,P,O,L,D,J,H,z);break;default:te&1?_(w,k,P,O,L,D,J,H,z):te&6?N(w,k,P,O,L,D,J,H,z):(te&64||te&128)&&F.process(w,k,P,O,L,D,J,H,z,K)}ie!=null&&L&&Rs(ie,w&&w.ref,D,k||w,!k)},y=(w,k,P,O)=>{if(w==null)r(k.el=a(k.children),P,O);else{const L=k.el=w.el;k.children!==w.children&&c(L,k.children)}},x=(w,k,P,O)=>{w==null?r(k.el=l(k.children||""),P,O):k.el=w.el},b=(w,k,P,O)=>{[w.el,w.anchor]=h(w.children,k,P,O,w.el,w.anchor)},v=({el:w,anchor:k},P,O)=>{let L;for(;w&&w!==k;)L=d(w),r(w,P,O),w=L;r(k,P,O)},m=({el:w,anchor:k})=>{let P;for(;w&&w!==k;)P=d(w),o(w),w=P;o(k)},_=(w,k,P,O,L,D,J,H,z)=>{J=J||k.type==="svg",w==null?C(k,P,O,L,D,J,H,z):M(w,k,L,D,J,H,z)},C=(w,k,P,O,L,D,J,H)=>{let z,F;const{type:ie,props:te,shapeFlag:oe,transition:pe,dirs:ve}=w;if(z=w.el=i(w.type,D,te&&te.is,te),oe&8?u(z,w.children):oe&16&&T(w.children,z,null,O,L,D&&ie!=="foreignObject",J,H),ve&&Qt(w,null,O,"created"),S(z,w,w.scopeId,J,O),te){for(const Oe in te)Oe!=="value"&&!io(Oe)&&s(z,Oe,null,te[Oe],D,w.children,O,L,We);"value"in te&&s(z,"value",null,te.value),(F=te.onVnodeBeforeMount)&>(F,O,w)}ve&&Qt(w,null,O,"beforeMount");const $e=_d(L,pe);$e&&pe.beforeEnter(z),r(z,k,P),((F=te&&te.onVnodeMounted)||$e||ve)&&rt(()=>{F&>(F,O,w),$e&&pe.enter(z),ve&&Qt(w,null,O,"mounted")},L)},S=(w,k,P,O,L)=>{if(P&&p(w,P),O)for(let D=0;D{for(let F=z;F{const H=k.el=w.el;let{patchFlag:z,dynamicChildren:F,dirs:ie}=k;z|=w.patchFlag&16;const te=w.props||Be,oe=k.props||Be;let pe;P&&Hn(P,!1),(pe=oe.onVnodeBeforeUpdate)&>(pe,P,k,w),ie&&Qt(k,w,P,"beforeUpdate"),P&&Hn(P,!0);const ve=L&&k.type!=="foreignObject";if(F?I(w.dynamicChildren,F,H,P,O,ve,D):J||W(w,k,H,null,P,O,ve,D,!1),z>0){if(z&16)q(H,k,te,oe,P,O,L);else if(z&2&&te.class!==oe.class&&s(H,"class",null,oe.class,L),z&4&&s(H,"style",te.style,oe.style,L),z&8){const $e=k.dynamicProps;for(let Oe=0;Oe<$e.length;Oe++){const Ge=$e[Oe],jt=te[Ge],wr=oe[Ge];(wr!==jt||Ge==="value")&&s(H,Ge,jt,wr,L,w.children,P,O,We)}}z&1&&w.children!==k.children&&u(H,k.children)}else!J&&F==null&&q(H,k,te,oe,P,O,L);((pe=oe.onVnodeUpdated)||ie)&&rt(()=>{pe&>(pe,P,k,w),ie&&Qt(k,w,P,"updated")},O)},I=(w,k,P,O,L,D,J)=>{for(let H=0;H{if(P!==O){if(P!==Be)for(const H in P)!io(H)&&!(H in O)&&s(w,H,P[H],null,J,k.children,L,D,We);for(const H in O){if(io(H))continue;const z=O[H],F=P[H];z!==F&&H!=="value"&&s(w,H,F,z,J,k.children,L,D,We)}"value"in O&&s(w,"value",P.value,O.value)}},A=(w,k,P,O,L,D,J,H,z)=>{const F=k.el=w?w.el:a(""),ie=k.anchor=w?w.anchor:a("");let{patchFlag:te,dynamicChildren:oe,slotScopeIds:pe}=k;pe&&(H=H?H.concat(pe):pe),w==null?(r(F,P,O),r(ie,P,O),T(k.children,P,ie,L,D,J,H,z)):te>0&&te&64&&oe&&w.dynamicChildren?(I(w.dynamicChildren,oe,P,L,D,J,H),(k.key!=null||L&&k===L.subTree)&&hl(w,k,!0)):W(w,k,P,ie,L,D,J,H,z)},N=(w,k,P,O,L,D,J,H,z)=>{k.slotScopeIds=H,w==null?k.shapeFlag&512?L.ctx.activate(k,P,O,J,z):he(k,P,O,L,D,J,z):fe(w,k,z)},he=(w,k,P,O,L,D,J)=>{const H=w.component=Km(w,O,L);if(Bo(w)&&(H.ctx.renderer=K),Gm(H),H.asyncDep){if(L&&L.registerDep(H,U),!w.el){const z=H.subTree=Y(dt);x(null,z,k,P)}return}U(H,w,k,P,L,D,J)},fe=(w,k,P)=>{const O=k.component=w.component;if(nm(w,k,P))if(O.asyncDep&&!O.asyncResolved){V(O,k,P);return}else O.next=k,Xg(O.update),O.update();else k.el=w.el,O.vnode=k},U=(w,k,P,O,L,D,J)=>{const H=()=>{if(w.isMounted){let{next:ie,bu:te,u:oe,parent:pe,vnode:ve}=w,$e=ie,Oe;Hn(w,!1),ie?(ie.el=ve.el,V(w,ie,J)):ie=ve,te&&ao(te),(Oe=ie.props&&ie.props.onVnodeBeforeUpdate)&>(Oe,pe,ie,ve),Hn(w,!0);const Ge=mi(w),jt=w.subTree;w.subTree=Ge,g(jt,Ge,f(jt.el),$(jt),w,L,D),ie.el=Ge.el,$e===null&&al(w,Ge.el),oe&&rt(oe,L),(Oe=ie.props&&ie.props.onVnodeUpdated)&&rt(()=>gt(Oe,pe,ie,ve),L)}else{let ie;const{el:te,props:oe}=k,{bm:pe,m:ve,parent:$e}=w,Oe=rr(k);if(Hn(w,!1),pe&&ao(pe),!Oe&&(ie=oe&&oe.onVnodeBeforeMount)&>(ie,$e,k),Hn(w,!0),te&&Ce){const Ge=()=>{w.subTree=mi(w),Ce(te,w.subTree,w,L,null)};Oe?k.type.__asyncLoader().then(()=>!w.isUnmounted&&Ge()):Ge()}else{const Ge=w.subTree=mi(w);g(null,Ge,P,O,w,L,D),k.el=Ge.el}if(ve&&rt(ve,L),!Oe&&(ie=oe&&oe.onVnodeMounted)){const Ge=k;rt(()=>gt(ie,$e,Ge),L)}(k.shapeFlag&256||$e&&rr($e.vnode)&&$e.vnode.shapeFlag&256)&&w.a&&rt(w.a,L),w.isMounted=!0,k=P=O=null}},z=w.effect=new Za(H,()=>Qs(F),w.scope),F=w.update=()=>z.run();F.id=w.uid,Hn(w,!0),F()},V=(w,k,P)=>{k.component=w;const O=w.vnode.props;w.vnode=k,w.next=null,Rm(w,k.props,O,P),jm(w,k.children,P),Ur(),xc(),zr()},W=(w,k,P,O,L,D,J,H,z=!1)=>{const F=w&&w.children,ie=w?w.shapeFlag:0,te=k.children,{patchFlag:oe,shapeFlag:pe}=k;if(oe>0){if(oe&128){Re(F,te,P,O,L,D,J,H,z);return}else if(oe&256){_e(F,te,P,O,L,D,J,H,z);return}}pe&8?(ie&16&&We(F,L,D),te!==F&&u(P,te)):ie&16?pe&16?Re(F,te,P,O,L,D,J,H,z):We(F,L,D,!0):(ie&8&&u(P,""),pe&16&&T(te,P,O,L,D,J,H,z))},_e=(w,k,P,O,L,D,J,H,z)=>{w=w||Er,k=k||Er;const F=w.length,ie=k.length,te=Math.min(F,ie);let oe;for(oe=0;oeie?We(w,L,D,!0,!1,te):T(k,P,O,L,D,J,H,z,te)},Re=(w,k,P,O,L,D,J,H,z)=>{let F=0;const ie=k.length;let te=w.length-1,oe=ie-1;for(;F<=te&&F<=oe;){const pe=w[F],ve=k[F]=z?Pn(k[F]):At(k[F]);if(Nt(pe,ve))g(pe,ve,P,null,L,D,J,H,z);else break;F++}for(;F<=te&&F<=oe;){const pe=w[te],ve=k[oe]=z?Pn(k[oe]):At(k[oe]);if(Nt(pe,ve))g(pe,ve,P,null,L,D,J,H,z);else break;te--,oe--}if(F>te){if(F<=oe){const pe=oe+1,ve=peoe)for(;F<=te;)Ee(w[F],L,D,!0),F++;else{const pe=F,ve=F,$e=new Map;for(F=ve;F<=oe;F++){const _t=k[F]=z?Pn(k[F]):At(k[F]);_t.key!=null&&$e.set(_t.key,F)}let Oe,Ge=0;const jt=oe-ve+1;let wr=!1,fc=0;const qr=new Array(jt);for(F=0;F=jt){Ee(_t,L,D,!0);continue}let Kt;if(_t.key!=null)Kt=$e.get(_t.key);else for(Oe=ve;Oe<=oe;Oe++)if(qr[Oe-ve]===0&&Nt(_t,k[Oe])){Kt=Oe;break}Kt===void 0?Ee(_t,L,D,!0):(qr[Kt-ve]=F+1,Kt>=fc?fc=Kt:wr=!0,g(_t,k[Kt],P,null,L,D,J,H,z),Ge++)}const dc=wr?Bm(qr):Er;for(Oe=dc.length-1,F=jt-1;F>=0;F--){const _t=ve+F,Kt=k[_t],pc=_t+1{const{el:D,type:J,transition:H,children:z,shapeFlag:F}=w;if(F&6){Fe(w.component.subTree,k,P,O);return}if(F&128){w.suspense.move(k,P,O);return}if(F&64){J.move(w,k,P,K);return}if(J===ke){r(D,k,P);for(let te=0;teH.enter(D),L);else{const{leave:te,delayLeave:oe,afterLeave:pe}=H,ve=()=>r(D,k,P),$e=()=>{te(D,()=>{ve(),pe&&pe()})};oe?oe(D,ve,$e):$e()}else r(D,k,P)},Ee=(w,k,P,O=!1,L=!1)=>{const{type:D,props:J,ref:H,children:z,dynamicChildren:F,shapeFlag:ie,patchFlag:te,dirs:oe}=w;if(H!=null&&Rs(H,null,P,w,!0),ie&256){k.ctx.deactivate(w);return}const pe=ie&1&&oe,ve=!rr(w);let $e;if(ve&&($e=J&&J.onVnodeBeforeUnmount)&>($e,k,w),ie&6)wt(w.component,P,O);else{if(ie&128){w.suspense.unmount(P,O);return}pe&&Qt(w,null,k,"beforeUnmount"),ie&64?w.type.remove(w,k,P,L,K,O):F&&(D!==ke||te>0&&te&64)?We(F,k,P,!1,!0):(D===ke&&te&384||!L&&ie&16)&&We(z,k,P),O&&Me(w)}(ve&&($e=J&&J.onVnodeUnmounted)||pe)&&rt(()=>{$e&>($e,k,w),pe&&Qt(w,null,k,"unmounted")},P)},Me=w=>{const{type:k,el:P,anchor:O,transition:L}=w;if(k===ke){lt(P,O);return}if(k===uo){m(w);return}const D=()=>{o(P),L&&!L.persisted&&L.afterLeave&&L.afterLeave()};if(w.shapeFlag&1&&L&&!L.persisted){const{leave:J,delayLeave:H}=L,z=()=>J(P,D);H?H(w.el,D,z):z()}else D()},lt=(w,k)=>{let P;for(;w!==k;)P=d(w),o(w),w=P;o(k)},wt=(w,k,P)=>{const{bum:O,scope:L,update:D,subTree:J,um:H}=w;O&&ao(O),L.stop(),D&&(D.active=!1,Ee(J,w,k,P)),H&&rt(H,k),rt(()=>{w.isUnmounted=!0},k),k&&k.pendingBranch&&!k.isUnmounted&&w.asyncDep&&!w.asyncResolved&&w.suspenseId===k.pendingId&&(k.deps--,k.deps===0&&k.resolve())},We=(w,k,P,O=!1,L=!1,D=0)=>{for(let J=D;Jw.shapeFlag&6?$(w.component.subTree):w.shapeFlag&128?w.suspense.next():d(w.anchor||w.el),X=(w,k,P)=>{w==null?k._vnode&&Ee(k._vnode,null,null,!0):g(k._vnode||null,w,k,null,null,null,P),xc(),As(),k._vnode=w},K={p:g,um:Ee,m:Fe,r:Me,mt:he,mc:T,pc:W,pbc:I,n:$,o:e};let re,Ce;return t&&([re,Ce]=t(K)),{render:X,hydrate:re,createApp:$m(X,re)}}function Hn({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function _d(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function hl(e,t,n=!1){const r=e.children,o=t.children;if(ce(r)&&ce(o))for(let s=0;s>1,e[n[a]]0&&(t[r]=n[s-1]),n[s]=r)}}for(s=n.length,i=n[s-1];s-- >0;)n[s]=i,i=t[i];return n}const Hm=e=>e.__isTeleport,co=e=>e&&(e.disabled||e.disabled===""),Mc=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Ji=(e,t)=>{const n=e&&e.to;return Ue(n)?t?t(n):null:n},Um={__isTeleport:!0,process(e,t,n,r,o,s,i,a,l,c){const{mc:u,pc:f,pbc:d,o:{insert:p,querySelector:h,createText:g,createComment:y}}=c,x=co(t.props);let{shapeFlag:b,children:v,dynamicChildren:m}=t;if(e==null){const _=t.el=g(""),C=t.anchor=g("");p(_,n,r),p(C,n,r);const S=t.target=Ji(t.props,h),T=t.targetAnchor=g("");S&&(p(T,S),i=i||Mc(S));const M=(I,q)=>{b&16&&u(v,I,q,o,s,i,a,l)};x?M(n,C):S&&M(S,T)}else{t.el=e.el;const _=t.anchor=e.anchor,C=t.target=e.target,S=t.targetAnchor=e.targetAnchor,T=co(e.props),M=T?n:C,I=T?_:S;if(i=i||Mc(C),m?(d(e.dynamicChildren,m,M,o,s,i,a),hl(e,t,!0)):l||f(e,t,M,I,o,s,i,a,!1),x)T?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):ss(t,n,_,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const q=t.target=Ji(t.props,h);q&&ss(t,q,null,c,0)}else T&&ss(t,C,S,c,1)}kd(t)},remove(e,t,n,r,{um:o,o:{remove:s}},i){const{shapeFlag:a,children:l,anchor:c,targetAnchor:u,target:f,props:d}=e;if(f&&s(u),i&&s(c),a&16){const p=i||!co(d);for(let h=0;h0?Ot||Er:null,Ed(),$r>0&&Ot&&Ot.push(e),e}function se(e,t,n,r,o,s){return Cd(be(e,t,n,r,o,s,!0))}function ae(e,t,n,r,o){return Cd(Y(e,t,n,r,o,!0))}function Ir(e){return e?e.__v_isVNode===!0:!1}function Nt(e,t){return e.type===t.type&&e.key===t.key}const ti="__vInternal",Pd=({key:e})=>e??null,vs=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Ue(e)||Xe(e)||de(e)?{i:tt,r:e,k:t,f:!!n}:e:null);function be(e,t=null,n=null,r=0,o=null,s=e===ke?0:1,i=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Pd(t),ref:t&&vs(t),scopeId:Ys,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:r,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:tt};return a?(gl(l,n),s&128&&e.normalize(l)):n&&(l.shapeFlag|=Ue(n)?8:16),$r>0&&!i&&Ot&&(l.patchFlag>0||s&6)&&l.patchFlag!==32&&Ot.push(l),l}const Y=Vm;function Vm(e,t=null,n=null,r=0,o=null,s=!1){if((!e||e===Xf)&&(e=dt),Ir(e)){const a=en(e,t,!0);return n&&gl(a,n),$r>0&&!s&&Ot&&(a.shapeFlag&6?Ot[Ot.indexOf(e)]=a:Ot.push(a)),a.patchFlag|=-2,a}if(Ym(e)&&(e=e.__vccOpts),t){t=Uo(t);let{class:a,style:l}=t;a&&!Ue(a)&&(t.class=G(a)),De(l)&&(Bf(l)&&!ce(l)&&(l=Ze({},l)),t.style=fn(l))}const i=Ue(e)?1:Jf(e)?128:Hm(e)?64:De(e)?4:de(e)?2:0;return be(e,t,n,r,o,i,s,!0)}function Uo(e){return e?Bf(e)||ti in e?Ze({},e):e:null}function en(e,t,n=!1){const{props:r,ref:o,patchFlag:s,children:i}=e,a=t?ue(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&Pd(a),ref:t&&t.ref?n&&o?ce(o)?o.concat(vs(t)):[o,vs(t)]:vs(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:i,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ke?s===-1?16:s|16:s,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&en(e.ssContent),ssFallback:e.ssFallback&&en(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Je(e=" ",t=0){return Y(Or,null,e,t)}function ge(e="",t=!1){return t?(R(),ae(dt,null,e)):Y(dt,null,e)}function At(e){return e==null||typeof e=="boolean"?Y(dt):ce(e)?Y(ke,null,e.slice()):typeof e=="object"?Pn(e):Y(Or,null,String(e))}function Pn(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:en(e)}function gl(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(ce(t))n=16;else if(typeof t=="object")if(r&65){const o=t.default;o&&(o._c&&(o._d=!1),gl(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!(ti in t)?t._ctx=tt:o===3&&tt&&(tt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else de(t)?(t={default:t,_ctx:tt},n=32):(t=String(t),r&64?(n=16,t=[Je(t)]):n=8);e.children=t,e.shapeFlag|=n}function ue(...e){const t={};for(let n=0;nQe||tt;let ml,_r,Dc="__VUE_INSTANCE_SETTERS__";(_r=Hi()[Dc])||(_r=Hi()[Dc]=[]),_r.push(e=>Qe=e),ml=e=>{_r.length>1?_r.forEach(t=>t(e)):_r[0](e)};const Mn=e=>{ml(e),e.scope.on()},In=()=>{Qe&&Qe.scope.off(),ml(null)};function Sd(e){return e.vnode.shapeFlag&4}let Rr=!1;function Gm(e,t=!1){Rr=t;const{props:n,children:r}=e.vnode,o=Sd(e);Im(e,n,o,t),Mm(e,r);const s=o?Qm(e,t):void 0;return Rr=!1,s}function Qm(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=Hf(new Proxy(e.ctx,xm));const{setup:r}=n;if(r){const o=e.setupContext=r.length>1?Ad(e):null;Mn(e),Ur();const s=$n(r,e,0,[e.props,o]);if(zr(),In(),Ga(s)){if(s.then(In,In),t)return s.then(i=>{Zi(e,i,t)}).catch(i=>{Vr(i,e,0)});e.asyncDep=s}else Zi(e,s,t)}else Td(e,t)}function Zi(e,t,n){de(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:De(t)&&(e.setupState=zf(t)),Td(e,n)}let Fc;function Td(e,t,n){const r=e.type;if(!e.render){if(!t&&Fc&&!r.render){const o=r.template||dl(e).template;if(o){const{isCustomElement:s,compilerOptions:i}=e.appContext.config,{delimiters:a,compilerOptions:l}=r,c=Ze(Ze({isCustomElement:s,delimiters:a},i),l);r.render=Fc(o,c)}}e.render=r.render||Ht}{Mn(e),Ur();try{Cm(e)}finally{zr(),In()}}}function Xm(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return vt(e,"get","$attrs"),t[n]}}))}function Ad(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return Xm(e)},slots:e.slots,emit:e.emit,expose:t}}function ni(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(zf(Hf(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in lo)return lo[n](e)},has(t,n){return n in t||n in lo}}))}function ea(e,t=!0){return de(e)?e.displayName||e.name:e.name||t&&e.__name}function Ym(e){return de(e)&&"__vccOpts"in e}const j=(e,t)=>Kg(e,t,Rr);function me(e,t,n){const r=arguments.length;return r===2?De(t)&&!ce(t)?Ir(t)?Y(e,null,[t]):Y(e,t):Y(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Ir(n)&&(n=[n]),Y(e,t,n))}const Jm=Symbol.for("v-scx"),Zm=()=>Te(Jm),Od="3.3.8",ev="http://www.w3.org/2000/svg",Qn=typeof document<"u"?document:null,Nc=Qn&&Qn.createElement("template"),tv={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const o=t?Qn.createElementNS(ev,e):Qn.createElement(e,n?{is:n}:void 0);return e==="select"&&r&&r.multiple!=null&&o.setAttribute("multiple",r.multiple),o},createText:e=>Qn.createTextNode(e),createComment:e=>Qn.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Qn.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,o,s){const i=n?n.previousSibling:t.lastChild;if(o&&(o===s||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===s||!(o=o.nextSibling)););else{Nc.innerHTML=r?`${e}`:e;const a=Nc.content;if(r){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},wn="transition",Kr="animation",Co=Symbol("_vtc"),hr=(e,{slots:t})=>me(hm,nv(e),t);hr.displayName="Transition";const $d={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String};hr.props=Ze({},td,$d);const Un=(e,t=[])=>{ce(e)?e.forEach(n=>n(...t)):e&&e(...t)},Bc=e=>e?ce(e)?e.some(t=>t.length>1):e.length>1:!1;function nv(e){const t={};for(const A in e)A in $d||(t[A]=e[A]);if(e.css===!1)return t;const{name:n="v",type:r,duration:o,enterFromClass:s=`${n}-enter-from`,enterActiveClass:i=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:l=s,appearActiveClass:c=i,appearToClass:u=a,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:d=`${n}-leave-active`,leaveToClass:p=`${n}-leave-to`}=e,h=rv(o),g=h&&h[0],y=h&&h[1],{onBeforeEnter:x,onEnter:b,onEnterCancelled:v,onLeave:m,onLeaveCancelled:_,onBeforeAppear:C=x,onAppear:S=b,onAppearCancelled:T=v}=t,M=(A,N,he)=>{zn(A,N?u:a),zn(A,N?c:i),he&&he()},I=(A,N)=>{A._isLeaving=!1,zn(A,f),zn(A,p),zn(A,d),N&&N()},q=A=>(N,he)=>{const fe=A?S:b,U=()=>M(N,A,he);Un(fe,[N,U]),Hc(()=>{zn(N,A?l:s),_n(N,A?u:a),Bc(fe)||Uc(N,r,g,U)})};return Ze(t,{onBeforeEnter(A){Un(x,[A]),_n(A,s),_n(A,i)},onBeforeAppear(A){Un(C,[A]),_n(A,l),_n(A,c)},onEnter:q(!1),onAppear:q(!0),onLeave(A,N){A._isLeaving=!0;const he=()=>I(A,N);_n(A,f),iv(),_n(A,d),Hc(()=>{A._isLeaving&&(zn(A,f),_n(A,p),Bc(m)||Uc(A,r,y,he))}),Un(m,[A,he])},onEnterCancelled(A){M(A,!1),Un(v,[A])},onAppearCancelled(A){M(A,!0),Un(T,[A])},onLeaveCancelled(A){I(A),Un(_,[A])}})}function rv(e){if(e==null)return null;if(De(e))return[xi(e.enter),xi(e.leave)];{const t=xi(e);return[t,t]}}function xi(e){return Cf(e)}function _n(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[Co]||(e[Co]=new Set)).add(t)}function zn(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const n=e[Co];n&&(n.delete(t),n.size||(e[Co]=void 0))}function Hc(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let ov=0;function Uc(e,t,n,r){const o=e._endId=++ov,s=()=>{o===e._endId&&r()};if(n)return setTimeout(s,n);const{type:i,timeout:a,propCount:l}=sv(e,t);if(!i)return r();const c=i+"end";let u=0;const f=()=>{e.removeEventListener(c,d),s()},d=p=>{p.target===e&&++u>=l&&f()};setTimeout(()=>{u(n[h]||"").split(", "),o=r(`${wn}Delay`),s=r(`${wn}Duration`),i=zc(o,s),a=r(`${Kr}Delay`),l=r(`${Kr}Duration`),c=zc(a,l);let u=null,f=0,d=0;t===wn?i>0&&(u=wn,f=i,d=s.length):t===Kr?c>0&&(u=Kr,f=c,d=l.length):(f=Math.max(i,c),u=f>0?i>c?wn:Kr:null,d=u?u===wn?s.length:l.length:0);const p=u===wn&&/\b(transform|all)(,|$)/.test(r(`${wn}Property`).toString());return{type:u,timeout:f,propCount:d,hasTransform:p}}function zc(e,t){for(;e.lengthVc(n)+Vc(e[r])))}function Vc(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function iv(){return document.body.offsetHeight}function av(e,t,n){const r=e[Co];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const vl=Symbol("_vod"),lv={beforeMount(e,{value:t},{transition:n}){e[vl]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Gr(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),Gr(e,!0),r.enter(e)):r.leave(e,()=>{Gr(e,!1)}):Gr(e,t))},beforeUnmount(e,{value:t}){Gr(e,t)}};function Gr(e,t){e.style.display=t?e[vl]:"none"}function cv(e,t,n){const r=e.style,o=Ue(n);if(n&&!o){if(t&&!Ue(t))for(const s in t)n[s]==null&&ta(r,s,"");for(const s in n)ta(r,s,n[s])}else{const s=r.display;o?t!==n&&(r.cssText=n):t&&e.removeAttribute("style"),vl in e&&(r.display=s)}}const Wc=/\s*!important$/;function ta(e,t,n){if(ce(n))n.forEach(r=>ta(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=uv(e,t);Wc.test(n)?e.setProperty(pr(r),n.replace(Wc,""),"important"):e[r]=n}}const qc=["Webkit","Moz","ms"],ki={};function uv(e,t){const n=ki[t];if(n)return n;let r=Zt(t);if(r!=="filter"&&r in e)return ki[t]=r;r=qs(r);for(let o=0;oEi||(vv.then(()=>Ei=0),Ei=Date.now());function bv(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;$t(wv(r,n.value),t,5,[r])};return n.value=e,n.attached=yv(),n}function wv(e,t){if(ce(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>o=>!o._stopped&&r&&r(o))}else return t}const Xc=/^on[a-z]/,_v=(e,t,n,r,o=!1,s,i,a,l)=>{t==="class"?av(e,r,o):t==="style"?cv(e,n,r):jo(t)?qa(t)||gv(e,t,n,r,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):xv(e,t,r,o))?dv(e,t,r,s,i,a,l):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),fv(e,t,r,o))};function xv(e,t,n,r){return r?!!(t==="innerHTML"||t==="textContent"||t in e&&Xc.test(t)&&de(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||Xc.test(t)&&Ue(n)?!1:t in e}function JS(e){const t=mn();if(!t)return;const n=t.ut=(o=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(s=>ra(s,o))},r=()=>{const o=e(t.proxy);na(t.subTree,o),n(o)};cm(r),Le(()=>{const o=new MutationObserver(r);o.observe(t.subTree.el.parentNode,{childList:!0}),et(()=>o.disconnect())})}function na(e,t){if(e.shapeFlag&128){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{na(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)ra(e.el,t);else if(e.type===ke)e.children.forEach(n=>na(n,t));else if(e.type===uo){let{el:n,anchor:r}=e;for(;n&&(ra(n,t),n!==r);)n=n.nextSibling}}function ra(e,t){if(e.nodeType===1){const n=e.style;for(const r in t)n.setProperty(`--${r}`,t[r])}}const kv=["ctrl","shift","alt","meta"],Ev={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>kv.some(n=>e[`${n}Key`]&&!t.includes(n))},Ci=(e,t)=>(n,...r)=>{for(let o=0;on=>{if(!("key"in n))return;const r=pr(n.key);if(t.some(o=>o===r||Cv[o]===r))return e(n)},Id=Ze({patchProp:_v},tv);let po,Jc=!1;function Pv(){return po||(po=Fm(Id))}function Sv(){return po=Jc?po:Nm(Id),Jc=!0,po}const Tv=(...e)=>{const t=Pv().createApp(...e),{mount:n}=t;return t.mount=r=>{const o=Rd(r);if(!o)return;const s=t._component;!de(s)&&!s.render&&!s.template&&(s.template=o.innerHTML),o.innerHTML="";const i=n(o,!1,o instanceof SVGElement);return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),i},t},Av=(...e)=>{const t=Sv().createApp(...e),{mount:n}=t;return t.mount=r=>{const o=Rd(r);if(o)return n(o,!0,o instanceof SVGElement)},t};function Rd(e){return Ue(e)?document.querySelector(e):e}const Ov=/#/g,$v=/&/g,Iv=/=/g,yl=/\+/g,Rv=/%5e/gi,Lv=/%60/gi,Mv=/%7c/gi,jv=/%20/gi;function Dv(e){return encodeURI(""+e).replace(Mv,"|")}function oa(e){return Dv(typeof e=="string"?e:JSON.stringify(e)).replace(yl,"%2B").replace(jv,"+").replace(Ov,"%23").replace($v,"%26").replace(Lv,"`").replace(Rv,"^")}function Pi(e){return oa(e).replace(Iv,"%3D")}function Ls(e=""){try{return decodeURIComponent(""+e)}catch{return""+e}}function Fv(e){return Ls(e.replace(yl," "))}function Nv(e){return Ls(e.replace(yl," "))}function Ld(e=""){const t={};e[0]==="?"&&(e=e.slice(1));for(const n of e.split("&")){const r=n.match(/([^=]+)=?(.*)/)||[];if(r.length<2)continue;const o=Fv(r[1]);if(o==="__proto__"||o==="constructor")continue;const s=Nv(r[2]||"");t[o]===void 0?t[o]=s:Array.isArray(t[o])?t[o].push(s):t[o]=[t[o],s]}return t}function Bv(e,t){return(typeof t=="number"||typeof t=="boolean")&&(t=String(t)),t?Array.isArray(t)?t.map(n=>`${Pi(e)}=${oa(n)}`).join("&"):`${Pi(e)}=${oa(t)}`:Pi(e)}function Hv(e){return Object.keys(e).filter(t=>e[t]!==void 0).map(t=>Bv(t,e[t])).filter(Boolean).join("&")}const Uv=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,Md=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,zv=/^([/\\]\s*){2,}[^/\\]/;function gr(e,t={}){return typeof t=="boolean"&&(t={acceptRelative:t}),t.strict?Uv.test(e):Md.test(e)||(t.acceptRelative?zv.test(e):!1)}const Vv=/^[\s\0]*(blob|data|javascript|vbscript):$/i;function Wv(e){return!!e&&Vv.test(e)}const qv=/\/$|\/\?|\/#/;function sa(e="",t){return t?qv.test(e):e.endsWith("/")}function ri(e="",t){if(!t)return(sa(e)?e.slice(0,-1):e)||"/";if(!sa(e,!0))return e||"/";let n=e,r="";const o=e.indexOf("#");o>=0&&(n=e.slice(0,o),r=e.slice(o));const[s,...i]=n.split("?");return(s.slice(0,-1)||"/")+(i.length>0?`?${i.join("?")}`:"")+r}function Ms(e="",t){if(!t)return e.endsWith("/")?e:e+"/";if(sa(e,!0))return e||"/";let n=e,r="";const o=e.indexOf("#");if(o>=0&&(n=e.slice(0,o),r=e.slice(o),!n))return r;const[s,...i]=n.split("?");return s+"/"+(i.length>0?`?${i.join("?")}`:"")+r}function Kv(e=""){return e.startsWith("/")}function ia(e=""){return Kv(e)?e:"/"+e}function jd(e,t){if(Fd(t)||gr(e))return e;const n=ri(t);return e.startsWith(n)?e:mr(n,e)}function Zc(e,t){if(Fd(t))return e;const n=ri(t);if(!e.startsWith(n))return e;const r=e.slice(n.length);return r[0]==="/"?r:"/"+r}function Dd(e,t){const n=zo(e),r={...Ld(n.search),...t};return n.search=Hv(r),Zv(n)}function Fd(e){return!e||e==="/"}function Gv(e){return e&&e!=="/"}const Qv=/^\.?\//;function mr(e,...t){let n=e||"";for(const r of t.filter(o=>Gv(o)))if(n){const o=r.replace(Qv,"");n=Ms(n)+o}else n=r;return n}function Xv(e){return Yv(e,"https://")}function Yv(e,t){const n=e.match(Md);return n?t+e.slice(n[0].length):t+e}function Jv(e,t,n={}){return n.trailingSlash||(e=Ms(e),t=Ms(t)),n.leadingSlash||(e=ia(e),t=ia(t)),n.encoding||(e=Ls(e),t=Ls(t)),e===t}function zo(e="",t){const n=e.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(n){const[,f,d=""]=n;return{protocol:f.toLowerCase(),pathname:d,href:f+d,auth:"",host:"",search:"",hash:""}}if(!gr(e,{acceptRelative:!0}))return t?zo(t+e):eu(e);const[,r="",o,s=""]=e.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[],[,i="",a=""]=s.match(/([^#/?]*)(.*)?/)||[],{pathname:l,search:c,hash:u}=eu(a.replace(/\/(?=[A-Za-z]:)/,""));return{protocol:r.toLowerCase(),auth:o?o.slice(0,Math.max(0,o.length-1)):"",host:i,pathname:l,search:c,hash:u}}function eu(e=""){const[t="",n="",r=""]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:n,hash:r}}function Zv(e){const t=e.pathname||"",n=e.search?(e.search.startsWith("?")?"":"?")+e.search:"",r=e.hash||"",o=e.auth?e.auth+"@":"",s=e.host||"";return(e.protocol?e.protocol+"//":"")+o+s+t+n+r}const ey=()=>{var e;return((e=window==null?void 0:window.__NUXT__)==null?void 0:e.config)||{}},js=ey().app,ty=()=>js.baseURL,ny=()=>js.buildAssetsDir,bl=(...e)=>mr(Nd(),ny(),...e),Nd=(...e)=>{const t=js.cdnURL||js.baseURL;return e.length?mr(t,...e):t};globalThis.__buildAssetsURL=bl,globalThis.__publicAssetsURL=Nd;const ry=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,oy=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,sy=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function iy(e,t){if(e==="__proto__"||e==="constructor"&&t&&typeof t=="object"&&"prototype"in t){ay(e);return}return t}function ay(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function Po(e,t={}){if(typeof e!="string")return e;const n=e.trim();if(e[0]==='"'&&e.at(-1)==='"'&&!e.includes("\\"))return n.slice(1,-1);if(n.length<=9){const r=n.toLowerCase();if(r==="true")return!0;if(r==="false")return!1;if(r==="undefined")return;if(r==="null")return null;if(r==="nan")return Number.NaN;if(r==="infinity")return Number.POSITIVE_INFINITY;if(r==="-infinity")return Number.NEGATIVE_INFINITY}if(!sy.test(e)){if(t.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if(ry.test(e)||oy.test(e)){if(t.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,iy)}return JSON.parse(e)}catch(r){if(t.strict)throw r;return e}}class ly extends Error{constructor(t,n){super(t,n),this.name="FetchError",n!=null&&n.cause&&!this.cause&&(this.cause=n.cause)}}function cy(e){var l,c,u,f,d;const t=((l=e.error)==null?void 0:l.message)||((c=e.error)==null?void 0:c.toString())||"",n=((u=e.request)==null?void 0:u.method)||((f=e.options)==null?void 0:f.method)||"GET",r=((d=e.request)==null?void 0:d.url)||String(e.request)||"/",o=`[${n}] ${JSON.stringify(r)}`,s=e.response?`${e.response.status} ${e.response.statusText}`:"",i=`${o}: ${s}${t?` ${t}`:""}`,a=new ly(i,e.error?{cause:e.error}:void 0);for(const p of["request","options","response"])Object.defineProperty(a,p,{get(){return e[p]}});for(const[p,h]of[["data","_data"],["status","status"],["statusCode","status"],["statusText","statusText"],["statusMessage","statusText"]])Object.defineProperty(a,p,{get(){return e.response&&e.response[h]}});return a}const uy=new Set(Object.freeze(["PATCH","POST","PUT","DELETE"]));function tu(e="GET"){return uy.has(e.toUpperCase())}function fy(e){if(e===void 0)return!1;const t=typeof e;return t==="string"||t==="number"||t==="boolean"||t===null?!0:t!=="object"?!1:Array.isArray(e)?!0:e.buffer?!1:e.constructor&&e.constructor.name==="Object"||typeof e.toJSON=="function"}const dy=new Set(["image/svg","application/xml","application/xhtml","application/html"]),py=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function hy(e=""){if(!e)return"json";const t=e.split(";").shift()||"";return py.test(t)?"json":dy.has(t)||t.startsWith("text/")?"text":"blob"}function gy(e,t,n=globalThis.Headers){const r={...t,...e};if(t!=null&&t.params&&(e!=null&&e.params)&&(r.params={...t==null?void 0:t.params,...e==null?void 0:e.params}),t!=null&&t.query&&(e!=null&&e.query)&&(r.query={...t==null?void 0:t.query,...e==null?void 0:e.query}),t!=null&&t.headers&&(e!=null&&e.headers)){r.headers=new n((t==null?void 0:t.headers)||{});for(const[o,s]of new n((e==null?void 0:e.headers)||{}))r.headers.set(o,s)}return r}const my=new Set([408,409,425,429,500,502,503,504]),vy=new Set([101,204,205,304]);function Bd(e={}){const{fetch:t=globalThis.fetch,Headers:n=globalThis.Headers,AbortController:r=globalThis.AbortController}=e;async function o(a){const l=a.error&&a.error.name==="AbortError"&&!a.options.timeout||!1;if(a.options.retry!==!1&&!l){let u;typeof a.options.retry=="number"?u=a.options.retry:u=tu(a.options.method)?0:1;const f=a.response&&a.response.status||500;if(u>0&&(Array.isArray(a.options.retryStatusCodes)?a.options.retryStatusCodes.includes(f):my.has(f))){const d=a.options.retryDelay||0;return d>0&&await new Promise(p=>setTimeout(p,d)),s(a.request,{...a.options,retry:u-1,timeout:a.options.timeout})}}const c=cy(a);throw Error.captureStackTrace&&Error.captureStackTrace(c,s),c}const s=async function(l,c={}){var d;const u={request:l,options:gy(c,e.defaults,n),response:void 0,error:void 0};if(u.options.method=(d=u.options.method)==null?void 0:d.toUpperCase(),u.options.onRequest&&await u.options.onRequest(u),typeof u.request=="string"&&(u.options.baseURL&&(u.request=jd(u.request,u.options.baseURL)),(u.options.query||u.options.params)&&(u.request=Dd(u.request,{...u.options.params,...u.options.query}))),u.options.body&&tu(u.options.method)&&(fy(u.options.body)?(u.options.body=typeof u.options.body=="string"?u.options.body:JSON.stringify(u.options.body),u.options.headers=new n(u.options.headers||{}),u.options.headers.has("content-type")||u.options.headers.set("content-type","application/json"),u.options.headers.has("accept")||u.options.headers.set("accept","application/json")):("pipeTo"in u.options.body&&typeof u.options.body.pipeTo=="function"||typeof u.options.body.pipe=="function")&&("duplex"in u.options||(u.options.duplex="half"))),!u.options.signal&&u.options.timeout){const p=new r;setTimeout(()=>p.abort(),u.options.timeout),u.options.signal=p.signal}try{u.response=await t(u.request,u.options)}catch(p){return u.error=p,u.options.onRequestError&&await u.options.onRequestError(u),await o(u)}if(u.response.body&&!vy.has(u.response.status)&&u.options.method!=="HEAD"){const p=(u.options.parseResponse?"json":u.options.responseType)||hy(u.response.headers.get("content-type")||"");switch(p){case"json":{const h=await u.response.text(),g=u.options.parseResponse||Po;u.response._data=g(h);break}case"stream":{u.response._data=u.response.body;break}default:u.response._data=await u.response[p]()}}return u.options.onResponse&&await u.options.onResponse(u),!u.options.ignoreResponseError&&u.response.status>=400&&u.response.status<600?(u.options.onResponseError&&await u.options.onResponseError(u),await o(u)):u.response},i=async function(l,c){return(await s(l,c))._data};return i.raw=s,i.native=(...a)=>t(...a),i.create=(a={})=>Bd({...e,defaults:{...e.defaults,...a}}),i}const wl=function(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")}(),yy=wl.fetch||(()=>Promise.reject(new Error("[ofetch] global.fetch is not supported!"))),by=wl.Headers,wy=wl.AbortController,_y=Bd({fetch:yy,Headers:by,AbortController:wy}),xy=_y;globalThis.$fetch||(globalThis.$fetch=xy.create({baseURL:ty()}));function aa(e,t={},n){for(const r in e){const o=e[r],s=n?`${n}:${r}`:r;typeof o=="object"&&o!==null?aa(o,t,s):typeof o=="function"&&(t[s]=o)}return t}const ky={run:e=>e()},Ey=()=>ky,Hd=typeof console.createTask<"u"?console.createTask:Ey;function Cy(e,t){const n=t.shift(),r=Hd(n);return e.reduce((o,s)=>o.then(()=>r.run(()=>s(...t))),Promise.resolve())}function Py(e,t){const n=t.shift(),r=Hd(n);return Promise.all(e.map(o=>r.run(()=>o(...t))))}function Si(e,t){for(const n of[...e])n(t)}class Sy{constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(t,n,r={}){if(!t||typeof n!="function")return()=>{};const o=t;let s;for(;this._deprecatedHooks[t];)s=this._deprecatedHooks[t],t=s.to;if(s&&!r.allowDeprecated){let i=s.message;i||(i=`${o} hook has been deprecated`+(s.to?`, please use ${s.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(i)||(console.warn(i),this._deprecatedMessages.add(i))}if(!n.name)try{Object.defineProperty(n,"name",{get:()=>"_"+t.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[t]=this._hooks[t]||[],this._hooks[t].push(n),()=>{n&&(this.removeHook(t,n),n=void 0)}}hookOnce(t,n){let r,o=(...s)=>(typeof r=="function"&&r(),r=void 0,o=void 0,n(...s));return r=this.hook(t,o),r}removeHook(t,n){if(this._hooks[t]){const r=this._hooks[t].indexOf(n);r!==-1&&this._hooks[t].splice(r,1),this._hooks[t].length===0&&delete this._hooks[t]}}deprecateHook(t,n){this._deprecatedHooks[t]=typeof n=="string"?{to:n}:n;const r=this._hooks[t]||[];delete this._hooks[t];for(const o of r)this.hook(t,o)}deprecateHooks(t){Object.assign(this._deprecatedHooks,t);for(const n in t)this.deprecateHook(n,t[n])}addHooks(t){const n=aa(t),r=Object.keys(n).map(o=>this.hook(o,n[o]));return()=>{for(const o of r.splice(0,r.length))o()}}removeHooks(t){const n=aa(t);for(const r in n)this.removeHook(r,n[r])}removeAllHooks(){for(const t in this._hooks)delete this._hooks[t]}callHook(t,...n){return n.unshift(t),this.callHookWith(Cy,t,...n)}callHookParallel(t,...n){return n.unshift(t),this.callHookWith(Py,t,...n)}callHookWith(t,n,...r){const o=this._before||this._after?{name:n,args:r,context:{}}:void 0;this._before&&Si(this._before,o);const s=t(n in this._hooks?[...this._hooks[n]]:[],r);return s instanceof Promise?s.finally(()=>{this._after&&o&&Si(this._after,o)}):(this._after&&o&&Si(this._after,o),s)}beforeEach(t){return this._before=this._before||[],this._before.push(t),()=>{if(this._before!==void 0){const n=this._before.indexOf(t);n!==-1&&this._before.splice(n,1)}}}afterEach(t){return this._after=this._after||[],this._after.push(t),()=>{if(this._after!==void 0){const n=this._after.indexOf(t);n!==-1&&this._after.splice(n,1)}}}}function Ud(){return new Sy}function Ty(e={}){let t,n=!1;const r=i=>{if(t&&t!==i)throw new Error("Context conflict")};let o;if(e.asyncContext){const i=e.AsyncLocalStorage||globalThis.AsyncLocalStorage;i?o=new i:console.warn("[unctx] `AsyncLocalStorage` is not provided.")}const s=()=>{if(o&&t===void 0){const i=o.getStore();if(i!==void 0)return i}return t};return{use:()=>{const i=s();if(i===void 0)throw new Error("Context is not available");return i},tryUse:()=>s(),set:(i,a)=>{a||r(i),t=i,n=!0},unset:()=>{t=void 0,n=!1},call:(i,a)=>{r(i),t=i;try{return o?o.run(i,a):a()}finally{n||(t=void 0)}},async callAsync(i,a){t=i;const l=()=>{t=i},c=()=>t===i?l:void 0;la.add(c);try{const u=o?o.run(i,a):a();return n||(t=void 0),await u}finally{la.delete(c)}}}}function Ay(e={}){const t={};return{get(n,r={}){return t[n]||(t[n]=Ty({...e,...r})),t[n],t[n]}}}const Ds=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof global<"u"?global:typeof window<"u"?window:{},nu="__unctx__",Oy=Ds[nu]||(Ds[nu]=Ay()),$y=(e,t={})=>Oy.get(e,t),ru="__unctx_async_handlers__",la=Ds[ru]||(Ds[ru]=new Set);function So(e){const t=[];for(const o of la){const s=o();s&&t.push(s)}const n=()=>{for(const o of t)o()};let r=e();return r&&typeof r=="object"&&"catch"in r&&(r=r.catch(o=>{throw n(),o})),[r,n]}const zd=$y("nuxt-app",{asyncContext:!1}),Iy="__nuxt_plugin";function Ry(e){let t=0;const n={_scope:Af(),provide:void 0,globalName:"nuxt",versions:{get nuxt(){return"3.8.1"},get vue(){return n.vueApp.version}},payload:Rt({data:{},state:{},_errors:{},...window.__NUXT__??{}}),static:{data:{}},runWithContext:o=>n._scope.run(()=>jy(n,o)),isHydrating:!0,deferHydration(){if(!n.isHydrating)return()=>{};t++;let o=!1;return()=>{if(!o&&(o=!0,t--,t===0))return n.isHydrating=!1,n.callHook("app:suspense:resolve")}},_asyncDataPromises:{},_asyncData:{},_payloadRevivers:{},...e};n.hooks=Ud(),n.hook=n.hooks.hook,n.callHook=n.hooks.callHook,n.provide=(o,s)=>{const i="$"+o;is(n,i,s),is(n.vueApp.config.globalProperties,i,s)},is(n.vueApp,"$nuxt",n),is(n.vueApp.config.globalProperties,"$nuxt",n);{window.addEventListener("nuxt.preloadError",s=>{n.callHook("app:chunkError",{error:s.payload})}),window.useNuxtApp=window.useNuxtApp||Ae;const o=n.hook("app:error",(...s)=>{console.error("[nuxt] error caught during app initialization",...s)});n.hook("app:mounted",o)}const r=Rt(n.payload.config);return n.provide("config",r),n}async function Ly(e,t){if(t.hooks&&e.hooks.addHooks(t.hooks),typeof t=="function"){const{provide:n}=await e.runWithContext(()=>t(e))||{};if(n&&typeof n=="object")for(const r in n)e.provide(r,n[r])}}async function My(e,t){const n=[],r=[];for(const o of t){const s=Ly(e,o);o.parallel?n.push(s.catch(i=>r.push(i))):await s}if(await Promise.all(n),r.length)throw r[0]}/*! @__NO_SIDE_EFFECTS__ */function ot(e){return typeof e=="function"?e:(delete e.name,Object.assign(e.setup||(()=>{}),e,{[Iy]:!0}))}function jy(e,t,n){const r=()=>n?t(...n):t();return zd.set(e),e.vueApp.runWithContext(r)}/*! @__NO_SIDE_EFFECTS__ */function Ae(){var t;let e;if(hd()&&(e=(t=mn())==null?void 0:t.appContext.app.$nuxt),e=e||zd.tryUse(),!e)throw new Error("[nuxt] instance unavailable");return e}/*! @__NO_SIDE_EFFECTS__ */function Lt(){return Ae().$config}function is(e,t,n){Object.defineProperty(e,t,{get:()=>n})}const Dy="modulepreload",Fy=function(e,t){return e[0]==="."?new URL(e,t).href:e},ou={},Ny=function(t,n,r){if(!n||n.length===0)return t();const o=document.getElementsByTagName("link");return Promise.all(n.map(s=>{if(s=Fy(s,r),s in ou)return;ou[s]=!0;const i=s.endsWith(".css"),a=i?'[rel="stylesheet"]':"";if(!!r)for(let u=o.length-1;u>=0;u--){const f=o[u];if(f.href===s&&(!i||f.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${s}"]${a}`))return;const c=document.createElement("link");if(c.rel=i?"stylesheet":Dy,i||(c.as="script",c.crossOrigin=""),c.href=s,document.head.appendChild(c),i)return new Promise((u,f)=>{c.addEventListener("load",u),c.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${s}`)))})})).then(()=>t()).catch(s=>{const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=s,window.dispatchEvent(i),!i.defaultPrevented)throw s})},Q=(...e)=>Ny(...e).catch(t=>{const n=new Event("nuxt.preloadError");throw n.payload=t,window.dispatchEvent(n),t}),By=-1,Hy=-2,Uy=-3,zy=-4,Vy=-5,Wy=-6;function qy(e,t){return Ky(JSON.parse(e),t)}function Ky(e,t){if(typeof e=="number")return o(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const n=e,r=Array(n.length);function o(s,i=!1){if(s===By)return;if(s===Uy)return NaN;if(s===zy)return 1/0;if(s===Vy)return-1/0;if(s===Wy)return-0;if(i)throw new Error("Invalid input");if(s in r)return r[s];const a=n[s];if(!a||typeof a!="object")r[s]=a;else if(Array.isArray(a))if(typeof a[0]=="string"){const l=a[0],c=t==null?void 0:t[l];if(c)return r[s]=c(o(a[1]));switch(l){case"Date":r[s]=new Date(a[1]);break;case"Set":const u=new Set;r[s]=u;for(let p=1;p>>9)+65536).toString(16).substring(1,8).toLowerCase()}function su(e){return e._h||_l(e._d?e._d:`${e.tag}:${e.textContent||e.innerHTML||""}:${Object.entries(e.props).map(([t,n])=>`${t}:${String(n)}`).join(",")}`)}function Wd(e,t){const{props:n,tag:r}=e;if(Yy.includes(r))return r;if(r==="link"&&n.rel==="canonical")return"canonical";if(n.charset)return"charset";const o=["id"];r==="meta"&&o.push("name","property","http-equiv");for(const s of o)if(typeof n[s]<"u"){const i=String(n[s]);return t&&!t(i)?!1:`${r}:${s}:${i}`}return!1}function iu(e,t){return e==null?t||null:typeof e=="function"?e(t):e}function qd(e,t){const n=[],r=t.resolveKeyData||(s=>s.key),o=t.resolveValueData||(s=>s.value);for(const[s,i]of Object.entries(e))n.push(...(Array.isArray(i)?i:[i]).map(a=>{const l={key:s,value:a},c=o(l);return typeof c=="object"?qd(c,t):Array.isArray(c)?c:{[typeof t.key=="function"?t.key(l):t.key]:r(l),[typeof t.value=="function"?t.value(l):t.value]:c}}).flat());return n}function Kd(e,t){return Object.entries(e).map(([n,r])=>{if(typeof r=="object"&&(r=Kd(r,t)),t.resolve){const o=t.resolve({key:n,value:r});if(o)return o}return typeof r=="number"&&(r=r.toString()),typeof r=="string"&&t.wrapValue&&(r=r.replace(new RegExp(t.wrapValue,"g"),`\\${t.wrapValue}`),r=`${t.wrapValue}${r}${t.wrapValue}`),`${n}${t.keyValueSeparator||""}${r}`}).join(t.entrySeparator||"")}const ct=e=>({keyValue:e,metaKey:"property"}),Ti=e=>({keyValue:e}),xl={appleItunesApp:{unpack:{entrySeparator:", ",resolve({key:e,value:t}){return`${cn(e)}=${t}`}}},articleExpirationTime:ct("article:expiration_time"),articleModifiedTime:ct("article:modified_time"),articlePublishedTime:ct("article:published_time"),bookReleaseDate:ct("book:release_date"),charset:{metaKey:"charset"},contentSecurityPolicy:{unpack:{entrySeparator:"; ",resolve({key:e,value:t}){return`${cn(e)} ${t}`}},metaKey:"http-equiv"},contentType:{metaKey:"http-equiv"},defaultStyle:{metaKey:"http-equiv"},fbAppId:ct("fb:app_id"),msapplicationConfig:Ti("msapplication-Config"),msapplicationTileColor:Ti("msapplication-TileColor"),msapplicationTileImage:Ti("msapplication-TileImage"),ogAudioSecureUrl:ct("og:audio:secure_url"),ogAudioUrl:ct("og:audio"),ogImageSecureUrl:ct("og:image:secure_url"),ogImageUrl:ct("og:image"),ogSiteName:ct("og:site_name"),ogVideoSecureUrl:ct("og:video:secure_url"),ogVideoUrl:ct("og:video"),profileFirstName:ct("profile:first_name"),profileLastName:ct("profile:last_name"),profileUsername:ct("profile:username"),refresh:{metaKey:"http-equiv",unpack:{entrySeparator:";",resolve({key:e,value:t}){if(e==="seconds")return`${t}`}}},robots:{unpack:{entrySeparator:", ",resolve({key:e,value:t}){return typeof t=="boolean"?`${cn(e)}`:`${cn(e)}:${t}`}}},xUaCompatible:{metaKey:"http-equiv"}},Gd=["og","book","article","profile"];function Qd(e){var n;const t=cn(e).split(":")[0];return Gd.includes(t)?"property":((n=xl[e])==null?void 0:n.metaKey)||"name"}function Zy(e){var t;return((t=xl[e])==null?void 0:t.keyValue)||cn(e)}function cn(e){const t=e.replace(/([A-Z])/g,"-$1").toLowerCase(),n=t.split("-")[0];return Gd.includes(n)||n==="twitter"?e.replace(/([A-Z])/g,":$1").toLowerCase():t}function ca(e){if(Array.isArray(e))return e.map(n=>ca(n));if(typeof e!="object"||Array.isArray(e))return e;const t={};for(const[n,r]of Object.entries(e))t[cn(n)]=ca(r);return t}function e0(e,t){const n=xl[t];return t==="refresh"?`${e.seconds};url=${e.url}`:Kd(ca(e),{keyValueSeparator:"=",entrySeparator:", ",resolve({value:r,key:o}){if(r===null)return"";if(typeof r=="boolean")return`${o}`},...n==null?void 0:n.unpack})}const Xd=["og:image","og:video","og:audio","twitter:image"];function Yd(e){const t={};return Object.entries(e).forEach(([n,r])=>{String(r)!=="false"&&n&&(t[n]=r)}),t}function au(e,t){const n=Yd(t),r=cn(e),o=Qd(r);if(Xd.includes(r)){const s={};return Object.entries(n).forEach(([i,a])=>{s[`${e}${i==="url"?"":`${i.charAt(0).toUpperCase()}${i.slice(1)}`}`]=a}),kl(s).sort((i,a)=>{var l,c;return(((l=i[o])==null?void 0:l.length)||0)-(((c=a[o])==null?void 0:c.length)||0)})}return[{[o]:r,...n}]}function kl(e){const t=[],n={};Object.entries(e).forEach(([o,s])=>{if(!Array.isArray(s)){if(typeof s=="object"&&s){if(Xd.includes(cn(o))){t.push(...au(o,s));return}n[o]=Yd(s)}else n[o]=s;return}s.forEach(i=>{t.push(...typeof i=="string"?kl({[o]:i}):au(o,i))})});const r=qd(n,{key({key:o}){return Qd(o)},value({key:o}){return o==="charset"?"charset":"content"},resolveKeyData({key:o}){return Zy(o)},resolveValueData({value:o,key:s}){return o===null?"_null":typeof o=="object"?e0(o,s):typeof o=="number"?o.toString():o}});return[...t,...r].map(o=>(o.content==="_null"&&(o.content=null),o))}async function t0(e,t,n){const r={tag:e,props:await Jd(typeof t=="object"&&typeof t!="function"&&!(t instanceof Promise)?{...t}:{[["script","noscript","style"].includes(e)?"innerHTML":"textContent"]:t},["templateParams","titleTemplate"].includes(e))};return Vd.forEach(o=>{const s=typeof r.props[o]<"u"?r.props[o]:n[o];typeof s<"u"&&((!["innerHTML","textContent"].includes(o)||Qy.includes(r.tag))&&(r[o]=s),delete r.props[o])}),r.props.body&&(r.tagPosition="bodyClose",delete r.props.body),r.props.children&&(r.innerHTML=r.props.children,delete r.props.children),r.tag==="script"&&(typeof r.innerHTML=="object"&&(r.innerHTML=JSON.stringify(r.innerHTML),r.props.type=r.props.type||"application/json"),r.innerHTML&&["application/ld+json","application/json"].includes(r.props.type)&&(r.innerHTML=r.innerHTML.replace(/({...r,props:{...r.props,content:o}})):r}function n0(e){return typeof e=="object"&&!Array.isArray(e)&&(e=Object.keys(e).filter(t=>e[t])),(Array.isArray(e)?e.join(" "):e).split(" ").filter(t=>t.trim()).filter(Boolean).join(" ")}async function Jd(e,t){for(const n of Object.keys(e)){if(n==="class"){e[n]=n0(e[n]);continue}if(e[n]instanceof Promise&&(e[n]=await e[n]),!t&&!Vd.includes(n)){const r=String(e[n]),o=n.startsWith("data-");r==="true"||r===""?e[n]=o?"true":!0:e[n]||(o&&r==="false"?e[n]="false":delete e[n])}}return e}const r0=10;async function o0(e){const t=[];return Object.entries(e.resolvedInput).filter(([n,r])=>typeof r<"u"&&Xy.includes(n)).forEach(([n,r])=>{const o=Gy(r);t.push(...o.map(s=>t0(n,s,e)).flat())}),(await Promise.all(t)).flat().filter(Boolean).map((n,r)=>(n._e=e._i,e.mode&&(n._m=e.mode),n._p=(e._i<l&&l[c]||void 0,t):a=t[i],typeof a<"u"?(a||"").replace(/"/g,'\\"'):!1}let o=e;try{o=decodeURI(e)}catch{}return(o.match(/%(\w+\.+\w+)|%(\w+)/g)||[]).sort().reverse().forEach(i=>{const a=r(i.slice(1));typeof a=="string"&&(e=e.replace(new RegExp(`\\${i}(\\W|$)`,"g"),(l,c)=>`${a}${c}`).trim())}),e.includes(xn)&&(e.endsWith(xn)&&(e=e.slice(0,-xn.length).trim()),e.startsWith(xn)&&(e=e.slice(xn.length).trim()),e=e.replace(new RegExp(`\\${xn}\\s*\\${xn}`,"g"),xn),e=bs(e,{separator:n},n)),e}async function i0(e){const t={tag:e.tagName.toLowerCase(),props:await Jd(e.getAttributeNames().reduce((n,r)=>({...n,[r]:e.getAttribute(r)}),{})),innerHTML:e.innerHTML};return t._d=Wd(t),t}async function ep(e,t={}){var u;const n=t.document||e.resolvedOptions.document;if(!n)return;const r={shouldRender:e.dirty,tags:[]};if(await e.hooks.callHook("dom:beforeRender",r),!r.shouldRender)return;const o=(await e.resolveTags()).map(f=>({tag:f,id:ys.includes(f.tag)?su(f):f.tag,shouldRender:!0}));let s=e._dom;if(!s){s={elMap:{htmlAttrs:n.documentElement,bodyAttrs:n.body}};for(const f of["body","head"]){const d=(u=n==null?void 0:n[f])==null?void 0:u.children;for(const p of[...d].filter(h=>ys.includes(h.tagName.toLowerCase())))s.elMap[p.getAttribute("data-hid")||su(await i0(p))]=p}}s.pendingSideEffects={...s.sideEffects||{}},s.sideEffects={};function i(f,d,p){const h=`${f}:${d}`;s.sideEffects[h]=p,delete s.pendingSideEffects[h]}function a({id:f,$el:d,tag:p}){const h=p.tag.endsWith("Attrs");s.elMap[f]=d,h||(["textContent","innerHTML"].forEach(g=>{p[g]&&p[g]!==d[g]&&(d[g]=p[g])}),i(f,"el",()=>{s.elMap[f].remove(),delete s.elMap[f]})),Object.entries(p.props).forEach(([g,y])=>{const x=`attr:${g}`;if(g==="class")for(const b of(y||"").split(" ").filter(Boolean))h&&i(f,`${x}:${b}`,()=>d.classList.remove(b)),!d.classList.contains(b)&&d.classList.add(b);else d.getAttribute(g)!==y&&d.setAttribute(g,y===!0?"":String(y)),h&&i(f,x,()=>d.removeAttribute(g))})}const l=[],c={bodyClose:void 0,bodyOpen:void 0,head:void 0};for(const f of o){const{tag:d,shouldRender:p,id:h}=f;if(p){if(d.tag==="title"){n.title=d.textContent;continue}f.$el=f.$el||s.elMap[h],f.$el?a(f):ys.includes(d.tag)&&l.push(f)}}for(const f of l){const d=f.tag.tagPosition||"head";f.$el=n.createElement(f.tag.tag),a(f),c[d]=c[d]||n.createDocumentFragment(),c[d].appendChild(f.$el)}for(const f of o)await e.hooks.callHook("dom:renderTag",f,n,i);c.head&&n.head.appendChild(c.head),c.bodyOpen&&n.body.insertBefore(c.bodyOpen,n.body.firstChild),c.bodyClose&&n.body.appendChild(c.bodyClose),Object.values(s.pendingSideEffects).forEach(f=>f()),e._dom=s,e.dirty=!1,await e.hooks.callHook("dom:rendered",{renders:o})}async function a0(e,t={}){const n=t.delayFn||(r=>setTimeout(r,10));return e._domUpdatePromise=e._domUpdatePromise||new Promise(r=>n(async()=>{await ep(e,t),delete e._domUpdatePromise,r()}))}function l0(e){return t=>{var r,o;const n=((o=(r=t.resolvedOptions.document)==null?void 0:r.head.querySelector('script[id="unhead:payload"]'))==null?void 0:o.innerHTML)||!1;return n&&t.push(JSON.parse(n)),{mode:"client",hooks:{"entries:updated":function(s){a0(s,e)}}}}}const c0=["templateParams","htmlAttrs","bodyAttrs"],u0={hooks:{"tag:normalise":function({tag:e}){["hid","vmid","key"].forEach(r=>{e.props[r]&&(e.key=e.props[r],delete e.props[r])});const n=Wd(e)||(e.key?`${e.tag}:${e.key}`:!1);n&&(e._d=n)},"tags:resolve":function(e){const t={};e.tags.forEach(r=>{const o=(r.key?`${r.tag}:${r.key}`:r._d)||r._p,s=t[o];if(s){let a=r==null?void 0:r.tagDuplicateStrategy;if(!a&&c0.includes(r.tag)&&(a="merge"),a==="merge"){const l=s.props;["class","style"].forEach(c=>{r.props[c]&&l[c]&&(c==="style"&&!l[c].endsWith(";")&&(l[c]+=";"),r.props[c]=`${l[c]} ${r.props[c]}`)}),t[o].props={...l,...r.props};return}else if(r._e===s._e){s._duped=s._duped||[],r._d=`${s._d}:${s._duped.length+1}`,s._duped.push(r);return}else if(Fs(r)>Fs(s))return}const i=Object.keys(r.props).length+(r.innerHTML?1:0)+(r.textContent?1:0);if(ys.includes(r.tag)&&i===0){delete t[o];return}t[o]=r});const n=[];Object.values(t).forEach(r=>{const o=r._duped;delete r._duped,n.push(r),o&&n.push(...o)}),e.tags=n,e.tags=e.tags.filter(r=>!(r.tag==="meta"&&(r.props.name||r.props.property)&&!r.props.content))}}},f0={mode:"server",hooks:{"tags:resolve":function(e){const t={};e.tags.filter(n=>["titleTemplate","templateParams","title"].includes(n.tag)&&n._m==="server").forEach(n=>{t[n.tag]=n.tag.startsWith("title")?n.textContent:n.props}),Object.keys(t).length&&e.tags.push({tag:"script",innerHTML:JSON.stringify(t),props:{id:"unhead:payload",type:"application/json"}})}}},d0=["script","link","bodyAttrs"];function p0(e){const t={},n={};return Object.entries(e.props).forEach(([r,o])=>{r.startsWith("on")&&typeof o=="function"?(Zd.includes(r)&&(t[r]=`this.dataset.${r} = true`),n[r]=o):t[r]=o}),{props:t,eventHandlers:n}}const h0=e=>({hooks:{"tags:resolve":function(t){for(const n of t.tags)if(d0.includes(n.tag)){const{props:r,eventHandlers:o}=p0(n);n.props=r,Object.keys(o).length&&((n.props.src||n.props.href)&&(n.key=n.key||_l(n.props.src||n.props.href)),n._eventHandlers=o)}},"dom:renderTag":function(t,n,r){if(!t.tag._eventHandlers)return;const o=t.tag.tag==="bodyAttrs"?n.defaultView:t.$el;Object.entries(t.tag._eventHandlers).forEach(([s,i])=>{const a=`${t.tag._d||t.tag._p}:${s}`,l=s.slice(2).toLowerCase(),c=`data-h-${l}`;if(r(t.id,a,()=>{}),t.$el.hasAttribute(c))return;t.$el.setAttribute(c,"");let u;const f=d=>{i(d),u==null||u.disconnect()};s in t.$el.dataset?f(new Event(s.replace("on",""))):Zd.includes(s)&&typeof MutationObserver<"u"?(u=new MutationObserver(d=>{d.some(h=>h.attributeName===`data-${s}`)&&(f(new Event(s.replace("on",""))),u==null||u.disconnect())}),u.observe(t.$el,{attributes:!0})):o.addEventListener(l,f),r(t.id,a,()=>{u==null||u.disconnect(),o.removeEventListener(l,f),t.$el.removeAttribute(c)})})}}}),g0=["link","style","script","noscript"],m0={hooks:{"tag:normalise":({tag:e})=>{e.key&&g0.includes(e.tag)&&(e.props["data-hid"]=e._h=_l(e.key))}}},v0={hooks:{"tags:resolve":e=>{const t=n=>{var r;return(r=e.tags.find(o=>o._d===n))==null?void 0:r._p};for(const{prefix:n,offset:r}of s0)for(const o of e.tags.filter(s=>typeof s.tagPriority=="string"&&s.tagPriority.startsWith(n))){const s=t(o.tagPriority.replace(n,""));typeof s<"u"&&(o._p=s+r)}e.tags.sort((n,r)=>n._p-r._p).sort((n,r)=>Fs(n)-Fs(r))}}},y0={meta:"content",link:"href",htmlAttrs:"lang"},b0=e=>({hooks:{"tags:resolve":t=>{var a;const{tags:n}=t,r=(a=n.find(l=>l.tag==="title"))==null?void 0:a.textContent,o=n.findIndex(l=>l.tag==="templateParams"),s=o!==-1?n[o].props:{},i=s.separator||"|";delete s.separator,s.pageTitle=bs(s.pageTitle||r||"",s,i);for(const l of n.filter(c=>c.processTemplateParams!==!1)){const c=y0[l.tag];c&&typeof l.props[c]=="string"?l.props[c]=bs(l.props[c],s,i):(l.processTemplateParams===!0||["titleTemplate","title"].includes(l.tag))&&["innerHTML","textContent"].forEach(u=>{typeof l[u]=="string"&&(l[u]=bs(l[u],s,i))})}e._templateParams=s,e._separator=i,t.tags=n.filter(l=>l.tag!=="templateParams")}}}),w0={hooks:{"tags:resolve":e=>{const{tags:t}=e;let n=t.findIndex(o=>o.tag==="titleTemplate");const r=t.findIndex(o=>o.tag==="title");if(r!==-1&&n!==-1){const o=iu(t[n].textContent,t[r].textContent);o!==null?t[r].textContent=o||t[r].textContent:delete t[r]}else if(n!==-1){const o=iu(t[n].textContent);o!==null&&(t[n].textContent=o,t[n].tag="title",n=-1)}n!==-1&&delete t[n],e.tags=t.filter(Boolean)}}};let tp;function _0(e={}){const t=x0(e);return t.use(l0()),tp=t}function uu(e,t){return!e||e==="server"&&t||e==="client"&&!t}function x0(e={}){const t=Ud();t.addHooks(e.hooks||{}),e.document=e.document||(Jy?document:void 0);const n=!e.document,r=()=>{a.dirty=!0,t.callHook("entries:updated",a)};let o=0,s=[];const i=[],a={plugins:i,dirty:!1,resolvedOptions:e,hooks:t,headEntries(){return s},use(l){const c=typeof l=="function"?l(a):l;(!c.key||!i.some(u=>u.key===c.key))&&(i.push(c),uu(c.mode,n)&&t.addHooks(c.hooks||{}))},push(l,c){c==null||delete c.head;const u={_i:o++,input:l,...c};return uu(u.mode,n)&&(s.push(u),r()),{dispose(){s=s.filter(f=>f._i!==u._i),t.callHook("entries:updated",a),r()},patch(f){s=s.map(d=>(d._i===u._i&&(d.input=u.input=f),d)),r()}}},async resolveTags(){const l={tags:[],entries:[...s]};await t.callHook("entries:resolve",l);for(const c of l.entries){const u=c.resolvedInput||c.input;if(c.resolvedInput=await(c.transform?c.transform(u):u),c.resolvedInput)for(const f of await o0(c)){const d={tag:f,entry:c,resolvedOptions:a.resolvedOptions};await t.callHook("tag:normalise",d),l.tags.push(d.tag)}}return await t.callHook("tags:beforeResolve",l),await t.callHook("tags:resolve",l),l.tags},ssr:n};return[u0,f0,h0,m0,v0,b0,w0,...(e==null?void 0:e.plugins)||[]].forEach(l=>a.use(l)),a.hooks.callHook("init",a),a}function k0(){return tp}const E0=Od.startsWith("3");function C0(e){return typeof e=="function"?e():E(e)}function Ns(e,t=""){if(e instanceof Promise)return e;const n=C0(e);return!e||!n?n:Array.isArray(n)?n.map(r=>Ns(r,t)):typeof n=="object"?Object.fromEntries(Object.entries(n).map(([r,o])=>r==="titleTemplate"||r.startsWith("on")?[r,E(o)]:[r,Ns(o,r)])):n}const P0={hooks:{"entries:resolve":function(e){for(const t of e.entries)t.resolvedInput=Ns(t.input)}}},np="usehead";function S0(e){return{install(n){E0&&(n.config.globalProperties.$unhead=e,n.config.globalProperties.$head=e,n.provide(np,e))}}.install}function T0(e={}){e.domDelayFn=e.domDelayFn||(n=>hn(()=>setTimeout(()=>n(),0)));const t=_0(e);return t.use(P0),t.install=S0(t),t}const ua=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},fa="__unhead_injection_handler__";function A0(e){ua[fa]=e}function O0(){if(fa in ua)return ua[fa]();const e=Te(np);return e||k0()}function Vo(e,t={}){const n=t.head||O0();if(n)return n.ssr?n.push(e,t):$0(n,e,t)}function $0(e,t,n={}){const r=B(!1),o=B({});Ye(()=>{o.value=r.value?{}:Ns(t)});const s=e.push(o.value,n);return ze(o,a=>{s.patch(a)}),mn()&&(Ho(()=>{s.dispose()}),sd(()=>{r.value=!0}),od(()=>{r.value=!1})),s}function rp(e,t){const{title:n,titleTemplate:r,...o}=e;return Vo({title:n,titleTemplate:r,_flatMeta:o},{...t,transform(s){const i=kl({...s._flatMeta});return delete s._flatMeta,{...s,meta:i}}})}const as=/^[\u0009\u0020-\u007E\u0080-\u00FF]+$/;function I0(e,t){if(typeof e!="string")throw new TypeError("argument str must be a string");const n={},o=(t||{}).decode||M0;let s=0;for(;ssp(t,e)}}function op(e){const t={};for(const n in e)t[n]=n==="dynamic"?new Map(Object.entries(e[n]).map(([r,o])=>[r,op(o)])):new Map(Object.entries(e[n]));return t}function F0(e){return D0(op(e))}function sp(e,t){const n=[];for(const[o,s]of du(t.wildcard))e.startsWith(o)&&n.push(s);for(const[o,s]of du(t.dynamic))if(e.startsWith(o+"/")){const i="/"+e.slice(o.length).split("/").splice(2).join("/");n.push(...sp(i,s))}const r=t.static.get(e);return r&&n.push(r),n.filter(Boolean)}function du(e){return[...e.entries()].sort((t,n)=>t[0].length-n[0].length)}function da(e,t,n=".",r){if(!Ai(t))return da(e,{},n,r);const o=Object.assign({},t);for(const s in e){if(s==="__proto__"||s==="constructor")continue;const i=e[s];i!=null&&(r&&r(o,s,i,n)||(Array.isArray(i)&&Array.isArray(o[s])?o[s]=[...i,...o[s]]:Ai(i)&&Ai(o[s])?o[s]=da(i,o[s],(n?`${n}.`:"")+s.toString(),r):o[s]=i))}return o}function Ai(e){if(e===null||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function El(e){return(...t)=>t.reduce((n,r)=>da(n,r,"",e),{})}const oi=El(),N0=El((e,t,n)=>{if(e[t]!==void 0&&typeof n=="function")return e[t]=n(e[t]),!0});function B0(e,t){try{return t in e}catch{return!1}}var H0=Object.defineProperty,U0=(e,t,n)=>t in e?H0(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Kn=(e,t,n)=>(U0(e,typeof t!="symbol"?t+"":t,n),n);class pa extends Error{constructor(t,n={}){super(t,n),Kn(this,"statusCode",500),Kn(this,"fatal",!1),Kn(this,"unhandled",!1),Kn(this,"statusMessage"),Kn(this,"data"),Kn(this,"cause"),n.cause&&!this.cause&&(this.cause=n.cause)}toJSON(){const t={message:this.message,statusCode:ga(this.statusCode,500)};return this.statusMessage&&(t.statusMessage=ip(this.statusMessage)),this.data!==void 0&&(t.data=this.data),t}}Kn(pa,"__h3_error__",!0);function ha(e){if(typeof e=="string")return new pa(e);if(z0(e))return e;const t=new pa(e.message??e.statusMessage??"",{cause:e.cause||e});if(B0(e,"stack"))try{Object.defineProperty(t,"stack",{get(){return e.stack}})}catch{try{t.stack=e.stack}catch{}}if(e.data&&(t.data=e.data),e.statusCode?t.statusCode=ga(e.statusCode,t.statusCode):e.status&&(t.statusCode=ga(e.status,t.statusCode)),e.statusMessage?t.statusMessage=e.statusMessage:e.statusText&&(t.statusMessage=e.statusText),t.statusMessage){const n=t.statusMessage;ip(t.statusMessage)!==n&&console.warn("[h3] Please prefer using `message` for longer error messages instead of `statusMessage`. In the future, `statusMessage` will be sanitized by default.")}return e.fatal!==void 0&&(t.fatal=e.fatal),e.unhandled!==void 0&&(t.unhandled=e.unhandled),t}function z0(e){var t;return((t=e==null?void 0:e.constructor)==null?void 0:t.__h3_error__)===!0}const V0=/[^\u0009\u0020-\u007E]/g;function ip(e=""){return e.replace(V0,"")}function ga(e,t=200){return!e||(typeof e=="string"&&(e=Number.parseInt(e,10)),e<100||e>999)?t:e}const ap=Symbol("layout-meta"),vr=Symbol("route"),si=()=>we(Ae().payload,"error"),kr=e=>{const t=ii(e);try{const n=Ae(),r=si();n.hooks.callHook("app:error",t),r.value=r.value||t}catch{throw t}return t},lp=async(e={})=>{const t=Ae(),n=si();t.callHook("app:error:cleared",e),e.redirect&&await nn().replace(e.redirect),n.value=null},W0=e=>!!(e&&typeof e=="object"&&"__nuxt_error"in e),ii=e=>{const t=ha(e);return t.__nuxt_error=!0,t},nn=()=>{var e;return(e=Ae())==null?void 0:e.$router},jn=()=>hd()?Te(vr,Ae()._route):Ae()._route;/*! @__NO_SIDE_EFFECTS__ */const q0=()=>{try{if(Ae()._processingMiddleware)return!0}catch{return!0}return!1},K0=(e,t)=>{e||(e="/");const n=typeof e=="string"?e:Dd(e.path||"/",e.query||{})+(e.hash||"");if(t!=null&&t.open){{const{target:a="_blank",windowFeatures:l={}}=t.open,c=Object.entries(l).filter(([u,f])=>f!==void 0).map(([u,f])=>`${u.toLowerCase()}=${f}`).join(", ");open(n,a,c)}return Promise.resolve()}const r=(t==null?void 0:t.external)||gr(n,{acceptRelative:!0});if(r){if(!(t!=null&&t.external))throw new Error("Navigating to an external URL is not allowed by default. Use `navigateTo(url, { external: true })`.");const a=zo(n).protocol;if(a&&Wv(a))throw new Error(`Cannot navigate to a URL with '${a}' protocol.`)}const o=q0();if(!r&&o)return e;const s=nn(),i=Ae();return r?(i._scope.stop(),t!=null&&t.replace?location.replace(n):location.href=n,o?i.isHydrating?new Promise(()=>{}):!1:Promise.resolve()):t!=null&&t.replace?s.replace(e):s.push(e)},G0={ui:{primary:"green",gray:"slate",footer:{bottom:{left:"text-sm text-gray-500 dark:text-gray-400",wrapper:"border-t border-gray-200 dark:border-gray-800"}},icons:{dark:"i-heroicons-moon",light:"i-heroicons-sun"}},header:{logo:{alt:"logo nuxt supabase module",light:"/logo-nuxt-supabase-light.png",dark:"/logo-nuxt-supabase-dark.png"},search:!0,colorMode:!0,links:[{icon:"i-simple-icons-x",to:"https://x.com/nuxt_js",target:"_blank","aria-label":"Nuxt on X"},{icon:"i-simple-icons-github",to:"https://github.com/nuxt-modules/supabase",target:"_blank","aria-label":"Module on GitHub"},{icon:"i-simple-icons-nuxtdotjs",to:"https://nuxt.com",target:"_blank","aria-label":"Nuxt official website"},{icon:"i-simple-icons-supabase",to:"https://supabase.com",target:"_blank","aria-label":"Supabase official website"}]},footer:{credits:"Made with Nuxt Studio",colorMode:!1,links:[{icon:"i-simple-icons-x",to:"https://x.com/nuxt_js",target:"_blank","aria-label":"Nuxt on X"},{icon:"i-simple-icons-github",to:"https://github.com/nuxt-modules/supabase",target:"_blank","aria-label":"Module on GitHub"},{icon:"i-simple-icons-nuxtdotjs",to:"https://nuxt.com",target:"_blank","aria-label":"Nuxt official website"},{icon:"i-simple-icons-supabase",to:"https://supabase.com",target:"_blank","aria-label":"Supabase official website"}]},toc:{title:"Table of Contents",bottom:{title:"Community",edit:"https://github.com/nuxt-modules/supabase/edit/main/docs/content",links:[{icon:"i-heroicons-star",label:"Star on GitHub",to:"https://github.com/nuxt-modules/supabase",target:"_blank"},{icon:"i-simple-icons-nuxtdotjs",label:"Nuxt docs",to:"https://nuxt.com",target:"_blank"},{icon:"i-simple-icons-supabase",label:"Supabase docs",to:"https://supabase.com",target:"_blank"}]}}},Q0={ui:{variables:{light:{background:"255 255 255",foreground:"var(--color-gray-700)"},dark:{background:"var(--color-gray-900)",foreground:"var(--color-gray-200)"},header:{height:"4rem"}},icons:{dark:"i-heroicons-moon-20-solid",light:"i-heroicons-sun-20-solid",search:"i-heroicons-magnifying-glass-20-solid",external:"i-heroicons-arrow-up-right-20-solid",chevron:"i-heroicons-chevron-down-20-solid",hash:"i-heroicons-hashtag-20-solid"},presets:{button:{primary:{color:"white",variant:"solid"},secondary:{color:"gray",variant:"ghost"},input:{color:"white",variant:"outline",ui:{font:"",color:{white:{outline:"ring-1 ring-inset ring-gray-300 dark:ring-gray-700 hover:ring-gray-300 dark:hover:ring-gray-700 hover:bg-gray-100/50 dark:hover:bg-gray-800/50 text-gray-400 dark:text-gray-500 hover:text-gray-700 dark:hover:text-gray-200 focus-visible:ring-2 focus-visible:ring-primary-500 dark:focus-visible-ring-primary-400"}}}}}}}},X0={nuxt:{buildId:"70482045-f0af-4a07-998c-4b4484f348d7"},ui:{primary:"green",gray:"cool",colors:["red","orange","amber","yellow","lime","green","emerald","teal","cyan","sky","blue","indigo","violet","purple","fuchsia","pink","rose","primary"],strategy:"merge"}},He=N0(G0,Q0,X0);function at(){const e=Ae();return e._appConfig||(e._appConfig=Rt(He)),e._appConfig}const Y0=!1,ma=!1,J0=!1,Z0={componentName:"NuxtLink"},eb={deep:!0},tb={},nb="#__nuxt";let ws,cp;function rb(){var t;const e=(t=at().nuxt)==null?void 0:t.buildId;return ws=$fetch(bl(`builds/meta/${e}.json`)),ws.then(n=>{cp=F0(n.matcher)}),ws}function ai(){return ws||rb()}async function up(e){return await ai(),oi({},...cp.matchAll(e).reverse())}function pu(e,t={}){const n=ob(e,t),r=Ae(),o=r._payloadCache=r._payloadCache||{};return n in o||(o[n]=sb(e).then(s=>s?fp(n).then(i=>i||(delete o[n],null)):(o[n]=null,null))),o[n]}const hu="json";function ob(e,t={}){const n=new URL(e,"http://localhost");if(n.search)throw new Error("Payload URL cannot contain search params: "+e);if(n.host!=="localhost"||gr(n.pathname,{acceptRelative:!0}))throw new Error("Payload URL must not include hostname: "+e);const r=t.hash||(t.fresh?Date.now():"");return mr(Lt().app.baseURL,n.pathname,r?`_payload.${r}.${hu}`:`_payload.${hu}`)}async function fp(e){const t=fetch(e).then(n=>n.text().then(dp));try{return await t}catch(n){console.warn("[nuxt] Cannot load payload ",e,n)}return null}async function sb(e=jn().path){if((await ai()).prerendered.includes(e))return!0;const n=await up(e);return!!n.prerender&&!n.redirect}let ls=null;async function ib(){if(ls)return ls;const e=document.getElementById("__NUXT_DATA__");if(!e)return{};const t=dp(e.textContent||""),n=e.dataset.src?await fp(e.dataset.src):void 0;return ls={...t,...n,...window.__NUXT__},ls}function dp(e){return qy(e,Ae()._payloadRevivers)}function ab(e,t){Ae()._payloadRevivers[e]=t}const va={NuxtError:e=>ii(e),EmptyShallowRef:e=>lr(e==="_"?void 0:e==="0n"?BigInt(0):Po(e)),EmptyRef:e=>B(e==="_"?void 0:e==="0n"?BigInt(0):Po(e)),ShallowRef:e=>lr(e),ShallowReactive:e=>No(e),Ref:e=>B(e),Reactive:e=>Rt(e)};va.Island=({key:e,params:t})=>{const n=Ae();return n.isHydrating||(n.payload.data[e]=n.payload.data[e]||$fetch(`/__nuxt_island/${e}.json`,{responseType:"json",...t?{params:t}:{}}).then(r=>(n.payload.data[e]=r,r))),null};const lb=ot({name:"nuxt:revive-payload:client",order:-30,async setup(e){let t,n;for(const r in va)ab(r,va[r]);Object.assign(e.payload,([t,n]=So(()=>e.runWithContext(ib)),t=await t,n(),t)),window.__NUXT__=e.payload}}),cb=[],ub=ot({name:"nuxt:head",enforce:"pre",setup(e){const t=T0({plugins:cb});A0(()=>Ae().vueApp._context.provides.usehead),e.vueApp.use(t);{let n=!0;const r=async()=>{n=!1,await ep(t)};t.hooks.hook("dom:beforeRender",o=>{o.shouldRender=!n}),e.hooks.hook("page:start",()=>{n=!0}),e.hooks.hook("page:finish",()=>{e.isHydrating||r()}),e.hooks.hook("app:error",r),e.hooks.hook("app:suspense:resolve",r)}}});/*! +function Wa(e,t){const n=Object.create(null),r=e.split(",");for(let o=0;o!!n[o.toLowerCase()]:o=>!!n[o]}const Be={},Er=[],Ht=()=>{},sg=()=>!1,ig=/^on[^a-z]/,jo=e=>ig.test(e),qa=e=>e.startsWith("onUpdate:"),Ze=Object.assign,Ka=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},ag=Object.prototype.hasOwnProperty,Pe=(e,t)=>ag.call(e,t),ce=Array.isArray,Cr=e=>Do(e)==="[object Map]",xf=e=>Do(e)==="[object Set]",lg=e=>Do(e)==="[object RegExp]",de=e=>typeof e=="function",Ue=e=>typeof e=="string",Vs=e=>typeof e=="symbol",De=e=>e!==null&&typeof e=="object",Ga=e=>(De(e)||de(e))&&de(e.then)&&de(e.catch),kf=Object.prototype.toString,Do=e=>kf.call(e),cg=e=>Do(e).slice(8,-1),Ef=e=>Do(e)==="[object Object]",Qa=e=>Ue(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,io=Wa(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Ws=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},ug=/-(\w)/g,Zt=Ws(e=>e.replace(ug,(t,n)=>n?n.toUpperCase():"")),fg=/\B([A-Z])/g,pr=Ws(e=>e.replace(fg,"-$1").toLowerCase()),qs=Ws(e=>e.charAt(0).toUpperCase()+e.slice(1)),hi=Ws(e=>e?`on${qs(e)}`:""),ir=(e,t)=>!Object.is(e,t),ao=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},dg=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Cf=e=>{const t=Ue(e)?Number(e):NaN;return isNaN(t)?e:t};let hc;const Hi=()=>hc||(hc=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function fn(e){if(ce(e)){const t={};for(let n=0;n{if(n){const r=n.split(hg);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function G(e){let t="";if(Ue(e))t=e;else if(ce(e))for(let n=0;nUe(e)?e:e==null?"":ce(e)||De(e)&&(e.toString===kf||!de(e.toString))?JSON.stringify(e,Sf,2):String(e),Sf=(e,t)=>t&&t.__v_isRef?Sf(e,t.value):Cr(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,o])=>(n[`${r} =>`]=o,n),{})}:xf(t)?{[`Set(${t.size})`]:[...t.values()]}:De(t)&&!ce(t)&&!Ef(t)?String(t):t;let kt;class Tf{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=kt,!t&&kt&&(this.index=(kt.scopes||(kt.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=kt;try{return kt=this,t()}finally{kt=n}}}on(){kt=this}off(){kt=this.parent}stop(t){if(this._active){let n,r;for(n=0,r=this.effects.length;n{const t=new Set(e);return t.w=0,t.n=0,t},Of=e=>(e.w&Ln)>0,$f=e=>(e.n&Ln)>0,wg=({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r{(u==="length"||!Vs(u)&&u>=l)&&a.push(c)})}else switch(n!==void 0&&a.push(i.get(n)),t){case"add":ce(e)?Qa(n)&&a.push(i.get("length")):(a.push(i.get(tr)),Cr(e)&&a.push(i.get(zi)));break;case"delete":ce(e)||(a.push(i.get(tr)),Cr(e)&&a.push(i.get(zi)));break;case"set":Cr(e)&&a.push(i.get(tr));break}if(a.length===1)a[0]&&Vi(a[0]);else{const l=[];for(const c of a)c&&l.push(...c);Vi(Ja(l))}}function Vi(e,t){const n=ce(e)?e:[...e];for(const r of n)r.computed&&mc(r);for(const r of n)r.computed||mc(r)}function mc(e,t){(e!==Ft||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}function xg(e,t){var n;return(n=Ss.get(e))==null?void 0:n.get(t)}const kg=Wa("__proto__,__v_isRef,__isVue"),Lf=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Vs)),vc=Eg();function Eg(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const r=Se(this);for(let s=0,i=this.length;s{e[t]=function(...n){Ur();const r=Se(this)[t].apply(this,n);return zr(),r}}),e}function Cg(e){const t=Se(this);return vt(t,"has",e),t.hasOwnProperty(e)}class Mf{constructor(t=!1,n=!1){this._isReadonly=t,this._shallow=n}get(t,n,r){const o=this._isReadonly,s=this._shallow;if(n==="__v_isReactive")return!o;if(n==="__v_isReadonly")return o;if(n==="__v_isShallow")return s;if(n==="__v_raw"&&r===(o?s?Fg:Nf:s?Ff:Df).get(t))return t;const i=ce(t);if(!o){if(i&&Pe(vc,n))return Reflect.get(vc,n,r);if(n==="hasOwnProperty")return Cg}const a=Reflect.get(t,n,r);return(Vs(n)?Lf.has(n):kg(n))||(o||vt(t,"get",n),s)?a:Xe(a)?i&&Qa(n)?a:a.value:De(a)?o?Gs(a):Rt(a):a}}class jf extends Mf{constructor(t=!1){super(!1,t)}set(t,n,r,o){let s=t[n];if(ar(s)&&Xe(s)&&!Xe(r))return!1;if(!this._shallow&&(!Ts(r)&&!ar(r)&&(s=Se(s),r=Se(r)),!ce(t)&&Xe(s)&&!Xe(r)))return s.value=r,!0;const i=ce(t)&&Qa(n)?Number(n)e,Ks=e=>Reflect.getPrototypeOf(e);function Xo(e,t,n=!1,r=!1){e=e.__v_raw;const o=Se(e),s=Se(t);n||(ir(t,s)&&vt(o,"get",t),vt(o,"get",s));const{has:i}=Ks(o),a=r?el:n?rl:wo;if(i.call(o,t))return a(e.get(t));if(i.call(o,s))return a(e.get(s));e!==o&&e.get(t)}function Yo(e,t=!1){const n=this.__v_raw,r=Se(n),o=Se(e);return t||(ir(e,o)&&vt(r,"has",e),vt(r,"has",o)),e===o?n.has(e):n.has(e)||n.has(o)}function Jo(e,t=!1){return e=e.__v_raw,!t&&vt(Se(e),"iterate",tr),Reflect.get(e,"size",e)}function yc(e){e=Se(e);const t=Se(this);return Ks(t).has.call(t,e)||(t.add(e),un(t,"add",e,e)),this}function bc(e,t){t=Se(t);const n=Se(this),{has:r,get:o}=Ks(n);let s=r.call(n,e);s||(e=Se(e),s=r.call(n,e));const i=o.call(n,e);return n.set(e,t),s?ir(t,i)&&un(n,"set",e,t):un(n,"add",e,t),this}function wc(e){const t=Se(this),{has:n,get:r}=Ks(t);let o=n.call(t,e);o||(e=Se(e),o=n.call(t,e)),r&&r.call(t,e);const s=t.delete(e);return o&&un(t,"delete",e,void 0),s}function _c(){const e=Se(this),t=e.size!==0,n=e.clear();return t&&un(e,"clear",void 0,void 0),n}function Zo(e,t){return function(r,o){const s=this,i=s.__v_raw,a=Se(i),l=t?el:e?rl:wo;return!e&&vt(a,"iterate",tr),i.forEach((c,u)=>r.call(o,l(c),l(u),s))}}function es(e,t,n){return function(...r){const o=this.__v_raw,s=Se(o),i=Cr(s),a=e==="entries"||e===Symbol.iterator&&i,l=e==="keys"&&i,c=o[e](...r),u=n?el:t?rl:wo;return!t&&vt(s,"iterate",l?zi:tr),{next(){const{value:f,done:d}=c.next();return d?{value:f,done:d}:{value:a?[u(f[0]),u(f[1])]:u(f),done:d}},[Symbol.iterator](){return this}}}}function yn(e){return function(...t){return e==="delete"?!1:this}}function Og(){const e={get(s){return Xo(this,s)},get size(){return Jo(this)},has:Yo,add:yc,set:bc,delete:wc,clear:_c,forEach:Zo(!1,!1)},t={get(s){return Xo(this,s,!1,!0)},get size(){return Jo(this)},has:Yo,add:yc,set:bc,delete:wc,clear:_c,forEach:Zo(!1,!0)},n={get(s){return Xo(this,s,!0)},get size(){return Jo(this,!0)},has(s){return Yo.call(this,s,!0)},add:yn("add"),set:yn("set"),delete:yn("delete"),clear:yn("clear"),forEach:Zo(!0,!1)},r={get(s){return Xo(this,s,!0,!0)},get size(){return Jo(this,!0)},has(s){return Yo.call(this,s,!0)},add:yn("add"),set:yn("set"),delete:yn("delete"),clear:yn("clear"),forEach:Zo(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(s=>{e[s]=es(s,!1,!1),n[s]=es(s,!0,!1),t[s]=es(s,!1,!0),r[s]=es(s,!0,!0)}),[e,n,t,r]}const[$g,Ig,Rg,Lg]=Og();function tl(e,t){const n=t?e?Lg:Rg:e?Ig:$g;return(r,o,s)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?r:Reflect.get(Pe(n,o)&&o in r?n:r,o,s)}const Mg={get:tl(!1,!1)},jg={get:tl(!1,!0)},Dg={get:tl(!0,!1)},Df=new WeakMap,Ff=new WeakMap,Nf=new WeakMap,Fg=new WeakMap;function Ng(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Bg(e){return e.__v_skip||!Object.isExtensible(e)?0:Ng(cg(e))}function Rt(e){return ar(e)?e:nl(e,!1,Sg,Mg,Df)}function No(e){return nl(e,!1,Ag,jg,Ff)}function Gs(e){return nl(e,!0,Tg,Dg,Nf)}function nl(e,t,n,r,o){if(!De(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const s=o.get(e);if(s)return s;const i=Bg(e);if(i===0)return e;const a=new Proxy(e,i===2?r:n);return o.set(e,a),a}function Pr(e){return ar(e)?Pr(e.__v_raw):!!(e&&e.__v_isReactive)}function ar(e){return!!(e&&e.__v_isReadonly)}function Ts(e){return!!(e&&e.__v_isShallow)}function Bf(e){return Pr(e)||ar(e)}function Se(e){const t=e&&e.__v_raw;return t?Se(t):e}function Hf(e){return Ps(e,"__v_skip",!0),e}const wo=e=>De(e)?Rt(e):e,rl=e=>De(e)?Gs(e):e;function ol(e){On&&Ft&&(e=Se(e),Rf(e.dep||(e.dep=Ja())))}function sl(e,t){e=Se(e);const n=e.dep;n&&Vi(n)}function Xe(e){return!!(e&&e.__v_isRef===!0)}function B(e){return Uf(e,!1)}function lr(e){return Uf(e,!0)}function Uf(e,t){return Xe(e)?e:new Hg(e,t)}class Hg{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:Se(t),this._value=n?t:wo(t)}get value(){return ol(this),this._value}set value(t){const n=this.__v_isShallow||Ts(t)||ar(t);t=n?t:Se(t),ir(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:wo(t),sl(this))}}function E(e){return Xe(e)?e.value:e}function gi(e){return de(e)?e():E(e)}const Ug={get:(e,t,n)=>E(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const o=e[t];return Xe(o)&&!Xe(n)?(o.value=n,!0):Reflect.set(e,t,n,r)}};function zf(e){return Pr(e)?e:new Proxy(e,Ug)}class zg{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:r}=t(()=>ol(this),()=>sl(this));this._get=n,this._set=r}get value(){return this._get()}set value(t){this._set(t)}}function Vf(e){return new zg(e)}function QS(e){const t=ce(e)?new Array(e.length):{};for(const n in e)t[n]=Wf(e,n);return t}class Vg{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return xg(Se(this._object),this._key)}}class Wg{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function we(e,t,n){return Xe(e)?e:de(e)?new Wg(e):De(e)&&arguments.length>1?Wf(e,t,n):B(e)}function Wf(e,t,n){const r=e[t];return Xe(r)?r:new Vg(e,t,n)}class qg{constructor(t,n,r,o){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new Za(t,()=>{this._dirty||(this._dirty=!0,sl(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=r}get value(){const t=Se(this);return ol(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function Kg(e,t,n=!1){let r,o;const s=de(e);return s?(r=e,o=Ht):(r=e.get,o=e.set),new qg(r,o,s||!o,n)}function $n(e,t,n,r){let o;try{o=r?e(...r):e()}catch(s){Vr(s,t,n)}return o}function $t(e,t,n,r){if(de(e)){const s=$n(e,t,n,r);return s&&Ga(s)&&s.catch(i=>{Vr(i,t,n)}),s}const o=[];for(let s=0;s>>1,o=st[r],s=xo(o);sXt&&st.splice(t,1)}function qi(e){ce(e)?Sr.push(...e):(!ln||!ln.includes(e,e.allowRecurse?Gn+1:Gn))&&Sr.push(e),Kf()}function xc(e,t=_o?Xt+1:0){for(;txo(n)-xo(r)),Gn=0;Gne.id==null?1/0:e.id,Yg=(e,t)=>{const n=xo(e)-xo(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Gf(e){Wi=!1,_o=!0,st.sort(Yg);const t=Ht;try{for(Xt=0;XtUe(p)?p.trim():p)),f&&(o=n.map(dg))}let a,l=r[a=hi(t)]||r[a=hi(Zt(t))];!l&&s&&(l=r[a=hi(pr(t))]),l&&$t(l,e,6,o);const c=r[a+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,$t(c,e,6,o)}}function Qf(e,t,n=!1){const r=t.emitsCache,o=r.get(e);if(o!==void 0)return o;const s=e.emits;let i={},a=!1;if(!de(e)){const l=c=>{const u=Qf(c,t,!0);u&&(a=!0,Ze(i,u))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!s&&!a?(De(e)&&r.set(e,null),null):(ce(s)?s.forEach(l=>i[l]=null):Ze(i,s),De(e)&&r.set(e,i),i)}function Xs(e,t){return!e||!jo(t)?!1:(t=t.slice(2).replace(/Once$/,""),Pe(e,t[0].toLowerCase()+t.slice(1))||Pe(e,pr(t))||Pe(e,t))}let tt=null,Ys=null;function Os(e){const t=tt;return tt=e,Ys=e&&e.type.__scopeId||null,t}function XS(e){Ys=e}function YS(){Ys=null}function le(e,t=tt,n){if(!t||e._n)return e;const r=(...o)=>{r._d&&jc(-1);const s=Os(t);let i;try{i=e(...o)}finally{Os(s),r._d&&jc(1)}return i};return r._n=!0,r._c=!0,r._d=!0,r}function mi(e){const{type:t,vnode:n,proxy:r,withProxy:o,props:s,propsOptions:[i],slots:a,attrs:l,emit:c,render:u,renderCache:f,data:d,setupState:p,ctx:h,inheritAttrs:g}=e;let y,x;const b=Os(e);try{if(n.shapeFlag&4){const m=o||r;y=At(u.call(m,m,f,s,p,d,h)),x=l}else{const m=t;y=At(m.length>1?m(s,{attrs:l,slots:a,emit:c}):m(s,null)),x=t.props?l:em(l)}}catch(m){fo.length=0,Vr(m,e,1),y=Y(dt)}let v=y;if(x&&g!==!1){const m=Object.keys(x),{shapeFlag:_}=v;m.length&&_&7&&(i&&m.some(qa)&&(x=tm(x,i)),v=en(v,x))}return n.dirs&&(v=en(v),v.dirs=v.dirs?v.dirs.concat(n.dirs):n.dirs),n.transition&&(v.transition=n.transition),y=v,Os(b),y}function Zg(e){let t;for(let n=0;n{let t;for(const n in e)(n==="class"||n==="style"||jo(n))&&((t||(t={}))[n]=e[n]);return t},tm=(e,t)=>{const n={};for(const r in e)(!qa(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function nm(e,t,n){const{props:r,children:o,component:s}=e,{props:i,children:a,patchFlag:l}=t,c=s.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return r?kc(r,i,c):!!i;if(l&8){const u=t.dynamicProps;for(let f=0;fe.__isSuspense,rm={name:"Suspense",__isSuspense:!0,process(e,t,n,r,o,s,i,a,l,c){e==null?om(t,n,r,o,s,i,a,l,c):sm(e,t,n,r,o,i,a,l,c)},hydrate:im,create:ul,normalize:am},cl=rm;function ko(e,t){const n=e.props&&e.props[t];de(n)&&n()}function om(e,t,n,r,o,s,i,a,l){const{p:c,o:{createElement:u}}=l,f=u("div"),d=e.suspense=ul(e,o,r,t,f,n,s,i,a,l);c(null,d.pendingBranch=e.ssContent,f,null,r,d,s,i),d.deps>0?(ko(e,"onPending"),ko(e,"onFallback"),c(null,e.ssFallback,t,n,r,null,s,i),Tr(d,e.ssFallback)):d.resolve(!1,!0)}function sm(e,t,n,r,o,s,i,a,{p:l,um:c,o:{createElement:u}}){const f=t.suspense=e.suspense;f.vnode=t,t.el=e.el;const d=t.ssContent,p=t.ssFallback,{activeBranch:h,pendingBranch:g,isInFallback:y,isHydrating:x}=f;if(g)f.pendingBranch=d,Nt(d,g)?(l(g,d,f.hiddenContainer,null,o,f,s,i,a),f.deps<=0?f.resolve():y&&(l(h,p,n,r,o,null,s,i,a),Tr(f,p))):(f.pendingId++,x?(f.isHydrating=!1,f.activeBranch=g):c(g,o,f),f.deps=0,f.effects.length=0,f.hiddenContainer=u("div"),y?(l(null,d,f.hiddenContainer,null,o,f,s,i,a),f.deps<=0?f.resolve():(l(h,p,n,r,o,null,s,i,a),Tr(f,p))):h&&Nt(d,h)?(l(h,d,n,r,o,f,s,i,a),f.resolve(!0)):(l(null,d,f.hiddenContainer,null,o,f,s,i,a),f.deps<=0&&f.resolve()));else if(h&&Nt(d,h))l(h,d,n,r,o,f,s,i,a),Tr(f,d);else if(ko(t,"onPending"),f.pendingBranch=d,f.pendingId++,l(null,d,f.hiddenContainer,null,o,f,s,i,a),f.deps<=0)f.resolve();else{const{timeout:b,pendingId:v}=f;b>0?setTimeout(()=>{f.pendingId===v&&f.fallback(p)},b):b===0&&f.fallback(p)}}function ul(e,t,n,r,o,s,i,a,l,c,u=!1){const{p:f,m:d,um:p,n:h,o:{parentNode:g,remove:y}}=c;let x;const b=lm(e);b&&t!=null&&t.pendingBranch&&(x=t.pendingId,t.deps++);const v=e.props?Cf(e.props.timeout):void 0,m={vnode:e,parent:t,parentComponent:n,isSVG:i,container:r,hiddenContainer:o,anchor:s,deps:0,pendingId:0,timeout:typeof v=="number"?v:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:u,isUnmounted:!1,effects:[],resolve(_=!1,C=!1){const{vnode:S,activeBranch:T,pendingBranch:M,pendingId:I,effects:q,parentComponent:A,container:N}=m;let he=!1;if(m.isHydrating)m.isHydrating=!1;else if(!_){he=T&&M.transition&&M.transition.mode==="out-in",he&&(T.transition.afterLeave=()=>{I===m.pendingId&&(d(M,N,V,0),qi(q))});let{anchor:V}=m;T&&(V=h(T),p(T,A,m,!0)),he||d(M,N,V,0)}Tr(m,M),m.pendingBranch=null,m.isInFallback=!1;let fe=m.parent,U=!1;for(;fe;){if(fe.pendingBranch){fe.effects.push(...q),U=!0;break}fe=fe.parent}!U&&!he&&qi(q),m.effects=[],b&&t&&t.pendingBranch&&x===t.pendingId&&(t.deps--,t.deps===0&&!C&&t.resolve()),ko(S,"onResolve")},fallback(_){if(!m.pendingBranch)return;const{vnode:C,activeBranch:S,parentComponent:T,container:M,isSVG:I}=m;ko(C,"onFallback");const q=h(S),A=()=>{m.isInFallback&&(f(null,_,M,q,T,null,I,a,l),Tr(m,_))},N=_.transition&&_.transition.mode==="out-in";N&&(S.transition.afterLeave=A),m.isInFallback=!0,p(S,T,null,!0),N||A()},move(_,C,S){m.activeBranch&&d(m.activeBranch,_,C,S),m.container=_},next(){return m.activeBranch&&h(m.activeBranch)},registerDep(_,C){const S=!!m.pendingBranch;S&&m.deps++;const T=_.vnode.el;_.asyncDep.catch(M=>{Vr(M,_,0)}).then(M=>{if(_.isUnmounted||m.isUnmounted||m.pendingId!==_.suspenseId)return;_.asyncResolved=!0;const{vnode:I}=_;Zi(_,M,!1),T&&(I.el=T);const q=!T&&_.subTree.el;C(_,I,g(T||_.subTree.el),T?null:h(_.subTree),m,i,l),q&&y(q),al(_,I.el),S&&--m.deps===0&&m.resolve()})},unmount(_,C){m.isUnmounted=!0,m.activeBranch&&p(m.activeBranch,n,_,C),m.pendingBranch&&p(m.pendingBranch,n,_,C)}};return m}function im(e,t,n,r,o,s,i,a,l){const c=t.suspense=ul(t,r,n,e.parentNode,document.createElement("div"),null,o,s,i,a,!0),u=l(e,c.pendingBranch=t.ssContent,n,c,s,i);return c.deps===0&&c.resolve(!1,!0),u}function am(e){const{shapeFlag:t,children:n}=e,r=t&32;e.ssContent=Cc(r?n.default:n),e.ssFallback=r?Cc(n.fallback):Y(dt)}function Cc(e){let t;if(de(e)){const n=$r&&e._c;n&&(e._d=!1,R()),e=e(),n&&(e._d=!0,t=Ot,Ed())}return ce(e)&&(e=Zg(e)),e=At(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function Zf(e,t){t&&t.pendingBranch?ce(e)?t.effects.push(...e):t.effects.push(e):qi(e)}function Tr(e,t){e.activeBranch=t;const{vnode:n,parentComponent:r}=e,o=n.el=t.el;r&&r.subTree===n&&(r.vnode.el=o,al(r,o))}function lm(e){var t;return((t=e.props)==null?void 0:t.suspensible)!=null&&e.props.suspensible!==!1}function Ye(e,t){return Js(e,null,t)}function cm(e,t){return Js(e,null,{flush:"post"})}const ts={};function ze(e,t,n){return Js(e,t,n)}function Js(e,t,{immediate:n,deep:r,flush:o,onTrack:s,onTrigger:i}=Be){var a;const l=Xa()===((a=Qe)==null?void 0:a.scope)?Qe:null;let c,u=!1,f=!1;if(Xe(e)?(c=()=>e.value,u=Ts(e)):Pr(e)?(c=()=>e,r=!0):ce(e)?(f=!0,u=e.some(m=>Pr(m)||Ts(m)),c=()=>e.map(m=>{if(Xe(m))return m.value;if(Pr(m))return Yn(m);if(de(m))return $n(m,l,2)})):de(e)?t?c=()=>$n(e,l,2):c=()=>{if(!(l&&l.isUnmounted))return d&&d(),$t(e,l,3,[p])}:c=Ht,t&&r){const m=c;c=()=>Yn(m())}let d,p=m=>{d=b.onStop=()=>{$n(m,l,4)}},h;if(Rr)if(p=Ht,t?n&&$t(t,l,3,[c(),f?[]:void 0,p]):c(),o==="sync"){const m=Zm();h=m.__watcherHandles||(m.__watcherHandles=[])}else return Ht;let g=f?new Array(e.length).fill(ts):ts;const y=()=>{if(b.active)if(t){const m=b.run();(r||u||(f?m.some((_,C)=>ir(_,g[C])):ir(m,g)))&&(d&&d(),$t(t,l,3,[m,g===ts?void 0:f&&g[0]===ts?[]:g,p]),g=m)}else b.run()};y.allowRecurse=!!t;let x;o==="sync"?x=y:o==="post"?x=()=>rt(y,l&&l.suspense):(y.pre=!0,l&&(y.id=l.uid),x=()=>Qs(y));const b=new Za(c,x);t?n?y():g=b.run():o==="post"?rt(b.run.bind(b),l&&l.suspense):b.run();const v=()=>{b.stop(),l&&l.scope&&Ka(l.scope.effects,b)};return h&&h.push(v),v}function um(e,t,n){const r=this.proxy,o=Ue(e)?e.includes(".")?ed(r,e):()=>r[e]:e.bind(r,r);let s;de(t)?s=t:(s=t.handler,n=t);const i=Qe;Mn(this);const a=Js(o,s.bind(r),n);return i?Mn(i):In(),a}function ed(e,t){const n=t.split(".");return()=>{let r=e;for(let o=0;o{Yn(n,t)});else if(Ef(e))for(const n in e)Yn(e[n],t);return e}function fm(e,t){const n=tt;if(n===null)return e;const r=ni(n)||n.proxy,o=e.dirs||(e.dirs=[]);for(let s=0;s{e.isMounted=!0}),Ho(()=>{e.isUnmounting=!0}),e}const Tt=[Function,Array],td={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Tt,onEnter:Tt,onAfterEnter:Tt,onEnterCancelled:Tt,onBeforeLeave:Tt,onLeave:Tt,onAfterLeave:Tt,onLeaveCancelled:Tt,onBeforeAppear:Tt,onAppear:Tt,onAfterAppear:Tt,onAppearCancelled:Tt},pm={name:"BaseTransition",props:td,setup(e,{slots:t}){const n=mn(),r=dm();let o;return()=>{const s=t.default&&rd(t.default(),!0);if(!s||!s.length)return;let i=s[0];if(s.length>1){for(const g of s)if(g.type!==dt){i=g;break}}const a=Se(e),{mode:l}=a;if(r.isLeaving)return vi(i);const c=Pc(i);if(!c)return vi(i);const u=Ki(c,a,r,n);$s(c,u);const f=n.subTree,d=f&&Pc(f);let p=!1;const{getTransitionKey:h}=c.type;if(h){const g=h();o===void 0?o=g:g!==o&&(o=g,p=!0)}if(d&&d.type!==dt&&(!Nt(c,d)||p)){const g=Ki(d,a,r,n);if($s(d,g),l==="out-in")return r.isLeaving=!0,g.afterLeave=()=>{r.isLeaving=!1,n.update.active!==!1&&n.update()},vi(i);l==="in-out"&&c.type!==dt&&(g.delayLeave=(y,x,b)=>{const v=nd(r,d);v[String(d.key)]=d,y[Cn]=()=>{x(),y[Cn]=void 0,delete u.delayedLeave},u.delayedLeave=b})}return i}}},hm=pm;function nd(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function Ki(e,t,n,r){const{appear:o,mode:s,persisted:i=!1,onBeforeEnter:a,onEnter:l,onAfterEnter:c,onEnterCancelled:u,onBeforeLeave:f,onLeave:d,onAfterLeave:p,onLeaveCancelled:h,onBeforeAppear:g,onAppear:y,onAfterAppear:x,onAppearCancelled:b}=t,v=String(e.key),m=nd(n,e),_=(T,M)=>{T&&$t(T,r,9,M)},C=(T,M)=>{const I=M[1];_(T,M),ce(T)?T.every(q=>q.length<=1)&&I():T.length<=1&&I()},S={mode:s,persisted:i,beforeEnter(T){let M=a;if(!n.isMounted)if(o)M=g||a;else return;T[Cn]&&T[Cn](!0);const I=m[v];I&&Nt(e,I)&&I.el[Cn]&&I.el[Cn](),_(M,[T])},enter(T){let M=l,I=c,q=u;if(!n.isMounted)if(o)M=y||l,I=x||c,q=b||u;else return;let A=!1;const N=T[ns]=he=>{A||(A=!0,he?_(q,[T]):_(I,[T]),S.delayedLeave&&S.delayedLeave(),T[ns]=void 0)};M?C(M,[T,N]):N()},leave(T,M){const I=String(e.key);if(T[ns]&&T[ns](!0),n.isUnmounting)return M();_(f,[T]);let q=!1;const A=T[Cn]=N=>{q||(q=!0,M(),N?_(h,[T]):_(p,[T]),T[Cn]=void 0,m[I]===e&&delete m[I])};m[I]=e,d?C(d,[T,A]):A()},clone(T){return Ki(T,t,n,r)}};return S}function vi(e){if(Bo(e))return e=en(e),e.children=null,e}function Pc(e){return Bo(e)?e.children?e.children[0]:void 0:e}function $s(e,t){e.shapeFlag&6&&e.component?$s(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function rd(e,t=!1,n){let r=[],o=0;for(let s=0;s1)for(let s=0;sZe({name:e.name},t,{setup:e}))():e}const rr=e=>!!e.type.__asyncLoader;/*! #__NO_SIDE_EFFECTS__ */function Z(e){de(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:r,delay:o=200,timeout:s,suspensible:i=!0,onError:a}=e;let l=null,c,u=0;const f=()=>(u++,l=null,d()),d=()=>{let p;return l||(p=l=t().catch(h=>{if(h=h instanceof Error?h:new Error(String(h)),a)return new Promise((g,y)=>{a(h,()=>g(f()),()=>y(h),u+1)});throw h}).then(h=>p!==l&&l?l:(h&&(h.__esModule||h[Symbol.toStringTag]==="Module")&&(h=h.default),c=h,h)))};return ne({name:"AsyncComponentWrapper",__asyncLoader:d,get __asyncResolved(){return c},setup(){const p=Qe;if(c)return()=>yi(c,p);const h=b=>{l=null,Vr(b,p,13,!r)};if(i&&p.suspense||Rr)return d().then(b=>()=>yi(b,p)).catch(b=>(h(b),()=>r?Y(r,{error:b}):null));const g=B(!1),y=B(),x=B(!!o);return o&&setTimeout(()=>{x.value=!1},o),s!=null&&setTimeout(()=>{if(!g.value&&!y.value){const b=new Error(`Async component timed out after ${s}ms.`);h(b),y.value=b}},s),d().then(()=>{g.value=!0,p.parent&&Bo(p.parent.vnode)&&Qs(p.parent.update)}).catch(b=>{h(b),y.value=b}),()=>{if(g.value&&c)return yi(c,p);if(y.value&&r)return Y(r,{error:y.value});if(n&&!x.value)return Y(n)}}})}function yi(e,t){const{ref:n,props:r,children:o,ce:s}=t.vnode,i=Y(e,r,o);return i.ref=n,i.ce=s,delete t.vnode.ce,i}const Bo=e=>e.type.__isKeepAlive,gm={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=mn(),r=n.ctx;if(!r.renderer)return()=>{const b=t.default&&t.default();return b&&b.length===1?b[0]:b};const o=new Map,s=new Set;let i=null;const a=n.suspense,{renderer:{p:l,m:c,um:u,o:{createElement:f}}}=r,d=f("div");r.activate=(b,v,m,_,C)=>{const S=b.component;c(b,v,m,0,a),l(S.vnode,b,v,m,S,a,_,b.slotScopeIds,C),rt(()=>{S.isDeactivated=!1,S.a&&ao(S.a);const T=b.props&&b.props.onVnodeMounted;T&>(T,S.parent,b)},a)},r.deactivate=b=>{const v=b.component;c(b,d,null,1,a),rt(()=>{v.da&&ao(v.da);const m=b.props&&b.props.onVnodeUnmounted;m&>(m,v.parent,b),v.isDeactivated=!0},a)};function p(b){bi(b),u(b,n,a,!0)}function h(b){o.forEach((v,m)=>{const _=ea(v.type);_&&(!b||!b(_))&&g(m)})}function g(b){const v=o.get(b);!i||!Nt(v,i)?p(v):i&&bi(i),o.delete(b),s.delete(b)}ze(()=>[e.include,e.exclude],([b,v])=>{b&&h(m=>oo(b,m)),v&&h(m=>!oo(v,m))},{flush:"post",deep:!0});let y=null;const x=()=>{y!=null&&o.set(y,wi(n.subTree))};return Le(x),ld(x),Ho(()=>{o.forEach(b=>{const{subTree:v,suspense:m}=n,_=wi(v);if(b.type===_.type&&b.key===_.key){bi(_);const C=_.component.da;C&&rt(C,m);return}p(b)})}),()=>{if(y=null,!t.default)return null;const b=t.default(),v=b[0];if(b.length>1)return i=null,b;if(!Ir(v)||!(v.shapeFlag&4)&&!(v.shapeFlag&128))return i=null,v;let m=wi(v);const _=m.type,C=ea(rr(m)?m.type.__asyncResolved||{}:_),{include:S,exclude:T,max:M}=e;if(S&&(!C||!oo(S,C))||T&&C&&oo(T,C))return i=m,v;const I=m.key==null?_:m.key,q=o.get(I);return m.el&&(m=en(m),v.shapeFlag&128&&(v.ssContent=m)),y=I,q?(m.el=q.el,m.component=q.component,m.transition&&$s(m,m.transition),m.shapeFlag|=512,s.delete(I),s.add(I)):(s.add(I),M&&s.size>parseInt(M,10)&&g(s.values().next().value)),m.shapeFlag|=256,i=m,Jf(v.type)?v:m}}},mm=gm;function oo(e,t){return ce(e)?e.some(n=>oo(n,t)):Ue(e)?e.split(",").includes(t):lg(e)?e.test(t):!1}function od(e,t){id(e,"a",t)}function sd(e,t){id(e,"da",t)}function id(e,t,n=Qe){const r=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(Zs(t,r,n),n){let o=n.parent;for(;o&&o.parent;)Bo(o.parent.vnode)&&vm(r,t,n,o),o=o.parent}}function vm(e,t,n,r){const o=Zs(t,e,r,!0);et(()=>{Ka(r[t],o)},n)}function bi(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function wi(e){return e.shapeFlag&128?e.ssContent:e}function Zs(e,t,n=Qe,r=!1){if(n){const o=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...i)=>{if(n.isUnmounted)return;Ur(),Mn(n);const a=$t(t,n,e,i);return In(),zr(),a});return r?o.unshift(s):o.push(s),s}}const gn=e=>(t,n=Qe)=>(!Rr||e==="sp")&&Zs(e,(...r)=>t(...r),n),ad=gn("bm"),Le=gn("m"),ym=gn("bu"),ld=gn("u"),Ho=gn("bum"),et=gn("um"),bm=gn("sp"),wm=gn("rtg"),_m=gn("rtc");function cd(e,t=Qe){Zs("ec",e,t)}function yt(e,t,n,r){let o;const s=n&&n[r];if(ce(e)||Ue(e)){o=new Array(e.length);for(let i=0,a=e.length;it(i,a,void 0,s&&s[a]));else{const i=Object.keys(e);o=new Array(i.length);for(let a=0,l=i.length;a{const s=r.fn(...o);return s&&(s.key=r.key),s}:r.fn)}return e}function ye(e,t,n={},r,o){if(tt.isCE||tt.parent&&rr(tt.parent)&&tt.parent.isCE)return t!=="default"&&(n.name=t),Y("slot",n,r&&r());let s=e[t];s&&s._c&&(s._d=!1),R();const i=s&&ud(s(n)),a=ae(ke,{key:n.key||i&&i.key||`_${t}`},i||(r?r():[]),i&&e._===1?64:-2);return!o&&a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),s&&s._c&&(s._d=!0),a}function ud(e){return e.some(t=>Ir(t)?!(t.type===dt||t.type===ke&&!ud(t.children)):!0)?e:null}const Gi=e=>e?Sd(e)?ni(e)||e.proxy:Gi(e.parent):null,lo=Ze(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Gi(e.parent),$root:e=>Gi(e.root),$emit:e=>e.emit,$options:e=>dl(e),$forceUpdate:e=>e.f||(e.f=()=>Qs(e.update)),$nextTick:e=>e.n||(e.n=hn.bind(e.proxy)),$watch:e=>um.bind(e)}),_i=(e,t)=>e!==Be&&!e.__isScriptSetup&&Pe(e,t),xm={get({_:e},t){const{ctx:n,setupState:r,data:o,props:s,accessCache:i,type:a,appContext:l}=e;let c;if(t[0]!=="$"){const p=i[t];if(p!==void 0)switch(p){case 1:return r[t];case 2:return o[t];case 4:return n[t];case 3:return s[t]}else{if(_i(r,t))return i[t]=1,r[t];if(o!==Be&&Pe(o,t))return i[t]=2,o[t];if((c=e.propsOptions[0])&&Pe(c,t))return i[t]=3,s[t];if(n!==Be&&Pe(n,t))return i[t]=4,n[t];Qi&&(i[t]=0)}}const u=lo[t];let f,d;if(u)return t==="$attrs"&&vt(e,"get",t),u(e);if((f=a.__cssModules)&&(f=f[t]))return f;if(n!==Be&&Pe(n,t))return i[t]=4,n[t];if(d=l.config.globalProperties,Pe(d,t))return d[t]},set({_:e},t,n){const{data:r,setupState:o,ctx:s}=e;return _i(o,t)?(o[t]=n,!0):r!==Be&&Pe(r,t)?(r[t]=n,!0):Pe(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(s[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:o,propsOptions:s}},i){let a;return!!n[i]||e!==Be&&Pe(e,i)||_i(t,i)||(a=s[0])&&Pe(a,i)||Pe(r,i)||Pe(lo,i)||Pe(o.config.globalProperties,i)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Pe(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function km(){return fd().slots}function Em(){return fd().attrs}function fd(){const e=mn();return e.setupContext||(e.setupContext=Ad(e))}function Sc(e){return ce(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function fl(e){const t=mn();let n=e();return In(),Ga(n)&&(n=n.catch(r=>{throw Mn(t),r})),[n,()=>Mn(t)]}let Qi=!0;function Cm(e){const t=dl(e),n=e.proxy,r=e.ctx;Qi=!1,t.beforeCreate&&Tc(t.beforeCreate,e,"bc");const{data:o,computed:s,methods:i,watch:a,provide:l,inject:c,created:u,beforeMount:f,mounted:d,beforeUpdate:p,updated:h,activated:g,deactivated:y,beforeDestroy:x,beforeUnmount:b,destroyed:v,unmounted:m,render:_,renderTracked:C,renderTriggered:S,errorCaptured:T,serverPrefetch:M,expose:I,inheritAttrs:q,components:A,directives:N,filters:he}=t;if(c&&Pm(c,r,null),i)for(const V in i){const W=i[V];de(W)&&(r[V]=W.bind(n))}if(o){const V=o.call(n,n);De(V)&&(e.data=Rt(V))}if(Qi=!0,s)for(const V in s){const W=s[V],_e=de(W)?W.bind(n,n):de(W.get)?W.get.bind(n,n):Ht,Re=!de(W)&&de(W.set)?W.set.bind(n):Ht,Fe=j({get:_e,set:Re});Object.defineProperty(r,V,{enumerable:!0,configurable:!0,get:()=>Fe.value,set:Ee=>Fe.value=Ee})}if(a)for(const V in a)dd(a[V],r,n,V);if(l){const V=de(l)?l.call(n):l;Reflect.ownKeys(V).forEach(W=>{Ve(W,V[W])})}u&&Tc(u,e,"c");function U(V,W){ce(W)?W.forEach(_e=>V(_e.bind(n))):W&&V(W.bind(n))}if(U(ad,f),U(Le,d),U(ym,p),U(ld,h),U(od,g),U(sd,y),U(cd,T),U(_m,C),U(wm,S),U(Ho,b),U(et,m),U(bm,M),ce(I))if(I.length){const V=e.exposed||(e.exposed={});I.forEach(W=>{Object.defineProperty(V,W,{get:()=>n[W],set:_e=>n[W]=_e})})}else e.exposed||(e.exposed={});_&&e.render===Ht&&(e.render=_),q!=null&&(e.inheritAttrs=q),A&&(e.components=A),N&&(e.directives=N)}function Pm(e,t,n=Ht){ce(e)&&(e=Xi(e));for(const r in e){const o=e[r];let s;De(o)?"default"in o?s=Te(o.from||r,o.default,!0):s=Te(o.from||r):s=Te(o),Xe(s)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>s.value,set:i=>s.value=i}):t[r]=s}}function Tc(e,t,n){$t(ce(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function dd(e,t,n,r){const o=r.includes(".")?ed(n,r):()=>n[r];if(Ue(e)){const s=t[e];de(s)&&ze(o,s)}else if(de(e))ze(o,e.bind(n));else if(De(e))if(ce(e))e.forEach(s=>dd(s,t,n,r));else{const s=de(e.handler)?e.handler.bind(n):t[e.handler];de(s)&&ze(o,s,e)}}function dl(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:o,optionsCache:s,config:{optionMergeStrategies:i}}=e.appContext,a=s.get(t);let l;return a?l=a:!o.length&&!n&&!r?l=t:(l={},o.length&&o.forEach(c=>Is(l,c,i,!0)),Is(l,t,i)),De(t)&&s.set(t,l),l}function Is(e,t,n,r=!1){const{mixins:o,extends:s}=t;s&&Is(e,s,n,!0),o&&o.forEach(i=>Is(e,i,n,!0));for(const i in t)if(!(r&&i==="expose")){const a=Sm[i]||n&&n[i];e[i]=a?a(e[i],t[i]):t[i]}return e}const Sm={data:Ac,props:Oc,emits:Oc,methods:so,computed:so,beforeCreate:ut,created:ut,beforeMount:ut,mounted:ut,beforeUpdate:ut,updated:ut,beforeDestroy:ut,beforeUnmount:ut,destroyed:ut,unmounted:ut,activated:ut,deactivated:ut,errorCaptured:ut,serverPrefetch:ut,components:so,directives:so,watch:Am,provide:Ac,inject:Tm};function Ac(e,t){return t?e?function(){return Ze(de(e)?e.call(this,this):e,de(t)?t.call(this,this):t)}:t:e}function Tm(e,t){return so(Xi(e),Xi(t))}function Xi(e){if(ce(e)){const t={};for(let n=0;n1)return n&&de(t)?t.call(r&&r.proxy):t}}function hd(){return!!(Qe||tt||Eo)}function Im(e,t,n,r=!1){const o={},s={};Ps(s,ti,1),e.propsDefaults=Object.create(null),gd(e,t,o,s);for(const i in e.propsOptions[0])i in o||(o[i]=void 0);n?e.props=r?o:No(o):e.type.props?e.props=o:e.props=s,e.attrs=s}function Rm(e,t,n,r){const{props:o,attrs:s,vnode:{patchFlag:i}}=e,a=Se(o),[l]=e.propsOptions;let c=!1;if((r||i>0)&&!(i&16)){if(i&8){const u=e.vnode.dynamicProps;for(let f=0;f{l=!0;const[d,p]=md(f,t,!0);Ze(i,d),p&&a.push(...p)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!s&&!l)return De(e)&&r.set(e,Er),Er;if(ce(s))for(let u=0;u-1,p[1]=g<0||h-1||Pe(p,"default"))&&a.push(f)}}}const c=[i,a];return De(e)&&r.set(e,c),c}function $c(e){return e[0]!=="$"}function Ic(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function Rc(e,t){return Ic(e)===Ic(t)}function Lc(e,t){return ce(t)?t.findIndex(n=>Rc(n,e)):de(t)&&Rc(t,e)?0:-1}const vd=e=>e[0]==="_"||e==="$stable",pl=e=>ce(e)?e.map(At):[At(e)],Lm=(e,t,n)=>{if(t._n)return t;const r=le((...o)=>pl(t(...o)),n);return r._c=!1,r},yd=(e,t,n)=>{const r=e._ctx;for(const o in e){if(vd(o))continue;const s=e[o];if(de(s))t[o]=Lm(o,s,r);else if(s!=null){const i=pl(s);t[o]=()=>i}}},bd=(e,t)=>{const n=pl(t);e.slots.default=()=>n},Mm=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=Se(t),Ps(t,"_",n)):yd(t,e.slots={})}else e.slots={},t&&bd(e,t);Ps(e.slots,ti,1)},jm=(e,t,n)=>{const{vnode:r,slots:o}=e;let s=!0,i=Be;if(r.shapeFlag&32){const a=t._;a?n&&a===1?s=!1:(Ze(o,t),!n&&a===1&&delete o._):(s=!t.$stable,yd(t,o)),i=t}else t&&(bd(e,t),i={default:1});if(s)for(const a in o)!vd(a)&&i[a]==null&&delete o[a]};function Rs(e,t,n,r,o=!1){if(ce(e)){e.forEach((d,p)=>Rs(d,t&&(ce(t)?t[p]:t),n,r,o));return}if(rr(r)&&!o)return;const s=r.shapeFlag&4?ni(r.component)||r.component.proxy:r.el,i=o?null:s,{i:a,r:l}=e,c=t&&t.r,u=a.refs===Be?a.refs={}:a.refs,f=a.setupState;if(c!=null&&c!==l&&(Ue(c)?(u[c]=null,Pe(f,c)&&(f[c]=null)):Xe(c)&&(c.value=null)),de(l))$n(l,a,12,[i,u]);else{const d=Ue(l),p=Xe(l);if(d||p){const h=()=>{if(e.f){const g=d?Pe(f,l)?f[l]:u[l]:l.value;o?ce(g)&&Ka(g,s):ce(g)?g.includes(s)||g.push(s):d?(u[l]=[s],Pe(f,l)&&(f[l]=u[l])):(l.value=[s],e.k&&(u[e.k]=l.value))}else d?(u[l]=i,Pe(f,l)&&(f[l]=i)):p&&(l.value=i,e.k&&(u[e.k]=i))};i?(h.id=-1,rt(h,n)):h()}}}let bn=!1;const rs=e=>/svg/.test(e.namespaceURI)&&e.tagName!=="foreignObject",os=e=>e.nodeType===8;function Dm(e){const{mt:t,p:n,o:{patchProp:r,createText:o,nextSibling:s,parentNode:i,remove:a,insert:l,createComment:c}}=e,u=(v,m)=>{if(!m.hasChildNodes()){n(null,v,m),As(),m._vnode=v;return}bn=!1,f(m.firstChild,v,null,null,null),As(),m._vnode=v,bn&&console.error("Hydration completed but contains mismatches.")},f=(v,m,_,C,S,T=!1)=>{const M=os(v)&&v.data==="[",I=()=>g(v,m,_,C,S,M),{type:q,ref:A,shapeFlag:N,patchFlag:he}=m;let fe=v.nodeType;m.el=v,he===-2&&(T=!1,m.dynamicChildren=null);let U=null;switch(q){case Or:fe!==3?m.children===""?(l(m.el=o(""),i(v),v),U=v):U=I():(v.data!==m.children&&(bn=!0,v.data=m.children),U=s(v));break;case dt:b(v)?(U=s(v),x(m.el=v.content.firstChild,v,_)):fe!==8||M?U=I():U=s(v);break;case uo:if(M&&(v=s(v),fe=v.nodeType),fe===1||fe===3){U=v;const V=!m.children.length;for(let W=0;W{T=T||!!m.dynamicChildren;const{type:M,props:I,patchFlag:q,shapeFlag:A,dirs:N,transition:he}=m,fe=M==="input"&&N||M==="option";if(fe||q!==-1){if(N&&Qt(m,null,_,"created"),I)if(fe||!T||q&48)for(const W in I)(fe&&W.endsWith("value")||jo(W)&&!io(W))&&r(v,W,null,I[W],!1,void 0,_);else I.onClick&&r(v,"onClick",null,I.onClick,!1,void 0,_);let U;(U=I&&I.onVnodeBeforeMount)&>(U,_,m);let V=!1;if(b(v)){V=_d(C,he)&&_&&_.vnode.props&&_.vnode.props.appear;const W=v.content.firstChild;V&&he.beforeEnter(W),x(W,v,_),m.el=v=W}if(N&&Qt(m,null,_,"beforeMount"),((U=I&&I.onVnodeMounted)||N||V)&&Zf(()=>{U&>(U,_,m),V&&he.enter(v),N&&Qt(m,null,_,"mounted")},C),A&16&&!(I&&(I.innerHTML||I.textContent))){let W=p(v.firstChild,m,v,_,C,S,T);for(;W;){bn=!0;const _e=W;W=W.nextSibling,a(_e)}}else A&8&&v.textContent!==m.children&&(bn=!0,v.textContent=m.children)}return v.nextSibling},p=(v,m,_,C,S,T,M)=>{M=M||!!m.dynamicChildren;const I=m.children,q=I.length;for(let A=0;A{const{slotScopeIds:M}=m;M&&(S=S?S.concat(M):M);const I=i(v),q=p(s(v),m,I,_,C,S,T);return q&&os(q)&&q.data==="]"?s(m.anchor=q):(bn=!0,l(m.anchor=c("]"),I,q),q)},g=(v,m,_,C,S,T)=>{if(bn=!0,m.el=null,T){const q=y(v);for(;;){const A=s(v);if(A&&A!==q)a(A);else break}}const M=s(v),I=i(v);return a(v),n(null,m,I,M,_,C,rs(I),S),M},y=(v,m="[",_="]")=>{let C=0;for(;v;)if(v=s(v),v&&os(v)&&(v.data===m&&C++,v.data===_)){if(C===0)return s(v);C--}return v},x=(v,m,_)=>{const C=m.parentNode;C&&C.replaceChild(v,m);let S=_;for(;S;)S.vnode.el===m&&(S.vnode.el=S.subTree.el=v),S=S.parent},b=v=>v.nodeType===1&&v.tagName.toLowerCase()==="template";return[u,f]}const rt=Zf;function Fm(e){return wd(e)}function Nm(e){return wd(e,Dm)}function wd(e,t){const n=Hi();n.__VUE__=!0;const{insert:r,remove:o,patchProp:s,createElement:i,createText:a,createComment:l,setText:c,setElementText:u,parentNode:f,nextSibling:d,setScopeId:p=Ht,insertStaticContent:h}=e,g=(w,k,P,O=null,L=null,D=null,J=!1,H=null,z=!!k.dynamicChildren)=>{if(w===k)return;w&&!Nt(w,k)&&(O=$(w),Ee(w,L,D,!0),w=null),k.patchFlag===-2&&(z=!1,k.dynamicChildren=null);const{type:F,ref:ie,shapeFlag:te}=k;switch(F){case Or:y(w,k,P,O);break;case dt:x(w,k,P,O);break;case uo:w==null&&b(k,P,O,J);break;case ke:A(w,k,P,O,L,D,J,H,z);break;default:te&1?_(w,k,P,O,L,D,J,H,z):te&6?N(w,k,P,O,L,D,J,H,z):(te&64||te&128)&&F.process(w,k,P,O,L,D,J,H,z,K)}ie!=null&&L&&Rs(ie,w&&w.ref,D,k||w,!k)},y=(w,k,P,O)=>{if(w==null)r(k.el=a(k.children),P,O);else{const L=k.el=w.el;k.children!==w.children&&c(L,k.children)}},x=(w,k,P,O)=>{w==null?r(k.el=l(k.children||""),P,O):k.el=w.el},b=(w,k,P,O)=>{[w.el,w.anchor]=h(w.children,k,P,O,w.el,w.anchor)},v=({el:w,anchor:k},P,O)=>{let L;for(;w&&w!==k;)L=d(w),r(w,P,O),w=L;r(k,P,O)},m=({el:w,anchor:k})=>{let P;for(;w&&w!==k;)P=d(w),o(w),w=P;o(k)},_=(w,k,P,O,L,D,J,H,z)=>{J=J||k.type==="svg",w==null?C(k,P,O,L,D,J,H,z):M(w,k,L,D,J,H,z)},C=(w,k,P,O,L,D,J,H)=>{let z,F;const{type:ie,props:te,shapeFlag:oe,transition:pe,dirs:ve}=w;if(z=w.el=i(w.type,D,te&&te.is,te),oe&8?u(z,w.children):oe&16&&T(w.children,z,null,O,L,D&&ie!=="foreignObject",J,H),ve&&Qt(w,null,O,"created"),S(z,w,w.scopeId,J,O),te){for(const Oe in te)Oe!=="value"&&!io(Oe)&&s(z,Oe,null,te[Oe],D,w.children,O,L,We);"value"in te&&s(z,"value",null,te.value),(F=te.onVnodeBeforeMount)&>(F,O,w)}ve&&Qt(w,null,O,"beforeMount");const $e=_d(L,pe);$e&&pe.beforeEnter(z),r(z,k,P),((F=te&&te.onVnodeMounted)||$e||ve)&&rt(()=>{F&>(F,O,w),$e&&pe.enter(z),ve&&Qt(w,null,O,"mounted")},L)},S=(w,k,P,O,L)=>{if(P&&p(w,P),O)for(let D=0;D{for(let F=z;F{const H=k.el=w.el;let{patchFlag:z,dynamicChildren:F,dirs:ie}=k;z|=w.patchFlag&16;const te=w.props||Be,oe=k.props||Be;let pe;P&&Hn(P,!1),(pe=oe.onVnodeBeforeUpdate)&>(pe,P,k,w),ie&&Qt(k,w,P,"beforeUpdate"),P&&Hn(P,!0);const ve=L&&k.type!=="foreignObject";if(F?I(w.dynamicChildren,F,H,P,O,ve,D):J||W(w,k,H,null,P,O,ve,D,!1),z>0){if(z&16)q(H,k,te,oe,P,O,L);else if(z&2&&te.class!==oe.class&&s(H,"class",null,oe.class,L),z&4&&s(H,"style",te.style,oe.style,L),z&8){const $e=k.dynamicProps;for(let Oe=0;Oe<$e.length;Oe++){const Ge=$e[Oe],jt=te[Ge],wr=oe[Ge];(wr!==jt||Ge==="value")&&s(H,Ge,jt,wr,L,w.children,P,O,We)}}z&1&&w.children!==k.children&&u(H,k.children)}else!J&&F==null&&q(H,k,te,oe,P,O,L);((pe=oe.onVnodeUpdated)||ie)&&rt(()=>{pe&>(pe,P,k,w),ie&&Qt(k,w,P,"updated")},O)},I=(w,k,P,O,L,D,J)=>{for(let H=0;H{if(P!==O){if(P!==Be)for(const H in P)!io(H)&&!(H in O)&&s(w,H,P[H],null,J,k.children,L,D,We);for(const H in O){if(io(H))continue;const z=O[H],F=P[H];z!==F&&H!=="value"&&s(w,H,F,z,J,k.children,L,D,We)}"value"in O&&s(w,"value",P.value,O.value)}},A=(w,k,P,O,L,D,J,H,z)=>{const F=k.el=w?w.el:a(""),ie=k.anchor=w?w.anchor:a("");let{patchFlag:te,dynamicChildren:oe,slotScopeIds:pe}=k;pe&&(H=H?H.concat(pe):pe),w==null?(r(F,P,O),r(ie,P,O),T(k.children,P,ie,L,D,J,H,z)):te>0&&te&64&&oe&&w.dynamicChildren?(I(w.dynamicChildren,oe,P,L,D,J,H),(k.key!=null||L&&k===L.subTree)&&hl(w,k,!0)):W(w,k,P,ie,L,D,J,H,z)},N=(w,k,P,O,L,D,J,H,z)=>{k.slotScopeIds=H,w==null?k.shapeFlag&512?L.ctx.activate(k,P,O,J,z):he(k,P,O,L,D,J,z):fe(w,k,z)},he=(w,k,P,O,L,D,J)=>{const H=w.component=Km(w,O,L);if(Bo(w)&&(H.ctx.renderer=K),Gm(H),H.asyncDep){if(L&&L.registerDep(H,U),!w.el){const z=H.subTree=Y(dt);x(null,z,k,P)}return}U(H,w,k,P,L,D,J)},fe=(w,k,P)=>{const O=k.component=w.component;if(nm(w,k,P))if(O.asyncDep&&!O.asyncResolved){V(O,k,P);return}else O.next=k,Xg(O.update),O.update();else k.el=w.el,O.vnode=k},U=(w,k,P,O,L,D,J)=>{const H=()=>{if(w.isMounted){let{next:ie,bu:te,u:oe,parent:pe,vnode:ve}=w,$e=ie,Oe;Hn(w,!1),ie?(ie.el=ve.el,V(w,ie,J)):ie=ve,te&&ao(te),(Oe=ie.props&&ie.props.onVnodeBeforeUpdate)&>(Oe,pe,ie,ve),Hn(w,!0);const Ge=mi(w),jt=w.subTree;w.subTree=Ge,g(jt,Ge,f(jt.el),$(jt),w,L,D),ie.el=Ge.el,$e===null&&al(w,Ge.el),oe&&rt(oe,L),(Oe=ie.props&&ie.props.onVnodeUpdated)&&rt(()=>gt(Oe,pe,ie,ve),L)}else{let ie;const{el:te,props:oe}=k,{bm:pe,m:ve,parent:$e}=w,Oe=rr(k);if(Hn(w,!1),pe&&ao(pe),!Oe&&(ie=oe&&oe.onVnodeBeforeMount)&>(ie,$e,k),Hn(w,!0),te&&Ce){const Ge=()=>{w.subTree=mi(w),Ce(te,w.subTree,w,L,null)};Oe?k.type.__asyncLoader().then(()=>!w.isUnmounted&&Ge()):Ge()}else{const Ge=w.subTree=mi(w);g(null,Ge,P,O,w,L,D),k.el=Ge.el}if(ve&&rt(ve,L),!Oe&&(ie=oe&&oe.onVnodeMounted)){const Ge=k;rt(()=>gt(ie,$e,Ge),L)}(k.shapeFlag&256||$e&&rr($e.vnode)&&$e.vnode.shapeFlag&256)&&w.a&&rt(w.a,L),w.isMounted=!0,k=P=O=null}},z=w.effect=new Za(H,()=>Qs(F),w.scope),F=w.update=()=>z.run();F.id=w.uid,Hn(w,!0),F()},V=(w,k,P)=>{k.component=w;const O=w.vnode.props;w.vnode=k,w.next=null,Rm(w,k.props,O,P),jm(w,k.children,P),Ur(),xc(),zr()},W=(w,k,P,O,L,D,J,H,z=!1)=>{const F=w&&w.children,ie=w?w.shapeFlag:0,te=k.children,{patchFlag:oe,shapeFlag:pe}=k;if(oe>0){if(oe&128){Re(F,te,P,O,L,D,J,H,z);return}else if(oe&256){_e(F,te,P,O,L,D,J,H,z);return}}pe&8?(ie&16&&We(F,L,D),te!==F&&u(P,te)):ie&16?pe&16?Re(F,te,P,O,L,D,J,H,z):We(F,L,D,!0):(ie&8&&u(P,""),pe&16&&T(te,P,O,L,D,J,H,z))},_e=(w,k,P,O,L,D,J,H,z)=>{w=w||Er,k=k||Er;const F=w.length,ie=k.length,te=Math.min(F,ie);let oe;for(oe=0;oeie?We(w,L,D,!0,!1,te):T(k,P,O,L,D,J,H,z,te)},Re=(w,k,P,O,L,D,J,H,z)=>{let F=0;const ie=k.length;let te=w.length-1,oe=ie-1;for(;F<=te&&F<=oe;){const pe=w[F],ve=k[F]=z?Pn(k[F]):At(k[F]);if(Nt(pe,ve))g(pe,ve,P,null,L,D,J,H,z);else break;F++}for(;F<=te&&F<=oe;){const pe=w[te],ve=k[oe]=z?Pn(k[oe]):At(k[oe]);if(Nt(pe,ve))g(pe,ve,P,null,L,D,J,H,z);else break;te--,oe--}if(F>te){if(F<=oe){const pe=oe+1,ve=peoe)for(;F<=te;)Ee(w[F],L,D,!0),F++;else{const pe=F,ve=F,$e=new Map;for(F=ve;F<=oe;F++){const _t=k[F]=z?Pn(k[F]):At(k[F]);_t.key!=null&&$e.set(_t.key,F)}let Oe,Ge=0;const jt=oe-ve+1;let wr=!1,fc=0;const qr=new Array(jt);for(F=0;F=jt){Ee(_t,L,D,!0);continue}let Kt;if(_t.key!=null)Kt=$e.get(_t.key);else for(Oe=ve;Oe<=oe;Oe++)if(qr[Oe-ve]===0&&Nt(_t,k[Oe])){Kt=Oe;break}Kt===void 0?Ee(_t,L,D,!0):(qr[Kt-ve]=F+1,Kt>=fc?fc=Kt:wr=!0,g(_t,k[Kt],P,null,L,D,J,H,z),Ge++)}const dc=wr?Bm(qr):Er;for(Oe=dc.length-1,F=jt-1;F>=0;F--){const _t=ve+F,Kt=k[_t],pc=_t+1{const{el:D,type:J,transition:H,children:z,shapeFlag:F}=w;if(F&6){Fe(w.component.subTree,k,P,O);return}if(F&128){w.suspense.move(k,P,O);return}if(F&64){J.move(w,k,P,K);return}if(J===ke){r(D,k,P);for(let te=0;teH.enter(D),L);else{const{leave:te,delayLeave:oe,afterLeave:pe}=H,ve=()=>r(D,k,P),$e=()=>{te(D,()=>{ve(),pe&&pe()})};oe?oe(D,ve,$e):$e()}else r(D,k,P)},Ee=(w,k,P,O=!1,L=!1)=>{const{type:D,props:J,ref:H,children:z,dynamicChildren:F,shapeFlag:ie,patchFlag:te,dirs:oe}=w;if(H!=null&&Rs(H,null,P,w,!0),ie&256){k.ctx.deactivate(w);return}const pe=ie&1&&oe,ve=!rr(w);let $e;if(ve&&($e=J&&J.onVnodeBeforeUnmount)&>($e,k,w),ie&6)wt(w.component,P,O);else{if(ie&128){w.suspense.unmount(P,O);return}pe&&Qt(w,null,k,"beforeUnmount"),ie&64?w.type.remove(w,k,P,L,K,O):F&&(D!==ke||te>0&&te&64)?We(F,k,P,!1,!0):(D===ke&&te&384||!L&&ie&16)&&We(z,k,P),O&&Me(w)}(ve&&($e=J&&J.onVnodeUnmounted)||pe)&&rt(()=>{$e&>($e,k,w),pe&&Qt(w,null,k,"unmounted")},P)},Me=w=>{const{type:k,el:P,anchor:O,transition:L}=w;if(k===ke){lt(P,O);return}if(k===uo){m(w);return}const D=()=>{o(P),L&&!L.persisted&&L.afterLeave&&L.afterLeave()};if(w.shapeFlag&1&&L&&!L.persisted){const{leave:J,delayLeave:H}=L,z=()=>J(P,D);H?H(w.el,D,z):z()}else D()},lt=(w,k)=>{let P;for(;w!==k;)P=d(w),o(w),w=P;o(k)},wt=(w,k,P)=>{const{bum:O,scope:L,update:D,subTree:J,um:H}=w;O&&ao(O),L.stop(),D&&(D.active=!1,Ee(J,w,k,P)),H&&rt(H,k),rt(()=>{w.isUnmounted=!0},k),k&&k.pendingBranch&&!k.isUnmounted&&w.asyncDep&&!w.asyncResolved&&w.suspenseId===k.pendingId&&(k.deps--,k.deps===0&&k.resolve())},We=(w,k,P,O=!1,L=!1,D=0)=>{for(let J=D;Jw.shapeFlag&6?$(w.component.subTree):w.shapeFlag&128?w.suspense.next():d(w.anchor||w.el),X=(w,k,P)=>{w==null?k._vnode&&Ee(k._vnode,null,null,!0):g(k._vnode||null,w,k,null,null,null,P),xc(),As(),k._vnode=w},K={p:g,um:Ee,m:Fe,r:Me,mt:he,mc:T,pc:W,pbc:I,n:$,o:e};let re,Ce;return t&&([re,Ce]=t(K)),{render:X,hydrate:re,createApp:$m(X,re)}}function Hn({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function _d(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function hl(e,t,n=!1){const r=e.children,o=t.children;if(ce(r)&&ce(o))for(let s=0;s>1,e[n[a]]0&&(t[r]=n[s-1]),n[s]=r)}}for(s=n.length,i=n[s-1];s-- >0;)n[s]=i,i=t[i];return n}const Hm=e=>e.__isTeleport,co=e=>e&&(e.disabled||e.disabled===""),Mc=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Ji=(e,t)=>{const n=e&&e.to;return Ue(n)?t?t(n):null:n},Um={__isTeleport:!0,process(e,t,n,r,o,s,i,a,l,c){const{mc:u,pc:f,pbc:d,o:{insert:p,querySelector:h,createText:g,createComment:y}}=c,x=co(t.props);let{shapeFlag:b,children:v,dynamicChildren:m}=t;if(e==null){const _=t.el=g(""),C=t.anchor=g("");p(_,n,r),p(C,n,r);const S=t.target=Ji(t.props,h),T=t.targetAnchor=g("");S&&(p(T,S),i=i||Mc(S));const M=(I,q)=>{b&16&&u(v,I,q,o,s,i,a,l)};x?M(n,C):S&&M(S,T)}else{t.el=e.el;const _=t.anchor=e.anchor,C=t.target=e.target,S=t.targetAnchor=e.targetAnchor,T=co(e.props),M=T?n:C,I=T?_:S;if(i=i||Mc(C),m?(d(e.dynamicChildren,m,M,o,s,i,a),hl(e,t,!0)):l||f(e,t,M,I,o,s,i,a,!1),x)T?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):ss(t,n,_,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const q=t.target=Ji(t.props,h);q&&ss(t,q,null,c,0)}else T&&ss(t,C,S,c,1)}kd(t)},remove(e,t,n,r,{um:o,o:{remove:s}},i){const{shapeFlag:a,children:l,anchor:c,targetAnchor:u,target:f,props:d}=e;if(f&&s(u),i&&s(c),a&16){const p=i||!co(d);for(let h=0;h0?Ot||Er:null,Ed(),$r>0&&Ot&&Ot.push(e),e}function se(e,t,n,r,o,s){return Cd(be(e,t,n,r,o,s,!0))}function ae(e,t,n,r,o){return Cd(Y(e,t,n,r,o,!0))}function Ir(e){return e?e.__v_isVNode===!0:!1}function Nt(e,t){return e.type===t.type&&e.key===t.key}const ti="__vInternal",Pd=({key:e})=>e??null,vs=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Ue(e)||Xe(e)||de(e)?{i:tt,r:e,k:t,f:!!n}:e:null);function be(e,t=null,n=null,r=0,o=null,s=e===ke?0:1,i=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Pd(t),ref:t&&vs(t),scopeId:Ys,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:r,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:tt};return a?(gl(l,n),s&128&&e.normalize(l)):n&&(l.shapeFlag|=Ue(n)?8:16),$r>0&&!i&&Ot&&(l.patchFlag>0||s&6)&&l.patchFlag!==32&&Ot.push(l),l}const Y=Vm;function Vm(e,t=null,n=null,r=0,o=null,s=!1){if((!e||e===Xf)&&(e=dt),Ir(e)){const a=en(e,t,!0);return n&&gl(a,n),$r>0&&!s&&Ot&&(a.shapeFlag&6?Ot[Ot.indexOf(e)]=a:Ot.push(a)),a.patchFlag|=-2,a}if(Ym(e)&&(e=e.__vccOpts),t){t=Uo(t);let{class:a,style:l}=t;a&&!Ue(a)&&(t.class=G(a)),De(l)&&(Bf(l)&&!ce(l)&&(l=Ze({},l)),t.style=fn(l))}const i=Ue(e)?1:Jf(e)?128:Hm(e)?64:De(e)?4:de(e)?2:0;return be(e,t,n,r,o,i,s,!0)}function Uo(e){return e?Bf(e)||ti in e?Ze({},e):e:null}function en(e,t,n=!1){const{props:r,ref:o,patchFlag:s,children:i}=e,a=t?ue(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&Pd(a),ref:t&&t.ref?n&&o?ce(o)?o.concat(vs(t)):[o,vs(t)]:vs(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:i,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ke?s===-1?16:s|16:s,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&en(e.ssContent),ssFallback:e.ssFallback&&en(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Je(e=" ",t=0){return Y(Or,null,e,t)}function ge(e="",t=!1){return t?(R(),ae(dt,null,e)):Y(dt,null,e)}function At(e){return e==null||typeof e=="boolean"?Y(dt):ce(e)?Y(ke,null,e.slice()):typeof e=="object"?Pn(e):Y(Or,null,String(e))}function Pn(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:en(e)}function gl(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(ce(t))n=16;else if(typeof t=="object")if(r&65){const o=t.default;o&&(o._c&&(o._d=!1),gl(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!(ti in t)?t._ctx=tt:o===3&&tt&&(tt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else de(t)?(t={default:t,_ctx:tt},n=32):(t=String(t),r&64?(n=16,t=[Je(t)]):n=8);e.children=t,e.shapeFlag|=n}function ue(...e){const t={};for(let n=0;nQe||tt;let ml,_r,Dc="__VUE_INSTANCE_SETTERS__";(_r=Hi()[Dc])||(_r=Hi()[Dc]=[]),_r.push(e=>Qe=e),ml=e=>{_r.length>1?_r.forEach(t=>t(e)):_r[0](e)};const Mn=e=>{ml(e),e.scope.on()},In=()=>{Qe&&Qe.scope.off(),ml(null)};function Sd(e){return e.vnode.shapeFlag&4}let Rr=!1;function Gm(e,t=!1){Rr=t;const{props:n,children:r}=e.vnode,o=Sd(e);Im(e,n,o,t),Mm(e,r);const s=o?Qm(e,t):void 0;return Rr=!1,s}function Qm(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=Hf(new Proxy(e.ctx,xm));const{setup:r}=n;if(r){const o=e.setupContext=r.length>1?Ad(e):null;Mn(e),Ur();const s=$n(r,e,0,[e.props,o]);if(zr(),In(),Ga(s)){if(s.then(In,In),t)return s.then(i=>{Zi(e,i,t)}).catch(i=>{Vr(i,e,0)});e.asyncDep=s}else Zi(e,s,t)}else Td(e,t)}function Zi(e,t,n){de(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:De(t)&&(e.setupState=zf(t)),Td(e,n)}let Fc;function Td(e,t,n){const r=e.type;if(!e.render){if(!t&&Fc&&!r.render){const o=r.template||dl(e).template;if(o){const{isCustomElement:s,compilerOptions:i}=e.appContext.config,{delimiters:a,compilerOptions:l}=r,c=Ze(Ze({isCustomElement:s,delimiters:a},i),l);r.render=Fc(o,c)}}e.render=r.render||Ht}{Mn(e),Ur();try{Cm(e)}finally{zr(),In()}}}function Xm(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return vt(e,"get","$attrs"),t[n]}}))}function Ad(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return Xm(e)},slots:e.slots,emit:e.emit,expose:t}}function ni(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(zf(Hf(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in lo)return lo[n](e)},has(t,n){return n in t||n in lo}}))}function ea(e,t=!0){return de(e)?e.displayName||e.name:e.name||t&&e.__name}function Ym(e){return de(e)&&"__vccOpts"in e}const j=(e,t)=>Kg(e,t,Rr);function me(e,t,n){const r=arguments.length;return r===2?De(t)&&!ce(t)?Ir(t)?Y(e,null,[t]):Y(e,t):Y(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Ir(n)&&(n=[n]),Y(e,t,n))}const Jm=Symbol.for("v-scx"),Zm=()=>Te(Jm),Od="3.3.8",ev="http://www.w3.org/2000/svg",Qn=typeof document<"u"?document:null,Nc=Qn&&Qn.createElement("template"),tv={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const o=t?Qn.createElementNS(ev,e):Qn.createElement(e,n?{is:n}:void 0);return e==="select"&&r&&r.multiple!=null&&o.setAttribute("multiple",r.multiple),o},createText:e=>Qn.createTextNode(e),createComment:e=>Qn.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Qn.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,o,s){const i=n?n.previousSibling:t.lastChild;if(o&&(o===s||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===s||!(o=o.nextSibling)););else{Nc.innerHTML=r?`${e}`:e;const a=Nc.content;if(r){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},wn="transition",Kr="animation",Co=Symbol("_vtc"),hr=(e,{slots:t})=>me(hm,nv(e),t);hr.displayName="Transition";const $d={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String};hr.props=Ze({},td,$d);const Un=(e,t=[])=>{ce(e)?e.forEach(n=>n(...t)):e&&e(...t)},Bc=e=>e?ce(e)?e.some(t=>t.length>1):e.length>1:!1;function nv(e){const t={};for(const A in e)A in $d||(t[A]=e[A]);if(e.css===!1)return t;const{name:n="v",type:r,duration:o,enterFromClass:s=`${n}-enter-from`,enterActiveClass:i=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:l=s,appearActiveClass:c=i,appearToClass:u=a,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:d=`${n}-leave-active`,leaveToClass:p=`${n}-leave-to`}=e,h=rv(o),g=h&&h[0],y=h&&h[1],{onBeforeEnter:x,onEnter:b,onEnterCancelled:v,onLeave:m,onLeaveCancelled:_,onBeforeAppear:C=x,onAppear:S=b,onAppearCancelled:T=v}=t,M=(A,N,he)=>{zn(A,N?u:a),zn(A,N?c:i),he&&he()},I=(A,N)=>{A._isLeaving=!1,zn(A,f),zn(A,p),zn(A,d),N&&N()},q=A=>(N,he)=>{const fe=A?S:b,U=()=>M(N,A,he);Un(fe,[N,U]),Hc(()=>{zn(N,A?l:s),_n(N,A?u:a),Bc(fe)||Uc(N,r,g,U)})};return Ze(t,{onBeforeEnter(A){Un(x,[A]),_n(A,s),_n(A,i)},onBeforeAppear(A){Un(C,[A]),_n(A,l),_n(A,c)},onEnter:q(!1),onAppear:q(!0),onLeave(A,N){A._isLeaving=!0;const he=()=>I(A,N);_n(A,f),iv(),_n(A,d),Hc(()=>{A._isLeaving&&(zn(A,f),_n(A,p),Bc(m)||Uc(A,r,y,he))}),Un(m,[A,he])},onEnterCancelled(A){M(A,!1),Un(v,[A])},onAppearCancelled(A){M(A,!0),Un(T,[A])},onLeaveCancelled(A){I(A),Un(_,[A])}})}function rv(e){if(e==null)return null;if(De(e))return[xi(e.enter),xi(e.leave)];{const t=xi(e);return[t,t]}}function xi(e){return Cf(e)}function _n(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[Co]||(e[Co]=new Set)).add(t)}function zn(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const n=e[Co];n&&(n.delete(t),n.size||(e[Co]=void 0))}function Hc(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let ov=0;function Uc(e,t,n,r){const o=e._endId=++ov,s=()=>{o===e._endId&&r()};if(n)return setTimeout(s,n);const{type:i,timeout:a,propCount:l}=sv(e,t);if(!i)return r();const c=i+"end";let u=0;const f=()=>{e.removeEventListener(c,d),s()},d=p=>{p.target===e&&++u>=l&&f()};setTimeout(()=>{u(n[h]||"").split(", "),o=r(`${wn}Delay`),s=r(`${wn}Duration`),i=zc(o,s),a=r(`${Kr}Delay`),l=r(`${Kr}Duration`),c=zc(a,l);let u=null,f=0,d=0;t===wn?i>0&&(u=wn,f=i,d=s.length):t===Kr?c>0&&(u=Kr,f=c,d=l.length):(f=Math.max(i,c),u=f>0?i>c?wn:Kr:null,d=u?u===wn?s.length:l.length:0);const p=u===wn&&/\b(transform|all)(,|$)/.test(r(`${wn}Property`).toString());return{type:u,timeout:f,propCount:d,hasTransform:p}}function zc(e,t){for(;e.lengthVc(n)+Vc(e[r])))}function Vc(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function iv(){return document.body.offsetHeight}function av(e,t,n){const r=e[Co];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const vl=Symbol("_vod"),lv={beforeMount(e,{value:t},{transition:n}){e[vl]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Gr(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),Gr(e,!0),r.enter(e)):r.leave(e,()=>{Gr(e,!1)}):Gr(e,t))},beforeUnmount(e,{value:t}){Gr(e,t)}};function Gr(e,t){e.style.display=t?e[vl]:"none"}function cv(e,t,n){const r=e.style,o=Ue(n);if(n&&!o){if(t&&!Ue(t))for(const s in t)n[s]==null&&ta(r,s,"");for(const s in n)ta(r,s,n[s])}else{const s=r.display;o?t!==n&&(r.cssText=n):t&&e.removeAttribute("style"),vl in e&&(r.display=s)}}const Wc=/\s*!important$/;function ta(e,t,n){if(ce(n))n.forEach(r=>ta(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=uv(e,t);Wc.test(n)?e.setProperty(pr(r),n.replace(Wc,""),"important"):e[r]=n}}const qc=["Webkit","Moz","ms"],ki={};function uv(e,t){const n=ki[t];if(n)return n;let r=Zt(t);if(r!=="filter"&&r in e)return ki[t]=r;r=qs(r);for(let o=0;oEi||(vv.then(()=>Ei=0),Ei=Date.now());function bv(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;$t(wv(r,n.value),t,5,[r])};return n.value=e,n.attached=yv(),n}function wv(e,t){if(ce(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>o=>!o._stopped&&r&&r(o))}else return t}const Xc=/^on[a-z]/,_v=(e,t,n,r,o=!1,s,i,a,l)=>{t==="class"?av(e,r,o):t==="style"?cv(e,n,r):jo(t)?qa(t)||gv(e,t,n,r,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):xv(e,t,r,o))?dv(e,t,r,s,i,a,l):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),fv(e,t,r,o))};function xv(e,t,n,r){return r?!!(t==="innerHTML"||t==="textContent"||t in e&&Xc.test(t)&&de(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||Xc.test(t)&&Ue(n)?!1:t in e}function JS(e){const t=mn();if(!t)return;const n=t.ut=(o=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(s=>ra(s,o))},r=()=>{const o=e(t.proxy);na(t.subTree,o),n(o)};cm(r),Le(()=>{const o=new MutationObserver(r);o.observe(t.subTree.el.parentNode,{childList:!0}),et(()=>o.disconnect())})}function na(e,t){if(e.shapeFlag&128){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{na(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)ra(e.el,t);else if(e.type===ke)e.children.forEach(n=>na(n,t));else if(e.type===uo){let{el:n,anchor:r}=e;for(;n&&(ra(n,t),n!==r);)n=n.nextSibling}}function ra(e,t){if(e.nodeType===1){const n=e.style;for(const r in t)n.setProperty(`--${r}`,t[r])}}const kv=["ctrl","shift","alt","meta"],Ev={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>kv.some(n=>e[`${n}Key`]&&!t.includes(n))},Ci=(e,t)=>(n,...r)=>{for(let o=0;on=>{if(!("key"in n))return;const r=pr(n.key);if(t.some(o=>o===r||Cv[o]===r))return e(n)},Id=Ze({patchProp:_v},tv);let po,Jc=!1;function Pv(){return po||(po=Fm(Id))}function Sv(){return po=Jc?po:Nm(Id),Jc=!0,po}const Tv=(...e)=>{const t=Pv().createApp(...e),{mount:n}=t;return t.mount=r=>{const o=Rd(r);if(!o)return;const s=t._component;!de(s)&&!s.render&&!s.template&&(s.template=o.innerHTML),o.innerHTML="";const i=n(o,!1,o instanceof SVGElement);return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),i},t},Av=(...e)=>{const t=Sv().createApp(...e),{mount:n}=t;return t.mount=r=>{const o=Rd(r);if(o)return n(o,!0,o instanceof SVGElement)},t};function Rd(e){return Ue(e)?document.querySelector(e):e}const Ov=/#/g,$v=/&/g,Iv=/=/g,yl=/\+/g,Rv=/%5e/gi,Lv=/%60/gi,Mv=/%7c/gi,jv=/%20/gi;function Dv(e){return encodeURI(""+e).replace(Mv,"|")}function oa(e){return Dv(typeof e=="string"?e:JSON.stringify(e)).replace(yl,"%2B").replace(jv,"+").replace(Ov,"%23").replace($v,"%26").replace(Lv,"`").replace(Rv,"^")}function Pi(e){return oa(e).replace(Iv,"%3D")}function Ls(e=""){try{return decodeURIComponent(""+e)}catch{return""+e}}function Fv(e){return Ls(e.replace(yl," "))}function Nv(e){return Ls(e.replace(yl," "))}function Ld(e=""){const t={};e[0]==="?"&&(e=e.slice(1));for(const n of e.split("&")){const r=n.match(/([^=]+)=?(.*)/)||[];if(r.length<2)continue;const o=Fv(r[1]);if(o==="__proto__"||o==="constructor")continue;const s=Nv(r[2]||"");t[o]===void 0?t[o]=s:Array.isArray(t[o])?t[o].push(s):t[o]=[t[o],s]}return t}function Bv(e,t){return(typeof t=="number"||typeof t=="boolean")&&(t=String(t)),t?Array.isArray(t)?t.map(n=>`${Pi(e)}=${oa(n)}`).join("&"):`${Pi(e)}=${oa(t)}`:Pi(e)}function Hv(e){return Object.keys(e).filter(t=>e[t]!==void 0).map(t=>Bv(t,e[t])).filter(Boolean).join("&")}const Uv=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,Md=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,zv=/^([/\\]\s*){2,}[^/\\]/;function gr(e,t={}){return typeof t=="boolean"&&(t={acceptRelative:t}),t.strict?Uv.test(e):Md.test(e)||(t.acceptRelative?zv.test(e):!1)}const Vv=/^[\s\0]*(blob|data|javascript|vbscript):$/i;function Wv(e){return!!e&&Vv.test(e)}const qv=/\/$|\/\?|\/#/;function sa(e="",t){return t?qv.test(e):e.endsWith("/")}function ri(e="",t){if(!t)return(sa(e)?e.slice(0,-1):e)||"/";if(!sa(e,!0))return e||"/";let n=e,r="";const o=e.indexOf("#");o>=0&&(n=e.slice(0,o),r=e.slice(o));const[s,...i]=n.split("?");return(s.slice(0,-1)||"/")+(i.length>0?`?${i.join("?")}`:"")+r}function Ms(e="",t){if(!t)return e.endsWith("/")?e:e+"/";if(sa(e,!0))return e||"/";let n=e,r="";const o=e.indexOf("#");if(o>=0&&(n=e.slice(0,o),r=e.slice(o),!n))return r;const[s,...i]=n.split("?");return s+"/"+(i.length>0?`?${i.join("?")}`:"")+r}function Kv(e=""){return e.startsWith("/")}function ia(e=""){return Kv(e)?e:"/"+e}function jd(e,t){if(Fd(t)||gr(e))return e;const n=ri(t);return e.startsWith(n)?e:mr(n,e)}function Zc(e,t){if(Fd(t))return e;const n=ri(t);if(!e.startsWith(n))return e;const r=e.slice(n.length);return r[0]==="/"?r:"/"+r}function Dd(e,t){const n=zo(e),r={...Ld(n.search),...t};return n.search=Hv(r),Zv(n)}function Fd(e){return!e||e==="/"}function Gv(e){return e&&e!=="/"}const Qv=/^\.?\//;function mr(e,...t){let n=e||"";for(const r of t.filter(o=>Gv(o)))if(n){const o=r.replace(Qv,"");n=Ms(n)+o}else n=r;return n}function Xv(e){return Yv(e,"https://")}function Yv(e,t){const n=e.match(Md);return n?t+e.slice(n[0].length):t+e}function Jv(e,t,n={}){return n.trailingSlash||(e=Ms(e),t=Ms(t)),n.leadingSlash||(e=ia(e),t=ia(t)),n.encoding||(e=Ls(e),t=Ls(t)),e===t}function zo(e="",t){const n=e.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(n){const[,f,d=""]=n;return{protocol:f.toLowerCase(),pathname:d,href:f+d,auth:"",host:"",search:"",hash:""}}if(!gr(e,{acceptRelative:!0}))return t?zo(t+e):eu(e);const[,r="",o,s=""]=e.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[],[,i="",a=""]=s.match(/([^#/?]*)(.*)?/)||[],{pathname:l,search:c,hash:u}=eu(a.replace(/\/(?=[A-Za-z]:)/,""));return{protocol:r.toLowerCase(),auth:o?o.slice(0,Math.max(0,o.length-1)):"",host:i,pathname:l,search:c,hash:u}}function eu(e=""){const[t="",n="",r=""]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:n,hash:r}}function Zv(e){const t=e.pathname||"",n=e.search?(e.search.startsWith("?")?"":"?")+e.search:"",r=e.hash||"",o=e.auth?e.auth+"@":"",s=e.host||"";return(e.protocol?e.protocol+"//":"")+o+s+t+n+r}const ey=()=>{var e;return((e=window==null?void 0:window.__NUXT__)==null?void 0:e.config)||{}},js=ey().app,ty=()=>js.baseURL,ny=()=>js.buildAssetsDir,bl=(...e)=>mr(Nd(),ny(),...e),Nd=(...e)=>{const t=js.cdnURL||js.baseURL;return e.length?mr(t,...e):t};globalThis.__buildAssetsURL=bl,globalThis.__publicAssetsURL=Nd;const ry=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,oy=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,sy=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function iy(e,t){if(e==="__proto__"||e==="constructor"&&t&&typeof t=="object"&&"prototype"in t){ay(e);return}return t}function ay(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function Po(e,t={}){if(typeof e!="string")return e;const n=e.trim();if(e[0]==='"'&&e.at(-1)==='"'&&!e.includes("\\"))return n.slice(1,-1);if(n.length<=9){const r=n.toLowerCase();if(r==="true")return!0;if(r==="false")return!1;if(r==="undefined")return;if(r==="null")return null;if(r==="nan")return Number.NaN;if(r==="infinity")return Number.POSITIVE_INFINITY;if(r==="-infinity")return Number.NEGATIVE_INFINITY}if(!sy.test(e)){if(t.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if(ry.test(e)||oy.test(e)){if(t.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,iy)}return JSON.parse(e)}catch(r){if(t.strict)throw r;return e}}class ly extends Error{constructor(t,n){super(t,n),this.name="FetchError",n!=null&&n.cause&&!this.cause&&(this.cause=n.cause)}}function cy(e){var l,c,u,f,d;const t=((l=e.error)==null?void 0:l.message)||((c=e.error)==null?void 0:c.toString())||"",n=((u=e.request)==null?void 0:u.method)||((f=e.options)==null?void 0:f.method)||"GET",r=((d=e.request)==null?void 0:d.url)||String(e.request)||"/",o=`[${n}] ${JSON.stringify(r)}`,s=e.response?`${e.response.status} ${e.response.statusText}`:"",i=`${o}: ${s}${t?` ${t}`:""}`,a=new ly(i,e.error?{cause:e.error}:void 0);for(const p of["request","options","response"])Object.defineProperty(a,p,{get(){return e[p]}});for(const[p,h]of[["data","_data"],["status","status"],["statusCode","status"],["statusText","statusText"],["statusMessage","statusText"]])Object.defineProperty(a,p,{get(){return e.response&&e.response[h]}});return a}const uy=new Set(Object.freeze(["PATCH","POST","PUT","DELETE"]));function tu(e="GET"){return uy.has(e.toUpperCase())}function fy(e){if(e===void 0)return!1;const t=typeof e;return t==="string"||t==="number"||t==="boolean"||t===null?!0:t!=="object"?!1:Array.isArray(e)?!0:e.buffer?!1:e.constructor&&e.constructor.name==="Object"||typeof e.toJSON=="function"}const dy=new Set(["image/svg","application/xml","application/xhtml","application/html"]),py=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function hy(e=""){if(!e)return"json";const t=e.split(";").shift()||"";return py.test(t)?"json":dy.has(t)||t.startsWith("text/")?"text":"blob"}function gy(e,t,n=globalThis.Headers){const r={...t,...e};if(t!=null&&t.params&&(e!=null&&e.params)&&(r.params={...t==null?void 0:t.params,...e==null?void 0:e.params}),t!=null&&t.query&&(e!=null&&e.query)&&(r.query={...t==null?void 0:t.query,...e==null?void 0:e.query}),t!=null&&t.headers&&(e!=null&&e.headers)){r.headers=new n((t==null?void 0:t.headers)||{});for(const[o,s]of new n((e==null?void 0:e.headers)||{}))r.headers.set(o,s)}return r}const my=new Set([408,409,425,429,500,502,503,504]),vy=new Set([101,204,205,304]);function Bd(e={}){const{fetch:t=globalThis.fetch,Headers:n=globalThis.Headers,AbortController:r=globalThis.AbortController}=e;async function o(a){const l=a.error&&a.error.name==="AbortError"&&!a.options.timeout||!1;if(a.options.retry!==!1&&!l){let u;typeof a.options.retry=="number"?u=a.options.retry:u=tu(a.options.method)?0:1;const f=a.response&&a.response.status||500;if(u>0&&(Array.isArray(a.options.retryStatusCodes)?a.options.retryStatusCodes.includes(f):my.has(f))){const d=a.options.retryDelay||0;return d>0&&await new Promise(p=>setTimeout(p,d)),s(a.request,{...a.options,retry:u-1,timeout:a.options.timeout})}}const c=cy(a);throw Error.captureStackTrace&&Error.captureStackTrace(c,s),c}const s=async function(l,c={}){var d;const u={request:l,options:gy(c,e.defaults,n),response:void 0,error:void 0};if(u.options.method=(d=u.options.method)==null?void 0:d.toUpperCase(),u.options.onRequest&&await u.options.onRequest(u),typeof u.request=="string"&&(u.options.baseURL&&(u.request=jd(u.request,u.options.baseURL)),(u.options.query||u.options.params)&&(u.request=Dd(u.request,{...u.options.params,...u.options.query}))),u.options.body&&tu(u.options.method)&&(fy(u.options.body)?(u.options.body=typeof u.options.body=="string"?u.options.body:JSON.stringify(u.options.body),u.options.headers=new n(u.options.headers||{}),u.options.headers.has("content-type")||u.options.headers.set("content-type","application/json"),u.options.headers.has("accept")||u.options.headers.set("accept","application/json")):("pipeTo"in u.options.body&&typeof u.options.body.pipeTo=="function"||typeof u.options.body.pipe=="function")&&("duplex"in u.options||(u.options.duplex="half"))),!u.options.signal&&u.options.timeout){const p=new r;setTimeout(()=>p.abort(),u.options.timeout),u.options.signal=p.signal}try{u.response=await t(u.request,u.options)}catch(p){return u.error=p,u.options.onRequestError&&await u.options.onRequestError(u),await o(u)}if(u.response.body&&!vy.has(u.response.status)&&u.options.method!=="HEAD"){const p=(u.options.parseResponse?"json":u.options.responseType)||hy(u.response.headers.get("content-type")||"");switch(p){case"json":{const h=await u.response.text(),g=u.options.parseResponse||Po;u.response._data=g(h);break}case"stream":{u.response._data=u.response.body;break}default:u.response._data=await u.response[p]()}}return u.options.onResponse&&await u.options.onResponse(u),!u.options.ignoreResponseError&&u.response.status>=400&&u.response.status<600?(u.options.onResponseError&&await u.options.onResponseError(u),await o(u)):u.response},i=async function(l,c){return(await s(l,c))._data};return i.raw=s,i.native=(...a)=>t(...a),i.create=(a={})=>Bd({...e,defaults:{...e.defaults,...a}}),i}const wl=function(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")}(),yy=wl.fetch||(()=>Promise.reject(new Error("[ofetch] global.fetch is not supported!"))),by=wl.Headers,wy=wl.AbortController,_y=Bd({fetch:yy,Headers:by,AbortController:wy}),xy=_y;globalThis.$fetch||(globalThis.$fetch=xy.create({baseURL:ty()}));function aa(e,t={},n){for(const r in e){const o=e[r],s=n?`${n}:${r}`:r;typeof o=="object"&&o!==null?aa(o,t,s):typeof o=="function"&&(t[s]=o)}return t}const ky={run:e=>e()},Ey=()=>ky,Hd=typeof console.createTask<"u"?console.createTask:Ey;function Cy(e,t){const n=t.shift(),r=Hd(n);return e.reduce((o,s)=>o.then(()=>r.run(()=>s(...t))),Promise.resolve())}function Py(e,t){const n=t.shift(),r=Hd(n);return Promise.all(e.map(o=>r.run(()=>o(...t))))}function Si(e,t){for(const n of[...e])n(t)}class Sy{constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(t,n,r={}){if(!t||typeof n!="function")return()=>{};const o=t;let s;for(;this._deprecatedHooks[t];)s=this._deprecatedHooks[t],t=s.to;if(s&&!r.allowDeprecated){let i=s.message;i||(i=`${o} hook has been deprecated`+(s.to?`, please use ${s.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(i)||(console.warn(i),this._deprecatedMessages.add(i))}if(!n.name)try{Object.defineProperty(n,"name",{get:()=>"_"+t.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[t]=this._hooks[t]||[],this._hooks[t].push(n),()=>{n&&(this.removeHook(t,n),n=void 0)}}hookOnce(t,n){let r,o=(...s)=>(typeof r=="function"&&r(),r=void 0,o=void 0,n(...s));return r=this.hook(t,o),r}removeHook(t,n){if(this._hooks[t]){const r=this._hooks[t].indexOf(n);r!==-1&&this._hooks[t].splice(r,1),this._hooks[t].length===0&&delete this._hooks[t]}}deprecateHook(t,n){this._deprecatedHooks[t]=typeof n=="string"?{to:n}:n;const r=this._hooks[t]||[];delete this._hooks[t];for(const o of r)this.hook(t,o)}deprecateHooks(t){Object.assign(this._deprecatedHooks,t);for(const n in t)this.deprecateHook(n,t[n])}addHooks(t){const n=aa(t),r=Object.keys(n).map(o=>this.hook(o,n[o]));return()=>{for(const o of r.splice(0,r.length))o()}}removeHooks(t){const n=aa(t);for(const r in n)this.removeHook(r,n[r])}removeAllHooks(){for(const t in this._hooks)delete this._hooks[t]}callHook(t,...n){return n.unshift(t),this.callHookWith(Cy,t,...n)}callHookParallel(t,...n){return n.unshift(t),this.callHookWith(Py,t,...n)}callHookWith(t,n,...r){const o=this._before||this._after?{name:n,args:r,context:{}}:void 0;this._before&&Si(this._before,o);const s=t(n in this._hooks?[...this._hooks[n]]:[],r);return s instanceof Promise?s.finally(()=>{this._after&&o&&Si(this._after,o)}):(this._after&&o&&Si(this._after,o),s)}beforeEach(t){return this._before=this._before||[],this._before.push(t),()=>{if(this._before!==void 0){const n=this._before.indexOf(t);n!==-1&&this._before.splice(n,1)}}}afterEach(t){return this._after=this._after||[],this._after.push(t),()=>{if(this._after!==void 0){const n=this._after.indexOf(t);n!==-1&&this._after.splice(n,1)}}}}function Ud(){return new Sy}function Ty(e={}){let t,n=!1;const r=i=>{if(t&&t!==i)throw new Error("Context conflict")};let o;if(e.asyncContext){const i=e.AsyncLocalStorage||globalThis.AsyncLocalStorage;i?o=new i:console.warn("[unctx] `AsyncLocalStorage` is not provided.")}const s=()=>{if(o&&t===void 0){const i=o.getStore();if(i!==void 0)return i}return t};return{use:()=>{const i=s();if(i===void 0)throw new Error("Context is not available");return i},tryUse:()=>s(),set:(i,a)=>{a||r(i),t=i,n=!0},unset:()=>{t=void 0,n=!1},call:(i,a)=>{r(i),t=i;try{return o?o.run(i,a):a()}finally{n||(t=void 0)}},async callAsync(i,a){t=i;const l=()=>{t=i},c=()=>t===i?l:void 0;la.add(c);try{const u=o?o.run(i,a):a();return n||(t=void 0),await u}finally{la.delete(c)}}}}function Ay(e={}){const t={};return{get(n,r={}){return t[n]||(t[n]=Ty({...e,...r})),t[n],t[n]}}}const Ds=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof global<"u"?global:typeof window<"u"?window:{},nu="__unctx__",Oy=Ds[nu]||(Ds[nu]=Ay()),$y=(e,t={})=>Oy.get(e,t),ru="__unctx_async_handlers__",la=Ds[ru]||(Ds[ru]=new Set);function So(e){const t=[];for(const o of la){const s=o();s&&t.push(s)}const n=()=>{for(const o of t)o()};let r=e();return r&&typeof r=="object"&&"catch"in r&&(r=r.catch(o=>{throw n(),o})),[r,n]}const zd=$y("nuxt-app",{asyncContext:!1}),Iy="__nuxt_plugin";function Ry(e){let t=0;const n={_scope:Af(),provide:void 0,globalName:"nuxt",versions:{get nuxt(){return"3.8.1"},get vue(){return n.vueApp.version}},payload:Rt({data:{},state:{},_errors:{},...window.__NUXT__??{}}),static:{data:{}},runWithContext:o=>n._scope.run(()=>jy(n,o)),isHydrating:!0,deferHydration(){if(!n.isHydrating)return()=>{};t++;let o=!1;return()=>{if(!o&&(o=!0,t--,t===0))return n.isHydrating=!1,n.callHook("app:suspense:resolve")}},_asyncDataPromises:{},_asyncData:{},_payloadRevivers:{},...e};n.hooks=Ud(),n.hook=n.hooks.hook,n.callHook=n.hooks.callHook,n.provide=(o,s)=>{const i="$"+o;is(n,i,s),is(n.vueApp.config.globalProperties,i,s)},is(n.vueApp,"$nuxt",n),is(n.vueApp.config.globalProperties,"$nuxt",n);{window.addEventListener("nuxt.preloadError",s=>{n.callHook("app:chunkError",{error:s.payload})}),window.useNuxtApp=window.useNuxtApp||Ae;const o=n.hook("app:error",(...s)=>{console.error("[nuxt] error caught during app initialization",...s)});n.hook("app:mounted",o)}const r=Rt(n.payload.config);return n.provide("config",r),n}async function Ly(e,t){if(t.hooks&&e.hooks.addHooks(t.hooks),typeof t=="function"){const{provide:n}=await e.runWithContext(()=>t(e))||{};if(n&&typeof n=="object")for(const r in n)e.provide(r,n[r])}}async function My(e,t){const n=[],r=[];for(const o of t){const s=Ly(e,o);o.parallel?n.push(s.catch(i=>r.push(i))):await s}if(await Promise.all(n),r.length)throw r[0]}/*! @__NO_SIDE_EFFECTS__ */function ot(e){return typeof e=="function"?e:(delete e.name,Object.assign(e.setup||(()=>{}),e,{[Iy]:!0}))}function jy(e,t,n){const r=()=>n?t(...n):t();return zd.set(e),e.vueApp.runWithContext(r)}/*! @__NO_SIDE_EFFECTS__ */function Ae(){var t;let e;if(hd()&&(e=(t=mn())==null?void 0:t.appContext.app.$nuxt),e=e||zd.tryUse(),!e)throw new Error("[nuxt] instance unavailable");return e}/*! @__NO_SIDE_EFFECTS__ */function Lt(){return Ae().$config}function is(e,t,n){Object.defineProperty(e,t,{get:()=>n})}const Dy="modulepreload",Fy=function(e,t){return e[0]==="."?new URL(e,t).href:e},ou={},Ny=function(t,n,r){if(!n||n.length===0)return t();const o=document.getElementsByTagName("link");return Promise.all(n.map(s=>{if(s=Fy(s,r),s in ou)return;ou[s]=!0;const i=s.endsWith(".css"),a=i?'[rel="stylesheet"]':"";if(!!r)for(let u=o.length-1;u>=0;u--){const f=o[u];if(f.href===s&&(!i||f.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${s}"]${a}`))return;const c=document.createElement("link");if(c.rel=i?"stylesheet":Dy,i||(c.as="script",c.crossOrigin=""),c.href=s,document.head.appendChild(c),i)return new Promise((u,f)=>{c.addEventListener("load",u),c.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${s}`)))})})).then(()=>t()).catch(s=>{const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=s,window.dispatchEvent(i),!i.defaultPrevented)throw s})},Q=(...e)=>Ny(...e).catch(t=>{const n=new Event("nuxt.preloadError");throw n.payload=t,window.dispatchEvent(n),t}),By=-1,Hy=-2,Uy=-3,zy=-4,Vy=-5,Wy=-6;function qy(e,t){return Ky(JSON.parse(e),t)}function Ky(e,t){if(typeof e=="number")return o(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const n=e,r=Array(n.length);function o(s,i=!1){if(s===By)return;if(s===Uy)return NaN;if(s===zy)return 1/0;if(s===Vy)return-1/0;if(s===Wy)return-0;if(i)throw new Error("Invalid input");if(s in r)return r[s];const a=n[s];if(!a||typeof a!="object")r[s]=a;else if(Array.isArray(a))if(typeof a[0]=="string"){const l=a[0],c=t==null?void 0:t[l];if(c)return r[s]=c(o(a[1]));switch(l){case"Date":r[s]=new Date(a[1]);break;case"Set":const u=new Set;r[s]=u;for(let p=1;p>>9)+65536).toString(16).substring(1,8).toLowerCase()}function su(e){return e._h||_l(e._d?e._d:`${e.tag}:${e.textContent||e.innerHTML||""}:${Object.entries(e.props).map(([t,n])=>`${t}:${String(n)}`).join(",")}`)}function Wd(e,t){const{props:n,tag:r}=e;if(Yy.includes(r))return r;if(r==="link"&&n.rel==="canonical")return"canonical";if(n.charset)return"charset";const o=["id"];r==="meta"&&o.push("name","property","http-equiv");for(const s of o)if(typeof n[s]<"u"){const i=String(n[s]);return t&&!t(i)?!1:`${r}:${s}:${i}`}return!1}function iu(e,t){return e==null?t||null:typeof e=="function"?e(t):e}function qd(e,t){const n=[],r=t.resolveKeyData||(s=>s.key),o=t.resolveValueData||(s=>s.value);for(const[s,i]of Object.entries(e))n.push(...(Array.isArray(i)?i:[i]).map(a=>{const l={key:s,value:a},c=o(l);return typeof c=="object"?qd(c,t):Array.isArray(c)?c:{[typeof t.key=="function"?t.key(l):t.key]:r(l),[typeof t.value=="function"?t.value(l):t.value]:c}}).flat());return n}function Kd(e,t){return Object.entries(e).map(([n,r])=>{if(typeof r=="object"&&(r=Kd(r,t)),t.resolve){const o=t.resolve({key:n,value:r});if(o)return o}return typeof r=="number"&&(r=r.toString()),typeof r=="string"&&t.wrapValue&&(r=r.replace(new RegExp(t.wrapValue,"g"),`\\${t.wrapValue}`),r=`${t.wrapValue}${r}${t.wrapValue}`),`${n}${t.keyValueSeparator||""}${r}`}).join(t.entrySeparator||"")}const ct=e=>({keyValue:e,metaKey:"property"}),Ti=e=>({keyValue:e}),xl={appleItunesApp:{unpack:{entrySeparator:", ",resolve({key:e,value:t}){return`${cn(e)}=${t}`}}},articleExpirationTime:ct("article:expiration_time"),articleModifiedTime:ct("article:modified_time"),articlePublishedTime:ct("article:published_time"),bookReleaseDate:ct("book:release_date"),charset:{metaKey:"charset"},contentSecurityPolicy:{unpack:{entrySeparator:"; ",resolve({key:e,value:t}){return`${cn(e)} ${t}`}},metaKey:"http-equiv"},contentType:{metaKey:"http-equiv"},defaultStyle:{metaKey:"http-equiv"},fbAppId:ct("fb:app_id"),msapplicationConfig:Ti("msapplication-Config"),msapplicationTileColor:Ti("msapplication-TileColor"),msapplicationTileImage:Ti("msapplication-TileImage"),ogAudioSecureUrl:ct("og:audio:secure_url"),ogAudioUrl:ct("og:audio"),ogImageSecureUrl:ct("og:image:secure_url"),ogImageUrl:ct("og:image"),ogSiteName:ct("og:site_name"),ogVideoSecureUrl:ct("og:video:secure_url"),ogVideoUrl:ct("og:video"),profileFirstName:ct("profile:first_name"),profileLastName:ct("profile:last_name"),profileUsername:ct("profile:username"),refresh:{metaKey:"http-equiv",unpack:{entrySeparator:";",resolve({key:e,value:t}){if(e==="seconds")return`${t}`}}},robots:{unpack:{entrySeparator:", ",resolve({key:e,value:t}){return typeof t=="boolean"?`${cn(e)}`:`${cn(e)}:${t}`}}},xUaCompatible:{metaKey:"http-equiv"}},Gd=["og","book","article","profile"];function Qd(e){var n;const t=cn(e).split(":")[0];return Gd.includes(t)?"property":((n=xl[e])==null?void 0:n.metaKey)||"name"}function Zy(e){var t;return((t=xl[e])==null?void 0:t.keyValue)||cn(e)}function cn(e){const t=e.replace(/([A-Z])/g,"-$1").toLowerCase(),n=t.split("-")[0];return Gd.includes(n)||n==="twitter"?e.replace(/([A-Z])/g,":$1").toLowerCase():t}function ca(e){if(Array.isArray(e))return e.map(n=>ca(n));if(typeof e!="object"||Array.isArray(e))return e;const t={};for(const[n,r]of Object.entries(e))t[cn(n)]=ca(r);return t}function e0(e,t){const n=xl[t];return t==="refresh"?`${e.seconds};url=${e.url}`:Kd(ca(e),{keyValueSeparator:"=",entrySeparator:", ",resolve({value:r,key:o}){if(r===null)return"";if(typeof r=="boolean")return`${o}`},...n==null?void 0:n.unpack})}const Xd=["og:image","og:video","og:audio","twitter:image"];function Yd(e){const t={};return Object.entries(e).forEach(([n,r])=>{String(r)!=="false"&&n&&(t[n]=r)}),t}function au(e,t){const n=Yd(t),r=cn(e),o=Qd(r);if(Xd.includes(r)){const s={};return Object.entries(n).forEach(([i,a])=>{s[`${e}${i==="url"?"":`${i.charAt(0).toUpperCase()}${i.slice(1)}`}`]=a}),kl(s).sort((i,a)=>{var l,c;return(((l=i[o])==null?void 0:l.length)||0)-(((c=a[o])==null?void 0:c.length)||0)})}return[{[o]:r,...n}]}function kl(e){const t=[],n={};Object.entries(e).forEach(([o,s])=>{if(!Array.isArray(s)){if(typeof s=="object"&&s){if(Xd.includes(cn(o))){t.push(...au(o,s));return}n[o]=Yd(s)}else n[o]=s;return}s.forEach(i=>{t.push(...typeof i=="string"?kl({[o]:i}):au(o,i))})});const r=qd(n,{key({key:o}){return Qd(o)},value({key:o}){return o==="charset"?"charset":"content"},resolveKeyData({key:o}){return Zy(o)},resolveValueData({value:o,key:s}){return o===null?"_null":typeof o=="object"?e0(o,s):typeof o=="number"?o.toString():o}});return[...t,...r].map(o=>(o.content==="_null"&&(o.content=null),o))}async function t0(e,t,n){const r={tag:e,props:await Jd(typeof t=="object"&&typeof t!="function"&&!(t instanceof Promise)?{...t}:{[["script","noscript","style"].includes(e)?"innerHTML":"textContent"]:t},["templateParams","titleTemplate"].includes(e))};return Vd.forEach(o=>{const s=typeof r.props[o]<"u"?r.props[o]:n[o];typeof s<"u"&&((!["innerHTML","textContent"].includes(o)||Qy.includes(r.tag))&&(r[o]=s),delete r.props[o])}),r.props.body&&(r.tagPosition="bodyClose",delete r.props.body),r.props.children&&(r.innerHTML=r.props.children,delete r.props.children),r.tag==="script"&&(typeof r.innerHTML=="object"&&(r.innerHTML=JSON.stringify(r.innerHTML),r.props.type=r.props.type||"application/json"),r.innerHTML&&["application/ld+json","application/json"].includes(r.props.type)&&(r.innerHTML=r.innerHTML.replace(/({...r,props:{...r.props,content:o}})):r}function n0(e){return typeof e=="object"&&!Array.isArray(e)&&(e=Object.keys(e).filter(t=>e[t])),(Array.isArray(e)?e.join(" "):e).split(" ").filter(t=>t.trim()).filter(Boolean).join(" ")}async function Jd(e,t){for(const n of Object.keys(e)){if(n==="class"){e[n]=n0(e[n]);continue}if(e[n]instanceof Promise&&(e[n]=await e[n]),!t&&!Vd.includes(n)){const r=String(e[n]),o=n.startsWith("data-");r==="true"||r===""?e[n]=o?"true":!0:e[n]||(o&&r==="false"?e[n]="false":delete e[n])}}return e}const r0=10;async function o0(e){const t=[];return Object.entries(e.resolvedInput).filter(([n,r])=>typeof r<"u"&&Xy.includes(n)).forEach(([n,r])=>{const o=Gy(r);t.push(...o.map(s=>t0(n,s,e)).flat())}),(await Promise.all(t)).flat().filter(Boolean).map((n,r)=>(n._e=e._i,e.mode&&(n._m=e.mode),n._p=(e._i<l&&l[c]||void 0,t):a=t[i],typeof a<"u"?(a||"").replace(/"/g,'\\"'):!1}let o=e;try{o=decodeURI(e)}catch{}return(o.match(/%(\w+\.+\w+)|%(\w+)/g)||[]).sort().reverse().forEach(i=>{const a=r(i.slice(1));typeof a=="string"&&(e=e.replace(new RegExp(`\\${i}(\\W|$)`,"g"),(l,c)=>`${a}${c}`).trim())}),e.includes(xn)&&(e.endsWith(xn)&&(e=e.slice(0,-xn.length).trim()),e.startsWith(xn)&&(e=e.slice(xn.length).trim()),e=e.replace(new RegExp(`\\${xn}\\s*\\${xn}`,"g"),xn),e=bs(e,{separator:n},n)),e}async function i0(e){const t={tag:e.tagName.toLowerCase(),props:await Jd(e.getAttributeNames().reduce((n,r)=>({...n,[r]:e.getAttribute(r)}),{})),innerHTML:e.innerHTML};return t._d=Wd(t),t}async function ep(e,t={}){var u;const n=t.document||e.resolvedOptions.document;if(!n)return;const r={shouldRender:e.dirty,tags:[]};if(await e.hooks.callHook("dom:beforeRender",r),!r.shouldRender)return;const o=(await e.resolveTags()).map(f=>({tag:f,id:ys.includes(f.tag)?su(f):f.tag,shouldRender:!0}));let s=e._dom;if(!s){s={elMap:{htmlAttrs:n.documentElement,bodyAttrs:n.body}};for(const f of["body","head"]){const d=(u=n==null?void 0:n[f])==null?void 0:u.children;for(const p of[...d].filter(h=>ys.includes(h.tagName.toLowerCase())))s.elMap[p.getAttribute("data-hid")||su(await i0(p))]=p}}s.pendingSideEffects={...s.sideEffects||{}},s.sideEffects={};function i(f,d,p){const h=`${f}:${d}`;s.sideEffects[h]=p,delete s.pendingSideEffects[h]}function a({id:f,$el:d,tag:p}){const h=p.tag.endsWith("Attrs");s.elMap[f]=d,h||(["textContent","innerHTML"].forEach(g=>{p[g]&&p[g]!==d[g]&&(d[g]=p[g])}),i(f,"el",()=>{s.elMap[f].remove(),delete s.elMap[f]})),Object.entries(p.props).forEach(([g,y])=>{const x=`attr:${g}`;if(g==="class")for(const b of(y||"").split(" ").filter(Boolean))h&&i(f,`${x}:${b}`,()=>d.classList.remove(b)),!d.classList.contains(b)&&d.classList.add(b);else d.getAttribute(g)!==y&&d.setAttribute(g,y===!0?"":String(y)),h&&i(f,x,()=>d.removeAttribute(g))})}const l=[],c={bodyClose:void 0,bodyOpen:void 0,head:void 0};for(const f of o){const{tag:d,shouldRender:p,id:h}=f;if(p){if(d.tag==="title"){n.title=d.textContent;continue}f.$el=f.$el||s.elMap[h],f.$el?a(f):ys.includes(d.tag)&&l.push(f)}}for(const f of l){const d=f.tag.tagPosition||"head";f.$el=n.createElement(f.tag.tag),a(f),c[d]=c[d]||n.createDocumentFragment(),c[d].appendChild(f.$el)}for(const f of o)await e.hooks.callHook("dom:renderTag",f,n,i);c.head&&n.head.appendChild(c.head),c.bodyOpen&&n.body.insertBefore(c.bodyOpen,n.body.firstChild),c.bodyClose&&n.body.appendChild(c.bodyClose),Object.values(s.pendingSideEffects).forEach(f=>f()),e._dom=s,e.dirty=!1,await e.hooks.callHook("dom:rendered",{renders:o})}async function a0(e,t={}){const n=t.delayFn||(r=>setTimeout(r,10));return e._domUpdatePromise=e._domUpdatePromise||new Promise(r=>n(async()=>{await ep(e,t),delete e._domUpdatePromise,r()}))}function l0(e){return t=>{var r,o;const n=((o=(r=t.resolvedOptions.document)==null?void 0:r.head.querySelector('script[id="unhead:payload"]'))==null?void 0:o.innerHTML)||!1;return n&&t.push(JSON.parse(n)),{mode:"client",hooks:{"entries:updated":function(s){a0(s,e)}}}}}const c0=["templateParams","htmlAttrs","bodyAttrs"],u0={hooks:{"tag:normalise":function({tag:e}){["hid","vmid","key"].forEach(r=>{e.props[r]&&(e.key=e.props[r],delete e.props[r])});const n=Wd(e)||(e.key?`${e.tag}:${e.key}`:!1);n&&(e._d=n)},"tags:resolve":function(e){const t={};e.tags.forEach(r=>{const o=(r.key?`${r.tag}:${r.key}`:r._d)||r._p,s=t[o];if(s){let a=r==null?void 0:r.tagDuplicateStrategy;if(!a&&c0.includes(r.tag)&&(a="merge"),a==="merge"){const l=s.props;["class","style"].forEach(c=>{r.props[c]&&l[c]&&(c==="style"&&!l[c].endsWith(";")&&(l[c]+=";"),r.props[c]=`${l[c]} ${r.props[c]}`)}),t[o].props={...l,...r.props};return}else if(r._e===s._e){s._duped=s._duped||[],r._d=`${s._d}:${s._duped.length+1}`,s._duped.push(r);return}else if(Fs(r)>Fs(s))return}const i=Object.keys(r.props).length+(r.innerHTML?1:0)+(r.textContent?1:0);if(ys.includes(r.tag)&&i===0){delete t[o];return}t[o]=r});const n=[];Object.values(t).forEach(r=>{const o=r._duped;delete r._duped,n.push(r),o&&n.push(...o)}),e.tags=n,e.tags=e.tags.filter(r=>!(r.tag==="meta"&&(r.props.name||r.props.property)&&!r.props.content))}}},f0={mode:"server",hooks:{"tags:resolve":function(e){const t={};e.tags.filter(n=>["titleTemplate","templateParams","title"].includes(n.tag)&&n._m==="server").forEach(n=>{t[n.tag]=n.tag.startsWith("title")?n.textContent:n.props}),Object.keys(t).length&&e.tags.push({tag:"script",innerHTML:JSON.stringify(t),props:{id:"unhead:payload",type:"application/json"}})}}},d0=["script","link","bodyAttrs"];function p0(e){const t={},n={};return Object.entries(e.props).forEach(([r,o])=>{r.startsWith("on")&&typeof o=="function"?(Zd.includes(r)&&(t[r]=`this.dataset.${r} = true`),n[r]=o):t[r]=o}),{props:t,eventHandlers:n}}const h0=e=>({hooks:{"tags:resolve":function(t){for(const n of t.tags)if(d0.includes(n.tag)){const{props:r,eventHandlers:o}=p0(n);n.props=r,Object.keys(o).length&&((n.props.src||n.props.href)&&(n.key=n.key||_l(n.props.src||n.props.href)),n._eventHandlers=o)}},"dom:renderTag":function(t,n,r){if(!t.tag._eventHandlers)return;const o=t.tag.tag==="bodyAttrs"?n.defaultView:t.$el;Object.entries(t.tag._eventHandlers).forEach(([s,i])=>{const a=`${t.tag._d||t.tag._p}:${s}`,l=s.slice(2).toLowerCase(),c=`data-h-${l}`;if(r(t.id,a,()=>{}),t.$el.hasAttribute(c))return;t.$el.setAttribute(c,"");let u;const f=d=>{i(d),u==null||u.disconnect()};s in t.$el.dataset?f(new Event(s.replace("on",""))):Zd.includes(s)&&typeof MutationObserver<"u"?(u=new MutationObserver(d=>{d.some(h=>h.attributeName===`data-${s}`)&&(f(new Event(s.replace("on",""))),u==null||u.disconnect())}),u.observe(t.$el,{attributes:!0})):o.addEventListener(l,f),r(t.id,a,()=>{u==null||u.disconnect(),o.removeEventListener(l,f),t.$el.removeAttribute(c)})})}}}),g0=["link","style","script","noscript"],m0={hooks:{"tag:normalise":({tag:e})=>{e.key&&g0.includes(e.tag)&&(e.props["data-hid"]=e._h=_l(e.key))}}},v0={hooks:{"tags:resolve":e=>{const t=n=>{var r;return(r=e.tags.find(o=>o._d===n))==null?void 0:r._p};for(const{prefix:n,offset:r}of s0)for(const o of e.tags.filter(s=>typeof s.tagPriority=="string"&&s.tagPriority.startsWith(n))){const s=t(o.tagPriority.replace(n,""));typeof s<"u"&&(o._p=s+r)}e.tags.sort((n,r)=>n._p-r._p).sort((n,r)=>Fs(n)-Fs(r))}}},y0={meta:"content",link:"href",htmlAttrs:"lang"},b0=e=>({hooks:{"tags:resolve":t=>{var a;const{tags:n}=t,r=(a=n.find(l=>l.tag==="title"))==null?void 0:a.textContent,o=n.findIndex(l=>l.tag==="templateParams"),s=o!==-1?n[o].props:{},i=s.separator||"|";delete s.separator,s.pageTitle=bs(s.pageTitle||r||"",s,i);for(const l of n.filter(c=>c.processTemplateParams!==!1)){const c=y0[l.tag];c&&typeof l.props[c]=="string"?l.props[c]=bs(l.props[c],s,i):(l.processTemplateParams===!0||["titleTemplate","title"].includes(l.tag))&&["innerHTML","textContent"].forEach(u=>{typeof l[u]=="string"&&(l[u]=bs(l[u],s,i))})}e._templateParams=s,e._separator=i,t.tags=n.filter(l=>l.tag!=="templateParams")}}}),w0={hooks:{"tags:resolve":e=>{const{tags:t}=e;let n=t.findIndex(o=>o.tag==="titleTemplate");const r=t.findIndex(o=>o.tag==="title");if(r!==-1&&n!==-1){const o=iu(t[n].textContent,t[r].textContent);o!==null?t[r].textContent=o||t[r].textContent:delete t[r]}else if(n!==-1){const o=iu(t[n].textContent);o!==null&&(t[n].textContent=o,t[n].tag="title",n=-1)}n!==-1&&delete t[n],e.tags=t.filter(Boolean)}}};let tp;function _0(e={}){const t=x0(e);return t.use(l0()),tp=t}function uu(e,t){return!e||e==="server"&&t||e==="client"&&!t}function x0(e={}){const t=Ud();t.addHooks(e.hooks||{}),e.document=e.document||(Jy?document:void 0);const n=!e.document,r=()=>{a.dirty=!0,t.callHook("entries:updated",a)};let o=0,s=[];const i=[],a={plugins:i,dirty:!1,resolvedOptions:e,hooks:t,headEntries(){return s},use(l){const c=typeof l=="function"?l(a):l;(!c.key||!i.some(u=>u.key===c.key))&&(i.push(c),uu(c.mode,n)&&t.addHooks(c.hooks||{}))},push(l,c){c==null||delete c.head;const u={_i:o++,input:l,...c};return uu(u.mode,n)&&(s.push(u),r()),{dispose(){s=s.filter(f=>f._i!==u._i),t.callHook("entries:updated",a),r()},patch(f){s=s.map(d=>(d._i===u._i&&(d.input=u.input=f),d)),r()}}},async resolveTags(){const l={tags:[],entries:[...s]};await t.callHook("entries:resolve",l);for(const c of l.entries){const u=c.resolvedInput||c.input;if(c.resolvedInput=await(c.transform?c.transform(u):u),c.resolvedInput)for(const f of await o0(c)){const d={tag:f,entry:c,resolvedOptions:a.resolvedOptions};await t.callHook("tag:normalise",d),l.tags.push(d.tag)}}return await t.callHook("tags:beforeResolve",l),await t.callHook("tags:resolve",l),l.tags},ssr:n};return[u0,f0,h0,m0,v0,b0,w0,...(e==null?void 0:e.plugins)||[]].forEach(l=>a.use(l)),a.hooks.callHook("init",a),a}function k0(){return tp}const E0=Od.startsWith("3");function C0(e){return typeof e=="function"?e():E(e)}function Ns(e,t=""){if(e instanceof Promise)return e;const n=C0(e);return!e||!n?n:Array.isArray(n)?n.map(r=>Ns(r,t)):typeof n=="object"?Object.fromEntries(Object.entries(n).map(([r,o])=>r==="titleTemplate"||r.startsWith("on")?[r,E(o)]:[r,Ns(o,r)])):n}const P0={hooks:{"entries:resolve":function(e){for(const t of e.entries)t.resolvedInput=Ns(t.input)}}},np="usehead";function S0(e){return{install(n){E0&&(n.config.globalProperties.$unhead=e,n.config.globalProperties.$head=e,n.provide(np,e))}}.install}function T0(e={}){e.domDelayFn=e.domDelayFn||(n=>hn(()=>setTimeout(()=>n(),0)));const t=_0(e);return t.use(P0),t.install=S0(t),t}const ua=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},fa="__unhead_injection_handler__";function A0(e){ua[fa]=e}function O0(){if(fa in ua)return ua[fa]();const e=Te(np);return e||k0()}function Vo(e,t={}){const n=t.head||O0();if(n)return n.ssr?n.push(e,t):$0(n,e,t)}function $0(e,t,n={}){const r=B(!1),o=B({});Ye(()=>{o.value=r.value?{}:Ns(t)});const s=e.push(o.value,n);return ze(o,a=>{s.patch(a)}),mn()&&(Ho(()=>{s.dispose()}),sd(()=>{r.value=!0}),od(()=>{r.value=!1})),s}function rp(e,t){const{title:n,titleTemplate:r,...o}=e;return Vo({title:n,titleTemplate:r,_flatMeta:o},{...t,transform(s){const i=kl({...s._flatMeta});return delete s._flatMeta,{...s,meta:i}}})}const as=/^[\u0009\u0020-\u007E\u0080-\u00FF]+$/;function I0(e,t){if(typeof e!="string")throw new TypeError("argument str must be a string");const n={},o=(t||{}).decode||M0;let s=0;for(;ssp(t,e)}}function op(e){const t={};for(const n in e)t[n]=n==="dynamic"?new Map(Object.entries(e[n]).map(([r,o])=>[r,op(o)])):new Map(Object.entries(e[n]));return t}function F0(e){return D0(op(e))}function sp(e,t){const n=[];for(const[o,s]of du(t.wildcard))e.startsWith(o)&&n.push(s);for(const[o,s]of du(t.dynamic))if(e.startsWith(o+"/")){const i="/"+e.slice(o.length).split("/").splice(2).join("/");n.push(...sp(i,s))}const r=t.static.get(e);return r&&n.push(r),n.filter(Boolean)}function du(e){return[...e.entries()].sort((t,n)=>t[0].length-n[0].length)}function da(e,t,n=".",r){if(!Ai(t))return da(e,{},n,r);const o=Object.assign({},t);for(const s in e){if(s==="__proto__"||s==="constructor")continue;const i=e[s];i!=null&&(r&&r(o,s,i,n)||(Array.isArray(i)&&Array.isArray(o[s])?o[s]=[...i,...o[s]]:Ai(i)&&Ai(o[s])?o[s]=da(i,o[s],(n?`${n}.`:"")+s.toString(),r):o[s]=i))}return o}function Ai(e){if(e===null||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function El(e){return(...t)=>t.reduce((n,r)=>da(n,r,"",e),{})}const oi=El(),N0=El((e,t,n)=>{if(e[t]!==void 0&&typeof n=="function")return e[t]=n(e[t]),!0});function B0(e,t){try{return t in e}catch{return!1}}var H0=Object.defineProperty,U0=(e,t,n)=>t in e?H0(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Kn=(e,t,n)=>(U0(e,typeof t!="symbol"?t+"":t,n),n);class pa extends Error{constructor(t,n={}){super(t,n),Kn(this,"statusCode",500),Kn(this,"fatal",!1),Kn(this,"unhandled",!1),Kn(this,"statusMessage"),Kn(this,"data"),Kn(this,"cause"),n.cause&&!this.cause&&(this.cause=n.cause)}toJSON(){const t={message:this.message,statusCode:ga(this.statusCode,500)};return this.statusMessage&&(t.statusMessage=ip(this.statusMessage)),this.data!==void 0&&(t.data=this.data),t}}Kn(pa,"__h3_error__",!0);function ha(e){if(typeof e=="string")return new pa(e);if(z0(e))return e;const t=new pa(e.message??e.statusMessage??"",{cause:e.cause||e});if(B0(e,"stack"))try{Object.defineProperty(t,"stack",{get(){return e.stack}})}catch{try{t.stack=e.stack}catch{}}if(e.data&&(t.data=e.data),e.statusCode?t.statusCode=ga(e.statusCode,t.statusCode):e.status&&(t.statusCode=ga(e.status,t.statusCode)),e.statusMessage?t.statusMessage=e.statusMessage:e.statusText&&(t.statusMessage=e.statusText),t.statusMessage){const n=t.statusMessage;ip(t.statusMessage)!==n&&console.warn("[h3] Please prefer using `message` for longer error messages instead of `statusMessage`. In the future, `statusMessage` will be sanitized by default.")}return e.fatal!==void 0&&(t.fatal=e.fatal),e.unhandled!==void 0&&(t.unhandled=e.unhandled),t}function z0(e){var t;return((t=e==null?void 0:e.constructor)==null?void 0:t.__h3_error__)===!0}const V0=/[^\u0009\u0020-\u007E]/g;function ip(e=""){return e.replace(V0,"")}function ga(e,t=200){return!e||(typeof e=="string"&&(e=Number.parseInt(e,10)),e<100||e>999)?t:e}const ap=Symbol("layout-meta"),vr=Symbol("route"),si=()=>we(Ae().payload,"error"),kr=e=>{const t=ii(e);try{const n=Ae(),r=si();n.hooks.callHook("app:error",t),r.value=r.value||t}catch{throw t}return t},lp=async(e={})=>{const t=Ae(),n=si();t.callHook("app:error:cleared",e),e.redirect&&await nn().replace(e.redirect),n.value=null},W0=e=>!!(e&&typeof e=="object"&&"__nuxt_error"in e),ii=e=>{const t=ha(e);return t.__nuxt_error=!0,t},nn=()=>{var e;return(e=Ae())==null?void 0:e.$router},jn=()=>hd()?Te(vr,Ae()._route):Ae()._route;/*! @__NO_SIDE_EFFECTS__ */const q0=()=>{try{if(Ae()._processingMiddleware)return!0}catch{return!0}return!1},K0=(e,t)=>{e||(e="/");const n=typeof e=="string"?e:Dd(e.path||"/",e.query||{})+(e.hash||"");if(t!=null&&t.open){{const{target:a="_blank",windowFeatures:l={}}=t.open,c=Object.entries(l).filter(([u,f])=>f!==void 0).map(([u,f])=>`${u.toLowerCase()}=${f}`).join(", ");open(n,a,c)}return Promise.resolve()}const r=(t==null?void 0:t.external)||gr(n,{acceptRelative:!0});if(r){if(!(t!=null&&t.external))throw new Error("Navigating to an external URL is not allowed by default. Use `navigateTo(url, { external: true })`.");const a=zo(n).protocol;if(a&&Wv(a))throw new Error(`Cannot navigate to a URL with '${a}' protocol.`)}const o=q0();if(!r&&o)return e;const s=nn(),i=Ae();return r?(i._scope.stop(),t!=null&&t.replace?location.replace(n):location.href=n,o?i.isHydrating?new Promise(()=>{}):!1:Promise.resolve()):t!=null&&t.replace?s.replace(e):s.push(e)},G0={ui:{primary:"green",gray:"slate",footer:{bottom:{left:"text-sm text-gray-500 dark:text-gray-400",wrapper:"border-t border-gray-200 dark:border-gray-800"}},icons:{dark:"i-heroicons-moon",light:"i-heroicons-sun"}},header:{logo:{alt:"logo nuxt supabase module",light:"/logo-nuxt-supabase-light.png",dark:"/logo-nuxt-supabase-dark.png"},search:!0,colorMode:!0,links:[{icon:"i-simple-icons-x",to:"https://x.com/nuxt_js",target:"_blank","aria-label":"Nuxt on X"},{icon:"i-simple-icons-github",to:"https://github.com/nuxt-modules/supabase",target:"_blank","aria-label":"Module on GitHub"},{icon:"i-simple-icons-nuxtdotjs",to:"https://nuxt.com",target:"_blank","aria-label":"Nuxt official website"},{icon:"i-simple-icons-supabase",to:"https://supabase.com",target:"_blank","aria-label":"Supabase official website"}]},footer:{credits:"Made with Nuxt Studio",colorMode:!1,links:[{icon:"i-simple-icons-x",to:"https://x.com/nuxt_js",target:"_blank","aria-label":"Nuxt on X"},{icon:"i-simple-icons-github",to:"https://github.com/nuxt-modules/supabase",target:"_blank","aria-label":"Module on GitHub"},{icon:"i-simple-icons-nuxtdotjs",to:"https://nuxt.com",target:"_blank","aria-label":"Nuxt official website"},{icon:"i-simple-icons-supabase",to:"https://supabase.com",target:"_blank","aria-label":"Supabase official website"}]},toc:{title:"Table of Contents",bottom:{title:"Community",edit:"https://github.com/nuxt-modules/supabase/edit/main/docs/content",links:[{icon:"i-heroicons-star",label:"Star on GitHub",to:"https://github.com/nuxt-modules/supabase",target:"_blank"},{icon:"i-simple-icons-nuxtdotjs",label:"Nuxt docs",to:"https://nuxt.com",target:"_blank"},{icon:"i-simple-icons-supabase",label:"Supabase docs",to:"https://supabase.com",target:"_blank"}]}}},Q0={ui:{variables:{light:{background:"255 255 255",foreground:"var(--color-gray-700)"},dark:{background:"var(--color-gray-900)",foreground:"var(--color-gray-200)"},header:{height:"4rem"}},icons:{dark:"i-heroicons-moon-20-solid",light:"i-heroicons-sun-20-solid",search:"i-heroicons-magnifying-glass-20-solid",external:"i-heroicons-arrow-up-right-20-solid",chevron:"i-heroicons-chevron-down-20-solid",hash:"i-heroicons-hashtag-20-solid"},presets:{button:{primary:{color:"white",variant:"solid"},secondary:{color:"gray",variant:"ghost"},input:{color:"white",variant:"outline",ui:{font:"",color:{white:{outline:"ring-1 ring-inset ring-gray-300 dark:ring-gray-700 hover:ring-gray-300 dark:hover:ring-gray-700 hover:bg-gray-100/50 dark:hover:bg-gray-800/50 text-gray-400 dark:text-gray-500 hover:text-gray-700 dark:hover:text-gray-200 focus-visible:ring-2 focus-visible:ring-primary-500 dark:focus-visible-ring-primary-400"}}}}}}}},X0={nuxt:{buildId:"329cb327-e812-42bb-8e32-b09413458b56"},ui:{primary:"green",gray:"cool",colors:["red","orange","amber","yellow","lime","green","emerald","teal","cyan","sky","blue","indigo","violet","purple","fuchsia","pink","rose","primary"],strategy:"merge"}},He=N0(G0,Q0,X0);function at(){const e=Ae();return e._appConfig||(e._appConfig=Rt(He)),e._appConfig}const Y0=!1,ma=!1,J0=!1,Z0={componentName:"NuxtLink"},eb={deep:!0},tb={},nb="#__nuxt";let ws,cp;function rb(){var t;const e=(t=at().nuxt)==null?void 0:t.buildId;return ws=$fetch(bl(`builds/meta/${e}.json`)),ws.then(n=>{cp=F0(n.matcher)}),ws}function ai(){return ws||rb()}async function up(e){return await ai(),oi({},...cp.matchAll(e).reverse())}function pu(e,t={}){const n=ob(e,t),r=Ae(),o=r._payloadCache=r._payloadCache||{};return n in o||(o[n]=sb(e).then(s=>s?fp(n).then(i=>i||(delete o[n],null)):(o[n]=null,null))),o[n]}const hu="json";function ob(e,t={}){const n=new URL(e,"http://localhost");if(n.search)throw new Error("Payload URL cannot contain search params: "+e);if(n.host!=="localhost"||gr(n.pathname,{acceptRelative:!0}))throw new Error("Payload URL must not include hostname: "+e);const r=t.hash||(t.fresh?Date.now():"");return mr(Lt().app.baseURL,n.pathname,r?`_payload.${r}.${hu}`:`_payload.${hu}`)}async function fp(e){const t=fetch(e).then(n=>n.text().then(dp));try{return await t}catch(n){console.warn("[nuxt] Cannot load payload ",e,n)}return null}async function sb(e=jn().path){if((await ai()).prerendered.includes(e))return!0;const n=await up(e);return!!n.prerender&&!n.redirect}let ls=null;async function ib(){if(ls)return ls;const e=document.getElementById("__NUXT_DATA__");if(!e)return{};const t=dp(e.textContent||""),n=e.dataset.src?await fp(e.dataset.src):void 0;return ls={...t,...n,...window.__NUXT__},ls}function dp(e){return qy(e,Ae()._payloadRevivers)}function ab(e,t){Ae()._payloadRevivers[e]=t}const va={NuxtError:e=>ii(e),EmptyShallowRef:e=>lr(e==="_"?void 0:e==="0n"?BigInt(0):Po(e)),EmptyRef:e=>B(e==="_"?void 0:e==="0n"?BigInt(0):Po(e)),ShallowRef:e=>lr(e),ShallowReactive:e=>No(e),Ref:e=>B(e),Reactive:e=>Rt(e)};va.Island=({key:e,params:t})=>{const n=Ae();return n.isHydrating||(n.payload.data[e]=n.payload.data[e]||$fetch(`/__nuxt_island/${e}.json`,{responseType:"json",...t?{params:t}:{}}).then(r=>(n.payload.data[e]=r,r))),null};const lb=ot({name:"nuxt:revive-payload:client",order:-30,async setup(e){let t,n;for(const r in va)ab(r,va[r]);Object.assign(e.payload,([t,n]=So(()=>e.runWithContext(ib)),t=await t,n(),t)),window.__NUXT__=e.payload}}),cb=[],ub=ot({name:"nuxt:head",enforce:"pre",setup(e){const t=T0({plugins:cb});A0(()=>Ae().vueApp._context.provides.usehead),e.vueApp.use(t);{let n=!0;const r=async()=>{n=!1,await ep(t)};t.hooks.hook("dom:beforeRender",o=>{o.shouldRender=!n}),e.hooks.hook("page:start",()=>{n=!0}),e.hooks.hook("page:finish",()=>{e.isHydrating||r()}),e.hooks.hook("app:error",r),e.hooks.hook("app:suspense:resolve",r)}}});/*! * vue-router v4.2.5 * (c) 2023 Eduardo San Martin Morote * @license MIT - */const xr=typeof window<"u";function fb(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const Ie=Object.assign;function Oi(e,t){const n={};for(const r in t){const o=t[r];n[r]=Ut(o)?o.map(e):e(o)}return n}const ho=()=>{},Ut=Array.isArray,db=/\/$/,pb=e=>e.replace(db,"");function $i(e,t,n="/"){let r,o={},s="",i="";const a=t.indexOf("#");let l=t.indexOf("?");return a=0&&(l=-1),l>-1&&(r=t.slice(0,l),s=t.slice(l+1,a>-1?a:t.length),o=e(s)),a>-1&&(r=r||t.slice(0,a),i=t.slice(a,t.length)),r=vb(r??t,n),{fullPath:r+(s&&"?")+s+i,path:r,query:o,hash:i}}function hb(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function gu(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function gb(e,t,n){const r=t.matched.length-1,o=n.matched.length-1;return r>-1&&r===o&&Lr(t.matched[r],n.matched[o])&&pp(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Lr(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function pp(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!mb(e[n],t[n]))return!1;return!0}function mb(e,t){return Ut(e)?mu(e,t):Ut(t)?mu(t,e):e===t}function mu(e,t){return Ut(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function vb(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),o=r[r.length-1];(o===".."||o===".")&&r.push("");let s=n.length-1,i,a;for(i=0;i1&&s--;else break;return n.slice(0,s).join("/")+"/"+r.slice(i-(i===r.length?1:0)).join("/")}var To;(function(e){e.pop="pop",e.push="push"})(To||(To={}));var go;(function(e){e.back="back",e.forward="forward",e.unknown=""})(go||(go={}));function yb(e){if(!e)if(xr){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),pb(e)}const bb=/^[^#]+#/;function wb(e,t){return e.replace(bb,"#")+t}function _b(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const li=()=>({left:window.pageXOffset,top:window.pageYOffset});function xb(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),o=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=_b(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function vu(e,t){return(history.state?history.state.position-t:-1)+e}const ya=new Map;function kb(e,t){ya.set(e,t)}function Eb(e){const t=ya.get(e);return ya.delete(e),t}let Cb=()=>location.protocol+"//"+location.host;function hp(e,t){const{pathname:n,search:r,hash:o}=t,s=e.indexOf("#");if(s>-1){let a=o.includes(e.slice(s))?e.slice(s).length:1,l=o.slice(a);return l[0]!=="/"&&(l="/"+l),gu(l,"")}return gu(n,e)+r+o}function Pb(e,t,n,r){let o=[],s=[],i=null;const a=({state:d})=>{const p=hp(e,location),h=n.value,g=t.value;let y=0;if(d){if(n.value=p,t.value=d,i&&i===h){i=null;return}y=g?d.position-g.position:0}else r(p);o.forEach(x=>{x(n.value,h,{delta:y,type:To.pop,direction:y?y>0?go.forward:go.back:go.unknown})})};function l(){i=n.value}function c(d){o.push(d);const p=()=>{const h=o.indexOf(d);h>-1&&o.splice(h,1)};return s.push(p),p}function u(){const{history:d}=window;d.state&&d.replaceState(Ie({},d.state,{scroll:li()}),"")}function f(){for(const d of s)d();s=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",u,{passive:!0}),{pauseListeners:l,listen:c,destroy:f}}function yu(e,t,n,r=!1,o=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:o?li():null}}function Sb(e){const{history:t,location:n}=window,r={value:hp(e,n)},o={value:t.state};o.value||s(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function s(l,c,u){const f=e.indexOf("#"),d=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+l:Cb()+e+l;try{t[u?"replaceState":"pushState"](c,"",d),o.value=c}catch(p){console.error(p),n[u?"replace":"assign"](d)}}function i(l,c){const u=Ie({},t.state,yu(o.value.back,l,o.value.forward,!0),c,{position:o.value.position});s(l,u,!0),r.value=l}function a(l,c){const u=Ie({},o.value,t.state,{forward:l,scroll:li()});s(u.current,u,!0);const f=Ie({},yu(r.value,l,null),{position:u.position+1},c);s(l,f,!1),r.value=l}return{location:r,state:o,push:a,replace:i}}function gp(e){e=yb(e);const t=Sb(e),n=Pb(e,t.state,t.location,t.replace);function r(s,i=!0){i||n.pauseListeners(),history.go(s)}const o=Ie({location:"",base:e,go:r,createHref:wb.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}function Tb(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),gp(e)}function Ab(e){return typeof e=="string"||e&&typeof e=="object"}function mp(e){return typeof e=="string"||typeof e=="symbol"}const Gt={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},vp=Symbol("");var bu;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(bu||(bu={}));function Mr(e,t){return Ie(new Error,{type:e,[vp]:!0},t)}function rn(e,t){return e instanceof Error&&vp in e&&(t==null||!!(e.type&t))}const wu="[^/]+?",Ob={sensitive:!1,strict:!1,start:!0,end:!0},$b=/[.+*?^${}()[\]/\\]/g;function Ib(e,t){const n=Ie({},Ob,t),r=[];let o=n.start?"^":"";const s=[];for(const c of e){const u=c.length?[]:[90];n.strict&&!c.length&&(o+="/");for(let f=0;ft.length?t.length===1&&t[0]===40+40?1:-1:0}function Lb(e,t){let n=0;const r=e.score,o=t.score;for(;n0&&t[t.length-1]<0}const Mb={type:0,value:""},jb=/[a-zA-Z0-9_]/;function Db(e){if(!e)return[[]];if(e==="/")return[[Mb]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(p){throw new Error(`ERR (${n})/"${c}": ${p}`)}let n=0,r=n;const o=[];let s;function i(){s&&o.push(s),s=[]}let a=0,l,c="",u="";function f(){c&&(n===0?s.push({type:0,value:c}):n===1||n===2||n===3?(s.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),s.push({type:1,value:c,regexp:u,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),c="")}function d(){c+=l}for(;a{i(b)}:ho}function i(u){if(mp(u)){const f=r.get(u);f&&(r.delete(u),n.splice(n.indexOf(f),1),f.children.forEach(i),f.alias.forEach(i))}else{const f=n.indexOf(u);f>-1&&(n.splice(f,1),u.record.name&&r.delete(u.record.name),u.children.forEach(i),u.alias.forEach(i))}}function a(){return n}function l(u){let f=0;for(;f=0&&(u.record.path!==n[f].record.path||!yp(u,n[f]));)f++;n.splice(f,0,u),u.record.name&&!ku(u)&&r.set(u.record.name,u)}function c(u,f){let d,p={},h,g;if("name"in u&&u.name){if(d=r.get(u.name),!d)throw Mr(1,{location:u});g=d.record.name,p=Ie(xu(f.params,d.keys.filter(b=>!b.optional).map(b=>b.name)),u.params&&xu(u.params,d.keys.map(b=>b.name))),h=d.stringify(p)}else if("path"in u)h=u.path,d=n.find(b=>b.re.test(h)),d&&(p=d.parse(h),g=d.record.name);else{if(d=f.name?r.get(f.name):n.find(b=>b.re.test(f.path)),!d)throw Mr(1,{location:u,currentLocation:f});g=d.record.name,p=Ie({},f.params,u.params),h=d.stringify(p)}const y=[];let x=d;for(;x;)y.unshift(x.record),x=x.parent;return{name:g,path:h,params:p,matched:y,meta:Ub(y)}}return e.forEach(u=>s(u)),{addRoute:s,resolve:c,removeRoute:i,getRoutes:a,getRecordMatcher:o}}function xu(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function Bb(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:Hb(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function Hb(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function ku(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Ub(e){return e.reduce((t,n)=>Ie(t,n.meta),{})}function Eu(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function yp(e,t){return t.children.some(n=>n===e||yp(e,n))}const bp=/#/g,zb=/&/g,Vb=/\//g,Wb=/=/g,qb=/\?/g,wp=/\+/g,Kb=/%5B/g,Gb=/%5D/g,_p=/%5E/g,Qb=/%60/g,xp=/%7B/g,Xb=/%7C/g,kp=/%7D/g,Yb=/%20/g;function Cl(e){return encodeURI(""+e).replace(Xb,"|").replace(Kb,"[").replace(Gb,"]")}function Jb(e){return Cl(e).replace(xp,"{").replace(kp,"}").replace(_p,"^")}function ba(e){return Cl(e).replace(wp,"%2B").replace(Yb,"+").replace(bp,"%23").replace(zb,"%26").replace(Qb,"`").replace(xp,"{").replace(kp,"}").replace(_p,"^")}function Zb(e){return ba(e).replace(Wb,"%3D")}function ew(e){return Cl(e).replace(bp,"%23").replace(qb,"%3F")}function tw(e){return e==null?"":ew(e).replace(Vb,"%2F")}function Bs(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function nw(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let o=0;os&&ba(s)):[r&&ba(r)]).forEach(s=>{s!==void 0&&(t+=(t.length?"&":"")+n,s!=null&&(t+="="+s))})}return t}function rw(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=Ut(r)?r.map(o=>o==null?null:""+o):r==null?r:""+r)}return t}const ow=Symbol(""),Pu=Symbol(""),Pl=Symbol(""),Sl=Symbol(""),wa=Symbol("");function Qr(){let e=[];function t(r){return e.push(r),()=>{const o=e.indexOf(r);o>-1&&e.splice(o,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Sn(e,t,n,r,o){const s=r&&(r.enterCallbacks[o]=r.enterCallbacks[o]||[]);return()=>new Promise((i,a)=>{const l=f=>{f===!1?a(Mr(4,{from:n,to:t})):f instanceof Error?a(f):Ab(f)?a(Mr(2,{from:t,to:f})):(s&&r.enterCallbacks[o]===s&&typeof f=="function"&&s.push(f),i())},c=e.call(r&&r.instances[o],t,n,l);let u=Promise.resolve(c);e.length<3&&(u=u.then(l)),u.catch(f=>a(f))})}function Ii(e,t,n,r){const o=[];for(const s of e)for(const i in s.components){let a=s.components[i];if(!(t!=="beforeRouteEnter"&&!s.instances[i]))if(sw(a)){const c=(a.__vccOpts||a)[t];c&&o.push(Sn(c,n,r,s,i))}else{let l=a();o.push(()=>l.then(c=>{if(!c)return Promise.reject(new Error(`Couldn't resolve component "${i}" at "${s.path}"`));const u=fb(c)?c.default:c;s.components[i]=u;const d=(u.__vccOpts||u)[t];return d&&Sn(d,n,r,s,i)()}))}}return o}function sw(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Su(e){const t=Te(Pl),n=Te(Sl),r=j(()=>t.resolve(E(e.to))),o=j(()=>{const{matched:l}=r.value,{length:c}=l,u=l[c-1],f=n.matched;if(!u||!f.length)return-1;const d=f.findIndex(Lr.bind(null,u));if(d>-1)return d;const p=Tu(l[c-2]);return c>1&&Tu(u)===p&&f[f.length-1].path!==p?f.findIndex(Lr.bind(null,l[c-2])):d}),s=j(()=>o.value>-1&&cw(n.params,r.value.params)),i=j(()=>o.value>-1&&o.value===n.matched.length-1&&pp(n.params,r.value.params));function a(l={}){return lw(l)?t[E(e.replace)?"replace":"push"](E(e.to)).catch(ho):Promise.resolve()}return{route:r,href:j(()=>r.value.href),isActive:s,isExactActive:i,navigate:a}}const iw=ne({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Su,setup(e,{slots:t}){const n=Rt(Su(e)),{options:r}=Te(Pl),o=j(()=>({[Au(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[Au(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const s=t.default&&t.default(n);return e.custom?s:me("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},s)}}}),aw=iw;function lw(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function cw(e,t){for(const n in t){const r=t[n],o=e[n];if(typeof r=="string"){if(r!==o)return!1}else if(!Ut(o)||o.length!==r.length||r.some((s,i)=>s!==o[i]))return!1}return!0}function Tu(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Au=(e,t,n)=>e??t??n,uw=ne({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=Te(wa),o=j(()=>e.route||r.value),s=Te(Pu,0),i=j(()=>{let c=E(s);const{matched:u}=o.value;let f;for(;(f=u[c])&&!f.components;)c++;return c}),a=j(()=>o.value.matched[i.value]);Ve(Pu,j(()=>i.value+1)),Ve(ow,a),Ve(wa,o);const l=B();return ze(()=>[l.value,a.value,e.name],([c,u,f],[d,p,h])=>{u&&(u.instances[f]=c,p&&p!==u&&c&&c===d&&(u.leaveGuards.size||(u.leaveGuards=p.leaveGuards),u.updateGuards.size||(u.updateGuards=p.updateGuards))),c&&u&&(!p||!Lr(u,p)||!d)&&(u.enterCallbacks[f]||[]).forEach(g=>g(c))},{flush:"post"}),()=>{const c=o.value,u=e.name,f=a.value,d=f&&f.components[u];if(!d)return Ou(n.default,{Component:d,route:c});const p=f.props[u],h=p?p===!0?c.params:typeof p=="function"?p(c):p:null,y=me(d,Ie({},h,t,{onVnodeUnmounted:x=>{x.component.isUnmounted&&(f.instances[u]=null)},ref:l}));return Ou(n.default,{Component:y,route:c})||y}}});function Ou(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const Ep=uw;function fw(e){const t=Nb(e.routes,e),n=e.parseQuery||nw,r=e.stringifyQuery||Cu,o=e.history,s=Qr(),i=Qr(),a=Qr(),l=lr(Gt);let c=Gt;xr&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=Oi.bind(null,$=>""+$),f=Oi.bind(null,tw),d=Oi.bind(null,Bs);function p($,X){let K,re;return mp($)?(K=t.getRecordMatcher($),re=X):re=$,t.addRoute(re,K)}function h($){const X=t.getRecordMatcher($);X&&t.removeRoute(X)}function g(){return t.getRoutes().map($=>$.record)}function y($){return!!t.getRecordMatcher($)}function x($,X){if(X=Ie({},X||l.value),typeof $=="string"){const P=$i(n,$,X.path),O=t.resolve({path:P.path},X),L=o.createHref(P.fullPath);return Ie(P,O,{params:d(O.params),hash:Bs(P.hash),redirectedFrom:void 0,href:L})}let K;if("path"in $)K=Ie({},$,{path:$i(n,$.path,X.path).path});else{const P=Ie({},$.params);for(const O in P)P[O]==null&&delete P[O];K=Ie({},$,{params:f(P)}),X.params=f(X.params)}const re=t.resolve(K,X),Ce=$.hash||"";re.params=u(d(re.params));const w=hb(r,Ie({},$,{hash:Jb(Ce),path:re.path})),k=o.createHref(w);return Ie({fullPath:w,hash:Ce,query:r===Cu?rw($.query):$.query||{}},re,{redirectedFrom:void 0,href:k})}function b($){return typeof $=="string"?$i(n,$,l.value.path):Ie({},$)}function v($,X){if(c!==$)return Mr(8,{from:X,to:$})}function m($){return S($)}function _($){return m(Ie(b($),{replace:!0}))}function C($){const X=$.matched[$.matched.length-1];if(X&&X.redirect){const{redirect:K}=X;let re=typeof K=="function"?K($):K;return typeof re=="string"&&(re=re.includes("?")||re.includes("#")?re=b(re):{path:re},re.params={}),Ie({query:$.query,hash:$.hash,params:"path"in re?{}:$.params},re)}}function S($,X){const K=c=x($),re=l.value,Ce=$.state,w=$.force,k=$.replace===!0,P=C(K);if(P)return S(Ie(b(P),{state:typeof P=="object"?Ie({},Ce,P.state):Ce,force:w,replace:k}),X||K);const O=K;O.redirectedFrom=X;let L;return!w&&gb(r,re,K)&&(L=Mr(16,{to:O,from:re}),Fe(re,re,!0,!1)),(L?Promise.resolve(L):I(O,re)).catch(D=>rn(D)?rn(D,2)?D:Re(D):W(D,O,re)).then(D=>{if(D){if(rn(D,2))return S(Ie({replace:k},b(D.to),{state:typeof D.to=="object"?Ie({},Ce,D.to.state):Ce,force:w}),X||O)}else D=A(O,re,!0,k,Ce);return q(O,re,D),D})}function T($,X){const K=v($,X);return K?Promise.reject(K):Promise.resolve()}function M($){const X=lt.values().next().value;return X&&typeof X.runWithContext=="function"?X.runWithContext($):$()}function I($,X){let K;const[re,Ce,w]=dw($,X);K=Ii(re.reverse(),"beforeRouteLeave",$,X);for(const P of re)P.leaveGuards.forEach(O=>{K.push(Sn(O,$,X))});const k=T.bind(null,$,X);return K.push(k),We(K).then(()=>{K=[];for(const P of s.list())K.push(Sn(P,$,X));return K.push(k),We(K)}).then(()=>{K=Ii(Ce,"beforeRouteUpdate",$,X);for(const P of Ce)P.updateGuards.forEach(O=>{K.push(Sn(O,$,X))});return K.push(k),We(K)}).then(()=>{K=[];for(const P of w)if(P.beforeEnter)if(Ut(P.beforeEnter))for(const O of P.beforeEnter)K.push(Sn(O,$,X));else K.push(Sn(P.beforeEnter,$,X));return K.push(k),We(K)}).then(()=>($.matched.forEach(P=>P.enterCallbacks={}),K=Ii(w,"beforeRouteEnter",$,X),K.push(k),We(K))).then(()=>{K=[];for(const P of i.list())K.push(Sn(P,$,X));return K.push(k),We(K)}).catch(P=>rn(P,8)?P:Promise.reject(P))}function q($,X,K){a.list().forEach(re=>M(()=>re($,X,K)))}function A($,X,K,re,Ce){const w=v($,X);if(w)return w;const k=X===Gt,P=xr?history.state:{};K&&(re||k?o.replace($.fullPath,Ie({scroll:k&&P&&P.scroll},Ce)):o.push($.fullPath,Ce)),l.value=$,Fe($,X,K,k),Re()}let N;function he(){N||(N=o.listen(($,X,K)=>{if(!wt.listening)return;const re=x($),Ce=C(re);if(Ce){S(Ie(Ce,{replace:!0}),re).catch(ho);return}c=re;const w=l.value;xr&&kb(vu(w.fullPath,K.delta),li()),I(re,w).catch(k=>rn(k,12)?k:rn(k,2)?(S(k.to,re).then(P=>{rn(P,20)&&!K.delta&&K.type===To.pop&&o.go(-1,!1)}).catch(ho),Promise.reject()):(K.delta&&o.go(-K.delta,!1),W(k,re,w))).then(k=>{k=k||A(re,w,!1),k&&(K.delta&&!rn(k,8)?o.go(-K.delta,!1):K.type===To.pop&&rn(k,20)&&o.go(-1,!1)),q(re,w,k)}).catch(ho)}))}let fe=Qr(),U=Qr(),V;function W($,X,K){Re($);const re=U.list();return re.length?re.forEach(Ce=>Ce($,X,K)):console.error($),Promise.reject($)}function _e(){return V&&l.value!==Gt?Promise.resolve():new Promise(($,X)=>{fe.add([$,X])})}function Re($){return V||(V=!$,he(),fe.list().forEach(([X,K])=>$?K($):X()),fe.reset()),$}function Fe($,X,K,re){const{scrollBehavior:Ce}=e;if(!xr||!Ce)return Promise.resolve();const w=!K&&Eb(vu($.fullPath,0))||(re||!K)&&history.state&&history.state.scroll||null;return hn().then(()=>Ce($,X,w)).then(k=>k&&xb(k)).catch(k=>W(k,$,X))}const Ee=$=>o.go($);let Me;const lt=new Set,wt={currentRoute:l,listening:!0,addRoute:p,removeRoute:h,hasRoute:y,getRoutes:g,resolve:x,options:e,push:m,replace:_,go:Ee,back:()=>Ee(-1),forward:()=>Ee(1),beforeEach:s.add,beforeResolve:i.add,afterEach:a.add,onError:U.add,isReady:_e,install($){const X=this;$.component("RouterLink",aw),$.component("RouterView",Ep),$.config.globalProperties.$router=X,Object.defineProperty($.config.globalProperties,"$route",{enumerable:!0,get:()=>E(l)}),xr&&!Me&&l.value===Gt&&(Me=!0,m(o.location).catch(Ce=>{}));const K={};for(const Ce in Gt)Object.defineProperty(K,Ce,{get:()=>l.value[Ce],enumerable:!0});$.provide(Pl,X),$.provide(Sl,No(K)),$.provide(wa,l);const re=$.unmount;lt.add($),$.unmount=function(){lt.delete($),lt.size<1&&(c=Gt,N&&N(),N=null,l.value=Gt,Me=!1,V=!1),re()}}};function We($){return $.reduce((X,K)=>X.then(()=>M(K)),Promise.resolve())}return wt}function dw(e,t){const n=[],r=[],o=[],s=Math.max(t.matched.length,e.matched.length);for(let i=0;iLr(c,a))?r.push(a):n.push(a));const l=e.matched[i];l&&(t.matched.find(c=>Lr(c,l))||o.push(l))}return[n,r,o]}function pw(){return Te(Sl)}const xt={layout:"docs"},$u=[{name:(xt==null?void 0:xt.name)??"slug",path:(xt==null?void 0:xt.path)??"/:slug(.*)*",meta:xt||{},alias:(xt==null?void 0:xt.alias)||[],redirect:(xt==null?void 0:xt.redirect)||void 0,component:()=>Q(()=>import("./_...slug_.cfdc5a31.js"),["./_...slug_.cfdc5a31.js","./ContentRenderer.404d2a66.js","./ContentRendererMarkdown.vue.703eebc0.js","./MDCRenderer.84953d36.js"],import.meta.url).then(e=>e.default||e)},{name:"index",path:"/",meta:{},alias:[],redirect:void 0,component:()=>Q(()=>import("./index.7fba0786.js"),["./index.7fba0786.js","./MDCRenderer.84953d36.js","./_commonjsHelpers.725317a4.js","./node.f7b4ab96.js","./Card.a6294156.js","./index.5d580178.css"],import.meta.url).then(e=>e.default||e)}];function Iu(e){const t=document.querySelector(e);if(t){const n=parseFloat(getComputedStyle(t).scrollMarginTop);return{el:e,behavior:"smooth",top:n}}}const hw={scrollBehavior(e,t,n){const r=Ae();if(!history.state.stop)return history.state.smooth?{el:history.state.smooth,behavior:"smooth"}:n?new Promise(o=>{r.hooks.hookOnce("page:finish",()=>{setTimeout(()=>o(n),50)})}):e.hash?new Promise(o=>{e.path===t.path?setTimeout(()=>o(Iu(e.hash)),50):r.hooks.hookOnce("page:finish",()=>{setTimeout(()=>o(Iu(e.hash)),50)})}):{top:0}}},Cp=(e,t,n)=>(t=t===!0?{}:t,{default:()=>{var r;return t?me(e,t,n):(r=n.default)==null?void 0:r.call(n)}});function Ru(e){const t=(e==null?void 0:e.meta.key)??e.path.replace(/(:\w+)\([^)]+\)/g,"$1").replace(/(:\w+)[?+*]/g,"$1").replace(/:\w+/g,n=>{var r;return((r=e.params[n.slice(1)])==null?void 0:r.toString())||""});return typeof t=="function"?t(e):t}function gw(e,t){return e===t?!1:Ru(e)!==Ru(t)?!0:!e.matched.every((r,o)=>{var s,i;return r.components&&r.components.default===((i=(s=t.matched[o])==null?void 0:s.components)==null?void 0:i.default)})}const mw={scrollBehavior(e,t,n){var c;const r=Ae(),o=((c=nn().options)==null?void 0:c.scrollBehaviorType)??"auto";let s=n||void 0;const i=typeof e.meta.scrollToTop=="function"?e.meta.scrollToTop(e,t):e.meta.scrollToTop;if(!s&&t&&e&&i!==!1&&gw(e,t)&&(s={left:0,top:0}),e.path===t.path){if(t.hash&&!e.hash)return{left:0,top:0};if(e.hash)return{el:e.hash,top:Lu(e.hash),behavior:o}}const a=u=>!!(u.meta.pageTransition??ma),l=a(t)&&a(e)?"page:transition:finish":"page:finish";return new Promise(u=>{r.hooks.hookOnce(l,async()=>{await hn(),e.hash&&(s={el:e.hash,top:Lu(e.hash),behavior:o}),u(s)})})}};function Lu(e){try{const t=document.querySelector(e);if(t)return parseFloat(getComputedStyle(t).scrollMarginTop)}catch{}return 0}const vw={hashMode:!1,scrollBehaviorType:"auto"},ht={...vw,...mw,...hw},yw=async e=>{var l;let t,n;if(!((l=e.meta)!=null&&l.validate))return;const r=Ae(),o=nn();if(([t,n]=So(()=>Promise.resolve(e.meta.validate(e))),t=await t,n(),t)===!0)return;const i=ii({statusCode:404,statusMessage:`Page Not Found: ${e.fullPath}`}),a=o.beforeResolve(c=>{if(a(),c===e){const u=o.afterEach(async()=>{u(),await r.runWithContext(()=>kr(i)),window.history.pushState({},"",e.fullPath)});return!1}})},bw=async e=>{let t,n;const r=([t,n]=So(()=>up(e.path)),t=await t,n(),t);if(r.redirect)return r.redirect},ww=[yw,bw],mo={};function _w(e,t,n){const{pathname:r,search:o,hash:s}=t,i=e.indexOf("#");if(i>-1){const c=s.includes(e.slice(i))?e.slice(i).length:1;let u=s.slice(c);return u[0]!=="/"&&(u="/"+u),Zc(u,"")}const a=Zc(r,e),l=!n||Jv(a,n,{trailingSlash:!0})?a:n;return l+(l.includes("?")?"":o)+s}const xw=ot({name:"nuxt:router",enforce:"pre",async setup(e){var g,y;let t,n,r=Lt().app.baseURL;ht.hashMode&&!r.includes("#")&&(r+="#");const o=((g=ht.history)==null?void 0:g.call(ht,r))??(ht.hashMode?Tb(r):gp(r)),s=((y=ht.routes)==null?void 0:y.call(ht,$u))??$u;let i;const a=_w(r,window.location,e.payload.path),l=fw({...ht,scrollBehavior:(x,b,v)=>{var m;if(b===Gt){i=v;return}return l.options.scrollBehavior=ht.scrollBehavior,(m=ht.scrollBehavior)==null?void 0:m.call(ht,x,Gt,i||v)},history:o,routes:s});e.vueApp.use(l);const c=lr(l.currentRoute.value);l.afterEach((x,b)=>{c.value=b}),Object.defineProperty(e.vueApp.config.globalProperties,"previousRoute",{get:()=>c.value});const u=lr(l.resolve(a)),f=()=>{u.value=l.currentRoute.value};e.hook("page:finish",f),l.afterEach((x,b)=>{var v,m,_,C;((m=(v=x.matched[0])==null?void 0:v.components)==null?void 0:m.default)===((C=(_=b.matched[0])==null?void 0:_.components)==null?void 0:C.default)&&f()});const d={};for(const x in u.value)Object.defineProperty(d,x,{get:()=>u.value[x]});e._route=No(d),e._middleware=e._middleware||{global:[],named:{}};const p=si();try{[t,n]=So(()=>l.isReady()),await t,n()}catch(x){[t,n]=So(()=>e.runWithContext(()=>kr(x))),await t,n()}const h=e.payload.state._layout;return l.beforeEach(async(x,b)=>{var v;x.meta=Rt(x.meta),e.isHydrating&&h&&!ar(x.meta.layout)&&(x.meta.layout=h),e._processingMiddleware=!0;{const m=new Set([...ww,...e._middleware.global]);for(const _ of x.matched){const C=_.meta.middleware;if(C)if(Array.isArray(C))for(const S of C)m.add(S);else m.add(C)}for(const _ of m){const C=typeof _=="string"?e._middleware.named[_]||await((v=mo[_])==null?void 0:v.call(mo).then(T=>T.default||T)):_;if(!C)throw new Error(`Unknown route middleware: '${_}'.`);const S=await e.runWithContext(()=>C(x,b));if(!e.payload.serverRendered&&e.isHydrating&&(S===!1||S instanceof Error)){const T=S||ha({statusCode:404,statusMessage:`Page Not Found: ${a}`});return await e.runWithContext(()=>kr(T)),!1}if(S!==!0&&(S||S===!1))return S}}}),l.onError(()=>{delete e._processingMiddleware}),l.afterEach(async(x,b,v)=>{delete e._processingMiddleware,!e.isHydrating&&p.value&&await e.runWithContext(lp),x.matched.length===0&&await e.runWithContext(()=>kr(ha({statusCode:404,fatal:!1,statusMessage:`Page not found: ${x.fullPath}`})))}),e.hooks.hookOnce("app:created",async()=>{try{await l.replace({...l.resolve(a),name:void 0,force:!0}),l.options.scrollBehavior=ht.scrollBehavior}catch(x){await e.runWithContext(()=>kr(x))}}),{provide:{router:l}}}}),kw="$s";function yr(...e){const t=typeof e[e.length-1]=="string"?e.pop():void 0;typeof e[0]!="string"&&e.unshift(t);const[n,r]=e;if(!n||typeof n!="string")throw new TypeError("[nuxt] [useState] key must be a string: "+n);if(r!==void 0&&typeof r!="function")throw new Error("[nuxt] [useState] init must be a function: "+r);const o=kw+n,s=Ae(),i=we(s.payload.state,o);if(i.value===void 0&&r){const a=r();if(Xe(a))return s.payload.state[o]=a,a;i.value=a}return i}function Ew(e){const t=(e==null?void 0:e.debug)||!1,n=[];function r(s){var a;if(!s||typeof s!="object"||Object.keys(s).length===0)return;if(!s._context&&t){let l=(a=new Error("tmp").stack)==null?void 0:a.split(` -`)[2].split(" ")[5];l!=null&&l.includes("/")&&(l="anonymous"),s._context=l}const i={};for(const l in s){const c=s[l];typeof c<"u"&&c!==""&&(i[l]=c)}Object.keys(i).filter(l=>!l.startsWith("_")).length>0&&n.push(i)}function o(s){var a;const i={};s!=null&&s.debug&&(i._context={});for(const l in n.sort((c,u)=>(c._priority||0)-(u._priority||0)))for(const c in n[l]){const u=c,f=n[l][c];c.startsWith("_")||(i[c]=f,s!=null&&s.debug&&(i._context[u]=((a=n[l]._context)==null?void 0:a[u])||n[l]._context||"anonymous"))}return Cw(i)}return{stack:n,push:r,get:o}}function Cw(e){typeof e.indexable<"u"&&(e.indexable=String(e.indexable)!=="false"),typeof e.trailingSlash<"u"&&(e.trailingSlash=String(e.trailingSlash)!=="false"),e.url&&!gr(e.url,{acceptRelative:!0,strict:!1})&&(e.url=Xv(e.url));const t=Object.keys(e).sort((r,o)=>r.localeCompare(o)),n={};for(const r of t)n[r]=e[r];return n}const Pw=ot({name:"nuxt-site-config",enforce:"pre",async setup(e){const t=Lt()["nuxt-site-config"]||{debug:!1};let n;const r=yr("site-config");return n||(n=Ew({debug:t.debug})),n.push({_context:"window",url:window.location.origin}),Ae().payload.serverRendered?n.push(r.value):typeof window.__NUXT_SITE_CONFIG__<"u"&&n.push(window.__NUXT_SITE_CONFIG__),{provide:{nuxtSiteConfig:n}}}}),_a=globalThis.requestIdleCallback||(e=>{const t=Date.now(),n={didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-t))};return setTimeout(()=>{e(n)},1)}),Sw=globalThis.cancelIdleCallback||(e=>{clearTimeout(e)}),Tl=e=>{const t=Ae();t.isHydrating?t.hooks.hookOnce("app:suspense:resolve",()=>{_a(e)}):_a(e)},Tw=ot({name:"nuxt:payload",setup(e){nn().beforeResolve(async(t,n)=>{if(t.path===n.path)return;const r=await pu(t.path);r&&Object.assign(e.static.data,r.data)}),Tl(()=>{var t;e.hooks.hook("link:prefetch",async n=>{zo(n).protocol||await pu(n)}),((t=navigator.connection)==null?void 0:t.effectiveType)!=="slow-2g"&&setTimeout(ai,1e3)})}}),Aw=Z(()=>Q(()=>import("./Releases.d5862482.js"),["./Releases.d5862482.js","./ProseH2.vue.0efd9217.js","./ContentRenderer.404d2a66.js","./ContentRendererMarkdown.vue.703eebc0.js","./MDCRenderer.84953d36.js","./useGithub.eb11860f.js"],import.meta.url).then(e=>e.default)),Ow=Z(()=>Q(()=>import("./VoltaBoard.434441cf.js"),[],import.meta.url).then(e=>e.default)),$w=Z(()=>Q(()=>import("./Callout.8f8ee156.js"),["./Callout.8f8ee156.js","./slot.68f639bf.js","./node.f7b4ab96.js"],import.meta.url).then(e=>e.default)),Iw=Z(()=>Q(()=>import("./Card.a10986e6.js"),["./Card.a10986e6.js","./Card.a6294156.js","./slot.68f639bf.js","./node.f7b4ab96.js"],import.meta.url).then(e=>e.default)),Rw=Z(()=>Q(()=>import("./CardGroup.e0a1ecca.js"),[],import.meta.url).then(e=>e.default)),Lw=Z(()=>Q(()=>import("./CodeGroup.4475af6b.js"),["./CodeGroup.4475af6b.js","./ProseCodeIcon.vue.ffb3ef12.js"],import.meta.url).then(e=>e.default)),Mw=Z(()=>Q(()=>import("./Collapsible.e83ea7ff.js"),["./Collapsible.e83ea7ff.js","./slot.68f639bf.js","./node.f7b4ab96.js"],import.meta.url).then(e=>e.default)),jw=Z(()=>Q(()=>import("./Field.7af909af.js"),[],import.meta.url).then(e=>e.default)),Dw=Z(()=>Q(()=>import("./FieldGroup.fc071874.js"),[],import.meta.url).then(e=>e.default)),Fw=Z(()=>Q(()=>import("./Shortcut.bc590fd3.js"),[],import.meta.url).then(e=>e.default)),Nw=Z(()=>Q(()=>import("./Tabs.53377085.js"),[],import.meta.url).then(e=>e.default)),Bw=Z(()=>Q(()=>import("./ProseCode.ca61194c.js"),["./ProseCode.ca61194c.js","./ProseCode.vue.b02f0b0f.js","./ProseCodeIcon.vue.ffb3ef12.js","./ProseCodeButton.vue.ec8552ad.js","./ProseCode.e63e49c6.css"],import.meta.url).then(e=>e.default)),Hw=Z(()=>Q(()=>import("./ProseCodeButton.f1caafd9.js"),["./ProseCodeButton.f1caafd9.js","./ProseCodeButton.vue.ec8552ad.js"],import.meta.url).then(e=>e.default)),Uw=Z(()=>Q(()=>import("./ProseCodeIcon.40cbc64e.js"),["./ProseCodeIcon.40cbc64e.js","./ProseCodeIcon.vue.ffb3ef12.js"],import.meta.url).then(e=>e.default)),zw=Z(()=>Q(()=>import("./ProseH1.1c331cdb.js"),[],import.meta.url).then(e=>e.default)),Vw=Z(()=>Q(()=>import("./ProseH2.e82063a5.js"),["./ProseH2.e82063a5.js","./ProseH2.vue.0efd9217.js"],import.meta.url).then(e=>e.default)),Ww=Z(()=>Q(()=>import("./ProseH3.edf516ad.js"),[],import.meta.url).then(e=>e.default)),qw=Z(()=>Q(()=>import("./ProseH4.fcc970d3.js"),[],import.meta.url).then(e=>e.default)),Kw=Z(()=>Q(()=>import("./ContentDoc.c766ccb9.js"),["./ContentDoc.c766ccb9.js","./ContentRenderer.404d2a66.js","./ContentRendererMarkdown.vue.703eebc0.js","./MDCRenderer.84953d36.js","./ContentQuery.499a6888.js"],import.meta.url).then(e=>e.default)),Gw=Z(()=>Q(()=>import("./ContentList.c8f4c1af.js"),["./ContentList.c8f4c1af.js","./ContentQuery.499a6888.js"],import.meta.url).then(e=>e.default)),Qw=Z(()=>Q(()=>import("./ContentNavigation.8f24d29a.js"),[],import.meta.url).then(e=>e.default)),Xw=Z(()=>Q(()=>import("./ContentQuery.499a6888.js"),[],import.meta.url).then(e=>e.default)),Yw=Z(()=>Q(()=>import("./ContentRenderer.404d2a66.js"),["./ContentRenderer.404d2a66.js","./ContentRendererMarkdown.vue.703eebc0.js","./MDCRenderer.84953d36.js"],import.meta.url).then(e=>e.default)),Jw=Z(()=>Q(()=>import("./ContentRendererMarkdown.281ccbbc.js"),["./ContentRendererMarkdown.281ccbbc.js","./ContentRendererMarkdown.vue.703eebc0.js","./MDCRenderer.84953d36.js"],import.meta.url).then(e=>e.default)),Zw=Z(()=>Q(()=>import("./ContentSlot.1f1f3c23.js"),["./ContentSlot.1f1f3c23.js","./node.f7b4ab96.js"],import.meta.url).then(e=>e.default)),e_=Z(()=>Q(()=>import("./DocumentDrivenEmpty.ae0269d3.js"),[],import.meta.url).then(e=>e.default)),t_=Z(()=>Q(()=>import("./DocumentDrivenNotFound.1a87674d.js"),[],import.meta.url).then(e=>e.default)),n_=Z(()=>Q(()=>import("./Markdown.9bba4ad0.js"),["./Markdown.9bba4ad0.js","./ContentSlot.1f1f3c23.js","./node.f7b4ab96.js"],import.meta.url).then(e=>e.default)),r_=Z(()=>Q(()=>import("./ProseCodeInline.49f201ec.js"),[],import.meta.url).then(e=>e.default)),o_=Z(()=>Q(()=>import("./ProsePre.cdf20fd4.js"),["./ProsePre.cdf20fd4.js","./ProseCode.vue.b02f0b0f.js","./ProseCodeIcon.vue.ffb3ef12.js","./ProseCodeButton.vue.ec8552ad.js","./ProseCode.e63e49c6.css"],import.meta.url).then(e=>e.default)),s_=Z(()=>Q(()=>import("./ProseA.43fb90fc.js"),[],import.meta.url).then(e=>e.default)),i_=Z(()=>Q(()=>import("./ProseBlockquote.e08dcb78.js"),[],import.meta.url).then(e=>e.default)),a_=Z(()=>Q(()=>import("./ProseEm.c5098f33.js"),[],import.meta.url).then(e=>e.default)),l_=Z(()=>Q(()=>import("./ProseH5.281ef778.js"),[],import.meta.url).then(e=>e.default)),c_=Z(()=>Q(()=>import("./ProseH6.7167fed8.js"),[],import.meta.url).then(e=>e.default)),u_=Z(()=>Q(()=>import("./ProseHr.ea054e84.js"),[],import.meta.url).then(e=>e.default)),f_=Z(()=>Q(()=>import("./ProseImg.a7db9461.js"),[],import.meta.url).then(e=>e.default)),d_=Z(()=>Q(()=>import("./ProseLi.c33ec5bc.js"),[],import.meta.url).then(e=>e.default)),p_=Z(()=>Q(()=>import("./ProseOl.94f0a7ea.js"),[],import.meta.url).then(e=>e.default)),h_=Z(()=>Q(()=>import("./ProseP.b1e35a2e.js"),[],import.meta.url).then(e=>e.default)),g_=Z(()=>Q(()=>import("./ProseScript.6f2ab91b.js"),[],import.meta.url).then(e=>e.default)),m_=Z(()=>Q(()=>import("./ProseStrong.3a32b838.js"),[],import.meta.url).then(e=>e.default)),v_=Z(()=>Q(()=>import("./ProseTable.84b7eb95.js"),[],import.meta.url).then(e=>e.default)),y_=Z(()=>Q(()=>import("./ProseTbody.d1ef0eb7.js"),[],import.meta.url).then(e=>e.default)),b_=Z(()=>Q(()=>import("./ProseTd.243dd7e5.js"),[],import.meta.url).then(e=>e.default)),w_=Z(()=>Q(()=>import("./ProseTh.f2f16b4d.js"),[],import.meta.url).then(e=>e.default)),__=Z(()=>Q(()=>import("./ProseThead.68632ec8.js"),[],import.meta.url).then(e=>e.default)),x_=Z(()=>Q(()=>import("./ProseTr.cca10edc.js"),[],import.meta.url).then(e=>e.default)),k_=Z(()=>Q(()=>import("./ProseUl.5c2040c7.js"),[],import.meta.url).then(e=>e.default)),E_=Z(()=>Q(()=>Promise.resolve().then(()=>jk),void 0,import.meta.url).then(e=>e.default)),C_=Z(()=>Q(()=>import("./IconCSS.c0eec719.js"),["./IconCSS.c0eec719.js","./IconCSS.65e107b2.css"],import.meta.url).then(e=>e.default)),P_=Z(()=>Q(()=>import("./Static.b18b3ef7.js"),[],import.meta.url).then(e=>e.default)),S_=Z(()=>Q(()=>import("./Dynamic.5a3e2755.js"),[],import.meta.url).then(e=>e.default)),T_=Z(()=>Q(()=>import("./index.25b95eab.js"),[],import.meta.url).then(e=>e.default)),A_=Z(()=>Q(()=>import("./Cached.55e8291f.js"),[],import.meta.url).then(e=>e.default)),O_=Z(()=>Q(()=>import("./WithoutCache.0a5bf573.js"),[],import.meta.url).then(e=>e.default)),$_=Z(()=>Q(()=>import("./Screenshot.705c5245.js"),[],import.meta.url).then(e=>e.default)),I_=Z(()=>Q(()=>import("./GithubRepository.894b13e8.js"),["./GithubRepository.894b13e8.js","./useGithub.eb11860f.js"],import.meta.url).then(e=>e.default)),R_=Z(()=>Q(()=>import("./GithubLink.e7026b0f.js"),[],import.meta.url).then(e=>e.default)),L_=Z(()=>Q(()=>import("./GithubReadme.b4204bde.js"),["./GithubReadme.b4204bde.js","./useGithub.eb11860f.js"],import.meta.url).then(e=>e.default)),M_=Z(()=>Q(()=>import("./GithubReleases.c555d27b.js"),["./GithubReleases.c555d27b.js","./useGithub.eb11860f.js"],import.meta.url).then(e=>e.default)),j_=Z(()=>Q(()=>import("./GithubLastRelease.dfb7e73f.js"),["./GithubLastRelease.dfb7e73f.js","./useGithub.eb11860f.js"],import.meta.url).then(e=>e.default)),D_=Z(()=>Q(()=>import("./GithubRelease.b9e3718c.js"),["./GithubRelease.b9e3718c.js","./useGithub.eb11860f.js"],import.meta.url).then(e=>e.default)),F_=Z(()=>Q(()=>import("./GithubContributors.439db7f1.js"),["./GithubContributors.439db7f1.js","./useGithub.eb11860f.js"],import.meta.url).then(e=>e.default)),N_=Z(()=>Q(()=>import("./GithubFileContributors.5ee57836.js"),["./GithubFileContributors.5ee57836.js","./useGithub.eb11860f.js"],import.meta.url).then(e=>e.default)),B_=Z(()=>Q(()=>import("./GithubCommits.9feac534.js"),["./GithubCommits.9feac534.js","./useGithub.eb11860f.js"],import.meta.url).then(e=>e.default)),H_=[["Releases",Aw],["VoltaBoard",Ow],["Callout",$w],["Card",Iw],["CardGroup",Rw],["CodeGroup",Lw],["Collapsible",Mw],["Field",jw],["FieldGroup",Dw],["Shortcut",Fw],["Tabs",Nw],["ProseCode",Bw],["ProseCodeButton",Hw],["ProseCodeIcon",Uw],["ProseH1",zw],["ProseH2",Vw],["ProseH3",Ww],["ProseH4",qw],["ContentDoc",Kw],["ContentList",Gw],["ContentNavigation",Qw],["ContentQuery",Xw],["ContentRenderer",Yw],["ContentRendererMarkdown",Jw],["MDCSlot",Zw],["DocumentDrivenEmpty",e_],["DocumentDrivenNotFound",t_],["Markdown",n_],["ProseCodeInline",r_],["ProsePre",o_],["ProseA",s_],["ProseBlockquote",i_],["ProseEm",a_],["ProseH5",l_],["ProseH6",c_],["ProseHr",u_],["ProseImg",f_],["ProseLi",d_],["ProseOl",p_],["ProseP",h_],["ProseScript",g_],["ProseStrong",m_],["ProseTable",v_],["ProseTbody",y_],["ProseTd",b_],["ProseTh",w_],["ProseThead",__],["ProseTr",x_],["ProseUl",k_],["Icon",E_],["IconCss",C_],["OgImageStatic",P_],["OgImageDynamic",S_],["OgImage",T_],["OgImageCached",A_],["OgImageWithoutCache",O_],["OgImageScreenshot",$_],["GithubRepository",I_],["GithubLink",R_],["GithubReadme",L_],["GithubReleases",M_],["GithubLastRelease",j_],["GithubRelease",D_],["GithubContributors",F_],["GithubFileContributors",N_],["GithubCommits",B_]],U_=ot({name:"nuxt:global-components",setup(e){for(const[t,n]of H_)e.vueApp.component(t,n),e.vueApp.component("Lazy"+t,n)}}),Jn={docs:()=>Q(()=>import("./docs.8f80e350.js"),[],import.meta.url).then(e=>e.default||e)},z_=ot({name:"nuxt:prefetch",setup(e){const t=nn();e.hooks.hook("app:mounted",()=>{t.beforeEach(async n=>{var o;const r=(o=n==null?void 0:n.meta)==null?void 0:o.layout;r&&typeof Jn[r]=="function"&&await Jn[r]()})}),e.hooks.hook("link:prefetch",n=>{var i,a,l,c;if(gr(n))return;const r=t.resolve(n);if(!r)return;const o=(i=r==null?void 0:r.meta)==null?void 0:i.layout;let s=Array.isArray((a=r==null?void 0:r.meta)==null?void 0:a.middleware)?(l=r==null?void 0:r.meta)==null?void 0:l.middleware:[(c=r==null?void 0:r.meta)==null?void 0:c.middleware];s=s.filter(u=>typeof u=="string");for(const u of s)typeof mo[u]=="function"&&mo[u]();o&&typeof Jn[o]=="function"&&Jn[o]()})}}),Mu=Object.freeze({ignoreUnknown:!1,respectType:!1,respectFunctionNames:!1,respectFunctionProperties:!1,unorderedObjects:!0,unorderedArrays:!1,unorderedSets:!1,excludeKeys:void 0,excludeValues:void 0,replacer:void 0});function xa(e,t){t?t={...Mu,...t}:t=Mu;const n=Pp(t);return n.dispatch(e),n.toString()}const V_=Object.freeze(["prototype","__proto__","constructor"]);function Pp(e){let t="",n=new Map;const r=o=>{t+=o};return{toString(){return t},getContext(){return n},dispatch(o){return e.replacer&&(o=e.replacer(o)),this[o===null?"null":typeof o](o)},object(o){if(o&&typeof o.toJSON=="function")return this.object(o.toJSON());const s=Object.prototype.toString.call(o);let i="";const a=s.length;a<10?i="unknown:["+s+"]":i=s.slice(8,a-1),i=i.toLowerCase();let l=null;if((l=n.get(o))===void 0)n.set(o,n.size);else return this.dispatch("[CIRCULAR:"+l+"]");if(typeof Buffer<"u"&&Buffer.isBuffer&&Buffer.isBuffer(o))return r("buffer:"),r(o.toString("utf8"));if(i!=="object"&&i!=="function"&&i!=="asyncfunction")this[i]?this[i](o):e.ignoreUnknown||this.unkown(o,i);else{let c=Object.keys(o);e.unorderedObjects&&(c=c.sort());let u=[];e.respectType!==!1&&!ju(o)&&(u=V_),e.excludeKeys&&(c=c.filter(d=>!e.excludeKeys(d)),u=u.filter(d=>!e.excludeKeys(d))),r("object:"+(c.length+u.length)+":");const f=d=>{this.dispatch(d),r(":"),e.excludeValues||this.dispatch(o[d]),r(",")};for(const d of c)f(d);for(const d of u)f(d)}},array(o,s){if(s=s===void 0?e.unorderedArrays!==!1:s,r("array:"+o.length+":"),!s||o.length<=1){for(const l of o)this.dispatch(l);return}const i=new Map,a=o.map(l=>{const c=Pp(e);c.dispatch(l);for(const[u,f]of c.getContext())i.set(u,f);return c.toString()});return n=i,a.sort(),this.array(a,!1)},date(o){return r("date:"+o.toJSON())},symbol(o){return r("symbol:"+o.toString())},unkown(o,s){if(r(s),!!o&&(r(":"),o&&typeof o.entries=="function"))return this.array(Array.from(o.entries()),!0)},error(o){return r("error:"+o.toString())},boolean(o){return r("bool:"+o)},string(o){r("string:"+o.length+":"),r(o)},function(o){r("fn:"),ju(o)?this.dispatch("[native]"):this.dispatch(o.toString()),e.respectFunctionNames!==!1&&this.dispatch("function-name:"+String(o.name)),e.respectFunctionProperties&&this.object(o)},number(o){return r("number:"+o)},xml(o){return r("xml:"+o.toString())},null(){return r("Null")},undefined(){return r("Undefined")},regexp(o){return r("regex:"+o.toString())},uint8array(o){return r("uint8array:"),this.dispatch(Array.prototype.slice.call(o))},uint8clampedarray(o){return r("uint8clampedarray:"),this.dispatch(Array.prototype.slice.call(o))},int8array(o){return r("int8array:"),this.dispatch(Array.prototype.slice.call(o))},uint16array(o){return r("uint16array:"),this.dispatch(Array.prototype.slice.call(o))},int16array(o){return r("int16array:"),this.dispatch(Array.prototype.slice.call(o))},uint32array(o){return r("uint32array:"),this.dispatch(Array.prototype.slice.call(o))},int32array(o){return r("int32array:"),this.dispatch(Array.prototype.slice.call(o))},float32array(o){return r("float32array:"),this.dispatch(Array.prototype.slice.call(o))},float64array(o){return r("float64array:"),this.dispatch(Array.prototype.slice.call(o))},arraybuffer(o){return r("arraybuffer:"),this.dispatch(new Uint8Array(o))},url(o){return r("url:"+o.toString())},map(o){r("map:");const s=[...o];return this.array(s,e.unorderedSets!==!1)},set(o){r("set:");const s=[...o];return this.array(s,e.unorderedSets!==!1)},file(o){return r("file:"),this.dispatch([o.name,o.size,o.type,o.lastModfied])},blob(){if(e.ignoreUnknown)return r("[blob]");throw new Error(`Hashing Blob objects is currently not supported + */const xr=typeof window<"u";function fb(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const Ie=Object.assign;function Oi(e,t){const n={};for(const r in t){const o=t[r];n[r]=Ut(o)?o.map(e):e(o)}return n}const ho=()=>{},Ut=Array.isArray,db=/\/$/,pb=e=>e.replace(db,"");function $i(e,t,n="/"){let r,o={},s="",i="";const a=t.indexOf("#");let l=t.indexOf("?");return a=0&&(l=-1),l>-1&&(r=t.slice(0,l),s=t.slice(l+1,a>-1?a:t.length),o=e(s)),a>-1&&(r=r||t.slice(0,a),i=t.slice(a,t.length)),r=vb(r??t,n),{fullPath:r+(s&&"?")+s+i,path:r,query:o,hash:i}}function hb(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function gu(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function gb(e,t,n){const r=t.matched.length-1,o=n.matched.length-1;return r>-1&&r===o&&Lr(t.matched[r],n.matched[o])&&pp(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Lr(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function pp(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!mb(e[n],t[n]))return!1;return!0}function mb(e,t){return Ut(e)?mu(e,t):Ut(t)?mu(t,e):e===t}function mu(e,t){return Ut(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function vb(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),o=r[r.length-1];(o===".."||o===".")&&r.push("");let s=n.length-1,i,a;for(i=0;i1&&s--;else break;return n.slice(0,s).join("/")+"/"+r.slice(i-(i===r.length?1:0)).join("/")}var To;(function(e){e.pop="pop",e.push="push"})(To||(To={}));var go;(function(e){e.back="back",e.forward="forward",e.unknown=""})(go||(go={}));function yb(e){if(!e)if(xr){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),pb(e)}const bb=/^[^#]+#/;function wb(e,t){return e.replace(bb,"#")+t}function _b(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const li=()=>({left:window.pageXOffset,top:window.pageYOffset});function xb(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),o=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=_b(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function vu(e,t){return(history.state?history.state.position-t:-1)+e}const ya=new Map;function kb(e,t){ya.set(e,t)}function Eb(e){const t=ya.get(e);return ya.delete(e),t}let Cb=()=>location.protocol+"//"+location.host;function hp(e,t){const{pathname:n,search:r,hash:o}=t,s=e.indexOf("#");if(s>-1){let a=o.includes(e.slice(s))?e.slice(s).length:1,l=o.slice(a);return l[0]!=="/"&&(l="/"+l),gu(l,"")}return gu(n,e)+r+o}function Pb(e,t,n,r){let o=[],s=[],i=null;const a=({state:d})=>{const p=hp(e,location),h=n.value,g=t.value;let y=0;if(d){if(n.value=p,t.value=d,i&&i===h){i=null;return}y=g?d.position-g.position:0}else r(p);o.forEach(x=>{x(n.value,h,{delta:y,type:To.pop,direction:y?y>0?go.forward:go.back:go.unknown})})};function l(){i=n.value}function c(d){o.push(d);const p=()=>{const h=o.indexOf(d);h>-1&&o.splice(h,1)};return s.push(p),p}function u(){const{history:d}=window;d.state&&d.replaceState(Ie({},d.state,{scroll:li()}),"")}function f(){for(const d of s)d();s=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",u,{passive:!0}),{pauseListeners:l,listen:c,destroy:f}}function yu(e,t,n,r=!1,o=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:o?li():null}}function Sb(e){const{history:t,location:n}=window,r={value:hp(e,n)},o={value:t.state};o.value||s(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function s(l,c,u){const f=e.indexOf("#"),d=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+l:Cb()+e+l;try{t[u?"replaceState":"pushState"](c,"",d),o.value=c}catch(p){console.error(p),n[u?"replace":"assign"](d)}}function i(l,c){const u=Ie({},t.state,yu(o.value.back,l,o.value.forward,!0),c,{position:o.value.position});s(l,u,!0),r.value=l}function a(l,c){const u=Ie({},o.value,t.state,{forward:l,scroll:li()});s(u.current,u,!0);const f=Ie({},yu(r.value,l,null),{position:u.position+1},c);s(l,f,!1),r.value=l}return{location:r,state:o,push:a,replace:i}}function gp(e){e=yb(e);const t=Sb(e),n=Pb(e,t.state,t.location,t.replace);function r(s,i=!0){i||n.pauseListeners(),history.go(s)}const o=Ie({location:"",base:e,go:r,createHref:wb.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}function Tb(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),gp(e)}function Ab(e){return typeof e=="string"||e&&typeof e=="object"}function mp(e){return typeof e=="string"||typeof e=="symbol"}const Gt={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},vp=Symbol("");var bu;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(bu||(bu={}));function Mr(e,t){return Ie(new Error,{type:e,[vp]:!0},t)}function rn(e,t){return e instanceof Error&&vp in e&&(t==null||!!(e.type&t))}const wu="[^/]+?",Ob={sensitive:!1,strict:!1,start:!0,end:!0},$b=/[.+*?^${}()[\]/\\]/g;function Ib(e,t){const n=Ie({},Ob,t),r=[];let o=n.start?"^":"";const s=[];for(const c of e){const u=c.length?[]:[90];n.strict&&!c.length&&(o+="/");for(let f=0;ft.length?t.length===1&&t[0]===40+40?1:-1:0}function Lb(e,t){let n=0;const r=e.score,o=t.score;for(;n0&&t[t.length-1]<0}const Mb={type:0,value:""},jb=/[a-zA-Z0-9_]/;function Db(e){if(!e)return[[]];if(e==="/")return[[Mb]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(p){throw new Error(`ERR (${n})/"${c}": ${p}`)}let n=0,r=n;const o=[];let s;function i(){s&&o.push(s),s=[]}let a=0,l,c="",u="";function f(){c&&(n===0?s.push({type:0,value:c}):n===1||n===2||n===3?(s.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),s.push({type:1,value:c,regexp:u,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),c="")}function d(){c+=l}for(;a{i(b)}:ho}function i(u){if(mp(u)){const f=r.get(u);f&&(r.delete(u),n.splice(n.indexOf(f),1),f.children.forEach(i),f.alias.forEach(i))}else{const f=n.indexOf(u);f>-1&&(n.splice(f,1),u.record.name&&r.delete(u.record.name),u.children.forEach(i),u.alias.forEach(i))}}function a(){return n}function l(u){let f=0;for(;f=0&&(u.record.path!==n[f].record.path||!yp(u,n[f]));)f++;n.splice(f,0,u),u.record.name&&!ku(u)&&r.set(u.record.name,u)}function c(u,f){let d,p={},h,g;if("name"in u&&u.name){if(d=r.get(u.name),!d)throw Mr(1,{location:u});g=d.record.name,p=Ie(xu(f.params,d.keys.filter(b=>!b.optional).map(b=>b.name)),u.params&&xu(u.params,d.keys.map(b=>b.name))),h=d.stringify(p)}else if("path"in u)h=u.path,d=n.find(b=>b.re.test(h)),d&&(p=d.parse(h),g=d.record.name);else{if(d=f.name?r.get(f.name):n.find(b=>b.re.test(f.path)),!d)throw Mr(1,{location:u,currentLocation:f});g=d.record.name,p=Ie({},f.params,u.params),h=d.stringify(p)}const y=[];let x=d;for(;x;)y.unshift(x.record),x=x.parent;return{name:g,path:h,params:p,matched:y,meta:Ub(y)}}return e.forEach(u=>s(u)),{addRoute:s,resolve:c,removeRoute:i,getRoutes:a,getRecordMatcher:o}}function xu(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function Bb(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:Hb(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function Hb(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function ku(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Ub(e){return e.reduce((t,n)=>Ie(t,n.meta),{})}function Eu(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function yp(e,t){return t.children.some(n=>n===e||yp(e,n))}const bp=/#/g,zb=/&/g,Vb=/\//g,Wb=/=/g,qb=/\?/g,wp=/\+/g,Kb=/%5B/g,Gb=/%5D/g,_p=/%5E/g,Qb=/%60/g,xp=/%7B/g,Xb=/%7C/g,kp=/%7D/g,Yb=/%20/g;function Cl(e){return encodeURI(""+e).replace(Xb,"|").replace(Kb,"[").replace(Gb,"]")}function Jb(e){return Cl(e).replace(xp,"{").replace(kp,"}").replace(_p,"^")}function ba(e){return Cl(e).replace(wp,"%2B").replace(Yb,"+").replace(bp,"%23").replace(zb,"%26").replace(Qb,"`").replace(xp,"{").replace(kp,"}").replace(_p,"^")}function Zb(e){return ba(e).replace(Wb,"%3D")}function ew(e){return Cl(e).replace(bp,"%23").replace(qb,"%3F")}function tw(e){return e==null?"":ew(e).replace(Vb,"%2F")}function Bs(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function nw(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let o=0;os&&ba(s)):[r&&ba(r)]).forEach(s=>{s!==void 0&&(t+=(t.length?"&":"")+n,s!=null&&(t+="="+s))})}return t}function rw(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=Ut(r)?r.map(o=>o==null?null:""+o):r==null?r:""+r)}return t}const ow=Symbol(""),Pu=Symbol(""),Pl=Symbol(""),Sl=Symbol(""),wa=Symbol("");function Qr(){let e=[];function t(r){return e.push(r),()=>{const o=e.indexOf(r);o>-1&&e.splice(o,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Sn(e,t,n,r,o){const s=r&&(r.enterCallbacks[o]=r.enterCallbacks[o]||[]);return()=>new Promise((i,a)=>{const l=f=>{f===!1?a(Mr(4,{from:n,to:t})):f instanceof Error?a(f):Ab(f)?a(Mr(2,{from:t,to:f})):(s&&r.enterCallbacks[o]===s&&typeof f=="function"&&s.push(f),i())},c=e.call(r&&r.instances[o],t,n,l);let u=Promise.resolve(c);e.length<3&&(u=u.then(l)),u.catch(f=>a(f))})}function Ii(e,t,n,r){const o=[];for(const s of e)for(const i in s.components){let a=s.components[i];if(!(t!=="beforeRouteEnter"&&!s.instances[i]))if(sw(a)){const c=(a.__vccOpts||a)[t];c&&o.push(Sn(c,n,r,s,i))}else{let l=a();o.push(()=>l.then(c=>{if(!c)return Promise.reject(new Error(`Couldn't resolve component "${i}" at "${s.path}"`));const u=fb(c)?c.default:c;s.components[i]=u;const d=(u.__vccOpts||u)[t];return d&&Sn(d,n,r,s,i)()}))}}return o}function sw(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Su(e){const t=Te(Pl),n=Te(Sl),r=j(()=>t.resolve(E(e.to))),o=j(()=>{const{matched:l}=r.value,{length:c}=l,u=l[c-1],f=n.matched;if(!u||!f.length)return-1;const d=f.findIndex(Lr.bind(null,u));if(d>-1)return d;const p=Tu(l[c-2]);return c>1&&Tu(u)===p&&f[f.length-1].path!==p?f.findIndex(Lr.bind(null,l[c-2])):d}),s=j(()=>o.value>-1&&cw(n.params,r.value.params)),i=j(()=>o.value>-1&&o.value===n.matched.length-1&&pp(n.params,r.value.params));function a(l={}){return lw(l)?t[E(e.replace)?"replace":"push"](E(e.to)).catch(ho):Promise.resolve()}return{route:r,href:j(()=>r.value.href),isActive:s,isExactActive:i,navigate:a}}const iw=ne({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Su,setup(e,{slots:t}){const n=Rt(Su(e)),{options:r}=Te(Pl),o=j(()=>({[Au(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[Au(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const s=t.default&&t.default(n);return e.custom?s:me("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},s)}}}),aw=iw;function lw(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function cw(e,t){for(const n in t){const r=t[n],o=e[n];if(typeof r=="string"){if(r!==o)return!1}else if(!Ut(o)||o.length!==r.length||r.some((s,i)=>s!==o[i]))return!1}return!0}function Tu(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Au=(e,t,n)=>e??t??n,uw=ne({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=Te(wa),o=j(()=>e.route||r.value),s=Te(Pu,0),i=j(()=>{let c=E(s);const{matched:u}=o.value;let f;for(;(f=u[c])&&!f.components;)c++;return c}),a=j(()=>o.value.matched[i.value]);Ve(Pu,j(()=>i.value+1)),Ve(ow,a),Ve(wa,o);const l=B();return ze(()=>[l.value,a.value,e.name],([c,u,f],[d,p,h])=>{u&&(u.instances[f]=c,p&&p!==u&&c&&c===d&&(u.leaveGuards.size||(u.leaveGuards=p.leaveGuards),u.updateGuards.size||(u.updateGuards=p.updateGuards))),c&&u&&(!p||!Lr(u,p)||!d)&&(u.enterCallbacks[f]||[]).forEach(g=>g(c))},{flush:"post"}),()=>{const c=o.value,u=e.name,f=a.value,d=f&&f.components[u];if(!d)return Ou(n.default,{Component:d,route:c});const p=f.props[u],h=p?p===!0?c.params:typeof p=="function"?p(c):p:null,y=me(d,Ie({},h,t,{onVnodeUnmounted:x=>{x.component.isUnmounted&&(f.instances[u]=null)},ref:l}));return Ou(n.default,{Component:y,route:c})||y}}});function Ou(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const Ep=uw;function fw(e){const t=Nb(e.routes,e),n=e.parseQuery||nw,r=e.stringifyQuery||Cu,o=e.history,s=Qr(),i=Qr(),a=Qr(),l=lr(Gt);let c=Gt;xr&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=Oi.bind(null,$=>""+$),f=Oi.bind(null,tw),d=Oi.bind(null,Bs);function p($,X){let K,re;return mp($)?(K=t.getRecordMatcher($),re=X):re=$,t.addRoute(re,K)}function h($){const X=t.getRecordMatcher($);X&&t.removeRoute(X)}function g(){return t.getRoutes().map($=>$.record)}function y($){return!!t.getRecordMatcher($)}function x($,X){if(X=Ie({},X||l.value),typeof $=="string"){const P=$i(n,$,X.path),O=t.resolve({path:P.path},X),L=o.createHref(P.fullPath);return Ie(P,O,{params:d(O.params),hash:Bs(P.hash),redirectedFrom:void 0,href:L})}let K;if("path"in $)K=Ie({},$,{path:$i(n,$.path,X.path).path});else{const P=Ie({},$.params);for(const O in P)P[O]==null&&delete P[O];K=Ie({},$,{params:f(P)}),X.params=f(X.params)}const re=t.resolve(K,X),Ce=$.hash||"";re.params=u(d(re.params));const w=hb(r,Ie({},$,{hash:Jb(Ce),path:re.path})),k=o.createHref(w);return Ie({fullPath:w,hash:Ce,query:r===Cu?rw($.query):$.query||{}},re,{redirectedFrom:void 0,href:k})}function b($){return typeof $=="string"?$i(n,$,l.value.path):Ie({},$)}function v($,X){if(c!==$)return Mr(8,{from:X,to:$})}function m($){return S($)}function _($){return m(Ie(b($),{replace:!0}))}function C($){const X=$.matched[$.matched.length-1];if(X&&X.redirect){const{redirect:K}=X;let re=typeof K=="function"?K($):K;return typeof re=="string"&&(re=re.includes("?")||re.includes("#")?re=b(re):{path:re},re.params={}),Ie({query:$.query,hash:$.hash,params:"path"in re?{}:$.params},re)}}function S($,X){const K=c=x($),re=l.value,Ce=$.state,w=$.force,k=$.replace===!0,P=C(K);if(P)return S(Ie(b(P),{state:typeof P=="object"?Ie({},Ce,P.state):Ce,force:w,replace:k}),X||K);const O=K;O.redirectedFrom=X;let L;return!w&&gb(r,re,K)&&(L=Mr(16,{to:O,from:re}),Fe(re,re,!0,!1)),(L?Promise.resolve(L):I(O,re)).catch(D=>rn(D)?rn(D,2)?D:Re(D):W(D,O,re)).then(D=>{if(D){if(rn(D,2))return S(Ie({replace:k},b(D.to),{state:typeof D.to=="object"?Ie({},Ce,D.to.state):Ce,force:w}),X||O)}else D=A(O,re,!0,k,Ce);return q(O,re,D),D})}function T($,X){const K=v($,X);return K?Promise.reject(K):Promise.resolve()}function M($){const X=lt.values().next().value;return X&&typeof X.runWithContext=="function"?X.runWithContext($):$()}function I($,X){let K;const[re,Ce,w]=dw($,X);K=Ii(re.reverse(),"beforeRouteLeave",$,X);for(const P of re)P.leaveGuards.forEach(O=>{K.push(Sn(O,$,X))});const k=T.bind(null,$,X);return K.push(k),We(K).then(()=>{K=[];for(const P of s.list())K.push(Sn(P,$,X));return K.push(k),We(K)}).then(()=>{K=Ii(Ce,"beforeRouteUpdate",$,X);for(const P of Ce)P.updateGuards.forEach(O=>{K.push(Sn(O,$,X))});return K.push(k),We(K)}).then(()=>{K=[];for(const P of w)if(P.beforeEnter)if(Ut(P.beforeEnter))for(const O of P.beforeEnter)K.push(Sn(O,$,X));else K.push(Sn(P.beforeEnter,$,X));return K.push(k),We(K)}).then(()=>($.matched.forEach(P=>P.enterCallbacks={}),K=Ii(w,"beforeRouteEnter",$,X),K.push(k),We(K))).then(()=>{K=[];for(const P of i.list())K.push(Sn(P,$,X));return K.push(k),We(K)}).catch(P=>rn(P,8)?P:Promise.reject(P))}function q($,X,K){a.list().forEach(re=>M(()=>re($,X,K)))}function A($,X,K,re,Ce){const w=v($,X);if(w)return w;const k=X===Gt,P=xr?history.state:{};K&&(re||k?o.replace($.fullPath,Ie({scroll:k&&P&&P.scroll},Ce)):o.push($.fullPath,Ce)),l.value=$,Fe($,X,K,k),Re()}let N;function he(){N||(N=o.listen(($,X,K)=>{if(!wt.listening)return;const re=x($),Ce=C(re);if(Ce){S(Ie(Ce,{replace:!0}),re).catch(ho);return}c=re;const w=l.value;xr&&kb(vu(w.fullPath,K.delta),li()),I(re,w).catch(k=>rn(k,12)?k:rn(k,2)?(S(k.to,re).then(P=>{rn(P,20)&&!K.delta&&K.type===To.pop&&o.go(-1,!1)}).catch(ho),Promise.reject()):(K.delta&&o.go(-K.delta,!1),W(k,re,w))).then(k=>{k=k||A(re,w,!1),k&&(K.delta&&!rn(k,8)?o.go(-K.delta,!1):K.type===To.pop&&rn(k,20)&&o.go(-1,!1)),q(re,w,k)}).catch(ho)}))}let fe=Qr(),U=Qr(),V;function W($,X,K){Re($);const re=U.list();return re.length?re.forEach(Ce=>Ce($,X,K)):console.error($),Promise.reject($)}function _e(){return V&&l.value!==Gt?Promise.resolve():new Promise(($,X)=>{fe.add([$,X])})}function Re($){return V||(V=!$,he(),fe.list().forEach(([X,K])=>$?K($):X()),fe.reset()),$}function Fe($,X,K,re){const{scrollBehavior:Ce}=e;if(!xr||!Ce)return Promise.resolve();const w=!K&&Eb(vu($.fullPath,0))||(re||!K)&&history.state&&history.state.scroll||null;return hn().then(()=>Ce($,X,w)).then(k=>k&&xb(k)).catch(k=>W(k,$,X))}const Ee=$=>o.go($);let Me;const lt=new Set,wt={currentRoute:l,listening:!0,addRoute:p,removeRoute:h,hasRoute:y,getRoutes:g,resolve:x,options:e,push:m,replace:_,go:Ee,back:()=>Ee(-1),forward:()=>Ee(1),beforeEach:s.add,beforeResolve:i.add,afterEach:a.add,onError:U.add,isReady:_e,install($){const X=this;$.component("RouterLink",aw),$.component("RouterView",Ep),$.config.globalProperties.$router=X,Object.defineProperty($.config.globalProperties,"$route",{enumerable:!0,get:()=>E(l)}),xr&&!Me&&l.value===Gt&&(Me=!0,m(o.location).catch(Ce=>{}));const K={};for(const Ce in Gt)Object.defineProperty(K,Ce,{get:()=>l.value[Ce],enumerable:!0});$.provide(Pl,X),$.provide(Sl,No(K)),$.provide(wa,l);const re=$.unmount;lt.add($),$.unmount=function(){lt.delete($),lt.size<1&&(c=Gt,N&&N(),N=null,l.value=Gt,Me=!1,V=!1),re()}}};function We($){return $.reduce((X,K)=>X.then(()=>M(K)),Promise.resolve())}return wt}function dw(e,t){const n=[],r=[],o=[],s=Math.max(t.matched.length,e.matched.length);for(let i=0;iLr(c,a))?r.push(a):n.push(a));const l=e.matched[i];l&&(t.matched.find(c=>Lr(c,l))||o.push(l))}return[n,r,o]}function pw(){return Te(Sl)}const xt={layout:"docs"},$u=[{name:(xt==null?void 0:xt.name)??"slug",path:(xt==null?void 0:xt.path)??"/:slug(.*)*",meta:xt||{},alias:(xt==null?void 0:xt.alias)||[],redirect:(xt==null?void 0:xt.redirect)||void 0,component:()=>Q(()=>import("./_...slug_.f48004ed.js"),["./_...slug_.f48004ed.js","./ContentRenderer.f8fda652.js","./ContentRendererMarkdown.vue.1b328542.js","./MDCRenderer.8dddf3be.js"],import.meta.url).then(e=>e.default||e)},{name:"index",path:"/",meta:{},alias:[],redirect:void 0,component:()=>Q(()=>import("./index.b27d3d40.js"),["./index.b27d3d40.js","./MDCRenderer.8dddf3be.js","./_commonjsHelpers.725317a4.js","./node.f7b4ab96.js","./Card.68bb9e1d.js","./index.5d580178.css"],import.meta.url).then(e=>e.default||e)}];function Iu(e){const t=document.querySelector(e);if(t){const n=parseFloat(getComputedStyle(t).scrollMarginTop);return{el:e,behavior:"smooth",top:n}}}const hw={scrollBehavior(e,t,n){const r=Ae();if(!history.state.stop)return history.state.smooth?{el:history.state.smooth,behavior:"smooth"}:n?new Promise(o=>{r.hooks.hookOnce("page:finish",()=>{setTimeout(()=>o(n),50)})}):e.hash?new Promise(o=>{e.path===t.path?setTimeout(()=>o(Iu(e.hash)),50):r.hooks.hookOnce("page:finish",()=>{setTimeout(()=>o(Iu(e.hash)),50)})}):{top:0}}},Cp=(e,t,n)=>(t=t===!0?{}:t,{default:()=>{var r;return t?me(e,t,n):(r=n.default)==null?void 0:r.call(n)}});function Ru(e){const t=(e==null?void 0:e.meta.key)??e.path.replace(/(:\w+)\([^)]+\)/g,"$1").replace(/(:\w+)[?+*]/g,"$1").replace(/:\w+/g,n=>{var r;return((r=e.params[n.slice(1)])==null?void 0:r.toString())||""});return typeof t=="function"?t(e):t}function gw(e,t){return e===t?!1:Ru(e)!==Ru(t)?!0:!e.matched.every((r,o)=>{var s,i;return r.components&&r.components.default===((i=(s=t.matched[o])==null?void 0:s.components)==null?void 0:i.default)})}const mw={scrollBehavior(e,t,n){var c;const r=Ae(),o=((c=nn().options)==null?void 0:c.scrollBehaviorType)??"auto";let s=n||void 0;const i=typeof e.meta.scrollToTop=="function"?e.meta.scrollToTop(e,t):e.meta.scrollToTop;if(!s&&t&&e&&i!==!1&&gw(e,t)&&(s={left:0,top:0}),e.path===t.path){if(t.hash&&!e.hash)return{left:0,top:0};if(e.hash)return{el:e.hash,top:Lu(e.hash),behavior:o}}const a=u=>!!(u.meta.pageTransition??ma),l=a(t)&&a(e)?"page:transition:finish":"page:finish";return new Promise(u=>{r.hooks.hookOnce(l,async()=>{await hn(),e.hash&&(s={el:e.hash,top:Lu(e.hash),behavior:o}),u(s)})})}};function Lu(e){try{const t=document.querySelector(e);if(t)return parseFloat(getComputedStyle(t).scrollMarginTop)}catch{}return 0}const vw={hashMode:!1,scrollBehaviorType:"auto"},ht={...vw,...mw,...hw},yw=async e=>{var l;let t,n;if(!((l=e.meta)!=null&&l.validate))return;const r=Ae(),o=nn();if(([t,n]=So(()=>Promise.resolve(e.meta.validate(e))),t=await t,n(),t)===!0)return;const i=ii({statusCode:404,statusMessage:`Page Not Found: ${e.fullPath}`}),a=o.beforeResolve(c=>{if(a(),c===e){const u=o.afterEach(async()=>{u(),await r.runWithContext(()=>kr(i)),window.history.pushState({},"",e.fullPath)});return!1}})},bw=async e=>{let t,n;const r=([t,n]=So(()=>up(e.path)),t=await t,n(),t);if(r.redirect)return r.redirect},ww=[yw,bw],mo={};function _w(e,t,n){const{pathname:r,search:o,hash:s}=t,i=e.indexOf("#");if(i>-1){const c=s.includes(e.slice(i))?e.slice(i).length:1;let u=s.slice(c);return u[0]!=="/"&&(u="/"+u),Zc(u,"")}const a=Zc(r,e),l=!n||Jv(a,n,{trailingSlash:!0})?a:n;return l+(l.includes("?")?"":o)+s}const xw=ot({name:"nuxt:router",enforce:"pre",async setup(e){var g,y;let t,n,r=Lt().app.baseURL;ht.hashMode&&!r.includes("#")&&(r+="#");const o=((g=ht.history)==null?void 0:g.call(ht,r))??(ht.hashMode?Tb(r):gp(r)),s=((y=ht.routes)==null?void 0:y.call(ht,$u))??$u;let i;const a=_w(r,window.location,e.payload.path),l=fw({...ht,scrollBehavior:(x,b,v)=>{var m;if(b===Gt){i=v;return}return l.options.scrollBehavior=ht.scrollBehavior,(m=ht.scrollBehavior)==null?void 0:m.call(ht,x,Gt,i||v)},history:o,routes:s});e.vueApp.use(l);const c=lr(l.currentRoute.value);l.afterEach((x,b)=>{c.value=b}),Object.defineProperty(e.vueApp.config.globalProperties,"previousRoute",{get:()=>c.value});const u=lr(l.resolve(a)),f=()=>{u.value=l.currentRoute.value};e.hook("page:finish",f),l.afterEach((x,b)=>{var v,m,_,C;((m=(v=x.matched[0])==null?void 0:v.components)==null?void 0:m.default)===((C=(_=b.matched[0])==null?void 0:_.components)==null?void 0:C.default)&&f()});const d={};for(const x in u.value)Object.defineProperty(d,x,{get:()=>u.value[x]});e._route=No(d),e._middleware=e._middleware||{global:[],named:{}};const p=si();try{[t,n]=So(()=>l.isReady()),await t,n()}catch(x){[t,n]=So(()=>e.runWithContext(()=>kr(x))),await t,n()}const h=e.payload.state._layout;return l.beforeEach(async(x,b)=>{var v;x.meta=Rt(x.meta),e.isHydrating&&h&&!ar(x.meta.layout)&&(x.meta.layout=h),e._processingMiddleware=!0;{const m=new Set([...ww,...e._middleware.global]);for(const _ of x.matched){const C=_.meta.middleware;if(C)if(Array.isArray(C))for(const S of C)m.add(S);else m.add(C)}for(const _ of m){const C=typeof _=="string"?e._middleware.named[_]||await((v=mo[_])==null?void 0:v.call(mo).then(T=>T.default||T)):_;if(!C)throw new Error(`Unknown route middleware: '${_}'.`);const S=await e.runWithContext(()=>C(x,b));if(!e.payload.serverRendered&&e.isHydrating&&(S===!1||S instanceof Error)){const T=S||ha({statusCode:404,statusMessage:`Page Not Found: ${a}`});return await e.runWithContext(()=>kr(T)),!1}if(S!==!0&&(S||S===!1))return S}}}),l.onError(()=>{delete e._processingMiddleware}),l.afterEach(async(x,b,v)=>{delete e._processingMiddleware,!e.isHydrating&&p.value&&await e.runWithContext(lp),x.matched.length===0&&await e.runWithContext(()=>kr(ha({statusCode:404,fatal:!1,statusMessage:`Page not found: ${x.fullPath}`})))}),e.hooks.hookOnce("app:created",async()=>{try{await l.replace({...l.resolve(a),name:void 0,force:!0}),l.options.scrollBehavior=ht.scrollBehavior}catch(x){await e.runWithContext(()=>kr(x))}}),{provide:{router:l}}}}),kw="$s";function yr(...e){const t=typeof e[e.length-1]=="string"?e.pop():void 0;typeof e[0]!="string"&&e.unshift(t);const[n,r]=e;if(!n||typeof n!="string")throw new TypeError("[nuxt] [useState] key must be a string: "+n);if(r!==void 0&&typeof r!="function")throw new Error("[nuxt] [useState] init must be a function: "+r);const o=kw+n,s=Ae(),i=we(s.payload.state,o);if(i.value===void 0&&r){const a=r();if(Xe(a))return s.payload.state[o]=a,a;i.value=a}return i}function Ew(e){const t=(e==null?void 0:e.debug)||!1,n=[];function r(s){var a;if(!s||typeof s!="object"||Object.keys(s).length===0)return;if(!s._context&&t){let l=(a=new Error("tmp").stack)==null?void 0:a.split(` +`)[2].split(" ")[5];l!=null&&l.includes("/")&&(l="anonymous"),s._context=l}const i={};for(const l in s){const c=s[l];typeof c<"u"&&c!==""&&(i[l]=c)}Object.keys(i).filter(l=>!l.startsWith("_")).length>0&&n.push(i)}function o(s){var a;const i={};s!=null&&s.debug&&(i._context={});for(const l in n.sort((c,u)=>(c._priority||0)-(u._priority||0)))for(const c in n[l]){const u=c,f=n[l][c];c.startsWith("_")||(i[c]=f,s!=null&&s.debug&&(i._context[u]=((a=n[l]._context)==null?void 0:a[u])||n[l]._context||"anonymous"))}return Cw(i)}return{stack:n,push:r,get:o}}function Cw(e){typeof e.indexable<"u"&&(e.indexable=String(e.indexable)!=="false"),typeof e.trailingSlash<"u"&&(e.trailingSlash=String(e.trailingSlash)!=="false"),e.url&&!gr(e.url,{acceptRelative:!0,strict:!1})&&(e.url=Xv(e.url));const t=Object.keys(e).sort((r,o)=>r.localeCompare(o)),n={};for(const r of t)n[r]=e[r];return n}const Pw=ot({name:"nuxt-site-config",enforce:"pre",async setup(e){const t=Lt()["nuxt-site-config"]||{debug:!1};let n;const r=yr("site-config");return n||(n=Ew({debug:t.debug})),n.push({_context:"window",url:window.location.origin}),Ae().payload.serverRendered?n.push(r.value):typeof window.__NUXT_SITE_CONFIG__<"u"&&n.push(window.__NUXT_SITE_CONFIG__),{provide:{nuxtSiteConfig:n}}}}),_a=globalThis.requestIdleCallback||(e=>{const t=Date.now(),n={didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-t))};return setTimeout(()=>{e(n)},1)}),Sw=globalThis.cancelIdleCallback||(e=>{clearTimeout(e)}),Tl=e=>{const t=Ae();t.isHydrating?t.hooks.hookOnce("app:suspense:resolve",()=>{_a(e)}):_a(e)},Tw=ot({name:"nuxt:payload",setup(e){nn().beforeResolve(async(t,n)=>{if(t.path===n.path)return;const r=await pu(t.path);r&&Object.assign(e.static.data,r.data)}),Tl(()=>{var t;e.hooks.hook("link:prefetch",async n=>{zo(n).protocol||await pu(n)}),((t=navigator.connection)==null?void 0:t.effectiveType)!=="slow-2g"&&setTimeout(ai,1e3)})}}),Aw=Z(()=>Q(()=>import("./Releases.1501e637.js"),["./Releases.1501e637.js","./ProseH2.vue.f4d56c2c.js","./ContentRenderer.f8fda652.js","./ContentRendererMarkdown.vue.1b328542.js","./MDCRenderer.8dddf3be.js","./useGithub.b9a4816c.js"],import.meta.url).then(e=>e.default)),Ow=Z(()=>Q(()=>import("./VoltaBoard.625e4cb3.js"),[],import.meta.url).then(e=>e.default)),$w=Z(()=>Q(()=>import("./Callout.d8907a73.js"),["./Callout.d8907a73.js","./slot.98627438.js","./node.f7b4ab96.js"],import.meta.url).then(e=>e.default)),Iw=Z(()=>Q(()=>import("./Card.428980e9.js"),["./Card.428980e9.js","./Card.68bb9e1d.js","./slot.98627438.js","./node.f7b4ab96.js"],import.meta.url).then(e=>e.default)),Rw=Z(()=>Q(()=>import("./CardGroup.bfc0b923.js"),[],import.meta.url).then(e=>e.default)),Lw=Z(()=>Q(()=>import("./CodeGroup.80c331bd.js"),["./CodeGroup.80c331bd.js","./ProseCodeIcon.vue.d817ff5a.js"],import.meta.url).then(e=>e.default)),Mw=Z(()=>Q(()=>import("./Collapsible.d92e4f74.js"),["./Collapsible.d92e4f74.js","./slot.98627438.js","./node.f7b4ab96.js"],import.meta.url).then(e=>e.default)),jw=Z(()=>Q(()=>import("./Field.54335140.js"),[],import.meta.url).then(e=>e.default)),Dw=Z(()=>Q(()=>import("./FieldGroup.0c22c700.js"),[],import.meta.url).then(e=>e.default)),Fw=Z(()=>Q(()=>import("./Shortcut.bdb882e5.js"),[],import.meta.url).then(e=>e.default)),Nw=Z(()=>Q(()=>import("./Tabs.51077da8.js"),[],import.meta.url).then(e=>e.default)),Bw=Z(()=>Q(()=>import("./ProseCode.b119e06f.js"),["./ProseCode.b119e06f.js","./ProseCode.vue.63c11675.js","./ProseCodeIcon.vue.d817ff5a.js","./ProseCodeButton.vue.f7f8450a.js","./ProseCode.e63e49c6.css"],import.meta.url).then(e=>e.default)),Hw=Z(()=>Q(()=>import("./ProseCodeButton.f9e6a65d.js"),["./ProseCodeButton.f9e6a65d.js","./ProseCodeButton.vue.f7f8450a.js"],import.meta.url).then(e=>e.default)),Uw=Z(()=>Q(()=>import("./ProseCodeIcon.be1fc9f4.js"),["./ProseCodeIcon.be1fc9f4.js","./ProseCodeIcon.vue.d817ff5a.js"],import.meta.url).then(e=>e.default)),zw=Z(()=>Q(()=>import("./ProseH1.4e623985.js"),[],import.meta.url).then(e=>e.default)),Vw=Z(()=>Q(()=>import("./ProseH2.d9eb3590.js"),["./ProseH2.d9eb3590.js","./ProseH2.vue.f4d56c2c.js"],import.meta.url).then(e=>e.default)),Ww=Z(()=>Q(()=>import("./ProseH3.48b35a00.js"),[],import.meta.url).then(e=>e.default)),qw=Z(()=>Q(()=>import("./ProseH4.8e15d4c4.js"),[],import.meta.url).then(e=>e.default)),Kw=Z(()=>Q(()=>import("./ContentDoc.9abd704d.js"),["./ContentDoc.9abd704d.js","./ContentRenderer.f8fda652.js","./ContentRendererMarkdown.vue.1b328542.js","./MDCRenderer.8dddf3be.js","./ContentQuery.9f00e65c.js"],import.meta.url).then(e=>e.default)),Gw=Z(()=>Q(()=>import("./ContentList.4312565f.js"),["./ContentList.4312565f.js","./ContentQuery.9f00e65c.js"],import.meta.url).then(e=>e.default)),Qw=Z(()=>Q(()=>import("./ContentNavigation.23d4fb51.js"),[],import.meta.url).then(e=>e.default)),Xw=Z(()=>Q(()=>import("./ContentQuery.9f00e65c.js"),[],import.meta.url).then(e=>e.default)),Yw=Z(()=>Q(()=>import("./ContentRenderer.f8fda652.js"),["./ContentRenderer.f8fda652.js","./ContentRendererMarkdown.vue.1b328542.js","./MDCRenderer.8dddf3be.js"],import.meta.url).then(e=>e.default)),Jw=Z(()=>Q(()=>import("./ContentRendererMarkdown.baefbace.js"),["./ContentRendererMarkdown.baefbace.js","./ContentRendererMarkdown.vue.1b328542.js","./MDCRenderer.8dddf3be.js"],import.meta.url).then(e=>e.default)),Zw=Z(()=>Q(()=>import("./ContentSlot.58c58190.js"),["./ContentSlot.58c58190.js","./node.f7b4ab96.js"],import.meta.url).then(e=>e.default)),e_=Z(()=>Q(()=>import("./DocumentDrivenEmpty.ce5f88ec.js"),[],import.meta.url).then(e=>e.default)),t_=Z(()=>Q(()=>import("./DocumentDrivenNotFound.425e24d1.js"),[],import.meta.url).then(e=>e.default)),n_=Z(()=>Q(()=>import("./Markdown.3084d0d2.js"),["./Markdown.3084d0d2.js","./ContentSlot.58c58190.js","./node.f7b4ab96.js"],import.meta.url).then(e=>e.default)),r_=Z(()=>Q(()=>import("./ProseCodeInline.1bf00f76.js"),[],import.meta.url).then(e=>e.default)),o_=Z(()=>Q(()=>import("./ProsePre.216d0682.js"),["./ProsePre.216d0682.js","./ProseCode.vue.63c11675.js","./ProseCodeIcon.vue.d817ff5a.js","./ProseCodeButton.vue.f7f8450a.js","./ProseCode.e63e49c6.css"],import.meta.url).then(e=>e.default)),s_=Z(()=>Q(()=>import("./ProseA.8a6b2d65.js"),[],import.meta.url).then(e=>e.default)),i_=Z(()=>Q(()=>import("./ProseBlockquote.c7ac24ba.js"),[],import.meta.url).then(e=>e.default)),a_=Z(()=>Q(()=>import("./ProseEm.99bf76f9.js"),[],import.meta.url).then(e=>e.default)),l_=Z(()=>Q(()=>import("./ProseH5.9a39ed8c.js"),[],import.meta.url).then(e=>e.default)),c_=Z(()=>Q(()=>import("./ProseH6.8d289c55.js"),[],import.meta.url).then(e=>e.default)),u_=Z(()=>Q(()=>import("./ProseHr.fa27e9ff.js"),[],import.meta.url).then(e=>e.default)),f_=Z(()=>Q(()=>import("./ProseImg.0e30254c.js"),[],import.meta.url).then(e=>e.default)),d_=Z(()=>Q(()=>import("./ProseLi.beba3964.js"),[],import.meta.url).then(e=>e.default)),p_=Z(()=>Q(()=>import("./ProseOl.0b9d32e8.js"),[],import.meta.url).then(e=>e.default)),h_=Z(()=>Q(()=>import("./ProseP.4e2998a9.js"),[],import.meta.url).then(e=>e.default)),g_=Z(()=>Q(()=>import("./ProseScript.70514ad4.js"),[],import.meta.url).then(e=>e.default)),m_=Z(()=>Q(()=>import("./ProseStrong.4f2d04f6.js"),[],import.meta.url).then(e=>e.default)),v_=Z(()=>Q(()=>import("./ProseTable.fdd156d0.js"),[],import.meta.url).then(e=>e.default)),y_=Z(()=>Q(()=>import("./ProseTbody.19438e1b.js"),[],import.meta.url).then(e=>e.default)),b_=Z(()=>Q(()=>import("./ProseTd.c52c2096.js"),[],import.meta.url).then(e=>e.default)),w_=Z(()=>Q(()=>import("./ProseTh.ff3e2232.js"),[],import.meta.url).then(e=>e.default)),__=Z(()=>Q(()=>import("./ProseThead.6118c350.js"),[],import.meta.url).then(e=>e.default)),x_=Z(()=>Q(()=>import("./ProseTr.b6601b5c.js"),[],import.meta.url).then(e=>e.default)),k_=Z(()=>Q(()=>import("./ProseUl.afdfd058.js"),[],import.meta.url).then(e=>e.default)),E_=Z(()=>Q(()=>Promise.resolve().then(()=>jk),void 0,import.meta.url).then(e=>e.default)),C_=Z(()=>Q(()=>import("./IconCSS.59c034f1.js"),["./IconCSS.59c034f1.js","./IconCSS.65e107b2.css"],import.meta.url).then(e=>e.default)),P_=Z(()=>Q(()=>import("./Static.041e034c.js"),[],import.meta.url).then(e=>e.default)),S_=Z(()=>Q(()=>import("./Dynamic.01943a6f.js"),[],import.meta.url).then(e=>e.default)),T_=Z(()=>Q(()=>import("./index.7e128566.js"),[],import.meta.url).then(e=>e.default)),A_=Z(()=>Q(()=>import("./Cached.e6d2f62a.js"),[],import.meta.url).then(e=>e.default)),O_=Z(()=>Q(()=>import("./WithoutCache.3a23f08d.js"),[],import.meta.url).then(e=>e.default)),$_=Z(()=>Q(()=>import("./Screenshot.afda911a.js"),[],import.meta.url).then(e=>e.default)),I_=Z(()=>Q(()=>import("./GithubRepository.c7f34d2f.js"),["./GithubRepository.c7f34d2f.js","./useGithub.b9a4816c.js"],import.meta.url).then(e=>e.default)),R_=Z(()=>Q(()=>import("./GithubLink.99d55faa.js"),[],import.meta.url).then(e=>e.default)),L_=Z(()=>Q(()=>import("./GithubReadme.767cfc29.js"),["./GithubReadme.767cfc29.js","./useGithub.b9a4816c.js"],import.meta.url).then(e=>e.default)),M_=Z(()=>Q(()=>import("./GithubReleases.d4b85ceb.js"),["./GithubReleases.d4b85ceb.js","./useGithub.b9a4816c.js"],import.meta.url).then(e=>e.default)),j_=Z(()=>Q(()=>import("./GithubLastRelease.94c1d66c.js"),["./GithubLastRelease.94c1d66c.js","./useGithub.b9a4816c.js"],import.meta.url).then(e=>e.default)),D_=Z(()=>Q(()=>import("./GithubRelease.ba7ea252.js"),["./GithubRelease.ba7ea252.js","./useGithub.b9a4816c.js"],import.meta.url).then(e=>e.default)),F_=Z(()=>Q(()=>import("./GithubContributors.75b45979.js"),["./GithubContributors.75b45979.js","./useGithub.b9a4816c.js"],import.meta.url).then(e=>e.default)),N_=Z(()=>Q(()=>import("./GithubFileContributors.c58662e6.js"),["./GithubFileContributors.c58662e6.js","./useGithub.b9a4816c.js"],import.meta.url).then(e=>e.default)),B_=Z(()=>Q(()=>import("./GithubCommits.655e7df4.js"),["./GithubCommits.655e7df4.js","./useGithub.b9a4816c.js"],import.meta.url).then(e=>e.default)),H_=[["Releases",Aw],["VoltaBoard",Ow],["Callout",$w],["Card",Iw],["CardGroup",Rw],["CodeGroup",Lw],["Collapsible",Mw],["Field",jw],["FieldGroup",Dw],["Shortcut",Fw],["Tabs",Nw],["ProseCode",Bw],["ProseCodeButton",Hw],["ProseCodeIcon",Uw],["ProseH1",zw],["ProseH2",Vw],["ProseH3",Ww],["ProseH4",qw],["ContentDoc",Kw],["ContentList",Gw],["ContentNavigation",Qw],["ContentQuery",Xw],["ContentRenderer",Yw],["ContentRendererMarkdown",Jw],["MDCSlot",Zw],["DocumentDrivenEmpty",e_],["DocumentDrivenNotFound",t_],["Markdown",n_],["ProseCodeInline",r_],["ProsePre",o_],["ProseA",s_],["ProseBlockquote",i_],["ProseEm",a_],["ProseH5",l_],["ProseH6",c_],["ProseHr",u_],["ProseImg",f_],["ProseLi",d_],["ProseOl",p_],["ProseP",h_],["ProseScript",g_],["ProseStrong",m_],["ProseTable",v_],["ProseTbody",y_],["ProseTd",b_],["ProseTh",w_],["ProseThead",__],["ProseTr",x_],["ProseUl",k_],["Icon",E_],["IconCss",C_],["OgImageStatic",P_],["OgImageDynamic",S_],["OgImage",T_],["OgImageCached",A_],["OgImageWithoutCache",O_],["OgImageScreenshot",$_],["GithubRepository",I_],["GithubLink",R_],["GithubReadme",L_],["GithubReleases",M_],["GithubLastRelease",j_],["GithubRelease",D_],["GithubContributors",F_],["GithubFileContributors",N_],["GithubCommits",B_]],U_=ot({name:"nuxt:global-components",setup(e){for(const[t,n]of H_)e.vueApp.component(t,n),e.vueApp.component("Lazy"+t,n)}}),Jn={docs:()=>Q(()=>import("./docs.2f1ccbf0.js"),[],import.meta.url).then(e=>e.default||e)},z_=ot({name:"nuxt:prefetch",setup(e){const t=nn();e.hooks.hook("app:mounted",()=>{t.beforeEach(async n=>{var o;const r=(o=n==null?void 0:n.meta)==null?void 0:o.layout;r&&typeof Jn[r]=="function"&&await Jn[r]()})}),e.hooks.hook("link:prefetch",n=>{var i,a,l,c;if(gr(n))return;const r=t.resolve(n);if(!r)return;const o=(i=r==null?void 0:r.meta)==null?void 0:i.layout;let s=Array.isArray((a=r==null?void 0:r.meta)==null?void 0:a.middleware)?(l=r==null?void 0:r.meta)==null?void 0:l.middleware:[(c=r==null?void 0:r.meta)==null?void 0:c.middleware];s=s.filter(u=>typeof u=="string");for(const u of s)typeof mo[u]=="function"&&mo[u]();o&&typeof Jn[o]=="function"&&Jn[o]()})}}),Mu=Object.freeze({ignoreUnknown:!1,respectType:!1,respectFunctionNames:!1,respectFunctionProperties:!1,unorderedObjects:!0,unorderedArrays:!1,unorderedSets:!1,excludeKeys:void 0,excludeValues:void 0,replacer:void 0});function xa(e,t){t?t={...Mu,...t}:t=Mu;const n=Pp(t);return n.dispatch(e),n.toString()}const V_=Object.freeze(["prototype","__proto__","constructor"]);function Pp(e){let t="",n=new Map;const r=o=>{t+=o};return{toString(){return t},getContext(){return n},dispatch(o){return e.replacer&&(o=e.replacer(o)),this[o===null?"null":typeof o](o)},object(o){if(o&&typeof o.toJSON=="function")return this.object(o.toJSON());const s=Object.prototype.toString.call(o);let i="";const a=s.length;a<10?i="unknown:["+s+"]":i=s.slice(8,a-1),i=i.toLowerCase();let l=null;if((l=n.get(o))===void 0)n.set(o,n.size);else return this.dispatch("[CIRCULAR:"+l+"]");if(typeof Buffer<"u"&&Buffer.isBuffer&&Buffer.isBuffer(o))return r("buffer:"),r(o.toString("utf8"));if(i!=="object"&&i!=="function"&&i!=="asyncfunction")this[i]?this[i](o):e.ignoreUnknown||this.unkown(o,i);else{let c=Object.keys(o);e.unorderedObjects&&(c=c.sort());let u=[];e.respectType!==!1&&!ju(o)&&(u=V_),e.excludeKeys&&(c=c.filter(d=>!e.excludeKeys(d)),u=u.filter(d=>!e.excludeKeys(d))),r("object:"+(c.length+u.length)+":");const f=d=>{this.dispatch(d),r(":"),e.excludeValues||this.dispatch(o[d]),r(",")};for(const d of c)f(d);for(const d of u)f(d)}},array(o,s){if(s=s===void 0?e.unorderedArrays!==!1:s,r("array:"+o.length+":"),!s||o.length<=1){for(const l of o)this.dispatch(l);return}const i=new Map,a=o.map(l=>{const c=Pp(e);c.dispatch(l);for(const[u,f]of c.getContext())i.set(u,f);return c.toString()});return n=i,a.sort(),this.array(a,!1)},date(o){return r("date:"+o.toJSON())},symbol(o){return r("symbol:"+o.toString())},unkown(o,s){if(r(s),!!o&&(r(":"),o&&typeof o.entries=="function"))return this.array(Array.from(o.entries()),!0)},error(o){return r("error:"+o.toString())},boolean(o){return r("bool:"+o)},string(o){r("string:"+o.length+":"),r(o)},function(o){r("fn:"),ju(o)?this.dispatch("[native]"):this.dispatch(o.toString()),e.respectFunctionNames!==!1&&this.dispatch("function-name:"+String(o.name)),e.respectFunctionProperties&&this.object(o)},number(o){return r("number:"+o)},xml(o){return r("xml:"+o.toString())},null(){return r("Null")},undefined(){return r("Undefined")},regexp(o){return r("regex:"+o.toString())},uint8array(o){return r("uint8array:"),this.dispatch(Array.prototype.slice.call(o))},uint8clampedarray(o){return r("uint8clampedarray:"),this.dispatch(Array.prototype.slice.call(o))},int8array(o){return r("int8array:"),this.dispatch(Array.prototype.slice.call(o))},uint16array(o){return r("uint16array:"),this.dispatch(Array.prototype.slice.call(o))},int16array(o){return r("int16array:"),this.dispatch(Array.prototype.slice.call(o))},uint32array(o){return r("uint32array:"),this.dispatch(Array.prototype.slice.call(o))},int32array(o){return r("int32array:"),this.dispatch(Array.prototype.slice.call(o))},float32array(o){return r("float32array:"),this.dispatch(Array.prototype.slice.call(o))},float64array(o){return r("float64array:"),this.dispatch(Array.prototype.slice.call(o))},arraybuffer(o){return r("arraybuffer:"),this.dispatch(new Uint8Array(o))},url(o){return r("url:"+o.toString())},map(o){r("map:");const s=[...o];return this.array(s,e.unorderedSets!==!1)},set(o){r("set:");const s=[...o];return this.array(s,e.unorderedSets!==!1)},file(o){return r("file:"),this.dispatch([o.name,o.size,o.type,o.lastModfied])},blob(){if(e.ignoreUnknown)return r("[blob]");throw new Error(`Hashing Blob objects is currently not supported Use "options.replacer" or "options.ignoreUnknown" -`)},domwindow(){return r("domwindow")},bigint(o){return r("bigint:"+o.toString())},process(){return r("process")},timer(){return r("timer")},pipe(){return r("pipe")},tcp(){return r("tcp")},udp(){return r("udp")},tty(){return r("tty")},statwatcher(){return r("statwatcher")},securecontext(){return r("securecontext")},connection(){return r("connection")},zlib(){return r("zlib")},context(){return r("context")},nodescript(){return r("nodescript")},httpparser(){return r("httpparser")},dataview(){return r("dataview")},signal(){return r("signal")},fsevent(){return r("fsevent")},tlswrap(){return r("tlswrap")}}}const Sp="[native code] }",W_=Sp.length;function ju(e){return typeof e!="function"?!1:Function.prototype.toString.call(e).slice(-W_)===Sp}class Rn{constructor(t,n){t=this.words=t||[],this.sigBytes=n===void 0?t.length*4:n}toString(t){return(t||q_).stringify(this)}concat(t){if(this.clamp(),this.sigBytes%4)for(let n=0;n>>2]>>>24-n%4*8&255;this.words[this.sigBytes+n>>>2]|=r<<24-(this.sigBytes+n)%4*8}else for(let n=0;n>>2]=t.words[n>>>2];return this.sigBytes+=t.sigBytes,this}clamp(){this.words[this.sigBytes>>>2]&=4294967295<<32-this.sigBytes%4*8,this.words.length=Math.ceil(this.sigBytes/4)}clone(){return new Rn([...this.words])}}const q_={stringify(e){const t=[];for(let n=0;n>>2]>>>24-n%4*8&255;t.push((r>>>4).toString(16),(r&15).toString(16))}return t.join("")}},K_={stringify(e){const t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n=[];for(let r=0;r>>2]>>>24-r%4*8&255,s=e.words[r+1>>>2]>>>24-(r+1)%4*8&255,i=e.words[r+2>>>2]>>>24-(r+2)%4*8&255,a=o<<16|s<<8|i;for(let l=0;l<4&&r*8+l*6>>6*(3-l)&63))}return n.join("")}},G_={parse(e){const t=e.length,n=[];for(let r=0;r>>2]|=(e.charCodeAt(r)&255)<<24-r%4*8;return new Rn(n,t)}},Q_={parse(e){return G_.parse(unescape(encodeURIComponent(e)))}};class X_{constructor(){this._data=new Rn,this._nDataBytes=0,this._minBufferSize=0,this.blockSize=512/32}reset(){this._data=new Rn,this._nDataBytes=0}_append(t){typeof t=="string"&&(t=Q_.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes}_doProcessBlock(t,n){}_process(t){let n,r=this._data.sigBytes/(this.blockSize*4);t?r=Math.ceil(r):r=Math.max((r|0)-this._minBufferSize,0);const o=r*this.blockSize,s=Math.min(o*4,this._data.sigBytes);if(o){for(let i=0;i>>7)^(v<<14|v>>>18)^v>>>3,_=Vn[d-2],C=(_<<15|_>>>17)^(_<<13|_>>>19)^_>>>10;Vn[d]=m+Vn[d-7]+C+Vn[d-16]}const p=l&c^~l&u,h=o&s^o&i^s&i,g=(o<<30|o>>>2)^(o<<19|o>>>13)^(o<<10|o>>>22),y=(l<<26|l>>>6)^(l<<21|l>>>11)^(l<<7|l>>>25),x=f+y+p+J_[d]+Vn[d],b=g+h;f=u,u=c,c=l,l=a+x|0,a=i,i=s,s=o,o=x+b|0}r[0]=r[0]+o|0,r[1]=r[1]+s|0,r[2]=r[2]+i|0,r[3]=r[3]+a|0,r[4]=r[4]+l|0,r[5]=r[5]+c|0,r[6]=r[6]+u|0,r[7]=r[7]+f|0}finalize(t){super.finalize(t);const n=this._nDataBytes*8,r=this._data.sigBytes*8;return this._data.words[r>>>5]|=128<<24-r%32,this._data.words[(r+64>>>9<<4)+14]=Math.floor(n/4294967296),this._data.words[(r+64>>>9<<4)+15]=n,this._data.sigBytes=this._data.words.length*4,this._process(),this._hash}}function e1(e){return new Z_().finalize(e).toString(K_)}function Ao(e,t={}){const n=typeof e=="string"?e:xa(e,t);return e1(n).slice(0,10)}function t1(e,t,n={}){return e===t||xa(e,n)===xa(t,n)}const n1={path:"/",watch:!0,decode:e=>Po(decodeURIComponent(e)),encode:e=>encodeURIComponent(typeof e=="string"?e:JSON.stringify(e))};function _s(e,t){var l;const n={...n1,...t},r=r1(n)||{};let o;n.maxAge!==void 0?o=n.maxAge*1e3:n.expires&&(o=n.expires.getTime()-Date.now());const s=o!==void 0&&o<=0,i=s?void 0:r[e]??((l=n.default)==null?void 0:l.call(n)),a=o&&!s?i1(i,o):B(i);{const c=typeof BroadcastChannel>"u"?null:new BroadcastChannel(`nuxt:cookies:${e}`),u=()=>{s1(e,a.value,n),c==null||c.postMessage(n.encode(a.value))};let f=!1;Xa()&&Ya(()=>{f=!0,u(),c==null||c.close()}),c&&(c.onmessage=d=>{f=!0,a.value=n.decode(d.data),hn(()=>{f=!1})}),n.watch?ze(a,()=>{f||u()},{deep:n.watch!=="shallow"}):u()}return a}function r1(e={}){return I0(document.cookie,e)}function o1(e,t,n={}){return t==null?fu(e,t,{...n,maxAge:-1}):fu(e,t,n)}function s1(e,t,n={}){document.cookie=o1(e,t,n)}function i1(e,t){let n;return Ya(()=>{clearTimeout(n)}),Vf((r,o)=>({get(){return r(),e},set(s){clearTimeout(n),n=setTimeout(()=>{e=void 0,o()},t),e=s,o()}}))}const a1=ot(e=>{const t=Lt().public.studio||{},n=jn(),r=_s("previewToken",{sameSite:"none",secure:!0}),o=yr("studio-client-db",()=>null);async function s(){const i=await Q(()=>import("./useStudio.7c0e5dea.js"),["./useStudio.7c0e5dea.js","./useStudio.3a708072.css"],import.meta.url).then(c=>c.useStudio),{mountPreviewUI:a,initiateIframeCommunication:l}=i();a(),l()}if(t.apiURL){if(Object.prototype.hasOwnProperty.call(n.query,"preview")&&!n.query.preview||!n.query.preview&&!r.value)return;n.query.preview&&(r.value=String(n.query.preview)),window.sessionStorage.setItem("previewToken",String(r.value)),e.hook("content:storage",i=>{o.value=i}),e.hook("app:mounted",async()=>{await s()})}});function l1(e,t,n){const r=/^localhost$|^127(?:\.[0-9]+){0,2}\.[0-9]+$|^(?:0*:)*?:?0*1$/.test(location.hostname)||location.protocol==="file:";if(!t.trackLocalhost&&r)return console.warn("[Plausible] Ignoring event because website is running locally");try{if(window.localStorage.plausible_ignore==="true")return console.warn('[Plausible] Ignoring event because "plausible_ignore" is set to "true" in localStorage')}catch{}const o={n:e,u:t.url,d:t.domain,r:t.referrer,w:t.deviceWidth,h:t.hashMode?1:0,p:n&&n.props?JSON.stringify(n.props):void 0},s=new XMLHttpRequest;s.open("POST",`${t.apiHost}/api/event`,!0),s.setRequestHeader("Content-Type","text/plain"),s.send(JSON.stringify(o)),s.onreadystatechange=()=>{s.readyState===4&&n&&n.callback&&n.callback()}}function c1(e){const t=()=>({hashMode:!1,trackLocalhost:!1,url:location.href,domain:location.hostname,referrer:document.referrer||null,deviceWidth:window.innerWidth,apiHost:"https://plausible.io",...e}),n=(i,a,l)=>{l1(i,{...t(),...l},a)},r=(i,a)=>{n("pageview",a,i)};return{trackEvent:n,trackPageview:r,enableAutoPageviews:()=>{const i=()=>r(),a=history.pushState;return a&&(history.pushState=function(l,c,u){a.apply(this,[l,c,u]),i()},addEventListener("popstate",i)),e&&e.hashMode&&addEventListener("hashchange",i),r(),function(){a&&(history.pushState=a,removeEventListener("popstate",i)),e&&e.hashMode&&removeEventListener("hashchange",i)}},enableAutoOutboundTracking:(i=document,a={subtree:!0,childList:!0,attributes:!0,attributeFilter:["href"]})=>{function l(p){n("Outbound Link: Click",{props:{url:this.href}}),typeof process<"u"&&process,setTimeout(()=>{location.href=this.href},150),p.preventDefault()}const c=new Set;function u(p){p instanceof HTMLAnchorElement?p.host!==location.host&&(p.addEventListener("click",l),c.add(p)):"querySelectorAll"in p&&p.querySelectorAll("a").forEach(u)}function f(p){p instanceof HTMLAnchorElement?(p.removeEventListener("click",l),c.delete(p)):"querySelectorAll"in p&&p.querySelectorAll("a").forEach(f)}const d=new MutationObserver(p=>{p.forEach(h=>{h.type==="attributes"?(f(h.target),u(h.target)):h.type==="childList"&&(h.addedNodes.forEach(u),h.removedNodes.forEach(f))})});return i.querySelectorAll("a").forEach(u),d.observe(i,a),function(){c.forEach(h=>{h.removeEventListener("click",l)}),c.clear(),d.disconnect()}}}}const u1=ot(()=>{const{plausible:e}=Lt().public,t=c1({...e,domain:e.domain||window.location.hostname});return e.autoPageviews&&t.enableAutoPageviews(),e.autoOutboundTracking&&t.enableAutoOutboundTracking(),{provide:{plausible:t}}});function ft(){for(var e=0,t,n,r="";ee&&(t=0,r=n,n=new Map)}return{get:function(i){var a=n.get(i);if(a!==void 0)return a;if((a=r.get(i))!==void 0)return o(i,a),a},set:function(i,a){n.has(i)?n.set(i,a):o(i,a)}}}var Op="!";function v1(e){var t=e.separator||":",n=t.length===1,r=t[0],o=t.length;return function(i){for(var a=[],l=0,c=0,u,f=0;fc?u-c:void 0;return{modifiers:a,hasImportantModifier:h,baseClassName:g,maybePostfixModifierPosition:y}}}function y1(e){if(e.length<=1)return e;var t=[],n=[];return e.forEach(function(r){var o=r[0]==="[";o?(t.push.apply(t,n.sort().concat([r])),n=[]):n.push(r)}),t.push.apply(t,n.sort()),t}function b1(e){return{cache:m1(e.cacheSize),splitModifiers:v1(e),...f1(e)}}var w1=/\s+/;function _1(e,t){var n=t.splitModifiers,r=t.getClassGroupId,o=t.getConflictingClassGroupIds,s=new Set;return e.trim().split(w1).map(function(i){var a=n(i),l=a.modifiers,c=a.hasImportantModifier,u=a.baseClassName,f=a.maybePostfixModifierPosition,d=r(f?u.substring(0,f):u),p=!!f;if(!d){if(!f)return{isTailwindClass:!1,originalClassName:i};if(d=r(u),!d)return{isTailwindClass:!1,originalClassName:i};p=!1}var h=y1(l).join(":"),g=c?h+Op:h;return{isTailwindClass:!0,modifierId:g,classGroupId:d,originalClassName:i,hasPostfixModifier:p}}).reverse().filter(function(i){if(!i.isTailwindClass)return!0;var a=i.modifierId,l=i.classGroupId,c=i.hasPostfixModifier,u=a+l;return s.has(u)?!1:(s.add(u),o(l,c).forEach(function(f){return s.add(a+f)}),!0)}).reverse().map(function(i){return i.originalClassName}).join(" ")}function Ea(){for(var e=arguments.length,t=new Array(e),n=0;n1?t-1:0),r=1;r{const s=Number(o);return isNaN(s)?o:s}));let r=e;for(const o of t){if(r==null)return n;r=r[o]}return r!==void 0?r:n}const B1=F1({classGroups:{icons:[e=>/^i-/.test(e)]}}),H1=El((e,t,n,r)=>{if(r!=="default"&&typeof e[t]=="string"&&typeof n=="string"&&e[t]&&n)return e[t]=B1(e[t],n),!0});function Wt(e,...t){return e==="override"?oi({},...t):H1({},...t)}function Hu(e){const t=/^#?([a-f\d])([a-f\d])([a-f\d])$/i;e=e.replace(t,function(r,o,s,i){return o+o+s+s+i+i});const n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return n?`${parseInt(n[1],16)} ${parseInt(n[2],16)} ${parseInt(n[3],16)}`:null}const U1="inherit",z1="currentColor",V1="transparent",W1="#000",q1="#fff",K1={50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a",950:"#020617"},G1={50:"rgb(var(--color-gray-50) / )",100:"rgb(var(--color-gray-100) / )",200:"rgb(var(--color-gray-200) / )",300:"rgb(var(--color-gray-300) / )",400:"rgb(var(--color-gray-400) / )",500:"rgb(var(--color-gray-500) / )",600:"rgb(var(--color-gray-600) / )",700:"rgb(var(--color-gray-700) / )",800:"rgb(var(--color-gray-800) / )",900:"rgb(var(--color-gray-900) / )",950:"rgb(var(--color-gray-950) / )"},Q1={50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b",950:"#09090b"},X1={50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717",950:"#0a0a0a"},Y1={50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917",950:"#0c0a09"},J1={50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d",950:"#450a0a"},Z1={50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12",950:"#431407"},ex={50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f",950:"#451a03"},tx={50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12",950:"#422006"},nx={50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314",950:"#1a2e05"},rx={50:"#EFFDF5",100:"#D9FBE8",200:"#B3F5D1",300:"#75EDAE",400:"#00DC82",500:"#00C16A",600:"#00A155",700:"#007F45",800:"#016538",900:"#0A5331",950:"#052e16"},ox={50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b",950:"#022c22"},sx={50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a",950:"#042f2e"},ix={50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63",950:"#083344"},ax={50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e",950:"#082f49"},lx={50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a",950:"#172554"},cx={50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81",950:"#1e1b4b"},ux={50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95",950:"#2e1065"},fx={50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87",950:"#3b0764"},dx={50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75",950:"#4a044e"},px={50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843",950:"#500724"},hx={50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337",950:"#4c0519"},gx="rgb(var(--ui-background) / )",mx="rgb(var(--ui-foreground) / )",vx={50:"rgb(var(--color-primary-50) / )",100:"rgb(var(--color-primary-100) / )",200:"rgb(var(--color-primary-200) / )",300:"rgb(var(--color-primary-300) / )",400:"rgb(var(--color-primary-400) / )",500:"rgb(var(--color-primary-500) / )",600:"rgb(var(--color-primary-600) / )",700:"rgb(var(--color-primary-700) / )",800:"rgb(var(--color-primary-800) / )",900:"rgb(var(--color-primary-900) / )",950:"rgb(var(--color-primary-950) / )",DEFAULT:"rgb(var(--color-primary-DEFAULT) / )"},yx={50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827",950:"#030712"},us={inherit:U1,current:z1,transparent:V1,black:W1,white:q1,slate:K1,gray:G1,zinc:Q1,neutral:X1,stone:Y1,red:J1,orange:Z1,amber:ex,yellow:tx,lime:nx,green:rx,emerald:ox,teal:sx,cyan:ix,sky:ax,blue:lx,indigo:cx,violet:ux,purple:fx,fuchsia:dx,pink:px,rose:hx,background:gx,foreground:mx,primary:vx,cool:yx},bx=ot(()=>{const e=at(),t=Ae(),n=j(()=>{const o=us[e.ui.primary],s=us[e.ui.gray];return o||console.warn(`[@nuxt/ui] Primary color '${e.ui.primary}' not found in Tailwind config`),s||console.warn(`[@nuxt/ui] Gray color '${e.ui.gray}' not found in Tailwind config`),`:root { +`)},domwindow(){return r("domwindow")},bigint(o){return r("bigint:"+o.toString())},process(){return r("process")},timer(){return r("timer")},pipe(){return r("pipe")},tcp(){return r("tcp")},udp(){return r("udp")},tty(){return r("tty")},statwatcher(){return r("statwatcher")},securecontext(){return r("securecontext")},connection(){return r("connection")},zlib(){return r("zlib")},context(){return r("context")},nodescript(){return r("nodescript")},httpparser(){return r("httpparser")},dataview(){return r("dataview")},signal(){return r("signal")},fsevent(){return r("fsevent")},tlswrap(){return r("tlswrap")}}}const Sp="[native code] }",W_=Sp.length;function ju(e){return typeof e!="function"?!1:Function.prototype.toString.call(e).slice(-W_)===Sp}class Rn{constructor(t,n){t=this.words=t||[],this.sigBytes=n===void 0?t.length*4:n}toString(t){return(t||q_).stringify(this)}concat(t){if(this.clamp(),this.sigBytes%4)for(let n=0;n>>2]>>>24-n%4*8&255;this.words[this.sigBytes+n>>>2]|=r<<24-(this.sigBytes+n)%4*8}else for(let n=0;n>>2]=t.words[n>>>2];return this.sigBytes+=t.sigBytes,this}clamp(){this.words[this.sigBytes>>>2]&=4294967295<<32-this.sigBytes%4*8,this.words.length=Math.ceil(this.sigBytes/4)}clone(){return new Rn([...this.words])}}const q_={stringify(e){const t=[];for(let n=0;n>>2]>>>24-n%4*8&255;t.push((r>>>4).toString(16),(r&15).toString(16))}return t.join("")}},K_={stringify(e){const t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n=[];for(let r=0;r>>2]>>>24-r%4*8&255,s=e.words[r+1>>>2]>>>24-(r+1)%4*8&255,i=e.words[r+2>>>2]>>>24-(r+2)%4*8&255,a=o<<16|s<<8|i;for(let l=0;l<4&&r*8+l*6>>6*(3-l)&63))}return n.join("")}},G_={parse(e){const t=e.length,n=[];for(let r=0;r>>2]|=(e.charCodeAt(r)&255)<<24-r%4*8;return new Rn(n,t)}},Q_={parse(e){return G_.parse(unescape(encodeURIComponent(e)))}};class X_{constructor(){this._data=new Rn,this._nDataBytes=0,this._minBufferSize=0,this.blockSize=512/32}reset(){this._data=new Rn,this._nDataBytes=0}_append(t){typeof t=="string"&&(t=Q_.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes}_doProcessBlock(t,n){}_process(t){let n,r=this._data.sigBytes/(this.blockSize*4);t?r=Math.ceil(r):r=Math.max((r|0)-this._minBufferSize,0);const o=r*this.blockSize,s=Math.min(o*4,this._data.sigBytes);if(o){for(let i=0;i>>7)^(v<<14|v>>>18)^v>>>3,_=Vn[d-2],C=(_<<15|_>>>17)^(_<<13|_>>>19)^_>>>10;Vn[d]=m+Vn[d-7]+C+Vn[d-16]}const p=l&c^~l&u,h=o&s^o&i^s&i,g=(o<<30|o>>>2)^(o<<19|o>>>13)^(o<<10|o>>>22),y=(l<<26|l>>>6)^(l<<21|l>>>11)^(l<<7|l>>>25),x=f+y+p+J_[d]+Vn[d],b=g+h;f=u,u=c,c=l,l=a+x|0,a=i,i=s,s=o,o=x+b|0}r[0]=r[0]+o|0,r[1]=r[1]+s|0,r[2]=r[2]+i|0,r[3]=r[3]+a|0,r[4]=r[4]+l|0,r[5]=r[5]+c|0,r[6]=r[6]+u|0,r[7]=r[7]+f|0}finalize(t){super.finalize(t);const n=this._nDataBytes*8,r=this._data.sigBytes*8;return this._data.words[r>>>5]|=128<<24-r%32,this._data.words[(r+64>>>9<<4)+14]=Math.floor(n/4294967296),this._data.words[(r+64>>>9<<4)+15]=n,this._data.sigBytes=this._data.words.length*4,this._process(),this._hash}}function e1(e){return new Z_().finalize(e).toString(K_)}function Ao(e,t={}){const n=typeof e=="string"?e:xa(e,t);return e1(n).slice(0,10)}function t1(e,t,n={}){return e===t||xa(e,n)===xa(t,n)}const n1={path:"/",watch:!0,decode:e=>Po(decodeURIComponent(e)),encode:e=>encodeURIComponent(typeof e=="string"?e:JSON.stringify(e))};function _s(e,t){var l;const n={...n1,...t},r=r1(n)||{};let o;n.maxAge!==void 0?o=n.maxAge*1e3:n.expires&&(o=n.expires.getTime()-Date.now());const s=o!==void 0&&o<=0,i=s?void 0:r[e]??((l=n.default)==null?void 0:l.call(n)),a=o&&!s?i1(i,o):B(i);{const c=typeof BroadcastChannel>"u"?null:new BroadcastChannel(`nuxt:cookies:${e}`),u=()=>{s1(e,a.value,n),c==null||c.postMessage(n.encode(a.value))};let f=!1;Xa()&&Ya(()=>{f=!0,u(),c==null||c.close()}),c&&(c.onmessage=d=>{f=!0,a.value=n.decode(d.data),hn(()=>{f=!1})}),n.watch?ze(a,()=>{f||u()},{deep:n.watch!=="shallow"}):u()}return a}function r1(e={}){return I0(document.cookie,e)}function o1(e,t,n={}){return t==null?fu(e,t,{...n,maxAge:-1}):fu(e,t,n)}function s1(e,t,n={}){document.cookie=o1(e,t,n)}function i1(e,t){let n;return Ya(()=>{clearTimeout(n)}),Vf((r,o)=>({get(){return r(),e},set(s){clearTimeout(n),n=setTimeout(()=>{e=void 0,o()},t),e=s,o()}}))}const a1=ot(e=>{const t=Lt().public.studio||{},n=jn(),r=_s("previewToken",{sameSite:"none",secure:!0}),o=yr("studio-client-db",()=>null);async function s(){const i=await Q(()=>import("./useStudio.33bdffc2.js"),["./useStudio.33bdffc2.js","./useStudio.3a708072.css"],import.meta.url).then(c=>c.useStudio),{mountPreviewUI:a,initiateIframeCommunication:l}=i();a(),l()}if(t.apiURL){if(Object.prototype.hasOwnProperty.call(n.query,"preview")&&!n.query.preview||!n.query.preview&&!r.value)return;n.query.preview&&(r.value=String(n.query.preview)),window.sessionStorage.setItem("previewToken",String(r.value)),e.hook("content:storage",i=>{o.value=i}),e.hook("app:mounted",async()=>{await s()})}});function l1(e,t,n){const r=/^localhost$|^127(?:\.[0-9]+){0,2}\.[0-9]+$|^(?:0*:)*?:?0*1$/.test(location.hostname)||location.protocol==="file:";if(!t.trackLocalhost&&r)return console.warn("[Plausible] Ignoring event because website is running locally");try{if(window.localStorage.plausible_ignore==="true")return console.warn('[Plausible] Ignoring event because "plausible_ignore" is set to "true" in localStorage')}catch{}const o={n:e,u:t.url,d:t.domain,r:t.referrer,w:t.deviceWidth,h:t.hashMode?1:0,p:n&&n.props?JSON.stringify(n.props):void 0},s=new XMLHttpRequest;s.open("POST",`${t.apiHost}/api/event`,!0),s.setRequestHeader("Content-Type","text/plain"),s.send(JSON.stringify(o)),s.onreadystatechange=()=>{s.readyState===4&&n&&n.callback&&n.callback()}}function c1(e){const t=()=>({hashMode:!1,trackLocalhost:!1,url:location.href,domain:location.hostname,referrer:document.referrer||null,deviceWidth:window.innerWidth,apiHost:"https://plausible.io",...e}),n=(i,a,l)=>{l1(i,{...t(),...l},a)},r=(i,a)=>{n("pageview",a,i)};return{trackEvent:n,trackPageview:r,enableAutoPageviews:()=>{const i=()=>r(),a=history.pushState;return a&&(history.pushState=function(l,c,u){a.apply(this,[l,c,u]),i()},addEventListener("popstate",i)),e&&e.hashMode&&addEventListener("hashchange",i),r(),function(){a&&(history.pushState=a,removeEventListener("popstate",i)),e&&e.hashMode&&removeEventListener("hashchange",i)}},enableAutoOutboundTracking:(i=document,a={subtree:!0,childList:!0,attributes:!0,attributeFilter:["href"]})=>{function l(p){n("Outbound Link: Click",{props:{url:this.href}}),typeof process<"u"&&process,setTimeout(()=>{location.href=this.href},150),p.preventDefault()}const c=new Set;function u(p){p instanceof HTMLAnchorElement?p.host!==location.host&&(p.addEventListener("click",l),c.add(p)):"querySelectorAll"in p&&p.querySelectorAll("a").forEach(u)}function f(p){p instanceof HTMLAnchorElement?(p.removeEventListener("click",l),c.delete(p)):"querySelectorAll"in p&&p.querySelectorAll("a").forEach(f)}const d=new MutationObserver(p=>{p.forEach(h=>{h.type==="attributes"?(f(h.target),u(h.target)):h.type==="childList"&&(h.addedNodes.forEach(u),h.removedNodes.forEach(f))})});return i.querySelectorAll("a").forEach(u),d.observe(i,a),function(){c.forEach(h=>{h.removeEventListener("click",l)}),c.clear(),d.disconnect()}}}}const u1=ot(()=>{const{plausible:e}=Lt().public,t=c1({...e,domain:e.domain||window.location.hostname});return e.autoPageviews&&t.enableAutoPageviews(),e.autoOutboundTracking&&t.enableAutoOutboundTracking(),{provide:{plausible:t}}});function ft(){for(var e=0,t,n,r="";ee&&(t=0,r=n,n=new Map)}return{get:function(i){var a=n.get(i);if(a!==void 0)return a;if((a=r.get(i))!==void 0)return o(i,a),a},set:function(i,a){n.has(i)?n.set(i,a):o(i,a)}}}var Op="!";function v1(e){var t=e.separator||":",n=t.length===1,r=t[0],o=t.length;return function(i){for(var a=[],l=0,c=0,u,f=0;fc?u-c:void 0;return{modifiers:a,hasImportantModifier:h,baseClassName:g,maybePostfixModifierPosition:y}}}function y1(e){if(e.length<=1)return e;var t=[],n=[];return e.forEach(function(r){var o=r[0]==="[";o?(t.push.apply(t,n.sort().concat([r])),n=[]):n.push(r)}),t.push.apply(t,n.sort()),t}function b1(e){return{cache:m1(e.cacheSize),splitModifiers:v1(e),...f1(e)}}var w1=/\s+/;function _1(e,t){var n=t.splitModifiers,r=t.getClassGroupId,o=t.getConflictingClassGroupIds,s=new Set;return e.trim().split(w1).map(function(i){var a=n(i),l=a.modifiers,c=a.hasImportantModifier,u=a.baseClassName,f=a.maybePostfixModifierPosition,d=r(f?u.substring(0,f):u),p=!!f;if(!d){if(!f)return{isTailwindClass:!1,originalClassName:i};if(d=r(u),!d)return{isTailwindClass:!1,originalClassName:i};p=!1}var h=y1(l).join(":"),g=c?h+Op:h;return{isTailwindClass:!0,modifierId:g,classGroupId:d,originalClassName:i,hasPostfixModifier:p}}).reverse().filter(function(i){if(!i.isTailwindClass)return!0;var a=i.modifierId,l=i.classGroupId,c=i.hasPostfixModifier,u=a+l;return s.has(u)?!1:(s.add(u),o(l,c).forEach(function(f){return s.add(a+f)}),!0)}).reverse().map(function(i){return i.originalClassName}).join(" ")}function Ea(){for(var e=arguments.length,t=new Array(e),n=0;n1?t-1:0),r=1;r{const s=Number(o);return isNaN(s)?o:s}));let r=e;for(const o of t){if(r==null)return n;r=r[o]}return r!==void 0?r:n}const B1=F1({classGroups:{icons:[e=>/^i-/.test(e)]}}),H1=El((e,t,n,r)=>{if(r!=="default"&&typeof e[t]=="string"&&typeof n=="string"&&e[t]&&n)return e[t]=B1(e[t],n),!0});function Wt(e,...t){return e==="override"?oi({},...t):H1({},...t)}function Hu(e){const t=/^#?([a-f\d])([a-f\d])([a-f\d])$/i;e=e.replace(t,function(r,o,s,i){return o+o+s+s+i+i});const n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return n?`${parseInt(n[1],16)} ${parseInt(n[2],16)} ${parseInt(n[3],16)}`:null}const U1="inherit",z1="currentColor",V1="transparent",W1="#000",q1="#fff",K1={50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a",950:"#020617"},G1={50:"rgb(var(--color-gray-50) / )",100:"rgb(var(--color-gray-100) / )",200:"rgb(var(--color-gray-200) / )",300:"rgb(var(--color-gray-300) / )",400:"rgb(var(--color-gray-400) / )",500:"rgb(var(--color-gray-500) / )",600:"rgb(var(--color-gray-600) / )",700:"rgb(var(--color-gray-700) / )",800:"rgb(var(--color-gray-800) / )",900:"rgb(var(--color-gray-900) / )",950:"rgb(var(--color-gray-950) / )"},Q1={50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b",950:"#09090b"},X1={50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717",950:"#0a0a0a"},Y1={50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917",950:"#0c0a09"},J1={50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d",950:"#450a0a"},Z1={50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12",950:"#431407"},ex={50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f",950:"#451a03"},tx={50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12",950:"#422006"},nx={50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314",950:"#1a2e05"},rx={50:"#EFFDF5",100:"#D9FBE8",200:"#B3F5D1",300:"#75EDAE",400:"#00DC82",500:"#00C16A",600:"#00A155",700:"#007F45",800:"#016538",900:"#0A5331",950:"#052e16"},ox={50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b",950:"#022c22"},sx={50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a",950:"#042f2e"},ix={50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63",950:"#083344"},ax={50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e",950:"#082f49"},lx={50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a",950:"#172554"},cx={50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81",950:"#1e1b4b"},ux={50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95",950:"#2e1065"},fx={50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87",950:"#3b0764"},dx={50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75",950:"#4a044e"},px={50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843",950:"#500724"},hx={50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337",950:"#4c0519"},gx="rgb(var(--ui-background) / )",mx="rgb(var(--ui-foreground) / )",vx={50:"rgb(var(--color-primary-50) / )",100:"rgb(var(--color-primary-100) / )",200:"rgb(var(--color-primary-200) / )",300:"rgb(var(--color-primary-300) / )",400:"rgb(var(--color-primary-400) / )",500:"rgb(var(--color-primary-500) / )",600:"rgb(var(--color-primary-600) / )",700:"rgb(var(--color-primary-700) / )",800:"rgb(var(--color-primary-800) / )",900:"rgb(var(--color-primary-900) / )",950:"rgb(var(--color-primary-950) / )",DEFAULT:"rgb(var(--color-primary-DEFAULT) / )"},yx={50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827",950:"#030712"},us={inherit:U1,current:z1,transparent:V1,black:W1,white:q1,slate:K1,gray:G1,zinc:Q1,neutral:X1,stone:Y1,red:J1,orange:Z1,amber:ex,yellow:tx,lime:nx,green:rx,emerald:ox,teal:sx,cyan:ix,sky:ax,blue:lx,indigo:cx,violet:ux,purple:fx,fuchsia:dx,pink:px,rose:hx,background:gx,foreground:mx,primary:vx,cool:yx},bx=ot(()=>{const e=at(),t=Ae(),n=j(()=>{const o=us[e.ui.primary],s=us[e.ui.gray];return o||console.warn(`[@nuxt/ui] Primary color '${e.ui.primary}' not found in Tailwind config`),s||console.warn(`[@nuxt/ui] Gray color '${e.ui.gray}' not found in Tailwind config`),`:root { ${Object.entries(o||us.green).map(([i,a])=>`--color-primary-${i}: ${Hu(a)};`).join(` `)} --color-primary-DEFAULT: var(--color-primary-500); @@ -30,4 +30,4 @@ ${Object.entries(s||us.cool).map(([i,a])=>`--color-gray-${i}: ${Hu(a)};`).join(` }`),r={style:[{innerHTML:()=>n.value,tagPriority:-2,id:"nuxt-ui-variables"}]};if(t.isHydrating&&!t.payload.serverRendered){const o=document.createElement("style");o.innerHTML=n.value,o.setAttribute("data-nuxt-ui-variables",""),document.head.appendChild(o),r.script=[{innerHTML:"document.head.removeChild(document.querySelector('[data-nuxt-ui-variables]'))"}]}Vo(r)}),Mp=Object.freeze({left:0,top:0,width:16,height:16}),jp=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Ol=Object.freeze({...Mp,...jp});Object.freeze({...Ol,body:"",hidden:!1});({...Mp});const Dp=Object.freeze({width:null,height:null}),Fp=Object.freeze({...Dp,...jp});function Ax(e,t){const n={...e};for(const r in t){const o=t[r],s=typeof o;r in Dp?(o===null||o&&(s==="string"||s==="number"))&&(n[r]=o):s===typeof n[r]&&(n[r]=r==="rotate"?o%4:o)}return n}const Ox=/[\s,]+/;function $x(e,t){t.split(Ox).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function Ix(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function r(o){for(;o<0;)o+=4;return o%4}if(n===""){const o=parseInt(e);return isNaN(o)?0:r(o)}else if(n!==e){let o=0;switch(n){case"%":o=25;break;case"deg":o=90}if(o){let s=parseFloat(e.slice(0,e.length-n.length));return isNaN(s)?0:(s=s/o,s%1===0?r(s):0)}}return t}const Rx=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Lx=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function Uu(e,t,n){if(t===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*t*n)/n;if(typeof e!="string")return e;const r=e.split(Rx);if(r===null||!r.length)return e;const o=[];let s=r.shift(),i=Lx.test(s);for(;;){if(i){const a=parseFloat(s);isNaN(a)?o.push(s):o.push(Math.ceil(a*t*n)/n)}else o.push(s);if(s=r.shift(),s===void 0)return o.join("");i=!i}}const Mx=e=>e==="unset"||e==="undefined"||e==="none";function jx(e,t){const n={...Ol,...e},r={...Fp,...t},o={left:n.left,top:n.top,width:n.width,height:n.height};let s=n.body;[n,r].forEach(h=>{const g=[],y=h.hFlip,x=h.vFlip;let b=h.rotate;y?x?b+=2:(g.push("translate("+(o.width+o.left).toString()+" "+(0-o.top).toString()+")"),g.push("scale(-1 1)"),o.top=o.left=0):x&&(g.push("translate("+(0-o.left).toString()+" "+(o.height+o.top).toString()+")"),g.push("scale(1 -1)"),o.top=o.left=0);let v;switch(b<0&&(b-=Math.floor(b/4)*4),b=b%4,b){case 1:v=o.height/2+o.top,g.unshift("rotate(90 "+v.toString()+" "+v.toString()+")");break;case 2:g.unshift("rotate(180 "+(o.width/2+o.left).toString()+" "+(o.height/2+o.top).toString()+")");break;case 3:v=o.width/2+o.left,g.unshift("rotate(-90 "+v.toString()+" "+v.toString()+")");break}b%2===1&&(o.left!==o.top&&(v=o.left,o.left=o.top,o.top=v),o.width!==o.height&&(v=o.width,o.width=o.height,o.height=v)),g.length&&(s=''+s+"")});const i=r.width,a=r.height,l=o.width,c=o.height;let u,f;i===null?(f=a===null?"1em":a==="auto"?c:a,u=Uu(f,l/c)):(u=i==="auto"?l:i,f=a===null?Uu(u,c/l):a==="auto"?c:a);const d={},p=(h,g)=>{Mx(g)||(d[h]=g.toString())};return p("width",u),p("height",f),d.viewBox=o.left.toString()+" "+o.top.toString()+" "+l.toString()+" "+c.toString(),{attributes:d,body:s}}const Dx=/\sid="(\S+)"/g,Fx="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let Nx=0;function Bx(e,t=Fx){const n=[];let r;for(;r=Dx.exec(e);)n.push(r[1]);if(!n.length)return e;const o="suffix"+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(s=>{const i=typeof t=="function"?t(s):t+(Nx++).toString(),a=s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+a+')([")]|\\.[a-z])',"g"),"$1"+i+o+"$3")}),e=e.replace(new RegExp(o,"g"),""),e}function Hx(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const r in t)n+=" "+r+'="'+t[r]+'"';return'"+e+""}function Ux(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(//g,"%3E").replace(/\s+/g," ")}function zx(e){return"data:image/svg+xml,"+Ux(e)}function Vx(e){return'url("'+zx(e)+'")'}const zu={...Fp,inline:!1},Wx={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},qx={display:"inline-block"},Sa={backgroundColor:"currentColor"},Np={backgroundColor:"transparent"},Vu={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},Wu={webkitMask:Sa,mask:Sa,background:Np};for(const e in Wu){const t=Wu[e];for(const n in Vu)t[e+n]=Vu[n]}const xs={};["horizontal","vertical"].forEach(e=>{const t=e.slice(0,1)+"Flip";xs[e+"-flip"]=t,xs[e.slice(0,1)+"-flip"]=t,xs[e+"Flip"]=t});function qu(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const Kx=(e,t)=>{const n=Ax(zu,t),r={...Wx},o=t.mode||"svg",s={},i=t.style,a=typeof i=="object"&&!(i instanceof Array)?i:{};for(let g in t){const y=t[g];if(y!==void 0)switch(g){case"icon":case"style":case"onLoad":case"mode":break;case"inline":case"hFlip":case"vFlip":n[g]=y===!0||y==="true"||y===1;break;case"flip":typeof y=="string"&&$x(n,y);break;case"color":s.color=y;break;case"rotate":typeof y=="string"?n[g]=Ix(y):typeof y=="number"&&(n[g]=y);break;case"ariaHidden":case"aria-hidden":y!==!0&&y!=="true"&&delete r["aria-hidden"];break;default:{const x=xs[g];x?(y===!0||y==="true"||y===1)&&(n[x]=!0):zu[g]===void 0&&(r[g]=y)}}}const l=jx(e,n),c=l.attributes;if(n.inline&&(s.verticalAlign="-0.125em"),o==="svg"){r.style={...s,...a},Object.assign(r,c);let g=0,y=t.id;return typeof y=="string"&&(y=y.replace(/-/g,"_")),r.innerHTML=Bx(l.body,y?()=>y+"ID"+g++:"iconifyVue"),me("svg",r)}const{body:u,width:f,height:d}=e,p=o==="mask"||(o==="bg"?!1:u.indexOf("currentColor")!==-1),h=Hx(u,{...c,width:f+"",height:d+""});return r.style={...s,"--svg":Vx(h),width:qu(c.width),height:qu(c.height),...qx,...p?Sa:Np,...a},me("span",r)},Gx=Object.create(null),Qx=ne({inheritAttrs:!1,render(){const e=this.$attrs,t=e.icon,n=typeof t=="string"?Gx[t]:typeof t=="object"?t:null;return n===null||typeof n!="object"||typeof n.body!="string"?this.$slots.default?this.$slots.default():null:Kx({...Ol,...n},e)}}),vo=/^[a-z0-9]+(-[a-z0-9]+)*$/,ci=(e,t,n,r="")=>{const o=e.split(":");if(e.slice(0,1)==="@"){if(o.length<2||o.length>3)return null;r=o.shift().slice(1)}if(o.length>3||!o.length)return null;if(o.length>1){const a=o.pop(),l=o.pop(),c={provider:o.length>0?o[0]:r,prefix:l,name:a};return t&&!ks(c)?null:c}const s=o[0],i=s.split("-");if(i.length>1){const a={provider:r,prefix:i.shift(),name:i.join("-")};return t&&!ks(a)?null:a}if(n&&r===""){const a={provider:r,prefix:"",name:s};return t&&!ks(a,n)?null:a}return null},ks=(e,t)=>e?!!((e.provider===""||e.provider.match(vo))&&(t&&e.prefix===""||e.prefix.match(vo))&&e.name.match(vo)):!1,Bp=Object.freeze({left:0,top:0,width:16,height:16}),Hs=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),$l=Object.freeze({...Bp,...Hs}),Ta=Object.freeze({...$l,body:"",hidden:!1});function Xx(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const r=((e.rotate||0)+(t.rotate||0))%4;return r&&(n.rotate=r),n}function Ku(e,t){const n=Xx(e,t);for(const r in Ta)r in Hs?r in e&&!(r in n)&&(n[r]=Hs[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function Yx(e,t){const n=e.icons,r=e.aliases||Object.create(null),o=Object.create(null);function s(i){if(n[i])return o[i]=[];if(!(i in o)){o[i]=null;const a=r[i]&&r[i].parent,l=a&&s(a);l&&(o[i]=[a].concat(l))}return o[i]}return(t||Object.keys(n).concat(Object.keys(r))).forEach(s),o}function Jx(e,t,n){const r=e.icons,o=e.aliases||Object.create(null);let s={};function i(a){s=Ku(r[a]||o[a],s)}return i(t),n.forEach(i),Ku(e,s)}function Hp(e,t){const n=[];if(typeof e!="object"||typeof e.icons!="object")return n;e.not_found instanceof Array&&e.not_found.forEach(o=>{t(o,null),n.push(o)});const r=Yx(e);for(const o in r){const s=r[o];s&&(t(o,Jx(e,o,s)),n.push(o))}return n}const Zx={provider:"",aliases:{},not_found:{},...Bp};function Ri(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function Up(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!Ri(e,Zx))return null;const n=t.icons;for(const o in n){const s=n[o];if(!o.match(vo)||typeof s.body!="string"||!Ri(s,Ta))return null}const r=t.aliases||Object.create(null);for(const o in r){const s=r[o],i=s.parent;if(!o.match(vo)||typeof i!="string"||!n[i]&&!r[i]||!Ri(s,Ta))return null}return t}const Gu=Object.create(null);function ek(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function cr(e,t){const n=Gu[e]||(Gu[e]=Object.create(null));return n[t]||(n[t]=ek(e,t))}function Il(e,t){return Up(t)?Hp(t,(n,r)=>{r?e.icons[n]=r:e.missing.add(n)}):[]}function tk(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}let Oo=!1;function zp(e){return typeof e=="boolean"&&(Oo=e),Oo}function nk(e){const t=typeof e=="string"?ci(e,!0,Oo):e;if(t){const n=cr(t.provider,t.prefix),r=t.name;return n.icons[r]||(n.missing.has(r)?null:void 0)}}function rk(e,t){const n=ci(e,!0,Oo);if(!n)return!1;const r=cr(n.provider,n.prefix);return tk(r,n.name,t)}function ok(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),Oo&&!t&&!e.prefix){let o=!1;return Up(e)&&(e.prefix="",Hp(e,(s,i)=>{i&&rk(s,i)&&(o=!0)})),o}const n=e.prefix;if(!ks({provider:t,prefix:n,name:"a"}))return!1;const r=cr(t,n);return!!Il(r,e)}const sk=Object.freeze({width:null,height:null}),ik=Object.freeze({...sk,...Hs});""+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);const Aa=Object.create(null);function ak(e,t){Aa[e]=t}function Oa(e){return Aa[e]||Aa[""]}function Rl(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const Ll=Object.create(null),Jr=["https://api.simplesvg.com","https://api.unisvg.com"],Es=[];for(;Jr.length>0;)Jr.length===1||Math.random()>.5?Es.push(Jr.shift()):Es.push(Jr.pop());Ll[""]=Rl({resources:["https://api.iconify.design"].concat(Es)});function $a(e,t){const n=Rl(t);return n===null?!1:(Ll[e]=n,!0)}function Ml(e){return Ll[e]}const lk=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let Qu=lk();function ck(e,t){const n=Ml(e);if(!n)return 0;let r;if(!n.maxURL)r=0;else{let o=0;n.resources.forEach(i=>{o=Math.max(o,i.length)});const s=t+".json?icons=";r=n.maxURL-o-n.path.length-s.length}return r}function uk(e){return e===404}const fk=(e,t,n)=>{const r=[],o=ck(e,t),s="icons";let i={type:s,provider:e,prefix:t,icons:[]},a=0;return n.forEach((l,c)=>{a+=l.length+1,a>=o&&c>0&&(r.push(i),i={type:s,provider:e,prefix:t,icons:[]},a=l.length),i.icons.push(l)}),r.push(i),r};function dk(e){if(typeof e=="string"){const t=Ml(e);if(t)return t.path}return"/"}const pk=(e,t,n)=>{if(!Qu){n("abort",424);return}let r=dk(t.provider);switch(t.type){case"icons":{const s=t.prefix,a=t.icons.join(","),l=new URLSearchParams({icons:a});r+=s+".json?"+l.toString();break}case"custom":{const s=t.uri;r+=s.slice(0,1)==="/"?s.slice(1):s;break}default:n("abort",400);return}let o=503;Qu(e+r).then(s=>{const i=s.status;if(i!==200){setTimeout(()=>{n(uk(i)?"abort":"next",i)});return}return o=501,s.json()}).then(s=>{if(typeof s!="object"||s===null){setTimeout(()=>{s===404?n("abort",s):n("next",o)});return}setTimeout(()=>{n("success",s)})}).catch(()=>{n("next",o)})},hk={prepare:fk,send:pk};function gk(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((o,s)=>o.provider!==s.provider?o.provider.localeCompare(s.provider):o.prefix!==s.prefix?o.prefix.localeCompare(s.prefix):o.name.localeCompare(s.name));let r={provider:"",prefix:"",name:""};return e.forEach(o=>{if(r.name===o.name&&r.prefix===o.prefix&&r.provider===o.provider)return;r=o;const s=o.provider,i=o.prefix,a=o.name,l=n[s]||(n[s]=Object.create(null)),c=l[i]||(l[i]=cr(s,i));let u;a in c.icons?u=t.loaded:i===""||c.missing.has(a)?u=t.missing:u=t.pending;const f={provider:s,prefix:i,name:a};u.push(f)}),t}function Vp(e,t){e.forEach(n=>{const r=n.loaderCallbacks;r&&(n.loaderCallbacks=r.filter(o=>o.id!==t))})}function mk(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const r=e.provider,o=e.prefix;t.forEach(s=>{const i=s.icons,a=i.pending.length;i.pending=i.pending.filter(l=>{if(l.prefix!==o)return!0;const c=l.name;if(e.icons[c])i.loaded.push({provider:r,prefix:o,name:c});else if(e.missing.has(c))i.missing.push({provider:r,prefix:o,name:c});else return n=!0,!0;return!1}),i.pending.length!==a&&(n||Vp([e],s.id),s.callback(i.loaded.slice(0),i.missing.slice(0),i.pending.slice(0),s.abort))})}))}let vk=0;function yk(e,t,n){const r=vk++,o=Vp.bind(null,n,r);if(!t.pending.length)return o;const s={id:r,icons:t,callback:e,abort:o};return n.forEach(i=>{(i.loaderCallbacks||(i.loaderCallbacks=[])).push(s)}),o}function bk(e,t=!0,n=!1){const r=[];return e.forEach(o=>{const s=typeof o=="string"?ci(o,t,n):o;s&&r.push(s)}),r}var wk={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function _k(e,t,n,r){const o=e.resources.length,s=e.random?Math.floor(Math.random()*o):e.index;let i;if(e.random){let C=e.resources.slice(0);for(i=[];C.length>1;){const S=Math.floor(Math.random()*C.length);i.push(C[S]),C=C.slice(0,S).concat(C.slice(S+1))}i=i.concat(C)}else i=e.resources.slice(s).concat(e.resources.slice(0,s));const a=Date.now();let l="pending",c=0,u,f=null,d=[],p=[];typeof r=="function"&&p.push(r);function h(){f&&(clearTimeout(f),f=null)}function g(){l==="pending"&&(l="aborted"),h(),d.forEach(C=>{C.status==="pending"&&(C.status="aborted")}),d=[]}function y(C,S){S&&(p=[]),typeof C=="function"&&p.push(C)}function x(){return{startTime:a,payload:t,status:l,queriesSent:c,queriesPending:d.length,subscribe:y,abort:g}}function b(){l="failed",p.forEach(C=>{C(void 0,u)})}function v(){d.forEach(C=>{C.status==="pending"&&(C.status="aborted")}),d=[]}function m(C,S,T){const M=S!=="success";switch(d=d.filter(I=>I!==C),l){case"pending":break;case"failed":if(M||!e.dataAfterTimeout)return;break;default:return}if(S==="abort"){u=T,b();return}if(M){u=T,d.length||(i.length?_():b());return}if(h(),v(),!e.random){const I=e.resources.indexOf(C.resource);I!==-1&&I!==e.index&&(e.index=I)}l="completed",p.forEach(I=>{I(T)})}function _(){if(l!=="pending")return;h();const C=i.shift();if(C===void 0){if(d.length){f=setTimeout(()=>{h(),l==="pending"&&(v(),b())},e.timeout);return}b();return}const S={status:"pending",resource:C,callback:(T,M)=>{m(S,T,M)}};d.push(S),c++,f=setTimeout(_,e.rotate),n(C,t,S.callback)}return setTimeout(_),x}function Wp(e){const t={...wk,...e};let n=[];function r(){n=n.filter(a=>a().status==="pending")}function o(a,l,c){const u=_k(t,a,l,(f,d)=>{r(),c&&c(f,d)});return n.push(u),u}function s(a){return n.find(l=>a(l))||null}return{query:o,find:s,setIndex:a=>{t.index=a},getIndex:()=>t.index,cleanup:r}}function Xu(){}const Li=Object.create(null);function xk(e){if(!Li[e]){const t=Ml(e);if(!t)return;const n=Wp(t),r={config:t,redundancy:n};Li[e]=r}return Li[e]}function kk(e,t,n){let r,o;if(typeof e=="string"){const s=Oa(e);if(!s)return n(void 0,424),Xu;o=s.send;const i=xk(e);i&&(r=i.redundancy)}else{const s=Rl(e);if(s){r=Wp(s);const i=e.resources?e.resources[0]:"",a=Oa(i);a&&(o=a.send)}}return!r||!o?(n(void 0,424),Xu):r.query(t,o,n)().abort}const Yu="iconify2",$o="iconify",qp=$o+"-count",Ju=$o+"-version",Kp=36e5,Ek=168;function Ia(e,t){try{return e.getItem(t)}catch{}}function jl(e,t,n){try{return e.setItem(t,n),!0}catch{}}function Zu(e,t){try{e.removeItem(t)}catch{}}function Ra(e,t){return jl(e,qp,t.toString())}function La(e){return parseInt(Ia(e,qp))||0}const ui={local:!0,session:!0},Gp={local:new Set,session:new Set};let Dl=!1;function Ck(e){Dl=e}let fs=typeof window>"u"?{}:window;function Qp(e){const t=e+"Storage";try{if(fs&&fs[t]&&typeof fs[t].length=="number")return fs[t]}catch{}ui[e]=!1}function Xp(e,t){const n=Qp(e);if(!n)return;const r=Ia(n,Ju);if(r!==Yu){if(r){const a=La(n);for(let l=0;l{const l=$o+a.toString(),c=Ia(n,l);if(typeof c=="string"){try{const u=JSON.parse(c);if(typeof u=="object"&&typeof u.cached=="number"&&u.cached>o&&typeof u.provider=="string"&&typeof u.data=="object"&&typeof u.data.prefix=="string"&&t(u,a))return!0}catch{}Zu(n,l)}};let i=La(n);for(let a=i-1;a>=0;a--)s(a)||(a===i-1?(i--,Ra(n,i)):Gp[e].add(a))}function Yp(){if(!Dl){Ck(!0);for(const e in ui)Xp(e,t=>{const n=t.data,r=t.provider,o=n.prefix,s=cr(r,o);if(!Il(s,n).length)return!1;const i=n.lastModified||-1;return s.lastModifiedCached=s.lastModifiedCached?Math.min(s.lastModifiedCached,i):i,!0})}}function Pk(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const r in ui)Xp(r,o=>{const s=o.data;return o.provider!==e.provider||s.prefix!==e.prefix||s.lastModified===t});return!0}function Sk(e,t){Dl||Yp();function n(r){let o;if(!ui[r]||!(o=Qp(r)))return;const s=Gp[r];let i;if(s.size)s.delete(i=Array.from(s).shift());else if(i=La(o),!Ra(o,i+1))return;const a={cached:Math.floor(Date.now()/Kp),provider:e.provider,data:t};return jl(o,$o+i.toString(),JSON.stringify(a))}t.lastModified&&!Pk(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),n("local")||n("session"))}function ef(){}function Tk(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,mk(e)}))}function Ak(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:n,prefix:r}=e,o=e.iconsToLoad;delete e.iconsToLoad;let s;if(!o||!(s=Oa(n)))return;s.prepare(n,r,o).forEach(a=>{kk(n,a,l=>{if(typeof l!="object")a.icons.forEach(c=>{e.missing.add(c)});else try{const c=Il(e,l);if(!c.length)return;const u=e.pendingIcons;u&&c.forEach(f=>{u.delete(f)}),Sk(e,l)}catch(c){console.error(c)}Tk(e)})})}))}const Ok=(e,t)=>{const n=bk(e,!0,zp()),r=gk(n);if(!r.pending.length){let l=!0;return t&&setTimeout(()=>{l&&t(r.loaded,r.missing,r.pending,ef)}),()=>{l=!1}}const o=Object.create(null),s=[];let i,a;return r.pending.forEach(l=>{const{provider:c,prefix:u}=l;if(u===a&&c===i)return;i=c,a=u,s.push(cr(c,u));const f=o[c]||(o[c]=Object.create(null));f[u]||(f[u]=[])}),r.pending.forEach(l=>{const{provider:c,prefix:u,name:f}=l,d=cr(c,u),p=d.pendingIcons||(d.pendingIcons=new Set);p.has(f)||(p.add(f),o[c][u].push(f))}),s.forEach(l=>{const{provider:c,prefix:u}=l;o[c][u].length&&Ak(l,o[c][u])}),t?yk(t,r,s):ef},$k=e=>new Promise((t,n)=>{const r=typeof e=="string"?ci(e,!0):e;if(!r){n(e);return}Ok([r||e],o=>{if(o.length&&r){const s=nk(r);if(s){t({...$l,...s});return}}n(e)})});({...ik});const tf={backgroundColor:"currentColor"},Ik={backgroundColor:"transparent"},nf={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},rf={webkitMask:tf,mask:tf,background:Ik};for(const e in rf){const t=rf[e];for(const n in nf)t[e+n]=nf[n]}const Mi={};["horizontal","vertical"].forEach(e=>{const t=e.slice(0,1)+"Flip";Mi[e+"-flip"]=t,Mi[e.slice(0,1)+"-flip"]=t,Mi[e+"Flip"]=t});zp(!0);ak("",hk);if(typeof document<"u"&&typeof window<"u"){Yp();const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,n="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(r=>{try{(typeof r!="object"||r===null||r instanceof Array||typeof r.icons!="object"||typeof r.prefix!="string"||!ok(r))&&console.error(n)}catch{console.error(n)}})}if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(let n in t){const r="IconifyProviders["+n+"] is invalid.";try{const o=t[n];if(typeof o!="object"||!o||o.resources===void 0)continue;$a(n,o)||console.error(r)}catch{console.error(r)}}}}({...$l});const Rk=["fluent-emoji-high-contrast","material-symbols-light","cryptocurrency-color","icon-park-outline","icon-park-twotone","fluent-emoji-flat","emojione-monotone","streamline-emojis","heroicons-outline","simple-line-icons","material-symbols","flat-color-icons","icon-park-solid","pepicons-pencil","heroicons-solid","pepicons-print","cryptocurrency","pixelarticons","system-uicons","devicon-plain","entypo-social","grommet-icons","vscode-icons","pepicons-pop","svg-spinners","fluent-emoji","simple-icons","circle-flags","medical-icon","icomoon-free","majesticons","radix-icons","humbleicons","fa6-regular","emojione-v1","skill-icons","academicons","healthicons","fluent-mdl2","teenyicons","ant-design","akar-icons","lets-icons","streamline","fa6-brands","file-icons","game-icons","foundation","fa-regular","mono-icons","iconamoon","zondicons","mdi-light","eos-icons","gridicons","icon-park","heroicons","fa6-solid","meteocons","arcticons","dashicons","fa-brands","websymbol","fontelico","mingcute","bytesize","guidance","openmoji","emojione","nonicons","brandico","flagpack","fa-solid","fontisto","si-glyph","pepicons","iconoir","tdesign","clarity","octicon","codicon","pajamas","formkit","line-md","twemoji","noto-v1","fxemoji","devicon","raphael","flat-ui","topcoat","feather","tabler","carbon","lucide","memory","mynaui","circum","fluent","nimbus","entypo","icons8","subway","vaadin","solar","basil","typcn","charm","prime","quill","logos","covid","maki","gala","ooui","noto","flag","iwwa","zmdi","bpmn","mdi","ion","uil","bxs","cil","uiw","uim","uit","uis","jam","bxl","cib","cif","gis","map","geo","fad","eva","wpf","whh","ic","ph","ri","bi","bx","gg","ci","ep","fe","mi","ei","wi","la","fa","oi","et","el","ls","vs","il","ps"];function Lk(e=""){let t,n="";if(e[0]==="@"&&e.includes(":")&&(n=e.split(":")[0].slice(1),e=e.split(":").slice(1).join(":")),e.startsWith("i-")){e=e.replace(/^i-/,"");for(const r of Rk)if(e.startsWith(r)){t=r,e=e.slice(r.length+1);break}}else if(e.includes(":")){const[r,o]=e.split(":");t=r,e=o}return{provider:n,prefix:t||"",name:e||""}}const Mk=ne({__name:"Icon",props:{name:{type:String,required:!0},size:{type:String,default:""}},async setup(e){let t,n;const r=Ae(),o=at(),s=e;ze(()=>{var y;return(y=o.nuxtIcon)==null?void 0:y.iconifyApiOptions},()=>{var y,x,b,v,m,_;if((x=(y=o.nuxtIcon)==null?void 0:y.iconifyApiOptions)!=null&&x.url){try{new URL(o.nuxtIcon.iconifyApiOptions.url)}catch{console.warn("Nuxt Icon: Invalid custom Iconify API URL");return}if((v=(b=o.nuxtIcon)==null?void 0:b.iconifyApiOptions)!=null&&v.publicApiFallback){$a("custom",{resources:[(m=o.nuxtIcon)==null?void 0:m.iconifyApiOptions.url],index:0});return}$a("",{resources:[(_=o.nuxtIcon)==null?void 0:_.iconifyApiOptions.url]})}},{immediate:!0});const i=yr("icons",()=>({})),a=B(!1),l=j(()=>{var y,x;return(x=(y=o.nuxtIcon)==null?void 0:y.aliases)!=null&&x[s.name]?o.nuxtIcon.aliases[s.name]:s.name}),c=j(()=>Lk(l.value)),u=j(()=>[c.value.provider,c.value.prefix,c.value.name].filter(Boolean).join(":")),f=j(()=>{var y;return(y=i.value)==null?void 0:y[u.value]}),d=j(()=>r.vueApp.component(l.value)),p=j(()=>{var x,b,v;if(!s.size&&typeof((x=o.nuxtIcon)==null?void 0:x.size)=="boolean"&&!((b=o.nuxtIcon)!=null&&b.size))return;const y=s.size||((v=o.nuxtIcon)==null?void 0:v.size)||"1em";return String(Number(y))===y?`${y}px`:y}),h=j(()=>{var y;return((y=o==null?void 0:o.nuxtIcon)==null?void 0:y.class)??"icon"});async function g(){var y;d.value||(y=i.value)!=null&&y[u.value]||(a.value=!0,i.value[u.value]=await $k(c.value).catch(()=>{}),a.value=!1)}return ze(l,g),!d.value&&([t,n]=fl(()=>g()),t=await t,n()),(y,x)=>a.value?(R(),se("span",{key:0,class:G(h.value),style:fn({width:p.value,height:p.value})},null,6)):f.value?(R(),ae(E(Qx),{key:1,icon:f.value,class:G(h.value),width:p.value,height:p.value},null,8,["icon","class","width","height"])):d.value?(R(),ae(Ar(d.value),{key:2,class:G(h.value),width:p.value,height:p.value},null,8,["class","width","height"])):(R(),se("span",{key:3,class:G(h.value),style:fn({fontSize:p.value,lineHeight:p.value,width:p.value,height:p.value})},[ye(y.$slots,"default",{},()=>[Je(je(e.name),1)],!0)],6))}});const Mt=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},Jp=Mt(Mk,[["__scopeId","data-v-debd3f39"]]),jk=Object.freeze(Object.defineProperty({__proto__:null,default:Jp},Symbol.toStringTag,{value:"Module"})),Dk=ne({props:{name:{type:String,required:!0},dynamic:{type:Boolean,default:!1}},setup(e){const t=at();return{dynamic:j(()=>{var r,o;return e.dynamic||((o=(r=t.ui)==null?void 0:r.icons)==null?void 0:o.dynamic)})}}});function Fk(e,t,n,r,o,s){const i=Jp;return e.dynamic?(R(),ae(i,{key:0,name:e.name},null,8,["name"])):(R(),se("span",{key:1,class:G(e.name)},null,2))}const bt=Mt(Dk,[["render",Fk]]);async function Zp(e,t=nn()){const{path:n,matched:r}=t.resolve(e);if(!r.length||(t._routePreloaded||(t._routePreloaded=new Set),t._routePreloaded.has(n)))return;const o=t._preloadPromises=t._preloadPromises||[];if(o.length>4)return Promise.all(o).then(()=>Zp(e,t));t._routePreloaded.add(n);const s=r.map(i=>{var a;return(a=i.components)==null?void 0:a.default}).filter(i=>typeof i=="function");for(const i of s){const a=Promise.resolve(i()).catch(()=>{}).finally(()=>o.splice(o.indexOf(a)));o.push(a)}await Promise.all(o)}const Nk=(...e)=>e.find(t=>t!==void 0),Bk="noopener noreferrer";/*! @__NO_SIDE_EFFECTS__ */function Hk(e){const t=e.componentName||"NuxtLink",n=(r,o)=>{if(!r||e.trailingSlash!=="append"&&e.trailingSlash!=="remove")return r;const s=e.trailingSlash==="append"?Ms:ri;if(typeof r=="string")return s(r,!0);const i="path"in r?r.path:o(r).path;return{...r,name:void 0,path:s(i,!0)}};return ne({name:t,props:{to:{type:[String,Object],default:void 0,required:!1},href:{type:[String,Object],default:void 0,required:!1},target:{type:String,default:void 0,required:!1},rel:{type:String,default:void 0,required:!1},noRel:{type:Boolean,default:void 0,required:!1},prefetch:{type:Boolean,default:void 0,required:!1},noPrefetch:{type:Boolean,default:void 0,required:!1},activeClass:{type:String,default:void 0,required:!1},exactActiveClass:{type:String,default:void 0,required:!1},prefetchedClass:{type:String,default:void 0,required:!1},replace:{type:Boolean,default:void 0,required:!1},ariaCurrentValue:{type:String,default:void 0,required:!1},external:{type:Boolean,default:void 0,required:!1},custom:{type:Boolean,default:void 0,required:!1}},setup(r,{slots:o}){const s=nn(),i=Lt(),a=j(()=>{const p=r.to||r.href||"";return n(p,s.resolve)}),l=j(()=>typeof a.value=="string"&&gr(a.value,{acceptRelative:!0})),c=j(()=>r.external||r.target&&r.target!=="_self"?!0:typeof a.value=="object"?!1:a.value===""||l.value),u=B(!1),f=B(null),d=p=>{var h;f.value=r.custom?(h=p==null?void 0:p.$el)==null?void 0:h.nextElementSibling:p==null?void 0:p.$el};if(r.prefetch!==!1&&r.noPrefetch!==!0&&r.target!=="_blank"&&!zk()){const h=Ae();let g,y=null;Le(()=>{const x=Uk();Tl(()=>{g=_a(()=>{var b;(b=f==null?void 0:f.value)!=null&&b.tagName&&(y=x.observe(f.value,async()=>{y==null||y(),y=null;const v=typeof a.value=="string"?a.value:s.resolve(a.value).fullPath;await Promise.all([h.hooks.callHook("link:prefetch",v).catch(()=>{}),!c.value&&Zp(a.value,s).catch(()=>{})]),u.value=!0}))})})}),Ho(()=>{g&&Sw(g),y==null||y(),y=null})}return()=>{var x,b;if(!c.value){const v={ref:d,to:a.value,activeClass:r.activeClass||e.activeClass,exactActiveClass:r.exactActiveClass||e.exactActiveClass,replace:r.replace,ariaCurrentValue:r.ariaCurrentValue,custom:r.custom};return r.custom||(u.value&&(v.class=r.prefetchedClass||e.prefetchedClass),v.rel=r.rel),me(nr("RouterLink"),v,o.default)}const p=typeof a.value=="object"?((x=s.resolve(a.value))==null?void 0:x.href)??null:a.value&&!r.external&&!l.value?n(mr(i.app.baseURL,a.value),s.resolve):a.value||null,h=r.target||null,g=r.noRel?null:Nk(r.rel,e.externalRelAttribute,p?Bk:"")||null,y=()=>K0(p,{replace:r.replace});return r.custom?o.default?o.default({href:p,navigate:y,get route(){if(!p)return;const v=zo(p);return{path:v.pathname,fullPath:v.pathname,get query(){return Ld(v.search)},hash:v.hash,params:{},name:void 0,matched:[],redirectedFrom:void 0,meta:{},href:p}},rel:g,target:h,isExternal:c.value,isActive:!1,isExactActive:!1}):null:me("a",{ref:f,href:p,rel:g,target:h},(b=o.default)==null?void 0:b.call(o))}}})}const Fl=Hk(Z0);function Uk(){const e=Ae();if(e._observer)return e._observer;let t=null;const n=new Map,r=(s,i)=>(t||(t=new IntersectionObserver(a=>{for(const l of a){const c=n.get(l.target);(l.isIntersecting||l.intersectionRatio>0)&&c&&c()}})),n.set(s,i),t.observe(s),()=>{n.delete(s),t.unobserve(s),n.size===0&&(t.disconnect(),t=null)});return e._observer={observe:r}}function zk(){const e=navigator.connection;return!!(e&&(e.saveData||/2g/.test(e.effectiveType)))}const Vk=ne({inheritAttrs:!1,props:{...Fl.props,as:{type:String,default:"button"},disabled:{type:Boolean,default:null},active:{type:Boolean,default:!1},exact:{type:Boolean,default:!1},exactQuery:{type:Boolean,default:!1},exactHash:{type:Boolean,default:!1},inactiveClass:{type:String,default:void 0}},setup(e){function t(n,r,{isActive:o,isExactActive:s}){return e.active?e.activeClass:e.exactQuery&&!t1(n.query,r.query)||e.exactHash&&n.hash!==r.hash?e.inactiveClass:e.exact&&s||!e.exact&&o?e.activeClass:e.inactiveClass}return{resolveLinkClass:t}}}),Wk=["href","aria-disabled","role","rel","target","onClick"];function qk(e,t,n,r,o,s){const i=Fl;return e.to?(R(),ae(i,ue({key:1},e.$props,{custom:""}),{default:le(({route:a,href:l,target:c,rel:u,navigate:f,isActive:d,isExactActive:p,isExternal:h})=>[be("a",ue(e.$attrs,{href:e.disabled?void 0:l,"aria-disabled":e.disabled?"true":void 0,role:e.disabled?"link":void 0,rel:u,target:c,class:e.resolveLinkClass(a,e._.provides[vr]||e.$route,{isActive:d,isExactActive:p}),onClick:g=>!h&&f(g)}),[ye(e.$slots,"default",Fo(Uo({isActive:e.exact?p:d})))],16,Wk)]),_:3},16)):(R(),ae(Ar(e.as),ue({key:0,disabled:e.disabled},e.$attrs,{class:e.inactiveClass}),{default:le(()=>[ye(e.$slots,"default")]),_:3},16,["disabled","class"]))}const Nn=Mt(Vk,[["render",qk]]),Ke=(e,t,n,r,o=!1)=>{const s=Em(),i=at(),a=j(()=>{var d;const c=gi(t),u=gi(n),f=gi(r);return Wt((c==null?void 0:c.strategy)||((d=i.ui)==null?void 0:d.strategy),f?{wrapper:f}:{},c||{},o?N1(i.ui,e,{}):{},u||{})}),l=j(()=>Lp(s,["class"]));return{ui:a,attrs:l}},Nl={base:"before:w-2 before:h-2",ring:"before:ring-1 before:ring-gray-200 dark:before:ring-gray-800",rounded:"before:rounded-sm",background:"before:bg-gray-200 dark:before:bg-gray-800",shadow:"before:shadow",placement:'group-data-[popper-placement*="right"]:-left-1 group-data-[popper-placement*="left"]:-right-1 group-data-[popper-placement*="top"]:-bottom-1 group-data-[popper-placement*="bottom"]:-top-1'},Kk={wrapper:"relative inline-flex items-center justify-center flex-shrink-0",background:"bg-gray-100 dark:bg-gray-800",rounded:"rounded-full",text:"font-medium leading-none text-gray-900 dark:text-white truncate",placeholder:"font-medium leading-none text-gray-500 dark:text-gray-400 truncate",size:{"3xs":"h-4 w-4 text-[8px]","2xs":"h-5 w-5 text-[10px]",xs:"h-6 w-6 text-xs",sm:"h-8 w-8 text-sm",md:"h-10 w-10 text-base",lg:"h-12 w-12 text-lg",xl:"h-14 w-14 text-xl","2xl":"h-16 w-16 text-2xl","3xl":"h-20 w-20 text-3xl"},chip:{base:"absolute rounded-full ring-1 ring-white dark:ring-gray-900 flex items-center justify-center text-white dark:text-gray-900 font-medium",background:"bg-{color}-500 dark:bg-{color}-400",position:{"top-right":"top-0 right-0","bottom-right":"bottom-0 right-0","top-left":"top-0 left-0","bottom-left":"bottom-0 left-0"},size:{"3xs":"h-[4px] min-w-[4px] text-[4px] p-px","2xs":"h-[5px] min-w-[5px] text-[5px] p-px",xs:"h-1.5 min-w-[0.375rem] text-[6px] p-px",sm:"h-2 min-w-[0.5rem] text-[7px] p-0.5",md:"h-2.5 min-w-[0.625rem] text-[8px] p-0.5",lg:"h-3 min-w-[0.75rem] text-[10px] p-0.5",xl:"h-3.5 min-w-[0.875rem] text-[11px] p-1","2xl":"h-4 min-w-[1rem] text-[12px] p-1","3xl":"h-5 min-w-[1.25rem] text-[14px] p-1"}},icon:{base:"text-gray-500 dark:text-gray-400 flex-shrink-0",size:{"3xs":"h-2 w-2","2xs":"h-2.5 w-2.5",xs:"h-3 w-3",sm:"h-4 w-4",md:"h-5 w-5",lg:"h-6 w-6",xl:"h-7 w-7","2xl":"h-8 w-8","3xl":"h-10 w-10"}},default:{size:"sm",icon:null,chipColor:null,chipPosition:"top-right"}},Gk={base:"inline-flex items-center",rounded:"rounded-md",font:"font-medium",size:{xs:"text-xs px-1.5 py-0.5",sm:"text-xs px-2 py-1",md:"text-sm px-2 py-1",lg:"text-sm px-2.5 py-1.5"},color:{white:{solid:"ring-1 ring-inset ring-gray-300 dark:ring-gray-700 text-gray-900 dark:text-white bg-white dark:bg-gray-900"},gray:{solid:"ring-1 ring-inset ring-gray-300 dark:ring-gray-700 text-gray-700 dark:text-gray-200 bg-gray-50 dark:bg-gray-800"},black:{solid:"text-white dark:text-gray-900 bg-gray-900 dark:bg-white"}},variant:{solid:"bg-{color}-500 dark:bg-{color}-400 text-white dark:text-gray-900",outline:"text-{color}-500 dark:text-{color}-400 ring-1 ring-inset ring-{color}-500 dark:ring-{color}-400",soft:"bg-{color}-50 dark:bg-{color}-400 dark:bg-opacity-10 text-{color}-500 dark:text-{color}-400",subtle:"bg-{color}-50 dark:bg-{color}-400 dark:bg-opacity-10 text-{color}-500 dark:text-{color}-400 ring-1 ring-inset ring-{color}-500 dark:ring-{color}-400 ring-opacity-25 dark:ring-opacity-25"},default:{size:"sm",variant:"solid",color:"primary"}},eh={base:"focus:outline-none focus-visible:outline-0 disabled:cursor-not-allowed disabled:opacity-75 flex-shrink-0",font:"font-medium",rounded:"rounded-md",size:{"2xs":"text-xs",xs:"text-xs",sm:"text-sm",md:"text-sm",lg:"text-sm",xl:"text-base"},gap:{"2xs":"gap-x-1",xs:"gap-x-1.5",sm:"gap-x-1.5",md:"gap-x-2",lg:"gap-x-2.5",xl:"gap-x-2.5"},padding:{"2xs":"px-2 py-1",xs:"px-2.5 py-1.5",sm:"px-2.5 py-1.5",md:"px-3 py-2",lg:"px-3.5 py-2.5",xl:"px-3.5 py-2.5"},square:{"2xs":"p-1",xs:"p-1.5",sm:"p-1.5",md:"p-2",lg:"p-2.5",xl:"p-2.5"},color:{white:{solid:"shadow-sm ring-1 ring-inset ring-gray-300 dark:ring-gray-700 text-gray-900 dark:text-white bg-white hover:bg-gray-50 disabled:bg-white dark:bg-gray-900 dark:hover:bg-gray-800/50 dark:disabled:bg-gray-900 focus-visible:ring-2 focus-visible:ring-primary-500 dark:focus-visible:ring-primary-400",ghost:"text-gray-900 dark:text-white hover:bg-white dark:hover:bg-gray-900 focus-visible:ring-inset focus-visible:ring-2 focus-visible:ring-primary-500 dark:focus-visible:ring-primary-400"},gray:{solid:"shadow-sm ring-1 ring-inset ring-gray-300 dark:ring-gray-700 text-gray-700 dark:text-gray-200 bg-gray-50 hover:bg-gray-100 disabled:bg-gray-50 dark:bg-gray-800 dark:hover:bg-gray-700/50 dark:disabled:bg-gray-800 focus-visible:ring-2 focus-visible:ring-primary-500 dark:focus-visible:ring-primary-400",ghost:"text-gray-700 dark:text-gray-200 hover:text-gray-900 dark:hover:text-white hover:bg-gray-50 dark:hover:bg-gray-800 focus-visible:ring-inset focus-visible:ring-2 focus-visible:ring-primary-500 dark:focus-visible:ring-primary-400",link:"text-gray-500 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-200 underline-offset-4 hover:underline focus-visible:ring-inset focus-visible:ring-2 focus-visible:ring-primary-500 dark:focus-visible:ring-primary-400"},black:{solid:"shadow-sm text-white dark:text-gray-900 bg-gray-900 hover:bg-gray-800 disabled:bg-gray-900 dark:bg-white dark:hover:bg-gray-100 dark:disabled:bg-white focus-visible:ring-inset focus-visible:ring-2 focus-visible:ring-primary-500 dark:focus-visible:ring-primary-400",link:"text-gray-900 dark:text-white underline-offset-4 hover:underline focus-visible:ring-inset focus-visible:ring-2 focus-visible:ring-primary-500 dark:focus-visible:ring-primary-400"}},variant:{solid:"shadow-sm text-white dark:text-gray-900 bg-{color}-500 hover:bg-{color}-600 disabled:bg-{color}-500 dark:bg-{color}-400 dark:hover:bg-{color}-500 dark:disabled:bg-{color}-400 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-{color}-500 dark:focus-visible:outline-{color}-400",outline:"ring-1 ring-inset ring-current text-{color}-500 dark:text-{color}-400 hover:bg-{color}-50 disabled:bg-transparent dark:hover:bg-{color}-950 dark:disabled:bg-transparent focus-visible:ring-2 focus-visible:ring-{color}-500 dark:focus-visible:ring-{color}-400",soft:"text-{color}-500 dark:text-{color}-400 bg-{color}-50 hover:bg-{color}-100 disabled:bg-{color}-50 dark:bg-{color}-950 dark:hover:bg-{color}-900 dark:disabled:bg-{color}-950 focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-{color}-500 dark:focus-visible:ring-{color}-400",ghost:"text-{color}-500 dark:text-{color}-400 hover:bg-{color}-50 disabled:bg-transparent dark:hover:bg-{color}-950 dark:disabled:bg-transparent focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-{color}-500 dark:focus-visible:ring-{color}-400",link:"text-{color}-500 hover:text-{color}-600 disabled:text-{color}-500 dark:text-{color}-400 dark:hover:text-{color}-500 dark:disabled:text-{color}-400 underline-offset-4 hover:underline focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-{color}-500 dark:focus-visible:ring-{color}-400"},icon:{base:"flex-shrink-0",size:{"2xs":"h-4 w-4",xs:"h-4 w-4",sm:"h-5 w-5",md:"h-5 w-5",lg:"h-5 w-5",xl:"h-6 w-6"}},default:{size:"sm",variant:"solid",color:"primary",loadingIcon:"i-heroicons-arrow-path-20-solid"}};({...Nl});const Qk={wrapper:"w-full flex flex-col",item:{base:"",size:"text-sm",color:"text-gray-500 dark:text-gray-400",padding:"pt-1.5 pb-3",icon:"ms-auto transform transition-transform duration-200"},transition:{enterActiveClass:"overflow-hidden transition-[height] duration-200 ease-out",leaveActiveClass:"overflow-hidden transition-[height] duration-200 ease-out"},default:{openIcon:"i-heroicons-chevron-down-20-solid",closeIcon:"",class:"mb-1.5 w-full",variant:"soft"}},Xk={base:"inline-flex items-center justify-center text-gray-900 dark:text-white",padding:"px-1",size:{xs:"h-4 min-w-[16px] text-[10px]",sm:"h-5 min-w-[20px] text-[11px]",md:"h-6 min-w-[24px] text-[12px]"},rounded:"rounded",font:"font-medium font-sans",background:"bg-gray-100 dark:bg-gray-800",ring:"ring-1 ring-gray-300 dark:ring-gray-700 ring-inset",default:{size:"sm"}};({...Nl});const ZS={base:"overflow-hidden",background:"bg-white dark:bg-gray-900",divide:"divide-y divide-gray-200 dark:divide-gray-800",ring:"ring-1 ring-gray-200 dark:ring-gray-800",rounded:"rounded-lg",shadow:"shadow",body:{base:"",background:"",padding:"px-4 py-5 sm:p-6"},header:{base:"",background:"",padding:"px-4 py-5 sm:px-6"},footer:{base:"",background:"",padding:"px-4 py-4 sm:px-6"}},Yk={base:"mx-auto",padding:"px-4 sm:px-6 lg:px-8",constrained:"max-w-7xl"},eT={wrapper:{base:"flex items-center align-center text-center w-full",horizontal:"flex-row",vertical:"flex-col"},container:{base:"font-medium text-gray-700 dark:text-gray-200 flex",horizontal:"mx-3 whitespace-nowrap",vertical:"my-2"},border:{base:"flex border-gray-200 dark:border-gray-800",horizontal:"w-full",vertical:"h-full",size:{horizontal:"border-t",vertical:"border-s"}},icon:{base:"flex-shrink-0 w-5 h-5"},avatar:{base:"flex-shrink-0",size:"2xs"},label:"text-sm"},tT={wrapper:"flex flex-col flex-1 min-h-0 divide-y divide-gray-100 dark:divide-gray-800",container:"relative flex-1 overflow-y-auto divide-y divide-gray-100 dark:divide-gray-800 scroll-py-2",input:{wrapper:"relative flex items-center",base:"w-full placeholder-gray-400 dark:placeholder-gray-500 bg-transparent border-0 text-gray-900 dark:text-white focus:ring-0 focus:outline-none",padding:"px-4",height:"h-12",size:"sm:text-sm",icon:{base:"pointer-events-none absolute start-4 text-gray-400 dark:text-gray-500",size:"h-4 w-4",padding:"ps-10"},closeButton:"absolute end-4"},emptyState:{wrapper:"flex flex-col items-center justify-center flex-1 px-6 py-14 sm:px-14",label:"text-sm text-center text-gray-900 dark:text-white",queryLabel:"text-sm text-center text-gray-900 dark:text-white",icon:"w-6 h-6 mx-auto text-gray-400 dark:text-gray-500 mb-4"},group:{wrapper:"p-2",label:"px-2 my-2 text-xs font-semibold text-gray-900 dark:text-white",container:"text-sm text-gray-700 dark:text-gray-200",command:{base:"flex justify-between select-none items-center rounded-md px-2 py-1.5 gap-2 relative",active:"bg-gray-100 dark:bg-gray-800 text-gray-900 dark:text-white",inactive:"",label:"flex items-center gap-1.5 min-w-0",prefix:"text-gray-400 dark:text-gray-500",suffix:"text-gray-400 dark:text-gray-500",container:"flex items-center gap-2 min-w-0",icon:{base:"flex-shrink-0 w-4 h-4",active:"text-gray-900 dark:text-white",inactive:"text-gray-400 dark:text-gray-500"},selectedIcon:{base:"h-4 w-4 text-gray-900 dark:text-white flex-shrink-0"},avatar:{base:"flex-shrink-0",size:"3xs"},chip:{base:"flex-shrink-0 w-2 h-2 mx-1 rounded-full"},disabled:"opacity-50",shortcuts:"hidden md:inline-flex flex-shrink-0 gap-0.5"},active:"flex-shrink-0 text-gray-500 dark:text-gray-400",inactive:"flex-shrink-0 text-gray-500 dark:text-gray-400"},default:{icon:"i-heroicons-magnifying-glass-20-solid",loadingIcon:"i-heroicons-arrow-path-20-solid",emptyState:{icon:"i-heroicons-magnifying-glass-20-solid",label:"We couldn't find any items.",queryLabel:"We couldn't find any items with that term. Please try again."},closeButton:null,selectedIcon:"i-heroicons-check-20-solid"}},nT={wrapper:"relative z-50",inner:"fixed inset-0 overflow-y-auto",container:"flex min-h-full items-end sm:items-center justify-center text-center",padding:"p-4 sm:p-0",margin:"sm:my-8",base:"relative text-left rtl:text-right overflow-hidden w-full flex flex-col",overlay:{base:"fixed inset-0 transition-opacity",background:"bg-gray-200/75 dark:bg-gray-800/75",transition:{enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0"}},background:"bg-white dark:bg-gray-900",ring:"",rounded:"rounded-lg",shadow:"shadow-xl",width:"sm:max-w-lg",height:"",transition:{enter:"ease-out duration-300",enterFrom:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",enterTo:"opacity-100 translate-y-0 sm:scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 translate-y-0 sm:scale-100",leaveTo:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"}},Jk={wrapper:"relative",container:"z-20 group",width:"",background:"bg-white dark:bg-gray-900",shadow:"shadow-lg",rounded:"rounded-md",ring:"ring-1 ring-gray-200 dark:ring-gray-800",base:"overflow-hidden focus:outline-none relative",transition:{enterActiveClass:"transition ease-out duration-200",enterFromClass:"opacity-0 translate-y-1",enterToClass:"opacity-100 translate-y-0",leaveActiveClass:"transition ease-in duration-150",leaveFromClass:"opacity-100 translate-y-0",leaveToClass:"opacity-0 translate-y-1"},popper:{strategy:"fixed"},arrow:Nl},Zk={wrapper:"w-full pointer-events-auto",container:"relative overflow-hidden",title:"text-sm font-medium text-gray-900 dark:text-white",description:"mt-1 text-sm leading-4 text-gray-500 dark:text-gray-400",background:"bg-white dark:bg-gray-900",shadow:"shadow-lg",rounded:"rounded-lg",padding:"p-4",ring:"ring-1 ring-gray-200 dark:ring-gray-800",icon:{base:"flex-shrink-0 w-5 h-5",color:"text-{color}-500 dark:text-{color}-400"},avatar:{base:"flex-shrink-0 self-center",size:"md"},progress:{base:"absolute bottom-0 end-0 start-0 h-1",background:"bg-{color}-500 dark:bg-{color}-400"},transition:{enterActiveClass:"transform ease-out duration-300 transition",enterFromClass:"translate-y-2 opacity-0 sm:translate-y-0 sm:translate-x-2",enterToClass:"translate-y-0 opacity-100 sm:translate-x-0",leaveActiveClass:"transition ease-in duration-100",leaveFromClass:"opacity-100",leaveToClass:"opacity-0"},default:{color:"primary",icon:null,closeButton:{icon:"i-heroicons-x-mark-20-solid",color:"gray",variant:"link",padded:!1},actionButton:{size:"xs",color:"white"}}},eE={wrapper:"fixed flex flex-col justify-end z-[55]",position:"bottom-0 end-0",width:"w-full sm:w-96",container:"px-4 sm:px-6 py-6 space-y-3 overflow-y-auto"},sn=Wt(He.ui.strategy,He.ui.button,eh),tE=ne({components:{UIcon:bt,ULink:Nn},inheritAttrs:!1,props:{type:{type:String,default:"button"},block:{type:Boolean,default:!1},label:{type:String,default:null},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},padded:{type:Boolean,default:!0},size:{type:String,default:()=>sn.default.size,validator(e){return Object.keys(sn.size).includes(e)}},color:{type:String,default:()=>sn.default.color,validator(e){return[...He.ui.colors,...Object.keys(sn.color)].includes(e)}},variant:{type:String,default:()=>sn.default.variant,validator(e){return[...Object.keys(sn.variant),...Object.values(sn.color).flatMap(t=>Object.keys(t))].includes(e)}},icon:{type:String,default:null},loadingIcon:{type:String,default:()=>sn.default.loadingIcon},leadingIcon:{type:String,default:null},trailingIcon:{type:String,default:null},trailing:{type:Boolean,default:!1},leading:{type:Boolean,default:!1},square:{type:Boolean,default:!1},truncate:{type:Boolean,default:!1},class:{type:[String,Object,Array],default:void 0},ui:{type:Object,default:void 0}},setup(e,{slots:t}){const{ui:n,attrs:r}=Ke("button",we(e,"ui"),sn),o=j(()=>e.icon&&e.leading||e.icon&&!e.trailing||e.loading&&!e.trailing||e.leadingIcon),s=j(()=>e.icon&&e.trailing||e.loading&&e.trailing||e.trailingIcon),i=j(()=>e.square||!t.default&&!e.label),a=j(()=>{var p,h;const d=((h=(p=n.value.color)==null?void 0:p[e.color])==null?void 0:h[e.variant])||n.value.variant[e.variant];return Dn(ft(n.value.base,n.value.font,n.value.rounded,n.value.size[e.size],n.value.gap[e.size],e.padded&&n.value[i.value?"square":"padding"][e.size],d==null?void 0:d.replaceAll("{color}",e.color),e.block?"w-full flex justify-center items-center":"inline-flex items-center"),e.class)}),l=j(()=>e.loading?e.loadingIcon:e.leadingIcon||e.icon),c=j(()=>e.loading&&!o.value?e.loadingIcon:e.trailingIcon||e.icon),u=j(()=>ft(n.value.icon.base,n.value.icon.size[e.size],e.loading&&"animate-spin")),f=j(()=>ft(n.value.icon.base,n.value.icon.size[e.size],e.loading&&!o.value&&"animate-spin"));return{attrs:r,isLeading:o,isTrailing:s,isSquare:i,buttonClass:a,leadingIconName:l,trailingIconName:c,leadingIconClass:u,trailingIconClass:f}}});function nE(e,t,n,r,o,s){const i=bt,a=Nn;return R(),ae(a,ue({type:e.type,disabled:e.disabled||e.loading,class:e.buttonClass},e.attrs),{default:le(()=>[ye(e.$slots,"leading",{disabled:e.disabled,loading:e.loading},()=>[e.isLeading&&e.leadingIconName?(R(),ae(i,{key:0,name:e.leadingIconName,class:G(e.leadingIconClass),"aria-hidden":"true"},null,8,["name","class"])):ge("",!0)]),ye(e.$slots,"default",{},()=>[e.label?(R(),se("span",{key:0,class:G([e.truncate?"text-left break-all line-clamp-1":""])},je(e.label),3)):ge("",!0)]),ye(e.$slots,"trailing",{disabled:e.disabled,loading:e.loading},()=>[e.isTrailing&&e.trailingIconName?(R(),ae(i,{key:0,name:e.trailingIconName,class:G(e.trailingIconClass),"aria-hidden":"true"},null,8,["name","class"])):ge("",!0)])]),_:3},16,["type","disabled","class"])}const qt=Mt(tE,[["render",nE]]),rE=ot(e=>{e.vueApp.component("UButton",qt)}),oE=[lb,ub,xw,Pw,Tw,U_,z_,a1,u1,bx,xx,Ex,Cx,Px,Sx,Tx,rE],sE=ne({inheritAttrs:!1,__name:"ColorModeImage",props:{as:{default:"img"},dark:{},light:{}},setup(e){return(t,n)=>(R(),se(ke,null,[(R(),ae(Ar(t.as),ue({src:t.light,class:"dark:hidden"},t.$attrs),null,16,["src"])),(R(),ae(Ar(t.as),ue({src:t.dark,class:"hidden dark:block"},t.$attrs),null,16,["src"]))],64))}}),En=Wt(He.ui.strategy,He.ui.badge,Gk),iE=ne({inheritAttrs:!1,props:{size:{type:String,default:()=>En.default.size,validator(e){return Object.keys(En.size).includes(e)}},color:{type:String,default:()=>En.default.color,validator(e){return[...He.ui.colors,...Object.keys(En.color)].includes(e)}},variant:{type:String,default:()=>En.default.variant,validator(e){return[...Object.keys(En.variant),...Object.values(En.color).flatMap(t=>Object.keys(t))].includes(e)}},label:{type:[String,Number],default:null},class:{type:[String,Object,Array],default:void 0},ui:{type:Object,default:void 0}},setup(e){const{ui:t,attrs:n}=Ke("badge",we(e,"ui"),En),r=j(()=>{var s,i;const o=((i=(s=t.value.color)==null?void 0:s[e.color])==null?void 0:i[e.variant])||t.value.variant[e.variant];return Dn(ft(t.value.base,t.value.font,t.value.rounded,t.value.size[e.size],o==null?void 0:o.replaceAll("{color}",e.color)),e.class)});return{attrs:n,badgeClass:r}}});function aE(e,t,n,r,o,s){return R(),se("span",ue({class:e.badgeClass},e.attrs),[ye(e.$slots,"default",{},()=>[Je(je(e.label),1)])],16)}const th=Mt(iE,[["render",aE]]),ji=Wt(He.ui.strategy,He.ui.kbd,Xk),lE=ne({inheritAttrs:!1,props:{value:{type:String,default:null},size:{type:String,default:()=>ji.default.size,validator(e){return Object.keys(ji.size).includes(e)}},class:{type:[String,Object,Array],default:void 0},ui:{type:Object,default:void 0}},setup(e){const{ui:t,attrs:n}=Ke("kbd",we(e,"ui"),ji),r=j(()=>Dn(ft(t.value.base,t.value.size[e.size],t.value.padding,t.value.rounded,t.value.font,t.value.background,t.value.ring),e.class));return{ui:t,attrs:n,kbdClass:r}}});function cE(e,t,n,r,o,s){return R(),se("kbd",ue({class:e.kbdClass},e.attrs),[ye(e.$slots,"default",{},()=>[Je(je(e.value),1)])],16)}const uE=Mt(lE,[["render",cE]]);function fE(e,t){let n,r,o;const s=B(!0),i=()=>{s.value=!0,o()};ze(e,i,{flush:"sync"});const a=typeof t=="function"?t:t.get,l=typeof t=="function"?void 0:t.set,c=Vf((u,f)=>(r=u,o=f,{get(){return s.value&&(n=a(),s.value=!1),r(),n},set(d){l==null||l(d)}}));return Object.isExtensible(c)&&(c.trigger=i),c}function ur(e){return Xa()?(Ya(e),!0):!1}function nh(e){let t=0,n,r;const o=()=>{t-=1,r&&t<=0&&(r.stop(),n=void 0,r=void 0)};return(...s)=>(t+=1,n||(r=Af(!0),n=r.run(()=>e(...s))),ur(o),n)}function dn(e){return typeof e=="function"?e():E(e)}const Io=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const dE=Object.prototype.toString,pE=e=>dE.call(e)==="[object Object]",of=()=>+Date.now(),Ro=()=>{};function rh(e,t){function n(...r){return new Promise((o,s)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(o).catch(s)})}return n}const hE=e=>e();function gE(e,t={}){let n,r,o=Ro;const s=a=>{clearTimeout(a),o(),o=Ro};return a=>{const l=dn(e),c=dn(t.maxWait);return n&&s(n),l<=0||c!==void 0&&c<=0?(r&&(s(r),r=null),Promise.resolve(a())):new Promise((u,f)=>{o=t.rejectOnCancel?f:u,c&&!r&&(r=setTimeout(()=>{n&&s(n),r=null,u(a())},c)),n=setTimeout(()=>{r&&s(r),r=null,u(a())},l)})}}function mE(e,t=!0,n=!0,r=!1){let o=0,s,i=!0,a=Ro,l;const c=()=>{s&&(clearTimeout(s),s=void 0,a(),a=Ro)};return f=>{const d=dn(e),p=Date.now()-o,h=()=>l=f();return c(),d<=0?(o=Date.now(),h()):(p>d&&(n||!i)?(o=Date.now(),h()):t&&(l=new Promise((g,y)=>{a=r?y:g,s=setTimeout(()=>{o=Date.now(),i=!0,g(h()),c()},Math.max(0,d-p))})),!n&&!s&&(s=setTimeout(()=>i=!0,d)),i=!1,l)}}function vE(e){let t;function n(){return t||(t=e()),t}return n.reset=async()=>{const r=t;t=void 0,r&&await r},n}function yE(e,t){var n;if(typeof e=="number")return e+t;const r=((n=e.match(/^-?[0-9]+\.?[0-9]*/))==null?void 0:n[0])||"",o=e.slice(r.length),s=Number.parseFloat(r)+t;return Number.isNaN(s)?e:s+o}function rT(e,t=200,n={}){return rh(gE(t,n),e)}function bE(e,t,n={}){const{eventFilter:r=hE,...o}=n;return ze(e,rh(r,t),o)}function wE(e,t=1e3,n={}){const{immediate:r=!0,immediateCallback:o=!1}=n;let s=null;const i=B(!1);function a(){s&&(clearInterval(s),s=null)}function l(){i.value=!1,a()}function c(){const u=dn(t);u<=0||(i.value=!0,o&&e(),a(),s=setInterval(e,u))}if(r&&Io&&c(),Xe(t)||typeof t=="function"){const u=ze(t,()=>{i.value&&Io&&c()});ur(u)}return ur(l),{isActive:i,pause:l,resume:c}}function _E(e,t,n={}){const{immediate:r=!0}=n,o=B(!1);let s=null;function i(){s&&(clearTimeout(s),s=null)}function a(){o.value=!1,i()}function l(...c){i(),o.value=!0,s=setTimeout(()=>{o.value=!1,s=null,e(...c)},dn(t))}return r&&(o.value=!0,Io&&l()),ur(a),{isPending:Gs(o),start:l,stop:a}}function oT(e,t,n={}){const{throttle:r=0,trailing:o=!0,leading:s=!0,...i}=n;return bE(e,t,{...i,eventFilter:mE(r,o,s)})}function Ma(e){var t;const n=dn(e);return(t=n==null?void 0:n.$el)!=null?t:n}const Wr=Io?window:void 0,oh=Io?window.navigator:void 0;function Tn(...e){let t,n,r,o;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,r,o]=e,t=Wr):[t,n,r,o]=e,!t)return Ro;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const s=[],i=()=>{s.forEach(u=>u()),s.length=0},a=(u,f,d,p)=>(u.addEventListener(f,d,p),()=>u.removeEventListener(f,d,p)),l=ze(()=>[Ma(t),dn(o)],([u,f])=>{if(i(),!u)return;const d=pE(f)?{...f}:f;s.push(...n.flatMap(p=>r.map(h=>a(u,p,h,d))))},{immediate:!0,flush:"post"}),c=()=>{l(),i()};return ur(c),c}function xE(e={}){var t;const{window:n=Wr,deep:r=!0}=e,o=(t=e.document)!=null?t:n==null?void 0:n.document,s=()=>{var a;let l=o==null?void 0:o.activeElement;if(r)for(;l!=null&&l.shadowRoot;)l=(a=l==null?void 0:l.shadowRoot)==null?void 0:a.activeElement;return l},i=fE(()=>null,()=>s());return n&&(Tn(n,"blur",a=>{a.relatedTarget===null&&i.trigger()},!0),Tn(n,"focus",i.trigger,!0)),i}function kE(){const e=B(!1);return mn()&&Le(()=>{e.value=!0}),e}function Bl(e){const t=kE();return j(()=>(t.value,!!e()))}function EE(e,t={}){const{immediate:n=!0,fpsLimit:r=void 0,window:o=Wr}=t,s=B(!1),i=r?1e3/r:null;let a=0,l=null;function c(d){if(!s.value||!o)return;const p=d-(a||d);if(i&&pn&&"matchMedia"in n&&typeof n.matchMedia=="function");let o;const s=B(!1),i=c=>{s.value=c.matches},a=()=>{o&&("removeEventListener"in o?o.removeEventListener("change",i):o.removeListener(i))},l=Ye(()=>{r.value&&(a(),o=n.matchMedia(dn(e)),"addEventListener"in o?o.addEventListener("change",i):o.addListener(i),s.value=o.matches)});return ur(()=>{l(),a(),o=void 0}),s}function sT(e,t={}){function n(a,l){let c=e[a];return l!=null&&(c=yE(c,l)),typeof c=="number"&&(c=`${c}px`),c}const{window:r=Wr}=t;function o(a){return r?r.matchMedia(a).matches:!1}const s=a=>Zr(`(min-width: ${n(a)})`,t),i=Object.keys(e).reduce((a,l)=>(Object.defineProperty(a,l,{get:()=>s(l),enumerable:!0,configurable:!0}),a),{});return Object.assign(i,{greater(a){return Zr(`(min-width: ${n(a,.1)})`,t)},greaterOrEqual:s,smaller(a){return Zr(`(max-width: ${n(a,-.1)})`,t)},smallerOrEqual(a){return Zr(`(max-width: ${n(a)})`,t)},between(a,l){return Zr(`(min-width: ${n(a)}) and (max-width: ${n(l,-.1)})`,t)},isGreater(a){return o(`(min-width: ${n(a,.1)})`)},isGreaterOrEqual(a){return o(`(min-width: ${n(a)})`)},isSmaller(a){return o(`(max-width: ${n(a,-.1)})`)},isSmallerOrEqual(a){return o(`(max-width: ${n(a)})`)},isInBetween(a,l){return o(`(min-width: ${n(a)}) and (max-width: ${n(l,-.1)})`)},current(){const a=Object.keys(e).map(l=>[l,s(l)]);return j(()=>a.filter(([,l])=>l.value).map(([l])=>l))}})}function sf(e,t={}){const{controls:n=!1,navigator:r=oh}=t,o=Bl(()=>r&&"permissions"in r);let s;const i=typeof e=="string"?{name:e}:e,a=B(),l=()=>{s&&(a.value=s.state)},c=vE(async()=>{if(o.value){if(!s)try{s=await r.permissions.query(i),Tn(s,"change",l),l()}catch{a.value="prompt"}return s}});return c(),n?{state:a,isSupported:o,query:c}:a}function iT(e={}){const{navigator:t=oh,read:n=!1,source:r,copiedDuring:o=1500,legacy:s=!1}=e,i=Bl(()=>t&&"clipboard"in t),a=sf("clipboard-read"),l=sf("clipboard-write"),c=j(()=>i.value||s),u=B(""),f=B(!1),d=_E(()=>f.value=!1,o);function p(){i.value&&a.value!=="denied"?t.clipboard.readText().then(x=>{u.value=x}):u.value=y()}c.value&&n&&Tn(["copy","cut"],p);async function h(x=dn(r)){c.value&&x!=null&&(i.value&&l.value!=="denied"?await t.clipboard.writeText(x):g(x),u.value=x,f.value=!0,d.start())}function g(x){const b=document.createElement("textarea");b.value=x??"",b.style.position="absolute",b.style.opacity="0",document.body.appendChild(b),b.select(),document.execCommand("copy"),b.remove()}function y(){var x,b,v;return(v=(b=(x=document==null?void 0:document.getSelection)==null?void 0:x.call(document))==null?void 0:b.toString())!=null?v:""}return{isSupported:c,text:u,copied:f,copy:h}}const CE={page:e=>[e.pageX,e.pageY],client:e=>[e.clientX,e.clientY],screen:e=>[e.screenX,e.screenY],movement:e=>e instanceof Touch?null:[e.movementX,e.movementY]};function aT(e={}){const{type:t="page",touch:n=!0,resetOnTouchEnds:r=!1,initialValue:o={x:0,y:0},window:s=Wr,target:i=s,scroll:a=!0,eventFilter:l}=e;let c=null;const u=B(o.x),f=B(o.y),d=B(null),p=typeof t=="function"?t:CE[t],h=_=>{const C=p(_);c=_,C&&([u.value,f.value]=C,d.value="mouse")},g=_=>{if(_.touches.length>0){const C=p(_.touches[0]);C&&([u.value,f.value]=C,d.value="touch")}},y=()=>{if(!c||!s)return;const _=p(c);c instanceof MouseEvent&&_&&(u.value=_[0]+s.scrollX,f.value=_[1]+s.scrollY)},x=()=>{u.value=o.x,f.value=o.y},b=l?_=>l(()=>h(_),{}):_=>h(_),v=l?_=>l(()=>g(_),{}):_=>g(_),m=l?()=>l(()=>y(),{}):()=>y();if(i){const _={passive:!0};Tn(i,["mousemove","dragover"],b,_),n&&t!=="movement"&&(Tn(i,["touchstart","touchmove"],v,_),r&&Tn(i,"touchend",x,_)),a&&t==="page"&&Tn(s,"scroll",m,{passive:!0})}return{x:u,y:f,sourceType:d}}function PE(e={}){const{controls:t=!1,offset:n=0,immediate:r=!0,interval:o="requestAnimationFrame",callback:s}=e,i=B(of()+n),a=()=>i.value=of()+n,l=s?()=>{a(),s(i.value)}:a,c=o==="requestAnimationFrame"?EE(l,{immediate:r}):wE(l,o,{immediate:r});return t?{timestamp:i,...c}:i}const SE=()=>{const e=B(!1),t=B(!1);function n(){if(e.value){e.value=!1,setTimeout(()=>{t.value=!t.value},0);return}t.value=!t.value}return{isHeaderDialogOpen:e,isDocsSearchModalOpen:t,toggleDocsSearch:n}},sh=nh(SE),TE=()=>{const e=j(()=>navigator&&navigator.userAgent&&navigator.userAgent.match(/Macintosh;/)),t=B(" "),n=xE(),r=j(()=>{var s,i,a,l;return((s=n.value)==null?void 0:s.tagName)==="INPUT"||((i=n.value)==null?void 0:i.tagName)==="TEXTAREA"||((a=n.value)==null?void 0:a.contentEditable)==="true"?((l=n.value)==null?void 0:l.name)||!0:!1});return Le(()=>{t.value=e.value?"⌘":"Ctrl"}),{macOS:e,metaSymbol:t,activeElement:n,usingInput:r}},AE=nh(TE),OE={class:"hidden lg:flex items-center gap-0.5 ml-auto -my-1 flex-shrink-0"},$E=ne({__name:"DocsSearchButton",props:{label:{default:"Search..."}},setup(e){const t=at(),{toggleDocsSearch:n}=sh(),{metaSymbol:r}=AE();return(o,s)=>{const i=uE,a=qt;return R(),ae(a,ue({icon:E(t).ui.icons.search,label:o.label},o.label?o.$ui.button.input:o.$ui.button.secondary,{"aria-label":"Search",class:[!!o.label&&"flex-1"],onClick:E(n)}),ei({_:2},[o.label?{name:"trailing",fn:le(()=>[be("div",OE,[Y(i,null,{default:le(()=>[Je(je(E(r)),1)]),_:1}),Y(i,null,{default:le(()=>[Je(" K ")]),_:1})])]),key:"0"}:void 0]),1040,["icon","label","class","onClick"])}}}),Hl=ne({name:"ClientOnly",inheritAttrs:!1,props:["fallback","placeholder","placeholderTag","fallbackTag"],setup(e,{slots:t,attrs:n}){const r=B(!1);return Le(()=>{r.value=!0}),o=>{var l;if(r.value)return(l=t.default)==null?void 0:l.call(t);const s=t.fallback||t.placeholder;if(s)return s();const i=o.fallback||o.placeholder||"",a=o.fallbackTag||o.placeholderTag||"span";return se(a,n,i)}}}),IE=()=>yr("color-mode").value,RE=be("div",{class:"w-8 h-8"},null,-1),ih=ne({inheritAttrs:!1,__name:"ColorModeButton",setup(e){const t=IE(),n=at(),r=j({get(){return t.value==="dark"},set(){t.preference=t.value==="dark"?"light":"dark"}});return(o,s)=>{var l;const i=qt,a=Hl;return(l=E(t))!=null&&l.forced?ge("",!0):(R(),ae(a,{key:0},{fallback:le(()=>[RE]),default:le(()=>[Y(i,ue({icon:E(r)?E(n).ui.icons.dark:E(n).ui.icons.light},{...o.$ui.button.secondary,...o.$attrs},{"aria-label":`Switch to ${E(r)?"light":"dark"} mode`,onClick:s[0]||(s[0]=c=>r.value=!E(r))}),null,16,["icon","aria-label"])]),_:1}))}}});function nt(e,t,...n){if(e in t){let o=t[e];return typeof o=="function"?o(...n):o}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(o=>`"${o}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,nt),r}var Fn=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(Fn||{}),An=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(An||{});function pt({visible:e=!0,features:t=0,ourProps:n,theirProps:r,...o}){var s;let i=lh(r,n),a=Object.assign(o,{props:i});if(e||t&2&&i.static)return Di(a);if(t&1){let l=(s=i.unmount)==null||s?0:1;return nt(l,{0(){return null},1(){return Di({...o,props:{...i,hidden:!0,style:{display:"none"}}})}})}return Di(a)}function Di({props:e,attrs:t,slots:n,slot:r,name:o}){var s,i;let{as:a,...l}=ch(e,["unmount","static"]),c=(s=n.default)==null?void 0:s.call(n,r),u={};if(r){let f=!1,d=[];for(let[p,h]of Object.entries(r))typeof h=="boolean"&&(f=!0),h===!0&&d.push(p);f&&(u["data-headlessui-state"]=d.join(" "))}if(a==="template"){if(c=ah(c??[]),Object.keys(l).length>0||Object.keys(t).length>0){let[f,...d]=c??[];if(!LE(f)||d.length>0)throw new Error(['Passing props on "template"!',"",`The current component <${o} /> is rendering a "template".`,"However we need to passthrough the following props:",Object.keys(l).concat(Object.keys(t)).map(g=>g.trim()).filter((g,y,x)=>x.indexOf(g)===y).sort((g,y)=>g.localeCompare(y)).map(g=>` - ${g}`).join(` `),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "template".',"Render a single element as the child so that we can forward the props onto that element."].map(g=>` - ${g}`).join(` `)].join(` -`));let p=lh((i=f.props)!=null?i:{},l),h=en(f,p);for(let g in p)g.startsWith("on")&&(h.props||(h.props={}),h.props[g]=p[g]);return h}return Array.isArray(c)&&c.length===1?c[0]:c}return me(a,Object.assign({},l,u),{default:()=>c})}function ah(e){return e.flatMap(t=>t.type===ke?ah(t.children):[t])}function lh(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let o in r)o.startsWith("on")&&typeof r[o]=="function"?(n[o]!=null||(n[o]=[]),n[o].push(r[o])):t[o]=r[o];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map(r=>[r,void 0])));for(let r in n)Object.assign(t,{[r](o,...s){let i=n[r];for(let a of i){if(o instanceof Event&&o.defaultPrevented)return;a(o,...s)}}});return t}function lT(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function ch(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}function LE(e){return e==null?!1:typeof e.type=="string"||typeof e.type=="object"||typeof e.type=="function"}let ME=0;function jE(){return++ME}function Yt(){return jE()}var mt=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(mt||{});function ee(e){var t;return e==null||e.value==null?null:(t=e.value.$el)!=null?t:e.value}let uh=Symbol("Context");var qe=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(qe||{});function DE(){return Wo()!==null}function Wo(){return Te(uh,null)}function Ul(e){Ve(uh,e)}function af(e,t){if(e)return e;let n=t??"button";if(typeof n=="string"&&n.toLowerCase()==="button")return"button"}function fh(e,t){let n=B(af(e.value.type,e.value.as));return Le(()=>{n.value=af(e.value.type,e.value.as)}),Ye(()=>{var r;n.value||ee(t)&&ee(t)instanceof HTMLButtonElement&&!((r=ee(t))!=null&&r.hasAttribute("type"))&&(n.value="button")}),n}var FE=Object.defineProperty,NE=(e,t,n)=>t in e?FE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,lf=(e,t,n)=>(NE(e,typeof t!="symbol"?t+"":t,n),n);class BE{constructor(){lf(this,"current",this.detect()),lf(this,"currentId",0)}set(t){this.current!==t&&(this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}}let qo=new BE;function vn(e){if(qo.isServer)return null;if(e instanceof Node)return e.ownerDocument;if(e!=null&&e.hasOwnProperty("value")){let t=ee(e);if(t)return t.ownerDocument}return document}let ja=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var it=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(it||{}),Lo=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(Lo||{}),HE=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(HE||{});function fi(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(ja)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}var zl=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(zl||{});function dh(e,t=0){var n;return e===((n=vn(e))==null?void 0:n.body)?!1:nt(t,{0(){return e.matches(ja)},1(){let r=e;for(;r!==null;){if(r.matches(ja))return!0;r=r.parentElement}return!1}})}var UE=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(UE||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{e.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:e.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function or(e){e==null||e.focus({preventScroll:!0})}let zE=["textarea","input"].join(",");function VE(e){var t,n;return(n=(t=e==null?void 0:e.matches)==null?void 0:t.call(e,zE))!=null?n:!1}function WE(e,t=n=>n){return e.slice().sort((n,r)=>{let o=t(n),s=t(r);if(o===null||s===null)return 0;let i=o.compareDocumentPosition(s);return i&Node.DOCUMENT_POSITION_FOLLOWING?-1:i&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function Bt(e,t,{sorted:n=!0,relativeTo:r=null,skipElements:o=[]}={}){var s;let i=(s=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e==null?void 0:e.ownerDocument)!=null?s:document,a=Array.isArray(e)?n?WE(e):e:fi(e);o.length>0&&a.length>1&&(a=a.filter(h=>!o.includes(h))),r=r??i.activeElement;let l=(()=>{if(t&5)return 1;if(t&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),c=(()=>{if(t&1)return 0;if(t&2)return Math.max(0,a.indexOf(r))-1;if(t&4)return Math.max(0,a.indexOf(r))+1;if(t&8)return a.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),u=t&32?{preventScroll:!0}:{},f=0,d=a.length,p;do{if(f>=d||f+d<=0)return 0;let h=c+f;if(t&16)h=(h+d)%d;else{if(h<0)return 3;if(h>=d)return 1}p=a[h],p==null||p.focus(u),f+=l}while(p!==i.activeElement);return t&6&&VE(p)&&p.select(),2}function ds(e,t,n){qo.isServer||Ye(r=>{document.addEventListener(e,t,n),r(()=>document.removeEventListener(e,t,n))})}function ph(e,t,n){qo.isServer||Ye(r=>{window.addEventListener(e,t,n),r(()=>window.removeEventListener(e,t,n))})}function hh(e,t,n=j(()=>!0)){function r(s,i){if(!n.value||s.defaultPrevented)return;let a=i(s);if(a===null||!a.getRootNode().contains(a))return;let l=function c(u){return typeof u=="function"?c(u()):Array.isArray(u)||u instanceof Set?u:[u]}(e);for(let c of l){if(c===null)continue;let u=c instanceof HTMLElement?c:ee(c);if(u!=null&&u.contains(a)||s.composed&&s.composedPath().includes(u))return}return!dh(a,zl.Loose)&&a.tabIndex!==-1&&s.preventDefault(),t(s,a)}let o=B(null);ds("pointerdown",s=>{var i,a;n.value&&(o.value=((a=(i=s.composedPath)==null?void 0:i.call(s))==null?void 0:a[0])||s.target)},!0),ds("mousedown",s=>{var i,a;n.value&&(o.value=((a=(i=s.composedPath)==null?void 0:i.call(s))==null?void 0:a[0])||s.target)},!0),ds("click",s=>{o.value&&(r(s,()=>o.value),o.value=null)},!0),ds("touchend",s=>r(s,()=>s.target instanceof HTMLElement?s.target:null),!0),ph("blur",s=>r(s,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}var fr=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(fr||{});let jr=ne({name:"Hidden",props:{as:{type:[Object,String],default:"div"},features:{type:Number,default:1}},setup(e,{slots:t,attrs:n}){return()=>{let{features:r,...o}=e,s={"aria-hidden":(r&2)===2?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(r&4)===4&&(r&2)!==2&&{display:"none"}}};return pt({ourProps:s,theirProps:o,slot:{},attrs:n,slots:t,name:"Hidden"})}}});function gh(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function qE(){return/Android/gi.test(window.navigator.userAgent)}function cT(){return gh()||qE()}function Vl(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function Ko(){let e=[],t={addEventListener(n,r,o,s){return n.addEventListener(r,o,s),t.add(()=>n.removeEventListener(r,o,s))},requestAnimationFrame(...n){let r=requestAnimationFrame(...n);t.add(()=>cancelAnimationFrame(r))},nextFrame(...n){t.requestAnimationFrame(()=>{t.requestAnimationFrame(...n)})},setTimeout(...n){let r=setTimeout(...n);t.add(()=>clearTimeout(r))},microTask(...n){let r={current:!0};return Vl(()=>{r.current&&n[0]()}),t.add(()=>{r.current=!1})},style(n,r,o){let s=n.style.getPropertyValue(r);return Object.assign(n.style,{[r]:o}),this.add(()=>{Object.assign(n.style,{[r]:s})})},group(n){let r=Ko();return n(r),this.add(()=>r.dispose())},add(n){return e.push(n),()=>{let r=e.indexOf(n);if(r>=0)for(let o of e.splice(r,1))o()}},dispose(){for(let n of e.splice(0))n()}};return t}var Et=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(Et||{});function Wl(){let e=B(0);return ph("keydown",t=>{t.key==="Tab"&&(e.value=t.shiftKey?1:0)}),e}function ql(e,t,n,r){qo.isServer||Ye(o=>{e=e??window,e.addEventListener(t,n,r),o(()=>e.removeEventListener(t,n,r))})}function KE(e){function t(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",t))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",t),t())}function mh(e){if(!e)return new Set;if(typeof e=="function")return new Set(e());let t=new Set;for(let n of e.value){let r=ee(n);r instanceof HTMLElement&&t.add(r)}return t}var vh=(e=>(e[e.None=1]="None",e[e.InitialFocus=2]="InitialFocus",e[e.TabLock=4]="TabLock",e[e.FocusLock=8]="FocusLock",e[e.RestoreFocus=16]="RestoreFocus",e[e.All=30]="All",e))(vh||{});let eo=Object.assign(ne({name:"FocusTrap",props:{as:{type:[Object,String],default:"div"},initialFocus:{type:Object,default:null},features:{type:Number,default:30},containers:{type:[Object,Function],default:B(new Set)}},inheritAttrs:!1,setup(e,{attrs:t,slots:n,expose:r}){let o=B(null);r({el:o,$el:o});let s=j(()=>vn(o)),i=B(!1);Le(()=>i.value=!0),et(()=>i.value=!1),QE({ownerDocument:s},j(()=>i.value&&!!(e.features&16)));let a=XE({ownerDocument:s,container:o,initialFocus:j(()=>e.initialFocus)},j(()=>i.value&&!!(e.features&2)));YE({ownerDocument:s,container:o,containers:e.containers,previousActiveElement:a},j(()=>i.value&&!!(e.features&8)));let l=Wl();function c(p){let h=ee(o);h&&(g=>g())(()=>{nt(l.value,{[Et.Forwards]:()=>{Bt(h,it.First,{skipElements:[p.relatedTarget]})},[Et.Backwards]:()=>{Bt(h,it.Last,{skipElements:[p.relatedTarget]})}})})}let u=B(!1);function f(p){p.key==="Tab"&&(u.value=!0,requestAnimationFrame(()=>{u.value=!1}))}function d(p){if(!i.value)return;let h=mh(e.containers);ee(o)instanceof HTMLElement&&h.add(ee(o));let g=p.relatedTarget;g instanceof HTMLElement&&g.dataset.headlessuiFocusGuard!=="true"&&(yh(h,g)||(u.value?Bt(ee(o),nt(l.value,{[Et.Forwards]:()=>it.Next,[Et.Backwards]:()=>it.Previous})|it.WrapAround,{relativeTo:p.target}):p.target instanceof HTMLElement&&or(p.target)))}return()=>{let p={},h={ref:o,onKeydown:f,onFocusout:d},{features:g,initialFocus:y,containers:x,...b}=e;return me(ke,[!!(g&4)&&me(jr,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:c,features:fr.Focusable}),pt({ourProps:h,theirProps:{...t,...b},slot:p,attrs:t,slots:n,name:"FocusTrap"}),!!(g&4)&&me(jr,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:c,features:fr.Focusable})])}}}),{features:vh}),Xn=[];KE(()=>{function e(t){t.target instanceof HTMLElement&&t.target!==document.body&&Xn[0]!==t.target&&(Xn.unshift(t.target),Xn=Xn.filter(n=>n!=null&&n.isConnected),Xn.splice(10))}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})});function GE(e){let t=B(Xn.slice());return ze([e],([n],[r])=>{r===!0&&n===!1?Vl(()=>{t.value.splice(0)}):r===!1&&n===!0&&(t.value=Xn.slice())},{flush:"post"}),()=>{var n;return(n=t.value.find(r=>r!=null&&r.isConnected))!=null?n:null}}function QE({ownerDocument:e},t){let n=GE(t);Le(()=>{Ye(()=>{var r,o;t.value||((r=e.value)==null?void 0:r.activeElement)===((o=e.value)==null?void 0:o.body)&&or(n())},{flush:"post"})}),et(()=>{t.value&&or(n())})}function XE({ownerDocument:e,container:t,initialFocus:n},r){let o=B(null),s=B(!1);return Le(()=>s.value=!0),et(()=>s.value=!1),Le(()=>{ze([t,n,r],(i,a)=>{if(i.every((c,u)=>(a==null?void 0:a[u])===c)||!r.value)return;let l=ee(t);l&&Vl(()=>{var c,u;if(!s.value)return;let f=ee(n),d=(c=e.value)==null?void 0:c.activeElement;if(f){if(f===d){o.value=d;return}}else if(l.contains(d)){o.value=d;return}f?or(f):Bt(l,it.First|it.NoScroll)===Lo.Error&&console.warn("There are no focusable elements inside the "),o.value=(u=e.value)==null?void 0:u.activeElement})},{immediate:!0,flush:"post"})}),o}function YE({ownerDocument:e,container:t,containers:n,previousActiveElement:r},o){var s;ql((s=e.value)==null?void 0:s.defaultView,"focus",i=>{if(!o.value)return;let a=mh(n);ee(t)instanceof HTMLElement&&a.add(ee(t));let l=r.value;if(!l)return;let c=i.target;c&&c instanceof HTMLElement?yh(a,c)?(r.value=c,or(c)):(i.preventDefault(),i.stopPropagation(),or(l)):or(r.value)},!0)}function yh(e,t){for(let n of e)if(n.contains(t))return!0;return!1}let Fi=new Map,to=new Map;function cf(e,t=B(!0)){Ye(n=>{var r;if(!t.value)return;let o=ee(e);if(!o)return;n(function(){var i;if(!o)return;let a=(i=to.get(o))!=null?i:1;if(a===1?to.delete(o):to.set(o,a-1),a!==1)return;let l=Fi.get(o);l&&(l["aria-hidden"]===null?o.removeAttribute("aria-hidden"):o.setAttribute("aria-hidden",l["aria-hidden"]),o.inert=l.inert,Fi.delete(o))});let s=(r=to.get(o))!=null?r:0;to.set(o,s+1),s===0&&(Fi.set(o,{"aria-hidden":o.getAttribute("aria-hidden"),inert:o.inert}),o.setAttribute("aria-hidden","true"),o.inert=!0)})}let bh=Symbol("ForcePortalRootContext");function JE(){return Te(bh,!1)}let uf=ne({name:"ForcePortalRoot",props:{as:{type:[Object,String],default:"template"},force:{type:Boolean,default:!1}},setup(e,{slots:t,attrs:n}){return Ve(bh,e.force),()=>{let{force:r,...o}=e;return pt({theirProps:o,ourProps:{},slot:{},slots:t,attrs:n,name:"ForcePortalRoot"})}}});function ZE(e){let t=vn(e);if(!t){if(e===null)return null;throw new Error(`[Headless UI]: Cannot find ownerDocument for contextElement: ${e}`)}let n=t.getElementById("headlessui-portal-root");if(n)return n;let r=t.createElement("div");return r.setAttribute("id","headlessui-portal-root"),t.body.appendChild(r)}let eC=ne({name:"Portal",props:{as:{type:[Object,String],default:"div"}},setup(e,{slots:t,attrs:n}){let r=B(null),o=j(()=>vn(r)),s=JE(),i=Te(_h,null),a=B(s===!0||i==null?ZE(r.value):i.resolveTarget());Ye(()=>{s||i!=null&&(a.value=i.resolveTarget())});let l=Te(Da,null);return Le(()=>{let c=ee(r);c&&l&&et(l.register(c))}),et(()=>{var c,u;let f=(c=o.value)==null?void 0:c.getElementById("headlessui-portal-root");f&&a.value===f&&a.value.children.length<=0&&((u=a.value.parentElement)==null||u.removeChild(a.value))}),()=>{if(a.value===null)return null;let c={ref:r,"data-headlessui-portal":""};return me(xd,{to:a.value},pt({ourProps:c,theirProps:e,slot:{},attrs:n,slots:t,name:"Portal"}))}}}),Da=Symbol("PortalParentContext");function wh(){let e=Te(Da,null),t=B([]);function n(s){return t.value.push(s),e&&e.register(s),()=>r(s)}function r(s){let i=t.value.indexOf(s);i!==-1&&t.value.splice(i,1),e&&e.unregister(s)}let o={register:n,unregister:r,portals:t};return[t,ne({name:"PortalWrapper",setup(s,{slots:i}){return Ve(Da,o),()=>{var a;return(a=i.default)==null?void 0:a.call(i)}}})]}let _h=Symbol("PortalGroupContext"),tC=ne({name:"PortalGroup",props:{as:{type:[Object,String],default:"template"},target:{type:Object,default:null}},setup(e,{attrs:t,slots:n}){let r=Rt({resolveTarget(){return e.target}});return Ve(_h,r),()=>{let{target:o,...s}=e;return pt({theirProps:s,ourProps:{},slot:{},attrs:t,slots:n,name:"PortalGroup"})}}}),xh=Symbol("StackContext");var Fa=(e=>(e[e.Add=0]="Add",e[e.Remove=1]="Remove",e))(Fa||{});function nC(){return Te(xh,()=>{})}function rC({type:e,enabled:t,element:n,onUpdate:r}){let o=nC();function s(...i){r==null||r(...i),o(...i)}Le(()=>{ze(t,(i,a)=>{i?s(0,e,n):a===!0&&s(1,e,n)},{immediate:!0,flush:"sync"})}),et(()=>{t.value&&s(1,e,n)}),Ve(xh,s)}let oC=Symbol("DescriptionContext");function sC({slot:e=B({}),name:t="Description",props:n={}}={}){let r=B([]);function o(s){return r.value.push(s),()=>{let i=r.value.indexOf(s);i!==-1&&r.value.splice(i,1)}}return Ve(oC,{register:o,slot:e,name:t,props:n}),j(()=>r.value.length>0?r.value.join(" "):void 0)}function iC(e){let t=lr(e.getSnapshot());return et(e.subscribe(()=>{t.value=e.getSnapshot()})),t}function aC(e,t){let n=e(),r=new Set;return{getSnapshot(){return n},subscribe(o){return r.add(o),()=>r.delete(o)},dispatch(o,...s){let i=t[o].call(n,...s);i&&(n=i,r.forEach(a=>a()))}}}function lC(){let e;return{before({doc:t}){var n;let r=t.documentElement;e=((n=t.defaultView)!=null?n:window).innerWidth-r.clientWidth},after({doc:t,d:n}){let r=t.documentElement,o=r.clientWidth-r.offsetWidth,s=e-o;n.style(r,"paddingRight",`${s}px`)}}}function cC(){if(!gh())return{};let e;return{before(){e=window.pageYOffset},after({doc:t,d:n,meta:r}){function o(i){return r.containers.flatMap(a=>a()).some(a=>a.contains(i))}if(window.getComputedStyle(t.documentElement).scrollBehavior!=="auto"){let i=Ko();i.style(t.documentElement,"scroll-behavior","auto"),n.add(()=>n.microTask(()=>i.dispose()))}n.style(t.body,"marginTop",`-${e}px`),window.scrollTo(0,0);let s=null;n.addEventListener(t,"click",i=>{if(i.target instanceof HTMLElement)try{let a=i.target.closest("a");if(!a)return;let{hash:l}=new URL(a.href),c=t.querySelector(l);c&&!o(c)&&(s=c)}catch{}},!0),n.addEventListener(t,"touchmove",i=>{i.target instanceof HTMLElement&&!o(i.target)&&i.preventDefault()},{passive:!1}),n.add(()=>{window.scrollTo(0,window.pageYOffset+e),s&&s.isConnected&&(s.scrollIntoView({block:"nearest"}),s=null)})}}}function uC(){return{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}}function fC(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let er=aC(()=>new Map,{PUSH(e,t){var n;let r=(n=this.get(e))!=null?n:{doc:e,count:0,d:Ko(),meta:new Set};return r.count++,r.meta.add(t),this.set(e,r),this},POP(e,t){let n=this.get(e);return n&&(n.count--,n.meta.delete(t)),this},SCROLL_PREVENT({doc:e,d:t,meta:n}){let r={doc:e,d:t,meta:fC(n)},o=[cC(),lC(),uC()];o.forEach(({before:s})=>s==null?void 0:s(r)),o.forEach(({after:s})=>s==null?void 0:s(r))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});er.subscribe(()=>{let e=er.getSnapshot(),t=new Map;for(let[n]of e)t.set(n,n.documentElement.style.overflow);for(let n of e.values()){let r=t.get(n.doc)==="hidden",o=n.count!==0;(o&&!r||!o&&r)&&er.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),n.count===0&&er.dispatch("TEARDOWN",n)}});function dC(e,t,n){let r=iC(er),o=j(()=>{let s=e.value?r.value.get(e.value):void 0;return s?s.count>0:!1});return ze([e,t],([s,i],[a],l)=>{if(!s||!i)return;er.dispatch("PUSH",s,n);let c=!1;l(()=>{c||(er.dispatch("POP",a??s,n),c=!0)})},{immediate:!0}),o}function kh({defaultContainers:e=[],portals:t,mainTreeNodeRef:n}={}){let r=B(null),o=vn(r);function s(){var i;let a=[];for(let l of e)l!==null&&(l instanceof HTMLElement?a.push(l):"value"in l&&l.value instanceof HTMLElement&&a.push(l.value));if(t!=null&&t.value)for(let l of t.value)a.push(l);for(let l of(i=o==null?void 0:o.querySelectorAll("html > *, body > *"))!=null?i:[])l!==document.body&&l!==document.head&&l instanceof HTMLElement&&l.id!=="headlessui-portal-root"&&(l.contains(ee(r))||a.some(c=>l.contains(c))||a.push(l));return a}return{resolveContainers:s,contains(i){return s().some(a=>a.contains(i))},mainTreeNodeRef:r,MainTreeNode(){return n!=null?null:me(jr,{features:fr.Hidden,ref:r})}}}var pC=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(pC||{});let Na=Symbol("DialogContext");function Eh(e){let t=Te(Na,null);if(t===null){let n=new Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Eh),n}return t}let ps="DC8F892D-2EBD-447C-A4C8-A03058436FF4",hC=ne({name:"Dialog",inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},open:{type:[Boolean,String],default:ps},initialFocus:{type:Object,default:null},id:{type:String,default:()=>`headlessui-dialog-${Yt()}`}},emits:{close:e=>!0},setup(e,{emit:t,attrs:n,slots:r,expose:o}){var s;let i=B(!1);Le(()=>{i.value=!0});let a=B(0),l=Wo(),c=j(()=>e.open===ps&&l!==null?(l.value&qe.Open)===qe.Open:e.open),u=B(null),f=j(()=>vn(u));if(o({el:u,$el:u}),!(e.open!==ps||l!==null))throw new Error("You forgot to provide an `open` prop to the `Dialog`.");if(typeof c.value!="boolean")throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${c.value===ps?void 0:e.open}`);let d=j(()=>i.value&&c.value?0:1),p=j(()=>d.value===0),h=j(()=>a.value>1),g=Te(Na,null)!==null,[y,x]=wh(),{resolveContainers:b,mainTreeNodeRef:v,MainTreeNode:m}=kh({portals:y,defaultContainers:[j(()=>{var V;return(V=N.panelRef.value)!=null?V:u.value})]}),_=j(()=>h.value?"parent":"leaf"),C=j(()=>l!==null?(l.value&qe.Closing)===qe.Closing:!1),S=j(()=>g||C.value?!1:p.value),T=j(()=>{var V,W,_e;return(_e=Array.from((W=(V=f.value)==null?void 0:V.querySelectorAll("body > *"))!=null?W:[]).find(Re=>Re.id==="headlessui-portal-root"?!1:Re.contains(ee(v))&&Re instanceof HTMLElement))!=null?_e:null});cf(T,S);let M=j(()=>h.value?!0:p.value),I=j(()=>{var V,W,_e;return(_e=Array.from((W=(V=f.value)==null?void 0:V.querySelectorAll("[data-headlessui-portal]"))!=null?W:[]).find(Re=>Re.contains(ee(v))&&Re instanceof HTMLElement))!=null?_e:null});cf(I,M),rC({type:"Dialog",enabled:j(()=>d.value===0),element:u,onUpdate:(V,W)=>{if(W==="Dialog")return nt(V,{[Fa.Add]:()=>a.value+=1,[Fa.Remove]:()=>a.value-=1})}});let q=sC({name:"DialogDescription",slot:j(()=>({open:c.value}))}),A=B(null),N={titleId:A,panelRef:B(null),dialogState:d,setTitleId(V){A.value!==V&&(A.value=V)},close(){t("close",!1)}};Ve(Na,N);let he=j(()=>!(!p.value||h.value));hh(b,(V,W)=>{N.close(),hn(()=>W==null?void 0:W.focus())},he);let fe=j(()=>!(h.value||d.value!==0));ql((s=f.value)==null?void 0:s.defaultView,"keydown",V=>{fe.value&&(V.defaultPrevented||V.key===mt.Escape&&(V.preventDefault(),V.stopPropagation(),N.close()))});let U=j(()=>!(C.value||d.value!==0||g));return dC(f,U,V=>{var W;return{containers:[...(W=V.containers)!=null?W:[],b]}}),Ye(V=>{if(d.value!==0)return;let W=ee(u);if(!W)return;let _e=new ResizeObserver(Re=>{for(let Fe of Re){let Ee=Fe.target.getBoundingClientRect();Ee.x===0&&Ee.y===0&&Ee.width===0&&Ee.height===0&&N.close()}});_e.observe(W),V(()=>_e.disconnect())}),()=>{let{id:V,open:W,initialFocus:_e,...Re}=e,Fe={...n,ref:u,id:V,role:"dialog","aria-modal":d.value===0?!0:void 0,"aria-labelledby":A.value,"aria-describedby":q.value},Ee={open:d.value===0};return me(uf,{force:!0},()=>[me(eC,()=>me(tC,{target:u.value},()=>me(uf,{force:!1},()=>me(eo,{initialFocus:_e,containers:b,features:p.value?nt(_.value,{parent:eo.features.RestoreFocus,leaf:eo.features.All&~eo.features.FocusLock}):eo.features.None},()=>me(x,{},()=>pt({ourProps:Fe,theirProps:{...Re,...n},slot:Ee,attrs:n,slots:r,visible:d.value===0,features:Fn.RenderStrategy|Fn.Static,name:"Dialog"})))))),me(m)])}}}),gC=ne({name:"DialogPanel",props:{as:{type:[Object,String],default:"div"},id:{type:String,default:()=>`headlessui-dialog-panel-${Yt()}`}},setup(e,{attrs:t,slots:n,expose:r}){let o=Eh("DialogPanel");r({el:o.panelRef,$el:o.panelRef});function s(i){i.stopPropagation()}return()=>{let{id:i,...a}=e,l={id:i,ref:o.panelRef,onClick:s};return pt({ourProps:l,theirProps:a,slot:{open:o.dialogState.value===0},attrs:t,slots:n,name:"DialogPanel"})}}});var mC=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(mC||{});let Ch=Symbol("DisclosureContext");function Kl(e){let t=Te(Ch,null);if(t===null){let n=new Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Kl),n}return t}let Ph=Symbol("DisclosurePanelContext");function vC(){return Te(Ph,null)}let yC=ne({name:"Disclosure",props:{as:{type:[Object,String],default:"template"},defaultOpen:{type:[Boolean],default:!1}},setup(e,{slots:t,attrs:n}){let r=B(e.defaultOpen?0:1),o=B(null),s=B(null),i={buttonId:B(`headlessui-disclosure-button-${Yt()}`),panelId:B(`headlessui-disclosure-panel-${Yt()}`),disclosureState:r,panel:o,button:s,toggleDisclosure(){r.value=nt(r.value,{0:1,1:0})},closeDisclosure(){r.value!==1&&(r.value=1)},close(a){i.closeDisclosure();let l=(()=>a?a instanceof HTMLElement?a:a.value instanceof HTMLElement?ee(a):ee(i.button):ee(i.button))();l==null||l.focus()}};return Ve(Ch,i),Ul(j(()=>nt(r.value,{0:qe.Open,1:qe.Closed}))),()=>{let{defaultOpen:a,...l}=e,c={open:r.value===0,close:i.close};return pt({theirProps:l,ourProps:{},slot:c,slots:t,attrs:n,name:"Disclosure"})}}}),bC=ne({name:"DisclosureButton",props:{as:{type:[Object,String],default:"button"},disabled:{type:[Boolean],default:!1},id:{type:String,default:null}},setup(e,{attrs:t,slots:n,expose:r}){let o=Kl("DisclosureButton"),s=vC(),i=j(()=>s===null?!1:s.value===o.panelId.value);Le(()=>{i.value||e.id!==null&&(o.buttonId.value=e.id)}),et(()=>{i.value||(o.buttonId.value=null)});let a=B(null);r({el:a,$el:a}),i.value||Ye(()=>{o.button.value=a.value});let l=fh(j(()=>({as:e.as,type:t.type})),a);function c(){var d;e.disabled||(i.value?(o.toggleDisclosure(),(d=ee(o.button))==null||d.focus()):o.toggleDisclosure())}function u(d){var p;if(!e.disabled)if(i.value)switch(d.key){case mt.Space:case mt.Enter:d.preventDefault(),d.stopPropagation(),o.toggleDisclosure(),(p=ee(o.button))==null||p.focus();break}else switch(d.key){case mt.Space:case mt.Enter:d.preventDefault(),d.stopPropagation(),o.toggleDisclosure();break}}function f(d){switch(d.key){case mt.Space:d.preventDefault();break}}return()=>{var d;let p={open:o.disclosureState.value===0},{id:h,...g}=e,y=i.value?{ref:a,type:l.value,onClick:c,onKeydown:u}:{id:(d=o.buttonId.value)!=null?d:h,ref:a,type:l.value,"aria-expanded":o.disclosureState.value===0,"aria-controls":o.disclosureState.value===0||ee(o.panel)?o.panelId.value:void 0,disabled:e.disabled?!0:void 0,onClick:c,onKeydown:u,onKeyup:f};return pt({ourProps:y,theirProps:g,slot:p,attrs:t,slots:n,name:"DisclosureButton"})}}}),wC=ne({name:"DisclosurePanel",props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},id:{type:String,default:null}},setup(e,{attrs:t,slots:n,expose:r}){let o=Kl("DisclosurePanel");Le(()=>{e.id!==null&&(o.panelId.value=e.id)}),et(()=>{o.panelId.value=null}),r({el:o.panel,$el:o.panel}),Ve(Ph,o.panelId);let s=Wo(),i=j(()=>s!==null?(s.value&qe.Open)===qe.Open:o.disclosureState.value===0);return()=>{var a;let l={open:o.disclosureState.value===0,close:o.close},{id:c,...u}=e,f={id:(a=o.panelId.value)!=null?a:c,ref:o.panel};return pt({ourProps:f,theirProps:u,slot:l,attrs:t,slots:n,features:Fn.RenderStrategy|Fn.Static,visible:i.value,name:"DisclosurePanel"})}}});var _C=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(_C||{});let Sh=Symbol("PopoverContext");function Gl(e){let t=Te(Sh,null);if(t===null){let n=new Error(`<${e} /> is missing a parent <${Oh.name} /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Gl),n}return t}let xC=Symbol("PopoverGroupContext");function Th(){return Te(xC,null)}let Ah=Symbol("PopoverPanelContext");function kC(){return Te(Ah,null)}let Oh=ne({name:"Popover",inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"}},setup(e,{slots:t,attrs:n,expose:r}){var o;let s=B(null);r({el:s,$el:s});let i=B(1),a=B(null),l=B(null),c=B(null),u=B(null),f=j(()=>vn(s)),d=j(()=>{var _,C;if(!ee(a)||!ee(u))return!1;for(let N of document.querySelectorAll("body > *"))if(Number(N==null?void 0:N.contains(ee(a)))^Number(N==null?void 0:N.contains(ee(u))))return!0;let S=fi(),T=S.indexOf(ee(a)),M=(T+S.length-1)%S.length,I=(T+1)%S.length,q=S[M],A=S[I];return!((_=ee(u))!=null&&_.contains(q))&&!((C=ee(u))!=null&&C.contains(A))}),p={popoverState:i,buttonId:B(null),panelId:B(null),panel:u,button:a,isPortalled:d,beforePanelSentinel:l,afterPanelSentinel:c,togglePopover(){i.value=nt(i.value,{0:1,1:0})},closePopover(){i.value!==1&&(i.value=1)},close(_){p.closePopover();let C=(()=>_?_ instanceof HTMLElement?_:_.value instanceof HTMLElement?ee(_):ee(p.button):ee(p.button))();C==null||C.focus()}};Ve(Sh,p),Ul(j(()=>nt(i.value,{0:qe.Open,1:qe.Closed})));let h={buttonId:p.buttonId,panelId:p.panelId,close(){p.closePopover()}},g=Th(),y=g==null?void 0:g.registerPopover,[x,b]=wh(),v=kh({mainTreeNodeRef:g==null?void 0:g.mainTreeNodeRef,portals:x,defaultContainers:[a,u]});function m(){var _,C,S,T;return(T=g==null?void 0:g.isFocusWithinPopoverGroup())!=null?T:((_=f.value)==null?void 0:_.activeElement)&&(((C=ee(a))==null?void 0:C.contains(f.value.activeElement))||((S=ee(u))==null?void 0:S.contains(f.value.activeElement)))}return Ye(()=>y==null?void 0:y(h)),ql((o=f.value)==null?void 0:o.defaultView,"focus",_=>{var C,S;_.target!==window&&_.target instanceof HTMLElement&&i.value===0&&(m()||a&&u&&(v.contains(_.target)||(C=ee(p.beforePanelSentinel))!=null&&C.contains(_.target)||(S=ee(p.afterPanelSentinel))!=null&&S.contains(_.target)||p.closePopover()))},!0),hh(v.resolveContainers,(_,C)=>{var S;p.closePopover(),dh(C,zl.Loose)||(_.preventDefault(),(S=ee(a))==null||S.focus())},j(()=>i.value===0)),()=>{let _={open:i.value===0,close:p.close};return me(ke,[me(b,{},()=>pt({theirProps:{...e,...n},ourProps:{ref:s},slot:_,slots:t,attrs:n,name:"Popover"})),me(v.MainTreeNode)])}}}),EC=ne({name:"PopoverButton",props:{as:{type:[Object,String],default:"button"},disabled:{type:[Boolean],default:!1},id:{type:String,default:()=>`headlessui-popover-button-${Yt()}`}},inheritAttrs:!1,setup(e,{attrs:t,slots:n,expose:r}){let o=Gl("PopoverButton"),s=j(()=>vn(o.button));r({el:o.button,$el:o.button}),Le(()=>{o.buttonId.value=e.id}),et(()=>{o.buttonId.value=null});let i=Th(),a=i==null?void 0:i.closeOthers,l=kC(),c=j(()=>l===null?!1:l.value===o.panelId.value),u=B(null),f=`headlessui-focus-sentinel-${Yt()}`;c.value||Ye(()=>{o.button.value=u.value});let d=fh(j(()=>({as:e.as,type:t.type})),u);function p(v){var m,_,C,S,T;if(c.value){if(o.popoverState.value===1)return;switch(v.key){case mt.Space:case mt.Enter:v.preventDefault(),(_=(m=v.target).click)==null||_.call(m),o.closePopover(),(C=ee(o.button))==null||C.focus();break}}else switch(v.key){case mt.Space:case mt.Enter:v.preventDefault(),v.stopPropagation(),o.popoverState.value===1&&(a==null||a(o.buttonId.value)),o.togglePopover();break;case mt.Escape:if(o.popoverState.value!==0)return a==null?void 0:a(o.buttonId.value);if(!ee(o.button)||(S=s.value)!=null&&S.activeElement&&!((T=ee(o.button))!=null&&T.contains(s.value.activeElement)))return;v.preventDefault(),v.stopPropagation(),o.closePopover();break}}function h(v){c.value||v.key===mt.Space&&v.preventDefault()}function g(v){var m,_;e.disabled||(c.value?(o.closePopover(),(m=ee(o.button))==null||m.focus()):(v.preventDefault(),v.stopPropagation(),o.popoverState.value===1&&(a==null||a(o.buttonId.value)),o.togglePopover(),(_=ee(o.button))==null||_.focus()))}function y(v){v.preventDefault(),v.stopPropagation()}let x=Wl();function b(){let v=ee(o.panel);if(!v)return;function m(){nt(x.value,{[Et.Forwards]:()=>Bt(v,it.First),[Et.Backwards]:()=>Bt(v,it.Last)})===Lo.Error&&Bt(fi().filter(_=>_.dataset.headlessuiFocusGuard!=="true"),nt(x.value,{[Et.Forwards]:it.Next,[Et.Backwards]:it.Previous}),{relativeTo:ee(o.button)})}m()}return()=>{let v=o.popoverState.value===0,m={open:v},{id:_,...C}=e,S=c.value?{ref:u,type:d.value,onKeydown:p,onClick:g}:{ref:u,id:_,type:d.value,"aria-expanded":o.popoverState.value===0,"aria-controls":ee(o.panel)?o.panelId.value:void 0,disabled:e.disabled?!0:void 0,onKeydown:p,onKeyup:h,onClick:g,onMousedown:y};return me(ke,[pt({ourProps:S,theirProps:{...t,...C},slot:m,attrs:t,slots:n,name:"PopoverButton"}),v&&!c.value&&o.isPortalled.value&&me(jr,{id:f,features:fr.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:b})])}}}),CC=ne({name:"PopoverPanel",props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},focus:{type:Boolean,default:!1},id:{type:String,default:()=>`headlessui-popover-panel-${Yt()}`}},inheritAttrs:!1,setup(e,{attrs:t,slots:n,expose:r}){let{focus:o}=e,s=Gl("PopoverPanel"),i=j(()=>vn(s.panel)),a=`headlessui-focus-sentinel-before-${Yt()}`,l=`headlessui-focus-sentinel-after-${Yt()}`;r({el:s.panel,$el:s.panel}),Le(()=>{s.panelId.value=e.id}),et(()=>{s.panelId.value=null}),Ve(Ah,s.panelId),Ye(()=>{var y,x;if(!o||s.popoverState.value!==0||!s.panel)return;let b=(y=i.value)==null?void 0:y.activeElement;(x=ee(s.panel))!=null&&x.contains(b)||Bt(ee(s.panel),it.First)});let c=Wo(),u=j(()=>c!==null?(c.value&qe.Open)===qe.Open:s.popoverState.value===0);function f(y){var x,b;switch(y.key){case mt.Escape:if(s.popoverState.value!==0||!ee(s.panel)||i.value&&!((x=ee(s.panel))!=null&&x.contains(i.value.activeElement)))return;y.preventDefault(),y.stopPropagation(),s.closePopover(),(b=ee(s.button))==null||b.focus();break}}function d(y){var x,b,v,m,_;let C=y.relatedTarget;C&&ee(s.panel)&&((x=ee(s.panel))!=null&&x.contains(C)||(s.closePopover(),((v=(b=ee(s.beforePanelSentinel))==null?void 0:b.contains)!=null&&v.call(b,C)||(_=(m=ee(s.afterPanelSentinel))==null?void 0:m.contains)!=null&&_.call(m,C))&&C.focus({preventScroll:!0})))}let p=Wl();function h(){let y=ee(s.panel);if(!y)return;function x(){nt(p.value,{[Et.Forwards]:()=>{var b;Bt(y,it.First)===Lo.Error&&((b=ee(s.afterPanelSentinel))==null||b.focus())},[Et.Backwards]:()=>{var b;(b=ee(s.button))==null||b.focus({preventScroll:!0})}})}x()}function g(){let y=ee(s.panel);if(!y)return;function x(){nt(p.value,{[Et.Forwards]:()=>{let b=ee(s.button),v=ee(s.panel);if(!b)return;let m=fi(),_=m.indexOf(b),C=m.slice(0,_+1),S=[...m.slice(_+1),...C];for(let T of S.slice())if(T.dataset.headlessuiFocusGuard==="true"||v!=null&&v.contains(T)){let M=S.indexOf(T);M!==-1&&S.splice(M,1)}Bt(S,it.First,{sorted:!1})},[Et.Backwards]:()=>{var b;Bt(y,it.Previous)===Lo.Error&&((b=ee(s.button))==null||b.focus())}})}x()}return()=>{let y={open:s.popoverState.value===0,close:s.close},{id:x,focus:b,...v}=e,m={ref:s.panel,id:x,onKeydown:f,onFocusout:o&&s.popoverState.value===0?d:void 0,tabIndex:-1};return pt({ourProps:m,theirProps:{...t,...v},attrs:t,slot:y,slots:{...n,default:(..._)=>{var C;return[me(ke,[u.value&&s.isPortalled.value&&me(jr,{id:a,ref:s.beforePanelSentinel,features:fr.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:h}),(C=n.default)==null?void 0:C.call(n,..._),u.value&&s.isPortalled.value&&me(jr,{id:l,ref:s.afterPanelSentinel,features:fr.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:g})])]}},features:Fn.RenderStrategy|Fn.Static,visible:u.value,name:"PopoverPanel"})}}});function PC(e){let t={called:!1};return(...n)=>{if(!t.called)return t.called=!0,e(...n)}}function Ni(e,...t){e&&t.length>0&&e.classList.add(...t)}function hs(e,...t){e&&t.length>0&&e.classList.remove(...t)}var Ba=(e=>(e.Finished="finished",e.Cancelled="cancelled",e))(Ba||{});function SC(e,t){let n=Ko();if(!e)return n.dispose;let{transitionDuration:r,transitionDelay:o}=getComputedStyle(e),[s,i]=[r,o].map(a=>{let[l=0]=a.split(",").filter(Boolean).map(c=>c.includes("ms")?parseFloat(c):parseFloat(c)*1e3).sort((c,u)=>u-c);return l});return s!==0?n.setTimeout(()=>t("finished"),s+i):t("finished"),n.add(()=>t("cancelled")),n.dispose}function ff(e,t,n,r,o,s){let i=Ko(),a=s!==void 0?PC(s):()=>{};return hs(e,...o),Ni(e,...t,...n),i.nextFrame(()=>{hs(e,...n),Ni(e,...r),i.add(SC(e,l=>(hs(e,...r,...t),Ni(e,...o),a(l))))}),i.add(()=>hs(e,...t,...n,...r,...o)),i.add(()=>a("cancelled")),i.dispose}function Wn(e=""){return e.split(" ").filter(t=>t.trim().length>1)}let Ql=Symbol("TransitionContext");var TC=(e=>(e.Visible="visible",e.Hidden="hidden",e))(TC||{});function AC(){return Te(Ql,null)!==null}function OC(){let e=Te(Ql,null);if(e===null)throw new Error("A is used but it is missing a parent .");return e}function $C(){let e=Te(Xl,null);if(e===null)throw new Error("A is used but it is missing a parent .");return e}let Xl=Symbol("NestingContext");function di(e){return"children"in e?di(e.children):e.value.filter(({state:t})=>t==="visible").length>0}function $h(e){let t=B([]),n=B(!1);Le(()=>n.value=!0),et(()=>n.value=!1);function r(s,i=An.Hidden){let a=t.value.findIndex(({id:l})=>l===s);a!==-1&&(nt(i,{[An.Unmount](){t.value.splice(a,1)},[An.Hidden](){t.value[a].state="hidden"}}),!di(t)&&n.value&&(e==null||e()))}function o(s){let i=t.value.find(({id:a})=>a===s);return i?i.state!=="visible"&&(i.state="visible"):t.value.push({id:s,state:"visible"}),()=>r(s,An.Unmount)}return{children:t,register:o,unregister:r}}let Ih=Fn.RenderStrategy,IC=ne({props:{as:{type:[Object,String],default:"div"},show:{type:[Boolean],default:null},unmount:{type:[Boolean],default:!0},appear:{type:[Boolean],default:!1},enter:{type:[String],default:""},enterFrom:{type:[String],default:""},enterTo:{type:[String],default:""},entered:{type:[String],default:""},leave:{type:[String],default:""},leaveFrom:{type:[String],default:""},leaveTo:{type:[String],default:""}},emits:{beforeEnter:()=>!0,afterEnter:()=>!0,beforeLeave:()=>!0,afterLeave:()=>!0},setup(e,{emit:t,attrs:n,slots:r,expose:o}){let s=B(0);function i(){s.value|=qe.Opening,t("beforeEnter")}function a(){s.value&=~qe.Opening,t("afterEnter")}function l(){s.value|=qe.Closing,t("beforeLeave")}function c(){s.value&=~qe.Closing,t("afterLeave")}if(!AC()&&DE())return()=>me(Rh,{...e,onBeforeEnter:i,onAfterEnter:a,onBeforeLeave:l,onAfterLeave:c},r);let u=B(null),f=j(()=>e.unmount?An.Unmount:An.Hidden);o({el:u,$el:u});let{show:d,appear:p}=OC(),{register:h,unregister:g}=$C(),y=B(d.value?"visible":"hidden"),x={value:!0},b=Yt(),v={value:!1},m=$h(()=>{!v.value&&y.value!=="hidden"&&(y.value="hidden",g(b),c())});Le(()=>{let N=h(b);et(N)}),Ye(()=>{if(f.value===An.Hidden&&b){if(d.value&&y.value!=="visible"){y.value="visible";return}nt(y.value,{hidden:()=>g(b),visible:()=>h(b)})}});let _=Wn(e.enter),C=Wn(e.enterFrom),S=Wn(e.enterTo),T=Wn(e.entered),M=Wn(e.leave),I=Wn(e.leaveFrom),q=Wn(e.leaveTo);Le(()=>{Ye(()=>{if(y.value==="visible"){let N=ee(u);if(N instanceof Comment&&N.data==="")throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}})});function A(N){let he=x.value&&!p.value,fe=ee(u);!fe||!(fe instanceof HTMLElement)||he||(v.value=!0,d.value&&i(),d.value||l(),N(d.value?ff(fe,_,C,S,T,U=>{v.value=!1,U===Ba.Finished&&a()}):ff(fe,M,I,q,T,U=>{v.value=!1,U===Ba.Finished&&(di(m)||(y.value="hidden",g(b),c()))})))}return Le(()=>{ze([d],(N,he,fe)=>{A(fe),x.value=!1},{immediate:!0})}),Ve(Xl,m),Ul(j(()=>nt(y.value,{visible:qe.Open,hidden:qe.Closed})|s.value)),()=>{let{appear:N,show:he,enter:fe,enterFrom:U,enterTo:V,entered:W,leave:_e,leaveFrom:Re,leaveTo:Fe,...Ee}=e,Me={ref:u},lt={...Ee,...p.value&&d.value&&qo.isServer?{class:G([n.class,Ee.class,..._,...C])}:{}};return pt({theirProps:lt,ourProps:Me,slot:{},slots:r,attrs:n,features:Ih,visible:y.value==="visible",name:"TransitionChild"})}}}),RC=IC,Rh=ne({inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"},show:{type:[Boolean],default:null},unmount:{type:[Boolean],default:!0},appear:{type:[Boolean],default:!1},enter:{type:[String],default:""},enterFrom:{type:[String],default:""},enterTo:{type:[String],default:""},entered:{type:[String],default:""},leave:{type:[String],default:""},leaveFrom:{type:[String],default:""},leaveTo:{type:[String],default:""}},emits:{beforeEnter:()=>!0,afterEnter:()=>!0,beforeLeave:()=>!0,afterLeave:()=>!0},setup(e,{emit:t,attrs:n,slots:r}){let o=Wo(),s=j(()=>e.show===null&&o!==null?(o.value&qe.Open)===qe.Open:e.show);Ye(()=>{if(![!0,!1].includes(s.value))throw new Error('A is used but it is missing a `:show="true | false"` prop.')});let i=B(s.value?"visible":"hidden"),a=$h(()=>{i.value="hidden"}),l=B(!0),c={show:s,appear:j(()=>e.appear||!l.value)};return Le(()=>{Ye(()=>{l.value=!1,s.value?i.value="visible":di(a)||(i.value="hidden")})}),Ve(Xl,a),Ve(Ql,c),()=>{let u=ch(e,["show","appear","unmount","onBeforeEnter","onBeforeLeave","onAfterEnter","onAfterLeave"]),f={unmount:e.unmount};return pt({ourProps:{...f,as:"template"},theirProps:{},slot:{},slots:{...r,default:()=>[me(RC,{onBeforeEnter:()=>t("beforeEnter"),onAfterEnter:()=>t("afterEnter"),onBeforeLeave:()=>t("beforeLeave"),onAfterLeave:()=>t("afterLeave"),...n,...f,...u},r.default)]},attrs:{},features:Ih,visible:i.value==="visible",name:"Transition"})}}});const Bi=Wt(He.ui.strategy,He.ui.accordion,Qk),LC=Wt(He.ui.strategy,He.ui.button,eh),MC=ne({components:{HDisclosure:yC,HDisclosureButton:bC,HDisclosurePanel:wC,UIcon:bt,UButton:qt},inheritAttrs:!1,props:{items:{type:Array,default:()=>[]},defaultOpen:{type:Boolean,default:!1},openIcon:{type:String,default:()=>Bi.default.openIcon},closeIcon:{type:String,default:()=>Bi.default.closeIcon},multiple:{type:Boolean,default:!1},class:{type:[String,Object,Array],default:void 0},ui:{type:Object,default:void 0}},setup(e){const{ui:t,attrs:n}=Ke("accordion",we(e,"ui"),Bi,we(e,"class")),r=j(()=>LC),o=B([]);function s(u,f){!e.items[u].closeOthers&&e.multiple||o.value.forEach(d=>{d.open&&d.close(f.target)})}function i(u,f){u.style.height="0",u.offsetHeight,u.style.height=u.scrollHeight+"px",u.addEventListener("transitionend",f,{once:!0})}function a(u){u.style.height=u.scrollHeight+"px",u.offsetHeight}function l(u){u.style.height="auto"}function c(u,f){u.style.height="0",u.addEventListener("transitionend",f,{once:!0})}return{ui:t,uiButton:r,attrs:n,buttonRefs:o,closeOthers:s,omit:Lp,onEnter:i,onBeforeLeave:a,onAfterEnter:l,onLeave:c}}});function jC(e,t,n,r,o,s){const i=bt,a=qt,l=nr("HDisclosureButton"),c=nr("HDisclosurePanel"),u=nr("HDisclosure");return R(),se("div",{class:G(e.ui.wrapper)},[(R(!0),se(ke,null,yt(e.items,(f,d)=>(R(),ae(u,{key:d,"default-open":e.defaultOpen||f.defaultOpen},{default:le(({open:p,close:h})=>[Y(l,{ref_for:!0,ref:()=>e.buttonRefs[d]={open:p,close:h},as:"template",disabled:f.disabled,onClick:g=>e.closeOthers(d,g),onKeydown:[Yc(g=>e.closeOthers(d,g),["enter"]),Yc(g=>e.closeOthers(d,g),["space"])]},{default:le(()=>[ye(e.$slots,"default",{item:f,index:d,open:p,close:h},()=>[Y(a,Fo(Uo({...e.omit(e.ui.default,["openIcon","closeIcon"]),...e.attrs,...e.omit(f,["slot","disabled","content","defaultOpen"])})),{trailing:le(()=>[Y(i,{name:p&&e.closeIcon?e.closeIcon:e.openIcon,class:G([p&&!e.closeIcon?"-rotate-180":"",e.uiButton.icon.size[f.size||e.uiButton.default.size],e.ui.item.icon])},null,8,["name","class"])]),_:2},1040)])]),_:2},1032,["disabled","onClick","onKeydown"]),Y(hr,ue(e.ui.transition,{onEnter:e.onEnter,onAfterEnter:e.onAfterEnter,onBeforeLeave:e.onBeforeLeave,onLeave:e.onLeave}),{default:le(()=>[fm(be("div",null,[Y(c,{class:G([e.ui.item.base,e.ui.item.size,e.ui.item.color,e.ui.item.padding]),static:""},{default:le(()=>[ye(e.$slots,f.slot||"item",{item:f,index:d,open:p,close:h},()=>[Je(je(f.content),1)])]),_:2},1032,["class"])],512),[[lv,p]])]),_:2},1040,["onEnter","onAfterEnter","onBeforeLeave","onLeave"])]),_:2},1032,["default-open"]))),128))],2)}const DC=Mt(MC,[["render",jC]]),FC=ne({inheritAttrs:!1,__name:"NavigationAccordion",props:{level:{default:0},links:{default:()=>[]},multiple:{type:Boolean,default:!0},defaultOpen:{type:Boolean,default:void 0},ui:{default:()=>({})},class:{default:void 0}},setup(e){const t=at(),n={wrapper:"w-full block",level:"border-l border-gray-200 dark:border-gray-800 -ml-px pl-px hover:border-gray-300 dark:hover:border-gray-700",button:{base:"flex items-center gap-1.5 group mb-3 w-full focus-visible:outline-primary",active:"text-primary border-current",inactive:"border-transparent",level:"border-l -ml-px pl-4",icon:{base:"w-5 h-5 flex-shrink-0"},trailingIcon:{name:t.ui.icons.chevron,base:"w-5 h-5 ms-auto transform transition-transform duration-200 flex-shrink-0 mr-1.5",active:"text-gray-700 dark:text-gray-200",inactive:"text-gray-500 dark:text-gray-400 group-hover:text-gray-700 dark:group-hover:text-gray-200 -rotate-90"},label:"text-sm/6 font-semibold truncate"},tree:"border-l border-gray-200 dark:border-gray-800"},r=e,o=jn(),{ui:s,attrs:i}=Ke("navigation.accordion",we(r,"ui"),n,we(r,"class"),!0),a=j(()=>{var l;return(l=r.links)==null?void 0:l.map(c=>{const u=!r.defaultOpen||c.to&&o.path.startsWith(c.to.toString());return{label:c.label,icon:c.icon,slot:c.label.toLowerCase(),disabled:c.disabled,defaultOpen:u,children:c.children}})});return(l,c)=>{const u=bt,f=Nn,d=Lh,p=DC;return R(),ae(p,ue({key:(l._.provides[vr]||l.$route).path,items:E(a),multiple:l.multiple,ui:{wrapper:[E(s).wrapper,l.level>0&&E(s).level].filter(Boolean).join(" "),item:{padding:l.multiple?"p-0 mb-3 lg:mb-6":"p-0 mb-3",color:"text-inherit dark:text-inherit"}}},E(i)),ei({default:le(({item:h,open:g})=>[Y(f,{class:G([E(s).button.base,l.level>0&&E(s).button.level]),"active-class":E(s).button.active,"inactive-class":E(s).button.inactive},{default:le(()=>[h.icon?(R(),ae(u,{key:0,name:h.icon,class:G(E(s).button.icon.base)},null,8,["name","class"])):ge("",!0),be("span",{class:G(E(s).button.label)},je(h.label),3),h.disabled?ge("",!0):(R(),ae(u,{key:1,name:E(s).button.trailingIcon.name,class:G([E(s).button.trailingIcon.base,g?E(s).button.trailingIcon.active:E(s).button.trailingIcon.inactive])},null,8,["name","class"]))]),_:2},1032,["class","active-class","inactive-class"])]),_:2},[yt(l.links,({label:h},g)=>({name:h.toLowerCase(),fn:le(({item:y})=>[Y(d,{links:y.children,level:l.level+1,"default-open":l.defaultOpen,multiple:l.multiple,style:fn({marginLeft:`${.5*(l.level+1)+.5*l.level}rem`}),class:G(E(s).tree)},null,8,["links","level","default-open","multiple","style","class"])])}))]),1040,["items","multiple","ui"])}}});function Dr(e,t){const n={...e};for(const r of t)delete n[r];return n}const NC=ne({inheritAttrs:!1,__name:"NavigationLinks",props:{level:{default:0},links:{default:()=>[]},ui:{default:()=>({})},class:{default:void 0}},setup(e){const t={wrapper:"space-y-3",wrapperLevel:"space-y-1.5",base:"flex items-center gap-1.5 group",active:"text-primary font-medium border-current",inactive:"text-gray-500 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-200 border-transparent hover:border-gray-500 dark:hover:border-gray-400",level:"border-l -ml-px pl-4",icon:{base:"w-5 h-5 flex-shrink-0"},label:"text-sm/6"},n=e,{ui:r,attrs:o}=Ke("navigation.links",we(n,"ui"),t,we(n,"class"),!0);return(s,i)=>{var u;const a=bt,l=th,c=Nn;return(u=s.links)!=null&&u.length?(R(),se("div",ue({key:0,class:s.level>0?E(r).wrapperLevel:E(r).wrapper},E(o)),[(R(!0),se(ke,null,yt(s.links,(f,d)=>(R(),ae(c,ue({key:d},E(Dr)(f,["label","icon","iconClass","badge","children"]),{class:[E(r).base,s.level>0&&E(r).level],"active-class":E(r).active,"inactive-class":E(r).inactive,onClick:f.click}),{default:le(()=>[f.icon?(R(),ae(a,{key:0,name:f.icon,class:G([E(r).icon.base,f.iconClass])},null,8,["name","class"])):ge("",!0),be("span",{class:G(E(r).label)},je(f.label),3),ye(s.$slots,"badge",{},()=>[f.badge?(R(),ae(l,{key:0,size:"xs",variant:"subtle",ui:{rounded:"rounded-full"}},{default:le(()=>[Je(je(f.badge),1)]),_:2},1024)):ge("",!0)])]),_:2},1040,["class","active-class","inactive-class","onClick"]))),128))],16)):ge("",!0)}}}),Lh=ne({inheritAttrs:!1,__name:"NavigationTree",props:{level:{default:0},links:{default:()=>[]},multiple:{type:Boolean,default:!0},defaultOpen:{type:Boolean,default:void 0},ui:{default:()=>({})},class:{default:void 0}},setup(e){const t={wrapper:"space-y-3"},n=e,{ui:r,attrs:o}=Ke("navigation.tree",we(n,"ui"),t,we(n,"class"),!0),s=j(()=>{var l;const i=[];let a={type:null,children:[]};for(const c of n.links){const u=(l=c.children)!=null&&l.length?"accordion":"link";a.type||(a.type=u),a.type===u?a.children.push(c):(i.push(a),a={type:u,children:[c]})}return a.children.length&&i.push(a),i});return(i,a)=>{var u;const l=FC,c=NC;return(u=E(s))!=null&&u.length?(R(),se("nav",ue({key:0,class:E(r).wrapper},E(o)),[(R(!0),se(ke,null,yt(E(s),(f,d)=>(R(),se(ke,{key:d},[f.type==="accordion"?(R(),ae(l,{key:0,links:f.children,level:i.level,multiple:i.multiple,"default-open":i.defaultOpen},null,8,["links","level","multiple","default-open"])):(R(),ae(c,{key:1,links:f.children,level:i.level},null,8,["links","level"]))],64))),128))],16)):ge("",!0)}}}),BC=ne({inheritAttrs:!1,__name:"HeaderPopoverLinks",props:{links:{},ui:{},class:{}},setup(e){const t=at(),n={wrapper:"p-2 space-y-1",base:"block px-2 py-1.5 rounded-md flex items-start gap-1.5",active:"bg-gray-100/50 dark:bg-gray-800/50 text-primary",inactive:"hover:bg-gray-100/50 dark:hover:bg-gray-800/50",label:"font-semibold text-sm/6 inline-block relative",description:"text-sm leading-snug text-gray-500 dark:text-gray-400 line-clamp-2",icon:{base:"w-4 h-4 flex-shrink-0 mt-1"},externalIcon:{name:t.ui.icons.external,base:"w-3 h-3 absolute top-0.5 -right-3.5 text-gray-400 dark:text-gray-500"}},r=e,{ui:o,attrs:s}=Ke("header.popover.links",we(r,"ui"),n,we(r,"class"),!0);return(i,a)=>{var u;const l=bt,c=Nn;return(u=i.links)!=null&&u.length?(R(),se("div",ue({key:0,class:E(o).wrapper},E(s)),[(R(!0),se(ke,null,yt(i.links,(f,d)=>(R(),ae(c,ue({key:d},E(Dr)(f,["label","icon"]),{class:E(o).base,"active-class":E(o).active,"inactive-class":E(o).inactive,onClick:f.click}),{default:le(()=>[f.icon?(R(),ae(l,{key:0,name:f.icon,class:G(E(o).icon.base)},null,8,["name","class"])):ge("",!0),be("p",{class:G([f.target==="_blank"&&"pr-3"])},[be("span",{class:G(E(o).label)},[Je(je(f.label)+" ",1),f.target==="_blank"?(R(),ae(l,{key:0,name:E(o).externalIcon.name,class:G(E(o).externalIcon.base)},null,8,["name","class"])):ge("",!0)],2),f.description?(R(),se("span",{key:0,class:G(E(o).description)},je(f.description),3)):ge("",!0)],2)]),_:2},1040,["class","active-class","inactive-class","onClick"]))),128))],16)):ge("",!0)}}});function St(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function dr(e){var t=St(e).Element;return e instanceof t||e instanceof Element}function It(e){var t=St(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Yl(e){if(typeof ShadowRoot>"u")return!1;var t=St(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var sr=Math.max,Us=Math.min,Fr=Math.round;function Ha(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Mh(){return!/^((?!chrome|android).)*safari/i.test(Ha())}function Nr(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,s=1;t&&It(e)&&(o=e.offsetWidth>0&&Fr(r.width)/e.offsetWidth||1,s=e.offsetHeight>0&&Fr(r.height)/e.offsetHeight||1);var i=dr(e)?St(e):window,a=i.visualViewport,l=!Mh()&&n,c=(r.left+(l&&a?a.offsetLeft:0))/o,u=(r.top+(l&&a?a.offsetTop:0))/s,f=r.width/o,d=r.height/s;return{width:f,height:d,top:u,right:c+f,bottom:u+d,left:c,x:c,y:u}}function Jl(e){var t=St(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function HC(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function UC(e){return e===St(e)||!It(e)?Jl(e):HC(e)}function tn(e){return e?(e.nodeName||"").toLowerCase():null}function Bn(e){return((dr(e)?e.ownerDocument:e.document)||window.document).documentElement}function Zl(e){return Nr(Bn(e)).left+Jl(e).scrollLeft}function pn(e){return St(e).getComputedStyle(e)}function ec(e){var t=pn(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function zC(e){var t=e.getBoundingClientRect(),n=Fr(t.width)/e.offsetWidth||1,r=Fr(t.height)/e.offsetHeight||1;return n!==1||r!==1}function VC(e,t,n){n===void 0&&(n=!1);var r=It(t),o=It(t)&&zC(t),s=Bn(t),i=Nr(e,o,n),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((tn(t)!=="body"||ec(s))&&(a=UC(t)),It(t)?(l=Nr(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):s&&(l.x=Zl(s))),{x:i.left+a.scrollLeft-l.x,y:i.top+a.scrollTop-l.y,width:i.width,height:i.height}}function tc(e){var t=Nr(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function pi(e){return tn(e)==="html"?e:e.assignedSlot||e.parentNode||(Yl(e)?e.host:null)||Bn(e)}function jh(e){return["html","body","#document"].indexOf(tn(e))>=0?e.ownerDocument.body:It(e)&&ec(e)?e:jh(pi(e))}function yo(e,t){var n;t===void 0&&(t=[]);var r=jh(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),s=St(r),i=o?[s].concat(s.visualViewport||[],ec(r)?r:[]):r,a=t.concat(i);return o?a:a.concat(yo(pi(i)))}function WC(e){return["table","td","th"].indexOf(tn(e))>=0}function df(e){return!It(e)||pn(e).position==="fixed"?null:e.offsetParent}function qC(e){var t=/firefox/i.test(Ha()),n=/Trident/i.test(Ha());if(n&&It(e)){var r=pn(e);if(r.position==="fixed")return null}var o=pi(e);for(Yl(o)&&(o=o.host);It(o)&&["html","body"].indexOf(tn(o))<0;){var s=pn(o);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||t&&s.willChange==="filter"||t&&s.filter&&s.filter!=="none")return o;o=o.parentNode}return null}function Go(e){for(var t=St(e),n=df(e);n&&WC(n)&&pn(n).position==="static";)n=df(n);return n&&(tn(n)==="html"||tn(n)==="body"&&pn(n).position==="static")?t:n||qC(e)||t}var Ct="top",zt="bottom",Vt="right",Pt="left",nc="auto",Qo=[Ct,zt,Vt,Pt],Br="start",Mo="end",KC="clippingParents",Dh="viewport",no="popper",GC="reference",pf=Qo.reduce(function(e,t){return e.concat([t+"-"+Br,t+"-"+Mo])},[]),Fh=[].concat(Qo,[nc]).reduce(function(e,t){return e.concat([t,t+"-"+Br,t+"-"+Mo])},[]),QC="beforeRead",XC="read",YC="afterRead",JC="beforeMain",ZC="main",eP="afterMain",tP="beforeWrite",nP="write",rP="afterWrite",oP=[QC,XC,YC,JC,ZC,eP,tP,nP,rP];function sP(e){var t=new Map,n=new Set,r=[];e.forEach(function(s){t.set(s.name,s)});function o(s){n.add(s.name);var i=[].concat(s.requires||[],s.requiresIfExists||[]);i.forEach(function(a){if(!n.has(a)){var l=t.get(a);l&&o(l)}}),r.push(s)}return e.forEach(function(s){n.has(s.name)||o(s)}),r}function iP(e){var t=sP(e);return oP.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function aP(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function lP(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}function cP(e,t){var n=St(e),r=Bn(e),o=n.visualViewport,s=r.clientWidth,i=r.clientHeight,a=0,l=0;if(o){s=o.width,i=o.height;var c=Mh();(c||!c&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:s,height:i,x:a+Zl(e),y:l}}function uP(e){var t,n=Bn(e),r=Jl(e),o=(t=e.ownerDocument)==null?void 0:t.body,s=sr(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=sr(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-r.scrollLeft+Zl(e),l=-r.scrollTop;return pn(o||n).direction==="rtl"&&(a+=sr(n.clientWidth,o?o.clientWidth:0)-s),{width:s,height:i,x:a,y:l}}function Nh(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Yl(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Ua(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function fP(e,t){var n=Nr(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function hf(e,t,n){return t===Dh?Ua(cP(e,n)):dr(t)?fP(t,n):Ua(uP(Bn(e)))}function dP(e){var t=yo(pi(e)),n=["absolute","fixed"].indexOf(pn(e).position)>=0,r=n&&It(e)?Go(e):e;return dr(r)?t.filter(function(o){return dr(o)&&Nh(o,r)&&tn(o)!=="body"}):[]}function pP(e,t,n,r){var o=t==="clippingParents"?dP(e):[].concat(t),s=[].concat(o,[n]),i=s[0],a=s.reduce(function(l,c){var u=hf(e,c,r);return l.top=sr(u.top,l.top),l.right=Us(u.right,l.right),l.bottom=Us(u.bottom,l.bottom),l.left=sr(u.left,l.left),l},hf(e,i,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function Jt(e){return e.split("-")[0]}function Hr(e){return e.split("-")[1]}function rc(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Bh(e){var t=e.reference,n=e.element,r=e.placement,o=r?Jt(r):null,s=r?Hr(r):null,i=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,l;switch(o){case Ct:l={x:i,y:t.y-n.height};break;case zt:l={x:i,y:t.y+t.height};break;case Vt:l={x:t.x+t.width,y:a};break;case Pt:l={x:t.x-n.width,y:a};break;default:l={x:t.x,y:t.y}}var c=o?rc(o):null;if(c!=null){var u=c==="y"?"height":"width";switch(s){case Br:l[c]=l[c]-(t[u]/2-n[u]/2);break;case Mo:l[c]=l[c]+(t[u]/2-n[u]/2);break}}return l}function Hh(){return{top:0,right:0,bottom:0,left:0}}function Uh(e){return Object.assign({},Hh(),e)}function zh(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}function oc(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,s=n.strategy,i=s===void 0?e.strategy:s,a=n.boundary,l=a===void 0?KC:a,c=n.rootBoundary,u=c===void 0?Dh:c,f=n.elementContext,d=f===void 0?no:f,p=n.altBoundary,h=p===void 0?!1:p,g=n.padding,y=g===void 0?0:g,x=Uh(typeof y!="number"?y:zh(y,Qo)),b=d===no?GC:no,v=e.rects.popper,m=e.elements[h?b:d],_=pP(dr(m)?m:m.contextElement||Bn(e.elements.popper),l,u,i),C=Nr(e.elements.reference),S=Bh({reference:C,element:v,strategy:"absolute",placement:o}),T=Ua(Object.assign({},v,S)),M=d===no?T:C,I={top:_.top-M.top+x.top,bottom:M.bottom-_.bottom+x.bottom,left:_.left-M.left+x.left,right:M.right-_.right+x.right},q=e.modifiersData.offset;if(d===no&&q){var A=q[o];Object.keys(I).forEach(function(N){var he=[Vt,zt].indexOf(N)>=0?1:-1,fe=[Ct,zt].indexOf(N)>=0?"y":"x";I[N]+=A[fe]*he})}return I}var gf={placement:"bottom",modifiers:[],strategy:"absolute"};function mf(){for(var e=arguments.length,t=new Array(e),n=0;n=0});d.length===0&&(d=f);var p=d.reduce(function(h,g){return h[g]=oc(e,{placement:g,boundary:o,rootBoundary:s,padding:i})[Jt(g)],h},{});return Object.keys(p).sort(function(h,g){return p[h]-p[g]})}function TP(e){if(Jt(e)===nc)return[];var t=Cs(e);return[yf(e),t,yf(t)]}function AP(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,s=o===void 0?!0:o,i=n.altAxis,a=i===void 0?!0:i,l=n.fallbackPlacements,c=n.padding,u=n.boundary,f=n.rootBoundary,d=n.altBoundary,p=n.flipVariations,h=p===void 0?!0:p,g=n.allowedAutoPlacements,y=t.options.placement,x=Jt(y),b=x===y,v=l||(b||!h?[Cs(y)]:TP(y)),m=[y].concat(v).reduce(function(lt,wt){return lt.concat(Jt(wt)===nc?SP(t,{placement:wt,boundary:u,rootBoundary:f,padding:c,flipVariations:h,allowedAutoPlacements:g}):wt)},[]),_=t.rects.reference,C=t.rects.popper,S=new Map,T=!0,M=m[0],I=0;I=0,fe=he?"width":"height",U=oc(t,{placement:q,boundary:u,rootBoundary:f,altBoundary:d,padding:c}),V=he?N?Vt:Pt:N?zt:Ct;_[fe]>C[fe]&&(V=Cs(V));var W=Cs(V),_e=[];if(s&&_e.push(U[A]<=0),a&&_e.push(U[V]<=0,U[W]<=0),_e.every(function(lt){return lt})){M=q,T=!1;break}S.set(q,_e)}if(T)for(var Re=h?3:1,Fe=function(wt){var We=m.find(function($){var X=S.get($);if(X)return X.slice(0,wt).every(function(K){return K})});if(We)return M=We,"break"},Ee=Re;Ee>0;Ee--){var Me=Fe(Ee);if(Me==="break")break}t.placement!==M&&(t.modifiersData[r]._skip=!0,t.placement=M,t.reset=!0)}}const OP={name:"flip",enabled:!0,phase:"main",fn:AP,requiresIfExists:["offset"],data:{_skip:!1}};function $P(e,t,n){var r=Jt(e),o=[Pt,Ct].indexOf(r)>=0?-1:1,s=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,i=s[0],a=s[1];return i=i||0,a=(a||0)*o,[Pt,Vt].indexOf(r)>=0?{x:a,y:i}:{x:i,y:a}}function IP(e){var t=e.state,n=e.options,r=e.name,o=n.offset,s=o===void 0?[0,0]:o,i=Fh.reduce(function(u,f){return u[f]=$P(f,t.rects,s),u},{}),a=i[t.placement],l=a.x,c=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=i}const RP={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:IP};function LP(e){return e==="x"?"y":"x"}function bo(e,t,n){return sr(e,Us(t,n))}function MP(e,t,n){var r=bo(e,t,n);return r>n?n:r}function jP(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,s=o===void 0?!0:o,i=n.altAxis,a=i===void 0?!1:i,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,f=n.padding,d=n.tether,p=d===void 0?!0:d,h=n.tetherOffset,g=h===void 0?0:h,y=oc(t,{boundary:l,rootBoundary:c,padding:f,altBoundary:u}),x=Jt(t.placement),b=Hr(t.placement),v=!b,m=rc(x),_=LP(m),C=t.modifiersData.popperOffsets,S=t.rects.reference,T=t.rects.popper,M=typeof g=="function"?g(Object.assign({},t.rects,{placement:t.placement})):g,I=typeof M=="number"?{mainAxis:M,altAxis:M}:Object.assign({mainAxis:0,altAxis:0},M),q=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,A={x:0,y:0};if(C){if(s){var N,he=m==="y"?Ct:Pt,fe=m==="y"?zt:Vt,U=m==="y"?"height":"width",V=C[m],W=V+y[he],_e=V-y[fe],Re=p?-T[U]/2:0,Fe=b===Br?S[U]:T[U],Ee=b===Br?-T[U]:-S[U],Me=t.elements.arrow,lt=p&&Me?tc(Me):{width:0,height:0},wt=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Hh(),We=wt[he],$=wt[fe],X=bo(0,S[U],lt[U]),K=v?S[U]/2-Re-X-We-I.mainAxis:Fe-X-We-I.mainAxis,re=v?-S[U]/2+Re+X+$+I.mainAxis:Ee+X+$+I.mainAxis,Ce=t.elements.arrow&&Go(t.elements.arrow),w=Ce?m==="y"?Ce.clientTop||0:Ce.clientLeft||0:0,k=(N=q==null?void 0:q[m])!=null?N:0,P=V+K-k-w,O=V+re-k,L=bo(p?Us(W,P):W,V,p?sr(_e,O):_e);C[m]=L,A[m]=L-V}if(a){var D,J=m==="x"?Ct:Pt,H=m==="x"?zt:Vt,z=C[_],F=_==="y"?"height":"width",ie=z+y[J],te=z-y[H],oe=[Ct,Pt].indexOf(x)!==-1,pe=(D=q==null?void 0:q[_])!=null?D:0,ve=oe?ie:z-S[F]-T[F]-pe+I.altAxis,$e=oe?z+S[F]+T[F]-pe-I.altAxis:te,Oe=p&&oe?MP(ve,z,$e):bo(p?ve:ie,z,p?$e:te);C[_]=Oe,A[_]=Oe-z}t.modifiersData[r]=A}}const DP={name:"preventOverflow",enabled:!0,phase:"main",fn:jP,requiresIfExists:["offset"]};var FP=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,Uh(typeof t!="number"?t:zh(t,Qo))};function NP(e){var t,n=e.state,r=e.name,o=e.options,s=n.elements.arrow,i=n.modifiersData.popperOffsets,a=Jt(n.placement),l=rc(a),c=[Pt,Vt].indexOf(a)>=0,u=c?"height":"width";if(!(!s||!i)){var f=FP(o.padding,n),d=tc(s),p=l==="y"?Ct:Pt,h=l==="y"?zt:Vt,g=n.rects.reference[u]+n.rects.reference[l]-i[l]-n.rects.popper[u],y=i[l]-n.rects.reference[l],x=Go(s),b=x?l==="y"?x.clientHeight||0:x.clientWidth||0:0,v=g/2-y/2,m=f[p],_=b-d[u]-f[h],C=b/2-d[u]/2+v,S=bo(m,C,_),T=l;n.modifiersData[r]=(t={},t[T]=S,t.centerOffset=S-C,t)}}function BP(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||Nh(t.elements.popper,o)&&(t.elements.arrow=o))}const HP={name:"arrow",enabled:!0,phase:"main",fn:NP,effect:BP,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},UP=hP({defaultModifiers:[...EP,RP,OP,DP,Wh,Vh,HP]});function zP({locked:e=!1,overflowPadding:t=8,offsetDistance:n=8,offsetSkid:r=0,gpuAcceleration:o=!0,adaptive:s=!0,scroll:i=!0,resize:a=!0,arrow:l=!1,placement:c,strategy:u},f){const d=B(null),p=B(null),h=B(null);return Le(()=>{Ye(g=>{if(!p.value||!d.value&&!(f!=null&&f.value))return;const y=Ma(p),x=(f==null?void 0:f.value)||Ma(d);if(!(y instanceof HTMLElement)||!x)return;const b={modifiers:[{name:"flip",enabled:!e},{name:"preventOverflow",options:{padding:t}},{name:"offset",options:{offset:[r,n]}},{name:"computeStyles",options:{adaptive:s,gpuAcceleration:o}},{name:"eventListeners",options:{scroll:i,resize:a}},{name:"arrow",enabled:l}]};c&&(b.placement=c),u&&(b.strategy=u),h.value=UP(x,y,b),g(h.value.destroy)})}),[d,p,h]}const VP=Wt(He.ui.strategy,He.ui.popover,Jk),WP=ne({components:{HPopover:Oh,HPopoverButton:EC,HPopoverPanel:CC},inheritAttrs:!1,props:{mode:{type:String,default:"click",validator:e=>["click","hover"].includes(e)},open:{type:Boolean,default:void 0},disabled:{type:Boolean,default:!1},openDelay:{type:Number,default:0},closeDelay:{type:Number,default:0},popper:{type:Object,default:()=>({})},class:{type:[String,Object,Array],default:void 0},ui:{type:Object,default:void 0}},setup(e){const{ui:t,attrs:n}=Ke("popover",we(e,"ui"),VP,we(e,"class")),r=j(()=>oi(e.mode==="hover"?{offsetDistance:0}:{},e.popper,t.value.popper)),[o,s]=zP(r.value),i=B(null),a=B(null);let l=null,c=null;Le(()=>{var g;const p=(g=i.value)==null?void 0:g.$.provides;if(!p)return;const h=Object.getOwnPropertySymbols(p);a.value=h.length&&p[h[0]]});const u=j(()=>{var g,y;const h=`${((g=e.popper)==null?void 0:g.offsetDistance)||((y=t.value.popper)==null?void 0:y.offsetDistance)||8}px`;return e.mode==="hover"?{paddingTop:h,paddingBottom:h,paddingLeft:h,paddingRight:h}:{}});function f(){e.mode!=="hover"||!a.value||(c&&(clearTimeout(c),c=null),a.value.popoverState!==0&&(l=l||setTimeout(()=>{a.value.togglePopover&&a.value.togglePopover(),l=null},e.openDelay)))}function d(){e.mode!=="hover"||!a.value||(l&&(clearTimeout(l),l=null),a.value.popoverState!==1&&(c=c||setTimeout(()=>{a.value.closePopover&&a.value.closePopover(),c=null},e.closeDelay)))}return{ui:t,attrs:n,popover:i,popper:r,trigger:o,container:s,containerStyle:u,onMouseOver:f,onMouseLeave:d}}}),qP=["disabled"];function KP(e,t,n,r,o,s){const i=nr("HPopoverButton"),a=nr("HPopoverPanel"),l=nr("HPopover");return R(),ae(l,ue({ref:"popover",class:e.ui.wrapper},e.attrs,{onMouseleave:e.onMouseLeave}),{default:le(({open:c,close:u})=>[Y(i,{ref:"trigger",as:"div",disabled:e.disabled,class:"inline-flex w-full",role:"button",onMouseover:e.onMouseOver},{default:le(()=>[ye(e.$slots,"default",{open:e.open!==void 0?e.open:c,close:u},()=>[be("button",{disabled:e.disabled}," Open ",8,qP)])]),_:2},1032,["disabled","onMouseover"]),(e.open!==void 0?e.open:c)?(R(),se("div",{key:0,ref:"container",class:G([e.ui.container,e.ui.width]),style:fn(e.containerStyle),onMouseover:t[0]||(t[0]=(...f)=>e.onMouseOver&&e.onMouseOver(...f))},[Y(hr,ue({appear:""},e.ui.transition),{default:le(()=>[be("div",null,[e.popper.arrow?(R(),se("div",{key:0,"data-popper-arrow":"",class:G(["invisible before:visible before:block before:rotate-45 before:z-[-1]",Object.values(e.ui.arrow)])},null,2)):ge("",!0),Y(a,{class:G([e.ui.base,e.ui.background,e.ui.ring,e.ui.rounded,e.ui.shadow]),static:""},{default:le(()=>[ye(e.$slots,"panel",{open:e.open!==void 0?e.open:c,close:u})]),_:2},1032,["class"])])]),_:2},1040)],38)):ge("",!0)]),_:3},16,["class","onMouseleave"])}const GP=Mt(WP,[["render",KP]]),QP=ne({inheritAttrs:!1,__name:"HeaderLinks",props:{links:{},ui:{},class:{}},setup(e){const t=at(),n={wrapper:"flex items-center gap-x-8",base:"text-sm/6 font-semibold flex items-center gap-1",active:"text-primary",inactive:"hover:text-primary",trailingIcon:{name:t.ui.icons.chevron,base:"w-5 h-5 transform transition-transform duration-200 flex-shrink-0",active:"rotate-180",inactive:""},externalIcon:{name:t.ui.icons.external,base:"w-3 h-3 absolute top-0.5 -right-3.5 text-gray-400 dark:text-gray-500"},popover:{mode:"hover",openDelay:0,ui:{width:"max-w-[16rem]"}}},r=e,{ui:o,attrs:s}=Ke("header.links",we(r,"ui"),n,we(r,"class"),!0);return(i,a)=>{var d;const l=bt,c=Nn,u=BC,f=GP;return(d=i.links)!=null&&d.length?(R(),se("ul",ue({key:0,class:E(o).wrapper},E(s)),[(R(!0),se(ke,null,yt(i.links,(p,h)=>{var g;return R(),se("li",{key:h,class:"relative"},[(g=p.children)!=null&&g.length?(R(),ae(f,Fo(ue({key:0},E(o).popover)),{default:le(({open:y})=>[Y(c,ue(E(Dr)(p,["label","icon","children"]),{class:E(o).base,"active-class":E(o).active,"inactive-class":E(o).inactive,onClick:p.click}),{default:le(()=>[Je(je(p.label)+" ",1),Y(l,{name:E(o).trailingIcon.name,class:G([E(o).trailingIcon.base,y?E(o).trailingIcon.active:E(o).trailingIcon.inactive])},null,8,["name","class"])]),_:2},1040,["class","active-class","inactive-class","onClick"])]),panel:le(({close:y})=>[Y(u,{links:p.children,onClick:y},null,8,["links","onClick"])]),_:2},1040)):(R(),ae(c,ue({key:1},E(Dr)(p,["label","icon"]),{class:E(o).base,"active-class":E(o).active,"inactive-class":E(o).inactive,onClick:p.click}),{default:le(()=>[Je(je(p.label)+" ",1),p.target==="_blank"?(R(),ae(l,{key:0,name:E(o).externalIcon.name,class:G(E(o).externalIcon.base)},null,8,["name","class"])):ge("",!0)]),_:2},1040,["class","active-class","inactive-class","onClick"]))])}),128))],16)):ge("",!0)}}}),XP=Wt(He.ui.strategy,He.ui.container,Yk),YP=ne({inheritAttrs:!1,props:{as:{type:String,default:"div"},class:{type:[String,Object,Array],default:void 0},ui:{type:Object,default:void 0}},setup(e){const{ui:t,attrs:n}=Ke("container",we(e,"ui"),XP),r=j(()=>Dn(ft(t.value.base,t.value.padding,t.value.constrained),e.class));return{ui:t,attrs:n,containerClass:r}}});function JP(e,t,n,r,o,s){return R(),ae(Ar(e.as),ue({class:e.containerClass},e.attrs),{default:le(()=>[ye(e.$slots,"default")]),_:3},16,["class"])}const sc=Mt(YP,[["render",JP]]),ZP=ne({inheritAttrs:!1,__name:"AsideLinks",props:{links:{},ui:{},class:{}},setup(e){const t=at(),n={wrapper:"space-y-3 mb-3 lg:mb-6 -mx-1 lg:mx-0",base:"flex items-center gap-1.5 lg:gap-2 group",active:"text-primary font-semibold",inactive:"text-gray-500 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-200 font-medium",icon:{wrapper:"rounded-md p-1 inline-flex ring-inset ring-1",base:"w-4 h-4 flex-shrink-0",active:"bg-primary ring-primary text-background",inactive:"bg-gray-100/50 dark:bg-gray-800/50 ring-gray-300 dark:ring-gray-700 group-hover:bg-primary group-hover:ring-primary group-hover:text-background"},externalIcon:{name:t.ui.icons.external,base:"w-3 h-3 absolute top-0.5 -right-3.5 text-gray-400 dark:text-gray-500"},label:"text-sm/6 relative"},r=e,{ui:o,attrs:s}=Ke("aside.links",we(r,"ui"),n,we(r,"class"),!0);return(i,a)=>{var u;const l=bt,c=Nn;return(u=i.links)!=null&&u.length?(R(),se("div",ue({key:0,class:E(o).wrapper},E(s)),[(R(!0),se(ke,null,yt(i.links,(f,d)=>(R(),ae(c,ue({key:d},E(Dr)(f,["label","icon","iconClass"]),{class:E(o).base,"active-class":E(o).active,"inactive-class":E(o).inactive,onClick:f.click}),{default:le(({isActive:p})=>[f.icon?(R(),se("div",{key:0,class:G([E(o).icon.wrapper,f.active||p?E(o).icon.active:E(o).icon.inactive])},[f.icon?(R(),ae(l,{key:0,name:f.icon,class:G([E(o).icon.base,f.iconClass])},null,8,["name","class"])):ge("",!0)],2)):ge("",!0),be("span",{class:G(E(o).label)},[Je(je(f.label)+" ",1),f.target==="_blank"?(R(),ae(l,{key:0,name:E(o).externalIcon.name,class:G(E(o).externalIcon.base)},null,8,["name","class"])):ge("",!0)],2)]),_:2},1040,["class","active-class","inactive-class","onClick"]))),128))],16)):ge("",!0)}}}),za=e=>e.map(t=>{if(!t.children||typeof t.children=="string")return t.children||"";if(Array.isArray(t.children))return za(t.children);if(t.children.default)return za(t.children.default())}).join(""),eS=ne({inheritAttrs:!1,__name:"Header",props:{to:{default:"/"},title:{default:void 0},links:{default:()=>[]},ui:{default:()=>({})},class:{default:void 0}},setup(e){const t={wrapper:"bg-background/75 backdrop-blur border-b border-gray-200 dark:border-gray-800 -mb-px sticky top-0 z-50",container:"flex items-center justify-between gap-3 h-[--header-height]",left:"lg:flex-1 flex items-center gap-1.5",center:"hidden lg:flex",right:"flex items-center justify-end lg:flex-1 gap-1.5",logo:"flex-shrink-0 font-bold text-xl text-gray-900 dark:text-white flex items-end gap-1.5",panel:{wrapper:"fixed inset-0 z-50 overflow-y-auto bg-background lg:hidden",header:"px-4 sm:px-6",body:"px-4 sm:px-6 pt-3 pb-6"},button:{base:"lg:hidden",icon:{open:"i-heroicons-bars-3",close:"i-heroicons-x-mark-20-solid"}}},n=e,r=jn(),o=km(),{isHeaderDialogOpen:s}=sh(),{ui:i,attrs:a}=Ke("header",we(n,"ui"),t,we(n,"class"),!0),l=j(()=>(n.title||o.title&&za(o.title())||"Logo").trim());return ze(()=>r.fullPath,()=>{s.value=!1}),(c,u)=>{const f=Fl,d=QP,p=qt,h=sc,g=ZP;return R(),se("header",ue({class:E(i).wrapper},E(a)),[ye(c.$slots,"top"),Y(h,{class:G(E(i).container)},{default:le(()=>[be("div",{class:G(E(i).left)},[ye(c.$slots,"left",{},()=>[Y(f,{to:c.to,"aria-label":E(l),class:G(E(i).logo)},{default:le(()=>[ye(c.$slots,"logo",{},()=>[Je(je(c.title||"Nuxt UI Pro"),1)])]),_:3},8,["to","aria-label","class"])])],2),ye(c.$slots,"center",{},()=>[Y(d,{links:c.links,class:G(E(i).center)},null,8,["links","class"])]),be("div",{class:G(E(i).right)},[ye(c.$slots,"right"),ye(c.$slots,"panel-button",{open:E(s)},()=>[c.links.length||c.$slots.panel?(R(),ae(p,ue({key:0,class:E(i).button.base},c.$ui.button.secondary,{"aria-label":`${E(s)?"Close":"Open"} Menu`,icon:E(s)?E(i).button.icon.close:E(i).button.icon.open,onClick:u[0]||(u[0]=y=>s.value=!E(s))}),null,16,["class","aria-label","icon"])):ge("",!0)])],2)]),_:3},8,["class"]),ye(c.$slots,"bottom"),Y(E(Rh),{show:E(s),as:"template"},{default:le(()=>[Y(E(hC),{as:"div",onClose:u[2]||(u[2]=y=>s.value=!1)},{default:le(()=>[Y(E(gC),{class:G(E(i).panel.wrapper)},{default:le(()=>[be("div",{class:G([E(i).panel.header,E(i).wrapper])},[be("div",{class:G(E(i).container)},[be("div",{class:G(E(i).left)},[ye(c.$slots,"left",{},()=>[Y(f,{to:c.to,"aria-label":E(l),class:G(E(i).logo)},{default:le(()=>[ye(c.$slots,"logo",{},()=>[Je(je(c.title||"Nuxt UI Pro"),1)])]),_:3},8,["to","aria-label","class"])])],2),ye(c.$slots,"center"),be("div",{class:G(E(i).right)},[ye(c.$slots,"right"),ye(c.$slots,"panel-button",{open:E(s)},()=>[Y(p,ue({class:E(i).button.base},c.$ui.button.secondary,{"aria-label":`${E(s)?"Close":"Open"} Menu`,icon:E(s)?E(i).button.icon.close:E(i).button.icon.open,onClick:u[1]||(u[1]=y=>s.value=!E(s))}),null,16,["class","aria-label","icon"])])],2)],2)],2),be("div",{class:G(E(i).panel.body)},[ye(c.$slots,"panel",{},()=>[Y(g,{links:c.links},null,8,["links"])])],2)]),_:3},8,["class"])]),_:3})]),_:3},8,["show"])],16)}}}),tS=/\d/,nS=["-","_","/","."];function rS(e=""){if(!tS.test(e))return e.toUpperCase()===e}function ic(e,t){const n=t??nS,r=[];if(!e||typeof e!="string")return r;let o="",s,i;for(const a of e){const l=n.includes(a);if(l===!0){r.push(o),o="",s=void 0;continue}const c=rS(a);if(i===!1){if(s===!1&&c===!0){r.push(o),o=a,s=c;continue}if(s===!0&&c===!1&&o.length>1){const u=o.at(-1);r.push(o.slice(0,Math.max(0,o.length-1))),o=u+a,s=c;continue}}o+=a,s=c,i=l}return r.push(o),r}function qh(e){return e?e[0].toUpperCase()+e.slice(1):""}function uT(e){return e?(Array.isArray(e)?e:ic(e)).map(t=>qh(t.toLowerCase())).join(""):""}function fT(e,t){return e?(Array.isArray(e)?e:ic(e)).map(n=>n.toLowerCase()).join(t??"-"):""}const oS={title:"label",_path:"to"};function Kh(e,t){return e.map(n=>{var o;const r={};for(const s in n){if(s==="children"){r.children=(o=n.children)!=null&&o.length?Kh(n.children):void 0;continue}n[s]&&(r[oS[s]||s]=n[s])}return r})}function dT(e){var t;return(t=e._dir)!=null&&t.title?e._dir.title:ic(e._dir).map(n=>qh(n)).join(" ")}function sS(e,t){return e.reduce((n,r)=>(t._path.startsWith(r._path)&&r.children&&(n.push(r),n.push(...sS(r.children,t))),n),[])}const iS=""+globalThis.__publicAssetsURL("favicon.ico"),aS={class:"hidden sm:block"},lS=be("img",{class:"block sm:hidden h-6 w-auto",src:iS,alt:"mobile favicon"},null,-1),Gh=ne({__name:"Header",setup(e){const t=Te("navigation",[]),{header:n}=at();return(r,o)=>{var d;const s=sE,i=th,a=$E,l=ih,c=qt,u=Lh,f=eS;return R(),ae(f,null,ei({logo:le(()=>{var p,h,g,y,x;return[(h=(p=E(n))==null?void 0:p.logo)!=null&&h.dark||(y=(g=E(n))==null?void 0:g.logo)!=null&&y.light?(R(),se(ke,{key:0},[be("div",aS,[Y(s,Fo(Uo({class:"h-6 w-auto",...(x=E(n))==null?void 0:x.logo})),null,16)]),lS],64)):(R(),se(ke,{key:1},[Je(" Nuxt UI Pro "),Y(i,{label:"Docs",variant:"subtle",class:"mb-0.5"})],64))]}),right:le(()=>{var p,h,g;return[(p=E(n))!=null&&p.search?(R(),ae(a,{key:0,label:null,class:"lg:hidden"})):ge("",!0),(h=E(n))!=null&&h.colorMode?(R(),ae(l,{key:1})):ge("",!0),(g=E(n))!=null&&g.links?(R(!0),se(ke,{key:2},yt(E(n).links,(y,x)=>(R(),ae(c,ue({key:x},{color:"gray",variant:"ghost",...y}),null,16))),128)):ge("",!0)]}),panel:le(()=>[Y(u,{links:("mapContentNavigation"in r?r.mapContentNavigation:E(Kh))(E(t))},null,8,["links"])]),_:2},[(d=E(n))!=null&&d.search?{name:"center",fn:le(()=>[Y(a,{class:"hidden lg:flex"})]),key:"0"}:void 0]),1024)}}}),cS=(e,t)=>t.path.replace(/(:\w+)\([^)]+\)/g,"$1").replace(/(:\w+)[?+*]/g,"$1").replace(/:\w+/g,n=>{var r;return((r=e.params[n.slice(1)])==null?void 0:r.toString())||""}),Va=(e,t)=>{const n=e.route.matched.find(o=>{var s;return((s=o.components)==null?void 0:s.default)===e.Component.type}),r=t??(n==null?void 0:n.meta.key)??(n&&cS(e.route,n));return typeof r=="function"?r(e.route):r},uS=(e,t)=>({default:()=>e?me(mm,e===!0?{}:e,t):t}),fS=ne({name:"RouteProvider",props:{vnode:{type:Object,required:!0},route:{type:Object,required:!0},vnodeRef:Object,renderKey:String,trackRootNodes:Boolean},setup(e){const t=e.renderKey,n=e.route,r={};for(const o in e.route)Object.defineProperty(r,o,{get:()=>t===e.renderKey?e.route[o]:n[o]});return Ve(vr,No(r)),()=>me(e.vnode,{ref:e.vnodeRef})}}),dS=ne({name:"NuxtPage",inheritAttrs:!1,props:{name:{type:String},transition:{type:[Boolean,Object],default:void 0},keepalive:{type:[Boolean,Object],default:void 0},route:{type:Object},pageKey:{type:[Function,String],default:null}},setup(e,{attrs:t,expose:n}){const r=Ae(),o=B(),s=Te(vr,null);n({pageRef:o});const i=Te(ap,null);let a;const l=r.deferHydration();return()=>me(Ep,{name:e.name,route:e.route,...t},{default:c=>{const u=gS(s,c.route,c.Component),f=s&&s.matched.length===c.route.matched.length;if(!c.Component){if(a&&!f)return a;l();return}if(a&&i&&!i.isCurrent(c.route))return a;if(u&&s&&(!i||i!=null&&i.isCurrent(s)))return f?a:null;const d=Va(c,e.pageKey),p=!!(e.transition??c.route.meta.pageTransition??ma),h=p&&hS([e.transition,c.route.meta.pageTransition,ma,{onAfterLeave:()=>{r.callHook("page:transition:finish",c.Component)}}].filter(Boolean));return a=Cp(hr,p&&h,uS(e.keepalive??c.route.meta.keepalive??J0,me(cl,{suspensible:!0,onPending:()=>r.callHook("page:start",c.Component),onResolve:()=>{hn(()=>r.callHook("page:finish",c.Component).finally(l))}},{default:()=>me(fS,{key:d||void 0,vnode:c.Component,route:c.route,renderKey:d||void 0,trackRootNodes:p,vnodeRef:o})}))).default(),a}})}});function pS(e){return Array.isArray(e)?e:e?[e]:[]}function hS(e){const t=e.map(n=>({...n,onAfterLeave:pS(n.onAfterLeave)}));return oi(...t)}function gS(e,t,n){if(!e)return!1;const r=t.matched.findIndex(o=>{var s;return((s=o.components)==null?void 0:s.default)===(n==null?void 0:n.type)});return!r||r===-1?!1:t.matched.slice(0,r).some((o,s)=>{var i,a,l;return((i=o.components)==null?void 0:i.default)!==((l=(a=e.matched[s])==null?void 0:a.components)==null?void 0:l.default)})||n&&Va({route:t,Component:n})!==Va({route:e,Component:n})}const mS=ne({name:"LayoutLoader",inheritAttrs:!1,props:{name:String,layoutProps:Object},async setup(e,t){const n=await Jn[e.name]().then(r=>r.default||r);return()=>me(n,e.layoutProps,t.slots)}}),vS=ne({name:"NuxtLayout",inheritAttrs:!1,props:{name:{type:[String,Boolean,Object],default:null}},setup(e,t){const n=Ae(),r=Te(vr),o=r===jn()?pw():r,s=j(()=>E(e.name)??o.meta.layout??"default"),i=B();t.expose({layoutRef:i});const a=n.deferHydration();return()=>{const l=s.value&&s.value in Jn,c=o.meta.layoutTransition??Y0;return Cp(hr,l&&c,{default:()=>me(cl,{suspensible:!0,onResolve:()=>{hn(a)}},{default:()=>me(yS,{layoutProps:ue(t.attrs,{ref:i}),key:s.value||void 0,name:s.value,shouldProvide:!e.name,hasTransition:!!c},t.slots)})}).default()}}}),yS=ne({name:"NuxtLayoutProvider",inheritAttrs:!1,props:{name:{type:[String,Boolean]},layoutProps:{type:Object},hasTransition:{type:Boolean},shouldProvide:{type:Boolean}},setup(e,t){const n=e.name;return e.shouldProvide&&Ve(ap,{isCurrent:r=>n===(r.meta.layout??"default")}),()=>{var r,o;return!n||typeof n=="string"&&!(n in Jn)?(o=(r=t.slots).default)==null?void 0:o.call(r):me(mS,{key:n,layoutProps:e.layoutProps,name:n},t.slots)}}}),Qh=ne({inheritAttrs:!1,__name:"Main",props:{ui:{},class:{}},setup(e){const t={wrapper:"min-h-[calc(100vh-var(--header-height))]"},n=e,{ui:r,attrs:o}=Ke("main",we(n,"ui"),t,we(n,"class"),!0);return(s,i)=>(R(),se("main",ue({class:E(r).wrapper},E(o)),[ye(s.$slots,"default")],16))}}),bS=ne({inheritAttrs:!1,__name:"FooterLinks",props:{links:{default:()=>[]},ui:{default:()=>({})},class:{default:void 0}},setup(e){const n={wrapper:"flex flex-col md:flex-row items-center justify-center gap-4 lg:gap-6",base:"text-sm",active:"text-gray-900 dark:text-white font-medium",inactive:"text-gray-500 dark:text-gray-400 hover:text-gray-600 dark:hover:text-gray-300",externalIcon:{name:at().ui.icons.external,base:"w-3 h-3 absolute top-0.5 -right-3.5 text-gray-400 dark:text-gray-500"}},r=e,{ui:o,attrs:s}=Ke("footer.links",we(r,"ui"),n,we(r,"class"),!0);return(i,a)=>{var u;const l=bt,c=Nn;return(u=i.links)!=null&&u.length?(R(),se("ul",ue({key:0,class:E(o).wrapper},E(s)),[(R(!0),se(ke,null,yt(i.links,(f,d)=>(R(),se("li",{key:d,class:"relative"},[Y(c,ue(E(Dr)(f,["label","icon"]),{class:E(o).base,"active-class":E(o).active,"inactive-class":E(o).inactive,onClick:f.click}),{default:le(()=>[Je(je(f.label)+" ",1),f.target==="_blank"?(R(),ae(l,{key:0,name:E(o).externalIcon.name,class:G(E(o).externalIcon.base)},null,8,["name","class"])):ge("",!0)]),_:2},1040,["class","active-class","inactive-class","onClick"])]))),128))],16)):ge("",!0)}}}),wS=ne({inheritAttrs:!1,__name:"Footer",props:{links:{default:()=>[]},ui:{default:()=>({})},class:{default:void 0}},setup(e){const t={wrapper:"relative",top:{wrapper:"",container:"py-8 lg:py-12"},bottom:{wrapper:"",container:"py-8 lg:py-4 lg:flex lg:items-center lg:justify-between",left:"flex items-center justify-center lg:justify-start lg:flex-1 gap-x-1.5 mt-3 lg:mt-0 lg:order-1",center:"mt-3 lg:mt-0 lg:order-2 flex items-center justify-center",right:"lg:flex-1 flex items-center justify-center lg:justify-end gap-x-1.5 lg:order-3"}},n=e,{ui:r,attrs:o}=Ke("footer",we(n,"ui"),t,we(n,"class"),!0);return(s,i)=>{const a=sc,l=bS;return R(),se("footer",ue({class:E(r).wrapper},E(o)),[s.$slots.top?(R(),se("div",{key:0,class:G(E(r).top.wrapper)},[Y(a,{class:G(E(r).top.container)},{default:le(()=>[ye(s.$slots,"top")]),_:3},8,["class"])],2)):ge("",!0),be("div",{class:G(E(r).bottom.wrapper)},[Y(a,{class:G(E(r).bottom.container)},{default:le(()=>[be("div",{class:G(E(r).bottom.right)},[ye(s.$slots,"right")],2),be("div",{class:G(E(r).bottom.center)},[ye(s.$slots,"center",{},()=>[Y(l,{links:s.links},null,8,["links"])])],2),be("div",{class:G(E(r).bottom.left)},[ye(s.$slots,"left")],2)]),_:3},8,["class"])],2)],16)}}}),Xh=ne({__name:"Footer",setup(e){const{footer:t}=at();return(n,r)=>{const o=ih,s=qt,i=wS;return R(),ae(i,null,{left:le(()=>[Je(je(E(t).credits),1)]),right:le(()=>{var a,l,c;return[(a=E(t))!=null&&a.colorMode?(R(),ae(o,{key:0})):ge("",!0),(l=E(t))!=null&&l.links?(R(!0),se(ke,{key:1},yt((c=E(t))==null?void 0:c.links,(u,f)=>(R(),ae(s,ue({key:f},{color:"gray",variant:"ghost",...u}),null,16))),128)):ge("",!0)]}),_:1})}}}),qn=Wt(He.ui.strategy,He.ui.avatar,Kk),_S=ne({components:{UIcon:bt},inheritAttrs:!1,props:{src:{type:[String,Boolean],default:null},alt:{type:String,default:null},text:{type:String,default:null},icon:{type:String,default:()=>qn.default.icon},size:{type:String,default:()=>qn.default.size,validator(e){return Object.keys(qn.size).includes(e)}},chipColor:{type:String,default:()=>qn.default.chipColor,validator(e){return["gray",...He.ui.colors].includes(e)}},chipPosition:{type:String,default:()=>qn.default.chipPosition,validator(e){return Object.keys(qn.chip.position).includes(e)}},chipText:{type:[String,Number],default:null},imgClass:{type:String,default:""},class:{type:[String,Object,Array],default:void 0},ui:{type:Object,default:void 0}},setup(e){const{ui:t,attrs:n}=Ke("avatar",we(e,"ui"),qn),r=j(()=>typeof e.src=="boolean"?null:e.src),o=j(()=>(e.alt||"").split(" ").map(f=>f.charAt(0)).join("").substring(0,2)),s=j(()=>Dn(ft(t.value.wrapper,(c.value||!r.value)&&t.value.background,t.value.rounded,t.value.size[e.size]),e.class)),i=j(()=>Dn(ft(t.value.rounded,t.value.size[e.size]),e.imgClass)),a=j(()=>ft(t.value.icon.base,t.value.icon.size[e.size])),l=j(()=>ft(t.value.chip.base,t.value.chip.size[e.size],t.value.chip.position[e.chipPosition],t.value.chip.background.replaceAll("{color}",e.chipColor))),c=B(!1);ze(()=>e.src,()=>{c.value&&(c.value=!1)});function u(){c.value=!0}return{ui:t,attrs:n,wrapperClass:s,imgClass:i,iconClass:a,chipClass:l,url:r,placeholder:o,error:c,onError:u}}}),xS=["alt","src"];function kS(e,t,n,r,o,s){const i=bt;return R(),se("span",{class:G(e.wrapperClass)},[e.url&&!e.error?(R(),se("img",ue({key:0,class:e.imgClass,alt:e.alt,src:e.url},e.attrs,{onError:t[0]||(t[0]=(...a)=>e.onError&&e.onError(...a))}),null,16,xS)):e.text?(R(),se("span",{key:1,class:G(e.ui.text)},je(e.text),3)):e.icon?(R(),ae(i,{key:2,name:e.icon,class:G(e.iconClass)},null,8,["name","class"])):e.placeholder?(R(),se("span",{key:3,class:G(e.ui.placeholder)},je(e.placeholder),3)):ge("",!0),e.chipColor?(R(),se("span",{key:4,class:G(e.chipClass)},je(e.chipText),3)):ge("",!0),ye(e.$slots,"default")],2)}const Yh=Mt(_S,[["render",kS]]);function ES(e,t,n){let r=null;const{pause:o,resume:s,timestamp:i}=PE({...n||{},controls:!0}),a=B(null),l=j(()=>a.value?t-(i.value-a.value):0);function c(...g){r=setTimeout(()=>{r=null,a.value=null,e(...g)},l.value)}function u(){r&&(clearTimeout(r),r=null)}function f(){a.value=Date.now(),c()}function d(){u(),o()}function p(){u(),o()}function h(){c(),s(),a.value=(a.value||0)+(Date.now()-i.value)}return f(),{start:f,stop:d,pause:p,resume:h,remaining:l}}const ms=Wt(He.ui.strategy,He.ui.notification,Zk),CS=ne({components:{UIcon:bt,UAvatar:Yh,UButton:qt},inheritAttrs:!1,props:{id:{type:[String,Number],required:!0},title:{type:String,required:!0},description:{type:String,default:null},icon:{type:String,default:()=>ms.default.icon},avatar:{type:Object,default:null},closeButton:{type:Object,default:()=>ms.default.closeButton},timeout:{type:Number,default:5e3},actions:{type:Array,default:()=>[]},callback:{type:Function,default:null},color:{type:String,default:()=>ms.default.color,validator(e){return["gray",...He.ui.colors].includes(e)}},class:{type:[String,Object,Array],default:void 0},ui:{type:Object,default:void 0}},emits:["close"],setup(e,{emit:t}){const{ui:n,attrs:r}=Ke("notification",we(e,"ui"),ms);let o=null;const s=B(e.timeout),i=j(()=>Dn(ft(n.value.wrapper,n.value.background,n.value.rounded,n.value.shadow),e.class)),a=j(()=>{var h;return ft(n.value.progress.base,(h=n.value.progress.background)==null?void 0:h.replaceAll("{color}",e.color))}),l=j(()=>({width:`${s.value/e.timeout*100||0}%`})),c=j(()=>{var h;return ft(n.value.icon.base,(h=n.value.icon.color)==null?void 0:h.replaceAll("{color}",e.color))});function u(){o&&o.pause()}function f(){o&&o.resume()}function d(){o&&o.stop(),e.callback&&e.callback(),t("close")}function p(h){o&&o.stop(),h.click&&h.click(),t("close")}return Le(()=>{e.timeout&&(o=ES(()=>{d()},e.timeout),Ye(()=>{s.value=o.remaining.value}))}),et(()=>{o&&o.stop()}),{ui:n,attrs:r,wrapperClass:i,progressClass:a,progressStyle:l,iconClass:c,onMouseover:u,onMouseleave:f,onClose:d,onAction:p}}}),PS={class:"w-0 flex-1"},SS={key:1,class:"mt-3 flex items-center gap-2"},TS={class:"flex-shrink-0 flex items-center gap-3"},AS={key:0,class:"flex items-center gap-2"};function OS(e,t,n,r,o,s){const i=bt,a=Yh,l=qt;return R(),ae(hr,ue({appear:""},e.ui.transition),{default:le(()=>[be("div",ue({class:e.wrapperClass,role:"status"},e.attrs,{onMouseover:t[0]||(t[0]=(...c)=>e.onMouseover&&e.onMouseover(...c)),onMouseleave:t[1]||(t[1]=(...c)=>e.onMouseleave&&e.onMouseleave(...c))}),[be("div",{class:G([e.ui.container,e.ui.rounded,e.ui.ring])},[be("div",{class:G(e.ui.padding)},[be("div",{class:G(["flex gap-3",{"items-start":e.description||e.$slots.description,"items-center":!e.description&&!e.$slots.description}])},[e.icon?(R(),ae(i,{key:0,name:e.icon,class:G(e.iconClass)},null,8,["name","class"])):ge("",!0),e.avatar?(R(),ae(a,ue({key:1},{size:e.ui.avatar.size,...e.avatar},{class:e.ui.avatar.base}),null,16,["class"])):ge("",!0),be("div",PS,[be("p",{class:G(e.ui.title)},[ye(e.$slots,"title",{title:e.title},()=>[Je(je(e.title),1)])],2),e.description||e.$slots.description?(R(),se("p",{key:0,class:G(e.ui.description)},[ye(e.$slots,"description",{description:e.description},()=>[Je(je(e.description),1)])],2)):ge("",!0),(e.description||e.$slots.description)&&e.actions.length?(R(),se("div",SS,[(R(!0),se(ke,null,yt(e.actions,(c,u)=>(R(),ae(l,ue({key:u},{...e.ui.default.actionButton,...c},{onClick:Ci(f=>e.onAction(c),["stop"])}),null,16,["onClick"]))),128))])):ge("",!0)]),be("div",TS,[!e.description&&!e.$slots.description&&e.actions.length?(R(),se("div",AS,[(R(!0),se(ke,null,yt(e.actions,(c,u)=>(R(),ae(l,ue({key:u},{...e.ui.default.actionButton,...c},{onClick:Ci(f=>e.onAction(c),["stop"])}),null,16,["onClick"]))),128))])):ge("",!0),e.closeButton?(R(),ae(l,ue({key:1,"aria-label":"Close"},{...e.ui.default.closeButton,...e.closeButton},{onClick:Ci(e.onClose,["stop"])}),null,16,["onClick"])):ge("",!0)])],2)],2),e.timeout?(R(),se("div",{key:0,class:G(e.progressClass),style:fn(e.progressStyle)},null,6)):ge("",!0)],2)],16)]),_:3},16)}const Jh=Mt(CS,[["render",OS]]);function $S(){const e=yr("notifications",()=>[]);function t(r){const o={id:new Date().getTime().toString(),...r};return e.value.findIndex(i=>i.id===o.id)===-1&&e.value.push(o),o}function n(r){e.value=e.value.filter(o=>o.id!==r)}return{add:t,remove:n}}const IS=Wt(He.ui.strategy,He.ui.notifications,eE),RS=ne({components:{UNotification:Jh},inheritAttrs:!1,props:{class:{type:[String,Object,Array],default:void 0},ui:{type:Object,default:void 0}},setup(e){const{ui:t,attrs:n}=Ke("notifications",we(e,"ui"),IS),r=$S(),o=yr("notifications",()=>[]),s=j(()=>Dn(ft(t.value.wrapper,t.value.position,t.value.width),e.class));return{ui:t,attrs:n,toast:r,notifications:o,wrapperClass:s}}});function LS(e,t,n,r,o,s){const i=Jh;return R(),ae(xd,{to:"body"},[be("div",ue({class:e.wrapperClass,role:"region"},e.attrs),[e.notifications.length?(R(),se("div",{key:0,class:G(e.ui.container)},[(R(!0),se(ke,null,yt(e.notifications,a=>(R(),se("div",{key:a.id},[Y(i,ue(a,{class:a.click&&"cursor-pointer",onClick:l=>a.click&&a.click(a),onClose:l=>e.toast.remove(a.id)}),ei({_:2},[yt(e.$slots,(l,c)=>({name:c,fn:le(u=>[ye(e.$slots,c,Fo(Uo(u)))])}))]),1040,["class","onClick","onClose"])]))),128))],2)):ge("",!0)],16)])}const Zh=Mt(RS,[["render",LS]]);function ac(...e){var p;const t=typeof e[e.length-1]=="string"?e.pop():void 0;typeof e[0]!="string"&&e.unshift(t);let[n,r,o={}]=e;if(typeof n!="string")throw new TypeError("[nuxt] [asyncData] key must be a string.");if(typeof r!="function")throw new TypeError("[nuxt] [asyncData] handler must be a function.");const s=Ae(),i=()=>null,a=()=>s.isHydrating?s.payload.data[n]:s.static.data[n];o.server=o.server??!0,o.default=o.default??i,o.getCachedData=o.getCachedData??a,o.lazy=o.lazy??!1,o.immediate=o.immediate??!0,o.deep=o.deep??eb.deep;const l=()=>![null,void 0].includes(o.getCachedData(n));if(!s._asyncData[n]||!o.immediate){(p=s.payload._errors)[n]??(p[n]=null);const h=o.deep?B:lr;s._asyncData[n]={data:h(o.getCachedData(n)??o.default()),pending:B(!l()),error:we(s.payload._errors,n),status:B("idle")}}const c={...s._asyncData[n]};c.refresh=c.execute=(h={})=>{if(s._asyncDataPromises[n]){if(h.dedupe===!1)return s._asyncDataPromises[n];s._asyncDataPromises[n].cancelled=!0}if((h._initial||s.isHydrating&&h._initial!==!1)&&l())return Promise.resolve(o.getCachedData(n));c.pending.value=!0,c.status.value="pending";const g=new Promise((y,x)=>{try{y(r(s))}catch(b){x(b)}}).then(y=>{if(g.cancelled)return s._asyncDataPromises[n];let x=y;o.transform&&(x=o.transform(y)),o.pick&&(x=MS(x,o.pick)),c.data.value=x,c.error.value=null,c.status.value="success"}).catch(y=>{if(g.cancelled)return s._asyncDataPromises[n];c.error.value=y,c.data.value=E(o.default()),c.status.value="error"}).finally(()=>{g.cancelled||(c.pending.value=!1,s.payload.data[n]=c.data.value,c.error.value&&(s.payload._errors[n]=ii(c.error.value)),delete s._asyncDataPromises[n])});return s._asyncDataPromises[n]=g,s._asyncDataPromises[n]};const u=()=>c.refresh({_initial:!0}),f=o.server!==!1&&s.payload.serverRendered;{const h=mn();if(h&&!h._nuxtOnBeforeMountCbs){h._nuxtOnBeforeMountCbs=[];const y=h._nuxtOnBeforeMountCbs;h&&(ad(()=>{y.forEach(x=>{x()}),y.splice(0,y.length)}),et(()=>y.splice(0,y.length)))}f&&s.isHydrating&&(c.error.value||l())?(c.pending.value=!1,c.status.value=c.error.value?"error":"success"):h&&(s.payload.serverRendered&&s.isHydrating||o.lazy)&&o.immediate?h._nuxtOnBeforeMountCbs.push(u):o.immediate&&u(),o.watch&&ze(o.watch,()=>c.refresh());const g=s.hook("app:data:refresh",async y=>{(!y||y.includes(n))&&await c.refresh()});h&&et(g)}const d=Promise.resolve(s._asyncDataPromises[n]).then(()=>c);return Object.assign(d,c),d}function MS(e,t){const n={};for(const r of t)n[r]=e[r];return n}function jS(e,t,n){var C;const[r={},o]=typeof t=="string"?[{},t]:[t,n],s=j(()=>{let S=e;return typeof S=="function"&&(S=S()),E(S)}),i=r.key||Ao([o,((C=E(r.method))==null?void 0:C.toUpperCase())||"GET",E(r.baseURL),typeof s.value=="string"?s.value:"",E(r.params||r.query),E(r.headers)]);if(!i||typeof i!="string")throw new TypeError("[nuxt] [useFetch] key must be a string: "+i);if(!e)throw new Error("[nuxt] [useFetch] request is missing.");const a=i===o?"$f"+i:i;if(!r.baseURL&&typeof s.value=="string"&&s.value.startsWith("//"))throw new Error('[nuxt] [useFetch] the request URL must not start with "//".');const{server:l,lazy:c,default:u,transform:f,pick:d,watch:p,immediate:h,getCachedData:g,deep:y,...x}=r,b=Rt({...tb,...x,cache:typeof r.cache=="boolean"?void 0:r.cache}),v={server:l,lazy:c,default:u,transform:f,pick:d,immediate:h,getCachedData:g,deep:y,watch:p===!1?[]:[b,s,...p||[]]};let m;return ac(a,()=>{var T;return(T=m==null?void 0:m.abort)==null||T.call(m),m=typeof AbortController<"u"?new AbortController:{},(r.$fetch||globalThis.$fetch)(s.value,{signal:m.signal,...b})},v)}function eg(e,t,n){const[r,o]=typeof t=="string"?[{},t]:[t,n];return jS(e,{...r,lazy:!0},o)}function lc(e){return JSON.stringify(e,DS)}function DS(e,t){return t instanceof RegExp?`--REGEX ${t.toString()}`:t}const tg=e=>{let t=lc(e);return t=typeof Buffer<"u"?Buffer.from(t).toString("base64"):btoa(t),t=t.replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,""),(t.match(/.{1,100}/g)||[]).join("/")},cc=()=>({isEnabled:()=>{const r=jn().query;return Object.prototype.hasOwnProperty.call(r,"preview")&&!r.preview?!1:!!(r.preview||_s("previewToken").value||sessionStorage.getItem("previewToken"))},getPreviewToken:()=>_s("previewToken").value||sessionStorage.getItem("previewToken")||void 0,setPreviewToken:r=>{_s("previewToken").value=r,jn().query.preview=r||"",r?sessionStorage.setItem("previewToken",r):sessionStorage.removeItem("previewToken"),window.location.reload()}}),zs=e=>jd(e,Lt().public.content.api.baseURL),pT=()=>{throw console.warn("useContent is only accessible when you are using `documentDriven` mode."),console.warn("Learn more by visiting: https://content.nuxt.com/document-driven"),new Error("useContent is only accessible when you are using `documentDriven` mode.")},ng=()=>{const{experimental:e}=Lt().public.content;return e.clientDB?!0:cc().isEnabled()},bf=(e,t)=>t.split(".").reduce((n,r)=>n&&n[r],e),uc=(e,t)=>Object.keys(e).filter(t).reduce((n,r)=>Object.assign(n,{[r]:e[r]}),{}),hT=e=>t=>e&&e.length?uc(t,n=>!e.includes(n)):t,gT=e=>t=>Array.isArray(t)?t.map(n=>e(n)):e(t),rg=e=>{const t=[],n=[];for(const r of e)["$","_"].includes(r)?t.push(r):n.push(r);return{prefixes:t,properties:n}},mT=(e=[])=>t=>{if(e.length===0||!t)return t;const{prefixes:n,properties:r}=rg(e);return uc(t,o=>!r.includes(o)&&!n.includes(o[0]))},vT=(e=[])=>t=>{if(e.length===0||!t)return t;const{prefixes:n,properties:r}=rg(e);return uc(t,o=>r.includes(o)||n.includes(o[0]))},yT=(e,t)=>{const n=new Intl.Collator(t.$locale,{numeric:t.$numeric,caseFirst:t.$caseFirst,sensitivity:t.$sensitivity}),r=Object.keys(t).filter(o=>!o.startsWith("$"));for(const o of r)e=e.sort((s,i)=>{const a=[bf(s,o),bf(i,o)].map(l=>{if(l!==null)return l instanceof Date?l.toISOString():l});return t[o]===-1&&a.reverse(),n.compare(a[0],a[1])});return e},bT=(e,t="Expected an array")=>{if(!Array.isArray(e))throw new TypeError(t)},an=e=>Array.isArray(e)?e:[void 0,null].includes(e)?[]:[e],FS=["sort","where","only","without"];function NS(e,t={}){const n={};for(const i of Object.keys(t.initialParams||{}))n[i]=FS.includes(i)?an(t.initialParams[i]):t.initialParams[i];const r=(i,a=l=>l)=>(...l)=>(n[i]=a(...l),s),o=i=>{var a;return t.legacy?i!=null&&i.surround?i.surround:i&&(i!=null&&i.dirConfig&&(i.result={_path:(a=i.dirConfig)==null?void 0:a._path,...i.result,_dir:i.dirConfig}),i!=null&&i._path||Array.isArray(i)||!Object.prototype.hasOwnProperty.call(i,"result")?i:i==null?void 0:i.result):i},s={params:()=>({...n,...n.where?{where:[...an(n.where)]}:{},...n.sort?{sort:[...an(n.sort)]}:{}}),only:r("only",an),without:r("without",an),where:r("where",i=>[...an(n.where),...an(i)]),sort:r("sort",i=>[...an(n.sort),...an(i)]),limit:r("limit",i=>parseInt(String(i),10)),skip:r("skip",i=>parseInt(String(i),10)),find:()=>e(s).then(o),findOne:()=>e(r("first")(!0)).then(o),count:()=>e(r("count")(!0)).then(o),locale:i=>s.where({_locale:i}),withSurround:r("surround",(i,a)=>({query:i,...a})),withDirConfig:()=>r("dirConfig")(!0)};return t.legacy&&(s.findSurround=(i,a)=>s.withSurround(i,a).find().then(o)),s}const BS=()=>async e=>{const{content:t}=Lt().public,n=e.params(),r=t.experimental.stripQueryParameters?zs(`/query/${`${Ao(n)}.${t.integrity}`}/${tg(n)}.json`):zs(`/query/${Ao(n)}.${t.integrity}.json`);if(ng())return(await Q(()=>import("./client-db.b4788cc1.js"),["./client-db.b4788cc1.js","./_commonjsHelpers.725317a4.js"],import.meta.url).then(i=>i.useContentDatabase())).fetch(e);const o=await $fetch(r,{method:"GET",responseType:"json",params:t.experimental.stripQueryParameters?void 0:{_params:lc(n),previewToken:cc().getPreviewToken()}});if(typeof o=="string"&&o.startsWith(""))throw new Error("Not found");return o};function HS(e,...t){const{content:n}=Lt().public,r=NS(BS(),{initialParams:typeof e!="string"?e:{},legacy:!0});let o;typeof e=="string"&&(o=ia(mr(e,...t)));const s=r.params;return r.params=()=>{var a,l,c;const i=s();return o&&(i.where=i.where||[],i.first&&(i.where||[]).length===0?i.where.push({_path:ri(o)}):i.where.push({_path:new RegExp(`^${o.replace(/[-[\]{}()*+.,^$\s/]/g,"\\$&")}`)})),(a=i.sort)!=null&&a.length||(i.sort=[{_file:1,$numeric:!0}]),n.locales.length&&((c=(l=i.where)==null?void 0:l.find(f=>f._locale))!=null&&c._locale||(i.where=i.where||[],i.where.push({_locale:n.defaultLocale}))),i},r}const og=async e=>{const{content:t}=Lt().public;typeof(e==null?void 0:e.params)!="function"&&(e=HS(e));const n=e.params(),r=t.experimental.stripQueryParameters?zs(`/navigation/${`${Ao(n)}.${t.integrity}`}/${tg(n)}.json`):zs(`/navigation/${Ao(n)}.${t.integrity}.json`);if(ng())return(await Q(()=>import("./client-db.b4788cc1.js"),["./client-db.b4788cc1.js","./_commonjsHelpers.725317a4.js"],import.meta.url).then(i=>i.generateNavigation))(n);const o=await $fetch(r,{method:"GET",responseType:"json",params:t.experimental.stripQueryParameters?void 0:{_params:lc(n),previewToken:cc().getPreviewToken()}});if(typeof o=="string"&&o.startsWith(""))throw new Error("Not found");return o},US=Z(()=>Q(()=>import("./DocsSearch.ed2a84a9.js"),["./DocsSearch.ed2a84a9.js","./DocsSearch.9e8db163.css"],import.meta.url).then(e=>e.default||e)),zS=ne({__name:"app",async setup(e){let t,n;const{data:r}=([t,n]=fl(()=>ac("navigation",()=>og())),t=await t,n(),t),{data:o}=eg("/api/search.json",{default:()=>[],server:!1},"$siNM9WAguS");return Vo({meta:[{name:"viewport",content:"width=device-width, initial-scale=1"}],link:[{rel:"icon",href:"/favicon.ico"}],htmlAttrs:{lang:"en"}}),rp({ogSiteName:"Nuxt x Supabase - Docs",twitterCard:"summary_large_image"}),Ve("navigation",r),(s,i)=>{const a=Gh,l=dS,c=vS,u=Qh,f=Xh,d=US,p=Hl,h=Zh;return R(),se("div",null,[Y(a),Y(u,null,{default:le(()=>[Y(c,null,{default:le(()=>[Y(l)]),_:1})]),_:1}),Y(f),Y(p,null,{default:le(()=>[Y(d,{files:E(o),navigation:E(r)},null,8,["files","navigation"])]),_:1}),Y(h)])}}}),VS=ne({inheritAttrs:!1,__name:"PageError",props:{error:{default:void 0},status:{default:404},name:{default:"An error occurred"},message:{default:"This is not the page you're looking for."},clearButton:{default:()=>({})},ui:{default:()=>({})},class:{default:void 0}},setup(e){const t={wrapper:"min-h-[calc(100vh-var(--header-height))] flex flex-col items-center justify-center",status:"text-base font-semibold text-primary",name:"text-3xl font-bold tracking-tight text-gray-900 dark:text-white sm:text-5xl",message:"mt-6 text-base/7 text-gray-500 dark:text-gray-400 text-center",links:"mt-10 flex items-center justify-center gap-x-6",default:{clearButton:{label:"Go back home",color:"primary",size:"lg"}}},n=e,{ui:r,attrs:o}=Ke("page.error",we(n,"ui"),t,we(n,"class"),!0),s=()=>lp({redirect:"/"});return(i,a)=>{var c,u,f,d;const l=qt;return R(),se("div",ue({class:E(r).wrapper},E(o)),[be("p",{class:G(E(r).status)},je(((c=i.error)==null?void 0:c.statusCode)||i.status),3),be("h1",{class:G(E(r).name)},je(((u=i.error)==null?void 0:u.name)||((f=i.error)==null?void 0:f.statusMessage)||i.name),3),be("p",{class:G(E(r).message)},je((d=i.error)!=null&&d.message&&i.error.message!==(i.error.name||i.error.statusMessage||i.name)?i.error.message:i.message),3),be("div",{class:G(E(r).links)},[Y(l,ue({...E(r).default.clearButton,...i.clearButton},{onClick:s}),null,16)],2)],16)}}}),WS=ne({inheritAttrs:!1,__name:"Page",props:{ui:{},class:{}},setup(e){const t={wrapper:"flex flex-col lg:grid lg:grid-cols-10 lg:gap-8",left:"lg:col-span-2",center:{base:"lg:col-span-8",full:"lg:col-span-10"},right:"lg:col-span-2 order-first lg:order-last"},n=e,{ui:r,attrs:o}=Ke("page",we(n,"ui"),t,we(n,"class"),!0);return(s,i)=>(R(),se("div",ue({class:E(r).wrapper},E(o)),[s.$slots.left?(R(),se("div",{key:0,class:G(E(r).left)},[ye(s.$slots,"left")],2)):ge("",!0),be("div",{class:G([s.$slots.left||s.$slots.right?E(r).center.base:E(r).center.full])},[ye(s.$slots,"default")],2),s.$slots.right?(R(),se("div",{key:1,class:G(E(r).right)},[ye(s.$slots,"right")],2)):ge("",!0)],16))}}),qS=Z(()=>Q(()=>import("./DocsSearch.ed2a84a9.js"),["./DocsSearch.ed2a84a9.js","./DocsSearch.9e8db163.css"],import.meta.url).then(e=>e.default||e)),KS=ne({__name:"error",props:{error:{}},async setup(e){let t,n;rp({title:"Page not found",description:"We are sorry but this page could not be found."}),Vo({htmlAttrs:{lang:"en"}});const{data:r}=([t,n]=fl(()=>ac("navigation",()=>og())),t=await t,n(),t),{data:o}=eg("/api/search.json",{default:()=>[],server:!1},"$mar46U4SiV");return Ve("navigation",r),(s,i)=>{const a=Gh,l=VS,c=WS,u=sc,f=Qh,d=Xh,p=qS,h=Hl,g=Zh;return R(),se("div",null,[Y(a),Y(f,null,{default:le(()=>[Y(u,null,{default:le(()=>[Y(c,null,{default:le(()=>[Y(l,{error:s.error},null,8,["error"])]),_:1})]),_:1})]),_:1}),Y(d),Y(h,null,{default:le(()=>[Y(p,{files:E(o),navigation:E(r)},null,8,["files","navigation"])]),_:1}),Y(g)])}}}),GS={__name:"nuxt-root",setup(e){const t=()=>null,n=Ae(),r=n.deferHydration(),o=!1;Ve(vr,jn()),n.hooks.callHookWith(a=>a.map(l=>l()),"vue:setup");const s=si();cd((a,l,c)=>{if(n.hooks.callHook("vue:error",a,l,c).catch(u=>console.error("[nuxt] Error in `vue:error` hook",u)),W0(a)&&(a.fatal||a.unhandled))return n.runWithContext(()=>kr(a)),!1});const i=!1;return(a,l)=>(R(),ae(cl,{onResolve:E(r)},{default:le(()=>[E(s)?(R(),ae(E(KS),{key:0,error:E(s)},null,8,["error"])):E(i)?(R(),ae(E(t),{key:1,context:E(i)},null,8,["context"])):E(o)?(R(),ae(Ar(E(o)),{key:2})):(R(),ae(E(zS),{key:3}))]),_:1},8,["onResolve"]))}},wf=GS;let _f;{let e;_f=async function(){var s,i;if(e)return e;const r=!!((s=window.__NUXT__)!=null&&s.serverRendered||((i=document.getElementById("__NUXT_DATA__"))==null?void 0:i.dataset.ssr)==="true")?Av(wf):Tv(wf),o=Ry({vueApp:r});try{await My(o,oE)}catch(a){await o.callHook("app:error",a),o.payload.error=o.payload.error||a}try{await o.hooks.callHook("app:created",r),await o.hooks.callHook("app:beforeMount",r),r.mount(nb),await o.hooks.callHook("app:mounted",r),await hn()}catch(a){await o.callHook("app:error",a),o.payload.error=o.payload.error||a}return r},e=_f().catch(t=>{console.error("Error while mounting app:",t)})}export{mt as $,Se as A,El as B,Ye as C,vn as D,j as E,ke as F,nt as G,ee as H,hh as I,Ve as J,Ul as K,qe as L,ze as M,me as N,jr as O,lT as P,fr as Q,pt as R,ch as S,hr as T,Yt as U,Fn as V,Wo as W,Te as X,WE as Y,Ko as Z,Q as _,et as a,JS as a$,hn as a0,cT as a1,dn as a2,bt as a3,Yh as a4,uE as a5,nr as a6,yt as a7,ae as a8,ye as a9,IE as aA,sS as aB,E as aC,Xe as aD,Fl as aE,eT as aF,Dn as aG,Dr as aH,Nn as aI,ad as aJ,Ho as aK,Ci as aL,fl as aM,ii as aN,rp as aO,ac as aP,dT as aQ,WS as aR,ri as aS,fT as aT,Ao as aU,sc as aV,nh as aW,aT as aX,Wr as aY,oT as aZ,Ma as a_,ue as aa,fn as ab,Je as ac,Wt as ad,tT as ae,He as af,qt as ag,Ke as ah,we as ai,oi as aj,rT as ak,ft as al,fm as am,lv as an,ei as ao,Fo as ap,Uo as aq,nT as ar,hC as as,gC as at,Rh as au,IC as av,AE as aw,Tn as ax,sh as ay,sT as az,R as b,km as b0,us as b1,za as b2,ZS as b3,Ar as b4,bC as b5,wC as b6,yC as b7,Vo as b8,Ms as b9,QS as ba,og as bb,cc as bc,uT as bd,Or as be,Po as bf,mr as bg,iT as bh,$S as bi,mn as bj,ia as bk,Lk as bl,ZP as bm,Qh as bn,Kh as bo,Lh as bp,bf as bq,bT as br,an as bs,hT as bt,yT as bu,gT as bv,mT as bw,vT as bx,NS as by,jd as bz,se as c,ne as d,be as e,ge as f,Y as g,_s as h,YS as i,Ae as j,Mt as k,Lt as l,yr as m,G as n,Le as o,XS as p,HS as q,B as r,jn as s,je as t,nn as u,jy as v,le as w,at as x,Tv as y,pT as z}; +`));let p=lh((i=f.props)!=null?i:{},l),h=en(f,p);for(let g in p)g.startsWith("on")&&(h.props||(h.props={}),h.props[g]=p[g]);return h}return Array.isArray(c)&&c.length===1?c[0]:c}return me(a,Object.assign({},l,u),{default:()=>c})}function ah(e){return e.flatMap(t=>t.type===ke?ah(t.children):[t])}function lh(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let o in r)o.startsWith("on")&&typeof r[o]=="function"?(n[o]!=null||(n[o]=[]),n[o].push(r[o])):t[o]=r[o];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map(r=>[r,void 0])));for(let r in n)Object.assign(t,{[r](o,...s){let i=n[r];for(let a of i){if(o instanceof Event&&o.defaultPrevented)return;a(o,...s)}}});return t}function lT(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function ch(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}function LE(e){return e==null?!1:typeof e.type=="string"||typeof e.type=="object"||typeof e.type=="function"}let ME=0;function jE(){return++ME}function Yt(){return jE()}var mt=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(mt||{});function ee(e){var t;return e==null||e.value==null?null:(t=e.value.$el)!=null?t:e.value}let uh=Symbol("Context");var qe=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(qe||{});function DE(){return Wo()!==null}function Wo(){return Te(uh,null)}function Ul(e){Ve(uh,e)}function af(e,t){if(e)return e;let n=t??"button";if(typeof n=="string"&&n.toLowerCase()==="button")return"button"}function fh(e,t){let n=B(af(e.value.type,e.value.as));return Le(()=>{n.value=af(e.value.type,e.value.as)}),Ye(()=>{var r;n.value||ee(t)&&ee(t)instanceof HTMLButtonElement&&!((r=ee(t))!=null&&r.hasAttribute("type"))&&(n.value="button")}),n}var FE=Object.defineProperty,NE=(e,t,n)=>t in e?FE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,lf=(e,t,n)=>(NE(e,typeof t!="symbol"?t+"":t,n),n);class BE{constructor(){lf(this,"current",this.detect()),lf(this,"currentId",0)}set(t){this.current!==t&&(this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}}let qo=new BE;function vn(e){if(qo.isServer)return null;if(e instanceof Node)return e.ownerDocument;if(e!=null&&e.hasOwnProperty("value")){let t=ee(e);if(t)return t.ownerDocument}return document}let ja=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var it=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(it||{}),Lo=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(Lo||{}),HE=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(HE||{});function fi(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(ja)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}var zl=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(zl||{});function dh(e,t=0){var n;return e===((n=vn(e))==null?void 0:n.body)?!1:nt(t,{0(){return e.matches(ja)},1(){let r=e;for(;r!==null;){if(r.matches(ja))return!0;r=r.parentElement}return!1}})}var UE=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(UE||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{e.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:e.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function or(e){e==null||e.focus({preventScroll:!0})}let zE=["textarea","input"].join(",");function VE(e){var t,n;return(n=(t=e==null?void 0:e.matches)==null?void 0:t.call(e,zE))!=null?n:!1}function WE(e,t=n=>n){return e.slice().sort((n,r)=>{let o=t(n),s=t(r);if(o===null||s===null)return 0;let i=o.compareDocumentPosition(s);return i&Node.DOCUMENT_POSITION_FOLLOWING?-1:i&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function Bt(e,t,{sorted:n=!0,relativeTo:r=null,skipElements:o=[]}={}){var s;let i=(s=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e==null?void 0:e.ownerDocument)!=null?s:document,a=Array.isArray(e)?n?WE(e):e:fi(e);o.length>0&&a.length>1&&(a=a.filter(h=>!o.includes(h))),r=r??i.activeElement;let l=(()=>{if(t&5)return 1;if(t&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),c=(()=>{if(t&1)return 0;if(t&2)return Math.max(0,a.indexOf(r))-1;if(t&4)return Math.max(0,a.indexOf(r))+1;if(t&8)return a.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),u=t&32?{preventScroll:!0}:{},f=0,d=a.length,p;do{if(f>=d||f+d<=0)return 0;let h=c+f;if(t&16)h=(h+d)%d;else{if(h<0)return 3;if(h>=d)return 1}p=a[h],p==null||p.focus(u),f+=l}while(p!==i.activeElement);return t&6&&VE(p)&&p.select(),2}function ds(e,t,n){qo.isServer||Ye(r=>{document.addEventListener(e,t,n),r(()=>document.removeEventListener(e,t,n))})}function ph(e,t,n){qo.isServer||Ye(r=>{window.addEventListener(e,t,n),r(()=>window.removeEventListener(e,t,n))})}function hh(e,t,n=j(()=>!0)){function r(s,i){if(!n.value||s.defaultPrevented)return;let a=i(s);if(a===null||!a.getRootNode().contains(a))return;let l=function c(u){return typeof u=="function"?c(u()):Array.isArray(u)||u instanceof Set?u:[u]}(e);for(let c of l){if(c===null)continue;let u=c instanceof HTMLElement?c:ee(c);if(u!=null&&u.contains(a)||s.composed&&s.composedPath().includes(u))return}return!dh(a,zl.Loose)&&a.tabIndex!==-1&&s.preventDefault(),t(s,a)}let o=B(null);ds("pointerdown",s=>{var i,a;n.value&&(o.value=((a=(i=s.composedPath)==null?void 0:i.call(s))==null?void 0:a[0])||s.target)},!0),ds("mousedown",s=>{var i,a;n.value&&(o.value=((a=(i=s.composedPath)==null?void 0:i.call(s))==null?void 0:a[0])||s.target)},!0),ds("click",s=>{o.value&&(r(s,()=>o.value),o.value=null)},!0),ds("touchend",s=>r(s,()=>s.target instanceof HTMLElement?s.target:null),!0),ph("blur",s=>r(s,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}var fr=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(fr||{});let jr=ne({name:"Hidden",props:{as:{type:[Object,String],default:"div"},features:{type:Number,default:1}},setup(e,{slots:t,attrs:n}){return()=>{let{features:r,...o}=e,s={"aria-hidden":(r&2)===2?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(r&4)===4&&(r&2)!==2&&{display:"none"}}};return pt({ourProps:s,theirProps:o,slot:{},attrs:n,slots:t,name:"Hidden"})}}});function gh(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function qE(){return/Android/gi.test(window.navigator.userAgent)}function cT(){return gh()||qE()}function Vl(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function Ko(){let e=[],t={addEventListener(n,r,o,s){return n.addEventListener(r,o,s),t.add(()=>n.removeEventListener(r,o,s))},requestAnimationFrame(...n){let r=requestAnimationFrame(...n);t.add(()=>cancelAnimationFrame(r))},nextFrame(...n){t.requestAnimationFrame(()=>{t.requestAnimationFrame(...n)})},setTimeout(...n){let r=setTimeout(...n);t.add(()=>clearTimeout(r))},microTask(...n){let r={current:!0};return Vl(()=>{r.current&&n[0]()}),t.add(()=>{r.current=!1})},style(n,r,o){let s=n.style.getPropertyValue(r);return Object.assign(n.style,{[r]:o}),this.add(()=>{Object.assign(n.style,{[r]:s})})},group(n){let r=Ko();return n(r),this.add(()=>r.dispose())},add(n){return e.push(n),()=>{let r=e.indexOf(n);if(r>=0)for(let o of e.splice(r,1))o()}},dispose(){for(let n of e.splice(0))n()}};return t}var Et=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(Et||{});function Wl(){let e=B(0);return ph("keydown",t=>{t.key==="Tab"&&(e.value=t.shiftKey?1:0)}),e}function ql(e,t,n,r){qo.isServer||Ye(o=>{e=e??window,e.addEventListener(t,n,r),o(()=>e.removeEventListener(t,n,r))})}function KE(e){function t(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",t))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",t),t())}function mh(e){if(!e)return new Set;if(typeof e=="function")return new Set(e());let t=new Set;for(let n of e.value){let r=ee(n);r instanceof HTMLElement&&t.add(r)}return t}var vh=(e=>(e[e.None=1]="None",e[e.InitialFocus=2]="InitialFocus",e[e.TabLock=4]="TabLock",e[e.FocusLock=8]="FocusLock",e[e.RestoreFocus=16]="RestoreFocus",e[e.All=30]="All",e))(vh||{});let eo=Object.assign(ne({name:"FocusTrap",props:{as:{type:[Object,String],default:"div"},initialFocus:{type:Object,default:null},features:{type:Number,default:30},containers:{type:[Object,Function],default:B(new Set)}},inheritAttrs:!1,setup(e,{attrs:t,slots:n,expose:r}){let o=B(null);r({el:o,$el:o});let s=j(()=>vn(o)),i=B(!1);Le(()=>i.value=!0),et(()=>i.value=!1),QE({ownerDocument:s},j(()=>i.value&&!!(e.features&16)));let a=XE({ownerDocument:s,container:o,initialFocus:j(()=>e.initialFocus)},j(()=>i.value&&!!(e.features&2)));YE({ownerDocument:s,container:o,containers:e.containers,previousActiveElement:a},j(()=>i.value&&!!(e.features&8)));let l=Wl();function c(p){let h=ee(o);h&&(g=>g())(()=>{nt(l.value,{[Et.Forwards]:()=>{Bt(h,it.First,{skipElements:[p.relatedTarget]})},[Et.Backwards]:()=>{Bt(h,it.Last,{skipElements:[p.relatedTarget]})}})})}let u=B(!1);function f(p){p.key==="Tab"&&(u.value=!0,requestAnimationFrame(()=>{u.value=!1}))}function d(p){if(!i.value)return;let h=mh(e.containers);ee(o)instanceof HTMLElement&&h.add(ee(o));let g=p.relatedTarget;g instanceof HTMLElement&&g.dataset.headlessuiFocusGuard!=="true"&&(yh(h,g)||(u.value?Bt(ee(o),nt(l.value,{[Et.Forwards]:()=>it.Next,[Et.Backwards]:()=>it.Previous})|it.WrapAround,{relativeTo:p.target}):p.target instanceof HTMLElement&&or(p.target)))}return()=>{let p={},h={ref:o,onKeydown:f,onFocusout:d},{features:g,initialFocus:y,containers:x,...b}=e;return me(ke,[!!(g&4)&&me(jr,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:c,features:fr.Focusable}),pt({ourProps:h,theirProps:{...t,...b},slot:p,attrs:t,slots:n,name:"FocusTrap"}),!!(g&4)&&me(jr,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:c,features:fr.Focusable})])}}}),{features:vh}),Xn=[];KE(()=>{function e(t){t.target instanceof HTMLElement&&t.target!==document.body&&Xn[0]!==t.target&&(Xn.unshift(t.target),Xn=Xn.filter(n=>n!=null&&n.isConnected),Xn.splice(10))}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})});function GE(e){let t=B(Xn.slice());return ze([e],([n],[r])=>{r===!0&&n===!1?Vl(()=>{t.value.splice(0)}):r===!1&&n===!0&&(t.value=Xn.slice())},{flush:"post"}),()=>{var n;return(n=t.value.find(r=>r!=null&&r.isConnected))!=null?n:null}}function QE({ownerDocument:e},t){let n=GE(t);Le(()=>{Ye(()=>{var r,o;t.value||((r=e.value)==null?void 0:r.activeElement)===((o=e.value)==null?void 0:o.body)&&or(n())},{flush:"post"})}),et(()=>{t.value&&or(n())})}function XE({ownerDocument:e,container:t,initialFocus:n},r){let o=B(null),s=B(!1);return Le(()=>s.value=!0),et(()=>s.value=!1),Le(()=>{ze([t,n,r],(i,a)=>{if(i.every((c,u)=>(a==null?void 0:a[u])===c)||!r.value)return;let l=ee(t);l&&Vl(()=>{var c,u;if(!s.value)return;let f=ee(n),d=(c=e.value)==null?void 0:c.activeElement;if(f){if(f===d){o.value=d;return}}else if(l.contains(d)){o.value=d;return}f?or(f):Bt(l,it.First|it.NoScroll)===Lo.Error&&console.warn("There are no focusable elements inside the "),o.value=(u=e.value)==null?void 0:u.activeElement})},{immediate:!0,flush:"post"})}),o}function YE({ownerDocument:e,container:t,containers:n,previousActiveElement:r},o){var s;ql((s=e.value)==null?void 0:s.defaultView,"focus",i=>{if(!o.value)return;let a=mh(n);ee(t)instanceof HTMLElement&&a.add(ee(t));let l=r.value;if(!l)return;let c=i.target;c&&c instanceof HTMLElement?yh(a,c)?(r.value=c,or(c)):(i.preventDefault(),i.stopPropagation(),or(l)):or(r.value)},!0)}function yh(e,t){for(let n of e)if(n.contains(t))return!0;return!1}let Fi=new Map,to=new Map;function cf(e,t=B(!0)){Ye(n=>{var r;if(!t.value)return;let o=ee(e);if(!o)return;n(function(){var i;if(!o)return;let a=(i=to.get(o))!=null?i:1;if(a===1?to.delete(o):to.set(o,a-1),a!==1)return;let l=Fi.get(o);l&&(l["aria-hidden"]===null?o.removeAttribute("aria-hidden"):o.setAttribute("aria-hidden",l["aria-hidden"]),o.inert=l.inert,Fi.delete(o))});let s=(r=to.get(o))!=null?r:0;to.set(o,s+1),s===0&&(Fi.set(o,{"aria-hidden":o.getAttribute("aria-hidden"),inert:o.inert}),o.setAttribute("aria-hidden","true"),o.inert=!0)})}let bh=Symbol("ForcePortalRootContext");function JE(){return Te(bh,!1)}let uf=ne({name:"ForcePortalRoot",props:{as:{type:[Object,String],default:"template"},force:{type:Boolean,default:!1}},setup(e,{slots:t,attrs:n}){return Ve(bh,e.force),()=>{let{force:r,...o}=e;return pt({theirProps:o,ourProps:{},slot:{},slots:t,attrs:n,name:"ForcePortalRoot"})}}});function ZE(e){let t=vn(e);if(!t){if(e===null)return null;throw new Error(`[Headless UI]: Cannot find ownerDocument for contextElement: ${e}`)}let n=t.getElementById("headlessui-portal-root");if(n)return n;let r=t.createElement("div");return r.setAttribute("id","headlessui-portal-root"),t.body.appendChild(r)}let eC=ne({name:"Portal",props:{as:{type:[Object,String],default:"div"}},setup(e,{slots:t,attrs:n}){let r=B(null),o=j(()=>vn(r)),s=JE(),i=Te(_h,null),a=B(s===!0||i==null?ZE(r.value):i.resolveTarget());Ye(()=>{s||i!=null&&(a.value=i.resolveTarget())});let l=Te(Da,null);return Le(()=>{let c=ee(r);c&&l&&et(l.register(c))}),et(()=>{var c,u;let f=(c=o.value)==null?void 0:c.getElementById("headlessui-portal-root");f&&a.value===f&&a.value.children.length<=0&&((u=a.value.parentElement)==null||u.removeChild(a.value))}),()=>{if(a.value===null)return null;let c={ref:r,"data-headlessui-portal":""};return me(xd,{to:a.value},pt({ourProps:c,theirProps:e,slot:{},attrs:n,slots:t,name:"Portal"}))}}}),Da=Symbol("PortalParentContext");function wh(){let e=Te(Da,null),t=B([]);function n(s){return t.value.push(s),e&&e.register(s),()=>r(s)}function r(s){let i=t.value.indexOf(s);i!==-1&&t.value.splice(i,1),e&&e.unregister(s)}let o={register:n,unregister:r,portals:t};return[t,ne({name:"PortalWrapper",setup(s,{slots:i}){return Ve(Da,o),()=>{var a;return(a=i.default)==null?void 0:a.call(i)}}})]}let _h=Symbol("PortalGroupContext"),tC=ne({name:"PortalGroup",props:{as:{type:[Object,String],default:"template"},target:{type:Object,default:null}},setup(e,{attrs:t,slots:n}){let r=Rt({resolveTarget(){return e.target}});return Ve(_h,r),()=>{let{target:o,...s}=e;return pt({theirProps:s,ourProps:{},slot:{},attrs:t,slots:n,name:"PortalGroup"})}}}),xh=Symbol("StackContext");var Fa=(e=>(e[e.Add=0]="Add",e[e.Remove=1]="Remove",e))(Fa||{});function nC(){return Te(xh,()=>{})}function rC({type:e,enabled:t,element:n,onUpdate:r}){let o=nC();function s(...i){r==null||r(...i),o(...i)}Le(()=>{ze(t,(i,a)=>{i?s(0,e,n):a===!0&&s(1,e,n)},{immediate:!0,flush:"sync"})}),et(()=>{t.value&&s(1,e,n)}),Ve(xh,s)}let oC=Symbol("DescriptionContext");function sC({slot:e=B({}),name:t="Description",props:n={}}={}){let r=B([]);function o(s){return r.value.push(s),()=>{let i=r.value.indexOf(s);i!==-1&&r.value.splice(i,1)}}return Ve(oC,{register:o,slot:e,name:t,props:n}),j(()=>r.value.length>0?r.value.join(" "):void 0)}function iC(e){let t=lr(e.getSnapshot());return et(e.subscribe(()=>{t.value=e.getSnapshot()})),t}function aC(e,t){let n=e(),r=new Set;return{getSnapshot(){return n},subscribe(o){return r.add(o),()=>r.delete(o)},dispatch(o,...s){let i=t[o].call(n,...s);i&&(n=i,r.forEach(a=>a()))}}}function lC(){let e;return{before({doc:t}){var n;let r=t.documentElement;e=((n=t.defaultView)!=null?n:window).innerWidth-r.clientWidth},after({doc:t,d:n}){let r=t.documentElement,o=r.clientWidth-r.offsetWidth,s=e-o;n.style(r,"paddingRight",`${s}px`)}}}function cC(){if(!gh())return{};let e;return{before(){e=window.pageYOffset},after({doc:t,d:n,meta:r}){function o(i){return r.containers.flatMap(a=>a()).some(a=>a.contains(i))}if(window.getComputedStyle(t.documentElement).scrollBehavior!=="auto"){let i=Ko();i.style(t.documentElement,"scroll-behavior","auto"),n.add(()=>n.microTask(()=>i.dispose()))}n.style(t.body,"marginTop",`-${e}px`),window.scrollTo(0,0);let s=null;n.addEventListener(t,"click",i=>{if(i.target instanceof HTMLElement)try{let a=i.target.closest("a");if(!a)return;let{hash:l}=new URL(a.href),c=t.querySelector(l);c&&!o(c)&&(s=c)}catch{}},!0),n.addEventListener(t,"touchmove",i=>{i.target instanceof HTMLElement&&!o(i.target)&&i.preventDefault()},{passive:!1}),n.add(()=>{window.scrollTo(0,window.pageYOffset+e),s&&s.isConnected&&(s.scrollIntoView({block:"nearest"}),s=null)})}}}function uC(){return{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}}function fC(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let er=aC(()=>new Map,{PUSH(e,t){var n;let r=(n=this.get(e))!=null?n:{doc:e,count:0,d:Ko(),meta:new Set};return r.count++,r.meta.add(t),this.set(e,r),this},POP(e,t){let n=this.get(e);return n&&(n.count--,n.meta.delete(t)),this},SCROLL_PREVENT({doc:e,d:t,meta:n}){let r={doc:e,d:t,meta:fC(n)},o=[cC(),lC(),uC()];o.forEach(({before:s})=>s==null?void 0:s(r)),o.forEach(({after:s})=>s==null?void 0:s(r))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});er.subscribe(()=>{let e=er.getSnapshot(),t=new Map;for(let[n]of e)t.set(n,n.documentElement.style.overflow);for(let n of e.values()){let r=t.get(n.doc)==="hidden",o=n.count!==0;(o&&!r||!o&&r)&&er.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),n.count===0&&er.dispatch("TEARDOWN",n)}});function dC(e,t,n){let r=iC(er),o=j(()=>{let s=e.value?r.value.get(e.value):void 0;return s?s.count>0:!1});return ze([e,t],([s,i],[a],l)=>{if(!s||!i)return;er.dispatch("PUSH",s,n);let c=!1;l(()=>{c||(er.dispatch("POP",a??s,n),c=!0)})},{immediate:!0}),o}function kh({defaultContainers:e=[],portals:t,mainTreeNodeRef:n}={}){let r=B(null),o=vn(r);function s(){var i;let a=[];for(let l of e)l!==null&&(l instanceof HTMLElement?a.push(l):"value"in l&&l.value instanceof HTMLElement&&a.push(l.value));if(t!=null&&t.value)for(let l of t.value)a.push(l);for(let l of(i=o==null?void 0:o.querySelectorAll("html > *, body > *"))!=null?i:[])l!==document.body&&l!==document.head&&l instanceof HTMLElement&&l.id!=="headlessui-portal-root"&&(l.contains(ee(r))||a.some(c=>l.contains(c))||a.push(l));return a}return{resolveContainers:s,contains(i){return s().some(a=>a.contains(i))},mainTreeNodeRef:r,MainTreeNode(){return n!=null?null:me(jr,{features:fr.Hidden,ref:r})}}}var pC=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(pC||{});let Na=Symbol("DialogContext");function Eh(e){let t=Te(Na,null);if(t===null){let n=new Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Eh),n}return t}let ps="DC8F892D-2EBD-447C-A4C8-A03058436FF4",hC=ne({name:"Dialog",inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},open:{type:[Boolean,String],default:ps},initialFocus:{type:Object,default:null},id:{type:String,default:()=>`headlessui-dialog-${Yt()}`}},emits:{close:e=>!0},setup(e,{emit:t,attrs:n,slots:r,expose:o}){var s;let i=B(!1);Le(()=>{i.value=!0});let a=B(0),l=Wo(),c=j(()=>e.open===ps&&l!==null?(l.value&qe.Open)===qe.Open:e.open),u=B(null),f=j(()=>vn(u));if(o({el:u,$el:u}),!(e.open!==ps||l!==null))throw new Error("You forgot to provide an `open` prop to the `Dialog`.");if(typeof c.value!="boolean")throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${c.value===ps?void 0:e.open}`);let d=j(()=>i.value&&c.value?0:1),p=j(()=>d.value===0),h=j(()=>a.value>1),g=Te(Na,null)!==null,[y,x]=wh(),{resolveContainers:b,mainTreeNodeRef:v,MainTreeNode:m}=kh({portals:y,defaultContainers:[j(()=>{var V;return(V=N.panelRef.value)!=null?V:u.value})]}),_=j(()=>h.value?"parent":"leaf"),C=j(()=>l!==null?(l.value&qe.Closing)===qe.Closing:!1),S=j(()=>g||C.value?!1:p.value),T=j(()=>{var V,W,_e;return(_e=Array.from((W=(V=f.value)==null?void 0:V.querySelectorAll("body > *"))!=null?W:[]).find(Re=>Re.id==="headlessui-portal-root"?!1:Re.contains(ee(v))&&Re instanceof HTMLElement))!=null?_e:null});cf(T,S);let M=j(()=>h.value?!0:p.value),I=j(()=>{var V,W,_e;return(_e=Array.from((W=(V=f.value)==null?void 0:V.querySelectorAll("[data-headlessui-portal]"))!=null?W:[]).find(Re=>Re.contains(ee(v))&&Re instanceof HTMLElement))!=null?_e:null});cf(I,M),rC({type:"Dialog",enabled:j(()=>d.value===0),element:u,onUpdate:(V,W)=>{if(W==="Dialog")return nt(V,{[Fa.Add]:()=>a.value+=1,[Fa.Remove]:()=>a.value-=1})}});let q=sC({name:"DialogDescription",slot:j(()=>({open:c.value}))}),A=B(null),N={titleId:A,panelRef:B(null),dialogState:d,setTitleId(V){A.value!==V&&(A.value=V)},close(){t("close",!1)}};Ve(Na,N);let he=j(()=>!(!p.value||h.value));hh(b,(V,W)=>{N.close(),hn(()=>W==null?void 0:W.focus())},he);let fe=j(()=>!(h.value||d.value!==0));ql((s=f.value)==null?void 0:s.defaultView,"keydown",V=>{fe.value&&(V.defaultPrevented||V.key===mt.Escape&&(V.preventDefault(),V.stopPropagation(),N.close()))});let U=j(()=>!(C.value||d.value!==0||g));return dC(f,U,V=>{var W;return{containers:[...(W=V.containers)!=null?W:[],b]}}),Ye(V=>{if(d.value!==0)return;let W=ee(u);if(!W)return;let _e=new ResizeObserver(Re=>{for(let Fe of Re){let Ee=Fe.target.getBoundingClientRect();Ee.x===0&&Ee.y===0&&Ee.width===0&&Ee.height===0&&N.close()}});_e.observe(W),V(()=>_e.disconnect())}),()=>{let{id:V,open:W,initialFocus:_e,...Re}=e,Fe={...n,ref:u,id:V,role:"dialog","aria-modal":d.value===0?!0:void 0,"aria-labelledby":A.value,"aria-describedby":q.value},Ee={open:d.value===0};return me(uf,{force:!0},()=>[me(eC,()=>me(tC,{target:u.value},()=>me(uf,{force:!1},()=>me(eo,{initialFocus:_e,containers:b,features:p.value?nt(_.value,{parent:eo.features.RestoreFocus,leaf:eo.features.All&~eo.features.FocusLock}):eo.features.None},()=>me(x,{},()=>pt({ourProps:Fe,theirProps:{...Re,...n},slot:Ee,attrs:n,slots:r,visible:d.value===0,features:Fn.RenderStrategy|Fn.Static,name:"Dialog"})))))),me(m)])}}}),gC=ne({name:"DialogPanel",props:{as:{type:[Object,String],default:"div"},id:{type:String,default:()=>`headlessui-dialog-panel-${Yt()}`}},setup(e,{attrs:t,slots:n,expose:r}){let o=Eh("DialogPanel");r({el:o.panelRef,$el:o.panelRef});function s(i){i.stopPropagation()}return()=>{let{id:i,...a}=e,l={id:i,ref:o.panelRef,onClick:s};return pt({ourProps:l,theirProps:a,slot:{open:o.dialogState.value===0},attrs:t,slots:n,name:"DialogPanel"})}}});var mC=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(mC||{});let Ch=Symbol("DisclosureContext");function Kl(e){let t=Te(Ch,null);if(t===null){let n=new Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Kl),n}return t}let Ph=Symbol("DisclosurePanelContext");function vC(){return Te(Ph,null)}let yC=ne({name:"Disclosure",props:{as:{type:[Object,String],default:"template"},defaultOpen:{type:[Boolean],default:!1}},setup(e,{slots:t,attrs:n}){let r=B(e.defaultOpen?0:1),o=B(null),s=B(null),i={buttonId:B(`headlessui-disclosure-button-${Yt()}`),panelId:B(`headlessui-disclosure-panel-${Yt()}`),disclosureState:r,panel:o,button:s,toggleDisclosure(){r.value=nt(r.value,{0:1,1:0})},closeDisclosure(){r.value!==1&&(r.value=1)},close(a){i.closeDisclosure();let l=(()=>a?a instanceof HTMLElement?a:a.value instanceof HTMLElement?ee(a):ee(i.button):ee(i.button))();l==null||l.focus()}};return Ve(Ch,i),Ul(j(()=>nt(r.value,{0:qe.Open,1:qe.Closed}))),()=>{let{defaultOpen:a,...l}=e,c={open:r.value===0,close:i.close};return pt({theirProps:l,ourProps:{},slot:c,slots:t,attrs:n,name:"Disclosure"})}}}),bC=ne({name:"DisclosureButton",props:{as:{type:[Object,String],default:"button"},disabled:{type:[Boolean],default:!1},id:{type:String,default:null}},setup(e,{attrs:t,slots:n,expose:r}){let o=Kl("DisclosureButton"),s=vC(),i=j(()=>s===null?!1:s.value===o.panelId.value);Le(()=>{i.value||e.id!==null&&(o.buttonId.value=e.id)}),et(()=>{i.value||(o.buttonId.value=null)});let a=B(null);r({el:a,$el:a}),i.value||Ye(()=>{o.button.value=a.value});let l=fh(j(()=>({as:e.as,type:t.type})),a);function c(){var d;e.disabled||(i.value?(o.toggleDisclosure(),(d=ee(o.button))==null||d.focus()):o.toggleDisclosure())}function u(d){var p;if(!e.disabled)if(i.value)switch(d.key){case mt.Space:case mt.Enter:d.preventDefault(),d.stopPropagation(),o.toggleDisclosure(),(p=ee(o.button))==null||p.focus();break}else switch(d.key){case mt.Space:case mt.Enter:d.preventDefault(),d.stopPropagation(),o.toggleDisclosure();break}}function f(d){switch(d.key){case mt.Space:d.preventDefault();break}}return()=>{var d;let p={open:o.disclosureState.value===0},{id:h,...g}=e,y=i.value?{ref:a,type:l.value,onClick:c,onKeydown:u}:{id:(d=o.buttonId.value)!=null?d:h,ref:a,type:l.value,"aria-expanded":o.disclosureState.value===0,"aria-controls":o.disclosureState.value===0||ee(o.panel)?o.panelId.value:void 0,disabled:e.disabled?!0:void 0,onClick:c,onKeydown:u,onKeyup:f};return pt({ourProps:y,theirProps:g,slot:p,attrs:t,slots:n,name:"DisclosureButton"})}}}),wC=ne({name:"DisclosurePanel",props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},id:{type:String,default:null}},setup(e,{attrs:t,slots:n,expose:r}){let o=Kl("DisclosurePanel");Le(()=>{e.id!==null&&(o.panelId.value=e.id)}),et(()=>{o.panelId.value=null}),r({el:o.panel,$el:o.panel}),Ve(Ph,o.panelId);let s=Wo(),i=j(()=>s!==null?(s.value&qe.Open)===qe.Open:o.disclosureState.value===0);return()=>{var a;let l={open:o.disclosureState.value===0,close:o.close},{id:c,...u}=e,f={id:(a=o.panelId.value)!=null?a:c,ref:o.panel};return pt({ourProps:f,theirProps:u,slot:l,attrs:t,slots:n,features:Fn.RenderStrategy|Fn.Static,visible:i.value,name:"DisclosurePanel"})}}});var _C=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(_C||{});let Sh=Symbol("PopoverContext");function Gl(e){let t=Te(Sh,null);if(t===null){let n=new Error(`<${e} /> is missing a parent <${Oh.name} /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Gl),n}return t}let xC=Symbol("PopoverGroupContext");function Th(){return Te(xC,null)}let Ah=Symbol("PopoverPanelContext");function kC(){return Te(Ah,null)}let Oh=ne({name:"Popover",inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"}},setup(e,{slots:t,attrs:n,expose:r}){var o;let s=B(null);r({el:s,$el:s});let i=B(1),a=B(null),l=B(null),c=B(null),u=B(null),f=j(()=>vn(s)),d=j(()=>{var _,C;if(!ee(a)||!ee(u))return!1;for(let N of document.querySelectorAll("body > *"))if(Number(N==null?void 0:N.contains(ee(a)))^Number(N==null?void 0:N.contains(ee(u))))return!0;let S=fi(),T=S.indexOf(ee(a)),M=(T+S.length-1)%S.length,I=(T+1)%S.length,q=S[M],A=S[I];return!((_=ee(u))!=null&&_.contains(q))&&!((C=ee(u))!=null&&C.contains(A))}),p={popoverState:i,buttonId:B(null),panelId:B(null),panel:u,button:a,isPortalled:d,beforePanelSentinel:l,afterPanelSentinel:c,togglePopover(){i.value=nt(i.value,{0:1,1:0})},closePopover(){i.value!==1&&(i.value=1)},close(_){p.closePopover();let C=(()=>_?_ instanceof HTMLElement?_:_.value instanceof HTMLElement?ee(_):ee(p.button):ee(p.button))();C==null||C.focus()}};Ve(Sh,p),Ul(j(()=>nt(i.value,{0:qe.Open,1:qe.Closed})));let h={buttonId:p.buttonId,panelId:p.panelId,close(){p.closePopover()}},g=Th(),y=g==null?void 0:g.registerPopover,[x,b]=wh(),v=kh({mainTreeNodeRef:g==null?void 0:g.mainTreeNodeRef,portals:x,defaultContainers:[a,u]});function m(){var _,C,S,T;return(T=g==null?void 0:g.isFocusWithinPopoverGroup())!=null?T:((_=f.value)==null?void 0:_.activeElement)&&(((C=ee(a))==null?void 0:C.contains(f.value.activeElement))||((S=ee(u))==null?void 0:S.contains(f.value.activeElement)))}return Ye(()=>y==null?void 0:y(h)),ql((o=f.value)==null?void 0:o.defaultView,"focus",_=>{var C,S;_.target!==window&&_.target instanceof HTMLElement&&i.value===0&&(m()||a&&u&&(v.contains(_.target)||(C=ee(p.beforePanelSentinel))!=null&&C.contains(_.target)||(S=ee(p.afterPanelSentinel))!=null&&S.contains(_.target)||p.closePopover()))},!0),hh(v.resolveContainers,(_,C)=>{var S;p.closePopover(),dh(C,zl.Loose)||(_.preventDefault(),(S=ee(a))==null||S.focus())},j(()=>i.value===0)),()=>{let _={open:i.value===0,close:p.close};return me(ke,[me(b,{},()=>pt({theirProps:{...e,...n},ourProps:{ref:s},slot:_,slots:t,attrs:n,name:"Popover"})),me(v.MainTreeNode)])}}}),EC=ne({name:"PopoverButton",props:{as:{type:[Object,String],default:"button"},disabled:{type:[Boolean],default:!1},id:{type:String,default:()=>`headlessui-popover-button-${Yt()}`}},inheritAttrs:!1,setup(e,{attrs:t,slots:n,expose:r}){let o=Gl("PopoverButton"),s=j(()=>vn(o.button));r({el:o.button,$el:o.button}),Le(()=>{o.buttonId.value=e.id}),et(()=>{o.buttonId.value=null});let i=Th(),a=i==null?void 0:i.closeOthers,l=kC(),c=j(()=>l===null?!1:l.value===o.panelId.value),u=B(null),f=`headlessui-focus-sentinel-${Yt()}`;c.value||Ye(()=>{o.button.value=u.value});let d=fh(j(()=>({as:e.as,type:t.type})),u);function p(v){var m,_,C,S,T;if(c.value){if(o.popoverState.value===1)return;switch(v.key){case mt.Space:case mt.Enter:v.preventDefault(),(_=(m=v.target).click)==null||_.call(m),o.closePopover(),(C=ee(o.button))==null||C.focus();break}}else switch(v.key){case mt.Space:case mt.Enter:v.preventDefault(),v.stopPropagation(),o.popoverState.value===1&&(a==null||a(o.buttonId.value)),o.togglePopover();break;case mt.Escape:if(o.popoverState.value!==0)return a==null?void 0:a(o.buttonId.value);if(!ee(o.button)||(S=s.value)!=null&&S.activeElement&&!((T=ee(o.button))!=null&&T.contains(s.value.activeElement)))return;v.preventDefault(),v.stopPropagation(),o.closePopover();break}}function h(v){c.value||v.key===mt.Space&&v.preventDefault()}function g(v){var m,_;e.disabled||(c.value?(o.closePopover(),(m=ee(o.button))==null||m.focus()):(v.preventDefault(),v.stopPropagation(),o.popoverState.value===1&&(a==null||a(o.buttonId.value)),o.togglePopover(),(_=ee(o.button))==null||_.focus()))}function y(v){v.preventDefault(),v.stopPropagation()}let x=Wl();function b(){let v=ee(o.panel);if(!v)return;function m(){nt(x.value,{[Et.Forwards]:()=>Bt(v,it.First),[Et.Backwards]:()=>Bt(v,it.Last)})===Lo.Error&&Bt(fi().filter(_=>_.dataset.headlessuiFocusGuard!=="true"),nt(x.value,{[Et.Forwards]:it.Next,[Et.Backwards]:it.Previous}),{relativeTo:ee(o.button)})}m()}return()=>{let v=o.popoverState.value===0,m={open:v},{id:_,...C}=e,S=c.value?{ref:u,type:d.value,onKeydown:p,onClick:g}:{ref:u,id:_,type:d.value,"aria-expanded":o.popoverState.value===0,"aria-controls":ee(o.panel)?o.panelId.value:void 0,disabled:e.disabled?!0:void 0,onKeydown:p,onKeyup:h,onClick:g,onMousedown:y};return me(ke,[pt({ourProps:S,theirProps:{...t,...C},slot:m,attrs:t,slots:n,name:"PopoverButton"}),v&&!c.value&&o.isPortalled.value&&me(jr,{id:f,features:fr.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:b})])}}}),CC=ne({name:"PopoverPanel",props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},focus:{type:Boolean,default:!1},id:{type:String,default:()=>`headlessui-popover-panel-${Yt()}`}},inheritAttrs:!1,setup(e,{attrs:t,slots:n,expose:r}){let{focus:o}=e,s=Gl("PopoverPanel"),i=j(()=>vn(s.panel)),a=`headlessui-focus-sentinel-before-${Yt()}`,l=`headlessui-focus-sentinel-after-${Yt()}`;r({el:s.panel,$el:s.panel}),Le(()=>{s.panelId.value=e.id}),et(()=>{s.panelId.value=null}),Ve(Ah,s.panelId),Ye(()=>{var y,x;if(!o||s.popoverState.value!==0||!s.panel)return;let b=(y=i.value)==null?void 0:y.activeElement;(x=ee(s.panel))!=null&&x.contains(b)||Bt(ee(s.panel),it.First)});let c=Wo(),u=j(()=>c!==null?(c.value&qe.Open)===qe.Open:s.popoverState.value===0);function f(y){var x,b;switch(y.key){case mt.Escape:if(s.popoverState.value!==0||!ee(s.panel)||i.value&&!((x=ee(s.panel))!=null&&x.contains(i.value.activeElement)))return;y.preventDefault(),y.stopPropagation(),s.closePopover(),(b=ee(s.button))==null||b.focus();break}}function d(y){var x,b,v,m,_;let C=y.relatedTarget;C&&ee(s.panel)&&((x=ee(s.panel))!=null&&x.contains(C)||(s.closePopover(),((v=(b=ee(s.beforePanelSentinel))==null?void 0:b.contains)!=null&&v.call(b,C)||(_=(m=ee(s.afterPanelSentinel))==null?void 0:m.contains)!=null&&_.call(m,C))&&C.focus({preventScroll:!0})))}let p=Wl();function h(){let y=ee(s.panel);if(!y)return;function x(){nt(p.value,{[Et.Forwards]:()=>{var b;Bt(y,it.First)===Lo.Error&&((b=ee(s.afterPanelSentinel))==null||b.focus())},[Et.Backwards]:()=>{var b;(b=ee(s.button))==null||b.focus({preventScroll:!0})}})}x()}function g(){let y=ee(s.panel);if(!y)return;function x(){nt(p.value,{[Et.Forwards]:()=>{let b=ee(s.button),v=ee(s.panel);if(!b)return;let m=fi(),_=m.indexOf(b),C=m.slice(0,_+1),S=[...m.slice(_+1),...C];for(let T of S.slice())if(T.dataset.headlessuiFocusGuard==="true"||v!=null&&v.contains(T)){let M=S.indexOf(T);M!==-1&&S.splice(M,1)}Bt(S,it.First,{sorted:!1})},[Et.Backwards]:()=>{var b;Bt(y,it.Previous)===Lo.Error&&((b=ee(s.button))==null||b.focus())}})}x()}return()=>{let y={open:s.popoverState.value===0,close:s.close},{id:x,focus:b,...v}=e,m={ref:s.panel,id:x,onKeydown:f,onFocusout:o&&s.popoverState.value===0?d:void 0,tabIndex:-1};return pt({ourProps:m,theirProps:{...t,...v},attrs:t,slot:y,slots:{...n,default:(..._)=>{var C;return[me(ke,[u.value&&s.isPortalled.value&&me(jr,{id:a,ref:s.beforePanelSentinel,features:fr.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:h}),(C=n.default)==null?void 0:C.call(n,..._),u.value&&s.isPortalled.value&&me(jr,{id:l,ref:s.afterPanelSentinel,features:fr.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:g})])]}},features:Fn.RenderStrategy|Fn.Static,visible:u.value,name:"PopoverPanel"})}}});function PC(e){let t={called:!1};return(...n)=>{if(!t.called)return t.called=!0,e(...n)}}function Ni(e,...t){e&&t.length>0&&e.classList.add(...t)}function hs(e,...t){e&&t.length>0&&e.classList.remove(...t)}var Ba=(e=>(e.Finished="finished",e.Cancelled="cancelled",e))(Ba||{});function SC(e,t){let n=Ko();if(!e)return n.dispose;let{transitionDuration:r,transitionDelay:o}=getComputedStyle(e),[s,i]=[r,o].map(a=>{let[l=0]=a.split(",").filter(Boolean).map(c=>c.includes("ms")?parseFloat(c):parseFloat(c)*1e3).sort((c,u)=>u-c);return l});return s!==0?n.setTimeout(()=>t("finished"),s+i):t("finished"),n.add(()=>t("cancelled")),n.dispose}function ff(e,t,n,r,o,s){let i=Ko(),a=s!==void 0?PC(s):()=>{};return hs(e,...o),Ni(e,...t,...n),i.nextFrame(()=>{hs(e,...n),Ni(e,...r),i.add(SC(e,l=>(hs(e,...r,...t),Ni(e,...o),a(l))))}),i.add(()=>hs(e,...t,...n,...r,...o)),i.add(()=>a("cancelled")),i.dispose}function Wn(e=""){return e.split(" ").filter(t=>t.trim().length>1)}let Ql=Symbol("TransitionContext");var TC=(e=>(e.Visible="visible",e.Hidden="hidden",e))(TC||{});function AC(){return Te(Ql,null)!==null}function OC(){let e=Te(Ql,null);if(e===null)throw new Error("A is used but it is missing a parent .");return e}function $C(){let e=Te(Xl,null);if(e===null)throw new Error("A is used but it is missing a parent .");return e}let Xl=Symbol("NestingContext");function di(e){return"children"in e?di(e.children):e.value.filter(({state:t})=>t==="visible").length>0}function $h(e){let t=B([]),n=B(!1);Le(()=>n.value=!0),et(()=>n.value=!1);function r(s,i=An.Hidden){let a=t.value.findIndex(({id:l})=>l===s);a!==-1&&(nt(i,{[An.Unmount](){t.value.splice(a,1)},[An.Hidden](){t.value[a].state="hidden"}}),!di(t)&&n.value&&(e==null||e()))}function o(s){let i=t.value.find(({id:a})=>a===s);return i?i.state!=="visible"&&(i.state="visible"):t.value.push({id:s,state:"visible"}),()=>r(s,An.Unmount)}return{children:t,register:o,unregister:r}}let Ih=Fn.RenderStrategy,IC=ne({props:{as:{type:[Object,String],default:"div"},show:{type:[Boolean],default:null},unmount:{type:[Boolean],default:!0},appear:{type:[Boolean],default:!1},enter:{type:[String],default:""},enterFrom:{type:[String],default:""},enterTo:{type:[String],default:""},entered:{type:[String],default:""},leave:{type:[String],default:""},leaveFrom:{type:[String],default:""},leaveTo:{type:[String],default:""}},emits:{beforeEnter:()=>!0,afterEnter:()=>!0,beforeLeave:()=>!0,afterLeave:()=>!0},setup(e,{emit:t,attrs:n,slots:r,expose:o}){let s=B(0);function i(){s.value|=qe.Opening,t("beforeEnter")}function a(){s.value&=~qe.Opening,t("afterEnter")}function l(){s.value|=qe.Closing,t("beforeLeave")}function c(){s.value&=~qe.Closing,t("afterLeave")}if(!AC()&&DE())return()=>me(Rh,{...e,onBeforeEnter:i,onAfterEnter:a,onBeforeLeave:l,onAfterLeave:c},r);let u=B(null),f=j(()=>e.unmount?An.Unmount:An.Hidden);o({el:u,$el:u});let{show:d,appear:p}=OC(),{register:h,unregister:g}=$C(),y=B(d.value?"visible":"hidden"),x={value:!0},b=Yt(),v={value:!1},m=$h(()=>{!v.value&&y.value!=="hidden"&&(y.value="hidden",g(b),c())});Le(()=>{let N=h(b);et(N)}),Ye(()=>{if(f.value===An.Hidden&&b){if(d.value&&y.value!=="visible"){y.value="visible";return}nt(y.value,{hidden:()=>g(b),visible:()=>h(b)})}});let _=Wn(e.enter),C=Wn(e.enterFrom),S=Wn(e.enterTo),T=Wn(e.entered),M=Wn(e.leave),I=Wn(e.leaveFrom),q=Wn(e.leaveTo);Le(()=>{Ye(()=>{if(y.value==="visible"){let N=ee(u);if(N instanceof Comment&&N.data==="")throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}})});function A(N){let he=x.value&&!p.value,fe=ee(u);!fe||!(fe instanceof HTMLElement)||he||(v.value=!0,d.value&&i(),d.value||l(),N(d.value?ff(fe,_,C,S,T,U=>{v.value=!1,U===Ba.Finished&&a()}):ff(fe,M,I,q,T,U=>{v.value=!1,U===Ba.Finished&&(di(m)||(y.value="hidden",g(b),c()))})))}return Le(()=>{ze([d],(N,he,fe)=>{A(fe),x.value=!1},{immediate:!0})}),Ve(Xl,m),Ul(j(()=>nt(y.value,{visible:qe.Open,hidden:qe.Closed})|s.value)),()=>{let{appear:N,show:he,enter:fe,enterFrom:U,enterTo:V,entered:W,leave:_e,leaveFrom:Re,leaveTo:Fe,...Ee}=e,Me={ref:u},lt={...Ee,...p.value&&d.value&&qo.isServer?{class:G([n.class,Ee.class,..._,...C])}:{}};return pt({theirProps:lt,ourProps:Me,slot:{},slots:r,attrs:n,features:Ih,visible:y.value==="visible",name:"TransitionChild"})}}}),RC=IC,Rh=ne({inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"},show:{type:[Boolean],default:null},unmount:{type:[Boolean],default:!0},appear:{type:[Boolean],default:!1},enter:{type:[String],default:""},enterFrom:{type:[String],default:""},enterTo:{type:[String],default:""},entered:{type:[String],default:""},leave:{type:[String],default:""},leaveFrom:{type:[String],default:""},leaveTo:{type:[String],default:""}},emits:{beforeEnter:()=>!0,afterEnter:()=>!0,beforeLeave:()=>!0,afterLeave:()=>!0},setup(e,{emit:t,attrs:n,slots:r}){let o=Wo(),s=j(()=>e.show===null&&o!==null?(o.value&qe.Open)===qe.Open:e.show);Ye(()=>{if(![!0,!1].includes(s.value))throw new Error('A is used but it is missing a `:show="true | false"` prop.')});let i=B(s.value?"visible":"hidden"),a=$h(()=>{i.value="hidden"}),l=B(!0),c={show:s,appear:j(()=>e.appear||!l.value)};return Le(()=>{Ye(()=>{l.value=!1,s.value?i.value="visible":di(a)||(i.value="hidden")})}),Ve(Xl,a),Ve(Ql,c),()=>{let u=ch(e,["show","appear","unmount","onBeforeEnter","onBeforeLeave","onAfterEnter","onAfterLeave"]),f={unmount:e.unmount};return pt({ourProps:{...f,as:"template"},theirProps:{},slot:{},slots:{...r,default:()=>[me(RC,{onBeforeEnter:()=>t("beforeEnter"),onAfterEnter:()=>t("afterEnter"),onBeforeLeave:()=>t("beforeLeave"),onAfterLeave:()=>t("afterLeave"),...n,...f,...u},r.default)]},attrs:{},features:Ih,visible:i.value==="visible",name:"Transition"})}}});const Bi=Wt(He.ui.strategy,He.ui.accordion,Qk),LC=Wt(He.ui.strategy,He.ui.button,eh),MC=ne({components:{HDisclosure:yC,HDisclosureButton:bC,HDisclosurePanel:wC,UIcon:bt,UButton:qt},inheritAttrs:!1,props:{items:{type:Array,default:()=>[]},defaultOpen:{type:Boolean,default:!1},openIcon:{type:String,default:()=>Bi.default.openIcon},closeIcon:{type:String,default:()=>Bi.default.closeIcon},multiple:{type:Boolean,default:!1},class:{type:[String,Object,Array],default:void 0},ui:{type:Object,default:void 0}},setup(e){const{ui:t,attrs:n}=Ke("accordion",we(e,"ui"),Bi,we(e,"class")),r=j(()=>LC),o=B([]);function s(u,f){!e.items[u].closeOthers&&e.multiple||o.value.forEach(d=>{d.open&&d.close(f.target)})}function i(u,f){u.style.height="0",u.offsetHeight,u.style.height=u.scrollHeight+"px",u.addEventListener("transitionend",f,{once:!0})}function a(u){u.style.height=u.scrollHeight+"px",u.offsetHeight}function l(u){u.style.height="auto"}function c(u,f){u.style.height="0",u.addEventListener("transitionend",f,{once:!0})}return{ui:t,uiButton:r,attrs:n,buttonRefs:o,closeOthers:s,omit:Lp,onEnter:i,onBeforeLeave:a,onAfterEnter:l,onLeave:c}}});function jC(e,t,n,r,o,s){const i=bt,a=qt,l=nr("HDisclosureButton"),c=nr("HDisclosurePanel"),u=nr("HDisclosure");return R(),se("div",{class:G(e.ui.wrapper)},[(R(!0),se(ke,null,yt(e.items,(f,d)=>(R(),ae(u,{key:d,"default-open":e.defaultOpen||f.defaultOpen},{default:le(({open:p,close:h})=>[Y(l,{ref_for:!0,ref:()=>e.buttonRefs[d]={open:p,close:h},as:"template",disabled:f.disabled,onClick:g=>e.closeOthers(d,g),onKeydown:[Yc(g=>e.closeOthers(d,g),["enter"]),Yc(g=>e.closeOthers(d,g),["space"])]},{default:le(()=>[ye(e.$slots,"default",{item:f,index:d,open:p,close:h},()=>[Y(a,Fo(Uo({...e.omit(e.ui.default,["openIcon","closeIcon"]),...e.attrs,...e.omit(f,["slot","disabled","content","defaultOpen"])})),{trailing:le(()=>[Y(i,{name:p&&e.closeIcon?e.closeIcon:e.openIcon,class:G([p&&!e.closeIcon?"-rotate-180":"",e.uiButton.icon.size[f.size||e.uiButton.default.size],e.ui.item.icon])},null,8,["name","class"])]),_:2},1040)])]),_:2},1032,["disabled","onClick","onKeydown"]),Y(hr,ue(e.ui.transition,{onEnter:e.onEnter,onAfterEnter:e.onAfterEnter,onBeforeLeave:e.onBeforeLeave,onLeave:e.onLeave}),{default:le(()=>[fm(be("div",null,[Y(c,{class:G([e.ui.item.base,e.ui.item.size,e.ui.item.color,e.ui.item.padding]),static:""},{default:le(()=>[ye(e.$slots,f.slot||"item",{item:f,index:d,open:p,close:h},()=>[Je(je(f.content),1)])]),_:2},1032,["class"])],512),[[lv,p]])]),_:2},1040,["onEnter","onAfterEnter","onBeforeLeave","onLeave"])]),_:2},1032,["default-open"]))),128))],2)}const DC=Mt(MC,[["render",jC]]),FC=ne({inheritAttrs:!1,__name:"NavigationAccordion",props:{level:{default:0},links:{default:()=>[]},multiple:{type:Boolean,default:!0},defaultOpen:{type:Boolean,default:void 0},ui:{default:()=>({})},class:{default:void 0}},setup(e){const t=at(),n={wrapper:"w-full block",level:"border-l border-gray-200 dark:border-gray-800 -ml-px pl-px hover:border-gray-300 dark:hover:border-gray-700",button:{base:"flex items-center gap-1.5 group mb-3 w-full focus-visible:outline-primary",active:"text-primary border-current",inactive:"border-transparent",level:"border-l -ml-px pl-4",icon:{base:"w-5 h-5 flex-shrink-0"},trailingIcon:{name:t.ui.icons.chevron,base:"w-5 h-5 ms-auto transform transition-transform duration-200 flex-shrink-0 mr-1.5",active:"text-gray-700 dark:text-gray-200",inactive:"text-gray-500 dark:text-gray-400 group-hover:text-gray-700 dark:group-hover:text-gray-200 -rotate-90"},label:"text-sm/6 font-semibold truncate"},tree:"border-l border-gray-200 dark:border-gray-800"},r=e,o=jn(),{ui:s,attrs:i}=Ke("navigation.accordion",we(r,"ui"),n,we(r,"class"),!0),a=j(()=>{var l;return(l=r.links)==null?void 0:l.map(c=>{const u=!r.defaultOpen||c.to&&o.path.startsWith(c.to.toString());return{label:c.label,icon:c.icon,slot:c.label.toLowerCase(),disabled:c.disabled,defaultOpen:u,children:c.children}})});return(l,c)=>{const u=bt,f=Nn,d=Lh,p=DC;return R(),ae(p,ue({key:(l._.provides[vr]||l.$route).path,items:E(a),multiple:l.multiple,ui:{wrapper:[E(s).wrapper,l.level>0&&E(s).level].filter(Boolean).join(" "),item:{padding:l.multiple?"p-0 mb-3 lg:mb-6":"p-0 mb-3",color:"text-inherit dark:text-inherit"}}},E(i)),ei({default:le(({item:h,open:g})=>[Y(f,{class:G([E(s).button.base,l.level>0&&E(s).button.level]),"active-class":E(s).button.active,"inactive-class":E(s).button.inactive},{default:le(()=>[h.icon?(R(),ae(u,{key:0,name:h.icon,class:G(E(s).button.icon.base)},null,8,["name","class"])):ge("",!0),be("span",{class:G(E(s).button.label)},je(h.label),3),h.disabled?ge("",!0):(R(),ae(u,{key:1,name:E(s).button.trailingIcon.name,class:G([E(s).button.trailingIcon.base,g?E(s).button.trailingIcon.active:E(s).button.trailingIcon.inactive])},null,8,["name","class"]))]),_:2},1032,["class","active-class","inactive-class"])]),_:2},[yt(l.links,({label:h},g)=>({name:h.toLowerCase(),fn:le(({item:y})=>[Y(d,{links:y.children,level:l.level+1,"default-open":l.defaultOpen,multiple:l.multiple,style:fn({marginLeft:`${.5*(l.level+1)+.5*l.level}rem`}),class:G(E(s).tree)},null,8,["links","level","default-open","multiple","style","class"])])}))]),1040,["items","multiple","ui"])}}});function Dr(e,t){const n={...e};for(const r of t)delete n[r];return n}const NC=ne({inheritAttrs:!1,__name:"NavigationLinks",props:{level:{default:0},links:{default:()=>[]},ui:{default:()=>({})},class:{default:void 0}},setup(e){const t={wrapper:"space-y-3",wrapperLevel:"space-y-1.5",base:"flex items-center gap-1.5 group",active:"text-primary font-medium border-current",inactive:"text-gray-500 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-200 border-transparent hover:border-gray-500 dark:hover:border-gray-400",level:"border-l -ml-px pl-4",icon:{base:"w-5 h-5 flex-shrink-0"},label:"text-sm/6"},n=e,{ui:r,attrs:o}=Ke("navigation.links",we(n,"ui"),t,we(n,"class"),!0);return(s,i)=>{var u;const a=bt,l=th,c=Nn;return(u=s.links)!=null&&u.length?(R(),se("div",ue({key:0,class:s.level>0?E(r).wrapperLevel:E(r).wrapper},E(o)),[(R(!0),se(ke,null,yt(s.links,(f,d)=>(R(),ae(c,ue({key:d},E(Dr)(f,["label","icon","iconClass","badge","children"]),{class:[E(r).base,s.level>0&&E(r).level],"active-class":E(r).active,"inactive-class":E(r).inactive,onClick:f.click}),{default:le(()=>[f.icon?(R(),ae(a,{key:0,name:f.icon,class:G([E(r).icon.base,f.iconClass])},null,8,["name","class"])):ge("",!0),be("span",{class:G(E(r).label)},je(f.label),3),ye(s.$slots,"badge",{},()=>[f.badge?(R(),ae(l,{key:0,size:"xs",variant:"subtle",ui:{rounded:"rounded-full"}},{default:le(()=>[Je(je(f.badge),1)]),_:2},1024)):ge("",!0)])]),_:2},1040,["class","active-class","inactive-class","onClick"]))),128))],16)):ge("",!0)}}}),Lh=ne({inheritAttrs:!1,__name:"NavigationTree",props:{level:{default:0},links:{default:()=>[]},multiple:{type:Boolean,default:!0},defaultOpen:{type:Boolean,default:void 0},ui:{default:()=>({})},class:{default:void 0}},setup(e){const t={wrapper:"space-y-3"},n=e,{ui:r,attrs:o}=Ke("navigation.tree",we(n,"ui"),t,we(n,"class"),!0),s=j(()=>{var l;const i=[];let a={type:null,children:[]};for(const c of n.links){const u=(l=c.children)!=null&&l.length?"accordion":"link";a.type||(a.type=u),a.type===u?a.children.push(c):(i.push(a),a={type:u,children:[c]})}return a.children.length&&i.push(a),i});return(i,a)=>{var u;const l=FC,c=NC;return(u=E(s))!=null&&u.length?(R(),se("nav",ue({key:0,class:E(r).wrapper},E(o)),[(R(!0),se(ke,null,yt(E(s),(f,d)=>(R(),se(ke,{key:d},[f.type==="accordion"?(R(),ae(l,{key:0,links:f.children,level:i.level,multiple:i.multiple,"default-open":i.defaultOpen},null,8,["links","level","multiple","default-open"])):(R(),ae(c,{key:1,links:f.children,level:i.level},null,8,["links","level"]))],64))),128))],16)):ge("",!0)}}}),BC=ne({inheritAttrs:!1,__name:"HeaderPopoverLinks",props:{links:{},ui:{},class:{}},setup(e){const t=at(),n={wrapper:"p-2 space-y-1",base:"block px-2 py-1.5 rounded-md flex items-start gap-1.5",active:"bg-gray-100/50 dark:bg-gray-800/50 text-primary",inactive:"hover:bg-gray-100/50 dark:hover:bg-gray-800/50",label:"font-semibold text-sm/6 inline-block relative",description:"text-sm leading-snug text-gray-500 dark:text-gray-400 line-clamp-2",icon:{base:"w-4 h-4 flex-shrink-0 mt-1"},externalIcon:{name:t.ui.icons.external,base:"w-3 h-3 absolute top-0.5 -right-3.5 text-gray-400 dark:text-gray-500"}},r=e,{ui:o,attrs:s}=Ke("header.popover.links",we(r,"ui"),n,we(r,"class"),!0);return(i,a)=>{var u;const l=bt,c=Nn;return(u=i.links)!=null&&u.length?(R(),se("div",ue({key:0,class:E(o).wrapper},E(s)),[(R(!0),se(ke,null,yt(i.links,(f,d)=>(R(),ae(c,ue({key:d},E(Dr)(f,["label","icon"]),{class:E(o).base,"active-class":E(o).active,"inactive-class":E(o).inactive,onClick:f.click}),{default:le(()=>[f.icon?(R(),ae(l,{key:0,name:f.icon,class:G(E(o).icon.base)},null,8,["name","class"])):ge("",!0),be("p",{class:G([f.target==="_blank"&&"pr-3"])},[be("span",{class:G(E(o).label)},[Je(je(f.label)+" ",1),f.target==="_blank"?(R(),ae(l,{key:0,name:E(o).externalIcon.name,class:G(E(o).externalIcon.base)},null,8,["name","class"])):ge("",!0)],2),f.description?(R(),se("span",{key:0,class:G(E(o).description)},je(f.description),3)):ge("",!0)],2)]),_:2},1040,["class","active-class","inactive-class","onClick"]))),128))],16)):ge("",!0)}}});function St(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function dr(e){var t=St(e).Element;return e instanceof t||e instanceof Element}function It(e){var t=St(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Yl(e){if(typeof ShadowRoot>"u")return!1;var t=St(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var sr=Math.max,Us=Math.min,Fr=Math.round;function Ha(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Mh(){return!/^((?!chrome|android).)*safari/i.test(Ha())}function Nr(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,s=1;t&&It(e)&&(o=e.offsetWidth>0&&Fr(r.width)/e.offsetWidth||1,s=e.offsetHeight>0&&Fr(r.height)/e.offsetHeight||1);var i=dr(e)?St(e):window,a=i.visualViewport,l=!Mh()&&n,c=(r.left+(l&&a?a.offsetLeft:0))/o,u=(r.top+(l&&a?a.offsetTop:0))/s,f=r.width/o,d=r.height/s;return{width:f,height:d,top:u,right:c+f,bottom:u+d,left:c,x:c,y:u}}function Jl(e){var t=St(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function HC(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function UC(e){return e===St(e)||!It(e)?Jl(e):HC(e)}function tn(e){return e?(e.nodeName||"").toLowerCase():null}function Bn(e){return((dr(e)?e.ownerDocument:e.document)||window.document).documentElement}function Zl(e){return Nr(Bn(e)).left+Jl(e).scrollLeft}function pn(e){return St(e).getComputedStyle(e)}function ec(e){var t=pn(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function zC(e){var t=e.getBoundingClientRect(),n=Fr(t.width)/e.offsetWidth||1,r=Fr(t.height)/e.offsetHeight||1;return n!==1||r!==1}function VC(e,t,n){n===void 0&&(n=!1);var r=It(t),o=It(t)&&zC(t),s=Bn(t),i=Nr(e,o,n),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((tn(t)!=="body"||ec(s))&&(a=UC(t)),It(t)?(l=Nr(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):s&&(l.x=Zl(s))),{x:i.left+a.scrollLeft-l.x,y:i.top+a.scrollTop-l.y,width:i.width,height:i.height}}function tc(e){var t=Nr(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function pi(e){return tn(e)==="html"?e:e.assignedSlot||e.parentNode||(Yl(e)?e.host:null)||Bn(e)}function jh(e){return["html","body","#document"].indexOf(tn(e))>=0?e.ownerDocument.body:It(e)&&ec(e)?e:jh(pi(e))}function yo(e,t){var n;t===void 0&&(t=[]);var r=jh(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),s=St(r),i=o?[s].concat(s.visualViewport||[],ec(r)?r:[]):r,a=t.concat(i);return o?a:a.concat(yo(pi(i)))}function WC(e){return["table","td","th"].indexOf(tn(e))>=0}function df(e){return!It(e)||pn(e).position==="fixed"?null:e.offsetParent}function qC(e){var t=/firefox/i.test(Ha()),n=/Trident/i.test(Ha());if(n&&It(e)){var r=pn(e);if(r.position==="fixed")return null}var o=pi(e);for(Yl(o)&&(o=o.host);It(o)&&["html","body"].indexOf(tn(o))<0;){var s=pn(o);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||t&&s.willChange==="filter"||t&&s.filter&&s.filter!=="none")return o;o=o.parentNode}return null}function Go(e){for(var t=St(e),n=df(e);n&&WC(n)&&pn(n).position==="static";)n=df(n);return n&&(tn(n)==="html"||tn(n)==="body"&&pn(n).position==="static")?t:n||qC(e)||t}var Ct="top",zt="bottom",Vt="right",Pt="left",nc="auto",Qo=[Ct,zt,Vt,Pt],Br="start",Mo="end",KC="clippingParents",Dh="viewport",no="popper",GC="reference",pf=Qo.reduce(function(e,t){return e.concat([t+"-"+Br,t+"-"+Mo])},[]),Fh=[].concat(Qo,[nc]).reduce(function(e,t){return e.concat([t,t+"-"+Br,t+"-"+Mo])},[]),QC="beforeRead",XC="read",YC="afterRead",JC="beforeMain",ZC="main",eP="afterMain",tP="beforeWrite",nP="write",rP="afterWrite",oP=[QC,XC,YC,JC,ZC,eP,tP,nP,rP];function sP(e){var t=new Map,n=new Set,r=[];e.forEach(function(s){t.set(s.name,s)});function o(s){n.add(s.name);var i=[].concat(s.requires||[],s.requiresIfExists||[]);i.forEach(function(a){if(!n.has(a)){var l=t.get(a);l&&o(l)}}),r.push(s)}return e.forEach(function(s){n.has(s.name)||o(s)}),r}function iP(e){var t=sP(e);return oP.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function aP(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function lP(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}function cP(e,t){var n=St(e),r=Bn(e),o=n.visualViewport,s=r.clientWidth,i=r.clientHeight,a=0,l=0;if(o){s=o.width,i=o.height;var c=Mh();(c||!c&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:s,height:i,x:a+Zl(e),y:l}}function uP(e){var t,n=Bn(e),r=Jl(e),o=(t=e.ownerDocument)==null?void 0:t.body,s=sr(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=sr(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-r.scrollLeft+Zl(e),l=-r.scrollTop;return pn(o||n).direction==="rtl"&&(a+=sr(n.clientWidth,o?o.clientWidth:0)-s),{width:s,height:i,x:a,y:l}}function Nh(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Yl(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Ua(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function fP(e,t){var n=Nr(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function hf(e,t,n){return t===Dh?Ua(cP(e,n)):dr(t)?fP(t,n):Ua(uP(Bn(e)))}function dP(e){var t=yo(pi(e)),n=["absolute","fixed"].indexOf(pn(e).position)>=0,r=n&&It(e)?Go(e):e;return dr(r)?t.filter(function(o){return dr(o)&&Nh(o,r)&&tn(o)!=="body"}):[]}function pP(e,t,n,r){var o=t==="clippingParents"?dP(e):[].concat(t),s=[].concat(o,[n]),i=s[0],a=s.reduce(function(l,c){var u=hf(e,c,r);return l.top=sr(u.top,l.top),l.right=Us(u.right,l.right),l.bottom=Us(u.bottom,l.bottom),l.left=sr(u.left,l.left),l},hf(e,i,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function Jt(e){return e.split("-")[0]}function Hr(e){return e.split("-")[1]}function rc(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Bh(e){var t=e.reference,n=e.element,r=e.placement,o=r?Jt(r):null,s=r?Hr(r):null,i=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,l;switch(o){case Ct:l={x:i,y:t.y-n.height};break;case zt:l={x:i,y:t.y+t.height};break;case Vt:l={x:t.x+t.width,y:a};break;case Pt:l={x:t.x-n.width,y:a};break;default:l={x:t.x,y:t.y}}var c=o?rc(o):null;if(c!=null){var u=c==="y"?"height":"width";switch(s){case Br:l[c]=l[c]-(t[u]/2-n[u]/2);break;case Mo:l[c]=l[c]+(t[u]/2-n[u]/2);break}}return l}function Hh(){return{top:0,right:0,bottom:0,left:0}}function Uh(e){return Object.assign({},Hh(),e)}function zh(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}function oc(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,s=n.strategy,i=s===void 0?e.strategy:s,a=n.boundary,l=a===void 0?KC:a,c=n.rootBoundary,u=c===void 0?Dh:c,f=n.elementContext,d=f===void 0?no:f,p=n.altBoundary,h=p===void 0?!1:p,g=n.padding,y=g===void 0?0:g,x=Uh(typeof y!="number"?y:zh(y,Qo)),b=d===no?GC:no,v=e.rects.popper,m=e.elements[h?b:d],_=pP(dr(m)?m:m.contextElement||Bn(e.elements.popper),l,u,i),C=Nr(e.elements.reference),S=Bh({reference:C,element:v,strategy:"absolute",placement:o}),T=Ua(Object.assign({},v,S)),M=d===no?T:C,I={top:_.top-M.top+x.top,bottom:M.bottom-_.bottom+x.bottom,left:_.left-M.left+x.left,right:M.right-_.right+x.right},q=e.modifiersData.offset;if(d===no&&q){var A=q[o];Object.keys(I).forEach(function(N){var he=[Vt,zt].indexOf(N)>=0?1:-1,fe=[Ct,zt].indexOf(N)>=0?"y":"x";I[N]+=A[fe]*he})}return I}var gf={placement:"bottom",modifiers:[],strategy:"absolute"};function mf(){for(var e=arguments.length,t=new Array(e),n=0;n=0});d.length===0&&(d=f);var p=d.reduce(function(h,g){return h[g]=oc(e,{placement:g,boundary:o,rootBoundary:s,padding:i})[Jt(g)],h},{});return Object.keys(p).sort(function(h,g){return p[h]-p[g]})}function TP(e){if(Jt(e)===nc)return[];var t=Cs(e);return[yf(e),t,yf(t)]}function AP(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,s=o===void 0?!0:o,i=n.altAxis,a=i===void 0?!0:i,l=n.fallbackPlacements,c=n.padding,u=n.boundary,f=n.rootBoundary,d=n.altBoundary,p=n.flipVariations,h=p===void 0?!0:p,g=n.allowedAutoPlacements,y=t.options.placement,x=Jt(y),b=x===y,v=l||(b||!h?[Cs(y)]:TP(y)),m=[y].concat(v).reduce(function(lt,wt){return lt.concat(Jt(wt)===nc?SP(t,{placement:wt,boundary:u,rootBoundary:f,padding:c,flipVariations:h,allowedAutoPlacements:g}):wt)},[]),_=t.rects.reference,C=t.rects.popper,S=new Map,T=!0,M=m[0],I=0;I=0,fe=he?"width":"height",U=oc(t,{placement:q,boundary:u,rootBoundary:f,altBoundary:d,padding:c}),V=he?N?Vt:Pt:N?zt:Ct;_[fe]>C[fe]&&(V=Cs(V));var W=Cs(V),_e=[];if(s&&_e.push(U[A]<=0),a&&_e.push(U[V]<=0,U[W]<=0),_e.every(function(lt){return lt})){M=q,T=!1;break}S.set(q,_e)}if(T)for(var Re=h?3:1,Fe=function(wt){var We=m.find(function($){var X=S.get($);if(X)return X.slice(0,wt).every(function(K){return K})});if(We)return M=We,"break"},Ee=Re;Ee>0;Ee--){var Me=Fe(Ee);if(Me==="break")break}t.placement!==M&&(t.modifiersData[r]._skip=!0,t.placement=M,t.reset=!0)}}const OP={name:"flip",enabled:!0,phase:"main",fn:AP,requiresIfExists:["offset"],data:{_skip:!1}};function $P(e,t,n){var r=Jt(e),o=[Pt,Ct].indexOf(r)>=0?-1:1,s=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,i=s[0],a=s[1];return i=i||0,a=(a||0)*o,[Pt,Vt].indexOf(r)>=0?{x:a,y:i}:{x:i,y:a}}function IP(e){var t=e.state,n=e.options,r=e.name,o=n.offset,s=o===void 0?[0,0]:o,i=Fh.reduce(function(u,f){return u[f]=$P(f,t.rects,s),u},{}),a=i[t.placement],l=a.x,c=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=i}const RP={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:IP};function LP(e){return e==="x"?"y":"x"}function bo(e,t,n){return sr(e,Us(t,n))}function MP(e,t,n){var r=bo(e,t,n);return r>n?n:r}function jP(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,s=o===void 0?!0:o,i=n.altAxis,a=i===void 0?!1:i,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,f=n.padding,d=n.tether,p=d===void 0?!0:d,h=n.tetherOffset,g=h===void 0?0:h,y=oc(t,{boundary:l,rootBoundary:c,padding:f,altBoundary:u}),x=Jt(t.placement),b=Hr(t.placement),v=!b,m=rc(x),_=LP(m),C=t.modifiersData.popperOffsets,S=t.rects.reference,T=t.rects.popper,M=typeof g=="function"?g(Object.assign({},t.rects,{placement:t.placement})):g,I=typeof M=="number"?{mainAxis:M,altAxis:M}:Object.assign({mainAxis:0,altAxis:0},M),q=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,A={x:0,y:0};if(C){if(s){var N,he=m==="y"?Ct:Pt,fe=m==="y"?zt:Vt,U=m==="y"?"height":"width",V=C[m],W=V+y[he],_e=V-y[fe],Re=p?-T[U]/2:0,Fe=b===Br?S[U]:T[U],Ee=b===Br?-T[U]:-S[U],Me=t.elements.arrow,lt=p&&Me?tc(Me):{width:0,height:0},wt=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Hh(),We=wt[he],$=wt[fe],X=bo(0,S[U],lt[U]),K=v?S[U]/2-Re-X-We-I.mainAxis:Fe-X-We-I.mainAxis,re=v?-S[U]/2+Re+X+$+I.mainAxis:Ee+X+$+I.mainAxis,Ce=t.elements.arrow&&Go(t.elements.arrow),w=Ce?m==="y"?Ce.clientTop||0:Ce.clientLeft||0:0,k=(N=q==null?void 0:q[m])!=null?N:0,P=V+K-k-w,O=V+re-k,L=bo(p?Us(W,P):W,V,p?sr(_e,O):_e);C[m]=L,A[m]=L-V}if(a){var D,J=m==="x"?Ct:Pt,H=m==="x"?zt:Vt,z=C[_],F=_==="y"?"height":"width",ie=z+y[J],te=z-y[H],oe=[Ct,Pt].indexOf(x)!==-1,pe=(D=q==null?void 0:q[_])!=null?D:0,ve=oe?ie:z-S[F]-T[F]-pe+I.altAxis,$e=oe?z+S[F]+T[F]-pe-I.altAxis:te,Oe=p&&oe?MP(ve,z,$e):bo(p?ve:ie,z,p?$e:te);C[_]=Oe,A[_]=Oe-z}t.modifiersData[r]=A}}const DP={name:"preventOverflow",enabled:!0,phase:"main",fn:jP,requiresIfExists:["offset"]};var FP=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,Uh(typeof t!="number"?t:zh(t,Qo))};function NP(e){var t,n=e.state,r=e.name,o=e.options,s=n.elements.arrow,i=n.modifiersData.popperOffsets,a=Jt(n.placement),l=rc(a),c=[Pt,Vt].indexOf(a)>=0,u=c?"height":"width";if(!(!s||!i)){var f=FP(o.padding,n),d=tc(s),p=l==="y"?Ct:Pt,h=l==="y"?zt:Vt,g=n.rects.reference[u]+n.rects.reference[l]-i[l]-n.rects.popper[u],y=i[l]-n.rects.reference[l],x=Go(s),b=x?l==="y"?x.clientHeight||0:x.clientWidth||0:0,v=g/2-y/2,m=f[p],_=b-d[u]-f[h],C=b/2-d[u]/2+v,S=bo(m,C,_),T=l;n.modifiersData[r]=(t={},t[T]=S,t.centerOffset=S-C,t)}}function BP(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||Nh(t.elements.popper,o)&&(t.elements.arrow=o))}const HP={name:"arrow",enabled:!0,phase:"main",fn:NP,effect:BP,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},UP=hP({defaultModifiers:[...EP,RP,OP,DP,Wh,Vh,HP]});function zP({locked:e=!1,overflowPadding:t=8,offsetDistance:n=8,offsetSkid:r=0,gpuAcceleration:o=!0,adaptive:s=!0,scroll:i=!0,resize:a=!0,arrow:l=!1,placement:c,strategy:u},f){const d=B(null),p=B(null),h=B(null);return Le(()=>{Ye(g=>{if(!p.value||!d.value&&!(f!=null&&f.value))return;const y=Ma(p),x=(f==null?void 0:f.value)||Ma(d);if(!(y instanceof HTMLElement)||!x)return;const b={modifiers:[{name:"flip",enabled:!e},{name:"preventOverflow",options:{padding:t}},{name:"offset",options:{offset:[r,n]}},{name:"computeStyles",options:{adaptive:s,gpuAcceleration:o}},{name:"eventListeners",options:{scroll:i,resize:a}},{name:"arrow",enabled:l}]};c&&(b.placement=c),u&&(b.strategy=u),h.value=UP(x,y,b),g(h.value.destroy)})}),[d,p,h]}const VP=Wt(He.ui.strategy,He.ui.popover,Jk),WP=ne({components:{HPopover:Oh,HPopoverButton:EC,HPopoverPanel:CC},inheritAttrs:!1,props:{mode:{type:String,default:"click",validator:e=>["click","hover"].includes(e)},open:{type:Boolean,default:void 0},disabled:{type:Boolean,default:!1},openDelay:{type:Number,default:0},closeDelay:{type:Number,default:0},popper:{type:Object,default:()=>({})},class:{type:[String,Object,Array],default:void 0},ui:{type:Object,default:void 0}},setup(e){const{ui:t,attrs:n}=Ke("popover",we(e,"ui"),VP,we(e,"class")),r=j(()=>oi(e.mode==="hover"?{offsetDistance:0}:{},e.popper,t.value.popper)),[o,s]=zP(r.value),i=B(null),a=B(null);let l=null,c=null;Le(()=>{var g;const p=(g=i.value)==null?void 0:g.$.provides;if(!p)return;const h=Object.getOwnPropertySymbols(p);a.value=h.length&&p[h[0]]});const u=j(()=>{var g,y;const h=`${((g=e.popper)==null?void 0:g.offsetDistance)||((y=t.value.popper)==null?void 0:y.offsetDistance)||8}px`;return e.mode==="hover"?{paddingTop:h,paddingBottom:h,paddingLeft:h,paddingRight:h}:{}});function f(){e.mode!=="hover"||!a.value||(c&&(clearTimeout(c),c=null),a.value.popoverState!==0&&(l=l||setTimeout(()=>{a.value.togglePopover&&a.value.togglePopover(),l=null},e.openDelay)))}function d(){e.mode!=="hover"||!a.value||(l&&(clearTimeout(l),l=null),a.value.popoverState!==1&&(c=c||setTimeout(()=>{a.value.closePopover&&a.value.closePopover(),c=null},e.closeDelay)))}return{ui:t,attrs:n,popover:i,popper:r,trigger:o,container:s,containerStyle:u,onMouseOver:f,onMouseLeave:d}}}),qP=["disabled"];function KP(e,t,n,r,o,s){const i=nr("HPopoverButton"),a=nr("HPopoverPanel"),l=nr("HPopover");return R(),ae(l,ue({ref:"popover",class:e.ui.wrapper},e.attrs,{onMouseleave:e.onMouseLeave}),{default:le(({open:c,close:u})=>[Y(i,{ref:"trigger",as:"div",disabled:e.disabled,class:"inline-flex w-full",role:"button",onMouseover:e.onMouseOver},{default:le(()=>[ye(e.$slots,"default",{open:e.open!==void 0?e.open:c,close:u},()=>[be("button",{disabled:e.disabled}," Open ",8,qP)])]),_:2},1032,["disabled","onMouseover"]),(e.open!==void 0?e.open:c)?(R(),se("div",{key:0,ref:"container",class:G([e.ui.container,e.ui.width]),style:fn(e.containerStyle),onMouseover:t[0]||(t[0]=(...f)=>e.onMouseOver&&e.onMouseOver(...f))},[Y(hr,ue({appear:""},e.ui.transition),{default:le(()=>[be("div",null,[e.popper.arrow?(R(),se("div",{key:0,"data-popper-arrow":"",class:G(["invisible before:visible before:block before:rotate-45 before:z-[-1]",Object.values(e.ui.arrow)])},null,2)):ge("",!0),Y(a,{class:G([e.ui.base,e.ui.background,e.ui.ring,e.ui.rounded,e.ui.shadow]),static:""},{default:le(()=>[ye(e.$slots,"panel",{open:e.open!==void 0?e.open:c,close:u})]),_:2},1032,["class"])])]),_:2},1040)],38)):ge("",!0)]),_:3},16,["class","onMouseleave"])}const GP=Mt(WP,[["render",KP]]),QP=ne({inheritAttrs:!1,__name:"HeaderLinks",props:{links:{},ui:{},class:{}},setup(e){const t=at(),n={wrapper:"flex items-center gap-x-8",base:"text-sm/6 font-semibold flex items-center gap-1",active:"text-primary",inactive:"hover:text-primary",trailingIcon:{name:t.ui.icons.chevron,base:"w-5 h-5 transform transition-transform duration-200 flex-shrink-0",active:"rotate-180",inactive:""},externalIcon:{name:t.ui.icons.external,base:"w-3 h-3 absolute top-0.5 -right-3.5 text-gray-400 dark:text-gray-500"},popover:{mode:"hover",openDelay:0,ui:{width:"max-w-[16rem]"}}},r=e,{ui:o,attrs:s}=Ke("header.links",we(r,"ui"),n,we(r,"class"),!0);return(i,a)=>{var d;const l=bt,c=Nn,u=BC,f=GP;return(d=i.links)!=null&&d.length?(R(),se("ul",ue({key:0,class:E(o).wrapper},E(s)),[(R(!0),se(ke,null,yt(i.links,(p,h)=>{var g;return R(),se("li",{key:h,class:"relative"},[(g=p.children)!=null&&g.length?(R(),ae(f,Fo(ue({key:0},E(o).popover)),{default:le(({open:y})=>[Y(c,ue(E(Dr)(p,["label","icon","children"]),{class:E(o).base,"active-class":E(o).active,"inactive-class":E(o).inactive,onClick:p.click}),{default:le(()=>[Je(je(p.label)+" ",1),Y(l,{name:E(o).trailingIcon.name,class:G([E(o).trailingIcon.base,y?E(o).trailingIcon.active:E(o).trailingIcon.inactive])},null,8,["name","class"])]),_:2},1040,["class","active-class","inactive-class","onClick"])]),panel:le(({close:y})=>[Y(u,{links:p.children,onClick:y},null,8,["links","onClick"])]),_:2},1040)):(R(),ae(c,ue({key:1},E(Dr)(p,["label","icon"]),{class:E(o).base,"active-class":E(o).active,"inactive-class":E(o).inactive,onClick:p.click}),{default:le(()=>[Je(je(p.label)+" ",1),p.target==="_blank"?(R(),ae(l,{key:0,name:E(o).externalIcon.name,class:G(E(o).externalIcon.base)},null,8,["name","class"])):ge("",!0)]),_:2},1040,["class","active-class","inactive-class","onClick"]))])}),128))],16)):ge("",!0)}}}),XP=Wt(He.ui.strategy,He.ui.container,Yk),YP=ne({inheritAttrs:!1,props:{as:{type:String,default:"div"},class:{type:[String,Object,Array],default:void 0},ui:{type:Object,default:void 0}},setup(e){const{ui:t,attrs:n}=Ke("container",we(e,"ui"),XP),r=j(()=>Dn(ft(t.value.base,t.value.padding,t.value.constrained),e.class));return{ui:t,attrs:n,containerClass:r}}});function JP(e,t,n,r,o,s){return R(),ae(Ar(e.as),ue({class:e.containerClass},e.attrs),{default:le(()=>[ye(e.$slots,"default")]),_:3},16,["class"])}const sc=Mt(YP,[["render",JP]]),ZP=ne({inheritAttrs:!1,__name:"AsideLinks",props:{links:{},ui:{},class:{}},setup(e){const t=at(),n={wrapper:"space-y-3 mb-3 lg:mb-6 -mx-1 lg:mx-0",base:"flex items-center gap-1.5 lg:gap-2 group",active:"text-primary font-semibold",inactive:"text-gray-500 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-200 font-medium",icon:{wrapper:"rounded-md p-1 inline-flex ring-inset ring-1",base:"w-4 h-4 flex-shrink-0",active:"bg-primary ring-primary text-background",inactive:"bg-gray-100/50 dark:bg-gray-800/50 ring-gray-300 dark:ring-gray-700 group-hover:bg-primary group-hover:ring-primary group-hover:text-background"},externalIcon:{name:t.ui.icons.external,base:"w-3 h-3 absolute top-0.5 -right-3.5 text-gray-400 dark:text-gray-500"},label:"text-sm/6 relative"},r=e,{ui:o,attrs:s}=Ke("aside.links",we(r,"ui"),n,we(r,"class"),!0);return(i,a)=>{var u;const l=bt,c=Nn;return(u=i.links)!=null&&u.length?(R(),se("div",ue({key:0,class:E(o).wrapper},E(s)),[(R(!0),se(ke,null,yt(i.links,(f,d)=>(R(),ae(c,ue({key:d},E(Dr)(f,["label","icon","iconClass"]),{class:E(o).base,"active-class":E(o).active,"inactive-class":E(o).inactive,onClick:f.click}),{default:le(({isActive:p})=>[f.icon?(R(),se("div",{key:0,class:G([E(o).icon.wrapper,f.active||p?E(o).icon.active:E(o).icon.inactive])},[f.icon?(R(),ae(l,{key:0,name:f.icon,class:G([E(o).icon.base,f.iconClass])},null,8,["name","class"])):ge("",!0)],2)):ge("",!0),be("span",{class:G(E(o).label)},[Je(je(f.label)+" ",1),f.target==="_blank"?(R(),ae(l,{key:0,name:E(o).externalIcon.name,class:G(E(o).externalIcon.base)},null,8,["name","class"])):ge("",!0)],2)]),_:2},1040,["class","active-class","inactive-class","onClick"]))),128))],16)):ge("",!0)}}}),za=e=>e.map(t=>{if(!t.children||typeof t.children=="string")return t.children||"";if(Array.isArray(t.children))return za(t.children);if(t.children.default)return za(t.children.default())}).join(""),eS=ne({inheritAttrs:!1,__name:"Header",props:{to:{default:"/"},title:{default:void 0},links:{default:()=>[]},ui:{default:()=>({})},class:{default:void 0}},setup(e){const t={wrapper:"bg-background/75 backdrop-blur border-b border-gray-200 dark:border-gray-800 -mb-px sticky top-0 z-50",container:"flex items-center justify-between gap-3 h-[--header-height]",left:"lg:flex-1 flex items-center gap-1.5",center:"hidden lg:flex",right:"flex items-center justify-end lg:flex-1 gap-1.5",logo:"flex-shrink-0 font-bold text-xl text-gray-900 dark:text-white flex items-end gap-1.5",panel:{wrapper:"fixed inset-0 z-50 overflow-y-auto bg-background lg:hidden",header:"px-4 sm:px-6",body:"px-4 sm:px-6 pt-3 pb-6"},button:{base:"lg:hidden",icon:{open:"i-heroicons-bars-3",close:"i-heroicons-x-mark-20-solid"}}},n=e,r=jn(),o=km(),{isHeaderDialogOpen:s}=sh(),{ui:i,attrs:a}=Ke("header",we(n,"ui"),t,we(n,"class"),!0),l=j(()=>(n.title||o.title&&za(o.title())||"Logo").trim());return ze(()=>r.fullPath,()=>{s.value=!1}),(c,u)=>{const f=Fl,d=QP,p=qt,h=sc,g=ZP;return R(),se("header",ue({class:E(i).wrapper},E(a)),[ye(c.$slots,"top"),Y(h,{class:G(E(i).container)},{default:le(()=>[be("div",{class:G(E(i).left)},[ye(c.$slots,"left",{},()=>[Y(f,{to:c.to,"aria-label":E(l),class:G(E(i).logo)},{default:le(()=>[ye(c.$slots,"logo",{},()=>[Je(je(c.title||"Nuxt UI Pro"),1)])]),_:3},8,["to","aria-label","class"])])],2),ye(c.$slots,"center",{},()=>[Y(d,{links:c.links,class:G(E(i).center)},null,8,["links","class"])]),be("div",{class:G(E(i).right)},[ye(c.$slots,"right"),ye(c.$slots,"panel-button",{open:E(s)},()=>[c.links.length||c.$slots.panel?(R(),ae(p,ue({key:0,class:E(i).button.base},c.$ui.button.secondary,{"aria-label":`${E(s)?"Close":"Open"} Menu`,icon:E(s)?E(i).button.icon.close:E(i).button.icon.open,onClick:u[0]||(u[0]=y=>s.value=!E(s))}),null,16,["class","aria-label","icon"])):ge("",!0)])],2)]),_:3},8,["class"]),ye(c.$slots,"bottom"),Y(E(Rh),{show:E(s),as:"template"},{default:le(()=>[Y(E(hC),{as:"div",onClose:u[2]||(u[2]=y=>s.value=!1)},{default:le(()=>[Y(E(gC),{class:G(E(i).panel.wrapper)},{default:le(()=>[be("div",{class:G([E(i).panel.header,E(i).wrapper])},[be("div",{class:G(E(i).container)},[be("div",{class:G(E(i).left)},[ye(c.$slots,"left",{},()=>[Y(f,{to:c.to,"aria-label":E(l),class:G(E(i).logo)},{default:le(()=>[ye(c.$slots,"logo",{},()=>[Je(je(c.title||"Nuxt UI Pro"),1)])]),_:3},8,["to","aria-label","class"])])],2),ye(c.$slots,"center"),be("div",{class:G(E(i).right)},[ye(c.$slots,"right"),ye(c.$slots,"panel-button",{open:E(s)},()=>[Y(p,ue({class:E(i).button.base},c.$ui.button.secondary,{"aria-label":`${E(s)?"Close":"Open"} Menu`,icon:E(s)?E(i).button.icon.close:E(i).button.icon.open,onClick:u[1]||(u[1]=y=>s.value=!E(s))}),null,16,["class","aria-label","icon"])])],2)],2)],2),be("div",{class:G(E(i).panel.body)},[ye(c.$slots,"panel",{},()=>[Y(g,{links:c.links},null,8,["links"])])],2)]),_:3},8,["class"])]),_:3})]),_:3},8,["show"])],16)}}}),tS=/\d/,nS=["-","_","/","."];function rS(e=""){if(!tS.test(e))return e.toUpperCase()===e}function ic(e,t){const n=t??nS,r=[];if(!e||typeof e!="string")return r;let o="",s,i;for(const a of e){const l=n.includes(a);if(l===!0){r.push(o),o="",s=void 0;continue}const c=rS(a);if(i===!1){if(s===!1&&c===!0){r.push(o),o=a,s=c;continue}if(s===!0&&c===!1&&o.length>1){const u=o.at(-1);r.push(o.slice(0,Math.max(0,o.length-1))),o=u+a,s=c;continue}}o+=a,s=c,i=l}return r.push(o),r}function qh(e){return e?e[0].toUpperCase()+e.slice(1):""}function uT(e){return e?(Array.isArray(e)?e:ic(e)).map(t=>qh(t.toLowerCase())).join(""):""}function fT(e,t){return e?(Array.isArray(e)?e:ic(e)).map(n=>n.toLowerCase()).join(t??"-"):""}const oS={title:"label",_path:"to"};function Kh(e,t){return e.map(n=>{var o;const r={};for(const s in n){if(s==="children"){r.children=(o=n.children)!=null&&o.length?Kh(n.children):void 0;continue}n[s]&&(r[oS[s]||s]=n[s])}return r})}function dT(e){var t;return(t=e._dir)!=null&&t.title?e._dir.title:ic(e._dir).map(n=>qh(n)).join(" ")}function sS(e,t){return e.reduce((n,r)=>(t._path.startsWith(r._path)&&r.children&&(n.push(r),n.push(...sS(r.children,t))),n),[])}const iS=""+globalThis.__publicAssetsURL("favicon.ico"),aS={class:"hidden sm:block"},lS=be("img",{class:"block sm:hidden h-6 w-auto",src:iS,alt:"mobile favicon"},null,-1),Gh=ne({__name:"Header",setup(e){const t=Te("navigation",[]),{header:n}=at();return(r,o)=>{var d;const s=sE,i=th,a=$E,l=ih,c=qt,u=Lh,f=eS;return R(),ae(f,null,ei({logo:le(()=>{var p,h,g,y,x;return[(h=(p=E(n))==null?void 0:p.logo)!=null&&h.dark||(y=(g=E(n))==null?void 0:g.logo)!=null&&y.light?(R(),se(ke,{key:0},[be("div",aS,[Y(s,Fo(Uo({class:"h-6 w-auto",...(x=E(n))==null?void 0:x.logo})),null,16)]),lS],64)):(R(),se(ke,{key:1},[Je(" Nuxt UI Pro "),Y(i,{label:"Docs",variant:"subtle",class:"mb-0.5"})],64))]}),right:le(()=>{var p,h,g;return[(p=E(n))!=null&&p.search?(R(),ae(a,{key:0,label:null,class:"lg:hidden"})):ge("",!0),(h=E(n))!=null&&h.colorMode?(R(),ae(l,{key:1})):ge("",!0),(g=E(n))!=null&&g.links?(R(!0),se(ke,{key:2},yt(E(n).links,(y,x)=>(R(),ae(c,ue({key:x},{color:"gray",variant:"ghost",...y}),null,16))),128)):ge("",!0)]}),panel:le(()=>[Y(u,{links:("mapContentNavigation"in r?r.mapContentNavigation:E(Kh))(E(t))},null,8,["links"])]),_:2},[(d=E(n))!=null&&d.search?{name:"center",fn:le(()=>[Y(a,{class:"hidden lg:flex"})]),key:"0"}:void 0]),1024)}}}),cS=(e,t)=>t.path.replace(/(:\w+)\([^)]+\)/g,"$1").replace(/(:\w+)[?+*]/g,"$1").replace(/:\w+/g,n=>{var r;return((r=e.params[n.slice(1)])==null?void 0:r.toString())||""}),Va=(e,t)=>{const n=e.route.matched.find(o=>{var s;return((s=o.components)==null?void 0:s.default)===e.Component.type}),r=t??(n==null?void 0:n.meta.key)??(n&&cS(e.route,n));return typeof r=="function"?r(e.route):r},uS=(e,t)=>({default:()=>e?me(mm,e===!0?{}:e,t):t}),fS=ne({name:"RouteProvider",props:{vnode:{type:Object,required:!0},route:{type:Object,required:!0},vnodeRef:Object,renderKey:String,trackRootNodes:Boolean},setup(e){const t=e.renderKey,n=e.route,r={};for(const o in e.route)Object.defineProperty(r,o,{get:()=>t===e.renderKey?e.route[o]:n[o]});return Ve(vr,No(r)),()=>me(e.vnode,{ref:e.vnodeRef})}}),dS=ne({name:"NuxtPage",inheritAttrs:!1,props:{name:{type:String},transition:{type:[Boolean,Object],default:void 0},keepalive:{type:[Boolean,Object],default:void 0},route:{type:Object},pageKey:{type:[Function,String],default:null}},setup(e,{attrs:t,expose:n}){const r=Ae(),o=B(),s=Te(vr,null);n({pageRef:o});const i=Te(ap,null);let a;const l=r.deferHydration();return()=>me(Ep,{name:e.name,route:e.route,...t},{default:c=>{const u=gS(s,c.route,c.Component),f=s&&s.matched.length===c.route.matched.length;if(!c.Component){if(a&&!f)return a;l();return}if(a&&i&&!i.isCurrent(c.route))return a;if(u&&s&&(!i||i!=null&&i.isCurrent(s)))return f?a:null;const d=Va(c,e.pageKey),p=!!(e.transition??c.route.meta.pageTransition??ma),h=p&&hS([e.transition,c.route.meta.pageTransition,ma,{onAfterLeave:()=>{r.callHook("page:transition:finish",c.Component)}}].filter(Boolean));return a=Cp(hr,p&&h,uS(e.keepalive??c.route.meta.keepalive??J0,me(cl,{suspensible:!0,onPending:()=>r.callHook("page:start",c.Component),onResolve:()=>{hn(()=>r.callHook("page:finish",c.Component).finally(l))}},{default:()=>me(fS,{key:d||void 0,vnode:c.Component,route:c.route,renderKey:d||void 0,trackRootNodes:p,vnodeRef:o})}))).default(),a}})}});function pS(e){return Array.isArray(e)?e:e?[e]:[]}function hS(e){const t=e.map(n=>({...n,onAfterLeave:pS(n.onAfterLeave)}));return oi(...t)}function gS(e,t,n){if(!e)return!1;const r=t.matched.findIndex(o=>{var s;return((s=o.components)==null?void 0:s.default)===(n==null?void 0:n.type)});return!r||r===-1?!1:t.matched.slice(0,r).some((o,s)=>{var i,a,l;return((i=o.components)==null?void 0:i.default)!==((l=(a=e.matched[s])==null?void 0:a.components)==null?void 0:l.default)})||n&&Va({route:t,Component:n})!==Va({route:e,Component:n})}const mS=ne({name:"LayoutLoader",inheritAttrs:!1,props:{name:String,layoutProps:Object},async setup(e,t){const n=await Jn[e.name]().then(r=>r.default||r);return()=>me(n,e.layoutProps,t.slots)}}),vS=ne({name:"NuxtLayout",inheritAttrs:!1,props:{name:{type:[String,Boolean,Object],default:null}},setup(e,t){const n=Ae(),r=Te(vr),o=r===jn()?pw():r,s=j(()=>E(e.name)??o.meta.layout??"default"),i=B();t.expose({layoutRef:i});const a=n.deferHydration();return()=>{const l=s.value&&s.value in Jn,c=o.meta.layoutTransition??Y0;return Cp(hr,l&&c,{default:()=>me(cl,{suspensible:!0,onResolve:()=>{hn(a)}},{default:()=>me(yS,{layoutProps:ue(t.attrs,{ref:i}),key:s.value||void 0,name:s.value,shouldProvide:!e.name,hasTransition:!!c},t.slots)})}).default()}}}),yS=ne({name:"NuxtLayoutProvider",inheritAttrs:!1,props:{name:{type:[String,Boolean]},layoutProps:{type:Object},hasTransition:{type:Boolean},shouldProvide:{type:Boolean}},setup(e,t){const n=e.name;return e.shouldProvide&&Ve(ap,{isCurrent:r=>n===(r.meta.layout??"default")}),()=>{var r,o;return!n||typeof n=="string"&&!(n in Jn)?(o=(r=t.slots).default)==null?void 0:o.call(r):me(mS,{key:n,layoutProps:e.layoutProps,name:n},t.slots)}}}),Qh=ne({inheritAttrs:!1,__name:"Main",props:{ui:{},class:{}},setup(e){const t={wrapper:"min-h-[calc(100vh-var(--header-height))]"},n=e,{ui:r,attrs:o}=Ke("main",we(n,"ui"),t,we(n,"class"),!0);return(s,i)=>(R(),se("main",ue({class:E(r).wrapper},E(o)),[ye(s.$slots,"default")],16))}}),bS=ne({inheritAttrs:!1,__name:"FooterLinks",props:{links:{default:()=>[]},ui:{default:()=>({})},class:{default:void 0}},setup(e){const n={wrapper:"flex flex-col md:flex-row items-center justify-center gap-4 lg:gap-6",base:"text-sm",active:"text-gray-900 dark:text-white font-medium",inactive:"text-gray-500 dark:text-gray-400 hover:text-gray-600 dark:hover:text-gray-300",externalIcon:{name:at().ui.icons.external,base:"w-3 h-3 absolute top-0.5 -right-3.5 text-gray-400 dark:text-gray-500"}},r=e,{ui:o,attrs:s}=Ke("footer.links",we(r,"ui"),n,we(r,"class"),!0);return(i,a)=>{var u;const l=bt,c=Nn;return(u=i.links)!=null&&u.length?(R(),se("ul",ue({key:0,class:E(o).wrapper},E(s)),[(R(!0),se(ke,null,yt(i.links,(f,d)=>(R(),se("li",{key:d,class:"relative"},[Y(c,ue(E(Dr)(f,["label","icon"]),{class:E(o).base,"active-class":E(o).active,"inactive-class":E(o).inactive,onClick:f.click}),{default:le(()=>[Je(je(f.label)+" ",1),f.target==="_blank"?(R(),ae(l,{key:0,name:E(o).externalIcon.name,class:G(E(o).externalIcon.base)},null,8,["name","class"])):ge("",!0)]),_:2},1040,["class","active-class","inactive-class","onClick"])]))),128))],16)):ge("",!0)}}}),wS=ne({inheritAttrs:!1,__name:"Footer",props:{links:{default:()=>[]},ui:{default:()=>({})},class:{default:void 0}},setup(e){const t={wrapper:"relative",top:{wrapper:"",container:"py-8 lg:py-12"},bottom:{wrapper:"",container:"py-8 lg:py-4 lg:flex lg:items-center lg:justify-between",left:"flex items-center justify-center lg:justify-start lg:flex-1 gap-x-1.5 mt-3 lg:mt-0 lg:order-1",center:"mt-3 lg:mt-0 lg:order-2 flex items-center justify-center",right:"lg:flex-1 flex items-center justify-center lg:justify-end gap-x-1.5 lg:order-3"}},n=e,{ui:r,attrs:o}=Ke("footer",we(n,"ui"),t,we(n,"class"),!0);return(s,i)=>{const a=sc,l=bS;return R(),se("footer",ue({class:E(r).wrapper},E(o)),[s.$slots.top?(R(),se("div",{key:0,class:G(E(r).top.wrapper)},[Y(a,{class:G(E(r).top.container)},{default:le(()=>[ye(s.$slots,"top")]),_:3},8,["class"])],2)):ge("",!0),be("div",{class:G(E(r).bottom.wrapper)},[Y(a,{class:G(E(r).bottom.container)},{default:le(()=>[be("div",{class:G(E(r).bottom.right)},[ye(s.$slots,"right")],2),be("div",{class:G(E(r).bottom.center)},[ye(s.$slots,"center",{},()=>[Y(l,{links:s.links},null,8,["links"])])],2),be("div",{class:G(E(r).bottom.left)},[ye(s.$slots,"left")],2)]),_:3},8,["class"])],2)],16)}}}),Xh=ne({__name:"Footer",setup(e){const{footer:t}=at();return(n,r)=>{const o=ih,s=qt,i=wS;return R(),ae(i,null,{left:le(()=>[Je(je(E(t).credits),1)]),right:le(()=>{var a,l,c;return[(a=E(t))!=null&&a.colorMode?(R(),ae(o,{key:0})):ge("",!0),(l=E(t))!=null&&l.links?(R(!0),se(ke,{key:1},yt((c=E(t))==null?void 0:c.links,(u,f)=>(R(),ae(s,ue({key:f},{color:"gray",variant:"ghost",...u}),null,16))),128)):ge("",!0)]}),_:1})}}}),qn=Wt(He.ui.strategy,He.ui.avatar,Kk),_S=ne({components:{UIcon:bt},inheritAttrs:!1,props:{src:{type:[String,Boolean],default:null},alt:{type:String,default:null},text:{type:String,default:null},icon:{type:String,default:()=>qn.default.icon},size:{type:String,default:()=>qn.default.size,validator(e){return Object.keys(qn.size).includes(e)}},chipColor:{type:String,default:()=>qn.default.chipColor,validator(e){return["gray",...He.ui.colors].includes(e)}},chipPosition:{type:String,default:()=>qn.default.chipPosition,validator(e){return Object.keys(qn.chip.position).includes(e)}},chipText:{type:[String,Number],default:null},imgClass:{type:String,default:""},class:{type:[String,Object,Array],default:void 0},ui:{type:Object,default:void 0}},setup(e){const{ui:t,attrs:n}=Ke("avatar",we(e,"ui"),qn),r=j(()=>typeof e.src=="boolean"?null:e.src),o=j(()=>(e.alt||"").split(" ").map(f=>f.charAt(0)).join("").substring(0,2)),s=j(()=>Dn(ft(t.value.wrapper,(c.value||!r.value)&&t.value.background,t.value.rounded,t.value.size[e.size]),e.class)),i=j(()=>Dn(ft(t.value.rounded,t.value.size[e.size]),e.imgClass)),a=j(()=>ft(t.value.icon.base,t.value.icon.size[e.size])),l=j(()=>ft(t.value.chip.base,t.value.chip.size[e.size],t.value.chip.position[e.chipPosition],t.value.chip.background.replaceAll("{color}",e.chipColor))),c=B(!1);ze(()=>e.src,()=>{c.value&&(c.value=!1)});function u(){c.value=!0}return{ui:t,attrs:n,wrapperClass:s,imgClass:i,iconClass:a,chipClass:l,url:r,placeholder:o,error:c,onError:u}}}),xS=["alt","src"];function kS(e,t,n,r,o,s){const i=bt;return R(),se("span",{class:G(e.wrapperClass)},[e.url&&!e.error?(R(),se("img",ue({key:0,class:e.imgClass,alt:e.alt,src:e.url},e.attrs,{onError:t[0]||(t[0]=(...a)=>e.onError&&e.onError(...a))}),null,16,xS)):e.text?(R(),se("span",{key:1,class:G(e.ui.text)},je(e.text),3)):e.icon?(R(),ae(i,{key:2,name:e.icon,class:G(e.iconClass)},null,8,["name","class"])):e.placeholder?(R(),se("span",{key:3,class:G(e.ui.placeholder)},je(e.placeholder),3)):ge("",!0),e.chipColor?(R(),se("span",{key:4,class:G(e.chipClass)},je(e.chipText),3)):ge("",!0),ye(e.$slots,"default")],2)}const Yh=Mt(_S,[["render",kS]]);function ES(e,t,n){let r=null;const{pause:o,resume:s,timestamp:i}=PE({...n||{},controls:!0}),a=B(null),l=j(()=>a.value?t-(i.value-a.value):0);function c(...g){r=setTimeout(()=>{r=null,a.value=null,e(...g)},l.value)}function u(){r&&(clearTimeout(r),r=null)}function f(){a.value=Date.now(),c()}function d(){u(),o()}function p(){u(),o()}function h(){c(),s(),a.value=(a.value||0)+(Date.now()-i.value)}return f(),{start:f,stop:d,pause:p,resume:h,remaining:l}}const ms=Wt(He.ui.strategy,He.ui.notification,Zk),CS=ne({components:{UIcon:bt,UAvatar:Yh,UButton:qt},inheritAttrs:!1,props:{id:{type:[String,Number],required:!0},title:{type:String,required:!0},description:{type:String,default:null},icon:{type:String,default:()=>ms.default.icon},avatar:{type:Object,default:null},closeButton:{type:Object,default:()=>ms.default.closeButton},timeout:{type:Number,default:5e3},actions:{type:Array,default:()=>[]},callback:{type:Function,default:null},color:{type:String,default:()=>ms.default.color,validator(e){return["gray",...He.ui.colors].includes(e)}},class:{type:[String,Object,Array],default:void 0},ui:{type:Object,default:void 0}},emits:["close"],setup(e,{emit:t}){const{ui:n,attrs:r}=Ke("notification",we(e,"ui"),ms);let o=null;const s=B(e.timeout),i=j(()=>Dn(ft(n.value.wrapper,n.value.background,n.value.rounded,n.value.shadow),e.class)),a=j(()=>{var h;return ft(n.value.progress.base,(h=n.value.progress.background)==null?void 0:h.replaceAll("{color}",e.color))}),l=j(()=>({width:`${s.value/e.timeout*100||0}%`})),c=j(()=>{var h;return ft(n.value.icon.base,(h=n.value.icon.color)==null?void 0:h.replaceAll("{color}",e.color))});function u(){o&&o.pause()}function f(){o&&o.resume()}function d(){o&&o.stop(),e.callback&&e.callback(),t("close")}function p(h){o&&o.stop(),h.click&&h.click(),t("close")}return Le(()=>{e.timeout&&(o=ES(()=>{d()},e.timeout),Ye(()=>{s.value=o.remaining.value}))}),et(()=>{o&&o.stop()}),{ui:n,attrs:r,wrapperClass:i,progressClass:a,progressStyle:l,iconClass:c,onMouseover:u,onMouseleave:f,onClose:d,onAction:p}}}),PS={class:"w-0 flex-1"},SS={key:1,class:"mt-3 flex items-center gap-2"},TS={class:"flex-shrink-0 flex items-center gap-3"},AS={key:0,class:"flex items-center gap-2"};function OS(e,t,n,r,o,s){const i=bt,a=Yh,l=qt;return R(),ae(hr,ue({appear:""},e.ui.transition),{default:le(()=>[be("div",ue({class:e.wrapperClass,role:"status"},e.attrs,{onMouseover:t[0]||(t[0]=(...c)=>e.onMouseover&&e.onMouseover(...c)),onMouseleave:t[1]||(t[1]=(...c)=>e.onMouseleave&&e.onMouseleave(...c))}),[be("div",{class:G([e.ui.container,e.ui.rounded,e.ui.ring])},[be("div",{class:G(e.ui.padding)},[be("div",{class:G(["flex gap-3",{"items-start":e.description||e.$slots.description,"items-center":!e.description&&!e.$slots.description}])},[e.icon?(R(),ae(i,{key:0,name:e.icon,class:G(e.iconClass)},null,8,["name","class"])):ge("",!0),e.avatar?(R(),ae(a,ue({key:1},{size:e.ui.avatar.size,...e.avatar},{class:e.ui.avatar.base}),null,16,["class"])):ge("",!0),be("div",PS,[be("p",{class:G(e.ui.title)},[ye(e.$slots,"title",{title:e.title},()=>[Je(je(e.title),1)])],2),e.description||e.$slots.description?(R(),se("p",{key:0,class:G(e.ui.description)},[ye(e.$slots,"description",{description:e.description},()=>[Je(je(e.description),1)])],2)):ge("",!0),(e.description||e.$slots.description)&&e.actions.length?(R(),se("div",SS,[(R(!0),se(ke,null,yt(e.actions,(c,u)=>(R(),ae(l,ue({key:u},{...e.ui.default.actionButton,...c},{onClick:Ci(f=>e.onAction(c),["stop"])}),null,16,["onClick"]))),128))])):ge("",!0)]),be("div",TS,[!e.description&&!e.$slots.description&&e.actions.length?(R(),se("div",AS,[(R(!0),se(ke,null,yt(e.actions,(c,u)=>(R(),ae(l,ue({key:u},{...e.ui.default.actionButton,...c},{onClick:Ci(f=>e.onAction(c),["stop"])}),null,16,["onClick"]))),128))])):ge("",!0),e.closeButton?(R(),ae(l,ue({key:1,"aria-label":"Close"},{...e.ui.default.closeButton,...e.closeButton},{onClick:Ci(e.onClose,["stop"])}),null,16,["onClick"])):ge("",!0)])],2)],2),e.timeout?(R(),se("div",{key:0,class:G(e.progressClass),style:fn(e.progressStyle)},null,6)):ge("",!0)],2)],16)]),_:3},16)}const Jh=Mt(CS,[["render",OS]]);function $S(){const e=yr("notifications",()=>[]);function t(r){const o={id:new Date().getTime().toString(),...r};return e.value.findIndex(i=>i.id===o.id)===-1&&e.value.push(o),o}function n(r){e.value=e.value.filter(o=>o.id!==r)}return{add:t,remove:n}}const IS=Wt(He.ui.strategy,He.ui.notifications,eE),RS=ne({components:{UNotification:Jh},inheritAttrs:!1,props:{class:{type:[String,Object,Array],default:void 0},ui:{type:Object,default:void 0}},setup(e){const{ui:t,attrs:n}=Ke("notifications",we(e,"ui"),IS),r=$S(),o=yr("notifications",()=>[]),s=j(()=>Dn(ft(t.value.wrapper,t.value.position,t.value.width),e.class));return{ui:t,attrs:n,toast:r,notifications:o,wrapperClass:s}}});function LS(e,t,n,r,o,s){const i=Jh;return R(),ae(xd,{to:"body"},[be("div",ue({class:e.wrapperClass,role:"region"},e.attrs),[e.notifications.length?(R(),se("div",{key:0,class:G(e.ui.container)},[(R(!0),se(ke,null,yt(e.notifications,a=>(R(),se("div",{key:a.id},[Y(i,ue(a,{class:a.click&&"cursor-pointer",onClick:l=>a.click&&a.click(a),onClose:l=>e.toast.remove(a.id)}),ei({_:2},[yt(e.$slots,(l,c)=>({name:c,fn:le(u=>[ye(e.$slots,c,Fo(Uo(u)))])}))]),1040,["class","onClick","onClose"])]))),128))],2)):ge("",!0)],16)])}const Zh=Mt(RS,[["render",LS]]);function ac(...e){var p;const t=typeof e[e.length-1]=="string"?e.pop():void 0;typeof e[0]!="string"&&e.unshift(t);let[n,r,o={}]=e;if(typeof n!="string")throw new TypeError("[nuxt] [asyncData] key must be a string.");if(typeof r!="function")throw new TypeError("[nuxt] [asyncData] handler must be a function.");const s=Ae(),i=()=>null,a=()=>s.isHydrating?s.payload.data[n]:s.static.data[n];o.server=o.server??!0,o.default=o.default??i,o.getCachedData=o.getCachedData??a,o.lazy=o.lazy??!1,o.immediate=o.immediate??!0,o.deep=o.deep??eb.deep;const l=()=>![null,void 0].includes(o.getCachedData(n));if(!s._asyncData[n]||!o.immediate){(p=s.payload._errors)[n]??(p[n]=null);const h=o.deep?B:lr;s._asyncData[n]={data:h(o.getCachedData(n)??o.default()),pending:B(!l()),error:we(s.payload._errors,n),status:B("idle")}}const c={...s._asyncData[n]};c.refresh=c.execute=(h={})=>{if(s._asyncDataPromises[n]){if(h.dedupe===!1)return s._asyncDataPromises[n];s._asyncDataPromises[n].cancelled=!0}if((h._initial||s.isHydrating&&h._initial!==!1)&&l())return Promise.resolve(o.getCachedData(n));c.pending.value=!0,c.status.value="pending";const g=new Promise((y,x)=>{try{y(r(s))}catch(b){x(b)}}).then(y=>{if(g.cancelled)return s._asyncDataPromises[n];let x=y;o.transform&&(x=o.transform(y)),o.pick&&(x=MS(x,o.pick)),c.data.value=x,c.error.value=null,c.status.value="success"}).catch(y=>{if(g.cancelled)return s._asyncDataPromises[n];c.error.value=y,c.data.value=E(o.default()),c.status.value="error"}).finally(()=>{g.cancelled||(c.pending.value=!1,s.payload.data[n]=c.data.value,c.error.value&&(s.payload._errors[n]=ii(c.error.value)),delete s._asyncDataPromises[n])});return s._asyncDataPromises[n]=g,s._asyncDataPromises[n]};const u=()=>c.refresh({_initial:!0}),f=o.server!==!1&&s.payload.serverRendered;{const h=mn();if(h&&!h._nuxtOnBeforeMountCbs){h._nuxtOnBeforeMountCbs=[];const y=h._nuxtOnBeforeMountCbs;h&&(ad(()=>{y.forEach(x=>{x()}),y.splice(0,y.length)}),et(()=>y.splice(0,y.length)))}f&&s.isHydrating&&(c.error.value||l())?(c.pending.value=!1,c.status.value=c.error.value?"error":"success"):h&&(s.payload.serverRendered&&s.isHydrating||o.lazy)&&o.immediate?h._nuxtOnBeforeMountCbs.push(u):o.immediate&&u(),o.watch&&ze(o.watch,()=>c.refresh());const g=s.hook("app:data:refresh",async y=>{(!y||y.includes(n))&&await c.refresh()});h&&et(g)}const d=Promise.resolve(s._asyncDataPromises[n]).then(()=>c);return Object.assign(d,c),d}function MS(e,t){const n={};for(const r of t)n[r]=e[r];return n}function jS(e,t,n){var C;const[r={},o]=typeof t=="string"?[{},t]:[t,n],s=j(()=>{let S=e;return typeof S=="function"&&(S=S()),E(S)}),i=r.key||Ao([o,((C=E(r.method))==null?void 0:C.toUpperCase())||"GET",E(r.baseURL),typeof s.value=="string"?s.value:"",E(r.params||r.query),E(r.headers)]);if(!i||typeof i!="string")throw new TypeError("[nuxt] [useFetch] key must be a string: "+i);if(!e)throw new Error("[nuxt] [useFetch] request is missing.");const a=i===o?"$f"+i:i;if(!r.baseURL&&typeof s.value=="string"&&s.value.startsWith("//"))throw new Error('[nuxt] [useFetch] the request URL must not start with "//".');const{server:l,lazy:c,default:u,transform:f,pick:d,watch:p,immediate:h,getCachedData:g,deep:y,...x}=r,b=Rt({...tb,...x,cache:typeof r.cache=="boolean"?void 0:r.cache}),v={server:l,lazy:c,default:u,transform:f,pick:d,immediate:h,getCachedData:g,deep:y,watch:p===!1?[]:[b,s,...p||[]]};let m;return ac(a,()=>{var T;return(T=m==null?void 0:m.abort)==null||T.call(m),m=typeof AbortController<"u"?new AbortController:{},(r.$fetch||globalThis.$fetch)(s.value,{signal:m.signal,...b})},v)}function eg(e,t,n){const[r,o]=typeof t=="string"?[{},t]:[t,n];return jS(e,{...r,lazy:!0},o)}function lc(e){return JSON.stringify(e,DS)}function DS(e,t){return t instanceof RegExp?`--REGEX ${t.toString()}`:t}const tg=e=>{let t=lc(e);return t=typeof Buffer<"u"?Buffer.from(t).toString("base64"):btoa(t),t=t.replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,""),(t.match(/.{1,100}/g)||[]).join("/")},cc=()=>({isEnabled:()=>{const r=jn().query;return Object.prototype.hasOwnProperty.call(r,"preview")&&!r.preview?!1:!!(r.preview||_s("previewToken").value||sessionStorage.getItem("previewToken"))},getPreviewToken:()=>_s("previewToken").value||sessionStorage.getItem("previewToken")||void 0,setPreviewToken:r=>{_s("previewToken").value=r,jn().query.preview=r||"",r?sessionStorage.setItem("previewToken",r):sessionStorage.removeItem("previewToken"),window.location.reload()}}),zs=e=>jd(e,Lt().public.content.api.baseURL),pT=()=>{throw console.warn("useContent is only accessible when you are using `documentDriven` mode."),console.warn("Learn more by visiting: https://content.nuxt.com/document-driven"),new Error("useContent is only accessible when you are using `documentDriven` mode.")},ng=()=>{const{experimental:e}=Lt().public.content;return e.clientDB?!0:cc().isEnabled()},bf=(e,t)=>t.split(".").reduce((n,r)=>n&&n[r],e),uc=(e,t)=>Object.keys(e).filter(t).reduce((n,r)=>Object.assign(n,{[r]:e[r]}),{}),hT=e=>t=>e&&e.length?uc(t,n=>!e.includes(n)):t,gT=e=>t=>Array.isArray(t)?t.map(n=>e(n)):e(t),rg=e=>{const t=[],n=[];for(const r of e)["$","_"].includes(r)?t.push(r):n.push(r);return{prefixes:t,properties:n}},mT=(e=[])=>t=>{if(e.length===0||!t)return t;const{prefixes:n,properties:r}=rg(e);return uc(t,o=>!r.includes(o)&&!n.includes(o[0]))},vT=(e=[])=>t=>{if(e.length===0||!t)return t;const{prefixes:n,properties:r}=rg(e);return uc(t,o=>r.includes(o)||n.includes(o[0]))},yT=(e,t)=>{const n=new Intl.Collator(t.$locale,{numeric:t.$numeric,caseFirst:t.$caseFirst,sensitivity:t.$sensitivity}),r=Object.keys(t).filter(o=>!o.startsWith("$"));for(const o of r)e=e.sort((s,i)=>{const a=[bf(s,o),bf(i,o)].map(l=>{if(l!==null)return l instanceof Date?l.toISOString():l});return t[o]===-1&&a.reverse(),n.compare(a[0],a[1])});return e},bT=(e,t="Expected an array")=>{if(!Array.isArray(e))throw new TypeError(t)},an=e=>Array.isArray(e)?e:[void 0,null].includes(e)?[]:[e],FS=["sort","where","only","without"];function NS(e,t={}){const n={};for(const i of Object.keys(t.initialParams||{}))n[i]=FS.includes(i)?an(t.initialParams[i]):t.initialParams[i];const r=(i,a=l=>l)=>(...l)=>(n[i]=a(...l),s),o=i=>{var a;return t.legacy?i!=null&&i.surround?i.surround:i&&(i!=null&&i.dirConfig&&(i.result={_path:(a=i.dirConfig)==null?void 0:a._path,...i.result,_dir:i.dirConfig}),i!=null&&i._path||Array.isArray(i)||!Object.prototype.hasOwnProperty.call(i,"result")?i:i==null?void 0:i.result):i},s={params:()=>({...n,...n.where?{where:[...an(n.where)]}:{},...n.sort?{sort:[...an(n.sort)]}:{}}),only:r("only",an),without:r("without",an),where:r("where",i=>[...an(n.where),...an(i)]),sort:r("sort",i=>[...an(n.sort),...an(i)]),limit:r("limit",i=>parseInt(String(i),10)),skip:r("skip",i=>parseInt(String(i),10)),find:()=>e(s).then(o),findOne:()=>e(r("first")(!0)).then(o),count:()=>e(r("count")(!0)).then(o),locale:i=>s.where({_locale:i}),withSurround:r("surround",(i,a)=>({query:i,...a})),withDirConfig:()=>r("dirConfig")(!0)};return t.legacy&&(s.findSurround=(i,a)=>s.withSurround(i,a).find().then(o)),s}const BS=()=>async e=>{const{content:t}=Lt().public,n=e.params(),r=t.experimental.stripQueryParameters?zs(`/query/${`${Ao(n)}.${t.integrity}`}/${tg(n)}.json`):zs(`/query/${Ao(n)}.${t.integrity}.json`);if(ng())return(await Q(()=>import("./client-db.a6713f3f.js"),["./client-db.a6713f3f.js","./_commonjsHelpers.725317a4.js"],import.meta.url).then(i=>i.useContentDatabase())).fetch(e);const o=await $fetch(r,{method:"GET",responseType:"json",params:t.experimental.stripQueryParameters?void 0:{_params:lc(n),previewToken:cc().getPreviewToken()}});if(typeof o=="string"&&o.startsWith(""))throw new Error("Not found");return o};function HS(e,...t){const{content:n}=Lt().public,r=NS(BS(),{initialParams:typeof e!="string"?e:{},legacy:!0});let o;typeof e=="string"&&(o=ia(mr(e,...t)));const s=r.params;return r.params=()=>{var a,l,c;const i=s();return o&&(i.where=i.where||[],i.first&&(i.where||[]).length===0?i.where.push({_path:ri(o)}):i.where.push({_path:new RegExp(`^${o.replace(/[-[\]{}()*+.,^$\s/]/g,"\\$&")}`)})),(a=i.sort)!=null&&a.length||(i.sort=[{_file:1,$numeric:!0}]),n.locales.length&&((c=(l=i.where)==null?void 0:l.find(f=>f._locale))!=null&&c._locale||(i.where=i.where||[],i.where.push({_locale:n.defaultLocale}))),i},r}const og=async e=>{const{content:t}=Lt().public;typeof(e==null?void 0:e.params)!="function"&&(e=HS(e));const n=e.params(),r=t.experimental.stripQueryParameters?zs(`/navigation/${`${Ao(n)}.${t.integrity}`}/${tg(n)}.json`):zs(`/navigation/${Ao(n)}.${t.integrity}.json`);if(ng())return(await Q(()=>import("./client-db.a6713f3f.js"),["./client-db.a6713f3f.js","./_commonjsHelpers.725317a4.js"],import.meta.url).then(i=>i.generateNavigation))(n);const o=await $fetch(r,{method:"GET",responseType:"json",params:t.experimental.stripQueryParameters?void 0:{_params:lc(n),previewToken:cc().getPreviewToken()}});if(typeof o=="string"&&o.startsWith(""))throw new Error("Not found");return o},US=Z(()=>Q(()=>import("./DocsSearch.d2ddbeb8.js"),["./DocsSearch.d2ddbeb8.js","./DocsSearch.9e8db163.css"],import.meta.url).then(e=>e.default||e)),zS=ne({__name:"app",async setup(e){let t,n;const{data:r}=([t,n]=fl(()=>ac("navigation",()=>og())),t=await t,n(),t),{data:o}=eg("/api/search.json",{default:()=>[],server:!1},"$siNM9WAguS");return Vo({meta:[{name:"viewport",content:"width=device-width, initial-scale=1"}],link:[{rel:"icon",href:"/favicon.ico"}],htmlAttrs:{lang:"en"}}),rp({ogSiteName:"Nuxt x Supabase - Docs",twitterCard:"summary_large_image"}),Ve("navigation",r),(s,i)=>{const a=Gh,l=dS,c=vS,u=Qh,f=Xh,d=US,p=Hl,h=Zh;return R(),se("div",null,[Y(a),Y(u,null,{default:le(()=>[Y(c,null,{default:le(()=>[Y(l)]),_:1})]),_:1}),Y(f),Y(p,null,{default:le(()=>[Y(d,{files:E(o),navigation:E(r)},null,8,["files","navigation"])]),_:1}),Y(h)])}}}),VS=ne({inheritAttrs:!1,__name:"PageError",props:{error:{default:void 0},status:{default:404},name:{default:"An error occurred"},message:{default:"This is not the page you're looking for."},clearButton:{default:()=>({})},ui:{default:()=>({})},class:{default:void 0}},setup(e){const t={wrapper:"min-h-[calc(100vh-var(--header-height))] flex flex-col items-center justify-center",status:"text-base font-semibold text-primary",name:"text-3xl font-bold tracking-tight text-gray-900 dark:text-white sm:text-5xl",message:"mt-6 text-base/7 text-gray-500 dark:text-gray-400 text-center",links:"mt-10 flex items-center justify-center gap-x-6",default:{clearButton:{label:"Go back home",color:"primary",size:"lg"}}},n=e,{ui:r,attrs:o}=Ke("page.error",we(n,"ui"),t,we(n,"class"),!0),s=()=>lp({redirect:"/"});return(i,a)=>{var c,u,f,d;const l=qt;return R(),se("div",ue({class:E(r).wrapper},E(o)),[be("p",{class:G(E(r).status)},je(((c=i.error)==null?void 0:c.statusCode)||i.status),3),be("h1",{class:G(E(r).name)},je(((u=i.error)==null?void 0:u.name)||((f=i.error)==null?void 0:f.statusMessage)||i.name),3),be("p",{class:G(E(r).message)},je((d=i.error)!=null&&d.message&&i.error.message!==(i.error.name||i.error.statusMessage||i.name)?i.error.message:i.message),3),be("div",{class:G(E(r).links)},[Y(l,ue({...E(r).default.clearButton,...i.clearButton},{onClick:s}),null,16)],2)],16)}}}),WS=ne({inheritAttrs:!1,__name:"Page",props:{ui:{},class:{}},setup(e){const t={wrapper:"flex flex-col lg:grid lg:grid-cols-10 lg:gap-8",left:"lg:col-span-2",center:{base:"lg:col-span-8",full:"lg:col-span-10"},right:"lg:col-span-2 order-first lg:order-last"},n=e,{ui:r,attrs:o}=Ke("page",we(n,"ui"),t,we(n,"class"),!0);return(s,i)=>(R(),se("div",ue({class:E(r).wrapper},E(o)),[s.$slots.left?(R(),se("div",{key:0,class:G(E(r).left)},[ye(s.$slots,"left")],2)):ge("",!0),be("div",{class:G([s.$slots.left||s.$slots.right?E(r).center.base:E(r).center.full])},[ye(s.$slots,"default")],2),s.$slots.right?(R(),se("div",{key:1,class:G(E(r).right)},[ye(s.$slots,"right")],2)):ge("",!0)],16))}}),qS=Z(()=>Q(()=>import("./DocsSearch.d2ddbeb8.js"),["./DocsSearch.d2ddbeb8.js","./DocsSearch.9e8db163.css"],import.meta.url).then(e=>e.default||e)),KS=ne({__name:"error",props:{error:{}},async setup(e){let t,n;rp({title:"Page not found",description:"We are sorry but this page could not be found."}),Vo({htmlAttrs:{lang:"en"}});const{data:r}=([t,n]=fl(()=>ac("navigation",()=>og())),t=await t,n(),t),{data:o}=eg("/api/search.json",{default:()=>[],server:!1},"$mar46U4SiV");return Ve("navigation",r),(s,i)=>{const a=Gh,l=VS,c=WS,u=sc,f=Qh,d=Xh,p=qS,h=Hl,g=Zh;return R(),se("div",null,[Y(a),Y(f,null,{default:le(()=>[Y(u,null,{default:le(()=>[Y(c,null,{default:le(()=>[Y(l,{error:s.error},null,8,["error"])]),_:1})]),_:1})]),_:1}),Y(d),Y(h,null,{default:le(()=>[Y(p,{files:E(o),navigation:E(r)},null,8,["files","navigation"])]),_:1}),Y(g)])}}}),GS={__name:"nuxt-root",setup(e){const t=()=>null,n=Ae(),r=n.deferHydration(),o=!1;Ve(vr,jn()),n.hooks.callHookWith(a=>a.map(l=>l()),"vue:setup");const s=si();cd((a,l,c)=>{if(n.hooks.callHook("vue:error",a,l,c).catch(u=>console.error("[nuxt] Error in `vue:error` hook",u)),W0(a)&&(a.fatal||a.unhandled))return n.runWithContext(()=>kr(a)),!1});const i=!1;return(a,l)=>(R(),ae(cl,{onResolve:E(r)},{default:le(()=>[E(s)?(R(),ae(E(KS),{key:0,error:E(s)},null,8,["error"])):E(i)?(R(),ae(E(t),{key:1,context:E(i)},null,8,["context"])):E(o)?(R(),ae(Ar(E(o)),{key:2})):(R(),ae(E(zS),{key:3}))]),_:1},8,["onResolve"]))}},wf=GS;let _f;{let e;_f=async function(){var s,i;if(e)return e;const r=!!((s=window.__NUXT__)!=null&&s.serverRendered||((i=document.getElementById("__NUXT_DATA__"))==null?void 0:i.dataset.ssr)==="true")?Av(wf):Tv(wf),o=Ry({vueApp:r});try{await My(o,oE)}catch(a){await o.callHook("app:error",a),o.payload.error=o.payload.error||a}try{await o.hooks.callHook("app:created",r),await o.hooks.callHook("app:beforeMount",r),r.mount(nb),await o.hooks.callHook("app:mounted",r),await hn()}catch(a){await o.callHook("app:error",a),o.payload.error=o.payload.error||a}return r},e=_f().catch(t=>{console.error("Error while mounting app:",t)})}export{mt as $,Se as A,El as B,Ye as C,vn as D,j as E,ke as F,nt as G,ee as H,hh as I,Ve as J,Ul as K,qe as L,ze as M,me as N,jr as O,lT as P,fr as Q,pt as R,ch as S,hr as T,Yt as U,Fn as V,Wo as W,Te as X,WE as Y,Ko as Z,Q as _,et as a,JS as a$,hn as a0,cT as a1,dn as a2,bt as a3,Yh as a4,uE as a5,nr as a6,yt as a7,ae as a8,ye as a9,IE as aA,sS as aB,E as aC,Xe as aD,Fl as aE,eT as aF,Dn as aG,Dr as aH,Nn as aI,ad as aJ,Ho as aK,Ci as aL,fl as aM,ii as aN,rp as aO,ac as aP,dT as aQ,WS as aR,ri as aS,fT as aT,Ao as aU,sc as aV,nh as aW,aT as aX,Wr as aY,oT as aZ,Ma as a_,ue as aa,fn as ab,Je as ac,Wt as ad,tT as ae,He as af,qt as ag,Ke as ah,we as ai,oi as aj,rT as ak,ft as al,fm as am,lv as an,ei as ao,Fo as ap,Uo as aq,nT as ar,hC as as,gC as at,Rh as au,IC as av,AE as aw,Tn as ax,sh as ay,sT as az,R as b,km as b0,us as b1,za as b2,ZS as b3,Ar as b4,bC as b5,wC as b6,yC as b7,Vo as b8,Ms as b9,QS as ba,og as bb,cc as bc,uT as bd,Or as be,Po as bf,mr as bg,iT as bh,$S as bi,mn as bj,ia as bk,Lk as bl,ZP as bm,Qh as bn,Kh as bo,Lh as bp,bf as bq,bT as br,an as bs,hT as bt,yT as bu,gT as bv,mT as bw,vT as bx,NS as by,jd as bz,se as c,ne as d,be as e,ge as f,Y as g,_s as h,YS as i,Ae as j,Mt as k,Lt as l,yr as m,G as n,Le as o,XS as p,HS as q,B as r,jn as s,je as t,nn as u,jy as v,le as w,at as x,Tv as y,pT as z}; diff --git a/_nuxt/highlighter.a520effb.js b/_nuxt/highlighter.21095fce.js similarity index 99% rename from _nuxt/highlighter.a520effb.js rename to _nuxt/highlighter.21095fce.js index 9f06bb66..d0423eaf 100644 --- a/_nuxt/highlighter.a520effb.js +++ b/_nuxt/highlighter.21095fce.js @@ -1,4 +1,4 @@ -import{_}from"./entry.8c781d5d.js";let Oe=null;async function It(){return Oe||(Oe=_(()=>import("./onig.0c57a370.js"),[],import.meta.url).then(n=>({data:n.default}))),Oe}async function Ot(n){let e,o,r;function p(b){o=b,n.HEAP8=new Int8Array(b),n.HEAP16=new Int16Array(b),n.HEAP32=new Int32Array(b),n.HEAPU8=r=new Uint8Array(b),n.HEAPU16=new Uint16Array(b),n.HEAPU32=new Uint32Array(b),n.HEAPF32=new Float32Array(b),n.HEAPF64=new Float64Array(b)}const i=()=>performance.now();function l(b,I,d){r.copyWithin(b,I,I+d)}function a(){return 2147483648}function m(b){try{return e.grow(b-o.byteLength+65535>>>16),p(e.buffer),1}catch{}}function u(b){const I=r.length;b=b>>>0;const d=a();if(b>d)return!1;const R=(T,k)=>T+(k-T%k)%k;for(let T=1;T<=4;T*=2){let k=I*(1+.2/T);k=Math.min(k,b+100663296);const v=Math.min(d,R(Math.max(b,k),65536));if(m(v))return!0}return!1}const P={emscripten_get_now:i,emscripten_memcpy_big:l,emscripten_resize_heap:u,fd_write:()=>0};async function c(){const b={env:P,wasi_snapshot_preview1:P};function I(R){const T=R.exports;n.asm=T,e=n.asm.memory,p(e.buffer)}const d=await n.instantiateWasm(b);return I(d),d}return await c(),n._omalloc=function(){return(n._omalloc=n.asm.omalloc).apply(null,arguments)},n._ofree=function(){return(n._ofree=n.asm.ofree).apply(null,arguments)},n._getLastOnigError=function(){return(n._getLastOnigError=n.asm.getLastOnigError).apply(null,arguments)},n._createOnigScanner=function(){return(n._createOnigScanner=n.asm.createOnigScanner).apply(null,arguments)},n._freeOnigScanner=function(){return(n._freeOnigScanner=n.asm.freeOnigScanner).apply(null,arguments)},n._findNextOnigScannerMatch=function(){return(n._findNextOnigScannerMatch=n.asm.findNextOnigScannerMatch).apply(null,arguments)},n._findNextOnigScannerMatchDbg=function(){return(n._findNextOnigScannerMatchDbg=n.asm.findNextOnigScannerMatchDbg).apply(null,arguments)},n}let Q=null,wt=!1;function Ct(n){throw new Error(n.UTF8ToString(n._getLastOnigError()))}class Se{static _utf8ByteLength(e){let o=0;for(let r=0,p=e.length;r=55296&&i<=56319&&r+1=56320&&m<=57343&&(l=(i-55296<<10)+65536|m-56320,a=!0)}l<=127?o+=1:l<=2047?o+=2:l<=65535?o+=3:o+=4,a&&r++}return o}constructor(e){const o=e.length,r=Se._utf8ByteLength(e),p=r!==o,i=p?new Uint32Array(o+1):null;p&&(i[o]=r);const l=p?new Uint32Array(r+1):null;p&&(l[r]=o);const a=new Uint8Array(r);let m=0;for(let u=0;u=55296&&P<=56319&&u+1=56320&&I<=57343&&(c=(P-55296<<10)+65536|I-56320,b=!0)}p&&(i[u]=m,b&&(i[u+1]=m),c<=127?l[m+0]=u:c<=2047?(l[m+0]=u,l[m+1]=u):c<=65535?(l[m+0]=u,l[m+1]=u,l[m+2]=u):(l[m+0]=u,l[m+1]=u,l[m+2]=u,l[m+3]=u)),c<=127?a[m++]=c:c<=2047?(a[m++]=192|(c&1984)>>>6,a[m++]=128|(c&63)>>>0):c<=65535?(a[m++]=224|(c&61440)>>>12,a[m++]=128|(c&4032)>>>6,a[m++]=128|(c&63)>>>0):(a[m++]=240|(c&1835008)>>>18,a[m++]=128|(c&258048)>>>12,a[m++]=128|(c&4032)>>>6,a[m++]=128|(c&63)>>>0),b&&u++}this.utf16Length=o,this.utf8Length=r,this.utf16Value=e,this.utf8Value=a,this.utf16OffsetToUtf8=i,this.utf8OffsetToUtf16=l}createString(e){const o=e._omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,o),o}}const Le=class ne{constructor(e){if(this.id=++ne.LAST_ID,!Q)throw new Error("Must invoke loadWasm first.");this._onigBinding=Q,this.content=e;const o=new Se(e);this.utf16Length=o.utf16Length,this.utf8Length=o.utf8Length,this.utf16OffsetToUtf8=o.utf16OffsetToUtf8,this.utf8OffsetToUtf16=o.utf8OffsetToUtf16,this.utf8Length<1e4&&!ne._sharedPtrInUse?(ne._sharedPtr||(ne._sharedPtr=Q._omalloc(1e4)),ne._sharedPtrInUse=!0,Q.HEAPU8.set(o.utf8Value,ne._sharedPtr),this.ptr=ne._sharedPtr):this.ptr=o.createString(Q)}convertUtf8OffsetToUtf16(e){return this.utf8OffsetToUtf16?e<0?0:e>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[e]:e}convertUtf16OffsetToUtf8(e){return this.utf16OffsetToUtf8?e<0?0:e>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[e]:e}dispose(){this.ptr===ne._sharedPtr?ne._sharedPtrInUse=!1:this._onigBinding._ofree(this.ptr)}};Le.LAST_ID=0;Le._sharedPtr=0;Le._sharedPtrInUse=!1;let ot=Le;class Dt{constructor(e){if(!Q)throw new Error("Must invoke loadWasm first.");const o=[],r=[];for(let a=0,m=e.length;a{if(typeof performance>"u"){const r=()=>Date.now();o.env.emscripten_get_now=r,o.wasi_snapshot_preview1.emscripten_get_now=r}return n(o).then(r=>r.instance||r)}})}function Nt(n){return typeof n.instantiator=="function"}function Vt(n){return typeof n.data<"u"}function Mt(n){return typeof Response<"u"&&n instanceof Response}let qe=!1,we=null;function He(n){if(qe)return we;qe=!0;let e,o;if(typeof n=="function")e=n;else if(Nt(n))e=n.instantiator,o=n.print;else{let r;Vt(n)?(r=n.data,o=n.print):r=n,Mt(r)?typeof WebAssembly.instantiateStreaming=="function"?e=jt(r):e=Gt(r):e=Bt(r)}return we=xt(e,o),we}function Bt(n){return e=>WebAssembly.instantiate(n,e)}function jt(n){return e=>WebAssembly.instantiateStreaming(n,e)}function Gt(n){return async e=>{const o=await n.arrayBuffer();return WebAssembly.instantiate(o,e)}}function $t(n){return new ot(n)}function Ft(n){return new Dt(n)}var Ut=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},it={exports:{}};(function(n,e){(function(o,r){n.exports=r()})(Ut,function(){return(()=>{var o={350:(p,i)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.UseOnigurumaFindOptions=i.DebugFlags=void 0,i.DebugFlags={InDebugMode:typeof process<"u"&&!!{}.VSCODE_TEXTMATE_DEBUG},i.UseOnigurumaFindOptions=!1},442:(p,i,l)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.applyStateStackDiff=i.diffStateStacksRefEq=void 0;const a=l(391);i.diffStateStacksRefEq=function(m,u){let P=0;const c=[];let b=m,I=u;for(;b!==I;)b&&(!I||b.depth>=I.depth)?(P++,b=b.parent):(c.push(I.toStateStackFrame()),I=I.parent);return{pops:P,newFrames:c.reverse()}},i.applyStateStackDiff=function(m,u){let P=m;for(let c=0;c{var l;Object.defineProperty(i,"__esModule",{value:!0}),i.toOptionalTokenType=i.EncodedTokenAttributes=void 0,(l=i.EncodedTokenAttributes||(i.EncodedTokenAttributes={})).toBinaryStr=function(a){let m=a.toString(2);for(;m.length<32;)m="0"+m;return m},l.print=function(a){const m=l.getLanguageId(a),u=l.getTokenType(a),P=l.getFontStyle(a),c=l.getForeground(a),b=l.getBackground(a);console.log({languageId:m,tokenType:u,fontStyle:P,foreground:c,background:b})},l.getLanguageId=function(a){return(255&a)>>>0},l.getTokenType=function(a){return(768&a)>>>8},l.containsBalancedBrackets=function(a){return(1024&a)!=0},l.getFontStyle=function(a){return(30720&a)>>>11},l.getForeground=function(a){return(16744448&a)>>>15},l.getBackground=function(a){return(4278190080&a)>>>24},l.set=function(a,m,u,P,c,b,I){let d=l.getLanguageId(a),R=l.getTokenType(a),T=l.containsBalancedBrackets(a)?1:0,k=l.getFontStyle(a),v=l.getForeground(a),A=l.getBackground(a);return m!==0&&(d=m),u!==8&&(R=u),P!==null&&(T=P?1:0),c!==-1&&(k=c),b!==0&&(v=b),I!==0&&(A=I),(d<<0|R<<8|T<<10|k<<11|v<<15|A<<24)>>>0},i.toOptionalTokenType=function(a){return a}},996:(p,i,l)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.BasicScopeAttributesProvider=i.BasicScopeAttributes=void 0;const a=l(878);class m{constructor(b,I){this.languageId=b,this.tokenType=I}}i.BasicScopeAttributes=m;class u{constructor(b,I){this._getBasicScopeAttributes=new a.CachedFn(d=>{const R=this._scopeToLanguage(d),T=this._toStandardTokenType(d);return new m(R,T)}),this._defaultAttributes=new m(b,8),this._embeddedLanguagesMatcher=new P(Object.entries(I||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(b){return b===null?u._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(b)}_scopeToLanguage(b){return this._embeddedLanguagesMatcher.match(b)||0}_toStandardTokenType(b){const I=b.match(u.STANDARD_TOKEN_TYPE_REGEXP);if(!I)return 8;switch(I[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}}i.BasicScopeAttributesProvider=u,u._NULL_SCOPE_METADATA=new m(0,0),u.STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/;class P{constructor(b){if(b.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(b);const I=b.map(([d,R])=>a.escapeRegExpCharacters(d));I.sort(),I.reverse(),this.scopesRegExp=new RegExp(`^((${I.join(")|(")}))($|\\.)`,"")}}match(b){if(!this.scopesRegExp)return;const I=b.match(this.scopesRegExp);return I?this.values.get(I[1]):void 0}}},947:(p,i,l)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.LineTokens=i.BalancedBracketSelectors=i.StateStackImpl=i.AttributedScopeStack=i.Grammar=i.createGrammar=void 0;const a=l(350),m=l(36),u=l(736),P=l(44),c=l(792),b=l(583),I=l(878),d=l(996),R=l(47);function T(g,s,f,E,L){const O=u.createMatchers(s,k),D=c.RuleFactory.getCompiledRuleId(f,E,L.repository);for(const x of O)g.push({debugSelector:s,matcher:x.matcher,ruleId:D,grammar:L,priority:x.priority})}function k(g,s){if(s.length{for(let L=f;Lf&&g.substr(0,f)===s&&g[f]==="."}i.createGrammar=function(g,s,f,E,L,O,D,x){return new A(g,s,f,E,L,O,D,x)};class A{constructor(s,f,E,L,O,D,x,N){if(this._rootScopeName=s,this.balancedBracketSelectors=D,this._onigLib=N,this._basicScopeAttributesProvider=new d.BasicScopeAttributesProvider(E,L),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=x,this._grammar=S(f,null),this._injections=null,this._tokenTypeMatchers=[],O)for(const q of Object.keys(O)){const $=u.createMatchers(q,k);for(const B of $)this._tokenTypeMatchers.push({matcher:B.matcher,type:O[q]})}}get themeProvider(){return this._grammarRepository}dispose(){for(const s of this._ruleId2desc)s&&s.dispose()}createOnigScanner(s){return this._onigLib.createOnigScanner(s)}createOnigString(s){return this._onigLib.createOnigString(s)}getMetadataForScope(s){return this._basicScopeAttributesProvider.getBasicScopeAttributes(s)}_collectInjections(){const s=[],f=this._rootScopeName,E=(L=>L===this._rootScopeName?this._grammar:this.getExternalGrammar(L))(f);if(E){const L=E.injections;if(L)for(let D in L)T(s,D,L[D],this,E);const O=this._grammarRepository.injections(f);O&&O.forEach(D=>{const x=this.getExternalGrammar(D);if(x){const N=x.injectionSelector;N&&T(s,N,x,this,x)}})}return s.sort((L,O)=>L.priority-O.priority),s}getInjections(){if(this._injections===null&&(this._injections=this._collectInjections(),a.DebugFlags.InDebugMode&&this._injections.length>0)){console.log(`Grammar ${this._rootScopeName} contains the following injections:`);for(const s of this._injections)console.log(` - ${s.debugSelector}`)}return this._injections}registerRule(s){const f=++this._lastRuleId,E=s(c.ruleIdFromNumber(f));return this._ruleId2desc[f]=E,E}getRule(s){return this._ruleId2desc[c.ruleIdToNumber(s)]}getExternalGrammar(s,f){if(this._includedGrammars[s])return this._includedGrammars[s];if(this._grammarRepository){const E=this._grammarRepository.lookup(s);if(E)return this._includedGrammars[s]=S(E,f&&f.$base),this._includedGrammars[s]}}tokenizeLine(s,f,E=0){const L=this._tokenize(s,f,!1,E);return{tokens:L.lineTokens.getResult(L.ruleStack,L.lineLength),ruleStack:L.ruleStack,stoppedEarly:L.stoppedEarly}}tokenizeLine2(s,f,E=0){const L=this._tokenize(s,f,!0,E);return{tokens:L.lineTokens.getBinaryResult(L.ruleStack,L.lineLength),ruleStack:L.ruleStack,stoppedEarly:L.stoppedEarly}}_tokenize(s,f,E,L){let O;if(this._rootId===-1&&(this._rootId=c.RuleFactory.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections()),f&&f!==t.NULL)O=!1,f.reset();else{O=!0;const $=this._basicScopeAttributesProvider.getDefaultAttributes(),B=this.themeProvider.getDefaults(),H=m.EncodedTokenAttributes.set(0,$.languageId,$.tokenType,null,B.fontStyle,B.foregroundId,B.backgroundId),J=this.getRule(this._rootId).getName(null,null);let z;z=J?y.createRootAndLookUpScopeName(J,H,this):y.createRoot("unknown",H),f=new t(null,this._rootId,-1,-1,!1,null,z,z)}s+=` +import{_}from"./entry.ae6f67a5.js";let Oe=null;async function It(){return Oe||(Oe=_(()=>import("./onig.0c57a370.js"),[],import.meta.url).then(n=>({data:n.default}))),Oe}async function Ot(n){let e,o,r;function p(b){o=b,n.HEAP8=new Int8Array(b),n.HEAP16=new Int16Array(b),n.HEAP32=new Int32Array(b),n.HEAPU8=r=new Uint8Array(b),n.HEAPU16=new Uint16Array(b),n.HEAPU32=new Uint32Array(b),n.HEAPF32=new Float32Array(b),n.HEAPF64=new Float64Array(b)}const i=()=>performance.now();function l(b,I,d){r.copyWithin(b,I,I+d)}function a(){return 2147483648}function m(b){try{return e.grow(b-o.byteLength+65535>>>16),p(e.buffer),1}catch{}}function u(b){const I=r.length;b=b>>>0;const d=a();if(b>d)return!1;const R=(T,k)=>T+(k-T%k)%k;for(let T=1;T<=4;T*=2){let k=I*(1+.2/T);k=Math.min(k,b+100663296);const v=Math.min(d,R(Math.max(b,k),65536));if(m(v))return!0}return!1}const P={emscripten_get_now:i,emscripten_memcpy_big:l,emscripten_resize_heap:u,fd_write:()=>0};async function c(){const b={env:P,wasi_snapshot_preview1:P};function I(R){const T=R.exports;n.asm=T,e=n.asm.memory,p(e.buffer)}const d=await n.instantiateWasm(b);return I(d),d}return await c(),n._omalloc=function(){return(n._omalloc=n.asm.omalloc).apply(null,arguments)},n._ofree=function(){return(n._ofree=n.asm.ofree).apply(null,arguments)},n._getLastOnigError=function(){return(n._getLastOnigError=n.asm.getLastOnigError).apply(null,arguments)},n._createOnigScanner=function(){return(n._createOnigScanner=n.asm.createOnigScanner).apply(null,arguments)},n._freeOnigScanner=function(){return(n._freeOnigScanner=n.asm.freeOnigScanner).apply(null,arguments)},n._findNextOnigScannerMatch=function(){return(n._findNextOnigScannerMatch=n.asm.findNextOnigScannerMatch).apply(null,arguments)},n._findNextOnigScannerMatchDbg=function(){return(n._findNextOnigScannerMatchDbg=n.asm.findNextOnigScannerMatchDbg).apply(null,arguments)},n}let Q=null,wt=!1;function Ct(n){throw new Error(n.UTF8ToString(n._getLastOnigError()))}class Se{static _utf8ByteLength(e){let o=0;for(let r=0,p=e.length;r=55296&&i<=56319&&r+1=56320&&m<=57343&&(l=(i-55296<<10)+65536|m-56320,a=!0)}l<=127?o+=1:l<=2047?o+=2:l<=65535?o+=3:o+=4,a&&r++}return o}constructor(e){const o=e.length,r=Se._utf8ByteLength(e),p=r!==o,i=p?new Uint32Array(o+1):null;p&&(i[o]=r);const l=p?new Uint32Array(r+1):null;p&&(l[r]=o);const a=new Uint8Array(r);let m=0;for(let u=0;u=55296&&P<=56319&&u+1=56320&&I<=57343&&(c=(P-55296<<10)+65536|I-56320,b=!0)}p&&(i[u]=m,b&&(i[u+1]=m),c<=127?l[m+0]=u:c<=2047?(l[m+0]=u,l[m+1]=u):c<=65535?(l[m+0]=u,l[m+1]=u,l[m+2]=u):(l[m+0]=u,l[m+1]=u,l[m+2]=u,l[m+3]=u)),c<=127?a[m++]=c:c<=2047?(a[m++]=192|(c&1984)>>>6,a[m++]=128|(c&63)>>>0):c<=65535?(a[m++]=224|(c&61440)>>>12,a[m++]=128|(c&4032)>>>6,a[m++]=128|(c&63)>>>0):(a[m++]=240|(c&1835008)>>>18,a[m++]=128|(c&258048)>>>12,a[m++]=128|(c&4032)>>>6,a[m++]=128|(c&63)>>>0),b&&u++}this.utf16Length=o,this.utf8Length=r,this.utf16Value=e,this.utf8Value=a,this.utf16OffsetToUtf8=i,this.utf8OffsetToUtf16=l}createString(e){const o=e._omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,o),o}}const Le=class ne{constructor(e){if(this.id=++ne.LAST_ID,!Q)throw new Error("Must invoke loadWasm first.");this._onigBinding=Q,this.content=e;const o=new Se(e);this.utf16Length=o.utf16Length,this.utf8Length=o.utf8Length,this.utf16OffsetToUtf8=o.utf16OffsetToUtf8,this.utf8OffsetToUtf16=o.utf8OffsetToUtf16,this.utf8Length<1e4&&!ne._sharedPtrInUse?(ne._sharedPtr||(ne._sharedPtr=Q._omalloc(1e4)),ne._sharedPtrInUse=!0,Q.HEAPU8.set(o.utf8Value,ne._sharedPtr),this.ptr=ne._sharedPtr):this.ptr=o.createString(Q)}convertUtf8OffsetToUtf16(e){return this.utf8OffsetToUtf16?e<0?0:e>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[e]:e}convertUtf16OffsetToUtf8(e){return this.utf16OffsetToUtf8?e<0?0:e>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[e]:e}dispose(){this.ptr===ne._sharedPtr?ne._sharedPtrInUse=!1:this._onigBinding._ofree(this.ptr)}};Le.LAST_ID=0;Le._sharedPtr=0;Le._sharedPtrInUse=!1;let ot=Le;class Dt{constructor(e){if(!Q)throw new Error("Must invoke loadWasm first.");const o=[],r=[];for(let a=0,m=e.length;a{if(typeof performance>"u"){const r=()=>Date.now();o.env.emscripten_get_now=r,o.wasi_snapshot_preview1.emscripten_get_now=r}return n(o).then(r=>r.instance||r)}})}function Nt(n){return typeof n.instantiator=="function"}function Vt(n){return typeof n.data<"u"}function Mt(n){return typeof Response<"u"&&n instanceof Response}let qe=!1,we=null;function He(n){if(qe)return we;qe=!0;let e,o;if(typeof n=="function")e=n;else if(Nt(n))e=n.instantiator,o=n.print;else{let r;Vt(n)?(r=n.data,o=n.print):r=n,Mt(r)?typeof WebAssembly.instantiateStreaming=="function"?e=jt(r):e=Gt(r):e=Bt(r)}return we=xt(e,o),we}function Bt(n){return e=>WebAssembly.instantiate(n,e)}function jt(n){return e=>WebAssembly.instantiateStreaming(n,e)}function Gt(n){return async e=>{const o=await n.arrayBuffer();return WebAssembly.instantiate(o,e)}}function $t(n){return new ot(n)}function Ft(n){return new Dt(n)}var Ut=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},it={exports:{}};(function(n,e){(function(o,r){n.exports=r()})(Ut,function(){return(()=>{var o={350:(p,i)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.UseOnigurumaFindOptions=i.DebugFlags=void 0,i.DebugFlags={InDebugMode:typeof process<"u"&&!!{}.VSCODE_TEXTMATE_DEBUG},i.UseOnigurumaFindOptions=!1},442:(p,i,l)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.applyStateStackDiff=i.diffStateStacksRefEq=void 0;const a=l(391);i.diffStateStacksRefEq=function(m,u){let P=0;const c=[];let b=m,I=u;for(;b!==I;)b&&(!I||b.depth>=I.depth)?(P++,b=b.parent):(c.push(I.toStateStackFrame()),I=I.parent);return{pops:P,newFrames:c.reverse()}},i.applyStateStackDiff=function(m,u){let P=m;for(let c=0;c{var l;Object.defineProperty(i,"__esModule",{value:!0}),i.toOptionalTokenType=i.EncodedTokenAttributes=void 0,(l=i.EncodedTokenAttributes||(i.EncodedTokenAttributes={})).toBinaryStr=function(a){let m=a.toString(2);for(;m.length<32;)m="0"+m;return m},l.print=function(a){const m=l.getLanguageId(a),u=l.getTokenType(a),P=l.getFontStyle(a),c=l.getForeground(a),b=l.getBackground(a);console.log({languageId:m,tokenType:u,fontStyle:P,foreground:c,background:b})},l.getLanguageId=function(a){return(255&a)>>>0},l.getTokenType=function(a){return(768&a)>>>8},l.containsBalancedBrackets=function(a){return(1024&a)!=0},l.getFontStyle=function(a){return(30720&a)>>>11},l.getForeground=function(a){return(16744448&a)>>>15},l.getBackground=function(a){return(4278190080&a)>>>24},l.set=function(a,m,u,P,c,b,I){let d=l.getLanguageId(a),R=l.getTokenType(a),T=l.containsBalancedBrackets(a)?1:0,k=l.getFontStyle(a),v=l.getForeground(a),A=l.getBackground(a);return m!==0&&(d=m),u!==8&&(R=u),P!==null&&(T=P?1:0),c!==-1&&(k=c),b!==0&&(v=b),I!==0&&(A=I),(d<<0|R<<8|T<<10|k<<11|v<<15|A<<24)>>>0},i.toOptionalTokenType=function(a){return a}},996:(p,i,l)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.BasicScopeAttributesProvider=i.BasicScopeAttributes=void 0;const a=l(878);class m{constructor(b,I){this.languageId=b,this.tokenType=I}}i.BasicScopeAttributes=m;class u{constructor(b,I){this._getBasicScopeAttributes=new a.CachedFn(d=>{const R=this._scopeToLanguage(d),T=this._toStandardTokenType(d);return new m(R,T)}),this._defaultAttributes=new m(b,8),this._embeddedLanguagesMatcher=new P(Object.entries(I||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(b){return b===null?u._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(b)}_scopeToLanguage(b){return this._embeddedLanguagesMatcher.match(b)||0}_toStandardTokenType(b){const I=b.match(u.STANDARD_TOKEN_TYPE_REGEXP);if(!I)return 8;switch(I[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}}i.BasicScopeAttributesProvider=u,u._NULL_SCOPE_METADATA=new m(0,0),u.STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/;class P{constructor(b){if(b.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(b);const I=b.map(([d,R])=>a.escapeRegExpCharacters(d));I.sort(),I.reverse(),this.scopesRegExp=new RegExp(`^((${I.join(")|(")}))($|\\.)`,"")}}match(b){if(!this.scopesRegExp)return;const I=b.match(this.scopesRegExp);return I?this.values.get(I[1]):void 0}}},947:(p,i,l)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.LineTokens=i.BalancedBracketSelectors=i.StateStackImpl=i.AttributedScopeStack=i.Grammar=i.createGrammar=void 0;const a=l(350),m=l(36),u=l(736),P=l(44),c=l(792),b=l(583),I=l(878),d=l(996),R=l(47);function T(g,s,f,E,L){const O=u.createMatchers(s,k),D=c.RuleFactory.getCompiledRuleId(f,E,L.repository);for(const x of O)g.push({debugSelector:s,matcher:x.matcher,ruleId:D,grammar:L,priority:x.priority})}function k(g,s){if(s.length{for(let L=f;Lf&&g.substr(0,f)===s&&g[f]==="."}i.createGrammar=function(g,s,f,E,L,O,D,x){return new A(g,s,f,E,L,O,D,x)};class A{constructor(s,f,E,L,O,D,x,N){if(this._rootScopeName=s,this.balancedBracketSelectors=D,this._onigLib=N,this._basicScopeAttributesProvider=new d.BasicScopeAttributesProvider(E,L),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=x,this._grammar=S(f,null),this._injections=null,this._tokenTypeMatchers=[],O)for(const q of Object.keys(O)){const $=u.createMatchers(q,k);for(const B of $)this._tokenTypeMatchers.push({matcher:B.matcher,type:O[q]})}}get themeProvider(){return this._grammarRepository}dispose(){for(const s of this._ruleId2desc)s&&s.dispose()}createOnigScanner(s){return this._onigLib.createOnigScanner(s)}createOnigString(s){return this._onigLib.createOnigString(s)}getMetadataForScope(s){return this._basicScopeAttributesProvider.getBasicScopeAttributes(s)}_collectInjections(){const s=[],f=this._rootScopeName,E=(L=>L===this._rootScopeName?this._grammar:this.getExternalGrammar(L))(f);if(E){const L=E.injections;if(L)for(let D in L)T(s,D,L[D],this,E);const O=this._grammarRepository.injections(f);O&&O.forEach(D=>{const x=this.getExternalGrammar(D);if(x){const N=x.injectionSelector;N&&T(s,N,x,this,x)}})}return s.sort((L,O)=>L.priority-O.priority),s}getInjections(){if(this._injections===null&&(this._injections=this._collectInjections(),a.DebugFlags.InDebugMode&&this._injections.length>0)){console.log(`Grammar ${this._rootScopeName} contains the following injections:`);for(const s of this._injections)console.log(` - ${s.debugSelector}`)}return this._injections}registerRule(s){const f=++this._lastRuleId,E=s(c.ruleIdFromNumber(f));return this._ruleId2desc[f]=E,E}getRule(s){return this._ruleId2desc[c.ruleIdToNumber(s)]}getExternalGrammar(s,f){if(this._includedGrammars[s])return this._includedGrammars[s];if(this._grammarRepository){const E=this._grammarRepository.lookup(s);if(E)return this._includedGrammars[s]=S(E,f&&f.$base),this._includedGrammars[s]}}tokenizeLine(s,f,E=0){const L=this._tokenize(s,f,!1,E);return{tokens:L.lineTokens.getResult(L.ruleStack,L.lineLength),ruleStack:L.ruleStack,stoppedEarly:L.stoppedEarly}}tokenizeLine2(s,f,E=0){const L=this._tokenize(s,f,!0,E);return{tokens:L.lineTokens.getBinaryResult(L.ruleStack,L.lineLength),ruleStack:L.ruleStack,stoppedEarly:L.stoppedEarly}}_tokenize(s,f,E,L){let O;if(this._rootId===-1&&(this._rootId=c.RuleFactory.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections()),f&&f!==t.NULL)O=!1,f.reset();else{O=!0;const $=this._basicScopeAttributesProvider.getDefaultAttributes(),B=this.themeProvider.getDefaults(),H=m.EncodedTokenAttributes.set(0,$.languageId,$.tokenType,null,B.fontStyle,B.foregroundId,B.backgroundId),J=this.getRule(this._rootId).getName(null,null);let z;z=J?y.createRootAndLookUpScopeName(J,H,this):y.createRoot("unknown",H),f=new t(null,this._rootId,-1,-1,!1,null,z,z)}s+=` `;const D=this.createOnigString(s),x=D.content.length,N=new h(E,s,this._tokenTypeMatchers,this.balancedBracketSelectors),q=R._tokenizeString(this,D,O,0,f,N,!0,L);return P.disposeOnigString(D),{lineLength:x,lineTokens:N,ruleStack:q.stack,stoppedEarly:q.stoppedEarly}}}function S(g,s){return(g=I.clone(g)).repository=g.repository||{},g.repository.$self={$vscodeTextmateLocation:g.$vscodeTextmateLocation,patterns:g.patterns,name:g.scopeName},g.repository.$base=s||g.repository.$self,g}i.Grammar=A;class y{constructor(s,f,E){this.parent=s,this.scopePath=f,this.tokenAttributes=E}static fromExtension(s,f){let E=s,L=(s==null?void 0:s.scopePath)??null;for(const O of f)L=b.ScopeStack.push(L,O.scopeNames),E=new y(E,L,O.encodedTokenAttributes);return E}static createRoot(s,f){return new y(null,new b.ScopeStack(null,s),f)}static createRootAndLookUpScopeName(s,f,E){const L=E.getMetadataForScope(s),O=new b.ScopeStack(null,s),D=E.themeProvider.themeMatch(O),x=y.mergeAttributes(f,L,D);return new y(null,O,x)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(s){return y.equals(this,s)}static equals(s,f){for(;;){if(s===f||!s&&!f)return!0;if(!s||!f||s.scopeName!==f.scopeName||s.tokenAttributes!==f.tokenAttributes)return!1;s=s.parent,f=f.parent}}static mergeAttributes(s,f,E){let L=-1,O=0,D=0;return E!==null&&(L=E.fontStyle,O=E.foregroundId,D=E.backgroundId),m.EncodedTokenAttributes.set(s,f.languageId,f.tokenType,null,L,O,D)}pushAttributed(s,f){if(s===null)return this;if(s.indexOf(" ")===-1)return y._pushAttributed(this,s,f);const E=s.split(/ /g);let L=this;for(const O of E)L=y._pushAttributed(L,O,f);return L}static _pushAttributed(s,f,E){const L=E.getMetadataForScope(f),O=s.scopePath.push(f),D=E.themeProvider.themeMatch(O),x=y.mergeAttributes(s.tokenAttributes,L,D);return new y(s,O,x)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(s){var L;const f=[];let E=this;for(;E&&E!==s;)f.push({encodedTokenAttributes:E.tokenAttributes,scopeNames:E.scopePath.getExtensionIfDefined(((L=E.parent)==null?void 0:L.scopePath)??null)}),E=E.parent;return E===s?f.reverse():void 0}}i.AttributedScopeStack=y;class t{constructor(s,f,E,L,O,D,x,N){this.parent=s,this.ruleId=f,this.beginRuleCapturedEOL=O,this.endRule=D,this.nameScopesList=x,this.contentNameScopesList=N,this._stackElementBrand=void 0,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=E,this._anchorPos=L}equals(s){return s!==null&&t._equals(this,s)}static _equals(s,f){return s===f||!!this._structuralEquals(s,f)&&y.equals(s.contentNameScopesList,f.contentNameScopesList)}static _structuralEquals(s,f){for(;;){if(s===f||!s&&!f)return!0;if(!s||!f||s.depth!==f.depth||s.ruleId!==f.ruleId||s.endRule!==f.endRule)return!1;s=s.parent,f=f.parent}}clone(){return this}static _reset(s){for(;s;)s._enterPos=-1,s._anchorPos=-1,s=s.parent}reset(){t._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(s,f,E,L,O,D,x){return new t(this,s,f,E,L,O,D,x)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(s){return s.getRule(this.ruleId)}toString(){const s=[];return this._writeString(s,0),"["+s.join(",")+"]"}_writeString(s,f){var E,L;return this.parent&&(f=this.parent._writeString(s,f)),s[f++]=`(${this.ruleId}, ${(E=this.nameScopesList)==null?void 0:E.toString()}, ${(L=this.contentNameScopesList)==null?void 0:L.toString()})`,f}withContentNameScopesList(s){return this.contentNameScopesList===s?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,s)}withEndRule(s){return this.endRule===s?this:new t(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,s,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(s){let f=this;for(;f&&f._enterPos===s._enterPos;){if(f.ruleId===s.ruleId)return!0;f=f.parent}return!1}toStateStackFrame(){var s,f,E;return{ruleId:c.ruleIdToNumber(this.ruleId),beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:((f=this.nameScopesList)==null?void 0:f.getExtensionIfDefined(((s=this.parent)==null?void 0:s.nameScopesList)??null))??[],contentNameScopesList:((E=this.contentNameScopesList)==null?void 0:E.getExtensionIfDefined(this.nameScopesList))??[]}}static pushFrame(s,f){const E=y.fromExtension((s==null?void 0:s.nameScopesList)??null,f.nameScopesList);return new t(s,c.ruleIdFromNumber(f.ruleId),f.enterPos??-1,f.anchorPos??-1,f.beginRuleCapturedEOL,f.endRule,E,y.fromExtension(E,f.contentNameScopesList))}}i.StateStackImpl=t,t.NULL=new t(null,0,0,0,!1,null,null,null),i.BalancedBracketSelectors=class{constructor(g,s){this.allowAny=!1,this.balancedBracketScopes=g.flatMap(f=>f==="*"?(this.allowAny=!0,[]):u.createMatchers(f,k).map(E=>E.matcher)),this.unbalancedBracketScopes=s.flatMap(f=>u.createMatchers(f,k).map(E=>E.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(g){for(const s of this.unbalancedBracketScopes)if(s(g))return!1;for(const s of this.balancedBracketScopes)if(s(g))return!0;return this.allowAny}};class h{constructor(s,f,E,L){this.balancedBracketSelectors=L,this._emitBinaryTokens=s,this._tokenTypeOverrides=E,a.DebugFlags.InDebugMode?this._lineText=f:this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}produce(s,f){this.produceFromScopes(s.contentNameScopesList,f)}produceFromScopes(s,f){var L;if(this._lastTokenEndIndex>=f)return;if(this._emitBinaryTokens){let O=(s==null?void 0:s.tokenAttributes)??0,D=!1;if((L=this.balancedBracketSelectors)!=null&&L.matchesAlways&&(D=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const x=(s==null?void 0:s.getScopeNames())??[];for(const N of this._tokenTypeOverrides)N.matcher(x)&&(O=m.EncodedTokenAttributes.set(O,0,m.toOptionalTokenType(N.type),null,-1,0,0));this.balancedBracketSelectors&&(D=this.balancedBracketSelectors.match(x))}if(D&&(O=m.EncodedTokenAttributes.set(O,0,8,D,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===O)return void(this._lastTokenEndIndex=f);if(a.DebugFlags.InDebugMode){const x=(s==null?void 0:s.getScopeNames())??[];console.log(" token: |"+this._lineText.substring(this._lastTokenEndIndex,f).replace(/\n$/,"\\n")+"|");for(let N=0;N0&&this._tokens[this._tokens.length-1].startIndex===f-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(s,f),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(s,f){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===f-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(s,f),this._binaryTokens[this._binaryTokens.length-2]=0);const E=new Uint32Array(this._binaryTokens.length);for(let L=0,O=this._binaryTokens.length;L{Object.defineProperty(i,"__esModule",{value:!0}),i.parseInclude=i.TopLevelRepositoryReference=i.TopLevelReference=i.RelativeReference=i.SelfReference=i.BaseReference=i.ScopeDependencyProcessor=i.ExternalReferenceCollector=i.TopLevelRepositoryRuleReference=i.TopLevelRuleReference=void 0;const a=l(878);class m{constructor(t){this.scopeName=t}toKey(){return this.scopeName}}i.TopLevelRuleReference=m;class u{constructor(t,h){this.scopeName=t,this.ruleName=h}toKey(){return`${this.scopeName}#${this.ruleName}`}}i.TopLevelRepositoryRuleReference=u;class P{constructor(){this._references=[],this._seenReferenceKeys=new Set,this.visitedRule=new Set}get references(){return this._references}add(t){const h=t.toKey();this._seenReferenceKeys.has(h)||(this._seenReferenceKeys.add(h),this._references.push(t))}}function c(y,t,h,g){const s=h.lookup(y.scopeName);if(!s){if(y.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}const f=h.lookup(t);y instanceof m?I({baseGrammar:f,selfGrammar:s},g):b(y.ruleName,{baseGrammar:f,selfGrammar:s,repository:s.repository},g);const E=h.injections(y.scopeName);if(E)for(const L of E)g.add(new m(L))}function b(y,t,h){t.repository&&t.repository[y]&&d([t.repository[y]],t,h)}function I(y,t){y.selfGrammar.patterns&&Array.isArray(y.selfGrammar.patterns)&&d(y.selfGrammar.patterns,{...y,repository:y.selfGrammar.repository},t),y.selfGrammar.injections&&d(Object.values(y.selfGrammar.injections),{...y,repository:y.selfGrammar.repository},t)}function d(y,t,h){for(const g of y){if(h.visitedRule.has(g))continue;h.visitedRule.add(g);const s=g.repository?a.mergeObjects({},t.repository,g.repository):t.repository;Array.isArray(g.patterns)&&d(g.patterns,{...t,repository:s},h);const f=g.include;if(!f)continue;const E=S(f);switch(E.kind){case 0:I({...t,selfGrammar:t.baseGrammar},h);break;case 1:I(t,h);break;case 2:b(E.ruleName,{...t,repository:s},h);break;case 3:case 4:const L=E.scopeName===t.selfGrammar.scopeName?t.selfGrammar:E.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(L){const O={baseGrammar:t.baseGrammar,selfGrammar:L,repository:s};E.kind===4?b(E.ruleName,O,h):I(O,h)}else E.kind===4?h.add(new u(E.scopeName,E.ruleName)):h.add(new m(E.scopeName))}}}i.ExternalReferenceCollector=P,i.ScopeDependencyProcessor=class{constructor(y,t){this.repo=y,this.initialScopeName=t,this.seenFullScopeRequests=new Set,this.seenPartialScopeRequests=new Set,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new m(this.initialScopeName)]}processQueue(){const y=this.Q;this.Q=[];const t=new P;for(const h of y)c(h,this.initialScopeName,this.repo,t);for(const h of t.references)if(h instanceof m){if(this.seenFullScopeRequests.has(h.scopeName))continue;this.seenFullScopeRequests.add(h.scopeName),this.Q.push(h)}else{if(this.seenFullScopeRequests.has(h.scopeName)||this.seenPartialScopeRequests.has(h.toKey()))continue;this.seenPartialScopeRequests.add(h.toKey()),this.Q.push(h)}}};class R{constructor(){this.kind=0}}i.BaseReference=R;class T{constructor(){this.kind=1}}i.SelfReference=T;class k{constructor(t){this.ruleName=t,this.kind=2}}i.RelativeReference=k;class v{constructor(t){this.scopeName=t,this.kind=3}}i.TopLevelReference=v;class A{constructor(t,h){this.scopeName=t,this.ruleName=h,this.kind=4}}function S(y){if(y==="$base")return new R;if(y==="$self")return new T;const t=y.indexOf("#");if(t===-1)return new v(y);if(t===0)return new k(y.substring(1));{const h=y.substring(0,t),g=y.substring(t+1);return new A(h,g)}}i.TopLevelRepositoryReference=A,i.parseInclude=S},391:function(p,i,l){var a=this&&this.__createBinding||(Object.create?function(u,P,c,b){b===void 0&&(b=c),Object.defineProperty(u,b,{enumerable:!0,get:function(){return P[c]}})}:function(u,P,c,b){b===void 0&&(b=c),u[b]=P[c]}),m=this&&this.__exportStar||function(u,P){for(var c in u)c==="default"||Object.prototype.hasOwnProperty.call(P,c)||a(P,u,c)};Object.defineProperty(i,"__esModule",{value:!0}),m(l(947),i)},47:(p,i,l)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.LocalStackElement=i._tokenizeString=void 0;const a=l(350),m=l(44),u=l(792),P=l(878);class c{constructor(A,S){this.stack=A,this.stoppedEarly=S}}function b(v,A,S,y,t,h,g,s){const f=A.content.length;let E=!1,L=-1;if(g){const x=function(N,q,$,B,H,J){let z=H.beginRuleCapturedEOL?0:-1;const G=[];for(let j=H;j;j=j.pop()){const W=j.getRule(N);W instanceof u.BeginWhileRule&&G.push({rule:W,stack:j})}for(let j=G.pop();j;j=G.pop()){const{ruleScanner:W,findOptions:se}=d(j.rule,N,j.stack.endRule,$,B===z),w=W.findNextMatchSync(q,B,se);if(a.DebugFlags.InDebugMode&&(console.log(" scanning for while rule"),console.log(W.toString())),!w){a.DebugFlags.InDebugMode&&console.log(" popping "+j.rule.debugName+" - "+j.rule.debugWhileRegExp),H=j.stack.pop();break}if(w.ruleId!==u.whileRuleId){H=j.stack.pop();break}w.captureIndices&&w.captureIndices.length&&(J.produce(j.stack,w.captureIndices[0].start),T(N,q,$,j.stack,J,j.rule.whileCaptures,w.captureIndices),J.produce(j.stack,w.captureIndices[0].end),z=w.captureIndices[0].end,w.captureIndices[0].end>B&&(B=w.captureIndices[0].end,$=!1))}return{stack:H,linePos:B,anchorPosition:z,isFirstLine:$}}(v,A,S,y,t,h);t=x.stack,y=x.linePos,S=x.isFirstLine,L=x.anchorPosition}const O=Date.now();for(;!E;){if(s!==0&&Date.now()-O>s)return new c(t,!0);D()}return new c(t,!1);function D(){a.DebugFlags.InDebugMode&&(console.log(""),console.log(`@@scanNext ${y}: |${A.content.substr(y).replace(/\n$/,"\\n")}|`));const x=function(B,H,J,z,G,j){const W=function(re,de,Te,ge,ue,Ee){const fe=ue.getRule(re),{ruleScanner:_e,findOptions:ye}=I(fe,re,ue.endRule,Te,ge===Ee);let ce=0;a.DebugFlags.InDebugMode&&(ce=P.performanceNow());const te=_e.findNextMatchSync(de,ge,ye);if(a.DebugFlags.InDebugMode){const ve=P.performanceNow()-ce;ve>5&&console.warn(`Rule ${fe.debugName} (${fe.id}) matching took ${ve} against '${de}'`),console.log(` scanning for (linePos: ${ge}, anchorPosition: ${Ee})`),console.log(_e.toString()),te&&console.log(`matched rule id: ${te.ruleId} from ${te.captureIndices[0].start} to ${te.captureIndices[0].end}`)}return te?{captureIndices:te.captureIndices,matchedRuleId:te.ruleId}:null}(B,H,J,z,G,j),se=B.getInjections();if(se.length===0)return W;const w=function(re,de,Te,ge,ue,Ee,fe){let _e,ye=Number.MAX_VALUE,ce=null,te=0;const ve=Ee.contentNameScopesList.getScopeNames();for(let Ie=0,St=re.length;Ie=ye)&&(ye=We,ce=Pe.captureIndices,_e=Pe.ruleId,te=Ae.priority,ye===ue))break}return ce?{priorityMatch:te===-1,captureIndices:ce,matchedRuleId:_e}:null}(se,B,H,J,z,G,j);if(!w)return W;if(!W)return w;const K=W.captureIndices[0].start,F=w.captureIndices[0].start;return F0)&&N[0].end>y;if(q===u.endRuleId){const B=t.getRule(v);a.DebugFlags.InDebugMode&&console.log(" popping "+B.debugName+" - "+B.debugEndRegExp),h.produce(t,N[0].start),t=t.withContentNameScopesList(t.nameScopesList),T(v,A,S,t,h,B.endCaptures,N),h.produce(t,N[0].end);const H=t;if(t=t.parent,L=H.getAnchorPos(),!$&&H.getEnterPos()===y)return a.DebugFlags.InDebugMode&&console.error("[1] - Grammar is in an endless loop - Grammar pushed & popped a rule without advancing"),t=H,h.produce(t,f),void(E=!0)}else{const B=v.getRule(q);h.produce(t,N[0].start);const H=t,J=B.getName(A.content,N),z=t.contentNameScopesList.pushAttributed(J,v);if(t=t.push(q,y,L,N[0].end===f,null,z,z),B instanceof u.BeginEndRule){const G=B;a.DebugFlags.InDebugMode&&console.log(" pushing "+G.debugName+" - "+G.debugBeginRegExp),T(v,A,S,t,h,G.beginCaptures,N),h.produce(t,N[0].end),L=N[0].end;const j=G.getContentName(A.content,N),W=z.pushAttributed(j,v);if(t=t.withContentNameScopesList(W),G.endHasBackReferences&&(t=t.withEndRule(G.getEndWithResolvedBackReferences(A.content,N))),!$&&H.hasSameRuleAs(t))return a.DebugFlags.InDebugMode&&console.error("[2] - Grammar is in an endless loop - Grammar pushed the same rule without advancing"),t=t.pop(),h.produce(t,f),void(E=!0)}else if(B instanceof u.BeginWhileRule){const G=B;a.DebugFlags.InDebugMode&&console.log(" pushing "+G.debugName),T(v,A,S,t,h,G.beginCaptures,N),h.produce(t,N[0].end),L=N[0].end;const j=G.getContentName(A.content,N),W=z.pushAttributed(j,v);if(t=t.withContentNameScopesList(W),G.whileHasBackReferences&&(t=t.withEndRule(G.getWhileWithResolvedBackReferences(A.content,N))),!$&&H.hasSameRuleAs(t))return a.DebugFlags.InDebugMode&&console.error("[3] - Grammar is in an endless loop - Grammar pushed the same rule without advancing"),t=t.pop(),h.produce(t,f),void(E=!0)}else{const G=B;if(a.DebugFlags.InDebugMode&&console.log(" matched "+G.debugName+" - "+G.debugMatchRegExp),T(v,A,S,t,h,G.captures,N),h.produce(t,N[0].end),t=t.pop(),!$)return a.DebugFlags.InDebugMode&&console.error("[4] - Grammar is in an endless loop - Grammar is not advancing, nor is it pushing/popping"),t=t.safePop(),h.produce(t,f),void(E=!0)}}N[0].end>y&&(y=N[0].end,S=!1)}}function I(v,A,S,y,t){return a.UseOnigurumaFindOptions?{ruleScanner:v.compile(A,S),findOptions:R(y,t)}:{ruleScanner:v.compileAG(A,S,y,t),findOptions:0}}function d(v,A,S,y,t){return a.UseOnigurumaFindOptions?{ruleScanner:v.compileWhile(A,S),findOptions:R(y,t)}:{ruleScanner:v.compileWhileAG(A,S,y,t),findOptions:0}}function R(v,A){let S=0;return v||(S|=1),A||(S|=4),S}function T(v,A,S,y,t,h,g){if(h.length===0)return;const s=A.content,f=Math.min(h.length,g.length),E=[],L=g[0].end;for(let O=0;OL)break;for(;E.length>0&&E[E.length-1].endPos<=x.start;)t.produceFromScopes(E[E.length-1].scopes,E[E.length-1].endPos),E.pop();if(E.length>0?t.produceFromScopes(E[E.length-1].scopes,x.start):t.produce(y,x.start),D.retokenizeCapturedWithRuleId){const q=D.getName(s,g),$=y.contentNameScopesList.pushAttributed(q,v),B=D.getContentName(s,g),H=$.pushAttributed(B,v),J=y.push(D.retokenizeCapturedWithRuleId,x.start,-1,!1,null,$,H),z=v.createOnigString(s.substring(0,x.end));b(v,z,S&&x.start===0,x.start,J,t,!1,0),m.disposeOnigString(z);continue}const N=D.getName(s,g);if(N!==null){const q=(E.length>0?E[E.length-1].scopes:y.contentNameScopesList).pushAttributed(N,v);E.push(new k(q,x.end))}}for(;E.length>0;)t.produceFromScopes(E[E.length-1].scopes,E[E.length-1].endPos),E.pop()}i._tokenizeString=b;class k{constructor(A,S){this.scopes=A,this.endPos=S}}i.LocalStackElement=k},974:(p,i)=>{function l(P,c){throw new Error("Near offset "+P.pos+": "+c+" ~~~"+P.source.substr(P.pos,50)+"~~~")}Object.defineProperty(i,"__esModule",{value:!0}),i.parseJSON=void 0,i.parseJSON=function(P,c,b){let I=new a(P),d=new m,R=0,T=null,k=[],v=[];function A(){k.push(R),v.push(T)}function S(){R=k.pop(),T=v.pop()}function y(t){l(I,t)}for(;u(I,d);){if(R===0){if(T!==null&&y("too many constructs in root"),d.type===3){T={},b&&(T.$vscodeTextmateLocation=d.toLocation(c)),A(),R=1;continue}if(d.type===2){T=[],A(),R=4;continue}y("unexpected token in root")}if(R===2){if(d.type===5){S();continue}if(d.type===7){R=3;continue}y("expected , or }")}if(R===1||R===3){if(R===1&&d.type===5){S();continue}if(d.type===1){let t=d.value;if(u(I,d)&&d.type===6||y("expected colon"),u(I,d)||y("expected value"),R=2,d.type===1){T[t]=d.value;continue}if(d.type===8){T[t]=null;continue}if(d.type===9){T[t]=!0;continue}if(d.type===10){T[t]=!1;continue}if(d.type===11){T[t]=parseFloat(d.value);continue}if(d.type===2){let h=[];T[t]=h,A(),R=4,T=h;continue}if(d.type===3){let h={};b&&(h.$vscodeTextmateLocation=d.toLocation(c)),T[t]=h,A(),R=1,T=h;continue}}y("unexpected token in dict")}if(R===5){if(d.type===4){S();continue}if(d.type===7){R=6;continue}y("expected , or ]")}if(R===4||R===6){if(R===4&&d.type===4){S();continue}if(R=5,d.type===1){T.push(d.value);continue}if(d.type===8){T.push(null);continue}if(d.type===9){T.push(!0);continue}if(d.type===10){T.push(!1);continue}if(d.type===11){T.push(parseFloat(d.value));continue}if(d.type===2){let t=[];T.push(t),A(),R=4,T=t;continue}if(d.type===3){let t={};b&&(t.$vscodeTextmateLocation=d.toLocation(c)),T.push(t),A(),R=1,T=t;continue}y("unexpected token in array")}y("unknown state")}return v.length!==0&&y("unclosed constructs"),T};class a{constructor(c){this.source=c,this.pos=0,this.len=c.length,this.line=1,this.char=0}}class m{constructor(){this.value=null,this.type=0,this.offset=-1,this.len=-1,this.line=-1,this.char=-1}toLocation(c){return{filename:c,line:this.line,char:this.char}}}function u(P,c){c.value=null,c.type=0,c.offset=-1,c.len=-1,c.line=-1,c.char=-1;let b,I=P.source,d=P.pos,R=P.len,T=P.line,k=P.char;for(;;){if(d>=R)return!1;if(b=I.charCodeAt(d),b!==32&&b!==9&&b!==13){if(b!==10)break;d++,T++,k=0}else d++,k++}if(c.offset=d,c.line=T,c.char=k,b===34){for(c.type=1,d++,k++;;){if(d>=R)return!1;if(b=I.charCodeAt(d),d++,k++,b!==92){if(b===34)break}else d++,k++}c.value=I.substring(c.offset+1,d-1).replace(/\\u([0-9A-Fa-f]{4})/g,(v,A)=>String.fromCodePoint(parseInt(A,16))).replace(/\\(.)/g,(v,A)=>{switch(A){case'"':return'"';case"\\":return"\\";case"/":return"/";case"b":return"\b";case"f":return"\f";case"n":return` `;case"r":return"\r";case"t":return" ";default:l(P,"invalid escape sequence")}throw new Error("unreachable")})}else if(b===91)c.type=2,d++,k++;else if(b===123)c.type=3,d++,k++;else if(b===93)c.type=4,d++,k++;else if(b===125)c.type=5,d++,k++;else if(b===58)c.type=6,d++,k++;else if(b===44)c.type=7,d++,k++;else if(b===110){if(c.type=8,d++,k++,b=I.charCodeAt(d),b!==117||(d++,k++,b=I.charCodeAt(d),b!==108)||(d++,k++,b=I.charCodeAt(d),b!==108))return!1;d++,k++}else if(b===116){if(c.type=9,d++,k++,b=I.charCodeAt(d),b!==114||(d++,k++,b=I.charCodeAt(d),b!==117)||(d++,k++,b=I.charCodeAt(d),b!==101))return!1;d++,k++}else if(b===102){if(c.type=10,d++,k++,b=I.charCodeAt(d),b!==97||(d++,k++,b=I.charCodeAt(d),b!==108)||(d++,k++,b=I.charCodeAt(d),b!==115)||(d++,k++,b=I.charCodeAt(d),b!==101))return!1;d++,k++}else for(c.type=11;;){if(d>=R)return!1;if(b=I.charCodeAt(d),!(b===46||b>=48&&b<=57||b===101||b===69||b===45||b===43))break;d++,k++}return c.len=d-c.offset,c.value===null&&(c.value=I.substr(c.offset,c.len)),P.pos=d,P.line=T,P.char=k,!0}},787:function(p,i,l){var a=this&&this.__createBinding||(Object.create?function(R,T,k,v){v===void 0&&(v=k),Object.defineProperty(R,v,{enumerable:!0,get:function(){return T[k]}})}:function(R,T,k,v){v===void 0&&(v=k),R[v]=T[k]}),m=this&&this.__exportStar||function(R,T){for(var k in R)k==="default"||Object.prototype.hasOwnProperty.call(T,k)||a(T,R,k)};Object.defineProperty(i,"__esModule",{value:!0}),i.applyStateStackDiff=i.diffStateStacksRefEq=i.parseRawGrammar=i.INITIAL=i.Registry=void 0;const u=l(391),P=l(50),c=l(652),b=l(583),I=l(965),d=l(442);Object.defineProperty(i,"applyStateStackDiff",{enumerable:!0,get:function(){return d.applyStateStackDiff}}),Object.defineProperty(i,"diffStateStacksRefEq",{enumerable:!0,get:function(){return d.diffStateStacksRefEq}}),m(l(44),i),i.Registry=class{constructor(R){this._options=R,this._syncRegistry=new c.SyncRegistry(b.Theme.createFromRawTheme(R.theme,R.colorMap),R.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(R,T){this._syncRegistry.setTheme(b.Theme.createFromRawTheme(R,T))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(R,T,k){return this.loadGrammarWithConfiguration(R,T,{embeddedLanguages:k})}loadGrammarWithConfiguration(R,T,k){return this._loadGrammar(R,T,k.embeddedLanguages,k.tokenTypes,new u.BalancedBracketSelectors(k.balancedBracketSelectors||[],k.unbalancedBracketSelectors||[]))}loadGrammar(R){return this._loadGrammar(R,0,null,null,null)}async _loadGrammar(R,T,k,v,A){const S=new I.ScopeDependencyProcessor(this._syncRegistry,R);for(;S.Q.length>0;)await Promise.all(S.Q.map(y=>this._loadSingleGrammar(y.scopeName))),S.processQueue();return this._grammarForScopeName(R,T,k,v,A)}async _loadSingleGrammar(R){return this._ensureGrammarCache.has(R)||this._ensureGrammarCache.set(R,this._doLoadSingleGrammar(R)),this._ensureGrammarCache.get(R)}async _doLoadSingleGrammar(R){const T=await this._options.loadGrammar(R);if(T){const k=typeof this._options.getInjections=="function"?this._options.getInjections(R):void 0;this._syncRegistry.addGrammar(T,k)}}async addGrammar(R,T=[],k=0,v=null){return this._syncRegistry.addGrammar(R,T),await this._grammarForScopeName(R.scopeName,k,v)}_grammarForScopeName(R,T=0,k=null,v=null,A=null){return this._syncRegistry.grammarForScopeName(R,T,k,v,A)}},i.INITIAL=u.StateStackImpl.NULL,i.parseRawGrammar=P.parseRawGrammar},736:(p,i)=>{function l(a){return!!a&&!!a.match(/[\w\.:]+/)}Object.defineProperty(i,"__esModule",{value:!0}),i.createMatchers=void 0,i.createMatchers=function(a,m){const u=[],P=function(d){let R=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,T=R.exec(d);return{next:()=>{if(!T)return null;const k=T[0];return T=R.exec(d),k}}}(a);let c=P.next();for(;c!==null;){let d=0;if(c.length===2&&c.charAt(1)===":"){switch(c.charAt(0)){case"R":d=1;break;case"L":d=-1;break;default:console.log(`Unknown priority ${c} in scope selector`)}c=P.next()}let R=I();if(u.push({matcher:R,priority:d}),c!==",")break;c=P.next()}return u;function b(){if(c==="-"){c=P.next();const d=b();return R=>!!d&&!d(R)}if(c==="("){c=P.next();const d=function(){const R=[];let T=I();for(;T&&(R.push(T),c==="|"||c===",");){do c=P.next();while(c==="|"||c===",");T=I()}return k=>R.some(v=>v(k))}();return c===")"&&(c=P.next()),d}if(l(c)){const d=[];do d.push(c),c=P.next();while(l(c));return R=>m(d,R)}return null}function I(){const d=[];let R=b();for(;R;)d.push(R),R=b();return T=>d.every(k=>k(T))}}},44:(p,i)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.disposeOnigString=void 0,i.disposeOnigString=function(l){typeof l.dispose=="function"&&l.dispose()}},50:(p,i,l)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.parseRawGrammar=void 0;const a=l(69),m=l(350),u=l(974);i.parseRawGrammar=function(P,c=null){return c!==null&&/\.json$/.test(c)?(b=P,I=c,m.DebugFlags.InDebugMode?u.parseJSON(b,I,!0):JSON.parse(b)):function(d,R){return m.DebugFlags.InDebugMode?a.parseWithLocation(d,R,"$vscodeTextmateLocation"):a.parsePLIST(d)}(P,c);var b,I}},69:(p,i)=>{function l(a,m,u){const P=a.length;let c=0,b=1,I=0;function d(w){if(u===null)c+=w;else for(;w>0;)a.charCodeAt(c)===10?(c++,b++,I=0):(c++,I++),w--}function R(w){u===null?c=w:d(w-c)}function T(){for(;c0&&a.charCodeAt(0)===65279&&(c=1);let S=0,y=null,t=[],h=[],g=null;function s(w,K){t.push(S),h.push(y),S=w,y=K}function f(){if(t.length===0)return E("illegal state stack");S=t.pop(),y=h.pop()}function E(w){throw new Error("Near offset "+c+": "+w+" ~~~"+a.substr(c,50)+"~~~")}const L=function(){if(g===null)return E("missing ");let w={};u!==null&&(w[u]={filename:m,line:b,char:I}),y[g]=w,g=null,s(1,w)},O=function(){if(g===null)return E("missing ");let w=[];y[g]=w,g=null,s(2,w)},D=function(){let w={};u!==null&&(w[u]={filename:m,line:b,char:I}),y.push(w),s(1,w)},x=function(){let w=[];y.push(w),s(2,w)};function N(){if(S!==1)return E("unexpected ");f()}function q(){return S===1||S!==2?E("unexpected "):void f()}function $(w){if(S===1){if(g===null)return E("missing ");y[g]=w,g=null}else S===2?y.push(w):y=w}function B(w){if(isNaN(w))return E("cannot parse float");if(S===1){if(g===null)return E("missing ");y[g]=w,g=null}else S===2?y.push(w):y=w}function H(w){if(isNaN(w))return E("cannot parse integer");if(S===1){if(g===null)return E("missing ");y[g]=w,g=null}else S===2?y.push(w):y=w}function J(w){if(S===1){if(g===null)return E("missing ");y[g]=w,g=null}else S===2?y.push(w):y=w}function z(w){if(S===1){if(g===null)return E("missing ");y[g]=w,g=null}else S===2?y.push(w):y=w}function G(w){if(S===1){if(g===null)return E("missing ");y[g]=w,g=null}else S===2?y.push(w):y=w}function j(){let w=A(">"),K=!1;return w.charCodeAt(w.length-1)===47&&(K=!0,w=w.substring(0,w.length-1)),{name:w.trim(),isClosed:K}}function W(w){if(w.isClosed)return"";let K=A(""),K.replace(/&#([0-9]+);/g,function(F,re){return String.fromCodePoint(parseInt(re,10))}).replace(/&#x([0-9a-f]+);/g,function(F,re){return String.fromCodePoint(parseInt(re,16))}).replace(/&|<|>|"|'/g,function(F){switch(F){case"&":return"&";case"<":return"<";case">":return">";case""":return'"';case"'":return"'"}return F})}for(;c=P));){const w=a.charCodeAt(c);if(d(1),w!==60)return E("expected <");if(c>=P)return E("unexpected end of input");const K=a.charCodeAt(c);if(K===63){d(1),v("?>");continue}if(K===33){if(d(1),k("--")){v("-->");continue}v(">");continue}if(K===47){if(d(1),T(),k("plist")){v(">");continue}if(k("dict")){v(">"),N();continue}if(k("array")){v(">"),q();continue}return E("unexpected closed tag")}let F=j();switch(F.name){case"dict":S===1?L():S===2?D():(y={},u!==null&&(y[u]={filename:m,line:b,char:I}),s(1,y)),F.isClosed&&N();continue;case"array":S===1?O():S===2?x():(y=[],s(2,y)),F.isClosed&&q();continue;case"key":se=W(F),S!==1?E("unexpected "):g!==null?E("too many "):g=se;continue;case"string":$(W(F));continue;case"real":B(parseFloat(W(F)));continue;case"integer":H(parseInt(W(F),10));continue;case"date":J(new Date(W(F)));continue;case"data":z(W(F));continue;case"true":W(F),G(!0);continue;case"false":W(F),G(!1);continue}if(!/^plist/.test(F.name))return E("unexpected opened tag "+F.name)}var se;return y}Object.defineProperty(i,"__esModule",{value:!0}),i.parsePLIST=i.parseWithLocation=void 0,i.parseWithLocation=function(a,m,u){return l(a,m,u)},i.parsePLIST=function(a){return l(a,null,null)}},652:(p,i,l)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.SyncRegistry=void 0;const a=l(391);i.SyncRegistry=class{constructor(m,u){this._onigLibPromise=u,this._grammars=new Map,this._rawGrammars=new Map,this._injectionGrammars=new Map,this._theme=m}dispose(){for(const m of this._grammars.values())m.dispose()}setTheme(m){this._theme=m}getColorMap(){return this._theme.getColorMap()}addGrammar(m,u){this._rawGrammars.set(m.scopeName,m),u&&this._injectionGrammars.set(m.scopeName,u)}lookup(m){return this._rawGrammars.get(m)}injections(m){return this._injectionGrammars.get(m)}getDefaults(){return this._theme.getDefaults()}themeMatch(m){return this._theme.match(m)}async grammarForScopeName(m,u,P,c,b){if(!this._grammars.has(m)){let I=this._rawGrammars.get(m);if(!I)return null;this._grammars.set(m,a.createGrammar(m,I,u,P,c,b,this,await this._onigLibPromise))}return this._grammars.get(m)}}},792:(p,i,l)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.CompiledRule=i.RegExpSourceList=i.RegExpSource=i.RuleFactory=i.BeginWhileRule=i.BeginEndRule=i.IncludeOnlyRule=i.MatchRule=i.CaptureRule=i.Rule=i.ruleIdToNumber=i.ruleIdFromNumber=i.whileRuleId=i.endRuleId=void 0;const a=l(878),m=l(965),u=/\\(\d+)/,P=/\\(\d+)/g;i.endRuleId=-1,i.whileRuleId=-2,i.ruleIdFromNumber=function(y){return y},i.ruleIdToNumber=function(y){return y};class c{constructor(t,h,g,s){this.$location=t,this.id=h,this._name=g||null,this._nameIsCapturing=a.RegexSource.hasCaptures(this._name),this._contentName=s||null,this._contentNameIsCapturing=a.RegexSource.hasCaptures(this._contentName)}get debugName(){const t=this.$location?`${a.basename(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${t}`}getName(t,h){return this._nameIsCapturing&&this._name!==null&&t!==null&&h!==null?a.RegexSource.replaceCaptures(this._name,t,h):this._name}getContentName(t,h){return this._contentNameIsCapturing&&this._contentName!==null?a.RegexSource.replaceCaptures(this._contentName,t,h):this._contentName}}i.Rule=c;class b extends c{constructor(t,h,g,s,f){super(t,h,g,s),this.retokenizeCapturedWithRuleId=f}dispose(){}collectPatterns(t,h){throw new Error("Not supported!")}compile(t,h){throw new Error("Not supported!")}compileAG(t,h,g,s){throw new Error("Not supported!")}}i.CaptureRule=b;class I extends c{constructor(t,h,g,s,f){super(t,h,g,null),this._match=new v(s,this.id),this.captures=f,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(t,h){h.push(this._match)}compile(t,h){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,h,g,s){return this._getCachedCompiledPatterns(t).compileAG(t,g,s)}_getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new A,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}i.MatchRule=I;class d extends c{constructor(t,h,g,s,f){super(t,h,g,s),this.patterns=f.patterns,this.hasMissingPatterns=f.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(t,h){for(const g of this.patterns)t.getRule(g).collectPatterns(t,h)}compile(t,h){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,h,g,s){return this._getCachedCompiledPatterns(t).compileAG(t,g,s)}_getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new A,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}i.IncludeOnlyRule=d;class R extends c{constructor(t,h,g,s,f,E,L,O,D,x){super(t,h,g,s),this._begin=new v(f,this.id),this.beginCaptures=E,this._end=new v(L||"￿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=O,this.applyEndPatternLast=D||!1,this.patterns=x.patterns,this.hasMissingPatterns=x.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(t,h){return this._end.resolveBackReferences(t,h)}collectPatterns(t,h){h.push(this._begin)}compile(t,h){return this._getCachedCompiledPatterns(t,h).compile(t)}compileAG(t,h,g,s){return this._getCachedCompiledPatterns(t,h).compileAG(t,g,s)}_getCachedCompiledPatterns(t,h){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new A;for(const g of this.patterns)t.getRule(g).collectPatterns(t,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,h):this._cachedCompiledPatterns.setSource(0,h)),this._cachedCompiledPatterns}}i.BeginEndRule=R;class T extends c{constructor(t,h,g,s,f,E,L,O,D){super(t,h,g,s),this._begin=new v(f,this.id),this.beginCaptures=E,this.whileCaptures=O,this._while=new v(L,i.whileRuleId),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=D.patterns,this.hasMissingPatterns=D.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(t,h){return this._while.resolveBackReferences(t,h)}collectPatterns(t,h){h.push(this._begin)}compile(t,h){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,h,g,s){return this._getCachedCompiledPatterns(t).compileAG(t,g,s)}_getCachedCompiledPatterns(t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new A;for(const h of this.patterns)t.getRule(h).collectPatterns(t,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(t,h){return this._getCachedCompiledWhilePatterns(t,h).compile(t)}compileWhileAG(t,h,g,s){return this._getCachedCompiledWhilePatterns(t,h).compileAG(t,g,s)}_getCachedCompiledWhilePatterns(t,h){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new A,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,h||"￿"),this._cachedCompiledWhilePatterns}}i.BeginWhileRule=T;class k{static createCaptureRule(t,h,g,s,f){return t.registerRule(E=>new b(h,E,g,s,f))}static getCompiledRuleId(t,h,g){return t.id||h.registerRule(s=>{if(t.id=s,t.match)return new I(t.$vscodeTextmateLocation,t.id,t.name,t.match,k._compileCaptures(t.captures,h,g));if(t.begin===void 0){t.repository&&(g=a.mergeObjects({},g,t.repository));let f=t.patterns;return f===void 0&&t.include&&(f=[{include:t.include}]),new d(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,k._compilePatterns(f,h,g))}return t.while?new T(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,k._compileCaptures(t.beginCaptures||t.captures,h,g),t.while,k._compileCaptures(t.whileCaptures||t.captures,h,g),k._compilePatterns(t.patterns,h,g)):new R(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,k._compileCaptures(t.beginCaptures||t.captures,h,g),t.end,k._compileCaptures(t.endCaptures||t.captures,h,g),t.applyEndPatternLast,k._compilePatterns(t.patterns,h,g))}),t.id}static _compileCaptures(t,h,g){let s=[];if(t){let f=0;for(const E in t){if(E==="$vscodeTextmateLocation")continue;const L=parseInt(E,10);L>f&&(f=L)}for(let E=0;E<=f;E++)s[E]=null;for(const E in t){if(E==="$vscodeTextmateLocation")continue;const L=parseInt(E,10);let O=0;t[E].patterns&&(O=k.getCompiledRuleId(t[E],h,g)),s[L]=k.createCaptureRule(h,t[E].$vscodeTextmateLocation,t[E].name,t[E].contentName,O)}}return s}static _compilePatterns(t,h,g){let s=[];if(t)for(let f=0,E=t.length;ft.substring(s.start,s.end));return P.lastIndex=0,this.source.replace(P,(s,f)=>a.escapeRegExpCharacters(g[parseInt(f,10)]||""))}_buildAnchorCache(){let t,h,g,s,f=[],E=[],L=[],O=[];for(t=0,h=this.source.length;tg.source);this._cached=new S(t,h,this._items.map(g=>g.ruleId))}return this._cached}compileAG(t,h,g){return this._hasAnchors?h?g?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(t,h,g)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(t,h,g)),this._anchorCache.A1_G0):g?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(t,h,g)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(t,h,g)),this._anchorCache.A0_G0):this.compile(t)}_resolveAnchors(t,h,g){let s=this._items.map(f=>f.resolveAnchors(h,g));return new S(t,s,this._items.map(f=>f.ruleId))}}i.RegExpSourceList=A;class S{constructor(t,h,g){this.regExps=h,this.rules=g,this.scanner=t.createOnigScanner(h)}dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const t=[];for(let h=0,g=this.rules.length;h{Object.defineProperty(i,"__esModule",{value:!0}),i.ThemeTrieElement=i.ThemeTrieElementRule=i.ColorMap=i.fontStyleToString=i.ParsedThemeRule=i.parseTheme=i.StyleAttributes=i.ScopeStack=i.Theme=void 0;const a=l(878);class m{constructor(v,A,S){this._colorMap=v,this._defaults=A,this._root=S,this._cachedMatchRoot=new a.CachedFn(y=>this._root.match(y))}static createFromRawTheme(v,A){return this.createFromParsedTheme(b(v),A)}static createFromParsedTheme(v,A){return function(S,y){S.sort((L,O)=>{let D=a.strcmp(L.scope,O.scope);return D!==0?D:(D=a.strArrCmp(L.parentScopes,O.parentScopes),D!==0?D:L.index-O.index)});let t=0,h="#000000",g="#ffffff";for(;S.length>=1&&S[0].scope==="";){let L=S.shift();L.fontStyle!==-1&&(t=L.fontStyle),L.foreground!==null&&(h=L.foreground),L.background!==null&&(g=L.background)}let s=new d(y),f=new c(t,s.getId(h),s.getId(g)),E=new T(new R(0,null,-1,0,0),[]);for(let L=0,O=S.length;Lfunction(t,h){if(h===null)return!0;let g=0,s=h[g];for(;t;){if(P(t.scopeName,s)){if(g++,g===h.length)return!0;s=h[g]}t=t.parent}return!1}(v.parent,y.parentScopes));return S?new c(S.fontStyle,S.foreground,S.background):null}}i.Theme=m;class u{constructor(v,A){this.parent=v,this.scopeName=A}static push(v,A){for(const S of A)v=new u(v,S);return v}static from(...v){let A=null;for(let S=0;S1&&(N=D.slice(0,D.length-1),N.reverse()),A[S++]=new I(x,N,y,s,f,E)}}return A}i.StyleAttributes=c,i.parseTheme=b;class I{constructor(v,A,S,y,t,h){this.scope=v,this.parentScopes=A,this.index=S,this.fontStyle=y,this.foreground=t,this.background=h}}i.ParsedThemeRule=I,i.fontStyleToString=function(k){if(k===-1)return"not set";let v="";return 1&k&&(v+="italic "),2&k&&(v+="bold "),4&k&&(v+="underline "),8&k&&(v+="strikethrough "),v===""&&(v="none"),v.trim()};class d{constructor(v){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(v)){this._isFrozen=!0;for(let A=0,S=v.length;Av?console.log("how did this happen?"):this.scopeDepth=v,A!==-1&&(this.fontStyle=A),S!==0&&(this.foreground=S),y!==0&&(this.background=y)}}i.ThemeTrieElementRule=R;class T{constructor(v,A=[],S={}){this._mainRule=v,this._children=S,this._rulesWithParentScopes=A}static _sortBySpecificity(v){return v.length===1||v.sort(this._cmpBySpecificity),v}static _cmpBySpecificity(v,A){if(v.scopeDepth===A.scopeDepth){const S=v.parentScopes,y=A.parentScopes;let t=S===null?0:S.length,h=y===null?0:y.length;if(t===h)for(let g=0;g{function l(u){return Array.isArray(u)?function(P){let c=[];for(let b=0,I=P.length;b{for(let b in c)u[b]=c[b]}),u},i.basename=function u(P){const c=~P.lastIndexOf("/")||~P.lastIndexOf("\\");return c===0?P:~c==P.length-1?u(P.substring(0,P.length-1)):P.substr(1+~c)};let a=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g;function m(u,P){return uP?1:0}i.RegexSource=class{static hasCaptures(u){return u!==null&&(a.lastIndex=0,a.test(u))}static replaceCaptures(u,P,c){return u.replace(a,(b,I,d,R)=>{let T=c[parseInt(I||d,10)];if(!T)return b;{let k=P.substring(T.start,T.end);for(;k[0]===".";)k=k.substring(1);switch(R){case"downcase":return k.toLowerCase();case"upcase":return k.toUpperCase();default:return k}}})}},i.strcmp=m,i.strArrCmp=function(u,P){if(u===null&&P===null)return 0;if(!u)return-1;if(!P)return 1;let c=u.length,b=P.length;if(c===b){for(let I=0;I"u"?function(){return Date.now()}:function(){return performance.now()}}},r={};return function p(i){var l=r[i];if(l!==void 0)return l.exports;var a=r[i]={exports:{}};return o[i].call(a.exports,a,a.exports,p),a.exports}(787)})()})})(it);var st=it.exports;function Wt(n){const e=n.type||"dark",o={name:n.name,type:e,...n,...Ht(n)};return n.include&&(o.include=n.include),n.tokenColors&&(o.settings=n.tokenColors,delete o.tokenColors),qt(o),o}function qt(n){n.settings||(n.settings=[]),!(n.settings[0]&&n.settings[0].settings&&!n.settings[0].scope)&&n.settings.unshift({settings:{foreground:n.fg,background:n.bg}})}const ze={light:"#333333",dark:"#bbbbbb"},Ke={light:"#fffffe",dark:"#1e1e1e"};function Ht(n){var i,l,a,m;let e,o;const r=n.settings?n.settings:n.tokenColors,p=r?r.find(u=>!u.name&&!u.scope):void 0;return(i=p==null?void 0:p.settings)!=null&&i.foreground&&(e=p.settings.foreground),(l=p==null?void 0:p.settings)!=null&&l.background&&(o=p.settings.background),!e&&((a=n==null?void 0:n.colors)!=null&&a["editor.foreground"])&&(e=n.colors["editor.foreground"]),!o&&((m=n==null?void 0:n.colors)!=null&&m["editor.background"])&&(o=n.colors["editor.background"]),e||(e=n.type==="light"?ze.light:ze.dark),o||(o=n.type==="light"?Ke.light:Ke.dark),{fg:e,bg:o}}class zt extends st.Registry{constructor(e,o,r){super(e),this._resolver=e,this._themes=o,this._langs=r,this.themesPath="themes/",this._resolvedThemes={},this._resolvedGrammars={},this._langMap={},this._langGraph=new Map,o.forEach(p=>this.loadTheme(p)),r.forEach(p=>this.loadLanguage(p))}getTheme(e){return typeof e=="string"?this._resolvedThemes[e]:this.loadTheme(e)}loadTheme(e){const o=Wt(e);return o.name&&(this._resolvedThemes[o.name]=o),o}getLoadedThemes(){return Object.keys(this._resolvedThemes)}getGrammar(e){return this._resolvedGrammars[e]}async loadLanguage(e){var i;if(this._resolvedGrammars[e.name])return;this._resolver.addLanguage(e);const r={embeddedLanguages:(i=e.embeddedLangs)==null?void 0:i.reduce(async(l,a,m)=>{if(!this.getLoadedLanguages().includes(a)&&this._resolver.getLangRegistration(a))return await this._resolver.loadGrammar(this._resolver.getLangRegistration(a).scopeName),l[this._resolver.getLangRegistration(a).scopeName]=m+2,l},{}),balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]},p=await this.loadGrammarWithConfiguration(e.scopeName,1,r);this._resolvedGrammars[e.name]=p,e.aliases&&e.aliases.forEach(l=>{this._resolvedGrammars[l]=p})}async init(){this._themes.map(e=>this.loadTheme(e)),await this.loadLanguages(this._langs)}async loadLanguages(e){for(const p of e)this.resolveEmbeddedLanguages(p);const o=Array.from(this._langGraph.entries()),r=o.filter(([p,i])=>!i);if(r.length){const p=o.filter(([i,l])=>{var a;return l&&((a=l.embeddedLangs)==null?void 0:a.some(m=>r.map(([u])=>u).includes(m)))}).filter(i=>!r.includes(i));throw new Error(`[shikiji] Missing languages ${r.map(([i])=>`\`${i}\``).join(", ")}, required by ${p.map(([i])=>`\`${i}\``).join(", ")}`)}for(const[p,i]of o)this._resolver.addLanguage(i);for(const[p,i]of o)await this.loadLanguage(i)}getLoadedLanguages(){return Object.keys(this._resolvedGrammars)}resolveEmbeddedLanguages(e){if(this._langMap[e.name]=e,this._langGraph.set(e.name,e),e.embeddedLangs)for(const o of e.embeddedLangs)this._langGraph.set(o,this._langMap[o])}}class Kt{constructor(e,o,r){this.languageMap={},this.scopeToLangMap={},this._onigLibPromise=e,this._onigLibName=o,r.forEach(p=>this.addLanguage(p))}get onigLib(){return this._onigLibPromise}getOnigLibName(){return this._onigLibName}getLangRegistration(e){return this.languageMap[e]}async loadGrammar(e){return this.scopeToLangMap[e]}addLanguage(e){this.languageMap[e.name]=e,e.aliases&&e.aliases.forEach(o=>{this.languageMap[o]=e}),this.scopeToLangMap[e.scopeName]=e}}async function Yt(n={}){async function e(d){return Promise.resolve(typeof d=="function"?d():d).then(R=>R.default||R)}async function o(d){return Array.from(new Set((await Promise.all(d.map(async R=>await e(R).then(T=>Array.isArray(T)?T:[T])))).flat()))}const[r,p]=await Promise.all([Promise.all((n.themes||[]).map(e)),o(n.langs||[]),typeof n.loadWasm=="function"?Promise.resolve(n.loadWasm()).then(d=>He(d)):n.loadWasm?He(n.loadWasm):void 0]),i=new Kt(Promise.resolve({createOnigScanner(d){return Ft(d)},createOnigString(d){return $t(d)}}),"vscode-oniguruma",p),l=new zt(i,r,p);await l.init();function a(d){const R=l.getGrammar(d);if(!R)throw new Error(`[shikiji] Language \`${d}\` not found, you may need to load it first`);return R}function m(d){const R=l.getTheme(d);if(!R)throw new Error(`[shikiji] Theme \`${d}\` not found, you may need to load it first`);return R}function u(d){const R=m(d);l.setTheme(R);const T=l.getColorMap();return{theme:R,colorMap:T}}function P(){return l.getLoadedThemes()}function c(){return l.getLoadedLanguages()}async function b(...d){await l.loadLanguages(await o(d))}async function I(...d){await Promise.all(d.map(async R=>l.loadTheme(await e(R))))}return{setTheme:u,getTheme:m,getLangGrammar:a,getLoadedThemes:P,getLoadedLanguages:c,loadLanguage:b,loadTheme:I}}const Xt=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];class be{constructor(e,o,r){this.property=e,this.normal=o,r&&(this.space=r)}}be.prototype.property={};be.prototype.normal={};be.prototype.space=null;function at(n,e){const o={},r={};let p=-1;for(;++p4&&o.slice(0,4)==="data"&&tn.test(e)){if(e.charAt(4)==="-"){const i=e.slice(5).replace(Xe,sn);r="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=e.slice(4);if(!Xe.test(i)){let l=i.replace(nn,on);l.charAt(0)!=="-"&&(l="-"+l),e="data"+l}}p=je}return new p(r,e)}function on(n){return"-"+n.toLowerCase()}function sn(n){return n.charAt(1).toUpperCase()}const an=at([ct,ut,mt,dt,Zt],"html"),gt=at([ct,ut,mt,dt,en],"svg"),Qe={}.hasOwnProperty;function ln(n,e){const o=e||{};function r(p,...i){let l=r.invalid;const a=r.handlers;if(p&&Qe.call(p,n)){const m=String(p[n]);l=Qe.call(a,m)?a[m]:r.unknown}if(l)return l.call(this,p,...i)}return r.handlers=o.handlers||{},r.invalid=o.invalid,r.unknown=o.unknown,r}function un(n,e){if(n=n.replace(e.subset?cn(e.subset):/["&'<>`]/g,r),e.subset||e.escapeOnly)return n;return n.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,o).replace(/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,r);function o(p,i,l){return e.format((p.charCodeAt(0)-55296)*1024+p.charCodeAt(1)-56320+65536,l.charCodeAt(i+2),e)}function r(p,i,l){return e.format(p.charCodeAt(0),l.charCodeAt(i+1),e)}}function cn(n){const e=[];let o=-1;for(;++o",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},dn=["cent","copy","divide","gt","lt","not","para","times"],ft={}.hasOwnProperty,Be={};let Re;for(Re in De)ft.call(De,Re)&&(Be[De[Re]]=Re);function gn(n,e,o,r){const p=String.fromCharCode(n);if(ft.call(Be,p)){const i=Be[p],l="&"+i;return o&&mn.includes(i)&&!dn.includes(i)&&(!r||e&&e!==61&&/[^\da-z]/i.test(String.fromCharCode(e)))?l:l+";"}return""}function fn(n,e,o){let r=pn(n,e,o.omitOptionalSemicolons),p;if((o.useNamedReferences||o.useShortestReferences)&&(p=gn(n,e,o.omitOptionalSemicolons,o.attribute)),(o.useShortestReferences||!p)&&o.useShortestReferences){const i=hn(n,e,o.omitOptionalSemicolons);i.length"]}))+">":"|--!>|";function p(i){return he(i,Object.assign({},r.settings.characterReferences,{subset:["<",">"]}))}}function yn(n,e,o,r){return""}function Je(n,e){const o=String(n);if(typeof e!="string")throw new TypeError("Expected character");let r=0,p=o.indexOf(e);for(;p!==-1;)r++,p=o.indexOf(e,p+e.length);return r}function bn(n,e){const o=e||{};return(n[n.length-1]===""?[...n,""]:n).join((o.padRight?" ":"")+","+(o.padLeft===!1?"":" ")).trim()}function En(n){return n.join(" ").trim()}const vn=/[ \t\n\f\r]/g;function Ge(n){return typeof n=="object"?n.type==="text"?Ze(n.value):!1:Ze(n)}function Ze(n){return n.replace(vn,"")===""}const X=yt(1),_t=yt(-1),An=[];function yt(n){return e;function e(o,r,p){const i=o?o.children:An;let l=(r||0)+n,a=i[l];if(!p)for(;a&&Ge(a);)l+=n,a=i[l];return a}}const Pn={}.hasOwnProperty;function bt(n){return e;function e(o,r,p){return Pn.call(n,o.tagName)&&n[o.tagName](o,r,p)}}const $e=bt({body:kn,caption:xe,colgroup:xe,dd:In,dt:Tn,head:xe,html:Rn,li:Ln,optgroup:On,option:wn,p:Sn,rp:et,rt:et,tbody:Dn,td:tt,tfoot:xn,th:tt,thead:Cn,tr:Nn});function xe(n,e,o){const r=X(o,e,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&Ge(r.value.charAt(0)))}function Rn(n,e,o){const r=X(o,e);return!r||r.type!=="comment"}function kn(n,e,o){const r=X(o,e);return!r||r.type!=="comment"}function Sn(n,e,o){const r=X(o,e);return r?r.type==="element"&&(r.tagName==="address"||r.tagName==="article"||r.tagName==="aside"||r.tagName==="blockquote"||r.tagName==="details"||r.tagName==="div"||r.tagName==="dl"||r.tagName==="fieldset"||r.tagName==="figcaption"||r.tagName==="figure"||r.tagName==="footer"||r.tagName==="form"||r.tagName==="h1"||r.tagName==="h2"||r.tagName==="h3"||r.tagName==="h4"||r.tagName==="h5"||r.tagName==="h6"||r.tagName==="header"||r.tagName==="hgroup"||r.tagName==="hr"||r.tagName==="main"||r.tagName==="menu"||r.tagName==="nav"||r.tagName==="ol"||r.tagName==="p"||r.tagName==="pre"||r.tagName==="section"||r.tagName==="table"||r.tagName==="ul"):!o||!(o.type==="element"&&(o.tagName==="a"||o.tagName==="audio"||o.tagName==="del"||o.tagName==="ins"||o.tagName==="map"||o.tagName==="noscript"||o.tagName==="video"))}function Ln(n,e,o){const r=X(o,e);return!r||r.type==="element"&&r.tagName==="li"}function Tn(n,e,o){const r=X(o,e);return!!(r&&r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd"))}function In(n,e,o){const r=X(o,e);return!r||r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd")}function et(n,e,o){const r=X(o,e);return!r||r.type==="element"&&(r.tagName==="rp"||r.tagName==="rt")}function On(n,e,o){const r=X(o,e);return!r||r.type==="element"&&r.tagName==="optgroup"}function wn(n,e,o){const r=X(o,e);return!r||r.type==="element"&&(r.tagName==="option"||r.tagName==="optgroup")}function Cn(n,e,o){const r=X(o,e);return!!(r&&r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot"))}function Dn(n,e,o){const r=X(o,e);return!r||r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot")}function xn(n,e,o){return!X(o,e)}function Nn(n,e,o){const r=X(o,e);return!r||r.type==="element"&&r.tagName==="tr"}function tt(n,e,o){const r=X(o,e);return!r||r.type==="element"&&(r.tagName==="td"||r.tagName==="th")}const Vn=bt({body:jn,colgroup:Gn,head:Bn,html:Mn,tbody:$n});function Mn(n){const e=X(n,-1);return!e||e.type!=="comment"}function Bn(n){const e=n.children,o=[];let r=-1;for(;++r0}function jn(n){const e=X(n,-1,!0);return!e||e.type!=="comment"&&!(e.type==="text"&&Ge(e.value.charAt(0)))&&!(e.type==="element"&&(e.tagName==="meta"||e.tagName==="link"||e.tagName==="script"||e.tagName==="style"||e.tagName==="template"))}function Gn(n,e,o){const r=_t(o,e),p=X(n,-1,!0);return o&&r&&r.type==="element"&&r.tagName==="colgroup"&&$e(r,o.children.indexOf(r),o)?!1:!!(p&&p.type==="element"&&p.tagName==="col")}function $n(n,e,o){const r=_t(o,e),p=X(n,-1);return o&&r&&r.type==="element"&&(r.tagName==="thead"||r.tagName==="tbody")&&$e(r,o.children.indexOf(r),o)?!1:!!(p&&p.type==="element"&&p.tagName==="tr")}const ke={name:[[` diff --git a/_nuxt/index.25b95eab.js b/_nuxt/index.7e128566.js similarity index 51% rename from _nuxt/index.25b95eab.js rename to _nuxt/index.7e128566.js index 250d4e0b..5f637e14 100644 --- a/_nuxt/index.25b95eab.js +++ b/_nuxt/index.7e128566.js @@ -1 +1 @@ -import{d as e}from"./entry.8c781d5d.js";const o=e({name:"OgImage",async setup(n,{attrs:t}){return()=>null}});export{o as default}; +import{d as e}from"./entry.ae6f67a5.js";const o=e({name:"OgImage",async setup(n,{attrs:t}){return()=>null}});export{o as default}; diff --git a/_nuxt/index.7fba0786.js b/_nuxt/index.b27d3d40.js similarity index 99% rename from _nuxt/index.7fba0786.js rename to _nuxt/index.b27d3d40.js index d8668f16..3cd7f4fe 100644 --- a/_nuxt/index.7fba0786.js +++ b/_nuxt/index.b27d3d40.js @@ -1,4 +1,4 @@ -import{h as rf,f as bi,n as uo,a as Jr,s as ar,_ as af}from"./MDCRenderer.84953d36.js";import{aT as ea,_ as Ti,aj as fo,d as An,E as Kt,aU as of,aM as Qc,aP as Xc,M as sf,a9 as de,b as Z,a8 as Qt,n as ie,aC as q,f as he,ah as ta,ai as vt,c as ae,g as Je,w as Rt,e as Tn,aa as ot,aV as Zc,ac as Wt,t as Ze,F as mn,a7 as gn,ag as Jc,aW as cf,aX as lf,r as Sr,aY as uf,aZ as ff,a_ as hf,a$ as pf,b0 as _f,b1 as ho,al as df,b2 as mf,aE as gf,a3 as e1,p as yf,i as kf,k as wf,aO as bf,ap as Tf,q as Ef}from"./entry.8c781d5d.js";import{g as ir}from"./_commonjsHelpers.725317a4.js";import{n as po}from"./node.f7b4ab96.js";import{_ as Af}from"./Card.a6294156.js";function _o(e){if(e)throw e}var Nr=Object.prototype.hasOwnProperty,t1=Object.prototype.toString,mo=Object.defineProperty,go=Object.getOwnPropertyDescriptor,yo=function(t){return typeof Array.isArray=="function"?Array.isArray(t):t1.call(t)==="[object Array]"},ko=function(t){if(!t||t1.call(t)!=="[object Object]")return!1;var n=Nr.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&Nr.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var a;for(a in t);return typeof a>"u"||Nr.call(t,a)},wo=function(t,n){mo&&n.name==="__proto__"?mo(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},bo=function(t,n){if(n==="__proto__")if(Nr.call(t,n)){if(go)return go(t,n).value}else return;return t[n]},Cf=function e(){var t,n,r,a,i,o,s=arguments[0],c=1,l=arguments.length,p=!1;for(typeof s=="boolean"&&(p=s,s=arguments[1]||{},c=2),(s==null||typeof s!="object"&&typeof s!="function")&&(s={});co.length;let c;s&&o.push(a);try{c=e.apply(this,o)}catch(l){const p=l;if(s&&n)throw p;return a(p)}s||(c instanceof Promise?c.then(i,a):c instanceof Error?a(c):i(c))}function a(o,...s){n||(n=!0,t(o,...s))}function i(o){a(null,o)}}function Df(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?To(e.position):"start"in e||"end"in e?To(e):"line"in e||"column"in e?ri(e):""}function ri(e){return Eo(e&&e.line)+":"+Eo(e&&e.column)}function To(e){return ri(e&&e.start)+"-"+ri(e&&e.end)}function Eo(e){return e&&typeof e=="number"?e:1}class Me extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let a="",i={},o=!1;if(n&&("line"in n&&"column"in n?i={place:n}:"start"in n&&"end"in n?i={place:n}:"type"in n?i={ancestors:[n],place:n.position}:i={...n}),typeof t=="string"?a=t:!i.cause&&t&&(o=!0,a=t.message,i.cause=t),!i.ruleId&&!i.source&&typeof r=="string"){const c=r.indexOf(":");c===-1?i.ruleId=r:(i.source=r.slice(0,c),i.ruleId=r.slice(c+1))}if(!i.place&&i.ancestors&&i.ancestors){const c=i.ancestors[i.ancestors.length-1];c&&(i.place=c.position)}const s=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file,this.message=a,this.line=s?s.line:void 0,this.name=Df(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=o&&i.cause&&typeof i.cause.stack=="string"?i.cause.stack:"",this.actual,this.expected,this.note,this.url}}Me.prototype.file="";Me.prototype.name="";Me.prototype.reason="";Me.prototype.message="";Me.prototype.stack="";Me.prototype.column=void 0;Me.prototype.line=void 0;Me.prototype.ancestors=void 0;Me.prototype.cause=void 0;Me.prototype.fatal=void 0;Me.prototype.place=void 0;Me.prototype.ruleId=void 0;Me.prototype.source=void 0;const at={basename:Sf,dirname:Nf,extname:If,join:Ff,sep:"/"};function Sf(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');or(e);let n=0,r=-1,a=e.length,i;if(t===void 0||t.length===0||t.length>e.length){for(;a--;)if(e.codePointAt(a)===47){if(i){n=a+1;break}}else r<0&&(i=!0,r=a+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let o=-1,s=t.length-1;for(;a--;)if(e.codePointAt(a)===47){if(i){n=a+1;break}}else o<0&&(i=!0,o=a+1),s>-1&&(e.codePointAt(a)===t.codePointAt(s--)?s<0&&(r=a):(s=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function Nf(e){if(or(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function If(e){or(e);let t=e.length,n=-1,r=0,a=-1,i=0,o;for(;t--;){const s=e.codePointAt(t);if(s===47){if(o){r=t+1;break}continue}n<0&&(o=!0,n=t+1),s===46?a<0?a=t:i!==1&&(i=1):a>-1&&(i=-1)}return a<0||n<0||i===0||i===1&&a===n-1&&a===r+1?"":e.slice(a,n)}function Ff(...e){let t=-1,n;for(;++t0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function Rf(e,t){let n="",r=0,a=-1,i=0,o=-1,s,c;for(;++o<=e.length;){if(o2){if(c=n.lastIndexOf("/"),c!==n.length-1){c<0?(n="",r=0):(n=n.slice(0,c),r=n.length-1-n.lastIndexOf("/")),a=o,i=0;continue}}else if(n.length>0){n="",r=0,a=o,i=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(a+1,o):n=e.slice(a+1,o),r=o-a-1;a=o,i=0}else s===46&&i>-1?i++:i=-1}return n}function or(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Lf={cwd:vf};function vf(){return"/"}function ai(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function Mf(e){if(typeof e=="string")e=new URL(e);else if(!ai(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return Pf(e)}function Pf(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n0){let[d,...m]=p;const g=r[f][1];ni(g)&&ni(d)&&(d=ba(!0,g,d)),r[f]=[l,d,...m]}}}}const Gf=new Ei().freeze();function Ca(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function xa(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function za(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Co(e){if(!ni(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function xo(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function ur(e){return qf(e)?e:new Bf(e)}function qf(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function $f(e){return typeof e=="string"||Kf(e)}function Kf(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Yf={};function Wf(e,t){const n=t||Yf,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,a=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return n1(e,r,a)}function n1(e,t,n){if(Vf(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return zo(e.children,t,n)}return Array.isArray(e)?zo(e,t,n):""}function zo(e,t,n){const r=[];let a=-1;for(;++aa?0:a+t:t=t>a?a:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);i0?(Be(e,e.length,0,t),e):t}const Do={}.hasOwnProperty;function r1(e){const t={};let n=-1;for(;++no))return;const T=t.events.length;let H=T,G,z;for(;H--;)if(t.events[H][0]==="exit"&&t.events[H][1].type==="chunkFlow"){if(G){z=t.events[H][1].end;break}G=!0}for(E(r),h=T;hN;){const S=n[L];t.containerState=S[1],S[0].exit.call(t,e)}n.length=N}function D(){a.write([null]),i=void 0,a=void 0,t.containerState._closeFlow=void 0}}function oh(e,t,n){return ne(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Pr(e){if(e===null||ue(e)||Xt(e))return 1;if(na(e))return 2}function ra(e,t,n){const r=[];let a=-1;for(;++a1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const u=Object.assign({},e[r][1].end),f=Object.assign({},e[n][1].start);No(u,-c),No(f,c),o={type:c>1?"strongSequence":"emphasisSequence",start:u,end:Object.assign({},e[r][1].end)},s={type:c>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[n][1].start),end:f},i={type:c>1?"strongText":"emphasisText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},a={type:c>1?"strong":"emphasis",start:Object.assign({},o.start),end:Object.assign({},s.end)},e[r][1].end=Object.assign({},o.start),e[n][1].start=Object.assign({},s.end),l=[],e[r][1].end.offset-e[r][1].start.offset&&(l=Ue(l,[["enter",e[r][1],t],["exit",e[r][1],t]])),l=Ue(l,[["enter",a,t],["enter",o,t],["exit",o,t],["enter",i,t]]),l=Ue(l,ra(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),l=Ue(l,[["exit",i,t],["enter",s,t],["exit",s,t],["exit",a,t]]),e[n][1].end.offset-e[n][1].start.offset?(p=2,l=Ue(l,[["enter",e[n][1],t],["exit",e[n][1],t]])):p=0,Be(e,r-1,n-r+3,l),n=r+l.length-p-2;break}}for(n=-1;++n0&&ee(h)?ne(e,D,"linePrefix",i+1)(h):D(h)}function D(h){return h===null||W(h)?e.check(Fo,g,L)(h):(e.enter("codeFlowValue"),N(h))}function N(h){return h===null||W(h)?(e.exit("codeFlowValue"),D(h)):(e.consume(h),N)}function L(h){return e.exit("codeFenced"),t(h)}function S(h,T,H){let G=0;return z;function z(M){return h.enter("lineEnding"),h.consume(M),h.exit("lineEnding"),C}function C(M){return h.enter("codeFencedFence"),ee(M)?ne(h,R,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(M):R(M)}function R(M){return M===s?(h.enter("codeFencedFenceSequence"),V(M)):H(M)}function V(M){return M===s?(G++,h.consume(M),V):G>=o?(h.exit("codeFencedFenceSequence"),ee(M)?ne(h,v,"whitespace")(M):v(M)):H(M)}function v(M){return M===null||W(M)?(h.exit("codeFencedFence"),T(M)):H(M)}}}function yh(e,t,n){const r=this;return a;function a(o){return o===null?n(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i)}function i(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}const Da={name:"codeIndented",tokenize:wh},kh={tokenize:bh,partial:!0};function wh(e,t,n){const r=this;return a;function a(l){return e.enter("codeIndented"),ne(e,i,"linePrefix",4+1)(l)}function i(l){const p=r.events[r.events.length-1];return p&&p[1].type==="linePrefix"&&p[2].sliceSerialize(p[1],!0).length>=4?o(l):n(l)}function o(l){return l===null?c(l):W(l)?e.attempt(kh,o,c)(l):(e.enter("codeFlowValue"),s(l))}function s(l){return l===null||W(l)?(e.exit("codeFlowValue"),o(l)):(e.consume(l),s)}function c(l){return e.exit("codeIndented"),t(l)}}function bh(e,t,n){const r=this;return a;function a(o){return r.parser.lazy[r.now().line]?n(o):W(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a):ne(e,i,"linePrefix",4+1)(o)}function i(o){const s=r.events[r.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(o):W(o)?a(o):n(o)}}const Th={name:"codeText",tokenize:Ch,resolve:Eh,previous:Ah};function Eh(e){let t=e.length-4,n=3,r,a;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}}function c1(e,t,n,r,a,i,o,s,c){const l=c||Number.POSITIVE_INFINITY;let p=0;return u;function u(E){return E===60?(e.enter(r),e.enter(a),e.enter(i),e.consume(E),e.exit(i),f):E===null||E===32||E===41||Mr(E)?n(E):(e.enter(r),e.enter(o),e.enter(s),e.enter("chunkString",{contentType:"string"}),g(E))}function f(E){return E===62?(e.enter(i),e.consume(E),e.exit(i),e.exit(a),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),d(E))}function d(E){return E===62?(e.exit("chunkString"),e.exit(s),f(E)):E===null||E===60||W(E)?n(E):(e.consume(E),E===92?m:d)}function m(E){return E===60||E===62||E===92?(e.consume(E),d):d(E)}function g(E){return!p&&(E===null||E===41||ue(E))?(e.exit("chunkString"),e.exit(s),e.exit(o),e.exit(r),t(E)):p999||d===null||d===91||d===93&&!c||d===94&&!s&&"_hiddenFootnoteSupport"in o.parser.constructs?n(d):d===93?(e.exit(i),e.enter(a),e.consume(d),e.exit(a),e.exit(r),t):W(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),p):(e.enter("chunkString",{contentType:"string"}),u(d))}function u(d){return d===null||d===91||d===93||W(d)||s++>999?(e.exit("chunkString"),p(d)):(e.consume(d),c||(c=!ee(d)),d===92?f:u)}function f(d){return d===91||d===92||d===93?(e.consume(d),s++,u):u(d)}}function u1(e,t,n,r,a,i){let o;return s;function s(f){return f===34||f===39||f===40?(e.enter(r),e.enter(a),e.consume(f),e.exit(a),o=f===40?41:f,c):n(f)}function c(f){return f===o?(e.enter(a),e.consume(f),e.exit(a),e.exit(r),t):(e.enter(i),l(f))}function l(f){return f===o?(e.exit(i),c(o)):f===null?n(f):W(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),ne(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),p(f))}function p(f){return f===o||f===null||W(f)?(e.exit("chunkString"),l(f)):(e.consume(f),f===92?u:p)}function u(f){return f===o||f===92?(e.consume(f),p):p(f)}}function Gn(e,t){let n;return r;function r(a){return W(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),n=!0,r):ee(a)?ne(e,r,n?"linePrefix":"lineSuffix")(a):t(a)}}function et(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Fh={name:"definition",tokenize:Rh},Oh={tokenize:Lh,partial:!0};function Rh(e,t,n){const r=this;let a;return i;function i(d){return e.enter("definition"),o(d)}function o(d){return l1.call(r,e,s,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(d)}function s(d){return a=et(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),d===58?(e.enter("definitionMarker"),e.consume(d),e.exit("definitionMarker"),c):n(d)}function c(d){return ue(d)?Gn(e,l)(d):l(d)}function l(d){return c1(e,p,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(d)}function p(d){return e.attempt(Oh,u,u)(d)}function u(d){return ee(d)?ne(e,f,"whitespace")(d):f(d)}function f(d){return d===null||W(d)?(e.exit("definition"),r.parser.defined.push(a),t(d)):n(d)}}function Lh(e,t,n){return r;function r(s){return ue(s)?Gn(e,a)(s):n(s)}function a(s){return u1(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function i(s){return ee(s)?ne(e,o,"whitespace")(s):o(s)}function o(s){return s===null||W(s)?t(s):n(s)}}const vh={name:"hardBreakEscape",tokenize:Mh};function Mh(e,t,n){return r;function r(i){return e.enter("hardBreakEscape"),e.consume(i),a}function a(i){return W(i)?(e.exit("hardBreakEscape"),t(i)):n(i)}}const Ph={name:"headingAtx",tokenize:Hh,resolve:Bh};function Bh(e,t){let n=e.length-2,r=3,a,i;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(a={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},i={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},Be(e,r,n-r+1,[["enter",a,t],["enter",i,t],["exit",i,t],["exit",a,t]])),e}function Hh(e,t,n){let r=0;return a;function a(p){return e.enter("atxHeading"),i(p)}function i(p){return e.enter("atxHeadingSequence"),o(p)}function o(p){return p===35&&r++<6?(e.consume(p),o):p===null||ue(p)?(e.exit("atxHeadingSequence"),s(p)):n(p)}function s(p){return p===35?(e.enter("atxHeadingSequence"),c(p)):p===null||W(p)?(e.exit("atxHeading"),t(p)):ee(p)?ne(e,s,"whitespace")(p):(e.enter("atxHeadingText"),l(p))}function c(p){return p===35?(e.consume(p),c):(e.exit("atxHeadingSequence"),s(p))}function l(p){return p===null||p===35||ue(p)?(e.exit("atxHeadingText"),s(p)):(e.consume(p),l)}}const jh=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Ro=["pre","script","style","textarea"],Uh={name:"htmlFlow",tokenize:Kh,resolveTo:$h,concrete:!0},Gh={tokenize:Wh,partial:!0},qh={tokenize:Yh,partial:!0};function $h(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function Kh(e,t,n){const r=this;let a,i,o,s,c;return l;function l(b){return p(b)}function p(b){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(b),u}function u(b){return b===33?(e.consume(b),f):b===47?(e.consume(b),i=!0,g):b===63?(e.consume(b),a=3,r.interrupt?t:w):Ie(b)?(e.consume(b),o=String.fromCharCode(b),x):n(b)}function f(b){return b===45?(e.consume(b),a=2,d):b===91?(e.consume(b),a=5,s=0,m):Ie(b)?(e.consume(b),a=4,r.interrupt?t:w):n(b)}function d(b){return b===45?(e.consume(b),r.interrupt?t:w):n(b)}function m(b){const Ke="CDATA[";return b===Ke.charCodeAt(s++)?(e.consume(b),s===Ke.length?r.interrupt?t:R:m):n(b)}function g(b){return Ie(b)?(e.consume(b),o=String.fromCharCode(b),x):n(b)}function x(b){if(b===null||b===47||b===62||ue(b)){const Ke=b===47,en=o.toLowerCase();return!Ke&&!i&&Ro.includes(en)?(a=1,r.interrupt?t(b):R(b)):jh.includes(o.toLowerCase())?(a=6,Ke?(e.consume(b),E):r.interrupt?t(b):R(b)):(a=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(b):i?D(b):N(b))}return b===45||Se(b)?(e.consume(b),o+=String.fromCharCode(b),x):n(b)}function E(b){return b===62?(e.consume(b),r.interrupt?t:R):n(b)}function D(b){return ee(b)?(e.consume(b),D):z(b)}function N(b){return b===47?(e.consume(b),z):b===58||b===95||Ie(b)?(e.consume(b),L):ee(b)?(e.consume(b),N):z(b)}function L(b){return b===45||b===46||b===58||b===95||Se(b)?(e.consume(b),L):S(b)}function S(b){return b===61?(e.consume(b),h):ee(b)?(e.consume(b),S):N(b)}function h(b){return b===null||b===60||b===61||b===62||b===96?n(b):b===34||b===39?(e.consume(b),c=b,T):ee(b)?(e.consume(b),h):H(b)}function T(b){return b===c?(e.consume(b),c=null,G):b===null||W(b)?n(b):(e.consume(b),T)}function H(b){return b===null||b===34||b===39||b===47||b===60||b===61||b===62||b===96||ue(b)?S(b):(e.consume(b),H)}function G(b){return b===47||b===62||ee(b)?N(b):n(b)}function z(b){return b===62?(e.consume(b),C):n(b)}function C(b){return b===null||W(b)?R(b):ee(b)?(e.consume(b),C):n(b)}function R(b){return b===45&&a===2?(e.consume(b),K):b===60&&a===1?(e.consume(b),A):b===62&&a===4?(e.consume(b),$e):b===63&&a===3?(e.consume(b),w):b===93&&a===5?(e.consume(b),pe):W(b)&&(a===6||a===7)?(e.exit("htmlFlowData"),e.check(Gh,ut,V)(b)):b===null||W(b)?(e.exit("htmlFlowData"),V(b)):(e.consume(b),R)}function V(b){return e.check(qh,v,ut)(b)}function v(b){return e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),M}function M(b){return b===null||W(b)?V(b):(e.enter("htmlFlowData"),R(b))}function K(b){return b===45?(e.consume(b),w):R(b)}function A(b){return b===47?(e.consume(b),o="",X):R(b)}function X(b){if(b===62){const Ke=o.toLowerCase();return Ro.includes(Ke)?(e.consume(b),$e):R(b)}return Ie(b)&&o.length<8?(e.consume(b),o+=String.fromCharCode(b),X):R(b)}function pe(b){return b===93?(e.consume(b),w):R(b)}function w(b){return b===62?(e.consume(b),$e):b===45&&a===2?(e.consume(b),w):R(b)}function $e(b){return b===null||W(b)?(e.exit("htmlFlowData"),ut(b)):(e.consume(b),$e)}function ut(b){return e.exit("htmlFlow"),t(b)}}function Yh(e,t,n){const r=this;return a;function a(o){return W(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):n(o)}function i(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}function Wh(e,t,n){return r;function r(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),e.attempt(sr,t,n)}}const Vh={name:"htmlText",tokenize:Qh};function Qh(e,t,n){const r=this;let a,i,o;return s;function s(w){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(w),c}function c(w){return w===33?(e.consume(w),l):w===47?(e.consume(w),S):w===63?(e.consume(w),N):Ie(w)?(e.consume(w),H):n(w)}function l(w){return w===45?(e.consume(w),p):w===91?(e.consume(w),i=0,m):Ie(w)?(e.consume(w),D):n(w)}function p(w){return w===45?(e.consume(w),d):n(w)}function u(w){return w===null?n(w):w===45?(e.consume(w),f):W(w)?(o=u,A(w)):(e.consume(w),u)}function f(w){return w===45?(e.consume(w),d):u(w)}function d(w){return w===62?K(w):w===45?f(w):u(w)}function m(w){const $e="CDATA[";return w===$e.charCodeAt(i++)?(e.consume(w),i===$e.length?g:m):n(w)}function g(w){return w===null?n(w):w===93?(e.consume(w),x):W(w)?(o=g,A(w)):(e.consume(w),g)}function x(w){return w===93?(e.consume(w),E):g(w)}function E(w){return w===62?K(w):w===93?(e.consume(w),E):g(w)}function D(w){return w===null||w===62?K(w):W(w)?(o=D,A(w)):(e.consume(w),D)}function N(w){return w===null?n(w):w===63?(e.consume(w),L):W(w)?(o=N,A(w)):(e.consume(w),N)}function L(w){return w===62?K(w):N(w)}function S(w){return Ie(w)?(e.consume(w),h):n(w)}function h(w){return w===45||Se(w)?(e.consume(w),h):T(w)}function T(w){return W(w)?(o=T,A(w)):ee(w)?(e.consume(w),T):K(w)}function H(w){return w===45||Se(w)?(e.consume(w),H):w===47||w===62||ue(w)?G(w):n(w)}function G(w){return w===47?(e.consume(w),K):w===58||w===95||Ie(w)?(e.consume(w),z):W(w)?(o=G,A(w)):ee(w)?(e.consume(w),G):K(w)}function z(w){return w===45||w===46||w===58||w===95||Se(w)?(e.consume(w),z):C(w)}function C(w){return w===61?(e.consume(w),R):W(w)?(o=C,A(w)):ee(w)?(e.consume(w),C):G(w)}function R(w){return w===null||w===60||w===61||w===62||w===96?n(w):w===34||w===39?(e.consume(w),a=w,V):W(w)?(o=R,A(w)):ee(w)?(e.consume(w),R):(e.consume(w),v)}function V(w){return w===a?(e.consume(w),a=void 0,M):w===null?n(w):W(w)?(o=V,A(w)):(e.consume(w),V)}function v(w){return w===null||w===34||w===39||w===60||w===61||w===96?n(w):w===47||w===62||ue(w)?G(w):(e.consume(w),v)}function M(w){return w===47||w===62||ue(w)?G(w):n(w)}function K(w){return w===62?(e.consume(w),e.exit("htmlTextData"),e.exit("htmlText"),t):n(w)}function A(w){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),X}function X(w){return ee(w)?ne(e,pe,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(w):pe(w)}function pe(w){return e.enter("htmlTextData"),o(w)}}const Ai={name:"labelEnd",tokenize:np,resolveTo:tp,resolveAll:ep},Xh={tokenize:rp},Zh={tokenize:ap},Jh={tokenize:ip};function ep(e){let t=-1;for(;++t=3&&(l===null||W(l))?(e.exit("thematicBreak"),t(l)):n(l)}function c(l){return l===a?(e.consume(l),r++,c):(e.exit("thematicBreakSequence"),ee(l)?ne(e,s,"whitespace")(l):s(l))}}const Oe={name:"list",tokenize:_p,continuation:{tokenize:dp},exit:gp},hp={tokenize:yp,partial:!0},pp={tokenize:mp,partial:!0};function _p(e,t,n){const r=this,a=r.events[r.events.length-1];let i=a&&a[1].type==="linePrefix"?a[2].sliceSerialize(a[1],!0).length:0,o=0;return s;function s(d){const m=r.containerState.type||(d===42||d===43||d===45?"listUnordered":"listOrdered");if(m==="listUnordered"?!r.containerState.marker||d===r.containerState.marker:ii(d)){if(r.containerState.type||(r.containerState.type=m,e.enter(m,{_container:!0})),m==="listUnordered")return e.enter("listItemPrefix"),d===42||d===45?e.check(Ir,n,l)(d):l(d);if(!r.interrupt||d===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),c(d)}return n(d)}function c(d){return ii(d)&&++o<10?(e.consume(d),c):(!r.interrupt||o<2)&&(r.containerState.marker?d===r.containerState.marker:d===41||d===46)?(e.exit("listItemValue"),l(d)):n(d)}function l(d){return e.enter("listItemMarker"),e.consume(d),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||d,e.check(sr,r.interrupt?n:p,e.attempt(hp,f,u))}function p(d){return r.containerState.initialBlankLine=!0,i++,f(d)}function u(d){return ee(d)?(e.enter("listItemPrefixWhitespace"),e.consume(d),e.exit("listItemPrefixWhitespace"),f):n(d)}function f(d){return r.containerState.size=i+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(d)}}function dp(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(sr,a,i);function a(s){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,ne(e,t,"listItemIndent",r.containerState.size+1)(s)}function i(s){return r.containerState.furtherBlankLines||!ee(s)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(s)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(pp,t,o)(s))}function o(s){return r.containerState._closeFlow=!0,r.interrupt=void 0,ne(e,e.attempt(Oe,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function mp(e,t,n){const r=this;return ne(e,a,"listItemIndent",r.containerState.size+1);function a(i){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(i):n(i)}}function gp(e){e.exit(this.containerState.type)}function yp(e,t,n){const r=this;return ne(e,a,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4+1);function a(i){const o=r.events[r.events.length-1];return!ee(i)&&o&&o[1].type==="listItemPrefixWhitespace"?t(i):n(i)}}const Lo={name:"setextUnderline",tokenize:wp,resolveTo:kp};function kp(e,t){let n=e.length,r,a,i;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(a=n)}else e[n][1].type==="content"&&e.splice(n,1),!i&&e[n][1].type==="definition"&&(i=n);const o={type:"setextHeading",start:Object.assign({},e[a][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[a][1].type="setextHeadingText",i?(e.splice(a,0,["enter",o,t]),e.splice(i+1,0,["exit",e[r][1],t]),e[r][1].end=Object.assign({},e[i][1].end)):e[r][1]=o,e.push(["exit",o,t]),e}function wp(e,t,n){const r=this;let a;return i;function i(l){let p=r.events.length,u;for(;p--;)if(r.events[p][1].type!=="lineEnding"&&r.events[p][1].type!=="linePrefix"&&r.events[p][1].type!=="content"){u=r.events[p][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||u)?(e.enter("setextHeadingLine"),a=l,o(l)):n(l)}function o(l){return e.enter("setextHeadingLineSequence"),s(l)}function s(l){return l===a?(e.consume(l),s):(e.exit("setextHeadingLineSequence"),ee(l)?ne(e,c,"lineSuffix")(l):c(l))}function c(l){return l===null||W(l)?(e.exit("setextHeadingLine"),t(l)):n(l)}}const bp={tokenize:Tp};function Tp(e){const t=this,n=e.attempt(sr,r,e.attempt(this.parser.constructs.flowInitial,a,ne(e,e.attempt(this.parser.constructs.flow,a,e.attempt(zh,a)),"linePrefix")));return n;function r(i){if(i===null){e.consume(i);return}return e.enter("lineEndingBlank"),e.consume(i),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function a(i){if(i===null){e.consume(i);return}return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const Ep={resolveAll:h1()},Ap=f1("string"),Cp=f1("text");function f1(e){return{tokenize:t,resolveAll:h1(e==="text"?xp:void 0)};function t(n){const r=this,a=this.parser.constructs[e],i=n.attempt(a,o,s);return o;function o(p){return l(p)?i(p):s(p)}function s(p){if(p===null){n.consume(p);return}return n.enter("data"),n.consume(p),c}function c(p){return l(p)?(n.exit("data"),i(p)):(n.consume(p),c)}function l(p){if(p===null)return!0;const u=a[p];let f=-1;if(u)for(;++f-1){const s=o[0];typeof s=="string"?o[0]=s.slice(r):o.shift()}i>0&&o.push(e[a].slice(0,i))}return o}function Sp(e,t){let n=-1;const r=[];let a;for(;++n"u"||Nr.call(t,a)},wo=function(t,n){mo&&n.name==="__proto__"?mo(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},bo=function(t,n){if(n==="__proto__")if(Nr.call(t,n)){if(go)return go(t,n).value}else return;return t[n]},Cf=function e(){var t,n,r,a,i,o,s=arguments[0],c=1,l=arguments.length,p=!1;for(typeof s=="boolean"&&(p=s,s=arguments[1]||{},c=2),(s==null||typeof s!="object"&&typeof s!="function")&&(s={});co.length;let c;s&&o.push(a);try{c=e.apply(this,o)}catch(l){const p=l;if(s&&n)throw p;return a(p)}s||(c instanceof Promise?c.then(i,a):c instanceof Error?a(c):i(c))}function a(o,...s){n||(n=!0,t(o,...s))}function i(o){a(null,o)}}function Df(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?To(e.position):"start"in e||"end"in e?To(e):"line"in e||"column"in e?ri(e):""}function ri(e){return Eo(e&&e.line)+":"+Eo(e&&e.column)}function To(e){return ri(e&&e.start)+"-"+ri(e&&e.end)}function Eo(e){return e&&typeof e=="number"?e:1}class Me extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let a="",i={},o=!1;if(n&&("line"in n&&"column"in n?i={place:n}:"start"in n&&"end"in n?i={place:n}:"type"in n?i={ancestors:[n],place:n.position}:i={...n}),typeof t=="string"?a=t:!i.cause&&t&&(o=!0,a=t.message,i.cause=t),!i.ruleId&&!i.source&&typeof r=="string"){const c=r.indexOf(":");c===-1?i.ruleId=r:(i.source=r.slice(0,c),i.ruleId=r.slice(c+1))}if(!i.place&&i.ancestors&&i.ancestors){const c=i.ancestors[i.ancestors.length-1];c&&(i.place=c.position)}const s=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file,this.message=a,this.line=s?s.line:void 0,this.name=Df(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=o&&i.cause&&typeof i.cause.stack=="string"?i.cause.stack:"",this.actual,this.expected,this.note,this.url}}Me.prototype.file="";Me.prototype.name="";Me.prototype.reason="";Me.prototype.message="";Me.prototype.stack="";Me.prototype.column=void 0;Me.prototype.line=void 0;Me.prototype.ancestors=void 0;Me.prototype.cause=void 0;Me.prototype.fatal=void 0;Me.prototype.place=void 0;Me.prototype.ruleId=void 0;Me.prototype.source=void 0;const at={basename:Sf,dirname:Nf,extname:If,join:Ff,sep:"/"};function Sf(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');or(e);let n=0,r=-1,a=e.length,i;if(t===void 0||t.length===0||t.length>e.length){for(;a--;)if(e.codePointAt(a)===47){if(i){n=a+1;break}}else r<0&&(i=!0,r=a+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let o=-1,s=t.length-1;for(;a--;)if(e.codePointAt(a)===47){if(i){n=a+1;break}}else o<0&&(i=!0,o=a+1),s>-1&&(e.codePointAt(a)===t.codePointAt(s--)?s<0&&(r=a):(s=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function Nf(e){if(or(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function If(e){or(e);let t=e.length,n=-1,r=0,a=-1,i=0,o;for(;t--;){const s=e.codePointAt(t);if(s===47){if(o){r=t+1;break}continue}n<0&&(o=!0,n=t+1),s===46?a<0?a=t:i!==1&&(i=1):a>-1&&(i=-1)}return a<0||n<0||i===0||i===1&&a===n-1&&a===r+1?"":e.slice(a,n)}function Ff(...e){let t=-1,n;for(;++t0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function Rf(e,t){let n="",r=0,a=-1,i=0,o=-1,s,c;for(;++o<=e.length;){if(o2){if(c=n.lastIndexOf("/"),c!==n.length-1){c<0?(n="",r=0):(n=n.slice(0,c),r=n.length-1-n.lastIndexOf("/")),a=o,i=0;continue}}else if(n.length>0){n="",r=0,a=o,i=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(a+1,o):n=e.slice(a+1,o),r=o-a-1;a=o,i=0}else s===46&&i>-1?i++:i=-1}return n}function or(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Lf={cwd:vf};function vf(){return"/"}function ai(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function Mf(e){if(typeof e=="string")e=new URL(e);else if(!ai(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return Pf(e)}function Pf(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n0){let[d,...m]=p;const g=r[f][1];ni(g)&&ni(d)&&(d=ba(!0,g,d)),r[f]=[l,d,...m]}}}}const Gf=new Ei().freeze();function Ca(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function xa(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function za(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Co(e){if(!ni(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function xo(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function ur(e){return qf(e)?e:new Bf(e)}function qf(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function $f(e){return typeof e=="string"||Kf(e)}function Kf(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Yf={};function Wf(e,t){const n=t||Yf,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,a=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return n1(e,r,a)}function n1(e,t,n){if(Vf(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return zo(e.children,t,n)}return Array.isArray(e)?zo(e,t,n):""}function zo(e,t,n){const r=[];let a=-1;for(;++aa?0:a+t:t=t>a?a:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);i0?(Be(e,e.length,0,t),e):t}const Do={}.hasOwnProperty;function r1(e){const t={};let n=-1;for(;++no))return;const T=t.events.length;let H=T,G,z;for(;H--;)if(t.events[H][0]==="exit"&&t.events[H][1].type==="chunkFlow"){if(G){z=t.events[H][1].end;break}G=!0}for(E(r),h=T;hN;){const S=n[L];t.containerState=S[1],S[0].exit.call(t,e)}n.length=N}function D(){a.write([null]),i=void 0,a=void 0,t.containerState._closeFlow=void 0}}function oh(e,t,n){return ne(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Pr(e){if(e===null||ue(e)||Xt(e))return 1;if(na(e))return 2}function ra(e,t,n){const r=[];let a=-1;for(;++a1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const u=Object.assign({},e[r][1].end),f=Object.assign({},e[n][1].start);No(u,-c),No(f,c),o={type:c>1?"strongSequence":"emphasisSequence",start:u,end:Object.assign({},e[r][1].end)},s={type:c>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[n][1].start),end:f},i={type:c>1?"strongText":"emphasisText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},a={type:c>1?"strong":"emphasis",start:Object.assign({},o.start),end:Object.assign({},s.end)},e[r][1].end=Object.assign({},o.start),e[n][1].start=Object.assign({},s.end),l=[],e[r][1].end.offset-e[r][1].start.offset&&(l=Ue(l,[["enter",e[r][1],t],["exit",e[r][1],t]])),l=Ue(l,[["enter",a,t],["enter",o,t],["exit",o,t],["enter",i,t]]),l=Ue(l,ra(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),l=Ue(l,[["exit",i,t],["enter",s,t],["exit",s,t],["exit",a,t]]),e[n][1].end.offset-e[n][1].start.offset?(p=2,l=Ue(l,[["enter",e[n][1],t],["exit",e[n][1],t]])):p=0,Be(e,r-1,n-r+3,l),n=r+l.length-p-2;break}}for(n=-1;++n0&&ee(h)?ne(e,D,"linePrefix",i+1)(h):D(h)}function D(h){return h===null||W(h)?e.check(Fo,g,L)(h):(e.enter("codeFlowValue"),N(h))}function N(h){return h===null||W(h)?(e.exit("codeFlowValue"),D(h)):(e.consume(h),N)}function L(h){return e.exit("codeFenced"),t(h)}function S(h,T,H){let G=0;return z;function z(M){return h.enter("lineEnding"),h.consume(M),h.exit("lineEnding"),C}function C(M){return h.enter("codeFencedFence"),ee(M)?ne(h,R,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(M):R(M)}function R(M){return M===s?(h.enter("codeFencedFenceSequence"),V(M)):H(M)}function V(M){return M===s?(G++,h.consume(M),V):G>=o?(h.exit("codeFencedFenceSequence"),ee(M)?ne(h,v,"whitespace")(M):v(M)):H(M)}function v(M){return M===null||W(M)?(h.exit("codeFencedFence"),T(M)):H(M)}}}function yh(e,t,n){const r=this;return a;function a(o){return o===null?n(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i)}function i(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}const Da={name:"codeIndented",tokenize:wh},kh={tokenize:bh,partial:!0};function wh(e,t,n){const r=this;return a;function a(l){return e.enter("codeIndented"),ne(e,i,"linePrefix",4+1)(l)}function i(l){const p=r.events[r.events.length-1];return p&&p[1].type==="linePrefix"&&p[2].sliceSerialize(p[1],!0).length>=4?o(l):n(l)}function o(l){return l===null?c(l):W(l)?e.attempt(kh,o,c)(l):(e.enter("codeFlowValue"),s(l))}function s(l){return l===null||W(l)?(e.exit("codeFlowValue"),o(l)):(e.consume(l),s)}function c(l){return e.exit("codeIndented"),t(l)}}function bh(e,t,n){const r=this;return a;function a(o){return r.parser.lazy[r.now().line]?n(o):W(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a):ne(e,i,"linePrefix",4+1)(o)}function i(o){const s=r.events[r.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(o):W(o)?a(o):n(o)}}const Th={name:"codeText",tokenize:Ch,resolve:Eh,previous:Ah};function Eh(e){let t=e.length-4,n=3,r,a;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}}function c1(e,t,n,r,a,i,o,s,c){const l=c||Number.POSITIVE_INFINITY;let p=0;return u;function u(E){return E===60?(e.enter(r),e.enter(a),e.enter(i),e.consume(E),e.exit(i),f):E===null||E===32||E===41||Mr(E)?n(E):(e.enter(r),e.enter(o),e.enter(s),e.enter("chunkString",{contentType:"string"}),g(E))}function f(E){return E===62?(e.enter(i),e.consume(E),e.exit(i),e.exit(a),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),d(E))}function d(E){return E===62?(e.exit("chunkString"),e.exit(s),f(E)):E===null||E===60||W(E)?n(E):(e.consume(E),E===92?m:d)}function m(E){return E===60||E===62||E===92?(e.consume(E),d):d(E)}function g(E){return!p&&(E===null||E===41||ue(E))?(e.exit("chunkString"),e.exit(s),e.exit(o),e.exit(r),t(E)):p999||d===null||d===91||d===93&&!c||d===94&&!s&&"_hiddenFootnoteSupport"in o.parser.constructs?n(d):d===93?(e.exit(i),e.enter(a),e.consume(d),e.exit(a),e.exit(r),t):W(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),p):(e.enter("chunkString",{contentType:"string"}),u(d))}function u(d){return d===null||d===91||d===93||W(d)||s++>999?(e.exit("chunkString"),p(d)):(e.consume(d),c||(c=!ee(d)),d===92?f:u)}function f(d){return d===91||d===92||d===93?(e.consume(d),s++,u):u(d)}}function u1(e,t,n,r,a,i){let o;return s;function s(f){return f===34||f===39||f===40?(e.enter(r),e.enter(a),e.consume(f),e.exit(a),o=f===40?41:f,c):n(f)}function c(f){return f===o?(e.enter(a),e.consume(f),e.exit(a),e.exit(r),t):(e.enter(i),l(f))}function l(f){return f===o?(e.exit(i),c(o)):f===null?n(f):W(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),ne(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),p(f))}function p(f){return f===o||f===null||W(f)?(e.exit("chunkString"),l(f)):(e.consume(f),f===92?u:p)}function u(f){return f===o||f===92?(e.consume(f),p):p(f)}}function Gn(e,t){let n;return r;function r(a){return W(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),n=!0,r):ee(a)?ne(e,r,n?"linePrefix":"lineSuffix")(a):t(a)}}function et(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Fh={name:"definition",tokenize:Rh},Oh={tokenize:Lh,partial:!0};function Rh(e,t,n){const r=this;let a;return i;function i(d){return e.enter("definition"),o(d)}function o(d){return l1.call(r,e,s,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(d)}function s(d){return a=et(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),d===58?(e.enter("definitionMarker"),e.consume(d),e.exit("definitionMarker"),c):n(d)}function c(d){return ue(d)?Gn(e,l)(d):l(d)}function l(d){return c1(e,p,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(d)}function p(d){return e.attempt(Oh,u,u)(d)}function u(d){return ee(d)?ne(e,f,"whitespace")(d):f(d)}function f(d){return d===null||W(d)?(e.exit("definition"),r.parser.defined.push(a),t(d)):n(d)}}function Lh(e,t,n){return r;function r(s){return ue(s)?Gn(e,a)(s):n(s)}function a(s){return u1(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function i(s){return ee(s)?ne(e,o,"whitespace")(s):o(s)}function o(s){return s===null||W(s)?t(s):n(s)}}const vh={name:"hardBreakEscape",tokenize:Mh};function Mh(e,t,n){return r;function r(i){return e.enter("hardBreakEscape"),e.consume(i),a}function a(i){return W(i)?(e.exit("hardBreakEscape"),t(i)):n(i)}}const Ph={name:"headingAtx",tokenize:Hh,resolve:Bh};function Bh(e,t){let n=e.length-2,r=3,a,i;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(a={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},i={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},Be(e,r,n-r+1,[["enter",a,t],["enter",i,t],["exit",i,t],["exit",a,t]])),e}function Hh(e,t,n){let r=0;return a;function a(p){return e.enter("atxHeading"),i(p)}function i(p){return e.enter("atxHeadingSequence"),o(p)}function o(p){return p===35&&r++<6?(e.consume(p),o):p===null||ue(p)?(e.exit("atxHeadingSequence"),s(p)):n(p)}function s(p){return p===35?(e.enter("atxHeadingSequence"),c(p)):p===null||W(p)?(e.exit("atxHeading"),t(p)):ee(p)?ne(e,s,"whitespace")(p):(e.enter("atxHeadingText"),l(p))}function c(p){return p===35?(e.consume(p),c):(e.exit("atxHeadingSequence"),s(p))}function l(p){return p===null||p===35||ue(p)?(e.exit("atxHeadingText"),s(p)):(e.consume(p),l)}}const jh=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Ro=["pre","script","style","textarea"],Uh={name:"htmlFlow",tokenize:Kh,resolveTo:$h,concrete:!0},Gh={tokenize:Wh,partial:!0},qh={tokenize:Yh,partial:!0};function $h(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function Kh(e,t,n){const r=this;let a,i,o,s,c;return l;function l(b){return p(b)}function p(b){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(b),u}function u(b){return b===33?(e.consume(b),f):b===47?(e.consume(b),i=!0,g):b===63?(e.consume(b),a=3,r.interrupt?t:w):Ie(b)?(e.consume(b),o=String.fromCharCode(b),x):n(b)}function f(b){return b===45?(e.consume(b),a=2,d):b===91?(e.consume(b),a=5,s=0,m):Ie(b)?(e.consume(b),a=4,r.interrupt?t:w):n(b)}function d(b){return b===45?(e.consume(b),r.interrupt?t:w):n(b)}function m(b){const Ke="CDATA[";return b===Ke.charCodeAt(s++)?(e.consume(b),s===Ke.length?r.interrupt?t:R:m):n(b)}function g(b){return Ie(b)?(e.consume(b),o=String.fromCharCode(b),x):n(b)}function x(b){if(b===null||b===47||b===62||ue(b)){const Ke=b===47,en=o.toLowerCase();return!Ke&&!i&&Ro.includes(en)?(a=1,r.interrupt?t(b):R(b)):jh.includes(o.toLowerCase())?(a=6,Ke?(e.consume(b),E):r.interrupt?t(b):R(b)):(a=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(b):i?D(b):N(b))}return b===45||Se(b)?(e.consume(b),o+=String.fromCharCode(b),x):n(b)}function E(b){return b===62?(e.consume(b),r.interrupt?t:R):n(b)}function D(b){return ee(b)?(e.consume(b),D):z(b)}function N(b){return b===47?(e.consume(b),z):b===58||b===95||Ie(b)?(e.consume(b),L):ee(b)?(e.consume(b),N):z(b)}function L(b){return b===45||b===46||b===58||b===95||Se(b)?(e.consume(b),L):S(b)}function S(b){return b===61?(e.consume(b),h):ee(b)?(e.consume(b),S):N(b)}function h(b){return b===null||b===60||b===61||b===62||b===96?n(b):b===34||b===39?(e.consume(b),c=b,T):ee(b)?(e.consume(b),h):H(b)}function T(b){return b===c?(e.consume(b),c=null,G):b===null||W(b)?n(b):(e.consume(b),T)}function H(b){return b===null||b===34||b===39||b===47||b===60||b===61||b===62||b===96||ue(b)?S(b):(e.consume(b),H)}function G(b){return b===47||b===62||ee(b)?N(b):n(b)}function z(b){return b===62?(e.consume(b),C):n(b)}function C(b){return b===null||W(b)?R(b):ee(b)?(e.consume(b),C):n(b)}function R(b){return b===45&&a===2?(e.consume(b),K):b===60&&a===1?(e.consume(b),A):b===62&&a===4?(e.consume(b),$e):b===63&&a===3?(e.consume(b),w):b===93&&a===5?(e.consume(b),pe):W(b)&&(a===6||a===7)?(e.exit("htmlFlowData"),e.check(Gh,ut,V)(b)):b===null||W(b)?(e.exit("htmlFlowData"),V(b)):(e.consume(b),R)}function V(b){return e.check(qh,v,ut)(b)}function v(b){return e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),M}function M(b){return b===null||W(b)?V(b):(e.enter("htmlFlowData"),R(b))}function K(b){return b===45?(e.consume(b),w):R(b)}function A(b){return b===47?(e.consume(b),o="",X):R(b)}function X(b){if(b===62){const Ke=o.toLowerCase();return Ro.includes(Ke)?(e.consume(b),$e):R(b)}return Ie(b)&&o.length<8?(e.consume(b),o+=String.fromCharCode(b),X):R(b)}function pe(b){return b===93?(e.consume(b),w):R(b)}function w(b){return b===62?(e.consume(b),$e):b===45&&a===2?(e.consume(b),w):R(b)}function $e(b){return b===null||W(b)?(e.exit("htmlFlowData"),ut(b)):(e.consume(b),$e)}function ut(b){return e.exit("htmlFlow"),t(b)}}function Yh(e,t,n){const r=this;return a;function a(o){return W(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):n(o)}function i(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}function Wh(e,t,n){return r;function r(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),e.attempt(sr,t,n)}}const Vh={name:"htmlText",tokenize:Qh};function Qh(e,t,n){const r=this;let a,i,o;return s;function s(w){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(w),c}function c(w){return w===33?(e.consume(w),l):w===47?(e.consume(w),S):w===63?(e.consume(w),N):Ie(w)?(e.consume(w),H):n(w)}function l(w){return w===45?(e.consume(w),p):w===91?(e.consume(w),i=0,m):Ie(w)?(e.consume(w),D):n(w)}function p(w){return w===45?(e.consume(w),d):n(w)}function u(w){return w===null?n(w):w===45?(e.consume(w),f):W(w)?(o=u,A(w)):(e.consume(w),u)}function f(w){return w===45?(e.consume(w),d):u(w)}function d(w){return w===62?K(w):w===45?f(w):u(w)}function m(w){const $e="CDATA[";return w===$e.charCodeAt(i++)?(e.consume(w),i===$e.length?g:m):n(w)}function g(w){return w===null?n(w):w===93?(e.consume(w),x):W(w)?(o=g,A(w)):(e.consume(w),g)}function x(w){return w===93?(e.consume(w),E):g(w)}function E(w){return w===62?K(w):w===93?(e.consume(w),E):g(w)}function D(w){return w===null||w===62?K(w):W(w)?(o=D,A(w)):(e.consume(w),D)}function N(w){return w===null?n(w):w===63?(e.consume(w),L):W(w)?(o=N,A(w)):(e.consume(w),N)}function L(w){return w===62?K(w):N(w)}function S(w){return Ie(w)?(e.consume(w),h):n(w)}function h(w){return w===45||Se(w)?(e.consume(w),h):T(w)}function T(w){return W(w)?(o=T,A(w)):ee(w)?(e.consume(w),T):K(w)}function H(w){return w===45||Se(w)?(e.consume(w),H):w===47||w===62||ue(w)?G(w):n(w)}function G(w){return w===47?(e.consume(w),K):w===58||w===95||Ie(w)?(e.consume(w),z):W(w)?(o=G,A(w)):ee(w)?(e.consume(w),G):K(w)}function z(w){return w===45||w===46||w===58||w===95||Se(w)?(e.consume(w),z):C(w)}function C(w){return w===61?(e.consume(w),R):W(w)?(o=C,A(w)):ee(w)?(e.consume(w),C):G(w)}function R(w){return w===null||w===60||w===61||w===62||w===96?n(w):w===34||w===39?(e.consume(w),a=w,V):W(w)?(o=R,A(w)):ee(w)?(e.consume(w),R):(e.consume(w),v)}function V(w){return w===a?(e.consume(w),a=void 0,M):w===null?n(w):W(w)?(o=V,A(w)):(e.consume(w),V)}function v(w){return w===null||w===34||w===39||w===60||w===61||w===96?n(w):w===47||w===62||ue(w)?G(w):(e.consume(w),v)}function M(w){return w===47||w===62||ue(w)?G(w):n(w)}function K(w){return w===62?(e.consume(w),e.exit("htmlTextData"),e.exit("htmlText"),t):n(w)}function A(w){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),X}function X(w){return ee(w)?ne(e,pe,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(w):pe(w)}function pe(w){return e.enter("htmlTextData"),o(w)}}const Ai={name:"labelEnd",tokenize:np,resolveTo:tp,resolveAll:ep},Xh={tokenize:rp},Zh={tokenize:ap},Jh={tokenize:ip};function ep(e){let t=-1;for(;++t=3&&(l===null||W(l))?(e.exit("thematicBreak"),t(l)):n(l)}function c(l){return l===a?(e.consume(l),r++,c):(e.exit("thematicBreakSequence"),ee(l)?ne(e,s,"whitespace")(l):s(l))}}const Oe={name:"list",tokenize:_p,continuation:{tokenize:dp},exit:gp},hp={tokenize:yp,partial:!0},pp={tokenize:mp,partial:!0};function _p(e,t,n){const r=this,a=r.events[r.events.length-1];let i=a&&a[1].type==="linePrefix"?a[2].sliceSerialize(a[1],!0).length:0,o=0;return s;function s(d){const m=r.containerState.type||(d===42||d===43||d===45?"listUnordered":"listOrdered");if(m==="listUnordered"?!r.containerState.marker||d===r.containerState.marker:ii(d)){if(r.containerState.type||(r.containerState.type=m,e.enter(m,{_container:!0})),m==="listUnordered")return e.enter("listItemPrefix"),d===42||d===45?e.check(Ir,n,l)(d):l(d);if(!r.interrupt||d===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),c(d)}return n(d)}function c(d){return ii(d)&&++o<10?(e.consume(d),c):(!r.interrupt||o<2)&&(r.containerState.marker?d===r.containerState.marker:d===41||d===46)?(e.exit("listItemValue"),l(d)):n(d)}function l(d){return e.enter("listItemMarker"),e.consume(d),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||d,e.check(sr,r.interrupt?n:p,e.attempt(hp,f,u))}function p(d){return r.containerState.initialBlankLine=!0,i++,f(d)}function u(d){return ee(d)?(e.enter("listItemPrefixWhitespace"),e.consume(d),e.exit("listItemPrefixWhitespace"),f):n(d)}function f(d){return r.containerState.size=i+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(d)}}function dp(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(sr,a,i);function a(s){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,ne(e,t,"listItemIndent",r.containerState.size+1)(s)}function i(s){return r.containerState.furtherBlankLines||!ee(s)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(s)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(pp,t,o)(s))}function o(s){return r.containerState._closeFlow=!0,r.interrupt=void 0,ne(e,e.attempt(Oe,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function mp(e,t,n){const r=this;return ne(e,a,"listItemIndent",r.containerState.size+1);function a(i){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(i):n(i)}}function gp(e){e.exit(this.containerState.type)}function yp(e,t,n){const r=this;return ne(e,a,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4+1);function a(i){const o=r.events[r.events.length-1];return!ee(i)&&o&&o[1].type==="listItemPrefixWhitespace"?t(i):n(i)}}const Lo={name:"setextUnderline",tokenize:wp,resolveTo:kp};function kp(e,t){let n=e.length,r,a,i;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(a=n)}else e[n][1].type==="content"&&e.splice(n,1),!i&&e[n][1].type==="definition"&&(i=n);const o={type:"setextHeading",start:Object.assign({},e[a][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[a][1].type="setextHeadingText",i?(e.splice(a,0,["enter",o,t]),e.splice(i+1,0,["exit",e[r][1],t]),e[r][1].end=Object.assign({},e[i][1].end)):e[r][1]=o,e.push(["exit",o,t]),e}function wp(e,t,n){const r=this;let a;return i;function i(l){let p=r.events.length,u;for(;p--;)if(r.events[p][1].type!=="lineEnding"&&r.events[p][1].type!=="linePrefix"&&r.events[p][1].type!=="content"){u=r.events[p][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||u)?(e.enter("setextHeadingLine"),a=l,o(l)):n(l)}function o(l){return e.enter("setextHeadingLineSequence"),s(l)}function s(l){return l===a?(e.consume(l),s):(e.exit("setextHeadingLineSequence"),ee(l)?ne(e,c,"lineSuffix")(l):c(l))}function c(l){return l===null||W(l)?(e.exit("setextHeadingLine"),t(l)):n(l)}}const bp={tokenize:Tp};function Tp(e){const t=this,n=e.attempt(sr,r,e.attempt(this.parser.constructs.flowInitial,a,ne(e,e.attempt(this.parser.constructs.flow,a,e.attempt(zh,a)),"linePrefix")));return n;function r(i){if(i===null){e.consume(i);return}return e.enter("lineEndingBlank"),e.consume(i),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function a(i){if(i===null){e.consume(i);return}return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const Ep={resolveAll:h1()},Ap=f1("string"),Cp=f1("text");function f1(e){return{tokenize:t,resolveAll:h1(e==="text"?xp:void 0)};function t(n){const r=this,a=this.parser.constructs[e],i=n.attempt(a,o,s);return o;function o(p){return l(p)?i(p):s(p)}function s(p){if(p===null){n.consume(p);return}return n.enter("data"),n.consume(p),c}function c(p){return l(p)?(n.exit("data"),i(p)):(n.consume(p),c)}function l(p){if(p===null)return!0;const u=a[p];let f=-1;if(u)for(;++f-1){const s=o[0];typeof s=="string"?o[0]=s.slice(r):o.shift()}i>0&&o.push(e[a].slice(0,i))}return o}function Sp(e,t){let n=-1;const r=[];let a;for(;++n13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCharCode(n)}const Gp=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function _1(e){return e.replace(Gp,qp)}function qp(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const a=n.charCodeAt(1),i=a===120||a===88;return p1(n.slice(i?2:1),i?16:10)}return Qn(n)||e}function Fr(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Mo(e.position):"start"in e||"end"in e?Mo(e):"line"in e||"column"in e?si(e):""}function si(e){return Po(e&&e.line)+":"+Po(e&&e.column)}function Mo(e){return si(e&&e.start)+"-"+si(e&&e.end)}function Po(e){return e&&typeof e=="number"?e:1}const d1={}.hasOwnProperty,$p=function(e,t,n){return typeof t!="string"&&(n=t,t=void 0),Kp(n)(Up(Hp(n).document().write(jp()(e,t,!0))))};function Kp(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(co),autolinkProtocol:C,autolinkEmail:C,atxHeading:s(io),blockQuote:s(ka),characterEscape:C,characterReference:C,codeFenced:s(ao),codeFencedFenceInfo:c,codeFencedFenceMeta:c,codeIndented:s(ao,c),codeText:s(Wu,c),codeTextData:C,data:C,codeFlowValue:C,definition:s(Vu),definitionDestinationString:c,definitionLabelString:c,definitionTitleString:c,emphasis:s(Qu),hardBreakEscape:s(oo),hardBreakTrailing:s(oo),htmlFlow:s(so,c),htmlFlowData:C,htmlText:s(so,c),htmlTextData:C,image:s(Xu),label:c,link:s(co),listItem:s(Zu),listItemValue:m,listOrdered:s(lo,d),listUnordered:s(lo),paragraph:s(Ju),reference:en,referenceString:c,resourceDestinationString:c,resourceTitleString:c,setextHeading:s(io),strong:s(ef),thematicBreak:s(nf)},exit:{atxHeading:p(),atxHeadingSequence:T,autolink:p(),autolinkEmail:rn,autolinkProtocol:nn,blockQuote:p(),characterEscapeValue:R,characterReferenceMarkerHexadecimal:tn,characterReferenceMarkerNumeric:tn,characterReferenceValue:At,codeFenced:p(D),codeFencedFence:E,codeFencedFenceInfo:g,codeFencedFenceMeta:x,codeFlowValue:R,codeIndented:p(N),codeText:p(A),codeTextData:R,data:R,definition:p(),definitionDestinationString:h,definitionLabelString:L,definitionTitleString:S,emphasis:p(),hardBreakEscape:p(v),hardBreakTrailing:p(v),htmlFlow:p(M),htmlFlowData:R,htmlText:p(K),htmlTextData:R,image:p(pe),label:$e,labelText:w,lineEnding:V,link:p(X),listItem:p(),listOrdered:p(),listUnordered:p(),paragraph:p(),referenceString:Ee,resourceDestinationString:ut,resourceTitleString:b,resource:Ke,setextHeading:p(z),setextHeadingLineSequence:G,setextHeadingText:H,strong:p(),thematicBreak:p()}};m1(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(I){let j={type:"root",children:[]};const Q={stack:[j],tokenStack:[],config:t,enter:l,exit:u,buffer:c,resume:f,setData:i,getData:o},oe=[];let le=-1;for(;++le0){const Ye=Q.tokenStack[Q.tokenStack.length-1];(Ye[1]||Bo).call(Q,void 0,Ye[0])}for(j.position={start:xt(I.length>0?I[0][1].start:{line:1,column:1,offset:0}),end:xt(I.length>0?I[I.length-2][1].end:{line:1,column:1,offset:0})},le=-1;++le{const r=this.data("settings");return $p(n,Object.assign({},r,e,{extensions:this.data("micromarkExtensions")||[],mdastExtensions:this.data("fromMarkdownExtensions")||[]}))}})}function Vp(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function Qp(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:` `}]}function Xp(e,t){const n=t.value?t.value+` @@ -92,4 +92,4 @@ ${e} `))}function c(d,m,g,x){const E=g.enter("tableCell"),D=g.enter("phrasing"),N=au(d,g,{...x,before:i,after:i});return D(),E(),N}function l(d,m){return oj(d,{align:m,alignDelimiters:r,padding:n,stringLength:a})}function p(d,m,g){const x=d.children;let E=-1;const D=[],N=m.enter("table");for(;++E-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+i);let o=i.length+1;(a==="tab"||a==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(o=Math.ceil(o/4)*4);const s=n.createTracker(r);s.move(i+" ".repeat(o-i.length)),s.shift(o);const c=n.enter("listItem"),l=n.indentLines(n.containerFlow(e,s.current()),p);return c(),l;function p(u,f,d){return f?(d?"":" ".repeat(o))+u:(d?i:i+" ".repeat(o-i.length))+u}}const kj={exit:{taskListCheckValueChecked:Is,taskListCheckValueUnchecked:Is,paragraph:bj}},wj={unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Tj}};function Is(e){const t=this.stack[this.stack.length-2];t.checked=e.type==="taskListCheckValueChecked"}function bj(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1],r=n.children[0];if(r&&r.type==="text"){const a=t.children;let i=-1,o;for(;++i{const n=(a,i)=>(e.set(i,a),a),r=a=>{if(e.has(a))return e.get(a);const[i,o]=t[a];switch(i){case fa:case su:return n(o,a);case Yr:{const s=n([],a);for(const c of o)s.push(r(c));return s}case Wr:{const s=n({},a);for(const[c,l]of o)s[r(c)]=r(l);return s}case Bi:return n(new Date(o),a);case Hi:{const{source:s,flags:c}=o;return n(new RegExp(s,c),a)}case ji:{const s=n(new Map,a);for(const[c,l]of o)s.set(r(c),r(l));return s}case Ui:{const s=n(new Set,a);for(const c of o)s.add(r(c));return s}case cu:{const{name:s,message:c}=o;return n(new Fs[s](c),a)}case lu:return n(BigInt(o),a);case"BigInt":return n(Object(BigInt(o)),a)}return n(new Fs[i](o),a)};return r},Os=e=>xj(new Map,e)(0),sn="",{toString:zj}={},{keys:Dj}=Object,Fn=e=>{const t=typeof e;if(t!=="object"||!e)return[fa,t];const n=zj.call(e).slice(8,-1);switch(n){case"Array":return[Yr,sn];case"Object":return[Wr,sn];case"Date":return[Bi,sn];case"RegExp":return[Hi,sn];case"Map":return[ji,sn];case"Set":return[Ui,sn]}return n.includes("Array")?[Yr,n]:n.includes("Error")?[cu,n]:[Wr,n]},pr=([e,t])=>e===fa&&(t==="function"||t==="symbol"),Sj=(e,t,n,r)=>{const a=(o,s)=>{const c=r.push(o)-1;return n.set(s,c),c},i=o=>{if(n.has(o))return n.get(o);let[s,c]=Fn(o);switch(s){case fa:{let p=o;switch(c){case"bigint":s=lu,p=o.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+c);p=null;break;case"undefined":return a([su],o)}return a([s,p],o)}case Yr:{if(c)return a([c,[...o]],o);const p=[],u=a([s,p],o);for(const f of o)p.push(i(f));return u}case Wr:{if(c)switch(c){case"BigInt":return a([c,o.toString()],o);case"Boolean":case"Number":case"String":return a([c,o.valueOf()],o)}if(t&&"toJSON"in o)return i(o.toJSON());const p=[],u=a([s,p],o);for(const f of Dj(o))(e||!pr(Fn(o[f])))&&p.push([i(f),i(o[f])]);return u}case Bi:return a([s,o.toISOString()],o);case Hi:{const{source:p,flags:u}=o;return a([s,{source:p,flags:u}],o)}case ji:{const p=[],u=a([s,p],o);for(const[f,d]of o)(e||!(pr(Fn(f))||pr(Fn(d))))&&p.push([i(f),i(d)]);return u}case Ui:{const p=[],u=a([s,p],o);for(const f of o)(e||!pr(Fn(f)))&&p.push(i(f));return u}}const{message:l}=o;return a([s,{name:c,message:l}],o)};return i},Rs=(e,{json:t,lossy:n}={})=>{const r=[];return Sj(!(t||n),!!t,new Map,r)(e),r},Ba=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?Os(Rs(e,t)):structuredClone(e):(e,t)=>Os(Rs(e,t)),Nj=function(e,t,n,r,a){const i=Gi(t);if(n!=null&&(typeof n!="number"||n<0||n===Number.POSITIVE_INFINITY))throw new Error("Expected positive finite `index`");if(r!=null&&(!r.type||!r.children))throw new Error("Expected valid `parent`");if(n==null!=(r==null))throw new Error("Expected both `index` and `parent`");return uu(e)?i.call(a,e,n,r):!1},Gi=function(e){if(e==null)return Oj;if(typeof e=="string")return Fj(e);if(typeof e=="object")return Ij(e);if(typeof e=="function")return qi(e);throw new Error("Expected function, string, or array as `test`")};function Ij(e){const t=[];let n=-1;for(;++n0&&(i.properties.rel=[...f]),d&&(i.properties.target=d),p){const g=On(t.contentProperties,i)||{};i.children.push({type:"element",tagName:"span",properties:Ba(g),children:Ba(p)})}}}})}}function On(e,t){return typeof e=="function"?e(t):e}const Ls={accept:"input",className:null,dropzone:null,htmlFor:"output",headers:["td","th"],itemProp:null,itemRef:null,itemType:null,ping:["a","area"],rel:["a","area","link"],sandbox:"iframe",sizes:"link"};function Uj(){return function(e){const t=new Map,n=[];Mt(e,"element",function(i){let o;for(o in i.properties)if(Object.hasOwn(i.properties,o)){const s=i.properties[o];Object.hasOwn(Ls,o)&&Nj(i,Ls[o])&&Array.isArray(s)&&r(o,s)}}),a();function r(i,o){let s=-1,c=t.get(i);for(c||(c=new Map,t.set(i,c));++s=55296&&e<=57343};tt.isSurrogatePair=function(e){return e>=56320&&e<=57343};tt.getSurrogatePairCodePoint=function(e,t){return(e-55296)*1024+9216+t};tt.isControlCodePoint=function(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159};tt.isUndefinedCodePoint=function(e){return e>=64976&&e<=65007||qj.indexOf(e)>-1};var $i={controlCharacterInInputStream:"control-character-in-input-stream",noncharacterInInputStream:"noncharacter-in-input-stream",surrogateInInputStream:"surrogate-in-input-stream",nonVoidHtmlElementStartTagWithTrailingSolidus:"non-void-html-element-start-tag-with-trailing-solidus",endTagWithAttributes:"end-tag-with-attributes",endTagWithTrailingSolidus:"end-tag-with-trailing-solidus",unexpectedSolidusInTag:"unexpected-solidus-in-tag",unexpectedNullCharacter:"unexpected-null-character",unexpectedQuestionMarkInsteadOfTagName:"unexpected-question-mark-instead-of-tag-name",invalidFirstCharacterOfTagName:"invalid-first-character-of-tag-name",unexpectedEqualsSignBeforeAttributeName:"unexpected-equals-sign-before-attribute-name",missingEndTagName:"missing-end-tag-name",unexpectedCharacterInAttributeName:"unexpected-character-in-attribute-name",unknownNamedCharacterReference:"unknown-named-character-reference",missingSemicolonAfterCharacterReference:"missing-semicolon-after-character-reference",unexpectedCharacterAfterDoctypeSystemIdentifier:"unexpected-character-after-doctype-system-identifier",unexpectedCharacterInUnquotedAttributeValue:"unexpected-character-in-unquoted-attribute-value",eofBeforeTagName:"eof-before-tag-name",eofInTag:"eof-in-tag",missingAttributeValue:"missing-attribute-value",missingWhitespaceBetweenAttributes:"missing-whitespace-between-attributes",missingWhitespaceAfterDoctypePublicKeyword:"missing-whitespace-after-doctype-public-keyword",missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers:"missing-whitespace-between-doctype-public-and-system-identifiers",missingWhitespaceAfterDoctypeSystemKeyword:"missing-whitespace-after-doctype-system-keyword",missingQuoteBeforeDoctypePublicIdentifier:"missing-quote-before-doctype-public-identifier",missingQuoteBeforeDoctypeSystemIdentifier:"missing-quote-before-doctype-system-identifier",missingDoctypePublicIdentifier:"missing-doctype-public-identifier",missingDoctypeSystemIdentifier:"missing-doctype-system-identifier",abruptDoctypePublicIdentifier:"abrupt-doctype-public-identifier",abruptDoctypeSystemIdentifier:"abrupt-doctype-system-identifier",cdataInHtmlContent:"cdata-in-html-content",incorrectlyOpenedComment:"incorrectly-opened-comment",eofInScriptHtmlCommentLikeText:"eof-in-script-html-comment-like-text",eofInDoctype:"eof-in-doctype",nestedComment:"nested-comment",abruptClosingOfEmptyComment:"abrupt-closing-of-empty-comment",eofInComment:"eof-in-comment",incorrectlyClosedComment:"incorrectly-closed-comment",eofInCdata:"eof-in-cdata",absenceOfDigitsInNumericCharacterReference:"absence-of-digits-in-numeric-character-reference",nullCharacterReference:"null-character-reference",surrogateCharacterReference:"surrogate-character-reference",characterReferenceOutsideUnicodeRange:"character-reference-outside-unicode-range",controlCharacterReference:"control-character-reference",noncharacterCharacterReference:"noncharacter-character-reference",missingWhitespaceBeforeDoctypeName:"missing-whitespace-before-doctype-name",missingDoctypeName:"missing-doctype-name",invalidCharacterSequenceAfterDoctypeName:"invalid-character-sequence-after-doctype-name",duplicateAttribute:"duplicate-attribute",nonConformingDoctype:"non-conforming-doctype",missingDoctype:"missing-doctype",misplacedDoctype:"misplaced-doctype",endTagWithoutMatchingOpenElement:"end-tag-without-matching-open-element",closingOfElementWithOpenChildElements:"closing-of-element-with-open-child-elements",disallowedContentInNoscriptInHead:"disallowed-content-in-noscript-in-head",openElementsLeftAfterEof:"open-elements-left-after-eof",abandonedHeadElementChild:"abandoned-head-element-child",misplacedStartTagForHeadElement:"misplaced-start-tag-for-head-element",nestedNoscriptInHead:"nested-noscript-in-head",eofInElementThatCanContainOnlyText:"eof-in-element-that-can-contain-only-text"};const pn=tt,Ha=$i,Ut=pn.CODE_POINTS,$j=65536;let Kj=class{constructor(){this.html=null,this.pos=-1,this.lastGapPos=-1,this.lastCharPos=-1,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=$j}_err(){}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(t){if(this.pos!==this.lastCharPos){const n=this.html.charCodeAt(this.pos+1);if(pn.isSurrogatePair(n))return this.pos++,this._addGap(),pn.getSurrogatePairCodePoint(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,Ut.EOF;return this._err(Ha.surrogateInInputStream),t}dropParsedChunk(){this.pos>this.bufferWaterline&&(this.lastCharPos-=this.pos,this.html=this.html.substring(this.pos),this.pos=0,this.lastGapPos=-1,this.gapStack=[])}write(t,n){this.html?this.html+=t:this.html=t,this.lastCharPos=this.html.length-1,this.endOfChunkHit=!1,this.lastChunkWritten=n}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1,this.html.length),this.lastCharPos=this.html.length-1,this.endOfChunkHit=!1}advance(){if(this.pos++,this.pos>this.lastCharPos)return this.endOfChunkHit=!this.lastChunkWritten,Ut.EOF;let t=this.html.charCodeAt(this.pos);return this.skipNextNewLine&&t===Ut.LINE_FEED?(this.skipNextNewLine=!1,this._addGap(),this.advance()):t===Ut.CARRIAGE_RETURN?(this.skipNextNewLine=!0,Ut.LINE_FEED):(this.skipNextNewLine=!1,pn.isSurrogate(t)&&(t=this._processSurrogate(t)),t>31&&t<127||t===Ut.LINE_FEED||t===Ut.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){pn.isControlCodePoint(t)?this._err(Ha.controlCharacterInInputStream):pn.isUndefinedCodePoint(t)&&this._err(Ha.noncharacterInInputStream)}retreat(){this.pos===this.lastGapPos&&(this.lastGapPos=this.gapStack.pop(),this.pos--),this.pos--}};var Yj=Kj,Wj=new Uint16Array([4,52,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,106,303,412,810,1432,1701,1796,1987,2114,2360,2420,2484,3170,3251,4140,4393,4575,4610,5106,5512,5728,6117,6274,6315,6345,6427,6516,7002,7910,8733,9323,9870,10170,10631,10893,11318,11386,11467,12773,13092,14474,14922,15448,15542,16419,17666,18166,18611,19004,19095,19298,19397,4,16,69,77,97,98,99,102,103,108,109,110,111,112,114,115,116,117,140,150,158,169,176,194,199,210,216,222,226,242,256,266,283,294,108,105,103,5,198,1,59,148,1,198,80,5,38,1,59,156,1,38,99,117,116,101,5,193,1,59,167,1,193,114,101,118,101,59,1,258,4,2,105,121,182,191,114,99,5,194,1,59,189,1,194,59,1,1040,114,59,3,55349,56580,114,97,118,101,5,192,1,59,208,1,192,112,104,97,59,1,913,97,99,114,59,1,256,100,59,1,10835,4,2,103,112,232,237,111,110,59,1,260,102,59,3,55349,56632,112,108,121,70,117,110,99,116,105,111,110,59,1,8289,105,110,103,5,197,1,59,264,1,197,4,2,99,115,272,277,114,59,3,55349,56476,105,103,110,59,1,8788,105,108,100,101,5,195,1,59,292,1,195,109,108,5,196,1,59,301,1,196,4,8,97,99,101,102,111,114,115,117,321,350,354,383,388,394,400,405,4,2,99,114,327,336,107,115,108,97,115,104,59,1,8726,4,2,118,119,342,345,59,1,10983,101,100,59,1,8966,121,59,1,1041,4,3,99,114,116,362,369,379,97,117,115,101,59,1,8757,110,111,117,108,108,105,115,59,1,8492,97,59,1,914,114,59,3,55349,56581,112,102,59,3,55349,56633,101,118,101,59,1,728,99,114,59,1,8492,109,112,101,113,59,1,8782,4,14,72,79,97,99,100,101,102,104,105,108,111,114,115,117,442,447,456,504,542,547,569,573,577,616,678,784,790,796,99,121,59,1,1063,80,89,5,169,1,59,454,1,169,4,3,99,112,121,464,470,497,117,116,101,59,1,262,4,2,59,105,476,478,1,8914,116,97,108,68,105,102,102,101,114,101,110,116,105,97,108,68,59,1,8517,108,101,121,115,59,1,8493,4,4,97,101,105,111,514,520,530,535,114,111,110,59,1,268,100,105,108,5,199,1,59,528,1,199,114,99,59,1,264,110,105,110,116,59,1,8752,111,116,59,1,266,4,2,100,110,553,560,105,108,108,97,59,1,184,116,101,114,68,111,116,59,1,183,114,59,1,8493,105,59,1,935,114,99,108,101,4,4,68,77,80,84,591,596,603,609,111,116,59,1,8857,105,110,117,115,59,1,8854,108,117,115,59,1,8853,105,109,101,115,59,1,8855,111,4,2,99,115,623,646,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8754,101,67,117,114,108,121,4,2,68,81,658,671,111,117,98,108,101,81,117,111,116,101,59,1,8221,117,111,116,101,59,1,8217,4,4,108,110,112,117,688,701,736,753,111,110,4,2,59,101,696,698,1,8759,59,1,10868,4,3,103,105,116,709,717,722,114,117,101,110,116,59,1,8801,110,116,59,1,8751,111,117,114,73,110,116,101,103,114,97,108,59,1,8750,4,2,102,114,742,745,59,1,8450,111,100,117,99,116,59,1,8720,110,116,101,114,67,108,111,99,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8755,111,115,115,59,1,10799,99,114,59,3,55349,56478,112,4,2,59,67,803,805,1,8915,97,112,59,1,8781,4,11,68,74,83,90,97,99,101,102,105,111,115,834,850,855,860,865,888,903,916,921,1011,1415,4,2,59,111,840,842,1,8517,116,114,97,104,100,59,1,10513,99,121,59,1,1026,99,121,59,1,1029,99,121,59,1,1039,4,3,103,114,115,873,879,883,103,101,114,59,1,8225,114,59,1,8609,104,118,59,1,10980,4,2,97,121,894,900,114,111,110,59,1,270,59,1,1044,108,4,2,59,116,910,912,1,8711,97,59,1,916,114,59,3,55349,56583,4,2,97,102,927,998,4,2,99,109,933,992,114,105,116,105,99,97,108,4,4,65,68,71,84,950,957,978,985,99,117,116,101,59,1,180,111,4,2,116,117,964,967,59,1,729,98,108,101,65,99,117,116,101,59,1,733,114,97,118,101,59,1,96,105,108,100,101,59,1,732,111,110,100,59,1,8900,102,101,114,101,110,116,105,97,108,68,59,1,8518,4,4,112,116,117,119,1021,1026,1048,1249,102,59,3,55349,56635,4,3,59,68,69,1034,1036,1041,1,168,111,116,59,1,8412,113,117,97,108,59,1,8784,98,108,101,4,6,67,68,76,82,85,86,1065,1082,1101,1189,1211,1236,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8751,111,4,2,116,119,1089,1092,59,1,168,110,65,114,114,111,119,59,1,8659,4,2,101,111,1107,1141,102,116,4,3,65,82,84,1117,1124,1136,114,114,111,119,59,1,8656,105,103,104,116,65,114,114,111,119,59,1,8660,101,101,59,1,10980,110,103,4,2,76,82,1149,1177,101,102,116,4,2,65,82,1158,1165,114,114,111,119,59,1,10232,105,103,104,116,65,114,114,111,119,59,1,10234,105,103,104,116,65,114,114,111,119,59,1,10233,105,103,104,116,4,2,65,84,1199,1206,114,114,111,119,59,1,8658,101,101,59,1,8872,112,4,2,65,68,1218,1225,114,114,111,119,59,1,8657,111,119,110,65,114,114,111,119,59,1,8661,101,114,116,105,99,97,108,66,97,114,59,1,8741,110,4,6,65,66,76,82,84,97,1264,1292,1299,1352,1391,1408,114,114,111,119,4,3,59,66,85,1276,1278,1283,1,8595,97,114,59,1,10515,112,65,114,114,111,119,59,1,8693,114,101,118,101,59,1,785,101,102,116,4,3,82,84,86,1310,1323,1334,105,103,104,116,86,101,99,116,111,114,59,1,10576,101,101,86,101,99,116,111,114,59,1,10590,101,99,116,111,114,4,2,59,66,1345,1347,1,8637,97,114,59,1,10582,105,103,104,116,4,2,84,86,1362,1373,101,101,86,101,99,116,111,114,59,1,10591,101,99,116,111,114,4,2,59,66,1384,1386,1,8641,97,114,59,1,10583,101,101,4,2,59,65,1399,1401,1,8868,114,114,111,119,59,1,8615,114,114,111,119,59,1,8659,4,2,99,116,1421,1426,114,59,3,55349,56479,114,111,107,59,1,272,4,16,78,84,97,99,100,102,103,108,109,111,112,113,115,116,117,120,1466,1470,1478,1489,1515,1520,1525,1536,1544,1593,1609,1617,1650,1664,1668,1677,71,59,1,330,72,5,208,1,59,1476,1,208,99,117,116,101,5,201,1,59,1487,1,201,4,3,97,105,121,1497,1503,1512,114,111,110,59,1,282,114,99,5,202,1,59,1510,1,202,59,1,1069,111,116,59,1,278,114,59,3,55349,56584,114,97,118,101,5,200,1,59,1534,1,200,101,109,101,110,116,59,1,8712,4,2,97,112,1550,1555,99,114,59,1,274,116,121,4,2,83,86,1563,1576,109,97,108,108,83,113,117,97,114,101,59,1,9723,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59,1,9643,4,2,103,112,1599,1604,111,110,59,1,280,102,59,3,55349,56636,115,105,108,111,110,59,1,917,117,4,2,97,105,1624,1640,108,4,2,59,84,1631,1633,1,10869,105,108,100,101,59,1,8770,108,105,98,114,105,117,109,59,1,8652,4,2,99,105,1656,1660,114,59,1,8496,109,59,1,10867,97,59,1,919,109,108,5,203,1,59,1675,1,203,4,2,105,112,1683,1689,115,116,115,59,1,8707,111,110,101,110,116,105,97,108,69,59,1,8519,4,5,99,102,105,111,115,1713,1717,1722,1762,1791,121,59,1,1060,114,59,3,55349,56585,108,108,101,100,4,2,83,86,1732,1745,109,97,108,108,83,113,117,97,114,101,59,1,9724,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59,1,9642,4,3,112,114,117,1770,1775,1781,102,59,3,55349,56637,65,108,108,59,1,8704,114,105,101,114,116,114,102,59,1,8497,99,114,59,1,8497,4,12,74,84,97,98,99,100,102,103,111,114,115,116,1822,1827,1834,1848,1855,1877,1882,1887,1890,1896,1978,1984,99,121,59,1,1027,5,62,1,59,1832,1,62,109,109,97,4,2,59,100,1843,1845,1,915,59,1,988,114,101,118,101,59,1,286,4,3,101,105,121,1863,1869,1874,100,105,108,59,1,290,114,99,59,1,284,59,1,1043,111,116,59,1,288,114,59,3,55349,56586,59,1,8921,112,102,59,3,55349,56638,101,97,116,101,114,4,6,69,70,71,76,83,84,1915,1933,1944,1953,1959,1971,113,117,97,108,4,2,59,76,1925,1927,1,8805,101,115,115,59,1,8923,117,108,108,69,113,117,97,108,59,1,8807,114,101,97,116,101,114,59,1,10914,101,115,115,59,1,8823,108,97,110,116,69,113,117,97,108,59,1,10878,105,108,100,101,59,1,8819,99,114,59,3,55349,56482,59,1,8811,4,8,65,97,99,102,105,111,115,117,2005,2012,2026,2032,2036,2049,2073,2089,82,68,99,121,59,1,1066,4,2,99,116,2018,2023,101,107,59,1,711,59,1,94,105,114,99,59,1,292,114,59,1,8460,108,98,101,114,116,83,112,97,99,101,59,1,8459,4,2,112,114,2055,2059,102,59,1,8461,105,122,111,110,116,97,108,76,105,110,101,59,1,9472,4,2,99,116,2079,2083,114,59,1,8459,114,111,107,59,1,294,109,112,4,2,68,69,2097,2107,111,119,110,72,117,109,112,59,1,8782,113,117,97,108,59,1,8783,4,14,69,74,79,97,99,100,102,103,109,110,111,115,116,117,2144,2149,2155,2160,2171,2189,2194,2198,2209,2245,2307,2329,2334,2341,99,121,59,1,1045,108,105,103,59,1,306,99,121,59,1,1025,99,117,116,101,5,205,1,59,2169,1,205,4,2,105,121,2177,2186,114,99,5,206,1,59,2184,1,206,59,1,1048,111,116,59,1,304,114,59,1,8465,114,97,118,101,5,204,1,59,2207,1,204,4,3,59,97,112,2217,2219,2238,1,8465,4,2,99,103,2225,2229,114,59,1,298,105,110,97,114,121,73,59,1,8520,108,105,101,115,59,1,8658,4,2,116,118,2251,2281,4,2,59,101,2257,2259,1,8748,4,2,103,114,2265,2271,114,97,108,59,1,8747,115,101,99,116,105,111,110,59,1,8898,105,115,105,98,108,101,4,2,67,84,2293,2300,111,109,109,97,59,1,8291,105,109,101,115,59,1,8290,4,3,103,112,116,2315,2320,2325,111,110,59,1,302,102,59,3,55349,56640,97,59,1,921,99,114,59,1,8464,105,108,100,101,59,1,296,4,2,107,109,2347,2352,99,121,59,1,1030,108,5,207,1,59,2358,1,207,4,5,99,102,111,115,117,2372,2386,2391,2397,2414,4,2,105,121,2378,2383,114,99,59,1,308,59,1,1049,114,59,3,55349,56589,112,102,59,3,55349,56641,4,2,99,101,2403,2408,114,59,3,55349,56485,114,99,121,59,1,1032,107,99,121,59,1,1028,4,7,72,74,97,99,102,111,115,2436,2441,2446,2452,2467,2472,2478,99,121,59,1,1061,99,121,59,1,1036,112,112,97,59,1,922,4,2,101,121,2458,2464,100,105,108,59,1,310,59,1,1050,114,59,3,55349,56590,112,102,59,3,55349,56642,99,114,59,3,55349,56486,4,11,74,84,97,99,101,102,108,109,111,115,116,2508,2513,2520,2562,2585,2981,2986,3004,3011,3146,3167,99,121,59,1,1033,5,60,1,59,2518,1,60,4,5,99,109,110,112,114,2532,2538,2544,2548,2558,117,116,101,59,1,313,98,100,97,59,1,923,103,59,1,10218,108,97,99,101,116,114,102,59,1,8466,114,59,1,8606,4,3,97,101,121,2570,2576,2582,114,111,110,59,1,317,100,105,108,59,1,315,59,1,1051,4,2,102,115,2591,2907,116,4,10,65,67,68,70,82,84,85,86,97,114,2614,2663,2672,2728,2735,2760,2820,2870,2888,2895,4,2,110,114,2620,2633,103,108,101,66,114,97,99,107,101,116,59,1,10216,114,111,119,4,3,59,66,82,2644,2646,2651,1,8592,97,114,59,1,8676,105,103,104,116,65,114,114,111,119,59,1,8646,101,105,108,105,110,103,59,1,8968,111,4,2,117,119,2679,2692,98,108,101,66,114,97,99,107,101,116,59,1,10214,110,4,2,84,86,2699,2710,101,101,86,101,99,116,111,114,59,1,10593,101,99,116,111,114,4,2,59,66,2721,2723,1,8643,97,114,59,1,10585,108,111,111,114,59,1,8970,105,103,104,116,4,2,65,86,2745,2752,114,114,111,119,59,1,8596,101,99,116,111,114,59,1,10574,4,2,101,114,2766,2792,101,4,3,59,65,86,2775,2777,2784,1,8867,114,114,111,119,59,1,8612,101,99,116,111,114,59,1,10586,105,97,110,103,108,101,4,3,59,66,69,2806,2808,2813,1,8882,97,114,59,1,10703,113,117,97,108,59,1,8884,112,4,3,68,84,86,2829,2841,2852,111,119,110,86,101,99,116,111,114,59,1,10577,101,101,86,101,99,116,111,114,59,1,10592,101,99,116,111,114,4,2,59,66,2863,2865,1,8639,97,114,59,1,10584,101,99,116,111,114,4,2,59,66,2881,2883,1,8636,97,114,59,1,10578,114,114,111,119,59,1,8656,105,103,104,116,97,114,114,111,119,59,1,8660,115,4,6,69,70,71,76,83,84,2922,2936,2947,2956,2962,2974,113,117,97,108,71,114,101,97,116,101,114,59,1,8922,117,108,108,69,113,117,97,108,59,1,8806,114,101,97,116,101,114,59,1,8822,101,115,115,59,1,10913,108,97,110,116,69,113,117,97,108,59,1,10877,105,108,100,101,59,1,8818,114,59,3,55349,56591,4,2,59,101,2992,2994,1,8920,102,116,97,114,114,111,119,59,1,8666,105,100,111,116,59,1,319,4,3,110,112,119,3019,3110,3115,103,4,4,76,82,108,114,3030,3058,3070,3098,101,102,116,4,2,65,82,3039,3046,114,114,111,119,59,1,10229,105,103,104,116,65,114,114,111,119,59,1,10231,105,103,104,116,65,114,114,111,119,59,1,10230,101,102,116,4,2,97,114,3079,3086,114,114,111,119,59,1,10232,105,103,104,116,97,114,114,111,119,59,1,10234,105,103,104,116,97,114,114,111,119,59,1,10233,102,59,3,55349,56643,101,114,4,2,76,82,3123,3134,101,102,116,65,114,114,111,119,59,1,8601,105,103,104,116,65,114,114,111,119,59,1,8600,4,3,99,104,116,3154,3158,3161,114,59,1,8466,59,1,8624,114,111,107,59,1,321,59,1,8810,4,8,97,99,101,102,105,111,115,117,3188,3192,3196,3222,3227,3237,3243,3248,112,59,1,10501,121,59,1,1052,4,2,100,108,3202,3213,105,117,109,83,112,97,99,101,59,1,8287,108,105,110,116,114,102,59,1,8499,114,59,3,55349,56592,110,117,115,80,108,117,115,59,1,8723,112,102,59,3,55349,56644,99,114,59,1,8499,59,1,924,4,9,74,97,99,101,102,111,115,116,117,3271,3276,3283,3306,3422,3427,4120,4126,4137,99,121,59,1,1034,99,117,116,101,59,1,323,4,3,97,101,121,3291,3297,3303,114,111,110,59,1,327,100,105,108,59,1,325,59,1,1053,4,3,103,115,119,3314,3380,3415,97,116,105,118,101,4,3,77,84,86,3327,3340,3365,101,100,105,117,109,83,112,97,99,101,59,1,8203,104,105,4,2,99,110,3348,3357,107,83,112,97,99,101,59,1,8203,83,112,97,99,101,59,1,8203,101,114,121,84,104,105,110,83,112,97,99,101,59,1,8203,116,101,100,4,2,71,76,3389,3405,114,101,97,116,101,114,71,114,101,97,116,101,114,59,1,8811,101,115,115,76,101,115,115,59,1,8810,76,105,110,101,59,1,10,114,59,3,55349,56593,4,4,66,110,112,116,3437,3444,3460,3464,114,101,97,107,59,1,8288,66,114,101,97,107,105,110,103,83,112,97,99,101,59,1,160,102,59,1,8469,4,13,59,67,68,69,71,72,76,78,80,82,83,84,86,3492,3494,3517,3536,3578,3657,3685,3784,3823,3860,3915,4066,4107,1,10988,4,2,111,117,3500,3510,110,103,114,117,101,110,116,59,1,8802,112,67,97,112,59,1,8813,111,117,98,108,101,86,101,114,116,105,99,97,108,66,97,114,59,1,8742,4,3,108,113,120,3544,3552,3571,101,109,101,110,116,59,1,8713,117,97,108,4,2,59,84,3561,3563,1,8800,105,108,100,101,59,3,8770,824,105,115,116,115,59,1,8708,114,101,97,116,101,114,4,7,59,69,70,71,76,83,84,3600,3602,3609,3621,3631,3637,3650,1,8815,113,117,97,108,59,1,8817,117,108,108,69,113,117,97,108,59,3,8807,824,114,101,97,116,101,114,59,3,8811,824,101,115,115,59,1,8825,108,97,110,116,69,113,117,97,108,59,3,10878,824,105,108,100,101,59,1,8821,117,109,112,4,2,68,69,3666,3677,111,119,110,72,117,109,112,59,3,8782,824,113,117,97,108,59,3,8783,824,101,4,2,102,115,3692,3724,116,84,114,105,97,110,103,108,101,4,3,59,66,69,3709,3711,3717,1,8938,97,114,59,3,10703,824,113,117,97,108,59,1,8940,115,4,6,59,69,71,76,83,84,3739,3741,3748,3757,3764,3777,1,8814,113,117,97,108,59,1,8816,114,101,97,116,101,114,59,1,8824,101,115,115,59,3,8810,824,108,97,110,116,69,113,117,97,108,59,3,10877,824,105,108,100,101,59,1,8820,101,115,116,101,100,4,2,71,76,3795,3812,114,101,97,116,101,114,71,114,101,97,116,101,114,59,3,10914,824,101,115,115,76,101,115,115,59,3,10913,824,114,101,99,101,100,101,115,4,3,59,69,83,3838,3840,3848,1,8832,113,117,97,108,59,3,10927,824,108,97,110,116,69,113,117,97,108,59,1,8928,4,2,101,105,3866,3881,118,101,114,115,101,69,108,101,109,101,110,116,59,1,8716,103,104,116,84,114,105,97,110,103,108,101,4,3,59,66,69,3900,3902,3908,1,8939,97,114,59,3,10704,824,113,117,97,108,59,1,8941,4,2,113,117,3921,3973,117,97,114,101,83,117,4,2,98,112,3933,3952,115,101,116,4,2,59,69,3942,3945,3,8847,824,113,117,97,108,59,1,8930,101,114,115,101,116,4,2,59,69,3963,3966,3,8848,824,113,117,97,108,59,1,8931,4,3,98,99,112,3981,4e3,4045,115,101,116,4,2,59,69,3990,3993,3,8834,8402,113,117,97,108,59,1,8840,99,101,101,100,115,4,4,59,69,83,84,4015,4017,4025,4037,1,8833,113,117,97,108,59,3,10928,824,108,97,110,116,69,113,117,97,108,59,1,8929,105,108,100,101,59,3,8831,824,101,114,115,101,116,4,2,59,69,4056,4059,3,8835,8402,113,117,97,108,59,1,8841,105,108,100,101,4,4,59,69,70,84,4080,4082,4089,4100,1,8769,113,117,97,108,59,1,8772,117,108,108,69,113,117,97,108,59,1,8775,105,108,100,101,59,1,8777,101,114,116,105,99,97,108,66,97,114,59,1,8740,99,114,59,3,55349,56489,105,108,100,101,5,209,1,59,4135,1,209,59,1,925,4,14,69,97,99,100,102,103,109,111,112,114,115,116,117,118,4170,4176,4187,4205,4212,4217,4228,4253,4259,4292,4295,4316,4337,4346,108,105,103,59,1,338,99,117,116,101,5,211,1,59,4185,1,211,4,2,105,121,4193,4202,114,99,5,212,1,59,4200,1,212,59,1,1054,98,108,97,99,59,1,336,114,59,3,55349,56594,114,97,118,101,5,210,1,59,4226,1,210,4,3,97,101,105,4236,4241,4246,99,114,59,1,332,103,97,59,1,937,99,114,111,110,59,1,927,112,102,59,3,55349,56646,101,110,67,117,114,108,121,4,2,68,81,4272,4285,111,117,98,108,101,81,117,111,116,101,59,1,8220,117,111,116,101,59,1,8216,59,1,10836,4,2,99,108,4301,4306,114,59,3,55349,56490,97,115,104,5,216,1,59,4314,1,216,105,4,2,108,109,4323,4332,100,101,5,213,1,59,4330,1,213,101,115,59,1,10807,109,108,5,214,1,59,4344,1,214,101,114,4,2,66,80,4354,4380,4,2,97,114,4360,4364,114,59,1,8254,97,99,4,2,101,107,4372,4375,59,1,9182,101,116,59,1,9140,97,114,101,110,116,104,101,115,105,115,59,1,9180,4,9,97,99,102,104,105,108,111,114,115,4413,4422,4426,4431,4435,4438,4448,4471,4561,114,116,105,97,108,68,59,1,8706,121,59,1,1055,114,59,3,55349,56595,105,59,1,934,59,1,928,117,115,77,105,110,117,115,59,1,177,4,2,105,112,4454,4467,110,99,97,114,101,112,108,97,110,101,59,1,8460,102,59,1,8473,4,4,59,101,105,111,4481,4483,4526,4531,1,10939,99,101,100,101,115,4,4,59,69,83,84,4498,4500,4507,4519,1,8826,113,117,97,108,59,1,10927,108,97,110,116,69,113,117,97,108,59,1,8828,105,108,100,101,59,1,8830,109,101,59,1,8243,4,2,100,112,4537,4543,117,99,116,59,1,8719,111,114,116,105,111,110,4,2,59,97,4555,4557,1,8759,108,59,1,8733,4,2,99,105,4567,4572,114,59,3,55349,56491,59,1,936,4,4,85,102,111,115,4585,4594,4599,4604,79,84,5,34,1,59,4592,1,34,114,59,3,55349,56596,112,102,59,1,8474,99,114,59,3,55349,56492,4,12,66,69,97,99,101,102,104,105,111,114,115,117,4636,4642,4650,4681,4704,4763,4767,4771,5047,5069,5081,5094,97,114,114,59,1,10512,71,5,174,1,59,4648,1,174,4,3,99,110,114,4658,4664,4668,117,116,101,59,1,340,103,59,1,10219,114,4,2,59,116,4675,4677,1,8608,108,59,1,10518,4,3,97,101,121,4689,4695,4701,114,111,110,59,1,344,100,105,108,59,1,342,59,1,1056,4,2,59,118,4710,4712,1,8476,101,114,115,101,4,2,69,85,4722,4748,4,2,108,113,4728,4736,101,109,101,110,116,59,1,8715,117,105,108,105,98,114,105,117,109,59,1,8651,112,69,113,117,105,108,105,98,114,105,117,109,59,1,10607,114,59,1,8476,111,59,1,929,103,104,116,4,8,65,67,68,70,84,85,86,97,4792,4840,4849,4905,4912,4972,5022,5040,4,2,110,114,4798,4811,103,108,101,66,114,97,99,107,101,116,59,1,10217,114,111,119,4,3,59,66,76,4822,4824,4829,1,8594,97,114,59,1,8677,101,102,116,65,114,114,111,119,59,1,8644,101,105,108,105,110,103,59,1,8969,111,4,2,117,119,4856,4869,98,108,101,66,114,97,99,107,101,116,59,1,10215,110,4,2,84,86,4876,4887,101,101,86,101,99,116,111,114,59,1,10589,101,99,116,111,114,4,2,59,66,4898,4900,1,8642,97,114,59,1,10581,108,111,111,114,59,1,8971,4,2,101,114,4918,4944,101,4,3,59,65,86,4927,4929,4936,1,8866,114,114,111,119,59,1,8614,101,99,116,111,114,59,1,10587,105,97,110,103,108,101,4,3,59,66,69,4958,4960,4965,1,8883,97,114,59,1,10704,113,117,97,108,59,1,8885,112,4,3,68,84,86,4981,4993,5004,111,119,110,86,101,99,116,111,114,59,1,10575,101,101,86,101,99,116,111,114,59,1,10588,101,99,116,111,114,4,2,59,66,5015,5017,1,8638,97,114,59,1,10580,101,99,116,111,114,4,2,59,66,5033,5035,1,8640,97,114,59,1,10579,114,114,111,119,59,1,8658,4,2,112,117,5053,5057,102,59,1,8477,110,100,73,109,112,108,105,101,115,59,1,10608,105,103,104,116,97,114,114,111,119,59,1,8667,4,2,99,104,5087,5091,114,59,1,8475,59,1,8625,108,101,68,101,108,97,121,101,100,59,1,10740,4,13,72,79,97,99,102,104,105,109,111,113,115,116,117,5134,5150,5157,5164,5198,5203,5259,5265,5277,5283,5374,5380,5385,4,2,67,99,5140,5146,72,99,121,59,1,1065,121,59,1,1064,70,84,99,121,59,1,1068,99,117,116,101,59,1,346,4,5,59,97,101,105,121,5176,5178,5184,5190,5195,1,10940,114,111,110,59,1,352,100,105,108,59,1,350,114,99,59,1,348,59,1,1057,114,59,3,55349,56598,111,114,116,4,4,68,76,82,85,5216,5227,5238,5250,111,119,110,65,114,114,111,119,59,1,8595,101,102,116,65,114,114,111,119,59,1,8592,105,103,104,116,65,114,114,111,119,59,1,8594,112,65,114,114,111,119,59,1,8593,103,109,97,59,1,931,97,108,108,67,105,114,99,108,101,59,1,8728,112,102,59,3,55349,56650,4,2,114,117,5289,5293,116,59,1,8730,97,114,101,4,4,59,73,83,85,5306,5308,5322,5367,1,9633,110,116,101,114,115,101,99,116,105,111,110,59,1,8851,117,4,2,98,112,5329,5347,115,101,116,4,2,59,69,5338,5340,1,8847,113,117,97,108,59,1,8849,101,114,115,101,116,4,2,59,69,5358,5360,1,8848,113,117,97,108,59,1,8850,110,105,111,110,59,1,8852,99,114,59,3,55349,56494,97,114,59,1,8902,4,4,98,99,109,112,5395,5420,5475,5478,4,2,59,115,5401,5403,1,8912,101,116,4,2,59,69,5411,5413,1,8912,113,117,97,108,59,1,8838,4,2,99,104,5426,5468,101,101,100,115,4,4,59,69,83,84,5440,5442,5449,5461,1,8827,113,117,97,108,59,1,10928,108,97,110,116,69,113,117,97,108,59,1,8829,105,108,100,101,59,1,8831,84,104,97,116,59,1,8715,59,1,8721,4,3,59,101,115,5486,5488,5507,1,8913,114,115,101,116,4,2,59,69,5498,5500,1,8835,113,117,97,108,59,1,8839,101,116,59,1,8913,4,11,72,82,83,97,99,102,104,105,111,114,115,5536,5546,5552,5567,5579,5602,5607,5655,5695,5701,5711,79,82,78,5,222,1,59,5544,1,222,65,68,69,59,1,8482,4,2,72,99,5558,5563,99,121,59,1,1035,121,59,1,1062,4,2,98,117,5573,5576,59,1,9,59,1,932,4,3,97,101,121,5587,5593,5599,114,111,110,59,1,356,100,105,108,59,1,354,59,1,1058,114,59,3,55349,56599,4,2,101,105,5613,5631,4,2,114,116,5619,5627,101,102,111,114,101,59,1,8756,97,59,1,920,4,2,99,110,5637,5647,107,83,112,97,99,101,59,3,8287,8202,83,112,97,99,101,59,1,8201,108,100,101,4,4,59,69,70,84,5668,5670,5677,5688,1,8764,113,117,97,108,59,1,8771,117,108,108,69,113,117,97,108,59,1,8773,105,108,100,101,59,1,8776,112,102,59,3,55349,56651,105,112,108,101,68,111,116,59,1,8411,4,2,99,116,5717,5722,114,59,3,55349,56495,114,111,107,59,1,358,4,14,97,98,99,100,102,103,109,110,111,112,114,115,116,117,5758,5789,5805,5823,5830,5835,5846,5852,5921,5937,6089,6095,6101,6108,4,2,99,114,5764,5774,117,116,101,5,218,1,59,5772,1,218,114,4,2,59,111,5781,5783,1,8607,99,105,114,59,1,10569,114,4,2,99,101,5796,5800,121,59,1,1038,118,101,59,1,364,4,2,105,121,5811,5820,114,99,5,219,1,59,5818,1,219,59,1,1059,98,108,97,99,59,1,368,114,59,3,55349,56600,114,97,118,101,5,217,1,59,5844,1,217,97,99,114,59,1,362,4,2,100,105,5858,5905,101,114,4,2,66,80,5866,5892,4,2,97,114,5872,5876,114,59,1,95,97,99,4,2,101,107,5884,5887,59,1,9183,101,116,59,1,9141,97,114,101,110,116,104,101,115,105,115,59,1,9181,111,110,4,2,59,80,5913,5915,1,8899,108,117,115,59,1,8846,4,2,103,112,5927,5932,111,110,59,1,370,102,59,3,55349,56652,4,8,65,68,69,84,97,100,112,115,5955,5985,5996,6009,6026,6033,6044,6075,114,114,111,119,4,3,59,66,68,5967,5969,5974,1,8593,97,114,59,1,10514,111,119,110,65,114,114,111,119,59,1,8645,111,119,110,65,114,114,111,119,59,1,8597,113,117,105,108,105,98,114,105,117,109,59,1,10606,101,101,4,2,59,65,6017,6019,1,8869,114,114,111,119,59,1,8613,114,114,111,119,59,1,8657,111,119,110,97,114,114,111,119,59,1,8661,101,114,4,2,76,82,6052,6063,101,102,116,65,114,114,111,119,59,1,8598,105,103,104,116,65,114,114,111,119,59,1,8599,105,4,2,59,108,6082,6084,1,978,111,110,59,1,933,105,110,103,59,1,366,99,114,59,3,55349,56496,105,108,100,101,59,1,360,109,108,5,220,1,59,6115,1,220,4,9,68,98,99,100,101,102,111,115,118,6137,6143,6148,6152,6166,6250,6255,6261,6267,97,115,104,59,1,8875,97,114,59,1,10987,121,59,1,1042,97,115,104,4,2,59,108,6161,6163,1,8873,59,1,10982,4,2,101,114,6172,6175,59,1,8897,4,3,98,116,121,6183,6188,6238,97,114,59,1,8214,4,2,59,105,6194,6196,1,8214,99,97,108,4,4,66,76,83,84,6209,6214,6220,6231,97,114,59,1,8739,105,110,101,59,1,124,101,112,97,114,97,116,111,114,59,1,10072,105,108,100,101,59,1,8768,84,104,105,110,83,112,97,99,101,59,1,8202,114,59,3,55349,56601,112,102,59,3,55349,56653,99,114,59,3,55349,56497,100,97,115,104,59,1,8874,4,5,99,101,102,111,115,6286,6292,6298,6303,6309,105,114,99,59,1,372,100,103,101,59,1,8896,114,59,3,55349,56602,112,102,59,3,55349,56654,99,114,59,3,55349,56498,4,4,102,105,111,115,6325,6330,6333,6339,114,59,3,55349,56603,59,1,926,112,102,59,3,55349,56655,99,114,59,3,55349,56499,4,9,65,73,85,97,99,102,111,115,117,6365,6370,6375,6380,6391,6405,6410,6416,6422,99,121,59,1,1071,99,121,59,1,1031,99,121,59,1,1070,99,117,116,101,5,221,1,59,6389,1,221,4,2,105,121,6397,6402,114,99,59,1,374,59,1,1067,114,59,3,55349,56604,112,102,59,3,55349,56656,99,114,59,3,55349,56500,109,108,59,1,376,4,8,72,97,99,100,101,102,111,115,6445,6450,6457,6472,6477,6501,6505,6510,99,121,59,1,1046,99,117,116,101,59,1,377,4,2,97,121,6463,6469,114,111,110,59,1,381,59,1,1047,111,116,59,1,379,4,2,114,116,6483,6497,111,87,105,100,116,104,83,112,97,99,101,59,1,8203,97,59,1,918,114,59,1,8488,112,102,59,1,8484,99,114,59,3,55349,56501,4,16,97,98,99,101,102,103,108,109,110,111,112,114,115,116,117,119,6550,6561,6568,6612,6622,6634,6645,6672,6699,6854,6870,6923,6933,6963,6974,6983,99,117,116,101,5,225,1,59,6559,1,225,114,101,118,101,59,1,259,4,6,59,69,100,105,117,121,6582,6584,6588,6591,6600,6609,1,8766,59,3,8766,819,59,1,8767,114,99,5,226,1,59,6598,1,226,116,101,5,180,1,59,6607,1,180,59,1,1072,108,105,103,5,230,1,59,6620,1,230,4,2,59,114,6628,6630,1,8289,59,3,55349,56606,114,97,118,101,5,224,1,59,6643,1,224,4,2,101,112,6651,6667,4,2,102,112,6657,6663,115,121,109,59,1,8501,104,59,1,8501,104,97,59,1,945,4,2,97,112,6678,6692,4,2,99,108,6684,6688,114,59,1,257,103,59,1,10815,5,38,1,59,6697,1,38,4,2,100,103,6705,6737,4,5,59,97,100,115,118,6717,6719,6724,6727,6734,1,8743,110,100,59,1,10837,59,1,10844,108,111,112,101,59,1,10840,59,1,10842,4,7,59,101,108,109,114,115,122,6753,6755,6758,6762,6814,6835,6848,1,8736,59,1,10660,101,59,1,8736,115,100,4,2,59,97,6770,6772,1,8737,4,8,97,98,99,100,101,102,103,104,6790,6793,6796,6799,6802,6805,6808,6811,59,1,10664,59,1,10665,59,1,10666,59,1,10667,59,1,10668,59,1,10669,59,1,10670,59,1,10671,116,4,2,59,118,6821,6823,1,8735,98,4,2,59,100,6830,6832,1,8894,59,1,10653,4,2,112,116,6841,6845,104,59,1,8738,59,1,197,97,114,114,59,1,9084,4,2,103,112,6860,6865,111,110,59,1,261,102,59,3,55349,56658,4,7,59,69,97,101,105,111,112,6886,6888,6891,6897,6900,6904,6908,1,8776,59,1,10864,99,105,114,59,1,10863,59,1,8778,100,59,1,8779,115,59,1,39,114,111,120,4,2,59,101,6917,6919,1,8776,113,59,1,8778,105,110,103,5,229,1,59,6931,1,229,4,3,99,116,121,6941,6946,6949,114,59,3,55349,56502,59,1,42,109,112,4,2,59,101,6957,6959,1,8776,113,59,1,8781,105,108,100,101,5,227,1,59,6972,1,227,109,108,5,228,1,59,6981,1,228,4,2,99,105,6989,6997,111,110,105,110,116,59,1,8755,110,116,59,1,10769,4,16,78,97,98,99,100,101,102,105,107,108,110,111,112,114,115,117,7036,7041,7119,7135,7149,7155,7219,7224,7347,7354,7463,7489,7786,7793,7814,7866,111,116,59,1,10989,4,2,99,114,7047,7094,107,4,4,99,101,112,115,7058,7064,7073,7080,111,110,103,59,1,8780,112,115,105,108,111,110,59,1,1014,114,105,109,101,59,1,8245,105,109,4,2,59,101,7088,7090,1,8765,113,59,1,8909,4,2,118,119,7100,7105,101,101,59,1,8893,101,100,4,2,59,103,7113,7115,1,8965,101,59,1,8965,114,107,4,2,59,116,7127,7129,1,9141,98,114,107,59,1,9142,4,2,111,121,7141,7146,110,103,59,1,8780,59,1,1073,113,117,111,59,1,8222,4,5,99,109,112,114,116,7167,7181,7188,7193,7199,97,117,115,4,2,59,101,7176,7178,1,8757,59,1,8757,112,116,121,118,59,1,10672,115,105,59,1,1014,110,111,117,59,1,8492,4,3,97,104,119,7207,7210,7213,59,1,946,59,1,8502,101,101,110,59,1,8812,114,59,3,55349,56607,103,4,7,99,111,115,116,117,118,119,7241,7262,7288,7305,7328,7335,7340,4,3,97,105,117,7249,7253,7258,112,59,1,8898,114,99,59,1,9711,112,59,1,8899,4,3,100,112,116,7270,7275,7281,111,116,59,1,10752,108,117,115,59,1,10753,105,109,101,115,59,1,10754,4,2,113,116,7294,7300,99,117,112,59,1,10758,97,114,59,1,9733,114,105,97,110,103,108,101,4,2,100,117,7318,7324,111,119,110,59,1,9661,112,59,1,9651,112,108,117,115,59,1,10756,101,101,59,1,8897,101,100,103,101,59,1,8896,97,114,111,119,59,1,10509,4,3,97,107,111,7362,7436,7458,4,2,99,110,7368,7432,107,4,3,108,115,116,7377,7386,7394,111,122,101,110,103,101,59,1,10731,113,117,97,114,101,59,1,9642,114,105,97,110,103,108,101,4,4,59,100,108,114,7411,7413,7419,7425,1,9652,111,119,110,59,1,9662,101,102,116,59,1,9666,105,103,104,116,59,1,9656,107,59,1,9251,4,2,49,51,7442,7454,4,2,50,52,7448,7451,59,1,9618,59,1,9617,52,59,1,9619,99,107,59,1,9608,4,2,101,111,7469,7485,4,2,59,113,7475,7478,3,61,8421,117,105,118,59,3,8801,8421,116,59,1,8976,4,4,112,116,119,120,7499,7504,7517,7523,102,59,3,55349,56659,4,2,59,116,7510,7512,1,8869,111,109,59,1,8869,116,105,101,59,1,8904,4,12,68,72,85,86,98,100,104,109,112,116,117,118,7549,7571,7597,7619,7655,7660,7682,7708,7715,7721,7728,7750,4,4,76,82,108,114,7559,7562,7565,7568,59,1,9559,59,1,9556,59,1,9558,59,1,9555,4,5,59,68,85,100,117,7583,7585,7588,7591,7594,1,9552,59,1,9574,59,1,9577,59,1,9572,59,1,9575,4,4,76,82,108,114,7607,7610,7613,7616,59,1,9565,59,1,9562,59,1,9564,59,1,9561,4,7,59,72,76,82,104,108,114,7635,7637,7640,7643,7646,7649,7652,1,9553,59,1,9580,59,1,9571,59,1,9568,59,1,9579,59,1,9570,59,1,9567,111,120,59,1,10697,4,4,76,82,108,114,7670,7673,7676,7679,59,1,9557,59,1,9554,59,1,9488,59,1,9484,4,5,59,68,85,100,117,7694,7696,7699,7702,7705,1,9472,59,1,9573,59,1,9576,59,1,9516,59,1,9524,105,110,117,115,59,1,8863,108,117,115,59,1,8862,105,109,101,115,59,1,8864,4,4,76,82,108,114,7738,7741,7744,7747,59,1,9563,59,1,9560,59,1,9496,59,1,9492,4,7,59,72,76,82,104,108,114,7766,7768,7771,7774,7777,7780,7783,1,9474,59,1,9578,59,1,9569,59,1,9566,59,1,9532,59,1,9508,59,1,9500,114,105,109,101,59,1,8245,4,2,101,118,7799,7804,118,101,59,1,728,98,97,114,5,166,1,59,7812,1,166,4,4,99,101,105,111,7824,7829,7834,7846,114,59,3,55349,56503,109,105,59,1,8271,109,4,2,59,101,7841,7843,1,8765,59,1,8909,108,4,3,59,98,104,7855,7857,7860,1,92,59,1,10693,115,117,98,59,1,10184,4,2,108,109,7872,7885,108,4,2,59,101,7879,7881,1,8226,116,59,1,8226,112,4,3,59,69,101,7894,7896,7899,1,8782,59,1,10926,4,2,59,113,7905,7907,1,8783,59,1,8783,4,15,97,99,100,101,102,104,105,108,111,114,115,116,117,119,121,7942,8021,8075,8080,8121,8126,8157,8279,8295,8430,8446,8485,8491,8707,8726,4,3,99,112,114,7950,7956,8007,117,116,101,59,1,263,4,6,59,97,98,99,100,115,7970,7972,7977,7984,7998,8003,1,8745,110,100,59,1,10820,114,99,117,112,59,1,10825,4,2,97,117,7990,7994,112,59,1,10827,112,59,1,10823,111,116,59,1,10816,59,3,8745,65024,4,2,101,111,8013,8017,116,59,1,8257,110,59,1,711,4,4,97,101,105,117,8031,8046,8056,8061,4,2,112,114,8037,8041,115,59,1,10829,111,110,59,1,269,100,105,108,5,231,1,59,8054,1,231,114,99,59,1,265,112,115,4,2,59,115,8069,8071,1,10828,109,59,1,10832,111,116,59,1,267,4,3,100,109,110,8088,8097,8104,105,108,5,184,1,59,8095,1,184,112,116,121,118,59,1,10674,116,5,162,2,59,101,8112,8114,1,162,114,100,111,116,59,1,183,114,59,3,55349,56608,4,3,99,101,105,8134,8138,8154,121,59,1,1095,99,107,4,2,59,109,8146,8148,1,10003,97,114,107,59,1,10003,59,1,967,114,4,7,59,69,99,101,102,109,115,8174,8176,8179,8258,8261,8268,8273,1,9675,59,1,10691,4,3,59,101,108,8187,8189,8193,1,710,113,59,1,8791,101,4,2,97,100,8200,8223,114,114,111,119,4,2,108,114,8210,8216,101,102,116,59,1,8634,105,103,104,116,59,1,8635,4,5,82,83,97,99,100,8235,8238,8241,8246,8252,59,1,174,59,1,9416,115,116,59,1,8859,105,114,99,59,1,8858,97,115,104,59,1,8861,59,1,8791,110,105,110,116,59,1,10768,105,100,59,1,10991,99,105,114,59,1,10690,117,98,115,4,2,59,117,8288,8290,1,9827,105,116,59,1,9827,4,4,108,109,110,112,8305,8326,8376,8400,111,110,4,2,59,101,8313,8315,1,58,4,2,59,113,8321,8323,1,8788,59,1,8788,4,2,109,112,8332,8344,97,4,2,59,116,8339,8341,1,44,59,1,64,4,3,59,102,108,8352,8354,8358,1,8705,110,59,1,8728,101,4,2,109,120,8365,8371,101,110,116,59,1,8705,101,115,59,1,8450,4,2,103,105,8382,8395,4,2,59,100,8388,8390,1,8773,111,116,59,1,10861,110,116,59,1,8750,4,3,102,114,121,8408,8412,8417,59,3,55349,56660,111,100,59,1,8720,5,169,2,59,115,8424,8426,1,169,114,59,1,8471,4,2,97,111,8436,8441,114,114,59,1,8629,115,115,59,1,10007,4,2,99,117,8452,8457,114,59,3,55349,56504,4,2,98,112,8463,8474,4,2,59,101,8469,8471,1,10959,59,1,10961,4,2,59,101,8480,8482,1,10960,59,1,10962,100,111,116,59,1,8943,4,7,100,101,108,112,114,118,119,8507,8522,8536,8550,8600,8697,8702,97,114,114,4,2,108,114,8516,8519,59,1,10552,59,1,10549,4,2,112,115,8528,8532,114,59,1,8926,99,59,1,8927,97,114,114,4,2,59,112,8545,8547,1,8630,59,1,10557,4,6,59,98,99,100,111,115,8564,8566,8573,8587,8592,8596,1,8746,114,99,97,112,59,1,10824,4,2,97,117,8579,8583,112,59,1,10822,112,59,1,10826,111,116,59,1,8845,114,59,1,10821,59,3,8746,65024,4,4,97,108,114,118,8610,8623,8663,8672,114,114,4,2,59,109,8618,8620,1,8631,59,1,10556,121,4,3,101,118,119,8632,8651,8656,113,4,2,112,115,8639,8645,114,101,99,59,1,8926,117,99,99,59,1,8927,101,101,59,1,8910,101,100,103,101,59,1,8911,101,110,5,164,1,59,8670,1,164,101,97,114,114,111,119,4,2,108,114,8684,8690,101,102,116,59,1,8630,105,103,104,116,59,1,8631,101,101,59,1,8910,101,100,59,1,8911,4,2,99,105,8713,8721,111,110,105,110,116,59,1,8754,110,116,59,1,8753,108,99,116,121,59,1,9005,4,19,65,72,97,98,99,100,101,102,104,105,106,108,111,114,115,116,117,119,122,8773,8778,8783,8821,8839,8854,8887,8914,8930,8944,9036,9041,9058,9197,9227,9258,9281,9297,9305,114,114,59,1,8659,97,114,59,1,10597,4,4,103,108,114,115,8793,8799,8805,8809,103,101,114,59,1,8224,101,116,104,59,1,8504,114,59,1,8595,104,4,2,59,118,8816,8818,1,8208,59,1,8867,4,2,107,108,8827,8834,97,114,111,119,59,1,10511,97,99,59,1,733,4,2,97,121,8845,8851,114,111,110,59,1,271,59,1,1076,4,3,59,97,111,8862,8864,8880,1,8518,4,2,103,114,8870,8876,103,101,114,59,1,8225,114,59,1,8650,116,115,101,113,59,1,10871,4,3,103,108,109,8895,8902,8907,5,176,1,59,8900,1,176,116,97,59,1,948,112,116,121,118,59,1,10673,4,2,105,114,8920,8926,115,104,116,59,1,10623,59,3,55349,56609,97,114,4,2,108,114,8938,8941,59,1,8643,59,1,8642,4,5,97,101,103,115,118,8956,8986,8989,8996,9001,109,4,3,59,111,115,8965,8967,8983,1,8900,110,100,4,2,59,115,8975,8977,1,8900,117,105,116,59,1,9830,59,1,9830,59,1,168,97,109,109,97,59,1,989,105,110,59,1,8946,4,3,59,105,111,9009,9011,9031,1,247,100,101,5,247,2,59,111,9020,9022,1,247,110,116,105,109,101,115,59,1,8903,110,120,59,1,8903,99,121,59,1,1106,99,4,2,111,114,9048,9053,114,110,59,1,8990,111,112,59,1,8973,4,5,108,112,116,117,119,9070,9076,9081,9130,9144,108,97,114,59,1,36,102,59,3,55349,56661,4,5,59,101,109,112,115,9093,9095,9109,9116,9122,1,729,113,4,2,59,100,9102,9104,1,8784,111,116,59,1,8785,105,110,117,115,59,1,8760,108,117,115,59,1,8724,113,117,97,114,101,59,1,8865,98,108,101,98,97,114,119,101,100,103,101,59,1,8966,110,4,3,97,100,104,9153,9160,9172,114,114,111,119,59,1,8595,111,119,110,97,114,114,111,119,115,59,1,8650,97,114,112,111,111,110,4,2,108,114,9184,9190,101,102,116,59,1,8643,105,103,104,116,59,1,8642,4,2,98,99,9203,9211,107,97,114,111,119,59,1,10512,4,2,111,114,9217,9222,114,110,59,1,8991,111,112,59,1,8972,4,3,99,111,116,9235,9248,9252,4,2,114,121,9241,9245,59,3,55349,56505,59,1,1109,108,59,1,10742,114,111,107,59,1,273,4,2,100,114,9264,9269,111,116,59,1,8945,105,4,2,59,102,9276,9278,1,9663,59,1,9662,4,2,97,104,9287,9292,114,114,59,1,8693,97,114,59,1,10607,97,110,103,108,101,59,1,10662,4,2,99,105,9311,9315,121,59,1,1119,103,114,97,114,114,59,1,10239,4,18,68,97,99,100,101,102,103,108,109,110,111,112,113,114,115,116,117,120,9361,9376,9398,9439,9444,9447,9462,9495,9531,9585,9598,9614,9659,9755,9771,9792,9808,9826,4,2,68,111,9367,9372,111,116,59,1,10871,116,59,1,8785,4,2,99,115,9382,9392,117,116,101,5,233,1,59,9390,1,233,116,101,114,59,1,10862,4,4,97,105,111,121,9408,9414,9430,9436,114,111,110,59,1,283,114,4,2,59,99,9421,9423,1,8790,5,234,1,59,9428,1,234,108,111,110,59,1,8789,59,1,1101,111,116,59,1,279,59,1,8519,4,2,68,114,9453,9458,111,116,59,1,8786,59,3,55349,56610,4,3,59,114,115,9470,9472,9482,1,10906,97,118,101,5,232,1,59,9480,1,232,4,2,59,100,9488,9490,1,10902,111,116,59,1,10904,4,4,59,105,108,115,9505,9507,9515,9518,1,10905,110,116,101,114,115,59,1,9191,59,1,8467,4,2,59,100,9524,9526,1,10901,111,116,59,1,10903,4,3,97,112,115,9539,9544,9564,99,114,59,1,275,116,121,4,3,59,115,118,9554,9556,9561,1,8709,101,116,59,1,8709,59,1,8709,112,4,2,49,59,9571,9583,4,2,51,52,9577,9580,59,1,8196,59,1,8197,1,8195,4,2,103,115,9591,9594,59,1,331,112,59,1,8194,4,2,103,112,9604,9609,111,110,59,1,281,102,59,3,55349,56662,4,3,97,108,115,9622,9635,9640,114,4,2,59,115,9629,9631,1,8917,108,59,1,10723,117,115,59,1,10865,105,4,3,59,108,118,9649,9651,9656,1,949,111,110,59,1,949,59,1,1013,4,4,99,115,117,118,9669,9686,9716,9747,4,2,105,111,9675,9680,114,99,59,1,8790,108,111,110,59,1,8789,4,2,105,108,9692,9696,109,59,1,8770,97,110,116,4,2,103,108,9705,9710,116,114,59,1,10902,101,115,115,59,1,10901,4,3,97,101,105,9724,9729,9734,108,115,59,1,61,115,116,59,1,8799,118,4,2,59,68,9741,9743,1,8801,68,59,1,10872,112,97,114,115,108,59,1,10725,4,2,68,97,9761,9766,111,116,59,1,8787,114,114,59,1,10609,4,3,99,100,105,9779,9783,9788,114,59,1,8495,111,116,59,1,8784,109,59,1,8770,4,2,97,104,9798,9801,59,1,951,5,240,1,59,9806,1,240,4,2,109,114,9814,9822,108,5,235,1,59,9820,1,235,111,59,1,8364,4,3,99,105,112,9834,9838,9843,108,59,1,33,115,116,59,1,8707,4,2,101,111,9849,9859,99,116,97,116,105,111,110,59,1,8496,110,101,110,116,105,97,108,101,59,1,8519,4,12,97,99,101,102,105,106,108,110,111,112,114,115,9896,9910,9914,9921,9954,9960,9967,9989,9994,10027,10036,10164,108,108,105,110,103,100,111,116,115,101,113,59,1,8786,121,59,1,1092,109,97,108,101,59,1,9792,4,3,105,108,114,9929,9935,9950,108,105,103,59,1,64259,4,2,105,108,9941,9945,103,59,1,64256,105,103,59,1,64260,59,3,55349,56611,108,105,103,59,1,64257,108,105,103,59,3,102,106,4,3,97,108,116,9975,9979,9984,116,59,1,9837,105,103,59,1,64258,110,115,59,1,9649,111,102,59,1,402,4,2,112,114,1e4,10005,102,59,3,55349,56663,4,2,97,107,10011,10016,108,108,59,1,8704,4,2,59,118,10022,10024,1,8916,59,1,10969,97,114,116,105,110,116,59,1,10765,4,2,97,111,10042,10159,4,2,99,115,10048,10155,4,6,49,50,51,52,53,55,10062,10102,10114,10135,10139,10151,4,6,50,51,52,53,54,56,10076,10083,10086,10093,10096,10099,5,189,1,59,10081,1,189,59,1,8531,5,188,1,59,10091,1,188,59,1,8533,59,1,8537,59,1,8539,4,2,51,53,10108,10111,59,1,8532,59,1,8534,4,3,52,53,56,10122,10129,10132,5,190,1,59,10127,1,190,59,1,8535,59,1,8540,53,59,1,8536,4,2,54,56,10145,10148,59,1,8538,59,1,8541,56,59,1,8542,108,59,1,8260,119,110,59,1,8994,99,114,59,3,55349,56507,4,17,69,97,98,99,100,101,102,103,105,106,108,110,111,114,115,116,118,10206,10217,10247,10254,10268,10273,10358,10363,10374,10380,10385,10406,10458,10464,10470,10497,10610,4,2,59,108,10212,10214,1,8807,59,1,10892,4,3,99,109,112,10225,10231,10244,117,116,101,59,1,501,109,97,4,2,59,100,10239,10241,1,947,59,1,989,59,1,10886,114,101,118,101,59,1,287,4,2,105,121,10260,10265,114,99,59,1,285,59,1,1075,111,116,59,1,289,4,4,59,108,113,115,10283,10285,10288,10308,1,8805,59,1,8923,4,3,59,113,115,10296,10298,10301,1,8805,59,1,8807,108,97,110,116,59,1,10878,4,4,59,99,100,108,10318,10320,10324,10345,1,10878,99,59,1,10921,111,116,4,2,59,111,10332,10334,1,10880,4,2,59,108,10340,10342,1,10882,59,1,10884,4,2,59,101,10351,10354,3,8923,65024,115,59,1,10900,114,59,3,55349,56612,4,2,59,103,10369,10371,1,8811,59,1,8921,109,101,108,59,1,8503,99,121,59,1,1107,4,4,59,69,97,106,10395,10397,10400,10403,1,8823,59,1,10898,59,1,10917,59,1,10916,4,4,69,97,101,115,10416,10419,10434,10453,59,1,8809,112,4,2,59,112,10426,10428,1,10890,114,111,120,59,1,10890,4,2,59,113,10440,10442,1,10888,4,2,59,113,10448,10450,1,10888,59,1,8809,105,109,59,1,8935,112,102,59,3,55349,56664,97,118,101,59,1,96,4,2,99,105,10476,10480,114,59,1,8458,109,4,3,59,101,108,10489,10491,10494,1,8819,59,1,10894,59,1,10896,5,62,6,59,99,100,108,113,114,10512,10514,10527,10532,10538,10545,1,62,4,2,99,105,10520,10523,59,1,10919,114,59,1,10874,111,116,59,1,8919,80,97,114,59,1,10645,117,101,115,116,59,1,10876,4,5,97,100,101,108,115,10557,10574,10579,10599,10605,4,2,112,114,10563,10570,112,114,111,120,59,1,10886,114,59,1,10616,111,116,59,1,8919,113,4,2,108,113,10586,10592,101,115,115,59,1,8923,108,101,115,115,59,1,10892,101,115,115,59,1,8823,105,109,59,1,8819,4,2,101,110,10616,10626,114,116,110,101,113,113,59,3,8809,65024,69,59,3,8809,65024,4,10,65,97,98,99,101,102,107,111,115,121,10653,10658,10713,10718,10724,10760,10765,10786,10850,10875,114,114,59,1,8660,4,4,105,108,109,114,10668,10674,10678,10684,114,115,112,59,1,8202,102,59,1,189,105,108,116,59,1,8459,4,2,100,114,10690,10695,99,121,59,1,1098,4,3,59,99,119,10703,10705,10710,1,8596,105,114,59,1,10568,59,1,8621,97,114,59,1,8463,105,114,99,59,1,293,4,3,97,108,114,10732,10748,10754,114,116,115,4,2,59,117,10741,10743,1,9829,105,116,59,1,9829,108,105,112,59,1,8230,99,111,110,59,1,8889,114,59,3,55349,56613,115,4,2,101,119,10772,10779,97,114,111,119,59,1,10533,97,114,111,119,59,1,10534,4,5,97,109,111,112,114,10798,10803,10809,10839,10844,114,114,59,1,8703,116,104,116,59,1,8763,107,4,2,108,114,10816,10827,101,102,116,97,114,114,111,119,59,1,8617,105,103,104,116,97,114,114,111,119,59,1,8618,102,59,3,55349,56665,98,97,114,59,1,8213,4,3,99,108,116,10858,10863,10869,114,59,3,55349,56509,97,115,104,59,1,8463,114,111,107,59,1,295,4,2,98,112,10881,10887,117,108,108,59,1,8259,104,101,110,59,1,8208,4,15,97,99,101,102,103,105,106,109,110,111,112,113,115,116,117,10925,10936,10958,10977,10990,11001,11039,11045,11101,11192,11220,11226,11237,11285,11299,99,117,116,101,5,237,1,59,10934,1,237,4,3,59,105,121,10944,10946,10955,1,8291,114,99,5,238,1,59,10953,1,238,59,1,1080,4,2,99,120,10964,10968,121,59,1,1077,99,108,5,161,1,59,10975,1,161,4,2,102,114,10983,10986,59,1,8660,59,3,55349,56614,114,97,118,101,5,236,1,59,10999,1,236,4,4,59,105,110,111,11011,11013,11028,11034,1,8520,4,2,105,110,11019,11024,110,116,59,1,10764,116,59,1,8749,102,105,110,59,1,10716,116,97,59,1,8489,108,105,103,59,1,307,4,3,97,111,112,11053,11092,11096,4,3,99,103,116,11061,11065,11088,114,59,1,299,4,3,101,108,112,11073,11076,11082,59,1,8465,105,110,101,59,1,8464,97,114,116,59,1,8465,104,59,1,305,102,59,1,8887,101,100,59,1,437,4,5,59,99,102,111,116,11113,11115,11121,11136,11142,1,8712,97,114,101,59,1,8453,105,110,4,2,59,116,11129,11131,1,8734,105,101,59,1,10717,100,111,116,59,1,305,4,5,59,99,101,108,112,11154,11156,11161,11179,11186,1,8747,97,108,59,1,8890,4,2,103,114,11167,11173,101,114,115,59,1,8484,99,97,108,59,1,8890,97,114,104,107,59,1,10775,114,111,100,59,1,10812,4,4,99,103,112,116,11202,11206,11211,11216,121,59,1,1105,111,110,59,1,303,102,59,3,55349,56666,97,59,1,953,114,111,100,59,1,10812,117,101,115,116,5,191,1,59,11235,1,191,4,2,99,105,11243,11248,114,59,3,55349,56510,110,4,5,59,69,100,115,118,11261,11263,11266,11271,11282,1,8712,59,1,8953,111,116,59,1,8949,4,2,59,118,11277,11279,1,8948,59,1,8947,59,1,8712,4,2,59,105,11291,11293,1,8290,108,100,101,59,1,297,4,2,107,109,11305,11310,99,121,59,1,1110,108,5,239,1,59,11316,1,239,4,6,99,102,109,111,115,117,11332,11346,11351,11357,11363,11380,4,2,105,121,11338,11343,114,99,59,1,309,59,1,1081,114,59,3,55349,56615,97,116,104,59,1,567,112,102,59,3,55349,56667,4,2,99,101,11369,11374,114,59,3,55349,56511,114,99,121,59,1,1112,107,99,121,59,1,1108,4,8,97,99,102,103,104,106,111,115,11404,11418,11433,11438,11445,11450,11455,11461,112,112,97,4,2,59,118,11413,11415,1,954,59,1,1008,4,2,101,121,11424,11430,100,105,108,59,1,311,59,1,1082,114,59,3,55349,56616,114,101,101,110,59,1,312,99,121,59,1,1093,99,121,59,1,1116,112,102,59,3,55349,56668,99,114,59,3,55349,56512,4,23,65,66,69,72,97,98,99,100,101,102,103,104,106,108,109,110,111,112,114,115,116,117,118,11515,11538,11544,11555,11560,11721,11780,11818,11868,12136,12160,12171,12203,12208,12246,12275,12327,12509,12523,12569,12641,12732,12752,4,3,97,114,116,11523,11528,11532,114,114,59,1,8666,114,59,1,8656,97,105,108,59,1,10523,97,114,114,59,1,10510,4,2,59,103,11550,11552,1,8806,59,1,10891,97,114,59,1,10594,4,9,99,101,103,109,110,112,113,114,116,11580,11586,11594,11600,11606,11624,11627,11636,11694,117,116,101,59,1,314,109,112,116,121,118,59,1,10676,114,97,110,59,1,8466,98,100,97,59,1,955,103,4,3,59,100,108,11615,11617,11620,1,10216,59,1,10641,101,59,1,10216,59,1,10885,117,111,5,171,1,59,11634,1,171,114,4,8,59,98,102,104,108,112,115,116,11655,11657,11669,11673,11677,11681,11685,11690,1,8592,4,2,59,102,11663,11665,1,8676,115,59,1,10527,115,59,1,10525,107,59,1,8617,112,59,1,8619,108,59,1,10553,105,109,59,1,10611,108,59,1,8610,4,3,59,97,101,11702,11704,11709,1,10923,105,108,59,1,10521,4,2,59,115,11715,11717,1,10925,59,3,10925,65024,4,3,97,98,114,11729,11734,11739,114,114,59,1,10508,114,107,59,1,10098,4,2,97,107,11745,11758,99,4,2,101,107,11752,11755,59,1,123,59,1,91,4,2,101,115,11764,11767,59,1,10635,108,4,2,100,117,11774,11777,59,1,10639,59,1,10637,4,4,97,101,117,121,11790,11796,11811,11815,114,111,110,59,1,318,4,2,100,105,11802,11807,105,108,59,1,316,108,59,1,8968,98,59,1,123,59,1,1083,4,4,99,113,114,115,11828,11832,11845,11864,97,59,1,10550,117,111,4,2,59,114,11840,11842,1,8220,59,1,8222,4,2,100,117,11851,11857,104,97,114,59,1,10599,115,104,97,114,59,1,10571,104,59,1,8626,4,5,59,102,103,113,115,11880,11882,12008,12011,12031,1,8804,116,4,5,97,104,108,114,116,11895,11913,11935,11947,11996,114,114,111,119,4,2,59,116,11905,11907,1,8592,97,105,108,59,1,8610,97,114,112,111,111,110,4,2,100,117,11925,11931,111,119,110,59,1,8637,112,59,1,8636,101,102,116,97,114,114,111,119,115,59,1,8647,105,103,104,116,4,3,97,104,115,11959,11974,11984,114,114,111,119,4,2,59,115,11969,11971,1,8596,59,1,8646,97,114,112,111,111,110,115,59,1,8651,113,117,105,103,97,114,114,111,119,59,1,8621,104,114,101,101,116,105,109,101,115,59,1,8907,59,1,8922,4,3,59,113,115,12019,12021,12024,1,8804,59,1,8806,108,97,110,116,59,1,10877,4,5,59,99,100,103,115,12043,12045,12049,12070,12083,1,10877,99,59,1,10920,111,116,4,2,59,111,12057,12059,1,10879,4,2,59,114,12065,12067,1,10881,59,1,10883,4,2,59,101,12076,12079,3,8922,65024,115,59,1,10899,4,5,97,100,101,103,115,12095,12103,12108,12126,12131,112,112,114,111,120,59,1,10885,111,116,59,1,8918,113,4,2,103,113,12115,12120,116,114,59,1,8922,103,116,114,59,1,10891,116,114,59,1,8822,105,109,59,1,8818,4,3,105,108,114,12144,12150,12156,115,104,116,59,1,10620,111,111,114,59,1,8970,59,3,55349,56617,4,2,59,69,12166,12168,1,8822,59,1,10897,4,2,97,98,12177,12198,114,4,2,100,117,12184,12187,59,1,8637,4,2,59,108,12193,12195,1,8636,59,1,10602,108,107,59,1,9604,99,121,59,1,1113,4,5,59,97,99,104,116,12220,12222,12227,12235,12241,1,8810,114,114,59,1,8647,111,114,110,101,114,59,1,8990,97,114,100,59,1,10603,114,105,59,1,9722,4,2,105,111,12252,12258,100,111,116,59,1,320,117,115,116,4,2,59,97,12267,12269,1,9136,99,104,101,59,1,9136,4,4,69,97,101,115,12285,12288,12303,12322,59,1,8808,112,4,2,59,112,12295,12297,1,10889,114,111,120,59,1,10889,4,2,59,113,12309,12311,1,10887,4,2,59,113,12317,12319,1,10887,59,1,8808,105,109,59,1,8934,4,8,97,98,110,111,112,116,119,122,12345,12359,12364,12421,12446,12467,12474,12490,4,2,110,114,12351,12355,103,59,1,10220,114,59,1,8701,114,107,59,1,10214,103,4,3,108,109,114,12373,12401,12409,101,102,116,4,2,97,114,12382,12389,114,114,111,119,59,1,10229,105,103,104,116,97,114,114,111,119,59,1,10231,97,112,115,116,111,59,1,10236,105,103,104,116,97,114,114,111,119,59,1,10230,112,97,114,114,111,119,4,2,108,114,12433,12439,101,102,116,59,1,8619,105,103,104,116,59,1,8620,4,3,97,102,108,12454,12458,12462,114,59,1,10629,59,3,55349,56669,117,115,59,1,10797,105,109,101,115,59,1,10804,4,2,97,98,12480,12485,115,116,59,1,8727,97,114,59,1,95,4,3,59,101,102,12498,12500,12506,1,9674,110,103,101,59,1,9674,59,1,10731,97,114,4,2,59,108,12517,12519,1,40,116,59,1,10643,4,5,97,99,104,109,116,12535,12540,12548,12561,12564,114,114,59,1,8646,111,114,110,101,114,59,1,8991,97,114,4,2,59,100,12556,12558,1,8651,59,1,10605,59,1,8206,114,105,59,1,8895,4,6,97,99,104,105,113,116,12583,12589,12594,12597,12614,12635,113,117,111,59,1,8249,114,59,3,55349,56513,59,1,8624,109,4,3,59,101,103,12606,12608,12611,1,8818,59,1,10893,59,1,10895,4,2,98,117,12620,12623,59,1,91,111,4,2,59,114,12630,12632,1,8216,59,1,8218,114,111,107,59,1,322,5,60,8,59,99,100,104,105,108,113,114,12660,12662,12675,12680,12686,12692,12698,12705,1,60,4,2,99,105,12668,12671,59,1,10918,114,59,1,10873,111,116,59,1,8918,114,101,101,59,1,8907,109,101,115,59,1,8905,97,114,114,59,1,10614,117,101,115,116,59,1,10875,4,2,80,105,12711,12716,97,114,59,1,10646,4,3,59,101,102,12724,12726,12729,1,9667,59,1,8884,59,1,9666,114,4,2,100,117,12739,12746,115,104,97,114,59,1,10570,104,97,114,59,1,10598,4,2,101,110,12758,12768,114,116,110,101,113,113,59,3,8808,65024,69,59,3,8808,65024,4,14,68,97,99,100,101,102,104,105,108,110,111,112,115,117,12803,12809,12893,12908,12914,12928,12933,12937,13011,13025,13032,13049,13052,13069,68,111,116,59,1,8762,4,4,99,108,112,114,12819,12827,12849,12887,114,5,175,1,59,12825,1,175,4,2,101,116,12833,12836,59,1,9794,4,2,59,101,12842,12844,1,10016,115,101,59,1,10016,4,2,59,115,12855,12857,1,8614,116,111,4,4,59,100,108,117,12869,12871,12877,12883,1,8614,111,119,110,59,1,8615,101,102,116,59,1,8612,112,59,1,8613,107,101,114,59,1,9646,4,2,111,121,12899,12905,109,109,97,59,1,10793,59,1,1084,97,115,104,59,1,8212,97,115,117,114,101,100,97,110,103,108,101,59,1,8737,114,59,3,55349,56618,111,59,1,8487,4,3,99,100,110,12945,12954,12985,114,111,5,181,1,59,12952,1,181,4,4,59,97,99,100,12964,12966,12971,12976,1,8739,115,116,59,1,42,105,114,59,1,10992,111,116,5,183,1,59,12983,1,183,117,115,4,3,59,98,100,12995,12997,13e3,1,8722,59,1,8863,4,2,59,117,13006,13008,1,8760,59,1,10794,4,2,99,100,13017,13021,112,59,1,10971,114,59,1,8230,112,108,117,115,59,1,8723,4,2,100,112,13038,13044,101,108,115,59,1,8871,102,59,3,55349,56670,59,1,8723,4,2,99,116,13058,13063,114,59,3,55349,56514,112,111,115,59,1,8766,4,3,59,108,109,13077,13079,13087,1,956,116,105,109,97,112,59,1,8888,97,112,59,1,8888,4,24,71,76,82,86,97,98,99,100,101,102,103,104,105,106,108,109,111,112,114,115,116,117,118,119,13142,13165,13217,13229,13247,13330,13359,13414,13420,13508,13513,13579,13602,13626,13631,13762,13767,13855,13936,13995,14214,14285,14312,14432,4,2,103,116,13148,13152,59,3,8921,824,4,2,59,118,13158,13161,3,8811,8402,59,3,8811,824,4,3,101,108,116,13173,13200,13204,102,116,4,2,97,114,13181,13188,114,114,111,119,59,1,8653,105,103,104,116,97,114,114,111,119,59,1,8654,59,3,8920,824,4,2,59,118,13210,13213,3,8810,8402,59,3,8810,824,105,103,104,116,97,114,114,111,119,59,1,8655,4,2,68,100,13235,13241,97,115,104,59,1,8879,97,115,104,59,1,8878,4,5,98,99,110,112,116,13259,13264,13270,13275,13308,108,97,59,1,8711,117,116,101,59,1,324,103,59,3,8736,8402,4,5,59,69,105,111,112,13287,13289,13293,13298,13302,1,8777,59,3,10864,824,100,59,3,8779,824,115,59,1,329,114,111,120,59,1,8777,117,114,4,2,59,97,13316,13318,1,9838,108,4,2,59,115,13325,13327,1,9838,59,1,8469,4,2,115,117,13336,13344,112,5,160,1,59,13342,1,160,109,112,4,2,59,101,13352,13355,3,8782,824,59,3,8783,824,4,5,97,101,111,117,121,13371,13385,13391,13407,13411,4,2,112,114,13377,13380,59,1,10819,111,110,59,1,328,100,105,108,59,1,326,110,103,4,2,59,100,13399,13401,1,8775,111,116,59,3,10861,824,112,59,1,10818,59,1,1085,97,115,104,59,1,8211,4,7,59,65,97,100,113,115,120,13436,13438,13443,13466,13472,13478,13494,1,8800,114,114,59,1,8663,114,4,2,104,114,13450,13454,107,59,1,10532,4,2,59,111,13460,13462,1,8599,119,59,1,8599,111,116,59,3,8784,824,117,105,118,59,1,8802,4,2,101,105,13484,13489,97,114,59,1,10536,109,59,3,8770,824,105,115,116,4,2,59,115,13503,13505,1,8708,59,1,8708,114,59,3,55349,56619,4,4,69,101,115,116,13523,13527,13563,13568,59,3,8807,824,4,3,59,113,115,13535,13537,13559,1,8817,4,3,59,113,115,13545,13547,13551,1,8817,59,3,8807,824,108,97,110,116,59,3,10878,824,59,3,10878,824,105,109,59,1,8821,4,2,59,114,13574,13576,1,8815,59,1,8815,4,3,65,97,112,13587,13592,13597,114,114,59,1,8654,114,114,59,1,8622,97,114,59,1,10994,4,3,59,115,118,13610,13612,13623,1,8715,4,2,59,100,13618,13620,1,8956,59,1,8954,59,1,8715,99,121,59,1,1114,4,7,65,69,97,100,101,115,116,13647,13652,13656,13661,13665,13737,13742,114,114,59,1,8653,59,3,8806,824,114,114,59,1,8602,114,59,1,8229,4,4,59,102,113,115,13675,13677,13703,13725,1,8816,116,4,2,97,114,13684,13691,114,114,111,119,59,1,8602,105,103,104,116,97,114,114,111,119,59,1,8622,4,3,59,113,115,13711,13713,13717,1,8816,59,3,8806,824,108,97,110,116,59,3,10877,824,4,2,59,115,13731,13734,3,10877,824,59,1,8814,105,109,59,1,8820,4,2,59,114,13748,13750,1,8814,105,4,2,59,101,13757,13759,1,8938,59,1,8940,105,100,59,1,8740,4,2,112,116,13773,13778,102,59,3,55349,56671,5,172,3,59,105,110,13787,13789,13829,1,172,110,4,4,59,69,100,118,13800,13802,13806,13812,1,8713,59,3,8953,824,111,116,59,3,8949,824,4,3,97,98,99,13820,13823,13826,59,1,8713,59,1,8951,59,1,8950,105,4,2,59,118,13836,13838,1,8716,4,3,97,98,99,13846,13849,13852,59,1,8716,59,1,8958,59,1,8957,4,3,97,111,114,13863,13892,13899,114,4,4,59,97,115,116,13874,13876,13883,13888,1,8742,108,108,101,108,59,1,8742,108,59,3,11005,8421,59,3,8706,824,108,105,110,116,59,1,10772,4,3,59,99,101,13907,13909,13914,1,8832,117,101,59,1,8928,4,2,59,99,13920,13923,3,10927,824,4,2,59,101,13929,13931,1,8832,113,59,3,10927,824,4,4,65,97,105,116,13946,13951,13971,13982,114,114,59,1,8655,114,114,4,3,59,99,119,13961,13963,13967,1,8603,59,3,10547,824,59,3,8605,824,103,104,116,97,114,114,111,119,59,1,8603,114,105,4,2,59,101,13990,13992,1,8939,59,1,8941,4,7,99,104,105,109,112,113,117,14011,14036,14060,14080,14085,14090,14106,4,4,59,99,101,114,14021,14023,14028,14032,1,8833,117,101,59,1,8929,59,3,10928,824,59,3,55349,56515,111,114,116,4,2,109,112,14045,14050,105,100,59,1,8740,97,114,97,108,108,101,108,59,1,8742,109,4,2,59,101,14067,14069,1,8769,4,2,59,113,14075,14077,1,8772,59,1,8772,105,100,59,1,8740,97,114,59,1,8742,115,117,4,2,98,112,14098,14102,101,59,1,8930,101,59,1,8931,4,3,98,99,112,14114,14157,14171,4,4,59,69,101,115,14124,14126,14130,14133,1,8836,59,3,10949,824,59,1,8840,101,116,4,2,59,101,14141,14144,3,8834,8402,113,4,2,59,113,14151,14153,1,8840,59,3,10949,824,99,4,2,59,101,14164,14166,1,8833,113,59,3,10928,824,4,4,59,69,101,115,14181,14183,14187,14190,1,8837,59,3,10950,824,59,1,8841,101,116,4,2,59,101,14198,14201,3,8835,8402,113,4,2,59,113,14208,14210,1,8841,59,3,10950,824,4,4,103,105,108,114,14224,14228,14238,14242,108,59,1,8825,108,100,101,5,241,1,59,14236,1,241,103,59,1,8824,105,97,110,103,108,101,4,2,108,114,14254,14269,101,102,116,4,2,59,101,14263,14265,1,8938,113,59,1,8940,105,103,104,116,4,2,59,101,14279,14281,1,8939,113,59,1,8941,4,2,59,109,14291,14293,1,957,4,3,59,101,115,14301,14303,14308,1,35,114,111,59,1,8470,112,59,1,8199,4,9,68,72,97,100,103,105,108,114,115,14332,14338,14344,14349,14355,14369,14376,14408,14426,97,115,104,59,1,8877,97,114,114,59,1,10500,112,59,3,8781,8402,97,115,104,59,1,8876,4,2,101,116,14361,14365,59,3,8805,8402,59,3,62,8402,110,102,105,110,59,1,10718,4,3,65,101,116,14384,14389,14393,114,114,59,1,10498,59,3,8804,8402,4,2,59,114,14399,14402,3,60,8402,105,101,59,3,8884,8402,4,2,65,116,14414,14419,114,114,59,1,10499,114,105,101,59,3,8885,8402,105,109,59,3,8764,8402,4,3,65,97,110,14440,14445,14468,114,114,59,1,8662,114,4,2,104,114,14452,14456,107,59,1,10531,4,2,59,111,14462,14464,1,8598,119,59,1,8598,101,97,114,59,1,10535,4,18,83,97,99,100,101,102,103,104,105,108,109,111,112,114,115,116,117,118,14512,14515,14535,14560,14597,14603,14618,14643,14657,14662,14701,14741,14747,14769,14851,14877,14907,14916,59,1,9416,4,2,99,115,14521,14531,117,116,101,5,243,1,59,14529,1,243,116,59,1,8859,4,2,105,121,14541,14557,114,4,2,59,99,14548,14550,1,8858,5,244,1,59,14555,1,244,59,1,1086,4,5,97,98,105,111,115,14572,14577,14583,14587,14591,115,104,59,1,8861,108,97,99,59,1,337,118,59,1,10808,116,59,1,8857,111,108,100,59,1,10684,108,105,103,59,1,339,4,2,99,114,14609,14614,105,114,59,1,10687,59,3,55349,56620,4,3,111,114,116,14626,14630,14640,110,59,1,731,97,118,101,5,242,1,59,14638,1,242,59,1,10689,4,2,98,109,14649,14654,97,114,59,1,10677,59,1,937,110,116,59,1,8750,4,4,97,99,105,116,14672,14677,14693,14698,114,114,59,1,8634,4,2,105,114,14683,14687,114,59,1,10686,111,115,115,59,1,10683,110,101,59,1,8254,59,1,10688,4,3,97,101,105,14709,14714,14719,99,114,59,1,333,103,97,59,1,969,4,3,99,100,110,14727,14733,14736,114,111,110,59,1,959,59,1,10678,117,115,59,1,8854,112,102,59,3,55349,56672,4,3,97,101,108,14755,14759,14764,114,59,1,10679,114,112,59,1,10681,117,115,59,1,8853,4,7,59,97,100,105,111,115,118,14785,14787,14792,14831,14837,14841,14848,1,8744,114,114,59,1,8635,4,4,59,101,102,109,14802,14804,14817,14824,1,10845,114,4,2,59,111,14811,14813,1,8500,102,59,1,8500,5,170,1,59,14822,1,170,5,186,1,59,14829,1,186,103,111,102,59,1,8886,114,59,1,10838,108,111,112,101,59,1,10839,59,1,10843,4,3,99,108,111,14859,14863,14873,114,59,1,8500,97,115,104,5,248,1,59,14871,1,248,108,59,1,8856,105,4,2,108,109,14884,14893,100,101,5,245,1,59,14891,1,245,101,115,4,2,59,97,14901,14903,1,8855,115,59,1,10806,109,108,5,246,1,59,14914,1,246,98,97,114,59,1,9021,4,12,97,99,101,102,104,105,108,109,111,114,115,117,14948,14992,14996,15033,15038,15068,15090,15189,15192,15222,15427,15441,114,4,4,59,97,115,116,14959,14961,14976,14989,1,8741,5,182,2,59,108,14968,14970,1,182,108,101,108,59,1,8741,4,2,105,108,14982,14986,109,59,1,10995,59,1,11005,59,1,8706,121,59,1,1087,114,4,5,99,105,109,112,116,15009,15014,15019,15024,15027,110,116,59,1,37,111,100,59,1,46,105,108,59,1,8240,59,1,8869,101,110,107,59,1,8241,114,59,3,55349,56621,4,3,105,109,111,15046,15057,15063,4,2,59,118,15052,15054,1,966,59,1,981,109,97,116,59,1,8499,110,101,59,1,9742,4,3,59,116,118,15076,15078,15087,1,960,99,104,102,111,114,107,59,1,8916,59,1,982,4,2,97,117,15096,15119,110,4,2,99,107,15103,15115,107,4,2,59,104,15110,15112,1,8463,59,1,8462,118,59,1,8463,115,4,9,59,97,98,99,100,101,109,115,116,15140,15142,15148,15151,15156,15168,15171,15179,15184,1,43,99,105,114,59,1,10787,59,1,8862,105,114,59,1,10786,4,2,111,117,15162,15165,59,1,8724,59,1,10789,59,1,10866,110,5,177,1,59,15177,1,177,105,109,59,1,10790,119,111,59,1,10791,59,1,177,4,3,105,112,117,15200,15208,15213,110,116,105,110,116,59,1,10773,102,59,3,55349,56673,110,100,5,163,1,59,15220,1,163,4,10,59,69,97,99,101,105,110,111,115,117,15244,15246,15249,15253,15258,15334,15347,15367,15416,15421,1,8826,59,1,10931,112,59,1,10935,117,101,59,1,8828,4,2,59,99,15264,15266,1,10927,4,6,59,97,99,101,110,115,15280,15282,15290,15299,15303,15329,1,8826,112,112,114,111,120,59,1,10935,117,114,108,121,101,113,59,1,8828,113,59,1,10927,4,3,97,101,115,15311,15319,15324,112,112,114,111,120,59,1,10937,113,113,59,1,10933,105,109,59,1,8936,105,109,59,1,8830,109,101,4,2,59,115,15342,15344,1,8242,59,1,8473,4,3,69,97,115,15355,15358,15362,59,1,10933,112,59,1,10937,105,109,59,1,8936,4,3,100,102,112,15375,15378,15404,59,1,8719,4,3,97,108,115,15386,15392,15398,108,97,114,59,1,9006,105,110,101,59,1,8978,117,114,102,59,1,8979,4,2,59,116,15410,15412,1,8733,111,59,1,8733,105,109,59,1,8830,114,101,108,59,1,8880,4,2,99,105,15433,15438,114,59,3,55349,56517,59,1,968,110,99,115,112,59,1,8200,4,6,102,105,111,112,115,117,15462,15467,15472,15478,15485,15491,114,59,3,55349,56622,110,116,59,1,10764,112,102,59,3,55349,56674,114,105,109,101,59,1,8279,99,114,59,3,55349,56518,4,3,97,101,111,15499,15520,15534,116,4,2,101,105,15506,15515,114,110,105,111,110,115,59,1,8461,110,116,59,1,10774,115,116,4,2,59,101,15528,15530,1,63,113,59,1,8799,116,5,34,1,59,15540,1,34,4,21,65,66,72,97,98,99,100,101,102,104,105,108,109,110,111,112,114,115,116,117,120,15586,15609,15615,15620,15796,15855,15893,15931,15977,16001,16039,16183,16204,16222,16228,16285,16312,16318,16363,16408,16416,4,3,97,114,116,15594,15599,15603,114,114,59,1,8667,114,59,1,8658,97,105,108,59,1,10524,97,114,114,59,1,10511,97,114,59,1,10596,4,7,99,100,101,110,113,114,116,15636,15651,15656,15664,15687,15696,15770,4,2,101,117,15642,15646,59,3,8765,817,116,101,59,1,341,105,99,59,1,8730,109,112,116,121,118,59,1,10675,103,4,4,59,100,101,108,15675,15677,15680,15683,1,10217,59,1,10642,59,1,10661,101,59,1,10217,117,111,5,187,1,59,15694,1,187,114,4,11,59,97,98,99,102,104,108,112,115,116,119,15721,15723,15727,15739,15742,15746,15750,15754,15758,15763,15767,1,8594,112,59,1,10613,4,2,59,102,15733,15735,1,8677,115,59,1,10528,59,1,10547,115,59,1,10526,107,59,1,8618,112,59,1,8620,108,59,1,10565,105,109,59,1,10612,108,59,1,8611,59,1,8605,4,2,97,105,15776,15781,105,108,59,1,10522,111,4,2,59,110,15788,15790,1,8758,97,108,115,59,1,8474,4,3,97,98,114,15804,15809,15814,114,114,59,1,10509,114,107,59,1,10099,4,2,97,107,15820,15833,99,4,2,101,107,15827,15830,59,1,125,59,1,93,4,2,101,115,15839,15842,59,1,10636,108,4,2,100,117,15849,15852,59,1,10638,59,1,10640,4,4,97,101,117,121,15865,15871,15886,15890,114,111,110,59,1,345,4,2,100,105,15877,15882,105,108,59,1,343,108,59,1,8969,98,59,1,125,59,1,1088,4,4,99,108,113,115,15903,15907,15914,15927,97,59,1,10551,100,104,97,114,59,1,10601,117,111,4,2,59,114,15922,15924,1,8221,59,1,8221,104,59,1,8627,4,3,97,99,103,15939,15966,15970,108,4,4,59,105,112,115,15950,15952,15957,15963,1,8476,110,101,59,1,8475,97,114,116,59,1,8476,59,1,8477,116,59,1,9645,5,174,1,59,15975,1,174,4,3,105,108,114,15985,15991,15997,115,104,116,59,1,10621,111,111,114,59,1,8971,59,3,55349,56623,4,2,97,111,16007,16028,114,4,2,100,117,16014,16017,59,1,8641,4,2,59,108,16023,16025,1,8640,59,1,10604,4,2,59,118,16034,16036,1,961,59,1,1009,4,3,103,110,115,16047,16167,16171,104,116,4,6,97,104,108,114,115,116,16063,16081,16103,16130,16143,16155,114,114,111,119,4,2,59,116,16073,16075,1,8594,97,105,108,59,1,8611,97,114,112,111,111,110,4,2,100,117,16093,16099,111,119,110,59,1,8641,112,59,1,8640,101,102,116,4,2,97,104,16112,16120,114,114,111,119,115,59,1,8644,97,114,112,111,111,110,115,59,1,8652,105,103,104,116,97,114,114,111,119,115,59,1,8649,113,117,105,103,97,114,114,111,119,59,1,8605,104,114,101,101,116,105,109,101,115,59,1,8908,103,59,1,730,105,110,103,100,111,116,115,101,113,59,1,8787,4,3,97,104,109,16191,16196,16201,114,114,59,1,8644,97,114,59,1,8652,59,1,8207,111,117,115,116,4,2,59,97,16214,16216,1,9137,99,104,101,59,1,9137,109,105,100,59,1,10990,4,4,97,98,112,116,16238,16252,16257,16278,4,2,110,114,16244,16248,103,59,1,10221,114,59,1,8702,114,107,59,1,10215,4,3,97,102,108,16265,16269,16273,114,59,1,10630,59,3,55349,56675,117,115,59,1,10798,105,109,101,115,59,1,10805,4,2,97,112,16291,16304,114,4,2,59,103,16298,16300,1,41,116,59,1,10644,111,108,105,110,116,59,1,10770,97,114,114,59,1,8649,4,4,97,99,104,113,16328,16334,16339,16342,113,117,111,59,1,8250,114,59,3,55349,56519,59,1,8625,4,2,98,117,16348,16351,59,1,93,111,4,2,59,114,16358,16360,1,8217,59,1,8217,4,3,104,105,114,16371,16377,16383,114,101,101,59,1,8908,109,101,115,59,1,8906,105,4,4,59,101,102,108,16394,16396,16399,16402,1,9657,59,1,8885,59,1,9656,116,114,105,59,1,10702,108,117,104,97,114,59,1,10600,59,1,8478,4,19,97,98,99,100,101,102,104,105,108,109,111,112,113,114,115,116,117,119,122,16459,16466,16472,16572,16590,16672,16687,16746,16844,16850,16924,16963,16988,17115,17121,17154,17206,17614,17656,99,117,116,101,59,1,347,113,117,111,59,1,8218,4,10,59,69,97,99,101,105,110,112,115,121,16494,16496,16499,16513,16518,16531,16536,16556,16564,16569,1,8827,59,1,10932,4,2,112,114,16505,16508,59,1,10936,111,110,59,1,353,117,101,59,1,8829,4,2,59,100,16524,16526,1,10928,105,108,59,1,351,114,99,59,1,349,4,3,69,97,115,16544,16547,16551,59,1,10934,112,59,1,10938,105,109,59,1,8937,111,108,105,110,116,59,1,10771,105,109,59,1,8831,59,1,1089,111,116,4,3,59,98,101,16582,16584,16587,1,8901,59,1,8865,59,1,10854,4,7,65,97,99,109,115,116,120,16606,16611,16634,16642,16646,16652,16668,114,114,59,1,8664,114,4,2,104,114,16618,16622,107,59,1,10533,4,2,59,111,16628,16630,1,8600,119,59,1,8600,116,5,167,1,59,16640,1,167,105,59,1,59,119,97,114,59,1,10537,109,4,2,105,110,16659,16665,110,117,115,59,1,8726,59,1,8726,116,59,1,10038,114,4,2,59,111,16679,16682,3,55349,56624,119,110,59,1,8994,4,4,97,99,111,121,16697,16702,16716,16739,114,112,59,1,9839,4,2,104,121,16708,16713,99,121,59,1,1097,59,1,1096,114,116,4,2,109,112,16724,16729,105,100,59,1,8739,97,114,97,108,108,101,108,59,1,8741,5,173,1,59,16744,1,173,4,2,103,109,16752,16770,109,97,4,3,59,102,118,16762,16764,16767,1,963,59,1,962,59,1,962,4,8,59,100,101,103,108,110,112,114,16788,16790,16795,16806,16817,16828,16832,16838,1,8764,111,116,59,1,10858,4,2,59,113,16801,16803,1,8771,59,1,8771,4,2,59,69,16812,16814,1,10910,59,1,10912,4,2,59,69,16823,16825,1,10909,59,1,10911,101,59,1,8774,108,117,115,59,1,10788,97,114,114,59,1,10610,97,114,114,59,1,8592,4,4,97,101,105,116,16860,16883,16891,16904,4,2,108,115,16866,16878,108,115,101,116,109,105,110,117,115,59,1,8726,104,112,59,1,10803,112,97,114,115,108,59,1,10724,4,2,100,108,16897,16900,59,1,8739,101,59,1,8995,4,2,59,101,16910,16912,1,10922,4,2,59,115,16918,16920,1,10924,59,3,10924,65024,4,3,102,108,112,16932,16938,16958,116,99,121,59,1,1100,4,2,59,98,16944,16946,1,47,4,2,59,97,16952,16954,1,10692,114,59,1,9023,102,59,3,55349,56676,97,4,2,100,114,16970,16985,101,115,4,2,59,117,16978,16980,1,9824,105,116,59,1,9824,59,1,8741,4,3,99,115,117,16996,17028,17089,4,2,97,117,17002,17015,112,4,2,59,115,17009,17011,1,8851,59,3,8851,65024,112,4,2,59,115,17022,17024,1,8852,59,3,8852,65024,117,4,2,98,112,17035,17062,4,3,59,101,115,17043,17045,17048,1,8847,59,1,8849,101,116,4,2,59,101,17056,17058,1,8847,113,59,1,8849,4,3,59,101,115,17070,17072,17075,1,8848,59,1,8850,101,116,4,2,59,101,17083,17085,1,8848,113,59,1,8850,4,3,59,97,102,17097,17099,17112,1,9633,114,4,2,101,102,17106,17109,59,1,9633,59,1,9642,59,1,9642,97,114,114,59,1,8594,4,4,99,101,109,116,17131,17136,17142,17148,114,59,3,55349,56520,116,109,110,59,1,8726,105,108,101,59,1,8995,97,114,102,59,1,8902,4,2,97,114,17160,17172,114,4,2,59,102,17167,17169,1,9734,59,1,9733,4,2,97,110,17178,17202,105,103,104,116,4,2,101,112,17188,17197,112,115,105,108,111,110,59,1,1013,104,105,59,1,981,115,59,1,175,4,5,98,99,109,110,112,17218,17351,17420,17423,17427,4,9,59,69,100,101,109,110,112,114,115,17238,17240,17243,17248,17261,17267,17279,17285,17291,1,8834,59,1,10949,111,116,59,1,10941,4,2,59,100,17254,17256,1,8838,111,116,59,1,10947,117,108,116,59,1,10945,4,2,69,101,17273,17276,59,1,10955,59,1,8842,108,117,115,59,1,10943,97,114,114,59,1,10617,4,3,101,105,117,17299,17335,17339,116,4,3,59,101,110,17308,17310,17322,1,8834,113,4,2,59,113,17317,17319,1,8838,59,1,10949,101,113,4,2,59,113,17330,17332,1,8842,59,1,10955,109,59,1,10951,4,2,98,112,17345,17348,59,1,10965,59,1,10963,99,4,6,59,97,99,101,110,115,17366,17368,17376,17385,17389,17415,1,8827,112,112,114,111,120,59,1,10936,117,114,108,121,101,113,59,1,8829,113,59,1,10928,4,3,97,101,115,17397,17405,17410,112,112,114,111,120,59,1,10938,113,113,59,1,10934,105,109,59,1,8937,105,109,59,1,8831,59,1,8721,103,59,1,9834,4,13,49,50,51,59,69,100,101,104,108,109,110,112,115,17455,17462,17469,17476,17478,17481,17496,17509,17524,17530,17536,17548,17554,5,185,1,59,17460,1,185,5,178,1,59,17467,1,178,5,179,1,59,17474,1,179,1,8835,59,1,10950,4,2,111,115,17487,17491,116,59,1,10942,117,98,59,1,10968,4,2,59,100,17502,17504,1,8839,111,116,59,1,10948,115,4,2,111,117,17516,17520,108,59,1,10185,98,59,1,10967,97,114,114,59,1,10619,117,108,116,59,1,10946,4,2,69,101,17542,17545,59,1,10956,59,1,8843,108,117,115,59,1,10944,4,3,101,105,117,17562,17598,17602,116,4,3,59,101,110,17571,17573,17585,1,8835,113,4,2,59,113,17580,17582,1,8839,59,1,10950,101,113,4,2,59,113,17593,17595,1,8843,59,1,10956,109,59,1,10952,4,2,98,112,17608,17611,59,1,10964,59,1,10966,4,3,65,97,110,17622,17627,17650,114,114,59,1,8665,114,4,2,104,114,17634,17638,107,59,1,10534,4,2,59,111,17644,17646,1,8601,119,59,1,8601,119,97,114,59,1,10538,108,105,103,5,223,1,59,17664,1,223,4,13,97,98,99,100,101,102,104,105,111,112,114,115,119,17694,17709,17714,17737,17742,17749,17754,17860,17905,17957,17964,18090,18122,4,2,114,117,17700,17706,103,101,116,59,1,8982,59,1,964,114,107,59,1,9140,4,3,97,101,121,17722,17728,17734,114,111,110,59,1,357,100,105,108,59,1,355,59,1,1090,111,116,59,1,8411,108,114,101,99,59,1,8981,114,59,3,55349,56625,4,4,101,105,107,111,17764,17805,17836,17851,4,2,114,116,17770,17786,101,4,2,52,102,17777,17780,59,1,8756,111,114,101,59,1,8756,97,4,3,59,115,118,17795,17797,17802,1,952,121,109,59,1,977,59,1,977,4,2,99,110,17811,17831,107,4,2,97,115,17818,17826,112,112,114,111,120,59,1,8776,105,109,59,1,8764,115,112,59,1,8201,4,2,97,115,17842,17846,112,59,1,8776,105,109,59,1,8764,114,110,5,254,1,59,17858,1,254,4,3,108,109,110,17868,17873,17901,100,101,59,1,732,101,115,5,215,3,59,98,100,17884,17886,17898,1,215,4,2,59,97,17892,17894,1,8864,114,59,1,10801,59,1,10800,116,59,1,8749,4,3,101,112,115,17913,17917,17953,97,59,1,10536,4,4,59,98,99,102,17927,17929,17934,17939,1,8868,111,116,59,1,9014,105,114,59,1,10993,4,2,59,111,17945,17948,3,55349,56677,114,107,59,1,10970,97,59,1,10537,114,105,109,101,59,1,8244,4,3,97,105,112,17972,17977,18082,100,101,59,1,8482,4,7,97,100,101,109,112,115,116,17993,18051,18056,18059,18066,18072,18076,110,103,108,101,4,5,59,100,108,113,114,18009,18011,18017,18032,18035,1,9653,111,119,110,59,1,9663,101,102,116,4,2,59,101,18026,18028,1,9667,113,59,1,8884,59,1,8796,105,103,104,116,4,2,59,101,18045,18047,1,9657,113,59,1,8885,111,116,59,1,9708,59,1,8796,105,110,117,115,59,1,10810,108,117,115,59,1,10809,98,59,1,10701,105,109,101,59,1,10811,101,122,105,117,109,59,1,9186,4,3,99,104,116,18098,18111,18116,4,2,114,121,18104,18108,59,3,55349,56521,59,1,1094,99,121,59,1,1115,114,111,107,59,1,359,4,2,105,111,18128,18133,120,116,59,1,8812,104,101,97,100,4,2,108,114,18143,18154,101,102,116,97,114,114,111,119,59,1,8606,105,103,104,116,97,114,114,111,119,59,1,8608,4,18,65,72,97,98,99,100,102,103,104,108,109,111,112,114,115,116,117,119,18204,18209,18214,18234,18250,18268,18292,18308,18319,18343,18379,18397,18413,18504,18547,18553,18584,18603,114,114,59,1,8657,97,114,59,1,10595,4,2,99,114,18220,18230,117,116,101,5,250,1,59,18228,1,250,114,59,1,8593,114,4,2,99,101,18241,18245,121,59,1,1118,118,101,59,1,365,4,2,105,121,18256,18265,114,99,5,251,1,59,18263,1,251,59,1,1091,4,3,97,98,104,18276,18281,18287,114,114,59,1,8645,108,97,99,59,1,369,97,114,59,1,10606,4,2,105,114,18298,18304,115,104,116,59,1,10622,59,3,55349,56626,114,97,118,101,5,249,1,59,18317,1,249,4,2,97,98,18325,18338,114,4,2,108,114,18332,18335,59,1,8639,59,1,8638,108,107,59,1,9600,4,2,99,116,18349,18374,4,2,111,114,18355,18369,114,110,4,2,59,101,18363,18365,1,8988,114,59,1,8988,111,112,59,1,8975,114,105,59,1,9720,4,2,97,108,18385,18390,99,114,59,1,363,5,168,1,59,18395,1,168,4,2,103,112,18403,18408,111,110,59,1,371,102,59,3,55349,56678,4,6,97,100,104,108,115,117,18427,18434,18445,18470,18475,18494,114,114,111,119,59,1,8593,111,119,110,97,114,114,111,119,59,1,8597,97,114,112,111,111,110,4,2,108,114,18457,18463,101,102,116,59,1,8639,105,103,104,116,59,1,8638,117,115,59,1,8846,105,4,3,59,104,108,18484,18486,18489,1,965,59,1,978,111,110,59,1,965,112,97,114,114,111,119,115,59,1,8648,4,3,99,105,116,18512,18537,18542,4,2,111,114,18518,18532,114,110,4,2,59,101,18526,18528,1,8989,114,59,1,8989,111,112,59,1,8974,110,103,59,1,367,114,105,59,1,9721,99,114,59,3,55349,56522,4,3,100,105,114,18561,18566,18572,111,116,59,1,8944,108,100,101,59,1,361,105,4,2,59,102,18579,18581,1,9653,59,1,9652,4,2,97,109,18590,18595,114,114,59,1,8648,108,5,252,1,59,18601,1,252,97,110,103,108,101,59,1,10663,4,15,65,66,68,97,99,100,101,102,108,110,111,112,114,115,122,18643,18648,18661,18667,18847,18851,18857,18904,18909,18915,18931,18937,18943,18949,18996,114,114,59,1,8661,97,114,4,2,59,118,18656,18658,1,10984,59,1,10985,97,115,104,59,1,8872,4,2,110,114,18673,18679,103,114,116,59,1,10652,4,7,101,107,110,112,114,115,116,18695,18704,18711,18720,18742,18754,18810,112,115,105,108,111,110,59,1,1013,97,112,112,97,59,1,1008,111,116,104,105,110,103,59,1,8709,4,3,104,105,114,18728,18732,18735,105,59,1,981,59,1,982,111,112,116,111,59,1,8733,4,2,59,104,18748,18750,1,8597,111,59,1,1009,4,2,105,117,18760,18766,103,109,97,59,1,962,4,2,98,112,18772,18791,115,101,116,110,101,113,4,2,59,113,18784,18787,3,8842,65024,59,3,10955,65024,115,101,116,110,101,113,4,2,59,113,18803,18806,3,8843,65024,59,3,10956,65024,4,2,104,114,18816,18822,101,116,97,59,1,977,105,97,110,103,108,101,4,2,108,114,18834,18840,101,102,116,59,1,8882,105,103,104,116,59,1,8883,121,59,1,1074,97,115,104,59,1,8866,4,3,101,108,114,18865,18884,18890,4,3,59,98,101,18873,18875,18880,1,8744,97,114,59,1,8891,113,59,1,8794,108,105,112,59,1,8942,4,2,98,116,18896,18901,97,114,59,1,124,59,1,124,114,59,3,55349,56627,116,114,105,59,1,8882,115,117,4,2,98,112,18923,18927,59,3,8834,8402,59,3,8835,8402,112,102,59,3,55349,56679,114,111,112,59,1,8733,116,114,105,59,1,8883,4,2,99,117,18955,18960,114,59,3,55349,56523,4,2,98,112,18966,18981,110,4,2,69,101,18973,18977,59,3,10955,65024,59,3,8842,65024,110,4,2,69,101,18988,18992,59,3,10956,65024,59,3,8843,65024,105,103,122,97,103,59,1,10650,4,7,99,101,102,111,112,114,115,19020,19026,19061,19066,19072,19075,19089,105,114,99,59,1,373,4,2,100,105,19032,19055,4,2,98,103,19038,19043,97,114,59,1,10847,101,4,2,59,113,19050,19052,1,8743,59,1,8793,101,114,112,59,1,8472,114,59,3,55349,56628,112,102,59,3,55349,56680,59,1,8472,4,2,59,101,19081,19083,1,8768,97,116,104,59,1,8768,99,114,59,3,55349,56524,4,14,99,100,102,104,105,108,109,110,111,114,115,117,118,119,19125,19146,19152,19157,19173,19176,19192,19197,19202,19236,19252,19269,19286,19291,4,3,97,105,117,19133,19137,19142,112,59,1,8898,114,99,59,1,9711,112,59,1,8899,116,114,105,59,1,9661,114,59,3,55349,56629,4,2,65,97,19163,19168,114,114,59,1,10234,114,114,59,1,10231,59,1,958,4,2,65,97,19182,19187,114,114,59,1,10232,114,114,59,1,10229,97,112,59,1,10236,105,115,59,1,8955,4,3,100,112,116,19210,19215,19230,111,116,59,1,10752,4,2,102,108,19221,19225,59,3,55349,56681,117,115,59,1,10753,105,109,101,59,1,10754,4,2,65,97,19242,19247,114,114,59,1,10233,114,114,59,1,10230,4,2,99,113,19258,19263,114,59,3,55349,56525,99,117,112,59,1,10758,4,2,112,116,19275,19281,108,117,115,59,1,10756,114,105,59,1,9651,101,101,59,1,8897,101,100,103,101,59,1,8896,4,8,97,99,101,102,105,111,115,117,19316,19335,19349,19357,19362,19367,19373,19379,99,4,2,117,121,19323,19332,116,101,5,253,1,59,19330,1,253,59,1,1103,4,2,105,121,19341,19346,114,99,59,1,375,59,1,1099,110,5,165,1,59,19355,1,165,114,59,3,55349,56630,99,121,59,1,1111,112,102,59,3,55349,56682,99,114,59,3,55349,56526,4,2,99,109,19385,19389,121,59,1,1102,108,5,255,1,59,19395,1,255,4,10,97,99,100,101,102,104,105,111,115,119,19419,19426,19441,19446,19462,19467,19472,19480,19486,19492,99,117,116,101,59,1,378,4,2,97,121,19432,19438,114,111,110,59,1,382,59,1,1079,111,116,59,1,380,4,2,101,116,19452,19458,116,114,102,59,1,8488,97,59,1,950,114,59,3,55349,56631,99,121,59,1,1078,103,114,97,114,114,59,1,8669,112,102,59,3,55349,56683,99,114,59,3,55349,56527,4,2,106,110,19498,19501,59,1,8205,106,59,1,8204]);const Vj=Yj,se=tt,Yt=Wj,F=$i,y=se.CODE_POINTS,Gt=se.CODE_POINT_SEQUENCES,Qj={128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376},pu=1,_u=2,du=4,Xj=pu|_u|du,J="DATA_STATE",_n="RCDATA_STATE",Un="RAWTEXT_STATE",kt="SCRIPT_DATA_STATE",mu="PLAINTEXT_STATE",vs="TAG_OPEN_STATE",Ms="END_TAG_OPEN_STATE",ja="TAG_NAME_STATE",Ps="RCDATA_LESS_THAN_SIGN_STATE",Bs="RCDATA_END_TAG_OPEN_STATE",Hs="RCDATA_END_TAG_NAME_STATE",js="RAWTEXT_LESS_THAN_SIGN_STATE",Us="RAWTEXT_END_TAG_OPEN_STATE",Gs="RAWTEXT_END_TAG_NAME_STATE",qs="SCRIPT_DATA_LESS_THAN_SIGN_STATE",$s="SCRIPT_DATA_END_TAG_OPEN_STATE",Ks="SCRIPT_DATA_END_TAG_NAME_STATE",Ys="SCRIPT_DATA_ESCAPE_START_STATE",Ws="SCRIPT_DATA_ESCAPE_START_DASH_STATE",We="SCRIPT_DATA_ESCAPED_STATE",Vs="SCRIPT_DATA_ESCAPED_DASH_STATE",Ua="SCRIPT_DATA_ESCAPED_DASH_DASH_STATE",_r="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN_STATE",Qs="SCRIPT_DATA_ESCAPED_END_TAG_OPEN_STATE",Xs="SCRIPT_DATA_ESCAPED_END_TAG_NAME_STATE",Zs="SCRIPT_DATA_DOUBLE_ESCAPE_START_STATE",pt="SCRIPT_DATA_DOUBLE_ESCAPED_STATE",Js="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_STATE",ec="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH_STATE",dr="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN_STATE",tc="SCRIPT_DATA_DOUBLE_ESCAPE_END_STATE",rt="BEFORE_ATTRIBUTE_NAME_STATE",mr="ATTRIBUTE_NAME_STATE",Ga="AFTER_ATTRIBUTE_NAME_STATE",qa="BEFORE_ATTRIBUTE_VALUE_STATE",gr="ATTRIBUTE_VALUE_DOUBLE_QUOTED_STATE",yr="ATTRIBUTE_VALUE_SINGLE_QUOTED_STATE",kr="ATTRIBUTE_VALUE_UNQUOTED_STATE",$a="AFTER_ATTRIBUTE_VALUE_QUOTED_STATE",zt="SELF_CLOSING_START_TAG_STATE",Rn="BOGUS_COMMENT_STATE",nc="MARKUP_DECLARATION_OPEN_STATE",rc="COMMENT_START_STATE",ac="COMMENT_START_DASH_STATE",Dt="COMMENT_STATE",ic="COMMENT_LESS_THAN_SIGN_STATE",oc="COMMENT_LESS_THAN_SIGN_BANG_STATE",sc="COMMENT_LESS_THAN_SIGN_BANG_DASH_STATE",cc="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH_STATE",wr="COMMENT_END_DASH_STATE",br="COMMENT_END_STATE",lc="COMMENT_END_BANG_STATE",uc="DOCTYPE_STATE",Tr="BEFORE_DOCTYPE_NAME_STATE",Er="DOCTYPE_NAME_STATE",fc="AFTER_DOCTYPE_NAME_STATE",hc="AFTER_DOCTYPE_PUBLIC_KEYWORD_STATE",pc="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER_STATE",Ka="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED_STATE",Ya="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED_STATE",Wa="AFTER_DOCTYPE_PUBLIC_IDENTIFIER_STATE",_c="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS_STATE",dc="AFTER_DOCTYPE_SYSTEM_KEYWORD_STATE",mc="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER_STATE",Ln="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED_STATE",vn="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED_STATE",Va="AFTER_DOCTYPE_SYSTEM_IDENTIFIER_STATE",_t="BOGUS_DOCTYPE_STATE",Ar="CDATA_SECTION_STATE",gc="CDATA_SECTION_BRACKET_STATE",yc="CDATA_SECTION_END_STATE",cn="CHARACTER_REFERENCE_STATE",kc="NAMED_CHARACTER_REFERENCE_STATE",wc="AMBIGUOS_AMPERSAND_STATE",bc="NUMERIC_CHARACTER_REFERENCE_STATE",Tc="HEXADEMICAL_CHARACTER_REFERENCE_START_STATE",Ec="DECIMAL_CHARACTER_REFERENCE_START_STATE",Ac="HEXADEMICAL_CHARACTER_REFERENCE_STATE",Cc="DECIMAL_CHARACTER_REFERENCE_STATE",Mn="NUMERIC_CHARACTER_REFERENCE_END_STATE";function fe(e){return e===y.SPACE||e===y.LINE_FEED||e===y.TABULATION||e===y.FORM_FEED}function qn(e){return e>=y.DIGIT_0&&e<=y.DIGIT_9}function Qe(e){return e>=y.LATIN_CAPITAL_A&&e<=y.LATIN_CAPITAL_Z}function $t(e){return e>=y.LATIN_SMALL_A&&e<=y.LATIN_SMALL_Z}function It(e){return $t(e)||Qe(e)}function Qa(e){return It(e)||qn(e)}function gu(e){return e>=y.LATIN_CAPITAL_A&&e<=y.LATIN_CAPITAL_F}function yu(e){return e>=y.LATIN_SMALL_A&&e<=y.LATIN_SMALL_F}function Zj(e){return qn(e)||gu(e)||yu(e)}function Or(e){return e+32}function _e(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(e>>>10&1023|55296)+String.fromCharCode(56320|e&1023))}function St(e){return String.fromCharCode(Or(e))}function xc(e,t){const n=Yt[++e];let r=++e,a=r+n-1;for(;r<=a;){const i=r+a>>>1,o=Yt[i];if(ot)a=i-1;else return Yt[i+n]}return-1}let qe=class Re{constructor(){this.preprocessor=new Vj,this.tokenQueue=[],this.allowCDATA=!1,this.state=J,this.returnState="",this.charRefCode=-1,this.tempBuff=[],this.lastStartTagName="",this.consumedAfterSnapshot=-1,this.active=!1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr=null}_err(){}_errOnNextCodePoint(t){this._consume(),this._err(t),this._unconsume()}getNextToken(){for(;!this.tokenQueue.length&&this.active;){this.consumedAfterSnapshot=0;const t=this._consume();this._ensureHibernation()||this[this.state](t)}return this.tokenQueue.shift()}write(t,n){this.active=!0,this.preprocessor.write(t,n)}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t)}_ensureHibernation(){if(this.preprocessor.endOfChunkHit){for(;this.consumedAfterSnapshot>0;this.consumedAfterSnapshot--)this.preprocessor.retreat();return this.active=!1,this.tokenQueue.push({type:Re.HIBERNATION_TOKEN}),!0}return!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_unconsume(){this.consumedAfterSnapshot--,this.preprocessor.retreat()}_reconsumeInState(t){this.state=t,this._unconsume()}_consumeSequenceIfMatch(t,n,r){let a=0,i=!0;const o=t.length;let s=0,c=n,l;for(;s0&&(c=this._consume(),a++),c===y.EOF){i=!1;break}if(l=t[s],c!==l&&(r||c!==Or(l))){i=!1;break}}if(!i)for(;a--;)this._unconsume();return i}_isTempBufferEqualToScriptString(){if(this.tempBuff.length!==Gt.SCRIPT_STRING.length)return!1;for(let t=0;t0&&this._err(F.endTagWithAttributes),t.selfClosing&&this._err(F.endTagWithTrailingSolidus)),this.tokenQueue.push(t)}_emitCurrentCharacterToken(){this.currentCharacterToken&&(this.tokenQueue.push(this.currentCharacterToken),this.currentCharacterToken=null)}_emitEOFToken(){this._createEOFToken(),this._emitCurrentToken()}_appendCharToCurrentCharacterToken(t,n){this.currentCharacterToken&&this.currentCharacterToken.type!==t&&this._emitCurrentCharacterToken(),this.currentCharacterToken?this.currentCharacterToken.chars+=n:this._createCharacterToken(t,n)}_emitCodePoint(t){let n=Re.CHARACTER_TOKEN;fe(t)?n=Re.WHITESPACE_CHARACTER_TOKEN:t===y.NULL&&(n=Re.NULL_CHARACTER_TOKEN),this._appendCharToCurrentCharacterToken(n,_e(t))}_emitSeveralCodePoints(t){for(let n=0;n-1;){const i=Yt[a],o=i")):t===y.NULL?(this._err(F.unexpectedNullCharacter),this.state=We,this._emitChars(se.REPLACEMENT_CHARACTER)):t===y.EOF?(this._err(F.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=We,this._emitCodePoint(t))}[_r](t){t===y.SOLIDUS?(this.tempBuff=[],this.state=Qs):It(t)?(this.tempBuff=[],this._emitChars("<"),this._reconsumeInState(Zs)):(this._emitChars("<"),this._reconsumeInState(We))}[Qs](t){It(t)?(this._createEndTagToken(),this._reconsumeInState(Xs)):(this._emitChars("")):t===y.NULL?(this._err(F.unexpectedNullCharacter),this.state=pt,this._emitChars(se.REPLACEMENT_CHARACTER)):t===y.EOF?(this._err(F.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=pt,this._emitCodePoint(t))}[dr](t){t===y.SOLIDUS?(this.tempBuff=[],this.state=tc,this._emitChars("/")):this._reconsumeInState(pt)}[tc](t){fe(t)||t===y.SOLIDUS||t===y.GREATER_THAN_SIGN?(this.state=this._isTempBufferEqualToScriptString()?We:pt,this._emitCodePoint(t)):Qe(t)?(this.tempBuff.push(Or(t)),this._emitCodePoint(t)):$t(t)?(this.tempBuff.push(t),this._emitCodePoint(t)):this._reconsumeInState(pt)}[rt](t){fe(t)||(t===y.SOLIDUS||t===y.GREATER_THAN_SIGN||t===y.EOF?this._reconsumeInState(Ga):t===y.EQUALS_SIGN?(this._err(F.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=mr):(this._createAttr(""),this._reconsumeInState(mr)))}[mr](t){fe(t)||t===y.SOLIDUS||t===y.GREATER_THAN_SIGN||t===y.EOF?(this._leaveAttrName(Ga),this._unconsume()):t===y.EQUALS_SIGN?this._leaveAttrName(qa):Qe(t)?this.currentAttr.name+=St(t):t===y.QUOTATION_MARK||t===y.APOSTROPHE||t===y.LESS_THAN_SIGN?(this._err(F.unexpectedCharacterInAttributeName),this.currentAttr.name+=_e(t)):t===y.NULL?(this._err(F.unexpectedNullCharacter),this.currentAttr.name+=se.REPLACEMENT_CHARACTER):this.currentAttr.name+=_e(t)}[Ga](t){fe(t)||(t===y.SOLIDUS?this.state=zt:t===y.EQUALS_SIGN?this.state=qa:t===y.GREATER_THAN_SIGN?(this.state=J,this._emitCurrentToken()):t===y.EOF?(this._err(F.eofInTag),this._emitEOFToken()):(this._createAttr(""),this._reconsumeInState(mr)))}[qa](t){fe(t)||(t===y.QUOTATION_MARK?this.state=gr:t===y.APOSTROPHE?this.state=yr:t===y.GREATER_THAN_SIGN?(this._err(F.missingAttributeValue),this.state=J,this._emitCurrentToken()):this._reconsumeInState(kr))}[gr](t){t===y.QUOTATION_MARK?this.state=$a:t===y.AMPERSAND?(this.returnState=gr,this.state=cn):t===y.NULL?(this._err(F.unexpectedNullCharacter),this.currentAttr.value+=se.REPLACEMENT_CHARACTER):t===y.EOF?(this._err(F.eofInTag),this._emitEOFToken()):this.currentAttr.value+=_e(t)}[yr](t){t===y.APOSTROPHE?this.state=$a:t===y.AMPERSAND?(this.returnState=yr,this.state=cn):t===y.NULL?(this._err(F.unexpectedNullCharacter),this.currentAttr.value+=se.REPLACEMENT_CHARACTER):t===y.EOF?(this._err(F.eofInTag),this._emitEOFToken()):this.currentAttr.value+=_e(t)}[kr](t){fe(t)?this._leaveAttrValue(rt):t===y.AMPERSAND?(this.returnState=kr,this.state=cn):t===y.GREATER_THAN_SIGN?(this._leaveAttrValue(J),this._emitCurrentToken()):t===y.NULL?(this._err(F.unexpectedNullCharacter),this.currentAttr.value+=se.REPLACEMENT_CHARACTER):t===y.QUOTATION_MARK||t===y.APOSTROPHE||t===y.LESS_THAN_SIGN||t===y.EQUALS_SIGN||t===y.GRAVE_ACCENT?(this._err(F.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=_e(t)):t===y.EOF?(this._err(F.eofInTag),this._emitEOFToken()):this.currentAttr.value+=_e(t)}[$a](t){fe(t)?this._leaveAttrValue(rt):t===y.SOLIDUS?this._leaveAttrValue(zt):t===y.GREATER_THAN_SIGN?(this._leaveAttrValue(J),this._emitCurrentToken()):t===y.EOF?(this._err(F.eofInTag),this._emitEOFToken()):(this._err(F.missingWhitespaceBetweenAttributes),this._reconsumeInState(rt))}[zt](t){t===y.GREATER_THAN_SIGN?(this.currentToken.selfClosing=!0,this.state=J,this._emitCurrentToken()):t===y.EOF?(this._err(F.eofInTag),this._emitEOFToken()):(this._err(F.unexpectedSolidusInTag),this._reconsumeInState(rt))}[Rn](t){t===y.GREATER_THAN_SIGN?(this.state=J,this._emitCurrentToken()):t===y.EOF?(this._emitCurrentToken(),this._emitEOFToken()):t===y.NULL?(this._err(F.unexpectedNullCharacter),this.currentToken.data+=se.REPLACEMENT_CHARACTER):this.currentToken.data+=_e(t)}[nc](t){this._consumeSequenceIfMatch(Gt.DASH_DASH_STRING,t,!0)?(this._createCommentToken(),this.state=rc):this._consumeSequenceIfMatch(Gt.DOCTYPE_STRING,t,!1)?this.state=uc:this._consumeSequenceIfMatch(Gt.CDATA_START_STRING,t,!0)?this.allowCDATA?this.state=Ar:(this._err(F.cdataInHtmlContent),this._createCommentToken(),this.currentToken.data="[CDATA[",this.state=Rn):this._ensureHibernation()||(this._err(F.incorrectlyOpenedComment),this._createCommentToken(),this._reconsumeInState(Rn))}[rc](t){t===y.HYPHEN_MINUS?this.state=ac:t===y.GREATER_THAN_SIGN?(this._err(F.abruptClosingOfEmptyComment),this.state=J,this._emitCurrentToken()):this._reconsumeInState(Dt)}[ac](t){t===y.HYPHEN_MINUS?this.state=br:t===y.GREATER_THAN_SIGN?(this._err(F.abruptClosingOfEmptyComment),this.state=J,this._emitCurrentToken()):t===y.EOF?(this._err(F.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="-",this._reconsumeInState(Dt))}[Dt](t){t===y.HYPHEN_MINUS?this.state=wr:t===y.LESS_THAN_SIGN?(this.currentToken.data+="<",this.state=ic):t===y.NULL?(this._err(F.unexpectedNullCharacter),this.currentToken.data+=se.REPLACEMENT_CHARACTER):t===y.EOF?(this._err(F.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.data+=_e(t)}[ic](t){t===y.EXCLAMATION_MARK?(this.currentToken.data+="!",this.state=oc):t===y.LESS_THAN_SIGN?this.currentToken.data+="!":this._reconsumeInState(Dt)}[oc](t){t===y.HYPHEN_MINUS?this.state=sc:this._reconsumeInState(Dt)}[sc](t){t===y.HYPHEN_MINUS?this.state=cc:this._reconsumeInState(wr)}[cc](t){t!==y.GREATER_THAN_SIGN&&t!==y.EOF&&this._err(F.nestedComment),this._reconsumeInState(br)}[wr](t){t===y.HYPHEN_MINUS?this.state=br:t===y.EOF?(this._err(F.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="-",this._reconsumeInState(Dt))}[br](t){t===y.GREATER_THAN_SIGN?(this.state=J,this._emitCurrentToken()):t===y.EXCLAMATION_MARK?this.state=lc:t===y.HYPHEN_MINUS?this.currentToken.data+="-":t===y.EOF?(this._err(F.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="--",this._reconsumeInState(Dt))}[lc](t){t===y.HYPHEN_MINUS?(this.currentToken.data+="--!",this.state=wr):t===y.GREATER_THAN_SIGN?(this._err(F.incorrectlyClosedComment),this.state=J,this._emitCurrentToken()):t===y.EOF?(this._err(F.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="--!",this._reconsumeInState(Dt))}[uc](t){fe(t)?this.state=Tr:t===y.GREATER_THAN_SIGN?this._reconsumeInState(Tr):t===y.EOF?(this._err(F.eofInDoctype),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(F.missingWhitespaceBeforeDoctypeName),this._reconsumeInState(Tr))}[Tr](t){fe(t)||(Qe(t)?(this._createDoctypeToken(St(t)),this.state=Er):t===y.NULL?(this._err(F.unexpectedNullCharacter),this._createDoctypeToken(se.REPLACEMENT_CHARACTER),this.state=Er):t===y.GREATER_THAN_SIGN?(this._err(F.missingDoctypeName),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=J):t===y.EOF?(this._err(F.eofInDoctype),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._createDoctypeToken(_e(t)),this.state=Er))}[Er](t){fe(t)?this.state=fc:t===y.GREATER_THAN_SIGN?(this.state=J,this._emitCurrentToken()):Qe(t)?this.currentToken.name+=St(t):t===y.NULL?(this._err(F.unexpectedNullCharacter),this.currentToken.name+=se.REPLACEMENT_CHARACTER):t===y.EOF?(this._err(F.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.name+=_e(t)}[fc](t){fe(t)||(t===y.GREATER_THAN_SIGN?(this.state=J,this._emitCurrentToken()):t===y.EOF?(this._err(F.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this._consumeSequenceIfMatch(Gt.PUBLIC_STRING,t,!1)?this.state=hc:this._consumeSequenceIfMatch(Gt.SYSTEM_STRING,t,!1)?this.state=dc:this._ensureHibernation()||(this._err(F.invalidCharacterSequenceAfterDoctypeName),this.currentToken.forceQuirks=!0,this._reconsumeInState(_t)))}[hc](t){fe(t)?this.state=pc:t===y.QUOTATION_MARK?(this._err(F.missingWhitespaceAfterDoctypePublicKeyword),this.currentToken.publicId="",this.state=Ka):t===y.APOSTROPHE?(this._err(F.missingWhitespaceAfterDoctypePublicKeyword),this.currentToken.publicId="",this.state=Ya):t===y.GREATER_THAN_SIGN?(this._err(F.missingDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this.state=J,this._emitCurrentToken()):t===y.EOF?(this._err(F.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(F.missingQuoteBeforeDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(_t))}[pc](t){fe(t)||(t===y.QUOTATION_MARK?(this.currentToken.publicId="",this.state=Ka):t===y.APOSTROPHE?(this.currentToken.publicId="",this.state=Ya):t===y.GREATER_THAN_SIGN?(this._err(F.missingDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this.state=J,this._emitCurrentToken()):t===y.EOF?(this._err(F.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(F.missingQuoteBeforeDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(_t)))}[Ka](t){t===y.QUOTATION_MARK?this.state=Wa:t===y.NULL?(this._err(F.unexpectedNullCharacter),this.currentToken.publicId+=se.REPLACEMENT_CHARACTER):t===y.GREATER_THAN_SIGN?(this._err(F.abruptDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=J):t===y.EOF?(this._err(F.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.publicId+=_e(t)}[Ya](t){t===y.APOSTROPHE?this.state=Wa:t===y.NULL?(this._err(F.unexpectedNullCharacter),this.currentToken.publicId+=se.REPLACEMENT_CHARACTER):t===y.GREATER_THAN_SIGN?(this._err(F.abruptDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=J):t===y.EOF?(this._err(F.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.publicId+=_e(t)}[Wa](t){fe(t)?this.state=_c:t===y.GREATER_THAN_SIGN?(this.state=J,this._emitCurrentToken()):t===y.QUOTATION_MARK?(this._err(F.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),this.currentToken.systemId="",this.state=Ln):t===y.APOSTROPHE?(this._err(F.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),this.currentToken.systemId="",this.state=vn):t===y.EOF?(this._err(F.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(F.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(_t))}[_c](t){fe(t)||(t===y.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=J):t===y.QUOTATION_MARK?(this.currentToken.systemId="",this.state=Ln):t===y.APOSTROPHE?(this.currentToken.systemId="",this.state=vn):t===y.EOF?(this._err(F.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(F.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(_t)))}[dc](t){fe(t)?this.state=mc:t===y.QUOTATION_MARK?(this._err(F.missingWhitespaceAfterDoctypeSystemKeyword),this.currentToken.systemId="",this.state=Ln):t===y.APOSTROPHE?(this._err(F.missingWhitespaceAfterDoctypeSystemKeyword),this.currentToken.systemId="",this.state=vn):t===y.GREATER_THAN_SIGN?(this._err(F.missingDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this.state=J,this._emitCurrentToken()):t===y.EOF?(this._err(F.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(F.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(_t))}[mc](t){fe(t)||(t===y.QUOTATION_MARK?(this.currentToken.systemId="",this.state=Ln):t===y.APOSTROPHE?(this.currentToken.systemId="",this.state=vn):t===y.GREATER_THAN_SIGN?(this._err(F.missingDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this.state=J,this._emitCurrentToken()):t===y.EOF?(this._err(F.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(F.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(_t)))}[Ln](t){t===y.QUOTATION_MARK?this.state=Va:t===y.NULL?(this._err(F.unexpectedNullCharacter),this.currentToken.systemId+=se.REPLACEMENT_CHARACTER):t===y.GREATER_THAN_SIGN?(this._err(F.abruptDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=J):t===y.EOF?(this._err(F.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.systemId+=_e(t)}[vn](t){t===y.APOSTROPHE?this.state=Va:t===y.NULL?(this._err(F.unexpectedNullCharacter),this.currentToken.systemId+=se.REPLACEMENT_CHARACTER):t===y.GREATER_THAN_SIGN?(this._err(F.abruptDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=J):t===y.EOF?(this._err(F.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.systemId+=_e(t)}[Va](t){fe(t)||(t===y.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=J):t===y.EOF?(this._err(F.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(F.unexpectedCharacterAfterDoctypeSystemIdentifier),this._reconsumeInState(_t)))}[_t](t){t===y.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=J):t===y.NULL?this._err(F.unexpectedNullCharacter):t===y.EOF&&(this._emitCurrentToken(),this._emitEOFToken())}[Ar](t){t===y.RIGHT_SQUARE_BRACKET?this.state=gc:t===y.EOF?(this._err(F.eofInCdata),this._emitEOFToken()):this._emitCodePoint(t)}[gc](t){t===y.RIGHT_SQUARE_BRACKET?this.state=yc:(this._emitChars("]"),this._reconsumeInState(Ar))}[yc](t){t===y.GREATER_THAN_SIGN?this.state=J:t===y.RIGHT_SQUARE_BRACKET?this._emitChars("]"):(this._emitChars("]]"),this._reconsumeInState(Ar))}[cn](t){this.tempBuff=[y.AMPERSAND],t===y.NUMBER_SIGN?(this.tempBuff.push(t),this.state=bc):Qa(t)?this._reconsumeInState(kc):(this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[kc](t){const n=this._matchNamedCharacterReference(t);if(this._ensureHibernation())this.tempBuff=[y.AMPERSAND];else if(n){const r=this.tempBuff[this.tempBuff.length-1]===y.SEMICOLON;this._isCharacterReferenceAttributeQuirk(r)||(r||this._errOnNextCodePoint(F.missingSemicolonAfterCharacterReference),this.tempBuff=n),this._flushCodePointsConsumedAsCharacterReference(),this.state=this.returnState}else this._flushCodePointsConsumedAsCharacterReference(),this.state=wc}[wc](t){Qa(t)?this._isCharacterReferenceInAttribute()?this.currentAttr.value+=_e(t):this._emitCodePoint(t):(t===y.SEMICOLON&&this._err(F.unknownNamedCharacterReference),this._reconsumeInState(this.returnState))}[bc](t){this.charRefCode=0,t===y.LATIN_SMALL_X||t===y.LATIN_CAPITAL_X?(this.tempBuff.push(t),this.state=Tc):this._reconsumeInState(Ec)}[Tc](t){Zj(t)?this._reconsumeInState(Ac):(this._err(F.absenceOfDigitsInNumericCharacterReference),this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[Ec](t){qn(t)?this._reconsumeInState(Cc):(this._err(F.absenceOfDigitsInNumericCharacterReference),this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[Ac](t){gu(t)?this.charRefCode=this.charRefCode*16+t-55:yu(t)?this.charRefCode=this.charRefCode*16+t-87:qn(t)?this.charRefCode=this.charRefCode*16+t-48:t===y.SEMICOLON?this.state=Mn:(this._err(F.missingSemicolonAfterCharacterReference),this._reconsumeInState(Mn))}[Cc](t){qn(t)?this.charRefCode=this.charRefCode*10+t-48:t===y.SEMICOLON?this.state=Mn:(this._err(F.missingSemicolonAfterCharacterReference),this._reconsumeInState(Mn))}[Mn](){if(this.charRefCode===y.NULL)this._err(F.nullCharacterReference),this.charRefCode=y.REPLACEMENT_CHARACTER;else if(this.charRefCode>1114111)this._err(F.characterReferenceOutsideUnicodeRange),this.charRefCode=y.REPLACEMENT_CHARACTER;else if(se.isSurrogate(this.charRefCode))this._err(F.surrogateCharacterReference),this.charRefCode=y.REPLACEMENT_CHARACTER;else if(se.isUndefinedCodePoint(this.charRefCode))this._err(F.noncharacterCharacterReference);else if(se.isControlCodePoint(this.charRefCode)||this.charRefCode===y.CARRIAGE_RETURN){this._err(F.controlCharacterReference);const t=Qj[this.charRefCode];t&&(this.charRefCode=t)}this.tempBuff=[this.charRefCode],this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState)}};qe.CHARACTER_TOKEN="CHARACTER_TOKEN";qe.NULL_CHARACTER_TOKEN="NULL_CHARACTER_TOKEN";qe.WHITESPACE_CHARACTER_TOKEN="WHITESPACE_CHARACTER_TOKEN";qe.START_TAG_TOKEN="START_TAG_TOKEN";qe.END_TAG_TOKEN="END_TAG_TOKEN";qe.COMMENT_TOKEN="COMMENT_TOKEN";qe.DOCTYPE_TOKEN="DOCTYPE_TOKEN";qe.EOF_TOKEN="EOF_TOKEN";qe.HIBERNATION_TOKEN="HIBERNATION_TOKEN";qe.MODE={DATA:J,RCDATA:_n,RAWTEXT:Un,SCRIPT_DATA:kt,PLAINTEXT:mu};qe.getTokenAttr=function(e,t){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null};var ha=qe,nt={};const Xa=nt.NAMESPACES={HTML:"http://www.w3.org/1999/xhtml",MATHML:"http://www.w3.org/1998/Math/MathML",SVG:"http://www.w3.org/2000/svg",XLINK:"http://www.w3.org/1999/xlink",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"};nt.ATTRS={TYPE:"type",ACTION:"action",ENCODING:"encoding",PROMPT:"prompt",NAME:"name",COLOR:"color",FACE:"face",SIZE:"size"};nt.DOCUMENT_MODE={NO_QUIRKS:"no-quirks",QUIRKS:"quirks",LIMITED_QUIRKS:"limited-quirks"};const P=nt.TAG_NAMES={A:"a",ADDRESS:"address",ANNOTATION_XML:"annotation-xml",APPLET:"applet",AREA:"area",ARTICLE:"article",ASIDE:"aside",B:"b",BASE:"base",BASEFONT:"basefont",BGSOUND:"bgsound",BIG:"big",BLOCKQUOTE:"blockquote",BODY:"body",BR:"br",BUTTON:"button",CAPTION:"caption",CENTER:"center",CODE:"code",COL:"col",COLGROUP:"colgroup",DD:"dd",DESC:"desc",DETAILS:"details",DIALOG:"dialog",DIR:"dir",DIV:"div",DL:"dl",DT:"dt",EM:"em",EMBED:"embed",FIELDSET:"fieldset",FIGCAPTION:"figcaption",FIGURE:"figure",FONT:"font",FOOTER:"footer",FOREIGN_OBJECT:"foreignObject",FORM:"form",FRAME:"frame",FRAMESET:"frameset",H1:"h1",H2:"h2",H3:"h3",H4:"h4",H5:"h5",H6:"h6",HEAD:"head",HEADER:"header",HGROUP:"hgroup",HR:"hr",HTML:"html",I:"i",IMG:"img",IMAGE:"image",INPUT:"input",IFRAME:"iframe",KEYGEN:"keygen",LABEL:"label",LI:"li",LINK:"link",LISTING:"listing",MAIN:"main",MALIGNMARK:"malignmark",MARQUEE:"marquee",MATH:"math",MENU:"menu",META:"meta",MGLYPH:"mglyph",MI:"mi",MO:"mo",MN:"mn",MS:"ms",MTEXT:"mtext",NAV:"nav",NOBR:"nobr",NOFRAMES:"noframes",NOEMBED:"noembed",NOSCRIPT:"noscript",OBJECT:"object",OL:"ol",OPTGROUP:"optgroup",OPTION:"option",P:"p",PARAM:"param",PLAINTEXT:"plaintext",PRE:"pre",RB:"rb",RP:"rp",RT:"rt",RTC:"rtc",RUBY:"ruby",S:"s",SCRIPT:"script",SECTION:"section",SELECT:"select",SOURCE:"source",SMALL:"small",SPAN:"span",STRIKE:"strike",STRONG:"strong",STYLE:"style",SUB:"sub",SUMMARY:"summary",SUP:"sup",TABLE:"table",TBODY:"tbody",TEMPLATE:"template",TEXTAREA:"textarea",TFOOT:"tfoot",TD:"td",TH:"th",THEAD:"thead",TITLE:"title",TR:"tr",TRACK:"track",TT:"tt",U:"u",UL:"ul",SVG:"svg",VAR:"var",WBR:"wbr",XMP:"xmp"};nt.SPECIAL_ELEMENTS={[Xa.HTML]:{[P.ADDRESS]:!0,[P.APPLET]:!0,[P.AREA]:!0,[P.ARTICLE]:!0,[P.ASIDE]:!0,[P.BASE]:!0,[P.BASEFONT]:!0,[P.BGSOUND]:!0,[P.BLOCKQUOTE]:!0,[P.BODY]:!0,[P.BR]:!0,[P.BUTTON]:!0,[P.CAPTION]:!0,[P.CENTER]:!0,[P.COL]:!0,[P.COLGROUP]:!0,[P.DD]:!0,[P.DETAILS]:!0,[P.DIR]:!0,[P.DIV]:!0,[P.DL]:!0,[P.DT]:!0,[P.EMBED]:!0,[P.FIELDSET]:!0,[P.FIGCAPTION]:!0,[P.FIGURE]:!0,[P.FOOTER]:!0,[P.FORM]:!0,[P.FRAME]:!0,[P.FRAMESET]:!0,[P.H1]:!0,[P.H2]:!0,[P.H3]:!0,[P.H4]:!0,[P.H5]:!0,[P.H6]:!0,[P.HEAD]:!0,[P.HEADER]:!0,[P.HGROUP]:!0,[P.HR]:!0,[P.HTML]:!0,[P.IFRAME]:!0,[P.IMG]:!0,[P.INPUT]:!0,[P.LI]:!0,[P.LINK]:!0,[P.LISTING]:!0,[P.MAIN]:!0,[P.MARQUEE]:!0,[P.MENU]:!0,[P.META]:!0,[P.NAV]:!0,[P.NOEMBED]:!0,[P.NOFRAMES]:!0,[P.NOSCRIPT]:!0,[P.OBJECT]:!0,[P.OL]:!0,[P.P]:!0,[P.PARAM]:!0,[P.PLAINTEXT]:!0,[P.PRE]:!0,[P.SCRIPT]:!0,[P.SECTION]:!0,[P.SELECT]:!0,[P.SOURCE]:!0,[P.STYLE]:!0,[P.SUMMARY]:!0,[P.TABLE]:!0,[P.TBODY]:!0,[P.TD]:!0,[P.TEMPLATE]:!0,[P.TEXTAREA]:!0,[P.TFOOT]:!0,[P.TH]:!0,[P.THEAD]:!0,[P.TITLE]:!0,[P.TR]:!0,[P.TRACK]:!0,[P.UL]:!0,[P.WBR]:!0,[P.XMP]:!0},[Xa.MATHML]:{[P.MI]:!0,[P.MO]:!0,[P.MN]:!0,[P.MS]:!0,[P.MTEXT]:!0,[P.ANNOTATION_XML]:!0},[Xa.SVG]:{[P.TITLE]:!0,[P.FOREIGN_OBJECT]:!0,[P.DESC]:!0}};const ku=nt,B=ku.TAG_NAMES,ce=ku.NAMESPACES;function zc(e){switch(e.length){case 1:return e===B.P;case 2:return e===B.RB||e===B.RP||e===B.RT||e===B.DD||e===B.DT||e===B.LI;case 3:return e===B.RTC;case 6:return e===B.OPTION;case 8:return e===B.OPTGROUP}return!1}function Jj(e){switch(e.length){case 1:return e===B.P;case 2:return e===B.RB||e===B.RP||e===B.RT||e===B.DD||e===B.DT||e===B.LI||e===B.TD||e===B.TH||e===B.TR;case 3:return e===B.RTC;case 5:return e===B.TBODY||e===B.TFOOT||e===B.THEAD;case 6:return e===B.OPTION;case 7:return e===B.CAPTION;case 8:return e===B.OPTGROUP||e===B.COLGROUP}return!1}function Cr(e,t){switch(e.length){case 2:if(e===B.TD||e===B.TH)return t===ce.HTML;if(e===B.MI||e===B.MO||e===B.MN||e===B.MS)return t===ce.MATHML;break;case 4:if(e===B.HTML)return t===ce.HTML;if(e===B.DESC)return t===ce.SVG;break;case 5:if(e===B.TABLE)return t===ce.HTML;if(e===B.MTEXT)return t===ce.MATHML;if(e===B.TITLE)return t===ce.SVG;break;case 6:return(e===B.APPLET||e===B.OBJECT)&&t===ce.HTML;case 7:return(e===B.CAPTION||e===B.MARQUEE)&&t===ce.HTML;case 8:return e===B.TEMPLATE&&t===ce.HTML;case 13:return e===B.FOREIGN_OBJECT&&t===ce.SVG;case 14:return e===B.ANNOTATION_XML&&t===ce.MATHML}return!1}let eU=class{constructor(t,n){this.stackTop=-1,this.items=[],this.current=t,this.currentTagName=null,this.currentTmplContent=null,this.tmplCount=0,this.treeAdapter=n}_indexOf(t){let n=-1;for(let r=this.stackTop;r>=0;r--)if(this.items[r]===t){n=r;break}return n}_isInTemplate(){return this.currentTagName===B.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===ce.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagName=this.current&&this.treeAdapter.getTagName(this.current),this.currentTmplContent=this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):null}push(t){this.items[++this.stackTop]=t,this._updateCurrentElement(),this._isInTemplate()&&this.tmplCount++}pop(){this.stackTop--,this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this._updateCurrentElement()}replace(t,n){const r=this._indexOf(t);this.items[r]=n,r===this.stackTop&&this._updateCurrentElement()}insertAfter(t,n){const r=this._indexOf(t)+1;this.items.splice(r,0,n),r===++this.stackTop&&this._updateCurrentElement()}popUntilTagNamePopped(t){for(;this.stackTop>-1;){const n=this.currentTagName,r=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),n===t&&r===ce.HTML)break}}popUntilElementPopped(t){for(;this.stackTop>-1;){const n=this.current;if(this.pop(),n===t)break}}popUntilNumberedHeaderPopped(){for(;this.stackTop>-1;){const t=this.currentTagName,n=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),t===B.H1||t===B.H2||t===B.H3||t===B.H4||t===B.H5||t===B.H6&&n===ce.HTML)break}}popUntilTableCellPopped(){for(;this.stackTop>-1;){const t=this.currentTagName,n=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),t===B.TD||t===B.TH&&n===ce.HTML)break}}popAllUpToHtmlElement(){this.stackTop=0,this._updateCurrentElement()}clearBackToTableContext(){for(;this.currentTagName!==B.TABLE&&this.currentTagName!==B.TEMPLATE&&this.currentTagName!==B.HTML||this.treeAdapter.getNamespaceURI(this.current)!==ce.HTML;)this.pop()}clearBackToTableBodyContext(){for(;this.currentTagName!==B.TBODY&&this.currentTagName!==B.TFOOT&&this.currentTagName!==B.THEAD&&this.currentTagName!==B.TEMPLATE&&this.currentTagName!==B.HTML||this.treeAdapter.getNamespaceURI(this.current)!==ce.HTML;)this.pop()}clearBackToTableRowContext(){for(;this.currentTagName!==B.TR&&this.currentTagName!==B.TEMPLATE&&this.currentTagName!==B.HTML||this.treeAdapter.getNamespaceURI(this.current)!==ce.HTML;)this.pop()}remove(t){for(let n=this.stackTop;n>=0;n--)if(this.items[n]===t){this.items.splice(n,1),this.stackTop--,this._updateCurrentElement();break}}tryPeekProperlyNestedBodyElement(){const t=this.items[1];return t&&this.treeAdapter.getTagName(t)===B.BODY?t:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){let n=this._indexOf(t);return--n>=0?this.items[n]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.currentTagName===B.HTML}hasInScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.treeAdapter.getTagName(this.items[n]),a=this.treeAdapter.getNamespaceURI(this.items[n]);if(r===t&&a===ce.HTML)return!0;if(Cr(r,a))return!1}return!0}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const n=this.treeAdapter.getTagName(this.items[t]),r=this.treeAdapter.getNamespaceURI(this.items[t]);if((n===B.H1||n===B.H2||n===B.H3||n===B.H4||n===B.H5||n===B.H6)&&r===ce.HTML)return!0;if(Cr(n,r))return!1}return!0}hasInListItemScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.treeAdapter.getTagName(this.items[n]),a=this.treeAdapter.getNamespaceURI(this.items[n]);if(r===t&&a===ce.HTML)return!0;if((r===B.UL||r===B.OL)&&a===ce.HTML||Cr(r,a))return!1}return!0}hasInButtonScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.treeAdapter.getTagName(this.items[n]),a=this.treeAdapter.getNamespaceURI(this.items[n]);if(r===t&&a===ce.HTML)return!0;if(r===B.BUTTON&&a===ce.HTML||Cr(r,a))return!1}return!0}hasInTableScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.treeAdapter.getTagName(this.items[n]);if(this.treeAdapter.getNamespaceURI(this.items[n])===ce.HTML){if(r===t)return!0;if(r===B.TABLE||r===B.TEMPLATE||r===B.HTML)return!1}}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--){const n=this.treeAdapter.getTagName(this.items[t]);if(this.treeAdapter.getNamespaceURI(this.items[t])===ce.HTML){if(n===B.TBODY||n===B.THEAD||n===B.TFOOT)return!0;if(n===B.TABLE||n===B.HTML)return!1}}return!0}hasInSelectScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.treeAdapter.getTagName(this.items[n]);if(this.treeAdapter.getNamespaceURI(this.items[n])===ce.HTML){if(r===t)return!0;if(r!==B.OPTION&&r!==B.OPTGROUP)return!1}}return!0}generateImpliedEndTags(){for(;zc(this.currentTagName);)this.pop()}generateImpliedEndTagsThoroughly(){for(;Jj(this.currentTagName);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;zc(this.currentTagName)&&this.currentTagName!==t;)this.pop()}};var tU=eU;const xr=3;let Ki=class Ft{constructor(t){this.length=0,this.entries=[],this.treeAdapter=t,this.bookmark=null}_getNoahArkConditionCandidates(t){const n=[];if(this.length>=xr){const r=this.treeAdapter.getAttrList(t).length,a=this.treeAdapter.getTagName(t),i=this.treeAdapter.getNamespaceURI(t);for(let o=this.length-1;o>=0;o--){const s=this.entries[o];if(s.type===Ft.MARKER_ENTRY)break;const c=s.element,l=this.treeAdapter.getAttrList(c);this.treeAdapter.getTagName(c)===a&&this.treeAdapter.getNamespaceURI(c)===i&&l.length===r&&n.push({idx:o,attrs:l})}}return n.length=xr-1;s--)this.entries.splice(n[s].idx,1),this.length--}}insertMarker(){this.entries.push({type:Ft.MARKER_ENTRY}),this.length++}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.push({type:Ft.ELEMENT_ENTRY,element:t,token:n}),this.length++}insertElementAfterBookmark(t,n){let r=this.length-1;for(;r>=0&&this.entries[r]!==this.bookmark;r--);this.entries.splice(r+1,0,{type:Ft.ELEMENT_ENTRY,element:t,token:n}),this.length++}removeEntry(t){for(let n=this.length-1;n>=0;n--)if(this.entries[n]===t){this.entries.splice(n,1),this.length--;break}}clearToLastMarker(){for(;this.length;){const t=this.entries.pop();if(this.length--,t.type===Ft.MARKER_ENTRY)break}}getElementEntryInScopeWithTagName(t){for(let n=this.length-1;n>=0;n--){const r=this.entries[n];if(r.type===Ft.MARKER_ENTRY)return null;if(this.treeAdapter.getTagName(r.element)===t)return r}return null}getElementEntry(t){for(let n=this.length-1;n>=0;n--){const r=this.entries[n];if(r.type===Ft.ELEMENT_ENTRY&&r.element===t)return r}return null}};Ki.MARKER_ENTRY="MARKER_ENTRY";Ki.ELEMENT_ENTRY="ELEMENT_ENTRY";var nU=Ki;let wu=class{constructor(t){const n={},r=this._getOverriddenMethods(this,n);for(const a of Object.keys(r))typeof r[a]=="function"&&(n[a]=t[a],t[a]=r[a])}_getOverriddenMethods(){throw new Error("Not implemented")}};wu.install=function(e,t,n){e.__mixins||(e.__mixins=[]);for(let a=0;a{const i=Za.MODE[a];r[i]=function(o){t.ctLoc=t._getCurrentLocation(),n[i].call(this,o)}}),r}};var Tu=oU;const sU=Et;let cU=class extends sU{constructor(t,n){super(t),this.onItemPop=n.onItemPop}_getOverriddenMethods(t,n){return{pop(){t.onItemPop(this.current),n.pop.call(this)},popAllUpToHtmlElement(){for(let r=this.stackTop;r>0;r--)t.onItemPop(this.items[r]);n.popAllUpToHtmlElement.call(this)},remove(r){t.onItemPop(this.current),n.remove.call(this,r)}}}};var lU=cU;const Ja=Et,Sc=ha,uU=Tu,fU=lU,hU=nt,ei=hU.TAG_NAMES;let pU=class extends Ja{constructor(t){super(t),this.parser=t,this.treeAdapter=this.parser.treeAdapter,this.posTracker=null,this.lastStartTagToken=null,this.lastFosterParentingLocation=null,this.currentToken=null}_setStartLocation(t){let n=null;this.lastStartTagToken&&(n=Object.assign({},this.lastStartTagToken.location),n.startTag=this.lastStartTagToken.location),this.treeAdapter.setNodeSourceCodeLocation(t,n)}_setEndLocation(t,n){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&n.location){const a=n.location,i=this.treeAdapter.getTagName(t),o=n.type===Sc.END_TAG_TOKEN&&i===n.tagName,s={};o?(s.endTag=Object.assign({},a),s.endLine=a.endLine,s.endCol=a.endCol,s.endOffset=a.endOffset):(s.endLine=a.startLine,s.endCol=a.startCol,s.endOffset=a.startOffset),this.treeAdapter.updateNodeSourceCodeLocation(t,s)}}_getOverriddenMethods(t,n){return{_bootstrap(r,a){n._bootstrap.call(this,r,a),t.lastStartTagToken=null,t.lastFosterParentingLocation=null,t.currentToken=null;const i=Ja.install(this.tokenizer,uU);t.posTracker=i.posTracker,Ja.install(this.openElements,fU,{onItemPop:function(o){t._setEndLocation(o,t.currentToken)}})},_runParsingLoop(r){n._runParsingLoop.call(this,r);for(let a=this.openElements.stackTop;a>=0;a--)t._setEndLocation(this.openElements.items[a],t.currentToken)},_processTokenInForeignContent(r){t.currentToken=r,n._processTokenInForeignContent.call(this,r)},_processToken(r){if(t.currentToken=r,n._processToken.call(this,r),r.type===Sc.END_TAG_TOKEN&&(r.tagName===ei.HTML||r.tagName===ei.BODY&&this.openElements.hasInScope(ei.BODY)))for(let i=this.openElements.stackTop;i>=0;i--){const o=this.openElements.items[i];if(this.treeAdapter.getTagName(o)===r.tagName){t._setEndLocation(o,r);break}}},_setDocumentType(r){n._setDocumentType.call(this,r);const a=this.treeAdapter.getChildNodes(this.document),i=a.length;for(let o=0;o(Object.keys(a).forEach(i=>{r[i]=a[i]}),r),Object.create(null))},pa={};const{DOCUMENT_MODE:ln}=nt,Cu="html",LU="about:legacy-compat",vU="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",xu=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],MU=xu.concat(["-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]),PU=["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"],zu=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],BU=zu.concat(["-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]);function Ic(e){const t=e.indexOf('"')!==-1?"'":'"';return t+e+t}function Fc(e,t){for(let n=0;n-1)return ln.QUIRKS;let r=t===null?MU:xu;if(Fc(n,r))return ln.QUIRKS;if(r=t===null?zu:BU,Fc(n,r))return ln.LIMITED_QUIRKS}return ln.NO_QUIRKS};pa.serializeContent=function(e,t,n){let r="!DOCTYPE ";return e&&(r+=e),t?r+=" PUBLIC "+Ic(t):n&&(r+=" SYSTEM"),n!==null&&(r+=" "+Ic(n)),r};var Ht={};const ti=ha,Wi=nt,Y=Wi.TAG_NAMES,Ae=Wi.NAMESPACES,Rr=Wi.ATTRS,Oc={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},HU="definitionurl",jU="definitionURL",UU={attributename:"attributeName",attributetype:"attributeType",basefrequency:"baseFrequency",baseprofile:"baseProfile",calcmode:"calcMode",clippathunits:"clipPathUnits",diffuseconstant:"diffuseConstant",edgemode:"edgeMode",filterunits:"filterUnits",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",limitingconeangle:"limitingConeAngle",markerheight:"markerHeight",markerunits:"markerUnits",markerwidth:"markerWidth",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",numoctaves:"numOctaves",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",refx:"refX",refy:"refY",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",specularconstant:"specularConstant",specularexponent:"specularExponent",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stitchtiles:"stitchTiles",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textlength:"textLength",viewbox:"viewBox",viewtarget:"viewTarget",xchannelselector:"xChannelSelector",ychannelselector:"yChannelSelector",zoomandpan:"zoomAndPan"},GU={"xlink:actuate":{prefix:"xlink",name:"actuate",namespace:Ae.XLINK},"xlink:arcrole":{prefix:"xlink",name:"arcrole",namespace:Ae.XLINK},"xlink:href":{prefix:"xlink",name:"href",namespace:Ae.XLINK},"xlink:role":{prefix:"xlink",name:"role",namespace:Ae.XLINK},"xlink:show":{prefix:"xlink",name:"show",namespace:Ae.XLINK},"xlink:title":{prefix:"xlink",name:"title",namespace:Ae.XLINK},"xlink:type":{prefix:"xlink",name:"type",namespace:Ae.XLINK},"xml:base":{prefix:"xml",name:"base",namespace:Ae.XML},"xml:lang":{prefix:"xml",name:"lang",namespace:Ae.XML},"xml:space":{prefix:"xml",name:"space",namespace:Ae.XML},xmlns:{prefix:"",name:"xmlns",namespace:Ae.XMLNS},"xmlns:xlink":{prefix:"xmlns",name:"xlink",namespace:Ae.XMLNS}},qU=Ht.SVG_TAG_NAMES_ADJUSTMENT_MAP={altglyph:"altGlyph",altglyphdef:"altGlyphDef",altglyphitem:"altGlyphItem",animatecolor:"animateColor",animatemotion:"animateMotion",animatetransform:"animateTransform",clippath:"clipPath",feblend:"feBlend",fecolormatrix:"feColorMatrix",fecomponenttransfer:"feComponentTransfer",fecomposite:"feComposite",feconvolvematrix:"feConvolveMatrix",fediffuselighting:"feDiffuseLighting",fedisplacementmap:"feDisplacementMap",fedistantlight:"feDistantLight",feflood:"feFlood",fefunca:"feFuncA",fefuncb:"feFuncB",fefuncg:"feFuncG",fefuncr:"feFuncR",fegaussianblur:"feGaussianBlur",feimage:"feImage",femerge:"feMerge",femergenode:"feMergeNode",femorphology:"feMorphology",feoffset:"feOffset",fepointlight:"fePointLight",fespecularlighting:"feSpecularLighting",fespotlight:"feSpotLight",fetile:"feTile",feturbulence:"feTurbulence",foreignobject:"foreignObject",glyphref:"glyphRef",lineargradient:"linearGradient",radialgradient:"radialGradient",textpath:"textPath"},$U={[Y.B]:!0,[Y.BIG]:!0,[Y.BLOCKQUOTE]:!0,[Y.BODY]:!0,[Y.BR]:!0,[Y.CENTER]:!0,[Y.CODE]:!0,[Y.DD]:!0,[Y.DIV]:!0,[Y.DL]:!0,[Y.DT]:!0,[Y.EM]:!0,[Y.EMBED]:!0,[Y.H1]:!0,[Y.H2]:!0,[Y.H3]:!0,[Y.H4]:!0,[Y.H5]:!0,[Y.H6]:!0,[Y.HEAD]:!0,[Y.HR]:!0,[Y.I]:!0,[Y.IMG]:!0,[Y.LI]:!0,[Y.LISTING]:!0,[Y.MENU]:!0,[Y.META]:!0,[Y.NOBR]:!0,[Y.OL]:!0,[Y.P]:!0,[Y.PRE]:!0,[Y.RUBY]:!0,[Y.S]:!0,[Y.SMALL]:!0,[Y.SPAN]:!0,[Y.STRONG]:!0,[Y.STRIKE]:!0,[Y.SUB]:!0,[Y.SUP]:!0,[Y.TABLE]:!0,[Y.TT]:!0,[Y.U]:!0,[Y.UL]:!0,[Y.VAR]:!0};Ht.causesExit=function(e){const t=e.tagName;return t===Y.FONT&&(ti.getTokenAttr(e,Rr.COLOR)!==null||ti.getTokenAttr(e,Rr.SIZE)!==null||ti.getTokenAttr(e,Rr.FACE)!==null)?!0:$U[t]};Ht.adjustTokenMathMLAttrs=function(e){for(let t=0;t0);for(let a=n;a=0;t--){let r=this.openElements.items[t];t===0&&(n=!0,this.fragmentContext&&(r=this.fragmentContext));const a=this.treeAdapter.getTagName(r),i=rG[a];if(i){this.insertionMode=i;break}else if(!n&&(a===_.TD||a===_.TH)){this.insertionMode=ga;break}else if(!n&&a===_.HEAD){this.insertionMode=xn;break}else if(a===_.SELECT){this._resetInsertionModeForSelect(t);break}else if(a===_.TEMPLATE){this.insertionMode=this.currentTmplInsertionMode;break}else if(a===_.HTML){this.insertionMode=this.headElement?da:_a;break}else if(n){this.insertionMode=ct;break}}}_resetInsertionModeForSelect(t){if(t>0)for(let n=t-1;n>0;n--){const r=this.openElements.items[n],a=this.treeAdapter.getTagName(r);if(a===_.TEMPLATE)break;if(a===_.TABLE){this.insertionMode=Xi;return}}this.insertionMode=Qi}_pushTmplInsertionMode(t){this.tmplInsertionModeStack.push(t),this.tmplInsertionModeStackTop++,this.currentTmplInsertionMode=t}_popTmplInsertionMode(){this.tmplInsertionModeStack.pop(),this.tmplInsertionModeStackTop--,this.currentTmplInsertionMode=this.tmplInsertionModeStack[this.tmplInsertionModeStackTop]}_isElementCausesFosterParenting(t){const n=this.treeAdapter.getTagName(t);return n===_.TABLE||n===_.TBODY||n===_.TFOOT||n===_.THEAD||n===_.TR}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.current)}_findFosterParentingLocation(){const t={parent:null,beforeElement:null};for(let n=this.openElements.stackTop;n>=0;n--){const r=this.openElements.items[n],a=this.treeAdapter.getTagName(r),i=this.treeAdapter.getNamespaceURI(r);if(a===_.TEMPLATE&&i===U.HTML){t.parent=this.treeAdapter.getTemplateContent(r);break}else if(a===_.TABLE){t.parent=this.treeAdapter.getParentNode(r),t.parent?t.beforeElement=r:t.parent=this.openElements.items[n-1];break}}return t.parent||(t.parent=this.openElements.items[0]),t}_fosterParentElement(t){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertBefore(n.parent,t,n.beforeElement):this.treeAdapter.appendChild(n.parent,t)}_fosterParentText(t){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertTextBefore(n.parent,t,n.beforeElement):this.treeAdapter.insertText(n.parent,t)}_isSpecialElement(t){const n=this.treeAdapter.getTagName(t),r=this.treeAdapter.getNamespaceURI(t);return Zt.SPECIAL_ELEMENTS[r][n]}}var oG=iG;function sG(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagName)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):Xe(e,t),n}function cG(e,t){let n=null;for(let r=e.openElements.stackTop;r>=0;r--){const a=e.openElements.items[r];if(a===t.element)break;e._isSpecialElement(a)&&(n=a)}return n||(e.openElements.popUntilElementPopped(t.element),e.activeFormattingElements.removeEntry(t)),n}function lG(e,t,n){let r=t,a=e.openElements.getCommonAncestor(t);for(let i=0,o=a;o!==n;i++,o=a){a=e.openElements.getCommonAncestor(o);const s=e.activeFormattingElements.getElementEntry(o),c=s&&i>=nG;!s||c?(c&&e.activeFormattingElements.removeEntry(s),e.openElements.remove(o)):(o=uG(e,s),r===t&&(e.activeFormattingElements.bookmark=s),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(o,r),r=o)}return r}function uG(e,t){const n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function fG(e,t,n){if(e._isElementCausesFosterParenting(t))e._fosterParentElement(n);else{const r=e.treeAdapter.getTagName(t),a=e.treeAdapter.getNamespaceURI(t);r===_.TEMPLATE&&a===U.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function hG(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),a=n.token,i=e.treeAdapter.createElement(a.tagName,r,a.attrs);e._adoptNodes(t,i),e.treeAdapter.appendChild(t,i),e.activeFormattingElements.insertElementAfterBookmark(i,n.token),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,i)}function Ot(e,t){let n;for(let r=0;r0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagName!==_.TEMPLATE&&e._err(ze.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(_.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e._popTmplInsertionMode(),e._resetInsertionMode()):e._err(ze.endTagWithoutMatchingOpenElement)}function Yn(e,t){e.openElements.pop(),e.insertionMode=da,e._processToken(t)}function kG(e,t){const n=t.tagName;n===_.HTML?Pe(e,t):n===_.BASEFONT||n===_.BGSOUND||n===_.HEAD||n===_.LINK||n===_.META||n===_.NOFRAMES||n===_.STYLE?Te(e,t):n===_.NOSCRIPT?e._err(ze.nestedNoscriptInHead):Wn(e,t)}function wG(e,t){const n=t.tagName;n===_.NOSCRIPT?(e.openElements.pop(),e.insertionMode=xn):n===_.BR?Wn(e,t):e._err(ze.endTagWithoutMatchingOpenElement)}function Wn(e,t){const n=t.type===k.EOF_TOKEN?ze.openElementsLeftAfterEof:ze.disallowedContentInNoscriptInHead;e._err(n),e.openElements.pop(),e.insertionMode=xn,e._processToken(t)}function bG(e,t){const n=t.tagName;n===_.HTML?Pe(e,t):n===_.BODY?(e._insertElement(t,U.HTML),e.framesetOk=!1,e.insertionMode=ct):n===_.FRAMESET?(e._insertElement(t,U.HTML),e.insertionMode=ya):n===_.BASE||n===_.BASEFONT||n===_.BGSOUND||n===_.LINK||n===_.META||n===_.NOFRAMES||n===_.SCRIPT||n===_.STYLE||n===_.TEMPLATE||n===_.TITLE?(e._err(ze.abandonedHeadElementChild),e.openElements.push(e.headElement),Te(e,t),e.openElements.remove(e.headElement)):n===_.HEAD?e._err(ze.misplacedStartTagForHeadElement):Vn(e,t)}function TG(e,t){const n=t.tagName;n===_.BODY||n===_.HTML||n===_.BR?Vn(e,t):n===_.TEMPLATE?Jt(e,t):e._err(ze.endTagWithoutMatchingOpenElement)}function Vn(e,t){e._insertFakeElement(_.BODY),e.insertionMode=ct,e._processToken(t)}function qt(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function Dr(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function EG(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function AG(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function CG(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,U.HTML),e.insertionMode=ya)}function dt(e,t){e.openElements.hasInButtonScope(_.P)&&e._closePElement(),e._insertElement(t,U.HTML)}function xG(e,t){e.openElements.hasInButtonScope(_.P)&&e._closePElement();const n=e.openElements.currentTagName;(n===_.H1||n===_.H2||n===_.H3||n===_.H4||n===_.H5||n===_.H6)&&e.openElements.pop(),e._insertElement(t,U.HTML)}function Bc(e,t){e.openElements.hasInButtonScope(_.P)&&e._closePElement(),e._insertElement(t,U.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function zG(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(_.P)&&e._closePElement(),e._insertElement(t,U.HTML),n||(e.formElement=e.openElements.current))}function DG(e,t){e.framesetOk=!1;const n=t.tagName;for(let r=e.openElements.stackTop;r>=0;r--){const a=e.openElements.items[r],i=e.treeAdapter.getTagName(a);let o=null;if(n===_.LI&&i===_.LI?o=_.LI:(n===_.DD||n===_.DT)&&(i===_.DD||i===_.DT)&&(o=i),o){e.openElements.generateImpliedEndTagsWithExclusion(o),e.openElements.popUntilTagNamePopped(o);break}if(i!==_.ADDRESS&&i!==_.DIV&&i!==_.P&&e._isSpecialElement(a))break}e.openElements.hasInButtonScope(_.P)&&e._closePElement(),e._insertElement(t,U.HTML)}function SG(e,t){e.openElements.hasInButtonScope(_.P)&&e._closePElement(),e._insertElement(t,U.HTML),e.tokenizer.state=k.MODE.PLAINTEXT}function NG(e,t){e.openElements.hasInScope(_.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(_.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,U.HTML),e.framesetOk=!1}function IG(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(_.A);n&&(Ot(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,U.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function un(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,U.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function FG(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(_.NOBR)&&(Ot(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,U.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Hc(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,U.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function OG(e,t){e.treeAdapter.getDocumentMode(e.document)!==Zt.DOCUMENT_MODE.QUIRKS&&e.openElements.hasInButtonScope(_.P)&&e._closePElement(),e._insertElement(t,U.HTML),e.framesetOk=!1,e.insertionMode=De}function dn(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,U.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function RG(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,U.HTML);const n=k.getTokenAttr(t,Du.TYPE);(!n||n.toLowerCase()!==Su)&&(e.framesetOk=!1),t.ackSelfClosing=!0}function jc(e,t){e._appendElement(t,U.HTML),t.ackSelfClosing=!0}function LG(e,t){e.openElements.hasInButtonScope(_.P)&&e._closePElement(),e._appendElement(t,U.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function vG(e,t){t.tagName=_.IMG,dn(e,t)}function MG(e,t){e._insertElement(t,U.HTML),e.skipNextNewLine=!0,e.tokenizer.state=k.MODE.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=Vr}function PG(e,t){e.openElements.hasInButtonScope(_.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,k.MODE.RAWTEXT)}function BG(e,t){e.framesetOk=!1,e._switchToTextParsing(t,k.MODE.RAWTEXT)}function Uc(e,t){e._switchToTextParsing(t,k.MODE.RAWTEXT)}function HG(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,U.HTML),e.framesetOk=!1,e.insertionMode===De||e.insertionMode===ma||e.insertionMode===Ge||e.insertionMode===bt||e.insertionMode===ga?e.insertionMode=Xi:e.insertionMode=Qi}function Gc(e,t){e.openElements.currentTagName===_.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,U.HTML)}function qc(e,t){e.openElements.hasInScope(_.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,U.HTML)}function jG(e,t){e.openElements.hasInScope(_.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(_.RTC),e._insertElement(t,U.HTML)}function UG(e,t){e.openElements.hasInButtonScope(_.P)&&e._closePElement(),e._insertElement(t,U.HTML)}function GG(e,t){e._reconstructActiveFormattingElements(),it.adjustTokenMathMLAttrs(t),it.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,U.MATHML):e._insertElement(t,U.MATHML),t.ackSelfClosing=!0}function qG(e,t){e._reconstructActiveFormattingElements(),it.adjustTokenSVGAttrs(t),it.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,U.SVG):e._insertElement(t,U.SVG),t.ackSelfClosing=!0}function He(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,U.HTML)}function Pe(e,t){const n=t.tagName;switch(n.length){case 1:n===_.I||n===_.S||n===_.B||n===_.U?un(e,t):n===_.P?dt(e,t):n===_.A?IG(e,t):He(e,t);break;case 2:n===_.DL||n===_.OL||n===_.UL?dt(e,t):n===_.H1||n===_.H2||n===_.H3||n===_.H4||n===_.H5||n===_.H6?xG(e,t):n===_.LI||n===_.DD||n===_.DT?DG(e,t):n===_.EM||n===_.TT?un(e,t):n===_.BR?dn(e,t):n===_.HR?LG(e,t):n===_.RB?qc(e,t):n===_.RT||n===_.RP?jG(e,t):n!==_.TH&&n!==_.TD&&n!==_.TR&&He(e,t);break;case 3:n===_.DIV||n===_.DIR||n===_.NAV?dt(e,t):n===_.PRE?Bc(e,t):n===_.BIG?un(e,t):n===_.IMG||n===_.WBR?dn(e,t):n===_.XMP?PG(e,t):n===_.SVG?qG(e,t):n===_.RTC?qc(e,t):n!==_.COL&&He(e,t);break;case 4:n===_.HTML?EG(e,t):n===_.BASE||n===_.LINK||n===_.META?Te(e,t):n===_.BODY?AG(e,t):n===_.MAIN||n===_.MENU?dt(e,t):n===_.FORM?zG(e,t):n===_.CODE||n===_.FONT?un(e,t):n===_.NOBR?FG(e,t):n===_.AREA?dn(e,t):n===_.MATH?GG(e,t):n===_.MENU?UG(e,t):n!==_.HEAD&&He(e,t);break;case 5:n===_.STYLE||n===_.TITLE?Te(e,t):n===_.ASIDE?dt(e,t):n===_.SMALL?un(e,t):n===_.TABLE?OG(e,t):n===_.EMBED?dn(e,t):n===_.INPUT?RG(e,t):n===_.PARAM||n===_.TRACK?jc(e,t):n===_.IMAGE?vG(e,t):n!==_.FRAME&&n!==_.TBODY&&n!==_.TFOOT&&n!==_.THEAD&&He(e,t);break;case 6:n===_.SCRIPT?Te(e,t):n===_.CENTER||n===_.FIGURE||n===_.FOOTER||n===_.HEADER||n===_.HGROUP||n===_.DIALOG?dt(e,t):n===_.BUTTON?NG(e,t):n===_.STRIKE||n===_.STRONG?un(e,t):n===_.APPLET||n===_.OBJECT?Hc(e,t):n===_.KEYGEN?dn(e,t):n===_.SOURCE?jc(e,t):n===_.IFRAME?BG(e,t):n===_.SELECT?HG(e,t):n===_.OPTION?Gc(e,t):He(e,t);break;case 7:n===_.BGSOUND?Te(e,t):n===_.DETAILS||n===_.ADDRESS||n===_.ARTICLE||n===_.SECTION||n===_.SUMMARY?dt(e,t):n===_.LISTING?Bc(e,t):n===_.MARQUEE?Hc(e,t):n===_.NOEMBED?Uc(e,t):n!==_.CAPTION&&He(e,t);break;case 8:n===_.BASEFONT?Te(e,t):n===_.FRAMESET?CG(e,t):n===_.FIELDSET?dt(e,t):n===_.TEXTAREA?MG(e,t):n===_.TEMPLATE?Te(e,t):n===_.NOSCRIPT?e.options.scriptingEnabled?Uc(e,t):He(e,t):n===_.OPTGROUP?Gc(e,t):n!==_.COLGROUP&&He(e,t);break;case 9:n===_.PLAINTEXT?SG(e,t):He(e,t);break;case 10:n===_.BLOCKQUOTE||n===_.FIGCAPTION?dt(e,t):He(e,t);break;default:He(e,t)}}function $G(e){e.openElements.hasInScope(_.BODY)&&(e.insertionMode=Zi)}function KG(e,t){e.openElements.hasInScope(_.BODY)&&(e.insertionMode=Zi,e._processToken(t))}function Nt(e,t){const n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function YG(e){const t=e.openElements.tmplCount>0,n=e.formElement;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(_.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(_.FORM):e.openElements.remove(n))}function WG(e){e.openElements.hasInButtonScope(_.P)||e._insertFakeElement(_.P),e._closePElement()}function VG(e){e.openElements.hasInListItemScope(_.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(_.LI),e.openElements.popUntilTagNamePopped(_.LI))}function QG(e,t){const n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function XG(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function $c(e,t){const n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function ZG(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(_.BR),e.openElements.pop(),e.framesetOk=!1}function Xe(e,t){const n=t.tagName;for(let r=e.openElements.stackTop;r>0;r--){const a=e.openElements.items[r];if(e.treeAdapter.getTagName(a)===n){e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilElementPopped(a);break}if(e._isSpecialElement(a))break}}function Ji(e,t){const n=t.tagName;switch(n.length){case 1:n===_.A||n===_.B||n===_.I||n===_.S||n===_.U?Ot(e,t):n===_.P?WG(e):Xe(e,t);break;case 2:n===_.DL||n===_.UL||n===_.OL?Nt(e,t):n===_.LI?VG(e):n===_.DD||n===_.DT?QG(e,t):n===_.H1||n===_.H2||n===_.H3||n===_.H4||n===_.H5||n===_.H6?XG(e):n===_.BR?ZG(e):n===_.EM||n===_.TT?Ot(e,t):Xe(e,t);break;case 3:n===_.BIG?Ot(e,t):n===_.DIR||n===_.DIV||n===_.NAV||n===_.PRE?Nt(e,t):Xe(e,t);break;case 4:n===_.BODY?$G(e):n===_.HTML?KG(e,t):n===_.FORM?YG(e):n===_.CODE||n===_.FONT||n===_.NOBR?Ot(e,t):n===_.MAIN||n===_.MENU?Nt(e,t):Xe(e,t);break;case 5:n===_.ASIDE?Nt(e,t):n===_.SMALL?Ot(e,t):Xe(e,t);break;case 6:n===_.CENTER||n===_.FIGURE||n===_.FOOTER||n===_.HEADER||n===_.HGROUP||n===_.DIALOG?Nt(e,t):n===_.APPLET||n===_.OBJECT?$c(e,t):n===_.STRIKE||n===_.STRONG?Ot(e,t):Xe(e,t);break;case 7:n===_.ADDRESS||n===_.ARTICLE||n===_.DETAILS||n===_.SECTION||n===_.SUMMARY||n===_.LISTING?Nt(e,t):n===_.MARQUEE?$c(e,t):Xe(e,t);break;case 8:n===_.FIELDSET?Nt(e,t):n===_.TEMPLATE?Jt(e,t):Xe(e,t);break;case 10:n===_.BLOCKQUOTE||n===_.FIGCAPTION?Nt(e,t):Xe(e,t);break;default:Xe(e,t)}}function mt(e,t){e.tmplInsertionModeStackTop>-1?Pu(e,t):e.stopped=!0}function JG(e,t){t.tagName===_.SCRIPT&&(e.pendingScript=e.openElements.current),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function eq(e,t){e._err(ze.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e._processToken(t)}function gt(e,t){const n=e.openElements.currentTagName;n===_.TABLE||n===_.TBODY||n===_.TFOOT||n===_.THEAD||n===_.TR?(e.pendingCharacterTokens=[],e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=Fu,e._processToken(t)):je(e,t)}function tq(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,U.HTML),e.insertionMode=ma}function nq(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,U.HTML),e.insertionMode=lr}function rq(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(_.COLGROUP),e.insertionMode=lr,e._processToken(t)}function aq(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,U.HTML),e.insertionMode=Ge}function iq(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(_.TBODY),e.insertionMode=Ge,e._processToken(t)}function oq(e,t){e.openElements.hasInTableScope(_.TABLE)&&(e.openElements.popUntilTagNamePopped(_.TABLE),e._resetInsertionMode(),e._processToken(t))}function sq(e,t){const n=k.getTokenAttr(t,Du.TYPE);n&&n.toLowerCase()===Su?e._appendElement(t,U.HTML):je(e,t),t.ackSelfClosing=!0}function cq(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,U.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function eo(e,t){const n=t.tagName;switch(n.length){case 2:n===_.TD||n===_.TH||n===_.TR?iq(e,t):je(e,t);break;case 3:n===_.COL?rq(e,t):je(e,t);break;case 4:n===_.FORM?cq(e,t):je(e,t);break;case 5:n===_.TABLE?oq(e,t):n===_.STYLE?Te(e,t):n===_.TBODY||n===_.TFOOT||n===_.THEAD?aq(e,t):n===_.INPUT?sq(e,t):je(e,t);break;case 6:n===_.SCRIPT?Te(e,t):je(e,t);break;case 7:n===_.CAPTION?tq(e,t):je(e,t);break;case 8:n===_.COLGROUP?nq(e,t):n===_.TEMPLATE?Te(e,t):je(e,t);break;default:je(e,t)}}function to(e,t){const n=t.tagName;n===_.TABLE?e.openElements.hasInTableScope(_.TABLE)&&(e.openElements.popUntilTagNamePopped(_.TABLE),e._resetInsertionMode()):n===_.TEMPLATE?Jt(e,t):n!==_.BODY&&n!==_.CAPTION&&n!==_.COL&&n!==_.COLGROUP&&n!==_.HTML&&n!==_.TBODY&&n!==_.TD&&n!==_.TFOOT&&n!==_.TH&&n!==_.THEAD&&n!==_.TR&&je(e,t)}function je(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,e._processTokenInBodyMode(t),e.fosterParentingEnabled=n}function lq(e,t){e.pendingCharacterTokens.push(t)}function uq(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function Hn(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n0?(e.openElements.popUntilTagNamePopped(_.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e._popTmplInsertionMode(),e._resetInsertionMode(),e._processToken(t)):e.stopped=!0}function Cq(e,t){t.tagName===_.HTML?Pe(e,t):Zr(e,t)}function xq(e,t){t.tagName===_.HTML?e.fragmentContext||(e.insertionMode=Ru):Zr(e,t)}function Zr(e,t){e.insertionMode=ct,e._processToken(t)}function zq(e,t){const n=t.tagName;n===_.HTML?Pe(e,t):n===_.FRAMESET?e._insertElement(t,U.HTML):n===_.FRAME?(e._appendElement(t,U.HTML),t.ackSelfClosing=!0):n===_.NOFRAMES&&Te(e,t)}function Dq(e,t){t.tagName===_.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagName!==_.FRAMESET&&(e.insertionMode=Ou))}function Sq(e,t){const n=t.tagName;n===_.HTML?Pe(e,t):n===_.NOFRAMES&&Te(e,t)}function Nq(e,t){t.tagName===_.HTML&&(e.insertionMode=Lu)}function Iq(e,t){t.tagName===_.HTML?Pe(e,t):Lr(e,t)}function Lr(e,t){e.insertionMode=ct,e._processToken(t)}function Fq(e,t){const n=t.tagName;n===_.HTML?Pe(e,t):n===_.NOFRAMES&&Te(e,t)}function Oq(e,t){t.chars=JU.REPLACEMENT_CHARACTER,e._insertCharacters(t)}function Rq(e,t){e._insertCharacters(t),e.framesetOk=!1}function Lq(e,t){if(it.causesExit(t)&&!e.fragmentContext){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==U.HTML&&!e._isIntegrationPoint(e.openElements.current);)e.openElements.pop();e._processToken(t)}else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===U.MATHML?it.adjustTokenMathMLAttrs(t):r===U.SVG&&(it.adjustTokenSVGTagName(t),it.adjustTokenSVGAttrs(t)),it.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function vq(e,t){for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===U.HTML){e._processToken(t);break}if(e.treeAdapter.getTagName(r).toLowerCase()===t.tagName){e.openElements.popUntilElementPopped(r);break}}}const Mq=ir(oG),Kc=/[#.]/g;function Pq(e,t){const n=e||"",r={};let a=0,i,o;for(;a-1&&oo)return{line:s+1,column:o-(s>0?n[s-1]:0)+1,offset:o}}return{line:void 0,column:void 0,offset:void 0}}function i(o){const s=o&&o.line,c=o&&o.column;if(typeof s=="number"&&typeof c=="number"&&!Number.isNaN(s)&&!Number.isNaN(c)&&s-1 in n){const l=(n[s-2]||0)+c-1||0;if(l>-1&&l{const z=T;if(z.value.stitch&&G!==null&&H!==null)return G.children[H]=z.value.stitch,H}),e.type!=="root"&&u.type==="root"&&u.children.length===1)return u.children[0];return u;function f(){const T={nodeName:"template",tagName:"template",attrs:[],namespaceURI:rr.html,childNodes:[]},H={nodeName:"documentmock",tagName:"documentmock",attrs:[],namespaceURI:rr.html,childNodes:[]},G={nodeName:"#document-fragment",childNodes:[]};if(a._bootstrap(H,T),a._pushTmplInsertionMode(u$),a._initTokenizerForFragmentParsing(),a._insertFakeRootElement(),a._resetInsertionMode(),a._findFormInFragmentContext(),s=a.tokenizer,!s)throw new Error("Expected `tokenizer`");return c=s.preprocessor,p=s.__mixins[0],l=p.posTracker,i(e),h(),a._adoptNodes(H.childNodes[0],G),G}function d(){const T=a.treeAdapter.createDocument();if(a._bootstrap(T,void 0),s=a.tokenizer,!s)throw new Error("Expected `tokenizer`");return c=s.preprocessor,p=s.__mixins[0],l=p.posTracker,i(e),h(),T}function m(T){let H=-1;if(T)for(;++HGu(t,n,e)}const C$={remark:{plugins:{"remark-mdc":{instance:ty},"remark-emoji":{instance:HB},"remark-gfm":{instance:Cj}}},rehype:{options:{handlers:zy,allowDangerousHtml:!0},plugins:{"rehype-external-links":{instance:jj},"rehype-sort-attribute-values":{instance:Uj},"rehype-sort-attributes":{instance:Gj},"rehype-raw":{instance:A$,options:{passThrough:["element"]}}}},highlight:!1,toc:{searchDepth:2,depth:2}},x$={theme:{default:"github-light",dark:"github-dark"},async highlighter(e,t,n,r){var a,i;if(window.sessionStorage.getItem("mdc-shiki-highlighter")==="browser")return Ti(()=>import("./highlighter.a520effb.js"),["./highlighter.a520effb.js","./entry.8c781d5d.js","./entry.2e8fb0a2.css"],import.meta.url).then(({useShikiHighlighter:o})=>o().getHighlightedAST(e,t,n,{highlights:r}));try{return await $fetch("/api/_mdc/highlight",{params:{code:e,lang:t,theme:JSON.stringify(n),highlights:JSON.stringify(r)}})}catch(o){if(((a=o==null?void 0:o.response)==null?void 0:a.status)===404)return window.sessionStorage.setItem("mdc-shiki-highlighter","browser"),(i=this.highlighter)==null?void 0:i.call(this,e,t,n,r)}return Promise.resolve({tree:[{type:"text",value:e}],className:"",style:""})}};function z$(e={}){const t={...x$,...e};return async n=>{const r=[],a=[];Mt(n,i=>{var o;return["pre","code"].includes(i.tagName)&&!!((o=i.properties)!=null&&o.language)},i=>{const o=i,s=t.highlighter(Bl(i),o.properties.language,t.theme,o.properties.highlights??[]).then(({tree:c,className:l,style:p,inlineStyle:u})=>{var f;o.properties.className=((o.properties.className||"")+" "+l).trim(),o.properties.style=((o.properties.style||"")+" "+u).trim(),((f=o.children[0])==null?void 0:f.tagName)==="code"?o.children[0].children=c:o.children=c[0].children||c[0],p&&a.push(p)});r.push(s)}),r.length&&(await Promise.all(r),n.children.push({type:"element",tagName:"style",children:[{type:"text",value:D$(a.join(""))}],properties:{}}))}}const D$=e=>{const t=e.split("}").filter(n=>!!n.trim()).map(n=>n.trim()+"}");return Array.from(new Set(t)).join("")};function qu(e){return e.type==="text"?e.value||"":(e.children||[]).reduce((t,n)=>t.concat(qu(n)),"")}function $u(e,t=2,n=0){return!Array.isArray(e.children)||n===t?[e]:[e,...e.children.reduce((r,a)=>r.concat($u(a,t,n+1)),[])]}const Ku=["h2","h3","h4","h5","h6"],S$=Ku.reduce((e,t)=>(e[t]=Number(t.charAt(t.length-1)),e),{}),N$=e=>S$[e.tag],I$=e=>((e<1||e>5)&&(console.log(`\`toc.depth\` is set to ${e}. It should be a number between 1 and 5. `),e=1),Ku.slice(0,e));function Yu(e){if(e.length<=1)return e;const t=[];let n;return e.forEach(r=>{!n||r.depth<=n.depth?(r.children=[],n=r,t.push(r)):n.children.push(r)}),t.forEach(r=>{var a;(a=r.children)!=null&&a.length?r.children=Yu(r.children):delete r.children}),t}function F$(e,t){const{searchDepth:n,depth:r,title:a=""}=t,i=I$(r),s=$u(e,n).filter(c=>i.includes(c.tag||"")).map(c=>{var l;return{id:(l=c.props)==null?void 0:l.id,depth:N$(c),text:qu(c)}});return{title:a,searchDepth:n,depth:r,links:s}}function O$(e,t){const n=F$(e,t);return n.links=Yu(n.links),n}let Ve;const R$=async(e,t={})=>{var p,u,f;Ve||(Ve=await Ti(()=>import("./mdc-imports.c835d45e.js"),[],import.meta.url).catch(()=>({})));const n=fo(t,{remark:{plugins:Ve==null?void 0:Ve.remarkPlugins},rehype:{plugins:Ve==null?void 0:Ve.rehypePlugins},highlight:Ve==null?void 0:Ve.highlight},C$),{content:r,data:a}=await Ol(e),i=Gf();i.use(Wp),await ws(i,(p=n.remark)==null?void 0:p.plugins),i.use(P_,(u=n.rehype)==null?void 0:u.options),n.highlight&&i.use(z$,n.highlight),await ws(i,(f=n.rehype)==null?void 0:f.plugins),i.use(hy);const o=await i.process({value:r,data:a}),s=o.result,c=Object.assign(L$(s.body),a,(o==null?void 0:o.data)||{});let l;if(c.toc!==!1){const d=fo(c.toc||{},n.toc);l=O$(s.body,d)}return{data:c,body:s.body,excerpt:s.excerpt,toc:l}};function L$(e){let t="",n="";const r=e.children.filter(a=>a.type!=="text"&&a.tag!=="hr");if(r.length&&r[0].tag==="h1"){const a=r.shift();t=po(a)}if(r.length&&r[0].tag==="p"){const a=r.shift();n=po(a)}return{title:t,description:n}}const v$=An({__name:"MDC",props:{tag:{type:[String,Boolean],default:"div"},value:{type:[String,Object],required:!0},excerpt:{type:Boolean,default:!1},parserOptions:{type:Object,default:()=>({})},class:{type:[String,Array,Object],default:""}},async setup(e){let t,n;const r=e,a=Kt(()=>of(r.value)),{data:i,refresh:o}=([t,n]=Qc(async()=>Xc(a.value,async()=>typeof r.value!="string"?r.value:await R$(r.value,r.parserOptions),"$SPNDsi0kgd")),t=await t,n(),t),s=Kt(()=>{var c,l;return r.excerpt?(c=i.value)==null?void 0:c.excerpt:(l=i.value)==null?void 0:l.body});return sf(()=>r.value,()=>{o()}),(c,l)=>{var u,f,d,m;const p=af;return de(c.$slots,"default",{data:(u=q(i))==null?void 0:u.data,body:(f=q(i))==null?void 0:f.body,toc:(d=q(i))==null?void 0:d.toc,excerpt:(m=q(i))==null?void 0:m.excerpt},()=>{var g;return[s.value?(Z(),Qt(p,{key:0,tag:e.tag,class:ie(r.class),body:s.value,data:(g=q(i))==null?void 0:g.data},null,8,["tag","class","body","data"])):he("",!0)]})}}}),M$=An({inheritAttrs:!1,__name:"LandingHero",props:{title:{default:""},description:{default:""},links:{default:()=>[]},orientation:{default:"vertical"},ui:{default:()=>({})},class:{default:void 0}},setup(e){const t={wrapper:"py-24 sm:py-32 md:py-40 relative",container:"gap-16 sm:gap-y-24",base:"",headline:"mb-10",title:"text-5xl font-bold tracking-tight text-gray-900 dark:text-white sm:text-7xl",description:"mt-6 text-lg tracking-tight text-gray-600 dark:text-gray-300",links:"mt-10 flex flex-wrap gap-x-6 gap-y-3"},n=e,{ui:r,attrs:a}=ta("landing.hero",vt(n,"ui"),t,vt(n,"class"),!0);return(i,o)=>{const s=Jc,c=Zc;return Z(),ae("div",ot({class:q(r).wrapper},q(a)),[de(i.$slots,"top"),Je(c,{class:ie([q(r).container,i.orientation==="vertical"?"flex flex-col":"grid lg:grid-cols-2 lg:items-center"])},{default:Rt(()=>{var l;return[Tn("div",{class:ie([q(r).base,i.orientation==="vertical"&&"text-center"])},[i.$slots.headline?(Z(),ae("div",{key:0,class:ie(q(r).headline)},[de(i.$slots,"headline")],2)):he("",!0),Tn("h1",{class:ie(q(r).title)},[de(i.$slots,"title",{},()=>[Wt(Ze(i.title),1)])],2),i.description||i.$slots.description?(Z(),ae("p",{key:1,class:ie(q(r).description)},[de(i.$slots,"description",{},()=>[Wt(Ze(i.description),1)])],2)):he("",!0),(l=i.links)!=null&&l.length||i.$slots.links?(Z(),ae("div",{key:2,class:ie([q(r).links,i.orientation==="vertical"&&"justify-center"])},[de(i.$slots,"links",{},()=>[(Z(!0),ae(mn,null,gn(i.links,(p,u)=>(Z(),Qt(s,ot({key:u},p,{onClick:p.click}),null,16,["onClick"]))),128))])],2)):he("",!0)],2),de(i.$slots,"default")]}),_:3},8,["class"]),de(i.$slots,"bottom")],16)}}}),P$=cf(lf);function B$(e,t={}){const{x:n,y:r}=P$(t),a=Sr(e??(window==null?void 0:window.document.body)),i=Sr(0),o=Sr(0);return uf&&ff([a,n,r],()=>{const s=hf(a);if(!s)return;const{left:c,top:l}=s.getBoundingClientRect(),p=n.value-(c+window.scrollX),u=r.value-(l+window.scrollY);Math.abs(p)>1500||Math.abs(u)>1500||window.screen.width<=800||(i.value=p,o.value=u)},{immediate:!0,throttle:50}),{x:n,y:r,elementX:i,elementY:o}}const H$=e=>(yf("data-v-90aae6aa"),e=e(),kf(),e),j$=H$(()=>Tn("span",{class:"absolute inset-0","aria-hidden":"true"},null,-1)),U$=An({inheritAttrs:!1,__name:"LandingCard",props:{title:{default:""},description:{default:void 0},icon:{default:void 0},color:{default:"primary"},orientation:{default:"vertical"},ui:{default:()=>({})},class:{default:void 0},to:{},href:{},external:{type:Boolean},replace:{type:Boolean},custom:{type:Boolean},target:{},rel:{},noRel:{type:Boolean},prefetch:{type:Boolean},noPrefetch:{type:Boolean},activeClass:{},exactActiveClass:{},ariaCurrentValue:{}},setup(e){pf(m=>({"0ecadb9e":q(o),"6b1a02fb":q(s)}));const t=Sr(),n=_f(),{elementX:r,elementY:a}=B$(t),i=e,o=Kt(()=>{var m;return i.color==="primary"?"rgb(var(--color-primary-DEFAULT))":((m=ho[i.color])==null?void 0:m["500"])||i.color}),s=Kt(()=>{var m;return i.color==="primary"?"rgb(var(--color-primary-DEFAULT))":((m=ho[i.color])==null?void 0:m["400"])||i.color}),c=Kt(()=>({wrapper:"relative group isolate rounded-xl background-gradient ring-1 ring-gray-200 dark:ring-gray-800 before:hidden before:lg:block before:absolute before:-inset-[2px] before:h-[calc(100%+4px)] before:w-[calc(100%+4px)] before:z-[-1] before:rounded-[13px] flex-1 flex flex-col shadow",base:"flex-1 flex flex-col",container:"",body:{base:df("gap-x-8 gap-y-4 rounded-xl flex-1",i.orientation==="vertical"&&"flex flex-col",!!n.default&&i.orientation==="horizontal"&&"grid lg:grid-cols-2 lg:items-center")},background:"bg-white dark:bg-gray-900 hover:bg-opacity-90 dark:hover:bg-opacity-90 transition-[background-opacity]",ring:"",rounded:"rounded-xl",shadow:"",icon:{wrapper:"mb-2 pointer-events-none",base:"w-8 h-8 flex-shrink-0 text-gray-900 dark:text-white"},title:"text-gray-900 dark:text-white text-base font-bold truncate",description:"text-[15px] text-gray-500 dark:text-gray-400 mt-1"})),{ui:l,attrs:p}=ta("landing.card",vt(i,"ui"),c,vt(i,"class"),!0),u=new Set(["title","description","icon","ui","class"]),f=Kt(()=>{const m={};for(const g in i)u.has(g)||!i[g]||(m[g]=i[g]);return m}),d=Kt(()=>(i.title||n.title&&mf(n.title())||"Card link").trim());return(m,g)=>{const x=gf,E=e1,D=Af;return Z(),ae("div",ot({ref_key:"el",ref:t,style:{"--x":`${q(r)}px`,"--y":`${q(a)}px`},class:q(l).wrapper},q(p)),[Je(D,{ui:q(l)},{default:Rt(()=>[Tn("div",{class:ie(q(l).container)},[m.to?(Z(),Qt(x,ot({key:0,"aria-label":q(d)},q(f),{class:"focus:outline-none",tabindex:"-1"}),{default:Rt(()=>[j$]),_:1},16,["aria-label"])):he("",!0),m.icon||m.$slots.icon?(Z(),ae("div",{key:1,class:ie(q(l).icon.wrapper)},[de(m.$slots,"icon",{},()=>[Je(E,{name:m.icon,class:ie(q(l).icon.base)},null,8,["name","class"])],!0)],2)):he("",!0),m.title||m.$slots.title?(Z(),ae("p",{key:2,class:ie(q(l).title)},[de(m.$slots,"title",{},()=>[Wt(Ze(m.title),1)],!0)],2)):he("",!0),m.description||m.$slots.description?(Z(),ae("p",{key:3,class:ie(q(l).description)},[de(m.$slots,"description",{},()=>[Wt(Ze(m.description),1)],!0)],2)):he("",!0),de(m.$slots,"container",{},void 0,!0)],2),m.$slots.default?de(m.$slots,"default",{key:0},void 0,!0):he("",!0)]),_:3},8,["ui"])],16)}}});const G$=wf(U$,[["__scopeId","data-v-90aae6aa"]]),q$=An({inheritAttrs:!1,__name:"PageGrid",props:{ui:{},class:{}},setup(e){const t={wrapper:"grid grid-cols-1 sm:grid-cols-2 xl:grid-cols-3 gap-8"},n=e,{ui:r,attrs:a}=ta("page.grid",vt(n,"ui"),t,vt(n,"class"),!0);return(i,o)=>(Z(),ae("div",ot({class:q(r).wrapper},q(a)),[de(i.$slots,"default")],16))}}),$$={key:0},K$={key:2},Y$={key:0},W$=An({inheritAttrs:!1,__name:"LandingSection",props:{icon:{default:void 0},headline:{default:void 0},title:{default:""},description:{default:void 0},features:{default:()=>[]},links:{default:()=>[]},slot:{default:void 0},align:{default:"center"},ui:{default:()=>({})},class:{default:void 0}},setup(e){const t={wrapper:"py-24 sm:py-32",container:"gap-16 sm:gap-y-24",base:"",icon:{wrapper:"flex mb-6",base:"w-10 h-10 flex-shrink-0 text-primary"},headline:"mb-2 text-base/7 font-semibold text-primary",title:"text-3xl font-bold tracking-tight text-gray-900 dark:text-white sm:text-4xl lg:text-5xl",description:"mt-6 text-lg/8 text-gray-600 dark:text-gray-300",links:"mt-8 flex flex-wrap gap-x-3 gap-y-1.5",features:{wrapper:{base:"mt-6 leading-7",list:"space-y-4",grid:"grid grid-cols-1 gap-x-6 gap-y-10 sm:grid-cols-2 lg:grid-cols-3 lg:gap-x-8 lg:gap-y-16"},base:"relative pl-8",name:"font-semibold text-gray-900 dark:text-white",description:"text-gray-500 dark:text-gray-400 leading-6",icon:{base:"absolute left-0 top-1 h-5 w-5 text-primary",name:"i-heroicons-check-circle"}}},n=e,{ui:r,attrs:a}=ta("landing.section",vt(n,"ui"),t,vt(n,"class"),!0);return(i,o)=>{const s=e1,c=Jc,l=Zc;return Z(),ae("div",ot({class:q(r).wrapper},q(a)),[de(i.$slots,"top"),Je(l,{class:ie([q(r).container,i.align==="center"?"flex flex-col":"grid lg:grid-cols-2 lg:items-center"])},{default:Rt(()=>{var p,u,f,d,m;return[i.icon||i.headline||i.$slots.headline||i.title||i.$slots.title||i.description||i.$slots.description||(p=i.links)!=null&&p.length||i.$slots.links?(Z(),ae("div",{key:0,class:ie([q(r).base,i.align==="center"&&"text-center flex flex-col items-center",i.align==="right"&&"lg:order-last"])},[i.icon?(Z(),ae("div",{key:0,class:ie(q(r).icon.wrapper)},[Je(s,{name:i.icon,class:ie(q(r).icon.base)},null,8,["name","class"])],2)):i.headline||i.$slots.headline?(Z(),ae("div",{key:1,class:ie(q(r).headline)},[de(i.$slots,"headline",{},()=>[Wt(Ze(i.headline),1)])],2)):he("",!0),i.title||i.$slots.title?(Z(),ae("h2",{key:2,class:ie(q(r).title)},[de(i.$slots,"title",{},()=>[Wt(Ze(i.title),1)])],2)):he("",!0),i.description||i.$slots.description?(Z(),ae("p",{key:3,class:ie(q(r).description)},[de(i.$slots,"description",{},()=>[Wt(Ze(i.description),1)])],2)):he("",!0),i.align!=="center"&&((u=i.features)!=null&&u.length)?(Z(),ae("dl",{key:4,class:ie([q(r).features.wrapper.base,q(r).features.wrapper.list])},[(Z(!0),ae(mn,null,gn(i.features,g=>(Z(),ae("div",{key:g.name,class:ie(q(r).features.base)},[Tn("dt",{class:ie(q(r).features.name)},[Je(s,{name:g.icon||q(r).features.icon.name,class:ie(q(r).features.icon.base),"aria-hidden":"true"},null,8,["name","class"]),g.name?(Z(),ae("span",$$,Ze(g.name),1)):he("",!0)],2),g.description?(Z(),ae("dd",{key:0,class:ie(q(r).features.description)},Ze(g.description),3)):he("",!0)],2))),128))],2)):he("",!0),i.align!=="center"&&((f=i.links)!=null&&f.length||i.$slots.links)?(Z(),ae("div",{key:5,class:ie(q(r).links)},[de(i.$slots,"links",{},()=>[(Z(!0),ae(mn,null,gn(i.links,(g,x)=>(Z(),Qt(c,ot({key:x},g,{onClick:g.click}),null,16,["onClick"]))),128))])],2)):he("",!0)],2)):he("",!0),i.$slots[i.slot||"default"]?de(i.$slots,i.slot||"default",{key:1}):i.align==="right"?(Z(),ae("div",K$)):he("",!0),i.align==="center"&&((d=i.features)!=null&&d.length)?(Z(),ae("dl",{key:3,class:ie([q(r).features.wrapper.base,q(r).features.wrapper.grid])},[(Z(!0),ae(mn,null,gn(i.features,g=>(Z(),ae("div",{key:g.name,class:ie(q(r).features.base)},[Tn("dt",{class:ie(q(r).features.name)},[Je(s,{name:g.icon||q(r).features.icon.name,class:ie(q(r).features.icon.base),"aria-hidden":"true"},null,8,["name","class"]),g.name?(Z(),ae("span",Y$,Ze(g.name),1)):he("",!0)],2),g.description?(Z(),ae("dd",{key:0,class:ie(q(r).features.description)},Ze(g.description),3)):he("",!0)],2))),128))],2)):he("",!0),i.align==="center"&&((m=i.links)!=null&&m.length||i.$slots.links)?(Z(),ae("div",{key:4,class:ie([q(r).links,"!mt-0 justify-center"])},[de(i.$slots,"links",{},()=>[(Z(!0),ae(mn,null,gn(i.links,(g,x)=>(Z(),Qt(c,ot({key:x},g,{onClick:g.click}),null,16,["onClick"]))),128))])],2)):he("",!0)]}),_:3},8,["class"]),de(i.$slots,"bottom")],16)}}}),fK=An({__name:"index",async setup(e){let t,n;const{data:r}=([t,n]=Qc(()=>Xc("index",()=>Ef("/").findOne())),t=await t,n(),t);return bf({title:r.value.title,ogTitle:r.value.title,description:r.value.description,ogDescription:r.value.description,ogImage:"https://supabase.nuxtjs.org/social-card.jpg",twitterImage:"https://supabase.nuxtjs.org/social-card.jpg"}),(a,i)=>{const o=v$,s=M$,c=G$,l=q$,p=W$;return Z(),ae("div",null,[q(r).hero?(Z(),Qt(s,Tf(ot({key:0},q(r).hero)),{title:Rt(()=>[Je(o,{value:q(r).hero.title},null,8,["value"])]),default:Rt(()=>[Je(o,{value:q(r).hero.code,tag:"pre",class:"prose prose-primary dark:prose-invert max-w-none"},null,8,["value"])]),_:1},16)):he("",!0),Je(p,{title:q(r).features.title},{default:Rt(()=>[Je(l,null,{default:Rt(()=>[(Z(!0),ae(mn,null,gn(q(r).features.items,(u,f)=>(Z(),Qt(c,ot({key:f},u),null,16))),128))]),_:1})]),_:1},8,["title"])])}}});export{fK as default}; +`)){if(n.chars.length===1)continue;n.chars=n.chars.substr(1)}if(this._processInputToken(n),t&&this.pendingScript)break}}runParsingLoopForCurrentChunk(t,n){if(this._runParsingLoop(n),n&&this.pendingScript){const r=this.pendingScript;this.pendingScript=null,n(r);return}t&&t()}_setupTokenizerCDATAMode(){const t=this._getAdjustedCurrentElement();this.tokenizer.allowCDATA=t&&t!==this.document&&this.treeAdapter.getNamespaceURI(t)!==U.HTML&&!this._isIntegrationPoint(t)}_switchToTextParsing(t,n){this._insertElement(t,U.HTML),this.tokenizer.state=n,this.originalInsertionMode=this.insertionMode,this.insertionMode=Vr}switchToPlaintextParsing(){this.insertionMode=Vr,this.originalInsertionMode=ct,this.tokenizer.state=k.MODE.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let t=this.fragmentContext;do{if(this.treeAdapter.getTagName(t)===_.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}while(t)}_initTokenizerForFragmentParsing(){if(this.treeAdapter.getNamespaceURI(this.fragmentContext)===U.HTML){const t=this.treeAdapter.getTagName(this.fragmentContext);t===_.TITLE||t===_.TEXTAREA?this.tokenizer.state=k.MODE.RCDATA:t===_.STYLE||t===_.XMP||t===_.IFRAME||t===_.NOEMBED||t===_.NOFRAMES||t===_.NOSCRIPT?this.tokenizer.state=k.MODE.RAWTEXT:t===_.SCRIPT?this.tokenizer.state=k.MODE.SCRIPT_DATA:t===_.PLAINTEXT&&(this.tokenizer.state=k.MODE.PLAINTEXT)}}_setDocumentType(t){const n=t.name||"",r=t.publicId||"",a=t.systemId||"";this.treeAdapter.setDocumentType(this.document,n,r,a)}_attachElementToTree(t){if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{const n=this.openElements.currentTmplContent||this.openElements.current;this.treeAdapter.appendChild(n,t)}}_appendElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r)}_insertElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r),this.openElements.push(r)}_insertFakeElement(t){const n=this.treeAdapter.createElement(t,U.HTML,[]);this._attachElementToTree(n),this.openElements.push(n)}_insertTemplate(t){const n=this.treeAdapter.createElement(t.tagName,U.HTML,t.attrs),r=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(n,r),this._attachElementToTree(n),this.openElements.push(n)}_insertFakeRootElement(){const t=this.treeAdapter.createElement(_.HTML,U.HTML,[]);this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t)}_appendCommentNode(t,n){const r=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(n,r)}_insertCharacters(t){if(this._shouldFosterParentOnInsertion())this._fosterParentText(t.chars);else{const n=this.openElements.currentTmplContent||this.openElements.current;this.treeAdapter.insertText(n,t.chars)}}_adoptNodes(t,n){for(let r=this.treeAdapter.getFirstChild(t);r;r=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(r),this.treeAdapter.appendChild(n,r)}_shouldProcessTokenInForeignContent(t){const n=this._getAdjustedCurrentElement();if(!n||n===this.document)return!1;const r=this.treeAdapter.getNamespaceURI(n);if(r===U.HTML||this.treeAdapter.getTagName(n)===_.ANNOTATION_XML&&r===U.MATHML&&t.type===k.START_TAG_TOKEN&&t.tagName===_.SVG)return!1;const a=t.type===k.CHARACTER_TOKEN||t.type===k.NULL_CHARACTER_TOKEN||t.type===k.WHITESPACE_CHARACTER_TOKEN;return(t.type===k.START_TAG_TOKEN&&t.tagName!==_.MGLYPH&&t.tagName!==_.MALIGNMARK||a)&&this._isIntegrationPoint(n,U.MATHML)||(t.type===k.START_TAG_TOKEN||a)&&this._isIntegrationPoint(n,U.HTML)?!1:t.type!==k.EOF_TOKEN}_processToken(t){Mc[this.insertionMode][t.type](this,t)}_processTokenInBodyMode(t){Mc[ct][t.type](this,t)}_processTokenInForeignContent(t){t.type===k.CHARACTER_TOKEN?Rq(this,t):t.type===k.NULL_CHARACTER_TOKEN?Oq(this,t):t.type===k.WHITESPACE_CHARACTER_TOKEN?Le(this,t):t.type===k.COMMENT_TOKEN?we(this,t):t.type===k.START_TAG_TOKEN?Lq(this,t):t.type===k.END_TAG_TOKEN&&vq(this,t)}_processInputToken(t){this._shouldProcessTokenInForeignContent(t)?this._processTokenInForeignContent(t):this._processToken(t),t.type===k.START_TAG_TOKEN&&t.selfClosing&&!t.ackSelfClosing&&this._err(ze.nonVoidHtmlElementStartTagWithTrailingSolidus)}_isIntegrationPoint(t,n){const r=this.treeAdapter.getTagName(t),a=this.treeAdapter.getNamespaceURI(t),i=this.treeAdapter.getAttrList(t);return it.isIntegrationPoint(r,a,i,n)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.length;if(t){let n=t,r=null;do if(n--,r=this.activeFormattingElements.entries[n],r.type===Rc.MARKER_ENTRY||this.openElements.contains(r.element)){n++;break}while(n>0);for(let a=n;a=0;t--){let r=this.openElements.items[t];t===0&&(n=!0,this.fragmentContext&&(r=this.fragmentContext));const a=this.treeAdapter.getTagName(r),i=rG[a];if(i){this.insertionMode=i;break}else if(!n&&(a===_.TD||a===_.TH)){this.insertionMode=ga;break}else if(!n&&a===_.HEAD){this.insertionMode=xn;break}else if(a===_.SELECT){this._resetInsertionModeForSelect(t);break}else if(a===_.TEMPLATE){this.insertionMode=this.currentTmplInsertionMode;break}else if(a===_.HTML){this.insertionMode=this.headElement?da:_a;break}else if(n){this.insertionMode=ct;break}}}_resetInsertionModeForSelect(t){if(t>0)for(let n=t-1;n>0;n--){const r=this.openElements.items[n],a=this.treeAdapter.getTagName(r);if(a===_.TEMPLATE)break;if(a===_.TABLE){this.insertionMode=Xi;return}}this.insertionMode=Qi}_pushTmplInsertionMode(t){this.tmplInsertionModeStack.push(t),this.tmplInsertionModeStackTop++,this.currentTmplInsertionMode=t}_popTmplInsertionMode(){this.tmplInsertionModeStack.pop(),this.tmplInsertionModeStackTop--,this.currentTmplInsertionMode=this.tmplInsertionModeStack[this.tmplInsertionModeStackTop]}_isElementCausesFosterParenting(t){const n=this.treeAdapter.getTagName(t);return n===_.TABLE||n===_.TBODY||n===_.TFOOT||n===_.THEAD||n===_.TR}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.current)}_findFosterParentingLocation(){const t={parent:null,beforeElement:null};for(let n=this.openElements.stackTop;n>=0;n--){const r=this.openElements.items[n],a=this.treeAdapter.getTagName(r),i=this.treeAdapter.getNamespaceURI(r);if(a===_.TEMPLATE&&i===U.HTML){t.parent=this.treeAdapter.getTemplateContent(r);break}else if(a===_.TABLE){t.parent=this.treeAdapter.getParentNode(r),t.parent?t.beforeElement=r:t.parent=this.openElements.items[n-1];break}}return t.parent||(t.parent=this.openElements.items[0]),t}_fosterParentElement(t){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertBefore(n.parent,t,n.beforeElement):this.treeAdapter.appendChild(n.parent,t)}_fosterParentText(t){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertTextBefore(n.parent,t,n.beforeElement):this.treeAdapter.insertText(n.parent,t)}_isSpecialElement(t){const n=this.treeAdapter.getTagName(t),r=this.treeAdapter.getNamespaceURI(t);return Zt.SPECIAL_ELEMENTS[r][n]}}var oG=iG;function sG(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagName)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):Xe(e,t),n}function cG(e,t){let n=null;for(let r=e.openElements.stackTop;r>=0;r--){const a=e.openElements.items[r];if(a===t.element)break;e._isSpecialElement(a)&&(n=a)}return n||(e.openElements.popUntilElementPopped(t.element),e.activeFormattingElements.removeEntry(t)),n}function lG(e,t,n){let r=t,a=e.openElements.getCommonAncestor(t);for(let i=0,o=a;o!==n;i++,o=a){a=e.openElements.getCommonAncestor(o);const s=e.activeFormattingElements.getElementEntry(o),c=s&&i>=nG;!s||c?(c&&e.activeFormattingElements.removeEntry(s),e.openElements.remove(o)):(o=uG(e,s),r===t&&(e.activeFormattingElements.bookmark=s),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(o,r),r=o)}return r}function uG(e,t){const n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function fG(e,t,n){if(e._isElementCausesFosterParenting(t))e._fosterParentElement(n);else{const r=e.treeAdapter.getTagName(t),a=e.treeAdapter.getNamespaceURI(t);r===_.TEMPLATE&&a===U.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function hG(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),a=n.token,i=e.treeAdapter.createElement(a.tagName,r,a.attrs);e._adoptNodes(t,i),e.treeAdapter.appendChild(t,i),e.activeFormattingElements.insertElementAfterBookmark(i,n.token),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,i)}function Ot(e,t){let n;for(let r=0;r0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagName!==_.TEMPLATE&&e._err(ze.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(_.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e._popTmplInsertionMode(),e._resetInsertionMode()):e._err(ze.endTagWithoutMatchingOpenElement)}function Yn(e,t){e.openElements.pop(),e.insertionMode=da,e._processToken(t)}function kG(e,t){const n=t.tagName;n===_.HTML?Pe(e,t):n===_.BASEFONT||n===_.BGSOUND||n===_.HEAD||n===_.LINK||n===_.META||n===_.NOFRAMES||n===_.STYLE?Te(e,t):n===_.NOSCRIPT?e._err(ze.nestedNoscriptInHead):Wn(e,t)}function wG(e,t){const n=t.tagName;n===_.NOSCRIPT?(e.openElements.pop(),e.insertionMode=xn):n===_.BR?Wn(e,t):e._err(ze.endTagWithoutMatchingOpenElement)}function Wn(e,t){const n=t.type===k.EOF_TOKEN?ze.openElementsLeftAfterEof:ze.disallowedContentInNoscriptInHead;e._err(n),e.openElements.pop(),e.insertionMode=xn,e._processToken(t)}function bG(e,t){const n=t.tagName;n===_.HTML?Pe(e,t):n===_.BODY?(e._insertElement(t,U.HTML),e.framesetOk=!1,e.insertionMode=ct):n===_.FRAMESET?(e._insertElement(t,U.HTML),e.insertionMode=ya):n===_.BASE||n===_.BASEFONT||n===_.BGSOUND||n===_.LINK||n===_.META||n===_.NOFRAMES||n===_.SCRIPT||n===_.STYLE||n===_.TEMPLATE||n===_.TITLE?(e._err(ze.abandonedHeadElementChild),e.openElements.push(e.headElement),Te(e,t),e.openElements.remove(e.headElement)):n===_.HEAD?e._err(ze.misplacedStartTagForHeadElement):Vn(e,t)}function TG(e,t){const n=t.tagName;n===_.BODY||n===_.HTML||n===_.BR?Vn(e,t):n===_.TEMPLATE?Jt(e,t):e._err(ze.endTagWithoutMatchingOpenElement)}function Vn(e,t){e._insertFakeElement(_.BODY),e.insertionMode=ct,e._processToken(t)}function qt(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function Dr(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function EG(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function AG(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function CG(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,U.HTML),e.insertionMode=ya)}function dt(e,t){e.openElements.hasInButtonScope(_.P)&&e._closePElement(),e._insertElement(t,U.HTML)}function xG(e,t){e.openElements.hasInButtonScope(_.P)&&e._closePElement();const n=e.openElements.currentTagName;(n===_.H1||n===_.H2||n===_.H3||n===_.H4||n===_.H5||n===_.H6)&&e.openElements.pop(),e._insertElement(t,U.HTML)}function Bc(e,t){e.openElements.hasInButtonScope(_.P)&&e._closePElement(),e._insertElement(t,U.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function zG(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(_.P)&&e._closePElement(),e._insertElement(t,U.HTML),n||(e.formElement=e.openElements.current))}function DG(e,t){e.framesetOk=!1;const n=t.tagName;for(let r=e.openElements.stackTop;r>=0;r--){const a=e.openElements.items[r],i=e.treeAdapter.getTagName(a);let o=null;if(n===_.LI&&i===_.LI?o=_.LI:(n===_.DD||n===_.DT)&&(i===_.DD||i===_.DT)&&(o=i),o){e.openElements.generateImpliedEndTagsWithExclusion(o),e.openElements.popUntilTagNamePopped(o);break}if(i!==_.ADDRESS&&i!==_.DIV&&i!==_.P&&e._isSpecialElement(a))break}e.openElements.hasInButtonScope(_.P)&&e._closePElement(),e._insertElement(t,U.HTML)}function SG(e,t){e.openElements.hasInButtonScope(_.P)&&e._closePElement(),e._insertElement(t,U.HTML),e.tokenizer.state=k.MODE.PLAINTEXT}function NG(e,t){e.openElements.hasInScope(_.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(_.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,U.HTML),e.framesetOk=!1}function IG(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(_.A);n&&(Ot(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,U.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function un(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,U.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function FG(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(_.NOBR)&&(Ot(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,U.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Hc(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,U.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function OG(e,t){e.treeAdapter.getDocumentMode(e.document)!==Zt.DOCUMENT_MODE.QUIRKS&&e.openElements.hasInButtonScope(_.P)&&e._closePElement(),e._insertElement(t,U.HTML),e.framesetOk=!1,e.insertionMode=De}function dn(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,U.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function RG(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,U.HTML);const n=k.getTokenAttr(t,Du.TYPE);(!n||n.toLowerCase()!==Su)&&(e.framesetOk=!1),t.ackSelfClosing=!0}function jc(e,t){e._appendElement(t,U.HTML),t.ackSelfClosing=!0}function LG(e,t){e.openElements.hasInButtonScope(_.P)&&e._closePElement(),e._appendElement(t,U.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function vG(e,t){t.tagName=_.IMG,dn(e,t)}function MG(e,t){e._insertElement(t,U.HTML),e.skipNextNewLine=!0,e.tokenizer.state=k.MODE.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=Vr}function PG(e,t){e.openElements.hasInButtonScope(_.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,k.MODE.RAWTEXT)}function BG(e,t){e.framesetOk=!1,e._switchToTextParsing(t,k.MODE.RAWTEXT)}function Uc(e,t){e._switchToTextParsing(t,k.MODE.RAWTEXT)}function HG(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,U.HTML),e.framesetOk=!1,e.insertionMode===De||e.insertionMode===ma||e.insertionMode===Ge||e.insertionMode===bt||e.insertionMode===ga?e.insertionMode=Xi:e.insertionMode=Qi}function Gc(e,t){e.openElements.currentTagName===_.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,U.HTML)}function qc(e,t){e.openElements.hasInScope(_.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,U.HTML)}function jG(e,t){e.openElements.hasInScope(_.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(_.RTC),e._insertElement(t,U.HTML)}function UG(e,t){e.openElements.hasInButtonScope(_.P)&&e._closePElement(),e._insertElement(t,U.HTML)}function GG(e,t){e._reconstructActiveFormattingElements(),it.adjustTokenMathMLAttrs(t),it.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,U.MATHML):e._insertElement(t,U.MATHML),t.ackSelfClosing=!0}function qG(e,t){e._reconstructActiveFormattingElements(),it.adjustTokenSVGAttrs(t),it.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,U.SVG):e._insertElement(t,U.SVG),t.ackSelfClosing=!0}function He(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,U.HTML)}function Pe(e,t){const n=t.tagName;switch(n.length){case 1:n===_.I||n===_.S||n===_.B||n===_.U?un(e,t):n===_.P?dt(e,t):n===_.A?IG(e,t):He(e,t);break;case 2:n===_.DL||n===_.OL||n===_.UL?dt(e,t):n===_.H1||n===_.H2||n===_.H3||n===_.H4||n===_.H5||n===_.H6?xG(e,t):n===_.LI||n===_.DD||n===_.DT?DG(e,t):n===_.EM||n===_.TT?un(e,t):n===_.BR?dn(e,t):n===_.HR?LG(e,t):n===_.RB?qc(e,t):n===_.RT||n===_.RP?jG(e,t):n!==_.TH&&n!==_.TD&&n!==_.TR&&He(e,t);break;case 3:n===_.DIV||n===_.DIR||n===_.NAV?dt(e,t):n===_.PRE?Bc(e,t):n===_.BIG?un(e,t):n===_.IMG||n===_.WBR?dn(e,t):n===_.XMP?PG(e,t):n===_.SVG?qG(e,t):n===_.RTC?qc(e,t):n!==_.COL&&He(e,t);break;case 4:n===_.HTML?EG(e,t):n===_.BASE||n===_.LINK||n===_.META?Te(e,t):n===_.BODY?AG(e,t):n===_.MAIN||n===_.MENU?dt(e,t):n===_.FORM?zG(e,t):n===_.CODE||n===_.FONT?un(e,t):n===_.NOBR?FG(e,t):n===_.AREA?dn(e,t):n===_.MATH?GG(e,t):n===_.MENU?UG(e,t):n!==_.HEAD&&He(e,t);break;case 5:n===_.STYLE||n===_.TITLE?Te(e,t):n===_.ASIDE?dt(e,t):n===_.SMALL?un(e,t):n===_.TABLE?OG(e,t):n===_.EMBED?dn(e,t):n===_.INPUT?RG(e,t):n===_.PARAM||n===_.TRACK?jc(e,t):n===_.IMAGE?vG(e,t):n!==_.FRAME&&n!==_.TBODY&&n!==_.TFOOT&&n!==_.THEAD&&He(e,t);break;case 6:n===_.SCRIPT?Te(e,t):n===_.CENTER||n===_.FIGURE||n===_.FOOTER||n===_.HEADER||n===_.HGROUP||n===_.DIALOG?dt(e,t):n===_.BUTTON?NG(e,t):n===_.STRIKE||n===_.STRONG?un(e,t):n===_.APPLET||n===_.OBJECT?Hc(e,t):n===_.KEYGEN?dn(e,t):n===_.SOURCE?jc(e,t):n===_.IFRAME?BG(e,t):n===_.SELECT?HG(e,t):n===_.OPTION?Gc(e,t):He(e,t);break;case 7:n===_.BGSOUND?Te(e,t):n===_.DETAILS||n===_.ADDRESS||n===_.ARTICLE||n===_.SECTION||n===_.SUMMARY?dt(e,t):n===_.LISTING?Bc(e,t):n===_.MARQUEE?Hc(e,t):n===_.NOEMBED?Uc(e,t):n!==_.CAPTION&&He(e,t);break;case 8:n===_.BASEFONT?Te(e,t):n===_.FRAMESET?CG(e,t):n===_.FIELDSET?dt(e,t):n===_.TEXTAREA?MG(e,t):n===_.TEMPLATE?Te(e,t):n===_.NOSCRIPT?e.options.scriptingEnabled?Uc(e,t):He(e,t):n===_.OPTGROUP?Gc(e,t):n!==_.COLGROUP&&He(e,t);break;case 9:n===_.PLAINTEXT?SG(e,t):He(e,t);break;case 10:n===_.BLOCKQUOTE||n===_.FIGCAPTION?dt(e,t):He(e,t);break;default:He(e,t)}}function $G(e){e.openElements.hasInScope(_.BODY)&&(e.insertionMode=Zi)}function KG(e,t){e.openElements.hasInScope(_.BODY)&&(e.insertionMode=Zi,e._processToken(t))}function Nt(e,t){const n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function YG(e){const t=e.openElements.tmplCount>0,n=e.formElement;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(_.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(_.FORM):e.openElements.remove(n))}function WG(e){e.openElements.hasInButtonScope(_.P)||e._insertFakeElement(_.P),e._closePElement()}function VG(e){e.openElements.hasInListItemScope(_.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(_.LI),e.openElements.popUntilTagNamePopped(_.LI))}function QG(e,t){const n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function XG(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function $c(e,t){const n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function ZG(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(_.BR),e.openElements.pop(),e.framesetOk=!1}function Xe(e,t){const n=t.tagName;for(let r=e.openElements.stackTop;r>0;r--){const a=e.openElements.items[r];if(e.treeAdapter.getTagName(a)===n){e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilElementPopped(a);break}if(e._isSpecialElement(a))break}}function Ji(e,t){const n=t.tagName;switch(n.length){case 1:n===_.A||n===_.B||n===_.I||n===_.S||n===_.U?Ot(e,t):n===_.P?WG(e):Xe(e,t);break;case 2:n===_.DL||n===_.UL||n===_.OL?Nt(e,t):n===_.LI?VG(e):n===_.DD||n===_.DT?QG(e,t):n===_.H1||n===_.H2||n===_.H3||n===_.H4||n===_.H5||n===_.H6?XG(e):n===_.BR?ZG(e):n===_.EM||n===_.TT?Ot(e,t):Xe(e,t);break;case 3:n===_.BIG?Ot(e,t):n===_.DIR||n===_.DIV||n===_.NAV||n===_.PRE?Nt(e,t):Xe(e,t);break;case 4:n===_.BODY?$G(e):n===_.HTML?KG(e,t):n===_.FORM?YG(e):n===_.CODE||n===_.FONT||n===_.NOBR?Ot(e,t):n===_.MAIN||n===_.MENU?Nt(e,t):Xe(e,t);break;case 5:n===_.ASIDE?Nt(e,t):n===_.SMALL?Ot(e,t):Xe(e,t);break;case 6:n===_.CENTER||n===_.FIGURE||n===_.FOOTER||n===_.HEADER||n===_.HGROUP||n===_.DIALOG?Nt(e,t):n===_.APPLET||n===_.OBJECT?$c(e,t):n===_.STRIKE||n===_.STRONG?Ot(e,t):Xe(e,t);break;case 7:n===_.ADDRESS||n===_.ARTICLE||n===_.DETAILS||n===_.SECTION||n===_.SUMMARY||n===_.LISTING?Nt(e,t):n===_.MARQUEE?$c(e,t):Xe(e,t);break;case 8:n===_.FIELDSET?Nt(e,t):n===_.TEMPLATE?Jt(e,t):Xe(e,t);break;case 10:n===_.BLOCKQUOTE||n===_.FIGCAPTION?Nt(e,t):Xe(e,t);break;default:Xe(e,t)}}function mt(e,t){e.tmplInsertionModeStackTop>-1?Pu(e,t):e.stopped=!0}function JG(e,t){t.tagName===_.SCRIPT&&(e.pendingScript=e.openElements.current),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function eq(e,t){e._err(ze.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e._processToken(t)}function gt(e,t){const n=e.openElements.currentTagName;n===_.TABLE||n===_.TBODY||n===_.TFOOT||n===_.THEAD||n===_.TR?(e.pendingCharacterTokens=[],e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=Fu,e._processToken(t)):je(e,t)}function tq(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,U.HTML),e.insertionMode=ma}function nq(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,U.HTML),e.insertionMode=lr}function rq(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(_.COLGROUP),e.insertionMode=lr,e._processToken(t)}function aq(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,U.HTML),e.insertionMode=Ge}function iq(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(_.TBODY),e.insertionMode=Ge,e._processToken(t)}function oq(e,t){e.openElements.hasInTableScope(_.TABLE)&&(e.openElements.popUntilTagNamePopped(_.TABLE),e._resetInsertionMode(),e._processToken(t))}function sq(e,t){const n=k.getTokenAttr(t,Du.TYPE);n&&n.toLowerCase()===Su?e._appendElement(t,U.HTML):je(e,t),t.ackSelfClosing=!0}function cq(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,U.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function eo(e,t){const n=t.tagName;switch(n.length){case 2:n===_.TD||n===_.TH||n===_.TR?iq(e,t):je(e,t);break;case 3:n===_.COL?rq(e,t):je(e,t);break;case 4:n===_.FORM?cq(e,t):je(e,t);break;case 5:n===_.TABLE?oq(e,t):n===_.STYLE?Te(e,t):n===_.TBODY||n===_.TFOOT||n===_.THEAD?aq(e,t):n===_.INPUT?sq(e,t):je(e,t);break;case 6:n===_.SCRIPT?Te(e,t):je(e,t);break;case 7:n===_.CAPTION?tq(e,t):je(e,t);break;case 8:n===_.COLGROUP?nq(e,t):n===_.TEMPLATE?Te(e,t):je(e,t);break;default:je(e,t)}}function to(e,t){const n=t.tagName;n===_.TABLE?e.openElements.hasInTableScope(_.TABLE)&&(e.openElements.popUntilTagNamePopped(_.TABLE),e._resetInsertionMode()):n===_.TEMPLATE?Jt(e,t):n!==_.BODY&&n!==_.CAPTION&&n!==_.COL&&n!==_.COLGROUP&&n!==_.HTML&&n!==_.TBODY&&n!==_.TD&&n!==_.TFOOT&&n!==_.TH&&n!==_.THEAD&&n!==_.TR&&je(e,t)}function je(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,e._processTokenInBodyMode(t),e.fosterParentingEnabled=n}function lq(e,t){e.pendingCharacterTokens.push(t)}function uq(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function Hn(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n0?(e.openElements.popUntilTagNamePopped(_.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e._popTmplInsertionMode(),e._resetInsertionMode(),e._processToken(t)):e.stopped=!0}function Cq(e,t){t.tagName===_.HTML?Pe(e,t):Zr(e,t)}function xq(e,t){t.tagName===_.HTML?e.fragmentContext||(e.insertionMode=Ru):Zr(e,t)}function Zr(e,t){e.insertionMode=ct,e._processToken(t)}function zq(e,t){const n=t.tagName;n===_.HTML?Pe(e,t):n===_.FRAMESET?e._insertElement(t,U.HTML):n===_.FRAME?(e._appendElement(t,U.HTML),t.ackSelfClosing=!0):n===_.NOFRAMES&&Te(e,t)}function Dq(e,t){t.tagName===_.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagName!==_.FRAMESET&&(e.insertionMode=Ou))}function Sq(e,t){const n=t.tagName;n===_.HTML?Pe(e,t):n===_.NOFRAMES&&Te(e,t)}function Nq(e,t){t.tagName===_.HTML&&(e.insertionMode=Lu)}function Iq(e,t){t.tagName===_.HTML?Pe(e,t):Lr(e,t)}function Lr(e,t){e.insertionMode=ct,e._processToken(t)}function Fq(e,t){const n=t.tagName;n===_.HTML?Pe(e,t):n===_.NOFRAMES&&Te(e,t)}function Oq(e,t){t.chars=JU.REPLACEMENT_CHARACTER,e._insertCharacters(t)}function Rq(e,t){e._insertCharacters(t),e.framesetOk=!1}function Lq(e,t){if(it.causesExit(t)&&!e.fragmentContext){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==U.HTML&&!e._isIntegrationPoint(e.openElements.current);)e.openElements.pop();e._processToken(t)}else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===U.MATHML?it.adjustTokenMathMLAttrs(t):r===U.SVG&&(it.adjustTokenSVGTagName(t),it.adjustTokenSVGAttrs(t)),it.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function vq(e,t){for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===U.HTML){e._processToken(t);break}if(e.treeAdapter.getTagName(r).toLowerCase()===t.tagName){e.openElements.popUntilElementPopped(r);break}}}const Mq=ir(oG),Kc=/[#.]/g;function Pq(e,t){const n=e||"",r={};let a=0,i,o;for(;a-1&&oo)return{line:s+1,column:o-(s>0?n[s-1]:0)+1,offset:o}}return{line:void 0,column:void 0,offset:void 0}}function i(o){const s=o&&o.line,c=o&&o.column;if(typeof s=="number"&&typeof c=="number"&&!Number.isNaN(s)&&!Number.isNaN(c)&&s-1 in n){const l=(n[s-2]||0)+c-1||0;if(l>-1&&l{const z=T;if(z.value.stitch&&G!==null&&H!==null)return G.children[H]=z.value.stitch,H}),e.type!=="root"&&u.type==="root"&&u.children.length===1)return u.children[0];return u;function f(){const T={nodeName:"template",tagName:"template",attrs:[],namespaceURI:rr.html,childNodes:[]},H={nodeName:"documentmock",tagName:"documentmock",attrs:[],namespaceURI:rr.html,childNodes:[]},G={nodeName:"#document-fragment",childNodes:[]};if(a._bootstrap(H,T),a._pushTmplInsertionMode(u$),a._initTokenizerForFragmentParsing(),a._insertFakeRootElement(),a._resetInsertionMode(),a._findFormInFragmentContext(),s=a.tokenizer,!s)throw new Error("Expected `tokenizer`");return c=s.preprocessor,p=s.__mixins[0],l=p.posTracker,i(e),h(),a._adoptNodes(H.childNodes[0],G),G}function d(){const T=a.treeAdapter.createDocument();if(a._bootstrap(T,void 0),s=a.tokenizer,!s)throw new Error("Expected `tokenizer`");return c=s.preprocessor,p=s.__mixins[0],l=p.posTracker,i(e),h(),T}function m(T){let H=-1;if(T)for(;++HGu(t,n,e)}const C$={remark:{plugins:{"remark-mdc":{instance:ty},"remark-emoji":{instance:HB},"remark-gfm":{instance:Cj}}},rehype:{options:{handlers:zy,allowDangerousHtml:!0},plugins:{"rehype-external-links":{instance:jj},"rehype-sort-attribute-values":{instance:Uj},"rehype-sort-attributes":{instance:Gj},"rehype-raw":{instance:A$,options:{passThrough:["element"]}}}},highlight:!1,toc:{searchDepth:2,depth:2}},x$={theme:{default:"github-light",dark:"github-dark"},async highlighter(e,t,n,r){var a,i;if(window.sessionStorage.getItem("mdc-shiki-highlighter")==="browser")return Ti(()=>import("./highlighter.21095fce.js"),["./highlighter.21095fce.js","./entry.ae6f67a5.js","./entry.2e8fb0a2.css"],import.meta.url).then(({useShikiHighlighter:o})=>o().getHighlightedAST(e,t,n,{highlights:r}));try{return await $fetch("/api/_mdc/highlight",{params:{code:e,lang:t,theme:JSON.stringify(n),highlights:JSON.stringify(r)}})}catch(o){if(((a=o==null?void 0:o.response)==null?void 0:a.status)===404)return window.sessionStorage.setItem("mdc-shiki-highlighter","browser"),(i=this.highlighter)==null?void 0:i.call(this,e,t,n,r)}return Promise.resolve({tree:[{type:"text",value:e}],className:"",style:""})}};function z$(e={}){const t={...x$,...e};return async n=>{const r=[],a=[];Mt(n,i=>{var o;return["pre","code"].includes(i.tagName)&&!!((o=i.properties)!=null&&o.language)},i=>{const o=i,s=t.highlighter(Bl(i),o.properties.language,t.theme,o.properties.highlights??[]).then(({tree:c,className:l,style:p,inlineStyle:u})=>{var f;o.properties.className=((o.properties.className||"")+" "+l).trim(),o.properties.style=((o.properties.style||"")+" "+u).trim(),((f=o.children[0])==null?void 0:f.tagName)==="code"?o.children[0].children=c:o.children=c[0].children||c[0],p&&a.push(p)});r.push(s)}),r.length&&(await Promise.all(r),n.children.push({type:"element",tagName:"style",children:[{type:"text",value:D$(a.join(""))}],properties:{}}))}}const D$=e=>{const t=e.split("}").filter(n=>!!n.trim()).map(n=>n.trim()+"}");return Array.from(new Set(t)).join("")};function qu(e){return e.type==="text"?e.value||"":(e.children||[]).reduce((t,n)=>t.concat(qu(n)),"")}function $u(e,t=2,n=0){return!Array.isArray(e.children)||n===t?[e]:[e,...e.children.reduce((r,a)=>r.concat($u(a,t,n+1)),[])]}const Ku=["h2","h3","h4","h5","h6"],S$=Ku.reduce((e,t)=>(e[t]=Number(t.charAt(t.length-1)),e),{}),N$=e=>S$[e.tag],I$=e=>((e<1||e>5)&&(console.log(`\`toc.depth\` is set to ${e}. It should be a number between 1 and 5. `),e=1),Ku.slice(0,e));function Yu(e){if(e.length<=1)return e;const t=[];let n;return e.forEach(r=>{!n||r.depth<=n.depth?(r.children=[],n=r,t.push(r)):n.children.push(r)}),t.forEach(r=>{var a;(a=r.children)!=null&&a.length?r.children=Yu(r.children):delete r.children}),t}function F$(e,t){const{searchDepth:n,depth:r,title:a=""}=t,i=I$(r),s=$u(e,n).filter(c=>i.includes(c.tag||"")).map(c=>{var l;return{id:(l=c.props)==null?void 0:l.id,depth:N$(c),text:qu(c)}});return{title:a,searchDepth:n,depth:r,links:s}}function O$(e,t){const n=F$(e,t);return n.links=Yu(n.links),n}let Ve;const R$=async(e,t={})=>{var p,u,f;Ve||(Ve=await Ti(()=>import("./mdc-imports.c835d45e.js"),[],import.meta.url).catch(()=>({})));const n=fo(t,{remark:{plugins:Ve==null?void 0:Ve.remarkPlugins},rehype:{plugins:Ve==null?void 0:Ve.rehypePlugins},highlight:Ve==null?void 0:Ve.highlight},C$),{content:r,data:a}=await Ol(e),i=Gf();i.use(Wp),await ws(i,(p=n.remark)==null?void 0:p.plugins),i.use(P_,(u=n.rehype)==null?void 0:u.options),n.highlight&&i.use(z$,n.highlight),await ws(i,(f=n.rehype)==null?void 0:f.plugins),i.use(hy);const o=await i.process({value:r,data:a}),s=o.result,c=Object.assign(L$(s.body),a,(o==null?void 0:o.data)||{});let l;if(c.toc!==!1){const d=fo(c.toc||{},n.toc);l=O$(s.body,d)}return{data:c,body:s.body,excerpt:s.excerpt,toc:l}};function L$(e){let t="",n="";const r=e.children.filter(a=>a.type!=="text"&&a.tag!=="hr");if(r.length&&r[0].tag==="h1"){const a=r.shift();t=po(a)}if(r.length&&r[0].tag==="p"){const a=r.shift();n=po(a)}return{title:t,description:n}}const v$=An({__name:"MDC",props:{tag:{type:[String,Boolean],default:"div"},value:{type:[String,Object],required:!0},excerpt:{type:Boolean,default:!1},parserOptions:{type:Object,default:()=>({})},class:{type:[String,Array,Object],default:""}},async setup(e){let t,n;const r=e,a=Kt(()=>of(r.value)),{data:i,refresh:o}=([t,n]=Qc(async()=>Xc(a.value,async()=>typeof r.value!="string"?r.value:await R$(r.value,r.parserOptions),"$SPNDsi0kgd")),t=await t,n(),t),s=Kt(()=>{var c,l;return r.excerpt?(c=i.value)==null?void 0:c.excerpt:(l=i.value)==null?void 0:l.body});return sf(()=>r.value,()=>{o()}),(c,l)=>{var u,f,d,m;const p=af;return de(c.$slots,"default",{data:(u=q(i))==null?void 0:u.data,body:(f=q(i))==null?void 0:f.body,toc:(d=q(i))==null?void 0:d.toc,excerpt:(m=q(i))==null?void 0:m.excerpt},()=>{var g;return[s.value?(Z(),Qt(p,{key:0,tag:e.tag,class:ie(r.class),body:s.value,data:(g=q(i))==null?void 0:g.data},null,8,["tag","class","body","data"])):he("",!0)]})}}}),M$=An({inheritAttrs:!1,__name:"LandingHero",props:{title:{default:""},description:{default:""},links:{default:()=>[]},orientation:{default:"vertical"},ui:{default:()=>({})},class:{default:void 0}},setup(e){const t={wrapper:"py-24 sm:py-32 md:py-40 relative",container:"gap-16 sm:gap-y-24",base:"",headline:"mb-10",title:"text-5xl font-bold tracking-tight text-gray-900 dark:text-white sm:text-7xl",description:"mt-6 text-lg tracking-tight text-gray-600 dark:text-gray-300",links:"mt-10 flex flex-wrap gap-x-6 gap-y-3"},n=e,{ui:r,attrs:a}=ta("landing.hero",vt(n,"ui"),t,vt(n,"class"),!0);return(i,o)=>{const s=Jc,c=Zc;return Z(),ae("div",ot({class:q(r).wrapper},q(a)),[de(i.$slots,"top"),Je(c,{class:ie([q(r).container,i.orientation==="vertical"?"flex flex-col":"grid lg:grid-cols-2 lg:items-center"])},{default:Rt(()=>{var l;return[Tn("div",{class:ie([q(r).base,i.orientation==="vertical"&&"text-center"])},[i.$slots.headline?(Z(),ae("div",{key:0,class:ie(q(r).headline)},[de(i.$slots,"headline")],2)):he("",!0),Tn("h1",{class:ie(q(r).title)},[de(i.$slots,"title",{},()=>[Wt(Ze(i.title),1)])],2),i.description||i.$slots.description?(Z(),ae("p",{key:1,class:ie(q(r).description)},[de(i.$slots,"description",{},()=>[Wt(Ze(i.description),1)])],2)):he("",!0),(l=i.links)!=null&&l.length||i.$slots.links?(Z(),ae("div",{key:2,class:ie([q(r).links,i.orientation==="vertical"&&"justify-center"])},[de(i.$slots,"links",{},()=>[(Z(!0),ae(mn,null,gn(i.links,(p,u)=>(Z(),Qt(s,ot({key:u},p,{onClick:p.click}),null,16,["onClick"]))),128))])],2)):he("",!0)],2),de(i.$slots,"default")]}),_:3},8,["class"]),de(i.$slots,"bottom")],16)}}}),P$=cf(lf);function B$(e,t={}){const{x:n,y:r}=P$(t),a=Sr(e??(window==null?void 0:window.document.body)),i=Sr(0),o=Sr(0);return uf&&ff([a,n,r],()=>{const s=hf(a);if(!s)return;const{left:c,top:l}=s.getBoundingClientRect(),p=n.value-(c+window.scrollX),u=r.value-(l+window.scrollY);Math.abs(p)>1500||Math.abs(u)>1500||window.screen.width<=800||(i.value=p,o.value=u)},{immediate:!0,throttle:50}),{x:n,y:r,elementX:i,elementY:o}}const H$=e=>(yf("data-v-90aae6aa"),e=e(),kf(),e),j$=H$(()=>Tn("span",{class:"absolute inset-0","aria-hidden":"true"},null,-1)),U$=An({inheritAttrs:!1,__name:"LandingCard",props:{title:{default:""},description:{default:void 0},icon:{default:void 0},color:{default:"primary"},orientation:{default:"vertical"},ui:{default:()=>({})},class:{default:void 0},to:{},href:{},external:{type:Boolean},replace:{type:Boolean},custom:{type:Boolean},target:{},rel:{},noRel:{type:Boolean},prefetch:{type:Boolean},noPrefetch:{type:Boolean},activeClass:{},exactActiveClass:{},ariaCurrentValue:{}},setup(e){pf(m=>({"0ecadb9e":q(o),"6b1a02fb":q(s)}));const t=Sr(),n=_f(),{elementX:r,elementY:a}=B$(t),i=e,o=Kt(()=>{var m;return i.color==="primary"?"rgb(var(--color-primary-DEFAULT))":((m=ho[i.color])==null?void 0:m["500"])||i.color}),s=Kt(()=>{var m;return i.color==="primary"?"rgb(var(--color-primary-DEFAULT))":((m=ho[i.color])==null?void 0:m["400"])||i.color}),c=Kt(()=>({wrapper:"relative group isolate rounded-xl background-gradient ring-1 ring-gray-200 dark:ring-gray-800 before:hidden before:lg:block before:absolute before:-inset-[2px] before:h-[calc(100%+4px)] before:w-[calc(100%+4px)] before:z-[-1] before:rounded-[13px] flex-1 flex flex-col shadow",base:"flex-1 flex flex-col",container:"",body:{base:df("gap-x-8 gap-y-4 rounded-xl flex-1",i.orientation==="vertical"&&"flex flex-col",!!n.default&&i.orientation==="horizontal"&&"grid lg:grid-cols-2 lg:items-center")},background:"bg-white dark:bg-gray-900 hover:bg-opacity-90 dark:hover:bg-opacity-90 transition-[background-opacity]",ring:"",rounded:"rounded-xl",shadow:"",icon:{wrapper:"mb-2 pointer-events-none",base:"w-8 h-8 flex-shrink-0 text-gray-900 dark:text-white"},title:"text-gray-900 dark:text-white text-base font-bold truncate",description:"text-[15px] text-gray-500 dark:text-gray-400 mt-1"})),{ui:l,attrs:p}=ta("landing.card",vt(i,"ui"),c,vt(i,"class"),!0),u=new Set(["title","description","icon","ui","class"]),f=Kt(()=>{const m={};for(const g in i)u.has(g)||!i[g]||(m[g]=i[g]);return m}),d=Kt(()=>(i.title||n.title&&mf(n.title())||"Card link").trim());return(m,g)=>{const x=gf,E=e1,D=Af;return Z(),ae("div",ot({ref_key:"el",ref:t,style:{"--x":`${q(r)}px`,"--y":`${q(a)}px`},class:q(l).wrapper},q(p)),[Je(D,{ui:q(l)},{default:Rt(()=>[Tn("div",{class:ie(q(l).container)},[m.to?(Z(),Qt(x,ot({key:0,"aria-label":q(d)},q(f),{class:"focus:outline-none",tabindex:"-1"}),{default:Rt(()=>[j$]),_:1},16,["aria-label"])):he("",!0),m.icon||m.$slots.icon?(Z(),ae("div",{key:1,class:ie(q(l).icon.wrapper)},[de(m.$slots,"icon",{},()=>[Je(E,{name:m.icon,class:ie(q(l).icon.base)},null,8,["name","class"])],!0)],2)):he("",!0),m.title||m.$slots.title?(Z(),ae("p",{key:2,class:ie(q(l).title)},[de(m.$slots,"title",{},()=>[Wt(Ze(m.title),1)],!0)],2)):he("",!0),m.description||m.$slots.description?(Z(),ae("p",{key:3,class:ie(q(l).description)},[de(m.$slots,"description",{},()=>[Wt(Ze(m.description),1)],!0)],2)):he("",!0),de(m.$slots,"container",{},void 0,!0)],2),m.$slots.default?de(m.$slots,"default",{key:0},void 0,!0):he("",!0)]),_:3},8,["ui"])],16)}}});const G$=wf(U$,[["__scopeId","data-v-90aae6aa"]]),q$=An({inheritAttrs:!1,__name:"PageGrid",props:{ui:{},class:{}},setup(e){const t={wrapper:"grid grid-cols-1 sm:grid-cols-2 xl:grid-cols-3 gap-8"},n=e,{ui:r,attrs:a}=ta("page.grid",vt(n,"ui"),t,vt(n,"class"),!0);return(i,o)=>(Z(),ae("div",ot({class:q(r).wrapper},q(a)),[de(i.$slots,"default")],16))}}),$$={key:0},K$={key:2},Y$={key:0},W$=An({inheritAttrs:!1,__name:"LandingSection",props:{icon:{default:void 0},headline:{default:void 0},title:{default:""},description:{default:void 0},features:{default:()=>[]},links:{default:()=>[]},slot:{default:void 0},align:{default:"center"},ui:{default:()=>({})},class:{default:void 0}},setup(e){const t={wrapper:"py-24 sm:py-32",container:"gap-16 sm:gap-y-24",base:"",icon:{wrapper:"flex mb-6",base:"w-10 h-10 flex-shrink-0 text-primary"},headline:"mb-2 text-base/7 font-semibold text-primary",title:"text-3xl font-bold tracking-tight text-gray-900 dark:text-white sm:text-4xl lg:text-5xl",description:"mt-6 text-lg/8 text-gray-600 dark:text-gray-300",links:"mt-8 flex flex-wrap gap-x-3 gap-y-1.5",features:{wrapper:{base:"mt-6 leading-7",list:"space-y-4",grid:"grid grid-cols-1 gap-x-6 gap-y-10 sm:grid-cols-2 lg:grid-cols-3 lg:gap-x-8 lg:gap-y-16"},base:"relative pl-8",name:"font-semibold text-gray-900 dark:text-white",description:"text-gray-500 dark:text-gray-400 leading-6",icon:{base:"absolute left-0 top-1 h-5 w-5 text-primary",name:"i-heroicons-check-circle"}}},n=e,{ui:r,attrs:a}=ta("landing.section",vt(n,"ui"),t,vt(n,"class"),!0);return(i,o)=>{const s=e1,c=Jc,l=Zc;return Z(),ae("div",ot({class:q(r).wrapper},q(a)),[de(i.$slots,"top"),Je(l,{class:ie([q(r).container,i.align==="center"?"flex flex-col":"grid lg:grid-cols-2 lg:items-center"])},{default:Rt(()=>{var p,u,f,d,m;return[i.icon||i.headline||i.$slots.headline||i.title||i.$slots.title||i.description||i.$slots.description||(p=i.links)!=null&&p.length||i.$slots.links?(Z(),ae("div",{key:0,class:ie([q(r).base,i.align==="center"&&"text-center flex flex-col items-center",i.align==="right"&&"lg:order-last"])},[i.icon?(Z(),ae("div",{key:0,class:ie(q(r).icon.wrapper)},[Je(s,{name:i.icon,class:ie(q(r).icon.base)},null,8,["name","class"])],2)):i.headline||i.$slots.headline?(Z(),ae("div",{key:1,class:ie(q(r).headline)},[de(i.$slots,"headline",{},()=>[Wt(Ze(i.headline),1)])],2)):he("",!0),i.title||i.$slots.title?(Z(),ae("h2",{key:2,class:ie(q(r).title)},[de(i.$slots,"title",{},()=>[Wt(Ze(i.title),1)])],2)):he("",!0),i.description||i.$slots.description?(Z(),ae("p",{key:3,class:ie(q(r).description)},[de(i.$slots,"description",{},()=>[Wt(Ze(i.description),1)])],2)):he("",!0),i.align!=="center"&&((u=i.features)!=null&&u.length)?(Z(),ae("dl",{key:4,class:ie([q(r).features.wrapper.base,q(r).features.wrapper.list])},[(Z(!0),ae(mn,null,gn(i.features,g=>(Z(),ae("div",{key:g.name,class:ie(q(r).features.base)},[Tn("dt",{class:ie(q(r).features.name)},[Je(s,{name:g.icon||q(r).features.icon.name,class:ie(q(r).features.icon.base),"aria-hidden":"true"},null,8,["name","class"]),g.name?(Z(),ae("span",$$,Ze(g.name),1)):he("",!0)],2),g.description?(Z(),ae("dd",{key:0,class:ie(q(r).features.description)},Ze(g.description),3)):he("",!0)],2))),128))],2)):he("",!0),i.align!=="center"&&((f=i.links)!=null&&f.length||i.$slots.links)?(Z(),ae("div",{key:5,class:ie(q(r).links)},[de(i.$slots,"links",{},()=>[(Z(!0),ae(mn,null,gn(i.links,(g,x)=>(Z(),Qt(c,ot({key:x},g,{onClick:g.click}),null,16,["onClick"]))),128))])],2)):he("",!0)],2)):he("",!0),i.$slots[i.slot||"default"]?de(i.$slots,i.slot||"default",{key:1}):i.align==="right"?(Z(),ae("div",K$)):he("",!0),i.align==="center"&&((d=i.features)!=null&&d.length)?(Z(),ae("dl",{key:3,class:ie([q(r).features.wrapper.base,q(r).features.wrapper.grid])},[(Z(!0),ae(mn,null,gn(i.features,g=>(Z(),ae("div",{key:g.name,class:ie(q(r).features.base)},[Tn("dt",{class:ie(q(r).features.name)},[Je(s,{name:g.icon||q(r).features.icon.name,class:ie(q(r).features.icon.base),"aria-hidden":"true"},null,8,["name","class"]),g.name?(Z(),ae("span",Y$,Ze(g.name),1)):he("",!0)],2),g.description?(Z(),ae("dd",{key:0,class:ie(q(r).features.description)},Ze(g.description),3)):he("",!0)],2))),128))],2)):he("",!0),i.align==="center"&&((m=i.links)!=null&&m.length||i.$slots.links)?(Z(),ae("div",{key:4,class:ie([q(r).links,"!mt-0 justify-center"])},[de(i.$slots,"links",{},()=>[(Z(!0),ae(mn,null,gn(i.links,(g,x)=>(Z(),Qt(c,ot({key:x},g,{onClick:g.click}),null,16,["onClick"]))),128))])],2)):he("",!0)]}),_:3},8,["class"]),de(i.$slots,"bottom")],16)}}}),fK=An({__name:"index",async setup(e){let t,n;const{data:r}=([t,n]=Qc(()=>Xc("index",()=>Ef("/").findOne())),t=await t,n(),t);return bf({title:r.value.title,ogTitle:r.value.title,description:r.value.description,ogDescription:r.value.description,ogImage:"https://supabase.nuxtjs.org/social-card.jpg",twitterImage:"https://supabase.nuxtjs.org/social-card.jpg"}),(a,i)=>{const o=v$,s=M$,c=G$,l=q$,p=W$;return Z(),ae("div",null,[q(r).hero?(Z(),Qt(s,Tf(ot({key:0},q(r).hero)),{title:Rt(()=>[Je(o,{value:q(r).hero.title},null,8,["value"])]),default:Rt(()=>[Je(o,{value:q(r).hero.code,tag:"pre",class:"prose prose-primary dark:prose-invert max-w-none"},null,8,["value"])]),_:1},16)):he("",!0),Je(p,{title:q(r).features.title},{default:Rt(()=>[Je(l,null,{default:Rt(()=>[(Z(!0),ae(mn,null,gn(q(r).features.items,(u,f)=>(Z(),Qt(c,ot({key:f},u),null,16))),128))]),_:1})]),_:1},8,["title"])])}}});export{fK as default}; diff --git a/_nuxt/slot.68f639bf.js b/_nuxt/slot.98627438.js similarity index 67% rename from _nuxt/slot.68f639bf.js rename to _nuxt/slot.98627438.js index 5e2ec96b..22420c75 100644 --- a/_nuxt/slot.68f639bf.js +++ b/_nuxt/slot.98627438.js @@ -1 +1 @@ -import{f as n}from"./node.f7b4ab96.js";import{a9 as i}from"./entry.8c781d5d.js";const e=(t,r,f,...a)=>t[r]?i({...t,[r]:()=>n(t[r](),f==null?void 0:f.unwrap)},r,f,...a):i(t,r,f,...a);export{e as r}; +import{f as n}from"./node.f7b4ab96.js";import{a9 as i}from"./entry.ae6f67a5.js";const e=(t,r,f,...a)=>t[r]?i({...t,[r]:()=>n(t[r](),f==null?void 0:f.unwrap)},r,f,...a):i(t,r,f,...a);export{e as r}; diff --git a/_nuxt/useGithub.eb11860f.js b/_nuxt/useGithub.b9a4816c.js similarity index 88% rename from _nuxt/useGithub.eb11860f.js rename to _nuxt/useGithub.b9a4816c.js index e0b85d3b..e72fff53 100644 --- a/_nuxt/useGithub.eb11860f.js +++ b/_nuxt/useGithub.b9a4816c.js @@ -1 +1 @@ -import{bg as o}from"./entry.8c781d5d.js";const c=()=>{const e=t=>s=>{const r=o("/api/_github",t,`${n(s)||"index"}.json`);return $fetch(r,{responseType:"json"})};return{fetchRepository:e("repository"),fetchReleases:e("releases"),fetchRelease:e("releases"),fetchLastRelease:t=>e("releases")({...t,last:!0}),fetchContributors:e("contributors"),fetchFileContributors:e("contributors/file"),fetchReadme:e("readme"),fetchCommits:e("commits")}};function n(e){return Object.entries(e).map(([t,s])=>`${t}_${String(s)}`).join(":")}export{c as u}; +import{bg as o}from"./entry.ae6f67a5.js";const c=()=>{const e=t=>s=>{const r=o("/api/_github",t,`${n(s)||"index"}.json`);return $fetch(r,{responseType:"json"})};return{fetchRepository:e("repository"),fetchReleases:e("releases"),fetchRelease:e("releases"),fetchLastRelease:t=>e("releases")({...t,last:!0}),fetchContributors:e("contributors"),fetchFileContributors:e("contributors/file"),fetchReadme:e("readme"),fetchCommits:e("commits")}};function n(e){return Object.entries(e).map(([t,s])=>`${t}_${String(s)}`).join(":")}export{c as u}; diff --git a/_nuxt/useStudio.7c0e5dea.js b/_nuxt/useStudio.33bdffc2.js similarity index 98% rename from _nuxt/useStudio.7c0e5dea.js rename to _nuxt/useStudio.33bdffc2.js index 9ebd8811..6cb74ad7 100644 --- a/_nuxt/useStudio.7c0e5dea.js +++ b/_nuxt/useStudio.33bdffc2.js @@ -1 +1 @@ -import{d as Y,u as V,r as $,o as j,_ as ee,a as te,b as q,c as L,n as ne,F as oe,e as w,f as K,g as O,w as J,T as B,t as ie,h as D,p as se,i as ae,j as W,k as re,l as de,m as z,q as ce,s as E,v as U,x as Z,y as le,z as ue,A as F,B as pe}from"./entry.8c781d5d.js";const R=o=>(se("data-v-f7d2e11a"),o=o(),ae(),o),fe=R(()=>w("svg",{viewBox:"0 0 90 90",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[w("path",{d:"M50.0016 71.0999h29.2561c.9293.0001 1.8422-.241 2.6469-.6992.8047-.4582 1.4729-1.1173 1.9373-1.9109.4645-.7936.7088-1.6939.7083-2.6102-.0004-.9162-.2455-1.8163-.7106-2.6095L64.192 29.713c-.4644-.7934-1.1325-1.4523-1.937-1.9105-.8046-.4581-1.7173-.6993-2.6463-.6993-.9291 0-1.8418.2412-2.6463.6993-.8046.4582-1.4726 1.1171-1.937 1.9105l-5.0238 8.5861-9.8224-16.7898c-.4648-.7934-1.1332-1.4522-1.938-1.9102-.8047-.4581-1.7176-.6992-2.6468-.6992-.9292 0-1.842.2411-2.6468.6992-.8048.458-1.4731 1.1168-1.9379 1.9102L6.56062 63.2701c-.46512.7932-.71021 1.6933-.71061 2.6095-.00041.9163.24389 1.8166.70831 2.6102.46443.7936 1.1326 1.4527 1.93732 1.9109.80473.4582 1.71766.6993 2.64686.6992h18.3646c7.2763 0 12.6422-3.1516 16.3345-9.3002l8.9642-15.3081 4.8015-8.1925 14.4099 24.6083H54.8058l-4.8042 8.1925ZM29.2077 62.899l-12.8161-.0028L35.603 30.0869l9.5857 16.4047-6.418 10.9645c-2.4521 3.9894-5.2377 5.4429-9.563 5.4429Z",fill:"currentColor"})],-1)),ve=R(()=>w("span",null,"Preview mode enabled",-1)),we={key:0},ye=R(()=>w("div",{id:"__preview_background"},null,-1)),he=R(()=>w("svg",{id:"__preview_loading_icon",width:"32",height:"32",viewBox:"0 0 24 24"},[w("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 4v5h.582m15.356 2A8.001 8.001 0 0 0 4.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 0 1-15.357-2m15.357 2H15"})],-1)),_e=R(()=>w("p",null,"Initializing the preview...",-1)),me={key:0},ge=R(()=>w("div",{id:"__preview_background"},null,-1)),ke={id:"__preview_loader"},Ce=Y({__name:"ContentPreviewMode",props:{previewToken:{type:String,required:!0},apiURL:{type:String,required:!0},syncPreview:{type:Function,required:!0},requestPreviewSyncAPI:{type:Function,required:!0}},setup(o){const s=o,a=["__nuxt_preview","__preview_enabled"],u=W(),_=V(),d=$(!0),g=$(!1),i=$(!1),l=$("");let r;const h=async()=>{D("previewToken").value="",window.sessionStorage.removeItem("previewToken"),await _.replace({query:{preview:void 0}}),window.location.reload()},b=async T=>{const y=await s.syncPreview(T);if(i.value!==!0){if(!y){setTimeout(()=>b(T),1e3);return}D("previewToken").value&&(i.value=!0,await _.replace({query:{}}),u.callHook("nuxt-studio:preview:ready"),window.parent&&window.self!==window.parent&&r.disconnect())}};return j(async()=>{r=(await ee(()=>import("./index.4df4817c.js"),[],import.meta.url)).connect(`${s.apiURL}/preview`,{transports:["websocket","polling"],auth:{token:s.previewToken}});let y;r.on("connect",()=>{y=setTimeout(()=>{i.value||(y=setTimeout(()=>{l.value="Preview sync timed out",i.value=!1},3e4),r.emit("draft:requestSync"))},3e4)});const I=()=>{y&&(clearTimeout(y),y=null)};r.on("draft:sync",async P=>{if(I(),!P){try{r.once("draft:ready",()=>{r.emit("draft:requestSync")}),await s.requestPreviewSyncAPI()}catch(x){switch(I(),x.response.status){case 404:l.value="Preview draft not found",i.value=!1;break;default:l.value="An error occurred while syncing preview",i.value=!1}}return}b(P)}),r.on("draft:unauthorized",()=>{I(),l.value="Unauthorized preview token",i.value=!1}),r.on("disconnect",()=>{I()}),document.body.classList.add(...a),r.on("draft:update",P=>{g.value=!0,s.syncPreview(P),g.value=!1})}),te(()=>{document.body.classList.remove(...a)}),(T,y)=>(q(),L("div",null,[d.value?(q(),L("div",{key:0,id:"__nuxt_preview",class:ne({__preview_ready:i.value,__preview_refreshing:g.value})},[i.value?(q(),L(oe,{key:0},[fe,ve,w("button",{onClick:h}," Close ")],64)):K("",!0)],2)):K("",!0),O(B,{name:"preview-loading"},{default:J(()=>[d.value&&!i.value&&!l.value?(q(),L("div",we,[ye,w("div",{id:"__preview_loader"},[he,_e,w("button",{onClick:h}," Cancel ")])])):K("",!0)]),_:1}),O(B,{name:"preview-loading"},{default:J(()=>[l.value?(q(),L("div",me,[ge,w("div",ke,[w("p",null,ie(l.value),1),w("button",{onClick:h}," Exit preview ")])])):K("",!0)]),_:1})]))}});const Ie=re(Ce,[["__scopeId","data-v-f7d2e11a"]]),Pe=(o=[],s,a)=>{const u=[...s||[]],_=[...a||[]],d=JSON.parse(JSON.stringify(o));for(const i of u)if(i.oldPath)if(_.splice(_.findIndex(r=>r.path===i.oldPath),1),u.find(r=>r.path===i.oldPath))d.push({path:i.path,parsed:i.parsed});else{const r=d.find(h=>h.path===i.oldPath);r&&(r.path=i.path,i.parsed?r.parsed=i.parsed:i.pathMeta&&["_file","_path","_id","_locale"].forEach(h=>{r.parsed[h]=i.pathMeta[h]}))}else if(i.new)d.push({path:i.path,parsed:i.parsed});else{const l=d.find(r=>r.path===i.path);l&&Object.assign(l,{path:i.path,parsed:i.parsed})}for(const i of _)d.splice(d.findIndex(l=>l.path===i.path),1);const g=new Intl.Collator(void 0,{numeric:!0});return d.sort((i,l)=>g.compare(i.path,l.path)),d},C={appConfig:"app.config.ts",tokensConfig:"tokens.config.ts"},Se=o=>{let s;return(...a)=>(s||(s=o()),s)};function G(o,s){for(const a in o){const u=s[a];a in s||delete o[a],u!==null&&typeof u=="object"&&G(o[a],s[a])}}function Q(o,s){for(const a in s){const u=s[a];u!==null&&typeof u=="object"?Array.isArray(u)&&Array.isArray(o[a])?o[a]=u:(o[a]=o[a]||{},Q(o[a],u)):o[a]=u}}const Te=Se(()=>JSON.parse(JSON.stringify(Z()))),H=pe((o,s,a)=>{if(Array.isArray(o[s])&&Array.isArray(a))return o[s]=a,!0}),be=()=>{const o=W(),{studio:s,content:a}=de().public,u=Te();let _;const d=z("studio-client-db",()=>null),g=z("studio-preview-db-files",()=>[]);d.value||(o.hook("content:storage",e=>{d.value=e}),ce("/non-existing-path").findOne());const i=async(e,t,c=!0)=>{const f=window.sessionStorage.getItem("previewToken"),v=await e.getKeys(`${f}:`);await Promise.all(v.map(p=>e.removeItem(p)));const n=new Set(t.map(p=>p.parsed._id.split(":").shift()));await e.setItem(`${f}$`,JSON.stringify({ignoreSources:Array.from(n)})),await Promise.all(t.map(p=>e.setItem(`${f}:${p.parsed._id}`,JSON.stringify(p.parsed))))},l=e=>{const t=U(o,Z);t!=null&&t.ui&&(t.ui.icons={...t.ui.icons,dynamic:!0}),Q(t,H(e,u)),e||G(t,u)},r=e=>{var c,f,v,n;const t=(n=(v=(f=(c=o==null?void 0:o.vueApp)==null?void 0:c._context)==null?void 0:f.config)==null?void 0:v.globalProperties)==null?void 0:n.$pinceauTheme;!t||!(t!=null&&t.updateTheme)||(_||(_=JSON.parse(JSON.stringify((t==null?void 0:t.theme.value)||{}))),U(o,t.updateTheme,[H(e,_)]))},h=async e=>{if(g.value=e.files=e.files||g.value||[],!d.value)return!1;const t=Pe(e.files,e.additions,e.deletions),c=t.filter(n=>![C.appConfig,C.tokensConfig].includes(n.path));await i(d.value,c,(e.files||[]).length!==0);const f=t.find(n=>n.path===C.appConfig);l(f==null?void 0:f.parsed);const v=t.find(n=>n.path===C.tokensConfig);return r(v==null?void 0:v.parsed),x(),!0},b=async()=>{const e=window.sessionStorage.getItem("previewToken");await $fetch("api/projects/preview/sync",{baseURL:s==null?void 0:s.apiURL,method:"POST",params:{token:e}})},T=()=>{const e=window.sessionStorage.getItem("previewToken"),t=document.createElement("div");t.id="__nuxt_preview_wrapper",document.body.appendChild(t),le(Ie,{previewToken:e,apiURL:s==null?void 0:s.apiURL,syncPreview:h,requestPreviewSyncAPI:b}).mount(t)},y=async e=>{var f,v,n;const t=window.sessionStorage.getItem("previewToken");if(!e)return null;e=e.replace(/\/$/,"");let c=await((f=d.value)==null?void 0:f.getItem(`${t}:${e}`));return c||(c=await((v=d.value)==null?void 0:v.getItem(`cached:${e}`))),c||(c=c=await((n=d.value)==null?void 0:n.getItem(e))),c},I=e=>{var c;const t=window.sessionStorage.getItem("previewToken");d.value&&d.value.setItem(`${t}:${(c=e.parsed)==null?void 0:c._id}`,JSON.stringify(e.parsed))},P=async e=>{var c;const t=window.sessionStorage.getItem("previewToken");await((c=d.value)==null?void 0:c.removeItem(`${t}:${e}`))},x=async()=>{if(a!=null&&a.documentDriven){const{pages:e}=U(o,ue);for(const t in e.value)e.value[t]&&(e.value[t]=await y(e.value[t]._id))}await o.hooks.callHookParallel("app:data:refresh")};return{apiURL:s==null?void 0:s.apiURL,contentStorage:d,syncPreviewFiles:i,syncPreviewAppConfig:l,syncPreviewTokensConfig:r,requestPreviewSynchronization:b,findContentWithId:y,updateContent:I,removeContentWithId:P,requestRerender:x,mountPreviewUI:T,initiateIframeCommunication:X};function X(){if(!window.parent||window.self===window.parent)return;const e=V(),t=E(),c=$(""),f=n=>({path:n.path,query:F(n.query),params:F(n.params),fullPath:n.fullPath,meta:F(n.meta)});window.addEventListener("keydown",n=>{(n.metaKey||n.ctrlKey||n.altKey||n.shiftKey)&&window.parent.postMessage({type:"nuxt-studio:preview:keydown",payload:{key:n.key,metaKey:n.metaKey,ctrlKey:n.ctrlKey,shiftKey:n.shiftKey,altKey:n.altKey}},"*")}),window.addEventListener("message",async n=>{if(!["https://nuxt.studio","https://dev.nuxt.studio","http://localhost:3000"].includes(n.origin))return;const{type:p,payload:A={}}=n.data||{};switch(p){case"nuxt-studio:editor:file-selected":{const m=await y(A.path);m&&(m._partial||m._path!==E().path&&(c.value=m._path,e.push(m._path)));break}case"nuxt-studio:editor:file-changed":{const{additions:m=[],deletions:M=[]}=A;for(const k of m)await I(k);for(const k of M)await P(k.path);x();break}case"nuxt-studio:preview:sync":{h(A);break}case"nuxt-studio:config:file-changed":{const{additions:m=[],deletions:M=[]}=A,k=m.find(S=>S.path===C.appConfig);k&&l(k==null?void 0:k.parsed),M.find(S=>S.path===C.appConfig)&&l(void 0);const N=m.find(S=>S.path===C.tokensConfig);N&&r(N==null?void 0:N.parsed),M.find(S=>S.path===C.tokensConfig)&&r(void 0);break}}}),o.hook("page:finish",()=>{v(),o.payload.prerenderedAt&&x()}),o.hook("content:document-driven:finish",({route:n,page:p})=>{n.meta.studio_page_contentId=p==null?void 0:p._id}),o.hook("nuxt-studio:preview:ready",()=>{window.parent.postMessage({type:"nuxt-studio:preview:ready",payload:f(E())},"*"),setTimeout(()=>{v()},100)});function v(){const n=Array.from(window.document.querySelectorAll("[data-content-id]")).map(A=>A.getAttribute("data-content-id")),p=Array.from(new Set([t.meta.studio_page_contentId,...n])).filter(Boolean);if(c.value===p[0]){c.value="";return}window.openContentInStudioEditor(p,{navigate:!0,pageContentId:t.meta.studio_page_contentId})}window.openContentInStudioEditor=(n,p={})=>{window.parent.postMessage({type:"nuxt-studio:preview:navigate",payload:{...f(t),contentIds:n,...p}},"*")}}};export{be as useStudio}; +import{d as Y,u as V,r as $,o as j,_ as ee,a as te,b as q,c as L,n as ne,F as oe,e as w,f as K,g as O,w as J,T as B,t as ie,h as D,p as se,i as ae,j as W,k as re,l as de,m as z,q as ce,s as E,v as U,x as Z,y as le,z as ue,A as F,B as pe}from"./entry.ae6f67a5.js";const R=o=>(se("data-v-f7d2e11a"),o=o(),ae(),o),fe=R(()=>w("svg",{viewBox:"0 0 90 90",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[w("path",{d:"M50.0016 71.0999h29.2561c.9293.0001 1.8422-.241 2.6469-.6992.8047-.4582 1.4729-1.1173 1.9373-1.9109.4645-.7936.7088-1.6939.7083-2.6102-.0004-.9162-.2455-1.8163-.7106-2.6095L64.192 29.713c-.4644-.7934-1.1325-1.4523-1.937-1.9105-.8046-.4581-1.7173-.6993-2.6463-.6993-.9291 0-1.8418.2412-2.6463.6993-.8046.4582-1.4726 1.1171-1.937 1.9105l-5.0238 8.5861-9.8224-16.7898c-.4648-.7934-1.1332-1.4522-1.938-1.9102-.8047-.4581-1.7176-.6992-2.6468-.6992-.9292 0-1.842.2411-2.6468.6992-.8048.458-1.4731 1.1168-1.9379 1.9102L6.56062 63.2701c-.46512.7932-.71021 1.6933-.71061 2.6095-.00041.9163.24389 1.8166.70831 2.6102.46443.7936 1.1326 1.4527 1.93732 1.9109.80473.4582 1.71766.6993 2.64686.6992h18.3646c7.2763 0 12.6422-3.1516 16.3345-9.3002l8.9642-15.3081 4.8015-8.1925 14.4099 24.6083H54.8058l-4.8042 8.1925ZM29.2077 62.899l-12.8161-.0028L35.603 30.0869l9.5857 16.4047-6.418 10.9645c-2.4521 3.9894-5.2377 5.4429-9.563 5.4429Z",fill:"currentColor"})],-1)),ve=R(()=>w("span",null,"Preview mode enabled",-1)),we={key:0},ye=R(()=>w("div",{id:"__preview_background"},null,-1)),he=R(()=>w("svg",{id:"__preview_loading_icon",width:"32",height:"32",viewBox:"0 0 24 24"},[w("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 4v5h.582m15.356 2A8.001 8.001 0 0 0 4.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 0 1-15.357-2m15.357 2H15"})],-1)),_e=R(()=>w("p",null,"Initializing the preview...",-1)),me={key:0},ge=R(()=>w("div",{id:"__preview_background"},null,-1)),ke={id:"__preview_loader"},Ce=Y({__name:"ContentPreviewMode",props:{previewToken:{type:String,required:!0},apiURL:{type:String,required:!0},syncPreview:{type:Function,required:!0},requestPreviewSyncAPI:{type:Function,required:!0}},setup(o){const s=o,a=["__nuxt_preview","__preview_enabled"],u=W(),_=V(),d=$(!0),g=$(!1),i=$(!1),l=$("");let r;const h=async()=>{D("previewToken").value="",window.sessionStorage.removeItem("previewToken"),await _.replace({query:{preview:void 0}}),window.location.reload()},b=async T=>{const y=await s.syncPreview(T);if(i.value!==!0){if(!y){setTimeout(()=>b(T),1e3);return}D("previewToken").value&&(i.value=!0,await _.replace({query:{}}),u.callHook("nuxt-studio:preview:ready"),window.parent&&window.self!==window.parent&&r.disconnect())}};return j(async()=>{r=(await ee(()=>import("./index.4df4817c.js"),[],import.meta.url)).connect(`${s.apiURL}/preview`,{transports:["websocket","polling"],auth:{token:s.previewToken}});let y;r.on("connect",()=>{y=setTimeout(()=>{i.value||(y=setTimeout(()=>{l.value="Preview sync timed out",i.value=!1},3e4),r.emit("draft:requestSync"))},3e4)});const I=()=>{y&&(clearTimeout(y),y=null)};r.on("draft:sync",async P=>{if(I(),!P){try{r.once("draft:ready",()=>{r.emit("draft:requestSync")}),await s.requestPreviewSyncAPI()}catch(x){switch(I(),x.response.status){case 404:l.value="Preview draft not found",i.value=!1;break;default:l.value="An error occurred while syncing preview",i.value=!1}}return}b(P)}),r.on("draft:unauthorized",()=>{I(),l.value="Unauthorized preview token",i.value=!1}),r.on("disconnect",()=>{I()}),document.body.classList.add(...a),r.on("draft:update",P=>{g.value=!0,s.syncPreview(P),g.value=!1})}),te(()=>{document.body.classList.remove(...a)}),(T,y)=>(q(),L("div",null,[d.value?(q(),L("div",{key:0,id:"__nuxt_preview",class:ne({__preview_ready:i.value,__preview_refreshing:g.value})},[i.value?(q(),L(oe,{key:0},[fe,ve,w("button",{onClick:h}," Close ")],64)):K("",!0)],2)):K("",!0),O(B,{name:"preview-loading"},{default:J(()=>[d.value&&!i.value&&!l.value?(q(),L("div",we,[ye,w("div",{id:"__preview_loader"},[he,_e,w("button",{onClick:h}," Cancel ")])])):K("",!0)]),_:1}),O(B,{name:"preview-loading"},{default:J(()=>[l.value?(q(),L("div",me,[ge,w("div",ke,[w("p",null,ie(l.value),1),w("button",{onClick:h}," Exit preview ")])])):K("",!0)]),_:1})]))}});const Ie=re(Ce,[["__scopeId","data-v-f7d2e11a"]]),Pe=(o=[],s,a)=>{const u=[...s||[]],_=[...a||[]],d=JSON.parse(JSON.stringify(o));for(const i of u)if(i.oldPath)if(_.splice(_.findIndex(r=>r.path===i.oldPath),1),u.find(r=>r.path===i.oldPath))d.push({path:i.path,parsed:i.parsed});else{const r=d.find(h=>h.path===i.oldPath);r&&(r.path=i.path,i.parsed?r.parsed=i.parsed:i.pathMeta&&["_file","_path","_id","_locale"].forEach(h=>{r.parsed[h]=i.pathMeta[h]}))}else if(i.new)d.push({path:i.path,parsed:i.parsed});else{const l=d.find(r=>r.path===i.path);l&&Object.assign(l,{path:i.path,parsed:i.parsed})}for(const i of _)d.splice(d.findIndex(l=>l.path===i.path),1);const g=new Intl.Collator(void 0,{numeric:!0});return d.sort((i,l)=>g.compare(i.path,l.path)),d},C={appConfig:"app.config.ts",tokensConfig:"tokens.config.ts"},Se=o=>{let s;return(...a)=>(s||(s=o()),s)};function G(o,s){for(const a in o){const u=s[a];a in s||delete o[a],u!==null&&typeof u=="object"&&G(o[a],s[a])}}function Q(o,s){for(const a in s){const u=s[a];u!==null&&typeof u=="object"?Array.isArray(u)&&Array.isArray(o[a])?o[a]=u:(o[a]=o[a]||{},Q(o[a],u)):o[a]=u}}const Te=Se(()=>JSON.parse(JSON.stringify(Z()))),H=pe((o,s,a)=>{if(Array.isArray(o[s])&&Array.isArray(a))return o[s]=a,!0}),be=()=>{const o=W(),{studio:s,content:a}=de().public,u=Te();let _;const d=z("studio-client-db",()=>null),g=z("studio-preview-db-files",()=>[]);d.value||(o.hook("content:storage",e=>{d.value=e}),ce("/non-existing-path").findOne());const i=async(e,t,c=!0)=>{const f=window.sessionStorage.getItem("previewToken"),v=await e.getKeys(`${f}:`);await Promise.all(v.map(p=>e.removeItem(p)));const n=new Set(t.map(p=>p.parsed._id.split(":").shift()));await e.setItem(`${f}$`,JSON.stringify({ignoreSources:Array.from(n)})),await Promise.all(t.map(p=>e.setItem(`${f}:${p.parsed._id}`,JSON.stringify(p.parsed))))},l=e=>{const t=U(o,Z);t!=null&&t.ui&&(t.ui.icons={...t.ui.icons,dynamic:!0}),Q(t,H(e,u)),e||G(t,u)},r=e=>{var c,f,v,n;const t=(n=(v=(f=(c=o==null?void 0:o.vueApp)==null?void 0:c._context)==null?void 0:f.config)==null?void 0:v.globalProperties)==null?void 0:n.$pinceauTheme;!t||!(t!=null&&t.updateTheme)||(_||(_=JSON.parse(JSON.stringify((t==null?void 0:t.theme.value)||{}))),U(o,t.updateTheme,[H(e,_)]))},h=async e=>{if(g.value=e.files=e.files||g.value||[],!d.value)return!1;const t=Pe(e.files,e.additions,e.deletions),c=t.filter(n=>![C.appConfig,C.tokensConfig].includes(n.path));await i(d.value,c,(e.files||[]).length!==0);const f=t.find(n=>n.path===C.appConfig);l(f==null?void 0:f.parsed);const v=t.find(n=>n.path===C.tokensConfig);return r(v==null?void 0:v.parsed),x(),!0},b=async()=>{const e=window.sessionStorage.getItem("previewToken");await $fetch("api/projects/preview/sync",{baseURL:s==null?void 0:s.apiURL,method:"POST",params:{token:e}})},T=()=>{const e=window.sessionStorage.getItem("previewToken"),t=document.createElement("div");t.id="__nuxt_preview_wrapper",document.body.appendChild(t),le(Ie,{previewToken:e,apiURL:s==null?void 0:s.apiURL,syncPreview:h,requestPreviewSyncAPI:b}).mount(t)},y=async e=>{var f,v,n;const t=window.sessionStorage.getItem("previewToken");if(!e)return null;e=e.replace(/\/$/,"");let c=await((f=d.value)==null?void 0:f.getItem(`${t}:${e}`));return c||(c=await((v=d.value)==null?void 0:v.getItem(`cached:${e}`))),c||(c=c=await((n=d.value)==null?void 0:n.getItem(e))),c},I=e=>{var c;const t=window.sessionStorage.getItem("previewToken");d.value&&d.value.setItem(`${t}:${(c=e.parsed)==null?void 0:c._id}`,JSON.stringify(e.parsed))},P=async e=>{var c;const t=window.sessionStorage.getItem("previewToken");await((c=d.value)==null?void 0:c.removeItem(`${t}:${e}`))},x=async()=>{if(a!=null&&a.documentDriven){const{pages:e}=U(o,ue);for(const t in e.value)e.value[t]&&(e.value[t]=await y(e.value[t]._id))}await o.hooks.callHookParallel("app:data:refresh")};return{apiURL:s==null?void 0:s.apiURL,contentStorage:d,syncPreviewFiles:i,syncPreviewAppConfig:l,syncPreviewTokensConfig:r,requestPreviewSynchronization:b,findContentWithId:y,updateContent:I,removeContentWithId:P,requestRerender:x,mountPreviewUI:T,initiateIframeCommunication:X};function X(){if(!window.parent||window.self===window.parent)return;const e=V(),t=E(),c=$(""),f=n=>({path:n.path,query:F(n.query),params:F(n.params),fullPath:n.fullPath,meta:F(n.meta)});window.addEventListener("keydown",n=>{(n.metaKey||n.ctrlKey||n.altKey||n.shiftKey)&&window.parent.postMessage({type:"nuxt-studio:preview:keydown",payload:{key:n.key,metaKey:n.metaKey,ctrlKey:n.ctrlKey,shiftKey:n.shiftKey,altKey:n.altKey}},"*")}),window.addEventListener("message",async n=>{if(!["https://nuxt.studio","https://dev.nuxt.studio","http://localhost:3000"].includes(n.origin))return;const{type:p,payload:A={}}=n.data||{};switch(p){case"nuxt-studio:editor:file-selected":{const m=await y(A.path);m&&(m._partial||m._path!==E().path&&(c.value=m._path,e.push(m._path)));break}case"nuxt-studio:editor:file-changed":{const{additions:m=[],deletions:M=[]}=A;for(const k of m)await I(k);for(const k of M)await P(k.path);x();break}case"nuxt-studio:preview:sync":{h(A);break}case"nuxt-studio:config:file-changed":{const{additions:m=[],deletions:M=[]}=A,k=m.find(S=>S.path===C.appConfig);k&&l(k==null?void 0:k.parsed),M.find(S=>S.path===C.appConfig)&&l(void 0);const N=m.find(S=>S.path===C.tokensConfig);N&&r(N==null?void 0:N.parsed),M.find(S=>S.path===C.tokensConfig)&&r(void 0);break}}}),o.hook("page:finish",()=>{v(),o.payload.prerenderedAt&&x()}),o.hook("content:document-driven:finish",({route:n,page:p})=>{n.meta.studio_page_contentId=p==null?void 0:p._id}),o.hook("nuxt-studio:preview:ready",()=>{window.parent.postMessage({type:"nuxt-studio:preview:ready",payload:f(E())},"*"),setTimeout(()=>{v()},100)});function v(){const n=Array.from(window.document.querySelectorAll("[data-content-id]")).map(A=>A.getAttribute("data-content-id")),p=Array.from(new Set([t.meta.studio_page_contentId,...n])).filter(Boolean);if(c.value===p[0]){c.value="";return}window.openContentInStudioEditor(p,{navigate:!0,pageContentId:t.meta.studio_page_contentId})}window.openContentInStudioEditor=(n,p={})=>{window.parent.postMessage({type:"nuxt-studio:preview:navigate",payload:{...f(t),contentIds:n,...p}},"*")}}};export{be as useStudio}; diff --git a/_payload.json b/_payload.json index 36ac950c..9268c020 100644 --- a/_payload.json +++ b/_payload.json @@ -1 +1 @@ -[{"data":1,"prerenderedAt":367},["Reactive",2],{"navigation":3,"index":52,"1CZYD6bgNK":104,"q3uGftTUSs":128},[4,8,12,40,44,48],{"title":5,"_path":6,"icon":7},"Get Started","/get-started","heroicons:rocket-launch",{"title":9,"_path":10,"icon":11},"Authentication","/authentication","heroicons:lock-closed",{"title":13,"_path":14,"children":15,"icon":39},"Usage","/usage",[16,26],{"title":17,"_path":18,"children":19},"Vue composables","/usage/composables",[20,23],{"title":21,"_path":22},"useSupabaseClient","/usage/composables/usesupabaseclient",{"title":24,"_path":25},"useSupabaseUser","/usage/composables/usesupabaseuser",{"title":27,"_path":28,"children":29},"Server services","/usage/services",[30,33,36],{"title":31,"_path":32},"serverSupabaseClient","/usage/services/serversupabaseclient",{"title":34,"_path":35},"serverSupabaseServiceRole","/usage/services/serversupabaseservicerole",{"title":37,"_path":38},"serverSupabaseUser","/usage/services/serversupabaseuser","heroicons:book-open",{"title":41,"_path":42,"icon":43},"Demo","/demo","heroicons:computer-desktop-20-solid",{"title":45,"_path":46,"icon":47},"Changelog","/changelog","heroicons:bookmark",{"title":49,"_path":50,"icon":51},"Roadmap","/roadmap","heroicons:map",{"_path":53,"_dir":54,"_draft":55,"_partial":55,"_locale":54,"title":56,"description":57,"navigation":55,"hero":58,"features":73,"_id":99,"_type":100,"_source":101,"_file":102,"_extension":103},"/","",false,"Nuxt Supabase - Home","A supa simple wrapper around supabase-js to enable usage and integration within Nuxt.",{"title":59,"description":57,"orientation":60,"links":61,"code":72},"Nuxt [Supabase]{.text-primary}","horizontal",[62,66],{"label":63,"icon":64,"to":6,"size":65},"Get started","i-heroicons-rocket-launch","lg",{"label":67,"icon":68,"color":69,"to":70,"target":71,"size":65},"Star on github","i-heroicons-star","white","https://github.com/nuxt-modules/supabase","_blank","```ts\n const supabase = useSupabaseClient()\n const email = ref('')\n\n const signInWithOtp = async () => {\n await supabase.auth.signInWithOtp({\n email: email.value,\n })\n }\n```\n",{"title":74,"items":75},"Shipped with many features",[76,80,84,88,92,95],{"title":77,"icon":78,"to":79,"target":71},"Nuxt 3 ready","i-simple-icons-nuxtdotjs","https://nuxt.com",{"title":81,"icon":82,"to":83,"target":71},"Vue 3 composables","i-simple-icons-vuedotjs","https://vuejs.org/guide/reusability/composables.html",{"title":85,"icon":86,"to":87,"target":71},"Supabase-js V2","i-simple-icons-supabase","https://supabase.com",{"title":89,"icon":90,"to":91},"Usage in API server routes","i-heroicons-server","usage/services/serversupabaseclient",{"title":93,"icon":94,"to":10},"Authentication support","i-heroicons-key",{"title":96,"icon":97,"to":98,"target":71},"TypeScript support","i-simple-icons-typescript","https://www.typescriptlang.org","content:index.yml","yaml","content","index.yml","yml",{"data":105,"body":107,"excerpt":-1,"toc":125},{"title":54,"description":106},"Nuxt Supabase",{"type":108,"children":109},"root",[110],{"type":111,"tag":112,"props":113,"children":114},"element","p",{},[115,118],{"type":116,"value":117},"text","Nuxt ",{"type":111,"tag":119,"props":120,"children":122},"span",{"class":121},"text-primary",[123],{"type":116,"value":124},"Supabase",{"title":54,"searchDepth":126,"depth":126,"links":127},2,[],{"data":129,"body":130,"excerpt":-1,"toc":365},{"title":54,"description":54},{"type":108,"children":131},[132,359],{"type":111,"tag":133,"props":134,"children":138},"pre",{"className":135,"code":136,"filename":-1,"highlights":-1,"language":137,"meta":54,"style":54},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight"," const supabase = useSupabaseClient()\n const email = ref('')\n\n const signInWithOtp = async () => {\n await supabase.auth.signInWithOtp({\n email: email.value,\n })\n }\n","ts",[139],{"type":111,"tag":140,"props":141,"children":142},"code",{"__ignoreMap":54},[143,177,213,223,260,304,337,350],{"type":111,"tag":119,"props":144,"children":147},{"class":145,"line":146},"line",1,[148,154,160,166,172],{"type":111,"tag":119,"props":149,"children":151},{"style":150},"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA",[152],{"type":116,"value":153}," const",{"type":111,"tag":119,"props":155,"children":157},{"style":156},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8",[158],{"type":116,"value":159}," supabase ",{"type":111,"tag":119,"props":161,"children":163},{"style":162},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF",[164],{"type":116,"value":165},"=",{"type":111,"tag":119,"props":167,"children":169},{"style":168},"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF",[170],{"type":116,"value":171}," useSupabaseClient",{"type":111,"tag":119,"props":173,"children":174},{"style":156},[175],{"type":116,"value":176},"()\n",{"type":111,"tag":119,"props":178,"children":179},{"class":145,"line":126},[180,184,189,193,198,203,208],{"type":111,"tag":119,"props":181,"children":182},{"style":150},[183],{"type":116,"value":153},{"type":111,"tag":119,"props":185,"children":186},{"style":156},[187],{"type":116,"value":188}," email ",{"type":111,"tag":119,"props":190,"children":191},{"style":162},[192],{"type":116,"value":165},{"type":111,"tag":119,"props":194,"children":195},{"style":168},[196],{"type":116,"value":197}," ref",{"type":111,"tag":119,"props":199,"children":200},{"style":156},[201],{"type":116,"value":202},"(",{"type":111,"tag":119,"props":204,"children":205},{"style":162},[206],{"type":116,"value":207},"''",{"type":111,"tag":119,"props":209,"children":210},{"style":156},[211],{"type":116,"value":212},")\n",{"type":111,"tag":119,"props":214,"children":216},{"class":145,"line":215},3,[217],{"type":111,"tag":119,"props":218,"children":220},{"emptyLinePlaceholder":219},true,[221],{"type":116,"value":222},"\n",{"type":111,"tag":119,"props":224,"children":226},{"class":145,"line":225},4,[227,231,236,240,245,250,255],{"type":111,"tag":119,"props":228,"children":229},{"style":150},[230],{"type":116,"value":153},{"type":111,"tag":119,"props":232,"children":233},{"style":156},[234],{"type":116,"value":235}," signInWithOtp ",{"type":111,"tag":119,"props":237,"children":238},{"style":162},[239],{"type":116,"value":165},{"type":111,"tag":119,"props":241,"children":242},{"style":150},[243],{"type":116,"value":244}," async",{"type":111,"tag":119,"props":246,"children":247},{"style":162},[248],{"type":116,"value":249}," ()",{"type":111,"tag":119,"props":251,"children":252},{"style":150},[253],{"type":116,"value":254}," =>",{"type":111,"tag":119,"props":256,"children":257},{"style":162},[258],{"type":116,"value":259}," {\n",{"type":111,"tag":119,"props":261,"children":263},{"class":145,"line":262},5,[264,270,275,280,285,289,294,299],{"type":111,"tag":119,"props":265,"children":267},{"style":266},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic",[268],{"type":116,"value":269}," await",{"type":111,"tag":119,"props":271,"children":272},{"style":156},[273],{"type":116,"value":274}," supabase",{"type":111,"tag":119,"props":276,"children":277},{"style":162},[278],{"type":116,"value":279},".",{"type":111,"tag":119,"props":281,"children":282},{"style":156},[283],{"type":116,"value":284},"auth",{"type":111,"tag":119,"props":286,"children":287},{"style":162},[288],{"type":116,"value":279},{"type":111,"tag":119,"props":290,"children":291},{"style":168},[292],{"type":116,"value":293},"signInWithOtp",{"type":111,"tag":119,"props":295,"children":297},{"style":296},"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178",[298],{"type":116,"value":202},{"type":111,"tag":119,"props":300,"children":301},{"style":162},[302],{"type":116,"value":303},"{\n",{"type":111,"tag":119,"props":305,"children":307},{"class":145,"line":306},6,[308,313,318,323,327,332],{"type":111,"tag":119,"props":309,"children":310},{"style":296},[311],{"type":116,"value":312}," email",{"type":111,"tag":119,"props":314,"children":315},{"style":162},[316],{"type":116,"value":317},":",{"type":111,"tag":119,"props":319,"children":320},{"style":156},[321],{"type":116,"value":322}," email",{"type":111,"tag":119,"props":324,"children":325},{"style":162},[326],{"type":116,"value":279},{"type":111,"tag":119,"props":328,"children":329},{"style":156},[330],{"type":116,"value":331},"value",{"type":111,"tag":119,"props":333,"children":334},{"style":162},[335],{"type":116,"value":336},",\n",{"type":111,"tag":119,"props":338,"children":340},{"class":145,"line":339},7,[341,346],{"type":111,"tag":119,"props":342,"children":343},{"style":162},[344],{"type":116,"value":345}," }",{"type":111,"tag":119,"props":347,"children":348},{"style":296},[349],{"type":116,"value":212},{"type":111,"tag":119,"props":351,"children":353},{"class":145,"line":352},8,[354],{"type":111,"tag":119,"props":355,"children":356},{"style":162},[357],{"type":116,"value":358}," }\n",{"type":111,"tag":360,"props":361,"children":362},"style",{},[363],{"type":116,"value":364},"html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":54,"searchDepth":126,"depth":126,"links":366},[],1703671429334] \ No newline at end of file +[{"data":1,"prerenderedAt":367},["Reactive",2],{"navigation":3,"index":52,"1CZYD6bgNK":104,"q3uGftTUSs":128},[4,8,12,40,44,48],{"title":5,"_path":6,"icon":7},"Get Started","/get-started","heroicons:rocket-launch",{"title":9,"_path":10,"icon":11},"Authentication","/authentication","heroicons:lock-closed",{"title":13,"_path":14,"children":15,"icon":39},"Usage","/usage",[16,26],{"title":17,"_path":18,"children":19},"Vue composables","/usage/composables",[20,23],{"title":21,"_path":22},"useSupabaseClient","/usage/composables/usesupabaseclient",{"title":24,"_path":25},"useSupabaseUser","/usage/composables/usesupabaseuser",{"title":27,"_path":28,"children":29},"Server services","/usage/services",[30,33,36],{"title":31,"_path":32},"serverSupabaseClient","/usage/services/serversupabaseclient",{"title":34,"_path":35},"serverSupabaseServiceRole","/usage/services/serversupabaseservicerole",{"title":37,"_path":38},"serverSupabaseUser","/usage/services/serversupabaseuser","heroicons:book-open",{"title":41,"_path":42,"icon":43},"Demo","/demo","heroicons:computer-desktop-20-solid",{"title":45,"_path":46,"icon":47},"Changelog","/changelog","heroicons:bookmark",{"title":49,"_path":50,"icon":51},"Roadmap","/roadmap","heroicons:map",{"_path":53,"_dir":54,"_draft":55,"_partial":55,"_locale":54,"title":56,"description":57,"navigation":55,"hero":58,"features":73,"_id":99,"_type":100,"_source":101,"_file":102,"_extension":103},"/","",false,"Nuxt Supabase - Home","A supa simple wrapper around supabase-js to enable usage and integration within Nuxt.",{"title":59,"description":57,"orientation":60,"links":61,"code":72},"Nuxt [Supabase]{.text-primary}","horizontal",[62,66],{"label":63,"icon":64,"to":6,"size":65},"Get started","i-heroicons-rocket-launch","lg",{"label":67,"icon":68,"color":69,"to":70,"target":71,"size":65},"Star on github","i-heroicons-star","white","https://github.com/nuxt-modules/supabase","_blank","```ts\n const supabase = useSupabaseClient()\n const email = ref('')\n\n const signInWithOtp = async () => {\n await supabase.auth.signInWithOtp({\n email: email.value,\n })\n }\n```\n",{"title":74,"items":75},"Shipped with many features",[76,80,84,88,92,95],{"title":77,"icon":78,"to":79,"target":71},"Nuxt 3 ready","i-simple-icons-nuxtdotjs","https://nuxt.com",{"title":81,"icon":82,"to":83,"target":71},"Vue 3 composables","i-simple-icons-vuedotjs","https://vuejs.org/guide/reusability/composables.html",{"title":85,"icon":86,"to":87,"target":71},"Supabase-js V2","i-simple-icons-supabase","https://supabase.com",{"title":89,"icon":90,"to":91},"Usage in API server routes","i-heroicons-server","usage/services/serversupabaseclient",{"title":93,"icon":94,"to":10},"Authentication support","i-heroicons-key",{"title":96,"icon":97,"to":98,"target":71},"TypeScript support","i-simple-icons-typescript","https://www.typescriptlang.org","content:index.yml","yaml","content","index.yml","yml",{"data":105,"body":107,"excerpt":-1,"toc":125},{"title":54,"description":106},"Nuxt Supabase",{"type":108,"children":109},"root",[110],{"type":111,"tag":112,"props":113,"children":114},"element","p",{},[115,118],{"type":116,"value":117},"text","Nuxt ",{"type":111,"tag":119,"props":120,"children":122},"span",{"class":121},"text-primary",[123],{"type":116,"value":124},"Supabase",{"title":54,"searchDepth":126,"depth":126,"links":127},2,[],{"data":129,"body":130,"excerpt":-1,"toc":365},{"title":54,"description":54},{"type":108,"children":131},[132,359],{"type":111,"tag":133,"props":134,"children":138},"pre",{"className":135,"code":136,"filename":-1,"highlights":-1,"language":137,"meta":54,"style":54},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight"," const supabase = useSupabaseClient()\n const email = ref('')\n\n const signInWithOtp = async () => {\n await supabase.auth.signInWithOtp({\n email: email.value,\n })\n }\n","ts",[139],{"type":111,"tag":140,"props":141,"children":142},"code",{"__ignoreMap":54},[143,177,213,223,260,304,337,350],{"type":111,"tag":119,"props":144,"children":147},{"class":145,"line":146},"line",1,[148,154,160,166,172],{"type":111,"tag":119,"props":149,"children":151},{"style":150},"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA",[152],{"type":116,"value":153}," const",{"type":111,"tag":119,"props":155,"children":157},{"style":156},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8",[158],{"type":116,"value":159}," supabase ",{"type":111,"tag":119,"props":161,"children":163},{"style":162},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF",[164],{"type":116,"value":165},"=",{"type":111,"tag":119,"props":167,"children":169},{"style":168},"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF",[170],{"type":116,"value":171}," useSupabaseClient",{"type":111,"tag":119,"props":173,"children":174},{"style":156},[175],{"type":116,"value":176},"()\n",{"type":111,"tag":119,"props":178,"children":179},{"class":145,"line":126},[180,184,189,193,198,203,208],{"type":111,"tag":119,"props":181,"children":182},{"style":150},[183],{"type":116,"value":153},{"type":111,"tag":119,"props":185,"children":186},{"style":156},[187],{"type":116,"value":188}," email ",{"type":111,"tag":119,"props":190,"children":191},{"style":162},[192],{"type":116,"value":165},{"type":111,"tag":119,"props":194,"children":195},{"style":168},[196],{"type":116,"value":197}," ref",{"type":111,"tag":119,"props":199,"children":200},{"style":156},[201],{"type":116,"value":202},"(",{"type":111,"tag":119,"props":204,"children":205},{"style":162},[206],{"type":116,"value":207},"''",{"type":111,"tag":119,"props":209,"children":210},{"style":156},[211],{"type":116,"value":212},")\n",{"type":111,"tag":119,"props":214,"children":216},{"class":145,"line":215},3,[217],{"type":111,"tag":119,"props":218,"children":220},{"emptyLinePlaceholder":219},true,[221],{"type":116,"value":222},"\n",{"type":111,"tag":119,"props":224,"children":226},{"class":145,"line":225},4,[227,231,236,240,245,250,255],{"type":111,"tag":119,"props":228,"children":229},{"style":150},[230],{"type":116,"value":153},{"type":111,"tag":119,"props":232,"children":233},{"style":156},[234],{"type":116,"value":235}," signInWithOtp ",{"type":111,"tag":119,"props":237,"children":238},{"style":162},[239],{"type":116,"value":165},{"type":111,"tag":119,"props":241,"children":242},{"style":150},[243],{"type":116,"value":244}," async",{"type":111,"tag":119,"props":246,"children":247},{"style":162},[248],{"type":116,"value":249}," ()",{"type":111,"tag":119,"props":251,"children":252},{"style":150},[253],{"type":116,"value":254}," =>",{"type":111,"tag":119,"props":256,"children":257},{"style":162},[258],{"type":116,"value":259}," {\n",{"type":111,"tag":119,"props":261,"children":263},{"class":145,"line":262},5,[264,270,275,280,285,289,294,299],{"type":111,"tag":119,"props":265,"children":267},{"style":266},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic",[268],{"type":116,"value":269}," await",{"type":111,"tag":119,"props":271,"children":272},{"style":156},[273],{"type":116,"value":274}," supabase",{"type":111,"tag":119,"props":276,"children":277},{"style":162},[278],{"type":116,"value":279},".",{"type":111,"tag":119,"props":281,"children":282},{"style":156},[283],{"type":116,"value":284},"auth",{"type":111,"tag":119,"props":286,"children":287},{"style":162},[288],{"type":116,"value":279},{"type":111,"tag":119,"props":290,"children":291},{"style":168},[292],{"type":116,"value":293},"signInWithOtp",{"type":111,"tag":119,"props":295,"children":297},{"style":296},"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178",[298],{"type":116,"value":202},{"type":111,"tag":119,"props":300,"children":301},{"style":162},[302],{"type":116,"value":303},"{\n",{"type":111,"tag":119,"props":305,"children":307},{"class":145,"line":306},6,[308,313,318,323,327,332],{"type":111,"tag":119,"props":309,"children":310},{"style":296},[311],{"type":116,"value":312}," email",{"type":111,"tag":119,"props":314,"children":315},{"style":162},[316],{"type":116,"value":317},":",{"type":111,"tag":119,"props":319,"children":320},{"style":156},[321],{"type":116,"value":322}," email",{"type":111,"tag":119,"props":324,"children":325},{"style":162},[326],{"type":116,"value":279},{"type":111,"tag":119,"props":328,"children":329},{"style":156},[330],{"type":116,"value":331},"value",{"type":111,"tag":119,"props":333,"children":334},{"style":162},[335],{"type":116,"value":336},",\n",{"type":111,"tag":119,"props":338,"children":340},{"class":145,"line":339},7,[341,346],{"type":111,"tag":119,"props":342,"children":343},{"style":162},[344],{"type":116,"value":345}," }",{"type":111,"tag":119,"props":347,"children":348},{"style":296},[349],{"type":116,"value":212},{"type":111,"tag":119,"props":351,"children":353},{"class":145,"line":352},8,[354],{"type":111,"tag":119,"props":355,"children":356},{"style":162},[357],{"type":116,"value":358}," }\n",{"type":111,"tag":360,"props":361,"children":362},"style",{},[363],{"type":116,"value":364},"html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":54,"searchDepth":126,"depth":126,"links":366},[],1703757835858] \ No newline at end of file diff --git a/api/_content/cache.1703671384174.json b/api/_content/cache.1703757791295.json similarity index 99% rename from api/_content/cache.1703671384174.json rename to api/_content/cache.1703757791295.json index 9ed84190..0b4a845e 100644 --- a/api/_content/cache.1703671384174.json +++ b/api/_content/cache.1703757791295.json @@ -1 +1 @@ -{"generatedAt":1703671429285,"generateTime":2033,"contents":[{"_path":"/get-started","_dir":"","_draft":false,"_partial":false,"_locale":"","title":"Get Started","description":"@nuxtjs/supabase is a Nuxt module for first class integration with Supabase.","icon":"heroicons:rocket-launch","body":{"type":"root","children":[{"type":"element","tag":"p","props":{},"children":[{"type":"element","tag":"a","props":{"href":"https://github.com/nuxt-modules/supabase","rel":["nofollow"]},"children":[{"type":"text","value":"@nuxtjs/supabase"}]},{"type":"text","value":" is a Nuxt module for first class integration with Supabase."}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Checkout the "},{"type":"element","tag":"a","props":{"href":"https://v3.nuxtjs.org","rel":["nofollow"]},"children":[{"type":"text","value":"Nuxt 3"}]},{"type":"text","value":" documentation and "},{"type":"element","tag":"a","props":{"href":"https://supabase.com","rel":["nofollow"]},"children":[{"type":"text","value":"Supabase"}]},{"type":"text","value":" to learn more."}]},{"type":"element","tag":"callout","props":{"icon":"i-heroicons-exclamation-triangle-20-solid","color":"amber"},"children":[{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"For integrating Supabase with Nuxt 2, checkout "},{"type":"element","tag":"a","props":{"href":"https://github.com/supabase-community/nuxt-supabase","rel":["nofollow"]},"children":[{"type":"text","value":"supabase-community/nuxt-supabase"}]},{"type":"text","value":"."}]}]},{"type":"element","tag":"h2","props":{"id":"installation"},"children":[{"type":"text","value":"Installation"}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Add "},{"type":"element","tag":"code","props":{"className":""},"children":[{"type":"text","value":"@nuxtjs/supabase"}]},{"type":"text","value":" dev dependency to your project:"}]},{"type":"element","tag":"code-group","props":{},"children":[{"type":"element","tag":"pre","props":{"className":"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","code":"pnpm add -D @nuxtjs/supabase\n","filename":"pnpm","language":"bash","meta":"","style":""},"children":[{"type":"element","tag":"code","props":{"__ignoreMap":""},"children":[{"type":"element","tag":"span","props":{"class":"line","line":1},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B"},"children":[{"type":"text","value":"pnpm"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":" add"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":" -D"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":" @nuxtjs/supabase\n"}]}]}]}]},{"type":"element","tag":"pre","props":{"className":"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","code":"yarn add --dev @nuxtjs/supabase\n","filename":"yarn","language":"bash","meta":"","style":""},"children":[{"type":"element","tag":"code","props":{"__ignoreMap":""},"children":[{"type":"element","tag":"span","props":{"class":"line","line":1},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B"},"children":[{"type":"text","value":"yarn"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":" add"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":" --dev"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":" @nuxtjs/supabase\n"}]}]}]}]},{"type":"element","tag":"pre","props":{"className":"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","code":"npm install @nuxtjs/supabase --save-dev\n","filename":"NPM","language":"bash","meta":"","style":""},"children":[{"type":"element","tag":"code","props":{"__ignoreMap":""},"children":[{"type":"element","tag":"span","props":{"class":"line","line":1},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B"},"children":[{"type":"text","value":"npm"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":" install"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":" @nuxtjs/supabase"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":" --save-dev\n"}]}]}]}]},{"type":"element","tag":"pre","props":{"className":"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","code":"bun add -D @nuxtjs/supabase\n","filename":"bun","language":"bash","meta":"","style":""},"children":[{"type":"element","tag":"code","props":{"__ignoreMap":""},"children":[{"type":"element","tag":"span","props":{"class":"line","line":1},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B"},"children":[{"type":"text","value":"bun"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":" add"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":" -D"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":" @nuxtjs/supabase\n"}]}]}]}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Add "},{"type":"element","tag":"code","props":{"className":""},"children":[{"type":"text","value":"@nuxtjs/supabase"}]},{"type":"text","value":" to the "},{"type":"element","tag":"code","props":{"className":""},"children":[{"type":"text","value":"modules"}]},{"type":"text","value":" section of "},{"type":"element","tag":"code","props":{"className":""},"children":[{"type":"text","value":"nuxt.config.ts"}]},{"type":"text","value":":"}]},{"type":"element","tag":"pre","props":{"className":"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","code":"export default defineNuxtConfig({\n modules: ['@nuxtjs/supabase'],\n})\n","filename":"nuxt.config.ts","language":"ts","meta":"","style":""},"children":[{"type":"element","tag":"code","props":{"__ignoreMap":""},"children":[{"type":"element","tag":"span","props":{"class":"line","line":1},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":"export"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" default"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" defineNuxtConfig"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"{\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":2},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":" modules"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" ["}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"@nuxtjs/supabase"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"]"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":",\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":3},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"}"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":")\n"}]}]}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Add "},{"type":"element","tag":"code","props":{"className":""},"children":[{"type":"text","value":"SUPABASE_URL"}]},{"type":"text","value":" and "},{"type":"element","tag":"code","props":{"className":""},"children":[{"type":"text","value":"SUPABASE_KEY"}]},{"type":"text","value":" to the "},{"type":"element","tag":"code","props":{"className":""},"children":[{"type":"text","value":".env"}]},{"type":"text","value":":"}]},{"type":"element","tag":"pre","props":{"className":"language-zsh shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","code":"SUPABASE_URL=\"https://example.supabase.co\"\nSUPABASE_KEY=\"\"\n","filename":"env","language":"zsh","meta":"","style":""},"children":[{"type":"element","tag":"code","props":{"__ignoreMap":""},"children":[{"type":"element","tag":"span","props":{"class":"line","line":1},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"SUPABASE_URL"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"\""}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"https://example.supabase.co"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"\"\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":2},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"SUPABASE_KEY"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"\""}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":""}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"\"\n"}]}]}]}]},{"type":"element","tag":"callout","props":{"icon":"i-heroicons-light-bulb"},"children":[{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Alternatively, you can prefix the env variables with "},{"type":"element","tag":"code","props":{"className":""},"children":[{"type":"text","value":"NUXT_PUBLIC_"}]},{"type":"text","value":" in order to use runtimeConfig."}]}]},{"type":"element","tag":"h2","props":{"id":"options"},"children":[{"type":"text","value":"Options"}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"You can configure the supabase module by using the "},{"type":"element","tag":"code","props":{"className":""},"children":[{"type":"text","value":"supabase"}]},{"type":"text","value":" key in "},{"type":"element","tag":"code","props":{"className":""},"children":[{"type":"text","value":"nuxt.config"}]},{"type":"text","value":":"}]},{"type":"element","tag":"pre","props":{"className":"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","code":"export default defineNuxtConfig({\n // ...\n supabase: {\n // Options\n }\n}\n","filename":"nuxt.config.ts","language":"ts","meta":"","style":""},"children":[{"type":"element","tag":"code","props":{"__ignoreMap":""},"children":[{"type":"element","tag":"span","props":{"class":"line","line":1},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":"export"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" default"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" defineNuxtConfig"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"{\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":2},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#546E7A;--shiki-dark:#676E95;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" // ...\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":3},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":" supabase"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":4},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#546E7A;--shiki-dark:#676E95;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" // Options\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":5},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" }\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":6},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"}\n"}]}]}]}]},{"type":"element","tag":"h3","props":{"id":"url"},"children":[{"type":"element","tag":"code","props":{"className":""},"children":[{"type":"text","value":"url"}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Default: "},{"type":"element","tag":"code","props":{"className":""},"children":[{"type":"text","value":"process.env.SUPABASE_URL"}]},{"type":"text","value":" (ex: "},{"type":"element","tag":"a","props":{"href":"https://example.supabase.co","rel":["nofollow"]},"children":[{"type":"text","value":"https://example.supabase.co"}]},{"type":"text","value":")"}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"The unique Supabase URL which is supplied when you create a new project in your project dashboard."}]},{"type":"element","tag":"h3","props":{"id":"key"},"children":[{"type":"element","tag":"code","props":{"className":""},"children":[{"type":"text","value":"key"}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Default: "},{"type":"element","tag":"code","props":{"className":""},"children":[{"type":"text","value":"process.env.SUPABASE_KEY"}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Supabase 'anon key', used to bypass the Supabase API gateway and interact with your Supabase database making use of user JWT to apply RLS Policies."}]},{"type":"element","tag":"h3","props":{"id":"servicekey"},"children":[{"type":"element","tag":"code","props":{"className":""},"children":[{"type":"text","value":"serviceKey"}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Default: "},{"type":"element","tag":"code","props":{"className":""},"children":[{"type":"text","value":"process.env.SUPABASE_SERVICE_KEY"}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Supabase 'service role key', has super admin rights and can bypass your Row Level Security."}]},{"type":"element","tag":"h3","props":{"id":"redirect"},"children":[{"type":"element","tag":"code","props":{"className":""},"children":[{"type":"text","value":"redirect"}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Default: "},{"type":"element","tag":"code","props":{"className":""},"children":[{"type":"text","value":"true"}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Redirect automatically to the configured login page if a non authenticated user is trying to access a guarded. You can disable all redirects by setting this option to false."}]},{"type":"element","tag":"h3","props":{"id":"redirectoptions"},"children":[{"type":"element","tag":"code","props":{"className":""},"children":[{"type":"text","value":"redirectOptions"}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Default:"}]},{"type":"element","tag":"pre","props":{"className":"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","code":" redirectOptions: {\n login: '/login',\n callback: '/confirm',\n exclude: [],\n }\n","filename":"nuxt.config.ts","language":"ts","meta":"","style":""},"children":[{"type":"element","tag":"code","props":{"__ignoreMap":""},"children":[{"type":"element","tag":"span","props":{"class":"line","line":1},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B"},"children":[{"type":"text","value":" redirectOptions"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":2},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B"},"children":[{"type":"text","value":" login"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" '"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"/login"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":",\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":3},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B"},"children":[{"type":"text","value":" callback"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" '"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"/confirm"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":",\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":4},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B"},"children":[{"type":"text","value":" exclude"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":" []"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":",\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":5},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" }\n"}]}]}]}]},{"type":"element","tag":"ul","props":{},"children":[{"type":"element","tag":"li","props":{},"children":[{"type":"element","tag":"code","props":{"className":""},"children":[{"type":"text","value":"login"}]},{"type":"text","value":": User will be redirected to this path if not authenticated or after logout."}]},{"type":"element","tag":"li","props":{},"children":[{"type":"element","tag":"code","props":{"className":""},"children":[{"type":"text","value":"callback"}]},{"type":"text","value":": This is the path the user will be redirect to after supabase login redirection. Should match configured "},{"type":"element","tag":"code","props":{"className":""},"children":[{"type":"text","value":"redirectTo"}]},{"type":"text","value":" option of your "},{"type":"element","tag":"a","props":{"href":"https://supabase.com/docs/reference/javascript/auth-signinwithoauth","rel":["nofollow"]},"children":[{"type":"text","value":"signIn method"}]},{"type":"text","value":". Should also be configured in your Supabase dashboard under "},{"type":"element","tag":"code","props":{"className":""},"children":[{"type":"text","value":"Authentication -> URL Configuration -> Redirect URLs"}]},{"type":"text","value":"."}]},{"type":"element","tag":"li","props":{},"children":[{"type":"element","tag":"code","props":{"className":""},"children":[{"type":"text","value":"exclude"}]},{"type":"text","value":": Routes to exclude from the redirect. "},{"type":"element","tag":"code","props":{"className":""},"children":[{"type":"text","value":"['/foo', '/bar/*']"}]},{"type":"text","value":" will exclude the "},{"type":"element","tag":"code","props":{"className":""},"children":[{"type":"text","value":"foo"}]},{"type":"text","value":" page and all pages in your "},{"type":"element","tag":"code","props":{"className":""},"children":[{"type":"text","value":"bar"}]},{"type":"text","value":" folder."}]}]},{"type":"element","tag":"h3","props":{"id":"cookiename"},"children":[{"type":"element","tag":"code","props":{"className":""},"children":[{"type":"text","value":"cookieName"}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Default: "},{"type":"element","tag":"code","props":{"className":""},"children":[{"type":"text","value":"sb"}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Cookie name used for storing access and refresh tokens, added in front of "},{"type":"element","tag":"code","props":{"className":""},"children":[{"type":"text","value":"-access-token"}]},{"type":"text","value":" and "},{"type":"element","tag":"code","props":{"className":""},"children":[{"type":"text","value":"-refresh-token"}]},{"type":"text","value":" to form the full cookie name e.g. "},{"type":"element","tag":"code","props":{"className":""},"children":[{"type":"text","value":"sb-access-token"}]}]},{"type":"element","tag":"h3","props":{"id":"cookieoptions"},"children":[{"type":"text","value":"cookieOptions"}]},{"type":"element","tag":"pre","props":{"className":"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","code":" cookieOptions: {\n maxAge: 60 * 60 * 8,\n sameSite: 'lax',\n secure: true\n }\n","language":"ts","meta":"","style":""},"children":[{"type":"element","tag":"code","props":{"__ignoreMap":""},"children":[{"type":"element","tag":"span","props":{"class":"line","line":1},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B"},"children":[{"type":"text","value":" cookieOptions"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":2},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B"},"children":[{"type":"text","value":" maxAge"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C"},"children":[{"type":"text","value":" 60"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" *"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C"},"children":[{"type":"text","value":" 60"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" *"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C"},"children":[{"type":"text","value":" 8"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":",\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":3},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B"},"children":[{"type":"text","value":" sameSite"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" '"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"lax"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":",\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":4},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B"},"children":[{"type":"text","value":" secure"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#FF5370;--shiki-default:#FF9CAC;--shiki-dark:#FF9CAC"},"children":[{"type":"text","value":" true\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":5},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" }\n"}]}]}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Options for cookies used to share tokens between server and client, refer to "},{"type":"element","tag":"a","props":{"href":"https://nuxt.com/docs/api/composables/use-cookie#options","rel":["nofollow"]},"children":[{"type":"text","value":"cookieOptions"}]},{"type":"text","value":" for available settings. Please note that the lifetime set here does not determine the Supabase session lifetime."}]},{"type":"element","tag":"h3","props":{"id":"clientoptions"},"children":[{"type":"element","tag":"code","props":{"className":""},"children":[{"type":"text","value":"clientOptions"}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Default:"}]},{"type":"element","tag":"pre","props":{"className":"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","code":" clientOptions: {\n auth: {\n flowType: 'pkce',\n detectSessionInUrl: true,\n persistSession: true,\n autoRefreshToken: true\n },\n }\n","language":"ts","meta":"","style":""},"children":[{"type":"element","tag":"code","props":{"__ignoreMap":""},"children":[{"type":"element","tag":"span","props":{"class":"line","line":1},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B"},"children":[{"type":"text","value":" clientOptions"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":2},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B"},"children":[{"type":"text","value":" auth"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":3},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B"},"children":[{"type":"text","value":" flowType"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" '"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"pkce"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":",\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":4},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B"},"children":[{"type":"text","value":" detectSessionInUrl"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#FF5370;--shiki-default:#FF9CAC;--shiki-dark:#FF9CAC"},"children":[{"type":"text","value":" true"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":",\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":5},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B"},"children":[{"type":"text","value":" persistSession"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#FF5370;--shiki-default:#FF9CAC;--shiki-dark:#FF9CAC"},"children":[{"type":"text","value":" true"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":",\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":6},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B"},"children":[{"type":"text","value":" autoRefreshToken"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#FF5370;--shiki-default:#FF9CAC;--shiki-dark:#FF9CAC"},"children":[{"type":"text","value":" true\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":7},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" },\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":8},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" }\n"}]}]}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Supabase client options "},{"type":"element","tag":"a","props":{"href":"https://supabase.com/docs/reference/javascript/initializing#parameters","rel":["nofollow"]},"children":[{"type":"text","value":"available here"}]},{"type":"text","value":"."}]},{"type":"element","tag":"h2","props":{"id":"versions"},"children":[{"type":"text","value":"Versions"}]},{"type":"element","tag":"p","props":{},"children":[{"type":"element","tag":"code","props":{"className":""},"children":[{"type":"text","value":"0.1.x"}]},{"type":"text","value":" versions are wrapped around "},{"type":"element","tag":"code","props":{"className":""},"children":[{"type":"text","value":"supabase-js v1"}]},{"type":"text","value":".\n"},{"type":"element","tag":"br","props":{},"children":[]},{"type":"element","tag":"code","props":{"className":""},"children":[{"type":"text","value":"1.x.x"}]},{"type":"text","value":" versions are wrapped around "},{"type":"element","tag":"code","props":{"className":""},"children":[{"type":"text","value":"supabase-js v2"}]},{"type":"text","value":"."}]},{"type":"element","tag":"h2","props":{"id":"demo"},"children":[{"type":"text","value":"Demo"}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"A live demo is made for see this module in action on "},{"type":"element","tag":"a","props":{"href":"https://n3-supabase.netlify.app","rel":["nofollow"]},"children":[{"type":"text","value":"n3-supabase.netlify.app"}]},{"type":"text","value":", read more in the "},{"type":"element","tag":"a","props":{"href":"/demo"},"children":[{"type":"text","value":"demo section"}]},{"type":"text","value":"."}]},{"type":"element","tag":"p","props":{},"children":[{"type":"element","tag":"a","props":{"href":"https://n3-supabase.netlify.app","rel":["nofollow"]},"children":[{"type":"element","tag":"img","props":{"alt":"Supabase demo with Nuxt 3","src":"https://user-images.githubusercontent.com/904724/160422461-8f87500a-8dec-4413-86b2-ba04e1b2d17b.png"},"children":[]}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Also checkout the "},{"type":"element","tag":"a","props":{"href":"https://www.youtube.com/watch?v=jIyiRT6zT8Q","rel":["nofollow"]},"children":[{"type":"text","value":"YouTube video"}]},{"type":"text","value":" about its usage in a live demo."}]},{"type":"element","tag":"style","props":{},"children":[{"type":"text","value":"html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}"}]}],"toc":{"title":"","searchDepth":2,"depth":2,"links":[{"id":"installation","depth":2,"text":"Installation"},{"id":"options","depth":2,"text":"Options","children":[{"id":"url","depth":3,"text":"url"},{"id":"key","depth":3,"text":"key"},{"id":"servicekey","depth":3,"text":"serviceKey"},{"id":"redirect","depth":3,"text":"redirect"},{"id":"redirectoptions","depth":3,"text":"redirectOptions"},{"id":"cookiename","depth":3,"text":"cookieName"},{"id":"cookieoptions","depth":3,"text":"cookieOptions"},{"id":"clientoptions","depth":3,"text":"clientOptions"}]},{"id":"versions","depth":2,"text":"Versions"},{"id":"demo","depth":2,"text":"Demo"}]}},"_type":"markdown","_id":"content:2.get-started.md","_source":"content","_file":"2.get-started.md","_extension":"md"},{"_path":"/authentication","_dir":"","_draft":false,"_partial":false,"_locale":"","title":"Authentication","description":"Authenticate your user thanks to the PKCE Oauth protocol that enables secure exchange of refresh and access tokens between an application and the authorization server","icon":"heroicons:lock-closed","body":{"type":"root","children":[{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"With the default options, the module requires a log-in page and a confirm page to handle the "},{"type":"element","tag":"a","props":{"href":"https://supabase.com/docs/guides/resources/glossary#pkce","rel":["nofollow"]},"children":[{"type":"text","value":"PKCE authorization code flow"}]},{"type":"text","value":". If you want to understand how it works under the hood, you can read this "},{"type":"element","tag":"a","props":{"href":"https://supabase.com/docs/guides/auth/server-side-rendering#understanding-the-authentication-flow","rel":["nofollow"]},"children":[{"type":"text","value":"section"}]},{"type":"text","value":"."}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"All you need to do is to create a "},{"type":"element","tag":"code","props":{"className":""},"children":[{"type":"text","value":"login.vue"}]},{"type":"text","value":" and "},{"type":"element","tag":"code","props":{"className":""},"children":[{"type":"text","value":"confirm.vue"}]},{"type":"text","value":" page in the "},{"type":"element","tag":"code","props":{"className":""},"children":[{"type":"text","value":"pages"}]},{"type":"text","value":" folder."}]},{"type":"element","tag":"callout","props":{"icon":"i-heroicons-light-bulb"},"children":[{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"For advanced users who want to implement the auth behaviour themselves, you can disable or override the "},{"type":"element","tag":"a","props":{"href":"/get-started#redirect"},"children":[{"type":"text","value":"redirect options"}]},{"type":"text","value":"."}]}]},{"type":"element","tag":"h2","props":{"id":"log-in-page-login"},"children":[{"type":"text","value":"Log-in page - "},{"type":"element","tag":"code","props":{"className":""},"children":[{"type":"text","value":"/login"}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Each time a user is trying to access a page that needs authentication, he will automatically be redirected to the configured log in page. If you want to allow access to \"public\" page, you just need to add them in the "},{"type":"element","tag":"a","props":{"href":"/get-started#redirectoptions"},"children":[{"type":"text","value":"exclude"}]},{"type":"text","value":" redirect option."}]},{"type":"element","tag":"callout","props":{"icon":"i-heroicons-exclamation-triangle-20-solid","color":"amber"},"children":[{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Ensure to activate the authentication providers you want in the Supabase Dashboard under "},{"type":"element","tag":"code","props":{"className":""},"children":[{"type":"text","value":"Authentication -> Providers"}]},{"type":"text","value":"."}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"The log-in page initiates the log-in method(s) you choose from the "},{"type":"element","tag":"a","props":{"href":"https://supabase.com/docs/reference/javascript/auth-signinwithpassword","rel":["nofollow"]},"children":[{"type":"text","value":"available authorization methods"}]},{"type":"text","value":" provided by Supabase, it could looks like:"}]},{"type":"element","tag":"pre","props":{"className":"language-vue shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","code":"\n\n","filename":"pages/login.vue","language":"vue","meta":"","style":""},"children":[{"type":"element","tag":"code","props":{"__ignoreMap":""},"children":[{"type":"element","tag":"span","props":{"class":"line","line":1},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"<"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"script"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" setup"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" lang"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"\""}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"ts"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"\""}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":">\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":2},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":"const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" supabase "}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" useSupabaseClient"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"()\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":3},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":"const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" email "}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" ref"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"''"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":")\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":4},"children":[{"type":"element","tag":"span","props":{"emptyLinePlaceholder":true},"children":[{"type":"text","value":"\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":5},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":"const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" signInWithOtp "}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" async"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" ()"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" =>"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":6},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" error"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" }"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" ="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" await"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" supabase"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"."}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"auth"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"."}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":"signInWithOtp"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"{\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":7},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":" email"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" email"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"."}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"value"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":",\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":8},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":" options"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":9},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":" emailRedirectTo"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" '"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"http://localhost:3000/confirm"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":",\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":10},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" }\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":11},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" }"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":")\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":12},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" if"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":" ("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"error"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":") "}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"console"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"."}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":"log"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"error"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":")\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":13},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"}\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":14},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":15},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"<"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"template"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":">\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":16},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" <"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"div"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":">\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":17},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" <"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"button"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" @click"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"\""}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"signInWithOtp"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"\""}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":">\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":18},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" Sign In with E-Mail\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":19},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" \n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":20},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" <"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"input\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":21},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" v-model"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"\""}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"email"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"\"\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":22},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" type"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"\""}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"email"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"\"\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":23},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" />\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":24},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" \n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":25},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"\n"}]}]}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Once the authorization flow is triggered using the "},{"type":"element","tag":"code","props":{"className":""},"children":[{"type":"text","value":"auth"}]},{"type":"text","value":" wrapper of the "},{"type":"element","tag":"a","props":{"href":"/usage/composables/usesupabaseclient"},"children":[{"type":"text","value":"useSupabaseClient"}]},{"type":"text","value":" composable, the session management is handled automatically and the user will be redirected to the page you specify in the redirect option ("},{"type":"element","tag":"code","props":{"className":""},"children":[{"type":"text","value":"/confirm"}]},{"type":"text","value":" by default)."}]},{"type":"element","tag":"h2","props":{"id":"confirm-page-confirm"},"children":[{"type":"text","value":"Confirm page - "},{"type":"element","tag":"code","props":{"className":""},"children":[{"type":"text","value":"/confirm"}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"The confirmation page receives the supabase callback. From there you can check the user value and redirect to the appropriate page."}]},{"type":"element","tag":"callout","props":{"icon":"i-heroicons-light-bulb"},"children":[{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"The redirect URL must be configured in your Supabase dashboard under "},{"type":"element","tag":"code","props":{"className":""},"children":[{"type":"text","value":"Authentication -> URL Configuration -> Redirect URLs"}]},{"type":"text","value":"."}]}]},{"type":"element","tag":"pre","props":{"className":"language-vue shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","code":"\n\n","filename":"pages/confirm.vue","language":"vue","meta":"","style":""},"children":[{"type":"element","tag":"code","props":{"__ignoreMap":""},"children":[{"type":"element","tag":"span","props":{"class":"line","line":1},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"<"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"script"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" setup"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" lang"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"\""}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"ts"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"\""}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":">\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":2},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":"const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" user "}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" useSupabaseUser"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"()\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":3},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":"watch"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"(user"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":","}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" ()"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" =>"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":4},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" if"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":" ("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"user"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"."}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"value"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":") "}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"{\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":5},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" return"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" navigateTo"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"/"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":")\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":6},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" }\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":7},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"},"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":" immediate"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#FF5370;--shiki-default:#FF9CAC;--shiki-dark:#FF9CAC"},"children":[{"type":"text","value":" true"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" }"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":")\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":8},"children":[{"type":"element","tag":"span","props":{"emptyLinePlaceholder":true},"children":[{"type":"text","value":"\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":9},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":10},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"<"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"template"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":">\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":11},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" <"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"div"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":">"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"Waiting for login..."}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":12},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"\n"}]}]}]}]},{"type":"element","tag":"style","props":{},"children":[{"type":"text","value":"html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}"}]}],"toc":{"title":"","searchDepth":2,"depth":2,"links":[{"id":"log-in-page-login","depth":2,"text":"Log-in page - /login"},{"id":"confirm-page-confirm","depth":2,"text":"Confirm page - /confirm"}]}},"_type":"markdown","_id":"content:3.authentication.md","_source":"content","_file":"3.authentication.md","_extension":"md"},{"_path":"/usage/_dir","_dir":"usage","_draft":false,"_partial":true,"_locale":"","title":"Usage","icon":"heroicons:book-open","_id":"content:4.usage:_dir.yml","_type":"yaml","_source":"content","_file":"4.usage/_dir.yml","_extension":"yml"},{"_path":"/usage/composables/_dir","_dir":"composables","_draft":false,"_partial":true,"_locale":"","title":"Vue composables","_id":"content:4.usage:composables:_dir.yml","_type":"yaml","_source":"content","_file":"4.usage/composables/_dir.yml","_extension":"yml"},{"_path":"/usage/composables/usesupabaseclient","_dir":"composables","_draft":false,"_partial":false,"_locale":"","title":"useSupabaseClient","description":"Make requests to the Supabase API with the useSupabaseClient composable","body":{"type":"root","children":[{"type":"element","tag":"p","props":{},"children":[{"type":"element","tag":"a","props":{"href":"https://nuxt.com/docs/guide/directory-structure/composables","rel":["nofollow"]},"children":[{"type":"text","value":"Auto-import"}]},{"type":"text","value":" your client inside your vue files."}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"This composable is using "},{"type":"element","tag":"a","props":{"href":"https://github.com/supabase/supabase-js/","rel":["nofollow"]},"children":[{"type":"text","value":"supabase-js"}]},{"type":"text","value":" under the hood, it gives access to the "},{"type":"element","tag":"a","props":{"href":"https://supabase.com/docs/reference/javascript/initializing","rel":["nofollow"]},"children":[{"type":"text","value":"Supabase client"}]},{"type":"text","value":"."}]},{"type":"element","tag":"blockquote","props":{},"children":[{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"The client is initialized with the "},{"type":"element","tag":"code","props":{"className":""},"children":[{"type":"text","value":"SUPABASE_KEY"}]},{"type":"text","value":" you must have in your "},{"type":"element","tag":"code","props":{"className":""},"children":[{"type":"text","value":".env"}]},{"type":"text","value":" file. It establishes the connection with the database and make use of user JWT to apply "},{"type":"element","tag":"a","props":{"href":"https://supabase.com/docs/learn/auth-deep-dive/auth-row-level-security","rel":["nofollow"]},"children":[{"type":"text","value":"RLS Policies"}]},{"type":"text","value":" implemented in Supabase. If you want to bypass policies, you can use the "},{"type":"element","tag":"a","props":{"href":"/usage/services/serversupabaseservicerole"},"children":[{"type":"text","value":"serverSupabaseServiceRole"}]},{"type":"text","value":"."}]}]},{"type":"element","tag":"h2","props":{"id":"authentication"},"children":[{"type":"text","value":"Authentication"}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"The useSupabaseClient composable is providing all methods to manage authorization under "},{"type":"element","tag":"code","props":{"className":""},"children":[{"type":"text","value":"useSupabaseClient().auth"}]},{"type":"text","value":". For more details please see the "},{"type":"element","tag":"a","props":{"href":"https://supabase.com/docs/reference/javascript/auth-api","rel":["nofollow"]},"children":[{"type":"text","value":"supabase-js auth documentation"}]},{"type":"text","value":". Here is an example for signing in and out:"}]},{"type":"element","tag":"callout","props":{"icon":"i-heroicons-light-bulb"},"children":[{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"If you want a full explanation on how to handle the authentication process, please read this "},{"type":"element","tag":"a","props":{"href":"/get-started#handle-authentication"},"children":[{"type":"text","value":"section"}]},{"type":"text","value":"."}]}]},{"type":"element","tag":"pre","props":{"className":"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","code":"\n","language":"ts","meta":"","style":""},"children":[{"type":"element","tag":"code","props":{"__ignoreMap":""},"children":[{"type":"element","tag":"span","props":{"class":"line","line":1},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"<"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"script setup lang"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"\""}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"ts"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"\""}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":">\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":2},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":"const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" supabase "}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" useSupabaseClient"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"()\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":3},"children":[{"type":"element","tag":"span","props":{"emptyLinePlaceholder":true},"children":[{"type":"text","value":"\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":4},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":"const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" signInWithOAuth "}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" async"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" ()"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" =>"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":5},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" error"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" }"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" ="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" await"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" supabase"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"."}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"auth"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"."}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":"signInWithOAuth"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"{\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":6},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":" provider"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" '"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"github"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":",\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":7},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":" options"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":8},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":" redirectTo"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" '"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"http://localhost:3000/confirm"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":",\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":9},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" },\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":10},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" }"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":")\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":11},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" if"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":" ("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"error"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":") "}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"console"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"."}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":"log"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"error"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":")\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":12},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"}\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":13},"children":[{"type":"element","tag":"span","props":{"emptyLinePlaceholder":true},"children":[{"type":"text","value":"\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":14},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":"const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" signOut "}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" async"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" ()"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" =>"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":15},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" error"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" }"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" ="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" await"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" supabase"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"."}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"auth"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"."}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":"signOut"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"()\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":16},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" if"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":" ("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"error"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":") "}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"console"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"."}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":"log"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"error"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":")\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":17},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"}\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":18},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"\n"}]}]}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Please also take a look at "},{"type":"element","tag":"a","props":{"href":"/get-started"},"children":[{"type":"text","value":"Get Started"}]},{"type":"text","value":" for the authorization flow."}]},{"type":"element","tag":"h2","props":{"id":"database-request"},"children":[{"type":"text","value":"Database Request"}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Please check "},{"type":"element","tag":"a","props":{"href":"https://supabase.com/docs/reference/javascript/select","rel":["nofollow"]},"children":[{"type":"text","value":"Supabase"}]},{"type":"text","value":" documentation to fully use the power of Supabase client."}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Here is an example of a fetch using the "},{"type":"element","tag":"code","props":{"className":""},"children":[{"type":"text","value":"select"}]},{"type":"text","value":" method with Nuxt 3 "},{"type":"element","tag":"a","props":{"href":"https://nuxt.com/docs/getting-started/data-fetching#useasyncdata","rel":["nofollow"]},"children":[{"type":"text","value":"useAsyncData"}]},{"type":"text","value":" composable."}]},{"type":"element","tag":"pre","props":{"className":"language-vue shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","code":"\n","language":"vue","meta":"","style":""},"children":[{"type":"element","tag":"code","props":{"__ignoreMap":""},"children":[{"type":"element","tag":"span","props":{"class":"line","line":1},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"<"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"script"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" setup"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" lang"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"\""}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"ts"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"\""}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":">\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":2},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":"const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" client "}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" useSupabaseClient"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"()\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":3},"children":[{"type":"element","tag":"span","props":{"emptyLinePlaceholder":true},"children":[{"type":"text","value":"\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":4},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":"const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":" data"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" restaurant "}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"}"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" ="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" await"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" useAsyncData"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"restaurant"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":","}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" async"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" ()"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" =>"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":5},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" data"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" }"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" ="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" await"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" client"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"."}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":"from"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"restaurants"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":")"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"."}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":"select"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"name, location"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":")"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"."}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":"eq"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"name"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":","}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" '"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"My Restaurant Name"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":")"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"."}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":"single"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"()\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":6},"children":[{"type":"element","tag":"span","props":{"emptyLinePlaceholder":true},"children":[{"type":"text","value":"\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":7},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" return"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" data\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":8},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"}"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":")\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":9},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"\n"}]}]}]}]},{"type":"element","tag":"h2","props":{"id":"realtime"},"children":[{"type":"text","value":"Realtime"}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Based on "},{"type":"element","tag":"a","props":{"href":"https://github.com/supabase/realtime","rel":["nofollow"]},"children":[{"type":"text","value":"Supabase Realtime"}]},{"type":"text","value":", listen to changes in your PostgreSQL Database and broadcasts them over WebSockets."}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"To enable it, make sure you have turned on the "},{"type":"element","tag":"a","props":{"href":"https://supabase.com/docs/guides/api#realtime-api","rel":["nofollow"]},"children":[{"type":"text","value":"Realtime API"}]},{"type":"text","value":" for your table."}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Then, listen to changes directly in your vue page / component:"}]},{"type":"element","tag":"pre","props":{"className":"language-vue shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","code":"\n","language":"vue","meta":"","style":""},"children":[{"type":"element","tag":"code","props":{"__ignoreMap":""},"children":[{"type":"element","tag":"span","props":{"class":"line","line":1},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"<"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"script"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" setup"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" lang"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"\""}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"ts"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"\""}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":">\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":2},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":"import"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" type"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" RealtimeChannel"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" }"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" from"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" '"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"@supabase/supabase-js"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":3},"children":[{"type":"element","tag":"span","props":{"emptyLinePlaceholder":true},"children":[{"type":"text","value":"\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":4},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":"const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" client "}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" useSupabaseClient"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"()\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":5},"children":[{"type":"element","tag":"span","props":{"emptyLinePlaceholder":true},"children":[{"type":"text","value":"\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":6},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":"let"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" realtimeChannel"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B"},"children":[{"type":"text","value":" RealtimeChannel\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":7},"children":[{"type":"element","tag":"span","props":{"emptyLinePlaceholder":true},"children":[{"type":"text","value":"\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":8},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#546E7A;--shiki-dark:#676E95;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":"// Fetch collaborators and get the refresh method provided by useAsyncData\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":9},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":"const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":" data"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" collaborators"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":","}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":" refresh"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" refreshCollaborators "}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"}"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" ="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" await"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" useAsyncData"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"collaborators"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":","}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" async"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" ()"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" =>"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":10},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" data"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" }"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" ="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" await"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" client"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"."}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":"from"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"collaborators"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":")"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"."}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":"select"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"name"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":")\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":11},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" return"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" data\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":12},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"}"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":")\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":13},"children":[{"type":"element","tag":"span","props":{"emptyLinePlaceholder":true},"children":[{"type":"text","value":"\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":14},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#546E7A;--shiki-dark:#676E95;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":"// Once page is mounted, listen to changes on the `collaborators` table and refresh collaborators when receiving event\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":15},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":"onMounted"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"()"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" =>"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":16},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#546E7A;--shiki-dark:#676E95;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" // Real time listener for new workouts\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":17},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" realtimeChannel"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" ="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" client"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"."}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":"channel"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"public:collaborators"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":")"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"."}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":"on"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"(\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":18},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" '"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"postgres_changes"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":",\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":19},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":" event"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" '"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"*"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":","}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":" schema"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" '"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"public"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":","}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":" table"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" '"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"collaborators"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" },\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":20},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" ()"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" =>"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" refreshCollaborators"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"()\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":21},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":" )\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":22},"children":[{"type":"element","tag":"span","props":{"emptyLinePlaceholder":true},"children":[{"type":"text","value":"\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":23},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" realtimeChannel"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"."}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":"subscribe"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"()\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":24},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"}"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":")\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":25},"children":[{"type":"element","tag":"span","props":{"emptyLinePlaceholder":true},"children":[{"type":"text","value":"\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":26},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#546E7A;--shiki-dark:#676E95;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" // Don't forget to unsubscribe when user left the page\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":27},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":"onUnmounted"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"()"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" =>"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":28},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" client"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"."}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":"removeChannel"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"realtimeChannel"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":")\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":29},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"}"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":")\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":30},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"\n"}]}]}]}]},{"type":"element","tag":"h2","props":{"id":"typescript"},"children":[{"type":"text","value":"Typescript"}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"You can pass Database typings to the client. Check Supabase "},{"type":"element","tag":"a","props":{"href":"https://supabase.com/docs/reference/javascript/release-notes#typescript-support","rel":["nofollow"]},"children":[{"type":"text","value":"documentation"}]},{"type":"text","value":" for further information."}]},{"type":"element","tag":"pre","props":{"className":"language-vue shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","code":"\n","language":"vue","meta":"","style":""},"children":[{"type":"element","tag":"code","props":{"__ignoreMap":""},"children":[{"type":"element","tag":"span","props":{"class":"line","line":1},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"<"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"script"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" setup"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" lang"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"\""}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"ts"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"\""}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":">\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":2},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":"import"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" type"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" Database"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" }"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" from"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" '"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"~/types"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":3},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":"const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" client "}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" useSupabaseClient"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"<"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B"},"children":[{"type":"text","value":"Database"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":">"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"()\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":4},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"\n"}]}]}]}]},{"type":"element","tag":"style","props":{},"children":[{"type":"text","value":"html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}"}]}],"toc":{"title":"","searchDepth":2,"depth":2,"links":[{"id":"authentication","depth":2,"text":"Authentication"},{"id":"database-request","depth":2,"text":"Database Request"},{"id":"realtime","depth":2,"text":"Realtime"},{"id":"typescript","depth":2,"text":"Typescript"}]}},"_type":"markdown","_id":"content:4.usage:composables:useSupabaseClient.md","_source":"content","_file":"4.usage/composables/useSupabaseClient.md","_extension":"md"},{"_path":"/usage/composables/usesupabaseuser","_dir":"composables","_draft":false,"_partial":false,"_locale":"","title":"useSupabaseUser","description":"Auto import and use your Supabase user with the useSupabaseUser composable","body":{"type":"root","children":[{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Once logged in, you can "},{"type":"element","tag":"a","props":{"href":"https://nuxt.com/docs/guide/directory-structure/composables","rel":["nofollow"]},"children":[{"type":"text","value":"auto-import"}]},{"type":"text","value":" your user everywhere inside your vue files."}]},{"type":"element","tag":"pre","props":{"className":"language-vue shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","code":"\n","language":"vue","meta":"","style":""},"children":[{"type":"element","tag":"code","props":{"__ignoreMap":""},"children":[{"type":"element","tag":"span","props":{"class":"line","line":1},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"<"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"script"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" setup"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":">\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":2},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":"const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" user "}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" useSupabaseUser"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"()\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":3},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"\n"}]}]}]}]},{"type":"element","tag":"h2","props":{"id":"auth-middleware"},"children":[{"type":"text","value":"Auth middleware"}]},{"type":"element","tag":"callout","props":{"icon":"i-heroicons-light-bulb"},"children":[{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"By default, the module is implementing a redirect middleware. All pages of your application are automatically redirected to the "},{"type":"element","tag":"a","props":{"href":"/get-started#redirectoptions"},"children":[{"type":"text","value":"login"}]},{"type":"text","value":" page. However, you can allow redirection to \"public\" pages by setting the "},{"type":"element","tag":"a","props":{"href":"/get-started#redirectoptions"},"children":[{"type":"text","value":"exclude"}]},{"type":"text","value":" redirect option."}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"If the "},{"type":"element","tag":"a","props":{"href":"/get-started#redirect"},"children":[{"type":"text","value":"redirect"}]},{"type":"text","value":" option is disabled, you can protect your authenticated routes by creating a custom middleware in your project, here is an example:"}]},{"type":"element","tag":"pre","props":{"className":"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","code":"export default defineNuxtRouteMiddleware((to, _from) => {\n const user = useSupabaseUser()\n\n if (!user.value) {\n return navigateTo('/login')\n }\n})\n","filename":"middleware/auth.ts","language":"ts","meta":"","style":""},"children":[{"type":"element","tag":"code","props":{"__ignoreMap":""},"children":[{"type":"element","tag":"span","props":{"class":"line","line":1},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":"export"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" default"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" defineNuxtRouteMiddleware"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":"to"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":","}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" _from"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":")"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" =>"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":2},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" user"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" ="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" useSupabaseUser"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"()\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":3},"children":[{"type":"element","tag":"span","props":{"emptyLinePlaceholder":true},"children":[{"type":"text","value":"\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":4},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" if"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":" ("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"!"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"user"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"."}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"value"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":") "}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"{\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":5},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" return"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" navigateTo"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"/login"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":")\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":6},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" }\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":7},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"}"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":")\n"}]}]}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Then you can reference your middleware in your page with:"}]},{"type":"element","tag":"pre","props":{"className":"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","code":"definePageMeta({\n middleware: 'auth'\n})\n","filename":"pages/dashboard.vue","language":"ts","meta":"","style":""},"children":[{"type":"element","tag":"code","props":{"__ignoreMap":""},"children":[{"type":"element","tag":"span","props":{"class":"line","line":1},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":"definePageMeta"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"{\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":2},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":" middleware"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" '"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"auth"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":3},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"}"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":")\n"}]}]}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Learn more about "},{"type":"element","tag":"a","props":{"href":"https://nuxt.com/docs/guide/directory-structure/middleware","rel":["nofollow"]},"children":[{"type":"text","value":"Nuxt middleware"}]},{"type":"text","value":" and "},{"type":"element","tag":"a","props":{"href":"https://nuxt.com/docs/guide/directory-structure/pages#page-metadata","rel":["nofollow"]},"children":[{"type":"text","value":"definePageMeta"}]},{"type":"text","value":"."}]},{"type":"element","tag":"style","props":{},"children":[{"type":"text","value":"html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}"}]}],"toc":{"title":"","searchDepth":2,"depth":2,"links":[{"id":"auth-middleware","depth":2,"text":"Auth middleware"}]}},"_type":"markdown","_id":"content:4.usage:composables:useSupabaseUser.md","_source":"content","_file":"4.usage/composables/useSupabaseUser.md","_extension":"md"},{"_path":"/usage/services/_dir","_dir":"services","_draft":false,"_partial":true,"_locale":"","title":"Server services","_id":"content:4.usage:services:_dir.yml","_type":"yaml","_source":"content","_file":"4.usage/services/_dir.yml","_extension":"yml"},{"_path":"/usage/services/serversupabaseclient","_dir":"services","_draft":false,"_partial":false,"_locale":"","title":"serverSupabaseClient","description":"Make requests to the Supabase API on server side with the serverSupabaseClient service","body":{"type":"root","children":[{"type":"element","tag":"callout","props":{"color":"amber","icon":"i-heroicons-exclamation-triangle-20-solid"},"children":[{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"This section assumes you're familiar with "},{"type":"element","tag":"a","props":{"href":"https://v3.nuxtjs.org/guide/concepts/server-engine","rel":["nofollow"]},"children":[{"type":"text","value":"Nitro"}]},{"type":"text","value":", the server engine powered by Nuxt."}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"This function is working similary as the "},{"type":"element","tag":"a","props":{"href":"/usage/composables/usesupabaseclient"},"children":[{"type":"text","value":"useSupabaseClient"}]},{"type":"text","value":" composable but is designed to be used in "},{"type":"element","tag":"a","props":{"href":"https://nuxt.com/docs/guide/directory-structure/server#server-routes","rel":["nofollow"]},"children":[{"type":"text","value":"server routes"}]},{"type":"text","value":"."}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Define your server route and just import the "},{"type":"element","tag":"code","props":{"className":""},"children":[{"type":"text","value":"serverSupabaseClient"}]},{"type":"text","value":" from "},{"type":"element","tag":"code","props":{"className":""},"children":[{"type":"text","value":"#supabase/server"}]},{"type":"text","value":". Be careful, "},{"type":"element","tag":"code","props":{"className":""},"children":[{"type":"text","value":"serverSupabaseClient"}]},{"type":"text","value":" is returning a promise."}]},{"type":"element","tag":"pre","props":{"className":"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","code":"import { serverSupabaseClient } from '#supabase/server'\n\nexport default eventHandler(async (event) => {\n const client = await serverSupabaseClient(event)\n\n const { data } = await client.from('libraries').select('*')\n\n return { libraries: data }\n})\n","filename":"server/api/libraries.ts","language":"ts","meta":"","style":""},"children":[{"type":"element","tag":"code","props":{"__ignoreMap":""},"children":[{"type":"element","tag":"span","props":{"class":"line","line":1},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":"import"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" serverSupabaseClient"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" }"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" from"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" '"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"#supabase/server"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":2},"children":[{"type":"element","tag":"span","props":{"emptyLinePlaceholder":true},"children":[{"type":"text","value":"\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":3},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":"export"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" default"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" eventHandler"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":"async"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" ("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":"event"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":")"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" =>"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":4},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" client"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" ="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" await"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" serverSupabaseClient"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"event"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":")\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":5},"children":[{"type":"element","tag":"span","props":{"emptyLinePlaceholder":true},"children":[{"type":"text","value":"\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":6},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" data"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" }"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" ="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" await"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" client"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"."}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":"from"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"libraries"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":")"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"."}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":"select"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"*"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":")\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":7},"children":[{"type":"element","tag":"span","props":{"emptyLinePlaceholder":true},"children":[{"type":"text","value":"\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":8},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" return"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":" libraries"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" data"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" }\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":9},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"}"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":")\n"}]}]}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Then call your API route from any vue file:"}]},{"type":"element","tag":"pre","props":{"className":"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","code":"const fetchLibrary = async () => {\n const { libraries } = await $fetch('/api/libraries')\n}\n","filename":"pages/index.vue","language":"ts","meta":"","style":""},"children":[{"type":"element","tag":"code","props":{"__ignoreMap":""},"children":[{"type":"element","tag":"span","props":{"class":"line","line":1},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":"const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" fetchLibrary "}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" async"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" ()"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" =>"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":2},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" libraries"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" }"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" ="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" await"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" $fetch"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"/api/libraries"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":")\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":3},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"}\n"}]}]}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Be careful, if you want to call this route on SSR, please read this "},{"type":"element","tag":"a","props":{"href":"https://nuxt.com/docs/getting-started/data-fetching#isomorphic-fetch-and-fetch","rel":["nofollow"]},"children":[{"type":"text","value":"section"}]},{"type":"text","value":", you must send your browser cookies including your supabase token."}]},{"type":"element","tag":"pre","props":{"className":"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","code":"const { data: { libraries }} = await useFetch('/api/libraries', {\n headers: useRequestHeaders(['cookie'])\n})\n","filename":"pages/index.vue","language":"ts","meta":"","style":""},"children":[{"type":"element","tag":"code","props":{"__ignoreMap":""},"children":[{"type":"element","tag":"span","props":{"class":"line","line":1},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":"const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":" data"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" libraries "}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"}}"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" ="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" await"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" useFetch"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"/api/libraries"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":","}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":2},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":" headers"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" useRequestHeaders"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"(["}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"cookie"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"])\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":3},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"}"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":")\n"}]}]}]}]},{"type":"element","tag":"style","props":{},"children":[{"type":"text","value":"html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}"}]}],"toc":{"title":"","searchDepth":2,"depth":2,"links":[]}},"_type":"markdown","_id":"content:4.usage:services:1.serverSupabaseClient.md","_source":"content","_file":"4.usage/services/1.serverSupabaseClient.md","_extension":"md"},{"_path":"/usage/services/serversupabaseservicerole","_dir":"services","_draft":false,"_partial":false,"_locale":"","title":"serverServiceRole","description":"Make requests with super admin rights to the Supabase API with the serverSupabaseServiceRole service","navigation":{"title":"serverSupabaseServiceRole"},"body":{"type":"root","children":[{"type":"element","tag":"callout","props":{"color":"amber","icon":"i-heroicons-exclamation-triangle-20-solid"},"children":[{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"This section assumes you're familiar with "},{"type":"element","tag":"a","props":{"href":"https://v3.nuxtjs.org/guide/concepts/server-engine","rel":["nofollow"]},"children":[{"type":"text","value":"Nitro"}]},{"type":"text","value":", the server engine powered by Nuxt."}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"This function is designed to work only in "},{"type":"element","tag":"a","props":{"href":"https://nuxt.com/docs/guide/directory-structure/server#server-routes","rel":["nofollow"]},"children":[{"type":"text","value":"server routes"}]},{"type":"text","value":", there is no vue composable equivalent."}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"It works similary as the "},{"type":"element","tag":"a","props":{"href":"/usage/services/serversupabaseclient"},"children":[{"type":"text","value":"serverSupabaseClient"}]},{"type":"text","value":" but it provides a client with super admin rights that can bypass your "},{"type":"element","tag":"a","props":{"href":"https://supabase.com/docs/guides/auth/row-level-security","rel":["nofollow"]},"children":[{"type":"text","value":"Row Level Security"}]},{"type":"text","value":"."}]},{"type":"element","tag":"blockquote","props":{},"children":[{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"The client is initialized with the "},{"type":"element","tag":"code","props":{"className":""},"children":[{"type":"text","value":"SUPABASE_SERVICE_KEY"}]},{"type":"text","value":" you must have in your "},{"type":"element","tag":"code","props":{"className":""},"children":[{"type":"text","value":".env"}]},{"type":"text","value":" file. Checkout the doc if you want to know more about "},{"type":"element","tag":"a","props":{"href":"https://supabase.com/docs/learn/auth-deep-dive/auth-deep-dive-jwts#jwts-in-supabase","rel":["nofollow"]},"children":[{"type":"text","value":"Supabase keys"}]},{"type":"text","value":"."}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Define your server route and just import the "},{"type":"element","tag":"code","props":{"className":""},"children":[{"type":"text","value":"serverSupabaseServiceRole"}]},{"type":"text","value":" from "},{"type":"element","tag":"code","props":{"className":""},"children":[{"type":"text","value":"#supabase/server"}]},{"type":"text","value":"."}]},{"type":"element","tag":"pre","props":{"className":"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","code":"import { serverSupabaseServiceRole } from '#supabase/server'\n\nexport default eventHandler(async (event) => {\n const client = serverSupabaseServiceRole(event)\n\n const { data } = await client.from('rls-protected-table').select()\n\n return { sensitiveData: data }\n})\n","filename":"server/api/bypass-rls.ts","language":"ts","meta":"","style":""},"children":[{"type":"element","tag":"code","props":{"__ignoreMap":""},"children":[{"type":"element","tag":"span","props":{"class":"line","line":1},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":"import"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" serverSupabaseServiceRole"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" }"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" from"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" '"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"#supabase/server"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":2},"children":[{"type":"element","tag":"span","props":{"emptyLinePlaceholder":true},"children":[{"type":"text","value":"\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":3},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":"export"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" default"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" eventHandler"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":"async"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" ("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":"event"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":")"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" =>"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":4},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" client"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" ="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" serverSupabaseServiceRole"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"event"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":")\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":5},"children":[{"type":"element","tag":"span","props":{"emptyLinePlaceholder":true},"children":[{"type":"text","value":"\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":6},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" data"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" }"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" ="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" await"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" client"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"."}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":"from"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"rls-protected-table"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":")"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"."}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":"select"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"()\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":7},"children":[{"type":"element","tag":"span","props":{"emptyLinePlaceholder":true},"children":[{"type":"text","value":"\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":8},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" return"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":" sensitiveData"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" data"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" }\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":9},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"}"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":")\n"}]}]}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Then call your API route from any vue file:"}]},{"type":"element","tag":"pre","props":{"className":"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","code":"const fetchSensitiveData = async () => {\n const { sensitiveData } = await useFetch('/api/bypass-rls')\n}\n","filename":"pages/index.vue","language":"ts","meta":"","style":""},"children":[{"type":"element","tag":"code","props":{"__ignoreMap":""},"children":[{"type":"element","tag":"span","props":{"class":"line","line":1},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":"const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" fetchSensitiveData "}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" async"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" ()"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" =>"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":2},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" sensitiveData"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" }"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" ="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" await"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" useFetch"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"/api/bypass-rls"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":")\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":3},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"}\n"}]}]}]}]},{"type":"element","tag":"style","props":{},"children":[{"type":"text","value":"html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}"}]}],"toc":{"title":"","searchDepth":2,"depth":2,"links":[]}},"_type":"markdown","_id":"content:4.usage:services:2.serverSupabaseServiceRole.md","_source":"content","_file":"4.usage/services/2.serverSupabaseServiceRole.md","_extension":"md"},{"_path":"/usage/services/serversupabaseuser","_dir":"services","_draft":false,"_partial":false,"_locale":"","title":"serverSupabaseUser","description":"Get your Supabase user from serverside with the serverSupabaseUser service","body":{"type":"root","children":[{"type":"element","tag":"callout","props":{"color":"amber","icon":"i-heroicons-exclamation-triangle-20-solid"},"children":[{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"This section assumes you're familiar with "},{"type":"element","tag":"a","props":{"href":"https://v3.nuxtjs.org/guide/concepts/server-engine","rel":["nofollow"]},"children":[{"type":"text","value":"Nitro"}]},{"type":"text","value":", the server engine powered by Nuxt."}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"This function is similar to the "},{"type":"element","tag":"a","props":{"href":"/usage/composables/usesupabaseuser"},"children":[{"type":"text","value":"useSupabaseUser"}]},{"type":"text","value":" composable but is used in "},{"type":"element","tag":"a","props":{"href":"https://nuxt.com/docs/guide/directory-structure/server#server-routes","rel":["nofollow"]},"children":[{"type":"text","value":"server routes"}]},{"type":"text","value":"."}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Define your server route and import the "},{"type":"element","tag":"code","props":{"className":""},"children":[{"type":"text","value":"serverSupabaseUser"}]},{"type":"text","value":" from "},{"type":"element","tag":"code","props":{"className":""},"children":[{"type":"text","value":"#supabase/server"}]},{"type":"text","value":"."}]},{"type":"element","tag":"pre","props":{"className":"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","code":"import { serverSupabaseUser } from '#supabase/server'\n\nexport default defineEventHandler(async (event) => {\n return await serverSupabaseUser(event)\n})\n","filename":"server/api/me.ts","language":"ts","meta":"","style":""},"children":[{"type":"element","tag":"code","props":{"__ignoreMap":""},"children":[{"type":"element","tag":"span","props":{"class":"line","line":1},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":"import"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" serverSupabaseUser"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" }"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" from"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" '"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"#supabase/server"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":2},"children":[{"type":"element","tag":"span","props":{"emptyLinePlaceholder":true},"children":[{"type":"text","value":"\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":3},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":"export"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" default"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" defineEventHandler"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":"async"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" ("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":"event"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":")"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" =>"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":4},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" return"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" await"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" serverSupabaseUser"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"event"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":")\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":5},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"}"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":")\n"}]}]}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Then call your api route from any vue file:"}]},{"type":"element","tag":"pre","props":{"className":"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","code":"const user = ref(null)\n\nconst fetchMe = async () => {\n user.value = await $fetch('/api/me')\n}\n","filename":"pages/index.vue","language":"ts","meta":"","style":""},"children":[{"type":"element","tag":"code","props":{"__ignoreMap":""},"children":[{"type":"element","tag":"span","props":{"class":"line","line":1},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":"const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" user "}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" ref"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"null"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":")\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":2},"children":[{"type":"element","tag":"span","props":{"emptyLinePlaceholder":true},"children":[{"type":"text","value":"\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":3},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":"const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" fetchMe "}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" async"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" ()"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" =>"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":4},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" user"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"."}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"value"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" ="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" await"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" $fetch"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"/api/me"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":")\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":5},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"}\n"}]}]}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Be careful, if you want to call this route on SSR, please read this "},{"type":"element","tag":"a","props":{"href":"https://nuxt.com/docs/getting-started/data-fetching#isomorphic-fetch-and-fetch","rel":["nofollow"]},"children":[{"type":"text","value":"section"}]},{"type":"text","value":", you must send your browser cookies including your supabase token."}]},{"type":"element","tag":"pre","props":{"className":"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","code":"const user = ref(null)\n\nconst { data } = await useFetch('/api/me', {\n headers: useRequestHeaders(['cookie'])\n})\n\nuser.value = data\n","filename":"pages/index.vue","language":"ts","meta":"","style":""},"children":[{"type":"element","tag":"code","props":{"__ignoreMap":""},"children":[{"type":"element","tag":"span","props":{"class":"line","line":1},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":"const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" user "}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" ref"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"null"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":")\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":2},"children":[{"type":"element","tag":"span","props":{"emptyLinePlaceholder":true},"children":[{"type":"text","value":"\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":3},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":"const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" data "}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"}"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" ="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" await"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" useFetch"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"/api/me"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":","}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":4},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":" headers"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" useRequestHeaders"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"(["}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"cookie"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"])\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":5},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"}"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":")\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":6},"children":[{"type":"element","tag":"span","props":{"emptyLinePlaceholder":true},"children":[{"type":"text","value":"\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":7},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"user"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"."}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"value "}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" data\n"}]}]}]}]},{"type":"element","tag":"style","props":{},"children":[{"type":"text","value":"html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}"}]}],"toc":{"title":"","searchDepth":2,"depth":2,"links":[]}},"_type":"markdown","_id":"content:4.usage:services:3.serverSupabaseUser.md","_source":"content","_file":"4.usage/services/3.serverSupabaseUser.md","_extension":"md"},{"_path":"/demo","_dir":"","_draft":false,"_partial":false,"_locale":"","title":"Demo","description":"Demonstration of using Supabase with Nuxt.","icon":"heroicons:computer-desktop-20-solid","body":{"type":"root","children":[{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Demonstration of using Supabase with Nuxt."}]},{"type":"element","tag":"p","props":{},"children":[{"type":"element","tag":"a","props":{"href":"https://n3-supabase.netlify.app","rel":["nofollow"]},"children":[{"type":"element","tag":"img","props":{"alt":"Supabase demo with Nuxt 3","src":"https://user-images.githubusercontent.com/904724/160422461-8f87500a-8dec-4413-86b2-ba04e1b2d17b.png"},"children":[]}]}]},{"type":"element","tag":"h2","props":{"id":"live-demo"},"children":[{"type":"text","value":"Live demo"}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"You can play with the demo on "},{"type":"element","tag":"a","props":{"href":"https://n3-supabase.netlify.app","rel":["nofollow"]},"children":[{"type":"text","value":"n3-supabase.netlify.app"}]}]},{"type":"element","tag":"h2","props":{"id":"running-locally"},"children":[{"type":"text","value":"Running locally"}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Follow the instruction in the "},{"type":"element","tag":"a","props":{"href":"https://github.com/nuxt-community/supabase-module/tree/main/demo","rel":["nofollow"]},"children":[{"type":"text","value":"demo Readme"}]},{"type":"text","value":"."}]},{"type":"element","tag":"h2","props":{"id":"source-code"},"children":[{"type":"text","value":"Source code"}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"The source code is available on Github in the "},{"type":"element","tag":"a","props":{"href":"https://github.com/nuxt-community/supabase-module/tree/main/demo","rel":["nofollow"]},"children":[{"type":"text","value":"demo/ directory"}]},{"type":"text","value":"."}]}],"toc":{"title":"","searchDepth":2,"depth":2,"links":[{"id":"live-demo","depth":2,"text":"Live demo"},{"id":"running-locally","depth":2,"text":"Running locally"},{"id":"source-code","depth":2,"text":"Source code"}]}},"_type":"markdown","_id":"content:5.demo.md","_source":"content","_file":"5.demo.md","_extension":"md"},{"_path":"/changelog","_dir":"","_draft":false,"_partial":false,"_locale":"","title":"Changelog","description":"Discover the latest updates of the Supabase Module","icon":"heroicons:bookmark","body":{"type":"root","children":[{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Discover the lastest updates."}]},{"type":"element","tag":"releases","props":{},"children":[]}],"toc":{"title":"","searchDepth":2,"depth":2,"links":[]}},"_type":"markdown","_id":"content:6.changelog.md","_source":"content","_file":"6.changelog.md","_extension":"md"},{"_path":"/roadmap","_dir":"","_draft":false,"_partial":false,"_locale":"","title":"Roadmap","description":"Discover our kaban board for the next release of the Supabase module.","icon":"heroicons:map","body":{"type":"root","children":[{"type":"element","tag":"volta-board","props":{"token":"eyJzdGF0dXNlcyI6WyJ0cmlhZ2UiLCJiYWNrbG9nIiwidG9kbyIsImluX3Byb2dyZXNzIiwiaW5fcmV2aWV3IiwiZG9uZSIsInJlbGVhc2VkIiwiY2FuY2VsbGVkIl0sImZpbHRlcnMiOnt9LCJvd25lciI6Im51eHQtbW9kdWxlcyIsIm5hbWUiOiJzdXBhYmFzZSJ9"},"children":[]}],"toc":{"title":"","searchDepth":2,"depth":2,"links":[]}},"_type":"markdown","_id":"content:7.roadmap.md","_source":"content","_file":"7.roadmap.md","_extension":"md"},{"_path":"/","_dir":"","_draft":false,"_partial":false,"_locale":"","title":"Nuxt Supabase - Home","description":"A supa simple wrapper around supabase-js to enable usage and integration within Nuxt.","navigation":false,"hero":{"title":"Nuxt [Supabase]{.text-primary}","description":"A supa simple wrapper around supabase-js to enable usage and integration within Nuxt.","orientation":"horizontal","links":[{"label":"Get started","icon":"i-heroicons-rocket-launch","to":"/get-started","size":"lg"},{"label":"Star on github","icon":"i-heroicons-star","color":"white","to":"https://github.com/nuxt-modules/supabase","target":"_blank","size":"lg"}],"code":"```ts\n const supabase = useSupabaseClient()\n const email = ref('')\n\n const signInWithOtp = async () => {\n await supabase.auth.signInWithOtp({\n email: email.value,\n })\n }\n```\n"},"features":{"title":"Shipped with many features","items":[{"title":"Nuxt 3 ready","icon":"i-simple-icons-nuxtdotjs","to":"https://nuxt.com","target":"_blank"},{"title":"Vue 3 composables","icon":"i-simple-icons-vuedotjs","to":"https://vuejs.org/guide/reusability/composables.html","target":"_blank"},{"title":"Supabase-js V2","icon":"i-simple-icons-supabase","to":"https://supabase.com","target":"_blank"},{"title":"Usage in API server routes","icon":"i-heroicons-server","to":"usage/services/serversupabaseclient"},{"title":"Authentication support","icon":"i-heroicons-key","to":"/authentication"},{"title":"TypeScript support","icon":"i-simple-icons-typescript","to":"https://www.typescriptlang.org","target":"_blank"}]},"_id":"content:index.yml","_type":"yaml","_source":"content","_file":"index.yml","_extension":"yml"}],"navigation":[{"title":"Get Started","_path":"/get-started","icon":"heroicons:rocket-launch"},{"title":"Authentication","_path":"/authentication","icon":"heroicons:lock-closed"},{"title":"Usage","_path":"/usage","children":[{"title":"Vue composables","_path":"/usage/composables","children":[{"title":"useSupabaseClient","_path":"/usage/composables/usesupabaseclient"},{"title":"useSupabaseUser","_path":"/usage/composables/usesupabaseuser"}]},{"title":"Server services","_path":"/usage/services","children":[{"title":"serverSupabaseClient","_path":"/usage/services/serversupabaseclient"},{"title":"serverSupabaseServiceRole","_path":"/usage/services/serversupabaseservicerole"},{"title":"serverSupabaseUser","_path":"/usage/services/serversupabaseuser"}]}],"icon":"heroicons:book-open"},{"title":"Demo","_path":"/demo","icon":"heroicons:computer-desktop-20-solid"},{"title":"Changelog","_path":"/changelog","icon":"heroicons:bookmark"},{"title":"Roadmap","_path":"/roadmap","icon":"heroicons:map"}]} \ No newline at end of file +{"generatedAt":1703757835811,"generateTime":1957,"contents":[{"_path":"/get-started","_dir":"","_draft":false,"_partial":false,"_locale":"","title":"Get Started","description":"@nuxtjs/supabase is a Nuxt module for first class integration with Supabase.","icon":"heroicons:rocket-launch","body":{"type":"root","children":[{"type":"element","tag":"p","props":{},"children":[{"type":"element","tag":"a","props":{"href":"https://github.com/nuxt-modules/supabase","rel":["nofollow"]},"children":[{"type":"text","value":"@nuxtjs/supabase"}]},{"type":"text","value":" is a Nuxt module for first class integration with Supabase."}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Checkout the "},{"type":"element","tag":"a","props":{"href":"https://v3.nuxtjs.org","rel":["nofollow"]},"children":[{"type":"text","value":"Nuxt 3"}]},{"type":"text","value":" documentation and "},{"type":"element","tag":"a","props":{"href":"https://supabase.com","rel":["nofollow"]},"children":[{"type":"text","value":"Supabase"}]},{"type":"text","value":" to learn more."}]},{"type":"element","tag":"callout","props":{"icon":"i-heroicons-exclamation-triangle-20-solid","color":"amber"},"children":[{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"For integrating Supabase with Nuxt 2, checkout "},{"type":"element","tag":"a","props":{"href":"https://github.com/supabase-community/nuxt-supabase","rel":["nofollow"]},"children":[{"type":"text","value":"supabase-community/nuxt-supabase"}]},{"type":"text","value":"."}]}]},{"type":"element","tag":"h2","props":{"id":"installation"},"children":[{"type":"text","value":"Installation"}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Add "},{"type":"element","tag":"code","props":{"className":""},"children":[{"type":"text","value":"@nuxtjs/supabase"}]},{"type":"text","value":" dev dependency to your project:"}]},{"type":"element","tag":"code-group","props":{},"children":[{"type":"element","tag":"pre","props":{"className":"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","code":"pnpm add -D @nuxtjs/supabase\n","filename":"pnpm","language":"bash","meta":"","style":""},"children":[{"type":"element","tag":"code","props":{"__ignoreMap":""},"children":[{"type":"element","tag":"span","props":{"class":"line","line":1},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B"},"children":[{"type":"text","value":"pnpm"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":" add"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":" -D"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":" @nuxtjs/supabase\n"}]}]}]}]},{"type":"element","tag":"pre","props":{"className":"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","code":"yarn add --dev @nuxtjs/supabase\n","filename":"yarn","language":"bash","meta":"","style":""},"children":[{"type":"element","tag":"code","props":{"__ignoreMap":""},"children":[{"type":"element","tag":"span","props":{"class":"line","line":1},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B"},"children":[{"type":"text","value":"yarn"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":" add"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":" --dev"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":" @nuxtjs/supabase\n"}]}]}]}]},{"type":"element","tag":"pre","props":{"className":"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","code":"npm install @nuxtjs/supabase --save-dev\n","filename":"NPM","language":"bash","meta":"","style":""},"children":[{"type":"element","tag":"code","props":{"__ignoreMap":""},"children":[{"type":"element","tag":"span","props":{"class":"line","line":1},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B"},"children":[{"type":"text","value":"npm"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":" install"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":" @nuxtjs/supabase"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":" --save-dev\n"}]}]}]}]},{"type":"element","tag":"pre","props":{"className":"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","code":"bun add -D @nuxtjs/supabase\n","filename":"bun","language":"bash","meta":"","style":""},"children":[{"type":"element","tag":"code","props":{"__ignoreMap":""},"children":[{"type":"element","tag":"span","props":{"class":"line","line":1},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B"},"children":[{"type":"text","value":"bun"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":" add"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":" -D"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":" @nuxtjs/supabase\n"}]}]}]}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Add "},{"type":"element","tag":"code","props":{"className":""},"children":[{"type":"text","value":"@nuxtjs/supabase"}]},{"type":"text","value":" to the "},{"type":"element","tag":"code","props":{"className":""},"children":[{"type":"text","value":"modules"}]},{"type":"text","value":" section of "},{"type":"element","tag":"code","props":{"className":""},"children":[{"type":"text","value":"nuxt.config.ts"}]},{"type":"text","value":":"}]},{"type":"element","tag":"pre","props":{"className":"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","code":"export default defineNuxtConfig({\n modules: ['@nuxtjs/supabase'],\n})\n","filename":"nuxt.config.ts","language":"ts","meta":"","style":""},"children":[{"type":"element","tag":"code","props":{"__ignoreMap":""},"children":[{"type":"element","tag":"span","props":{"class":"line","line":1},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":"export"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" default"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" defineNuxtConfig"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"{\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":2},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":" modules"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" ["}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"@nuxtjs/supabase"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"]"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":",\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":3},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"}"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":")\n"}]}]}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Add "},{"type":"element","tag":"code","props":{"className":""},"children":[{"type":"text","value":"SUPABASE_URL"}]},{"type":"text","value":" and "},{"type":"element","tag":"code","props":{"className":""},"children":[{"type":"text","value":"SUPABASE_KEY"}]},{"type":"text","value":" to the "},{"type":"element","tag":"code","props":{"className":""},"children":[{"type":"text","value":".env"}]},{"type":"text","value":":"}]},{"type":"element","tag":"pre","props":{"className":"language-zsh shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","code":"SUPABASE_URL=\"https://example.supabase.co\"\nSUPABASE_KEY=\"\"\n","filename":"env","language":"zsh","meta":"","style":""},"children":[{"type":"element","tag":"code","props":{"__ignoreMap":""},"children":[{"type":"element","tag":"span","props":{"class":"line","line":1},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"SUPABASE_URL"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"\""}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"https://example.supabase.co"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"\"\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":2},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"SUPABASE_KEY"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"\""}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":""}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"\"\n"}]}]}]}]},{"type":"element","tag":"callout","props":{"icon":"i-heroicons-light-bulb"},"children":[{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Alternatively, you can prefix the env variables with "},{"type":"element","tag":"code","props":{"className":""},"children":[{"type":"text","value":"NUXT_PUBLIC_"}]},{"type":"text","value":" in order to use runtimeConfig."}]}]},{"type":"element","tag":"h2","props":{"id":"options"},"children":[{"type":"text","value":"Options"}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"You can configure the supabase module by using the "},{"type":"element","tag":"code","props":{"className":""},"children":[{"type":"text","value":"supabase"}]},{"type":"text","value":" key in "},{"type":"element","tag":"code","props":{"className":""},"children":[{"type":"text","value":"nuxt.config"}]},{"type":"text","value":":"}]},{"type":"element","tag":"pre","props":{"className":"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","code":"export default defineNuxtConfig({\n // ...\n supabase: {\n // Options\n }\n}\n","filename":"nuxt.config.ts","language":"ts","meta":"","style":""},"children":[{"type":"element","tag":"code","props":{"__ignoreMap":""},"children":[{"type":"element","tag":"span","props":{"class":"line","line":1},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":"export"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" default"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" defineNuxtConfig"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"{\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":2},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#546E7A;--shiki-dark:#676E95;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" // ...\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":3},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":" supabase"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":4},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#546E7A;--shiki-dark:#676E95;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" // Options\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":5},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" }\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":6},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"}\n"}]}]}]}]},{"type":"element","tag":"h3","props":{"id":"url"},"children":[{"type":"element","tag":"code","props":{"className":""},"children":[{"type":"text","value":"url"}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Default: "},{"type":"element","tag":"code","props":{"className":""},"children":[{"type":"text","value":"process.env.SUPABASE_URL"}]},{"type":"text","value":" (ex: "},{"type":"element","tag":"a","props":{"href":"https://example.supabase.co","rel":["nofollow"]},"children":[{"type":"text","value":"https://example.supabase.co"}]},{"type":"text","value":")"}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"The unique Supabase URL which is supplied when you create a new project in your project dashboard."}]},{"type":"element","tag":"h3","props":{"id":"key"},"children":[{"type":"element","tag":"code","props":{"className":""},"children":[{"type":"text","value":"key"}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Default: "},{"type":"element","tag":"code","props":{"className":""},"children":[{"type":"text","value":"process.env.SUPABASE_KEY"}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Supabase 'anon key', used to bypass the Supabase API gateway and interact with your Supabase database making use of user JWT to apply RLS Policies."}]},{"type":"element","tag":"h3","props":{"id":"servicekey"},"children":[{"type":"element","tag":"code","props":{"className":""},"children":[{"type":"text","value":"serviceKey"}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Default: "},{"type":"element","tag":"code","props":{"className":""},"children":[{"type":"text","value":"process.env.SUPABASE_SERVICE_KEY"}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Supabase 'service role key', has super admin rights and can bypass your Row Level Security."}]},{"type":"element","tag":"h3","props":{"id":"redirect"},"children":[{"type":"element","tag":"code","props":{"className":""},"children":[{"type":"text","value":"redirect"}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Default: "},{"type":"element","tag":"code","props":{"className":""},"children":[{"type":"text","value":"true"}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Redirect automatically to the configured login page if a non authenticated user is trying to access a guarded. You can disable all redirects by setting this option to false."}]},{"type":"element","tag":"h3","props":{"id":"redirectoptions"},"children":[{"type":"element","tag":"code","props":{"className":""},"children":[{"type":"text","value":"redirectOptions"}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Default:"}]},{"type":"element","tag":"pre","props":{"className":"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","code":" redirectOptions: {\n login: '/login',\n callback: '/confirm',\n exclude: [],\n }\n","filename":"nuxt.config.ts","language":"ts","meta":"","style":""},"children":[{"type":"element","tag":"code","props":{"__ignoreMap":""},"children":[{"type":"element","tag":"span","props":{"class":"line","line":1},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B"},"children":[{"type":"text","value":" redirectOptions"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":2},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B"},"children":[{"type":"text","value":" login"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" '"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"/login"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":",\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":3},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B"},"children":[{"type":"text","value":" callback"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" '"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"/confirm"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":",\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":4},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B"},"children":[{"type":"text","value":" exclude"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":" []"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":",\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":5},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" }\n"}]}]}]}]},{"type":"element","tag":"ul","props":{},"children":[{"type":"element","tag":"li","props":{},"children":[{"type":"element","tag":"code","props":{"className":""},"children":[{"type":"text","value":"login"}]},{"type":"text","value":": User will be redirected to this path if not authenticated or after logout."}]},{"type":"element","tag":"li","props":{},"children":[{"type":"element","tag":"code","props":{"className":""},"children":[{"type":"text","value":"callback"}]},{"type":"text","value":": This is the path the user will be redirect to after supabase login redirection. Should match configured "},{"type":"element","tag":"code","props":{"className":""},"children":[{"type":"text","value":"redirectTo"}]},{"type":"text","value":" option of your "},{"type":"element","tag":"a","props":{"href":"https://supabase.com/docs/reference/javascript/auth-signinwithoauth","rel":["nofollow"]},"children":[{"type":"text","value":"signIn method"}]},{"type":"text","value":". Should also be configured in your Supabase dashboard under "},{"type":"element","tag":"code","props":{"className":""},"children":[{"type":"text","value":"Authentication -> URL Configuration -> Redirect URLs"}]},{"type":"text","value":"."}]},{"type":"element","tag":"li","props":{},"children":[{"type":"element","tag":"code","props":{"className":""},"children":[{"type":"text","value":"exclude"}]},{"type":"text","value":": Routes to exclude from the redirect. "},{"type":"element","tag":"code","props":{"className":""},"children":[{"type":"text","value":"['/foo', '/bar/*']"}]},{"type":"text","value":" will exclude the "},{"type":"element","tag":"code","props":{"className":""},"children":[{"type":"text","value":"foo"}]},{"type":"text","value":" page and all pages in your "},{"type":"element","tag":"code","props":{"className":""},"children":[{"type":"text","value":"bar"}]},{"type":"text","value":" folder."}]}]},{"type":"element","tag":"h3","props":{"id":"cookiename"},"children":[{"type":"element","tag":"code","props":{"className":""},"children":[{"type":"text","value":"cookieName"}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Default: "},{"type":"element","tag":"code","props":{"className":""},"children":[{"type":"text","value":"sb"}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Cookie name used for storing access and refresh tokens, added in front of "},{"type":"element","tag":"code","props":{"className":""},"children":[{"type":"text","value":"-access-token"}]},{"type":"text","value":" and "},{"type":"element","tag":"code","props":{"className":""},"children":[{"type":"text","value":"-refresh-token"}]},{"type":"text","value":" to form the full cookie name e.g. "},{"type":"element","tag":"code","props":{"className":""},"children":[{"type":"text","value":"sb-access-token"}]}]},{"type":"element","tag":"h3","props":{"id":"cookieoptions"},"children":[{"type":"text","value":"cookieOptions"}]},{"type":"element","tag":"pre","props":{"className":"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","code":" cookieOptions: {\n maxAge: 60 * 60 * 8,\n sameSite: 'lax',\n secure: true\n }\n","language":"ts","meta":"","style":""},"children":[{"type":"element","tag":"code","props":{"__ignoreMap":""},"children":[{"type":"element","tag":"span","props":{"class":"line","line":1},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B"},"children":[{"type":"text","value":" cookieOptions"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":2},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B"},"children":[{"type":"text","value":" maxAge"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C"},"children":[{"type":"text","value":" 60"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" *"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C"},"children":[{"type":"text","value":" 60"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" *"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C"},"children":[{"type":"text","value":" 8"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":",\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":3},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B"},"children":[{"type":"text","value":" sameSite"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" '"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"lax"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":",\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":4},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B"},"children":[{"type":"text","value":" secure"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#FF5370;--shiki-default:#FF9CAC;--shiki-dark:#FF9CAC"},"children":[{"type":"text","value":" true\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":5},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" }\n"}]}]}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Options for cookies used to share tokens between server and client, refer to "},{"type":"element","tag":"a","props":{"href":"https://nuxt.com/docs/api/composables/use-cookie#options","rel":["nofollow"]},"children":[{"type":"text","value":"cookieOptions"}]},{"type":"text","value":" for available settings. Please note that the lifetime set here does not determine the Supabase session lifetime."}]},{"type":"element","tag":"h3","props":{"id":"clientoptions"},"children":[{"type":"element","tag":"code","props":{"className":""},"children":[{"type":"text","value":"clientOptions"}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Default:"}]},{"type":"element","tag":"pre","props":{"className":"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","code":" clientOptions: {\n auth: {\n flowType: 'pkce',\n detectSessionInUrl: true,\n persistSession: true,\n autoRefreshToken: true\n },\n }\n","language":"ts","meta":"","style":""},"children":[{"type":"element","tag":"code","props":{"__ignoreMap":""},"children":[{"type":"element","tag":"span","props":{"class":"line","line":1},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B"},"children":[{"type":"text","value":" clientOptions"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":2},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B"},"children":[{"type":"text","value":" auth"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":3},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B"},"children":[{"type":"text","value":" flowType"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" '"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"pkce"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":",\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":4},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B"},"children":[{"type":"text","value":" detectSessionInUrl"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#FF5370;--shiki-default:#FF9CAC;--shiki-dark:#FF9CAC"},"children":[{"type":"text","value":" true"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":",\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":5},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B"},"children":[{"type":"text","value":" persistSession"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#FF5370;--shiki-default:#FF9CAC;--shiki-dark:#FF9CAC"},"children":[{"type":"text","value":" true"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":",\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":6},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B"},"children":[{"type":"text","value":" autoRefreshToken"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#FF5370;--shiki-default:#FF9CAC;--shiki-dark:#FF9CAC"},"children":[{"type":"text","value":" true\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":7},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" },\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":8},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" }\n"}]}]}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Supabase client options "},{"type":"element","tag":"a","props":{"href":"https://supabase.com/docs/reference/javascript/initializing#parameters","rel":["nofollow"]},"children":[{"type":"text","value":"available here"}]},{"type":"text","value":"."}]},{"type":"element","tag":"h2","props":{"id":"versions"},"children":[{"type":"text","value":"Versions"}]},{"type":"element","tag":"p","props":{},"children":[{"type":"element","tag":"code","props":{"className":""},"children":[{"type":"text","value":"0.1.x"}]},{"type":"text","value":" versions are wrapped around "},{"type":"element","tag":"code","props":{"className":""},"children":[{"type":"text","value":"supabase-js v1"}]},{"type":"text","value":".\n"},{"type":"element","tag":"br","props":{},"children":[]},{"type":"element","tag":"code","props":{"className":""},"children":[{"type":"text","value":"1.x.x"}]},{"type":"text","value":" versions are wrapped around "},{"type":"element","tag":"code","props":{"className":""},"children":[{"type":"text","value":"supabase-js v2"}]},{"type":"text","value":"."}]},{"type":"element","tag":"h2","props":{"id":"demo"},"children":[{"type":"text","value":"Demo"}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"A live demo is made for see this module in action on "},{"type":"element","tag":"a","props":{"href":"https://n3-supabase.netlify.app","rel":["nofollow"]},"children":[{"type":"text","value":"n3-supabase.netlify.app"}]},{"type":"text","value":", read more in the "},{"type":"element","tag":"a","props":{"href":"/demo"},"children":[{"type":"text","value":"demo section"}]},{"type":"text","value":"."}]},{"type":"element","tag":"p","props":{},"children":[{"type":"element","tag":"a","props":{"href":"https://n3-supabase.netlify.app","rel":["nofollow"]},"children":[{"type":"element","tag":"img","props":{"alt":"Supabase demo with Nuxt 3","src":"https://user-images.githubusercontent.com/904724/160422461-8f87500a-8dec-4413-86b2-ba04e1b2d17b.png"},"children":[]}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Also checkout the "},{"type":"element","tag":"a","props":{"href":"https://www.youtube.com/watch?v=jIyiRT6zT8Q","rel":["nofollow"]},"children":[{"type":"text","value":"YouTube video"}]},{"type":"text","value":" about its usage in a live demo."}]},{"type":"element","tag":"style","props":{},"children":[{"type":"text","value":"html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}"}]}],"toc":{"title":"","searchDepth":2,"depth":2,"links":[{"id":"installation","depth":2,"text":"Installation"},{"id":"options","depth":2,"text":"Options","children":[{"id":"url","depth":3,"text":"url"},{"id":"key","depth":3,"text":"key"},{"id":"servicekey","depth":3,"text":"serviceKey"},{"id":"redirect","depth":3,"text":"redirect"},{"id":"redirectoptions","depth":3,"text":"redirectOptions"},{"id":"cookiename","depth":3,"text":"cookieName"},{"id":"cookieoptions","depth":3,"text":"cookieOptions"},{"id":"clientoptions","depth":3,"text":"clientOptions"}]},{"id":"versions","depth":2,"text":"Versions"},{"id":"demo","depth":2,"text":"Demo"}]}},"_type":"markdown","_id":"content:2.get-started.md","_source":"content","_file":"2.get-started.md","_extension":"md"},{"_path":"/authentication","_dir":"","_draft":false,"_partial":false,"_locale":"","title":"Authentication","description":"Authenticate your user thanks to the PKCE Oauth protocol that enables secure exchange of refresh and access tokens between an application and the authorization server","icon":"heroicons:lock-closed","body":{"type":"root","children":[{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"With the default options, the module requires a log-in page and a confirm page to handle the "},{"type":"element","tag":"a","props":{"href":"https://supabase.com/docs/guides/resources/glossary#pkce","rel":["nofollow"]},"children":[{"type":"text","value":"PKCE authorization code flow"}]},{"type":"text","value":". If you want to understand how it works under the hood, you can read this "},{"type":"element","tag":"a","props":{"href":"https://supabase.com/docs/guides/auth/server-side-rendering#understanding-the-authentication-flow","rel":["nofollow"]},"children":[{"type":"text","value":"section"}]},{"type":"text","value":"."}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"All you need to do is to create a "},{"type":"element","tag":"code","props":{"className":""},"children":[{"type":"text","value":"login.vue"}]},{"type":"text","value":" and "},{"type":"element","tag":"code","props":{"className":""},"children":[{"type":"text","value":"confirm.vue"}]},{"type":"text","value":" page in the "},{"type":"element","tag":"code","props":{"className":""},"children":[{"type":"text","value":"pages"}]},{"type":"text","value":" folder."}]},{"type":"element","tag":"callout","props":{"icon":"i-heroicons-light-bulb"},"children":[{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"For advanced users who want to implement the auth behaviour themselves, you can disable or override the "},{"type":"element","tag":"a","props":{"href":"/get-started#redirect"},"children":[{"type":"text","value":"redirect options"}]},{"type":"text","value":"."}]}]},{"type":"element","tag":"h2","props":{"id":"log-in-page-login"},"children":[{"type":"text","value":"Log-in page - "},{"type":"element","tag":"code","props":{"className":""},"children":[{"type":"text","value":"/login"}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Each time a user is trying to access a page that needs authentication, he will automatically be redirected to the configured log in page. If you want to allow access to \"public\" page, you just need to add them in the "},{"type":"element","tag":"a","props":{"href":"/get-started#redirectoptions"},"children":[{"type":"text","value":"exclude"}]},{"type":"text","value":" redirect option."}]},{"type":"element","tag":"callout","props":{"icon":"i-heroicons-exclamation-triangle-20-solid","color":"amber"},"children":[{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Ensure to activate the authentication providers you want in the Supabase Dashboard under "},{"type":"element","tag":"code","props":{"className":""},"children":[{"type":"text","value":"Authentication -> Providers"}]},{"type":"text","value":"."}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"The log-in page initiates the log-in method(s) you choose from the "},{"type":"element","tag":"a","props":{"href":"https://supabase.com/docs/reference/javascript/auth-signinwithpassword","rel":["nofollow"]},"children":[{"type":"text","value":"available authorization methods"}]},{"type":"text","value":" provided by Supabase, it could looks like:"}]},{"type":"element","tag":"pre","props":{"className":"language-vue shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","code":"\n\n","filename":"pages/login.vue","language":"vue","meta":"","style":""},"children":[{"type":"element","tag":"code","props":{"__ignoreMap":""},"children":[{"type":"element","tag":"span","props":{"class":"line","line":1},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"<"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"script"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" setup"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" lang"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"\""}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"ts"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"\""}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":">\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":2},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":"const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" supabase "}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" useSupabaseClient"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"()\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":3},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":"const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" email "}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" ref"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"''"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":")\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":4},"children":[{"type":"element","tag":"span","props":{"emptyLinePlaceholder":true},"children":[{"type":"text","value":"\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":5},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":"const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" signInWithOtp "}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" async"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" ()"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" =>"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":6},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" error"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" }"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" ="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" await"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" supabase"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"."}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"auth"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"."}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":"signInWithOtp"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"{\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":7},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":" email"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" email"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"."}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"value"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":",\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":8},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":" options"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":9},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":" emailRedirectTo"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" '"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"http://localhost:3000/confirm"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":",\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":10},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" }\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":11},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" }"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":")\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":12},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" if"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":" ("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"error"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":") "}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"console"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"."}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":"log"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"error"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":")\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":13},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"}\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":14},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":15},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"<"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"template"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":">\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":16},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" <"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"div"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":">\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":17},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" <"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"button"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" @click"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"\""}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"signInWithOtp"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"\""}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":">\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":18},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" Sign In with E-Mail\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":19},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" \n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":20},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" <"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"input\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":21},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" v-model"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"\""}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"email"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"\"\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":22},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" type"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"\""}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"email"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"\"\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":23},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" />\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":24},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" \n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":25},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"\n"}]}]}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Once the authorization flow is triggered using the "},{"type":"element","tag":"code","props":{"className":""},"children":[{"type":"text","value":"auth"}]},{"type":"text","value":" wrapper of the "},{"type":"element","tag":"a","props":{"href":"/usage/composables/usesupabaseclient"},"children":[{"type":"text","value":"useSupabaseClient"}]},{"type":"text","value":" composable, the session management is handled automatically and the user will be redirected to the page you specify in the redirect option ("},{"type":"element","tag":"code","props":{"className":""},"children":[{"type":"text","value":"/confirm"}]},{"type":"text","value":" by default)."}]},{"type":"element","tag":"h2","props":{"id":"confirm-page-confirm"},"children":[{"type":"text","value":"Confirm page - "},{"type":"element","tag":"code","props":{"className":""},"children":[{"type":"text","value":"/confirm"}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"The confirmation page receives the supabase callback. From there you can check the user value and redirect to the appropriate page."}]},{"type":"element","tag":"callout","props":{"icon":"i-heroicons-light-bulb"},"children":[{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"The redirect URL must be configured in your Supabase dashboard under "},{"type":"element","tag":"code","props":{"className":""},"children":[{"type":"text","value":"Authentication -> URL Configuration -> Redirect URLs"}]},{"type":"text","value":"."}]}]},{"type":"element","tag":"pre","props":{"className":"language-vue shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","code":"\n\n","filename":"pages/confirm.vue","language":"vue","meta":"","style":""},"children":[{"type":"element","tag":"code","props":{"__ignoreMap":""},"children":[{"type":"element","tag":"span","props":{"class":"line","line":1},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"<"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"script"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" setup"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" lang"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"\""}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"ts"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"\""}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":">\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":2},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":"const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" user "}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" useSupabaseUser"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"()\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":3},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":"watch"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"(user"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":","}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" ()"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" =>"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":4},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" if"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":" ("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"user"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"."}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"value"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":") "}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"{\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":5},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" return"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" navigateTo"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"/"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":")\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":6},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" }\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":7},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"},"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":" immediate"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#FF5370;--shiki-default:#FF9CAC;--shiki-dark:#FF9CAC"},"children":[{"type":"text","value":" true"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" }"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":")\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":8},"children":[{"type":"element","tag":"span","props":{"emptyLinePlaceholder":true},"children":[{"type":"text","value":"\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":9},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":10},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"<"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"template"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":">\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":11},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" <"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"div"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":">"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"Waiting for login..."}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":12},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"\n"}]}]}]}]},{"type":"element","tag":"style","props":{},"children":[{"type":"text","value":"html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}"}]}],"toc":{"title":"","searchDepth":2,"depth":2,"links":[{"id":"log-in-page-login","depth":2,"text":"Log-in page - /login"},{"id":"confirm-page-confirm","depth":2,"text":"Confirm page - /confirm"}]}},"_type":"markdown","_id":"content:3.authentication.md","_source":"content","_file":"3.authentication.md","_extension":"md"},{"_path":"/usage/_dir","_dir":"usage","_draft":false,"_partial":true,"_locale":"","title":"Usage","icon":"heroicons:book-open","_id":"content:4.usage:_dir.yml","_type":"yaml","_source":"content","_file":"4.usage/_dir.yml","_extension":"yml"},{"_path":"/usage/composables/_dir","_dir":"composables","_draft":false,"_partial":true,"_locale":"","title":"Vue composables","_id":"content:4.usage:composables:_dir.yml","_type":"yaml","_source":"content","_file":"4.usage/composables/_dir.yml","_extension":"yml"},{"_path":"/usage/composables/usesupabaseclient","_dir":"composables","_draft":false,"_partial":false,"_locale":"","title":"useSupabaseClient","description":"Make requests to the Supabase API with the useSupabaseClient composable","body":{"type":"root","children":[{"type":"element","tag":"p","props":{},"children":[{"type":"element","tag":"a","props":{"href":"https://nuxt.com/docs/guide/directory-structure/composables","rel":["nofollow"]},"children":[{"type":"text","value":"Auto-import"}]},{"type":"text","value":" your client inside your vue files."}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"This composable is using "},{"type":"element","tag":"a","props":{"href":"https://github.com/supabase/supabase-js/","rel":["nofollow"]},"children":[{"type":"text","value":"supabase-js"}]},{"type":"text","value":" under the hood, it gives access to the "},{"type":"element","tag":"a","props":{"href":"https://supabase.com/docs/reference/javascript/initializing","rel":["nofollow"]},"children":[{"type":"text","value":"Supabase client"}]},{"type":"text","value":"."}]},{"type":"element","tag":"blockquote","props":{},"children":[{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"The client is initialized with the "},{"type":"element","tag":"code","props":{"className":""},"children":[{"type":"text","value":"SUPABASE_KEY"}]},{"type":"text","value":" you must have in your "},{"type":"element","tag":"code","props":{"className":""},"children":[{"type":"text","value":".env"}]},{"type":"text","value":" file. It establishes the connection with the database and make use of user JWT to apply "},{"type":"element","tag":"a","props":{"href":"https://supabase.com/docs/learn/auth-deep-dive/auth-row-level-security","rel":["nofollow"]},"children":[{"type":"text","value":"RLS Policies"}]},{"type":"text","value":" implemented in Supabase. If you want to bypass policies, you can use the "},{"type":"element","tag":"a","props":{"href":"/usage/services/serversupabaseservicerole"},"children":[{"type":"text","value":"serverSupabaseServiceRole"}]},{"type":"text","value":"."}]}]},{"type":"element","tag":"h2","props":{"id":"authentication"},"children":[{"type":"text","value":"Authentication"}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"The useSupabaseClient composable is providing all methods to manage authorization under "},{"type":"element","tag":"code","props":{"className":""},"children":[{"type":"text","value":"useSupabaseClient().auth"}]},{"type":"text","value":". For more details please see the "},{"type":"element","tag":"a","props":{"href":"https://supabase.com/docs/reference/javascript/auth-api","rel":["nofollow"]},"children":[{"type":"text","value":"supabase-js auth documentation"}]},{"type":"text","value":". Here is an example for signing in and out:"}]},{"type":"element","tag":"callout","props":{"icon":"i-heroicons-light-bulb"},"children":[{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"If you want a full explanation on how to handle the authentication process, please read this "},{"type":"element","tag":"a","props":{"href":"/get-started#handle-authentication"},"children":[{"type":"text","value":"section"}]},{"type":"text","value":"."}]}]},{"type":"element","tag":"pre","props":{"className":"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","code":"\n","language":"ts","meta":"","style":""},"children":[{"type":"element","tag":"code","props":{"__ignoreMap":""},"children":[{"type":"element","tag":"span","props":{"class":"line","line":1},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"<"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"script setup lang"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"\""}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"ts"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"\""}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":">\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":2},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":"const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" supabase "}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" useSupabaseClient"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"()\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":3},"children":[{"type":"element","tag":"span","props":{"emptyLinePlaceholder":true},"children":[{"type":"text","value":"\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":4},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":"const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" signInWithOAuth "}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" async"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" ()"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" =>"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":5},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" error"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" }"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" ="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" await"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" supabase"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"."}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"auth"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"."}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":"signInWithOAuth"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"{\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":6},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":" provider"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" '"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"github"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":",\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":7},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":" options"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":8},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":" redirectTo"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" '"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"http://localhost:3000/confirm"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":",\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":9},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" },\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":10},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" }"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":")\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":11},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" if"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":" ("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"error"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":") "}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"console"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"."}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":"log"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"error"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":")\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":12},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"}\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":13},"children":[{"type":"element","tag":"span","props":{"emptyLinePlaceholder":true},"children":[{"type":"text","value":"\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":14},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":"const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" signOut "}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" async"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" ()"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" =>"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":15},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" error"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" }"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" ="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" await"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" supabase"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"."}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"auth"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"."}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":"signOut"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"()\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":16},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" if"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":" ("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"error"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":") "}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"console"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"."}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":"log"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"error"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":")\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":17},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"}\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":18},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"\n"}]}]}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Please also take a look at "},{"type":"element","tag":"a","props":{"href":"/get-started"},"children":[{"type":"text","value":"Get Started"}]},{"type":"text","value":" for the authorization flow."}]},{"type":"element","tag":"h2","props":{"id":"database-request"},"children":[{"type":"text","value":"Database Request"}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Please check "},{"type":"element","tag":"a","props":{"href":"https://supabase.com/docs/reference/javascript/select","rel":["nofollow"]},"children":[{"type":"text","value":"Supabase"}]},{"type":"text","value":" documentation to fully use the power of Supabase client."}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Here is an example of a fetch using the "},{"type":"element","tag":"code","props":{"className":""},"children":[{"type":"text","value":"select"}]},{"type":"text","value":" method with Nuxt 3 "},{"type":"element","tag":"a","props":{"href":"https://nuxt.com/docs/getting-started/data-fetching#useasyncdata","rel":["nofollow"]},"children":[{"type":"text","value":"useAsyncData"}]},{"type":"text","value":" composable."}]},{"type":"element","tag":"pre","props":{"className":"language-vue shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","code":"\n","language":"vue","meta":"","style":""},"children":[{"type":"element","tag":"code","props":{"__ignoreMap":""},"children":[{"type":"element","tag":"span","props":{"class":"line","line":1},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"<"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"script"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" setup"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" lang"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"\""}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"ts"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"\""}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":">\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":2},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":"const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" client "}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" useSupabaseClient"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"()\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":3},"children":[{"type":"element","tag":"span","props":{"emptyLinePlaceholder":true},"children":[{"type":"text","value":"\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":4},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":"const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":" data"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" restaurant "}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"}"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" ="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" await"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" useAsyncData"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"restaurant"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":","}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" async"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" ()"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" =>"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":5},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" data"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" }"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" ="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" await"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" client"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"."}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":"from"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"restaurants"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":")"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"."}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":"select"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"name, location"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":")"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"."}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":"eq"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"name"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":","}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" '"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"My Restaurant Name"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":")"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"."}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":"single"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"()\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":6},"children":[{"type":"element","tag":"span","props":{"emptyLinePlaceholder":true},"children":[{"type":"text","value":"\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":7},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" return"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" data\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":8},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"}"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":")\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":9},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"\n"}]}]}]}]},{"type":"element","tag":"h2","props":{"id":"realtime"},"children":[{"type":"text","value":"Realtime"}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Based on "},{"type":"element","tag":"a","props":{"href":"https://github.com/supabase/realtime","rel":["nofollow"]},"children":[{"type":"text","value":"Supabase Realtime"}]},{"type":"text","value":", listen to changes in your PostgreSQL Database and broadcasts them over WebSockets."}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"To enable it, make sure you have turned on the "},{"type":"element","tag":"a","props":{"href":"https://supabase.com/docs/guides/api#realtime-api","rel":["nofollow"]},"children":[{"type":"text","value":"Realtime API"}]},{"type":"text","value":" for your table."}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Then, listen to changes directly in your vue page / component:"}]},{"type":"element","tag":"pre","props":{"className":"language-vue shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","code":"\n","language":"vue","meta":"","style":""},"children":[{"type":"element","tag":"code","props":{"__ignoreMap":""},"children":[{"type":"element","tag":"span","props":{"class":"line","line":1},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"<"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"script"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" setup"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" lang"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"\""}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"ts"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"\""}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":">\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":2},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":"import"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" type"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" RealtimeChannel"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" }"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" from"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" '"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"@supabase/supabase-js"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":3},"children":[{"type":"element","tag":"span","props":{"emptyLinePlaceholder":true},"children":[{"type":"text","value":"\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":4},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":"const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" client "}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" useSupabaseClient"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"()\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":5},"children":[{"type":"element","tag":"span","props":{"emptyLinePlaceholder":true},"children":[{"type":"text","value":"\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":6},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":"let"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" realtimeChannel"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B"},"children":[{"type":"text","value":" RealtimeChannel\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":7},"children":[{"type":"element","tag":"span","props":{"emptyLinePlaceholder":true},"children":[{"type":"text","value":"\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":8},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#546E7A;--shiki-dark:#676E95;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":"// Fetch collaborators and get the refresh method provided by useAsyncData\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":9},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":"const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":" data"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" collaborators"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":","}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":" refresh"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" refreshCollaborators "}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"}"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" ="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" await"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" useAsyncData"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"collaborators"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":","}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" async"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" ()"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" =>"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":10},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" data"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" }"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" ="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" await"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" client"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"."}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":"from"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"collaborators"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":")"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"."}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":"select"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"name"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":")\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":11},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" return"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" data\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":12},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"}"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":")\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":13},"children":[{"type":"element","tag":"span","props":{"emptyLinePlaceholder":true},"children":[{"type":"text","value":"\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":14},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#546E7A;--shiki-dark:#676E95;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":"// Once page is mounted, listen to changes on the `collaborators` table and refresh collaborators when receiving event\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":15},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":"onMounted"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"()"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" =>"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":16},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#546E7A;--shiki-dark:#676E95;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" // Real time listener for new workouts\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":17},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" realtimeChannel"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" ="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" client"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"."}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":"channel"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"public:collaborators"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":")"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"."}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":"on"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"(\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":18},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" '"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"postgres_changes"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":",\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":19},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":" event"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" '"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"*"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":","}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":" schema"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" '"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"public"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":","}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":" table"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" '"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"collaborators"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" },\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":20},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" ()"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" =>"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" refreshCollaborators"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"()\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":21},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":" )\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":22},"children":[{"type":"element","tag":"span","props":{"emptyLinePlaceholder":true},"children":[{"type":"text","value":"\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":23},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" realtimeChannel"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"."}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":"subscribe"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"()\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":24},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"}"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":")\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":25},"children":[{"type":"element","tag":"span","props":{"emptyLinePlaceholder":true},"children":[{"type":"text","value":"\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":26},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#546E7A;--shiki-dark:#676E95;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" // Don't forget to unsubscribe when user left the page\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":27},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":"onUnmounted"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"()"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" =>"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":28},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" client"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"."}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":"removeChannel"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"realtimeChannel"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":")\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":29},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"}"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":")\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":30},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"\n"}]}]}]}]},{"type":"element","tag":"h2","props":{"id":"typescript"},"children":[{"type":"text","value":"Typescript"}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"You can pass Database typings to the client. Check Supabase "},{"type":"element","tag":"a","props":{"href":"https://supabase.com/docs/reference/javascript/release-notes#typescript-support","rel":["nofollow"]},"children":[{"type":"text","value":"documentation"}]},{"type":"text","value":" for further information."}]},{"type":"element","tag":"pre","props":{"className":"language-vue shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","code":"\n","language":"vue","meta":"","style":""},"children":[{"type":"element","tag":"code","props":{"__ignoreMap":""},"children":[{"type":"element","tag":"span","props":{"class":"line","line":1},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"<"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"script"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" setup"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" lang"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"\""}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"ts"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"\""}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":">\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":2},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":"import"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" type"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" Database"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" }"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" from"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" '"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"~/types"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":3},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":"const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" client "}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" useSupabaseClient"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"<"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B"},"children":[{"type":"text","value":"Database"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":">"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"()\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":4},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"\n"}]}]}]}]},{"type":"element","tag":"style","props":{},"children":[{"type":"text","value":"html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}"}]}],"toc":{"title":"","searchDepth":2,"depth":2,"links":[{"id":"authentication","depth":2,"text":"Authentication"},{"id":"database-request","depth":2,"text":"Database Request"},{"id":"realtime","depth":2,"text":"Realtime"},{"id":"typescript","depth":2,"text":"Typescript"}]}},"_type":"markdown","_id":"content:4.usage:composables:useSupabaseClient.md","_source":"content","_file":"4.usage/composables/useSupabaseClient.md","_extension":"md"},{"_path":"/usage/composables/usesupabaseuser","_dir":"composables","_draft":false,"_partial":false,"_locale":"","title":"useSupabaseUser","description":"Auto import and use your Supabase user with the useSupabaseUser composable","body":{"type":"root","children":[{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Once logged in, you can "},{"type":"element","tag":"a","props":{"href":"https://nuxt.com/docs/guide/directory-structure/composables","rel":["nofollow"]},"children":[{"type":"text","value":"auto-import"}]},{"type":"text","value":" your user everywhere inside your vue files."}]},{"type":"element","tag":"pre","props":{"className":"language-vue shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","code":"\n","language":"vue","meta":"","style":""},"children":[{"type":"element","tag":"code","props":{"__ignoreMap":""},"children":[{"type":"element","tag":"span","props":{"class":"line","line":1},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"<"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"script"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" setup"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":">\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":2},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":"const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" user "}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" useSupabaseUser"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"()\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":3},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"\n"}]}]}]}]},{"type":"element","tag":"h2","props":{"id":"auth-middleware"},"children":[{"type":"text","value":"Auth middleware"}]},{"type":"element","tag":"callout","props":{"icon":"i-heroicons-light-bulb"},"children":[{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"By default, the module is implementing a redirect middleware. All pages of your application are automatically redirected to the "},{"type":"element","tag":"a","props":{"href":"/get-started#redirectoptions"},"children":[{"type":"text","value":"login"}]},{"type":"text","value":" page. However, you can allow redirection to \"public\" pages by setting the "},{"type":"element","tag":"a","props":{"href":"/get-started#redirectoptions"},"children":[{"type":"text","value":"exclude"}]},{"type":"text","value":" redirect option."}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"If the "},{"type":"element","tag":"a","props":{"href":"/get-started#redirect"},"children":[{"type":"text","value":"redirect"}]},{"type":"text","value":" option is disabled, you can protect your authenticated routes by creating a custom middleware in your project, here is an example:"}]},{"type":"element","tag":"pre","props":{"className":"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","code":"export default defineNuxtRouteMiddleware((to, _from) => {\n const user = useSupabaseUser()\n\n if (!user.value) {\n return navigateTo('/login')\n }\n})\n","filename":"middleware/auth.ts","language":"ts","meta":"","style":""},"children":[{"type":"element","tag":"code","props":{"__ignoreMap":""},"children":[{"type":"element","tag":"span","props":{"class":"line","line":1},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":"export"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" default"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" defineNuxtRouteMiddleware"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":"to"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":","}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" _from"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":")"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" =>"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":2},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" user"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" ="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" useSupabaseUser"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"()\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":3},"children":[{"type":"element","tag":"span","props":{"emptyLinePlaceholder":true},"children":[{"type":"text","value":"\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":4},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" if"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":" ("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"!"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"user"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"."}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"value"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":") "}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"{\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":5},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" return"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" navigateTo"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"/login"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":")\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":6},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" }\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":7},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"}"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":")\n"}]}]}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Then you can reference your middleware in your page with:"}]},{"type":"element","tag":"pre","props":{"className":"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","code":"definePageMeta({\n middleware: 'auth'\n})\n","filename":"pages/dashboard.vue","language":"ts","meta":"","style":""},"children":[{"type":"element","tag":"code","props":{"__ignoreMap":""},"children":[{"type":"element","tag":"span","props":{"class":"line","line":1},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":"definePageMeta"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"{\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":2},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":" middleware"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" '"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"auth"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":3},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"}"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":")\n"}]}]}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Learn more about "},{"type":"element","tag":"a","props":{"href":"https://nuxt.com/docs/guide/directory-structure/middleware","rel":["nofollow"]},"children":[{"type":"text","value":"Nuxt middleware"}]},{"type":"text","value":" and "},{"type":"element","tag":"a","props":{"href":"https://nuxt.com/docs/guide/directory-structure/pages#page-metadata","rel":["nofollow"]},"children":[{"type":"text","value":"definePageMeta"}]},{"type":"text","value":"."}]},{"type":"element","tag":"style","props":{},"children":[{"type":"text","value":"html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}"}]}],"toc":{"title":"","searchDepth":2,"depth":2,"links":[{"id":"auth-middleware","depth":2,"text":"Auth middleware"}]}},"_type":"markdown","_id":"content:4.usage:composables:useSupabaseUser.md","_source":"content","_file":"4.usage/composables/useSupabaseUser.md","_extension":"md"},{"_path":"/usage/services/_dir","_dir":"services","_draft":false,"_partial":true,"_locale":"","title":"Server services","_id":"content:4.usage:services:_dir.yml","_type":"yaml","_source":"content","_file":"4.usage/services/_dir.yml","_extension":"yml"},{"_path":"/usage/services/serversupabaseclient","_dir":"services","_draft":false,"_partial":false,"_locale":"","title":"serverSupabaseClient","description":"Make requests to the Supabase API on server side with the serverSupabaseClient service","body":{"type":"root","children":[{"type":"element","tag":"callout","props":{"color":"amber","icon":"i-heroicons-exclamation-triangle-20-solid"},"children":[{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"This section assumes you're familiar with "},{"type":"element","tag":"a","props":{"href":"https://v3.nuxtjs.org/guide/concepts/server-engine","rel":["nofollow"]},"children":[{"type":"text","value":"Nitro"}]},{"type":"text","value":", the server engine powered by Nuxt."}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"This function is working similary as the "},{"type":"element","tag":"a","props":{"href":"/usage/composables/usesupabaseclient"},"children":[{"type":"text","value":"useSupabaseClient"}]},{"type":"text","value":" composable but is designed to be used in "},{"type":"element","tag":"a","props":{"href":"https://nuxt.com/docs/guide/directory-structure/server#server-routes","rel":["nofollow"]},"children":[{"type":"text","value":"server routes"}]},{"type":"text","value":"."}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Define your server route and just import the "},{"type":"element","tag":"code","props":{"className":""},"children":[{"type":"text","value":"serverSupabaseClient"}]},{"type":"text","value":" from "},{"type":"element","tag":"code","props":{"className":""},"children":[{"type":"text","value":"#supabase/server"}]},{"type":"text","value":". Be careful, "},{"type":"element","tag":"code","props":{"className":""},"children":[{"type":"text","value":"serverSupabaseClient"}]},{"type":"text","value":" is returning a promise."}]},{"type":"element","tag":"pre","props":{"className":"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","code":"import { serverSupabaseClient } from '#supabase/server'\n\nexport default eventHandler(async (event) => {\n const client = await serverSupabaseClient(event)\n\n const { data } = await client.from('libraries').select('*')\n\n return { libraries: data }\n})\n","filename":"server/api/libraries.ts","language":"ts","meta":"","style":""},"children":[{"type":"element","tag":"code","props":{"__ignoreMap":""},"children":[{"type":"element","tag":"span","props":{"class":"line","line":1},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":"import"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" serverSupabaseClient"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" }"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" from"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" '"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"#supabase/server"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":2},"children":[{"type":"element","tag":"span","props":{"emptyLinePlaceholder":true},"children":[{"type":"text","value":"\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":3},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":"export"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" default"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" eventHandler"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":"async"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" ("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":"event"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":")"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" =>"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":4},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" client"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" ="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" await"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" serverSupabaseClient"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"event"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":")\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":5},"children":[{"type":"element","tag":"span","props":{"emptyLinePlaceholder":true},"children":[{"type":"text","value":"\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":6},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" data"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" }"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" ="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" await"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" client"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"."}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":"from"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"libraries"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":")"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"."}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":"select"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"*"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":")\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":7},"children":[{"type":"element","tag":"span","props":{"emptyLinePlaceholder":true},"children":[{"type":"text","value":"\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":8},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" return"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":" libraries"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" data"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" }\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":9},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"}"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":")\n"}]}]}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Then call your API route from any vue file:"}]},{"type":"element","tag":"pre","props":{"className":"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","code":"const fetchLibrary = async () => {\n const { libraries } = await $fetch('/api/libraries')\n}\n","filename":"pages/index.vue","language":"ts","meta":"","style":""},"children":[{"type":"element","tag":"code","props":{"__ignoreMap":""},"children":[{"type":"element","tag":"span","props":{"class":"line","line":1},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":"const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" fetchLibrary "}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" async"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" ()"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" =>"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":2},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" libraries"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" }"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" ="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" await"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" $fetch"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"/api/libraries"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":")\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":3},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"}\n"}]}]}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Be careful, if you want to call this route on SSR, please read this "},{"type":"element","tag":"a","props":{"href":"https://nuxt.com/docs/getting-started/data-fetching#isomorphic-fetch-and-fetch","rel":["nofollow"]},"children":[{"type":"text","value":"section"}]},{"type":"text","value":", you must send your browser cookies including your supabase token."}]},{"type":"element","tag":"pre","props":{"className":"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","code":"const { data: { libraries }} = await useFetch('/api/libraries', {\n headers: useRequestHeaders(['cookie'])\n})\n","filename":"pages/index.vue","language":"ts","meta":"","style":""},"children":[{"type":"element","tag":"code","props":{"__ignoreMap":""},"children":[{"type":"element","tag":"span","props":{"class":"line","line":1},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":"const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":" data"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" libraries "}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"}}"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" ="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" await"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" useFetch"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"/api/libraries"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":","}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":2},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":" headers"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" useRequestHeaders"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"(["}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"cookie"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"])\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":3},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"}"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":")\n"}]}]}]}]},{"type":"element","tag":"style","props":{},"children":[{"type":"text","value":"html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}"}]}],"toc":{"title":"","searchDepth":2,"depth":2,"links":[]}},"_type":"markdown","_id":"content:4.usage:services:1.serverSupabaseClient.md","_source":"content","_file":"4.usage/services/1.serverSupabaseClient.md","_extension":"md"},{"_path":"/usage/services/serversupabaseservicerole","_dir":"services","_draft":false,"_partial":false,"_locale":"","title":"serverServiceRole","description":"Make requests with super admin rights to the Supabase API with the serverSupabaseServiceRole service","navigation":{"title":"serverSupabaseServiceRole"},"body":{"type":"root","children":[{"type":"element","tag":"callout","props":{"color":"amber","icon":"i-heroicons-exclamation-triangle-20-solid"},"children":[{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"This section assumes you're familiar with "},{"type":"element","tag":"a","props":{"href":"https://v3.nuxtjs.org/guide/concepts/server-engine","rel":["nofollow"]},"children":[{"type":"text","value":"Nitro"}]},{"type":"text","value":", the server engine powered by Nuxt."}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"This function is designed to work only in "},{"type":"element","tag":"a","props":{"href":"https://nuxt.com/docs/guide/directory-structure/server#server-routes","rel":["nofollow"]},"children":[{"type":"text","value":"server routes"}]},{"type":"text","value":", there is no vue composable equivalent."}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"It works similary as the "},{"type":"element","tag":"a","props":{"href":"/usage/services/serversupabaseclient"},"children":[{"type":"text","value":"serverSupabaseClient"}]},{"type":"text","value":" but it provides a client with super admin rights that can bypass your "},{"type":"element","tag":"a","props":{"href":"https://supabase.com/docs/guides/auth/row-level-security","rel":["nofollow"]},"children":[{"type":"text","value":"Row Level Security"}]},{"type":"text","value":"."}]},{"type":"element","tag":"blockquote","props":{},"children":[{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"The client is initialized with the "},{"type":"element","tag":"code","props":{"className":""},"children":[{"type":"text","value":"SUPABASE_SERVICE_KEY"}]},{"type":"text","value":" you must have in your "},{"type":"element","tag":"code","props":{"className":""},"children":[{"type":"text","value":".env"}]},{"type":"text","value":" file. Checkout the doc if you want to know more about "},{"type":"element","tag":"a","props":{"href":"https://supabase.com/docs/learn/auth-deep-dive/auth-deep-dive-jwts#jwts-in-supabase","rel":["nofollow"]},"children":[{"type":"text","value":"Supabase keys"}]},{"type":"text","value":"."}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Define your server route and just import the "},{"type":"element","tag":"code","props":{"className":""},"children":[{"type":"text","value":"serverSupabaseServiceRole"}]},{"type":"text","value":" from "},{"type":"element","tag":"code","props":{"className":""},"children":[{"type":"text","value":"#supabase/server"}]},{"type":"text","value":"."}]},{"type":"element","tag":"pre","props":{"className":"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","code":"import { serverSupabaseServiceRole } from '#supabase/server'\n\nexport default eventHandler(async (event) => {\n const client = serverSupabaseServiceRole(event)\n\n const { data } = await client.from('rls-protected-table').select()\n\n return { sensitiveData: data }\n})\n","filename":"server/api/bypass-rls.ts","language":"ts","meta":"","style":""},"children":[{"type":"element","tag":"code","props":{"__ignoreMap":""},"children":[{"type":"element","tag":"span","props":{"class":"line","line":1},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":"import"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" serverSupabaseServiceRole"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" }"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" from"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" '"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"#supabase/server"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":2},"children":[{"type":"element","tag":"span","props":{"emptyLinePlaceholder":true},"children":[{"type":"text","value":"\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":3},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":"export"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" default"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" eventHandler"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":"async"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" ("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":"event"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":")"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" =>"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":4},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" client"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" ="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" serverSupabaseServiceRole"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"event"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":")\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":5},"children":[{"type":"element","tag":"span","props":{"emptyLinePlaceholder":true},"children":[{"type":"text","value":"\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":6},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" data"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" }"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" ="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" await"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" client"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"."}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":"from"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"rls-protected-table"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":")"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"."}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":"select"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"()\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":7},"children":[{"type":"element","tag":"span","props":{"emptyLinePlaceholder":true},"children":[{"type":"text","value":"\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":8},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" return"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":" sensitiveData"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" data"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" }\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":9},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"}"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":")\n"}]}]}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Then call your API route from any vue file:"}]},{"type":"element","tag":"pre","props":{"className":"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","code":"const fetchSensitiveData = async () => {\n const { sensitiveData } = await useFetch('/api/bypass-rls')\n}\n","filename":"pages/index.vue","language":"ts","meta":"","style":""},"children":[{"type":"element","tag":"code","props":{"__ignoreMap":""},"children":[{"type":"element","tag":"span","props":{"class":"line","line":1},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":"const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" fetchSensitiveData "}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" async"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" ()"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" =>"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":2},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" sensitiveData"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" }"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" ="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" await"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" useFetch"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"/api/bypass-rls"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":")\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":3},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"}\n"}]}]}]}]},{"type":"element","tag":"style","props":{},"children":[{"type":"text","value":"html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}"}]}],"toc":{"title":"","searchDepth":2,"depth":2,"links":[]}},"_type":"markdown","_id":"content:4.usage:services:2.serverSupabaseServiceRole.md","_source":"content","_file":"4.usage/services/2.serverSupabaseServiceRole.md","_extension":"md"},{"_path":"/usage/services/serversupabaseuser","_dir":"services","_draft":false,"_partial":false,"_locale":"","title":"serverSupabaseUser","description":"Get your Supabase user from serverside with the serverSupabaseUser service","body":{"type":"root","children":[{"type":"element","tag":"callout","props":{"color":"amber","icon":"i-heroicons-exclamation-triangle-20-solid"},"children":[{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"This section assumes you're familiar with "},{"type":"element","tag":"a","props":{"href":"https://v3.nuxtjs.org/guide/concepts/server-engine","rel":["nofollow"]},"children":[{"type":"text","value":"Nitro"}]},{"type":"text","value":", the server engine powered by Nuxt."}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"This function is similar to the "},{"type":"element","tag":"a","props":{"href":"/usage/composables/usesupabaseuser"},"children":[{"type":"text","value":"useSupabaseUser"}]},{"type":"text","value":" composable but is used in "},{"type":"element","tag":"a","props":{"href":"https://nuxt.com/docs/guide/directory-structure/server#server-routes","rel":["nofollow"]},"children":[{"type":"text","value":"server routes"}]},{"type":"text","value":"."}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Define your server route and import the "},{"type":"element","tag":"code","props":{"className":""},"children":[{"type":"text","value":"serverSupabaseUser"}]},{"type":"text","value":" from "},{"type":"element","tag":"code","props":{"className":""},"children":[{"type":"text","value":"#supabase/server"}]},{"type":"text","value":"."}]},{"type":"element","tag":"pre","props":{"className":"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","code":"import { serverSupabaseUser } from '#supabase/server'\n\nexport default defineEventHandler(async (event) => {\n return await serverSupabaseUser(event)\n})\n","filename":"server/api/me.ts","language":"ts","meta":"","style":""},"children":[{"type":"element","tag":"code","props":{"__ignoreMap":""},"children":[{"type":"element","tag":"span","props":{"class":"line","line":1},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":"import"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" serverSupabaseUser"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" }"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" from"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" '"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"#supabase/server"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":2},"children":[{"type":"element","tag":"span","props":{"emptyLinePlaceholder":true},"children":[{"type":"text","value":"\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":3},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":"export"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" default"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" defineEventHandler"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":"async"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" ("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":"event"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":")"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" =>"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":4},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" return"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" await"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" serverSupabaseUser"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"event"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":")\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":5},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"}"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":")\n"}]}]}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Then call your api route from any vue file:"}]},{"type":"element","tag":"pre","props":{"className":"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","code":"const user = ref(null)\n\nconst fetchMe = async () => {\n user.value = await $fetch('/api/me')\n}\n","filename":"pages/index.vue","language":"ts","meta":"","style":""},"children":[{"type":"element","tag":"code","props":{"__ignoreMap":""},"children":[{"type":"element","tag":"span","props":{"class":"line","line":1},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":"const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" user "}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" ref"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"null"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":")\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":2},"children":[{"type":"element","tag":"span","props":{"emptyLinePlaceholder":true},"children":[{"type":"text","value":"\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":3},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":"const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" fetchMe "}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" async"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" ()"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" =>"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":4},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" user"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"."}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"value"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" ="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" await"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" $fetch"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"/api/me"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":")\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":5},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"}\n"}]}]}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Be careful, if you want to call this route on SSR, please read this "},{"type":"element","tag":"a","props":{"href":"https://nuxt.com/docs/getting-started/data-fetching#isomorphic-fetch-and-fetch","rel":["nofollow"]},"children":[{"type":"text","value":"section"}]},{"type":"text","value":", you must send your browser cookies including your supabase token."}]},{"type":"element","tag":"pre","props":{"className":"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","code":"const user = ref(null)\n\nconst { data } = await useFetch('/api/me', {\n headers: useRequestHeaders(['cookie'])\n})\n\nuser.value = data\n","filename":"pages/index.vue","language":"ts","meta":"","style":""},"children":[{"type":"element","tag":"code","props":{"__ignoreMap":""},"children":[{"type":"element","tag":"span","props":{"class":"line","line":1},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":"const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" user "}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" ref"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"null"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":")\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":2},"children":[{"type":"element","tag":"span","props":{"emptyLinePlaceholder":true},"children":[{"type":"text","value":"\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":3},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":"const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" data "}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"}"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" ="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" await"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" useFetch"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"/api/me"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":","}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":4},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":" headers"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" useRequestHeaders"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"(["}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"cookie"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"])\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":5},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"}"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":")\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":6},"children":[{"type":"element","tag":"span","props":{"emptyLinePlaceholder":true},"children":[{"type":"text","value":"\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":7},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"user"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"."}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"value "}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" data\n"}]}]}]}]},{"type":"element","tag":"style","props":{},"children":[{"type":"text","value":"html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}"}]}],"toc":{"title":"","searchDepth":2,"depth":2,"links":[]}},"_type":"markdown","_id":"content:4.usage:services:3.serverSupabaseUser.md","_source":"content","_file":"4.usage/services/3.serverSupabaseUser.md","_extension":"md"},{"_path":"/demo","_dir":"","_draft":false,"_partial":false,"_locale":"","title":"Demo","description":"Demonstration of using Supabase with Nuxt.","icon":"heroicons:computer-desktop-20-solid","body":{"type":"root","children":[{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Demonstration of using Supabase with Nuxt."}]},{"type":"element","tag":"p","props":{},"children":[{"type":"element","tag":"a","props":{"href":"https://n3-supabase.netlify.app","rel":["nofollow"]},"children":[{"type":"element","tag":"img","props":{"alt":"Supabase demo with Nuxt 3","src":"https://user-images.githubusercontent.com/904724/160422461-8f87500a-8dec-4413-86b2-ba04e1b2d17b.png"},"children":[]}]}]},{"type":"element","tag":"h2","props":{"id":"live-demo"},"children":[{"type":"text","value":"Live demo"}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"You can play with the demo on "},{"type":"element","tag":"a","props":{"href":"https://n3-supabase.netlify.app","rel":["nofollow"]},"children":[{"type":"text","value":"n3-supabase.netlify.app"}]}]},{"type":"element","tag":"h2","props":{"id":"running-locally"},"children":[{"type":"text","value":"Running locally"}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Follow the instruction in the "},{"type":"element","tag":"a","props":{"href":"https://github.com/nuxt-community/supabase-module/tree/main/demo","rel":["nofollow"]},"children":[{"type":"text","value":"demo Readme"}]},{"type":"text","value":"."}]},{"type":"element","tag":"h2","props":{"id":"source-code"},"children":[{"type":"text","value":"Source code"}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"The source code is available on Github in the "},{"type":"element","tag":"a","props":{"href":"https://github.com/nuxt-community/supabase-module/tree/main/demo","rel":["nofollow"]},"children":[{"type":"text","value":"demo/ directory"}]},{"type":"text","value":"."}]}],"toc":{"title":"","searchDepth":2,"depth":2,"links":[{"id":"live-demo","depth":2,"text":"Live demo"},{"id":"running-locally","depth":2,"text":"Running locally"},{"id":"source-code","depth":2,"text":"Source code"}]}},"_type":"markdown","_id":"content:5.demo.md","_source":"content","_file":"5.demo.md","_extension":"md"},{"_path":"/changelog","_dir":"","_draft":false,"_partial":false,"_locale":"","title":"Changelog","description":"Discover the latest updates of the Supabase Module","icon":"heroicons:bookmark","body":{"type":"root","children":[{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Discover the lastest updates."}]},{"type":"element","tag":"releases","props":{},"children":[]}],"toc":{"title":"","searchDepth":2,"depth":2,"links":[]}},"_type":"markdown","_id":"content:6.changelog.md","_source":"content","_file":"6.changelog.md","_extension":"md"},{"_path":"/roadmap","_dir":"","_draft":false,"_partial":false,"_locale":"","title":"Roadmap","description":"Discover our kaban board for the next release of the Supabase module.","icon":"heroicons:map","body":{"type":"root","children":[{"type":"element","tag":"volta-board","props":{"token":"eyJzdGF0dXNlcyI6WyJ0cmlhZ2UiLCJiYWNrbG9nIiwidG9kbyIsImluX3Byb2dyZXNzIiwiaW5fcmV2aWV3IiwiZG9uZSIsInJlbGVhc2VkIiwiY2FuY2VsbGVkIl0sImZpbHRlcnMiOnt9LCJvd25lciI6Im51eHQtbW9kdWxlcyIsIm5hbWUiOiJzdXBhYmFzZSJ9"},"children":[]}],"toc":{"title":"","searchDepth":2,"depth":2,"links":[]}},"_type":"markdown","_id":"content:7.roadmap.md","_source":"content","_file":"7.roadmap.md","_extension":"md"},{"_path":"/","_dir":"","_draft":false,"_partial":false,"_locale":"","title":"Nuxt Supabase - Home","description":"A supa simple wrapper around supabase-js to enable usage and integration within Nuxt.","navigation":false,"hero":{"title":"Nuxt [Supabase]{.text-primary}","description":"A supa simple wrapper around supabase-js to enable usage and integration within Nuxt.","orientation":"horizontal","links":[{"label":"Get started","icon":"i-heroicons-rocket-launch","to":"/get-started","size":"lg"},{"label":"Star on github","icon":"i-heroicons-star","color":"white","to":"https://github.com/nuxt-modules/supabase","target":"_blank","size":"lg"}],"code":"```ts\n const supabase = useSupabaseClient()\n const email = ref('')\n\n const signInWithOtp = async () => {\n await supabase.auth.signInWithOtp({\n email: email.value,\n })\n }\n```\n"},"features":{"title":"Shipped with many features","items":[{"title":"Nuxt 3 ready","icon":"i-simple-icons-nuxtdotjs","to":"https://nuxt.com","target":"_blank"},{"title":"Vue 3 composables","icon":"i-simple-icons-vuedotjs","to":"https://vuejs.org/guide/reusability/composables.html","target":"_blank"},{"title":"Supabase-js V2","icon":"i-simple-icons-supabase","to":"https://supabase.com","target":"_blank"},{"title":"Usage in API server routes","icon":"i-heroicons-server","to":"usage/services/serversupabaseclient"},{"title":"Authentication support","icon":"i-heroicons-key","to":"/authentication"},{"title":"TypeScript support","icon":"i-simple-icons-typescript","to":"https://www.typescriptlang.org","target":"_blank"}]},"_id":"content:index.yml","_type":"yaml","_source":"content","_file":"index.yml","_extension":"yml"}],"navigation":[{"title":"Get Started","_path":"/get-started","icon":"heroicons:rocket-launch"},{"title":"Authentication","_path":"/authentication","icon":"heroicons:lock-closed"},{"title":"Usage","_path":"/usage","children":[{"title":"Vue composables","_path":"/usage/composables","children":[{"title":"useSupabaseClient","_path":"/usage/composables/usesupabaseclient"},{"title":"useSupabaseUser","_path":"/usage/composables/usesupabaseuser"}]},{"title":"Server services","_path":"/usage/services","children":[{"title":"serverSupabaseClient","_path":"/usage/services/serversupabaseclient"},{"title":"serverSupabaseServiceRole","_path":"/usage/services/serversupabaseservicerole"},{"title":"serverSupabaseUser","_path":"/usage/services/serversupabaseuser"}]}],"icon":"heroicons:book-open"},{"title":"Demo","_path":"/demo","icon":"heroicons:computer-desktop-20-solid"},{"title":"Changelog","_path":"/changelog","icon":"heroicons:bookmark"},{"title":"Roadmap","_path":"/roadmap","icon":"heroicons:map"}]} \ No newline at end of file diff --git a/api/_content/navigation/u7BbTyuhiE.1703671384174.json b/api/_content/navigation/u7BbTyuhiE.1703757791295.json similarity index 100% rename from api/_content/navigation/u7BbTyuhiE.1703671384174.json rename to api/_content/navigation/u7BbTyuhiE.1703757791295.json diff --git a/api/_content/query/0gudQYZdI3.1703671384174.json b/api/_content/query/0gudQYZdI3.1703757791295.json similarity index 100% rename from api/_content/query/0gudQYZdI3.1703671384174.json rename to api/_content/query/0gudQYZdI3.1703757791295.json diff --git a/api/_content/query/0wFsGmvw10.1703671384174.json b/api/_content/query/0wFsGmvw10.1703757791295.json similarity index 100% rename from api/_content/query/0wFsGmvw10.1703671384174.json rename to api/_content/query/0wFsGmvw10.1703757791295.json diff --git a/api/_content/query/4zYVP4W6op.1703671384174.json b/api/_content/query/4zYVP4W6op.1703757791295.json similarity index 100% rename from api/_content/query/4zYVP4W6op.1703671384174.json rename to api/_content/query/4zYVP4W6op.1703757791295.json diff --git a/api/_content/query/5lOdqeHnNL.1703671384174.json b/api/_content/query/5lOdqeHnNL.1703757791295.json similarity index 100% rename from api/_content/query/5lOdqeHnNL.1703671384174.json rename to api/_content/query/5lOdqeHnNL.1703757791295.json diff --git a/api/_content/query/76BoSDA4U0.1703671384174.json b/api/_content/query/76BoSDA4U0.1703757791295.json similarity index 100% rename from api/_content/query/76BoSDA4U0.1703671384174.json rename to api/_content/query/76BoSDA4U0.1703757791295.json diff --git a/api/_content/query/CsvcZ6zVi1.1703671384174.json b/api/_content/query/CsvcZ6zVi1.1703757791295.json similarity index 100% rename from api/_content/query/CsvcZ6zVi1.1703671384174.json rename to api/_content/query/CsvcZ6zVi1.1703757791295.json diff --git a/api/_content/query/JW0JBzZZMj.1703671384174.json b/api/_content/query/JW0JBzZZMj.1703757791295.json similarity index 100% rename from api/_content/query/JW0JBzZZMj.1703671384174.json rename to api/_content/query/JW0JBzZZMj.1703757791295.json diff --git a/api/_content/query/L15561AOag.1703671384174.json b/api/_content/query/L15561AOag.1703757791295.json similarity index 100% rename from api/_content/query/L15561AOag.1703671384174.json rename to api/_content/query/L15561AOag.1703757791295.json diff --git a/api/_content/query/U0fhu5Rxhl.1703671384174.json b/api/_content/query/U0fhu5Rxhl.1703757791295.json similarity index 100% rename from api/_content/query/U0fhu5Rxhl.1703671384174.json rename to api/_content/query/U0fhu5Rxhl.1703757791295.json diff --git a/api/_content/query/Y4LEUEirY6.1703671384174.json b/api/_content/query/Y4LEUEirY6.1703757791295.json similarity index 100% rename from api/_content/query/Y4LEUEirY6.1703671384174.json rename to api/_content/query/Y4LEUEirY6.1703757791295.json diff --git a/api/_content/query/YSHNqHnuhS.1703671384174.json b/api/_content/query/YSHNqHnuhS.1703757791295.json similarity index 100% rename from api/_content/query/YSHNqHnuhS.1703671384174.json rename to api/_content/query/YSHNqHnuhS.1703757791295.json diff --git a/api/_content/query/brX4CwCJoQ.1703671384174.json b/api/_content/query/brX4CwCJoQ.1703757791295.json similarity index 100% rename from api/_content/query/brX4CwCJoQ.1703671384174.json rename to api/_content/query/brX4CwCJoQ.1703757791295.json diff --git a/api/_content/query/dKXPFPos09.1703671384174.json b/api/_content/query/dKXPFPos09.1703757791295.json similarity index 100% rename from api/_content/query/dKXPFPos09.1703671384174.json rename to api/_content/query/dKXPFPos09.1703757791295.json diff --git a/api/_content/query/hYpPLZd268.1703671384174.json b/api/_content/query/hYpPLZd268.1703757791295.json similarity index 100% rename from api/_content/query/hYpPLZd268.1703671384174.json rename to api/_content/query/hYpPLZd268.1703757791295.json diff --git a/api/_content/query/mUC1LoY5SU.1703671384174.json b/api/_content/query/mUC1LoY5SU.1703757791295.json similarity index 100% rename from api/_content/query/mUC1LoY5SU.1703671384174.json rename to api/_content/query/mUC1LoY5SU.1703757791295.json diff --git a/api/_content/query/mjPUuLZ5K0.1703671384174.json b/api/_content/query/mjPUuLZ5K0.1703757791295.json similarity index 100% rename from api/_content/query/mjPUuLZ5K0.1703671384174.json rename to api/_content/query/mjPUuLZ5K0.1703757791295.json diff --git a/api/_content/query/pTByVtROxU.1703671384174.json b/api/_content/query/pTByVtROxU.1703757791295.json similarity index 100% rename from api/_content/query/pTByVtROxU.1703671384174.json rename to api/_content/query/pTByVtROxU.1703757791295.json diff --git a/api/_content/query/sY2lwz2oSi.1703671384174.json b/api/_content/query/sY2lwz2oSi.1703757791295.json similarity index 100% rename from api/_content/query/sY2lwz2oSi.1703671384174.json rename to api/_content/query/sY2lwz2oSi.1703757791295.json diff --git a/api/_content/query/unQN3QZxvJ.1703671384174.json b/api/_content/query/unQN3QZxvJ.1703757791295.json similarity index 100% rename from api/_content/query/unQN3QZxvJ.1703671384174.json rename to api/_content/query/unQN3QZxvJ.1703757791295.json diff --git a/api/_content/query/xTj1Y0li2H.1703671384174.json b/api/_content/query/xTj1Y0li2H.1703757791295.json similarity index 100% rename from api/_content/query/xTj1Y0li2H.1703671384174.json rename to api/_content/query/xTj1Y0li2H.1703757791295.json diff --git a/api/_content/query/yZYG07dTrW.1703671384174.json b/api/_content/query/yZYG07dTrW.1703757791295.json similarity index 100% rename from api/_content/query/yZYG07dTrW.1703671384174.json rename to api/_content/query/yZYG07dTrW.1703757791295.json diff --git a/api/_github/contributors/index.json b/api/_github/contributors/index.json index fbbf4d95..d5cc7f86 100644 --- a/api/_github/contributors/index.json +++ b/api/_github/contributors/index.json @@ -1 +1 @@ -[{"avatar_url":"https://avatars.githubusercontent.com/u/7290030?v=4","login":"larbish"},{"avatar_url":"https://avatars.githubusercontent.com/u/904724?v=4","login":"Atinux"},{"avatar_url":"https://avatars.githubusercontent.com/in/2740?v=4","login":"renovate[bot]"},{"avatar_url":"https://avatars.githubusercontent.com/u/5158436?v=4","login":"pi0"},{"avatar_url":"https://avatars.githubusercontent.com/u/739984?v=4","login":"benjamincanac"},{"avatar_url":"https://avatars.githubusercontent.com/u/25272043?v=4","login":"kevinmarrec"},{"avatar_url":"https://avatars.githubusercontent.com/u/5823770?v=4","login":"Aietes"},{"avatar_url":"https://avatars.githubusercontent.com/u/1259364?v=4","login":"levibe"},{"avatar_url":"https://avatars.githubusercontent.com/u/25180681?v=4","login":"renovate-bot"},{"avatar_url":"https://avatars.githubusercontent.com/u/982975?v=4","login":"AlbertBrand"},{"avatar_url":"https://avatars.githubusercontent.com/u/96275757?v=4","login":"52cs"},{"avatar_url":"https://avatars.githubusercontent.com/u/640208?v=4","login":"manniL"},{"avatar_url":"https://avatars.githubusercontent.com/u/38134195?v=4","login":"amrnn90"},{"avatar_url":"https://avatars.githubusercontent.com/u/7190600?v=4","login":"mitjans"},{"avatar_url":"https://avatars.githubusercontent.com/u/48835293?v=4","login":"DamianGlowala"},{"avatar_url":"https://avatars.githubusercontent.com/u/28706372?v=4","login":"danielroe"},{"avatar_url":"https://avatars.githubusercontent.com/u/69633530?v=4","login":"florian-lefebvre"},{"avatar_url":"https://avatars.githubusercontent.com/u/40766799?v=4","login":"tnntwister"},{"avatar_url":"https://avatars.githubusercontent.com/u/49143414?v=4","login":"hafizjavaid"},{"avatar_url":"https://avatars.githubusercontent.com/u/31483041?v=4","login":"jonesisg1"},{"avatar_url":"https://avatars.githubusercontent.com/u/36164786?v=4","login":"Jclong98"},{"avatar_url":"https://avatars.githubusercontent.com/u/44449?v=4","login":"jawngee"},{"avatar_url":"https://avatars.githubusercontent.com/u/3399841?v=4","login":"joshuabyler"},{"avatar_url":"https://avatars.githubusercontent.com/u/44786998?v=4","login":"josueayala27"},{"avatar_url":"https://avatars.githubusercontent.com/u/1248148?v=4","login":"blqke"},{"avatar_url":"https://avatars.githubusercontent.com/u/61005888?v=4","login":"kuizuo"},{"avatar_url":"https://avatars.githubusercontent.com/u/83463097?v=4","login":"oumarbarry"},{"avatar_url":"https://avatars.githubusercontent.com/u/7809845?v=4","login":"psto"},{"avatar_url":"https://avatars.githubusercontent.com/u/16954673?v=4","login":"relisora"},{"avatar_url":"https://avatars.githubusercontent.com/u/38413630?v=4","login":"icarusgk"}] \ No newline at end of file +[{"avatar_url":"https://avatars.githubusercontent.com/u/7290030?v=4","login":"larbish"},{"avatar_url":"https://avatars.githubusercontent.com/u/904724?v=4","login":"Atinux"},{"avatar_url":"https://avatars.githubusercontent.com/in/2740?v=4","login":"renovate[bot]"},{"avatar_url":"https://avatars.githubusercontent.com/u/5158436?v=4","login":"pi0"},{"avatar_url":"https://avatars.githubusercontent.com/u/739984?v=4","login":"benjamincanac"},{"avatar_url":"https://avatars.githubusercontent.com/u/25272043?v=4","login":"kevinmarrec"},{"avatar_url":"https://avatars.githubusercontent.com/u/5823770?v=4","login":"Aietes"},{"avatar_url":"https://avatars.githubusercontent.com/u/28706372?v=4","login":"danielroe"},{"avatar_url":"https://avatars.githubusercontent.com/u/1259364?v=4","login":"levibe"},{"avatar_url":"https://avatars.githubusercontent.com/u/25180681?v=4","login":"renovate-bot"},{"avatar_url":"https://avatars.githubusercontent.com/u/982975?v=4","login":"AlbertBrand"},{"avatar_url":"https://avatars.githubusercontent.com/u/96275757?v=4","login":"52cs"},{"avatar_url":"https://avatars.githubusercontent.com/u/640208?v=4","login":"manniL"},{"avatar_url":"https://avatars.githubusercontent.com/u/38134195?v=4","login":"amrnn90"},{"avatar_url":"https://avatars.githubusercontent.com/u/7190600?v=4","login":"mitjans"},{"avatar_url":"https://avatars.githubusercontent.com/u/48835293?v=4","login":"DamianGlowala"},{"avatar_url":"https://avatars.githubusercontent.com/u/69633530?v=4","login":"florian-lefebvre"},{"avatar_url":"https://avatars.githubusercontent.com/u/40766799?v=4","login":"tnntwister"},{"avatar_url":"https://avatars.githubusercontent.com/u/49143414?v=4","login":"hafizjavaid"},{"avatar_url":"https://avatars.githubusercontent.com/u/31483041?v=4","login":"jonesisg1"},{"avatar_url":"https://avatars.githubusercontent.com/u/36164786?v=4","login":"Jclong98"},{"avatar_url":"https://avatars.githubusercontent.com/u/44449?v=4","login":"jawngee"},{"avatar_url":"https://avatars.githubusercontent.com/u/3399841?v=4","login":"joshuabyler"},{"avatar_url":"https://avatars.githubusercontent.com/u/44786998?v=4","login":"josueayala27"},{"avatar_url":"https://avatars.githubusercontent.com/u/1248148?v=4","login":"blqke"},{"avatar_url":"https://avatars.githubusercontent.com/u/61005888?v=4","login":"kuizuo"},{"avatar_url":"https://avatars.githubusercontent.com/u/83463097?v=4","login":"oumarbarry"},{"avatar_url":"https://avatars.githubusercontent.com/u/7809845?v=4","login":"psto"},{"avatar_url":"https://avatars.githubusercontent.com/u/16954673?v=4","login":"relisora"},{"avatar_url":"https://avatars.githubusercontent.com/u/38413630?v=4","login":"icarusgk"}] \ No newline at end of file diff --git a/authentication/_payload.json b/authentication/_payload.json index 3ee10796..28c55016 100644 --- a/authentication/_payload.json +++ b/authentication/_payload.json @@ -1 +1 @@ -[{"data":1,"prerenderedAt":1190},["Reactive",2],{"navigation":3,"/authentication":52,"/authentication-surround":1185},[4,8,12,40,44,48],{"title":5,"_path":6,"icon":7},"Get Started","/get-started","heroicons:rocket-launch",{"title":9,"_path":10,"icon":11},"Authentication","/authentication","heroicons:lock-closed",{"title":13,"_path":14,"children":15,"icon":39},"Usage","/usage",[16,26],{"title":17,"_path":18,"children":19},"Vue composables","/usage/composables",[20,23],{"title":21,"_path":22},"useSupabaseClient","/usage/composables/usesupabaseclient",{"title":24,"_path":25},"useSupabaseUser","/usage/composables/usesupabaseuser",{"title":27,"_path":28,"children":29},"Server services","/usage/services",[30,33,36],{"title":31,"_path":32},"serverSupabaseClient","/usage/services/serversupabaseclient",{"title":34,"_path":35},"serverSupabaseServiceRole","/usage/services/serversupabaseservicerole",{"title":37,"_path":38},"serverSupabaseUser","/usage/services/serversupabaseuser","heroicons:book-open",{"title":41,"_path":42,"icon":43},"Demo","/demo","heroicons:computer-desktop-20-solid",{"title":45,"_path":46,"icon":47},"Changelog","/changelog","heroicons:bookmark",{"title":49,"_path":50,"icon":51},"Roadmap","/roadmap","heroicons:map",{"_path":10,"_dir":53,"_draft":54,"_partial":54,"_locale":53,"title":9,"description":55,"icon":11,"body":56,"_type":1180,"_id":1181,"_source":1182,"_file":1183,"_extension":1184},"",false,"Authenticate your user thanks to the PKCE Oauth protocol that enables secure exchange of refresh and access tokens between an application and the authorization server",{"type":57,"children":58,"toc":1174},"root",[59,87,114,131,143,156,172,186,819,843,853,858,872,1168],{"type":60,"tag":61,"props":62,"children":63},"element","p",{},[64,67,76,78,85],{"type":65,"value":66},"text","With the default options, the module requires a log-in page and a confirm page to handle the ",{"type":60,"tag":68,"props":69,"children":73},"a",{"href":70,"rel":71},"https://supabase.com/docs/guides/resources/glossary#pkce",[72],"nofollow",[74],{"type":65,"value":75},"PKCE authorization code flow",{"type":65,"value":77},". If you want to understand how it works under the hood, you can read this ",{"type":60,"tag":68,"props":79,"children":82},{"href":80,"rel":81},"https://supabase.com/docs/guides/auth/server-side-rendering#understanding-the-authentication-flow",[72],[83],{"type":65,"value":84},"section",{"type":65,"value":86},".",{"type":60,"tag":61,"props":88,"children":89},{},[90,92,98,100,105,107,112],{"type":65,"value":91},"All you need to do is to create a ",{"type":60,"tag":93,"props":94,"children":95},"code",{"className":53},[96],{"type":65,"value":97},"login.vue",{"type":65,"value":99}," and ",{"type":60,"tag":93,"props":101,"children":102},{"className":53},[103],{"type":65,"value":104},"confirm.vue",{"type":65,"value":106}," page in the ",{"type":60,"tag":93,"props":108,"children":109},{"className":53},[110],{"type":65,"value":111},"pages",{"type":65,"value":113}," folder.",{"type":60,"tag":115,"props":116,"children":118},"callout",{"icon":117},"i-heroicons-light-bulb",[119],{"type":60,"tag":61,"props":120,"children":121},{},[122,124,130],{"type":65,"value":123},"For advanced users who want to implement the auth behaviour themselves, you can disable or override the ",{"type":60,"tag":68,"props":125,"children":127},{"href":126},"/get-started#redirect",[128],{"type":65,"value":129},"redirect options",{"type":65,"value":86},{"type":60,"tag":132,"props":133,"children":135},"h2",{"id":134},"log-in-page-login",[136,138],{"type":65,"value":137},"Log-in page - ",{"type":60,"tag":93,"props":139,"children":140},{"className":53},[141],{"type":65,"value":142},"/login",{"type":60,"tag":61,"props":144,"children":145},{},[146,148,154],{"type":65,"value":147},"Each time a user is trying to access a page that needs authentication, he will automatically be redirected to the configured log in page. If you want to allow access to \"public\" page, you just need to add them in the ",{"type":60,"tag":68,"props":149,"children":151},{"href":150},"/get-started#redirectoptions",[152],{"type":65,"value":153},"exclude",{"type":65,"value":155}," redirect option.",{"type":60,"tag":115,"props":157,"children":160},{"icon":158,"color":159},"i-heroicons-exclamation-triangle-20-solid","amber",[161],{"type":60,"tag":61,"props":162,"children":163},{},[164,166,171],{"type":65,"value":165},"Ensure to activate the authentication providers you want in the Supabase Dashboard under ",{"type":60,"tag":93,"props":167,"children":168},{"className":53},[169],{"type":65,"value":170},"Authentication -> Providers",{"type":65,"value":86},{"type":60,"tag":61,"props":173,"children":174},{},[175,177,184],{"type":65,"value":176},"The log-in page initiates the log-in method(s) you choose from the ",{"type":60,"tag":68,"props":178,"children":181},{"href":179,"rel":180},"https://supabase.com/docs/reference/javascript/auth-signinwithpassword",[72],[182],{"type":65,"value":183},"available authorization methods",{"type":65,"value":185}," provided by Supabase, it could looks like:",{"type":60,"tag":187,"props":188,"children":193},"pre",{"className":189,"code":190,"filename":191,"language":192,"meta":53,"style":53},"language-vue shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","\u003Cscript setup lang=\"ts\">\nconst supabase = useSupabaseClient()\nconst email = ref('')\n\nconst signInWithOtp = async () => {\n const { error } = await supabase.auth.signInWithOtp({\n email: email.value,\n options: {\n emailRedirectTo: 'http://localhost:3000/confirm',\n }\n })\n if (error) console.log(error)\n}\n\u003C/script>\n\u003Ctemplate>\n \u003Cdiv>\n \u003Cbutton @click=\"signInWithOtp\">\n Sign In with E-Mail\n \u003C/button>\n \u003Cinput\n v-model=\"email\"\n type=\"email\"\n />\n \u003C/div>\n\u003C/template>\n","pages/login.vue","vue",[194],{"type":60,"tag":93,"props":195,"children":196},{"__ignoreMap":53},[197,251,281,318,328,365,432,465,482,514,523,536,586,595,612,629,647,686,695,712,725,752,777,786,803],{"type":60,"tag":198,"props":199,"children":202},"span",{"class":200,"line":201},"line",1,[203,209,215,221,226,231,236,242,246],{"type":60,"tag":198,"props":204,"children":206},{"style":205},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF",[207],{"type":65,"value":208},"\u003C",{"type":60,"tag":198,"props":210,"children":212},{"style":211},"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178",[213],{"type":65,"value":214},"script",{"type":60,"tag":198,"props":216,"children":218},{"style":217},"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA",[219],{"type":65,"value":220}," setup",{"type":60,"tag":198,"props":222,"children":223},{"style":217},[224],{"type":65,"value":225}," lang",{"type":60,"tag":198,"props":227,"children":228},{"style":205},[229],{"type":65,"value":230},"=",{"type":60,"tag":198,"props":232,"children":233},{"style":205},[234],{"type":65,"value":235},"\"",{"type":60,"tag":198,"props":237,"children":239},{"style":238},"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D",[240],{"type":65,"value":241},"ts",{"type":60,"tag":198,"props":243,"children":244},{"style":205},[245],{"type":65,"value":235},{"type":60,"tag":198,"props":247,"children":248},{"style":205},[249],{"type":65,"value":250},">\n",{"type":60,"tag":198,"props":252,"children":254},{"class":200,"line":253},2,[255,260,266,270,276],{"type":60,"tag":198,"props":256,"children":257},{"style":217},[258],{"type":65,"value":259},"const",{"type":60,"tag":198,"props":261,"children":263},{"style":262},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8",[264],{"type":65,"value":265}," supabase ",{"type":60,"tag":198,"props":267,"children":268},{"style":205},[269],{"type":65,"value":230},{"type":60,"tag":198,"props":271,"children":273},{"style":272},"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF",[274],{"type":65,"value":275}," useSupabaseClient",{"type":60,"tag":198,"props":277,"children":278},{"style":262},[279],{"type":65,"value":280},"()\n",{"type":60,"tag":198,"props":282,"children":284},{"class":200,"line":283},3,[285,289,294,298,303,308,313],{"type":60,"tag":198,"props":286,"children":287},{"style":217},[288],{"type":65,"value":259},{"type":60,"tag":198,"props":290,"children":291},{"style":262},[292],{"type":65,"value":293}," email ",{"type":60,"tag":198,"props":295,"children":296},{"style":205},[297],{"type":65,"value":230},{"type":60,"tag":198,"props":299,"children":300},{"style":272},[301],{"type":65,"value":302}," ref",{"type":60,"tag":198,"props":304,"children":305},{"style":262},[306],{"type":65,"value":307},"(",{"type":60,"tag":198,"props":309,"children":310},{"style":205},[311],{"type":65,"value":312},"''",{"type":60,"tag":198,"props":314,"children":315},{"style":262},[316],{"type":65,"value":317},")\n",{"type":60,"tag":198,"props":319,"children":321},{"class":200,"line":320},4,[322],{"type":60,"tag":198,"props":323,"children":325},{"emptyLinePlaceholder":324},true,[326],{"type":65,"value":327},"\n",{"type":60,"tag":198,"props":329,"children":331},{"class":200,"line":330},5,[332,336,341,345,350,355,360],{"type":60,"tag":198,"props":333,"children":334},{"style":217},[335],{"type":65,"value":259},{"type":60,"tag":198,"props":337,"children":338},{"style":262},[339],{"type":65,"value":340}," signInWithOtp ",{"type":60,"tag":198,"props":342,"children":343},{"style":205},[344],{"type":65,"value":230},{"type":60,"tag":198,"props":346,"children":347},{"style":217},[348],{"type":65,"value":349}," async",{"type":60,"tag":198,"props":351,"children":352},{"style":205},[353],{"type":65,"value":354}," ()",{"type":60,"tag":198,"props":356,"children":357},{"style":217},[358],{"type":65,"value":359}," =>",{"type":60,"tag":198,"props":361,"children":362},{"style":205},[363],{"type":65,"value":364}," {\n",{"type":60,"tag":198,"props":366,"children":368},{"class":200,"line":367},6,[369,374,379,384,389,394,400,405,409,414,418,423,427],{"type":60,"tag":198,"props":370,"children":371},{"style":217},[372],{"type":65,"value":373}," const",{"type":60,"tag":198,"props":375,"children":376},{"style":205},[377],{"type":65,"value":378}," {",{"type":60,"tag":198,"props":380,"children":381},{"style":262},[382],{"type":65,"value":383}," error",{"type":60,"tag":198,"props":385,"children":386},{"style":205},[387],{"type":65,"value":388}," }",{"type":60,"tag":198,"props":390,"children":391},{"style":205},[392],{"type":65,"value":393}," =",{"type":60,"tag":198,"props":395,"children":397},{"style":396},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic",[398],{"type":65,"value":399}," await",{"type":60,"tag":198,"props":401,"children":402},{"style":262},[403],{"type":65,"value":404}," supabase",{"type":60,"tag":198,"props":406,"children":407},{"style":205},[408],{"type":65,"value":86},{"type":60,"tag":198,"props":410,"children":411},{"style":262},[412],{"type":65,"value":413},"auth",{"type":60,"tag":198,"props":415,"children":416},{"style":205},[417],{"type":65,"value":86},{"type":60,"tag":198,"props":419,"children":420},{"style":272},[421],{"type":65,"value":422},"signInWithOtp",{"type":60,"tag":198,"props":424,"children":425},{"style":211},[426],{"type":65,"value":307},{"type":60,"tag":198,"props":428,"children":429},{"style":205},[430],{"type":65,"value":431},"{\n",{"type":60,"tag":198,"props":433,"children":435},{"class":200,"line":434},7,[436,441,446,451,455,460],{"type":60,"tag":198,"props":437,"children":438},{"style":211},[439],{"type":65,"value":440}," email",{"type":60,"tag":198,"props":442,"children":443},{"style":205},[444],{"type":65,"value":445},":",{"type":60,"tag":198,"props":447,"children":448},{"style":262},[449],{"type":65,"value":450}," email",{"type":60,"tag":198,"props":452,"children":453},{"style":205},[454],{"type":65,"value":86},{"type":60,"tag":198,"props":456,"children":457},{"style":262},[458],{"type":65,"value":459},"value",{"type":60,"tag":198,"props":461,"children":462},{"style":205},[463],{"type":65,"value":464},",\n",{"type":60,"tag":198,"props":466,"children":468},{"class":200,"line":467},8,[469,474,478],{"type":60,"tag":198,"props":470,"children":471},{"style":211},[472],{"type":65,"value":473}," options",{"type":60,"tag":198,"props":475,"children":476},{"style":205},[477],{"type":65,"value":445},{"type":60,"tag":198,"props":479,"children":480},{"style":205},[481],{"type":65,"value":364},{"type":60,"tag":198,"props":483,"children":485},{"class":200,"line":484},9,[486,491,495,500,505,510],{"type":60,"tag":198,"props":487,"children":488},{"style":211},[489],{"type":65,"value":490}," emailRedirectTo",{"type":60,"tag":198,"props":492,"children":493},{"style":205},[494],{"type":65,"value":445},{"type":60,"tag":198,"props":496,"children":497},{"style":205},[498],{"type":65,"value":499}," '",{"type":60,"tag":198,"props":501,"children":502},{"style":238},[503],{"type":65,"value":504},"http://localhost:3000/confirm",{"type":60,"tag":198,"props":506,"children":507},{"style":205},[508],{"type":65,"value":509},"'",{"type":60,"tag":198,"props":511,"children":512},{"style":205},[513],{"type":65,"value":464},{"type":60,"tag":198,"props":515,"children":517},{"class":200,"line":516},10,[518],{"type":60,"tag":198,"props":519,"children":520},{"style":205},[521],{"type":65,"value":522}," }\n",{"type":60,"tag":198,"props":524,"children":526},{"class":200,"line":525},11,[527,532],{"type":60,"tag":198,"props":528,"children":529},{"style":205},[530],{"type":65,"value":531}," }",{"type":60,"tag":198,"props":533,"children":534},{"style":211},[535],{"type":65,"value":317},{"type":60,"tag":198,"props":537,"children":539},{"class":200,"line":538},12,[540,545,550,555,560,565,569,574,578,582],{"type":60,"tag":198,"props":541,"children":542},{"style":396},[543],{"type":65,"value":544}," if",{"type":60,"tag":198,"props":546,"children":547},{"style":211},[548],{"type":65,"value":549}," (",{"type":60,"tag":198,"props":551,"children":552},{"style":262},[553],{"type":65,"value":554},"error",{"type":60,"tag":198,"props":556,"children":557},{"style":211},[558],{"type":65,"value":559},") ",{"type":60,"tag":198,"props":561,"children":562},{"style":262},[563],{"type":65,"value":564},"console",{"type":60,"tag":198,"props":566,"children":567},{"style":205},[568],{"type":65,"value":86},{"type":60,"tag":198,"props":570,"children":571},{"style":272},[572],{"type":65,"value":573},"log",{"type":60,"tag":198,"props":575,"children":576},{"style":211},[577],{"type":65,"value":307},{"type":60,"tag":198,"props":579,"children":580},{"style":262},[581],{"type":65,"value":554},{"type":60,"tag":198,"props":583,"children":584},{"style":211},[585],{"type":65,"value":317},{"type":60,"tag":198,"props":587,"children":589},{"class":200,"line":588},13,[590],{"type":60,"tag":198,"props":591,"children":592},{"style":205},[593],{"type":65,"value":594},"}\n",{"type":60,"tag":198,"props":596,"children":598},{"class":200,"line":597},14,[599,604,608],{"type":60,"tag":198,"props":600,"children":601},{"style":205},[602],{"type":65,"value":603},"\u003C/",{"type":60,"tag":198,"props":605,"children":606},{"style":211},[607],{"type":65,"value":214},{"type":60,"tag":198,"props":609,"children":610},{"style":205},[611],{"type":65,"value":250},{"type":60,"tag":198,"props":613,"children":615},{"class":200,"line":614},15,[616,620,625],{"type":60,"tag":198,"props":617,"children":618},{"style":205},[619],{"type":65,"value":208},{"type":60,"tag":198,"props":621,"children":622},{"style":211},[623],{"type":65,"value":624},"template",{"type":60,"tag":198,"props":626,"children":627},{"style":205},[628],{"type":65,"value":250},{"type":60,"tag":198,"props":630,"children":632},{"class":200,"line":631},16,[633,638,643],{"type":60,"tag":198,"props":634,"children":635},{"style":205},[636],{"type":65,"value":637}," \u003C",{"type":60,"tag":198,"props":639,"children":640},{"style":211},[641],{"type":65,"value":642},"div",{"type":60,"tag":198,"props":644,"children":645},{"style":205},[646],{"type":65,"value":250},{"type":60,"tag":198,"props":648,"children":650},{"class":200,"line":649},17,[651,656,661,666,670,674,678,682],{"type":60,"tag":198,"props":652,"children":653},{"style":205},[654],{"type":65,"value":655}," \u003C",{"type":60,"tag":198,"props":657,"children":658},{"style":211},[659],{"type":65,"value":660},"button",{"type":60,"tag":198,"props":662,"children":663},{"style":217},[664],{"type":65,"value":665}," @click",{"type":60,"tag":198,"props":667,"children":668},{"style":205},[669],{"type":65,"value":230},{"type":60,"tag":198,"props":671,"children":672},{"style":205},[673],{"type":65,"value":235},{"type":60,"tag":198,"props":675,"children":676},{"style":238},[677],{"type":65,"value":422},{"type":60,"tag":198,"props":679,"children":680},{"style":205},[681],{"type":65,"value":235},{"type":60,"tag":198,"props":683,"children":684},{"style":205},[685],{"type":65,"value":250},{"type":60,"tag":198,"props":687,"children":689},{"class":200,"line":688},18,[690],{"type":60,"tag":198,"props":691,"children":692},{"style":262},[693],{"type":65,"value":694}," Sign In with E-Mail\n",{"type":60,"tag":198,"props":696,"children":698},{"class":200,"line":697},19,[699,704,708],{"type":60,"tag":198,"props":700,"children":701},{"style":205},[702],{"type":65,"value":703}," \u003C/",{"type":60,"tag":198,"props":705,"children":706},{"style":211},[707],{"type":65,"value":660},{"type":60,"tag":198,"props":709,"children":710},{"style":205},[711],{"type":65,"value":250},{"type":60,"tag":198,"props":713,"children":715},{"class":200,"line":714},20,[716,720],{"type":60,"tag":198,"props":717,"children":718},{"style":205},[719],{"type":65,"value":655},{"type":60,"tag":198,"props":721,"children":722},{"style":211},[723],{"type":65,"value":724},"input\n",{"type":60,"tag":198,"props":726,"children":728},{"class":200,"line":727},21,[729,734,738,742,747],{"type":60,"tag":198,"props":730,"children":731},{"style":217},[732],{"type":65,"value":733}," v-model",{"type":60,"tag":198,"props":735,"children":736},{"style":205},[737],{"type":65,"value":230},{"type":60,"tag":198,"props":739,"children":740},{"style":205},[741],{"type":65,"value":235},{"type":60,"tag":198,"props":743,"children":744},{"style":238},[745],{"type":65,"value":746},"email",{"type":60,"tag":198,"props":748,"children":749},{"style":205},[750],{"type":65,"value":751},"\"\n",{"type":60,"tag":198,"props":753,"children":755},{"class":200,"line":754},22,[756,761,765,769,773],{"type":60,"tag":198,"props":757,"children":758},{"style":217},[759],{"type":65,"value":760}," type",{"type":60,"tag":198,"props":762,"children":763},{"style":205},[764],{"type":65,"value":230},{"type":60,"tag":198,"props":766,"children":767},{"style":205},[768],{"type":65,"value":235},{"type":60,"tag":198,"props":770,"children":771},{"style":238},[772],{"type":65,"value":746},{"type":60,"tag":198,"props":774,"children":775},{"style":205},[776],{"type":65,"value":751},{"type":60,"tag":198,"props":778,"children":780},{"class":200,"line":779},23,[781],{"type":60,"tag":198,"props":782,"children":783},{"style":205},[784],{"type":65,"value":785}," />\n",{"type":60,"tag":198,"props":787,"children":789},{"class":200,"line":788},24,[790,795,799],{"type":60,"tag":198,"props":791,"children":792},{"style":205},[793],{"type":65,"value":794}," \u003C/",{"type":60,"tag":198,"props":796,"children":797},{"style":211},[798],{"type":65,"value":642},{"type":60,"tag":198,"props":800,"children":801},{"style":205},[802],{"type":65,"value":250},{"type":60,"tag":198,"props":804,"children":806},{"class":200,"line":805},25,[807,811,815],{"type":60,"tag":198,"props":808,"children":809},{"style":205},[810],{"type":65,"value":603},{"type":60,"tag":198,"props":812,"children":813},{"style":211},[814],{"type":65,"value":624},{"type":60,"tag":198,"props":816,"children":817},{"style":205},[818],{"type":65,"value":250},{"type":60,"tag":61,"props":820,"children":821},{},[822,824,828,830,834,836,841],{"type":65,"value":823},"Once the authorization flow is triggered using the ",{"type":60,"tag":93,"props":825,"children":826},{"className":53},[827],{"type":65,"value":413},{"type":65,"value":829}," wrapper of the ",{"type":60,"tag":68,"props":831,"children":832},{"href":22},[833],{"type":65,"value":21},{"type":65,"value":835}," composable, the session management is handled automatically and the user will be redirected to the page you specify in the redirect option (",{"type":60,"tag":93,"props":837,"children":838},{"className":53},[839],{"type":65,"value":840},"/confirm",{"type":65,"value":842}," by default).",{"type":60,"tag":132,"props":844,"children":846},{"id":845},"confirm-page-confirm",[847,849],{"type":65,"value":848},"Confirm page - ",{"type":60,"tag":93,"props":850,"children":851},{"className":53},[852],{"type":65,"value":840},{"type":60,"tag":61,"props":854,"children":855},{},[856],{"type":65,"value":857},"The confirmation page receives the supabase callback. From there you can check the user value and redirect to the appropriate page.",{"type":60,"tag":115,"props":859,"children":860},{"icon":117},[861],{"type":60,"tag":61,"props":862,"children":863},{},[864,866,871],{"type":65,"value":865},"The redirect URL must be configured in your Supabase dashboard under ",{"type":60,"tag":93,"props":867,"children":868},{"className":53},[869],{"type":65,"value":870},"Authentication -> URL Configuration -> Redirect URLs",{"type":65,"value":86},{"type":60,"tag":187,"props":873,"children":876},{"className":189,"code":874,"filename":875,"language":192,"meta":53,"style":53},"\u003Cscript setup lang=\"ts\">\nconst user = useSupabaseUser()\nwatch(user, () => {\n if (user.value) {\n return navigateTo('/')\n }\n}, { immediate: true })\n\n\u003C/script>\n\u003Ctemplate>\n \u003Cdiv>Waiting for login...\u003C/div>\n\u003C/template>\n","pages/confirm.vue",[877],{"type":60,"tag":93,"props":878,"children":879},{"__ignoreMap":53},[880,919,944,974,1006,1040,1048,1083,1090,1105,1120,1153],{"type":60,"tag":198,"props":881,"children":882},{"class":200,"line":201},[883,887,891,895,899,903,907,911,915],{"type":60,"tag":198,"props":884,"children":885},{"style":205},[886],{"type":65,"value":208},{"type":60,"tag":198,"props":888,"children":889},{"style":211},[890],{"type":65,"value":214},{"type":60,"tag":198,"props":892,"children":893},{"style":217},[894],{"type":65,"value":220},{"type":60,"tag":198,"props":896,"children":897},{"style":217},[898],{"type":65,"value":225},{"type":60,"tag":198,"props":900,"children":901},{"style":205},[902],{"type":65,"value":230},{"type":60,"tag":198,"props":904,"children":905},{"style":205},[906],{"type":65,"value":235},{"type":60,"tag":198,"props":908,"children":909},{"style":238},[910],{"type":65,"value":241},{"type":60,"tag":198,"props":912,"children":913},{"style":205},[914],{"type":65,"value":235},{"type":60,"tag":198,"props":916,"children":917},{"style":205},[918],{"type":65,"value":250},{"type":60,"tag":198,"props":920,"children":921},{"class":200,"line":253},[922,926,931,935,940],{"type":60,"tag":198,"props":923,"children":924},{"style":217},[925],{"type":65,"value":259},{"type":60,"tag":198,"props":927,"children":928},{"style":262},[929],{"type":65,"value":930}," user ",{"type":60,"tag":198,"props":932,"children":933},{"style":205},[934],{"type":65,"value":230},{"type":60,"tag":198,"props":936,"children":937},{"style":272},[938],{"type":65,"value":939}," useSupabaseUser",{"type":60,"tag":198,"props":941,"children":942},{"style":262},[943],{"type":65,"value":280},{"type":60,"tag":198,"props":945,"children":946},{"class":200,"line":283},[947,952,957,962,966,970],{"type":60,"tag":198,"props":948,"children":949},{"style":272},[950],{"type":65,"value":951},"watch",{"type":60,"tag":198,"props":953,"children":954},{"style":262},[955],{"type":65,"value":956},"(user",{"type":60,"tag":198,"props":958,"children":959},{"style":205},[960],{"type":65,"value":961},",",{"type":60,"tag":198,"props":963,"children":964},{"style":205},[965],{"type":65,"value":354},{"type":60,"tag":198,"props":967,"children":968},{"style":217},[969],{"type":65,"value":359},{"type":60,"tag":198,"props":971,"children":972},{"style":205},[973],{"type":65,"value":364},{"type":60,"tag":198,"props":975,"children":976},{"class":200,"line":320},[977,981,985,990,994,998,1002],{"type":60,"tag":198,"props":978,"children":979},{"style":396},[980],{"type":65,"value":544},{"type":60,"tag":198,"props":982,"children":983},{"style":211},[984],{"type":65,"value":549},{"type":60,"tag":198,"props":986,"children":987},{"style":262},[988],{"type":65,"value":989},"user",{"type":60,"tag":198,"props":991,"children":992},{"style":205},[993],{"type":65,"value":86},{"type":60,"tag":198,"props":995,"children":996},{"style":262},[997],{"type":65,"value":459},{"type":60,"tag":198,"props":999,"children":1000},{"style":211},[1001],{"type":65,"value":559},{"type":60,"tag":198,"props":1003,"children":1004},{"style":205},[1005],{"type":65,"value":431},{"type":60,"tag":198,"props":1007,"children":1008},{"class":200,"line":330},[1009,1014,1019,1023,1027,1032,1036],{"type":60,"tag":198,"props":1010,"children":1011},{"style":396},[1012],{"type":65,"value":1013}," return",{"type":60,"tag":198,"props":1015,"children":1016},{"style":272},[1017],{"type":65,"value":1018}," navigateTo",{"type":60,"tag":198,"props":1020,"children":1021},{"style":211},[1022],{"type":65,"value":307},{"type":60,"tag":198,"props":1024,"children":1025},{"style":205},[1026],{"type":65,"value":509},{"type":60,"tag":198,"props":1028,"children":1029},{"style":238},[1030],{"type":65,"value":1031},"/",{"type":60,"tag":198,"props":1033,"children":1034},{"style":205},[1035],{"type":65,"value":509},{"type":60,"tag":198,"props":1037,"children":1038},{"style":211},[1039],{"type":65,"value":317},{"type":60,"tag":198,"props":1041,"children":1042},{"class":200,"line":367},[1043],{"type":60,"tag":198,"props":1044,"children":1045},{"style":205},[1046],{"type":65,"value":1047}," }\n",{"type":60,"tag":198,"props":1049,"children":1050},{"class":200,"line":434},[1051,1056,1060,1065,1069,1075,1079],{"type":60,"tag":198,"props":1052,"children":1053},{"style":205},[1054],{"type":65,"value":1055},"},",{"type":60,"tag":198,"props":1057,"children":1058},{"style":205},[1059],{"type":65,"value":378},{"type":60,"tag":198,"props":1061,"children":1062},{"style":211},[1063],{"type":65,"value":1064}," immediate",{"type":60,"tag":198,"props":1066,"children":1067},{"style":205},[1068],{"type":65,"value":445},{"type":60,"tag":198,"props":1070,"children":1072},{"style":1071},"--shiki-light:#FF5370;--shiki-default:#FF9CAC;--shiki-dark:#FF9CAC",[1073],{"type":65,"value":1074}," true",{"type":60,"tag":198,"props":1076,"children":1077},{"style":205},[1078],{"type":65,"value":388},{"type":60,"tag":198,"props":1080,"children":1081},{"style":262},[1082],{"type":65,"value":317},{"type":60,"tag":198,"props":1084,"children":1085},{"class":200,"line":467},[1086],{"type":60,"tag":198,"props":1087,"children":1088},{"emptyLinePlaceholder":324},[1089],{"type":65,"value":327},{"type":60,"tag":198,"props":1091,"children":1092},{"class":200,"line":484},[1093,1097,1101],{"type":60,"tag":198,"props":1094,"children":1095},{"style":205},[1096],{"type":65,"value":603},{"type":60,"tag":198,"props":1098,"children":1099},{"style":211},[1100],{"type":65,"value":214},{"type":60,"tag":198,"props":1102,"children":1103},{"style":205},[1104],{"type":65,"value":250},{"type":60,"tag":198,"props":1106,"children":1107},{"class":200,"line":516},[1108,1112,1116],{"type":60,"tag":198,"props":1109,"children":1110},{"style":205},[1111],{"type":65,"value":208},{"type":60,"tag":198,"props":1113,"children":1114},{"style":211},[1115],{"type":65,"value":624},{"type":60,"tag":198,"props":1117,"children":1118},{"style":205},[1119],{"type":65,"value":250},{"type":60,"tag":198,"props":1121,"children":1122},{"class":200,"line":525},[1123,1127,1131,1136,1141,1145,1149],{"type":60,"tag":198,"props":1124,"children":1125},{"style":205},[1126],{"type":65,"value":637},{"type":60,"tag":198,"props":1128,"children":1129},{"style":211},[1130],{"type":65,"value":642},{"type":60,"tag":198,"props":1132,"children":1133},{"style":205},[1134],{"type":65,"value":1135},">",{"type":60,"tag":198,"props":1137,"children":1138},{"style":262},[1139],{"type":65,"value":1140},"Waiting for login...",{"type":60,"tag":198,"props":1142,"children":1143},{"style":205},[1144],{"type":65,"value":603},{"type":60,"tag":198,"props":1146,"children":1147},{"style":211},[1148],{"type":65,"value":642},{"type":60,"tag":198,"props":1150,"children":1151},{"style":205},[1152],{"type":65,"value":250},{"type":60,"tag":198,"props":1154,"children":1155},{"class":200,"line":538},[1156,1160,1164],{"type":60,"tag":198,"props":1157,"children":1158},{"style":205},[1159],{"type":65,"value":603},{"type":60,"tag":198,"props":1161,"children":1162},{"style":211},[1163],{"type":65,"value":624},{"type":60,"tag":198,"props":1165,"children":1166},{"style":205},[1167],{"type":65,"value":250},{"type":60,"tag":1169,"props":1170,"children":1171},"style",{},[1172],{"type":65,"value":1173},"html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":53,"searchDepth":253,"depth":253,"links":1175},[1176,1178],{"id":134,"depth":253,"text":1177},"Log-in page - /login",{"id":845,"depth":253,"text":1179},"Confirm page - /confirm","markdown","content:3.authentication.md","content","3.authentication.md","md",[1186,1188],{"_path":6,"title":5,"description":1187},"@nuxtjs/supabase is a Nuxt module for first class integration with Supabase.",{"_path":22,"title":21,"description":1189},"Make requests to the Supabase API with the useSupabaseClient composable",1703671431392] \ No newline at end of file +[{"data":1,"prerenderedAt":1190},["Reactive",2],{"navigation":3,"/authentication":52,"/authentication-surround":1185},[4,8,12,40,44,48],{"title":5,"_path":6,"icon":7},"Get Started","/get-started","heroicons:rocket-launch",{"title":9,"_path":10,"icon":11},"Authentication","/authentication","heroicons:lock-closed",{"title":13,"_path":14,"children":15,"icon":39},"Usage","/usage",[16,26],{"title":17,"_path":18,"children":19},"Vue composables","/usage/composables",[20,23],{"title":21,"_path":22},"useSupabaseClient","/usage/composables/usesupabaseclient",{"title":24,"_path":25},"useSupabaseUser","/usage/composables/usesupabaseuser",{"title":27,"_path":28,"children":29},"Server services","/usage/services",[30,33,36],{"title":31,"_path":32},"serverSupabaseClient","/usage/services/serversupabaseclient",{"title":34,"_path":35},"serverSupabaseServiceRole","/usage/services/serversupabaseservicerole",{"title":37,"_path":38},"serverSupabaseUser","/usage/services/serversupabaseuser","heroicons:book-open",{"title":41,"_path":42,"icon":43},"Demo","/demo","heroicons:computer-desktop-20-solid",{"title":45,"_path":46,"icon":47},"Changelog","/changelog","heroicons:bookmark",{"title":49,"_path":50,"icon":51},"Roadmap","/roadmap","heroicons:map",{"_path":10,"_dir":53,"_draft":54,"_partial":54,"_locale":53,"title":9,"description":55,"icon":11,"body":56,"_type":1180,"_id":1181,"_source":1182,"_file":1183,"_extension":1184},"",false,"Authenticate your user thanks to the PKCE Oauth protocol that enables secure exchange of refresh and access tokens between an application and the authorization server",{"type":57,"children":58,"toc":1174},"root",[59,87,114,131,143,156,172,186,819,843,853,858,872,1168],{"type":60,"tag":61,"props":62,"children":63},"element","p",{},[64,67,76,78,85],{"type":65,"value":66},"text","With the default options, the module requires a log-in page and a confirm page to handle the ",{"type":60,"tag":68,"props":69,"children":73},"a",{"href":70,"rel":71},"https://supabase.com/docs/guides/resources/glossary#pkce",[72],"nofollow",[74],{"type":65,"value":75},"PKCE authorization code flow",{"type":65,"value":77},". If you want to understand how it works under the hood, you can read this ",{"type":60,"tag":68,"props":79,"children":82},{"href":80,"rel":81},"https://supabase.com/docs/guides/auth/server-side-rendering#understanding-the-authentication-flow",[72],[83],{"type":65,"value":84},"section",{"type":65,"value":86},".",{"type":60,"tag":61,"props":88,"children":89},{},[90,92,98,100,105,107,112],{"type":65,"value":91},"All you need to do is to create a ",{"type":60,"tag":93,"props":94,"children":95},"code",{"className":53},[96],{"type":65,"value":97},"login.vue",{"type":65,"value":99}," and ",{"type":60,"tag":93,"props":101,"children":102},{"className":53},[103],{"type":65,"value":104},"confirm.vue",{"type":65,"value":106}," page in the ",{"type":60,"tag":93,"props":108,"children":109},{"className":53},[110],{"type":65,"value":111},"pages",{"type":65,"value":113}," folder.",{"type":60,"tag":115,"props":116,"children":118},"callout",{"icon":117},"i-heroicons-light-bulb",[119],{"type":60,"tag":61,"props":120,"children":121},{},[122,124,130],{"type":65,"value":123},"For advanced users who want to implement the auth behaviour themselves, you can disable or override the ",{"type":60,"tag":68,"props":125,"children":127},{"href":126},"/get-started#redirect",[128],{"type":65,"value":129},"redirect options",{"type":65,"value":86},{"type":60,"tag":132,"props":133,"children":135},"h2",{"id":134},"log-in-page-login",[136,138],{"type":65,"value":137},"Log-in page - ",{"type":60,"tag":93,"props":139,"children":140},{"className":53},[141],{"type":65,"value":142},"/login",{"type":60,"tag":61,"props":144,"children":145},{},[146,148,154],{"type":65,"value":147},"Each time a user is trying to access a page that needs authentication, he will automatically be redirected to the configured log in page. If you want to allow access to \"public\" page, you just need to add them in the ",{"type":60,"tag":68,"props":149,"children":151},{"href":150},"/get-started#redirectoptions",[152],{"type":65,"value":153},"exclude",{"type":65,"value":155}," redirect option.",{"type":60,"tag":115,"props":157,"children":160},{"icon":158,"color":159},"i-heroicons-exclamation-triangle-20-solid","amber",[161],{"type":60,"tag":61,"props":162,"children":163},{},[164,166,171],{"type":65,"value":165},"Ensure to activate the authentication providers you want in the Supabase Dashboard under ",{"type":60,"tag":93,"props":167,"children":168},{"className":53},[169],{"type":65,"value":170},"Authentication -> Providers",{"type":65,"value":86},{"type":60,"tag":61,"props":173,"children":174},{},[175,177,184],{"type":65,"value":176},"The log-in page initiates the log-in method(s) you choose from the ",{"type":60,"tag":68,"props":178,"children":181},{"href":179,"rel":180},"https://supabase.com/docs/reference/javascript/auth-signinwithpassword",[72],[182],{"type":65,"value":183},"available authorization methods",{"type":65,"value":185}," provided by Supabase, it could looks like:",{"type":60,"tag":187,"props":188,"children":193},"pre",{"className":189,"code":190,"filename":191,"language":192,"meta":53,"style":53},"language-vue shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","\u003Cscript setup lang=\"ts\">\nconst supabase = useSupabaseClient()\nconst email = ref('')\n\nconst signInWithOtp = async () => {\n const { error } = await supabase.auth.signInWithOtp({\n email: email.value,\n options: {\n emailRedirectTo: 'http://localhost:3000/confirm',\n }\n })\n if (error) console.log(error)\n}\n\u003C/script>\n\u003Ctemplate>\n \u003Cdiv>\n \u003Cbutton @click=\"signInWithOtp\">\n Sign In with E-Mail\n \u003C/button>\n \u003Cinput\n v-model=\"email\"\n type=\"email\"\n />\n \u003C/div>\n\u003C/template>\n","pages/login.vue","vue",[194],{"type":60,"tag":93,"props":195,"children":196},{"__ignoreMap":53},[197,251,281,318,328,365,432,465,482,514,523,536,586,595,612,629,647,686,695,712,725,752,777,786,803],{"type":60,"tag":198,"props":199,"children":202},"span",{"class":200,"line":201},"line",1,[203,209,215,221,226,231,236,242,246],{"type":60,"tag":198,"props":204,"children":206},{"style":205},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF",[207],{"type":65,"value":208},"\u003C",{"type":60,"tag":198,"props":210,"children":212},{"style":211},"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178",[213],{"type":65,"value":214},"script",{"type":60,"tag":198,"props":216,"children":218},{"style":217},"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA",[219],{"type":65,"value":220}," setup",{"type":60,"tag":198,"props":222,"children":223},{"style":217},[224],{"type":65,"value":225}," lang",{"type":60,"tag":198,"props":227,"children":228},{"style":205},[229],{"type":65,"value":230},"=",{"type":60,"tag":198,"props":232,"children":233},{"style":205},[234],{"type":65,"value":235},"\"",{"type":60,"tag":198,"props":237,"children":239},{"style":238},"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D",[240],{"type":65,"value":241},"ts",{"type":60,"tag":198,"props":243,"children":244},{"style":205},[245],{"type":65,"value":235},{"type":60,"tag":198,"props":247,"children":248},{"style":205},[249],{"type":65,"value":250},">\n",{"type":60,"tag":198,"props":252,"children":254},{"class":200,"line":253},2,[255,260,266,270,276],{"type":60,"tag":198,"props":256,"children":257},{"style":217},[258],{"type":65,"value":259},"const",{"type":60,"tag":198,"props":261,"children":263},{"style":262},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8",[264],{"type":65,"value":265}," supabase ",{"type":60,"tag":198,"props":267,"children":268},{"style":205},[269],{"type":65,"value":230},{"type":60,"tag":198,"props":271,"children":273},{"style":272},"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF",[274],{"type":65,"value":275}," useSupabaseClient",{"type":60,"tag":198,"props":277,"children":278},{"style":262},[279],{"type":65,"value":280},"()\n",{"type":60,"tag":198,"props":282,"children":284},{"class":200,"line":283},3,[285,289,294,298,303,308,313],{"type":60,"tag":198,"props":286,"children":287},{"style":217},[288],{"type":65,"value":259},{"type":60,"tag":198,"props":290,"children":291},{"style":262},[292],{"type":65,"value":293}," email ",{"type":60,"tag":198,"props":295,"children":296},{"style":205},[297],{"type":65,"value":230},{"type":60,"tag":198,"props":299,"children":300},{"style":272},[301],{"type":65,"value":302}," ref",{"type":60,"tag":198,"props":304,"children":305},{"style":262},[306],{"type":65,"value":307},"(",{"type":60,"tag":198,"props":309,"children":310},{"style":205},[311],{"type":65,"value":312},"''",{"type":60,"tag":198,"props":314,"children":315},{"style":262},[316],{"type":65,"value":317},")\n",{"type":60,"tag":198,"props":319,"children":321},{"class":200,"line":320},4,[322],{"type":60,"tag":198,"props":323,"children":325},{"emptyLinePlaceholder":324},true,[326],{"type":65,"value":327},"\n",{"type":60,"tag":198,"props":329,"children":331},{"class":200,"line":330},5,[332,336,341,345,350,355,360],{"type":60,"tag":198,"props":333,"children":334},{"style":217},[335],{"type":65,"value":259},{"type":60,"tag":198,"props":337,"children":338},{"style":262},[339],{"type":65,"value":340}," signInWithOtp ",{"type":60,"tag":198,"props":342,"children":343},{"style":205},[344],{"type":65,"value":230},{"type":60,"tag":198,"props":346,"children":347},{"style":217},[348],{"type":65,"value":349}," async",{"type":60,"tag":198,"props":351,"children":352},{"style":205},[353],{"type":65,"value":354}," ()",{"type":60,"tag":198,"props":356,"children":357},{"style":217},[358],{"type":65,"value":359}," =>",{"type":60,"tag":198,"props":361,"children":362},{"style":205},[363],{"type":65,"value":364}," {\n",{"type":60,"tag":198,"props":366,"children":368},{"class":200,"line":367},6,[369,374,379,384,389,394,400,405,409,414,418,423,427],{"type":60,"tag":198,"props":370,"children":371},{"style":217},[372],{"type":65,"value":373}," const",{"type":60,"tag":198,"props":375,"children":376},{"style":205},[377],{"type":65,"value":378}," {",{"type":60,"tag":198,"props":380,"children":381},{"style":262},[382],{"type":65,"value":383}," error",{"type":60,"tag":198,"props":385,"children":386},{"style":205},[387],{"type":65,"value":388}," }",{"type":60,"tag":198,"props":390,"children":391},{"style":205},[392],{"type":65,"value":393}," =",{"type":60,"tag":198,"props":395,"children":397},{"style":396},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic",[398],{"type":65,"value":399}," await",{"type":60,"tag":198,"props":401,"children":402},{"style":262},[403],{"type":65,"value":404}," supabase",{"type":60,"tag":198,"props":406,"children":407},{"style":205},[408],{"type":65,"value":86},{"type":60,"tag":198,"props":410,"children":411},{"style":262},[412],{"type":65,"value":413},"auth",{"type":60,"tag":198,"props":415,"children":416},{"style":205},[417],{"type":65,"value":86},{"type":60,"tag":198,"props":419,"children":420},{"style":272},[421],{"type":65,"value":422},"signInWithOtp",{"type":60,"tag":198,"props":424,"children":425},{"style":211},[426],{"type":65,"value":307},{"type":60,"tag":198,"props":428,"children":429},{"style":205},[430],{"type":65,"value":431},"{\n",{"type":60,"tag":198,"props":433,"children":435},{"class":200,"line":434},7,[436,441,446,451,455,460],{"type":60,"tag":198,"props":437,"children":438},{"style":211},[439],{"type":65,"value":440}," email",{"type":60,"tag":198,"props":442,"children":443},{"style":205},[444],{"type":65,"value":445},":",{"type":60,"tag":198,"props":447,"children":448},{"style":262},[449],{"type":65,"value":450}," email",{"type":60,"tag":198,"props":452,"children":453},{"style":205},[454],{"type":65,"value":86},{"type":60,"tag":198,"props":456,"children":457},{"style":262},[458],{"type":65,"value":459},"value",{"type":60,"tag":198,"props":461,"children":462},{"style":205},[463],{"type":65,"value":464},",\n",{"type":60,"tag":198,"props":466,"children":468},{"class":200,"line":467},8,[469,474,478],{"type":60,"tag":198,"props":470,"children":471},{"style":211},[472],{"type":65,"value":473}," options",{"type":60,"tag":198,"props":475,"children":476},{"style":205},[477],{"type":65,"value":445},{"type":60,"tag":198,"props":479,"children":480},{"style":205},[481],{"type":65,"value":364},{"type":60,"tag":198,"props":483,"children":485},{"class":200,"line":484},9,[486,491,495,500,505,510],{"type":60,"tag":198,"props":487,"children":488},{"style":211},[489],{"type":65,"value":490}," emailRedirectTo",{"type":60,"tag":198,"props":492,"children":493},{"style":205},[494],{"type":65,"value":445},{"type":60,"tag":198,"props":496,"children":497},{"style":205},[498],{"type":65,"value":499}," '",{"type":60,"tag":198,"props":501,"children":502},{"style":238},[503],{"type":65,"value":504},"http://localhost:3000/confirm",{"type":60,"tag":198,"props":506,"children":507},{"style":205},[508],{"type":65,"value":509},"'",{"type":60,"tag":198,"props":511,"children":512},{"style":205},[513],{"type":65,"value":464},{"type":60,"tag":198,"props":515,"children":517},{"class":200,"line":516},10,[518],{"type":60,"tag":198,"props":519,"children":520},{"style":205},[521],{"type":65,"value":522}," }\n",{"type":60,"tag":198,"props":524,"children":526},{"class":200,"line":525},11,[527,532],{"type":60,"tag":198,"props":528,"children":529},{"style":205},[530],{"type":65,"value":531}," }",{"type":60,"tag":198,"props":533,"children":534},{"style":211},[535],{"type":65,"value":317},{"type":60,"tag":198,"props":537,"children":539},{"class":200,"line":538},12,[540,545,550,555,560,565,569,574,578,582],{"type":60,"tag":198,"props":541,"children":542},{"style":396},[543],{"type":65,"value":544}," if",{"type":60,"tag":198,"props":546,"children":547},{"style":211},[548],{"type":65,"value":549}," (",{"type":60,"tag":198,"props":551,"children":552},{"style":262},[553],{"type":65,"value":554},"error",{"type":60,"tag":198,"props":556,"children":557},{"style":211},[558],{"type":65,"value":559},") ",{"type":60,"tag":198,"props":561,"children":562},{"style":262},[563],{"type":65,"value":564},"console",{"type":60,"tag":198,"props":566,"children":567},{"style":205},[568],{"type":65,"value":86},{"type":60,"tag":198,"props":570,"children":571},{"style":272},[572],{"type":65,"value":573},"log",{"type":60,"tag":198,"props":575,"children":576},{"style":211},[577],{"type":65,"value":307},{"type":60,"tag":198,"props":579,"children":580},{"style":262},[581],{"type":65,"value":554},{"type":60,"tag":198,"props":583,"children":584},{"style":211},[585],{"type":65,"value":317},{"type":60,"tag":198,"props":587,"children":589},{"class":200,"line":588},13,[590],{"type":60,"tag":198,"props":591,"children":592},{"style":205},[593],{"type":65,"value":594},"}\n",{"type":60,"tag":198,"props":596,"children":598},{"class":200,"line":597},14,[599,604,608],{"type":60,"tag":198,"props":600,"children":601},{"style":205},[602],{"type":65,"value":603},"\u003C/",{"type":60,"tag":198,"props":605,"children":606},{"style":211},[607],{"type":65,"value":214},{"type":60,"tag":198,"props":609,"children":610},{"style":205},[611],{"type":65,"value":250},{"type":60,"tag":198,"props":613,"children":615},{"class":200,"line":614},15,[616,620,625],{"type":60,"tag":198,"props":617,"children":618},{"style":205},[619],{"type":65,"value":208},{"type":60,"tag":198,"props":621,"children":622},{"style":211},[623],{"type":65,"value":624},"template",{"type":60,"tag":198,"props":626,"children":627},{"style":205},[628],{"type":65,"value":250},{"type":60,"tag":198,"props":630,"children":632},{"class":200,"line":631},16,[633,638,643],{"type":60,"tag":198,"props":634,"children":635},{"style":205},[636],{"type":65,"value":637}," \u003C",{"type":60,"tag":198,"props":639,"children":640},{"style":211},[641],{"type":65,"value":642},"div",{"type":60,"tag":198,"props":644,"children":645},{"style":205},[646],{"type":65,"value":250},{"type":60,"tag":198,"props":648,"children":650},{"class":200,"line":649},17,[651,656,661,666,670,674,678,682],{"type":60,"tag":198,"props":652,"children":653},{"style":205},[654],{"type":65,"value":655}," \u003C",{"type":60,"tag":198,"props":657,"children":658},{"style":211},[659],{"type":65,"value":660},"button",{"type":60,"tag":198,"props":662,"children":663},{"style":217},[664],{"type":65,"value":665}," @click",{"type":60,"tag":198,"props":667,"children":668},{"style":205},[669],{"type":65,"value":230},{"type":60,"tag":198,"props":671,"children":672},{"style":205},[673],{"type":65,"value":235},{"type":60,"tag":198,"props":675,"children":676},{"style":238},[677],{"type":65,"value":422},{"type":60,"tag":198,"props":679,"children":680},{"style":205},[681],{"type":65,"value":235},{"type":60,"tag":198,"props":683,"children":684},{"style":205},[685],{"type":65,"value":250},{"type":60,"tag":198,"props":687,"children":689},{"class":200,"line":688},18,[690],{"type":60,"tag":198,"props":691,"children":692},{"style":262},[693],{"type":65,"value":694}," Sign In with E-Mail\n",{"type":60,"tag":198,"props":696,"children":698},{"class":200,"line":697},19,[699,704,708],{"type":60,"tag":198,"props":700,"children":701},{"style":205},[702],{"type":65,"value":703}," \u003C/",{"type":60,"tag":198,"props":705,"children":706},{"style":211},[707],{"type":65,"value":660},{"type":60,"tag":198,"props":709,"children":710},{"style":205},[711],{"type":65,"value":250},{"type":60,"tag":198,"props":713,"children":715},{"class":200,"line":714},20,[716,720],{"type":60,"tag":198,"props":717,"children":718},{"style":205},[719],{"type":65,"value":655},{"type":60,"tag":198,"props":721,"children":722},{"style":211},[723],{"type":65,"value":724},"input\n",{"type":60,"tag":198,"props":726,"children":728},{"class":200,"line":727},21,[729,734,738,742,747],{"type":60,"tag":198,"props":730,"children":731},{"style":217},[732],{"type":65,"value":733}," v-model",{"type":60,"tag":198,"props":735,"children":736},{"style":205},[737],{"type":65,"value":230},{"type":60,"tag":198,"props":739,"children":740},{"style":205},[741],{"type":65,"value":235},{"type":60,"tag":198,"props":743,"children":744},{"style":238},[745],{"type":65,"value":746},"email",{"type":60,"tag":198,"props":748,"children":749},{"style":205},[750],{"type":65,"value":751},"\"\n",{"type":60,"tag":198,"props":753,"children":755},{"class":200,"line":754},22,[756,761,765,769,773],{"type":60,"tag":198,"props":757,"children":758},{"style":217},[759],{"type":65,"value":760}," type",{"type":60,"tag":198,"props":762,"children":763},{"style":205},[764],{"type":65,"value":230},{"type":60,"tag":198,"props":766,"children":767},{"style":205},[768],{"type":65,"value":235},{"type":60,"tag":198,"props":770,"children":771},{"style":238},[772],{"type":65,"value":746},{"type":60,"tag":198,"props":774,"children":775},{"style":205},[776],{"type":65,"value":751},{"type":60,"tag":198,"props":778,"children":780},{"class":200,"line":779},23,[781],{"type":60,"tag":198,"props":782,"children":783},{"style":205},[784],{"type":65,"value":785}," />\n",{"type":60,"tag":198,"props":787,"children":789},{"class":200,"line":788},24,[790,795,799],{"type":60,"tag":198,"props":791,"children":792},{"style":205},[793],{"type":65,"value":794}," \u003C/",{"type":60,"tag":198,"props":796,"children":797},{"style":211},[798],{"type":65,"value":642},{"type":60,"tag":198,"props":800,"children":801},{"style":205},[802],{"type":65,"value":250},{"type":60,"tag":198,"props":804,"children":806},{"class":200,"line":805},25,[807,811,815],{"type":60,"tag":198,"props":808,"children":809},{"style":205},[810],{"type":65,"value":603},{"type":60,"tag":198,"props":812,"children":813},{"style":211},[814],{"type":65,"value":624},{"type":60,"tag":198,"props":816,"children":817},{"style":205},[818],{"type":65,"value":250},{"type":60,"tag":61,"props":820,"children":821},{},[822,824,828,830,834,836,841],{"type":65,"value":823},"Once the authorization flow is triggered using the ",{"type":60,"tag":93,"props":825,"children":826},{"className":53},[827],{"type":65,"value":413},{"type":65,"value":829}," wrapper of the ",{"type":60,"tag":68,"props":831,"children":832},{"href":22},[833],{"type":65,"value":21},{"type":65,"value":835}," composable, the session management is handled automatically and the user will be redirected to the page you specify in the redirect option (",{"type":60,"tag":93,"props":837,"children":838},{"className":53},[839],{"type":65,"value":840},"/confirm",{"type":65,"value":842}," by default).",{"type":60,"tag":132,"props":844,"children":846},{"id":845},"confirm-page-confirm",[847,849],{"type":65,"value":848},"Confirm page - ",{"type":60,"tag":93,"props":850,"children":851},{"className":53},[852],{"type":65,"value":840},{"type":60,"tag":61,"props":854,"children":855},{},[856],{"type":65,"value":857},"The confirmation page receives the supabase callback. From there you can check the user value and redirect to the appropriate page.",{"type":60,"tag":115,"props":859,"children":860},{"icon":117},[861],{"type":60,"tag":61,"props":862,"children":863},{},[864,866,871],{"type":65,"value":865},"The redirect URL must be configured in your Supabase dashboard under ",{"type":60,"tag":93,"props":867,"children":868},{"className":53},[869],{"type":65,"value":870},"Authentication -> URL Configuration -> Redirect URLs",{"type":65,"value":86},{"type":60,"tag":187,"props":873,"children":876},{"className":189,"code":874,"filename":875,"language":192,"meta":53,"style":53},"\u003Cscript setup lang=\"ts\">\nconst user = useSupabaseUser()\nwatch(user, () => {\n if (user.value) {\n return navigateTo('/')\n }\n}, { immediate: true })\n\n\u003C/script>\n\u003Ctemplate>\n \u003Cdiv>Waiting for login...\u003C/div>\n\u003C/template>\n","pages/confirm.vue",[877],{"type":60,"tag":93,"props":878,"children":879},{"__ignoreMap":53},[880,919,944,974,1006,1040,1048,1083,1090,1105,1120,1153],{"type":60,"tag":198,"props":881,"children":882},{"class":200,"line":201},[883,887,891,895,899,903,907,911,915],{"type":60,"tag":198,"props":884,"children":885},{"style":205},[886],{"type":65,"value":208},{"type":60,"tag":198,"props":888,"children":889},{"style":211},[890],{"type":65,"value":214},{"type":60,"tag":198,"props":892,"children":893},{"style":217},[894],{"type":65,"value":220},{"type":60,"tag":198,"props":896,"children":897},{"style":217},[898],{"type":65,"value":225},{"type":60,"tag":198,"props":900,"children":901},{"style":205},[902],{"type":65,"value":230},{"type":60,"tag":198,"props":904,"children":905},{"style":205},[906],{"type":65,"value":235},{"type":60,"tag":198,"props":908,"children":909},{"style":238},[910],{"type":65,"value":241},{"type":60,"tag":198,"props":912,"children":913},{"style":205},[914],{"type":65,"value":235},{"type":60,"tag":198,"props":916,"children":917},{"style":205},[918],{"type":65,"value":250},{"type":60,"tag":198,"props":920,"children":921},{"class":200,"line":253},[922,926,931,935,940],{"type":60,"tag":198,"props":923,"children":924},{"style":217},[925],{"type":65,"value":259},{"type":60,"tag":198,"props":927,"children":928},{"style":262},[929],{"type":65,"value":930}," user ",{"type":60,"tag":198,"props":932,"children":933},{"style":205},[934],{"type":65,"value":230},{"type":60,"tag":198,"props":936,"children":937},{"style":272},[938],{"type":65,"value":939}," useSupabaseUser",{"type":60,"tag":198,"props":941,"children":942},{"style":262},[943],{"type":65,"value":280},{"type":60,"tag":198,"props":945,"children":946},{"class":200,"line":283},[947,952,957,962,966,970],{"type":60,"tag":198,"props":948,"children":949},{"style":272},[950],{"type":65,"value":951},"watch",{"type":60,"tag":198,"props":953,"children":954},{"style":262},[955],{"type":65,"value":956},"(user",{"type":60,"tag":198,"props":958,"children":959},{"style":205},[960],{"type":65,"value":961},",",{"type":60,"tag":198,"props":963,"children":964},{"style":205},[965],{"type":65,"value":354},{"type":60,"tag":198,"props":967,"children":968},{"style":217},[969],{"type":65,"value":359},{"type":60,"tag":198,"props":971,"children":972},{"style":205},[973],{"type":65,"value":364},{"type":60,"tag":198,"props":975,"children":976},{"class":200,"line":320},[977,981,985,990,994,998,1002],{"type":60,"tag":198,"props":978,"children":979},{"style":396},[980],{"type":65,"value":544},{"type":60,"tag":198,"props":982,"children":983},{"style":211},[984],{"type":65,"value":549},{"type":60,"tag":198,"props":986,"children":987},{"style":262},[988],{"type":65,"value":989},"user",{"type":60,"tag":198,"props":991,"children":992},{"style":205},[993],{"type":65,"value":86},{"type":60,"tag":198,"props":995,"children":996},{"style":262},[997],{"type":65,"value":459},{"type":60,"tag":198,"props":999,"children":1000},{"style":211},[1001],{"type":65,"value":559},{"type":60,"tag":198,"props":1003,"children":1004},{"style":205},[1005],{"type":65,"value":431},{"type":60,"tag":198,"props":1007,"children":1008},{"class":200,"line":330},[1009,1014,1019,1023,1027,1032,1036],{"type":60,"tag":198,"props":1010,"children":1011},{"style":396},[1012],{"type":65,"value":1013}," return",{"type":60,"tag":198,"props":1015,"children":1016},{"style":272},[1017],{"type":65,"value":1018}," navigateTo",{"type":60,"tag":198,"props":1020,"children":1021},{"style":211},[1022],{"type":65,"value":307},{"type":60,"tag":198,"props":1024,"children":1025},{"style":205},[1026],{"type":65,"value":509},{"type":60,"tag":198,"props":1028,"children":1029},{"style":238},[1030],{"type":65,"value":1031},"/",{"type":60,"tag":198,"props":1033,"children":1034},{"style":205},[1035],{"type":65,"value":509},{"type":60,"tag":198,"props":1037,"children":1038},{"style":211},[1039],{"type":65,"value":317},{"type":60,"tag":198,"props":1041,"children":1042},{"class":200,"line":367},[1043],{"type":60,"tag":198,"props":1044,"children":1045},{"style":205},[1046],{"type":65,"value":1047}," }\n",{"type":60,"tag":198,"props":1049,"children":1050},{"class":200,"line":434},[1051,1056,1060,1065,1069,1075,1079],{"type":60,"tag":198,"props":1052,"children":1053},{"style":205},[1054],{"type":65,"value":1055},"},",{"type":60,"tag":198,"props":1057,"children":1058},{"style":205},[1059],{"type":65,"value":378},{"type":60,"tag":198,"props":1061,"children":1062},{"style":211},[1063],{"type":65,"value":1064}," immediate",{"type":60,"tag":198,"props":1066,"children":1067},{"style":205},[1068],{"type":65,"value":445},{"type":60,"tag":198,"props":1070,"children":1072},{"style":1071},"--shiki-light:#FF5370;--shiki-default:#FF9CAC;--shiki-dark:#FF9CAC",[1073],{"type":65,"value":1074}," true",{"type":60,"tag":198,"props":1076,"children":1077},{"style":205},[1078],{"type":65,"value":388},{"type":60,"tag":198,"props":1080,"children":1081},{"style":262},[1082],{"type":65,"value":317},{"type":60,"tag":198,"props":1084,"children":1085},{"class":200,"line":467},[1086],{"type":60,"tag":198,"props":1087,"children":1088},{"emptyLinePlaceholder":324},[1089],{"type":65,"value":327},{"type":60,"tag":198,"props":1091,"children":1092},{"class":200,"line":484},[1093,1097,1101],{"type":60,"tag":198,"props":1094,"children":1095},{"style":205},[1096],{"type":65,"value":603},{"type":60,"tag":198,"props":1098,"children":1099},{"style":211},[1100],{"type":65,"value":214},{"type":60,"tag":198,"props":1102,"children":1103},{"style":205},[1104],{"type":65,"value":250},{"type":60,"tag":198,"props":1106,"children":1107},{"class":200,"line":516},[1108,1112,1116],{"type":60,"tag":198,"props":1109,"children":1110},{"style":205},[1111],{"type":65,"value":208},{"type":60,"tag":198,"props":1113,"children":1114},{"style":211},[1115],{"type":65,"value":624},{"type":60,"tag":198,"props":1117,"children":1118},{"style":205},[1119],{"type":65,"value":250},{"type":60,"tag":198,"props":1121,"children":1122},{"class":200,"line":525},[1123,1127,1131,1136,1141,1145,1149],{"type":60,"tag":198,"props":1124,"children":1125},{"style":205},[1126],{"type":65,"value":637},{"type":60,"tag":198,"props":1128,"children":1129},{"style":211},[1130],{"type":65,"value":642},{"type":60,"tag":198,"props":1132,"children":1133},{"style":205},[1134],{"type":65,"value":1135},">",{"type":60,"tag":198,"props":1137,"children":1138},{"style":262},[1139],{"type":65,"value":1140},"Waiting for login...",{"type":60,"tag":198,"props":1142,"children":1143},{"style":205},[1144],{"type":65,"value":603},{"type":60,"tag":198,"props":1146,"children":1147},{"style":211},[1148],{"type":65,"value":642},{"type":60,"tag":198,"props":1150,"children":1151},{"style":205},[1152],{"type":65,"value":250},{"type":60,"tag":198,"props":1154,"children":1155},{"class":200,"line":538},[1156,1160,1164],{"type":60,"tag":198,"props":1157,"children":1158},{"style":205},[1159],{"type":65,"value":603},{"type":60,"tag":198,"props":1161,"children":1162},{"style":211},[1163],{"type":65,"value":624},{"type":60,"tag":198,"props":1165,"children":1166},{"style":205},[1167],{"type":65,"value":250},{"type":60,"tag":1169,"props":1170,"children":1171},"style",{},[1172],{"type":65,"value":1173},"html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":53,"searchDepth":253,"depth":253,"links":1175},[1176,1178],{"id":134,"depth":253,"text":1177},"Log-in page - /login",{"id":845,"depth":253,"text":1179},"Confirm page - /confirm","markdown","content:3.authentication.md","content","3.authentication.md","md",[1186,1188],{"_path":6,"title":5,"description":1187},"@nuxtjs/supabase is a Nuxt module for first class integration with Supabase.",{"_path":22,"title":21,"description":1189},"Make requests to the Supabase API with the useSupabaseClient composable",1703757837834] \ No newline at end of file diff --git a/authentication/index.html b/authentication/index.html index dcdc3e8a..4a139055 100644 --- a/authentication/index.html +++ b/authentication/index.html @@ -69,43 +69,43 @@ - - - - - - - - - - - - + + + + + + + + + + + + - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + - - + + - - -
mobile favicon

Authentication

Authenticate your user thanks to the PKCE Oauth protocol that enables secure exchange of refresh and access tokens between an application and the authorization server

With the default options, the module requires a log-in page and a confirm page to handle the PKCE authorization code flow. If you want to understand how it works under the hood, you can read this section.

All you need to do is to create a login.vue and confirm.vue page in the pages folder.

For advanced users who want to implement the auth behaviour themselves, you can disable or override the redirect options.

Log-in page - /login

Each time a user is trying to access a page that needs authentication, he will automatically be redirected to the configured log in page. If you want to allow access to "public" page, you just need to add them in the exclude redirect option.

Ensure to activate the authentication providers you want in the Supabase Dashboard under Authentication -> Providers.

The log-in page initiates the log-in method(s) you choose from the available authorization methods provided by Supabase, it could looks like:

pages/login.vue
<script setup lang="ts">
+
mobile favicon

Authentication

Authenticate your user thanks to the PKCE Oauth protocol that enables secure exchange of refresh and access tokens between an application and the authorization server

With the default options, the module requires a log-in page and a confirm page to handle the PKCE authorization code flow. If you want to understand how it works under the hood, you can read this section.

All you need to do is to create a login.vue and confirm.vue page in the pages folder.

For advanced users who want to implement the auth behaviour themselves, you can disable or override the redirect options.

Log-in page - /login

Each time a user is trying to access a page that needs authentication, he will automatically be redirected to the configured log in page. If you want to allow access to "public" page, you just need to add them in the exclude redirect option.

Ensure to activate the authentication providers you want in the Supabase Dashboard under Authentication -> Providers.

The log-in page initiates the log-in method(s) you choose from the available authorization methods provided by Supabase, it could looks like:

pages/login.vue
<script setup lang="ts">
 const supabase = useSupabaseClient()
 const email = ref('')
 
@@ -143,6 +143,6 @@
   <div>Waiting for login...</div>
 </template>
 

Made with Nuxt Studio
- - + + \ No newline at end of file diff --git a/changelog/_payload.json b/changelog/_payload.json index 884dab7a..e5679dce 100644 --- a/changelog/_payload.json +++ b/changelog/_payload.json @@ -1 +1 @@ -[{"data":1,"prerenderedAt":3526},["Reactive",2],{"navigation":3,"/changelog":52,"/changelog-surround":79,"releases":84},[4,8,12,40,44,48],{"title":5,"_path":6,"icon":7},"Get Started","/get-started","heroicons:rocket-launch",{"title":9,"_path":10,"icon":11},"Authentication","/authentication","heroicons:lock-closed",{"title":13,"_path":14,"children":15,"icon":39},"Usage","/usage",[16,26],{"title":17,"_path":18,"children":19},"Vue composables","/usage/composables",[20,23],{"title":21,"_path":22},"useSupabaseClient","/usage/composables/usesupabaseclient",{"title":24,"_path":25},"useSupabaseUser","/usage/composables/usesupabaseuser",{"title":27,"_path":28,"children":29},"Server services","/usage/services",[30,33,36],{"title":31,"_path":32},"serverSupabaseClient","/usage/services/serversupabaseclient",{"title":34,"_path":35},"serverSupabaseServiceRole","/usage/services/serversupabaseservicerole",{"title":37,"_path":38},"serverSupabaseUser","/usage/services/serversupabaseuser","heroicons:book-open",{"title":41,"_path":42,"icon":43},"Demo","/demo","heroicons:computer-desktop-20-solid",{"title":45,"_path":46,"icon":47},"Changelog","/changelog","heroicons:bookmark",{"title":49,"_path":50,"icon":51},"Roadmap","/roadmap","heroicons:map",{"_path":46,"_dir":53,"_draft":54,"_partial":54,"_locale":53,"title":45,"description":55,"icon":47,"body":56,"_type":74,"_id":75,"_source":76,"_file":77,"_extension":78},"",false,"Discover the latest updates of the Supabase Module",{"type":57,"children":58,"toc":71},"root",[59,67],{"type":60,"tag":61,"props":62,"children":63},"element","p",{},[64],{"type":65,"value":66},"text","Discover the lastest updates.",{"type":60,"tag":68,"props":69,"children":70},"releases",{},[],{"title":53,"searchDepth":72,"depth":72,"links":73},2,[],"markdown","content:6.changelog.md","content","6.changelog.md","md",[80,82],{"_path":42,"title":41,"description":81},"Demonstration of using Supabase with Nuxt.",{"_path":50,"title":49,"description":83},"Discover our kaban board for the next release of the Supabase module.",[85,173,282,519,610,902,1003,1079,1144,1432,1694,1765,1891,1936,1995,2046,2191,2290,2353,2404,2449,2501,2610,2684,2762,2825,2908,3008,3112,3224,3258,3319,3381,3468],{"name":86,"tag_name":86,"date":87,"body":88,"v":161,"url":162,"tarball":163,"zipball":164,"prerelease":54,"reactions":165,"author":168,"title":53,"description":53,"_type":74,"_id":172},"v1.1.4","2023-11-17T14:42:47Z",{"type":57,"children":89,"toc":155},[90,97,104,140],{"type":60,"tag":91,"props":92,"children":94},"h2",{"id":93},"whats-changed",[95],{"type":65,"value":96},"What's Changed",{"type":60,"tag":98,"props":99,"children":101},"h3",{"id":100},"bug-fixes",[102],{"type":65,"value":103},"Bug Fixes",{"type":60,"tag":105,"props":106,"children":107},"ul",{},[108],{"type":60,"tag":109,"props":110,"children":111},"li",{},[112,118,120,129,131,138],{"type":60,"tag":113,"props":114,"children":115},"strong",{},[116],{"type":65,"value":117},"client:",{"type":65,"value":119}," prevent useCookie usage outside of effect scope (",{"type":60,"tag":121,"props":122,"children":126},"a",{"href":123,"rel":124},"https://github.com/nuxt-community/supabase-module/issues/309",[125],"nofollow",[127],{"type":65,"value":128},"#309",{"type":65,"value":130},") (",{"type":60,"tag":121,"props":132,"children":135},{"href":133,"rel":134},"https://github.com/nuxt-community/supabase-module/commit/bb55bed870efb68c39f255ddbcbe0b5446965399",[125],[136],{"type":65,"value":137},"bb55bed",{"type":65,"value":139},")",{"type":60,"tag":61,"props":141,"children":142},{},[143,145],{"type":65,"value":144},"💚 Thanks for the help from 💚\r\n",{"type":60,"tag":121,"props":146,"children":149},{"href":147,"rel":148},"https://github.com/AlbertBrand",[125],[150],{"type":60,"tag":113,"props":151,"children":152},{},[153],{"type":65,"value":154},"@AlbertBrand",{"title":53,"searchDepth":72,"depth":72,"links":156},[157],{"id":93,"depth":72,"text":96,"children":158},[159],{"id":100,"depth":160,"text":103},3,1,"https://github.com/nuxt-modules/supabase/releases/tag/v1.1.4","https://api.github.com/repos/nuxt-modules/supabase/tarball/v1.1.4","https://api.github.com/repos/nuxt-modules/supabase/zipball/v1.1.4",{"url":166,"total_count":161,"+1":161,"-1":167,"laugh":167,"hooray":167,"confused":167,"heart":167,"rocket":167,"eyes":167},"https://api.github.com/repos/nuxt-modules/supabase/releases/129966845/reactions",0,{"name":169,"url":170,"avatar":171},"larbish","https://github.com/larbish","https://avatars.githubusercontent.com/u/7290030?v=4","github:v1.1.4.md",{"name":174,"tag_name":174,"date":175,"body":176,"v":161,"url":274,"tarball":275,"zipball":276,"prerelease":54,"reactions":277,"author":280,"title":53,"description":53,"_type":74,"_id":281},"v1.1.3","2023-10-06T07:51:37Z",{"type":57,"children":177,"toc":271},[178,182,245],{"type":60,"tag":91,"props":179,"children":180},{"id":93},[181],{"type":65,"value":96},{"type":60,"tag":105,"props":183,"children":184},{},[185,219],{"type":60,"tag":109,"props":186,"children":187},{},[188,192,194,201,203,210,211,218],{"type":60,"tag":113,"props":189,"children":190},{},[191],{"type":65,"value":117},{"type":65,"value":193}," clientOptions merge",{"type":60,"tag":121,"props":195,"children":198},{"href":196,"rel":197},"https://github.com/nuxt-community/supabase-module/issues/275",[125],[199],{"type":65,"value":200},"#275",{"type":65,"value":202}," (",{"type":60,"tag":121,"props":204,"children":207},{"href":205,"rel":206},"https://github.com/nuxt-community/supabase-module/issues/277",[125],[208],{"type":65,"value":209},"#277",{"type":65,"value":130},{"type":60,"tag":121,"props":212,"children":215},{"href":213,"rel":214},"https://github.com/nuxt-community/supabase-module/commit/c0097a355b859cb6a2d97884a7648284128acca2",[125],[216],{"type":65,"value":217},"c0097a3",{"type":65,"value":139},{"type":60,"tag":109,"props":220,"children":221},{},[222,227,229,236,237,244],{"type":60,"tag":113,"props":223,"children":224},{},[225],{"type":65,"value":226},"module:",{"type":65,"value":228}," do not warn when using runtimeConfig to set url and key (",{"type":60,"tag":121,"props":230,"children":233},{"href":231,"rel":232},"https://github.com/nuxt-community/supabase-module/issues/281",[125],[234],{"type":65,"value":235},"#281",{"type":65,"value":130},{"type":60,"tag":121,"props":238,"children":241},{"href":239,"rel":240},"https://github.com/nuxt-community/supabase-module/commit/8c151737b55738c68fc24b5e4db2517c4e866693",[125],[242],{"type":65,"value":243},"8c15173",{"type":65,"value":139},{"type":60,"tag":61,"props":246,"children":247},{},[248,249,259,261],{"type":65,"value":144},{"type":60,"tag":121,"props":250,"children":253},{"href":251,"rel":252},"https://github.com/stafyniaksacha",[125],[254],{"type":60,"tag":113,"props":255,"children":256},{},[257],{"type":65,"value":258},"@stafyniaksacha",{"type":65,"value":260},"\r\n",{"type":60,"tag":121,"props":262,"children":265},{"href":263,"rel":264},"https://github.com/jonesisg1",[125],[266],{"type":60,"tag":113,"props":267,"children":268},{},[269],{"type":65,"value":270},"@jonesisg1",{"title":53,"searchDepth":72,"depth":72,"links":272},[273],{"id":93,"depth":72,"text":96},"https://github.com/nuxt-modules/supabase/releases/tag/v1.1.3","https://api.github.com/repos/nuxt-modules/supabase/tarball/v1.1.3","https://api.github.com/repos/nuxt-modules/supabase/zipball/v1.1.3",{"url":278,"total_count":279,"+1":72,"-1":167,"laugh":167,"hooray":72,"confused":167,"heart":167,"rocket":167,"eyes":167},"https://api.github.com/repos/nuxt-modules/supabase/releases/123992311/reactions",4,{"name":169,"url":170,"avatar":171},"github:v1.1.3.md",{"name":283,"tag_name":283,"date":284,"body":285,"v":161,"url":512,"tarball":513,"zipball":514,"prerelease":54,"reactions":515,"author":517,"title":53,"description":53,"_type":74,"_id":518},"v1.1.2","2023-09-06T17:44:35Z",{"type":57,"children":286,"toc":507},[287,291,313,353,357,435,451],{"type":60,"tag":91,"props":288,"children":289},{"id":93},[290],{"type":65,"value":96},{"type":60,"tag":61,"props":292,"children":293},{},[294,296,303,305,311],{"type":65,"value":295},"⚠️ BREAKING CHANGE ⚠️\r\nBreaking change is related to ",{"type":60,"tag":121,"props":297,"children":300},{"href":298,"rel":299},"https://github.com/nuxt-modules/supabase/issues/244",[125],[301],{"type":65,"value":302},"#244",{"type":65,"value":304}," and was first adressed in the ",{"type":60,"tag":306,"props":307,"children":308},"code",{"className":53},[309],{"type":65,"value":310},"v1.1.0",{"type":65,"value":312}," but patch has been necessary to fix the version.",{"type":60,"tag":61,"props":314,"children":315},{},[316,318,323,325,330,332,337,339,345,347],{"type":65,"value":317},"On the confirm page, configured in ",{"type":60,"tag":306,"props":319,"children":320},{"className":53},[321],{"type":65,"value":322},"redirect.callback",{"type":65,"value":324}," option (default to ",{"type":60,"tag":306,"props":326,"children":327},{"className":53},[328],{"type":65,"value":329},"/confirm",{"type":65,"value":331},"), ensure to set the ",{"type":60,"tag":306,"props":333,"children":334},{"className":53},[335],{"type":65,"value":336},"immediate",{"type":65,"value":338}," option in the watch.\r\nCheck out the doc: ",{"type":60,"tag":121,"props":340,"children":343},{"href":341,"rel":342},"http://supabase.nuxtjs.org/authentication#confirm-page-confirm",[125],[344],{"type":65,"value":341},{"type":65,"value":346},"\r\nCheck out the demo code: ",{"type":60,"tag":121,"props":348,"children":351},{"href":349,"rel":350},"https://github.com/nuxt-modules/supabase/blob/main/demo/pages/confirm.vue",[125],[352],{"type":65,"value":349},{"type":60,"tag":98,"props":354,"children":355},{"id":100},[356],{"type":65,"value":103},{"type":60,"tag":105,"props":358,"children":359},{},[360,385,409],{"type":60,"tag":109,"props":361,"children":362},{},[363,367,369,376,377,384],{"type":60,"tag":113,"props":364,"children":365},{},[366],{"type":65,"value":226},{"type":65,"value":368}," priority of redirect options made by defu (",{"type":60,"tag":121,"props":370,"children":373},{"href":371,"rel":372},"https://github.com/nuxt-community/supabase-module/issues/256",[125],[374],{"type":65,"value":375},"#256",{"type":65,"value":130},{"type":60,"tag":121,"props":378,"children":381},{"href":379,"rel":380},"https://github.com/nuxt-community/supabase-module/commit/c4e30bf50eb7816fee3a2e46b404df5ce9f7cf4d",[125],[382],{"type":65,"value":383},"c4e30bf",{"type":65,"value":139},{"type":60,"tag":109,"props":386,"children":387},{},[388,393,395,400,401,408],{"type":60,"tag":113,"props":389,"children":390},{},[391],{"type":65,"value":392},"plugin:",{"type":65,"value":394}," retrieve user for client only page (",{"type":60,"tag":121,"props":396,"children":398},{"href":298,"rel":397},[125],[399],{"type":65,"value":302},{"type":65,"value":130},{"type":60,"tag":121,"props":402,"children":405},{"href":403,"rel":404},"https://github.com/nuxt-community/supabase-module/commit/4a35428e26542bf22b3288db6e9a9309f1310705",[125],[406],{"type":65,"value":407},"4a35428",{"type":65,"value":139},{"type":60,"tag":109,"props":410,"children":411},{},[412,417,419,426,427,434],{"type":60,"tag":113,"props":413,"children":414},{},[415],{"type":65,"value":416},"useSupabaseUser:",{"type":65,"value":418}," add explicit user type (",{"type":60,"tag":121,"props":420,"children":423},{"href":421,"rel":422},"https://github.com/nuxt-community/supabase-module/issues/254",[125],[424],{"type":65,"value":425},"#254",{"type":65,"value":130},{"type":60,"tag":121,"props":428,"children":431},{"href":429,"rel":430},"https://github.com/nuxt-community/supabase-module/commit/60d8551ee83a9c64a962b9f76b881b17d7384736",[125],[432],{"type":65,"value":433},"60d8551",{"type":65,"value":139},{"type":60,"tag":61,"props":436,"children":437},{},[438,443,445],{"type":60,"tag":113,"props":439,"children":440},{},[441],{"type":65,"value":442},"Full Changelog",{"type":65,"value":444},": ",{"type":60,"tag":121,"props":446,"children":449},{"href":447,"rel":448},"https://github.com/nuxt-community/supabase-module/compare/v1.0.2...v1.1.0",[125],[450],{"type":65,"value":447},{"type":60,"tag":61,"props":452,"children":453},{},[454,455,465,466,476,477,485,486,496,497],{"type":65,"value":144},{"type":60,"tag":121,"props":456,"children":459},{"href":457,"rel":458},"https://github.com/52cs",[125],[460],{"type":60,"tag":113,"props":461,"children":462},{},[463],{"type":65,"value":464},"@52cs",{"type":65,"value":260},{"type":60,"tag":121,"props":467,"children":470},{"href":468,"rel":469},"https://github.com/Aietes",[125],[471],{"type":60,"tag":113,"props":472,"children":473},{},[474],{"type":65,"value":475},"@Aietes",{"type":65,"value":260},{"type":60,"tag":121,"props":478,"children":480},{"href":147,"rel":479},[125],[481],{"type":60,"tag":113,"props":482,"children":483},{},[484],{"type":65,"value":154},{"type":65,"value":260},{"type":60,"tag":121,"props":487,"children":490},{"href":488,"rel":489},"https://github.com/kiri10ten",[125],[491],{"type":60,"tag":113,"props":492,"children":493},{},[494],{"type":65,"value":495},"@kiri10ten",{"type":65,"value":260},{"type":60,"tag":121,"props":498,"children":501},{"href":499,"rel":500},"https://github.com/xMorthi",[125],[502],{"type":60,"tag":113,"props":503,"children":504},{},[505],{"type":65,"value":506},"@xMorthi",{"title":53,"searchDepth":72,"depth":72,"links":508},[509],{"id":93,"depth":72,"text":96,"children":510},[511],{"id":100,"depth":160,"text":103},"https://github.com/nuxt-modules/supabase/releases/tag/v1.1.2","https://api.github.com/repos/nuxt-modules/supabase/tarball/v1.1.2","https://api.github.com/repos/nuxt-modules/supabase/zipball/v1.1.2",{"url":516,"total_count":279,"+1":167,"-1":167,"laugh":167,"hooray":160,"confused":167,"heart":167,"rocket":167,"eyes":161},"https://api.github.com/repos/nuxt-modules/supabase/releases/120162649/reactions",{"name":169,"url":170,"avatar":171},"github:v1.1.2.md",{"name":520,"tag_name":520,"date":521,"body":522,"v":161,"url":603,"tarball":604,"zipball":605,"prerelease":54,"reactions":606,"author":608,"title":53,"description":53,"_type":74,"_id":609},"v1.0.2","2023-08-04T15:56:13Z",{"type":57,"children":523,"toc":600},[524,528,563,577],{"type":60,"tag":91,"props":525,"children":526},{"id":93},[527],{"type":65,"value":96},{"type":60,"tag":105,"props":529,"children":530},{},[531,547],{"type":60,"tag":109,"props":532,"children":533},{},[534,536,546],{"type":65,"value":535},"docs(auth): update (",{"type":60,"tag":121,"props":537,"children":540},{"href":538,"rel":539},"https://github.com/nuxt-modules/supabase/commit/df00ffe8ecc253fc23572b65465ad7928e185b13",[125],[541],{"type":60,"tag":306,"props":542,"children":543},{"className":53},[544],{"type":65,"value":545},"df00ffe",{"type":65,"value":139},{"type":60,"tag":109,"props":548,"children":549},{},[550,552,562],{"type":65,"value":551},"fix(client): correct provider_token assignment to cookie (",{"type":60,"tag":121,"props":553,"children":556},{"href":554,"rel":555},"https://github.com/nuxt-modules/supabase/commit/a76df3f67d6b08daf359f38130ce08aeab57317b",[125],[557],{"type":60,"tag":306,"props":558,"children":559},{"className":53},[560],{"type":65,"value":561},"a76df3f",{"type":65,"value":139},{"type":60,"tag":61,"props":564,"children":565},{},[566,570,571],{"type":60,"tag":113,"props":567,"children":568},{},[569],{"type":65,"value":442},{"type":65,"value":444},{"type":60,"tag":121,"props":572,"children":575},{"href":573,"rel":574},"https://github.com/nuxt-community/supabase-module/compare/v1.0.1...v1.0.2",[125],[576],{"type":65,"value":573},{"type":60,"tag":61,"props":578,"children":579},{},[580,581,591,592],{"type":65,"value":144},{"type":60,"tag":121,"props":582,"children":585},{"href":583,"rel":584},"https://github.com/blqke",[125],[586],{"type":60,"tag":113,"props":587,"children":588},{},[589],{"type":65,"value":590},"@blqke",{"type":65,"value":260},{"type":60,"tag":121,"props":593,"children":595},{"href":468,"rel":594},[125],[596],{"type":60,"tag":113,"props":597,"children":598},{},[599],{"type":65,"value":475},{"title":53,"searchDepth":72,"depth":72,"links":601},[602],{"id":93,"depth":72,"text":96},"https://github.com/nuxt-modules/supabase/releases/tag/v1.0.2","https://api.github.com/repos/nuxt-modules/supabase/tarball/v1.0.2","https://api.github.com/repos/nuxt-modules/supabase/zipball/v1.0.2",{"url":607,"total_count":160,"+1":167,"-1":167,"laugh":167,"hooray":160,"confused":167,"heart":167,"rocket":167,"eyes":167},"https://api.github.com/repos/nuxt-modules/supabase/releases/115135546/reactions",{"name":169,"url":170,"avatar":171},"github:v1.0.2.md",{"name":611,"tag_name":611,"date":612,"body":613,"v":161,"url":890,"tarball":891,"zipball":892,"prerelease":54,"reactions":893,"author":899,"title":53,"description":900,"_type":74,"_id":901},"v1.0.1","2023-08-02T15:46:15Z",{"type":57,"children":614,"toc":887},[615,627,632,700,705,726,730,735,854,869,872],{"type":60,"tag":61,"props":616,"children":617},{},[618,620,625],{"type":65,"value":619},"I am happy to announce the release of version ",{"type":60,"tag":306,"props":621,"children":622},{"className":53},[623],{"type":65,"value":624},"1.0.0",{"type":65,"value":626}," of this module. While the module has been production-ready for quite some time, I never had the opportunity to create the first major version until now. Given that this version incorporates significant changes, I believe it is the perfect moment to establish this initial major release.",{"type":60,"tag":91,"props":628,"children":629},{"id":93},[630],{"type":65,"value":631},"What's changed",{"type":60,"tag":105,"props":633,"children":634},{},[635,657,662],{"type":60,"tag":109,"props":636,"children":637},{},[638,640,647,649,656],{"type":65,"value":639},"Supabase introduced a new authentication flow (PKCE) a few months ago, which is now the default behavior of the module. However, you can still revert to the old (and less secure) authentication method through the module configuration. To help you seamlessly integrate this new flow, a ",{"type":60,"tag":121,"props":641,"children":644},{"href":642,"rel":643},"https://supabase.nuxtjs.org/authentication",[125],[645],{"type":65,"value":646},"dedicated section",{"type":65,"value":648}," has been added to the documentation. (",{"type":60,"tag":121,"props":650,"children":653},{"href":651,"rel":652},"https://github.com/nuxt-modules/supabase/issues/219",[125],[654],{"type":65,"value":655},"#219",{"type":65,"value":139},{"type":60,"tag":109,"props":658,"children":659},{},[660],{"type":65,"value":661},"Building upon the previous point, we have implemented substantial changes to the session management, involving alterations to how Supabase clients are instantiated and how sessions are synchronized between the server and client-side. Consequently, these changes result in some breaking changes, which are listed below.",{"type":60,"tag":109,"props":663,"children":664},{},[665,667,674,676,683,685,692,694],{"type":65,"value":666},"A brand new documentation has been built entirely using ",{"type":60,"tag":121,"props":668,"children":671},{"href":669,"rel":670},"https://nuxt.studio",[125],[672],{"type":65,"value":673},"Nuxt Studio",{"type":65,"value":675},". Feel free to create PRs to suggest fixes or add any necessary changes to further enhance the documentation. (",{"type":60,"tag":121,"props":677,"children":680},{"href":678,"rel":679},"https://github.com/nuxt-modules/supabase/issues/210",[125],[681],{"type":65,"value":682},"#210",{"type":65,"value":684}," / ",{"type":60,"tag":121,"props":686,"children":689},{"href":687,"rel":688},"https://github.com/nuxt-modules/supabase/issues/221",[125],[690],{"type":65,"value":691},"#221",{"type":65,"value":693},") => ",{"type":60,"tag":121,"props":695,"children":698},{"href":696,"rel":697},"https://supabase.nuxtjs.org",[125],[699],{"type":65,"value":696},{"type":60,"tag":61,"props":701,"children":702},{},[703],{"type":65,"value":704},"Here's documentation that can help you understand the PKCE authentication flow:",{"type":60,"tag":105,"props":706,"children":707},{},[708,717],{"type":60,"tag":109,"props":709,"children":710},{},[711],{"type":60,"tag":121,"props":712,"children":715},{"href":713,"rel":714},"https://supabase.com/blog/supabase-auth-sso-pkce#server-side-and-mobile-auth",[125],[716],{"type":65,"value":713},{"type":60,"tag":109,"props":718,"children":719},{},[720],{"type":60,"tag":121,"props":721,"children":724},{"href":722,"rel":723},"https://supabase.com/docs/guides/resources/glossary#pkce",[125],[725],{"type":65,"value":722},{"type":60,"tag":727,"props":728,"children":729},"br",{},[],{"type":60,"tag":61,"props":731,"children":732},{},[733],{"type":65,"value":734},"⚠️ BREAKING CHANGES ⚠️",{"type":60,"tag":105,"props":736,"children":737},{},[738,754,777,795,821],{"type":60,"tag":109,"props":739,"children":740},{},[741,746,748,752],{"type":60,"tag":306,"props":742,"children":743},{"className":53},[744],{"type":65,"value":745},"useSupabaseAuthClient",{"type":65,"value":747}," has been removed in favor of ",{"type":60,"tag":306,"props":749,"children":750},{"className":53},[751],{"type":65,"value":21},{"type":65,"value":753}," in all cases",{"type":60,"tag":109,"props":755,"children":756},{},[757,761,763,768,770,775],{"type":60,"tag":306,"props":758,"children":759},{"className":53},[760],{"type":65,"value":31},{"type":65,"value":762}," is now returning a promise (should be called with ",{"type":60,"tag":306,"props":764,"children":765},{"className":53},[766],{"type":65,"value":767},"await",{"type":65,"value":769}," in an ",{"type":60,"tag":306,"props":771,"children":772},{"className":53},[773],{"type":65,"value":774},"async",{"type":65,"value":776}," method)",{"type":60,"tag":109,"props":778,"children":779},{},[780,785,787,793],{"type":60,"tag":306,"props":781,"children":782},{"className":53},[783],{"type":65,"value":784},"redirect",{"type":65,"value":786}," option is enable by default, follow this ",{"type":60,"tag":121,"props":788,"children":790},{"href":642,"rel":789},[125],[791],{"type":65,"value":792},"guide",{"type":65,"value":794}," to update your app",{"type":60,"tag":109,"props":796,"children":797},{},[798,803,805,810,812,819],{"type":60,"tag":306,"props":799,"children":800},{"className":53},[801],{"type":65,"value":802},"client",{"type":65,"value":804}," option becomes ",{"type":60,"tag":306,"props":806,"children":807},{"className":53},[808],{"type":65,"value":809},"clientOptions",{"type":65,"value":811}," with new ",{"type":60,"tag":121,"props":813,"children":816},{"href":814,"rel":815},"https://supabase.nuxtjs.org/get-started#clientoptions",[125],[817],{"type":65,"value":818},"default value",{"type":65,"value":820}," (including the PKCE flow)",{"type":60,"tag":109,"props":822,"children":823},{},[824,829,831,836,838,843,845,852],{"type":60,"tag":306,"props":825,"children":826},{"className":53},[827],{"type":65,"value":828},"cookies",{"type":65,"value":830}," options is split in ",{"type":60,"tag":306,"props":832,"children":833},{"className":53},[834],{"type":65,"value":835},"cookieName",{"type":65,"value":837}," and ",{"type":60,"tag":306,"props":839,"children":840},{"className":53},[841],{"type":65,"value":842},"cookieOptions",{"type":65,"value":844},", ",{"type":60,"tag":121,"props":846,"children":849},{"href":847,"rel":848},"https://supabase.nuxtjs.org/get-started#cookieoptions",[125],[850],{"type":65,"value":851},"default values",{"type":65,"value":853}," have not changed",{"type":60,"tag":61,"props":855,"children":856},{},[857,859],{"type":65,"value":858},"Here si the commit done for updating the demo with the last version: ",{"type":60,"tag":121,"props":860,"children":863},{"href":861,"rel":862},"https://github.com/nuxt-modules/supabase/commit/10e05860862b68c49817f6420d50d082452f7a7f",[125],[864],{"type":60,"tag":306,"props":865,"children":866},{"className":53},[867],{"type":65,"value":868},"10e0586",{"type":60,"tag":727,"props":870,"children":871},{},[],{"type":60,"tag":61,"props":873,"children":874},{},[875,877,885],{"type":65,"value":876},"A huge thanks to ",{"type":60,"tag":121,"props":878,"children":880},{"href":468,"rel":879},[125],[881],{"type":60,"tag":113,"props":882,"children":883},{},[884],{"type":65,"value":475},{"type":65,"value":886}," for initialising all those changes and help me built it 💚",{"title":53,"searchDepth":72,"depth":72,"links":888},[889],{"id":93,"depth":72,"text":631},"https://github.com/nuxt-modules/supabase/releases/tag/v1.0.1","https://api.github.com/repos/nuxt-modules/supabase/tarball/v1.0.1","https://api.github.com/repos/nuxt-modules/supabase/zipball/v1.0.1",{"url":894,"total_count":895,"+1":896,"-1":167,"laugh":167,"hooray":897,"confused":167,"heart":279,"rocket":898,"eyes":167},"https://api.github.com/repos/nuxt-modules/supabase/releases/114843996/reactions",40,9,19,8,{"name":169,"url":170,"avatar":171},"I am happy to announce the release of version 1.0.0 of this module. While the module has been production-ready for quite some time, I never had the opportunity to create the first major version until now. Given that this version incorporates significant changes, I believe it is the perfect moment to establish this initial major release.","github:v1.0.1.md",{"name":903,"tag_name":903,"date":904,"body":905,"v":167,"url":995,"tarball":996,"zipball":997,"prerelease":54,"reactions":998,"author":1001,"title":53,"description":53,"_type":74,"_id":1002},"v0.3.8","2023-07-03T08:29:53Z",{"type":57,"children":906,"toc":992},[907,911,966,980],{"type":60,"tag":91,"props":908,"children":909},{"id":93},[910],{"type":65,"value":96},{"type":60,"tag":105,"props":912,"children":913},{},[914,950],{"type":60,"tag":109,"props":915,"children":916},{},[917,919,929,931,938,940],{"type":65,"value":918},"feat(session): save provider access/refresh tokens in cookies (",{"type":60,"tag":121,"props":920,"children":923},{"href":921,"rel":922},"https://github.com/nuxt-modules/supabase/commit/ea8c21f3d625984832cb27a3ae7605b16caaf94b",[125],[924],{"type":60,"tag":306,"props":925,"children":926},{"className":53},[927],{"type":65,"value":928},"ea8c21f",{"type":65,"value":930},") in ",{"type":60,"tag":121,"props":932,"children":935},{"href":933,"rel":934},"https://github.com/nuxt-modules/supabase/issues/197",[125],[936],{"type":65,"value":937},"#197",{"type":65,"value":939}," by ",{"type":60,"tag":121,"props":941,"children":944},{"href":942,"rel":943},"https://github.com/mitjans",[125],[945],{"type":60,"tag":113,"props":946,"children":947},{},[948],{"type":65,"value":949},"@mitjans",{"type":60,"tag":109,"props":951,"children":952},{},[953,955,965],{"type":65,"value":954},"chore(deps): upgrade to latest (",{"type":60,"tag":121,"props":956,"children":959},{"href":957,"rel":958},"https://github.com/nuxt-modules/supabase/commit/a52abc871b6ab756c2b477f7c6b3c0f51279693c",[125],[960],{"type":60,"tag":306,"props":961,"children":962},{"className":53},[963],{"type":65,"value":964},"a52abc8",{"type":65,"value":139},{"type":60,"tag":61,"props":967,"children":968},{},[969,973,974],{"type":60,"tag":113,"props":970,"children":971},{},[972],{"type":65,"value":442},{"type":65,"value":444},{"type":60,"tag":121,"props":975,"children":978},{"href":976,"rel":977},"https://github.com/nuxt-community/supabase-module/compare/v0.3.7...v0.3.8",[125],[979],{"type":65,"value":976},{"type":60,"tag":61,"props":981,"children":982},{},[983,984],{"type":65,"value":144},{"type":60,"tag":121,"props":985,"children":987},{"href":942,"rel":986},[125],[988],{"type":60,"tag":113,"props":989,"children":990},{},[991],{"type":65,"value":949},{"title":53,"searchDepth":72,"depth":72,"links":993},[994],{"id":93,"depth":72,"text":96},"https://github.com/nuxt-modules/supabase/releases/tag/v0.3.8","https://api.github.com/repos/nuxt-modules/supabase/tarball/v0.3.8","https://api.github.com/repos/nuxt-modules/supabase/zipball/v0.3.8",{"url":999,"total_count":1000,"+1":167,"-1":167,"laugh":167,"hooray":1000,"confused":167,"heart":167,"rocket":167,"eyes":167},"https://api.github.com/repos/nuxt-modules/supabase/releases/110829614/reactions",5,{"name":169,"url":170,"avatar":171},"github:v0.3.8.md",{"name":1004,"tag_name":1004,"date":1005,"body":1006,"v":167,"url":1074,"tarball":1075,"zipball":1076,"prerelease":54,"author":1077,"title":53,"description":53,"_type":74,"_id":1078},"v0.3.7","2023-06-12T07:51:13Z",{"type":57,"children":1007,"toc":1071},[1008,1012,1057],{"type":60,"tag":91,"props":1009,"children":1010},{"id":93},[1011],{"type":65,"value":96},{"type":60,"tag":105,"props":1013,"children":1014},{},[1015,1041],{"type":60,"tag":109,"props":1016,"children":1017},{},[1018,1020,1024,1025,1032,1034],{"type":65,"value":1019},"fix(client): fix persist session warning for ",{"type":60,"tag":306,"props":1021,"children":1022},{"className":53},[1023],{"type":65,"value":34},{"type":65,"value":202},{"type":60,"tag":121,"props":1026,"children":1029},{"href":1027,"rel":1028},"https://github.com/nuxt-modules/supabase/issues/194",[125],[1030],{"type":65,"value":1031},"#194",{"type":65,"value":1033},") resolves ",{"type":60,"tag":121,"props":1035,"children":1038},{"href":1036,"rel":1037},"https://github.com/nuxt-modules/supabase/issues/193",[125],[1039],{"type":65,"value":1040},"#193",{"type":60,"tag":109,"props":1042,"children":1043},{},[1044,1046,1056],{"type":65,"value":1045},"docs(get-started): remove defineNuxtConfig (",{"type":60,"tag":121,"props":1047,"children":1050},{"href":1048,"rel":1049},"https://github.com/nuxt-modules/supabase/commit/0151901",[125],[1051],{"type":60,"tag":306,"props":1052,"children":1053},{"className":53},[1054],{"type":65,"value":1055},"0151901",{"type":65,"value":139},{"type":60,"tag":61,"props":1058,"children":1059},{},[1060,1061],{"type":65,"value":144},{"type":60,"tag":121,"props":1062,"children":1065},{"href":1063,"rel":1064},"https://github.com/jawngee",[125],[1066],{"type":60,"tag":113,"props":1067,"children":1068},{},[1069],{"type":65,"value":1070},"@jawngee",{"title":53,"searchDepth":72,"depth":72,"links":1072},[1073],{"id":93,"depth":72,"text":96},"https://github.com/nuxt-modules/supabase/releases/tag/v0.3.7","https://api.github.com/repos/nuxt-modules/supabase/tarball/v0.3.7","https://api.github.com/repos/nuxt-modules/supabase/zipball/v0.3.7",{"name":169,"url":170,"avatar":171},"github:v0.3.7.md",{"name":1080,"tag_name":1080,"date":1081,"body":1082,"v":167,"url":1137,"tarball":1138,"zipball":1139,"prerelease":54,"reactions":1140,"author":1142,"title":53,"description":53,"_type":74,"_id":1143},"v0.3.6","2023-06-02T14:33:38Z",{"type":57,"children":1083,"toc":1134},[1084,1088],{"type":60,"tag":91,"props":1085,"children":1086},{"id":93},[1087],{"type":65,"value":96},{"type":60,"tag":105,"props":1089,"children":1090},{},[1091,1096,1121],{"type":60,"tag":109,"props":1092,"children":1093},{},[1094],{"type":65,"value":1095},"chore(deps): upgrade to nuxt and supabase latest version",{"type":60,"tag":109,"props":1097,"children":1098},{},[1099,1101,1111,1113,1120],{"type":65,"value":1100},"fix(client): remove persist session warning on server side in ",{"type":60,"tag":121,"props":1102,"children":1105},{"href":1103,"rel":1104},"https://github.com/nuxt-modules/supabase/commit/227113f68fb8723f9687adfa12150f825940e0c9",[125],[1106],{"type":60,"tag":306,"props":1107,"children":1108},{"className":53},[1109],{"type":65,"value":1110},"227113f",{"type":65,"value":1112}," (Resolves ",{"type":60,"tag":121,"props":1114,"children":1117},{"href":1115,"rel":1116},"https://github.com/nuxt-modules/supabase/issues/188",[125],[1118],{"type":65,"value":1119},"#188",{"type":65,"value":139},{"type":60,"tag":109,"props":1122,"children":1123},{},[1124,1126,1133],{"type":65,"value":1125},"fix(chore): resolve imports (Resolves ",{"type":60,"tag":121,"props":1127,"children":1130},{"href":1128,"rel":1129},"https://github.com/nuxt-modules/supabase/issues/190",[125],[1131],{"type":65,"value":1132},"#190",{"type":65,"value":139},{"title":53,"searchDepth":72,"depth":72,"links":1135},[1136],{"id":93,"depth":72,"text":96},"https://github.com/nuxt-modules/supabase/releases/tag/v0.3.6","https://api.github.com/repos/nuxt-modules/supabase/tarball/v0.3.6","https://api.github.com/repos/nuxt-modules/supabase/zipball/v0.3.6",{"url":1141,"total_count":1000,"+1":161,"-1":167,"laugh":167,"hooray":279,"confused":167,"heart":167,"rocket":167,"eyes":167},"https://api.github.com/repos/nuxt-modules/supabase/releases/105847469/reactions",{"name":169,"url":170,"avatar":171},"github:v0.3.6.md",{"name":1145,"tag_name":1145,"date":1146,"body":1147,"v":167,"url":1425,"tarball":1426,"zipball":1427,"prerelease":54,"reactions":1428,"author":1430,"title":53,"description":53,"_type":74,"_id":1431},"v0.3.5","2023-04-03T09:50:57Z",{"type":57,"children":1148,"toc":1422},[1149,1153,1371,1385],{"type":60,"tag":91,"props":1150,"children":1151},{"id":93},[1152],{"type":65,"value":96},{"type":60,"tag":105,"props":1154,"children":1155},{},[1156,1172,1188,1204,1220,1236,1252,1268,1284,1300,1332,1348],{"type":60,"tag":109,"props":1157,"children":1158},{},[1159,1161,1171],{"type":65,"value":1160},"chore(demo): upgrade on last version (",{"type":60,"tag":121,"props":1162,"children":1165},{"href":1163,"rel":1164},"https://github.com/nuxt-modules/supabase/commit/9bb9e2856823a0bb86c07ae7775462e02a1e430d",[125],[1166],{"type":60,"tag":306,"props":1167,"children":1168},{"className":53},[1169],{"type":65,"value":1170},"9bb9e28",{"type":65,"value":139},{"type":60,"tag":109,"props":1173,"children":1174},{},[1175,1177,1187],{"type":65,"value":1176},"chore(demo): generate database types from supabase cli (",{"type":60,"tag":121,"props":1178,"children":1181},{"href":1179,"rel":1180},"https://github.com/nuxt-modules/supabase/commit/bca199292dfeb23d5e0581ab40a6994fed3d1157",[125],[1182],{"type":60,"tag":306,"props":1183,"children":1184},{"className":53},[1185],{"type":65,"value":1186},"bca1992",{"type":65,"value":139},{"type":60,"tag":109,"props":1189,"children":1190},{},[1191,1193,1203],{"type":65,"value":1192},"docs(links): update nuxt & supabase links and fix typos (",{"type":60,"tag":121,"props":1194,"children":1197},{"href":1195,"rel":1196},"https://github.com/nuxt-modules/supabase/commit/5699dc6c22f9182e9593936fc1260fc785eea450",[125],[1198],{"type":60,"tag":306,"props":1199,"children":1200},{"className":53},[1201],{"type":65,"value":1202},"5699dc6",{"type":65,"value":139},{"type":60,"tag":109,"props":1205,"children":1206},{},[1207,1209,1219],{"type":65,"value":1208},"chore(app): move to pnpm (",{"type":60,"tag":121,"props":1210,"children":1213},{"href":1211,"rel":1212},"https://github.com/nuxt-modules/supabase/commit/94f7e130747801584d2b0999bd2f5f904e575082",[125],[1214],{"type":60,"tag":306,"props":1215,"children":1216},{"className":53},[1217],{"type":65,"value":1218},"94f7e13",{"type":65,"value":139},{"type":60,"tag":109,"props":1221,"children":1222},{},[1223,1225,1235],{"type":65,"value":1224},"chore(module): conditionally add redirect plugin (",{"type":60,"tag":121,"props":1226,"children":1229},{"href":1227,"rel":1228},"https://github.com/nuxt-modules/supabase/commit/0cad0a557934f669f2ab424ef072f6b07c098646",[125],[1230],{"type":60,"tag":306,"props":1231,"children":1232},{"className":53},[1233],{"type":65,"value":1234},"0cad0a5",{"type":65,"value":139},{"type":60,"tag":109,"props":1237,"children":1238},{},[1239,1241,1251],{"type":65,"value":1240},"docs(get-started): fix typos (",{"type":60,"tag":121,"props":1242,"children":1245},{"href":1243,"rel":1244},"https://github.com/nuxt-modules/supabase/commit/ba437a8534f3dcda53f805cc34b5d6a943297354",[125],[1246],{"type":60,"tag":306,"props":1247,"children":1248},{"className":53},[1249],{"type":65,"value":1250},"ba437a8",{"type":65,"value":139},{"type":60,"tag":109,"props":1253,"children":1254},{},[1255,1257,1267],{"type":65,"value":1256},"docs(composables): correct grammar errors (",{"type":60,"tag":121,"props":1258,"children":1261},{"href":1259,"rel":1260},"https://github.com/nuxt-modules/supabase/commit/034d7dfaf9f52a08da0ade4bf6d5ed31ec740734",[125],[1262],{"type":60,"tag":306,"props":1263,"children":1264},{"className":53},[1265],{"type":65,"value":1266},"034d7df",{"type":65,"value":139},{"type":60,"tag":109,"props":1269,"children":1270},{},[1271,1273,1283],{"type":65,"value":1272},"feat(demo): add call from server route(",{"type":60,"tag":121,"props":1274,"children":1277},{"href":1275,"rel":1276},"https://github.com/nuxt-modules/supabase/commit/989a91eacdc471de90a2307c39cd03f23cca57ee",[125],[1278],{"type":60,"tag":306,"props":1279,"children":1280},{"className":53},[1281],{"type":65,"value":1282},"989a91e",{"type":65,"value":139},{"type":60,"tag":109,"props":1285,"children":1286},{},[1287,1289,1299],{"type":65,"value":1288},"perf(useSupabaseAuthClient): avoid declaring unused variables (",{"type":60,"tag":121,"props":1290,"children":1293},{"href":1291,"rel":1292},"https://github.com/nuxt-modules/supabase/commit/8c070b9e571b3fe7870c08033ea561624a6ae575",[125],[1294],{"type":60,"tag":306,"props":1295,"children":1296},{"className":53},[1297],{"type":65,"value":1298},"8c070b9",{"type":65,"value":139},{"type":60,"tag":109,"props":1301,"children":1302},{},[1303,1305,1315,1316,1323,1325],{"type":65,"value":1304},"fix(dev): optimize supabase deps (",{"type":60,"tag":121,"props":1306,"children":1309},{"href":1307,"rel":1308},"https://github.com/nuxt-modules/supabase/commit/d1da3f6b2f463e7196c69c3a580833438926a6e1",[125],[1310],{"type":60,"tag":306,"props":1311,"children":1312},{"className":53},[1313],{"type":65,"value":1314},"d1da3f6",{"type":65,"value":1033},{"type":60,"tag":121,"props":1317,"children":1320},{"href":1318,"rel":1319},"https://github.com/nuxt-modules/supabase/issues/172",[125],[1321],{"type":65,"value":1322},"#172",{"type":65,"value":1324}," & ",{"type":60,"tag":121,"props":1326,"children":1329},{"href":1327,"rel":1328},"https://github.com/nuxt-modules/supabase/issues/151",[125],[1330],{"type":65,"value":1331},"#151",{"type":60,"tag":109,"props":1333,"children":1334},{},[1335,1337,1347],{"type":65,"value":1336},"chore(deps): transpile websocket lib prod only (",{"type":60,"tag":121,"props":1338,"children":1341},{"href":1339,"rel":1340},"https://github.com/nuxt-modules/supabase/commit/a1ee40c848c9da81aa41acc53dc3555b32bafd86",[125],[1342],{"type":60,"tag":306,"props":1343,"children":1344},{"className":53},[1345],{"type":65,"value":1346},"a1ee40c",{"type":65,"value":139},{"type":60,"tag":109,"props":1349,"children":1350},{},[1351,1353,1363,1364,1369],{"type":65,"value":1352},"fix(deps): transpile gotrue only on client (",{"type":60,"tag":121,"props":1354,"children":1357},{"href":1355,"rel":1356},"https://github.com/nuxt-modules/supabase/commit/fcc6823e248395a513706cf67ab664f84daacb45",[125],[1358],{"type":60,"tag":306,"props":1359,"children":1360},{"className":53},[1361],{"type":65,"value":1362},"fcc6823",{"type":65,"value":1033},{"type":60,"tag":121,"props":1365,"children":1367},{"href":1318,"rel":1366},[125],[1368],{"type":65,"value":1322},{"type":65,"value":1370}," on server side",{"type":60,"tag":61,"props":1372,"children":1373},{},[1374,1378,1379],{"type":60,"tag":113,"props":1375,"children":1376},{},[1377],{"type":65,"value":442},{"type":65,"value":444},{"type":60,"tag":121,"props":1380,"children":1383},{"href":1381,"rel":1382},"https://github.com/nuxt-community/supabase-module/compare/v0.3.1...v0.3.5",[125],[1384],{"type":65,"value":1381},{"type":60,"tag":61,"props":1386,"children":1387},{},[1388,1390,1397,1399,1406,1407,1414,1415],{"type":65,"value":1389},"💚 Thanks for the help from 💚\r\n@",{"type":60,"tag":121,"props":1391,"children":1394},{"href":1392,"rel":1393},"https://github.com/nuxt-modules/supabase/commits?author=kuizuo",[125],[1395],{"type":65,"value":1396},"kuizuo",{"type":65,"value":1398},"\r\n@",{"type":60,"tag":121,"props":1400,"children":1403},{"href":1401,"rel":1402},"https://github.com/nuxt-modules/supabase/commits?author=tnntwister",[125],[1404],{"type":65,"value":1405},"tnntwister",{"type":65,"value":1398},{"type":60,"tag":121,"props":1408,"children":1411},{"href":1409,"rel":1410},"https://github.com/nuxt-modules/supabase/commits?author=yannaufray",[125],[1412],{"type":65,"value":1413},"yannaufray",{"type":65,"value":1398},{"type":60,"tag":121,"props":1416,"children":1419},{"href":1417,"rel":1418},"https://github.com/nuxt-modules/supabase/commits?author=DamianGlowala",[125],[1420],{"type":65,"value":1421},"DamianGlowala",{"title":53,"searchDepth":72,"depth":72,"links":1423},[1424],{"id":93,"depth":72,"text":96},"https://github.com/nuxt-modules/supabase/releases/tag/v0.3.5","https://api.github.com/repos/nuxt-modules/supabase/tarball/v0.3.5","https://api.github.com/repos/nuxt-modules/supabase/zipball/v0.3.5",{"url":1429,"total_count":161,"+1":167,"-1":167,"laugh":167,"hooray":167,"confused":167,"heart":167,"rocket":161,"eyes":167},"https://api.github.com/repos/nuxt-modules/supabase/releases/97822579/reactions",{"name":169,"url":170,"avatar":171},"github:v0.3.5.md",{"name":1433,"tag_name":1433,"date":1434,"body":1435,"v":167,"url":1686,"tarball":1687,"zipball":1688,"prerelease":1689,"reactions":1690,"author":1692,"title":53,"description":53,"_type":74,"_id":1693},"v0.3.3","2023-03-31T21:51:14Z",{"type":57,"children":1436,"toc":1683},[1437,1441,1669],{"type":60,"tag":91,"props":1438,"children":1439},{"id":93},[1440],{"type":65,"value":96},{"type":60,"tag":105,"props":1442,"children":1443},{},[1444,1466,1481,1497,1513,1535,1551,1575,1597,1619,1633,1655],{"type":60,"tag":109,"props":1445,"children":1446},{},[1447,1448,1455,1456,1465],{"type":65,"value":1288},{"type":60,"tag":121,"props":1449,"children":1452},{"href":1450,"rel":1451},"https://github.com/nuxt-modules/supabase/issues/166",[125],[1453],{"type":65,"value":1454},"#166",{"type":65,"value":130},{"type":60,"tag":121,"props":1457,"children":1460},{"href":1458,"rel":1459},"https://github.com/nuxt-modules/supabase/commit/8c070b9",[125],[1461],{"type":60,"tag":306,"props":1462,"children":1463},{"className":53},[1464],{"type":65,"value":1298},{"type":65,"value":139},{"type":60,"tag":109,"props":1467,"children":1468},{},[1469,1471,1480],{"type":65,"value":1470},"feat(demo): add call from server route (",{"type":60,"tag":121,"props":1472,"children":1475},{"href":1473,"rel":1474},"https://github.com/nuxt-modules/supabase/commit/989a91e",[125],[1476],{"type":60,"tag":306,"props":1477,"children":1478},{"className":53},[1479],{"type":65,"value":1282},{"type":65,"value":139},{"type":60,"tag":109,"props":1482,"children":1483},{},[1484,1486,1496],{"type":65,"value":1485},"chore(demo): upgrade deps (",{"type":60,"tag":121,"props":1487,"children":1490},{"href":1488,"rel":1489},"https://github.com/nuxt-modules/supabase/commit/9ebbc77",[125],[1491],{"type":60,"tag":306,"props":1492,"children":1493},{"className":53},[1494],{"type":65,"value":1495},"9ebbc77",{"type":65,"value":139},{"type":60,"tag":109,"props":1498,"children":1499},{},[1500,1502,1512],{"type":65,"value":1501},"chore(deps): upgrade (",{"type":60,"tag":121,"props":1503,"children":1506},{"href":1504,"rel":1505},"https://github.com/nuxt-modules/supabase/commit/e274a5e",[125],[1507],{"type":60,"tag":306,"props":1508,"children":1509},{"className":53},[1510],{"type":65,"value":1511},"e274a5e",{"type":65,"value":139},{"type":60,"tag":109,"props":1514,"children":1515},{},[1516,1517,1524,1525,1534],{"type":65,"value":1256},{"type":60,"tag":121,"props":1518,"children":1521},{"href":1519,"rel":1520},"https://github.com/nuxt-modules/supabase/issues/162",[125],[1522],{"type":65,"value":1523},"#162",{"type":65,"value":130},{"type":60,"tag":121,"props":1526,"children":1529},{"href":1527,"rel":1528},"https://github.com/nuxt-modules/supabase/commit/034d7df",[125],[1530],{"type":60,"tag":306,"props":1531,"children":1532},{"className":53},[1533],{"type":65,"value":1266},{"type":65,"value":139},{"type":60,"tag":109,"props":1536,"children":1537},{},[1538,1540,1550],{"type":65,"value":1539},"docs(readme): add nuxt badge (",{"type":60,"tag":121,"props":1541,"children":1544},{"href":1542,"rel":1543},"https://github.com/nuxt-modules/supabase/commit/68271b8",[125],[1545],{"type":60,"tag":306,"props":1546,"children":1547},{"className":53},[1548],{"type":65,"value":1549},"68271b8",{"type":65,"value":139},{"type":60,"tag":109,"props":1552,"children":1553},{},[1554,1556,1563,1564,1574],{"type":65,"value":1555},"docs(demo): fix typo (",{"type":60,"tag":121,"props":1557,"children":1560},{"href":1558,"rel":1559},"https://github.com/nuxt-modules/supabase/issues/125",[125],[1561],{"type":65,"value":1562},"#125",{"type":65,"value":130},{"type":60,"tag":121,"props":1565,"children":1568},{"href":1566,"rel":1567},"https://github.com/nuxt-modules/supabase/commit/bd33d12",[125],[1569],{"type":60,"tag":306,"props":1570,"children":1571},{"className":53},[1572],{"type":65,"value":1573},"bd33d12",{"type":65,"value":139},{"type":60,"tag":109,"props":1576,"children":1577},{},[1578,1579,1586,1587,1596],{"type":65,"value":1240},{"type":60,"tag":121,"props":1580,"children":1583},{"href":1581,"rel":1582},"https://github.com/nuxt-modules/supabase/issues/154",[125],[1584],{"type":65,"value":1585},"#154",{"type":65,"value":130},{"type":60,"tag":121,"props":1588,"children":1591},{"href":1589,"rel":1590},"https://github.com/nuxt-modules/supabase/commit/ba437a8",[125],[1592],{"type":60,"tag":306,"props":1593,"children":1594},{"className":53},[1595],{"type":65,"value":1250},{"type":65,"value":139},{"type":60,"tag":109,"props":1598,"children":1599},{},[1600,1601,1608,1609,1618],{"type":65,"value":1224},{"type":60,"tag":121,"props":1602,"children":1605},{"href":1603,"rel":1604},"https://github.com/nuxt-modules/supabase/issues/157",[125],[1606],{"type":65,"value":1607},"#157",{"type":65,"value":130},{"type":60,"tag":121,"props":1610,"children":1613},{"href":1611,"rel":1612},"https://github.com/nuxt-modules/supabase/commit/0cad0a5",[125],[1614],{"type":60,"tag":306,"props":1615,"children":1616},{"className":53},[1617],{"type":65,"value":1234},{"type":65,"value":139},{"type":60,"tag":109,"props":1620,"children":1621},{},[1622,1623,1632],{"type":65,"value":1208},{"type":60,"tag":121,"props":1624,"children":1627},{"href":1625,"rel":1626},"https://github.com/nuxt-modules/supabase/commit/94f7e13",[125],[1628],{"type":60,"tag":306,"props":1629,"children":1630},{"className":53},[1631],{"type":65,"value":1218},{"type":65,"value":139},{"type":60,"tag":109,"props":1634,"children":1635},{},[1636,1637,1644,1645,1654],{"type":65,"value":1192},{"type":60,"tag":121,"props":1638,"children":1641},{"href":1639,"rel":1640},"https://github.com/nuxt-modules/supabase/issues/126",[125],[1642],{"type":65,"value":1643},"#126",{"type":65,"value":130},{"type":60,"tag":121,"props":1646,"children":1649},{"href":1647,"rel":1648},"https://github.com/nuxt-modules/supabase/commit/5699dc6",[125],[1650],{"type":60,"tag":306,"props":1651,"children":1652},{"className":53},[1653],{"type":65,"value":1202},{"type":65,"value":139},{"type":60,"tag":109,"props":1656,"children":1657},{},[1658,1659,1668],{"type":65,"value":1176},{"type":60,"tag":121,"props":1660,"children":1663},{"href":1661,"rel":1662},"https://github.com/nuxt-modules/supabase/commit/bca1992",[125],[1664],{"type":60,"tag":306,"props":1665,"children":1666},{"className":53},[1667],{"type":65,"value":1186},{"type":65,"value":139},{"type":60,"tag":61,"props":1670,"children":1671},{},[1672,1676,1677],{"type":60,"tag":113,"props":1673,"children":1674},{},[1675],{"type":65,"value":442},{"type":65,"value":444},{"type":60,"tag":121,"props":1678,"children":1681},{"href":1679,"rel":1680},"https://github.com/nuxt-community/supabase-module/compare/v0.3.1...v0.3.3",[125],[1682],{"type":65,"value":1679},{"title":53,"searchDepth":72,"depth":72,"links":1684},[1685],{"id":93,"depth":72,"text":96},"https://github.com/nuxt-modules/supabase/releases/tag/v0.3.3","https://api.github.com/repos/nuxt-modules/supabase/tarball/v0.3.3","https://api.github.com/repos/nuxt-modules/supabase/zipball/v0.3.3",true,{"url":1691,"total_count":161,"+1":161,"-1":167,"laugh":167,"hooray":167,"confused":167,"heart":167,"rocket":167,"eyes":167},"https://api.github.com/repos/nuxt-modules/supabase/releases/97697076/reactions",{"name":169,"url":170,"avatar":171},"github:v0.3.3.md",{"name":1695,"tag_name":1695,"date":1696,"body":1697,"v":167,"url":1760,"tarball":1761,"zipball":1762,"prerelease":54,"author":1763,"title":53,"description":53,"_type":74,"_id":1764},"v0.3.1","2023-02-07T20:18:04Z",{"type":57,"children":1698,"toc":1757},[1699,1703,1743],{"type":60,"tag":91,"props":1700,"children":1701},{"id":93},[1702],{"type":65,"value":96},{"type":60,"tag":105,"props":1704,"children":1705},{},[1706,1722,1738],{"type":60,"tag":109,"props":1707,"children":1708},{},[1709,1711,1721],{"type":65,"value":1710},"chore(app): upgrade deps and fix lint (",{"type":60,"tag":121,"props":1712,"children":1715},{"href":1713,"rel":1714},"https://github.com/nuxt-modules/supabase/commit/68baf68",[125],[1716],{"type":60,"tag":306,"props":1717,"children":1718},{"className":53},[1719],{"type":65,"value":1720},"68baf68",{"type":65,"value":139},{"type":60,"tag":109,"props":1723,"children":1724},{},[1725,1727,1737],{"type":65,"value":1726},"fix(client): unset user before session on logout (",{"type":60,"tag":121,"props":1728,"children":1731},{"href":1729,"rel":1730},"https://github.com/nuxt-modules/supabase/commit/ab574ef",[125],[1732],{"type":60,"tag":306,"props":1733,"children":1734},{"className":53},[1735],{"type":65,"value":1736},"ab574ef",{"type":65,"value":139},{"type":60,"tag":109,"props":1739,"children":1740},{},[1741],{"type":65,"value":1742},"chore(demo): update with latest and fix logout",{"type":60,"tag":61,"props":1744,"children":1745},{},[1746,1750,1751],{"type":60,"tag":113,"props":1747,"children":1748},{},[1749],{"type":65,"value":442},{"type":65,"value":444},{"type":60,"tag":121,"props":1752,"children":1755},{"href":1753,"rel":1754},"https://github.com/nuxt-community/supabase-module/compare/v0.3.0...v0.3.1",[125],[1756],{"type":65,"value":1753},{"title":53,"searchDepth":72,"depth":72,"links":1758},[1759],{"id":93,"depth":72,"text":96},"https://github.com/nuxt-modules/supabase/releases/tag/v0.3.1","https://api.github.com/repos/nuxt-modules/supabase/tarball/v0.3.1","https://api.github.com/repos/nuxt-modules/supabase/zipball/v0.3.1",{"name":169,"url":170,"avatar":171},"github:v0.3.1.md",{"name":1766,"tag_name":1766,"date":1767,"body":1768,"v":167,"url":1884,"tarball":1885,"zipball":1886,"prerelease":54,"reactions":1887,"author":1889,"title":53,"description":734,"_type":74,"_id":1890},"v0.3.0","2022-11-22T15:26:02Z",{"type":57,"children":1769,"toc":1881},[1770,1774,1778,1798,1829,1855,1867],{"type":60,"tag":61,"props":1771,"children":1772},{},[1773],{"type":65,"value":734},{"type":60,"tag":91,"props":1775,"children":1776},{"id":93},[1777],{"type":65,"value":96},{"type":60,"tag":61,"props":1779,"children":1780},{},[1781,1783,1790,1792,1796],{"type":65,"value":1782},"In order to resolve ",{"type":60,"tag":121,"props":1784,"children":1787},{"href":1785,"rel":1786},"https://github.com/nuxt-modules/supabase/issues/114",[125],[1788],{"type":65,"value":1789},"#114",{"type":65,"value":1791},", I have made the choice to separate the ",{"type":60,"tag":306,"props":1793,"children":1794},{"className":53},[1795],{"type":65,"value":21},{"type":65,"value":1797}," in two other composables:",{"type":60,"tag":105,"props":1799,"children":1800},{},[1801,1819],{"type":60,"tag":109,"props":1802,"children":1803},{},[1804,1806,1810,1812,1817],{"type":65,"value":1805},"The ",{"type":60,"tag":306,"props":1807,"children":1808},{"className":53},[1809],{"type":65,"value":745},{"type":65,"value":1811}," is dedicated to authentification purpose only. It won't be recreate if your token expires, it is used in the client plugin to listen to ",{"type":60,"tag":306,"props":1813,"children":1814},{"className":53},[1815],{"type":65,"value":1816},"onAuthStateChange",{"type":65,"value":1818}," events.",{"type":60,"tag":109,"props":1820,"children":1821},{},[1822,1823,1827],{"type":65,"value":1805},{"type":60,"tag":306,"props":1824,"children":1825},{"className":53},[1826],{"type":65,"value":21},{"type":65,"value":1828}," is now only useful for data request.",{"type":60,"tag":61,"props":1830,"children":1831},{},[1832,1834,1838,1840,1844,1846,1853],{"type":65,"value":1833},"To avoid regression you just need to use ",{"type":60,"tag":306,"props":1835,"children":1836},{"className":53},[1837],{"type":65,"value":745},{"type":65,"value":1839}," instead of ",{"type":60,"tag":306,"props":1841,"children":1842},{"className":53},[1843],{"type":65,"value":21},{"type":65,"value":1845}," everywhere you use ",{"type":60,"tag":121,"props":1847,"children":1850},{"href":1848,"rel":1849},"https://supabase.com/docs/reference/javascript/auth-signup",[125],[1851],{"type":65,"value":1852},"Supabase auth methods",{"type":65,"value":1854},".",{"type":60,"tag":61,"props":1856,"children":1857},{},[1858,1865],{"type":60,"tag":121,"props":1859,"children":1862},{"href":1860,"rel":1861},"https://supabase.nuxtjs.org/usage/composables/use-supabase-auth-client",[125],[1863],{"type":65,"value":1864},"Documentation",{"type":65,"value":1866}," has been updated.",{"type":60,"tag":61,"props":1868,"children":1869},{},[1870,1874,1875],{"type":60,"tag":113,"props":1871,"children":1872},{},[1873],{"type":65,"value":442},{"type":65,"value":444},{"type":60,"tag":121,"props":1876,"children":1879},{"href":1877,"rel":1878},"https://github.com/nuxt-community/supabase-module/compare/v0.2.6...v0.3.0",[125],[1880],{"type":65,"value":1877},{"title":53,"searchDepth":72,"depth":72,"links":1882},[1883],{"id":93,"depth":72,"text":96},"https://github.com/nuxt-modules/supabase/releases/tag/v0.3.0","https://api.github.com/repos/nuxt-modules/supabase/tarball/v0.3.0","https://api.github.com/repos/nuxt-modules/supabase/zipball/v0.3.0",{"url":1888,"total_count":898,"+1":72,"-1":167,"laugh":167,"hooray":167,"confused":167,"heart":160,"rocket":160,"eyes":167},"https://api.github.com/repos/nuxt-modules/supabase/releases/83886320/reactions",{"name":169,"url":170,"avatar":171},"github:v0.3.0.md",{"name":1892,"tag_name":1892,"date":1893,"body":1894,"v":167,"url":1931,"tarball":1932,"zipball":1933,"prerelease":54,"author":1934,"title":53,"description":53,"_type":74,"_id":1935},"v0.2.6","2022-11-22T15:16:16Z",{"type":57,"children":1895,"toc":1928},[1896,1900,1914],{"type":60,"tag":91,"props":1897,"children":1898},{"id":93},[1899],{"type":65,"value":96},{"type":60,"tag":105,"props":1901,"children":1902},{},[1903],{"type":60,"tag":109,"props":1904,"children":1905},{},[1906,1908],{"type":65,"value":1907},"chore: update to Nuxt 3 stable 🚀 ",{"type":60,"tag":121,"props":1909,"children":1912},{"href":1910,"rel":1911},"https://nuxt.com/v3",[125],[1913],{"type":65,"value":1910},{"type":60,"tag":61,"props":1915,"children":1916},{},[1917,1921,1922],{"type":60,"tag":113,"props":1918,"children":1919},{},[1920],{"type":65,"value":442},{"type":65,"value":444},{"type":60,"tag":121,"props":1923,"children":1926},{"href":1924,"rel":1925},"https://github.com/nuxt-community/supabase-module/compare/v0.2.5...v0.2.6",[125],[1927],{"type":65,"value":1924},{"title":53,"searchDepth":72,"depth":72,"links":1929},[1930],{"id":93,"depth":72,"text":96},"https://github.com/nuxt-modules/supabase/releases/tag/v0.2.6","https://api.github.com/repos/nuxt-modules/supabase/tarball/v0.2.6","https://api.github.com/repos/nuxt-modules/supabase/zipball/v0.2.6",{"name":169,"url":170,"avatar":171},"github:v0.2.6.md",{"name":1937,"tag_name":1937,"date":1938,"body":1939,"v":167,"url":1990,"tarball":1991,"zipball":1992,"prerelease":54,"author":1993,"title":53,"description":53,"_type":74,"_id":1994},"v0.2.5","2022-11-22T15:14:51Z",{"type":57,"children":1940,"toc":1987},[1941,1945,1973],{"type":60,"tag":91,"props":1942,"children":1943},{"id":93},[1944],{"type":65,"value":96},{"type":60,"tag":105,"props":1946,"children":1947},{},[1948],{"type":60,"tag":109,"props":1949,"children":1950},{},[1951,1953,1963,1965,1972],{"type":65,"value":1952},"fix: use Router instead of navigateTo for login redirect in ",{"type":60,"tag":121,"props":1954,"children":1957},{"href":1955,"rel":1956},"https://github.com/nuxt-modules/supabase/commit/79fc0e43655d4dee5858acf06cf1979e3ead542b",[125],[1958],{"type":60,"tag":306,"props":1959,"children":1960},{"className":53},[1961],{"type":65,"value":1962},"79fc0e4",{"type":65,"value":1964}," (resolves ",{"type":60,"tag":121,"props":1966,"children":1969},{"href":1967,"rel":1968},"https://github.com/nuxt-modules/supabase/issues/89",[125],[1970],{"type":65,"value":1971},"#89",{"type":65,"value":139},{"type":60,"tag":61,"props":1974,"children":1975},{},[1976,1980,1981],{"type":60,"tag":113,"props":1977,"children":1978},{},[1979],{"type":65,"value":442},{"type":65,"value":444},{"type":60,"tag":121,"props":1982,"children":1985},{"href":1983,"rel":1984},"https://github.com/nuxt-community/supabase-module/compare/v0.2.4...v0.2.5",[125],[1986],{"type":65,"value":1983},{"title":53,"searchDepth":72,"depth":72,"links":1988},[1989],{"id":93,"depth":72,"text":96},"https://github.com/nuxt-modules/supabase/releases/tag/v0.2.5","https://api.github.com/repos/nuxt-modules/supabase/tarball/v0.2.5","https://api.github.com/repos/nuxt-modules/supabase/zipball/v0.2.5",{"name":169,"url":170,"avatar":171},"github:v0.2.5.md",{"name":1996,"tag_name":1996,"date":1997,"body":1998,"v":167,"url":2039,"tarball":2040,"zipball":2041,"prerelease":54,"reactions":2042,"author":2044,"title":53,"description":53,"_type":74,"_id":2045},"v0.2.4","2022-11-13T19:36:18Z",{"type":57,"children":1999,"toc":2036},[2000,2004,2022],{"type":60,"tag":91,"props":2001,"children":2002},{"id":93},[2003],{"type":65,"value":96},{"type":60,"tag":105,"props":2005,"children":2006},{},[2007],{"type":60,"tag":109,"props":2008,"children":2009},{},[2010,2012],{"type":65,"value":2011},"fix: handle TOKEN_REFRESHED session event in ",{"type":60,"tag":121,"props":2013,"children":2016},{"href":2014,"rel":2015},"https://github.com/nuxt-modules/supabase/commit/bf503029b48113b4b66545d0d2065c899209a06a",[125],[2017],{"type":60,"tag":306,"props":2018,"children":2019},{"className":53},[2020],{"type":65,"value":2021},"bf50302",{"type":60,"tag":61,"props":2023,"children":2024},{},[2025,2029,2030],{"type":60,"tag":113,"props":2026,"children":2027},{},[2028],{"type":65,"value":442},{"type":65,"value":444},{"type":60,"tag":121,"props":2031,"children":2034},{"href":2032,"rel":2033},"https://github.com/nuxt-community/supabase-module/compare/v0.2.3...v0.2.4",[125],[2035],{"type":65,"value":2032},{"title":53,"searchDepth":72,"depth":72,"links":2037},[2038],{"id":93,"depth":72,"text":96},"https://github.com/nuxt-modules/supabase/releases/tag/v0.2.4","https://api.github.com/repos/nuxt-modules/supabase/tarball/v0.2.4","https://api.github.com/repos/nuxt-modules/supabase/zipball/v0.2.4",{"url":2043,"total_count":72,"+1":167,"-1":167,"laugh":167,"hooray":167,"confused":167,"heart":72,"rocket":167,"eyes":167},"https://api.github.com/repos/nuxt-modules/supabase/releases/82920199/reactions",{"name":169,"url":170,"avatar":171},"github:v0.2.4.md",{"name":2047,"tag_name":2047,"date":2048,"body":2049,"v":167,"url":2184,"tarball":2185,"zipball":2186,"prerelease":54,"reactions":2187,"author":2189,"title":53,"description":53,"_type":74,"_id":2190},"v0.2.3","2022-11-11T17:27:14Z",{"type":57,"children":2050,"toc":2180},[2051,2055,2132,2138,2166],{"type":60,"tag":91,"props":2052,"children":2053},{"id":93},[2054],{"type":65,"value":96},{"type":60,"tag":105,"props":2056,"children":2057},{},[2058,2084,2096,2109],{"type":60,"tag":109,"props":2059,"children":2060},{},[2061,2063,2073,2074],{"type":65,"value":2062},"feat: typed supabase client in ",{"type":60,"tag":121,"props":2064,"children":2067},{"href":2065,"rel":2066},"https://github.com/nuxt-modules/supabase/commit/b59ff1acfbbe2cd36aea1ade2d2b538404909260",[125],[2068],{"type":60,"tag":306,"props":2069,"children":2070},{"className":53},[2071],{"type":65,"value":2072},"b59ff1a",{"type":65,"value":837},{"type":60,"tag":121,"props":2075,"children":2078},{"href":2076,"rel":2077},"https://github.com/nuxt-modules/supabase/commit/fd751d7e50c63c48df9e03763458cc826409ff35",[125],[2079],{"type":60,"tag":306,"props":2080,"children":2081},{"className":53},[2082],{"type":65,"value":2083},"fd751d7",{"type":60,"tag":109,"props":2085,"children":2086},{},[2087,2089],{"type":65,"value":2088},"chore: upgrade to nuxt ",{"type":60,"tag":121,"props":2090,"children":2093},{"href":2091,"rel":2092},"https://github.com/nuxt/framework/releases/tag/v3.0.0-rc.13",[125],[2094],{"type":65,"value":2095},"rc13",{"type":60,"tag":109,"props":2097,"children":2098},{},[2099,2101,2108],{"type":65,"value":2100},"fix: do not apply token if not exists (",{"type":60,"tag":121,"props":2102,"children":2105},{"href":2103,"rel":2104},"https://github.com/nuxt-modules/supabase/issues/107",[125],[2106],{"type":65,"value":2107},"#107",{"type":65,"value":139},{"type":60,"tag":109,"props":2110,"children":2111},{},[2112,2114,2120,2122],{"type":65,"value":2113},"docs: add roadmap board from ",{"type":60,"tag":121,"props":2115,"children":2118},{"href":2116,"rel":2117},"https://volta.net",[125],[2119],{"type":65,"value":2116},{"type":65,"value":2121}," in ",{"type":60,"tag":121,"props":2123,"children":2126},{"href":2124,"rel":2125},"https://github.com/nuxt-modules/supabase/commit/f8e73b535924f133e479dbc2863bb37856ff4555",[125],[2127],{"type":60,"tag":306,"props":2128,"children":2129},{"className":53},[2130],{"type":65,"value":2131},"f8e73b5",{"type":60,"tag":91,"props":2133,"children":2135},{"id":2134},"contributors",[2136],{"type":65,"value":2137},"Contributors",{"type":60,"tag":61,"props":2139,"children":2140},{},[2141,2143,2153,2154,2164],{"type":65,"value":2142},"Thanks to ",{"type":60,"tag":121,"props":2144,"children":2147},{"href":2145,"rel":2146},"https://github.com/manniL",[125],[2148],{"type":60,"tag":113,"props":2149,"children":2150},{},[2151],{"type":65,"value":2152},"@manniL",{"type":65,"value":837},{"type":60,"tag":121,"props":2155,"children":2158},{"href":2156,"rel":2157},"https://github.com/levibe",[125],[2159],{"type":60,"tag":113,"props":2160,"children":2161},{},[2162],{"type":65,"value":2163},"@levibe",{"type":65,"value":2165}," 💚",{"type":60,"tag":61,"props":2167,"children":2168},{},[2169,2173,2174],{"type":60,"tag":113,"props":2170,"children":2171},{},[2172],{"type":65,"value":442},{"type":65,"value":444},{"type":60,"tag":121,"props":2175,"children":2178},{"href":2176,"rel":2177},"https://github.com/nuxt-community/supabase-module/compare/v0.2.0...v0.2.3",[125],[2179],{"type":65,"value":2176},{"title":53,"searchDepth":72,"depth":72,"links":2181},[2182,2183],{"id":93,"depth":72,"text":96},{"id":2134,"depth":72,"text":2137},"https://github.com/nuxt-modules/supabase/releases/tag/v0.2.3","https://api.github.com/repos/nuxt-modules/supabase/tarball/v0.2.3","https://api.github.com/repos/nuxt-modules/supabase/zipball/v0.2.3",{"url":2188,"total_count":161,"+1":167,"-1":167,"laugh":167,"hooray":167,"confused":167,"heart":161,"rocket":167,"eyes":167},"https://api.github.com/repos/nuxt-modules/supabase/releases/82825289/reactions",{"name":169,"url":170,"avatar":171},"github:v0.2.3.md",{"name":2192,"tag_name":2192,"date":2193,"body":2194,"v":167,"url":2285,"tarball":2286,"zipball":2287,"prerelease":54,"author":2288,"title":53,"description":53,"_type":74,"_id":2289},"v0.2.0","2022-10-17T14:18:31Z",{"type":57,"children":2195,"toc":2282},[2196,2200,2205,2218,2231,2236,2241,2268],{"type":60,"tag":91,"props":2197,"children":2198},{"id":93},[2199],{"type":65,"value":96},{"type":60,"tag":61,"props":2201,"children":2202},{},[2203],{"type":65,"value":2204},"⚠️ Breaking Changes",{"type":60,"tag":61,"props":2206,"children":2207},{},[2208,2210,2217],{"type":65,"value":2209},"Upgrade to supabase-js v2, check Supabase ",{"type":60,"tag":121,"props":2211,"children":2214},{"href":2212,"rel":2213},"https://supabase.com/docs/reference/javascript/release-notes",[125],[2215],{"type":65,"value":2216},"release notes",{"type":65,"value":1854},{"type":60,"tag":61,"props":2219,"children":2220},{},[2221,2223,2229],{"type":65,"value":2222},"Module ",{"type":60,"tag":121,"props":2224,"children":2226},{"href":696,"rel":2225},[125],[2227],{"type":65,"value":2228},"documentation",{"type":65,"value":2230}," has been updated in favor of supabase v2 syntax.",{"type":60,"tag":61,"props":2232,"children":2233},{},[2234],{"type":65,"value":2235},"Please feel free to make PR if I missed something 🙏",{"type":60,"tag":61,"props":2237,"children":2238},{},[2239],{"type":65,"value":2240},"🚀 Features",{"type":60,"tag":105,"props":2242,"children":2243},{},[2244,2256],{"type":60,"tag":109,"props":2245,"children":2246},{},[2247,2249,2255],{"type":65,"value":2248},"options: redirect user after signout or when user is not authenticated (check ",{"type":60,"tag":121,"props":2250,"children":2253},{"href":2251,"rel":2252},"https://supabase.nuxtjs.org/get-started#redirect",[125],[2254],{"type":65,"value":2228},{"type":65,"value":139},{"type":60,"tag":109,"props":2257,"children":2258},{},[2259,2261],{"type":65,"value":2260},"session: set refresh token ",{"type":60,"tag":121,"props":2262,"children":2265},{"href":2263,"rel":2264},"https://github.com/nuxt-modules/supabase/issues/18",[125],[2266],{"type":65,"value":2267},"#18",{"type":60,"tag":61,"props":2269,"children":2270},{},[2271,2275,2276],{"type":60,"tag":113,"props":2272,"children":2273},{},[2274],{"type":65,"value":442},{"type":65,"value":444},{"type":60,"tag":121,"props":2277,"children":2280},{"href":2278,"rel":2279},"https://github.com/nuxt-community/supabase-module/compare/v0.1.28...v0.2.0",[125],[2281],{"type":65,"value":2278},{"title":53,"searchDepth":72,"depth":72,"links":2283},[2284],{"id":93,"depth":72,"text":96},"https://github.com/nuxt-modules/supabase/releases/tag/v0.2.0","https://api.github.com/repos/nuxt-modules/supabase/tarball/v0.2.0","https://api.github.com/repos/nuxt-modules/supabase/zipball/v0.2.0",{"name":169,"url":170,"avatar":171},"github:v0.2.0.md",{"name":2291,"tag_name":2291,"date":2292,"body":2293,"v":167,"url":2348,"tarball":2349,"zipball":2350,"prerelease":54,"author":2351,"title":53,"description":53,"_type":74,"_id":2352},"v0.1.28","2022-10-07T10:05:52Z",{"type":57,"children":2294,"toc":2345},[2295,2299,2315,2329],{"type":60,"tag":91,"props":2296,"children":2297},{"id":93},[2298],{"type":65,"value":96},{"type":60,"tag":105,"props":2300,"children":2301},{},[2302],{"type":60,"tag":109,"props":2303,"children":2304},{},[2305,2307,2314],{"type":65,"value":2306},"fix: cloudflare workers deployment (",{"type":60,"tag":121,"props":2308,"children":2311},{"href":2309,"rel":2310},"https://github.com/nuxt-modules/supabase/issues/46",[125],[2312],{"type":65,"value":2313},"#46",{"type":65,"value":139},{"type":60,"tag":61,"props":2316,"children":2317},{},[2318,2322,2323],{"type":60,"tag":113,"props":2319,"children":2320},{},[2321],{"type":65,"value":442},{"type":65,"value":444},{"type":60,"tag":121,"props":2324,"children":2327},{"href":2325,"rel":2326},"https://github.com/nuxt-community/supabase-module/compare/v0.1.27...v0.1.28",[125],[2328],{"type":65,"value":2325},{"type":60,"tag":61,"props":2330,"children":2331},{},[2332,2333,2343],{"type":65,"value":2142},{"type":60,"tag":121,"props":2334,"children":2337},{"href":2335,"rel":2336},"https://github.com/kevinmarrec",[125],[2338],{"type":60,"tag":113,"props":2339,"children":2340},{},[2341],{"type":65,"value":2342},"@kevinmarrec",{"type":65,"value":2344}," for the fix 🔥",{"title":53,"searchDepth":72,"depth":72,"links":2346},[2347],{"id":93,"depth":72,"text":96},"https://github.com/nuxt-modules/supabase/releases/tag/v0.1.28","https://api.github.com/repos/nuxt-modules/supabase/tarball/v0.1.28","https://api.github.com/repos/nuxt-modules/supabase/zipball/v0.1.28",{"name":169,"url":170,"avatar":171},"github:v0.1.28.md",{"name":2354,"tag_name":2354,"date":2355,"body":2356,"v":167,"url":2399,"tarball":2400,"zipball":2401,"prerelease":54,"author":2402,"title":53,"description":53,"_type":74,"_id":2403},"v0.1.27","2022-09-23T10:19:42Z",{"type":57,"children":2357,"toc":2396},[2358,2362,2377,2382],{"type":60,"tag":91,"props":2359,"children":2360},{"id":93},[2361],{"type":65,"value":96},{"type":60,"tag":105,"props":2363,"children":2364},{},[2365],{"type":60,"tag":109,"props":2366,"children":2367},{},[2368,2370],{"type":65,"value":2369},"chore: upgrade to Nuxt ",{"type":60,"tag":121,"props":2371,"children":2374},{"href":2372,"rel":2373},"https://github.com/nuxt/framework/releases/tag/v3.0.0-rc.11",[125],[2375],{"type":65,"value":2376},"rc.11",{"type":60,"tag":61,"props":2378,"children":2379},{},[2380],{"type":65,"value":2381},"Stable is coming 🚀",{"type":60,"tag":61,"props":2383,"children":2384},{},[2385,2389,2390],{"type":60,"tag":113,"props":2386,"children":2387},{},[2388],{"type":65,"value":442},{"type":65,"value":444},{"type":60,"tag":121,"props":2391,"children":2394},{"href":2392,"rel":2393},"https://github.com/nuxt-community/supabase-module/compare/v0.1.26...v0.1.27",[125],[2395],{"type":65,"value":2392},{"title":53,"searchDepth":72,"depth":72,"links":2397},[2398],{"id":93,"depth":72,"text":96},"https://github.com/nuxt-modules/supabase/releases/tag/v0.1.27","https://api.github.com/repos/nuxt-modules/supabase/tarball/v0.1.27","https://api.github.com/repos/nuxt-modules/supabase/zipball/v0.1.27",{"name":169,"url":170,"avatar":171},"github:v0.1.27.md",{"name":2192,"tag_name":2405,"date":2406,"body":2407,"v":167,"url":2445,"tarball":2446,"zipball":2447,"prerelease":1689,"author":2448,"title":53,"description":53,"_type":74,"_id":2289},"v0.2.0-16","2022-08-16T14:56:45Z",{"type":57,"children":2408,"toc":2442},[2409,2413,2417,2428],{"type":60,"tag":91,"props":2410,"children":2411},{"id":93},[2412],{"type":65,"value":96},{"type":60,"tag":61,"props":2414,"children":2415},{},[2416],{"type":65,"value":2204},{"type":60,"tag":61,"props":2418,"children":2419},{},[2420,2421,2427],{"type":65,"value":2209},{"type":60,"tag":121,"props":2422,"children":2425},{"href":2423,"rel":2424},"https://supabase.com/docs/reference/javascript/next/release-notes",[125],[2426],{"type":65,"value":2216},{"type":65,"value":1854},{"type":60,"tag":61,"props":2429,"children":2430},{},[2431,2435,2436],{"type":60,"tag":113,"props":2432,"children":2433},{},[2434],{"type":65,"value":442},{"type":65,"value":444},{"type":60,"tag":121,"props":2437,"children":2440},{"href":2438,"rel":2439},"https://github.com/nuxt-community/supabase-module/compare/v0.1.22...v0.2.0",[125],[2441],{"type":65,"value":2438},{"title":53,"searchDepth":72,"depth":72,"links":2443},[2444],{"id":93,"depth":72,"text":96},"https://github.com/nuxt-modules/supabase/releases/tag/v0.2.0-16","https://api.github.com/repos/nuxt-modules/supabase/tarball/v0.2.0-16","https://api.github.com/repos/nuxt-modules/supabase/zipball/v0.2.0-16",{"name":169,"url":170,"avatar":171},{"name":2450,"tag_name":2450,"date":2451,"body":2452,"v":167,"url":2494,"tarball":2495,"zipball":2496,"prerelease":54,"reactions":2497,"author":2499,"title":53,"description":53,"_type":74,"_id":2500},"v0.1.26","2022-09-16T11:17:29Z",{"type":57,"children":2453,"toc":2491},[2454,2458,2472,2477],{"type":60,"tag":91,"props":2455,"children":2456},{"id":93},[2457],{"type":65,"value":96},{"type":60,"tag":105,"props":2459,"children":2460},{},[2461],{"type":60,"tag":109,"props":2462,"children":2463},{},[2464,2465],{"type":65,"value":2369},{"type":60,"tag":121,"props":2466,"children":2469},{"href":2467,"rel":2468},"https://github.com/nuxt/framework/releases/tag/v3.0.0-rc.10",[125],[2470],{"type":65,"value":2471},"rc.10",{"type":60,"tag":61,"props":2473,"children":2474},{},[2475],{"type":65,"value":2476},"Stable in coming 🚀",{"type":60,"tag":61,"props":2478,"children":2479},{},[2480,2484,2485],{"type":60,"tag":113,"props":2481,"children":2482},{},[2483],{"type":65,"value":442},{"type":65,"value":444},{"type":60,"tag":121,"props":2486,"children":2489},{"href":2487,"rel":2488},"https://github.com/nuxt-community/supabase-module/compare/v0.1.25...v0.1.26",[125],[2490],{"type":65,"value":2487},{"title":53,"searchDepth":72,"depth":72,"links":2492},[2493],{"id":93,"depth":72,"text":96},"https://github.com/nuxt-modules/supabase/releases/tag/v0.1.26","https://api.github.com/repos/nuxt-modules/supabase/tarball/v0.1.26","https://api.github.com/repos/nuxt-modules/supabase/zipball/v0.1.26",{"url":2498,"total_count":161,"+1":161,"-1":167,"laugh":167,"hooray":167,"confused":167,"heart":167,"rocket":167,"eyes":167},"https://api.github.com/repos/nuxt-modules/supabase/releases/77384555/reactions",{"name":169,"url":170,"avatar":171},"github:v0.1.26.md",{"name":2502,"tag_name":2502,"date":2503,"body":2504,"v":167,"url":2603,"tarball":2604,"zipball":2605,"prerelease":54,"reactions":2606,"author":2608,"title":53,"description":53,"_type":74,"_id":2609},"v0.1.25","2022-09-05T07:28:01Z",{"type":57,"children":2505,"toc":2600},[2506,2510,2586],{"type":60,"tag":91,"props":2507,"children":2508},{"id":93},[2509],{"type":65,"value":96},{"type":60,"tag":105,"props":2511,"children":2512},{},[2513,2547,2573],{"type":60,"tag":109,"props":2514,"children":2515},{},[2516,2518,2528,2529,2539,2541],{"type":65,"value":2517},"docs: new directory architecture + supabase module v2 coming soon in ",{"type":60,"tag":121,"props":2519,"children":2522},{"href":2520,"rel":2521},"https://github.com/nuxt-modules/supabase/commit/d48522a369bcced45dfb3d16793b33f0144ffa50",[125],[2523],{"type":60,"tag":306,"props":2524,"children":2525},{"className":53},[2526],{"type":65,"value":2527},"d48522a",{"type":65,"value":837},{"type":60,"tag":121,"props":2530,"children":2533},{"href":2531,"rel":2532},"https://github.com/nuxt-modules/supabase/commit/e69712b4862a5baa464c01ae32755473358b82d2",[125],[2534],{"type":60,"tag":306,"props":2535,"children":2536},{"className":53},[2537],{"type":65,"value":2538},"e69712b",{"type":65,"value":2540},". Check out ",{"type":60,"tag":121,"props":2542,"children":2545},{"href":2543,"rel":2544},"https://supabase.nuxtjs.org/",[125],[2546],{"type":65,"value":2543},{"type":60,"tag":109,"props":2548,"children":2549},{},[2550,2552,2562,2563],{"type":65,"value":2551},"chore: upgrade to rc9 in ",{"type":60,"tag":121,"props":2553,"children":2556},{"href":2554,"rel":2555},"https://github.com/nuxt-modules/supabase/commit/3c5220bf9569d2e939a466aa4a2814e0dc38622c",[125],[2557],{"type":60,"tag":306,"props":2558,"children":2559},{"className":53},[2560],{"type":65,"value":2561},"3c5220b",{"type":65,"value":837},{"type":60,"tag":121,"props":2564,"children":2567},{"href":2565,"rel":2566},"https://github.com/nuxt-modules/supabase/commit/495e0b705622e9bda28072815c828beedea1082c",[125],[2568],{"type":60,"tag":306,"props":2569,"children":2570},{"className":53},[2571],{"type":65,"value":2572},"495e0b7",{"type":60,"tag":109,"props":2574,"children":2575},{},[2576,2578,2585],{"type":65,"value":2577},"chore: fix nuxt compatibility (",{"type":60,"tag":121,"props":2579,"children":2582},{"href":2580,"rel":2581},"https://github.com/nuxt-modules/supabase/issues/70",[125],[2583],{"type":65,"value":2584},"#70",{"type":65,"value":139},{"type":60,"tag":61,"props":2587,"children":2588},{},[2589,2593,2594],{"type":60,"tag":113,"props":2590,"children":2591},{},[2592],{"type":65,"value":442},{"type":65,"value":444},{"type":60,"tag":121,"props":2595,"children":2598},{"href":2596,"rel":2597},"https://github.com/nuxt-community/supabase-module/compare/v0.1.23...v0.1.25",[125],[2599],{"type":65,"value":2596},{"title":53,"searchDepth":72,"depth":72,"links":2601},[2602],{"id":93,"depth":72,"text":96},"https://github.com/nuxt-modules/supabase/releases/tag/v0.1.25","https://api.github.com/repos/nuxt-modules/supabase/tarball/v0.1.25","https://api.github.com/repos/nuxt-modules/supabase/zipball/v0.1.25",{"url":2607,"total_count":1000,"+1":167,"-1":167,"laugh":167,"hooray":167,"confused":167,"heart":1000,"rocket":167,"eyes":167},"https://api.github.com/repos/nuxt-modules/supabase/releases/76259131/reactions",{"name":169,"url":170,"avatar":171},"github:v0.1.25.md",{"name":2611,"tag_name":2611,"date":2612,"body":2613,"v":167,"url":2679,"tarball":2680,"zipball":2681,"prerelease":54,"author":2682,"title":53,"description":53,"_type":74,"_id":2683},"v0.1.23","2022-08-16T10:12:13Z",{"type":57,"children":2614,"toc":2676},[2615,2619,2662],{"type":60,"tag":91,"props":2616,"children":2617},{"id":93},[2618],{"type":65,"value":96},{"type":60,"tag":105,"props":2620,"children":2621},{},[2622],{"type":60,"tag":109,"props":2623,"children":2624},{},[2625,2627,2639,2641,2652,2654,2661],{"type":65,"value":2626},"fix: transpile supabase packages in ",{"type":60,"tag":121,"props":2628,"children":2631},{"href":2629,"rel":2630},"https://github.com/nuxt-community/supabase-module/commit/66020204e8aad98db94a83964f1bb988642c90f3",[125],[2632,2634],{"type":65,"value":2633},"nuxt-community/supabase-module@",{"type":60,"tag":306,"props":2635,"children":2636},{"className":53},[2637],{"type":65,"value":2638},"6602020",{"type":65,"value":2640}," ",{"type":60,"tag":121,"props":2642,"children":2645},{"href":2643,"rel":2644},"https://github.com/nuxt-community/supabase-module/commit/237ddf2cf83079e39748b6252182ca1d2f62cc54",[125],[2646,2647],{"type":65,"value":2633},{"type":60,"tag":306,"props":2648,"children":2649},{"className":53},[2650],{"type":65,"value":2651},"237ddf2",{"type":65,"value":2653}," and (",{"type":60,"tag":121,"props":2655,"children":2658},{"href":2656,"rel":2657},"https://github.com/nuxt-modules/supabase/issues/62",[125],[2659],{"type":65,"value":2660},"#62",{"type":65,"value":139},{"type":60,"tag":61,"props":2663,"children":2664},{},[2665,2669,2670],{"type":60,"tag":113,"props":2666,"children":2667},{},[2668],{"type":65,"value":442},{"type":65,"value":444},{"type":60,"tag":121,"props":2671,"children":2674},{"href":2672,"rel":2673},"https://github.com/nuxt-community/supabase-module/compare/v0.1.20...v0.1.23",[125],[2675],{"type":65,"value":2672},{"title":53,"searchDepth":72,"depth":72,"links":2677},[2678],{"id":93,"depth":72,"text":96},"https://github.com/nuxt-modules/supabase/releases/tag/v0.1.23","https://api.github.com/repos/nuxt-modules/supabase/tarball/v0.1.23","https://api.github.com/repos/nuxt-modules/supabase/zipball/v0.1.23",{"name":169,"url":170,"avatar":171},"github:v0.1.23.md",{"name":2685,"tag_name":2685,"date":2686,"body":2687,"v":167,"url":2757,"tarball":2758,"zipball":2759,"prerelease":54,"author":2760,"title":53,"description":53,"_type":74,"_id":2761},"v0.1.20","2022-08-16T09:12:14Z",{"type":57,"children":2688,"toc":2753},[2689,2693,2708,2722,2728],{"type":60,"tag":91,"props":2690,"children":2691},{"id":93},[2692],{"type":65,"value":96},{"type":60,"tag":105,"props":2694,"children":2695},{},[2696],{"type":60,"tag":109,"props":2697,"children":2698},{},[2699,2701],{"type":65,"value":2700},"chore: upgrade to ",{"type":60,"tag":121,"props":2702,"children":2705},{"href":2703,"rel":2704},"https://github.com/nuxt/framework/releases/tag/v3.0.0-rc.8",[125],[2706],{"type":65,"value":2707},"nuxt rc.8",{"type":60,"tag":61,"props":2709,"children":2710},{},[2711,2715,2716],{"type":60,"tag":113,"props":2712,"children":2713},{},[2714],{"type":65,"value":442},{"type":65,"value":444},{"type":60,"tag":121,"props":2717,"children":2720},{"href":2718,"rel":2719},"https://github.com/nuxt-community/supabase-module/compare/v0.1.19...v0.1.20",[125],[2721],{"type":65,"value":2718},{"type":60,"tag":91,"props":2723,"children":2725},{"id":2724},"new-contributors",[2726],{"type":65,"value":2727},"New Contributors",{"type":60,"tag":105,"props":2729,"children":2730},{},[2731],{"type":60,"tag":109,"props":2732,"children":2733},{},[2734,2744,2746],{"type":60,"tag":121,"props":2735,"children":2738},{"href":2736,"rel":2737},"https://github.com/josuemartinezz",[125],[2739],{"type":60,"tag":113,"props":2740,"children":2741},{},[2742],{"type":65,"value":2743},"@josuemartinezz",{"type":65,"value":2745}," made his first contribution in ",{"type":60,"tag":121,"props":2747,"children":2750},{"href":2748,"rel":2749},"https://github.com/nuxt-modules/supabase/issues/59",[125],[2751],{"type":65,"value":2752},"#59",{"title":53,"searchDepth":72,"depth":72,"links":2754},[2755,2756],{"id":93,"depth":72,"text":96},{"id":2724,"depth":72,"text":2727},"https://github.com/nuxt-modules/supabase/releases/tag/v0.1.20","https://api.github.com/repos/nuxt-modules/supabase/tarball/v0.1.20","https://api.github.com/repos/nuxt-modules/supabase/zipball/v0.1.20",{"name":169,"url":170,"avatar":171},"github:v0.1.20.md",{"name":2763,"tag_name":2763,"date":2764,"body":2765,"v":167,"url":2818,"tarball":2819,"zipball":2820,"prerelease":54,"reactions":2821,"author":2823,"title":53,"description":53,"_type":74,"_id":2824},"v0.1.19","2022-07-18T08:18:42Z",{"type":57,"children":2766,"toc":2815},[2767,2771,2801],{"type":60,"tag":91,"props":2768,"children":2769},{"id":93},[2770],{"type":65,"value":96},{"type":60,"tag":105,"props":2772,"children":2773},{},[2774,2785],{"type":60,"tag":109,"props":2775,"children":2776},{},[2777,2778],{"type":65,"value":2700},{"type":60,"tag":121,"props":2779,"children":2782},{"href":2780,"rel":2781},"https://github.com/nuxt/framework/pull/5825",[125],[2783],{"type":65,"value":2784},"nuxt rc.5",{"type":60,"tag":109,"props":2786,"children":2787},{},[2788,2790],{"type":65,"value":2789},"doc: add supabase icon in ",{"type":60,"tag":121,"props":2791,"children":2794},{"href":2792,"rel":2793},"https://github.com/nuxt-community/supabase-module/commit/c0cce016eae809fd64acc9a503b4807750280b39",[125],[2795,2796],{"type":65,"value":2633},{"type":60,"tag":306,"props":2797,"children":2798},{"className":53},[2799],{"type":65,"value":2800},"c0cce01",{"type":60,"tag":61,"props":2802,"children":2803},{},[2804,2808,2809],{"type":60,"tag":113,"props":2805,"children":2806},{},[2807],{"type":65,"value":442},{"type":65,"value":444},{"type":60,"tag":121,"props":2810,"children":2813},{"href":2811,"rel":2812},"https://github.com/nuxt-community/supabase-module/compare/v0.1.18...v0.1.19",[125],[2814],{"type":65,"value":2811},{"title":53,"searchDepth":72,"depth":72,"links":2816},[2817],{"id":93,"depth":72,"text":96},"https://github.com/nuxt-modules/supabase/releases/tag/v0.1.19","https://api.github.com/repos/nuxt-modules/supabase/tarball/v0.1.19","https://api.github.com/repos/nuxt-modules/supabase/zipball/v0.1.19",{"url":2822,"total_count":161,"+1":167,"-1":167,"laugh":167,"hooray":167,"confused":167,"heart":167,"rocket":161,"eyes":167},"https://api.github.com/repos/nuxt-modules/supabase/releases/72200550/reactions",{"name":169,"url":170,"avatar":171},"github:v0.1.19.md",{"name":2826,"tag_name":2826,"date":2827,"body":2828,"v":167,"url":2903,"tarball":2904,"zipball":2905,"prerelease":54,"author":2906,"title":53,"description":53,"_type":74,"_id":2907},"v0.1.18","2022-06-29T09:23:26Z",{"type":57,"children":2829,"toc":2900},[2830,2834,2886],{"type":60,"tag":91,"props":2831,"children":2832},{"id":93},[2833],{"type":65,"value":96},{"type":60,"tag":105,"props":2835,"children":2836},{},[2837,2862],{"type":60,"tag":109,"props":2838,"children":2839},{},[2840,2842,2853,2854,2861],{"type":65,"value":2841},"doc: update logo & social preview in ",{"type":60,"tag":121,"props":2843,"children":2846},{"href":2844,"rel":2845},"https://github.com/nuxt-community/supabase-module/commit/9b0b2fbee1f2fed50e903c2b368b817568d7ab1f",[125],[2847,2848],{"type":65,"value":2633},{"type":60,"tag":306,"props":2849,"children":2850},{"className":53},[2851],{"type":65,"value":2852},"9b0b2fb",{"type":65,"value":202},{"type":60,"tag":121,"props":2855,"children":2858},{"href":2856,"rel":2857},"https://github.com/nuxt-modules/supabase/issues/53",[125],[2859],{"type":65,"value":2860},"#53",{"type":65,"value":139},{"type":60,"tag":109,"props":2863,"children":2864},{},[2865,2866,2877,2878,2885],{"type":65,"value":2626},{"type":60,"tag":121,"props":2867,"children":2870},{"href":2868,"rel":2869},"https://github.com/nuxt-community/supabase-module/commit/309c137f7ae23985f0ed9947fb85cb75cbfbfca2",[125],[2871,2872],{"type":65,"value":2633},{"type":60,"tag":306,"props":2873,"children":2874},{"className":53},[2875],{"type":65,"value":2876},"309c137",{"type":65,"value":202},{"type":60,"tag":121,"props":2879,"children":2882},{"href":2880,"rel":2881},"https://github.com/nuxt-modules/supabase/issues/55",[125],[2883],{"type":65,"value":2884},"#55",{"type":65,"value":139},{"type":60,"tag":61,"props":2887,"children":2888},{},[2889,2893,2894],{"type":60,"tag":113,"props":2890,"children":2891},{},[2892],{"type":65,"value":442},{"type":65,"value":444},{"type":60,"tag":121,"props":2895,"children":2898},{"href":2896,"rel":2897},"https://github.com/nuxt-community/supabase-module/compare/v0.1.17...v0.1.18",[125],[2899],{"type":65,"value":2896},{"title":53,"searchDepth":72,"depth":72,"links":2901},[2902],{"id":93,"depth":72,"text":96},"https://github.com/nuxt-modules/supabase/releases/tag/v0.1.18","https://api.github.com/repos/nuxt-modules/supabase/tarball/v0.1.18","https://api.github.com/repos/nuxt-modules/supabase/zipball/v0.1.18",{"name":169,"url":170,"avatar":171},"github:v0.1.18.md",{"name":2909,"tag_name":2909,"date":2910,"body":2911,"v":167,"url":3001,"tarball":3002,"zipball":3003,"prerelease":54,"reactions":3004,"author":3006,"title":53,"description":53,"_type":74,"_id":3007},"v0.1.17","2022-06-17T07:01:12Z",{"type":57,"children":2912,"toc":2998},[2913,2917,2971,2984],{"type":60,"tag":91,"props":2914,"children":2915},{"id":93},[2916],{"type":65,"value":96},{"type":60,"tag":105,"props":2918,"children":2919},{},[2920,2931,2955],{"type":60,"tag":109,"props":2921,"children":2922},{},[2923,2924],{"type":65,"value":2700},{"type":60,"tag":121,"props":2925,"children":2928},{"href":2926,"rel":2927},"https://github.com/nuxt/framework/discussions/5445",[125],[2929],{"type":65,"value":2930},"nuxt rc.4",{"type":60,"tag":109,"props":2932,"children":2933},{},[2934,2936,2943,2944],{"type":65,"value":2935},"doc: update ",{"type":60,"tag":121,"props":2937,"children":2940},{"href":2938,"rel":2939},"https://docus.com/",[125],[2941],{"type":65,"value":2942},"docus theme",{"type":65,"value":2121},{"type":60,"tag":121,"props":2945,"children":2948},{"href":2946,"rel":2947},"https://github.com/nuxt-community/supabase-module/commit/64a5add3db5e0416a8a3b7f9708d27148797e958",[125],[2949,2950],{"type":65,"value":2633},{"type":60,"tag":306,"props":2951,"children":2952},{"className":53},[2953],{"type":65,"value":2954},"64a5add",{"type":60,"tag":109,"props":2956,"children":2957},{},[2958,2960],{"type":65,"value":2959},"doc: add advanced usage with supabase realtime ",{"type":60,"tag":121,"props":2961,"children":2964},{"href":2962,"rel":2963},"https://github.com/nuxt-community/supabase-module/commit/8047e311e5526a4597b81a99dc8045114348172f",[125],[2965,2966],{"type":65,"value":2633},{"type":60,"tag":306,"props":2967,"children":2968},{"className":53},[2969],{"type":65,"value":2970},"8047e31",{"type":60,"tag":61,"props":2972,"children":2973},{},[2974,2976,2982],{"type":65,"value":2975},"Checkout the ",{"type":60,"tag":121,"props":2977,"children":2980},{"href":2978,"rel":2979},"https://supabase.nuxtjs.org/advanced#realtime",[125],[2981],{"type":65,"value":2228},{"type":65,"value":2983}," for supabase realtime!",{"type":60,"tag":61,"props":2985,"children":2986},{},[2987,2991,2992],{"type":60,"tag":113,"props":2988,"children":2989},{},[2990],{"type":65,"value":442},{"type":65,"value":444},{"type":60,"tag":121,"props":2993,"children":2996},{"href":2994,"rel":2995},"https://github.com/nuxt-community/supabase-module/compare/v0.1.16...v0.1.17",[125],[2997],{"type":65,"value":2994},{"title":53,"searchDepth":72,"depth":72,"links":2999},[3000],{"id":93,"depth":72,"text":96},"https://github.com/nuxt-modules/supabase/releases/tag/v0.1.17","https://api.github.com/repos/nuxt-modules/supabase/tarball/v0.1.17","https://api.github.com/repos/nuxt-modules/supabase/zipball/v0.1.17",{"url":3005,"total_count":161,"+1":167,"-1":167,"laugh":167,"hooray":167,"confused":167,"heart":161,"rocket":167,"eyes":167},"https://api.github.com/repos/nuxt-modules/supabase/releases/69689480/reactions",{"name":169,"url":170,"avatar":171},"github:v0.1.17.md",{"name":3009,"tag_name":3009,"date":3010,"body":3011,"v":167,"url":3107,"tarball":3108,"zipball":3109,"prerelease":54,"author":3110,"title":53,"description":53,"_type":74,"_id":3111},"v0.1.16","2022-06-01T10:51:45Z",{"type":57,"children":3012,"toc":3104},[3013,3017,3078,3090],{"type":60,"tag":91,"props":3014,"children":3015},{"id":93},[3016],{"type":65,"value":96},{"type":60,"tag":105,"props":3018,"children":3019},{},[3020,3053],{"type":60,"tag":109,"props":3021,"children":3022},{},[3023,3025,3032,3033,3044,3045,3052],{"type":65,"value":3024},"doc: use docus theme (public release coming soon) powered by ",{"type":60,"tag":121,"props":3026,"children":3029},{"href":3027,"rel":3028},"https://content.nuxtjs.org/",[125],[3030],{"type":65,"value":3031},"nuxt content v2",{"type":65,"value":2121},{"type":60,"tag":121,"props":3034,"children":3037},{"href":3035,"rel":3036},"https://github.com/nuxt-community/supabase-module/commit/c24a16ff0bc94221adc021231a2206b6db8f293c",[125],[3038,3039],{"type":65,"value":2633},{"type":60,"tag":306,"props":3040,"children":3041},{"className":53},[3042],{"type":65,"value":3043},"c24a16f",{"type":65,"value":202},{"type":60,"tag":121,"props":3046,"children":3049},{"href":3047,"rel":3048},"https://github.com/nuxt-modules/supabase/issues/41",[125],[3050],{"type":65,"value":3051},"#41",{"type":65,"value":139},{"type":60,"tag":109,"props":3054,"children":3055},{},[3056,3058,3069,3070,3077],{"type":65,"value":3057},"feat: service role client to bypass RLS in ",{"type":60,"tag":121,"props":3059,"children":3062},{"href":3060,"rel":3061},"https://github.com/nuxt-community/supabase-module/commit/ba70a976be97acb3c438d59e45b789ee917bee6b",[125],[3063,3064],{"type":65,"value":2633},{"type":60,"tag":306,"props":3065,"children":3066},{"className":53},[3067],{"type":65,"value":3068},"ba70a97",{"type":65,"value":202},{"type":60,"tag":121,"props":3071,"children":3074},{"href":3072,"rel":3073},"https://github.com/nuxt-modules/supabase/issues/43",[125],[3075],{"type":65,"value":3076},"#43",{"type":65,"value":139},{"type":60,"tag":61,"props":3079,"children":3080},{},[3081,3083,3088],{"type":65,"value":3082},"Checkout the new ",{"type":60,"tag":121,"props":3084,"children":3086},{"href":696,"rel":3085},[125],[3087],{"type":65,"value":2228},{"type":65,"value":3089}," !",{"type":60,"tag":61,"props":3091,"children":3092},{},[3093,3097,3098],{"type":60,"tag":113,"props":3094,"children":3095},{},[3096],{"type":65,"value":442},{"type":65,"value":444},{"type":60,"tag":121,"props":3099,"children":3102},{"href":3100,"rel":3101},"https://github.com/nuxt-community/supabase-module/compare/v0.1.14...v0.1.16",[125],[3103],{"type":65,"value":3100},{"title":53,"searchDepth":72,"depth":72,"links":3105},[3106],{"id":93,"depth":72,"text":96},"https://github.com/nuxt-modules/supabase/releases/tag/v0.1.16","https://api.github.com/repos/nuxt-modules/supabase/tarball/v0.1.16","https://api.github.com/repos/nuxt-modules/supabase/zipball/v0.1.16",{"name":169,"url":170,"avatar":171},"github:v0.1.16.md",{"name":3113,"tag_name":3113,"date":3114,"body":3115,"v":167,"url":3219,"tarball":3220,"zipball":3221,"prerelease":54,"author":3222,"title":53,"description":53,"_type":74,"_id":3223},"v0.1.14","2022-05-13T16:48:40Z",{"type":57,"children":3116,"toc":3216},[3117,3121,3181,3202],{"type":60,"tag":91,"props":3118,"children":3119},{"id":93},[3120],{"type":65,"value":96},{"type":60,"tag":105,"props":3122,"children":3123},{},[3124,3140,3156],{"type":60,"tag":109,"props":3125,"children":3126},{},[3127,3129],{"type":65,"value":3128},"feat: add playground folder in ",{"type":60,"tag":121,"props":3130,"children":3133},{"href":3131,"rel":3132},"https://github.com/nuxt-community/supabase-module/commit/339cf31cf48d4059ba0e4470d6e5e2aa9ef184c7",[125],[3134,3135],{"type":65,"value":2633},{"type":60,"tag":306,"props":3136,"children":3137},{"className":53},[3138],{"type":65,"value":3139},"339cf31",{"type":60,"tag":109,"props":3141,"children":3142},{},[3143,3145],{"type":65,"value":3144},"fix: client options in ",{"type":60,"tag":121,"props":3146,"children":3149},{"href":3147,"rel":3148},"https://github.com/nuxt-community/supabase-module/commit/4c5595c11caf7a55621d297f6a0183a756175473",[125],[3150,3151],{"type":65,"value":2633},{"type":60,"tag":306,"props":3152,"children":3153},{"className":53},[3154],{"type":65,"value":3155},"4c5595c",{"type":60,"tag":109,"props":3157,"children":3158},{},[3159,3161,3172,3173,3180],{"type":65,"value":3160},"feat: add server routes services in ",{"type":60,"tag":121,"props":3162,"children":3165},{"href":3163,"rel":3164},"https://github.com/nuxt-community/supabase-module/commit/696d3e8d19b8db79c85e86b79a3ba4dd31bb2343",[125],[3166,3167],{"type":65,"value":2633},{"type":60,"tag":306,"props":3168,"children":3169},{"className":53},[3170],{"type":65,"value":3171},"696d3e8",{"type":65,"value":202},{"type":60,"tag":121,"props":3174,"children":3177},{"href":3175,"rel":3176},"https://github.com/nuxt-modules/supabase/issues/36",[125],[3178],{"type":65,"value":3179},"#36",{"type":65,"value":139},{"type":60,"tag":61,"props":3182,"children":3183},{},[3184,3186,3193,3195,3200],{"type":65,"value":3185},"You can check the ",{"type":60,"tag":121,"props":3187,"children":3190},{"href":3188,"rel":3189},"https://supabase.nuxtjs.org/usage#server-routes-services",[125],[3191],{"type":65,"value":3192},"documentation updated",{"type":65,"value":3194}," for the use of ",{"type":60,"tag":306,"props":3196,"children":3197},{"className":53},[3198],{"type":65,"value":3199},"services",{"type":65,"value":3201}," in server routes.",{"type":60,"tag":61,"props":3203,"children":3204},{},[3205,3209,3210],{"type":60,"tag":113,"props":3206,"children":3207},{},[3208],{"type":65,"value":442},{"type":65,"value":444},{"type":60,"tag":121,"props":3211,"children":3214},{"href":3212,"rel":3213},"https://github.com/nuxt-community/supabase-module/compare/v0.1.11...v0.1.14",[125],[3215],{"type":65,"value":3212},{"title":53,"searchDepth":72,"depth":72,"links":3217},[3218],{"id":93,"depth":72,"text":96},"https://github.com/nuxt-modules/supabase/releases/tag/v0.1.14","https://api.github.com/repos/nuxt-modules/supabase/tarball/v0.1.14","https://api.github.com/repos/nuxt-modules/supabase/zipball/v0.1.14",{"name":169,"url":170,"avatar":171},"github:v0.1.14.md",{"name":3225,"tag_name":3225,"date":3226,"body":3227,"v":167,"url":3253,"tarball":3254,"zipball":3255,"prerelease":54,"author":3256,"title":53,"description":53,"_type":74,"_id":3257},"v0.1.11","2022-05-06T08:51:02Z",{"type":57,"children":3228,"toc":3251},[3229,3237],{"type":60,"tag":105,"props":3230,"children":3231},{},[3232],{"type":60,"tag":109,"props":3233,"children":3234},{},[3235],{"type":65,"value":3236},"chore: upgrade deps",{"type":60,"tag":61,"props":3238,"children":3239},{},[3240,3244,3245],{"type":60,"tag":113,"props":3241,"children":3242},{},[3243],{"type":65,"value":442},{"type":65,"value":444},{"type":60,"tag":121,"props":3246,"children":3249},{"href":3247,"rel":3248},"https://github.com/nuxt-community/supabase-module/compare/v0.1.9...v0.1.11",[125],[3250],{"type":65,"value":3247},{"title":53,"searchDepth":72,"depth":72,"links":3252},[],"https://github.com/nuxt-modules/supabase/releases/tag/v0.1.11","https://api.github.com/repos/nuxt-modules/supabase/tarball/v0.1.11","https://api.github.com/repos/nuxt-modules/supabase/zipball/v0.1.11",{"name":169,"url":170,"avatar":171},"github:v0.1.11.md",{"name":3259,"tag_name":3259,"date":3260,"body":3261,"v":167,"url":3311,"tarball":3312,"zipball":3313,"prerelease":54,"author":3314,"title":53,"description":53,"_type":74,"_id":3318},"v0.1.9","2022-04-20T11:07:23Z",{"type":57,"children":3262,"toc":3309},[3263,3295],{"type":60,"tag":105,"props":3264,"children":3265},{},[3266],{"type":60,"tag":109,"props":3267,"children":3268},{},[3269,3271,3276,3277,3282,3283,3294],{"type":65,"value":3270},"fix: use ",{"type":60,"tag":306,"props":3272,"children":3273},{"className":53},[3274],{"type":65,"value":3275},"#imports",{"type":65,"value":1839},{"type":60,"tag":306,"props":3278,"children":3279},{"className":53},[3280],{"type":65,"value":3281},"#nitro",{"type":65,"value":202},{"type":60,"tag":121,"props":3284,"children":3287},{"href":3285,"rel":3286},"https://github.com/nuxt-community/supabase-module/commit/42af598b7d9f3adf2c577c20e9cfb68bbb17d52b",[125],[3288,3289],{"type":65,"value":2633},{"type":60,"tag":306,"props":3290,"children":3291},{"className":53},[3292],{"type":65,"value":3293},"42af598",{"type":65,"value":139},{"type":60,"tag":61,"props":3296,"children":3297},{},[3298,3302,3303],{"type":60,"tag":113,"props":3299,"children":3300},{},[3301],{"type":65,"value":442},{"type":65,"value":444},{"type":60,"tag":121,"props":3304,"children":3307},{"href":3305,"rel":3306},"https://github.com/nuxt-community/supabase-module/compare/v0.1.8...v0.1.9",[125],[3308],{"type":65,"value":3305},{"title":53,"searchDepth":72,"depth":72,"links":3310},[],"https://github.com/nuxt-modules/supabase/releases/tag/v0.1.9","https://api.github.com/repos/nuxt-modules/supabase/tarball/v0.1.9","https://api.github.com/repos/nuxt-modules/supabase/zipball/v0.1.9",{"name":3315,"url":3316,"avatar":3317},"Atinux","https://github.com/Atinux","https://avatars.githubusercontent.com/u/904724?v=4","github:v0.1.9.md",{"name":3320,"tag_name":3320,"date":3321,"body":3322,"v":167,"url":3376,"tarball":3377,"zipball":3378,"prerelease":54,"author":3379,"title":53,"description":53,"_type":74,"_id":3380},"v0.1.8","2022-04-13T12:26:33Z",{"type":57,"children":3323,"toc":3373},[3324,3328],{"type":60,"tag":91,"props":3325,"children":3326},{"id":93},[3327],{"type":65,"value":96},{"type":60,"tag":105,"props":3329,"children":3330},{},[3331,3347],{"type":60,"tag":109,"props":3332,"children":3333},{},[3334,3336],{"type":65,"value":3335},"fix: update runtime config fetch and override in ",{"type":60,"tag":121,"props":3337,"children":3340},{"href":3338,"rel":3339},"https://github.com/nuxt-community/supabase-module/commit/260ebc7be39dfa65902ad4fe6a49639c99a69da8",[125],[3341,3342],{"type":65,"value":2633},{"type":60,"tag":306,"props":3343,"children":3344},{"className":53},[3345],{"type":65,"value":3346},"260ebc7",{"type":60,"tag":109,"props":3348,"children":3349},{},[3350,3352,3363,3365,3372],{"type":65,"value":3351},"feat: handle session with defineEventHandler in ",{"type":60,"tag":121,"props":3353,"children":3356},{"href":3354,"rel":3355},"https://github.com/nuxt-community/supabase-module/commit/e646b1ce03773bf44932824726f280ad15455ec2",[125],[3357,3358],{"type":65,"value":2633},{"type":60,"tag":306,"props":3359,"children":3360},{"className":53},[3361],{"type":65,"value":3362},"e646b1c",{"type":65,"value":3364}," (Check ",{"type":60,"tag":121,"props":3366,"children":3369},{"href":3367,"rel":3368},"https://v3.nuxtjs.org/guide/features/server-routes",[125],[3370],{"type":65,"value":3371},"Nuxt doc",{"type":65,"value":139},{"title":53,"searchDepth":72,"depth":72,"links":3374},[3375],{"id":93,"depth":72,"text":96},"https://github.com/nuxt-modules/supabase/releases/tag/v0.1.8","https://api.github.com/repos/nuxt-modules/supabase/tarball/v0.1.8","https://api.github.com/repos/nuxt-modules/supabase/zipball/v0.1.8",{"name":169,"url":170,"avatar":171},"github:v0.1.8.md",{"name":3382,"tag_name":3382,"date":3383,"body":3384,"v":167,"url":3461,"tarball":3462,"zipball":3463,"prerelease":54,"reactions":3464,"author":3466,"title":53,"description":53,"_type":74,"_id":3467},"v0.1.7","2022-04-07T21:31:24Z",{"type":57,"children":3385,"toc":3457},[3386,3390,3432,3436],{"type":60,"tag":91,"props":3387,"children":3388},{"id":93},[3389],{"type":65,"value":96},{"type":60,"tag":105,"props":3391,"children":3392},{},[3393,3409],{"type":60,"tag":109,"props":3394,"children":3395},{},[3396,3398],{"type":65,"value":3397},"fix: assert method and use correct key for server middleware in ",{"type":60,"tag":121,"props":3399,"children":3402},{"href":3400,"rel":3401},"https://github.com/nuxt-community/supabase-module/commit/8a4d63101e6d2bc24563f7944988909ec7dcc6e5",[125],[3403,3404],{"type":65,"value":2633},{"type":60,"tag":306,"props":3405,"children":3406},{"className":53},[3407],{"type":65,"value":3408},"8a4d631",{"type":60,"tag":109,"props":3410,"children":3411},{},[3412,3414,3424,3425],{"type":65,"value":3413},"fix: replace #config with #nitro by ",{"type":60,"tag":121,"props":3415,"children":3418},{"href":3416,"rel":3417},"https://github.com/psto",[125],[3419],{"type":60,"tag":113,"props":3420,"children":3421},{},[3422],{"type":65,"value":3423},"@psto",{"type":65,"value":2121},{"type":60,"tag":121,"props":3426,"children":3429},{"href":3427,"rel":3428},"https://github.com/nuxt-community/supabase-module/pull/23",[125],[3430],{"type":65,"value":3431},"nuxt-community/supabase-module#23",{"type":60,"tag":91,"props":3433,"children":3434},{"id":2724},[3435],{"type":65,"value":2727},{"type":60,"tag":105,"props":3437,"children":3438},{},[3439],{"type":60,"tag":109,"props":3440,"children":3441},{},[3442,3450,3452],{"type":60,"tag":121,"props":3443,"children":3445},{"href":3416,"rel":3444},[125],[3446],{"type":60,"tag":113,"props":3447,"children":3448},{},[3449],{"type":65,"value":3423},{"type":65,"value":3451}," made their first contribution in ",{"type":60,"tag":121,"props":3453,"children":3455},{"href":3427,"rel":3454},[125],[3456],{"type":65,"value":3431},{"title":53,"searchDepth":72,"depth":72,"links":3458},[3459,3460],{"id":93,"depth":72,"text":96},{"id":2724,"depth":72,"text":2727},"https://github.com/nuxt-modules/supabase/releases/tag/v0.1.7","https://api.github.com/repos/nuxt-modules/supabase/tarball/v0.1.7","https://api.github.com/repos/nuxt-modules/supabase/zipball/v0.1.7",{"url":3465,"total_count":160,"+1":167,"-1":167,"laugh":167,"hooray":160,"confused":167,"heart":167,"rocket":167,"eyes":167},"https://api.github.com/repos/nuxt-modules/supabase/releases/63922233/reactions",{"name":3315,"url":3316,"avatar":3317},"github:v0.1.7.md",{"name":3469,"tag_name":3469,"date":3470,"body":3471,"v":167,"url":3518,"tarball":3519,"zipball":3520,"prerelease":54,"reactions":3521,"author":3524,"title":53,"description":53,"_type":74,"_id":3525},"v0.1.5","2022-04-04T10:15:21Z",{"type":57,"children":3472,"toc":3515},[3473,3477,3501],{"type":60,"tag":98,"props":3474,"children":3475},{"id":100},[3476],{"type":65,"value":103},{"type":60,"tag":105,"props":3478,"children":3479},{},[3480],{"type":60,"tag":109,"props":3481,"children":3482},{},[3483,3485,3492,3494],{"type":65,"value":3484},"remove lodash.clonedeep (",{"type":60,"tag":121,"props":3486,"children":3489},{"href":3487,"rel":3488},"https://github.com/nuxt-community/supabase-module/commit/b5c5c60358ab192b98c8a63185f58a2eb0ab706a",[125],[3490],{"type":65,"value":3491},"b5c5c60",{"type":65,"value":3493},"), resolved ",{"type":60,"tag":121,"props":3495,"children":3498},{"href":3496,"rel":3497},"https://github.com/nuxt-modules/supabase/issues/21",[125],[3499],{"type":65,"value":3500},"#21",{"type":60,"tag":61,"props":3502,"children":3503},{},[3504,3508,3509],{"type":60,"tag":113,"props":3505,"children":3506},{},[3507],{"type":65,"value":442},{"type":65,"value":444},{"type":60,"tag":121,"props":3510,"children":3513},{"href":3511,"rel":3512},"https://github.com/nuxt-community/supabase-module/compare/v0.1.4...v0.1.5",[125],[3514],{"type":65,"value":3511},{"title":53,"searchDepth":72,"depth":72,"links":3516},[3517],{"id":100,"depth":160,"text":103},"https://github.com/nuxt-modules/supabase/releases/tag/v0.1.5","https://api.github.com/repos/nuxt-modules/supabase/tarball/v0.1.5","https://api.github.com/repos/nuxt-modules/supabase/zipball/v0.1.5",{"url":3522,"total_count":3523,"+1":167,"-1":167,"laugh":167,"hooray":279,"confused":167,"heart":72,"rocket":167,"eyes":167},"https://api.github.com/repos/nuxt-modules/supabase/releases/63507078/reactions",6,{"name":3315,"url":3316,"avatar":3317},"github:v0.1.5.md",1703671431802] \ No newline at end of file +[{"data":1,"prerenderedAt":3526},["Reactive",2],{"navigation":3,"/changelog":52,"/changelog-surround":79,"releases":84},[4,8,12,40,44,48],{"title":5,"_path":6,"icon":7},"Get Started","/get-started","heroicons:rocket-launch",{"title":9,"_path":10,"icon":11},"Authentication","/authentication","heroicons:lock-closed",{"title":13,"_path":14,"children":15,"icon":39},"Usage","/usage",[16,26],{"title":17,"_path":18,"children":19},"Vue composables","/usage/composables",[20,23],{"title":21,"_path":22},"useSupabaseClient","/usage/composables/usesupabaseclient",{"title":24,"_path":25},"useSupabaseUser","/usage/composables/usesupabaseuser",{"title":27,"_path":28,"children":29},"Server services","/usage/services",[30,33,36],{"title":31,"_path":32},"serverSupabaseClient","/usage/services/serversupabaseclient",{"title":34,"_path":35},"serverSupabaseServiceRole","/usage/services/serversupabaseservicerole",{"title":37,"_path":38},"serverSupabaseUser","/usage/services/serversupabaseuser","heroicons:book-open",{"title":41,"_path":42,"icon":43},"Demo","/demo","heroicons:computer-desktop-20-solid",{"title":45,"_path":46,"icon":47},"Changelog","/changelog","heroicons:bookmark",{"title":49,"_path":50,"icon":51},"Roadmap","/roadmap","heroicons:map",{"_path":46,"_dir":53,"_draft":54,"_partial":54,"_locale":53,"title":45,"description":55,"icon":47,"body":56,"_type":74,"_id":75,"_source":76,"_file":77,"_extension":78},"",false,"Discover the latest updates of the Supabase Module",{"type":57,"children":58,"toc":71},"root",[59,67],{"type":60,"tag":61,"props":62,"children":63},"element","p",{},[64],{"type":65,"value":66},"text","Discover the lastest updates.",{"type":60,"tag":68,"props":69,"children":70},"releases",{},[],{"title":53,"searchDepth":72,"depth":72,"links":73},2,[],"markdown","content:6.changelog.md","content","6.changelog.md","md",[80,82],{"_path":42,"title":41,"description":81},"Demonstration of using Supabase with Nuxt.",{"_path":50,"title":49,"description":83},"Discover our kaban board for the next release of the Supabase module.",[85,173,282,519,610,902,1003,1079,1144,1432,1694,1765,1891,1936,1995,2046,2191,2290,2353,2404,2449,2501,2610,2684,2762,2825,2908,3008,3112,3224,3258,3319,3381,3468],{"name":86,"tag_name":86,"date":87,"body":88,"v":161,"url":162,"tarball":163,"zipball":164,"prerelease":54,"reactions":165,"author":168,"title":53,"description":53,"_type":74,"_id":172},"v1.1.4","2023-11-17T14:42:47Z",{"type":57,"children":89,"toc":155},[90,97,104,140],{"type":60,"tag":91,"props":92,"children":94},"h2",{"id":93},"whats-changed",[95],{"type":65,"value":96},"What's Changed",{"type":60,"tag":98,"props":99,"children":101},"h3",{"id":100},"bug-fixes",[102],{"type":65,"value":103},"Bug Fixes",{"type":60,"tag":105,"props":106,"children":107},"ul",{},[108],{"type":60,"tag":109,"props":110,"children":111},"li",{},[112,118,120,129,131,138],{"type":60,"tag":113,"props":114,"children":115},"strong",{},[116],{"type":65,"value":117},"client:",{"type":65,"value":119}," prevent useCookie usage outside of effect scope (",{"type":60,"tag":121,"props":122,"children":126},"a",{"href":123,"rel":124},"https://github.com/nuxt-community/supabase-module/issues/309",[125],"nofollow",[127],{"type":65,"value":128},"#309",{"type":65,"value":130},") (",{"type":60,"tag":121,"props":132,"children":135},{"href":133,"rel":134},"https://github.com/nuxt-community/supabase-module/commit/bb55bed870efb68c39f255ddbcbe0b5446965399",[125],[136],{"type":65,"value":137},"bb55bed",{"type":65,"value":139},")",{"type":60,"tag":61,"props":141,"children":142},{},[143,145],{"type":65,"value":144},"💚 Thanks for the help from 💚\r\n",{"type":60,"tag":121,"props":146,"children":149},{"href":147,"rel":148},"https://github.com/AlbertBrand",[125],[150],{"type":60,"tag":113,"props":151,"children":152},{},[153],{"type":65,"value":154},"@AlbertBrand",{"title":53,"searchDepth":72,"depth":72,"links":156},[157],{"id":93,"depth":72,"text":96,"children":158},[159],{"id":100,"depth":160,"text":103},3,1,"https://github.com/nuxt-modules/supabase/releases/tag/v1.1.4","https://api.github.com/repos/nuxt-modules/supabase/tarball/v1.1.4","https://api.github.com/repos/nuxt-modules/supabase/zipball/v1.1.4",{"url":166,"total_count":161,"+1":161,"-1":167,"laugh":167,"hooray":167,"confused":167,"heart":167,"rocket":167,"eyes":167},"https://api.github.com/repos/nuxt-modules/supabase/releases/129966845/reactions",0,{"name":169,"url":170,"avatar":171},"larbish","https://github.com/larbish","https://avatars.githubusercontent.com/u/7290030?v=4","github:v1.1.4.md",{"name":174,"tag_name":174,"date":175,"body":176,"v":161,"url":274,"tarball":275,"zipball":276,"prerelease":54,"reactions":277,"author":280,"title":53,"description":53,"_type":74,"_id":281},"v1.1.3","2023-10-06T07:51:37Z",{"type":57,"children":177,"toc":271},[178,182,245],{"type":60,"tag":91,"props":179,"children":180},{"id":93},[181],{"type":65,"value":96},{"type":60,"tag":105,"props":183,"children":184},{},[185,219],{"type":60,"tag":109,"props":186,"children":187},{},[188,192,194,201,203,210,211,218],{"type":60,"tag":113,"props":189,"children":190},{},[191],{"type":65,"value":117},{"type":65,"value":193}," clientOptions merge",{"type":60,"tag":121,"props":195,"children":198},{"href":196,"rel":197},"https://github.com/nuxt-community/supabase-module/issues/275",[125],[199],{"type":65,"value":200},"#275",{"type":65,"value":202}," (",{"type":60,"tag":121,"props":204,"children":207},{"href":205,"rel":206},"https://github.com/nuxt-community/supabase-module/issues/277",[125],[208],{"type":65,"value":209},"#277",{"type":65,"value":130},{"type":60,"tag":121,"props":212,"children":215},{"href":213,"rel":214},"https://github.com/nuxt-community/supabase-module/commit/c0097a355b859cb6a2d97884a7648284128acca2",[125],[216],{"type":65,"value":217},"c0097a3",{"type":65,"value":139},{"type":60,"tag":109,"props":220,"children":221},{},[222,227,229,236,237,244],{"type":60,"tag":113,"props":223,"children":224},{},[225],{"type":65,"value":226},"module:",{"type":65,"value":228}," do not warn when using runtimeConfig to set url and key (",{"type":60,"tag":121,"props":230,"children":233},{"href":231,"rel":232},"https://github.com/nuxt-community/supabase-module/issues/281",[125],[234],{"type":65,"value":235},"#281",{"type":65,"value":130},{"type":60,"tag":121,"props":238,"children":241},{"href":239,"rel":240},"https://github.com/nuxt-community/supabase-module/commit/8c151737b55738c68fc24b5e4db2517c4e866693",[125],[242],{"type":65,"value":243},"8c15173",{"type":65,"value":139},{"type":60,"tag":61,"props":246,"children":247},{},[248,249,259,261],{"type":65,"value":144},{"type":60,"tag":121,"props":250,"children":253},{"href":251,"rel":252},"https://github.com/stafyniaksacha",[125],[254],{"type":60,"tag":113,"props":255,"children":256},{},[257],{"type":65,"value":258},"@stafyniaksacha",{"type":65,"value":260},"\r\n",{"type":60,"tag":121,"props":262,"children":265},{"href":263,"rel":264},"https://github.com/jonesisg1",[125],[266],{"type":60,"tag":113,"props":267,"children":268},{},[269],{"type":65,"value":270},"@jonesisg1",{"title":53,"searchDepth":72,"depth":72,"links":272},[273],{"id":93,"depth":72,"text":96},"https://github.com/nuxt-modules/supabase/releases/tag/v1.1.3","https://api.github.com/repos/nuxt-modules/supabase/tarball/v1.1.3","https://api.github.com/repos/nuxt-modules/supabase/zipball/v1.1.3",{"url":278,"total_count":279,"+1":72,"-1":167,"laugh":167,"hooray":72,"confused":167,"heart":167,"rocket":167,"eyes":167},"https://api.github.com/repos/nuxt-modules/supabase/releases/123992311/reactions",4,{"name":169,"url":170,"avatar":171},"github:v1.1.3.md",{"name":283,"tag_name":283,"date":284,"body":285,"v":161,"url":512,"tarball":513,"zipball":514,"prerelease":54,"reactions":515,"author":517,"title":53,"description":53,"_type":74,"_id":518},"v1.1.2","2023-09-06T17:44:35Z",{"type":57,"children":286,"toc":507},[287,291,313,353,357,435,451],{"type":60,"tag":91,"props":288,"children":289},{"id":93},[290],{"type":65,"value":96},{"type":60,"tag":61,"props":292,"children":293},{},[294,296,303,305,311],{"type":65,"value":295},"⚠️ BREAKING CHANGE ⚠️\r\nBreaking change is related to ",{"type":60,"tag":121,"props":297,"children":300},{"href":298,"rel":299},"https://github.com/nuxt-modules/supabase/issues/244",[125],[301],{"type":65,"value":302},"#244",{"type":65,"value":304}," and was first adressed in the ",{"type":60,"tag":306,"props":307,"children":308},"code",{"className":53},[309],{"type":65,"value":310},"v1.1.0",{"type":65,"value":312}," but patch has been necessary to fix the version.",{"type":60,"tag":61,"props":314,"children":315},{},[316,318,323,325,330,332,337,339,345,347],{"type":65,"value":317},"On the confirm page, configured in ",{"type":60,"tag":306,"props":319,"children":320},{"className":53},[321],{"type":65,"value":322},"redirect.callback",{"type":65,"value":324}," option (default to ",{"type":60,"tag":306,"props":326,"children":327},{"className":53},[328],{"type":65,"value":329},"/confirm",{"type":65,"value":331},"), ensure to set the ",{"type":60,"tag":306,"props":333,"children":334},{"className":53},[335],{"type":65,"value":336},"immediate",{"type":65,"value":338}," option in the watch.\r\nCheck out the doc: ",{"type":60,"tag":121,"props":340,"children":343},{"href":341,"rel":342},"http://supabase.nuxtjs.org/authentication#confirm-page-confirm",[125],[344],{"type":65,"value":341},{"type":65,"value":346},"\r\nCheck out the demo code: ",{"type":60,"tag":121,"props":348,"children":351},{"href":349,"rel":350},"https://github.com/nuxt-modules/supabase/blob/main/demo/pages/confirm.vue",[125],[352],{"type":65,"value":349},{"type":60,"tag":98,"props":354,"children":355},{"id":100},[356],{"type":65,"value":103},{"type":60,"tag":105,"props":358,"children":359},{},[360,385,409],{"type":60,"tag":109,"props":361,"children":362},{},[363,367,369,376,377,384],{"type":60,"tag":113,"props":364,"children":365},{},[366],{"type":65,"value":226},{"type":65,"value":368}," priority of redirect options made by defu (",{"type":60,"tag":121,"props":370,"children":373},{"href":371,"rel":372},"https://github.com/nuxt-community/supabase-module/issues/256",[125],[374],{"type":65,"value":375},"#256",{"type":65,"value":130},{"type":60,"tag":121,"props":378,"children":381},{"href":379,"rel":380},"https://github.com/nuxt-community/supabase-module/commit/c4e30bf50eb7816fee3a2e46b404df5ce9f7cf4d",[125],[382],{"type":65,"value":383},"c4e30bf",{"type":65,"value":139},{"type":60,"tag":109,"props":386,"children":387},{},[388,393,395,400,401,408],{"type":60,"tag":113,"props":389,"children":390},{},[391],{"type":65,"value":392},"plugin:",{"type":65,"value":394}," retrieve user for client only page (",{"type":60,"tag":121,"props":396,"children":398},{"href":298,"rel":397},[125],[399],{"type":65,"value":302},{"type":65,"value":130},{"type":60,"tag":121,"props":402,"children":405},{"href":403,"rel":404},"https://github.com/nuxt-community/supabase-module/commit/4a35428e26542bf22b3288db6e9a9309f1310705",[125],[406],{"type":65,"value":407},"4a35428",{"type":65,"value":139},{"type":60,"tag":109,"props":410,"children":411},{},[412,417,419,426,427,434],{"type":60,"tag":113,"props":413,"children":414},{},[415],{"type":65,"value":416},"useSupabaseUser:",{"type":65,"value":418}," add explicit user type (",{"type":60,"tag":121,"props":420,"children":423},{"href":421,"rel":422},"https://github.com/nuxt-community/supabase-module/issues/254",[125],[424],{"type":65,"value":425},"#254",{"type":65,"value":130},{"type":60,"tag":121,"props":428,"children":431},{"href":429,"rel":430},"https://github.com/nuxt-community/supabase-module/commit/60d8551ee83a9c64a962b9f76b881b17d7384736",[125],[432],{"type":65,"value":433},"60d8551",{"type":65,"value":139},{"type":60,"tag":61,"props":436,"children":437},{},[438,443,445],{"type":60,"tag":113,"props":439,"children":440},{},[441],{"type":65,"value":442},"Full Changelog",{"type":65,"value":444},": ",{"type":60,"tag":121,"props":446,"children":449},{"href":447,"rel":448},"https://github.com/nuxt-community/supabase-module/compare/v1.0.2...v1.1.0",[125],[450],{"type":65,"value":447},{"type":60,"tag":61,"props":452,"children":453},{},[454,455,465,466,476,477,485,486,496,497],{"type":65,"value":144},{"type":60,"tag":121,"props":456,"children":459},{"href":457,"rel":458},"https://github.com/52cs",[125],[460],{"type":60,"tag":113,"props":461,"children":462},{},[463],{"type":65,"value":464},"@52cs",{"type":65,"value":260},{"type":60,"tag":121,"props":467,"children":470},{"href":468,"rel":469},"https://github.com/Aietes",[125],[471],{"type":60,"tag":113,"props":472,"children":473},{},[474],{"type":65,"value":475},"@Aietes",{"type":65,"value":260},{"type":60,"tag":121,"props":478,"children":480},{"href":147,"rel":479},[125],[481],{"type":60,"tag":113,"props":482,"children":483},{},[484],{"type":65,"value":154},{"type":65,"value":260},{"type":60,"tag":121,"props":487,"children":490},{"href":488,"rel":489},"https://github.com/kiri10ten",[125],[491],{"type":60,"tag":113,"props":492,"children":493},{},[494],{"type":65,"value":495},"@kiri10ten",{"type":65,"value":260},{"type":60,"tag":121,"props":498,"children":501},{"href":499,"rel":500},"https://github.com/xMorthi",[125],[502],{"type":60,"tag":113,"props":503,"children":504},{},[505],{"type":65,"value":506},"@xMorthi",{"title":53,"searchDepth":72,"depth":72,"links":508},[509],{"id":93,"depth":72,"text":96,"children":510},[511],{"id":100,"depth":160,"text":103},"https://github.com/nuxt-modules/supabase/releases/tag/v1.1.2","https://api.github.com/repos/nuxt-modules/supabase/tarball/v1.1.2","https://api.github.com/repos/nuxt-modules/supabase/zipball/v1.1.2",{"url":516,"total_count":279,"+1":167,"-1":167,"laugh":167,"hooray":160,"confused":167,"heart":167,"rocket":167,"eyes":161},"https://api.github.com/repos/nuxt-modules/supabase/releases/120162649/reactions",{"name":169,"url":170,"avatar":171},"github:v1.1.2.md",{"name":520,"tag_name":520,"date":521,"body":522,"v":161,"url":603,"tarball":604,"zipball":605,"prerelease":54,"reactions":606,"author":608,"title":53,"description":53,"_type":74,"_id":609},"v1.0.2","2023-08-04T15:56:13Z",{"type":57,"children":523,"toc":600},[524,528,563,577],{"type":60,"tag":91,"props":525,"children":526},{"id":93},[527],{"type":65,"value":96},{"type":60,"tag":105,"props":529,"children":530},{},[531,547],{"type":60,"tag":109,"props":532,"children":533},{},[534,536,546],{"type":65,"value":535},"docs(auth): update (",{"type":60,"tag":121,"props":537,"children":540},{"href":538,"rel":539},"https://github.com/nuxt-modules/supabase/commit/df00ffe8ecc253fc23572b65465ad7928e185b13",[125],[541],{"type":60,"tag":306,"props":542,"children":543},{"className":53},[544],{"type":65,"value":545},"df00ffe",{"type":65,"value":139},{"type":60,"tag":109,"props":548,"children":549},{},[550,552,562],{"type":65,"value":551},"fix(client): correct provider_token assignment to cookie (",{"type":60,"tag":121,"props":553,"children":556},{"href":554,"rel":555},"https://github.com/nuxt-modules/supabase/commit/a76df3f67d6b08daf359f38130ce08aeab57317b",[125],[557],{"type":60,"tag":306,"props":558,"children":559},{"className":53},[560],{"type":65,"value":561},"a76df3f",{"type":65,"value":139},{"type":60,"tag":61,"props":564,"children":565},{},[566,570,571],{"type":60,"tag":113,"props":567,"children":568},{},[569],{"type":65,"value":442},{"type":65,"value":444},{"type":60,"tag":121,"props":572,"children":575},{"href":573,"rel":574},"https://github.com/nuxt-community/supabase-module/compare/v1.0.1...v1.0.2",[125],[576],{"type":65,"value":573},{"type":60,"tag":61,"props":578,"children":579},{},[580,581,591,592],{"type":65,"value":144},{"type":60,"tag":121,"props":582,"children":585},{"href":583,"rel":584},"https://github.com/blqke",[125],[586],{"type":60,"tag":113,"props":587,"children":588},{},[589],{"type":65,"value":590},"@blqke",{"type":65,"value":260},{"type":60,"tag":121,"props":593,"children":595},{"href":468,"rel":594},[125],[596],{"type":60,"tag":113,"props":597,"children":598},{},[599],{"type":65,"value":475},{"title":53,"searchDepth":72,"depth":72,"links":601},[602],{"id":93,"depth":72,"text":96},"https://github.com/nuxt-modules/supabase/releases/tag/v1.0.2","https://api.github.com/repos/nuxt-modules/supabase/tarball/v1.0.2","https://api.github.com/repos/nuxt-modules/supabase/zipball/v1.0.2",{"url":607,"total_count":160,"+1":167,"-1":167,"laugh":167,"hooray":160,"confused":167,"heart":167,"rocket":167,"eyes":167},"https://api.github.com/repos/nuxt-modules/supabase/releases/115135546/reactions",{"name":169,"url":170,"avatar":171},"github:v1.0.2.md",{"name":611,"tag_name":611,"date":612,"body":613,"v":161,"url":890,"tarball":891,"zipball":892,"prerelease":54,"reactions":893,"author":899,"title":53,"description":900,"_type":74,"_id":901},"v1.0.1","2023-08-02T15:46:15Z",{"type":57,"children":614,"toc":887},[615,627,632,700,705,726,730,735,854,869,872],{"type":60,"tag":61,"props":616,"children":617},{},[618,620,625],{"type":65,"value":619},"I am happy to announce the release of version ",{"type":60,"tag":306,"props":621,"children":622},{"className":53},[623],{"type":65,"value":624},"1.0.0",{"type":65,"value":626}," of this module. While the module has been production-ready for quite some time, I never had the opportunity to create the first major version until now. Given that this version incorporates significant changes, I believe it is the perfect moment to establish this initial major release.",{"type":60,"tag":91,"props":628,"children":629},{"id":93},[630],{"type":65,"value":631},"What's changed",{"type":60,"tag":105,"props":633,"children":634},{},[635,657,662],{"type":60,"tag":109,"props":636,"children":637},{},[638,640,647,649,656],{"type":65,"value":639},"Supabase introduced a new authentication flow (PKCE) a few months ago, which is now the default behavior of the module. However, you can still revert to the old (and less secure) authentication method through the module configuration. To help you seamlessly integrate this new flow, a ",{"type":60,"tag":121,"props":641,"children":644},{"href":642,"rel":643},"https://supabase.nuxtjs.org/authentication",[125],[645],{"type":65,"value":646},"dedicated section",{"type":65,"value":648}," has been added to the documentation. (",{"type":60,"tag":121,"props":650,"children":653},{"href":651,"rel":652},"https://github.com/nuxt-modules/supabase/issues/219",[125],[654],{"type":65,"value":655},"#219",{"type":65,"value":139},{"type":60,"tag":109,"props":658,"children":659},{},[660],{"type":65,"value":661},"Building upon the previous point, we have implemented substantial changes to the session management, involving alterations to how Supabase clients are instantiated and how sessions are synchronized between the server and client-side. Consequently, these changes result in some breaking changes, which are listed below.",{"type":60,"tag":109,"props":663,"children":664},{},[665,667,674,676,683,685,692,694],{"type":65,"value":666},"A brand new documentation has been built entirely using ",{"type":60,"tag":121,"props":668,"children":671},{"href":669,"rel":670},"https://nuxt.studio",[125],[672],{"type":65,"value":673},"Nuxt Studio",{"type":65,"value":675},". Feel free to create PRs to suggest fixes or add any necessary changes to further enhance the documentation. (",{"type":60,"tag":121,"props":677,"children":680},{"href":678,"rel":679},"https://github.com/nuxt-modules/supabase/issues/210",[125],[681],{"type":65,"value":682},"#210",{"type":65,"value":684}," / ",{"type":60,"tag":121,"props":686,"children":689},{"href":687,"rel":688},"https://github.com/nuxt-modules/supabase/issues/221",[125],[690],{"type":65,"value":691},"#221",{"type":65,"value":693},") => ",{"type":60,"tag":121,"props":695,"children":698},{"href":696,"rel":697},"https://supabase.nuxtjs.org",[125],[699],{"type":65,"value":696},{"type":60,"tag":61,"props":701,"children":702},{},[703],{"type":65,"value":704},"Here's documentation that can help you understand the PKCE authentication flow:",{"type":60,"tag":105,"props":706,"children":707},{},[708,717],{"type":60,"tag":109,"props":709,"children":710},{},[711],{"type":60,"tag":121,"props":712,"children":715},{"href":713,"rel":714},"https://supabase.com/blog/supabase-auth-sso-pkce#server-side-and-mobile-auth",[125],[716],{"type":65,"value":713},{"type":60,"tag":109,"props":718,"children":719},{},[720],{"type":60,"tag":121,"props":721,"children":724},{"href":722,"rel":723},"https://supabase.com/docs/guides/resources/glossary#pkce",[125],[725],{"type":65,"value":722},{"type":60,"tag":727,"props":728,"children":729},"br",{},[],{"type":60,"tag":61,"props":731,"children":732},{},[733],{"type":65,"value":734},"⚠️ BREAKING CHANGES ⚠️",{"type":60,"tag":105,"props":736,"children":737},{},[738,754,777,795,821],{"type":60,"tag":109,"props":739,"children":740},{},[741,746,748,752],{"type":60,"tag":306,"props":742,"children":743},{"className":53},[744],{"type":65,"value":745},"useSupabaseAuthClient",{"type":65,"value":747}," has been removed in favor of ",{"type":60,"tag":306,"props":749,"children":750},{"className":53},[751],{"type":65,"value":21},{"type":65,"value":753}," in all cases",{"type":60,"tag":109,"props":755,"children":756},{},[757,761,763,768,770,775],{"type":60,"tag":306,"props":758,"children":759},{"className":53},[760],{"type":65,"value":31},{"type":65,"value":762}," is now returning a promise (should be called with ",{"type":60,"tag":306,"props":764,"children":765},{"className":53},[766],{"type":65,"value":767},"await",{"type":65,"value":769}," in an ",{"type":60,"tag":306,"props":771,"children":772},{"className":53},[773],{"type":65,"value":774},"async",{"type":65,"value":776}," method)",{"type":60,"tag":109,"props":778,"children":779},{},[780,785,787,793],{"type":60,"tag":306,"props":781,"children":782},{"className":53},[783],{"type":65,"value":784},"redirect",{"type":65,"value":786}," option is enable by default, follow this ",{"type":60,"tag":121,"props":788,"children":790},{"href":642,"rel":789},[125],[791],{"type":65,"value":792},"guide",{"type":65,"value":794}," to update your app",{"type":60,"tag":109,"props":796,"children":797},{},[798,803,805,810,812,819],{"type":60,"tag":306,"props":799,"children":800},{"className":53},[801],{"type":65,"value":802},"client",{"type":65,"value":804}," option becomes ",{"type":60,"tag":306,"props":806,"children":807},{"className":53},[808],{"type":65,"value":809},"clientOptions",{"type":65,"value":811}," with new ",{"type":60,"tag":121,"props":813,"children":816},{"href":814,"rel":815},"https://supabase.nuxtjs.org/get-started#clientoptions",[125],[817],{"type":65,"value":818},"default value",{"type":65,"value":820}," (including the PKCE flow)",{"type":60,"tag":109,"props":822,"children":823},{},[824,829,831,836,838,843,845,852],{"type":60,"tag":306,"props":825,"children":826},{"className":53},[827],{"type":65,"value":828},"cookies",{"type":65,"value":830}," options is split in ",{"type":60,"tag":306,"props":832,"children":833},{"className":53},[834],{"type":65,"value":835},"cookieName",{"type":65,"value":837}," and ",{"type":60,"tag":306,"props":839,"children":840},{"className":53},[841],{"type":65,"value":842},"cookieOptions",{"type":65,"value":844},", ",{"type":60,"tag":121,"props":846,"children":849},{"href":847,"rel":848},"https://supabase.nuxtjs.org/get-started#cookieoptions",[125],[850],{"type":65,"value":851},"default values",{"type":65,"value":853}," have not changed",{"type":60,"tag":61,"props":855,"children":856},{},[857,859],{"type":65,"value":858},"Here si the commit done for updating the demo with the last version: ",{"type":60,"tag":121,"props":860,"children":863},{"href":861,"rel":862},"https://github.com/nuxt-modules/supabase/commit/10e05860862b68c49817f6420d50d082452f7a7f",[125],[864],{"type":60,"tag":306,"props":865,"children":866},{"className":53},[867],{"type":65,"value":868},"10e0586",{"type":60,"tag":727,"props":870,"children":871},{},[],{"type":60,"tag":61,"props":873,"children":874},{},[875,877,885],{"type":65,"value":876},"A huge thanks to ",{"type":60,"tag":121,"props":878,"children":880},{"href":468,"rel":879},[125],[881],{"type":60,"tag":113,"props":882,"children":883},{},[884],{"type":65,"value":475},{"type":65,"value":886}," for initialising all those changes and help me built it 💚",{"title":53,"searchDepth":72,"depth":72,"links":888},[889],{"id":93,"depth":72,"text":631},"https://github.com/nuxt-modules/supabase/releases/tag/v1.0.1","https://api.github.com/repos/nuxt-modules/supabase/tarball/v1.0.1","https://api.github.com/repos/nuxt-modules/supabase/zipball/v1.0.1",{"url":894,"total_count":895,"+1":896,"-1":167,"laugh":167,"hooray":897,"confused":167,"heart":279,"rocket":898,"eyes":167},"https://api.github.com/repos/nuxt-modules/supabase/releases/114843996/reactions",40,9,19,8,{"name":169,"url":170,"avatar":171},"I am happy to announce the release of version 1.0.0 of this module. While the module has been production-ready for quite some time, I never had the opportunity to create the first major version until now. Given that this version incorporates significant changes, I believe it is the perfect moment to establish this initial major release.","github:v1.0.1.md",{"name":903,"tag_name":903,"date":904,"body":905,"v":167,"url":995,"tarball":996,"zipball":997,"prerelease":54,"reactions":998,"author":1001,"title":53,"description":53,"_type":74,"_id":1002},"v0.3.8","2023-07-03T08:29:53Z",{"type":57,"children":906,"toc":992},[907,911,966,980],{"type":60,"tag":91,"props":908,"children":909},{"id":93},[910],{"type":65,"value":96},{"type":60,"tag":105,"props":912,"children":913},{},[914,950],{"type":60,"tag":109,"props":915,"children":916},{},[917,919,929,931,938,940],{"type":65,"value":918},"feat(session): save provider access/refresh tokens in cookies (",{"type":60,"tag":121,"props":920,"children":923},{"href":921,"rel":922},"https://github.com/nuxt-modules/supabase/commit/ea8c21f3d625984832cb27a3ae7605b16caaf94b",[125],[924],{"type":60,"tag":306,"props":925,"children":926},{"className":53},[927],{"type":65,"value":928},"ea8c21f",{"type":65,"value":930},") in ",{"type":60,"tag":121,"props":932,"children":935},{"href":933,"rel":934},"https://github.com/nuxt-modules/supabase/issues/197",[125],[936],{"type":65,"value":937},"#197",{"type":65,"value":939}," by ",{"type":60,"tag":121,"props":941,"children":944},{"href":942,"rel":943},"https://github.com/mitjans",[125],[945],{"type":60,"tag":113,"props":946,"children":947},{},[948],{"type":65,"value":949},"@mitjans",{"type":60,"tag":109,"props":951,"children":952},{},[953,955,965],{"type":65,"value":954},"chore(deps): upgrade to latest (",{"type":60,"tag":121,"props":956,"children":959},{"href":957,"rel":958},"https://github.com/nuxt-modules/supabase/commit/a52abc871b6ab756c2b477f7c6b3c0f51279693c",[125],[960],{"type":60,"tag":306,"props":961,"children":962},{"className":53},[963],{"type":65,"value":964},"a52abc8",{"type":65,"value":139},{"type":60,"tag":61,"props":967,"children":968},{},[969,973,974],{"type":60,"tag":113,"props":970,"children":971},{},[972],{"type":65,"value":442},{"type":65,"value":444},{"type":60,"tag":121,"props":975,"children":978},{"href":976,"rel":977},"https://github.com/nuxt-community/supabase-module/compare/v0.3.7...v0.3.8",[125],[979],{"type":65,"value":976},{"type":60,"tag":61,"props":981,"children":982},{},[983,984],{"type":65,"value":144},{"type":60,"tag":121,"props":985,"children":987},{"href":942,"rel":986},[125],[988],{"type":60,"tag":113,"props":989,"children":990},{},[991],{"type":65,"value":949},{"title":53,"searchDepth":72,"depth":72,"links":993},[994],{"id":93,"depth":72,"text":96},"https://github.com/nuxt-modules/supabase/releases/tag/v0.3.8","https://api.github.com/repos/nuxt-modules/supabase/tarball/v0.3.8","https://api.github.com/repos/nuxt-modules/supabase/zipball/v0.3.8",{"url":999,"total_count":1000,"+1":167,"-1":167,"laugh":167,"hooray":1000,"confused":167,"heart":167,"rocket":167,"eyes":167},"https://api.github.com/repos/nuxt-modules/supabase/releases/110829614/reactions",5,{"name":169,"url":170,"avatar":171},"github:v0.3.8.md",{"name":1004,"tag_name":1004,"date":1005,"body":1006,"v":167,"url":1074,"tarball":1075,"zipball":1076,"prerelease":54,"author":1077,"title":53,"description":53,"_type":74,"_id":1078},"v0.3.7","2023-06-12T07:51:13Z",{"type":57,"children":1007,"toc":1071},[1008,1012,1057],{"type":60,"tag":91,"props":1009,"children":1010},{"id":93},[1011],{"type":65,"value":96},{"type":60,"tag":105,"props":1013,"children":1014},{},[1015,1041],{"type":60,"tag":109,"props":1016,"children":1017},{},[1018,1020,1024,1025,1032,1034],{"type":65,"value":1019},"fix(client): fix persist session warning for ",{"type":60,"tag":306,"props":1021,"children":1022},{"className":53},[1023],{"type":65,"value":34},{"type":65,"value":202},{"type":60,"tag":121,"props":1026,"children":1029},{"href":1027,"rel":1028},"https://github.com/nuxt-modules/supabase/issues/194",[125],[1030],{"type":65,"value":1031},"#194",{"type":65,"value":1033},") resolves ",{"type":60,"tag":121,"props":1035,"children":1038},{"href":1036,"rel":1037},"https://github.com/nuxt-modules/supabase/issues/193",[125],[1039],{"type":65,"value":1040},"#193",{"type":60,"tag":109,"props":1042,"children":1043},{},[1044,1046,1056],{"type":65,"value":1045},"docs(get-started): remove defineNuxtConfig (",{"type":60,"tag":121,"props":1047,"children":1050},{"href":1048,"rel":1049},"https://github.com/nuxt-modules/supabase/commit/0151901",[125],[1051],{"type":60,"tag":306,"props":1052,"children":1053},{"className":53},[1054],{"type":65,"value":1055},"0151901",{"type":65,"value":139},{"type":60,"tag":61,"props":1058,"children":1059},{},[1060,1061],{"type":65,"value":144},{"type":60,"tag":121,"props":1062,"children":1065},{"href":1063,"rel":1064},"https://github.com/jawngee",[125],[1066],{"type":60,"tag":113,"props":1067,"children":1068},{},[1069],{"type":65,"value":1070},"@jawngee",{"title":53,"searchDepth":72,"depth":72,"links":1072},[1073],{"id":93,"depth":72,"text":96},"https://github.com/nuxt-modules/supabase/releases/tag/v0.3.7","https://api.github.com/repos/nuxt-modules/supabase/tarball/v0.3.7","https://api.github.com/repos/nuxt-modules/supabase/zipball/v0.3.7",{"name":169,"url":170,"avatar":171},"github:v0.3.7.md",{"name":1080,"tag_name":1080,"date":1081,"body":1082,"v":167,"url":1137,"tarball":1138,"zipball":1139,"prerelease":54,"reactions":1140,"author":1142,"title":53,"description":53,"_type":74,"_id":1143},"v0.3.6","2023-06-02T14:33:38Z",{"type":57,"children":1083,"toc":1134},[1084,1088],{"type":60,"tag":91,"props":1085,"children":1086},{"id":93},[1087],{"type":65,"value":96},{"type":60,"tag":105,"props":1089,"children":1090},{},[1091,1096,1121],{"type":60,"tag":109,"props":1092,"children":1093},{},[1094],{"type":65,"value":1095},"chore(deps): upgrade to nuxt and supabase latest version",{"type":60,"tag":109,"props":1097,"children":1098},{},[1099,1101,1111,1113,1120],{"type":65,"value":1100},"fix(client): remove persist session warning on server side in ",{"type":60,"tag":121,"props":1102,"children":1105},{"href":1103,"rel":1104},"https://github.com/nuxt-modules/supabase/commit/227113f68fb8723f9687adfa12150f825940e0c9",[125],[1106],{"type":60,"tag":306,"props":1107,"children":1108},{"className":53},[1109],{"type":65,"value":1110},"227113f",{"type":65,"value":1112}," (Resolves ",{"type":60,"tag":121,"props":1114,"children":1117},{"href":1115,"rel":1116},"https://github.com/nuxt-modules/supabase/issues/188",[125],[1118],{"type":65,"value":1119},"#188",{"type":65,"value":139},{"type":60,"tag":109,"props":1122,"children":1123},{},[1124,1126,1133],{"type":65,"value":1125},"fix(chore): resolve imports (Resolves ",{"type":60,"tag":121,"props":1127,"children":1130},{"href":1128,"rel":1129},"https://github.com/nuxt-modules/supabase/issues/190",[125],[1131],{"type":65,"value":1132},"#190",{"type":65,"value":139},{"title":53,"searchDepth":72,"depth":72,"links":1135},[1136],{"id":93,"depth":72,"text":96},"https://github.com/nuxt-modules/supabase/releases/tag/v0.3.6","https://api.github.com/repos/nuxt-modules/supabase/tarball/v0.3.6","https://api.github.com/repos/nuxt-modules/supabase/zipball/v0.3.6",{"url":1141,"total_count":1000,"+1":161,"-1":167,"laugh":167,"hooray":279,"confused":167,"heart":167,"rocket":167,"eyes":167},"https://api.github.com/repos/nuxt-modules/supabase/releases/105847469/reactions",{"name":169,"url":170,"avatar":171},"github:v0.3.6.md",{"name":1145,"tag_name":1145,"date":1146,"body":1147,"v":167,"url":1425,"tarball":1426,"zipball":1427,"prerelease":54,"reactions":1428,"author":1430,"title":53,"description":53,"_type":74,"_id":1431},"v0.3.5","2023-04-03T09:50:57Z",{"type":57,"children":1148,"toc":1422},[1149,1153,1371,1385],{"type":60,"tag":91,"props":1150,"children":1151},{"id":93},[1152],{"type":65,"value":96},{"type":60,"tag":105,"props":1154,"children":1155},{},[1156,1172,1188,1204,1220,1236,1252,1268,1284,1300,1332,1348],{"type":60,"tag":109,"props":1157,"children":1158},{},[1159,1161,1171],{"type":65,"value":1160},"chore(demo): upgrade on last version (",{"type":60,"tag":121,"props":1162,"children":1165},{"href":1163,"rel":1164},"https://github.com/nuxt-modules/supabase/commit/9bb9e2856823a0bb86c07ae7775462e02a1e430d",[125],[1166],{"type":60,"tag":306,"props":1167,"children":1168},{"className":53},[1169],{"type":65,"value":1170},"9bb9e28",{"type":65,"value":139},{"type":60,"tag":109,"props":1173,"children":1174},{},[1175,1177,1187],{"type":65,"value":1176},"chore(demo): generate database types from supabase cli (",{"type":60,"tag":121,"props":1178,"children":1181},{"href":1179,"rel":1180},"https://github.com/nuxt-modules/supabase/commit/bca199292dfeb23d5e0581ab40a6994fed3d1157",[125],[1182],{"type":60,"tag":306,"props":1183,"children":1184},{"className":53},[1185],{"type":65,"value":1186},"bca1992",{"type":65,"value":139},{"type":60,"tag":109,"props":1189,"children":1190},{},[1191,1193,1203],{"type":65,"value":1192},"docs(links): update nuxt & supabase links and fix typos (",{"type":60,"tag":121,"props":1194,"children":1197},{"href":1195,"rel":1196},"https://github.com/nuxt-modules/supabase/commit/5699dc6c22f9182e9593936fc1260fc785eea450",[125],[1198],{"type":60,"tag":306,"props":1199,"children":1200},{"className":53},[1201],{"type":65,"value":1202},"5699dc6",{"type":65,"value":139},{"type":60,"tag":109,"props":1205,"children":1206},{},[1207,1209,1219],{"type":65,"value":1208},"chore(app): move to pnpm (",{"type":60,"tag":121,"props":1210,"children":1213},{"href":1211,"rel":1212},"https://github.com/nuxt-modules/supabase/commit/94f7e130747801584d2b0999bd2f5f904e575082",[125],[1214],{"type":60,"tag":306,"props":1215,"children":1216},{"className":53},[1217],{"type":65,"value":1218},"94f7e13",{"type":65,"value":139},{"type":60,"tag":109,"props":1221,"children":1222},{},[1223,1225,1235],{"type":65,"value":1224},"chore(module): conditionally add redirect plugin (",{"type":60,"tag":121,"props":1226,"children":1229},{"href":1227,"rel":1228},"https://github.com/nuxt-modules/supabase/commit/0cad0a557934f669f2ab424ef072f6b07c098646",[125],[1230],{"type":60,"tag":306,"props":1231,"children":1232},{"className":53},[1233],{"type":65,"value":1234},"0cad0a5",{"type":65,"value":139},{"type":60,"tag":109,"props":1237,"children":1238},{},[1239,1241,1251],{"type":65,"value":1240},"docs(get-started): fix typos (",{"type":60,"tag":121,"props":1242,"children":1245},{"href":1243,"rel":1244},"https://github.com/nuxt-modules/supabase/commit/ba437a8534f3dcda53f805cc34b5d6a943297354",[125],[1246],{"type":60,"tag":306,"props":1247,"children":1248},{"className":53},[1249],{"type":65,"value":1250},"ba437a8",{"type":65,"value":139},{"type":60,"tag":109,"props":1253,"children":1254},{},[1255,1257,1267],{"type":65,"value":1256},"docs(composables): correct grammar errors (",{"type":60,"tag":121,"props":1258,"children":1261},{"href":1259,"rel":1260},"https://github.com/nuxt-modules/supabase/commit/034d7dfaf9f52a08da0ade4bf6d5ed31ec740734",[125],[1262],{"type":60,"tag":306,"props":1263,"children":1264},{"className":53},[1265],{"type":65,"value":1266},"034d7df",{"type":65,"value":139},{"type":60,"tag":109,"props":1269,"children":1270},{},[1271,1273,1283],{"type":65,"value":1272},"feat(demo): add call from server route(",{"type":60,"tag":121,"props":1274,"children":1277},{"href":1275,"rel":1276},"https://github.com/nuxt-modules/supabase/commit/989a91eacdc471de90a2307c39cd03f23cca57ee",[125],[1278],{"type":60,"tag":306,"props":1279,"children":1280},{"className":53},[1281],{"type":65,"value":1282},"989a91e",{"type":65,"value":139},{"type":60,"tag":109,"props":1285,"children":1286},{},[1287,1289,1299],{"type":65,"value":1288},"perf(useSupabaseAuthClient): avoid declaring unused variables (",{"type":60,"tag":121,"props":1290,"children":1293},{"href":1291,"rel":1292},"https://github.com/nuxt-modules/supabase/commit/8c070b9e571b3fe7870c08033ea561624a6ae575",[125],[1294],{"type":60,"tag":306,"props":1295,"children":1296},{"className":53},[1297],{"type":65,"value":1298},"8c070b9",{"type":65,"value":139},{"type":60,"tag":109,"props":1301,"children":1302},{},[1303,1305,1315,1316,1323,1325],{"type":65,"value":1304},"fix(dev): optimize supabase deps (",{"type":60,"tag":121,"props":1306,"children":1309},{"href":1307,"rel":1308},"https://github.com/nuxt-modules/supabase/commit/d1da3f6b2f463e7196c69c3a580833438926a6e1",[125],[1310],{"type":60,"tag":306,"props":1311,"children":1312},{"className":53},[1313],{"type":65,"value":1314},"d1da3f6",{"type":65,"value":1033},{"type":60,"tag":121,"props":1317,"children":1320},{"href":1318,"rel":1319},"https://github.com/nuxt-modules/supabase/issues/172",[125],[1321],{"type":65,"value":1322},"#172",{"type":65,"value":1324}," & ",{"type":60,"tag":121,"props":1326,"children":1329},{"href":1327,"rel":1328},"https://github.com/nuxt-modules/supabase/issues/151",[125],[1330],{"type":65,"value":1331},"#151",{"type":60,"tag":109,"props":1333,"children":1334},{},[1335,1337,1347],{"type":65,"value":1336},"chore(deps): transpile websocket lib prod only (",{"type":60,"tag":121,"props":1338,"children":1341},{"href":1339,"rel":1340},"https://github.com/nuxt-modules/supabase/commit/a1ee40c848c9da81aa41acc53dc3555b32bafd86",[125],[1342],{"type":60,"tag":306,"props":1343,"children":1344},{"className":53},[1345],{"type":65,"value":1346},"a1ee40c",{"type":65,"value":139},{"type":60,"tag":109,"props":1349,"children":1350},{},[1351,1353,1363,1364,1369],{"type":65,"value":1352},"fix(deps): transpile gotrue only on client (",{"type":60,"tag":121,"props":1354,"children":1357},{"href":1355,"rel":1356},"https://github.com/nuxt-modules/supabase/commit/fcc6823e248395a513706cf67ab664f84daacb45",[125],[1358],{"type":60,"tag":306,"props":1359,"children":1360},{"className":53},[1361],{"type":65,"value":1362},"fcc6823",{"type":65,"value":1033},{"type":60,"tag":121,"props":1365,"children":1367},{"href":1318,"rel":1366},[125],[1368],{"type":65,"value":1322},{"type":65,"value":1370}," on server side",{"type":60,"tag":61,"props":1372,"children":1373},{},[1374,1378,1379],{"type":60,"tag":113,"props":1375,"children":1376},{},[1377],{"type":65,"value":442},{"type":65,"value":444},{"type":60,"tag":121,"props":1380,"children":1383},{"href":1381,"rel":1382},"https://github.com/nuxt-community/supabase-module/compare/v0.3.1...v0.3.5",[125],[1384],{"type":65,"value":1381},{"type":60,"tag":61,"props":1386,"children":1387},{},[1388,1390,1397,1399,1406,1407,1414,1415],{"type":65,"value":1389},"💚 Thanks for the help from 💚\r\n@",{"type":60,"tag":121,"props":1391,"children":1394},{"href":1392,"rel":1393},"https://github.com/nuxt-modules/supabase/commits?author=kuizuo",[125],[1395],{"type":65,"value":1396},"kuizuo",{"type":65,"value":1398},"\r\n@",{"type":60,"tag":121,"props":1400,"children":1403},{"href":1401,"rel":1402},"https://github.com/nuxt-modules/supabase/commits?author=tnntwister",[125],[1404],{"type":65,"value":1405},"tnntwister",{"type":65,"value":1398},{"type":60,"tag":121,"props":1408,"children":1411},{"href":1409,"rel":1410},"https://github.com/nuxt-modules/supabase/commits?author=yannaufray",[125],[1412],{"type":65,"value":1413},"yannaufray",{"type":65,"value":1398},{"type":60,"tag":121,"props":1416,"children":1419},{"href":1417,"rel":1418},"https://github.com/nuxt-modules/supabase/commits?author=DamianGlowala",[125],[1420],{"type":65,"value":1421},"DamianGlowala",{"title":53,"searchDepth":72,"depth":72,"links":1423},[1424],{"id":93,"depth":72,"text":96},"https://github.com/nuxt-modules/supabase/releases/tag/v0.3.5","https://api.github.com/repos/nuxt-modules/supabase/tarball/v0.3.5","https://api.github.com/repos/nuxt-modules/supabase/zipball/v0.3.5",{"url":1429,"total_count":161,"+1":167,"-1":167,"laugh":167,"hooray":167,"confused":167,"heart":167,"rocket":161,"eyes":167},"https://api.github.com/repos/nuxt-modules/supabase/releases/97822579/reactions",{"name":169,"url":170,"avatar":171},"github:v0.3.5.md",{"name":1433,"tag_name":1433,"date":1434,"body":1435,"v":167,"url":1686,"tarball":1687,"zipball":1688,"prerelease":1689,"reactions":1690,"author":1692,"title":53,"description":53,"_type":74,"_id":1693},"v0.3.3","2023-03-31T21:51:14Z",{"type":57,"children":1436,"toc":1683},[1437,1441,1669],{"type":60,"tag":91,"props":1438,"children":1439},{"id":93},[1440],{"type":65,"value":96},{"type":60,"tag":105,"props":1442,"children":1443},{},[1444,1466,1481,1497,1513,1535,1551,1575,1597,1619,1633,1655],{"type":60,"tag":109,"props":1445,"children":1446},{},[1447,1448,1455,1456,1465],{"type":65,"value":1288},{"type":60,"tag":121,"props":1449,"children":1452},{"href":1450,"rel":1451},"https://github.com/nuxt-modules/supabase/issues/166",[125],[1453],{"type":65,"value":1454},"#166",{"type":65,"value":130},{"type":60,"tag":121,"props":1457,"children":1460},{"href":1458,"rel":1459},"https://github.com/nuxt-modules/supabase/commit/8c070b9",[125],[1461],{"type":60,"tag":306,"props":1462,"children":1463},{"className":53},[1464],{"type":65,"value":1298},{"type":65,"value":139},{"type":60,"tag":109,"props":1467,"children":1468},{},[1469,1471,1480],{"type":65,"value":1470},"feat(demo): add call from server route (",{"type":60,"tag":121,"props":1472,"children":1475},{"href":1473,"rel":1474},"https://github.com/nuxt-modules/supabase/commit/989a91e",[125],[1476],{"type":60,"tag":306,"props":1477,"children":1478},{"className":53},[1479],{"type":65,"value":1282},{"type":65,"value":139},{"type":60,"tag":109,"props":1482,"children":1483},{},[1484,1486,1496],{"type":65,"value":1485},"chore(demo): upgrade deps (",{"type":60,"tag":121,"props":1487,"children":1490},{"href":1488,"rel":1489},"https://github.com/nuxt-modules/supabase/commit/9ebbc77",[125],[1491],{"type":60,"tag":306,"props":1492,"children":1493},{"className":53},[1494],{"type":65,"value":1495},"9ebbc77",{"type":65,"value":139},{"type":60,"tag":109,"props":1498,"children":1499},{},[1500,1502,1512],{"type":65,"value":1501},"chore(deps): upgrade (",{"type":60,"tag":121,"props":1503,"children":1506},{"href":1504,"rel":1505},"https://github.com/nuxt-modules/supabase/commit/e274a5e",[125],[1507],{"type":60,"tag":306,"props":1508,"children":1509},{"className":53},[1510],{"type":65,"value":1511},"e274a5e",{"type":65,"value":139},{"type":60,"tag":109,"props":1514,"children":1515},{},[1516,1517,1524,1525,1534],{"type":65,"value":1256},{"type":60,"tag":121,"props":1518,"children":1521},{"href":1519,"rel":1520},"https://github.com/nuxt-modules/supabase/issues/162",[125],[1522],{"type":65,"value":1523},"#162",{"type":65,"value":130},{"type":60,"tag":121,"props":1526,"children":1529},{"href":1527,"rel":1528},"https://github.com/nuxt-modules/supabase/commit/034d7df",[125],[1530],{"type":60,"tag":306,"props":1531,"children":1532},{"className":53},[1533],{"type":65,"value":1266},{"type":65,"value":139},{"type":60,"tag":109,"props":1536,"children":1537},{},[1538,1540,1550],{"type":65,"value":1539},"docs(readme): add nuxt badge (",{"type":60,"tag":121,"props":1541,"children":1544},{"href":1542,"rel":1543},"https://github.com/nuxt-modules/supabase/commit/68271b8",[125],[1545],{"type":60,"tag":306,"props":1546,"children":1547},{"className":53},[1548],{"type":65,"value":1549},"68271b8",{"type":65,"value":139},{"type":60,"tag":109,"props":1552,"children":1553},{},[1554,1556,1563,1564,1574],{"type":65,"value":1555},"docs(demo): fix typo (",{"type":60,"tag":121,"props":1557,"children":1560},{"href":1558,"rel":1559},"https://github.com/nuxt-modules/supabase/issues/125",[125],[1561],{"type":65,"value":1562},"#125",{"type":65,"value":130},{"type":60,"tag":121,"props":1565,"children":1568},{"href":1566,"rel":1567},"https://github.com/nuxt-modules/supabase/commit/bd33d12",[125],[1569],{"type":60,"tag":306,"props":1570,"children":1571},{"className":53},[1572],{"type":65,"value":1573},"bd33d12",{"type":65,"value":139},{"type":60,"tag":109,"props":1576,"children":1577},{},[1578,1579,1586,1587,1596],{"type":65,"value":1240},{"type":60,"tag":121,"props":1580,"children":1583},{"href":1581,"rel":1582},"https://github.com/nuxt-modules/supabase/issues/154",[125],[1584],{"type":65,"value":1585},"#154",{"type":65,"value":130},{"type":60,"tag":121,"props":1588,"children":1591},{"href":1589,"rel":1590},"https://github.com/nuxt-modules/supabase/commit/ba437a8",[125],[1592],{"type":60,"tag":306,"props":1593,"children":1594},{"className":53},[1595],{"type":65,"value":1250},{"type":65,"value":139},{"type":60,"tag":109,"props":1598,"children":1599},{},[1600,1601,1608,1609,1618],{"type":65,"value":1224},{"type":60,"tag":121,"props":1602,"children":1605},{"href":1603,"rel":1604},"https://github.com/nuxt-modules/supabase/issues/157",[125],[1606],{"type":65,"value":1607},"#157",{"type":65,"value":130},{"type":60,"tag":121,"props":1610,"children":1613},{"href":1611,"rel":1612},"https://github.com/nuxt-modules/supabase/commit/0cad0a5",[125],[1614],{"type":60,"tag":306,"props":1615,"children":1616},{"className":53},[1617],{"type":65,"value":1234},{"type":65,"value":139},{"type":60,"tag":109,"props":1620,"children":1621},{},[1622,1623,1632],{"type":65,"value":1208},{"type":60,"tag":121,"props":1624,"children":1627},{"href":1625,"rel":1626},"https://github.com/nuxt-modules/supabase/commit/94f7e13",[125],[1628],{"type":60,"tag":306,"props":1629,"children":1630},{"className":53},[1631],{"type":65,"value":1218},{"type":65,"value":139},{"type":60,"tag":109,"props":1634,"children":1635},{},[1636,1637,1644,1645,1654],{"type":65,"value":1192},{"type":60,"tag":121,"props":1638,"children":1641},{"href":1639,"rel":1640},"https://github.com/nuxt-modules/supabase/issues/126",[125],[1642],{"type":65,"value":1643},"#126",{"type":65,"value":130},{"type":60,"tag":121,"props":1646,"children":1649},{"href":1647,"rel":1648},"https://github.com/nuxt-modules/supabase/commit/5699dc6",[125],[1650],{"type":60,"tag":306,"props":1651,"children":1652},{"className":53},[1653],{"type":65,"value":1202},{"type":65,"value":139},{"type":60,"tag":109,"props":1656,"children":1657},{},[1658,1659,1668],{"type":65,"value":1176},{"type":60,"tag":121,"props":1660,"children":1663},{"href":1661,"rel":1662},"https://github.com/nuxt-modules/supabase/commit/bca1992",[125],[1664],{"type":60,"tag":306,"props":1665,"children":1666},{"className":53},[1667],{"type":65,"value":1186},{"type":65,"value":139},{"type":60,"tag":61,"props":1670,"children":1671},{},[1672,1676,1677],{"type":60,"tag":113,"props":1673,"children":1674},{},[1675],{"type":65,"value":442},{"type":65,"value":444},{"type":60,"tag":121,"props":1678,"children":1681},{"href":1679,"rel":1680},"https://github.com/nuxt-community/supabase-module/compare/v0.3.1...v0.3.3",[125],[1682],{"type":65,"value":1679},{"title":53,"searchDepth":72,"depth":72,"links":1684},[1685],{"id":93,"depth":72,"text":96},"https://github.com/nuxt-modules/supabase/releases/tag/v0.3.3","https://api.github.com/repos/nuxt-modules/supabase/tarball/v0.3.3","https://api.github.com/repos/nuxt-modules/supabase/zipball/v0.3.3",true,{"url":1691,"total_count":161,"+1":161,"-1":167,"laugh":167,"hooray":167,"confused":167,"heart":167,"rocket":167,"eyes":167},"https://api.github.com/repos/nuxt-modules/supabase/releases/97697076/reactions",{"name":169,"url":170,"avatar":171},"github:v0.3.3.md",{"name":1695,"tag_name":1695,"date":1696,"body":1697,"v":167,"url":1760,"tarball":1761,"zipball":1762,"prerelease":54,"author":1763,"title":53,"description":53,"_type":74,"_id":1764},"v0.3.1","2023-02-07T20:18:04Z",{"type":57,"children":1698,"toc":1757},[1699,1703,1743],{"type":60,"tag":91,"props":1700,"children":1701},{"id":93},[1702],{"type":65,"value":96},{"type":60,"tag":105,"props":1704,"children":1705},{},[1706,1722,1738],{"type":60,"tag":109,"props":1707,"children":1708},{},[1709,1711,1721],{"type":65,"value":1710},"chore(app): upgrade deps and fix lint (",{"type":60,"tag":121,"props":1712,"children":1715},{"href":1713,"rel":1714},"https://github.com/nuxt-modules/supabase/commit/68baf68",[125],[1716],{"type":60,"tag":306,"props":1717,"children":1718},{"className":53},[1719],{"type":65,"value":1720},"68baf68",{"type":65,"value":139},{"type":60,"tag":109,"props":1723,"children":1724},{},[1725,1727,1737],{"type":65,"value":1726},"fix(client): unset user before session on logout (",{"type":60,"tag":121,"props":1728,"children":1731},{"href":1729,"rel":1730},"https://github.com/nuxt-modules/supabase/commit/ab574ef",[125],[1732],{"type":60,"tag":306,"props":1733,"children":1734},{"className":53},[1735],{"type":65,"value":1736},"ab574ef",{"type":65,"value":139},{"type":60,"tag":109,"props":1739,"children":1740},{},[1741],{"type":65,"value":1742},"chore(demo): update with latest and fix logout",{"type":60,"tag":61,"props":1744,"children":1745},{},[1746,1750,1751],{"type":60,"tag":113,"props":1747,"children":1748},{},[1749],{"type":65,"value":442},{"type":65,"value":444},{"type":60,"tag":121,"props":1752,"children":1755},{"href":1753,"rel":1754},"https://github.com/nuxt-community/supabase-module/compare/v0.3.0...v0.3.1",[125],[1756],{"type":65,"value":1753},{"title":53,"searchDepth":72,"depth":72,"links":1758},[1759],{"id":93,"depth":72,"text":96},"https://github.com/nuxt-modules/supabase/releases/tag/v0.3.1","https://api.github.com/repos/nuxt-modules/supabase/tarball/v0.3.1","https://api.github.com/repos/nuxt-modules/supabase/zipball/v0.3.1",{"name":169,"url":170,"avatar":171},"github:v0.3.1.md",{"name":1766,"tag_name":1766,"date":1767,"body":1768,"v":167,"url":1884,"tarball":1885,"zipball":1886,"prerelease":54,"reactions":1887,"author":1889,"title":53,"description":734,"_type":74,"_id":1890},"v0.3.0","2022-11-22T15:26:02Z",{"type":57,"children":1769,"toc":1881},[1770,1774,1778,1798,1829,1855,1867],{"type":60,"tag":61,"props":1771,"children":1772},{},[1773],{"type":65,"value":734},{"type":60,"tag":91,"props":1775,"children":1776},{"id":93},[1777],{"type":65,"value":96},{"type":60,"tag":61,"props":1779,"children":1780},{},[1781,1783,1790,1792,1796],{"type":65,"value":1782},"In order to resolve ",{"type":60,"tag":121,"props":1784,"children":1787},{"href":1785,"rel":1786},"https://github.com/nuxt-modules/supabase/issues/114",[125],[1788],{"type":65,"value":1789},"#114",{"type":65,"value":1791},", I have made the choice to separate the ",{"type":60,"tag":306,"props":1793,"children":1794},{"className":53},[1795],{"type":65,"value":21},{"type":65,"value":1797}," in two other composables:",{"type":60,"tag":105,"props":1799,"children":1800},{},[1801,1819],{"type":60,"tag":109,"props":1802,"children":1803},{},[1804,1806,1810,1812,1817],{"type":65,"value":1805},"The ",{"type":60,"tag":306,"props":1807,"children":1808},{"className":53},[1809],{"type":65,"value":745},{"type":65,"value":1811}," is dedicated to authentification purpose only. It won't be recreate if your token expires, it is used in the client plugin to listen to ",{"type":60,"tag":306,"props":1813,"children":1814},{"className":53},[1815],{"type":65,"value":1816},"onAuthStateChange",{"type":65,"value":1818}," events.",{"type":60,"tag":109,"props":1820,"children":1821},{},[1822,1823,1827],{"type":65,"value":1805},{"type":60,"tag":306,"props":1824,"children":1825},{"className":53},[1826],{"type":65,"value":21},{"type":65,"value":1828}," is now only useful for data request.",{"type":60,"tag":61,"props":1830,"children":1831},{},[1832,1834,1838,1840,1844,1846,1853],{"type":65,"value":1833},"To avoid regression you just need to use ",{"type":60,"tag":306,"props":1835,"children":1836},{"className":53},[1837],{"type":65,"value":745},{"type":65,"value":1839}," instead of ",{"type":60,"tag":306,"props":1841,"children":1842},{"className":53},[1843],{"type":65,"value":21},{"type":65,"value":1845}," everywhere you use ",{"type":60,"tag":121,"props":1847,"children":1850},{"href":1848,"rel":1849},"https://supabase.com/docs/reference/javascript/auth-signup",[125],[1851],{"type":65,"value":1852},"Supabase auth methods",{"type":65,"value":1854},".",{"type":60,"tag":61,"props":1856,"children":1857},{},[1858,1865],{"type":60,"tag":121,"props":1859,"children":1862},{"href":1860,"rel":1861},"https://supabase.nuxtjs.org/usage/composables/use-supabase-auth-client",[125],[1863],{"type":65,"value":1864},"Documentation",{"type":65,"value":1866}," has been updated.",{"type":60,"tag":61,"props":1868,"children":1869},{},[1870,1874,1875],{"type":60,"tag":113,"props":1871,"children":1872},{},[1873],{"type":65,"value":442},{"type":65,"value":444},{"type":60,"tag":121,"props":1876,"children":1879},{"href":1877,"rel":1878},"https://github.com/nuxt-community/supabase-module/compare/v0.2.6...v0.3.0",[125],[1880],{"type":65,"value":1877},{"title":53,"searchDepth":72,"depth":72,"links":1882},[1883],{"id":93,"depth":72,"text":96},"https://github.com/nuxt-modules/supabase/releases/tag/v0.3.0","https://api.github.com/repos/nuxt-modules/supabase/tarball/v0.3.0","https://api.github.com/repos/nuxt-modules/supabase/zipball/v0.3.0",{"url":1888,"total_count":898,"+1":72,"-1":167,"laugh":167,"hooray":167,"confused":167,"heart":160,"rocket":160,"eyes":167},"https://api.github.com/repos/nuxt-modules/supabase/releases/83886320/reactions",{"name":169,"url":170,"avatar":171},"github:v0.3.0.md",{"name":1892,"tag_name":1892,"date":1893,"body":1894,"v":167,"url":1931,"tarball":1932,"zipball":1933,"prerelease":54,"author":1934,"title":53,"description":53,"_type":74,"_id":1935},"v0.2.6","2022-11-22T15:16:16Z",{"type":57,"children":1895,"toc":1928},[1896,1900,1914],{"type":60,"tag":91,"props":1897,"children":1898},{"id":93},[1899],{"type":65,"value":96},{"type":60,"tag":105,"props":1901,"children":1902},{},[1903],{"type":60,"tag":109,"props":1904,"children":1905},{},[1906,1908],{"type":65,"value":1907},"chore: update to Nuxt 3 stable 🚀 ",{"type":60,"tag":121,"props":1909,"children":1912},{"href":1910,"rel":1911},"https://nuxt.com/v3",[125],[1913],{"type":65,"value":1910},{"type":60,"tag":61,"props":1915,"children":1916},{},[1917,1921,1922],{"type":60,"tag":113,"props":1918,"children":1919},{},[1920],{"type":65,"value":442},{"type":65,"value":444},{"type":60,"tag":121,"props":1923,"children":1926},{"href":1924,"rel":1925},"https://github.com/nuxt-community/supabase-module/compare/v0.2.5...v0.2.6",[125],[1927],{"type":65,"value":1924},{"title":53,"searchDepth":72,"depth":72,"links":1929},[1930],{"id":93,"depth":72,"text":96},"https://github.com/nuxt-modules/supabase/releases/tag/v0.2.6","https://api.github.com/repos/nuxt-modules/supabase/tarball/v0.2.6","https://api.github.com/repos/nuxt-modules/supabase/zipball/v0.2.6",{"name":169,"url":170,"avatar":171},"github:v0.2.6.md",{"name":1937,"tag_name":1937,"date":1938,"body":1939,"v":167,"url":1990,"tarball":1991,"zipball":1992,"prerelease":54,"author":1993,"title":53,"description":53,"_type":74,"_id":1994},"v0.2.5","2022-11-22T15:14:51Z",{"type":57,"children":1940,"toc":1987},[1941,1945,1973],{"type":60,"tag":91,"props":1942,"children":1943},{"id":93},[1944],{"type":65,"value":96},{"type":60,"tag":105,"props":1946,"children":1947},{},[1948],{"type":60,"tag":109,"props":1949,"children":1950},{},[1951,1953,1963,1965,1972],{"type":65,"value":1952},"fix: use Router instead of navigateTo for login redirect in ",{"type":60,"tag":121,"props":1954,"children":1957},{"href":1955,"rel":1956},"https://github.com/nuxt-modules/supabase/commit/79fc0e43655d4dee5858acf06cf1979e3ead542b",[125],[1958],{"type":60,"tag":306,"props":1959,"children":1960},{"className":53},[1961],{"type":65,"value":1962},"79fc0e4",{"type":65,"value":1964}," (resolves ",{"type":60,"tag":121,"props":1966,"children":1969},{"href":1967,"rel":1968},"https://github.com/nuxt-modules/supabase/issues/89",[125],[1970],{"type":65,"value":1971},"#89",{"type":65,"value":139},{"type":60,"tag":61,"props":1974,"children":1975},{},[1976,1980,1981],{"type":60,"tag":113,"props":1977,"children":1978},{},[1979],{"type":65,"value":442},{"type":65,"value":444},{"type":60,"tag":121,"props":1982,"children":1985},{"href":1983,"rel":1984},"https://github.com/nuxt-community/supabase-module/compare/v0.2.4...v0.2.5",[125],[1986],{"type":65,"value":1983},{"title":53,"searchDepth":72,"depth":72,"links":1988},[1989],{"id":93,"depth":72,"text":96},"https://github.com/nuxt-modules/supabase/releases/tag/v0.2.5","https://api.github.com/repos/nuxt-modules/supabase/tarball/v0.2.5","https://api.github.com/repos/nuxt-modules/supabase/zipball/v0.2.5",{"name":169,"url":170,"avatar":171},"github:v0.2.5.md",{"name":1996,"tag_name":1996,"date":1997,"body":1998,"v":167,"url":2039,"tarball":2040,"zipball":2041,"prerelease":54,"reactions":2042,"author":2044,"title":53,"description":53,"_type":74,"_id":2045},"v0.2.4","2022-11-13T19:36:18Z",{"type":57,"children":1999,"toc":2036},[2000,2004,2022],{"type":60,"tag":91,"props":2001,"children":2002},{"id":93},[2003],{"type":65,"value":96},{"type":60,"tag":105,"props":2005,"children":2006},{},[2007],{"type":60,"tag":109,"props":2008,"children":2009},{},[2010,2012],{"type":65,"value":2011},"fix: handle TOKEN_REFRESHED session event in ",{"type":60,"tag":121,"props":2013,"children":2016},{"href":2014,"rel":2015},"https://github.com/nuxt-modules/supabase/commit/bf503029b48113b4b66545d0d2065c899209a06a",[125],[2017],{"type":60,"tag":306,"props":2018,"children":2019},{"className":53},[2020],{"type":65,"value":2021},"bf50302",{"type":60,"tag":61,"props":2023,"children":2024},{},[2025,2029,2030],{"type":60,"tag":113,"props":2026,"children":2027},{},[2028],{"type":65,"value":442},{"type":65,"value":444},{"type":60,"tag":121,"props":2031,"children":2034},{"href":2032,"rel":2033},"https://github.com/nuxt-community/supabase-module/compare/v0.2.3...v0.2.4",[125],[2035],{"type":65,"value":2032},{"title":53,"searchDepth":72,"depth":72,"links":2037},[2038],{"id":93,"depth":72,"text":96},"https://github.com/nuxt-modules/supabase/releases/tag/v0.2.4","https://api.github.com/repos/nuxt-modules/supabase/tarball/v0.2.4","https://api.github.com/repos/nuxt-modules/supabase/zipball/v0.2.4",{"url":2043,"total_count":72,"+1":167,"-1":167,"laugh":167,"hooray":167,"confused":167,"heart":72,"rocket":167,"eyes":167},"https://api.github.com/repos/nuxt-modules/supabase/releases/82920199/reactions",{"name":169,"url":170,"avatar":171},"github:v0.2.4.md",{"name":2047,"tag_name":2047,"date":2048,"body":2049,"v":167,"url":2184,"tarball":2185,"zipball":2186,"prerelease":54,"reactions":2187,"author":2189,"title":53,"description":53,"_type":74,"_id":2190},"v0.2.3","2022-11-11T17:27:14Z",{"type":57,"children":2050,"toc":2180},[2051,2055,2132,2138,2166],{"type":60,"tag":91,"props":2052,"children":2053},{"id":93},[2054],{"type":65,"value":96},{"type":60,"tag":105,"props":2056,"children":2057},{},[2058,2084,2096,2109],{"type":60,"tag":109,"props":2059,"children":2060},{},[2061,2063,2073,2074],{"type":65,"value":2062},"feat: typed supabase client in ",{"type":60,"tag":121,"props":2064,"children":2067},{"href":2065,"rel":2066},"https://github.com/nuxt-modules/supabase/commit/b59ff1acfbbe2cd36aea1ade2d2b538404909260",[125],[2068],{"type":60,"tag":306,"props":2069,"children":2070},{"className":53},[2071],{"type":65,"value":2072},"b59ff1a",{"type":65,"value":837},{"type":60,"tag":121,"props":2075,"children":2078},{"href":2076,"rel":2077},"https://github.com/nuxt-modules/supabase/commit/fd751d7e50c63c48df9e03763458cc826409ff35",[125],[2079],{"type":60,"tag":306,"props":2080,"children":2081},{"className":53},[2082],{"type":65,"value":2083},"fd751d7",{"type":60,"tag":109,"props":2085,"children":2086},{},[2087,2089],{"type":65,"value":2088},"chore: upgrade to nuxt ",{"type":60,"tag":121,"props":2090,"children":2093},{"href":2091,"rel":2092},"https://github.com/nuxt/framework/releases/tag/v3.0.0-rc.13",[125],[2094],{"type":65,"value":2095},"rc13",{"type":60,"tag":109,"props":2097,"children":2098},{},[2099,2101,2108],{"type":65,"value":2100},"fix: do not apply token if not exists (",{"type":60,"tag":121,"props":2102,"children":2105},{"href":2103,"rel":2104},"https://github.com/nuxt-modules/supabase/issues/107",[125],[2106],{"type":65,"value":2107},"#107",{"type":65,"value":139},{"type":60,"tag":109,"props":2110,"children":2111},{},[2112,2114,2120,2122],{"type":65,"value":2113},"docs: add roadmap board from ",{"type":60,"tag":121,"props":2115,"children":2118},{"href":2116,"rel":2117},"https://volta.net",[125],[2119],{"type":65,"value":2116},{"type":65,"value":2121}," in ",{"type":60,"tag":121,"props":2123,"children":2126},{"href":2124,"rel":2125},"https://github.com/nuxt-modules/supabase/commit/f8e73b535924f133e479dbc2863bb37856ff4555",[125],[2127],{"type":60,"tag":306,"props":2128,"children":2129},{"className":53},[2130],{"type":65,"value":2131},"f8e73b5",{"type":60,"tag":91,"props":2133,"children":2135},{"id":2134},"contributors",[2136],{"type":65,"value":2137},"Contributors",{"type":60,"tag":61,"props":2139,"children":2140},{},[2141,2143,2153,2154,2164],{"type":65,"value":2142},"Thanks to ",{"type":60,"tag":121,"props":2144,"children":2147},{"href":2145,"rel":2146},"https://github.com/manniL",[125],[2148],{"type":60,"tag":113,"props":2149,"children":2150},{},[2151],{"type":65,"value":2152},"@manniL",{"type":65,"value":837},{"type":60,"tag":121,"props":2155,"children":2158},{"href":2156,"rel":2157},"https://github.com/levibe",[125],[2159],{"type":60,"tag":113,"props":2160,"children":2161},{},[2162],{"type":65,"value":2163},"@levibe",{"type":65,"value":2165}," 💚",{"type":60,"tag":61,"props":2167,"children":2168},{},[2169,2173,2174],{"type":60,"tag":113,"props":2170,"children":2171},{},[2172],{"type":65,"value":442},{"type":65,"value":444},{"type":60,"tag":121,"props":2175,"children":2178},{"href":2176,"rel":2177},"https://github.com/nuxt-community/supabase-module/compare/v0.2.0...v0.2.3",[125],[2179],{"type":65,"value":2176},{"title":53,"searchDepth":72,"depth":72,"links":2181},[2182,2183],{"id":93,"depth":72,"text":96},{"id":2134,"depth":72,"text":2137},"https://github.com/nuxt-modules/supabase/releases/tag/v0.2.3","https://api.github.com/repos/nuxt-modules/supabase/tarball/v0.2.3","https://api.github.com/repos/nuxt-modules/supabase/zipball/v0.2.3",{"url":2188,"total_count":161,"+1":167,"-1":167,"laugh":167,"hooray":167,"confused":167,"heart":161,"rocket":167,"eyes":167},"https://api.github.com/repos/nuxt-modules/supabase/releases/82825289/reactions",{"name":169,"url":170,"avatar":171},"github:v0.2.3.md",{"name":2192,"tag_name":2192,"date":2193,"body":2194,"v":167,"url":2285,"tarball":2286,"zipball":2287,"prerelease":54,"author":2288,"title":53,"description":53,"_type":74,"_id":2289},"v0.2.0","2022-10-17T14:18:31Z",{"type":57,"children":2195,"toc":2282},[2196,2200,2205,2218,2231,2236,2241,2268],{"type":60,"tag":91,"props":2197,"children":2198},{"id":93},[2199],{"type":65,"value":96},{"type":60,"tag":61,"props":2201,"children":2202},{},[2203],{"type":65,"value":2204},"⚠️ Breaking Changes",{"type":60,"tag":61,"props":2206,"children":2207},{},[2208,2210,2217],{"type":65,"value":2209},"Upgrade to supabase-js v2, check Supabase ",{"type":60,"tag":121,"props":2211,"children":2214},{"href":2212,"rel":2213},"https://supabase.com/docs/reference/javascript/release-notes",[125],[2215],{"type":65,"value":2216},"release notes",{"type":65,"value":1854},{"type":60,"tag":61,"props":2219,"children":2220},{},[2221,2223,2229],{"type":65,"value":2222},"Module ",{"type":60,"tag":121,"props":2224,"children":2226},{"href":696,"rel":2225},[125],[2227],{"type":65,"value":2228},"documentation",{"type":65,"value":2230}," has been updated in favor of supabase v2 syntax.",{"type":60,"tag":61,"props":2232,"children":2233},{},[2234],{"type":65,"value":2235},"Please feel free to make PR if I missed something 🙏",{"type":60,"tag":61,"props":2237,"children":2238},{},[2239],{"type":65,"value":2240},"🚀 Features",{"type":60,"tag":105,"props":2242,"children":2243},{},[2244,2256],{"type":60,"tag":109,"props":2245,"children":2246},{},[2247,2249,2255],{"type":65,"value":2248},"options: redirect user after signout or when user is not authenticated (check ",{"type":60,"tag":121,"props":2250,"children":2253},{"href":2251,"rel":2252},"https://supabase.nuxtjs.org/get-started#redirect",[125],[2254],{"type":65,"value":2228},{"type":65,"value":139},{"type":60,"tag":109,"props":2257,"children":2258},{},[2259,2261],{"type":65,"value":2260},"session: set refresh token ",{"type":60,"tag":121,"props":2262,"children":2265},{"href":2263,"rel":2264},"https://github.com/nuxt-modules/supabase/issues/18",[125],[2266],{"type":65,"value":2267},"#18",{"type":60,"tag":61,"props":2269,"children":2270},{},[2271,2275,2276],{"type":60,"tag":113,"props":2272,"children":2273},{},[2274],{"type":65,"value":442},{"type":65,"value":444},{"type":60,"tag":121,"props":2277,"children":2280},{"href":2278,"rel":2279},"https://github.com/nuxt-community/supabase-module/compare/v0.1.28...v0.2.0",[125],[2281],{"type":65,"value":2278},{"title":53,"searchDepth":72,"depth":72,"links":2283},[2284],{"id":93,"depth":72,"text":96},"https://github.com/nuxt-modules/supabase/releases/tag/v0.2.0","https://api.github.com/repos/nuxt-modules/supabase/tarball/v0.2.0","https://api.github.com/repos/nuxt-modules/supabase/zipball/v0.2.0",{"name":169,"url":170,"avatar":171},"github:v0.2.0.md",{"name":2291,"tag_name":2291,"date":2292,"body":2293,"v":167,"url":2348,"tarball":2349,"zipball":2350,"prerelease":54,"author":2351,"title":53,"description":53,"_type":74,"_id":2352},"v0.1.28","2022-10-07T10:05:52Z",{"type":57,"children":2294,"toc":2345},[2295,2299,2315,2329],{"type":60,"tag":91,"props":2296,"children":2297},{"id":93},[2298],{"type":65,"value":96},{"type":60,"tag":105,"props":2300,"children":2301},{},[2302],{"type":60,"tag":109,"props":2303,"children":2304},{},[2305,2307,2314],{"type":65,"value":2306},"fix: cloudflare workers deployment (",{"type":60,"tag":121,"props":2308,"children":2311},{"href":2309,"rel":2310},"https://github.com/nuxt-modules/supabase/issues/46",[125],[2312],{"type":65,"value":2313},"#46",{"type":65,"value":139},{"type":60,"tag":61,"props":2316,"children":2317},{},[2318,2322,2323],{"type":60,"tag":113,"props":2319,"children":2320},{},[2321],{"type":65,"value":442},{"type":65,"value":444},{"type":60,"tag":121,"props":2324,"children":2327},{"href":2325,"rel":2326},"https://github.com/nuxt-community/supabase-module/compare/v0.1.27...v0.1.28",[125],[2328],{"type":65,"value":2325},{"type":60,"tag":61,"props":2330,"children":2331},{},[2332,2333,2343],{"type":65,"value":2142},{"type":60,"tag":121,"props":2334,"children":2337},{"href":2335,"rel":2336},"https://github.com/kevinmarrec",[125],[2338],{"type":60,"tag":113,"props":2339,"children":2340},{},[2341],{"type":65,"value":2342},"@kevinmarrec",{"type":65,"value":2344}," for the fix 🔥",{"title":53,"searchDepth":72,"depth":72,"links":2346},[2347],{"id":93,"depth":72,"text":96},"https://github.com/nuxt-modules/supabase/releases/tag/v0.1.28","https://api.github.com/repos/nuxt-modules/supabase/tarball/v0.1.28","https://api.github.com/repos/nuxt-modules/supabase/zipball/v0.1.28",{"name":169,"url":170,"avatar":171},"github:v0.1.28.md",{"name":2354,"tag_name":2354,"date":2355,"body":2356,"v":167,"url":2399,"tarball":2400,"zipball":2401,"prerelease":54,"author":2402,"title":53,"description":53,"_type":74,"_id":2403},"v0.1.27","2022-09-23T10:19:42Z",{"type":57,"children":2357,"toc":2396},[2358,2362,2377,2382],{"type":60,"tag":91,"props":2359,"children":2360},{"id":93},[2361],{"type":65,"value":96},{"type":60,"tag":105,"props":2363,"children":2364},{},[2365],{"type":60,"tag":109,"props":2366,"children":2367},{},[2368,2370],{"type":65,"value":2369},"chore: upgrade to Nuxt ",{"type":60,"tag":121,"props":2371,"children":2374},{"href":2372,"rel":2373},"https://github.com/nuxt/framework/releases/tag/v3.0.0-rc.11",[125],[2375],{"type":65,"value":2376},"rc.11",{"type":60,"tag":61,"props":2378,"children":2379},{},[2380],{"type":65,"value":2381},"Stable is coming 🚀",{"type":60,"tag":61,"props":2383,"children":2384},{},[2385,2389,2390],{"type":60,"tag":113,"props":2386,"children":2387},{},[2388],{"type":65,"value":442},{"type":65,"value":444},{"type":60,"tag":121,"props":2391,"children":2394},{"href":2392,"rel":2393},"https://github.com/nuxt-community/supabase-module/compare/v0.1.26...v0.1.27",[125],[2395],{"type":65,"value":2392},{"title":53,"searchDepth":72,"depth":72,"links":2397},[2398],{"id":93,"depth":72,"text":96},"https://github.com/nuxt-modules/supabase/releases/tag/v0.1.27","https://api.github.com/repos/nuxt-modules/supabase/tarball/v0.1.27","https://api.github.com/repos/nuxt-modules/supabase/zipball/v0.1.27",{"name":169,"url":170,"avatar":171},"github:v0.1.27.md",{"name":2192,"tag_name":2405,"date":2406,"body":2407,"v":167,"url":2445,"tarball":2446,"zipball":2447,"prerelease":1689,"author":2448,"title":53,"description":53,"_type":74,"_id":2289},"v0.2.0-16","2022-08-16T14:56:45Z",{"type":57,"children":2408,"toc":2442},[2409,2413,2417,2428],{"type":60,"tag":91,"props":2410,"children":2411},{"id":93},[2412],{"type":65,"value":96},{"type":60,"tag":61,"props":2414,"children":2415},{},[2416],{"type":65,"value":2204},{"type":60,"tag":61,"props":2418,"children":2419},{},[2420,2421,2427],{"type":65,"value":2209},{"type":60,"tag":121,"props":2422,"children":2425},{"href":2423,"rel":2424},"https://supabase.com/docs/reference/javascript/next/release-notes",[125],[2426],{"type":65,"value":2216},{"type":65,"value":1854},{"type":60,"tag":61,"props":2429,"children":2430},{},[2431,2435,2436],{"type":60,"tag":113,"props":2432,"children":2433},{},[2434],{"type":65,"value":442},{"type":65,"value":444},{"type":60,"tag":121,"props":2437,"children":2440},{"href":2438,"rel":2439},"https://github.com/nuxt-community/supabase-module/compare/v0.1.22...v0.2.0",[125],[2441],{"type":65,"value":2438},{"title":53,"searchDepth":72,"depth":72,"links":2443},[2444],{"id":93,"depth":72,"text":96},"https://github.com/nuxt-modules/supabase/releases/tag/v0.2.0-16","https://api.github.com/repos/nuxt-modules/supabase/tarball/v0.2.0-16","https://api.github.com/repos/nuxt-modules/supabase/zipball/v0.2.0-16",{"name":169,"url":170,"avatar":171},{"name":2450,"tag_name":2450,"date":2451,"body":2452,"v":167,"url":2494,"tarball":2495,"zipball":2496,"prerelease":54,"reactions":2497,"author":2499,"title":53,"description":53,"_type":74,"_id":2500},"v0.1.26","2022-09-16T11:17:29Z",{"type":57,"children":2453,"toc":2491},[2454,2458,2472,2477],{"type":60,"tag":91,"props":2455,"children":2456},{"id":93},[2457],{"type":65,"value":96},{"type":60,"tag":105,"props":2459,"children":2460},{},[2461],{"type":60,"tag":109,"props":2462,"children":2463},{},[2464,2465],{"type":65,"value":2369},{"type":60,"tag":121,"props":2466,"children":2469},{"href":2467,"rel":2468},"https://github.com/nuxt/framework/releases/tag/v3.0.0-rc.10",[125],[2470],{"type":65,"value":2471},"rc.10",{"type":60,"tag":61,"props":2473,"children":2474},{},[2475],{"type":65,"value":2476},"Stable in coming 🚀",{"type":60,"tag":61,"props":2478,"children":2479},{},[2480,2484,2485],{"type":60,"tag":113,"props":2481,"children":2482},{},[2483],{"type":65,"value":442},{"type":65,"value":444},{"type":60,"tag":121,"props":2486,"children":2489},{"href":2487,"rel":2488},"https://github.com/nuxt-community/supabase-module/compare/v0.1.25...v0.1.26",[125],[2490],{"type":65,"value":2487},{"title":53,"searchDepth":72,"depth":72,"links":2492},[2493],{"id":93,"depth":72,"text":96},"https://github.com/nuxt-modules/supabase/releases/tag/v0.1.26","https://api.github.com/repos/nuxt-modules/supabase/tarball/v0.1.26","https://api.github.com/repos/nuxt-modules/supabase/zipball/v0.1.26",{"url":2498,"total_count":161,"+1":161,"-1":167,"laugh":167,"hooray":167,"confused":167,"heart":167,"rocket":167,"eyes":167},"https://api.github.com/repos/nuxt-modules/supabase/releases/77384555/reactions",{"name":169,"url":170,"avatar":171},"github:v0.1.26.md",{"name":2502,"tag_name":2502,"date":2503,"body":2504,"v":167,"url":2603,"tarball":2604,"zipball":2605,"prerelease":54,"reactions":2606,"author":2608,"title":53,"description":53,"_type":74,"_id":2609},"v0.1.25","2022-09-05T07:28:01Z",{"type":57,"children":2505,"toc":2600},[2506,2510,2586],{"type":60,"tag":91,"props":2507,"children":2508},{"id":93},[2509],{"type":65,"value":96},{"type":60,"tag":105,"props":2511,"children":2512},{},[2513,2547,2573],{"type":60,"tag":109,"props":2514,"children":2515},{},[2516,2518,2528,2529,2539,2541],{"type":65,"value":2517},"docs: new directory architecture + supabase module v2 coming soon in ",{"type":60,"tag":121,"props":2519,"children":2522},{"href":2520,"rel":2521},"https://github.com/nuxt-modules/supabase/commit/d48522a369bcced45dfb3d16793b33f0144ffa50",[125],[2523],{"type":60,"tag":306,"props":2524,"children":2525},{"className":53},[2526],{"type":65,"value":2527},"d48522a",{"type":65,"value":837},{"type":60,"tag":121,"props":2530,"children":2533},{"href":2531,"rel":2532},"https://github.com/nuxt-modules/supabase/commit/e69712b4862a5baa464c01ae32755473358b82d2",[125],[2534],{"type":60,"tag":306,"props":2535,"children":2536},{"className":53},[2537],{"type":65,"value":2538},"e69712b",{"type":65,"value":2540},". Check out ",{"type":60,"tag":121,"props":2542,"children":2545},{"href":2543,"rel":2544},"https://supabase.nuxtjs.org/",[125],[2546],{"type":65,"value":2543},{"type":60,"tag":109,"props":2548,"children":2549},{},[2550,2552,2562,2563],{"type":65,"value":2551},"chore: upgrade to rc9 in ",{"type":60,"tag":121,"props":2553,"children":2556},{"href":2554,"rel":2555},"https://github.com/nuxt-modules/supabase/commit/3c5220bf9569d2e939a466aa4a2814e0dc38622c",[125],[2557],{"type":60,"tag":306,"props":2558,"children":2559},{"className":53},[2560],{"type":65,"value":2561},"3c5220b",{"type":65,"value":837},{"type":60,"tag":121,"props":2564,"children":2567},{"href":2565,"rel":2566},"https://github.com/nuxt-modules/supabase/commit/495e0b705622e9bda28072815c828beedea1082c",[125],[2568],{"type":60,"tag":306,"props":2569,"children":2570},{"className":53},[2571],{"type":65,"value":2572},"495e0b7",{"type":60,"tag":109,"props":2574,"children":2575},{},[2576,2578,2585],{"type":65,"value":2577},"chore: fix nuxt compatibility (",{"type":60,"tag":121,"props":2579,"children":2582},{"href":2580,"rel":2581},"https://github.com/nuxt-modules/supabase/issues/70",[125],[2583],{"type":65,"value":2584},"#70",{"type":65,"value":139},{"type":60,"tag":61,"props":2587,"children":2588},{},[2589,2593,2594],{"type":60,"tag":113,"props":2590,"children":2591},{},[2592],{"type":65,"value":442},{"type":65,"value":444},{"type":60,"tag":121,"props":2595,"children":2598},{"href":2596,"rel":2597},"https://github.com/nuxt-community/supabase-module/compare/v0.1.23...v0.1.25",[125],[2599],{"type":65,"value":2596},{"title":53,"searchDepth":72,"depth":72,"links":2601},[2602],{"id":93,"depth":72,"text":96},"https://github.com/nuxt-modules/supabase/releases/tag/v0.1.25","https://api.github.com/repos/nuxt-modules/supabase/tarball/v0.1.25","https://api.github.com/repos/nuxt-modules/supabase/zipball/v0.1.25",{"url":2607,"total_count":1000,"+1":167,"-1":167,"laugh":167,"hooray":167,"confused":167,"heart":1000,"rocket":167,"eyes":167},"https://api.github.com/repos/nuxt-modules/supabase/releases/76259131/reactions",{"name":169,"url":170,"avatar":171},"github:v0.1.25.md",{"name":2611,"tag_name":2611,"date":2612,"body":2613,"v":167,"url":2679,"tarball":2680,"zipball":2681,"prerelease":54,"author":2682,"title":53,"description":53,"_type":74,"_id":2683},"v0.1.23","2022-08-16T10:12:13Z",{"type":57,"children":2614,"toc":2676},[2615,2619,2662],{"type":60,"tag":91,"props":2616,"children":2617},{"id":93},[2618],{"type":65,"value":96},{"type":60,"tag":105,"props":2620,"children":2621},{},[2622],{"type":60,"tag":109,"props":2623,"children":2624},{},[2625,2627,2639,2641,2652,2654,2661],{"type":65,"value":2626},"fix: transpile supabase packages in ",{"type":60,"tag":121,"props":2628,"children":2631},{"href":2629,"rel":2630},"https://github.com/nuxt-community/supabase-module/commit/66020204e8aad98db94a83964f1bb988642c90f3",[125],[2632,2634],{"type":65,"value":2633},"nuxt-community/supabase-module@",{"type":60,"tag":306,"props":2635,"children":2636},{"className":53},[2637],{"type":65,"value":2638},"6602020",{"type":65,"value":2640}," ",{"type":60,"tag":121,"props":2642,"children":2645},{"href":2643,"rel":2644},"https://github.com/nuxt-community/supabase-module/commit/237ddf2cf83079e39748b6252182ca1d2f62cc54",[125],[2646,2647],{"type":65,"value":2633},{"type":60,"tag":306,"props":2648,"children":2649},{"className":53},[2650],{"type":65,"value":2651},"237ddf2",{"type":65,"value":2653}," and (",{"type":60,"tag":121,"props":2655,"children":2658},{"href":2656,"rel":2657},"https://github.com/nuxt-modules/supabase/issues/62",[125],[2659],{"type":65,"value":2660},"#62",{"type":65,"value":139},{"type":60,"tag":61,"props":2663,"children":2664},{},[2665,2669,2670],{"type":60,"tag":113,"props":2666,"children":2667},{},[2668],{"type":65,"value":442},{"type":65,"value":444},{"type":60,"tag":121,"props":2671,"children":2674},{"href":2672,"rel":2673},"https://github.com/nuxt-community/supabase-module/compare/v0.1.20...v0.1.23",[125],[2675],{"type":65,"value":2672},{"title":53,"searchDepth":72,"depth":72,"links":2677},[2678],{"id":93,"depth":72,"text":96},"https://github.com/nuxt-modules/supabase/releases/tag/v0.1.23","https://api.github.com/repos/nuxt-modules/supabase/tarball/v0.1.23","https://api.github.com/repos/nuxt-modules/supabase/zipball/v0.1.23",{"name":169,"url":170,"avatar":171},"github:v0.1.23.md",{"name":2685,"tag_name":2685,"date":2686,"body":2687,"v":167,"url":2757,"tarball":2758,"zipball":2759,"prerelease":54,"author":2760,"title":53,"description":53,"_type":74,"_id":2761},"v0.1.20","2022-08-16T09:12:14Z",{"type":57,"children":2688,"toc":2753},[2689,2693,2708,2722,2728],{"type":60,"tag":91,"props":2690,"children":2691},{"id":93},[2692],{"type":65,"value":96},{"type":60,"tag":105,"props":2694,"children":2695},{},[2696],{"type":60,"tag":109,"props":2697,"children":2698},{},[2699,2701],{"type":65,"value":2700},"chore: upgrade to ",{"type":60,"tag":121,"props":2702,"children":2705},{"href":2703,"rel":2704},"https://github.com/nuxt/framework/releases/tag/v3.0.0-rc.8",[125],[2706],{"type":65,"value":2707},"nuxt rc.8",{"type":60,"tag":61,"props":2709,"children":2710},{},[2711,2715,2716],{"type":60,"tag":113,"props":2712,"children":2713},{},[2714],{"type":65,"value":442},{"type":65,"value":444},{"type":60,"tag":121,"props":2717,"children":2720},{"href":2718,"rel":2719},"https://github.com/nuxt-community/supabase-module/compare/v0.1.19...v0.1.20",[125],[2721],{"type":65,"value":2718},{"type":60,"tag":91,"props":2723,"children":2725},{"id":2724},"new-contributors",[2726],{"type":65,"value":2727},"New Contributors",{"type":60,"tag":105,"props":2729,"children":2730},{},[2731],{"type":60,"tag":109,"props":2732,"children":2733},{},[2734,2744,2746],{"type":60,"tag":121,"props":2735,"children":2738},{"href":2736,"rel":2737},"https://github.com/josuemartinezz",[125],[2739],{"type":60,"tag":113,"props":2740,"children":2741},{},[2742],{"type":65,"value":2743},"@josuemartinezz",{"type":65,"value":2745}," made his first contribution in ",{"type":60,"tag":121,"props":2747,"children":2750},{"href":2748,"rel":2749},"https://github.com/nuxt-modules/supabase/issues/59",[125],[2751],{"type":65,"value":2752},"#59",{"title":53,"searchDepth":72,"depth":72,"links":2754},[2755,2756],{"id":93,"depth":72,"text":96},{"id":2724,"depth":72,"text":2727},"https://github.com/nuxt-modules/supabase/releases/tag/v0.1.20","https://api.github.com/repos/nuxt-modules/supabase/tarball/v0.1.20","https://api.github.com/repos/nuxt-modules/supabase/zipball/v0.1.20",{"name":169,"url":170,"avatar":171},"github:v0.1.20.md",{"name":2763,"tag_name":2763,"date":2764,"body":2765,"v":167,"url":2818,"tarball":2819,"zipball":2820,"prerelease":54,"reactions":2821,"author":2823,"title":53,"description":53,"_type":74,"_id":2824},"v0.1.19","2022-07-18T08:18:42Z",{"type":57,"children":2766,"toc":2815},[2767,2771,2801],{"type":60,"tag":91,"props":2768,"children":2769},{"id":93},[2770],{"type":65,"value":96},{"type":60,"tag":105,"props":2772,"children":2773},{},[2774,2785],{"type":60,"tag":109,"props":2775,"children":2776},{},[2777,2778],{"type":65,"value":2700},{"type":60,"tag":121,"props":2779,"children":2782},{"href":2780,"rel":2781},"https://github.com/nuxt/framework/pull/5825",[125],[2783],{"type":65,"value":2784},"nuxt rc.5",{"type":60,"tag":109,"props":2786,"children":2787},{},[2788,2790],{"type":65,"value":2789},"doc: add supabase icon in ",{"type":60,"tag":121,"props":2791,"children":2794},{"href":2792,"rel":2793},"https://github.com/nuxt-community/supabase-module/commit/c0cce016eae809fd64acc9a503b4807750280b39",[125],[2795,2796],{"type":65,"value":2633},{"type":60,"tag":306,"props":2797,"children":2798},{"className":53},[2799],{"type":65,"value":2800},"c0cce01",{"type":60,"tag":61,"props":2802,"children":2803},{},[2804,2808,2809],{"type":60,"tag":113,"props":2805,"children":2806},{},[2807],{"type":65,"value":442},{"type":65,"value":444},{"type":60,"tag":121,"props":2810,"children":2813},{"href":2811,"rel":2812},"https://github.com/nuxt-community/supabase-module/compare/v0.1.18...v0.1.19",[125],[2814],{"type":65,"value":2811},{"title":53,"searchDepth":72,"depth":72,"links":2816},[2817],{"id":93,"depth":72,"text":96},"https://github.com/nuxt-modules/supabase/releases/tag/v0.1.19","https://api.github.com/repos/nuxt-modules/supabase/tarball/v0.1.19","https://api.github.com/repos/nuxt-modules/supabase/zipball/v0.1.19",{"url":2822,"total_count":161,"+1":167,"-1":167,"laugh":167,"hooray":167,"confused":167,"heart":167,"rocket":161,"eyes":167},"https://api.github.com/repos/nuxt-modules/supabase/releases/72200550/reactions",{"name":169,"url":170,"avatar":171},"github:v0.1.19.md",{"name":2826,"tag_name":2826,"date":2827,"body":2828,"v":167,"url":2903,"tarball":2904,"zipball":2905,"prerelease":54,"author":2906,"title":53,"description":53,"_type":74,"_id":2907},"v0.1.18","2022-06-29T09:23:26Z",{"type":57,"children":2829,"toc":2900},[2830,2834,2886],{"type":60,"tag":91,"props":2831,"children":2832},{"id":93},[2833],{"type":65,"value":96},{"type":60,"tag":105,"props":2835,"children":2836},{},[2837,2862],{"type":60,"tag":109,"props":2838,"children":2839},{},[2840,2842,2853,2854,2861],{"type":65,"value":2841},"doc: update logo & social preview in ",{"type":60,"tag":121,"props":2843,"children":2846},{"href":2844,"rel":2845},"https://github.com/nuxt-community/supabase-module/commit/9b0b2fbee1f2fed50e903c2b368b817568d7ab1f",[125],[2847,2848],{"type":65,"value":2633},{"type":60,"tag":306,"props":2849,"children":2850},{"className":53},[2851],{"type":65,"value":2852},"9b0b2fb",{"type":65,"value":202},{"type":60,"tag":121,"props":2855,"children":2858},{"href":2856,"rel":2857},"https://github.com/nuxt-modules/supabase/issues/53",[125],[2859],{"type":65,"value":2860},"#53",{"type":65,"value":139},{"type":60,"tag":109,"props":2863,"children":2864},{},[2865,2866,2877,2878,2885],{"type":65,"value":2626},{"type":60,"tag":121,"props":2867,"children":2870},{"href":2868,"rel":2869},"https://github.com/nuxt-community/supabase-module/commit/309c137f7ae23985f0ed9947fb85cb75cbfbfca2",[125],[2871,2872],{"type":65,"value":2633},{"type":60,"tag":306,"props":2873,"children":2874},{"className":53},[2875],{"type":65,"value":2876},"309c137",{"type":65,"value":202},{"type":60,"tag":121,"props":2879,"children":2882},{"href":2880,"rel":2881},"https://github.com/nuxt-modules/supabase/issues/55",[125],[2883],{"type":65,"value":2884},"#55",{"type":65,"value":139},{"type":60,"tag":61,"props":2887,"children":2888},{},[2889,2893,2894],{"type":60,"tag":113,"props":2890,"children":2891},{},[2892],{"type":65,"value":442},{"type":65,"value":444},{"type":60,"tag":121,"props":2895,"children":2898},{"href":2896,"rel":2897},"https://github.com/nuxt-community/supabase-module/compare/v0.1.17...v0.1.18",[125],[2899],{"type":65,"value":2896},{"title":53,"searchDepth":72,"depth":72,"links":2901},[2902],{"id":93,"depth":72,"text":96},"https://github.com/nuxt-modules/supabase/releases/tag/v0.1.18","https://api.github.com/repos/nuxt-modules/supabase/tarball/v0.1.18","https://api.github.com/repos/nuxt-modules/supabase/zipball/v0.1.18",{"name":169,"url":170,"avatar":171},"github:v0.1.18.md",{"name":2909,"tag_name":2909,"date":2910,"body":2911,"v":167,"url":3001,"tarball":3002,"zipball":3003,"prerelease":54,"reactions":3004,"author":3006,"title":53,"description":53,"_type":74,"_id":3007},"v0.1.17","2022-06-17T07:01:12Z",{"type":57,"children":2912,"toc":2998},[2913,2917,2971,2984],{"type":60,"tag":91,"props":2914,"children":2915},{"id":93},[2916],{"type":65,"value":96},{"type":60,"tag":105,"props":2918,"children":2919},{},[2920,2931,2955],{"type":60,"tag":109,"props":2921,"children":2922},{},[2923,2924],{"type":65,"value":2700},{"type":60,"tag":121,"props":2925,"children":2928},{"href":2926,"rel":2927},"https://github.com/nuxt/framework/discussions/5445",[125],[2929],{"type":65,"value":2930},"nuxt rc.4",{"type":60,"tag":109,"props":2932,"children":2933},{},[2934,2936,2943,2944],{"type":65,"value":2935},"doc: update ",{"type":60,"tag":121,"props":2937,"children":2940},{"href":2938,"rel":2939},"https://docus.com/",[125],[2941],{"type":65,"value":2942},"docus theme",{"type":65,"value":2121},{"type":60,"tag":121,"props":2945,"children":2948},{"href":2946,"rel":2947},"https://github.com/nuxt-community/supabase-module/commit/64a5add3db5e0416a8a3b7f9708d27148797e958",[125],[2949,2950],{"type":65,"value":2633},{"type":60,"tag":306,"props":2951,"children":2952},{"className":53},[2953],{"type":65,"value":2954},"64a5add",{"type":60,"tag":109,"props":2956,"children":2957},{},[2958,2960],{"type":65,"value":2959},"doc: add advanced usage with supabase realtime ",{"type":60,"tag":121,"props":2961,"children":2964},{"href":2962,"rel":2963},"https://github.com/nuxt-community/supabase-module/commit/8047e311e5526a4597b81a99dc8045114348172f",[125],[2965,2966],{"type":65,"value":2633},{"type":60,"tag":306,"props":2967,"children":2968},{"className":53},[2969],{"type":65,"value":2970},"8047e31",{"type":60,"tag":61,"props":2972,"children":2973},{},[2974,2976,2982],{"type":65,"value":2975},"Checkout the ",{"type":60,"tag":121,"props":2977,"children":2980},{"href":2978,"rel":2979},"https://supabase.nuxtjs.org/advanced#realtime",[125],[2981],{"type":65,"value":2228},{"type":65,"value":2983}," for supabase realtime!",{"type":60,"tag":61,"props":2985,"children":2986},{},[2987,2991,2992],{"type":60,"tag":113,"props":2988,"children":2989},{},[2990],{"type":65,"value":442},{"type":65,"value":444},{"type":60,"tag":121,"props":2993,"children":2996},{"href":2994,"rel":2995},"https://github.com/nuxt-community/supabase-module/compare/v0.1.16...v0.1.17",[125],[2997],{"type":65,"value":2994},{"title":53,"searchDepth":72,"depth":72,"links":2999},[3000],{"id":93,"depth":72,"text":96},"https://github.com/nuxt-modules/supabase/releases/tag/v0.1.17","https://api.github.com/repos/nuxt-modules/supabase/tarball/v0.1.17","https://api.github.com/repos/nuxt-modules/supabase/zipball/v0.1.17",{"url":3005,"total_count":161,"+1":167,"-1":167,"laugh":167,"hooray":167,"confused":167,"heart":161,"rocket":167,"eyes":167},"https://api.github.com/repos/nuxt-modules/supabase/releases/69689480/reactions",{"name":169,"url":170,"avatar":171},"github:v0.1.17.md",{"name":3009,"tag_name":3009,"date":3010,"body":3011,"v":167,"url":3107,"tarball":3108,"zipball":3109,"prerelease":54,"author":3110,"title":53,"description":53,"_type":74,"_id":3111},"v0.1.16","2022-06-01T10:51:45Z",{"type":57,"children":3012,"toc":3104},[3013,3017,3078,3090],{"type":60,"tag":91,"props":3014,"children":3015},{"id":93},[3016],{"type":65,"value":96},{"type":60,"tag":105,"props":3018,"children":3019},{},[3020,3053],{"type":60,"tag":109,"props":3021,"children":3022},{},[3023,3025,3032,3033,3044,3045,3052],{"type":65,"value":3024},"doc: use docus theme (public release coming soon) powered by ",{"type":60,"tag":121,"props":3026,"children":3029},{"href":3027,"rel":3028},"https://content.nuxtjs.org/",[125],[3030],{"type":65,"value":3031},"nuxt content v2",{"type":65,"value":2121},{"type":60,"tag":121,"props":3034,"children":3037},{"href":3035,"rel":3036},"https://github.com/nuxt-community/supabase-module/commit/c24a16ff0bc94221adc021231a2206b6db8f293c",[125],[3038,3039],{"type":65,"value":2633},{"type":60,"tag":306,"props":3040,"children":3041},{"className":53},[3042],{"type":65,"value":3043},"c24a16f",{"type":65,"value":202},{"type":60,"tag":121,"props":3046,"children":3049},{"href":3047,"rel":3048},"https://github.com/nuxt-modules/supabase/issues/41",[125],[3050],{"type":65,"value":3051},"#41",{"type":65,"value":139},{"type":60,"tag":109,"props":3054,"children":3055},{},[3056,3058,3069,3070,3077],{"type":65,"value":3057},"feat: service role client to bypass RLS in ",{"type":60,"tag":121,"props":3059,"children":3062},{"href":3060,"rel":3061},"https://github.com/nuxt-community/supabase-module/commit/ba70a976be97acb3c438d59e45b789ee917bee6b",[125],[3063,3064],{"type":65,"value":2633},{"type":60,"tag":306,"props":3065,"children":3066},{"className":53},[3067],{"type":65,"value":3068},"ba70a97",{"type":65,"value":202},{"type":60,"tag":121,"props":3071,"children":3074},{"href":3072,"rel":3073},"https://github.com/nuxt-modules/supabase/issues/43",[125],[3075],{"type":65,"value":3076},"#43",{"type":65,"value":139},{"type":60,"tag":61,"props":3079,"children":3080},{},[3081,3083,3088],{"type":65,"value":3082},"Checkout the new ",{"type":60,"tag":121,"props":3084,"children":3086},{"href":696,"rel":3085},[125],[3087],{"type":65,"value":2228},{"type":65,"value":3089}," !",{"type":60,"tag":61,"props":3091,"children":3092},{},[3093,3097,3098],{"type":60,"tag":113,"props":3094,"children":3095},{},[3096],{"type":65,"value":442},{"type":65,"value":444},{"type":60,"tag":121,"props":3099,"children":3102},{"href":3100,"rel":3101},"https://github.com/nuxt-community/supabase-module/compare/v0.1.14...v0.1.16",[125],[3103],{"type":65,"value":3100},{"title":53,"searchDepth":72,"depth":72,"links":3105},[3106],{"id":93,"depth":72,"text":96},"https://github.com/nuxt-modules/supabase/releases/tag/v0.1.16","https://api.github.com/repos/nuxt-modules/supabase/tarball/v0.1.16","https://api.github.com/repos/nuxt-modules/supabase/zipball/v0.1.16",{"name":169,"url":170,"avatar":171},"github:v0.1.16.md",{"name":3113,"tag_name":3113,"date":3114,"body":3115,"v":167,"url":3219,"tarball":3220,"zipball":3221,"prerelease":54,"author":3222,"title":53,"description":53,"_type":74,"_id":3223},"v0.1.14","2022-05-13T16:48:40Z",{"type":57,"children":3116,"toc":3216},[3117,3121,3181,3202],{"type":60,"tag":91,"props":3118,"children":3119},{"id":93},[3120],{"type":65,"value":96},{"type":60,"tag":105,"props":3122,"children":3123},{},[3124,3140,3156],{"type":60,"tag":109,"props":3125,"children":3126},{},[3127,3129],{"type":65,"value":3128},"feat: add playground folder in ",{"type":60,"tag":121,"props":3130,"children":3133},{"href":3131,"rel":3132},"https://github.com/nuxt-community/supabase-module/commit/339cf31cf48d4059ba0e4470d6e5e2aa9ef184c7",[125],[3134,3135],{"type":65,"value":2633},{"type":60,"tag":306,"props":3136,"children":3137},{"className":53},[3138],{"type":65,"value":3139},"339cf31",{"type":60,"tag":109,"props":3141,"children":3142},{},[3143,3145],{"type":65,"value":3144},"fix: client options in ",{"type":60,"tag":121,"props":3146,"children":3149},{"href":3147,"rel":3148},"https://github.com/nuxt-community/supabase-module/commit/4c5595c11caf7a55621d297f6a0183a756175473",[125],[3150,3151],{"type":65,"value":2633},{"type":60,"tag":306,"props":3152,"children":3153},{"className":53},[3154],{"type":65,"value":3155},"4c5595c",{"type":60,"tag":109,"props":3157,"children":3158},{},[3159,3161,3172,3173,3180],{"type":65,"value":3160},"feat: add server routes services in ",{"type":60,"tag":121,"props":3162,"children":3165},{"href":3163,"rel":3164},"https://github.com/nuxt-community/supabase-module/commit/696d3e8d19b8db79c85e86b79a3ba4dd31bb2343",[125],[3166,3167],{"type":65,"value":2633},{"type":60,"tag":306,"props":3168,"children":3169},{"className":53},[3170],{"type":65,"value":3171},"696d3e8",{"type":65,"value":202},{"type":60,"tag":121,"props":3174,"children":3177},{"href":3175,"rel":3176},"https://github.com/nuxt-modules/supabase/issues/36",[125],[3178],{"type":65,"value":3179},"#36",{"type":65,"value":139},{"type":60,"tag":61,"props":3182,"children":3183},{},[3184,3186,3193,3195,3200],{"type":65,"value":3185},"You can check the ",{"type":60,"tag":121,"props":3187,"children":3190},{"href":3188,"rel":3189},"https://supabase.nuxtjs.org/usage#server-routes-services",[125],[3191],{"type":65,"value":3192},"documentation updated",{"type":65,"value":3194}," for the use of ",{"type":60,"tag":306,"props":3196,"children":3197},{"className":53},[3198],{"type":65,"value":3199},"services",{"type":65,"value":3201}," in server routes.",{"type":60,"tag":61,"props":3203,"children":3204},{},[3205,3209,3210],{"type":60,"tag":113,"props":3206,"children":3207},{},[3208],{"type":65,"value":442},{"type":65,"value":444},{"type":60,"tag":121,"props":3211,"children":3214},{"href":3212,"rel":3213},"https://github.com/nuxt-community/supabase-module/compare/v0.1.11...v0.1.14",[125],[3215],{"type":65,"value":3212},{"title":53,"searchDepth":72,"depth":72,"links":3217},[3218],{"id":93,"depth":72,"text":96},"https://github.com/nuxt-modules/supabase/releases/tag/v0.1.14","https://api.github.com/repos/nuxt-modules/supabase/tarball/v0.1.14","https://api.github.com/repos/nuxt-modules/supabase/zipball/v0.1.14",{"name":169,"url":170,"avatar":171},"github:v0.1.14.md",{"name":3225,"tag_name":3225,"date":3226,"body":3227,"v":167,"url":3253,"tarball":3254,"zipball":3255,"prerelease":54,"author":3256,"title":53,"description":53,"_type":74,"_id":3257},"v0.1.11","2022-05-06T08:51:02Z",{"type":57,"children":3228,"toc":3251},[3229,3237],{"type":60,"tag":105,"props":3230,"children":3231},{},[3232],{"type":60,"tag":109,"props":3233,"children":3234},{},[3235],{"type":65,"value":3236},"chore: upgrade deps",{"type":60,"tag":61,"props":3238,"children":3239},{},[3240,3244,3245],{"type":60,"tag":113,"props":3241,"children":3242},{},[3243],{"type":65,"value":442},{"type":65,"value":444},{"type":60,"tag":121,"props":3246,"children":3249},{"href":3247,"rel":3248},"https://github.com/nuxt-community/supabase-module/compare/v0.1.9...v0.1.11",[125],[3250],{"type":65,"value":3247},{"title":53,"searchDepth":72,"depth":72,"links":3252},[],"https://github.com/nuxt-modules/supabase/releases/tag/v0.1.11","https://api.github.com/repos/nuxt-modules/supabase/tarball/v0.1.11","https://api.github.com/repos/nuxt-modules/supabase/zipball/v0.1.11",{"name":169,"url":170,"avatar":171},"github:v0.1.11.md",{"name":3259,"tag_name":3259,"date":3260,"body":3261,"v":167,"url":3311,"tarball":3312,"zipball":3313,"prerelease":54,"author":3314,"title":53,"description":53,"_type":74,"_id":3318},"v0.1.9","2022-04-20T11:07:23Z",{"type":57,"children":3262,"toc":3309},[3263,3295],{"type":60,"tag":105,"props":3264,"children":3265},{},[3266],{"type":60,"tag":109,"props":3267,"children":3268},{},[3269,3271,3276,3277,3282,3283,3294],{"type":65,"value":3270},"fix: use ",{"type":60,"tag":306,"props":3272,"children":3273},{"className":53},[3274],{"type":65,"value":3275},"#imports",{"type":65,"value":1839},{"type":60,"tag":306,"props":3278,"children":3279},{"className":53},[3280],{"type":65,"value":3281},"#nitro",{"type":65,"value":202},{"type":60,"tag":121,"props":3284,"children":3287},{"href":3285,"rel":3286},"https://github.com/nuxt-community/supabase-module/commit/42af598b7d9f3adf2c577c20e9cfb68bbb17d52b",[125],[3288,3289],{"type":65,"value":2633},{"type":60,"tag":306,"props":3290,"children":3291},{"className":53},[3292],{"type":65,"value":3293},"42af598",{"type":65,"value":139},{"type":60,"tag":61,"props":3296,"children":3297},{},[3298,3302,3303],{"type":60,"tag":113,"props":3299,"children":3300},{},[3301],{"type":65,"value":442},{"type":65,"value":444},{"type":60,"tag":121,"props":3304,"children":3307},{"href":3305,"rel":3306},"https://github.com/nuxt-community/supabase-module/compare/v0.1.8...v0.1.9",[125],[3308],{"type":65,"value":3305},{"title":53,"searchDepth":72,"depth":72,"links":3310},[],"https://github.com/nuxt-modules/supabase/releases/tag/v0.1.9","https://api.github.com/repos/nuxt-modules/supabase/tarball/v0.1.9","https://api.github.com/repos/nuxt-modules/supabase/zipball/v0.1.9",{"name":3315,"url":3316,"avatar":3317},"Atinux","https://github.com/Atinux","https://avatars.githubusercontent.com/u/904724?v=4","github:v0.1.9.md",{"name":3320,"tag_name":3320,"date":3321,"body":3322,"v":167,"url":3376,"tarball":3377,"zipball":3378,"prerelease":54,"author":3379,"title":53,"description":53,"_type":74,"_id":3380},"v0.1.8","2022-04-13T12:26:33Z",{"type":57,"children":3323,"toc":3373},[3324,3328],{"type":60,"tag":91,"props":3325,"children":3326},{"id":93},[3327],{"type":65,"value":96},{"type":60,"tag":105,"props":3329,"children":3330},{},[3331,3347],{"type":60,"tag":109,"props":3332,"children":3333},{},[3334,3336],{"type":65,"value":3335},"fix: update runtime config fetch and override in ",{"type":60,"tag":121,"props":3337,"children":3340},{"href":3338,"rel":3339},"https://github.com/nuxt-community/supabase-module/commit/260ebc7be39dfa65902ad4fe6a49639c99a69da8",[125],[3341,3342],{"type":65,"value":2633},{"type":60,"tag":306,"props":3343,"children":3344},{"className":53},[3345],{"type":65,"value":3346},"260ebc7",{"type":60,"tag":109,"props":3348,"children":3349},{},[3350,3352,3363,3365,3372],{"type":65,"value":3351},"feat: handle session with defineEventHandler in ",{"type":60,"tag":121,"props":3353,"children":3356},{"href":3354,"rel":3355},"https://github.com/nuxt-community/supabase-module/commit/e646b1ce03773bf44932824726f280ad15455ec2",[125],[3357,3358],{"type":65,"value":2633},{"type":60,"tag":306,"props":3359,"children":3360},{"className":53},[3361],{"type":65,"value":3362},"e646b1c",{"type":65,"value":3364}," (Check ",{"type":60,"tag":121,"props":3366,"children":3369},{"href":3367,"rel":3368},"https://v3.nuxtjs.org/guide/features/server-routes",[125],[3370],{"type":65,"value":3371},"Nuxt doc",{"type":65,"value":139},{"title":53,"searchDepth":72,"depth":72,"links":3374},[3375],{"id":93,"depth":72,"text":96},"https://github.com/nuxt-modules/supabase/releases/tag/v0.1.8","https://api.github.com/repos/nuxt-modules/supabase/tarball/v0.1.8","https://api.github.com/repos/nuxt-modules/supabase/zipball/v0.1.8",{"name":169,"url":170,"avatar":171},"github:v0.1.8.md",{"name":3382,"tag_name":3382,"date":3383,"body":3384,"v":167,"url":3461,"tarball":3462,"zipball":3463,"prerelease":54,"reactions":3464,"author":3466,"title":53,"description":53,"_type":74,"_id":3467},"v0.1.7","2022-04-07T21:31:24Z",{"type":57,"children":3385,"toc":3457},[3386,3390,3432,3436],{"type":60,"tag":91,"props":3387,"children":3388},{"id":93},[3389],{"type":65,"value":96},{"type":60,"tag":105,"props":3391,"children":3392},{},[3393,3409],{"type":60,"tag":109,"props":3394,"children":3395},{},[3396,3398],{"type":65,"value":3397},"fix: assert method and use correct key for server middleware in ",{"type":60,"tag":121,"props":3399,"children":3402},{"href":3400,"rel":3401},"https://github.com/nuxt-community/supabase-module/commit/8a4d63101e6d2bc24563f7944988909ec7dcc6e5",[125],[3403,3404],{"type":65,"value":2633},{"type":60,"tag":306,"props":3405,"children":3406},{"className":53},[3407],{"type":65,"value":3408},"8a4d631",{"type":60,"tag":109,"props":3410,"children":3411},{},[3412,3414,3424,3425],{"type":65,"value":3413},"fix: replace #config with #nitro by ",{"type":60,"tag":121,"props":3415,"children":3418},{"href":3416,"rel":3417},"https://github.com/psto",[125],[3419],{"type":60,"tag":113,"props":3420,"children":3421},{},[3422],{"type":65,"value":3423},"@psto",{"type":65,"value":2121},{"type":60,"tag":121,"props":3426,"children":3429},{"href":3427,"rel":3428},"https://github.com/nuxt-community/supabase-module/pull/23",[125],[3430],{"type":65,"value":3431},"nuxt-community/supabase-module#23",{"type":60,"tag":91,"props":3433,"children":3434},{"id":2724},[3435],{"type":65,"value":2727},{"type":60,"tag":105,"props":3437,"children":3438},{},[3439],{"type":60,"tag":109,"props":3440,"children":3441},{},[3442,3450,3452],{"type":60,"tag":121,"props":3443,"children":3445},{"href":3416,"rel":3444},[125],[3446],{"type":60,"tag":113,"props":3447,"children":3448},{},[3449],{"type":65,"value":3423},{"type":65,"value":3451}," made their first contribution in ",{"type":60,"tag":121,"props":3453,"children":3455},{"href":3427,"rel":3454},[125],[3456],{"type":65,"value":3431},{"title":53,"searchDepth":72,"depth":72,"links":3458},[3459,3460],{"id":93,"depth":72,"text":96},{"id":2724,"depth":72,"text":2727},"https://github.com/nuxt-modules/supabase/releases/tag/v0.1.7","https://api.github.com/repos/nuxt-modules/supabase/tarball/v0.1.7","https://api.github.com/repos/nuxt-modules/supabase/zipball/v0.1.7",{"url":3465,"total_count":160,"+1":167,"-1":167,"laugh":167,"hooray":160,"confused":167,"heart":167,"rocket":167,"eyes":167},"https://api.github.com/repos/nuxt-modules/supabase/releases/63922233/reactions",{"name":3315,"url":3316,"avatar":3317},"github:v0.1.7.md",{"name":3469,"tag_name":3469,"date":3470,"body":3471,"v":167,"url":3518,"tarball":3519,"zipball":3520,"prerelease":54,"reactions":3521,"author":3524,"title":53,"description":53,"_type":74,"_id":3525},"v0.1.5","2022-04-04T10:15:21Z",{"type":57,"children":3472,"toc":3515},[3473,3477,3501],{"type":60,"tag":98,"props":3474,"children":3475},{"id":100},[3476],{"type":65,"value":103},{"type":60,"tag":105,"props":3478,"children":3479},{},[3480],{"type":60,"tag":109,"props":3481,"children":3482},{},[3483,3485,3492,3494],{"type":65,"value":3484},"remove lodash.clonedeep (",{"type":60,"tag":121,"props":3486,"children":3489},{"href":3487,"rel":3488},"https://github.com/nuxt-community/supabase-module/commit/b5c5c60358ab192b98c8a63185f58a2eb0ab706a",[125],[3490],{"type":65,"value":3491},"b5c5c60",{"type":65,"value":3493},"), resolved ",{"type":60,"tag":121,"props":3495,"children":3498},{"href":3496,"rel":3497},"https://github.com/nuxt-modules/supabase/issues/21",[125],[3499],{"type":65,"value":3500},"#21",{"type":60,"tag":61,"props":3502,"children":3503},{},[3504,3508,3509],{"type":60,"tag":113,"props":3505,"children":3506},{},[3507],{"type":65,"value":442},{"type":65,"value":444},{"type":60,"tag":121,"props":3510,"children":3513},{"href":3511,"rel":3512},"https://github.com/nuxt-community/supabase-module/compare/v0.1.4...v0.1.5",[125],[3514],{"type":65,"value":3511},{"title":53,"searchDepth":72,"depth":72,"links":3516},[3517],{"id":100,"depth":160,"text":103},"https://github.com/nuxt-modules/supabase/releases/tag/v0.1.5","https://api.github.com/repos/nuxt-modules/supabase/tarball/v0.1.5","https://api.github.com/repos/nuxt-modules/supabase/zipball/v0.1.5",{"url":3522,"total_count":3523,"+1":167,"-1":167,"laugh":167,"hooray":279,"confused":167,"heart":72,"rocket":167,"eyes":167},"https://api.github.com/repos/nuxt-modules/supabase/releases/63507078/reactions",6,{"name":3315,"url":3316,"avatar":3317},"github:v0.1.5.md",1703757838248] \ No newline at end of file diff --git a/changelog/index.html b/changelog/index.html index fd749c21..343d1840 100644 --- a/changelog/index.html +++ b/changelog/index.html @@ -67,37 +67,37 @@ - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + - - + + - -
mobile favicon

Changelog

Discover the latest updates of the Supabase Module

Discover the lastest updates.

v1.1.4 November 17, 2023

What's Changed

Bug Fixes

  • client: prevent useCookie usage outside of effect scope (#309) (bb55bed)

💚 Thanks for the help from 💚 @AlbertBrand

v1.1.3 October 6, 2023

What's Changed

💚 Thanks for the help from 💚 @@ -119,6 +119,6 @@ @tnntwister @yannaufray @DamianGlowala

v0.3.3 March 31, 2023

What's Changed

  • perf(useSupabaseAuthClient): avoid declaring unused variables (#166) (8c070b9)
  • feat(demo): add call from server route (989a91e)
  • chore(demo): upgrade deps (9ebbc77)
  • chore(deps): upgrade (e274a5e)
  • docs(composables): correct grammar errors (#162) (034d7df)
  • docs(readme): add nuxt badge (68271b8)
  • docs(demo): fix typo (#125) (bd33d12)
  • docs(get-started): fix typos (#154) (ba437a8)
  • chore(module): conditionally add redirect plugin (#157) (0cad0a5)
  • chore(app): move to pnpm (94f7e13)
  • docs(links): update nuxt & supabase links and fix typos (#126) (5699dc6)
  • chore(demo): generate database types from supabase cli (bca1992)

Full Changelog: https://github.com/nuxt-community/supabase-module/compare/v0.3.1...v0.3.3

v0.3.1 February 7, 2023

What's Changed

  • chore(app): upgrade deps and fix lint (68baf68)
  • fix(client): unset user before session on logout (ab574ef)
  • chore(demo): update with latest and fix logout

Full Changelog: https://github.com/nuxt-community/supabase-module/compare/v0.3.0...v0.3.1

v0.3.0 November 22, 2022

⚠️ BREAKING CHANGES ⚠️

What's Changed

In order to resolve #114, I have made the choice to separate the useSupabaseClient in two other composables:

  • The useSupabaseAuthClient is dedicated to authentification purpose only. It won't be recreate if your token expires, it is used in the client plugin to listen to onAuthStateChange events.
  • The useSupabaseClient is now only useful for data request.

To avoid regression you just need to use useSupabaseAuthClient instead of useSupabaseClient everywhere you use Supabase auth methods.

Documentation has been updated.

Full Changelog: https://github.com/nuxt-community/supabase-module/compare/v0.2.6...v0.3.0

v0.2.5 November 22, 2022

What's Changed

  • fix: use Router instead of navigateTo for login redirect in 79fc0e4 (resolves #89)

Full Changelog: https://github.com/nuxt-community/supabase-module/compare/v0.2.4...v0.2.5

v0.2.3 November 11, 2022

What's Changed

Contributors

Thanks to @manniL and @levibe 💚

Full Changelog: https://github.com/nuxt-community/supabase-module/compare/v0.2.0...v0.2.3

v0.2.0 October 17, 2022

What's Changed

⚠️ Breaking Changes

Upgrade to supabase-js v2, check Supabase release notes.

Module documentation has been updated in favor of supabase v2 syntax.

Please feel free to make PR if I missed something 🙏

🚀 Features

  • options: redirect user after signout or when user is not authenticated (check documentation)
  • session: set refresh token #18

Full Changelog: https://github.com/nuxt-community/supabase-module/compare/v0.1.28...v0.2.0

v0.2.0 August 16, 2022

What's Changed

⚠️ Breaking Changes

Upgrade to supabase-js v2, check Supabase release notes.

Full Changelog: https://github.com/nuxt-community/supabase-module/compare/v0.1.22...v0.2.0

v0.1.25 September 5, 2022

What's Changed

Full Changelog: https://github.com/nuxt-community/supabase-module/compare/v0.1.23...v0.1.25

v0.1.16 June 1, 2022

What's Changed

Checkout the new documentation !

Full Changelog: https://github.com/nuxt-community/supabase-module/compare/v0.1.14...v0.1.16

v0.1.14 May 13, 2022

What's Changed

You can check the documentation updated for the use of services in server routes.

Full Changelog: https://github.com/nuxt-community/supabase-module/compare/v0.1.11...v0.1.14

v0.1.8 April 13, 2022

What's Changed

v0.1.7 April 7, 2022

What's Changed

New Contributors


Made with Nuxt Studio
- - + + \ No newline at end of file diff --git a/demo/_payload.json b/demo/_payload.json index 15a1ae52..aa45286d 100644 --- a/demo/_payload.json +++ b/demo/_payload.json @@ -1 +1 @@ -[{"data":1,"prerenderedAt":154},["Reactive",2],{"navigation":3,"/demo":52,"/demo-surround":149},[4,8,12,40,44,48],{"title":5,"_path":6,"icon":7},"Get Started","/get-started","heroicons:rocket-launch",{"title":9,"_path":10,"icon":11},"Authentication","/authentication","heroicons:lock-closed",{"title":13,"_path":14,"children":15,"icon":39},"Usage","/usage",[16,26],{"title":17,"_path":18,"children":19},"Vue composables","/usage/composables",[20,23],{"title":21,"_path":22},"useSupabaseClient","/usage/composables/usesupabaseclient",{"title":24,"_path":25},"useSupabaseUser","/usage/composables/usesupabaseuser",{"title":27,"_path":28,"children":29},"Server services","/usage/services",[30,33,36],{"title":31,"_path":32},"serverSupabaseClient","/usage/services/serversupabaseclient",{"title":34,"_path":35},"serverSupabaseServiceRole","/usage/services/serversupabaseservicerole",{"title":37,"_path":38},"serverSupabaseUser","/usage/services/serversupabaseuser","heroicons:book-open",{"title":41,"_path":42,"icon":43},"Demo","/demo","heroicons:computer-desktop-20-solid",{"title":45,"_path":46,"icon":47},"Changelog","/changelog","heroicons:bookmark",{"title":49,"_path":50,"icon":51},"Roadmap","/roadmap","heroicons:map",{"_path":42,"_dir":53,"_draft":54,"_partial":54,"_locale":53,"title":41,"description":55,"icon":43,"body":56,"_type":144,"_id":145,"_source":146,"_file":147,"_extension":148},"",false,"Demonstration of using Supabase with Nuxt.",{"type":57,"children":58,"toc":138},"root",[59,66,82,89,100,106,120,126],{"type":60,"tag":61,"props":62,"children":63},"element","p",{},[64],{"type":65,"value":55},"text",{"type":60,"tag":61,"props":67,"children":68},{},[69],{"type":60,"tag":70,"props":71,"children":75},"a",{"href":72,"rel":73},"https://n3-supabase.netlify.app",[74],"nofollow",[76],{"type":60,"tag":77,"props":78,"children":81},"img",{"alt":79,"src":80},"Supabase demo with Nuxt 3","https://user-images.githubusercontent.com/904724/160422461-8f87500a-8dec-4413-86b2-ba04e1b2d17b.png",[],{"type":60,"tag":83,"props":84,"children":86},"h2",{"id":85},"live-demo",[87],{"type":65,"value":88},"Live demo",{"type":60,"tag":61,"props":90,"children":91},{},[92,94],{"type":65,"value":93},"You can play with the demo on ",{"type":60,"tag":70,"props":95,"children":97},{"href":72,"rel":96},[74],[98],{"type":65,"value":99},"n3-supabase.netlify.app",{"type":60,"tag":83,"props":101,"children":103},{"id":102},"running-locally",[104],{"type":65,"value":105},"Running locally",{"type":60,"tag":61,"props":107,"children":108},{},[109,111,118],{"type":65,"value":110},"Follow the instruction in the ",{"type":60,"tag":70,"props":112,"children":115},{"href":113,"rel":114},"https://github.com/nuxt-community/supabase-module/tree/main/demo",[74],[116],{"type":65,"value":117},"demo Readme",{"type":65,"value":119},".",{"type":60,"tag":83,"props":121,"children":123},{"id":122},"source-code",[124],{"type":65,"value":125},"Source code",{"type":60,"tag":61,"props":127,"children":128},{},[129,131,137],{"type":65,"value":130},"The source code is available on Github in the ",{"type":60,"tag":70,"props":132,"children":134},{"href":113,"rel":133},[74],[135],{"type":65,"value":136},"demo/ directory",{"type":65,"value":119},{"title":53,"searchDepth":139,"depth":139,"links":140},2,[141,142,143],{"id":85,"depth":139,"text":88},{"id":102,"depth":139,"text":105},{"id":122,"depth":139,"text":125},"markdown","content:5.demo.md","content","5.demo.md","md",[150,152],{"_path":38,"title":37,"description":151},"Get your Supabase user from serverside with the serverSupabaseUser service",{"_path":46,"title":45,"description":153},"Discover the latest updates of the Supabase Module",1703671431799] \ No newline at end of file +[{"data":1,"prerenderedAt":154},["Reactive",2],{"navigation":3,"/demo":52,"/demo-surround":149},[4,8,12,40,44,48],{"title":5,"_path":6,"icon":7},"Get Started","/get-started","heroicons:rocket-launch",{"title":9,"_path":10,"icon":11},"Authentication","/authentication","heroicons:lock-closed",{"title":13,"_path":14,"children":15,"icon":39},"Usage","/usage",[16,26],{"title":17,"_path":18,"children":19},"Vue composables","/usage/composables",[20,23],{"title":21,"_path":22},"useSupabaseClient","/usage/composables/usesupabaseclient",{"title":24,"_path":25},"useSupabaseUser","/usage/composables/usesupabaseuser",{"title":27,"_path":28,"children":29},"Server services","/usage/services",[30,33,36],{"title":31,"_path":32},"serverSupabaseClient","/usage/services/serversupabaseclient",{"title":34,"_path":35},"serverSupabaseServiceRole","/usage/services/serversupabaseservicerole",{"title":37,"_path":38},"serverSupabaseUser","/usage/services/serversupabaseuser","heroicons:book-open",{"title":41,"_path":42,"icon":43},"Demo","/demo","heroicons:computer-desktop-20-solid",{"title":45,"_path":46,"icon":47},"Changelog","/changelog","heroicons:bookmark",{"title":49,"_path":50,"icon":51},"Roadmap","/roadmap","heroicons:map",{"_path":42,"_dir":53,"_draft":54,"_partial":54,"_locale":53,"title":41,"description":55,"icon":43,"body":56,"_type":144,"_id":145,"_source":146,"_file":147,"_extension":148},"",false,"Demonstration of using Supabase with Nuxt.",{"type":57,"children":58,"toc":138},"root",[59,66,82,89,100,106,120,126],{"type":60,"tag":61,"props":62,"children":63},"element","p",{},[64],{"type":65,"value":55},"text",{"type":60,"tag":61,"props":67,"children":68},{},[69],{"type":60,"tag":70,"props":71,"children":75},"a",{"href":72,"rel":73},"https://n3-supabase.netlify.app",[74],"nofollow",[76],{"type":60,"tag":77,"props":78,"children":81},"img",{"alt":79,"src":80},"Supabase demo with Nuxt 3","https://user-images.githubusercontent.com/904724/160422461-8f87500a-8dec-4413-86b2-ba04e1b2d17b.png",[],{"type":60,"tag":83,"props":84,"children":86},"h2",{"id":85},"live-demo",[87],{"type":65,"value":88},"Live demo",{"type":60,"tag":61,"props":90,"children":91},{},[92,94],{"type":65,"value":93},"You can play with the demo on ",{"type":60,"tag":70,"props":95,"children":97},{"href":72,"rel":96},[74],[98],{"type":65,"value":99},"n3-supabase.netlify.app",{"type":60,"tag":83,"props":101,"children":103},{"id":102},"running-locally",[104],{"type":65,"value":105},"Running locally",{"type":60,"tag":61,"props":107,"children":108},{},[109,111,118],{"type":65,"value":110},"Follow the instruction in the ",{"type":60,"tag":70,"props":112,"children":115},{"href":113,"rel":114},"https://github.com/nuxt-community/supabase-module/tree/main/demo",[74],[116],{"type":65,"value":117},"demo Readme",{"type":65,"value":119},".",{"type":60,"tag":83,"props":121,"children":123},{"id":122},"source-code",[124],{"type":65,"value":125},"Source code",{"type":60,"tag":61,"props":127,"children":128},{},[129,131,137],{"type":65,"value":130},"The source code is available on Github in the ",{"type":60,"tag":70,"props":132,"children":134},{"href":113,"rel":133},[74],[135],{"type":65,"value":136},"demo/ directory",{"type":65,"value":119},{"title":53,"searchDepth":139,"depth":139,"links":140},2,[141,142,143],{"id":85,"depth":139,"text":88},{"id":102,"depth":139,"text":105},{"id":122,"depth":139,"text":125},"markdown","content:5.demo.md","content","5.demo.md","md",[150,152],{"_path":38,"title":37,"description":151},"Get your Supabase user from serverside with the serverSupabaseUser service",{"_path":46,"title":45,"description":153},"Discover the latest updates of the Supabase Module",1703757838246] \ No newline at end of file diff --git a/demo/index.html b/demo/index.html index 3af13786..0ec79180 100644 --- a/demo/index.html +++ b/demo/index.html @@ -67,33 +67,33 @@ - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + - - + + - - -
- - +
+ + \ No newline at end of file diff --git a/get-started/_payload.json b/get-started/_payload.json index 8bbb7bd6..5eba623b 100644 --- a/get-started/_payload.json +++ b/get-started/_payload.json @@ -1 +1 @@ -[{"data":1,"prerenderedAt":1362},["Reactive",2],{"navigation":3,"/get-started":52,"/get-started-surround":1358},[4,8,12,40,44,48],{"title":5,"_path":6,"icon":7},"Get Started","/get-started","heroicons:rocket-launch",{"title":9,"_path":10,"icon":11},"Authentication","/authentication","heroicons:lock-closed",{"title":13,"_path":14,"children":15,"icon":39},"Usage","/usage",[16,26],{"title":17,"_path":18,"children":19},"Vue composables","/usage/composables",[20,23],{"title":21,"_path":22},"useSupabaseClient","/usage/composables/usesupabaseclient",{"title":24,"_path":25},"useSupabaseUser","/usage/composables/usesupabaseuser",{"title":27,"_path":28,"children":29},"Server services","/usage/services",[30,33,36],{"title":31,"_path":32},"serverSupabaseClient","/usage/services/serversupabaseclient",{"title":34,"_path":35},"serverSupabaseServiceRole","/usage/services/serversupabaseservicerole",{"title":37,"_path":38},"serverSupabaseUser","/usage/services/serversupabaseuser","heroicons:book-open",{"title":41,"_path":42,"icon":43},"Demo","/demo","heroicons:computer-desktop-20-solid",{"title":45,"_path":46,"icon":47},"Changelog","/changelog","heroicons:bookmark",{"title":49,"_path":50,"icon":51},"Roadmap","/roadmap","heroicons:map",{"_path":6,"_dir":53,"_draft":54,"_partial":54,"_locale":53,"title":5,"description":55,"icon":7,"body":56,"_type":1353,"_id":1354,"_source":1355,"_file":1356,"_extension":1357},"",false,"@nuxtjs/supabase is a Nuxt module for first class integration with Supabase.",{"type":57,"children":58,"toc":1338},"root",[59,76,99,119,126,138,266,290,387,410,471,487,493,511,594,603,622,627,635,644,649,658,667,672,680,689,694,703,708,818,896,905,914,937,943,1060,1073,1082,1086,1228,1241,1247,1280,1285,1305,1318,1332],{"type":60,"tag":61,"props":62,"children":63},"element","p",{},[64,74],{"type":60,"tag":65,"props":66,"children":70},"a",{"href":67,"rel":68},"https://github.com/nuxt-modules/supabase",[69],"nofollow",[71],{"type":72,"value":73},"text","@nuxtjs/supabase",{"type":72,"value":75}," is a Nuxt module for first class integration with Supabase.",{"type":60,"tag":61,"props":77,"children":78},{},[79,81,88,90,97],{"type":72,"value":80},"Checkout the ",{"type":60,"tag":65,"props":82,"children":85},{"href":83,"rel":84},"https://v3.nuxtjs.org",[69],[86],{"type":72,"value":87},"Nuxt 3",{"type":72,"value":89}," documentation and ",{"type":60,"tag":65,"props":91,"children":94},{"href":92,"rel":93},"https://supabase.com",[69],[95],{"type":72,"value":96},"Supabase",{"type":72,"value":98}," to learn more.",{"type":60,"tag":100,"props":101,"children":104},"callout",{"icon":102,"color":103},"i-heroicons-exclamation-triangle-20-solid","amber",[105],{"type":60,"tag":61,"props":106,"children":107},{},[108,110,117],{"type":72,"value":109},"For integrating Supabase with Nuxt 2, checkout ",{"type":60,"tag":65,"props":111,"children":114},{"href":112,"rel":113},"https://github.com/supabase-community/nuxt-supabase",[69],[115],{"type":72,"value":116},"supabase-community/nuxt-supabase",{"type":72,"value":118},".",{"type":60,"tag":120,"props":121,"children":123},"h2",{"id":122},"installation",[124],{"type":72,"value":125},"Installation",{"type":60,"tag":61,"props":127,"children":128},{},[129,131,136],{"type":72,"value":130},"Add ",{"type":60,"tag":132,"props":133,"children":134},"code",{"className":53},[135],{"type":72,"value":73},{"type":72,"value":137}," dev dependency to your project:",{"type":60,"tag":139,"props":140,"children":141},"code-group",{},[142,180,208,239],{"type":60,"tag":143,"props":144,"children":149},"pre",{"className":145,"code":146,"filename":147,"language":148,"meta":53,"style":53},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","pnpm add -D @nuxtjs/supabase\n","pnpm","bash",[150],{"type":60,"tag":132,"props":151,"children":152},{"__ignoreMap":53},[153],{"type":60,"tag":154,"props":155,"children":158},"span",{"class":156,"line":157},"line",1,[159,164,170,175],{"type":60,"tag":154,"props":160,"children":162},{"style":161},"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B",[163],{"type":72,"value":147},{"type":60,"tag":154,"props":165,"children":167},{"style":166},"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D",[168],{"type":72,"value":169}," add",{"type":60,"tag":154,"props":171,"children":172},{"style":166},[173],{"type":72,"value":174}," -D",{"type":60,"tag":154,"props":176,"children":177},{"style":166},[178],{"type":72,"value":179}," @nuxtjs/supabase\n",{"type":60,"tag":143,"props":181,"children":184},{"className":145,"code":182,"filename":183,"language":148,"meta":53,"style":53},"yarn add --dev @nuxtjs/supabase\n","yarn",[185],{"type":60,"tag":132,"props":186,"children":187},{"__ignoreMap":53},[188],{"type":60,"tag":154,"props":189,"children":190},{"class":156,"line":157},[191,195,199,204],{"type":60,"tag":154,"props":192,"children":193},{"style":161},[194],{"type":72,"value":183},{"type":60,"tag":154,"props":196,"children":197},{"style":166},[198],{"type":72,"value":169},{"type":60,"tag":154,"props":200,"children":201},{"style":166},[202],{"type":72,"value":203}," --dev",{"type":60,"tag":154,"props":205,"children":206},{"style":166},[207],{"type":72,"value":179},{"type":60,"tag":143,"props":209,"children":212},{"className":145,"code":210,"filename":211,"language":148,"meta":53,"style":53},"npm install @nuxtjs/supabase --save-dev\n","NPM",[213],{"type":60,"tag":132,"props":214,"children":215},{"__ignoreMap":53},[216],{"type":60,"tag":154,"props":217,"children":218},{"class":156,"line":157},[219,224,229,234],{"type":60,"tag":154,"props":220,"children":221},{"style":161},[222],{"type":72,"value":223},"npm",{"type":60,"tag":154,"props":225,"children":226},{"style":166},[227],{"type":72,"value":228}," install",{"type":60,"tag":154,"props":230,"children":231},{"style":166},[232],{"type":72,"value":233}," @nuxtjs/supabase",{"type":60,"tag":154,"props":235,"children":236},{"style":166},[237],{"type":72,"value":238}," --save-dev\n",{"type":60,"tag":143,"props":240,"children":243},{"className":145,"code":241,"filename":242,"language":148,"meta":53,"style":53},"bun add -D @nuxtjs/supabase\n","bun",[244],{"type":60,"tag":132,"props":245,"children":246},{"__ignoreMap":53},[247],{"type":60,"tag":154,"props":248,"children":249},{"class":156,"line":157},[250,254,258,262],{"type":60,"tag":154,"props":251,"children":252},{"style":161},[253],{"type":72,"value":242},{"type":60,"tag":154,"props":255,"children":256},{"style":166},[257],{"type":72,"value":169},{"type":60,"tag":154,"props":259,"children":260},{"style":166},[261],{"type":72,"value":174},{"type":60,"tag":154,"props":263,"children":264},{"style":166},[265],{"type":72,"value":179},{"type":60,"tag":61,"props":267,"children":268},{},[269,270,274,276,281,283,288],{"type":72,"value":130},{"type":60,"tag":132,"props":271,"children":272},{"className":53},[273],{"type":72,"value":73},{"type":72,"value":275}," to the ",{"type":60,"tag":132,"props":277,"children":278},{"className":53},[279],{"type":72,"value":280},"modules",{"type":72,"value":282}," section of ",{"type":60,"tag":132,"props":284,"children":285},{"className":53},[286],{"type":72,"value":287},"nuxt.config.ts",{"type":72,"value":289},":",{"type":60,"tag":143,"props":291,"children":295},{"className":292,"code":293,"filename":287,"language":294,"meta":53,"style":53},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","export default defineNuxtConfig({\n modules: ['@nuxtjs/supabase'],\n})\n","ts",[296],{"type":60,"tag":132,"props":297,"children":298},{"__ignoreMap":53},[299,331,373],{"type":60,"tag":154,"props":300,"children":301},{"class":156,"line":157},[302,308,313,319,325],{"type":60,"tag":154,"props":303,"children":305},{"style":304},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic",[306],{"type":72,"value":307},"export",{"type":60,"tag":154,"props":309,"children":310},{"style":304},[311],{"type":72,"value":312}," default",{"type":60,"tag":154,"props":314,"children":316},{"style":315},"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF",[317],{"type":72,"value":318}," defineNuxtConfig",{"type":60,"tag":154,"props":320,"children":322},{"style":321},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8",[323],{"type":72,"value":324},"(",{"type":60,"tag":154,"props":326,"children":328},{"style":327},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF",[329],{"type":72,"value":330},"{\n",{"type":60,"tag":154,"props":332,"children":334},{"class":156,"line":333},2,[335,341,345,350,355,359,363,368],{"type":60,"tag":154,"props":336,"children":338},{"style":337},"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178",[339],{"type":72,"value":340}," modules",{"type":60,"tag":154,"props":342,"children":343},{"style":327},[344],{"type":72,"value":289},{"type":60,"tag":154,"props":346,"children":347},{"style":321},[348],{"type":72,"value":349}," [",{"type":60,"tag":154,"props":351,"children":352},{"style":327},[353],{"type":72,"value":354},"'",{"type":60,"tag":154,"props":356,"children":357},{"style":166},[358],{"type":72,"value":73},{"type":60,"tag":154,"props":360,"children":361},{"style":327},[362],{"type":72,"value":354},{"type":60,"tag":154,"props":364,"children":365},{"style":321},[366],{"type":72,"value":367},"]",{"type":60,"tag":154,"props":369,"children":370},{"style":327},[371],{"type":72,"value":372},",\n",{"type":60,"tag":154,"props":374,"children":376},{"class":156,"line":375},3,[377,382],{"type":60,"tag":154,"props":378,"children":379},{"style":327},[380],{"type":72,"value":381},"}",{"type":60,"tag":154,"props":383,"children":384},{"style":321},[385],{"type":72,"value":386},")\n",{"type":60,"tag":61,"props":388,"children":389},{},[390,391,396,398,403,404,409],{"type":72,"value":130},{"type":60,"tag":132,"props":392,"children":393},{"className":53},[394],{"type":72,"value":395},"SUPABASE_URL",{"type":72,"value":397}," and ",{"type":60,"tag":132,"props":399,"children":400},{"className":53},[401],{"type":72,"value":402},"SUPABASE_KEY",{"type":72,"value":275},{"type":60,"tag":132,"props":405,"children":406},{"className":53},[407],{"type":72,"value":408},".env",{"type":72,"value":289},{"type":60,"tag":143,"props":411,"children":416},{"className":412,"code":413,"filename":414,"language":415,"meta":53,"style":53},"language-zsh shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","SUPABASE_URL=\"https://example.supabase.co\"\nSUPABASE_KEY=\"\u003Cyour_key>\"\n","env","zsh",[417],{"type":60,"tag":132,"props":418,"children":419},{"__ignoreMap":53},[420,447],{"type":60,"tag":154,"props":421,"children":422},{"class":156,"line":157},[423,427,432,437,442],{"type":60,"tag":154,"props":424,"children":425},{"style":321},[426],{"type":72,"value":395},{"type":60,"tag":154,"props":428,"children":429},{"style":327},[430],{"type":72,"value":431},"=",{"type":60,"tag":154,"props":433,"children":434},{"style":327},[435],{"type":72,"value":436},"\"",{"type":60,"tag":154,"props":438,"children":439},{"style":166},[440],{"type":72,"value":441},"https://example.supabase.co",{"type":60,"tag":154,"props":443,"children":444},{"style":327},[445],{"type":72,"value":446},"\"\n",{"type":60,"tag":154,"props":448,"children":449},{"class":156,"line":333},[450,454,458,462,467],{"type":60,"tag":154,"props":451,"children":452},{"style":321},[453],{"type":72,"value":402},{"type":60,"tag":154,"props":455,"children":456},{"style":327},[457],{"type":72,"value":431},{"type":60,"tag":154,"props":459,"children":460},{"style":327},[461],{"type":72,"value":436},{"type":60,"tag":154,"props":463,"children":464},{"style":166},[465],{"type":72,"value":466},"\u003Cyour_key>",{"type":60,"tag":154,"props":468,"children":469},{"style":327},[470],{"type":72,"value":446},{"type":60,"tag":100,"props":472,"children":474},{"icon":473},"i-heroicons-light-bulb",[475],{"type":60,"tag":61,"props":476,"children":477},{},[478,480,485],{"type":72,"value":479},"Alternatively, you can prefix the env variables with ",{"type":60,"tag":132,"props":481,"children":482},{"className":53},[483],{"type":72,"value":484},"NUXT_PUBLIC_",{"type":72,"value":486}," in order to use runtimeConfig.",{"type":60,"tag":120,"props":488,"children":490},{"id":489},"options",[491],{"type":72,"value":492},"Options",{"type":60,"tag":61,"props":494,"children":495},{},[496,498,503,505,510],{"type":72,"value":497},"You can configure the supabase module by using the ",{"type":60,"tag":132,"props":499,"children":500},{"className":53},[501],{"type":72,"value":502},"supabase",{"type":72,"value":504}," key in ",{"type":60,"tag":132,"props":506,"children":507},{"className":53},[508],{"type":72,"value":509},"nuxt.config",{"type":72,"value":289},{"type":60,"tag":143,"props":512,"children":514},{"className":292,"code":513,"filename":287,"language":294,"meta":53,"style":53},"export default defineNuxtConfig({\n // ...\n supabase: {\n // Options\n }\n}\n",[515],{"type":60,"tag":132,"props":516,"children":517},{"__ignoreMap":53},[518,541,550,567,576,585],{"type":60,"tag":154,"props":519,"children":520},{"class":156,"line":157},[521,525,529,533,537],{"type":60,"tag":154,"props":522,"children":523},{"style":304},[524],{"type":72,"value":307},{"type":60,"tag":154,"props":526,"children":527},{"style":304},[528],{"type":72,"value":312},{"type":60,"tag":154,"props":530,"children":531},{"style":315},[532],{"type":72,"value":318},{"type":60,"tag":154,"props":534,"children":535},{"style":321},[536],{"type":72,"value":324},{"type":60,"tag":154,"props":538,"children":539},{"style":327},[540],{"type":72,"value":330},{"type":60,"tag":154,"props":542,"children":543},{"class":156,"line":333},[544],{"type":60,"tag":154,"props":545,"children":547},{"style":546},"--shiki-light:#90A4AE;--shiki-default:#546E7A;--shiki-dark:#676E95;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic",[548],{"type":72,"value":549}," // ...\n",{"type":60,"tag":154,"props":551,"children":552},{"class":156,"line":375},[553,558,562],{"type":60,"tag":154,"props":554,"children":555},{"style":337},[556],{"type":72,"value":557}," supabase",{"type":60,"tag":154,"props":559,"children":560},{"style":327},[561],{"type":72,"value":289},{"type":60,"tag":154,"props":563,"children":564},{"style":327},[565],{"type":72,"value":566}," {\n",{"type":60,"tag":154,"props":568,"children":570},{"class":156,"line":569},4,[571],{"type":60,"tag":154,"props":572,"children":573},{"style":546},[574],{"type":72,"value":575}," // Options\n",{"type":60,"tag":154,"props":577,"children":579},{"class":156,"line":578},5,[580],{"type":60,"tag":154,"props":581,"children":582},{"style":327},[583],{"type":72,"value":584}," }\n",{"type":60,"tag":154,"props":586,"children":588},{"class":156,"line":587},6,[589],{"type":60,"tag":154,"props":590,"children":591},{"style":327},[592],{"type":72,"value":593},"}\n",{"type":60,"tag":595,"props":596,"children":598},"h3",{"id":597},"url",[599],{"type":60,"tag":132,"props":600,"children":601},{"className":53},[602],{"type":72,"value":597},{"type":60,"tag":61,"props":604,"children":605},{},[606,608,613,615,620],{"type":72,"value":607},"Default: ",{"type":60,"tag":132,"props":609,"children":610},{"className":53},[611],{"type":72,"value":612},"process.env.SUPABASE_URL",{"type":72,"value":614}," (ex: ",{"type":60,"tag":65,"props":616,"children":618},{"href":441,"rel":617},[69],[619],{"type":72,"value":441},{"type":72,"value":621},")",{"type":60,"tag":61,"props":623,"children":624},{},[625],{"type":72,"value":626},"The unique Supabase URL which is supplied when you create a new project in your project dashboard.",{"type":60,"tag":595,"props":628,"children":630},{"id":629},"key",[631],{"type":60,"tag":132,"props":632,"children":633},{"className":53},[634],{"type":72,"value":629},{"type":60,"tag":61,"props":636,"children":637},{},[638,639],{"type":72,"value":607},{"type":60,"tag":132,"props":640,"children":641},{"className":53},[642],{"type":72,"value":643},"process.env.SUPABASE_KEY",{"type":60,"tag":61,"props":645,"children":646},{},[647],{"type":72,"value":648},"Supabase 'anon key', used to bypass the Supabase API gateway and interact with your Supabase database making use of user JWT to apply RLS Policies.",{"type":60,"tag":595,"props":650,"children":652},{"id":651},"servicekey",[653],{"type":60,"tag":132,"props":654,"children":655},{"className":53},[656],{"type":72,"value":657},"serviceKey",{"type":60,"tag":61,"props":659,"children":660},{},[661,662],{"type":72,"value":607},{"type":60,"tag":132,"props":663,"children":664},{"className":53},[665],{"type":72,"value":666},"process.env.SUPABASE_SERVICE_KEY",{"type":60,"tag":61,"props":668,"children":669},{},[670],{"type":72,"value":671},"Supabase 'service role key', has super admin rights and can bypass your Row Level Security.",{"type":60,"tag":595,"props":673,"children":675},{"id":674},"redirect",[676],{"type":60,"tag":132,"props":677,"children":678},{"className":53},[679],{"type":72,"value":674},{"type":60,"tag":61,"props":681,"children":682},{},[683,684],{"type":72,"value":607},{"type":60,"tag":132,"props":685,"children":686},{"className":53},[687],{"type":72,"value":688},"true",{"type":60,"tag":61,"props":690,"children":691},{},[692],{"type":72,"value":693},"Redirect automatically to the configured login page if a non authenticated user is trying to access a guarded. You can disable all redirects by setting this option to false.",{"type":60,"tag":595,"props":695,"children":697},{"id":696},"redirectoptions",[698],{"type":60,"tag":132,"props":699,"children":700},{"className":53},[701],{"type":72,"value":702},"redirectOptions",{"type":60,"tag":61,"props":704,"children":705},{},[706],{"type":72,"value":707},"Default:",{"type":60,"tag":143,"props":709,"children":711},{"className":292,"code":710,"filename":287,"language":294,"meta":53,"style":53}," redirectOptions: {\n login: '/login',\n callback: '/confirm',\n exclude: [],\n }\n",[712],{"type":60,"tag":132,"props":713,"children":714},{"__ignoreMap":53},[715,731,761,790,811],{"type":60,"tag":154,"props":716,"children":717},{"class":156,"line":157},[718,723,727],{"type":60,"tag":154,"props":719,"children":720},{"style":161},[721],{"type":72,"value":722}," redirectOptions",{"type":60,"tag":154,"props":724,"children":725},{"style":327},[726],{"type":72,"value":289},{"type":60,"tag":154,"props":728,"children":729},{"style":327},[730],{"type":72,"value":566},{"type":60,"tag":154,"props":732,"children":733},{"class":156,"line":333},[734,739,743,748,753,757],{"type":60,"tag":154,"props":735,"children":736},{"style":161},[737],{"type":72,"value":738}," login",{"type":60,"tag":154,"props":740,"children":741},{"style":327},[742],{"type":72,"value":289},{"type":60,"tag":154,"props":744,"children":745},{"style":327},[746],{"type":72,"value":747}," '",{"type":60,"tag":154,"props":749,"children":750},{"style":166},[751],{"type":72,"value":752},"/login",{"type":60,"tag":154,"props":754,"children":755},{"style":327},[756],{"type":72,"value":354},{"type":60,"tag":154,"props":758,"children":759},{"style":327},[760],{"type":72,"value":372},{"type":60,"tag":154,"props":762,"children":763},{"class":156,"line":375},[764,769,773,777,782,786],{"type":60,"tag":154,"props":765,"children":766},{"style":161},[767],{"type":72,"value":768}," callback",{"type":60,"tag":154,"props":770,"children":771},{"style":327},[772],{"type":72,"value":289},{"type":60,"tag":154,"props":774,"children":775},{"style":327},[776],{"type":72,"value":747},{"type":60,"tag":154,"props":778,"children":779},{"style":166},[780],{"type":72,"value":781},"/confirm",{"type":60,"tag":154,"props":783,"children":784},{"style":327},[785],{"type":72,"value":354},{"type":60,"tag":154,"props":787,"children":788},{"style":327},[789],{"type":72,"value":372},{"type":60,"tag":154,"props":791,"children":792},{"class":156,"line":569},[793,798,802,807],{"type":60,"tag":154,"props":794,"children":795},{"style":161},[796],{"type":72,"value":797}," exclude",{"type":60,"tag":154,"props":799,"children":800},{"style":327},[801],{"type":72,"value":289},{"type":60,"tag":154,"props":803,"children":804},{"style":337},[805],{"type":72,"value":806}," []",{"type":60,"tag":154,"props":808,"children":809},{"style":327},[810],{"type":72,"value":372},{"type":60,"tag":154,"props":812,"children":813},{"class":156,"line":578},[814],{"type":60,"tag":154,"props":815,"children":816},{"style":327},[817],{"type":72,"value":584},{"type":60,"tag":819,"props":820,"children":821},"ul",{},[822,833,865],{"type":60,"tag":823,"props":824,"children":825},"li",{},[826,831],{"type":60,"tag":132,"props":827,"children":828},{"className":53},[829],{"type":72,"value":830},"login",{"type":72,"value":832},": User will be redirected to this path if not authenticated or after logout.",{"type":60,"tag":823,"props":834,"children":835},{},[836,841,843,848,850,857,859,864],{"type":60,"tag":132,"props":837,"children":838},{"className":53},[839],{"type":72,"value":840},"callback",{"type":72,"value":842},": This is the path the user will be redirect to after supabase login redirection. Should match configured ",{"type":60,"tag":132,"props":844,"children":845},{"className":53},[846],{"type":72,"value":847},"redirectTo",{"type":72,"value":849}," option of your ",{"type":60,"tag":65,"props":851,"children":854},{"href":852,"rel":853},"https://supabase.com/docs/reference/javascript/auth-signinwithoauth",[69],[855],{"type":72,"value":856},"signIn method",{"type":72,"value":858},". Should also be configured in your Supabase dashboard under ",{"type":60,"tag":132,"props":860,"children":861},{"className":53},[862],{"type":72,"value":863},"Authentication -> URL Configuration -> Redirect URLs",{"type":72,"value":118},{"type":60,"tag":823,"props":866,"children":867},{},[868,873,875,880,882,887,889,894],{"type":60,"tag":132,"props":869,"children":870},{"className":53},[871],{"type":72,"value":872},"exclude",{"type":72,"value":874},": Routes to exclude from the redirect. ",{"type":60,"tag":132,"props":876,"children":877},{"className":53},[878],{"type":72,"value":879},"['/foo', '/bar/*']",{"type":72,"value":881}," will exclude the ",{"type":60,"tag":132,"props":883,"children":884},{"className":53},[885],{"type":72,"value":886},"foo",{"type":72,"value":888}," page and all pages in your ",{"type":60,"tag":132,"props":890,"children":891},{"className":53},[892],{"type":72,"value":893},"bar",{"type":72,"value":895}," folder.",{"type":60,"tag":595,"props":897,"children":899},{"id":898},"cookiename",[900],{"type":60,"tag":132,"props":901,"children":902},{"className":53},[903],{"type":72,"value":904},"cookieName",{"type":60,"tag":61,"props":906,"children":907},{},[908,909],{"type":72,"value":607},{"type":60,"tag":132,"props":910,"children":911},{"className":53},[912],{"type":72,"value":913},"sb",{"type":60,"tag":61,"props":915,"children":916},{},[917,919,924,925,930,932],{"type":72,"value":918},"Cookie name used for storing access and refresh tokens, added in front of ",{"type":60,"tag":132,"props":920,"children":921},{"className":53},[922],{"type":72,"value":923},"-access-token",{"type":72,"value":397},{"type":60,"tag":132,"props":926,"children":927},{"className":53},[928],{"type":72,"value":929},"-refresh-token",{"type":72,"value":931}," to form the full cookie name e.g. ",{"type":60,"tag":132,"props":933,"children":934},{"className":53},[935],{"type":72,"value":936},"sb-access-token",{"type":60,"tag":595,"props":938,"children":940},{"id":939},"cookieoptions",[941],{"type":72,"value":942},"cookieOptions",{"type":60,"tag":143,"props":944,"children":946},{"className":292,"code":945,"language":294,"meta":53,"style":53}," cookieOptions: {\n maxAge: 60 * 60 * 8,\n sameSite: 'lax',\n secure: true\n }\n",[947],{"type":60,"tag":132,"props":948,"children":949},{"__ignoreMap":53},[950,966,1006,1035,1053],{"type":60,"tag":154,"props":951,"children":952},{"class":156,"line":157},[953,958,962],{"type":60,"tag":154,"props":954,"children":955},{"style":161},[956],{"type":72,"value":957}," cookieOptions",{"type":60,"tag":154,"props":959,"children":960},{"style":327},[961],{"type":72,"value":289},{"type":60,"tag":154,"props":963,"children":964},{"style":327},[965],{"type":72,"value":566},{"type":60,"tag":154,"props":967,"children":968},{"class":156,"line":333},[969,974,978,984,989,993,997,1002],{"type":60,"tag":154,"props":970,"children":971},{"style":161},[972],{"type":72,"value":973}," maxAge",{"type":60,"tag":154,"props":975,"children":976},{"style":327},[977],{"type":72,"value":289},{"type":60,"tag":154,"props":979,"children":981},{"style":980},"--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C",[982],{"type":72,"value":983}," 60",{"type":60,"tag":154,"props":985,"children":986},{"style":327},[987],{"type":72,"value":988}," *",{"type":60,"tag":154,"props":990,"children":991},{"style":980},[992],{"type":72,"value":983},{"type":60,"tag":154,"props":994,"children":995},{"style":327},[996],{"type":72,"value":988},{"type":60,"tag":154,"props":998,"children":999},{"style":980},[1000],{"type":72,"value":1001}," 8",{"type":60,"tag":154,"props":1003,"children":1004},{"style":327},[1005],{"type":72,"value":372},{"type":60,"tag":154,"props":1007,"children":1008},{"class":156,"line":375},[1009,1014,1018,1022,1027,1031],{"type":60,"tag":154,"props":1010,"children":1011},{"style":161},[1012],{"type":72,"value":1013}," sameSite",{"type":60,"tag":154,"props":1015,"children":1016},{"style":327},[1017],{"type":72,"value":289},{"type":60,"tag":154,"props":1019,"children":1020},{"style":327},[1021],{"type":72,"value":747},{"type":60,"tag":154,"props":1023,"children":1024},{"style":166},[1025],{"type":72,"value":1026},"lax",{"type":60,"tag":154,"props":1028,"children":1029},{"style":327},[1030],{"type":72,"value":354},{"type":60,"tag":154,"props":1032,"children":1033},{"style":327},[1034],{"type":72,"value":372},{"type":60,"tag":154,"props":1036,"children":1037},{"class":156,"line":569},[1038,1043,1047],{"type":60,"tag":154,"props":1039,"children":1040},{"style":161},[1041],{"type":72,"value":1042}," secure",{"type":60,"tag":154,"props":1044,"children":1045},{"style":327},[1046],{"type":72,"value":289},{"type":60,"tag":154,"props":1048,"children":1050},{"style":1049},"--shiki-light:#FF5370;--shiki-default:#FF9CAC;--shiki-dark:#FF9CAC",[1051],{"type":72,"value":1052}," true\n",{"type":60,"tag":154,"props":1054,"children":1055},{"class":156,"line":578},[1056],{"type":60,"tag":154,"props":1057,"children":1058},{"style":327},[1059],{"type":72,"value":584},{"type":60,"tag":61,"props":1061,"children":1062},{},[1063,1065,1071],{"type":72,"value":1064},"Options for cookies used to share tokens between server and client, refer to ",{"type":60,"tag":65,"props":1066,"children":1069},{"href":1067,"rel":1068},"https://nuxt.com/docs/api/composables/use-cookie#options",[69],[1070],{"type":72,"value":942},{"type":72,"value":1072}," for available settings. Please note that the lifetime set here does not determine the Supabase session lifetime.",{"type":60,"tag":595,"props":1074,"children":1076},{"id":1075},"clientoptions",[1077],{"type":60,"tag":132,"props":1078,"children":1079},{"className":53},[1080],{"type":72,"value":1081},"clientOptions",{"type":60,"tag":61,"props":1083,"children":1084},{},[1085],{"type":72,"value":707},{"type":60,"tag":143,"props":1087,"children":1089},{"className":292,"code":1088,"language":294,"meta":53,"style":53}," clientOptions: {\n auth: {\n flowType: 'pkce',\n detectSessionInUrl: true,\n persistSession: true,\n autoRefreshToken: true\n },\n }\n",[1090],{"type":60,"tag":132,"props":1091,"children":1092},{"__ignoreMap":53},[1093,1109,1125,1154,1175,1195,1211,1220],{"type":60,"tag":154,"props":1094,"children":1095},{"class":156,"line":157},[1096,1101,1105],{"type":60,"tag":154,"props":1097,"children":1098},{"style":161},[1099],{"type":72,"value":1100}," clientOptions",{"type":60,"tag":154,"props":1102,"children":1103},{"style":327},[1104],{"type":72,"value":289},{"type":60,"tag":154,"props":1106,"children":1107},{"style":327},[1108],{"type":72,"value":566},{"type":60,"tag":154,"props":1110,"children":1111},{"class":156,"line":333},[1112,1117,1121],{"type":60,"tag":154,"props":1113,"children":1114},{"style":161},[1115],{"type":72,"value":1116}," auth",{"type":60,"tag":154,"props":1118,"children":1119},{"style":327},[1120],{"type":72,"value":289},{"type":60,"tag":154,"props":1122,"children":1123},{"style":327},[1124],{"type":72,"value":566},{"type":60,"tag":154,"props":1126,"children":1127},{"class":156,"line":375},[1128,1133,1137,1141,1146,1150],{"type":60,"tag":154,"props":1129,"children":1130},{"style":161},[1131],{"type":72,"value":1132}," flowType",{"type":60,"tag":154,"props":1134,"children":1135},{"style":327},[1136],{"type":72,"value":289},{"type":60,"tag":154,"props":1138,"children":1139},{"style":327},[1140],{"type":72,"value":747},{"type":60,"tag":154,"props":1142,"children":1143},{"style":166},[1144],{"type":72,"value":1145},"pkce",{"type":60,"tag":154,"props":1147,"children":1148},{"style":327},[1149],{"type":72,"value":354},{"type":60,"tag":154,"props":1151,"children":1152},{"style":327},[1153],{"type":72,"value":372},{"type":60,"tag":154,"props":1155,"children":1156},{"class":156,"line":569},[1157,1162,1166,1171],{"type":60,"tag":154,"props":1158,"children":1159},{"style":161},[1160],{"type":72,"value":1161}," detectSessionInUrl",{"type":60,"tag":154,"props":1163,"children":1164},{"style":327},[1165],{"type":72,"value":289},{"type":60,"tag":154,"props":1167,"children":1168},{"style":1049},[1169],{"type":72,"value":1170}," true",{"type":60,"tag":154,"props":1172,"children":1173},{"style":327},[1174],{"type":72,"value":372},{"type":60,"tag":154,"props":1176,"children":1177},{"class":156,"line":578},[1178,1183,1187,1191],{"type":60,"tag":154,"props":1179,"children":1180},{"style":161},[1181],{"type":72,"value":1182}," persistSession",{"type":60,"tag":154,"props":1184,"children":1185},{"style":327},[1186],{"type":72,"value":289},{"type":60,"tag":154,"props":1188,"children":1189},{"style":1049},[1190],{"type":72,"value":1170},{"type":60,"tag":154,"props":1192,"children":1193},{"style":327},[1194],{"type":72,"value":372},{"type":60,"tag":154,"props":1196,"children":1197},{"class":156,"line":587},[1198,1203,1207],{"type":60,"tag":154,"props":1199,"children":1200},{"style":161},[1201],{"type":72,"value":1202}," autoRefreshToken",{"type":60,"tag":154,"props":1204,"children":1205},{"style":327},[1206],{"type":72,"value":289},{"type":60,"tag":154,"props":1208,"children":1209},{"style":1049},[1210],{"type":72,"value":1052},{"type":60,"tag":154,"props":1212,"children":1214},{"class":156,"line":1213},7,[1215],{"type":60,"tag":154,"props":1216,"children":1217},{"style":327},[1218],{"type":72,"value":1219}," },\n",{"type":60,"tag":154,"props":1221,"children":1223},{"class":156,"line":1222},8,[1224],{"type":60,"tag":154,"props":1225,"children":1226},{"style":327},[1227],{"type":72,"value":584},{"type":60,"tag":61,"props":1229,"children":1230},{},[1231,1233,1240],{"type":72,"value":1232},"Supabase client options ",{"type":60,"tag":65,"props":1234,"children":1237},{"href":1235,"rel":1236},"https://supabase.com/docs/reference/javascript/initializing#parameters",[69],[1238],{"type":72,"value":1239},"available here",{"type":72,"value":118},{"type":60,"tag":120,"props":1242,"children":1244},{"id":1243},"versions",[1245],{"type":72,"value":1246},"Versions",{"type":60,"tag":61,"props":1248,"children":1249},{},[1250,1255,1257,1262,1264,1268,1273,1274,1279],{"type":60,"tag":132,"props":1251,"children":1252},{"className":53},[1253],{"type":72,"value":1254},"0.1.x",{"type":72,"value":1256}," versions are wrapped around ",{"type":60,"tag":132,"props":1258,"children":1259},{"className":53},[1260],{"type":72,"value":1261},"supabase-js v1",{"type":72,"value":1263},".\n",{"type":60,"tag":1265,"props":1266,"children":1267},"br",{},[],{"type":60,"tag":132,"props":1269,"children":1270},{"className":53},[1271],{"type":72,"value":1272},"1.x.x",{"type":72,"value":1256},{"type":60,"tag":132,"props":1275,"children":1276},{"className":53},[1277],{"type":72,"value":1278},"supabase-js v2",{"type":72,"value":118},{"type":60,"tag":120,"props":1281,"children":1283},{"id":1282},"demo",[1284],{"type":72,"value":41},{"type":60,"tag":61,"props":1286,"children":1287},{},[1288,1290,1297,1299,1304],{"type":72,"value":1289},"A live demo is made for see this module in action on ",{"type":60,"tag":65,"props":1291,"children":1294},{"href":1292,"rel":1293},"https://n3-supabase.netlify.app",[69],[1295],{"type":72,"value":1296},"n3-supabase.netlify.app",{"type":72,"value":1298},", read more in the ",{"type":60,"tag":65,"props":1300,"children":1301},{"href":42},[1302],{"type":72,"value":1303},"demo section",{"type":72,"value":118},{"type":60,"tag":61,"props":1306,"children":1307},{},[1308],{"type":60,"tag":65,"props":1309,"children":1311},{"href":1292,"rel":1310},[69],[1312],{"type":60,"tag":1313,"props":1314,"children":1317},"img",{"alt":1315,"src":1316},"Supabase demo with Nuxt 3","https://user-images.githubusercontent.com/904724/160422461-8f87500a-8dec-4413-86b2-ba04e1b2d17b.png",[],{"type":60,"tag":61,"props":1319,"children":1320},{},[1321,1323,1330],{"type":72,"value":1322},"Also checkout the ",{"type":60,"tag":65,"props":1324,"children":1327},{"href":1325,"rel":1326},"https://www.youtube.com/watch?v=jIyiRT6zT8Q",[69],[1328],{"type":72,"value":1329},"YouTube video",{"type":72,"value":1331}," about its usage in a live demo.",{"type":60,"tag":1333,"props":1334,"children":1335},"style",{},[1336],{"type":72,"value":1337},"html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":53,"searchDepth":333,"depth":333,"links":1339},[1340,1341,1351,1352],{"id":122,"depth":333,"text":125},{"id":489,"depth":333,"text":492,"children":1342},[1343,1344,1345,1346,1347,1348,1349,1350],{"id":597,"depth":375,"text":597},{"id":629,"depth":375,"text":629},{"id":651,"depth":375,"text":657},{"id":674,"depth":375,"text":674},{"id":696,"depth":375,"text":702},{"id":898,"depth":375,"text":904},{"id":939,"depth":375,"text":942},{"id":1075,"depth":375,"text":1081},{"id":1243,"depth":333,"text":1246},{"id":1282,"depth":333,"text":41},"markdown","content:2.get-started.md","content","2.get-started.md","md",[1359,1360],null,{"_path":10,"title":9,"description":1361},"Authenticate your user thanks to the PKCE Oauth protocol that enables secure exchange of refresh and access tokens between an application and the authorization server",1703671431390] \ No newline at end of file +[{"data":1,"prerenderedAt":1362},["Reactive",2],{"navigation":3,"/get-started":52,"/get-started-surround":1358},[4,8,12,40,44,48],{"title":5,"_path":6,"icon":7},"Get Started","/get-started","heroicons:rocket-launch",{"title":9,"_path":10,"icon":11},"Authentication","/authentication","heroicons:lock-closed",{"title":13,"_path":14,"children":15,"icon":39},"Usage","/usage",[16,26],{"title":17,"_path":18,"children":19},"Vue composables","/usage/composables",[20,23],{"title":21,"_path":22},"useSupabaseClient","/usage/composables/usesupabaseclient",{"title":24,"_path":25},"useSupabaseUser","/usage/composables/usesupabaseuser",{"title":27,"_path":28,"children":29},"Server services","/usage/services",[30,33,36],{"title":31,"_path":32},"serverSupabaseClient","/usage/services/serversupabaseclient",{"title":34,"_path":35},"serverSupabaseServiceRole","/usage/services/serversupabaseservicerole",{"title":37,"_path":38},"serverSupabaseUser","/usage/services/serversupabaseuser","heroicons:book-open",{"title":41,"_path":42,"icon":43},"Demo","/demo","heroicons:computer-desktop-20-solid",{"title":45,"_path":46,"icon":47},"Changelog","/changelog","heroicons:bookmark",{"title":49,"_path":50,"icon":51},"Roadmap","/roadmap","heroicons:map",{"_path":6,"_dir":53,"_draft":54,"_partial":54,"_locale":53,"title":5,"description":55,"icon":7,"body":56,"_type":1353,"_id":1354,"_source":1355,"_file":1356,"_extension":1357},"",false,"@nuxtjs/supabase is a Nuxt module for first class integration with Supabase.",{"type":57,"children":58,"toc":1338},"root",[59,76,99,119,126,138,266,290,387,410,471,487,493,511,594,603,622,627,635,644,649,658,667,672,680,689,694,703,708,818,896,905,914,937,943,1060,1073,1082,1086,1228,1241,1247,1280,1285,1305,1318,1332],{"type":60,"tag":61,"props":62,"children":63},"element","p",{},[64,74],{"type":60,"tag":65,"props":66,"children":70},"a",{"href":67,"rel":68},"https://github.com/nuxt-modules/supabase",[69],"nofollow",[71],{"type":72,"value":73},"text","@nuxtjs/supabase",{"type":72,"value":75}," is a Nuxt module for first class integration with Supabase.",{"type":60,"tag":61,"props":77,"children":78},{},[79,81,88,90,97],{"type":72,"value":80},"Checkout the ",{"type":60,"tag":65,"props":82,"children":85},{"href":83,"rel":84},"https://v3.nuxtjs.org",[69],[86],{"type":72,"value":87},"Nuxt 3",{"type":72,"value":89}," documentation and ",{"type":60,"tag":65,"props":91,"children":94},{"href":92,"rel":93},"https://supabase.com",[69],[95],{"type":72,"value":96},"Supabase",{"type":72,"value":98}," to learn more.",{"type":60,"tag":100,"props":101,"children":104},"callout",{"icon":102,"color":103},"i-heroicons-exclamation-triangle-20-solid","amber",[105],{"type":60,"tag":61,"props":106,"children":107},{},[108,110,117],{"type":72,"value":109},"For integrating Supabase with Nuxt 2, checkout ",{"type":60,"tag":65,"props":111,"children":114},{"href":112,"rel":113},"https://github.com/supabase-community/nuxt-supabase",[69],[115],{"type":72,"value":116},"supabase-community/nuxt-supabase",{"type":72,"value":118},".",{"type":60,"tag":120,"props":121,"children":123},"h2",{"id":122},"installation",[124],{"type":72,"value":125},"Installation",{"type":60,"tag":61,"props":127,"children":128},{},[129,131,136],{"type":72,"value":130},"Add ",{"type":60,"tag":132,"props":133,"children":134},"code",{"className":53},[135],{"type":72,"value":73},{"type":72,"value":137}," dev dependency to your project:",{"type":60,"tag":139,"props":140,"children":141},"code-group",{},[142,180,208,239],{"type":60,"tag":143,"props":144,"children":149},"pre",{"className":145,"code":146,"filename":147,"language":148,"meta":53,"style":53},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","pnpm add -D @nuxtjs/supabase\n","pnpm","bash",[150],{"type":60,"tag":132,"props":151,"children":152},{"__ignoreMap":53},[153],{"type":60,"tag":154,"props":155,"children":158},"span",{"class":156,"line":157},"line",1,[159,164,170,175],{"type":60,"tag":154,"props":160,"children":162},{"style":161},"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B",[163],{"type":72,"value":147},{"type":60,"tag":154,"props":165,"children":167},{"style":166},"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D",[168],{"type":72,"value":169}," add",{"type":60,"tag":154,"props":171,"children":172},{"style":166},[173],{"type":72,"value":174}," -D",{"type":60,"tag":154,"props":176,"children":177},{"style":166},[178],{"type":72,"value":179}," @nuxtjs/supabase\n",{"type":60,"tag":143,"props":181,"children":184},{"className":145,"code":182,"filename":183,"language":148,"meta":53,"style":53},"yarn add --dev @nuxtjs/supabase\n","yarn",[185],{"type":60,"tag":132,"props":186,"children":187},{"__ignoreMap":53},[188],{"type":60,"tag":154,"props":189,"children":190},{"class":156,"line":157},[191,195,199,204],{"type":60,"tag":154,"props":192,"children":193},{"style":161},[194],{"type":72,"value":183},{"type":60,"tag":154,"props":196,"children":197},{"style":166},[198],{"type":72,"value":169},{"type":60,"tag":154,"props":200,"children":201},{"style":166},[202],{"type":72,"value":203}," --dev",{"type":60,"tag":154,"props":205,"children":206},{"style":166},[207],{"type":72,"value":179},{"type":60,"tag":143,"props":209,"children":212},{"className":145,"code":210,"filename":211,"language":148,"meta":53,"style":53},"npm install @nuxtjs/supabase --save-dev\n","NPM",[213],{"type":60,"tag":132,"props":214,"children":215},{"__ignoreMap":53},[216],{"type":60,"tag":154,"props":217,"children":218},{"class":156,"line":157},[219,224,229,234],{"type":60,"tag":154,"props":220,"children":221},{"style":161},[222],{"type":72,"value":223},"npm",{"type":60,"tag":154,"props":225,"children":226},{"style":166},[227],{"type":72,"value":228}," install",{"type":60,"tag":154,"props":230,"children":231},{"style":166},[232],{"type":72,"value":233}," @nuxtjs/supabase",{"type":60,"tag":154,"props":235,"children":236},{"style":166},[237],{"type":72,"value":238}," --save-dev\n",{"type":60,"tag":143,"props":240,"children":243},{"className":145,"code":241,"filename":242,"language":148,"meta":53,"style":53},"bun add -D @nuxtjs/supabase\n","bun",[244],{"type":60,"tag":132,"props":245,"children":246},{"__ignoreMap":53},[247],{"type":60,"tag":154,"props":248,"children":249},{"class":156,"line":157},[250,254,258,262],{"type":60,"tag":154,"props":251,"children":252},{"style":161},[253],{"type":72,"value":242},{"type":60,"tag":154,"props":255,"children":256},{"style":166},[257],{"type":72,"value":169},{"type":60,"tag":154,"props":259,"children":260},{"style":166},[261],{"type":72,"value":174},{"type":60,"tag":154,"props":263,"children":264},{"style":166},[265],{"type":72,"value":179},{"type":60,"tag":61,"props":267,"children":268},{},[269,270,274,276,281,283,288],{"type":72,"value":130},{"type":60,"tag":132,"props":271,"children":272},{"className":53},[273],{"type":72,"value":73},{"type":72,"value":275}," to the ",{"type":60,"tag":132,"props":277,"children":278},{"className":53},[279],{"type":72,"value":280},"modules",{"type":72,"value":282}," section of ",{"type":60,"tag":132,"props":284,"children":285},{"className":53},[286],{"type":72,"value":287},"nuxt.config.ts",{"type":72,"value":289},":",{"type":60,"tag":143,"props":291,"children":295},{"className":292,"code":293,"filename":287,"language":294,"meta":53,"style":53},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","export default defineNuxtConfig({\n modules: ['@nuxtjs/supabase'],\n})\n","ts",[296],{"type":60,"tag":132,"props":297,"children":298},{"__ignoreMap":53},[299,331,373],{"type":60,"tag":154,"props":300,"children":301},{"class":156,"line":157},[302,308,313,319,325],{"type":60,"tag":154,"props":303,"children":305},{"style":304},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic",[306],{"type":72,"value":307},"export",{"type":60,"tag":154,"props":309,"children":310},{"style":304},[311],{"type":72,"value":312}," default",{"type":60,"tag":154,"props":314,"children":316},{"style":315},"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF",[317],{"type":72,"value":318}," defineNuxtConfig",{"type":60,"tag":154,"props":320,"children":322},{"style":321},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8",[323],{"type":72,"value":324},"(",{"type":60,"tag":154,"props":326,"children":328},{"style":327},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF",[329],{"type":72,"value":330},"{\n",{"type":60,"tag":154,"props":332,"children":334},{"class":156,"line":333},2,[335,341,345,350,355,359,363,368],{"type":60,"tag":154,"props":336,"children":338},{"style":337},"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178",[339],{"type":72,"value":340}," modules",{"type":60,"tag":154,"props":342,"children":343},{"style":327},[344],{"type":72,"value":289},{"type":60,"tag":154,"props":346,"children":347},{"style":321},[348],{"type":72,"value":349}," [",{"type":60,"tag":154,"props":351,"children":352},{"style":327},[353],{"type":72,"value":354},"'",{"type":60,"tag":154,"props":356,"children":357},{"style":166},[358],{"type":72,"value":73},{"type":60,"tag":154,"props":360,"children":361},{"style":327},[362],{"type":72,"value":354},{"type":60,"tag":154,"props":364,"children":365},{"style":321},[366],{"type":72,"value":367},"]",{"type":60,"tag":154,"props":369,"children":370},{"style":327},[371],{"type":72,"value":372},",\n",{"type":60,"tag":154,"props":374,"children":376},{"class":156,"line":375},3,[377,382],{"type":60,"tag":154,"props":378,"children":379},{"style":327},[380],{"type":72,"value":381},"}",{"type":60,"tag":154,"props":383,"children":384},{"style":321},[385],{"type":72,"value":386},")\n",{"type":60,"tag":61,"props":388,"children":389},{},[390,391,396,398,403,404,409],{"type":72,"value":130},{"type":60,"tag":132,"props":392,"children":393},{"className":53},[394],{"type":72,"value":395},"SUPABASE_URL",{"type":72,"value":397}," and ",{"type":60,"tag":132,"props":399,"children":400},{"className":53},[401],{"type":72,"value":402},"SUPABASE_KEY",{"type":72,"value":275},{"type":60,"tag":132,"props":405,"children":406},{"className":53},[407],{"type":72,"value":408},".env",{"type":72,"value":289},{"type":60,"tag":143,"props":411,"children":416},{"className":412,"code":413,"filename":414,"language":415,"meta":53,"style":53},"language-zsh shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","SUPABASE_URL=\"https://example.supabase.co\"\nSUPABASE_KEY=\"\u003Cyour_key>\"\n","env","zsh",[417],{"type":60,"tag":132,"props":418,"children":419},{"__ignoreMap":53},[420,447],{"type":60,"tag":154,"props":421,"children":422},{"class":156,"line":157},[423,427,432,437,442],{"type":60,"tag":154,"props":424,"children":425},{"style":321},[426],{"type":72,"value":395},{"type":60,"tag":154,"props":428,"children":429},{"style":327},[430],{"type":72,"value":431},"=",{"type":60,"tag":154,"props":433,"children":434},{"style":327},[435],{"type":72,"value":436},"\"",{"type":60,"tag":154,"props":438,"children":439},{"style":166},[440],{"type":72,"value":441},"https://example.supabase.co",{"type":60,"tag":154,"props":443,"children":444},{"style":327},[445],{"type":72,"value":446},"\"\n",{"type":60,"tag":154,"props":448,"children":449},{"class":156,"line":333},[450,454,458,462,467],{"type":60,"tag":154,"props":451,"children":452},{"style":321},[453],{"type":72,"value":402},{"type":60,"tag":154,"props":455,"children":456},{"style":327},[457],{"type":72,"value":431},{"type":60,"tag":154,"props":459,"children":460},{"style":327},[461],{"type":72,"value":436},{"type":60,"tag":154,"props":463,"children":464},{"style":166},[465],{"type":72,"value":466},"\u003Cyour_key>",{"type":60,"tag":154,"props":468,"children":469},{"style":327},[470],{"type":72,"value":446},{"type":60,"tag":100,"props":472,"children":474},{"icon":473},"i-heroicons-light-bulb",[475],{"type":60,"tag":61,"props":476,"children":477},{},[478,480,485],{"type":72,"value":479},"Alternatively, you can prefix the env variables with ",{"type":60,"tag":132,"props":481,"children":482},{"className":53},[483],{"type":72,"value":484},"NUXT_PUBLIC_",{"type":72,"value":486}," in order to use runtimeConfig.",{"type":60,"tag":120,"props":488,"children":490},{"id":489},"options",[491],{"type":72,"value":492},"Options",{"type":60,"tag":61,"props":494,"children":495},{},[496,498,503,505,510],{"type":72,"value":497},"You can configure the supabase module by using the ",{"type":60,"tag":132,"props":499,"children":500},{"className":53},[501],{"type":72,"value":502},"supabase",{"type":72,"value":504}," key in ",{"type":60,"tag":132,"props":506,"children":507},{"className":53},[508],{"type":72,"value":509},"nuxt.config",{"type":72,"value":289},{"type":60,"tag":143,"props":512,"children":514},{"className":292,"code":513,"filename":287,"language":294,"meta":53,"style":53},"export default defineNuxtConfig({\n // ...\n supabase: {\n // Options\n }\n}\n",[515],{"type":60,"tag":132,"props":516,"children":517},{"__ignoreMap":53},[518,541,550,567,576,585],{"type":60,"tag":154,"props":519,"children":520},{"class":156,"line":157},[521,525,529,533,537],{"type":60,"tag":154,"props":522,"children":523},{"style":304},[524],{"type":72,"value":307},{"type":60,"tag":154,"props":526,"children":527},{"style":304},[528],{"type":72,"value":312},{"type":60,"tag":154,"props":530,"children":531},{"style":315},[532],{"type":72,"value":318},{"type":60,"tag":154,"props":534,"children":535},{"style":321},[536],{"type":72,"value":324},{"type":60,"tag":154,"props":538,"children":539},{"style":327},[540],{"type":72,"value":330},{"type":60,"tag":154,"props":542,"children":543},{"class":156,"line":333},[544],{"type":60,"tag":154,"props":545,"children":547},{"style":546},"--shiki-light:#90A4AE;--shiki-default:#546E7A;--shiki-dark:#676E95;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic",[548],{"type":72,"value":549}," // ...\n",{"type":60,"tag":154,"props":551,"children":552},{"class":156,"line":375},[553,558,562],{"type":60,"tag":154,"props":554,"children":555},{"style":337},[556],{"type":72,"value":557}," supabase",{"type":60,"tag":154,"props":559,"children":560},{"style":327},[561],{"type":72,"value":289},{"type":60,"tag":154,"props":563,"children":564},{"style":327},[565],{"type":72,"value":566}," {\n",{"type":60,"tag":154,"props":568,"children":570},{"class":156,"line":569},4,[571],{"type":60,"tag":154,"props":572,"children":573},{"style":546},[574],{"type":72,"value":575}," // Options\n",{"type":60,"tag":154,"props":577,"children":579},{"class":156,"line":578},5,[580],{"type":60,"tag":154,"props":581,"children":582},{"style":327},[583],{"type":72,"value":584}," }\n",{"type":60,"tag":154,"props":586,"children":588},{"class":156,"line":587},6,[589],{"type":60,"tag":154,"props":590,"children":591},{"style":327},[592],{"type":72,"value":593},"}\n",{"type":60,"tag":595,"props":596,"children":598},"h3",{"id":597},"url",[599],{"type":60,"tag":132,"props":600,"children":601},{"className":53},[602],{"type":72,"value":597},{"type":60,"tag":61,"props":604,"children":605},{},[606,608,613,615,620],{"type":72,"value":607},"Default: ",{"type":60,"tag":132,"props":609,"children":610},{"className":53},[611],{"type":72,"value":612},"process.env.SUPABASE_URL",{"type":72,"value":614}," (ex: ",{"type":60,"tag":65,"props":616,"children":618},{"href":441,"rel":617},[69],[619],{"type":72,"value":441},{"type":72,"value":621},")",{"type":60,"tag":61,"props":623,"children":624},{},[625],{"type":72,"value":626},"The unique Supabase URL which is supplied when you create a new project in your project dashboard.",{"type":60,"tag":595,"props":628,"children":630},{"id":629},"key",[631],{"type":60,"tag":132,"props":632,"children":633},{"className":53},[634],{"type":72,"value":629},{"type":60,"tag":61,"props":636,"children":637},{},[638,639],{"type":72,"value":607},{"type":60,"tag":132,"props":640,"children":641},{"className":53},[642],{"type":72,"value":643},"process.env.SUPABASE_KEY",{"type":60,"tag":61,"props":645,"children":646},{},[647],{"type":72,"value":648},"Supabase 'anon key', used to bypass the Supabase API gateway and interact with your Supabase database making use of user JWT to apply RLS Policies.",{"type":60,"tag":595,"props":650,"children":652},{"id":651},"servicekey",[653],{"type":60,"tag":132,"props":654,"children":655},{"className":53},[656],{"type":72,"value":657},"serviceKey",{"type":60,"tag":61,"props":659,"children":660},{},[661,662],{"type":72,"value":607},{"type":60,"tag":132,"props":663,"children":664},{"className":53},[665],{"type":72,"value":666},"process.env.SUPABASE_SERVICE_KEY",{"type":60,"tag":61,"props":668,"children":669},{},[670],{"type":72,"value":671},"Supabase 'service role key', has super admin rights and can bypass your Row Level Security.",{"type":60,"tag":595,"props":673,"children":675},{"id":674},"redirect",[676],{"type":60,"tag":132,"props":677,"children":678},{"className":53},[679],{"type":72,"value":674},{"type":60,"tag":61,"props":681,"children":682},{},[683,684],{"type":72,"value":607},{"type":60,"tag":132,"props":685,"children":686},{"className":53},[687],{"type":72,"value":688},"true",{"type":60,"tag":61,"props":690,"children":691},{},[692],{"type":72,"value":693},"Redirect automatically to the configured login page if a non authenticated user is trying to access a guarded. You can disable all redirects by setting this option to false.",{"type":60,"tag":595,"props":695,"children":697},{"id":696},"redirectoptions",[698],{"type":60,"tag":132,"props":699,"children":700},{"className":53},[701],{"type":72,"value":702},"redirectOptions",{"type":60,"tag":61,"props":704,"children":705},{},[706],{"type":72,"value":707},"Default:",{"type":60,"tag":143,"props":709,"children":711},{"className":292,"code":710,"filename":287,"language":294,"meta":53,"style":53}," redirectOptions: {\n login: '/login',\n callback: '/confirm',\n exclude: [],\n }\n",[712],{"type":60,"tag":132,"props":713,"children":714},{"__ignoreMap":53},[715,731,761,790,811],{"type":60,"tag":154,"props":716,"children":717},{"class":156,"line":157},[718,723,727],{"type":60,"tag":154,"props":719,"children":720},{"style":161},[721],{"type":72,"value":722}," redirectOptions",{"type":60,"tag":154,"props":724,"children":725},{"style":327},[726],{"type":72,"value":289},{"type":60,"tag":154,"props":728,"children":729},{"style":327},[730],{"type":72,"value":566},{"type":60,"tag":154,"props":732,"children":733},{"class":156,"line":333},[734,739,743,748,753,757],{"type":60,"tag":154,"props":735,"children":736},{"style":161},[737],{"type":72,"value":738}," login",{"type":60,"tag":154,"props":740,"children":741},{"style":327},[742],{"type":72,"value":289},{"type":60,"tag":154,"props":744,"children":745},{"style":327},[746],{"type":72,"value":747}," '",{"type":60,"tag":154,"props":749,"children":750},{"style":166},[751],{"type":72,"value":752},"/login",{"type":60,"tag":154,"props":754,"children":755},{"style":327},[756],{"type":72,"value":354},{"type":60,"tag":154,"props":758,"children":759},{"style":327},[760],{"type":72,"value":372},{"type":60,"tag":154,"props":762,"children":763},{"class":156,"line":375},[764,769,773,777,782,786],{"type":60,"tag":154,"props":765,"children":766},{"style":161},[767],{"type":72,"value":768}," callback",{"type":60,"tag":154,"props":770,"children":771},{"style":327},[772],{"type":72,"value":289},{"type":60,"tag":154,"props":774,"children":775},{"style":327},[776],{"type":72,"value":747},{"type":60,"tag":154,"props":778,"children":779},{"style":166},[780],{"type":72,"value":781},"/confirm",{"type":60,"tag":154,"props":783,"children":784},{"style":327},[785],{"type":72,"value":354},{"type":60,"tag":154,"props":787,"children":788},{"style":327},[789],{"type":72,"value":372},{"type":60,"tag":154,"props":791,"children":792},{"class":156,"line":569},[793,798,802,807],{"type":60,"tag":154,"props":794,"children":795},{"style":161},[796],{"type":72,"value":797}," exclude",{"type":60,"tag":154,"props":799,"children":800},{"style":327},[801],{"type":72,"value":289},{"type":60,"tag":154,"props":803,"children":804},{"style":337},[805],{"type":72,"value":806}," []",{"type":60,"tag":154,"props":808,"children":809},{"style":327},[810],{"type":72,"value":372},{"type":60,"tag":154,"props":812,"children":813},{"class":156,"line":578},[814],{"type":60,"tag":154,"props":815,"children":816},{"style":327},[817],{"type":72,"value":584},{"type":60,"tag":819,"props":820,"children":821},"ul",{},[822,833,865],{"type":60,"tag":823,"props":824,"children":825},"li",{},[826,831],{"type":60,"tag":132,"props":827,"children":828},{"className":53},[829],{"type":72,"value":830},"login",{"type":72,"value":832},": User will be redirected to this path if not authenticated or after logout.",{"type":60,"tag":823,"props":834,"children":835},{},[836,841,843,848,850,857,859,864],{"type":60,"tag":132,"props":837,"children":838},{"className":53},[839],{"type":72,"value":840},"callback",{"type":72,"value":842},": This is the path the user will be redirect to after supabase login redirection. Should match configured ",{"type":60,"tag":132,"props":844,"children":845},{"className":53},[846],{"type":72,"value":847},"redirectTo",{"type":72,"value":849}," option of your ",{"type":60,"tag":65,"props":851,"children":854},{"href":852,"rel":853},"https://supabase.com/docs/reference/javascript/auth-signinwithoauth",[69],[855],{"type":72,"value":856},"signIn method",{"type":72,"value":858},". Should also be configured in your Supabase dashboard under ",{"type":60,"tag":132,"props":860,"children":861},{"className":53},[862],{"type":72,"value":863},"Authentication -> URL Configuration -> Redirect URLs",{"type":72,"value":118},{"type":60,"tag":823,"props":866,"children":867},{},[868,873,875,880,882,887,889,894],{"type":60,"tag":132,"props":869,"children":870},{"className":53},[871],{"type":72,"value":872},"exclude",{"type":72,"value":874},": Routes to exclude from the redirect. ",{"type":60,"tag":132,"props":876,"children":877},{"className":53},[878],{"type":72,"value":879},"['/foo', '/bar/*']",{"type":72,"value":881}," will exclude the ",{"type":60,"tag":132,"props":883,"children":884},{"className":53},[885],{"type":72,"value":886},"foo",{"type":72,"value":888}," page and all pages in your ",{"type":60,"tag":132,"props":890,"children":891},{"className":53},[892],{"type":72,"value":893},"bar",{"type":72,"value":895}," folder.",{"type":60,"tag":595,"props":897,"children":899},{"id":898},"cookiename",[900],{"type":60,"tag":132,"props":901,"children":902},{"className":53},[903],{"type":72,"value":904},"cookieName",{"type":60,"tag":61,"props":906,"children":907},{},[908,909],{"type":72,"value":607},{"type":60,"tag":132,"props":910,"children":911},{"className":53},[912],{"type":72,"value":913},"sb",{"type":60,"tag":61,"props":915,"children":916},{},[917,919,924,925,930,932],{"type":72,"value":918},"Cookie name used for storing access and refresh tokens, added in front of ",{"type":60,"tag":132,"props":920,"children":921},{"className":53},[922],{"type":72,"value":923},"-access-token",{"type":72,"value":397},{"type":60,"tag":132,"props":926,"children":927},{"className":53},[928],{"type":72,"value":929},"-refresh-token",{"type":72,"value":931}," to form the full cookie name e.g. ",{"type":60,"tag":132,"props":933,"children":934},{"className":53},[935],{"type":72,"value":936},"sb-access-token",{"type":60,"tag":595,"props":938,"children":940},{"id":939},"cookieoptions",[941],{"type":72,"value":942},"cookieOptions",{"type":60,"tag":143,"props":944,"children":946},{"className":292,"code":945,"language":294,"meta":53,"style":53}," cookieOptions: {\n maxAge: 60 * 60 * 8,\n sameSite: 'lax',\n secure: true\n }\n",[947],{"type":60,"tag":132,"props":948,"children":949},{"__ignoreMap":53},[950,966,1006,1035,1053],{"type":60,"tag":154,"props":951,"children":952},{"class":156,"line":157},[953,958,962],{"type":60,"tag":154,"props":954,"children":955},{"style":161},[956],{"type":72,"value":957}," cookieOptions",{"type":60,"tag":154,"props":959,"children":960},{"style":327},[961],{"type":72,"value":289},{"type":60,"tag":154,"props":963,"children":964},{"style":327},[965],{"type":72,"value":566},{"type":60,"tag":154,"props":967,"children":968},{"class":156,"line":333},[969,974,978,984,989,993,997,1002],{"type":60,"tag":154,"props":970,"children":971},{"style":161},[972],{"type":72,"value":973}," maxAge",{"type":60,"tag":154,"props":975,"children":976},{"style":327},[977],{"type":72,"value":289},{"type":60,"tag":154,"props":979,"children":981},{"style":980},"--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C",[982],{"type":72,"value":983}," 60",{"type":60,"tag":154,"props":985,"children":986},{"style":327},[987],{"type":72,"value":988}," *",{"type":60,"tag":154,"props":990,"children":991},{"style":980},[992],{"type":72,"value":983},{"type":60,"tag":154,"props":994,"children":995},{"style":327},[996],{"type":72,"value":988},{"type":60,"tag":154,"props":998,"children":999},{"style":980},[1000],{"type":72,"value":1001}," 8",{"type":60,"tag":154,"props":1003,"children":1004},{"style":327},[1005],{"type":72,"value":372},{"type":60,"tag":154,"props":1007,"children":1008},{"class":156,"line":375},[1009,1014,1018,1022,1027,1031],{"type":60,"tag":154,"props":1010,"children":1011},{"style":161},[1012],{"type":72,"value":1013}," sameSite",{"type":60,"tag":154,"props":1015,"children":1016},{"style":327},[1017],{"type":72,"value":289},{"type":60,"tag":154,"props":1019,"children":1020},{"style":327},[1021],{"type":72,"value":747},{"type":60,"tag":154,"props":1023,"children":1024},{"style":166},[1025],{"type":72,"value":1026},"lax",{"type":60,"tag":154,"props":1028,"children":1029},{"style":327},[1030],{"type":72,"value":354},{"type":60,"tag":154,"props":1032,"children":1033},{"style":327},[1034],{"type":72,"value":372},{"type":60,"tag":154,"props":1036,"children":1037},{"class":156,"line":569},[1038,1043,1047],{"type":60,"tag":154,"props":1039,"children":1040},{"style":161},[1041],{"type":72,"value":1042}," secure",{"type":60,"tag":154,"props":1044,"children":1045},{"style":327},[1046],{"type":72,"value":289},{"type":60,"tag":154,"props":1048,"children":1050},{"style":1049},"--shiki-light:#FF5370;--shiki-default:#FF9CAC;--shiki-dark:#FF9CAC",[1051],{"type":72,"value":1052}," true\n",{"type":60,"tag":154,"props":1054,"children":1055},{"class":156,"line":578},[1056],{"type":60,"tag":154,"props":1057,"children":1058},{"style":327},[1059],{"type":72,"value":584},{"type":60,"tag":61,"props":1061,"children":1062},{},[1063,1065,1071],{"type":72,"value":1064},"Options for cookies used to share tokens between server and client, refer to ",{"type":60,"tag":65,"props":1066,"children":1069},{"href":1067,"rel":1068},"https://nuxt.com/docs/api/composables/use-cookie#options",[69],[1070],{"type":72,"value":942},{"type":72,"value":1072}," for available settings. Please note that the lifetime set here does not determine the Supabase session lifetime.",{"type":60,"tag":595,"props":1074,"children":1076},{"id":1075},"clientoptions",[1077],{"type":60,"tag":132,"props":1078,"children":1079},{"className":53},[1080],{"type":72,"value":1081},"clientOptions",{"type":60,"tag":61,"props":1083,"children":1084},{},[1085],{"type":72,"value":707},{"type":60,"tag":143,"props":1087,"children":1089},{"className":292,"code":1088,"language":294,"meta":53,"style":53}," clientOptions: {\n auth: {\n flowType: 'pkce',\n detectSessionInUrl: true,\n persistSession: true,\n autoRefreshToken: true\n },\n }\n",[1090],{"type":60,"tag":132,"props":1091,"children":1092},{"__ignoreMap":53},[1093,1109,1125,1154,1175,1195,1211,1220],{"type":60,"tag":154,"props":1094,"children":1095},{"class":156,"line":157},[1096,1101,1105],{"type":60,"tag":154,"props":1097,"children":1098},{"style":161},[1099],{"type":72,"value":1100}," clientOptions",{"type":60,"tag":154,"props":1102,"children":1103},{"style":327},[1104],{"type":72,"value":289},{"type":60,"tag":154,"props":1106,"children":1107},{"style":327},[1108],{"type":72,"value":566},{"type":60,"tag":154,"props":1110,"children":1111},{"class":156,"line":333},[1112,1117,1121],{"type":60,"tag":154,"props":1113,"children":1114},{"style":161},[1115],{"type":72,"value":1116}," auth",{"type":60,"tag":154,"props":1118,"children":1119},{"style":327},[1120],{"type":72,"value":289},{"type":60,"tag":154,"props":1122,"children":1123},{"style":327},[1124],{"type":72,"value":566},{"type":60,"tag":154,"props":1126,"children":1127},{"class":156,"line":375},[1128,1133,1137,1141,1146,1150],{"type":60,"tag":154,"props":1129,"children":1130},{"style":161},[1131],{"type":72,"value":1132}," flowType",{"type":60,"tag":154,"props":1134,"children":1135},{"style":327},[1136],{"type":72,"value":289},{"type":60,"tag":154,"props":1138,"children":1139},{"style":327},[1140],{"type":72,"value":747},{"type":60,"tag":154,"props":1142,"children":1143},{"style":166},[1144],{"type":72,"value":1145},"pkce",{"type":60,"tag":154,"props":1147,"children":1148},{"style":327},[1149],{"type":72,"value":354},{"type":60,"tag":154,"props":1151,"children":1152},{"style":327},[1153],{"type":72,"value":372},{"type":60,"tag":154,"props":1155,"children":1156},{"class":156,"line":569},[1157,1162,1166,1171],{"type":60,"tag":154,"props":1158,"children":1159},{"style":161},[1160],{"type":72,"value":1161}," detectSessionInUrl",{"type":60,"tag":154,"props":1163,"children":1164},{"style":327},[1165],{"type":72,"value":289},{"type":60,"tag":154,"props":1167,"children":1168},{"style":1049},[1169],{"type":72,"value":1170}," true",{"type":60,"tag":154,"props":1172,"children":1173},{"style":327},[1174],{"type":72,"value":372},{"type":60,"tag":154,"props":1176,"children":1177},{"class":156,"line":578},[1178,1183,1187,1191],{"type":60,"tag":154,"props":1179,"children":1180},{"style":161},[1181],{"type":72,"value":1182}," persistSession",{"type":60,"tag":154,"props":1184,"children":1185},{"style":327},[1186],{"type":72,"value":289},{"type":60,"tag":154,"props":1188,"children":1189},{"style":1049},[1190],{"type":72,"value":1170},{"type":60,"tag":154,"props":1192,"children":1193},{"style":327},[1194],{"type":72,"value":372},{"type":60,"tag":154,"props":1196,"children":1197},{"class":156,"line":587},[1198,1203,1207],{"type":60,"tag":154,"props":1199,"children":1200},{"style":161},[1201],{"type":72,"value":1202}," autoRefreshToken",{"type":60,"tag":154,"props":1204,"children":1205},{"style":327},[1206],{"type":72,"value":289},{"type":60,"tag":154,"props":1208,"children":1209},{"style":1049},[1210],{"type":72,"value":1052},{"type":60,"tag":154,"props":1212,"children":1214},{"class":156,"line":1213},7,[1215],{"type":60,"tag":154,"props":1216,"children":1217},{"style":327},[1218],{"type":72,"value":1219}," },\n",{"type":60,"tag":154,"props":1221,"children":1223},{"class":156,"line":1222},8,[1224],{"type":60,"tag":154,"props":1225,"children":1226},{"style":327},[1227],{"type":72,"value":584},{"type":60,"tag":61,"props":1229,"children":1230},{},[1231,1233,1240],{"type":72,"value":1232},"Supabase client options ",{"type":60,"tag":65,"props":1234,"children":1237},{"href":1235,"rel":1236},"https://supabase.com/docs/reference/javascript/initializing#parameters",[69],[1238],{"type":72,"value":1239},"available here",{"type":72,"value":118},{"type":60,"tag":120,"props":1242,"children":1244},{"id":1243},"versions",[1245],{"type":72,"value":1246},"Versions",{"type":60,"tag":61,"props":1248,"children":1249},{},[1250,1255,1257,1262,1264,1268,1273,1274,1279],{"type":60,"tag":132,"props":1251,"children":1252},{"className":53},[1253],{"type":72,"value":1254},"0.1.x",{"type":72,"value":1256}," versions are wrapped around ",{"type":60,"tag":132,"props":1258,"children":1259},{"className":53},[1260],{"type":72,"value":1261},"supabase-js v1",{"type":72,"value":1263},".\n",{"type":60,"tag":1265,"props":1266,"children":1267},"br",{},[],{"type":60,"tag":132,"props":1269,"children":1270},{"className":53},[1271],{"type":72,"value":1272},"1.x.x",{"type":72,"value":1256},{"type":60,"tag":132,"props":1275,"children":1276},{"className":53},[1277],{"type":72,"value":1278},"supabase-js v2",{"type":72,"value":118},{"type":60,"tag":120,"props":1281,"children":1283},{"id":1282},"demo",[1284],{"type":72,"value":41},{"type":60,"tag":61,"props":1286,"children":1287},{},[1288,1290,1297,1299,1304],{"type":72,"value":1289},"A live demo is made for see this module in action on ",{"type":60,"tag":65,"props":1291,"children":1294},{"href":1292,"rel":1293},"https://n3-supabase.netlify.app",[69],[1295],{"type":72,"value":1296},"n3-supabase.netlify.app",{"type":72,"value":1298},", read more in the ",{"type":60,"tag":65,"props":1300,"children":1301},{"href":42},[1302],{"type":72,"value":1303},"demo section",{"type":72,"value":118},{"type":60,"tag":61,"props":1306,"children":1307},{},[1308],{"type":60,"tag":65,"props":1309,"children":1311},{"href":1292,"rel":1310},[69],[1312],{"type":60,"tag":1313,"props":1314,"children":1317},"img",{"alt":1315,"src":1316},"Supabase demo with Nuxt 3","https://user-images.githubusercontent.com/904724/160422461-8f87500a-8dec-4413-86b2-ba04e1b2d17b.png",[],{"type":60,"tag":61,"props":1319,"children":1320},{},[1321,1323,1330],{"type":72,"value":1322},"Also checkout the ",{"type":60,"tag":65,"props":1324,"children":1327},{"href":1325,"rel":1326},"https://www.youtube.com/watch?v=jIyiRT6zT8Q",[69],[1328],{"type":72,"value":1329},"YouTube video",{"type":72,"value":1331}," about its usage in a live demo.",{"type":60,"tag":1333,"props":1334,"children":1335},"style",{},[1336],{"type":72,"value":1337},"html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":53,"searchDepth":333,"depth":333,"links":1339},[1340,1341,1351,1352],{"id":122,"depth":333,"text":125},{"id":489,"depth":333,"text":492,"children":1342},[1343,1344,1345,1346,1347,1348,1349,1350],{"id":597,"depth":375,"text":597},{"id":629,"depth":375,"text":629},{"id":651,"depth":375,"text":657},{"id":674,"depth":375,"text":674},{"id":696,"depth":375,"text":702},{"id":898,"depth":375,"text":904},{"id":939,"depth":375,"text":942},{"id":1075,"depth":375,"text":1081},{"id":1243,"depth":333,"text":1246},{"id":1282,"depth":333,"text":41},"markdown","content:2.get-started.md","content","2.get-started.md","md",[1359,1360],null,{"_path":10,"title":9,"description":1361},"Authenticate your user thanks to the PKCE Oauth protocol that enables secure exchange of refresh and access tokens between an application and the authorization server",1703757837832] \ No newline at end of file diff --git a/get-started/index.html b/get-started/index.html index 0e2868a2..bb8fd6c7 100644 --- a/get-started/index.html +++ b/get-started/index.html @@ -69,46 +69,46 @@ - - - - - - - - - - - + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + - - + + - -
mobile favicon

Get Started

@nuxtjs/supabase is a Nuxt module for first class integration with Supabase.

@nuxtjs/supabase is a Nuxt module for first class integration with Supabase.

Checkout the Nuxt 3 documentation and Supabase to learn more.

For integrating Supabase with Nuxt 2, checkout supabase-community/nuxt-supabase.

Installation

Add @nuxtjs/supabase dev dependency to your project:

pnpm add -D @nuxtjs/supabase
 

Add @nuxtjs/supabase to the modules section of nuxt.config.ts:

nuxt.config.ts
export default defineNuxtConfig({
@@ -142,6 +142,6 @@
   }
 

Supabase client options available here.

Versions

0.1.x versions are wrapped around supabase-js v1.
1.x.x versions are wrapped around supabase-js v2.

Demo

A live demo is made for see this module in action on n3-supabase.netlify.app, read more in the demo section.

Supabase demo with Nuxt 3

Also checkout the YouTube video about its usage in a live demo.


Made with Nuxt Studio
- - + + \ No newline at end of file diff --git a/index.html b/index.html index 3450cd2c..446f4d04 100644 --- a/index.html +++ b/index.html @@ -65,34 +65,34 @@ - - - + + + - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + - - + + - - + + -
mobile favicon
email: email.value, }) } -

Shipped with many features

Nuxt 3 ready

Vue 3 composables

Supabase-js V2

Usage in API server routes

Authentication support

TypeScript support

Made with Nuxt Studio
- +

Shipped with many features

Nuxt 3 ready

Vue 3 composables

Supabase-js V2

Usage in API server routes

Authentication support

TypeScript support

Made with Nuxt Studio
+ \ No newline at end of file diff --git a/roadmap/_payload.json b/roadmap/_payload.json index 50ee80d5..aa2e27c2 100644 --- a/roadmap/_payload.json +++ b/roadmap/_payload.json @@ -1 +1 @@ -[{"data":1,"prerenderedAt":77},["Reactive",2],{"navigation":3,"/roadmap":52,"/roadmap-surround":73},[4,8,12,40,44,48],{"title":5,"_path":6,"icon":7},"Get Started","/get-started","heroicons:rocket-launch",{"title":9,"_path":10,"icon":11},"Authentication","/authentication","heroicons:lock-closed",{"title":13,"_path":14,"children":15,"icon":39},"Usage","/usage",[16,26],{"title":17,"_path":18,"children":19},"Vue composables","/usage/composables",[20,23],{"title":21,"_path":22},"useSupabaseClient","/usage/composables/usesupabaseclient",{"title":24,"_path":25},"useSupabaseUser","/usage/composables/usesupabaseuser",{"title":27,"_path":28,"children":29},"Server services","/usage/services",[30,33,36],{"title":31,"_path":32},"serverSupabaseClient","/usage/services/serversupabaseclient",{"title":34,"_path":35},"serverSupabaseServiceRole","/usage/services/serversupabaseservicerole",{"title":37,"_path":38},"serverSupabaseUser","/usage/services/serversupabaseuser","heroicons:book-open",{"title":41,"_path":42,"icon":43},"Demo","/demo","heroicons:computer-desktop-20-solid",{"title":45,"_path":46,"icon":47},"Changelog","/changelog","heroicons:bookmark",{"title":49,"_path":50,"icon":51},"Roadmap","/roadmap","heroicons:map",{"_path":50,"_dir":53,"_draft":54,"_partial":54,"_locale":53,"title":49,"description":55,"icon":51,"body":56,"_type":68,"_id":69,"_source":70,"_file":71,"_extension":72},"",false,"Discover our kaban board for the next release of the Supabase module.",{"type":57,"children":58,"toc":65},"root",[59],{"type":60,"tag":61,"props":62,"children":64},"element","volta-board",{"token":63},"eyJzdGF0dXNlcyI6WyJ0cmlhZ2UiLCJiYWNrbG9nIiwidG9kbyIsImluX3Byb2dyZXNzIiwiaW5fcmV2aWV3IiwiZG9uZSIsInJlbGVhc2VkIiwiY2FuY2VsbGVkIl0sImZpbHRlcnMiOnt9LCJvd25lciI6Im51eHQtbW9kdWxlcyIsIm5hbWUiOiJzdXBhYmFzZSJ9",[],{"title":53,"searchDepth":66,"depth":66,"links":67},2,[],"markdown","content:7.roadmap.md","content","7.roadmap.md","md",[74,76],{"_path":46,"title":45,"description":75},"Discover the latest updates of the Supabase Module",null,1703671431804] \ No newline at end of file +[{"data":1,"prerenderedAt":77},["Reactive",2],{"navigation":3,"/roadmap":52,"/roadmap-surround":73},[4,8,12,40,44,48],{"title":5,"_path":6,"icon":7},"Get Started","/get-started","heroicons:rocket-launch",{"title":9,"_path":10,"icon":11},"Authentication","/authentication","heroicons:lock-closed",{"title":13,"_path":14,"children":15,"icon":39},"Usage","/usage",[16,26],{"title":17,"_path":18,"children":19},"Vue composables","/usage/composables",[20,23],{"title":21,"_path":22},"useSupabaseClient","/usage/composables/usesupabaseclient",{"title":24,"_path":25},"useSupabaseUser","/usage/composables/usesupabaseuser",{"title":27,"_path":28,"children":29},"Server services","/usage/services",[30,33,36],{"title":31,"_path":32},"serverSupabaseClient","/usage/services/serversupabaseclient",{"title":34,"_path":35},"serverSupabaseServiceRole","/usage/services/serversupabaseservicerole",{"title":37,"_path":38},"serverSupabaseUser","/usage/services/serversupabaseuser","heroicons:book-open",{"title":41,"_path":42,"icon":43},"Demo","/demo","heroicons:computer-desktop-20-solid",{"title":45,"_path":46,"icon":47},"Changelog","/changelog","heroicons:bookmark",{"title":49,"_path":50,"icon":51},"Roadmap","/roadmap","heroicons:map",{"_path":50,"_dir":53,"_draft":54,"_partial":54,"_locale":53,"title":49,"description":55,"icon":51,"body":56,"_type":68,"_id":69,"_source":70,"_file":71,"_extension":72},"",false,"Discover our kaban board for the next release of the Supabase module.",{"type":57,"children":58,"toc":65},"root",[59],{"type":60,"tag":61,"props":62,"children":64},"element","volta-board",{"token":63},"eyJzdGF0dXNlcyI6WyJ0cmlhZ2UiLCJiYWNrbG9nIiwidG9kbyIsImluX3Byb2dyZXNzIiwiaW5fcmV2aWV3IiwiZG9uZSIsInJlbGVhc2VkIiwiY2FuY2VsbGVkIl0sImZpbHRlcnMiOnt9LCJvd25lciI6Im51eHQtbW9kdWxlcyIsIm5hbWUiOiJzdXBhYmFzZSJ9",[],{"title":53,"searchDepth":66,"depth":66,"links":67},2,[],"markdown","content:7.roadmap.md","content","7.roadmap.md","md",[74,76],{"_path":46,"title":45,"description":75},"Discover the latest updates of the Supabase Module",null,1703757838250] \ No newline at end of file diff --git a/roadmap/index.html b/roadmap/index.html index b7249183..46f59e88 100644 --- a/roadmap/index.html +++ b/roadmap/index.html @@ -67,29 +67,29 @@ - - - - - - - - - - - - - - + + + + + + + + + + + + + + - - + + - -
- - + + \ No newline at end of file diff --git a/usage/composables/usesupabaseclient/_payload.json b/usage/composables/usesupabaseclient/_payload.json index c15a2c0a..c120ac33 100644 --- a/usage/composables/usesupabaseclient/_payload.json +++ b/usage/composables/usesupabaseclient/_payload.json @@ -1 +1 @@ -[{"data":1,"prerenderedAt":2099},["Reactive",2],{"navigation":3,"/usage/composables/usesupabaseclient":52,"/usage/composables/usesupabaseclient-surround":2094},[4,8,12,40,44,48],{"title":5,"_path":6,"icon":7},"Get Started","/get-started","heroicons:rocket-launch",{"title":9,"_path":10,"icon":11},"Authentication","/authentication","heroicons:lock-closed",{"title":13,"_path":14,"children":15,"icon":39},"Usage","/usage",[16,26],{"title":17,"_path":18,"children":19},"Vue composables","/usage/composables",[20,23],{"title":21,"_path":22},"useSupabaseClient","/usage/composables/usesupabaseclient",{"title":24,"_path":25},"useSupabaseUser","/usage/composables/usesupabaseuser",{"title":27,"_path":28,"children":29},"Server services","/usage/services",[30,33,36],{"title":31,"_path":32},"serverSupabaseClient","/usage/services/serversupabaseclient",{"title":34,"_path":35},"serverSupabaseServiceRole","/usage/services/serversupabaseservicerole",{"title":37,"_path":38},"serverSupabaseUser","/usage/services/serversupabaseuser","heroicons:book-open",{"title":41,"_path":42,"icon":43},"Demo","/demo","heroicons:computer-desktop-20-solid",{"title":45,"_path":46,"icon":47},"Changelog","/changelog","heroicons:bookmark",{"title":49,"_path":50,"icon":51},"Roadmap","/roadmap","heroicons:map",{"_path":22,"_dir":53,"_draft":54,"_partial":54,"_locale":55,"title":21,"description":56,"body":57,"_type":2089,"_id":2090,"_source":2091,"_file":2092,"_extension":2093},"composables",false,"","Make requests to the Supabase API with the useSupabaseClient composable",{"type":58,"children":59,"toc":2083},"root",[60,77,100,138,144,165,182,707,718,724,738,759,1119,1125,1139,1153,1158,1918,1924,1938,2077],{"type":61,"tag":62,"props":63,"children":64},"element","p",{},[65,75],{"type":61,"tag":66,"props":67,"children":71},"a",{"href":68,"rel":69},"https://nuxt.com/docs/guide/directory-structure/composables",[70],"nofollow",[72],{"type":73,"value":74},"text","Auto-import",{"type":73,"value":76}," your client inside your vue files.",{"type":61,"tag":62,"props":78,"children":79},{},[80,82,89,91,98],{"type":73,"value":81},"This composable is using ",{"type":61,"tag":66,"props":83,"children":86},{"href":84,"rel":85},"https://github.com/supabase/supabase-js/",[70],[87],{"type":73,"value":88},"supabase-js",{"type":73,"value":90}," under the hood, it gives access to the ",{"type":61,"tag":66,"props":92,"children":95},{"href":93,"rel":94},"https://supabase.com/docs/reference/javascript/initializing",[70],[96],{"type":73,"value":97},"Supabase client",{"type":73,"value":99},".",{"type":61,"tag":101,"props":102,"children":103},"blockquote",{},[104],{"type":61,"tag":62,"props":105,"children":106},{},[107,109,115,117,122,124,131,133,137],{"type":73,"value":108},"The client is initialized with the ",{"type":61,"tag":110,"props":111,"children":112},"code",{"className":55},[113],{"type":73,"value":114},"SUPABASE_KEY",{"type":73,"value":116}," you must have in your ",{"type":61,"tag":110,"props":118,"children":119},{"className":55},[120],{"type":73,"value":121},".env",{"type":73,"value":123}," file. It establishes the connection with the database and make use of user JWT to apply ",{"type":61,"tag":66,"props":125,"children":128},{"href":126,"rel":127},"https://supabase.com/docs/learn/auth-deep-dive/auth-row-level-security",[70],[129],{"type":73,"value":130},"RLS Policies",{"type":73,"value":132}," implemented in Supabase. If you want to bypass policies, you can use the ",{"type":61,"tag":66,"props":134,"children":135},{"href":35},[136],{"type":73,"value":34},{"type":73,"value":99},{"type":61,"tag":139,"props":140,"children":142},"h2",{"id":141},"authentication",[143],{"type":73,"value":9},{"type":61,"tag":62,"props":145,"children":146},{},[147,149,154,156,163],{"type":73,"value":148},"The useSupabaseClient composable is providing all methods to manage authorization under ",{"type":61,"tag":110,"props":150,"children":151},{"className":55},[152],{"type":73,"value":153},"useSupabaseClient().auth",{"type":73,"value":155},". For more details please see the ",{"type":61,"tag":66,"props":157,"children":160},{"href":158,"rel":159},"https://supabase.com/docs/reference/javascript/auth-api",[70],[161],{"type":73,"value":162},"supabase-js auth documentation",{"type":73,"value":164},". Here is an example for signing in and out:",{"type":61,"tag":166,"props":167,"children":169},"callout",{"icon":168},"i-heroicons-light-bulb",[170],{"type":61,"tag":62,"props":171,"children":172},{},[173,175,181],{"type":73,"value":174},"If you want a full explanation on how to handle the authentication process, please read this ",{"type":61,"tag":66,"props":176,"children":178},{"href":177},"/get-started#handle-authentication",[179],{"type":73,"value":180},"section",{"type":73,"value":99},{"type":61,"tag":183,"props":184,"children":188},"pre",{"className":185,"code":186,"language":187,"meta":55,"style":55},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","\u003Cscript setup lang=\"ts\">\nconst supabase = useSupabaseClient()\n\nconst signInWithOAuth = async () => {\n const { error } = await supabase.auth.signInWithOAuth({\n provider: 'github',\n options: {\n redirectTo: 'http://localhost:3000/confirm',\n },\n })\n if (error) console.log(error)\n}\n\nconst signOut = async () => {\n const { error } = await supabase.auth.signOut()\n if (error) console.log(error)\n}\n\u003C/script>\n","ts",[189],{"type":61,"tag":110,"props":190,"children":191},{"__ignoreMap":55},[192,234,264,274,311,380,414,431,461,470,484,534,543,551,584,637,681,689],{"type":61,"tag":193,"props":194,"children":197},"span",{"class":195,"line":196},"line",1,[198,204,210,215,220,225,229],{"type":61,"tag":193,"props":199,"children":201},{"style":200},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF",[202],{"type":73,"value":203},"\u003C",{"type":61,"tag":193,"props":205,"children":207},{"style":206},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8",[208],{"type":73,"value":209},"script setup lang",{"type":61,"tag":193,"props":211,"children":212},{"style":200},[213],{"type":73,"value":214},"=",{"type":61,"tag":193,"props":216,"children":217},{"style":200},[218],{"type":73,"value":219},"\"",{"type":61,"tag":193,"props":221,"children":223},{"style":222},"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D",[224],{"type":73,"value":187},{"type":61,"tag":193,"props":226,"children":227},{"style":200},[228],{"type":73,"value":219},{"type":61,"tag":193,"props":230,"children":231},{"style":200},[232],{"type":73,"value":233},">\n",{"type":61,"tag":193,"props":235,"children":237},{"class":195,"line":236},2,[238,244,249,253,259],{"type":61,"tag":193,"props":239,"children":241},{"style":240},"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA",[242],{"type":73,"value":243},"const",{"type":61,"tag":193,"props":245,"children":246},{"style":206},[247],{"type":73,"value":248}," supabase ",{"type":61,"tag":193,"props":250,"children":251},{"style":200},[252],{"type":73,"value":214},{"type":61,"tag":193,"props":254,"children":256},{"style":255},"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF",[257],{"type":73,"value":258}," useSupabaseClient",{"type":61,"tag":193,"props":260,"children":261},{"style":206},[262],{"type":73,"value":263},"()\n",{"type":61,"tag":193,"props":265,"children":267},{"class":195,"line":266},3,[268],{"type":61,"tag":193,"props":269,"children":271},{"emptyLinePlaceholder":270},true,[272],{"type":73,"value":273},"\n",{"type":61,"tag":193,"props":275,"children":277},{"class":195,"line":276},4,[278,282,287,291,296,301,306],{"type":61,"tag":193,"props":279,"children":280},{"style":240},[281],{"type":73,"value":243},{"type":61,"tag":193,"props":283,"children":284},{"style":206},[285],{"type":73,"value":286}," signInWithOAuth ",{"type":61,"tag":193,"props":288,"children":289},{"style":200},[290],{"type":73,"value":214},{"type":61,"tag":193,"props":292,"children":293},{"style":240},[294],{"type":73,"value":295}," async",{"type":61,"tag":193,"props":297,"children":298},{"style":200},[299],{"type":73,"value":300}," ()",{"type":61,"tag":193,"props":302,"children":303},{"style":240},[304],{"type":73,"value":305}," =>",{"type":61,"tag":193,"props":307,"children":308},{"style":200},[309],{"type":73,"value":310}," {\n",{"type":61,"tag":193,"props":312,"children":314},{"class":195,"line":313},5,[315,320,325,330,335,340,346,351,355,360,364,369,375],{"type":61,"tag":193,"props":316,"children":317},{"style":240},[318],{"type":73,"value":319}," const",{"type":61,"tag":193,"props":321,"children":322},{"style":200},[323],{"type":73,"value":324}," {",{"type":61,"tag":193,"props":326,"children":327},{"style":206},[328],{"type":73,"value":329}," error",{"type":61,"tag":193,"props":331,"children":332},{"style":200},[333],{"type":73,"value":334}," }",{"type":61,"tag":193,"props":336,"children":337},{"style":200},[338],{"type":73,"value":339}," =",{"type":61,"tag":193,"props":341,"children":343},{"style":342},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic",[344],{"type":73,"value":345}," await",{"type":61,"tag":193,"props":347,"children":348},{"style":206},[349],{"type":73,"value":350}," supabase",{"type":61,"tag":193,"props":352,"children":353},{"style":200},[354],{"type":73,"value":99},{"type":61,"tag":193,"props":356,"children":357},{"style":206},[358],{"type":73,"value":359},"auth",{"type":61,"tag":193,"props":361,"children":362},{"style":200},[363],{"type":73,"value":99},{"type":61,"tag":193,"props":365,"children":366},{"style":255},[367],{"type":73,"value":368},"signInWithOAuth",{"type":61,"tag":193,"props":370,"children":372},{"style":371},"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178",[373],{"type":73,"value":374},"(",{"type":61,"tag":193,"props":376,"children":377},{"style":200},[378],{"type":73,"value":379},"{\n",{"type":61,"tag":193,"props":381,"children":383},{"class":195,"line":382},6,[384,389,394,399,404,409],{"type":61,"tag":193,"props":385,"children":386},{"style":371},[387],{"type":73,"value":388}," provider",{"type":61,"tag":193,"props":390,"children":391},{"style":200},[392],{"type":73,"value":393},":",{"type":61,"tag":193,"props":395,"children":396},{"style":200},[397],{"type":73,"value":398}," '",{"type":61,"tag":193,"props":400,"children":401},{"style":222},[402],{"type":73,"value":403},"github",{"type":61,"tag":193,"props":405,"children":406},{"style":200},[407],{"type":73,"value":408},"'",{"type":61,"tag":193,"props":410,"children":411},{"style":200},[412],{"type":73,"value":413},",\n",{"type":61,"tag":193,"props":415,"children":417},{"class":195,"line":416},7,[418,423,427],{"type":61,"tag":193,"props":419,"children":420},{"style":371},[421],{"type":73,"value":422}," options",{"type":61,"tag":193,"props":424,"children":425},{"style":200},[426],{"type":73,"value":393},{"type":61,"tag":193,"props":428,"children":429},{"style":200},[430],{"type":73,"value":310},{"type":61,"tag":193,"props":432,"children":434},{"class":195,"line":433},8,[435,440,444,448,453,457],{"type":61,"tag":193,"props":436,"children":437},{"style":371},[438],{"type":73,"value":439}," redirectTo",{"type":61,"tag":193,"props":441,"children":442},{"style":200},[443],{"type":73,"value":393},{"type":61,"tag":193,"props":445,"children":446},{"style":200},[447],{"type":73,"value":398},{"type":61,"tag":193,"props":449,"children":450},{"style":222},[451],{"type":73,"value":452},"http://localhost:3000/confirm",{"type":61,"tag":193,"props":454,"children":455},{"style":200},[456],{"type":73,"value":408},{"type":61,"tag":193,"props":458,"children":459},{"style":200},[460],{"type":73,"value":413},{"type":61,"tag":193,"props":462,"children":464},{"class":195,"line":463},9,[465],{"type":61,"tag":193,"props":466,"children":467},{"style":200},[468],{"type":73,"value":469}," },\n",{"type":61,"tag":193,"props":471,"children":473},{"class":195,"line":472},10,[474,479],{"type":61,"tag":193,"props":475,"children":476},{"style":200},[477],{"type":73,"value":478}," }",{"type":61,"tag":193,"props":480,"children":481},{"style":371},[482],{"type":73,"value":483},")\n",{"type":61,"tag":193,"props":485,"children":487},{"class":195,"line":486},11,[488,493,498,503,508,513,517,522,526,530],{"type":61,"tag":193,"props":489,"children":490},{"style":342},[491],{"type":73,"value":492}," if",{"type":61,"tag":193,"props":494,"children":495},{"style":371},[496],{"type":73,"value":497}," (",{"type":61,"tag":193,"props":499,"children":500},{"style":206},[501],{"type":73,"value":502},"error",{"type":61,"tag":193,"props":504,"children":505},{"style":371},[506],{"type":73,"value":507},") ",{"type":61,"tag":193,"props":509,"children":510},{"style":206},[511],{"type":73,"value":512},"console",{"type":61,"tag":193,"props":514,"children":515},{"style":200},[516],{"type":73,"value":99},{"type":61,"tag":193,"props":518,"children":519},{"style":255},[520],{"type":73,"value":521},"log",{"type":61,"tag":193,"props":523,"children":524},{"style":371},[525],{"type":73,"value":374},{"type":61,"tag":193,"props":527,"children":528},{"style":206},[529],{"type":73,"value":502},{"type":61,"tag":193,"props":531,"children":532},{"style":371},[533],{"type":73,"value":483},{"type":61,"tag":193,"props":535,"children":537},{"class":195,"line":536},12,[538],{"type":61,"tag":193,"props":539,"children":540},{"style":200},[541],{"type":73,"value":542},"}\n",{"type":61,"tag":193,"props":544,"children":546},{"class":195,"line":545},13,[547],{"type":61,"tag":193,"props":548,"children":549},{"emptyLinePlaceholder":270},[550],{"type":73,"value":273},{"type":61,"tag":193,"props":552,"children":554},{"class":195,"line":553},14,[555,559,564,568,572,576,580],{"type":61,"tag":193,"props":556,"children":557},{"style":240},[558],{"type":73,"value":243},{"type":61,"tag":193,"props":560,"children":561},{"style":206},[562],{"type":73,"value":563}," signOut ",{"type":61,"tag":193,"props":565,"children":566},{"style":200},[567],{"type":73,"value":214},{"type":61,"tag":193,"props":569,"children":570},{"style":240},[571],{"type":73,"value":295},{"type":61,"tag":193,"props":573,"children":574},{"style":200},[575],{"type":73,"value":300},{"type":61,"tag":193,"props":577,"children":578},{"style":240},[579],{"type":73,"value":305},{"type":61,"tag":193,"props":581,"children":582},{"style":200},[583],{"type":73,"value":310},{"type":61,"tag":193,"props":585,"children":587},{"class":195,"line":586},15,[588,592,596,600,604,608,612,616,620,624,628,633],{"type":61,"tag":193,"props":589,"children":590},{"style":240},[591],{"type":73,"value":319},{"type":61,"tag":193,"props":593,"children":594},{"style":200},[595],{"type":73,"value":324},{"type":61,"tag":193,"props":597,"children":598},{"style":206},[599],{"type":73,"value":329},{"type":61,"tag":193,"props":601,"children":602},{"style":200},[603],{"type":73,"value":334},{"type":61,"tag":193,"props":605,"children":606},{"style":200},[607],{"type":73,"value":339},{"type":61,"tag":193,"props":609,"children":610},{"style":342},[611],{"type":73,"value":345},{"type":61,"tag":193,"props":613,"children":614},{"style":206},[615],{"type":73,"value":350},{"type":61,"tag":193,"props":617,"children":618},{"style":200},[619],{"type":73,"value":99},{"type":61,"tag":193,"props":621,"children":622},{"style":206},[623],{"type":73,"value":359},{"type":61,"tag":193,"props":625,"children":626},{"style":200},[627],{"type":73,"value":99},{"type":61,"tag":193,"props":629,"children":630},{"style":255},[631],{"type":73,"value":632},"signOut",{"type":61,"tag":193,"props":634,"children":635},{"style":371},[636],{"type":73,"value":263},{"type":61,"tag":193,"props":638,"children":640},{"class":195,"line":639},16,[641,645,649,653,657,661,665,669,673,677],{"type":61,"tag":193,"props":642,"children":643},{"style":342},[644],{"type":73,"value":492},{"type":61,"tag":193,"props":646,"children":647},{"style":371},[648],{"type":73,"value":497},{"type":61,"tag":193,"props":650,"children":651},{"style":206},[652],{"type":73,"value":502},{"type":61,"tag":193,"props":654,"children":655},{"style":371},[656],{"type":73,"value":507},{"type":61,"tag":193,"props":658,"children":659},{"style":206},[660],{"type":73,"value":512},{"type":61,"tag":193,"props":662,"children":663},{"style":200},[664],{"type":73,"value":99},{"type":61,"tag":193,"props":666,"children":667},{"style":255},[668],{"type":73,"value":521},{"type":61,"tag":193,"props":670,"children":671},{"style":371},[672],{"type":73,"value":374},{"type":61,"tag":193,"props":674,"children":675},{"style":206},[676],{"type":73,"value":502},{"type":61,"tag":193,"props":678,"children":679},{"style":371},[680],{"type":73,"value":483},{"type":61,"tag":193,"props":682,"children":684},{"class":195,"line":683},17,[685],{"type":61,"tag":193,"props":686,"children":687},{"style":200},[688],{"type":73,"value":542},{"type":61,"tag":193,"props":690,"children":692},{"class":195,"line":691},18,[693,698,703],{"type":61,"tag":193,"props":694,"children":695},{"style":200},[696],{"type":73,"value":697},"\u003C/",{"type":61,"tag":193,"props":699,"children":700},{"style":206},[701],{"type":73,"value":702},"script",{"type":61,"tag":193,"props":704,"children":705},{"style":200},[706],{"type":73,"value":233},{"type":61,"tag":62,"props":708,"children":709},{},[710,712,716],{"type":73,"value":711},"Please also take a look at ",{"type":61,"tag":66,"props":713,"children":714},{"href":6},[715],{"type":73,"value":5},{"type":73,"value":717}," for the authorization flow.",{"type":61,"tag":139,"props":719,"children":721},{"id":720},"database-request",[722],{"type":73,"value":723},"Database Request",{"type":61,"tag":62,"props":725,"children":726},{},[727,729,736],{"type":73,"value":728},"Please check ",{"type":61,"tag":66,"props":730,"children":733},{"href":731,"rel":732},"https://supabase.com/docs/reference/javascript/select",[70],[734],{"type":73,"value":735},"Supabase",{"type":73,"value":737}," documentation to fully use the power of Supabase client.",{"type":61,"tag":62,"props":739,"children":740},{},[741,743,748,750,757],{"type":73,"value":742},"Here is an example of a fetch using the ",{"type":61,"tag":110,"props":744,"children":745},{"className":55},[746],{"type":73,"value":747},"select",{"type":73,"value":749}," method with Nuxt 3 ",{"type":61,"tag":66,"props":751,"children":754},{"href":752,"rel":753},"https://nuxt.com/docs/getting-started/data-fetching#useasyncdata",[70],[755],{"type":73,"value":756},"useAsyncData",{"type":73,"value":758}," composable.",{"type":61,"tag":183,"props":760,"children":764},{"className":761,"code":762,"language":763,"meta":55,"style":55},"language-vue shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","\u003Cscript setup lang=\"ts\">\nconst client = useSupabaseClient()\n\nconst { data: restaurant } = await useAsyncData('restaurant', async () => {\n const { data } = await client.from('restaurants').select('name, location').eq('name', 'My Restaurant Name').single()\n\n return data\n})\n\u003C/script>\n","vue",[765],{"type":61,"tag":110,"props":766,"children":767},{"__ignoreMap":55},[768,809,833,840,921,1073,1080,1093,1104],{"type":61,"tag":193,"props":769,"children":770},{"class":195,"line":196},[771,775,779,784,789,793,797,801,805],{"type":61,"tag":193,"props":772,"children":773},{"style":200},[774],{"type":73,"value":203},{"type":61,"tag":193,"props":776,"children":777},{"style":371},[778],{"type":73,"value":702},{"type":61,"tag":193,"props":780,"children":781},{"style":240},[782],{"type":73,"value":783}," setup",{"type":61,"tag":193,"props":785,"children":786},{"style":240},[787],{"type":73,"value":788}," lang",{"type":61,"tag":193,"props":790,"children":791},{"style":200},[792],{"type":73,"value":214},{"type":61,"tag":193,"props":794,"children":795},{"style":200},[796],{"type":73,"value":219},{"type":61,"tag":193,"props":798,"children":799},{"style":222},[800],{"type":73,"value":187},{"type":61,"tag":193,"props":802,"children":803},{"style":200},[804],{"type":73,"value":219},{"type":61,"tag":193,"props":806,"children":807},{"style":200},[808],{"type":73,"value":233},{"type":61,"tag":193,"props":810,"children":811},{"class":195,"line":236},[812,816,821,825,829],{"type":61,"tag":193,"props":813,"children":814},{"style":240},[815],{"type":73,"value":243},{"type":61,"tag":193,"props":817,"children":818},{"style":206},[819],{"type":73,"value":820}," client ",{"type":61,"tag":193,"props":822,"children":823},{"style":200},[824],{"type":73,"value":214},{"type":61,"tag":193,"props":826,"children":827},{"style":255},[828],{"type":73,"value":258},{"type":61,"tag":193,"props":830,"children":831},{"style":206},[832],{"type":73,"value":263},{"type":61,"tag":193,"props":834,"children":835},{"class":195,"line":266},[836],{"type":61,"tag":193,"props":837,"children":838},{"emptyLinePlaceholder":270},[839],{"type":73,"value":273},{"type":61,"tag":193,"props":841,"children":842},{"class":195,"line":276},[843,847,851,856,860,865,870,874,878,883,887,891,896,900,905,909,913,917],{"type":61,"tag":193,"props":844,"children":845},{"style":240},[846],{"type":73,"value":243},{"type":61,"tag":193,"props":848,"children":849},{"style":200},[850],{"type":73,"value":324},{"type":61,"tag":193,"props":852,"children":853},{"style":371},[854],{"type":73,"value":855}," data",{"type":61,"tag":193,"props":857,"children":858},{"style":200},[859],{"type":73,"value":393},{"type":61,"tag":193,"props":861,"children":862},{"style":206},[863],{"type":73,"value":864}," restaurant ",{"type":61,"tag":193,"props":866,"children":867},{"style":200},[868],{"type":73,"value":869},"}",{"type":61,"tag":193,"props":871,"children":872},{"style":200},[873],{"type":73,"value":339},{"type":61,"tag":193,"props":875,"children":876},{"style":342},[877],{"type":73,"value":345},{"type":61,"tag":193,"props":879,"children":880},{"style":255},[881],{"type":73,"value":882}," useAsyncData",{"type":61,"tag":193,"props":884,"children":885},{"style":206},[886],{"type":73,"value":374},{"type":61,"tag":193,"props":888,"children":889},{"style":200},[890],{"type":73,"value":408},{"type":61,"tag":193,"props":892,"children":893},{"style":222},[894],{"type":73,"value":895},"restaurant",{"type":61,"tag":193,"props":897,"children":898},{"style":200},[899],{"type":73,"value":408},{"type":61,"tag":193,"props":901,"children":902},{"style":200},[903],{"type":73,"value":904},",",{"type":61,"tag":193,"props":906,"children":907},{"style":240},[908],{"type":73,"value":295},{"type":61,"tag":193,"props":910,"children":911},{"style":200},[912],{"type":73,"value":300},{"type":61,"tag":193,"props":914,"children":915},{"style":240},[916],{"type":73,"value":305},{"type":61,"tag":193,"props":918,"children":919},{"style":200},[920],{"type":73,"value":310},{"type":61,"tag":193,"props":922,"children":923},{"class":195,"line":313},[924,928,932,936,940,944,948,953,957,962,966,970,975,979,984,988,992,996,1000,1005,1009,1013,1017,1022,1026,1030,1035,1039,1043,1047,1052,1056,1060,1064,1069],{"type":61,"tag":193,"props":925,"children":926},{"style":240},[927],{"type":73,"value":319},{"type":61,"tag":193,"props":929,"children":930},{"style":200},[931],{"type":73,"value":324},{"type":61,"tag":193,"props":933,"children":934},{"style":206},[935],{"type":73,"value":855},{"type":61,"tag":193,"props":937,"children":938},{"style":200},[939],{"type":73,"value":334},{"type":61,"tag":193,"props":941,"children":942},{"style":200},[943],{"type":73,"value":339},{"type":61,"tag":193,"props":945,"children":946},{"style":342},[947],{"type":73,"value":345},{"type":61,"tag":193,"props":949,"children":950},{"style":206},[951],{"type":73,"value":952}," client",{"type":61,"tag":193,"props":954,"children":955},{"style":200},[956],{"type":73,"value":99},{"type":61,"tag":193,"props":958,"children":959},{"style":255},[960],{"type":73,"value":961},"from",{"type":61,"tag":193,"props":963,"children":964},{"style":371},[965],{"type":73,"value":374},{"type":61,"tag":193,"props":967,"children":968},{"style":200},[969],{"type":73,"value":408},{"type":61,"tag":193,"props":971,"children":972},{"style":222},[973],{"type":73,"value":974},"restaurants",{"type":61,"tag":193,"props":976,"children":977},{"style":200},[978],{"type":73,"value":408},{"type":61,"tag":193,"props":980,"children":981},{"style":371},[982],{"type":73,"value":983},")",{"type":61,"tag":193,"props":985,"children":986},{"style":200},[987],{"type":73,"value":99},{"type":61,"tag":193,"props":989,"children":990},{"style":255},[991],{"type":73,"value":747},{"type":61,"tag":193,"props":993,"children":994},{"style":371},[995],{"type":73,"value":374},{"type":61,"tag":193,"props":997,"children":998},{"style":200},[999],{"type":73,"value":408},{"type":61,"tag":193,"props":1001,"children":1002},{"style":222},[1003],{"type":73,"value":1004},"name, location",{"type":61,"tag":193,"props":1006,"children":1007},{"style":200},[1008],{"type":73,"value":408},{"type":61,"tag":193,"props":1010,"children":1011},{"style":371},[1012],{"type":73,"value":983},{"type":61,"tag":193,"props":1014,"children":1015},{"style":200},[1016],{"type":73,"value":99},{"type":61,"tag":193,"props":1018,"children":1019},{"style":255},[1020],{"type":73,"value":1021},"eq",{"type":61,"tag":193,"props":1023,"children":1024},{"style":371},[1025],{"type":73,"value":374},{"type":61,"tag":193,"props":1027,"children":1028},{"style":200},[1029],{"type":73,"value":408},{"type":61,"tag":193,"props":1031,"children":1032},{"style":222},[1033],{"type":73,"value":1034},"name",{"type":61,"tag":193,"props":1036,"children":1037},{"style":200},[1038],{"type":73,"value":408},{"type":61,"tag":193,"props":1040,"children":1041},{"style":200},[1042],{"type":73,"value":904},{"type":61,"tag":193,"props":1044,"children":1045},{"style":200},[1046],{"type":73,"value":398},{"type":61,"tag":193,"props":1048,"children":1049},{"style":222},[1050],{"type":73,"value":1051},"My Restaurant Name",{"type":61,"tag":193,"props":1053,"children":1054},{"style":200},[1055],{"type":73,"value":408},{"type":61,"tag":193,"props":1057,"children":1058},{"style":371},[1059],{"type":73,"value":983},{"type":61,"tag":193,"props":1061,"children":1062},{"style":200},[1063],{"type":73,"value":99},{"type":61,"tag":193,"props":1065,"children":1066},{"style":255},[1067],{"type":73,"value":1068},"single",{"type":61,"tag":193,"props":1070,"children":1071},{"style":371},[1072],{"type":73,"value":263},{"type":61,"tag":193,"props":1074,"children":1075},{"class":195,"line":382},[1076],{"type":61,"tag":193,"props":1077,"children":1078},{"emptyLinePlaceholder":270},[1079],{"type":73,"value":273},{"type":61,"tag":193,"props":1081,"children":1082},{"class":195,"line":416},[1083,1088],{"type":61,"tag":193,"props":1084,"children":1085},{"style":342},[1086],{"type":73,"value":1087}," return",{"type":61,"tag":193,"props":1089,"children":1090},{"style":206},[1091],{"type":73,"value":1092}," data\n",{"type":61,"tag":193,"props":1094,"children":1095},{"class":195,"line":433},[1096,1100],{"type":61,"tag":193,"props":1097,"children":1098},{"style":200},[1099],{"type":73,"value":869},{"type":61,"tag":193,"props":1101,"children":1102},{"style":206},[1103],{"type":73,"value":483},{"type":61,"tag":193,"props":1105,"children":1106},{"class":195,"line":463},[1107,1111,1115],{"type":61,"tag":193,"props":1108,"children":1109},{"style":200},[1110],{"type":73,"value":697},{"type":61,"tag":193,"props":1112,"children":1113},{"style":371},[1114],{"type":73,"value":702},{"type":61,"tag":193,"props":1116,"children":1117},{"style":200},[1118],{"type":73,"value":233},{"type":61,"tag":139,"props":1120,"children":1122},{"id":1121},"realtime",[1123],{"type":73,"value":1124},"Realtime",{"type":61,"tag":62,"props":1126,"children":1127},{},[1128,1130,1137],{"type":73,"value":1129},"Based on ",{"type":61,"tag":66,"props":1131,"children":1134},{"href":1132,"rel":1133},"https://github.com/supabase/realtime",[70],[1135],{"type":73,"value":1136},"Supabase Realtime",{"type":73,"value":1138},", listen to changes in your PostgreSQL Database and broadcasts them over WebSockets.",{"type":61,"tag":62,"props":1140,"children":1141},{},[1142,1144,1151],{"type":73,"value":1143},"To enable it, make sure you have turned on the ",{"type":61,"tag":66,"props":1145,"children":1148},{"href":1146,"rel":1147},"https://supabase.com/docs/guides/api#realtime-api",[70],[1149],{"type":73,"value":1150},"Realtime API",{"type":73,"value":1152}," for your table.",{"type":61,"tag":62,"props":1154,"children":1155},{},[1156],{"type":73,"value":1157},"Then, listen to changes directly in your vue page / component:",{"type":61,"tag":183,"props":1159,"children":1161},{"className":761,"code":1160,"language":763,"meta":55,"style":55},"\u003Cscript setup lang=\"ts\">\nimport type { RealtimeChannel } from '@supabase/supabase-js'\n\nconst client = useSupabaseClient()\n\nlet realtimeChannel: RealtimeChannel\n\n// Fetch collaborators and get the refresh method provided by useAsyncData\nconst { data: collaborators, refresh: refreshCollaborators } = await useAsyncData('collaborators', async () => {\n const { data } = await client.from('collaborators').select('name')\n return data\n})\n\n// Once page is mounted, listen to changes on the `collaborators` table and refresh collaborators when receiving event\nonMounted(() => {\n // Real time listener for new workouts\n realtimeChannel = client.channel('public:collaborators').on(\n 'postgres_changes',\n { event: '*', schema: 'public', table: 'collaborators' },\n () => refreshCollaborators()\n )\n\n realtimeChannel.subscribe()\n})\n\n // Don't forget to unsubscribe when user left the page\nonUnmounted(() => {\n client.removeChannel(realtimeChannel)\n})\n\u003C/script>\n",[1162],{"type":61,"tag":110,"props":1163,"children":1164},{"__ignoreMap":55},[1165,1204,1249,1256,1279,1286,1309,1316,1325,1420,1507,1518,1529,1536,1544,1569,1577,1637,1658,1745,1767,1776,1784,1805,1817,1825,1834,1859,1890,1902],{"type":61,"tag":193,"props":1166,"children":1167},{"class":195,"line":196},[1168,1172,1176,1180,1184,1188,1192,1196,1200],{"type":61,"tag":193,"props":1169,"children":1170},{"style":200},[1171],{"type":73,"value":203},{"type":61,"tag":193,"props":1173,"children":1174},{"style":371},[1175],{"type":73,"value":702},{"type":61,"tag":193,"props":1177,"children":1178},{"style":240},[1179],{"type":73,"value":783},{"type":61,"tag":193,"props":1181,"children":1182},{"style":240},[1183],{"type":73,"value":788},{"type":61,"tag":193,"props":1185,"children":1186},{"style":200},[1187],{"type":73,"value":214},{"type":61,"tag":193,"props":1189,"children":1190},{"style":200},[1191],{"type":73,"value":219},{"type":61,"tag":193,"props":1193,"children":1194},{"style":222},[1195],{"type":73,"value":187},{"type":61,"tag":193,"props":1197,"children":1198},{"style":200},[1199],{"type":73,"value":219},{"type":61,"tag":193,"props":1201,"children":1202},{"style":200},[1203],{"type":73,"value":233},{"type":61,"tag":193,"props":1205,"children":1206},{"class":195,"line":236},[1207,1212,1217,1221,1226,1230,1235,1239,1244],{"type":61,"tag":193,"props":1208,"children":1209},{"style":342},[1210],{"type":73,"value":1211},"import",{"type":61,"tag":193,"props":1213,"children":1214},{"style":342},[1215],{"type":73,"value":1216}," type",{"type":61,"tag":193,"props":1218,"children":1219},{"style":200},[1220],{"type":73,"value":324},{"type":61,"tag":193,"props":1222,"children":1223},{"style":206},[1224],{"type":73,"value":1225}," RealtimeChannel",{"type":61,"tag":193,"props":1227,"children":1228},{"style":200},[1229],{"type":73,"value":334},{"type":61,"tag":193,"props":1231,"children":1232},{"style":342},[1233],{"type":73,"value":1234}," from",{"type":61,"tag":193,"props":1236,"children":1237},{"style":200},[1238],{"type":73,"value":398},{"type":61,"tag":193,"props":1240,"children":1241},{"style":222},[1242],{"type":73,"value":1243},"@supabase/supabase-js",{"type":61,"tag":193,"props":1245,"children":1246},{"style":200},[1247],{"type":73,"value":1248},"'\n",{"type":61,"tag":193,"props":1250,"children":1251},{"class":195,"line":266},[1252],{"type":61,"tag":193,"props":1253,"children":1254},{"emptyLinePlaceholder":270},[1255],{"type":73,"value":273},{"type":61,"tag":193,"props":1257,"children":1258},{"class":195,"line":276},[1259,1263,1267,1271,1275],{"type":61,"tag":193,"props":1260,"children":1261},{"style":240},[1262],{"type":73,"value":243},{"type":61,"tag":193,"props":1264,"children":1265},{"style":206},[1266],{"type":73,"value":820},{"type":61,"tag":193,"props":1268,"children":1269},{"style":200},[1270],{"type":73,"value":214},{"type":61,"tag":193,"props":1272,"children":1273},{"style":255},[1274],{"type":73,"value":258},{"type":61,"tag":193,"props":1276,"children":1277},{"style":206},[1278],{"type":73,"value":263},{"type":61,"tag":193,"props":1280,"children":1281},{"class":195,"line":313},[1282],{"type":61,"tag":193,"props":1283,"children":1284},{"emptyLinePlaceholder":270},[1285],{"type":73,"value":273},{"type":61,"tag":193,"props":1287,"children":1288},{"class":195,"line":382},[1289,1294,1299,1303],{"type":61,"tag":193,"props":1290,"children":1291},{"style":240},[1292],{"type":73,"value":1293},"let",{"type":61,"tag":193,"props":1295,"children":1296},{"style":206},[1297],{"type":73,"value":1298}," realtimeChannel",{"type":61,"tag":193,"props":1300,"children":1301},{"style":200},[1302],{"type":73,"value":393},{"type":61,"tag":193,"props":1304,"children":1306},{"style":1305},"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B",[1307],{"type":73,"value":1308}," RealtimeChannel\n",{"type":61,"tag":193,"props":1310,"children":1311},{"class":195,"line":416},[1312],{"type":61,"tag":193,"props":1313,"children":1314},{"emptyLinePlaceholder":270},[1315],{"type":73,"value":273},{"type":61,"tag":193,"props":1317,"children":1318},{"class":195,"line":433},[1319],{"type":61,"tag":193,"props":1320,"children":1322},{"style":1321},"--shiki-light:#90A4AE;--shiki-default:#546E7A;--shiki-dark:#676E95;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic",[1323],{"type":73,"value":1324},"// Fetch collaborators and get the refresh method provided by useAsyncData\n",{"type":61,"tag":193,"props":1326,"children":1327},{"class":195,"line":463},[1328,1332,1336,1340,1344,1349,1353,1358,1362,1367,1371,1375,1379,1383,1387,1391,1396,1400,1404,1408,1412,1416],{"type":61,"tag":193,"props":1329,"children":1330},{"style":240},[1331],{"type":73,"value":243},{"type":61,"tag":193,"props":1333,"children":1334},{"style":200},[1335],{"type":73,"value":324},{"type":61,"tag":193,"props":1337,"children":1338},{"style":371},[1339],{"type":73,"value":855},{"type":61,"tag":193,"props":1341,"children":1342},{"style":200},[1343],{"type":73,"value":393},{"type":61,"tag":193,"props":1345,"children":1346},{"style":206},[1347],{"type":73,"value":1348}," collaborators",{"type":61,"tag":193,"props":1350,"children":1351},{"style":200},[1352],{"type":73,"value":904},{"type":61,"tag":193,"props":1354,"children":1355},{"style":371},[1356],{"type":73,"value":1357}," refresh",{"type":61,"tag":193,"props":1359,"children":1360},{"style":200},[1361],{"type":73,"value":393},{"type":61,"tag":193,"props":1363,"children":1364},{"style":206},[1365],{"type":73,"value":1366}," refreshCollaborators ",{"type":61,"tag":193,"props":1368,"children":1369},{"style":200},[1370],{"type":73,"value":869},{"type":61,"tag":193,"props":1372,"children":1373},{"style":200},[1374],{"type":73,"value":339},{"type":61,"tag":193,"props":1376,"children":1377},{"style":342},[1378],{"type":73,"value":345},{"type":61,"tag":193,"props":1380,"children":1381},{"style":255},[1382],{"type":73,"value":882},{"type":61,"tag":193,"props":1384,"children":1385},{"style":206},[1386],{"type":73,"value":374},{"type":61,"tag":193,"props":1388,"children":1389},{"style":200},[1390],{"type":73,"value":408},{"type":61,"tag":193,"props":1392,"children":1393},{"style":222},[1394],{"type":73,"value":1395},"collaborators",{"type":61,"tag":193,"props":1397,"children":1398},{"style":200},[1399],{"type":73,"value":408},{"type":61,"tag":193,"props":1401,"children":1402},{"style":200},[1403],{"type":73,"value":904},{"type":61,"tag":193,"props":1405,"children":1406},{"style":240},[1407],{"type":73,"value":295},{"type":61,"tag":193,"props":1409,"children":1410},{"style":200},[1411],{"type":73,"value":300},{"type":61,"tag":193,"props":1413,"children":1414},{"style":240},[1415],{"type":73,"value":305},{"type":61,"tag":193,"props":1417,"children":1418},{"style":200},[1419],{"type":73,"value":310},{"type":61,"tag":193,"props":1421,"children":1422},{"class":195,"line":472},[1423,1427,1431,1435,1439,1443,1447,1451,1455,1459,1463,1467,1471,1475,1479,1483,1487,1491,1495,1499,1503],{"type":61,"tag":193,"props":1424,"children":1425},{"style":240},[1426],{"type":73,"value":319},{"type":61,"tag":193,"props":1428,"children":1429},{"style":200},[1430],{"type":73,"value":324},{"type":61,"tag":193,"props":1432,"children":1433},{"style":206},[1434],{"type":73,"value":855},{"type":61,"tag":193,"props":1436,"children":1437},{"style":200},[1438],{"type":73,"value":334},{"type":61,"tag":193,"props":1440,"children":1441},{"style":200},[1442],{"type":73,"value":339},{"type":61,"tag":193,"props":1444,"children":1445},{"style":342},[1446],{"type":73,"value":345},{"type":61,"tag":193,"props":1448,"children":1449},{"style":206},[1450],{"type":73,"value":952},{"type":61,"tag":193,"props":1452,"children":1453},{"style":200},[1454],{"type":73,"value":99},{"type":61,"tag":193,"props":1456,"children":1457},{"style":255},[1458],{"type":73,"value":961},{"type":61,"tag":193,"props":1460,"children":1461},{"style":371},[1462],{"type":73,"value":374},{"type":61,"tag":193,"props":1464,"children":1465},{"style":200},[1466],{"type":73,"value":408},{"type":61,"tag":193,"props":1468,"children":1469},{"style":222},[1470],{"type":73,"value":1395},{"type":61,"tag":193,"props":1472,"children":1473},{"style":200},[1474],{"type":73,"value":408},{"type":61,"tag":193,"props":1476,"children":1477},{"style":371},[1478],{"type":73,"value":983},{"type":61,"tag":193,"props":1480,"children":1481},{"style":200},[1482],{"type":73,"value":99},{"type":61,"tag":193,"props":1484,"children":1485},{"style":255},[1486],{"type":73,"value":747},{"type":61,"tag":193,"props":1488,"children":1489},{"style":371},[1490],{"type":73,"value":374},{"type":61,"tag":193,"props":1492,"children":1493},{"style":200},[1494],{"type":73,"value":408},{"type":61,"tag":193,"props":1496,"children":1497},{"style":222},[1498],{"type":73,"value":1034},{"type":61,"tag":193,"props":1500,"children":1501},{"style":200},[1502],{"type":73,"value":408},{"type":61,"tag":193,"props":1504,"children":1505},{"style":371},[1506],{"type":73,"value":483},{"type":61,"tag":193,"props":1508,"children":1509},{"class":195,"line":486},[1510,1514],{"type":61,"tag":193,"props":1511,"children":1512},{"style":342},[1513],{"type":73,"value":1087},{"type":61,"tag":193,"props":1515,"children":1516},{"style":206},[1517],{"type":73,"value":1092},{"type":61,"tag":193,"props":1519,"children":1520},{"class":195,"line":536},[1521,1525],{"type":61,"tag":193,"props":1522,"children":1523},{"style":200},[1524],{"type":73,"value":869},{"type":61,"tag":193,"props":1526,"children":1527},{"style":206},[1528],{"type":73,"value":483},{"type":61,"tag":193,"props":1530,"children":1531},{"class":195,"line":545},[1532],{"type":61,"tag":193,"props":1533,"children":1534},{"emptyLinePlaceholder":270},[1535],{"type":73,"value":273},{"type":61,"tag":193,"props":1537,"children":1538},{"class":195,"line":553},[1539],{"type":61,"tag":193,"props":1540,"children":1541},{"style":1321},[1542],{"type":73,"value":1543},"// Once page is mounted, listen to changes on the `collaborators` table and refresh collaborators when receiving event\n",{"type":61,"tag":193,"props":1545,"children":1546},{"class":195,"line":586},[1547,1552,1556,1561,1565],{"type":61,"tag":193,"props":1548,"children":1549},{"style":255},[1550],{"type":73,"value":1551},"onMounted",{"type":61,"tag":193,"props":1553,"children":1554},{"style":206},[1555],{"type":73,"value":374},{"type":61,"tag":193,"props":1557,"children":1558},{"style":200},[1559],{"type":73,"value":1560},"()",{"type":61,"tag":193,"props":1562,"children":1563},{"style":240},[1564],{"type":73,"value":305},{"type":61,"tag":193,"props":1566,"children":1567},{"style":200},[1568],{"type":73,"value":310},{"type":61,"tag":193,"props":1570,"children":1571},{"class":195,"line":639},[1572],{"type":61,"tag":193,"props":1573,"children":1574},{"style":1321},[1575],{"type":73,"value":1576}," // Real time listener for new workouts\n",{"type":61,"tag":193,"props":1578,"children":1579},{"class":195,"line":683},[1580,1585,1589,1593,1597,1602,1606,1610,1615,1619,1623,1627,1632],{"type":61,"tag":193,"props":1581,"children":1582},{"style":206},[1583],{"type":73,"value":1584}," realtimeChannel",{"type":61,"tag":193,"props":1586,"children":1587},{"style":200},[1588],{"type":73,"value":339},{"type":61,"tag":193,"props":1590,"children":1591},{"style":206},[1592],{"type":73,"value":952},{"type":61,"tag":193,"props":1594,"children":1595},{"style":200},[1596],{"type":73,"value":99},{"type":61,"tag":193,"props":1598,"children":1599},{"style":255},[1600],{"type":73,"value":1601},"channel",{"type":61,"tag":193,"props":1603,"children":1604},{"style":371},[1605],{"type":73,"value":374},{"type":61,"tag":193,"props":1607,"children":1608},{"style":200},[1609],{"type":73,"value":408},{"type":61,"tag":193,"props":1611,"children":1612},{"style":222},[1613],{"type":73,"value":1614},"public:collaborators",{"type":61,"tag":193,"props":1616,"children":1617},{"style":200},[1618],{"type":73,"value":408},{"type":61,"tag":193,"props":1620,"children":1621},{"style":371},[1622],{"type":73,"value":983},{"type":61,"tag":193,"props":1624,"children":1625},{"style":200},[1626],{"type":73,"value":99},{"type":61,"tag":193,"props":1628,"children":1629},{"style":255},[1630],{"type":73,"value":1631},"on",{"type":61,"tag":193,"props":1633,"children":1634},{"style":371},[1635],{"type":73,"value":1636},"(\n",{"type":61,"tag":193,"props":1638,"children":1639},{"class":195,"line":691},[1640,1645,1650,1654],{"type":61,"tag":193,"props":1641,"children":1642},{"style":200},[1643],{"type":73,"value":1644}," '",{"type":61,"tag":193,"props":1646,"children":1647},{"style":222},[1648],{"type":73,"value":1649},"postgres_changes",{"type":61,"tag":193,"props":1651,"children":1652},{"style":200},[1653],{"type":73,"value":408},{"type":61,"tag":193,"props":1655,"children":1656},{"style":200},[1657],{"type":73,"value":413},{"type":61,"tag":193,"props":1659,"children":1661},{"class":195,"line":1660},19,[1662,1667,1672,1676,1680,1685,1689,1693,1698,1702,1706,1711,1715,1719,1724,1728,1732,1736,1740],{"type":61,"tag":193,"props":1663,"children":1664},{"style":200},[1665],{"type":73,"value":1666}," {",{"type":61,"tag":193,"props":1668,"children":1669},{"style":371},[1670],{"type":73,"value":1671}," event",{"type":61,"tag":193,"props":1673,"children":1674},{"style":200},[1675],{"type":73,"value":393},{"type":61,"tag":193,"props":1677,"children":1678},{"style":200},[1679],{"type":73,"value":398},{"type":61,"tag":193,"props":1681,"children":1682},{"style":222},[1683],{"type":73,"value":1684},"*",{"type":61,"tag":193,"props":1686,"children":1687},{"style":200},[1688],{"type":73,"value":408},{"type":61,"tag":193,"props":1690,"children":1691},{"style":200},[1692],{"type":73,"value":904},{"type":61,"tag":193,"props":1694,"children":1695},{"style":371},[1696],{"type":73,"value":1697}," schema",{"type":61,"tag":193,"props":1699,"children":1700},{"style":200},[1701],{"type":73,"value":393},{"type":61,"tag":193,"props":1703,"children":1704},{"style":200},[1705],{"type":73,"value":398},{"type":61,"tag":193,"props":1707,"children":1708},{"style":222},[1709],{"type":73,"value":1710},"public",{"type":61,"tag":193,"props":1712,"children":1713},{"style":200},[1714],{"type":73,"value":408},{"type":61,"tag":193,"props":1716,"children":1717},{"style":200},[1718],{"type":73,"value":904},{"type":61,"tag":193,"props":1720,"children":1721},{"style":371},[1722],{"type":73,"value":1723}," table",{"type":61,"tag":193,"props":1725,"children":1726},{"style":200},[1727],{"type":73,"value":393},{"type":61,"tag":193,"props":1729,"children":1730},{"style":200},[1731],{"type":73,"value":398},{"type":61,"tag":193,"props":1733,"children":1734},{"style":222},[1735],{"type":73,"value":1395},{"type":61,"tag":193,"props":1737,"children":1738},{"style":200},[1739],{"type":73,"value":408},{"type":61,"tag":193,"props":1741,"children":1742},{"style":200},[1743],{"type":73,"value":1744}," },\n",{"type":61,"tag":193,"props":1746,"children":1748},{"class":195,"line":1747},20,[1749,1754,1758,1763],{"type":61,"tag":193,"props":1750,"children":1751},{"style":200},[1752],{"type":73,"value":1753}," ()",{"type":61,"tag":193,"props":1755,"children":1756},{"style":240},[1757],{"type":73,"value":305},{"type":61,"tag":193,"props":1759,"children":1760},{"style":255},[1761],{"type":73,"value":1762}," refreshCollaborators",{"type":61,"tag":193,"props":1764,"children":1765},{"style":371},[1766],{"type":73,"value":263},{"type":61,"tag":193,"props":1768,"children":1770},{"class":195,"line":1769},21,[1771],{"type":61,"tag":193,"props":1772,"children":1773},{"style":371},[1774],{"type":73,"value":1775}," )\n",{"type":61,"tag":193,"props":1777,"children":1779},{"class":195,"line":1778},22,[1780],{"type":61,"tag":193,"props":1781,"children":1782},{"emptyLinePlaceholder":270},[1783],{"type":73,"value":273},{"type":61,"tag":193,"props":1785,"children":1787},{"class":195,"line":1786},23,[1788,1792,1796,1801],{"type":61,"tag":193,"props":1789,"children":1790},{"style":206},[1791],{"type":73,"value":1584},{"type":61,"tag":193,"props":1793,"children":1794},{"style":200},[1795],{"type":73,"value":99},{"type":61,"tag":193,"props":1797,"children":1798},{"style":255},[1799],{"type":73,"value":1800},"subscribe",{"type":61,"tag":193,"props":1802,"children":1803},{"style":371},[1804],{"type":73,"value":263},{"type":61,"tag":193,"props":1806,"children":1808},{"class":195,"line":1807},24,[1809,1813],{"type":61,"tag":193,"props":1810,"children":1811},{"style":200},[1812],{"type":73,"value":869},{"type":61,"tag":193,"props":1814,"children":1815},{"style":206},[1816],{"type":73,"value":483},{"type":61,"tag":193,"props":1818,"children":1820},{"class":195,"line":1819},25,[1821],{"type":61,"tag":193,"props":1822,"children":1823},{"emptyLinePlaceholder":270},[1824],{"type":73,"value":273},{"type":61,"tag":193,"props":1826,"children":1828},{"class":195,"line":1827},26,[1829],{"type":61,"tag":193,"props":1830,"children":1831},{"style":1321},[1832],{"type":73,"value":1833}," // Don't forget to unsubscribe when user left the page\n",{"type":61,"tag":193,"props":1835,"children":1837},{"class":195,"line":1836},27,[1838,1843,1847,1851,1855],{"type":61,"tag":193,"props":1839,"children":1840},{"style":255},[1841],{"type":73,"value":1842},"onUnmounted",{"type":61,"tag":193,"props":1844,"children":1845},{"style":206},[1846],{"type":73,"value":374},{"type":61,"tag":193,"props":1848,"children":1849},{"style":200},[1850],{"type":73,"value":1560},{"type":61,"tag":193,"props":1852,"children":1853},{"style":240},[1854],{"type":73,"value":305},{"type":61,"tag":193,"props":1856,"children":1857},{"style":200},[1858],{"type":73,"value":310},{"type":61,"tag":193,"props":1860,"children":1862},{"class":195,"line":1861},28,[1863,1868,1872,1877,1881,1886],{"type":61,"tag":193,"props":1864,"children":1865},{"style":206},[1866],{"type":73,"value":1867}," client",{"type":61,"tag":193,"props":1869,"children":1870},{"style":200},[1871],{"type":73,"value":99},{"type":61,"tag":193,"props":1873,"children":1874},{"style":255},[1875],{"type":73,"value":1876},"removeChannel",{"type":61,"tag":193,"props":1878,"children":1879},{"style":371},[1880],{"type":73,"value":374},{"type":61,"tag":193,"props":1882,"children":1883},{"style":206},[1884],{"type":73,"value":1885},"realtimeChannel",{"type":61,"tag":193,"props":1887,"children":1888},{"style":371},[1889],{"type":73,"value":483},{"type":61,"tag":193,"props":1891,"children":1893},{"class":195,"line":1892},29,[1894,1898],{"type":61,"tag":193,"props":1895,"children":1896},{"style":200},[1897],{"type":73,"value":869},{"type":61,"tag":193,"props":1899,"children":1900},{"style":206},[1901],{"type":73,"value":483},{"type":61,"tag":193,"props":1903,"children":1905},{"class":195,"line":1904},30,[1906,1910,1914],{"type":61,"tag":193,"props":1907,"children":1908},{"style":200},[1909],{"type":73,"value":697},{"type":61,"tag":193,"props":1911,"children":1912},{"style":371},[1913],{"type":73,"value":702},{"type":61,"tag":193,"props":1915,"children":1916},{"style":200},[1917],{"type":73,"value":233},{"type":61,"tag":139,"props":1919,"children":1921},{"id":1920},"typescript",[1922],{"type":73,"value":1923},"Typescript",{"type":61,"tag":62,"props":1925,"children":1926},{},[1927,1929,1936],{"type":73,"value":1928},"You can pass Database typings to the client. Check Supabase ",{"type":61,"tag":66,"props":1930,"children":1933},{"href":1931,"rel":1932},"https://supabase.com/docs/reference/javascript/release-notes#typescript-support",[70],[1934],{"type":73,"value":1935},"documentation",{"type":73,"value":1937}," for further information.",{"type":61,"tag":183,"props":1939,"children":1941},{"className":761,"code":1940,"language":763,"meta":55,"style":55},"\u003Cscript setup lang=\"ts\">\nimport type { Database } from '~/types'\nconst client = useSupabaseClient\u003CDatabase>()\n\u003C/script>\n",[1942],{"type":61,"tag":110,"props":1943,"children":1944},{"__ignoreMap":55},[1945,1984,2025,2062],{"type":61,"tag":193,"props":1946,"children":1947},{"class":195,"line":196},[1948,1952,1956,1960,1964,1968,1972,1976,1980],{"type":61,"tag":193,"props":1949,"children":1950},{"style":200},[1951],{"type":73,"value":203},{"type":61,"tag":193,"props":1953,"children":1954},{"style":371},[1955],{"type":73,"value":702},{"type":61,"tag":193,"props":1957,"children":1958},{"style":240},[1959],{"type":73,"value":783},{"type":61,"tag":193,"props":1961,"children":1962},{"style":240},[1963],{"type":73,"value":788},{"type":61,"tag":193,"props":1965,"children":1966},{"style":200},[1967],{"type":73,"value":214},{"type":61,"tag":193,"props":1969,"children":1970},{"style":200},[1971],{"type":73,"value":219},{"type":61,"tag":193,"props":1973,"children":1974},{"style":222},[1975],{"type":73,"value":187},{"type":61,"tag":193,"props":1977,"children":1978},{"style":200},[1979],{"type":73,"value":219},{"type":61,"tag":193,"props":1981,"children":1982},{"style":200},[1983],{"type":73,"value":233},{"type":61,"tag":193,"props":1985,"children":1986},{"class":195,"line":236},[1987,1991,1995,1999,2004,2008,2012,2016,2021],{"type":61,"tag":193,"props":1988,"children":1989},{"style":342},[1990],{"type":73,"value":1211},{"type":61,"tag":193,"props":1992,"children":1993},{"style":342},[1994],{"type":73,"value":1216},{"type":61,"tag":193,"props":1996,"children":1997},{"style":200},[1998],{"type":73,"value":324},{"type":61,"tag":193,"props":2000,"children":2001},{"style":206},[2002],{"type":73,"value":2003}," Database",{"type":61,"tag":193,"props":2005,"children":2006},{"style":200},[2007],{"type":73,"value":334},{"type":61,"tag":193,"props":2009,"children":2010},{"style":342},[2011],{"type":73,"value":1234},{"type":61,"tag":193,"props":2013,"children":2014},{"style":200},[2015],{"type":73,"value":398},{"type":61,"tag":193,"props":2017,"children":2018},{"style":222},[2019],{"type":73,"value":2020},"~/types",{"type":61,"tag":193,"props":2022,"children":2023},{"style":200},[2024],{"type":73,"value":1248},{"type":61,"tag":193,"props":2026,"children":2027},{"class":195,"line":266},[2028,2032,2036,2040,2044,2048,2053,2058],{"type":61,"tag":193,"props":2029,"children":2030},{"style":240},[2031],{"type":73,"value":243},{"type":61,"tag":193,"props":2033,"children":2034},{"style":206},[2035],{"type":73,"value":820},{"type":61,"tag":193,"props":2037,"children":2038},{"style":200},[2039],{"type":73,"value":214},{"type":61,"tag":193,"props":2041,"children":2042},{"style":255},[2043],{"type":73,"value":258},{"type":61,"tag":193,"props":2045,"children":2046},{"style":200},[2047],{"type":73,"value":203},{"type":61,"tag":193,"props":2049,"children":2050},{"style":1305},[2051],{"type":73,"value":2052},"Database",{"type":61,"tag":193,"props":2054,"children":2055},{"style":200},[2056],{"type":73,"value":2057},">",{"type":61,"tag":193,"props":2059,"children":2060},{"style":206},[2061],{"type":73,"value":263},{"type":61,"tag":193,"props":2063,"children":2064},{"class":195,"line":276},[2065,2069,2073],{"type":61,"tag":193,"props":2066,"children":2067},{"style":200},[2068],{"type":73,"value":697},{"type":61,"tag":193,"props":2070,"children":2071},{"style":371},[2072],{"type":73,"value":702},{"type":61,"tag":193,"props":2074,"children":2075},{"style":200},[2076],{"type":73,"value":233},{"type":61,"tag":2078,"props":2079,"children":2080},"style",{},[2081],{"type":73,"value":2082},"html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":55,"searchDepth":236,"depth":236,"links":2084},[2085,2086,2087,2088],{"id":141,"depth":236,"text":9},{"id":720,"depth":236,"text":723},{"id":1121,"depth":236,"text":1124},{"id":1920,"depth":236,"text":1923},"markdown","content:4.usage:composables:useSupabaseClient.md","content","4.usage/composables/useSupabaseClient.md","md",[2095,2097],{"_path":10,"title":9,"description":2096},"Authenticate your user thanks to the PKCE Oauth protocol that enables secure exchange of refresh and access tokens between an application and the authorization server",{"_path":25,"title":24,"description":2098},"Auto import and use your Supabase user with the useSupabaseUser composable",1703671431791] \ No newline at end of file +[{"data":1,"prerenderedAt":2099},["Reactive",2],{"navigation":3,"/usage/composables/usesupabaseclient":52,"/usage/composables/usesupabaseclient-surround":2094},[4,8,12,40,44,48],{"title":5,"_path":6,"icon":7},"Get Started","/get-started","heroicons:rocket-launch",{"title":9,"_path":10,"icon":11},"Authentication","/authentication","heroicons:lock-closed",{"title":13,"_path":14,"children":15,"icon":39},"Usage","/usage",[16,26],{"title":17,"_path":18,"children":19},"Vue composables","/usage/composables",[20,23],{"title":21,"_path":22},"useSupabaseClient","/usage/composables/usesupabaseclient",{"title":24,"_path":25},"useSupabaseUser","/usage/composables/usesupabaseuser",{"title":27,"_path":28,"children":29},"Server services","/usage/services",[30,33,36],{"title":31,"_path":32},"serverSupabaseClient","/usage/services/serversupabaseclient",{"title":34,"_path":35},"serverSupabaseServiceRole","/usage/services/serversupabaseservicerole",{"title":37,"_path":38},"serverSupabaseUser","/usage/services/serversupabaseuser","heroicons:book-open",{"title":41,"_path":42,"icon":43},"Demo","/demo","heroicons:computer-desktop-20-solid",{"title":45,"_path":46,"icon":47},"Changelog","/changelog","heroicons:bookmark",{"title":49,"_path":50,"icon":51},"Roadmap","/roadmap","heroicons:map",{"_path":22,"_dir":53,"_draft":54,"_partial":54,"_locale":55,"title":21,"description":56,"body":57,"_type":2089,"_id":2090,"_source":2091,"_file":2092,"_extension":2093},"composables",false,"","Make requests to the Supabase API with the useSupabaseClient composable",{"type":58,"children":59,"toc":2083},"root",[60,77,100,138,144,165,182,707,718,724,738,759,1119,1125,1139,1153,1158,1918,1924,1938,2077],{"type":61,"tag":62,"props":63,"children":64},"element","p",{},[65,75],{"type":61,"tag":66,"props":67,"children":71},"a",{"href":68,"rel":69},"https://nuxt.com/docs/guide/directory-structure/composables",[70],"nofollow",[72],{"type":73,"value":74},"text","Auto-import",{"type":73,"value":76}," your client inside your vue files.",{"type":61,"tag":62,"props":78,"children":79},{},[80,82,89,91,98],{"type":73,"value":81},"This composable is using ",{"type":61,"tag":66,"props":83,"children":86},{"href":84,"rel":85},"https://github.com/supabase/supabase-js/",[70],[87],{"type":73,"value":88},"supabase-js",{"type":73,"value":90}," under the hood, it gives access to the ",{"type":61,"tag":66,"props":92,"children":95},{"href":93,"rel":94},"https://supabase.com/docs/reference/javascript/initializing",[70],[96],{"type":73,"value":97},"Supabase client",{"type":73,"value":99},".",{"type":61,"tag":101,"props":102,"children":103},"blockquote",{},[104],{"type":61,"tag":62,"props":105,"children":106},{},[107,109,115,117,122,124,131,133,137],{"type":73,"value":108},"The client is initialized with the ",{"type":61,"tag":110,"props":111,"children":112},"code",{"className":55},[113],{"type":73,"value":114},"SUPABASE_KEY",{"type":73,"value":116}," you must have in your ",{"type":61,"tag":110,"props":118,"children":119},{"className":55},[120],{"type":73,"value":121},".env",{"type":73,"value":123}," file. It establishes the connection with the database and make use of user JWT to apply ",{"type":61,"tag":66,"props":125,"children":128},{"href":126,"rel":127},"https://supabase.com/docs/learn/auth-deep-dive/auth-row-level-security",[70],[129],{"type":73,"value":130},"RLS Policies",{"type":73,"value":132}," implemented in Supabase. If you want to bypass policies, you can use the ",{"type":61,"tag":66,"props":134,"children":135},{"href":35},[136],{"type":73,"value":34},{"type":73,"value":99},{"type":61,"tag":139,"props":140,"children":142},"h2",{"id":141},"authentication",[143],{"type":73,"value":9},{"type":61,"tag":62,"props":145,"children":146},{},[147,149,154,156,163],{"type":73,"value":148},"The useSupabaseClient composable is providing all methods to manage authorization under ",{"type":61,"tag":110,"props":150,"children":151},{"className":55},[152],{"type":73,"value":153},"useSupabaseClient().auth",{"type":73,"value":155},". For more details please see the ",{"type":61,"tag":66,"props":157,"children":160},{"href":158,"rel":159},"https://supabase.com/docs/reference/javascript/auth-api",[70],[161],{"type":73,"value":162},"supabase-js auth documentation",{"type":73,"value":164},". Here is an example for signing in and out:",{"type":61,"tag":166,"props":167,"children":169},"callout",{"icon":168},"i-heroicons-light-bulb",[170],{"type":61,"tag":62,"props":171,"children":172},{},[173,175,181],{"type":73,"value":174},"If you want a full explanation on how to handle the authentication process, please read this ",{"type":61,"tag":66,"props":176,"children":178},{"href":177},"/get-started#handle-authentication",[179],{"type":73,"value":180},"section",{"type":73,"value":99},{"type":61,"tag":183,"props":184,"children":188},"pre",{"className":185,"code":186,"language":187,"meta":55,"style":55},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","\u003Cscript setup lang=\"ts\">\nconst supabase = useSupabaseClient()\n\nconst signInWithOAuth = async () => {\n const { error } = await supabase.auth.signInWithOAuth({\n provider: 'github',\n options: {\n redirectTo: 'http://localhost:3000/confirm',\n },\n })\n if (error) console.log(error)\n}\n\nconst signOut = async () => {\n const { error } = await supabase.auth.signOut()\n if (error) console.log(error)\n}\n\u003C/script>\n","ts",[189],{"type":61,"tag":110,"props":190,"children":191},{"__ignoreMap":55},[192,234,264,274,311,380,414,431,461,470,484,534,543,551,584,637,681,689],{"type":61,"tag":193,"props":194,"children":197},"span",{"class":195,"line":196},"line",1,[198,204,210,215,220,225,229],{"type":61,"tag":193,"props":199,"children":201},{"style":200},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF",[202],{"type":73,"value":203},"\u003C",{"type":61,"tag":193,"props":205,"children":207},{"style":206},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8",[208],{"type":73,"value":209},"script setup lang",{"type":61,"tag":193,"props":211,"children":212},{"style":200},[213],{"type":73,"value":214},"=",{"type":61,"tag":193,"props":216,"children":217},{"style":200},[218],{"type":73,"value":219},"\"",{"type":61,"tag":193,"props":221,"children":223},{"style":222},"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D",[224],{"type":73,"value":187},{"type":61,"tag":193,"props":226,"children":227},{"style":200},[228],{"type":73,"value":219},{"type":61,"tag":193,"props":230,"children":231},{"style":200},[232],{"type":73,"value":233},">\n",{"type":61,"tag":193,"props":235,"children":237},{"class":195,"line":236},2,[238,244,249,253,259],{"type":61,"tag":193,"props":239,"children":241},{"style":240},"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA",[242],{"type":73,"value":243},"const",{"type":61,"tag":193,"props":245,"children":246},{"style":206},[247],{"type":73,"value":248}," supabase ",{"type":61,"tag":193,"props":250,"children":251},{"style":200},[252],{"type":73,"value":214},{"type":61,"tag":193,"props":254,"children":256},{"style":255},"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF",[257],{"type":73,"value":258}," useSupabaseClient",{"type":61,"tag":193,"props":260,"children":261},{"style":206},[262],{"type":73,"value":263},"()\n",{"type":61,"tag":193,"props":265,"children":267},{"class":195,"line":266},3,[268],{"type":61,"tag":193,"props":269,"children":271},{"emptyLinePlaceholder":270},true,[272],{"type":73,"value":273},"\n",{"type":61,"tag":193,"props":275,"children":277},{"class":195,"line":276},4,[278,282,287,291,296,301,306],{"type":61,"tag":193,"props":279,"children":280},{"style":240},[281],{"type":73,"value":243},{"type":61,"tag":193,"props":283,"children":284},{"style":206},[285],{"type":73,"value":286}," signInWithOAuth ",{"type":61,"tag":193,"props":288,"children":289},{"style":200},[290],{"type":73,"value":214},{"type":61,"tag":193,"props":292,"children":293},{"style":240},[294],{"type":73,"value":295}," async",{"type":61,"tag":193,"props":297,"children":298},{"style":200},[299],{"type":73,"value":300}," ()",{"type":61,"tag":193,"props":302,"children":303},{"style":240},[304],{"type":73,"value":305}," =>",{"type":61,"tag":193,"props":307,"children":308},{"style":200},[309],{"type":73,"value":310}," {\n",{"type":61,"tag":193,"props":312,"children":314},{"class":195,"line":313},5,[315,320,325,330,335,340,346,351,355,360,364,369,375],{"type":61,"tag":193,"props":316,"children":317},{"style":240},[318],{"type":73,"value":319}," const",{"type":61,"tag":193,"props":321,"children":322},{"style":200},[323],{"type":73,"value":324}," {",{"type":61,"tag":193,"props":326,"children":327},{"style":206},[328],{"type":73,"value":329}," error",{"type":61,"tag":193,"props":331,"children":332},{"style":200},[333],{"type":73,"value":334}," }",{"type":61,"tag":193,"props":336,"children":337},{"style":200},[338],{"type":73,"value":339}," =",{"type":61,"tag":193,"props":341,"children":343},{"style":342},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic",[344],{"type":73,"value":345}," await",{"type":61,"tag":193,"props":347,"children":348},{"style":206},[349],{"type":73,"value":350}," supabase",{"type":61,"tag":193,"props":352,"children":353},{"style":200},[354],{"type":73,"value":99},{"type":61,"tag":193,"props":356,"children":357},{"style":206},[358],{"type":73,"value":359},"auth",{"type":61,"tag":193,"props":361,"children":362},{"style":200},[363],{"type":73,"value":99},{"type":61,"tag":193,"props":365,"children":366},{"style":255},[367],{"type":73,"value":368},"signInWithOAuth",{"type":61,"tag":193,"props":370,"children":372},{"style":371},"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178",[373],{"type":73,"value":374},"(",{"type":61,"tag":193,"props":376,"children":377},{"style":200},[378],{"type":73,"value":379},"{\n",{"type":61,"tag":193,"props":381,"children":383},{"class":195,"line":382},6,[384,389,394,399,404,409],{"type":61,"tag":193,"props":385,"children":386},{"style":371},[387],{"type":73,"value":388}," provider",{"type":61,"tag":193,"props":390,"children":391},{"style":200},[392],{"type":73,"value":393},":",{"type":61,"tag":193,"props":395,"children":396},{"style":200},[397],{"type":73,"value":398}," '",{"type":61,"tag":193,"props":400,"children":401},{"style":222},[402],{"type":73,"value":403},"github",{"type":61,"tag":193,"props":405,"children":406},{"style":200},[407],{"type":73,"value":408},"'",{"type":61,"tag":193,"props":410,"children":411},{"style":200},[412],{"type":73,"value":413},",\n",{"type":61,"tag":193,"props":415,"children":417},{"class":195,"line":416},7,[418,423,427],{"type":61,"tag":193,"props":419,"children":420},{"style":371},[421],{"type":73,"value":422}," options",{"type":61,"tag":193,"props":424,"children":425},{"style":200},[426],{"type":73,"value":393},{"type":61,"tag":193,"props":428,"children":429},{"style":200},[430],{"type":73,"value":310},{"type":61,"tag":193,"props":432,"children":434},{"class":195,"line":433},8,[435,440,444,448,453,457],{"type":61,"tag":193,"props":436,"children":437},{"style":371},[438],{"type":73,"value":439}," redirectTo",{"type":61,"tag":193,"props":441,"children":442},{"style":200},[443],{"type":73,"value":393},{"type":61,"tag":193,"props":445,"children":446},{"style":200},[447],{"type":73,"value":398},{"type":61,"tag":193,"props":449,"children":450},{"style":222},[451],{"type":73,"value":452},"http://localhost:3000/confirm",{"type":61,"tag":193,"props":454,"children":455},{"style":200},[456],{"type":73,"value":408},{"type":61,"tag":193,"props":458,"children":459},{"style":200},[460],{"type":73,"value":413},{"type":61,"tag":193,"props":462,"children":464},{"class":195,"line":463},9,[465],{"type":61,"tag":193,"props":466,"children":467},{"style":200},[468],{"type":73,"value":469}," },\n",{"type":61,"tag":193,"props":471,"children":473},{"class":195,"line":472},10,[474,479],{"type":61,"tag":193,"props":475,"children":476},{"style":200},[477],{"type":73,"value":478}," }",{"type":61,"tag":193,"props":480,"children":481},{"style":371},[482],{"type":73,"value":483},")\n",{"type":61,"tag":193,"props":485,"children":487},{"class":195,"line":486},11,[488,493,498,503,508,513,517,522,526,530],{"type":61,"tag":193,"props":489,"children":490},{"style":342},[491],{"type":73,"value":492}," if",{"type":61,"tag":193,"props":494,"children":495},{"style":371},[496],{"type":73,"value":497}," (",{"type":61,"tag":193,"props":499,"children":500},{"style":206},[501],{"type":73,"value":502},"error",{"type":61,"tag":193,"props":504,"children":505},{"style":371},[506],{"type":73,"value":507},") ",{"type":61,"tag":193,"props":509,"children":510},{"style":206},[511],{"type":73,"value":512},"console",{"type":61,"tag":193,"props":514,"children":515},{"style":200},[516],{"type":73,"value":99},{"type":61,"tag":193,"props":518,"children":519},{"style":255},[520],{"type":73,"value":521},"log",{"type":61,"tag":193,"props":523,"children":524},{"style":371},[525],{"type":73,"value":374},{"type":61,"tag":193,"props":527,"children":528},{"style":206},[529],{"type":73,"value":502},{"type":61,"tag":193,"props":531,"children":532},{"style":371},[533],{"type":73,"value":483},{"type":61,"tag":193,"props":535,"children":537},{"class":195,"line":536},12,[538],{"type":61,"tag":193,"props":539,"children":540},{"style":200},[541],{"type":73,"value":542},"}\n",{"type":61,"tag":193,"props":544,"children":546},{"class":195,"line":545},13,[547],{"type":61,"tag":193,"props":548,"children":549},{"emptyLinePlaceholder":270},[550],{"type":73,"value":273},{"type":61,"tag":193,"props":552,"children":554},{"class":195,"line":553},14,[555,559,564,568,572,576,580],{"type":61,"tag":193,"props":556,"children":557},{"style":240},[558],{"type":73,"value":243},{"type":61,"tag":193,"props":560,"children":561},{"style":206},[562],{"type":73,"value":563}," signOut ",{"type":61,"tag":193,"props":565,"children":566},{"style":200},[567],{"type":73,"value":214},{"type":61,"tag":193,"props":569,"children":570},{"style":240},[571],{"type":73,"value":295},{"type":61,"tag":193,"props":573,"children":574},{"style":200},[575],{"type":73,"value":300},{"type":61,"tag":193,"props":577,"children":578},{"style":240},[579],{"type":73,"value":305},{"type":61,"tag":193,"props":581,"children":582},{"style":200},[583],{"type":73,"value":310},{"type":61,"tag":193,"props":585,"children":587},{"class":195,"line":586},15,[588,592,596,600,604,608,612,616,620,624,628,633],{"type":61,"tag":193,"props":589,"children":590},{"style":240},[591],{"type":73,"value":319},{"type":61,"tag":193,"props":593,"children":594},{"style":200},[595],{"type":73,"value":324},{"type":61,"tag":193,"props":597,"children":598},{"style":206},[599],{"type":73,"value":329},{"type":61,"tag":193,"props":601,"children":602},{"style":200},[603],{"type":73,"value":334},{"type":61,"tag":193,"props":605,"children":606},{"style":200},[607],{"type":73,"value":339},{"type":61,"tag":193,"props":609,"children":610},{"style":342},[611],{"type":73,"value":345},{"type":61,"tag":193,"props":613,"children":614},{"style":206},[615],{"type":73,"value":350},{"type":61,"tag":193,"props":617,"children":618},{"style":200},[619],{"type":73,"value":99},{"type":61,"tag":193,"props":621,"children":622},{"style":206},[623],{"type":73,"value":359},{"type":61,"tag":193,"props":625,"children":626},{"style":200},[627],{"type":73,"value":99},{"type":61,"tag":193,"props":629,"children":630},{"style":255},[631],{"type":73,"value":632},"signOut",{"type":61,"tag":193,"props":634,"children":635},{"style":371},[636],{"type":73,"value":263},{"type":61,"tag":193,"props":638,"children":640},{"class":195,"line":639},16,[641,645,649,653,657,661,665,669,673,677],{"type":61,"tag":193,"props":642,"children":643},{"style":342},[644],{"type":73,"value":492},{"type":61,"tag":193,"props":646,"children":647},{"style":371},[648],{"type":73,"value":497},{"type":61,"tag":193,"props":650,"children":651},{"style":206},[652],{"type":73,"value":502},{"type":61,"tag":193,"props":654,"children":655},{"style":371},[656],{"type":73,"value":507},{"type":61,"tag":193,"props":658,"children":659},{"style":206},[660],{"type":73,"value":512},{"type":61,"tag":193,"props":662,"children":663},{"style":200},[664],{"type":73,"value":99},{"type":61,"tag":193,"props":666,"children":667},{"style":255},[668],{"type":73,"value":521},{"type":61,"tag":193,"props":670,"children":671},{"style":371},[672],{"type":73,"value":374},{"type":61,"tag":193,"props":674,"children":675},{"style":206},[676],{"type":73,"value":502},{"type":61,"tag":193,"props":678,"children":679},{"style":371},[680],{"type":73,"value":483},{"type":61,"tag":193,"props":682,"children":684},{"class":195,"line":683},17,[685],{"type":61,"tag":193,"props":686,"children":687},{"style":200},[688],{"type":73,"value":542},{"type":61,"tag":193,"props":690,"children":692},{"class":195,"line":691},18,[693,698,703],{"type":61,"tag":193,"props":694,"children":695},{"style":200},[696],{"type":73,"value":697},"\u003C/",{"type":61,"tag":193,"props":699,"children":700},{"style":206},[701],{"type":73,"value":702},"script",{"type":61,"tag":193,"props":704,"children":705},{"style":200},[706],{"type":73,"value":233},{"type":61,"tag":62,"props":708,"children":709},{},[710,712,716],{"type":73,"value":711},"Please also take a look at ",{"type":61,"tag":66,"props":713,"children":714},{"href":6},[715],{"type":73,"value":5},{"type":73,"value":717}," for the authorization flow.",{"type":61,"tag":139,"props":719,"children":721},{"id":720},"database-request",[722],{"type":73,"value":723},"Database Request",{"type":61,"tag":62,"props":725,"children":726},{},[727,729,736],{"type":73,"value":728},"Please check ",{"type":61,"tag":66,"props":730,"children":733},{"href":731,"rel":732},"https://supabase.com/docs/reference/javascript/select",[70],[734],{"type":73,"value":735},"Supabase",{"type":73,"value":737}," documentation to fully use the power of Supabase client.",{"type":61,"tag":62,"props":739,"children":740},{},[741,743,748,750,757],{"type":73,"value":742},"Here is an example of a fetch using the ",{"type":61,"tag":110,"props":744,"children":745},{"className":55},[746],{"type":73,"value":747},"select",{"type":73,"value":749}," method with Nuxt 3 ",{"type":61,"tag":66,"props":751,"children":754},{"href":752,"rel":753},"https://nuxt.com/docs/getting-started/data-fetching#useasyncdata",[70],[755],{"type":73,"value":756},"useAsyncData",{"type":73,"value":758}," composable.",{"type":61,"tag":183,"props":760,"children":764},{"className":761,"code":762,"language":763,"meta":55,"style":55},"language-vue shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","\u003Cscript setup lang=\"ts\">\nconst client = useSupabaseClient()\n\nconst { data: restaurant } = await useAsyncData('restaurant', async () => {\n const { data } = await client.from('restaurants').select('name, location').eq('name', 'My Restaurant Name').single()\n\n return data\n})\n\u003C/script>\n","vue",[765],{"type":61,"tag":110,"props":766,"children":767},{"__ignoreMap":55},[768,809,833,840,921,1073,1080,1093,1104],{"type":61,"tag":193,"props":769,"children":770},{"class":195,"line":196},[771,775,779,784,789,793,797,801,805],{"type":61,"tag":193,"props":772,"children":773},{"style":200},[774],{"type":73,"value":203},{"type":61,"tag":193,"props":776,"children":777},{"style":371},[778],{"type":73,"value":702},{"type":61,"tag":193,"props":780,"children":781},{"style":240},[782],{"type":73,"value":783}," setup",{"type":61,"tag":193,"props":785,"children":786},{"style":240},[787],{"type":73,"value":788}," lang",{"type":61,"tag":193,"props":790,"children":791},{"style":200},[792],{"type":73,"value":214},{"type":61,"tag":193,"props":794,"children":795},{"style":200},[796],{"type":73,"value":219},{"type":61,"tag":193,"props":798,"children":799},{"style":222},[800],{"type":73,"value":187},{"type":61,"tag":193,"props":802,"children":803},{"style":200},[804],{"type":73,"value":219},{"type":61,"tag":193,"props":806,"children":807},{"style":200},[808],{"type":73,"value":233},{"type":61,"tag":193,"props":810,"children":811},{"class":195,"line":236},[812,816,821,825,829],{"type":61,"tag":193,"props":813,"children":814},{"style":240},[815],{"type":73,"value":243},{"type":61,"tag":193,"props":817,"children":818},{"style":206},[819],{"type":73,"value":820}," client ",{"type":61,"tag":193,"props":822,"children":823},{"style":200},[824],{"type":73,"value":214},{"type":61,"tag":193,"props":826,"children":827},{"style":255},[828],{"type":73,"value":258},{"type":61,"tag":193,"props":830,"children":831},{"style":206},[832],{"type":73,"value":263},{"type":61,"tag":193,"props":834,"children":835},{"class":195,"line":266},[836],{"type":61,"tag":193,"props":837,"children":838},{"emptyLinePlaceholder":270},[839],{"type":73,"value":273},{"type":61,"tag":193,"props":841,"children":842},{"class":195,"line":276},[843,847,851,856,860,865,870,874,878,883,887,891,896,900,905,909,913,917],{"type":61,"tag":193,"props":844,"children":845},{"style":240},[846],{"type":73,"value":243},{"type":61,"tag":193,"props":848,"children":849},{"style":200},[850],{"type":73,"value":324},{"type":61,"tag":193,"props":852,"children":853},{"style":371},[854],{"type":73,"value":855}," data",{"type":61,"tag":193,"props":857,"children":858},{"style":200},[859],{"type":73,"value":393},{"type":61,"tag":193,"props":861,"children":862},{"style":206},[863],{"type":73,"value":864}," restaurant ",{"type":61,"tag":193,"props":866,"children":867},{"style":200},[868],{"type":73,"value":869},"}",{"type":61,"tag":193,"props":871,"children":872},{"style":200},[873],{"type":73,"value":339},{"type":61,"tag":193,"props":875,"children":876},{"style":342},[877],{"type":73,"value":345},{"type":61,"tag":193,"props":879,"children":880},{"style":255},[881],{"type":73,"value":882}," useAsyncData",{"type":61,"tag":193,"props":884,"children":885},{"style":206},[886],{"type":73,"value":374},{"type":61,"tag":193,"props":888,"children":889},{"style":200},[890],{"type":73,"value":408},{"type":61,"tag":193,"props":892,"children":893},{"style":222},[894],{"type":73,"value":895},"restaurant",{"type":61,"tag":193,"props":897,"children":898},{"style":200},[899],{"type":73,"value":408},{"type":61,"tag":193,"props":901,"children":902},{"style":200},[903],{"type":73,"value":904},",",{"type":61,"tag":193,"props":906,"children":907},{"style":240},[908],{"type":73,"value":295},{"type":61,"tag":193,"props":910,"children":911},{"style":200},[912],{"type":73,"value":300},{"type":61,"tag":193,"props":914,"children":915},{"style":240},[916],{"type":73,"value":305},{"type":61,"tag":193,"props":918,"children":919},{"style":200},[920],{"type":73,"value":310},{"type":61,"tag":193,"props":922,"children":923},{"class":195,"line":313},[924,928,932,936,940,944,948,953,957,962,966,970,975,979,984,988,992,996,1000,1005,1009,1013,1017,1022,1026,1030,1035,1039,1043,1047,1052,1056,1060,1064,1069],{"type":61,"tag":193,"props":925,"children":926},{"style":240},[927],{"type":73,"value":319},{"type":61,"tag":193,"props":929,"children":930},{"style":200},[931],{"type":73,"value":324},{"type":61,"tag":193,"props":933,"children":934},{"style":206},[935],{"type":73,"value":855},{"type":61,"tag":193,"props":937,"children":938},{"style":200},[939],{"type":73,"value":334},{"type":61,"tag":193,"props":941,"children":942},{"style":200},[943],{"type":73,"value":339},{"type":61,"tag":193,"props":945,"children":946},{"style":342},[947],{"type":73,"value":345},{"type":61,"tag":193,"props":949,"children":950},{"style":206},[951],{"type":73,"value":952}," client",{"type":61,"tag":193,"props":954,"children":955},{"style":200},[956],{"type":73,"value":99},{"type":61,"tag":193,"props":958,"children":959},{"style":255},[960],{"type":73,"value":961},"from",{"type":61,"tag":193,"props":963,"children":964},{"style":371},[965],{"type":73,"value":374},{"type":61,"tag":193,"props":967,"children":968},{"style":200},[969],{"type":73,"value":408},{"type":61,"tag":193,"props":971,"children":972},{"style":222},[973],{"type":73,"value":974},"restaurants",{"type":61,"tag":193,"props":976,"children":977},{"style":200},[978],{"type":73,"value":408},{"type":61,"tag":193,"props":980,"children":981},{"style":371},[982],{"type":73,"value":983},")",{"type":61,"tag":193,"props":985,"children":986},{"style":200},[987],{"type":73,"value":99},{"type":61,"tag":193,"props":989,"children":990},{"style":255},[991],{"type":73,"value":747},{"type":61,"tag":193,"props":993,"children":994},{"style":371},[995],{"type":73,"value":374},{"type":61,"tag":193,"props":997,"children":998},{"style":200},[999],{"type":73,"value":408},{"type":61,"tag":193,"props":1001,"children":1002},{"style":222},[1003],{"type":73,"value":1004},"name, location",{"type":61,"tag":193,"props":1006,"children":1007},{"style":200},[1008],{"type":73,"value":408},{"type":61,"tag":193,"props":1010,"children":1011},{"style":371},[1012],{"type":73,"value":983},{"type":61,"tag":193,"props":1014,"children":1015},{"style":200},[1016],{"type":73,"value":99},{"type":61,"tag":193,"props":1018,"children":1019},{"style":255},[1020],{"type":73,"value":1021},"eq",{"type":61,"tag":193,"props":1023,"children":1024},{"style":371},[1025],{"type":73,"value":374},{"type":61,"tag":193,"props":1027,"children":1028},{"style":200},[1029],{"type":73,"value":408},{"type":61,"tag":193,"props":1031,"children":1032},{"style":222},[1033],{"type":73,"value":1034},"name",{"type":61,"tag":193,"props":1036,"children":1037},{"style":200},[1038],{"type":73,"value":408},{"type":61,"tag":193,"props":1040,"children":1041},{"style":200},[1042],{"type":73,"value":904},{"type":61,"tag":193,"props":1044,"children":1045},{"style":200},[1046],{"type":73,"value":398},{"type":61,"tag":193,"props":1048,"children":1049},{"style":222},[1050],{"type":73,"value":1051},"My Restaurant Name",{"type":61,"tag":193,"props":1053,"children":1054},{"style":200},[1055],{"type":73,"value":408},{"type":61,"tag":193,"props":1057,"children":1058},{"style":371},[1059],{"type":73,"value":983},{"type":61,"tag":193,"props":1061,"children":1062},{"style":200},[1063],{"type":73,"value":99},{"type":61,"tag":193,"props":1065,"children":1066},{"style":255},[1067],{"type":73,"value":1068},"single",{"type":61,"tag":193,"props":1070,"children":1071},{"style":371},[1072],{"type":73,"value":263},{"type":61,"tag":193,"props":1074,"children":1075},{"class":195,"line":382},[1076],{"type":61,"tag":193,"props":1077,"children":1078},{"emptyLinePlaceholder":270},[1079],{"type":73,"value":273},{"type":61,"tag":193,"props":1081,"children":1082},{"class":195,"line":416},[1083,1088],{"type":61,"tag":193,"props":1084,"children":1085},{"style":342},[1086],{"type":73,"value":1087}," return",{"type":61,"tag":193,"props":1089,"children":1090},{"style":206},[1091],{"type":73,"value":1092}," data\n",{"type":61,"tag":193,"props":1094,"children":1095},{"class":195,"line":433},[1096,1100],{"type":61,"tag":193,"props":1097,"children":1098},{"style":200},[1099],{"type":73,"value":869},{"type":61,"tag":193,"props":1101,"children":1102},{"style":206},[1103],{"type":73,"value":483},{"type":61,"tag":193,"props":1105,"children":1106},{"class":195,"line":463},[1107,1111,1115],{"type":61,"tag":193,"props":1108,"children":1109},{"style":200},[1110],{"type":73,"value":697},{"type":61,"tag":193,"props":1112,"children":1113},{"style":371},[1114],{"type":73,"value":702},{"type":61,"tag":193,"props":1116,"children":1117},{"style":200},[1118],{"type":73,"value":233},{"type":61,"tag":139,"props":1120,"children":1122},{"id":1121},"realtime",[1123],{"type":73,"value":1124},"Realtime",{"type":61,"tag":62,"props":1126,"children":1127},{},[1128,1130,1137],{"type":73,"value":1129},"Based on ",{"type":61,"tag":66,"props":1131,"children":1134},{"href":1132,"rel":1133},"https://github.com/supabase/realtime",[70],[1135],{"type":73,"value":1136},"Supabase Realtime",{"type":73,"value":1138},", listen to changes in your PostgreSQL Database and broadcasts them over WebSockets.",{"type":61,"tag":62,"props":1140,"children":1141},{},[1142,1144,1151],{"type":73,"value":1143},"To enable it, make sure you have turned on the ",{"type":61,"tag":66,"props":1145,"children":1148},{"href":1146,"rel":1147},"https://supabase.com/docs/guides/api#realtime-api",[70],[1149],{"type":73,"value":1150},"Realtime API",{"type":73,"value":1152}," for your table.",{"type":61,"tag":62,"props":1154,"children":1155},{},[1156],{"type":73,"value":1157},"Then, listen to changes directly in your vue page / component:",{"type":61,"tag":183,"props":1159,"children":1161},{"className":761,"code":1160,"language":763,"meta":55,"style":55},"\u003Cscript setup lang=\"ts\">\nimport type { RealtimeChannel } from '@supabase/supabase-js'\n\nconst client = useSupabaseClient()\n\nlet realtimeChannel: RealtimeChannel\n\n// Fetch collaborators and get the refresh method provided by useAsyncData\nconst { data: collaborators, refresh: refreshCollaborators } = await useAsyncData('collaborators', async () => {\n const { data } = await client.from('collaborators').select('name')\n return data\n})\n\n// Once page is mounted, listen to changes on the `collaborators` table and refresh collaborators when receiving event\nonMounted(() => {\n // Real time listener for new workouts\n realtimeChannel = client.channel('public:collaborators').on(\n 'postgres_changes',\n { event: '*', schema: 'public', table: 'collaborators' },\n () => refreshCollaborators()\n )\n\n realtimeChannel.subscribe()\n})\n\n // Don't forget to unsubscribe when user left the page\nonUnmounted(() => {\n client.removeChannel(realtimeChannel)\n})\n\u003C/script>\n",[1162],{"type":61,"tag":110,"props":1163,"children":1164},{"__ignoreMap":55},[1165,1204,1249,1256,1279,1286,1309,1316,1325,1420,1507,1518,1529,1536,1544,1569,1577,1637,1658,1745,1767,1776,1784,1805,1817,1825,1834,1859,1890,1902],{"type":61,"tag":193,"props":1166,"children":1167},{"class":195,"line":196},[1168,1172,1176,1180,1184,1188,1192,1196,1200],{"type":61,"tag":193,"props":1169,"children":1170},{"style":200},[1171],{"type":73,"value":203},{"type":61,"tag":193,"props":1173,"children":1174},{"style":371},[1175],{"type":73,"value":702},{"type":61,"tag":193,"props":1177,"children":1178},{"style":240},[1179],{"type":73,"value":783},{"type":61,"tag":193,"props":1181,"children":1182},{"style":240},[1183],{"type":73,"value":788},{"type":61,"tag":193,"props":1185,"children":1186},{"style":200},[1187],{"type":73,"value":214},{"type":61,"tag":193,"props":1189,"children":1190},{"style":200},[1191],{"type":73,"value":219},{"type":61,"tag":193,"props":1193,"children":1194},{"style":222},[1195],{"type":73,"value":187},{"type":61,"tag":193,"props":1197,"children":1198},{"style":200},[1199],{"type":73,"value":219},{"type":61,"tag":193,"props":1201,"children":1202},{"style":200},[1203],{"type":73,"value":233},{"type":61,"tag":193,"props":1205,"children":1206},{"class":195,"line":236},[1207,1212,1217,1221,1226,1230,1235,1239,1244],{"type":61,"tag":193,"props":1208,"children":1209},{"style":342},[1210],{"type":73,"value":1211},"import",{"type":61,"tag":193,"props":1213,"children":1214},{"style":342},[1215],{"type":73,"value":1216}," type",{"type":61,"tag":193,"props":1218,"children":1219},{"style":200},[1220],{"type":73,"value":324},{"type":61,"tag":193,"props":1222,"children":1223},{"style":206},[1224],{"type":73,"value":1225}," RealtimeChannel",{"type":61,"tag":193,"props":1227,"children":1228},{"style":200},[1229],{"type":73,"value":334},{"type":61,"tag":193,"props":1231,"children":1232},{"style":342},[1233],{"type":73,"value":1234}," from",{"type":61,"tag":193,"props":1236,"children":1237},{"style":200},[1238],{"type":73,"value":398},{"type":61,"tag":193,"props":1240,"children":1241},{"style":222},[1242],{"type":73,"value":1243},"@supabase/supabase-js",{"type":61,"tag":193,"props":1245,"children":1246},{"style":200},[1247],{"type":73,"value":1248},"'\n",{"type":61,"tag":193,"props":1250,"children":1251},{"class":195,"line":266},[1252],{"type":61,"tag":193,"props":1253,"children":1254},{"emptyLinePlaceholder":270},[1255],{"type":73,"value":273},{"type":61,"tag":193,"props":1257,"children":1258},{"class":195,"line":276},[1259,1263,1267,1271,1275],{"type":61,"tag":193,"props":1260,"children":1261},{"style":240},[1262],{"type":73,"value":243},{"type":61,"tag":193,"props":1264,"children":1265},{"style":206},[1266],{"type":73,"value":820},{"type":61,"tag":193,"props":1268,"children":1269},{"style":200},[1270],{"type":73,"value":214},{"type":61,"tag":193,"props":1272,"children":1273},{"style":255},[1274],{"type":73,"value":258},{"type":61,"tag":193,"props":1276,"children":1277},{"style":206},[1278],{"type":73,"value":263},{"type":61,"tag":193,"props":1280,"children":1281},{"class":195,"line":313},[1282],{"type":61,"tag":193,"props":1283,"children":1284},{"emptyLinePlaceholder":270},[1285],{"type":73,"value":273},{"type":61,"tag":193,"props":1287,"children":1288},{"class":195,"line":382},[1289,1294,1299,1303],{"type":61,"tag":193,"props":1290,"children":1291},{"style":240},[1292],{"type":73,"value":1293},"let",{"type":61,"tag":193,"props":1295,"children":1296},{"style":206},[1297],{"type":73,"value":1298}," realtimeChannel",{"type":61,"tag":193,"props":1300,"children":1301},{"style":200},[1302],{"type":73,"value":393},{"type":61,"tag":193,"props":1304,"children":1306},{"style":1305},"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B",[1307],{"type":73,"value":1308}," RealtimeChannel\n",{"type":61,"tag":193,"props":1310,"children":1311},{"class":195,"line":416},[1312],{"type":61,"tag":193,"props":1313,"children":1314},{"emptyLinePlaceholder":270},[1315],{"type":73,"value":273},{"type":61,"tag":193,"props":1317,"children":1318},{"class":195,"line":433},[1319],{"type":61,"tag":193,"props":1320,"children":1322},{"style":1321},"--shiki-light:#90A4AE;--shiki-default:#546E7A;--shiki-dark:#676E95;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic",[1323],{"type":73,"value":1324},"// Fetch collaborators and get the refresh method provided by useAsyncData\n",{"type":61,"tag":193,"props":1326,"children":1327},{"class":195,"line":463},[1328,1332,1336,1340,1344,1349,1353,1358,1362,1367,1371,1375,1379,1383,1387,1391,1396,1400,1404,1408,1412,1416],{"type":61,"tag":193,"props":1329,"children":1330},{"style":240},[1331],{"type":73,"value":243},{"type":61,"tag":193,"props":1333,"children":1334},{"style":200},[1335],{"type":73,"value":324},{"type":61,"tag":193,"props":1337,"children":1338},{"style":371},[1339],{"type":73,"value":855},{"type":61,"tag":193,"props":1341,"children":1342},{"style":200},[1343],{"type":73,"value":393},{"type":61,"tag":193,"props":1345,"children":1346},{"style":206},[1347],{"type":73,"value":1348}," collaborators",{"type":61,"tag":193,"props":1350,"children":1351},{"style":200},[1352],{"type":73,"value":904},{"type":61,"tag":193,"props":1354,"children":1355},{"style":371},[1356],{"type":73,"value":1357}," refresh",{"type":61,"tag":193,"props":1359,"children":1360},{"style":200},[1361],{"type":73,"value":393},{"type":61,"tag":193,"props":1363,"children":1364},{"style":206},[1365],{"type":73,"value":1366}," refreshCollaborators ",{"type":61,"tag":193,"props":1368,"children":1369},{"style":200},[1370],{"type":73,"value":869},{"type":61,"tag":193,"props":1372,"children":1373},{"style":200},[1374],{"type":73,"value":339},{"type":61,"tag":193,"props":1376,"children":1377},{"style":342},[1378],{"type":73,"value":345},{"type":61,"tag":193,"props":1380,"children":1381},{"style":255},[1382],{"type":73,"value":882},{"type":61,"tag":193,"props":1384,"children":1385},{"style":206},[1386],{"type":73,"value":374},{"type":61,"tag":193,"props":1388,"children":1389},{"style":200},[1390],{"type":73,"value":408},{"type":61,"tag":193,"props":1392,"children":1393},{"style":222},[1394],{"type":73,"value":1395},"collaborators",{"type":61,"tag":193,"props":1397,"children":1398},{"style":200},[1399],{"type":73,"value":408},{"type":61,"tag":193,"props":1401,"children":1402},{"style":200},[1403],{"type":73,"value":904},{"type":61,"tag":193,"props":1405,"children":1406},{"style":240},[1407],{"type":73,"value":295},{"type":61,"tag":193,"props":1409,"children":1410},{"style":200},[1411],{"type":73,"value":300},{"type":61,"tag":193,"props":1413,"children":1414},{"style":240},[1415],{"type":73,"value":305},{"type":61,"tag":193,"props":1417,"children":1418},{"style":200},[1419],{"type":73,"value":310},{"type":61,"tag":193,"props":1421,"children":1422},{"class":195,"line":472},[1423,1427,1431,1435,1439,1443,1447,1451,1455,1459,1463,1467,1471,1475,1479,1483,1487,1491,1495,1499,1503],{"type":61,"tag":193,"props":1424,"children":1425},{"style":240},[1426],{"type":73,"value":319},{"type":61,"tag":193,"props":1428,"children":1429},{"style":200},[1430],{"type":73,"value":324},{"type":61,"tag":193,"props":1432,"children":1433},{"style":206},[1434],{"type":73,"value":855},{"type":61,"tag":193,"props":1436,"children":1437},{"style":200},[1438],{"type":73,"value":334},{"type":61,"tag":193,"props":1440,"children":1441},{"style":200},[1442],{"type":73,"value":339},{"type":61,"tag":193,"props":1444,"children":1445},{"style":342},[1446],{"type":73,"value":345},{"type":61,"tag":193,"props":1448,"children":1449},{"style":206},[1450],{"type":73,"value":952},{"type":61,"tag":193,"props":1452,"children":1453},{"style":200},[1454],{"type":73,"value":99},{"type":61,"tag":193,"props":1456,"children":1457},{"style":255},[1458],{"type":73,"value":961},{"type":61,"tag":193,"props":1460,"children":1461},{"style":371},[1462],{"type":73,"value":374},{"type":61,"tag":193,"props":1464,"children":1465},{"style":200},[1466],{"type":73,"value":408},{"type":61,"tag":193,"props":1468,"children":1469},{"style":222},[1470],{"type":73,"value":1395},{"type":61,"tag":193,"props":1472,"children":1473},{"style":200},[1474],{"type":73,"value":408},{"type":61,"tag":193,"props":1476,"children":1477},{"style":371},[1478],{"type":73,"value":983},{"type":61,"tag":193,"props":1480,"children":1481},{"style":200},[1482],{"type":73,"value":99},{"type":61,"tag":193,"props":1484,"children":1485},{"style":255},[1486],{"type":73,"value":747},{"type":61,"tag":193,"props":1488,"children":1489},{"style":371},[1490],{"type":73,"value":374},{"type":61,"tag":193,"props":1492,"children":1493},{"style":200},[1494],{"type":73,"value":408},{"type":61,"tag":193,"props":1496,"children":1497},{"style":222},[1498],{"type":73,"value":1034},{"type":61,"tag":193,"props":1500,"children":1501},{"style":200},[1502],{"type":73,"value":408},{"type":61,"tag":193,"props":1504,"children":1505},{"style":371},[1506],{"type":73,"value":483},{"type":61,"tag":193,"props":1508,"children":1509},{"class":195,"line":486},[1510,1514],{"type":61,"tag":193,"props":1511,"children":1512},{"style":342},[1513],{"type":73,"value":1087},{"type":61,"tag":193,"props":1515,"children":1516},{"style":206},[1517],{"type":73,"value":1092},{"type":61,"tag":193,"props":1519,"children":1520},{"class":195,"line":536},[1521,1525],{"type":61,"tag":193,"props":1522,"children":1523},{"style":200},[1524],{"type":73,"value":869},{"type":61,"tag":193,"props":1526,"children":1527},{"style":206},[1528],{"type":73,"value":483},{"type":61,"tag":193,"props":1530,"children":1531},{"class":195,"line":545},[1532],{"type":61,"tag":193,"props":1533,"children":1534},{"emptyLinePlaceholder":270},[1535],{"type":73,"value":273},{"type":61,"tag":193,"props":1537,"children":1538},{"class":195,"line":553},[1539],{"type":61,"tag":193,"props":1540,"children":1541},{"style":1321},[1542],{"type":73,"value":1543},"// Once page is mounted, listen to changes on the `collaborators` table and refresh collaborators when receiving event\n",{"type":61,"tag":193,"props":1545,"children":1546},{"class":195,"line":586},[1547,1552,1556,1561,1565],{"type":61,"tag":193,"props":1548,"children":1549},{"style":255},[1550],{"type":73,"value":1551},"onMounted",{"type":61,"tag":193,"props":1553,"children":1554},{"style":206},[1555],{"type":73,"value":374},{"type":61,"tag":193,"props":1557,"children":1558},{"style":200},[1559],{"type":73,"value":1560},"()",{"type":61,"tag":193,"props":1562,"children":1563},{"style":240},[1564],{"type":73,"value":305},{"type":61,"tag":193,"props":1566,"children":1567},{"style":200},[1568],{"type":73,"value":310},{"type":61,"tag":193,"props":1570,"children":1571},{"class":195,"line":639},[1572],{"type":61,"tag":193,"props":1573,"children":1574},{"style":1321},[1575],{"type":73,"value":1576}," // Real time listener for new workouts\n",{"type":61,"tag":193,"props":1578,"children":1579},{"class":195,"line":683},[1580,1585,1589,1593,1597,1602,1606,1610,1615,1619,1623,1627,1632],{"type":61,"tag":193,"props":1581,"children":1582},{"style":206},[1583],{"type":73,"value":1584}," realtimeChannel",{"type":61,"tag":193,"props":1586,"children":1587},{"style":200},[1588],{"type":73,"value":339},{"type":61,"tag":193,"props":1590,"children":1591},{"style":206},[1592],{"type":73,"value":952},{"type":61,"tag":193,"props":1594,"children":1595},{"style":200},[1596],{"type":73,"value":99},{"type":61,"tag":193,"props":1598,"children":1599},{"style":255},[1600],{"type":73,"value":1601},"channel",{"type":61,"tag":193,"props":1603,"children":1604},{"style":371},[1605],{"type":73,"value":374},{"type":61,"tag":193,"props":1607,"children":1608},{"style":200},[1609],{"type":73,"value":408},{"type":61,"tag":193,"props":1611,"children":1612},{"style":222},[1613],{"type":73,"value":1614},"public:collaborators",{"type":61,"tag":193,"props":1616,"children":1617},{"style":200},[1618],{"type":73,"value":408},{"type":61,"tag":193,"props":1620,"children":1621},{"style":371},[1622],{"type":73,"value":983},{"type":61,"tag":193,"props":1624,"children":1625},{"style":200},[1626],{"type":73,"value":99},{"type":61,"tag":193,"props":1628,"children":1629},{"style":255},[1630],{"type":73,"value":1631},"on",{"type":61,"tag":193,"props":1633,"children":1634},{"style":371},[1635],{"type":73,"value":1636},"(\n",{"type":61,"tag":193,"props":1638,"children":1639},{"class":195,"line":691},[1640,1645,1650,1654],{"type":61,"tag":193,"props":1641,"children":1642},{"style":200},[1643],{"type":73,"value":1644}," '",{"type":61,"tag":193,"props":1646,"children":1647},{"style":222},[1648],{"type":73,"value":1649},"postgres_changes",{"type":61,"tag":193,"props":1651,"children":1652},{"style":200},[1653],{"type":73,"value":408},{"type":61,"tag":193,"props":1655,"children":1656},{"style":200},[1657],{"type":73,"value":413},{"type":61,"tag":193,"props":1659,"children":1661},{"class":195,"line":1660},19,[1662,1667,1672,1676,1680,1685,1689,1693,1698,1702,1706,1711,1715,1719,1724,1728,1732,1736,1740],{"type":61,"tag":193,"props":1663,"children":1664},{"style":200},[1665],{"type":73,"value":1666}," {",{"type":61,"tag":193,"props":1668,"children":1669},{"style":371},[1670],{"type":73,"value":1671}," event",{"type":61,"tag":193,"props":1673,"children":1674},{"style":200},[1675],{"type":73,"value":393},{"type":61,"tag":193,"props":1677,"children":1678},{"style":200},[1679],{"type":73,"value":398},{"type":61,"tag":193,"props":1681,"children":1682},{"style":222},[1683],{"type":73,"value":1684},"*",{"type":61,"tag":193,"props":1686,"children":1687},{"style":200},[1688],{"type":73,"value":408},{"type":61,"tag":193,"props":1690,"children":1691},{"style":200},[1692],{"type":73,"value":904},{"type":61,"tag":193,"props":1694,"children":1695},{"style":371},[1696],{"type":73,"value":1697}," schema",{"type":61,"tag":193,"props":1699,"children":1700},{"style":200},[1701],{"type":73,"value":393},{"type":61,"tag":193,"props":1703,"children":1704},{"style":200},[1705],{"type":73,"value":398},{"type":61,"tag":193,"props":1707,"children":1708},{"style":222},[1709],{"type":73,"value":1710},"public",{"type":61,"tag":193,"props":1712,"children":1713},{"style":200},[1714],{"type":73,"value":408},{"type":61,"tag":193,"props":1716,"children":1717},{"style":200},[1718],{"type":73,"value":904},{"type":61,"tag":193,"props":1720,"children":1721},{"style":371},[1722],{"type":73,"value":1723}," table",{"type":61,"tag":193,"props":1725,"children":1726},{"style":200},[1727],{"type":73,"value":393},{"type":61,"tag":193,"props":1729,"children":1730},{"style":200},[1731],{"type":73,"value":398},{"type":61,"tag":193,"props":1733,"children":1734},{"style":222},[1735],{"type":73,"value":1395},{"type":61,"tag":193,"props":1737,"children":1738},{"style":200},[1739],{"type":73,"value":408},{"type":61,"tag":193,"props":1741,"children":1742},{"style":200},[1743],{"type":73,"value":1744}," },\n",{"type":61,"tag":193,"props":1746,"children":1748},{"class":195,"line":1747},20,[1749,1754,1758,1763],{"type":61,"tag":193,"props":1750,"children":1751},{"style":200},[1752],{"type":73,"value":1753}," ()",{"type":61,"tag":193,"props":1755,"children":1756},{"style":240},[1757],{"type":73,"value":305},{"type":61,"tag":193,"props":1759,"children":1760},{"style":255},[1761],{"type":73,"value":1762}," refreshCollaborators",{"type":61,"tag":193,"props":1764,"children":1765},{"style":371},[1766],{"type":73,"value":263},{"type":61,"tag":193,"props":1768,"children":1770},{"class":195,"line":1769},21,[1771],{"type":61,"tag":193,"props":1772,"children":1773},{"style":371},[1774],{"type":73,"value":1775}," )\n",{"type":61,"tag":193,"props":1777,"children":1779},{"class":195,"line":1778},22,[1780],{"type":61,"tag":193,"props":1781,"children":1782},{"emptyLinePlaceholder":270},[1783],{"type":73,"value":273},{"type":61,"tag":193,"props":1785,"children":1787},{"class":195,"line":1786},23,[1788,1792,1796,1801],{"type":61,"tag":193,"props":1789,"children":1790},{"style":206},[1791],{"type":73,"value":1584},{"type":61,"tag":193,"props":1793,"children":1794},{"style":200},[1795],{"type":73,"value":99},{"type":61,"tag":193,"props":1797,"children":1798},{"style":255},[1799],{"type":73,"value":1800},"subscribe",{"type":61,"tag":193,"props":1802,"children":1803},{"style":371},[1804],{"type":73,"value":263},{"type":61,"tag":193,"props":1806,"children":1808},{"class":195,"line":1807},24,[1809,1813],{"type":61,"tag":193,"props":1810,"children":1811},{"style":200},[1812],{"type":73,"value":869},{"type":61,"tag":193,"props":1814,"children":1815},{"style":206},[1816],{"type":73,"value":483},{"type":61,"tag":193,"props":1818,"children":1820},{"class":195,"line":1819},25,[1821],{"type":61,"tag":193,"props":1822,"children":1823},{"emptyLinePlaceholder":270},[1824],{"type":73,"value":273},{"type":61,"tag":193,"props":1826,"children":1828},{"class":195,"line":1827},26,[1829],{"type":61,"tag":193,"props":1830,"children":1831},{"style":1321},[1832],{"type":73,"value":1833}," // Don't forget to unsubscribe when user left the page\n",{"type":61,"tag":193,"props":1835,"children":1837},{"class":195,"line":1836},27,[1838,1843,1847,1851,1855],{"type":61,"tag":193,"props":1839,"children":1840},{"style":255},[1841],{"type":73,"value":1842},"onUnmounted",{"type":61,"tag":193,"props":1844,"children":1845},{"style":206},[1846],{"type":73,"value":374},{"type":61,"tag":193,"props":1848,"children":1849},{"style":200},[1850],{"type":73,"value":1560},{"type":61,"tag":193,"props":1852,"children":1853},{"style":240},[1854],{"type":73,"value":305},{"type":61,"tag":193,"props":1856,"children":1857},{"style":200},[1858],{"type":73,"value":310},{"type":61,"tag":193,"props":1860,"children":1862},{"class":195,"line":1861},28,[1863,1868,1872,1877,1881,1886],{"type":61,"tag":193,"props":1864,"children":1865},{"style":206},[1866],{"type":73,"value":1867}," client",{"type":61,"tag":193,"props":1869,"children":1870},{"style":200},[1871],{"type":73,"value":99},{"type":61,"tag":193,"props":1873,"children":1874},{"style":255},[1875],{"type":73,"value":1876},"removeChannel",{"type":61,"tag":193,"props":1878,"children":1879},{"style":371},[1880],{"type":73,"value":374},{"type":61,"tag":193,"props":1882,"children":1883},{"style":206},[1884],{"type":73,"value":1885},"realtimeChannel",{"type":61,"tag":193,"props":1887,"children":1888},{"style":371},[1889],{"type":73,"value":483},{"type":61,"tag":193,"props":1891,"children":1893},{"class":195,"line":1892},29,[1894,1898],{"type":61,"tag":193,"props":1895,"children":1896},{"style":200},[1897],{"type":73,"value":869},{"type":61,"tag":193,"props":1899,"children":1900},{"style":206},[1901],{"type":73,"value":483},{"type":61,"tag":193,"props":1903,"children":1905},{"class":195,"line":1904},30,[1906,1910,1914],{"type":61,"tag":193,"props":1907,"children":1908},{"style":200},[1909],{"type":73,"value":697},{"type":61,"tag":193,"props":1911,"children":1912},{"style":371},[1913],{"type":73,"value":702},{"type":61,"tag":193,"props":1915,"children":1916},{"style":200},[1917],{"type":73,"value":233},{"type":61,"tag":139,"props":1919,"children":1921},{"id":1920},"typescript",[1922],{"type":73,"value":1923},"Typescript",{"type":61,"tag":62,"props":1925,"children":1926},{},[1927,1929,1936],{"type":73,"value":1928},"You can pass Database typings to the client. Check Supabase ",{"type":61,"tag":66,"props":1930,"children":1933},{"href":1931,"rel":1932},"https://supabase.com/docs/reference/javascript/release-notes#typescript-support",[70],[1934],{"type":73,"value":1935},"documentation",{"type":73,"value":1937}," for further information.",{"type":61,"tag":183,"props":1939,"children":1941},{"className":761,"code":1940,"language":763,"meta":55,"style":55},"\u003Cscript setup lang=\"ts\">\nimport type { Database } from '~/types'\nconst client = useSupabaseClient\u003CDatabase>()\n\u003C/script>\n",[1942],{"type":61,"tag":110,"props":1943,"children":1944},{"__ignoreMap":55},[1945,1984,2025,2062],{"type":61,"tag":193,"props":1946,"children":1947},{"class":195,"line":196},[1948,1952,1956,1960,1964,1968,1972,1976,1980],{"type":61,"tag":193,"props":1949,"children":1950},{"style":200},[1951],{"type":73,"value":203},{"type":61,"tag":193,"props":1953,"children":1954},{"style":371},[1955],{"type":73,"value":702},{"type":61,"tag":193,"props":1957,"children":1958},{"style":240},[1959],{"type":73,"value":783},{"type":61,"tag":193,"props":1961,"children":1962},{"style":240},[1963],{"type":73,"value":788},{"type":61,"tag":193,"props":1965,"children":1966},{"style":200},[1967],{"type":73,"value":214},{"type":61,"tag":193,"props":1969,"children":1970},{"style":200},[1971],{"type":73,"value":219},{"type":61,"tag":193,"props":1973,"children":1974},{"style":222},[1975],{"type":73,"value":187},{"type":61,"tag":193,"props":1977,"children":1978},{"style":200},[1979],{"type":73,"value":219},{"type":61,"tag":193,"props":1981,"children":1982},{"style":200},[1983],{"type":73,"value":233},{"type":61,"tag":193,"props":1985,"children":1986},{"class":195,"line":236},[1987,1991,1995,1999,2004,2008,2012,2016,2021],{"type":61,"tag":193,"props":1988,"children":1989},{"style":342},[1990],{"type":73,"value":1211},{"type":61,"tag":193,"props":1992,"children":1993},{"style":342},[1994],{"type":73,"value":1216},{"type":61,"tag":193,"props":1996,"children":1997},{"style":200},[1998],{"type":73,"value":324},{"type":61,"tag":193,"props":2000,"children":2001},{"style":206},[2002],{"type":73,"value":2003}," Database",{"type":61,"tag":193,"props":2005,"children":2006},{"style":200},[2007],{"type":73,"value":334},{"type":61,"tag":193,"props":2009,"children":2010},{"style":342},[2011],{"type":73,"value":1234},{"type":61,"tag":193,"props":2013,"children":2014},{"style":200},[2015],{"type":73,"value":398},{"type":61,"tag":193,"props":2017,"children":2018},{"style":222},[2019],{"type":73,"value":2020},"~/types",{"type":61,"tag":193,"props":2022,"children":2023},{"style":200},[2024],{"type":73,"value":1248},{"type":61,"tag":193,"props":2026,"children":2027},{"class":195,"line":266},[2028,2032,2036,2040,2044,2048,2053,2058],{"type":61,"tag":193,"props":2029,"children":2030},{"style":240},[2031],{"type":73,"value":243},{"type":61,"tag":193,"props":2033,"children":2034},{"style":206},[2035],{"type":73,"value":820},{"type":61,"tag":193,"props":2037,"children":2038},{"style":200},[2039],{"type":73,"value":214},{"type":61,"tag":193,"props":2041,"children":2042},{"style":255},[2043],{"type":73,"value":258},{"type":61,"tag":193,"props":2045,"children":2046},{"style":200},[2047],{"type":73,"value":203},{"type":61,"tag":193,"props":2049,"children":2050},{"style":1305},[2051],{"type":73,"value":2052},"Database",{"type":61,"tag":193,"props":2054,"children":2055},{"style":200},[2056],{"type":73,"value":2057},">",{"type":61,"tag":193,"props":2059,"children":2060},{"style":206},[2061],{"type":73,"value":263},{"type":61,"tag":193,"props":2063,"children":2064},{"class":195,"line":276},[2065,2069,2073],{"type":61,"tag":193,"props":2066,"children":2067},{"style":200},[2068],{"type":73,"value":697},{"type":61,"tag":193,"props":2070,"children":2071},{"style":371},[2072],{"type":73,"value":702},{"type":61,"tag":193,"props":2074,"children":2075},{"style":200},[2076],{"type":73,"value":233},{"type":61,"tag":2078,"props":2079,"children":2080},"style",{},[2081],{"type":73,"value":2082},"html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":55,"searchDepth":236,"depth":236,"links":2084},[2085,2086,2087,2088],{"id":141,"depth":236,"text":9},{"id":720,"depth":236,"text":723},{"id":1121,"depth":236,"text":1124},{"id":1920,"depth":236,"text":1923},"markdown","content:4.usage:composables:useSupabaseClient.md","content","4.usage/composables/useSupabaseClient.md","md",[2095,2097],{"_path":10,"title":9,"description":2096},"Authenticate your user thanks to the PKCE Oauth protocol that enables secure exchange of refresh and access tokens between an application and the authorization server",{"_path":25,"title":24,"description":2098},"Auto import and use your Supabase user with the useSupabaseUser composable",1703757838238] \ No newline at end of file diff --git a/usage/composables/usesupabaseclient/index.html b/usage/composables/usesupabaseclient/index.html index cb99b430..dc5fdf4f 100644 --- a/usage/composables/usesupabaseclient/index.html +++ b/usage/composables/usesupabaseclient/index.html @@ -69,41 +69,41 @@ - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + - - - - - - - - - - - - + + + + + + + + + + + + - - + + - -
mobile favicon
Composables

useSupabaseClient

Make requests to the Supabase API with the useSupabaseClient composable

Auto-import your client inside your vue files.

This composable is using supabase-js under the hood, it gives access to the Supabase client.

The client is initialized with the SUPABASE_KEY you must have in your .env file. It establishes the connection with the database and make use of user JWT to apply RLS Policies implemented in Supabase. If you want to bypass policies, you can use the serverSupabaseServiceRole.

Authentication

The useSupabaseClient composable is providing all methods to manage authorization under useSupabaseClient().auth. For more details please see the supabase-js auth documentation. Here is an example for signing in and out:

If you want a full explanation on how to handle the authentication process, please read this section.
<script setup lang="ts">
 const supabase = useSupabaseClient()
@@ -167,6 +167,6 @@
 const client = useSupabaseClient<Database>()
 </script>
 

Made with Nuxt Studio
- - + + \ No newline at end of file diff --git a/usage/composables/usesupabaseuser/_payload.json b/usage/composables/usesupabaseuser/_payload.json index 11a94613..b517cb65 100644 --- a/usage/composables/usesupabaseuser/_payload.json +++ b/usage/composables/usesupabaseuser/_payload.json @@ -1 +1 @@ -[{"data":1,"prerenderedAt":528},["Reactive",2],{"navigation":3,"/usage/composables/usesupabaseuser":52,"/usage/composables/usesupabaseuser-surround":523},[4,8,12,40,44,48],{"title":5,"_path":6,"icon":7},"Get Started","/get-started","heroicons:rocket-launch",{"title":9,"_path":10,"icon":11},"Authentication","/authentication","heroicons:lock-closed",{"title":13,"_path":14,"children":15,"icon":39},"Usage","/usage",[16,26],{"title":17,"_path":18,"children":19},"Vue composables","/usage/composables",[20,23],{"title":21,"_path":22},"useSupabaseClient","/usage/composables/usesupabaseclient",{"title":24,"_path":25},"useSupabaseUser","/usage/composables/usesupabaseuser",{"title":27,"_path":28,"children":29},"Server services","/usage/services",[30,33,36],{"title":31,"_path":32},"serverSupabaseClient","/usage/services/serversupabaseclient",{"title":34,"_path":35},"serverSupabaseServiceRole","/usage/services/serversupabaseservicerole",{"title":37,"_path":38},"serverSupabaseUser","/usage/services/serversupabaseuser","heroicons:book-open",{"title":41,"_path":42,"icon":43},"Demo","/demo","heroicons:computer-desktop-20-solid",{"title":45,"_path":46,"icon":47},"Changelog","/changelog","heroicons:bookmark",{"title":49,"_path":50,"icon":51},"Roadmap","/roadmap","heroicons:map",{"_path":25,"_dir":53,"_draft":54,"_partial":54,"_locale":55,"title":24,"description":56,"body":57,"_type":518,"_id":519,"_source":520,"_file":521,"_extension":522},"composables",false,"","Auto import and use your Supabase user with the useSupabaseUser composable",{"type":58,"children":59,"toc":515},"root",[60,79,167,174,199,212,420,425,488,509],{"type":61,"tag":62,"props":63,"children":64},"element","p",{},[65,68,77],{"type":66,"value":67},"text","Once logged in, you can ",{"type":61,"tag":69,"props":70,"children":74},"a",{"href":71,"rel":72},"https://nuxt.com/docs/guide/directory-structure/composables",[73],"nofollow",[75],{"type":66,"value":76},"auto-import",{"type":66,"value":78}," your user everywhere inside your vue files.",{"type":61,"tag":80,"props":81,"children":85},"pre",{"className":82,"code":83,"language":84,"meta":55,"style":55},"language-vue shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","\u003Cscript setup>\nconst user = useSupabaseUser()\n\u003C/script>\n","vue",[86],{"type":61,"tag":87,"props":88,"children":89},"code",{"__ignoreMap":55},[90,119,150],{"type":61,"tag":91,"props":92,"children":95},"span",{"class":93,"line":94},"line",1,[96,102,108,114],{"type":61,"tag":91,"props":97,"children":99},{"style":98},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF",[100],{"type":66,"value":101},"\u003C",{"type":61,"tag":91,"props":103,"children":105},{"style":104},"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178",[106],{"type":66,"value":107},"script",{"type":61,"tag":91,"props":109,"children":111},{"style":110},"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA",[112],{"type":66,"value":113}," setup",{"type":61,"tag":91,"props":115,"children":116},{"style":98},[117],{"type":66,"value":118},">\n",{"type":61,"tag":91,"props":120,"children":122},{"class":93,"line":121},2,[123,128,134,139,145],{"type":61,"tag":91,"props":124,"children":125},{"style":110},[126],{"type":66,"value":127},"const",{"type":61,"tag":91,"props":129,"children":131},{"style":130},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8",[132],{"type":66,"value":133}," user ",{"type":61,"tag":91,"props":135,"children":136},{"style":98},[137],{"type":66,"value":138},"=",{"type":61,"tag":91,"props":140,"children":142},{"style":141},"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF",[143],{"type":66,"value":144}," useSupabaseUser",{"type":61,"tag":91,"props":146,"children":147},{"style":130},[148],{"type":66,"value":149},"()\n",{"type":61,"tag":91,"props":151,"children":153},{"class":93,"line":152},3,[154,159,163],{"type":61,"tag":91,"props":155,"children":156},{"style":98},[157],{"type":66,"value":158},"\u003C/",{"type":61,"tag":91,"props":160,"children":161},{"style":104},[162],{"type":66,"value":107},{"type":61,"tag":91,"props":164,"children":165},{"style":98},[166],{"type":66,"value":118},{"type":61,"tag":168,"props":169,"children":171},"h2",{"id":170},"auth-middleware",[172],{"type":66,"value":173},"Auth middleware",{"type":61,"tag":175,"props":176,"children":178},"callout",{"icon":177},"i-heroicons-light-bulb",[179],{"type":61,"tag":62,"props":180,"children":181},{},[182,184,190,192,197],{"type":66,"value":183},"By default, the module is implementing a redirect middleware. All pages of your application are automatically redirected to the ",{"type":61,"tag":69,"props":185,"children":187},{"href":186},"/get-started#redirectoptions",[188],{"type":66,"value":189},"login",{"type":66,"value":191}," page. However, you can allow redirection to \"public\" pages by setting the ",{"type":61,"tag":69,"props":193,"children":194},{"href":186},[195],{"type":66,"value":196},"exclude",{"type":66,"value":198}," redirect option.",{"type":61,"tag":62,"props":200,"children":201},{},[202,204,210],{"type":66,"value":203},"If the ",{"type":61,"tag":69,"props":205,"children":207},{"href":206},"/get-started#redirect",[208],{"type":66,"value":209},"redirect",{"type":66,"value":211}," option is disabled, you can protect your authenticated routes by creating a custom middleware in your project, here is an example:",{"type":61,"tag":80,"props":213,"children":218},{"className":214,"code":215,"filename":216,"language":217,"meta":55,"style":55},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","export default defineNuxtRouteMiddleware((to, _from) => {\n const user = useSupabaseUser()\n\n if (!user.value) {\n return navigateTo('/login')\n }\n})\n","middleware/auth.ts","ts",[219],{"type":61,"tag":87,"props":220,"children":221},{"__ignoreMap":55},[222,281,307,316,360,398,407],{"type":61,"tag":91,"props":223,"children":224},{"class":93,"line":94},[225,231,236,241,246,250,256,261,266,271,276],{"type":61,"tag":91,"props":226,"children":228},{"style":227},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic",[229],{"type":66,"value":230},"export",{"type":61,"tag":91,"props":232,"children":233},{"style":227},[234],{"type":66,"value":235}," default",{"type":61,"tag":91,"props":237,"children":238},{"style":141},[239],{"type":66,"value":240}," defineNuxtRouteMiddleware",{"type":61,"tag":91,"props":242,"children":243},{"style":130},[244],{"type":66,"value":245},"(",{"type":61,"tag":91,"props":247,"children":248},{"style":98},[249],{"type":66,"value":245},{"type":61,"tag":91,"props":251,"children":253},{"style":252},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic",[254],{"type":66,"value":255},"to",{"type":61,"tag":91,"props":257,"children":258},{"style":98},[259],{"type":66,"value":260},",",{"type":61,"tag":91,"props":262,"children":263},{"style":252},[264],{"type":66,"value":265}," _from",{"type":61,"tag":91,"props":267,"children":268},{"style":98},[269],{"type":66,"value":270},")",{"type":61,"tag":91,"props":272,"children":273},{"style":110},[274],{"type":66,"value":275}," =>",{"type":61,"tag":91,"props":277,"children":278},{"style":98},[279],{"type":66,"value":280}," {\n",{"type":61,"tag":91,"props":282,"children":283},{"class":93,"line":121},[284,289,294,299,303],{"type":61,"tag":91,"props":285,"children":286},{"style":110},[287],{"type":66,"value":288}," const",{"type":61,"tag":91,"props":290,"children":291},{"style":130},[292],{"type":66,"value":293}," user",{"type":61,"tag":91,"props":295,"children":296},{"style":98},[297],{"type":66,"value":298}," =",{"type":61,"tag":91,"props":300,"children":301},{"style":141},[302],{"type":66,"value":144},{"type":61,"tag":91,"props":304,"children":305},{"style":104},[306],{"type":66,"value":149},{"type":61,"tag":91,"props":308,"children":309},{"class":93,"line":152},[310],{"type":61,"tag":91,"props":311,"children":313},{"emptyLinePlaceholder":312},true,[314],{"type":66,"value":315},"\n",{"type":61,"tag":91,"props":317,"children":319},{"class":93,"line":318},4,[320,325,330,335,340,345,350,355],{"type":61,"tag":91,"props":321,"children":322},{"style":227},[323],{"type":66,"value":324}," if",{"type":61,"tag":91,"props":326,"children":327},{"style":104},[328],{"type":66,"value":329}," (",{"type":61,"tag":91,"props":331,"children":332},{"style":98},[333],{"type":66,"value":334},"!",{"type":61,"tag":91,"props":336,"children":337},{"style":130},[338],{"type":66,"value":339},"user",{"type":61,"tag":91,"props":341,"children":342},{"style":98},[343],{"type":66,"value":344},".",{"type":61,"tag":91,"props":346,"children":347},{"style":130},[348],{"type":66,"value":349},"value",{"type":61,"tag":91,"props":351,"children":352},{"style":104},[353],{"type":66,"value":354},") ",{"type":61,"tag":91,"props":356,"children":357},{"style":98},[358],{"type":66,"value":359},"{\n",{"type":61,"tag":91,"props":361,"children":363},{"class":93,"line":362},5,[364,369,374,378,383,389,393],{"type":61,"tag":91,"props":365,"children":366},{"style":227},[367],{"type":66,"value":368}," return",{"type":61,"tag":91,"props":370,"children":371},{"style":141},[372],{"type":66,"value":373}," navigateTo",{"type":61,"tag":91,"props":375,"children":376},{"style":104},[377],{"type":66,"value":245},{"type":61,"tag":91,"props":379,"children":380},{"style":98},[381],{"type":66,"value":382},"'",{"type":61,"tag":91,"props":384,"children":386},{"style":385},"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D",[387],{"type":66,"value":388},"/login",{"type":61,"tag":91,"props":390,"children":391},{"style":98},[392],{"type":66,"value":382},{"type":61,"tag":91,"props":394,"children":395},{"style":104},[396],{"type":66,"value":397},")\n",{"type":61,"tag":91,"props":399,"children":401},{"class":93,"line":400},6,[402],{"type":61,"tag":91,"props":403,"children":404},{"style":98},[405],{"type":66,"value":406}," }\n",{"type":61,"tag":91,"props":408,"children":410},{"class":93,"line":409},7,[411,416],{"type":61,"tag":91,"props":412,"children":413},{"style":98},[414],{"type":66,"value":415},"}",{"type":61,"tag":91,"props":417,"children":418},{"style":130},[419],{"type":66,"value":397},{"type":61,"tag":62,"props":421,"children":422},{},[423],{"type":66,"value":424},"Then you can reference your middleware in your page with:",{"type":61,"tag":80,"props":426,"children":429},{"className":214,"code":427,"filename":428,"language":217,"meta":55,"style":55},"definePageMeta({\n middleware: 'auth'\n})\n","pages/dashboard.vue",[430],{"type":61,"tag":87,"props":431,"children":432},{"__ignoreMap":55},[433,449,477],{"type":61,"tag":91,"props":434,"children":435},{"class":93,"line":94},[436,441,445],{"type":61,"tag":91,"props":437,"children":438},{"style":141},[439],{"type":66,"value":440},"definePageMeta",{"type":61,"tag":91,"props":442,"children":443},{"style":130},[444],{"type":66,"value":245},{"type":61,"tag":91,"props":446,"children":447},{"style":98},[448],{"type":66,"value":359},{"type":61,"tag":91,"props":450,"children":451},{"class":93,"line":121},[452,457,462,467,472],{"type":61,"tag":91,"props":453,"children":454},{"style":104},[455],{"type":66,"value":456}," middleware",{"type":61,"tag":91,"props":458,"children":459},{"style":98},[460],{"type":66,"value":461},":",{"type":61,"tag":91,"props":463,"children":464},{"style":98},[465],{"type":66,"value":466}," '",{"type":61,"tag":91,"props":468,"children":469},{"style":385},[470],{"type":66,"value":471},"auth",{"type":61,"tag":91,"props":473,"children":474},{"style":98},[475],{"type":66,"value":476},"'\n",{"type":61,"tag":91,"props":478,"children":479},{"class":93,"line":152},[480,484],{"type":61,"tag":91,"props":481,"children":482},{"style":98},[483],{"type":66,"value":415},{"type":61,"tag":91,"props":485,"children":486},{"style":130},[487],{"type":66,"value":397},{"type":61,"tag":62,"props":489,"children":490},{},[491,493,500,502,508],{"type":66,"value":492},"Learn more about ",{"type":61,"tag":69,"props":494,"children":497},{"href":495,"rel":496},"https://nuxt.com/docs/guide/directory-structure/middleware",[73],[498],{"type":66,"value":499},"Nuxt middleware",{"type":66,"value":501}," and ",{"type":61,"tag":69,"props":503,"children":506},{"href":504,"rel":505},"https://nuxt.com/docs/guide/directory-structure/pages#page-metadata",[73],[507],{"type":66,"value":440},{"type":66,"value":344},{"type":61,"tag":510,"props":511,"children":512},"style",{},[513],{"type":66,"value":514},"html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":55,"searchDepth":121,"depth":121,"links":516},[517],{"id":170,"depth":121,"text":173},"markdown","content:4.usage:composables:useSupabaseUser.md","content","4.usage/composables/useSupabaseUser.md","md",[524,526],{"_path":22,"title":21,"description":525},"Make requests to the Supabase API with the useSupabaseClient composable",{"_path":32,"title":31,"description":527},"Make requests to the Supabase API on server side with the serverSupabaseClient service",1703671431794] \ No newline at end of file +[{"data":1,"prerenderedAt":528},["Reactive",2],{"navigation":3,"/usage/composables/usesupabaseuser":52,"/usage/composables/usesupabaseuser-surround":523},[4,8,12,40,44,48],{"title":5,"_path":6,"icon":7},"Get Started","/get-started","heroicons:rocket-launch",{"title":9,"_path":10,"icon":11},"Authentication","/authentication","heroicons:lock-closed",{"title":13,"_path":14,"children":15,"icon":39},"Usage","/usage",[16,26],{"title":17,"_path":18,"children":19},"Vue composables","/usage/composables",[20,23],{"title":21,"_path":22},"useSupabaseClient","/usage/composables/usesupabaseclient",{"title":24,"_path":25},"useSupabaseUser","/usage/composables/usesupabaseuser",{"title":27,"_path":28,"children":29},"Server services","/usage/services",[30,33,36],{"title":31,"_path":32},"serverSupabaseClient","/usage/services/serversupabaseclient",{"title":34,"_path":35},"serverSupabaseServiceRole","/usage/services/serversupabaseservicerole",{"title":37,"_path":38},"serverSupabaseUser","/usage/services/serversupabaseuser","heroicons:book-open",{"title":41,"_path":42,"icon":43},"Demo","/demo","heroicons:computer-desktop-20-solid",{"title":45,"_path":46,"icon":47},"Changelog","/changelog","heroicons:bookmark",{"title":49,"_path":50,"icon":51},"Roadmap","/roadmap","heroicons:map",{"_path":25,"_dir":53,"_draft":54,"_partial":54,"_locale":55,"title":24,"description":56,"body":57,"_type":518,"_id":519,"_source":520,"_file":521,"_extension":522},"composables",false,"","Auto import and use your Supabase user with the useSupabaseUser composable",{"type":58,"children":59,"toc":515},"root",[60,79,167,174,199,212,420,425,488,509],{"type":61,"tag":62,"props":63,"children":64},"element","p",{},[65,68,77],{"type":66,"value":67},"text","Once logged in, you can ",{"type":61,"tag":69,"props":70,"children":74},"a",{"href":71,"rel":72},"https://nuxt.com/docs/guide/directory-structure/composables",[73],"nofollow",[75],{"type":66,"value":76},"auto-import",{"type":66,"value":78}," your user everywhere inside your vue files.",{"type":61,"tag":80,"props":81,"children":85},"pre",{"className":82,"code":83,"language":84,"meta":55,"style":55},"language-vue shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","\u003Cscript setup>\nconst user = useSupabaseUser()\n\u003C/script>\n","vue",[86],{"type":61,"tag":87,"props":88,"children":89},"code",{"__ignoreMap":55},[90,119,150],{"type":61,"tag":91,"props":92,"children":95},"span",{"class":93,"line":94},"line",1,[96,102,108,114],{"type":61,"tag":91,"props":97,"children":99},{"style":98},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF",[100],{"type":66,"value":101},"\u003C",{"type":61,"tag":91,"props":103,"children":105},{"style":104},"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178",[106],{"type":66,"value":107},"script",{"type":61,"tag":91,"props":109,"children":111},{"style":110},"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA",[112],{"type":66,"value":113}," setup",{"type":61,"tag":91,"props":115,"children":116},{"style":98},[117],{"type":66,"value":118},">\n",{"type":61,"tag":91,"props":120,"children":122},{"class":93,"line":121},2,[123,128,134,139,145],{"type":61,"tag":91,"props":124,"children":125},{"style":110},[126],{"type":66,"value":127},"const",{"type":61,"tag":91,"props":129,"children":131},{"style":130},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8",[132],{"type":66,"value":133}," user ",{"type":61,"tag":91,"props":135,"children":136},{"style":98},[137],{"type":66,"value":138},"=",{"type":61,"tag":91,"props":140,"children":142},{"style":141},"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF",[143],{"type":66,"value":144}," useSupabaseUser",{"type":61,"tag":91,"props":146,"children":147},{"style":130},[148],{"type":66,"value":149},"()\n",{"type":61,"tag":91,"props":151,"children":153},{"class":93,"line":152},3,[154,159,163],{"type":61,"tag":91,"props":155,"children":156},{"style":98},[157],{"type":66,"value":158},"\u003C/",{"type":61,"tag":91,"props":160,"children":161},{"style":104},[162],{"type":66,"value":107},{"type":61,"tag":91,"props":164,"children":165},{"style":98},[166],{"type":66,"value":118},{"type":61,"tag":168,"props":169,"children":171},"h2",{"id":170},"auth-middleware",[172],{"type":66,"value":173},"Auth middleware",{"type":61,"tag":175,"props":176,"children":178},"callout",{"icon":177},"i-heroicons-light-bulb",[179],{"type":61,"tag":62,"props":180,"children":181},{},[182,184,190,192,197],{"type":66,"value":183},"By default, the module is implementing a redirect middleware. All pages of your application are automatically redirected to the ",{"type":61,"tag":69,"props":185,"children":187},{"href":186},"/get-started#redirectoptions",[188],{"type":66,"value":189},"login",{"type":66,"value":191}," page. However, you can allow redirection to \"public\" pages by setting the ",{"type":61,"tag":69,"props":193,"children":194},{"href":186},[195],{"type":66,"value":196},"exclude",{"type":66,"value":198}," redirect option.",{"type":61,"tag":62,"props":200,"children":201},{},[202,204,210],{"type":66,"value":203},"If the ",{"type":61,"tag":69,"props":205,"children":207},{"href":206},"/get-started#redirect",[208],{"type":66,"value":209},"redirect",{"type":66,"value":211}," option is disabled, you can protect your authenticated routes by creating a custom middleware in your project, here is an example:",{"type":61,"tag":80,"props":213,"children":218},{"className":214,"code":215,"filename":216,"language":217,"meta":55,"style":55},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","export default defineNuxtRouteMiddleware((to, _from) => {\n const user = useSupabaseUser()\n\n if (!user.value) {\n return navigateTo('/login')\n }\n})\n","middleware/auth.ts","ts",[219],{"type":61,"tag":87,"props":220,"children":221},{"__ignoreMap":55},[222,281,307,316,360,398,407],{"type":61,"tag":91,"props":223,"children":224},{"class":93,"line":94},[225,231,236,241,246,250,256,261,266,271,276],{"type":61,"tag":91,"props":226,"children":228},{"style":227},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic",[229],{"type":66,"value":230},"export",{"type":61,"tag":91,"props":232,"children":233},{"style":227},[234],{"type":66,"value":235}," default",{"type":61,"tag":91,"props":237,"children":238},{"style":141},[239],{"type":66,"value":240}," defineNuxtRouteMiddleware",{"type":61,"tag":91,"props":242,"children":243},{"style":130},[244],{"type":66,"value":245},"(",{"type":61,"tag":91,"props":247,"children":248},{"style":98},[249],{"type":66,"value":245},{"type":61,"tag":91,"props":251,"children":253},{"style":252},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic",[254],{"type":66,"value":255},"to",{"type":61,"tag":91,"props":257,"children":258},{"style":98},[259],{"type":66,"value":260},",",{"type":61,"tag":91,"props":262,"children":263},{"style":252},[264],{"type":66,"value":265}," _from",{"type":61,"tag":91,"props":267,"children":268},{"style":98},[269],{"type":66,"value":270},")",{"type":61,"tag":91,"props":272,"children":273},{"style":110},[274],{"type":66,"value":275}," =>",{"type":61,"tag":91,"props":277,"children":278},{"style":98},[279],{"type":66,"value":280}," {\n",{"type":61,"tag":91,"props":282,"children":283},{"class":93,"line":121},[284,289,294,299,303],{"type":61,"tag":91,"props":285,"children":286},{"style":110},[287],{"type":66,"value":288}," const",{"type":61,"tag":91,"props":290,"children":291},{"style":130},[292],{"type":66,"value":293}," user",{"type":61,"tag":91,"props":295,"children":296},{"style":98},[297],{"type":66,"value":298}," =",{"type":61,"tag":91,"props":300,"children":301},{"style":141},[302],{"type":66,"value":144},{"type":61,"tag":91,"props":304,"children":305},{"style":104},[306],{"type":66,"value":149},{"type":61,"tag":91,"props":308,"children":309},{"class":93,"line":152},[310],{"type":61,"tag":91,"props":311,"children":313},{"emptyLinePlaceholder":312},true,[314],{"type":66,"value":315},"\n",{"type":61,"tag":91,"props":317,"children":319},{"class":93,"line":318},4,[320,325,330,335,340,345,350,355],{"type":61,"tag":91,"props":321,"children":322},{"style":227},[323],{"type":66,"value":324}," if",{"type":61,"tag":91,"props":326,"children":327},{"style":104},[328],{"type":66,"value":329}," (",{"type":61,"tag":91,"props":331,"children":332},{"style":98},[333],{"type":66,"value":334},"!",{"type":61,"tag":91,"props":336,"children":337},{"style":130},[338],{"type":66,"value":339},"user",{"type":61,"tag":91,"props":341,"children":342},{"style":98},[343],{"type":66,"value":344},".",{"type":61,"tag":91,"props":346,"children":347},{"style":130},[348],{"type":66,"value":349},"value",{"type":61,"tag":91,"props":351,"children":352},{"style":104},[353],{"type":66,"value":354},") ",{"type":61,"tag":91,"props":356,"children":357},{"style":98},[358],{"type":66,"value":359},"{\n",{"type":61,"tag":91,"props":361,"children":363},{"class":93,"line":362},5,[364,369,374,378,383,389,393],{"type":61,"tag":91,"props":365,"children":366},{"style":227},[367],{"type":66,"value":368}," return",{"type":61,"tag":91,"props":370,"children":371},{"style":141},[372],{"type":66,"value":373}," navigateTo",{"type":61,"tag":91,"props":375,"children":376},{"style":104},[377],{"type":66,"value":245},{"type":61,"tag":91,"props":379,"children":380},{"style":98},[381],{"type":66,"value":382},"'",{"type":61,"tag":91,"props":384,"children":386},{"style":385},"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D",[387],{"type":66,"value":388},"/login",{"type":61,"tag":91,"props":390,"children":391},{"style":98},[392],{"type":66,"value":382},{"type":61,"tag":91,"props":394,"children":395},{"style":104},[396],{"type":66,"value":397},")\n",{"type":61,"tag":91,"props":399,"children":401},{"class":93,"line":400},6,[402],{"type":61,"tag":91,"props":403,"children":404},{"style":98},[405],{"type":66,"value":406}," }\n",{"type":61,"tag":91,"props":408,"children":410},{"class":93,"line":409},7,[411,416],{"type":61,"tag":91,"props":412,"children":413},{"style":98},[414],{"type":66,"value":415},"}",{"type":61,"tag":91,"props":417,"children":418},{"style":130},[419],{"type":66,"value":397},{"type":61,"tag":62,"props":421,"children":422},{},[423],{"type":66,"value":424},"Then you can reference your middleware in your page with:",{"type":61,"tag":80,"props":426,"children":429},{"className":214,"code":427,"filename":428,"language":217,"meta":55,"style":55},"definePageMeta({\n middleware: 'auth'\n})\n","pages/dashboard.vue",[430],{"type":61,"tag":87,"props":431,"children":432},{"__ignoreMap":55},[433,449,477],{"type":61,"tag":91,"props":434,"children":435},{"class":93,"line":94},[436,441,445],{"type":61,"tag":91,"props":437,"children":438},{"style":141},[439],{"type":66,"value":440},"definePageMeta",{"type":61,"tag":91,"props":442,"children":443},{"style":130},[444],{"type":66,"value":245},{"type":61,"tag":91,"props":446,"children":447},{"style":98},[448],{"type":66,"value":359},{"type":61,"tag":91,"props":450,"children":451},{"class":93,"line":121},[452,457,462,467,472],{"type":61,"tag":91,"props":453,"children":454},{"style":104},[455],{"type":66,"value":456}," middleware",{"type":61,"tag":91,"props":458,"children":459},{"style":98},[460],{"type":66,"value":461},":",{"type":61,"tag":91,"props":463,"children":464},{"style":98},[465],{"type":66,"value":466}," '",{"type":61,"tag":91,"props":468,"children":469},{"style":385},[470],{"type":66,"value":471},"auth",{"type":61,"tag":91,"props":473,"children":474},{"style":98},[475],{"type":66,"value":476},"'\n",{"type":61,"tag":91,"props":478,"children":479},{"class":93,"line":152},[480,484],{"type":61,"tag":91,"props":481,"children":482},{"style":98},[483],{"type":66,"value":415},{"type":61,"tag":91,"props":485,"children":486},{"style":130},[487],{"type":66,"value":397},{"type":61,"tag":62,"props":489,"children":490},{},[491,493,500,502,508],{"type":66,"value":492},"Learn more about ",{"type":61,"tag":69,"props":494,"children":497},{"href":495,"rel":496},"https://nuxt.com/docs/guide/directory-structure/middleware",[73],[498],{"type":66,"value":499},"Nuxt middleware",{"type":66,"value":501}," and ",{"type":61,"tag":69,"props":503,"children":506},{"href":504,"rel":505},"https://nuxt.com/docs/guide/directory-structure/pages#page-metadata",[73],[507],{"type":66,"value":440},{"type":66,"value":344},{"type":61,"tag":510,"props":511,"children":512},"style",{},[513],{"type":66,"value":514},"html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":55,"searchDepth":121,"depth":121,"links":516},[517],{"id":170,"depth":121,"text":173},"markdown","content:4.usage:composables:useSupabaseUser.md","content","4.usage/composables/useSupabaseUser.md","md",[524,526],{"_path":22,"title":21,"description":525},"Make requests to the Supabase API with the useSupabaseClient composable",{"_path":32,"title":31,"description":527},"Make requests to the Supabase API on server side with the serverSupabaseClient service",1703757838241] \ No newline at end of file diff --git a/usage/composables/usesupabaseuser/index.html b/usage/composables/usesupabaseuser/index.html index 613d96cb..101d6c5d 100644 --- a/usage/composables/usesupabaseuser/index.html +++ b/usage/composables/usesupabaseuser/index.html @@ -69,40 +69,40 @@ - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + - - - - - - - + + + + + + + - - + + - -
mobile favicon
Composables

useSupabaseUser

Auto import and use your Supabase user with the useSupabaseUser composable

Once logged in, you can auto-import your user everywhere inside your vue files.

<script setup>
 const user = useSupabaseUser()
@@ -118,6 +118,6 @@
   middleware: 'auth'
 })
 

Learn more about Nuxt middleware and definePageMeta.


Made with Nuxt Studio
- - + + \ No newline at end of file diff --git a/usage/services/serversupabaseclient/_payload.json b/usage/services/serversupabaseclient/_payload.json index 4effafd6..8f603906 100644 --- a/usage/services/serversupabaseclient/_payload.json +++ b/usage/services/serversupabaseclient/_payload.json @@ -1 +1 @@ -[{"data":1,"prerenderedAt":726},["Reactive",2],{"navigation":3,"/usage/services/serversupabaseclient":52,"/usage/services/serversupabaseclient-surround":720},[4,8,12,40,44,48],{"title":5,"_path":6,"icon":7},"Get Started","/get-started","heroicons:rocket-launch",{"title":9,"_path":10,"icon":11},"Authentication","/authentication","heroicons:lock-closed",{"title":13,"_path":14,"children":15,"icon":39},"Usage","/usage",[16,26],{"title":17,"_path":18,"children":19},"Vue composables","/usage/composables",[20,23],{"title":21,"_path":22},"useSupabaseClient","/usage/composables/usesupabaseclient",{"title":24,"_path":25},"useSupabaseUser","/usage/composables/usesupabaseuser",{"title":27,"_path":28,"children":29},"Server services","/usage/services",[30,33,36],{"title":31,"_path":32},"serverSupabaseClient","/usage/services/serversupabaseclient",{"title":34,"_path":35},"serverSupabaseServiceRole","/usage/services/serversupabaseservicerole",{"title":37,"_path":38},"serverSupabaseUser","/usage/services/serversupabaseuser","heroicons:book-open",{"title":41,"_path":42,"icon":43},"Demo","/demo","heroicons:computer-desktop-20-solid",{"title":45,"_path":46,"icon":47},"Changelog","/changelog","heroicons:bookmark",{"title":49,"_path":50,"icon":51},"Roadmap","/roadmap","heroicons:map",{"_path":32,"_dir":53,"_draft":54,"_partial":54,"_locale":55,"title":31,"description":56,"body":57,"_type":715,"_id":716,"_source":717,"_file":718,"_extension":719},"services",false,"","Make requests to the Supabase API on server side with the serverSupabaseClient service",{"type":58,"children":59,"toc":713},"root",[60,85,105,130,454,459,564,578,707],{"type":61,"tag":62,"props":63,"children":66},"element","callout",{"color":64,"icon":65},"amber","i-heroicons-exclamation-triangle-20-solid",[67],{"type":61,"tag":68,"props":69,"children":70},"p",{},[71,74,83],{"type":72,"value":73},"text","This section assumes you're familiar with ",{"type":61,"tag":75,"props":76,"children":80},"a",{"href":77,"rel":78},"https://v3.nuxtjs.org/guide/concepts/server-engine",[79],"nofollow",[81],{"type":72,"value":82},"Nitro",{"type":72,"value":84},", the server engine powered by Nuxt.",{"type":61,"tag":68,"props":86,"children":87},{},[88,90,94,96,103],{"type":72,"value":89},"This function is working similary as the ",{"type":61,"tag":75,"props":91,"children":92},{"href":22},[93],{"type":72,"value":21},{"type":72,"value":95}," composable but is designed to be used in ",{"type":61,"tag":75,"props":97,"children":100},{"href":98,"rel":99},"https://nuxt.com/docs/guide/directory-structure/server#server-routes",[79],[101],{"type":72,"value":102},"server routes",{"type":72,"value":104},".",{"type":61,"tag":68,"props":106,"children":107},{},[108,110,115,117,122,124,128],{"type":72,"value":109},"Define your server route and just import the ",{"type":61,"tag":111,"props":112,"children":113},"code",{"className":55},[114],{"type":72,"value":31},{"type":72,"value":116}," from ",{"type":61,"tag":111,"props":118,"children":119},{"className":55},[120],{"type":72,"value":121},"#supabase/server",{"type":72,"value":123},". Be careful, ",{"type":61,"tag":111,"props":125,"children":126},{"className":55},[127],{"type":72,"value":31},{"type":72,"value":129}," is returning a promise.",{"type":61,"tag":131,"props":132,"children":137},"pre",{"className":133,"code":134,"filename":135,"language":136,"meta":55,"style":55},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","import { serverSupabaseClient } from '#supabase/server'\n\nexport default eventHandler(async (event) => {\n const client = await serverSupabaseClient(event)\n\n const { data } = await client.from('libraries').select('*')\n\n return { libraries: data }\n})\n","server/api/libraries.ts","ts",[138],{"type":61,"tag":111,"props":139,"children":140},{"__ignoreMap":55},[141,190,200,257,299,307,401,409,441],{"type":61,"tag":142,"props":143,"children":146},"span",{"class":144,"line":145},"line",1,[147,153,159,165,170,175,180,185],{"type":61,"tag":142,"props":148,"children":150},{"style":149},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic",[151],{"type":72,"value":152},"import",{"type":61,"tag":142,"props":154,"children":156},{"style":155},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF",[157],{"type":72,"value":158}," {",{"type":61,"tag":142,"props":160,"children":162},{"style":161},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8",[163],{"type":72,"value":164}," serverSupabaseClient",{"type":61,"tag":142,"props":166,"children":167},{"style":155},[168],{"type":72,"value":169}," }",{"type":61,"tag":142,"props":171,"children":172},{"style":149},[173],{"type":72,"value":174}," from",{"type":61,"tag":142,"props":176,"children":177},{"style":155},[178],{"type":72,"value":179}," '",{"type":61,"tag":142,"props":181,"children":183},{"style":182},"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D",[184],{"type":72,"value":121},{"type":61,"tag":142,"props":186,"children":187},{"style":155},[188],{"type":72,"value":189},"'\n",{"type":61,"tag":142,"props":191,"children":193},{"class":144,"line":192},2,[194],{"type":61,"tag":142,"props":195,"children":197},{"emptyLinePlaceholder":196},true,[198],{"type":72,"value":199},"\n",{"type":61,"tag":142,"props":201,"children":203},{"class":144,"line":202},3,[204,209,214,220,225,231,236,242,247,252],{"type":61,"tag":142,"props":205,"children":206},{"style":149},[207],{"type":72,"value":208},"export",{"type":61,"tag":142,"props":210,"children":211},{"style":149},[212],{"type":72,"value":213}," default",{"type":61,"tag":142,"props":215,"children":217},{"style":216},"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF",[218],{"type":72,"value":219}," eventHandler",{"type":61,"tag":142,"props":221,"children":222},{"style":161},[223],{"type":72,"value":224},"(",{"type":61,"tag":142,"props":226,"children":228},{"style":227},"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA",[229],{"type":72,"value":230},"async",{"type":61,"tag":142,"props":232,"children":233},{"style":155},[234],{"type":72,"value":235}," (",{"type":61,"tag":142,"props":237,"children":239},{"style":238},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic",[240],{"type":72,"value":241},"event",{"type":61,"tag":142,"props":243,"children":244},{"style":155},[245],{"type":72,"value":246},")",{"type":61,"tag":142,"props":248,"children":249},{"style":227},[250],{"type":72,"value":251}," =>",{"type":61,"tag":142,"props":253,"children":254},{"style":155},[255],{"type":72,"value":256}," {\n",{"type":61,"tag":142,"props":258,"children":260},{"class":144,"line":259},4,[261,266,271,276,281,285,290,294],{"type":61,"tag":142,"props":262,"children":263},{"style":227},[264],{"type":72,"value":265}," const",{"type":61,"tag":142,"props":267,"children":268},{"style":161},[269],{"type":72,"value":270}," client",{"type":61,"tag":142,"props":272,"children":273},{"style":155},[274],{"type":72,"value":275}," =",{"type":61,"tag":142,"props":277,"children":278},{"style":149},[279],{"type":72,"value":280}," await",{"type":61,"tag":142,"props":282,"children":283},{"style":216},[284],{"type":72,"value":164},{"type":61,"tag":142,"props":286,"children":288},{"style":287},"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178",[289],{"type":72,"value":224},{"type":61,"tag":142,"props":291,"children":292},{"style":161},[293],{"type":72,"value":241},{"type":61,"tag":142,"props":295,"children":296},{"style":287},[297],{"type":72,"value":298},")\n",{"type":61,"tag":142,"props":300,"children":302},{"class":144,"line":301},5,[303],{"type":61,"tag":142,"props":304,"children":305},{"emptyLinePlaceholder":196},[306],{"type":72,"value":199},{"type":61,"tag":142,"props":308,"children":310},{"class":144,"line":309},6,[311,315,319,324,328,332,336,340,344,349,353,358,363,367,371,375,380,384,388,393,397],{"type":61,"tag":142,"props":312,"children":313},{"style":227},[314],{"type":72,"value":265},{"type":61,"tag":142,"props":316,"children":317},{"style":155},[318],{"type":72,"value":158},{"type":61,"tag":142,"props":320,"children":321},{"style":161},[322],{"type":72,"value":323}," data",{"type":61,"tag":142,"props":325,"children":326},{"style":155},[327],{"type":72,"value":169},{"type":61,"tag":142,"props":329,"children":330},{"style":155},[331],{"type":72,"value":275},{"type":61,"tag":142,"props":333,"children":334},{"style":149},[335],{"type":72,"value":280},{"type":61,"tag":142,"props":337,"children":338},{"style":161},[339],{"type":72,"value":270},{"type":61,"tag":142,"props":341,"children":342},{"style":155},[343],{"type":72,"value":104},{"type":61,"tag":142,"props":345,"children":346},{"style":216},[347],{"type":72,"value":348},"from",{"type":61,"tag":142,"props":350,"children":351},{"style":287},[352],{"type":72,"value":224},{"type":61,"tag":142,"props":354,"children":355},{"style":155},[356],{"type":72,"value":357},"'",{"type":61,"tag":142,"props":359,"children":360},{"style":182},[361],{"type":72,"value":362},"libraries",{"type":61,"tag":142,"props":364,"children":365},{"style":155},[366],{"type":72,"value":357},{"type":61,"tag":142,"props":368,"children":369},{"style":287},[370],{"type":72,"value":246},{"type":61,"tag":142,"props":372,"children":373},{"style":155},[374],{"type":72,"value":104},{"type":61,"tag":142,"props":376,"children":377},{"style":216},[378],{"type":72,"value":379},"select",{"type":61,"tag":142,"props":381,"children":382},{"style":287},[383],{"type":72,"value":224},{"type":61,"tag":142,"props":385,"children":386},{"style":155},[387],{"type":72,"value":357},{"type":61,"tag":142,"props":389,"children":390},{"style":182},[391],{"type":72,"value":392},"*",{"type":61,"tag":142,"props":394,"children":395},{"style":155},[396],{"type":72,"value":357},{"type":61,"tag":142,"props":398,"children":399},{"style":287},[400],{"type":72,"value":298},{"type":61,"tag":142,"props":402,"children":404},{"class":144,"line":403},7,[405],{"type":61,"tag":142,"props":406,"children":407},{"emptyLinePlaceholder":196},[408],{"type":72,"value":199},{"type":61,"tag":142,"props":410,"children":412},{"class":144,"line":411},8,[413,418,422,427,432,436],{"type":61,"tag":142,"props":414,"children":415},{"style":149},[416],{"type":72,"value":417}," return",{"type":61,"tag":142,"props":419,"children":420},{"style":155},[421],{"type":72,"value":158},{"type":61,"tag":142,"props":423,"children":424},{"style":287},[425],{"type":72,"value":426}," libraries",{"type":61,"tag":142,"props":428,"children":429},{"style":155},[430],{"type":72,"value":431},":",{"type":61,"tag":142,"props":433,"children":434},{"style":161},[435],{"type":72,"value":323},{"type":61,"tag":142,"props":437,"children":438},{"style":155},[439],{"type":72,"value":440}," }\n",{"type":61,"tag":142,"props":442,"children":444},{"class":144,"line":443},9,[445,450],{"type":61,"tag":142,"props":446,"children":447},{"style":155},[448],{"type":72,"value":449},"}",{"type":61,"tag":142,"props":451,"children":452},{"style":161},[453],{"type":72,"value":298},{"type":61,"tag":68,"props":455,"children":456},{},[457],{"type":72,"value":458},"Then call your API route from any vue file:",{"type":61,"tag":131,"props":460,"children":463},{"className":133,"code":461,"filename":462,"language":136,"meta":55,"style":55},"const fetchLibrary = async () => {\n const { libraries } = await $fetch('/api/libraries')\n}\n","pages/index.vue",[464],{"type":61,"tag":111,"props":465,"children":466},{"__ignoreMap":55},[467,503,556],{"type":61,"tag":142,"props":468,"children":469},{"class":144,"line":145},[470,475,480,485,490,495,499],{"type":61,"tag":142,"props":471,"children":472},{"style":227},[473],{"type":72,"value":474},"const",{"type":61,"tag":142,"props":476,"children":477},{"style":161},[478],{"type":72,"value":479}," fetchLibrary ",{"type":61,"tag":142,"props":481,"children":482},{"style":155},[483],{"type":72,"value":484},"=",{"type":61,"tag":142,"props":486,"children":487},{"style":227},[488],{"type":72,"value":489}," async",{"type":61,"tag":142,"props":491,"children":492},{"style":155},[493],{"type":72,"value":494}," ()",{"type":61,"tag":142,"props":496,"children":497},{"style":227},[498],{"type":72,"value":251},{"type":61,"tag":142,"props":500,"children":501},{"style":155},[502],{"type":72,"value":256},{"type":61,"tag":142,"props":504,"children":505},{"class":144,"line":192},[506,510,514,518,522,526,530,535,539,543,548,552],{"type":61,"tag":142,"props":507,"children":508},{"style":227},[509],{"type":72,"value":265},{"type":61,"tag":142,"props":511,"children":512},{"style":155},[513],{"type":72,"value":158},{"type":61,"tag":142,"props":515,"children":516},{"style":161},[517],{"type":72,"value":426},{"type":61,"tag":142,"props":519,"children":520},{"style":155},[521],{"type":72,"value":169},{"type":61,"tag":142,"props":523,"children":524},{"style":155},[525],{"type":72,"value":275},{"type":61,"tag":142,"props":527,"children":528},{"style":149},[529],{"type":72,"value":280},{"type":61,"tag":142,"props":531,"children":532},{"style":216},[533],{"type":72,"value":534}," $fetch",{"type":61,"tag":142,"props":536,"children":537},{"style":287},[538],{"type":72,"value":224},{"type":61,"tag":142,"props":540,"children":541},{"style":155},[542],{"type":72,"value":357},{"type":61,"tag":142,"props":544,"children":545},{"style":182},[546],{"type":72,"value":547},"/api/libraries",{"type":61,"tag":142,"props":549,"children":550},{"style":155},[551],{"type":72,"value":357},{"type":61,"tag":142,"props":553,"children":554},{"style":287},[555],{"type":72,"value":298},{"type":61,"tag":142,"props":557,"children":558},{"class":144,"line":202},[559],{"type":61,"tag":142,"props":560,"children":561},{"style":155},[562],{"type":72,"value":563},"}\n",{"type":61,"tag":68,"props":565,"children":566},{},[567,569,576],{"type":72,"value":568},"Be careful, if you want to call this route on SSR, please read this ",{"type":61,"tag":75,"props":570,"children":573},{"href":571,"rel":572},"https://nuxt.com/docs/getting-started/data-fetching#isomorphic-fetch-and-fetch",[79],[574],{"type":72,"value":575},"section",{"type":72,"value":577},", you must send your browser cookies including your supabase token.",{"type":61,"tag":131,"props":579,"children":581},{"className":133,"code":580,"filename":462,"language":136,"meta":55,"style":55},"const { data: { libraries }} = await useFetch('/api/libraries', {\n headers: useRequestHeaders(['cookie'])\n})\n",[582],{"type":61,"tag":111,"props":583,"children":584},{"__ignoreMap":55},[585,656,696],{"type":61,"tag":142,"props":586,"children":587},{"class":144,"line":145},[588,592,596,600,604,608,613,618,622,626,631,635,639,643,647,652],{"type":61,"tag":142,"props":589,"children":590},{"style":227},[591],{"type":72,"value":474},{"type":61,"tag":142,"props":593,"children":594},{"style":155},[595],{"type":72,"value":158},{"type":61,"tag":142,"props":597,"children":598},{"style":287},[599],{"type":72,"value":323},{"type":61,"tag":142,"props":601,"children":602},{"style":155},[603],{"type":72,"value":431},{"type":61,"tag":142,"props":605,"children":606},{"style":155},[607],{"type":72,"value":158},{"type":61,"tag":142,"props":609,"children":610},{"style":161},[611],{"type":72,"value":612}," libraries ",{"type":61,"tag":142,"props":614,"children":615},{"style":155},[616],{"type":72,"value":617},"}}",{"type":61,"tag":142,"props":619,"children":620},{"style":155},[621],{"type":72,"value":275},{"type":61,"tag":142,"props":623,"children":624},{"style":149},[625],{"type":72,"value":280},{"type":61,"tag":142,"props":627,"children":628},{"style":216},[629],{"type":72,"value":630}," useFetch",{"type":61,"tag":142,"props":632,"children":633},{"style":161},[634],{"type":72,"value":224},{"type":61,"tag":142,"props":636,"children":637},{"style":155},[638],{"type":72,"value":357},{"type":61,"tag":142,"props":640,"children":641},{"style":182},[642],{"type":72,"value":547},{"type":61,"tag":142,"props":644,"children":645},{"style":155},[646],{"type":72,"value":357},{"type":61,"tag":142,"props":648,"children":649},{"style":155},[650],{"type":72,"value":651},",",{"type":61,"tag":142,"props":653,"children":654},{"style":155},[655],{"type":72,"value":256},{"type":61,"tag":142,"props":657,"children":658},{"class":144,"line":192},[659,664,668,673,678,682,687,691],{"type":61,"tag":142,"props":660,"children":661},{"style":287},[662],{"type":72,"value":663}," headers",{"type":61,"tag":142,"props":665,"children":666},{"style":155},[667],{"type":72,"value":431},{"type":61,"tag":142,"props":669,"children":670},{"style":216},[671],{"type":72,"value":672}," useRequestHeaders",{"type":61,"tag":142,"props":674,"children":675},{"style":161},[676],{"type":72,"value":677},"([",{"type":61,"tag":142,"props":679,"children":680},{"style":155},[681],{"type":72,"value":357},{"type":61,"tag":142,"props":683,"children":684},{"style":182},[685],{"type":72,"value":686},"cookie",{"type":61,"tag":142,"props":688,"children":689},{"style":155},[690],{"type":72,"value":357},{"type":61,"tag":142,"props":692,"children":693},{"style":161},[694],{"type":72,"value":695},"])\n",{"type":61,"tag":142,"props":697,"children":698},{"class":144,"line":202},[699,703],{"type":61,"tag":142,"props":700,"children":701},{"style":155},[702],{"type":72,"value":449},{"type":61,"tag":142,"props":704,"children":705},{"style":161},[706],{"type":72,"value":298},{"type":61,"tag":708,"props":709,"children":710},"style",{},[711],{"type":72,"value":712},"html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":55,"searchDepth":192,"depth":192,"links":714},[],"markdown","content:4.usage:services:1.serverSupabaseClient.md","content","4.usage/services/1.serverSupabaseClient.md","md",[721,723],{"_path":25,"title":24,"description":722},"Auto import and use your Supabase user with the useSupabaseUser composable",{"_path":35,"title":724,"description":725},"serverServiceRole","Make requests with super admin rights to the Supabase API with the serverSupabaseServiceRole service",1703671431391] \ No newline at end of file +[{"data":1,"prerenderedAt":726},["Reactive",2],{"navigation":3,"/usage/services/serversupabaseclient":52,"/usage/services/serversupabaseclient-surround":720},[4,8,12,40,44,48],{"title":5,"_path":6,"icon":7},"Get Started","/get-started","heroicons:rocket-launch",{"title":9,"_path":10,"icon":11},"Authentication","/authentication","heroicons:lock-closed",{"title":13,"_path":14,"children":15,"icon":39},"Usage","/usage",[16,26],{"title":17,"_path":18,"children":19},"Vue composables","/usage/composables",[20,23],{"title":21,"_path":22},"useSupabaseClient","/usage/composables/usesupabaseclient",{"title":24,"_path":25},"useSupabaseUser","/usage/composables/usesupabaseuser",{"title":27,"_path":28,"children":29},"Server services","/usage/services",[30,33,36],{"title":31,"_path":32},"serverSupabaseClient","/usage/services/serversupabaseclient",{"title":34,"_path":35},"serverSupabaseServiceRole","/usage/services/serversupabaseservicerole",{"title":37,"_path":38},"serverSupabaseUser","/usage/services/serversupabaseuser","heroicons:book-open",{"title":41,"_path":42,"icon":43},"Demo","/demo","heroicons:computer-desktop-20-solid",{"title":45,"_path":46,"icon":47},"Changelog","/changelog","heroicons:bookmark",{"title":49,"_path":50,"icon":51},"Roadmap","/roadmap","heroicons:map",{"_path":32,"_dir":53,"_draft":54,"_partial":54,"_locale":55,"title":31,"description":56,"body":57,"_type":715,"_id":716,"_source":717,"_file":718,"_extension":719},"services",false,"","Make requests to the Supabase API on server side with the serverSupabaseClient service",{"type":58,"children":59,"toc":713},"root",[60,85,105,130,454,459,564,578,707],{"type":61,"tag":62,"props":63,"children":66},"element","callout",{"color":64,"icon":65},"amber","i-heroicons-exclamation-triangle-20-solid",[67],{"type":61,"tag":68,"props":69,"children":70},"p",{},[71,74,83],{"type":72,"value":73},"text","This section assumes you're familiar with ",{"type":61,"tag":75,"props":76,"children":80},"a",{"href":77,"rel":78},"https://v3.nuxtjs.org/guide/concepts/server-engine",[79],"nofollow",[81],{"type":72,"value":82},"Nitro",{"type":72,"value":84},", the server engine powered by Nuxt.",{"type":61,"tag":68,"props":86,"children":87},{},[88,90,94,96,103],{"type":72,"value":89},"This function is working similary as the ",{"type":61,"tag":75,"props":91,"children":92},{"href":22},[93],{"type":72,"value":21},{"type":72,"value":95}," composable but is designed to be used in ",{"type":61,"tag":75,"props":97,"children":100},{"href":98,"rel":99},"https://nuxt.com/docs/guide/directory-structure/server#server-routes",[79],[101],{"type":72,"value":102},"server routes",{"type":72,"value":104},".",{"type":61,"tag":68,"props":106,"children":107},{},[108,110,115,117,122,124,128],{"type":72,"value":109},"Define your server route and just import the ",{"type":61,"tag":111,"props":112,"children":113},"code",{"className":55},[114],{"type":72,"value":31},{"type":72,"value":116}," from ",{"type":61,"tag":111,"props":118,"children":119},{"className":55},[120],{"type":72,"value":121},"#supabase/server",{"type":72,"value":123},". Be careful, ",{"type":61,"tag":111,"props":125,"children":126},{"className":55},[127],{"type":72,"value":31},{"type":72,"value":129}," is returning a promise.",{"type":61,"tag":131,"props":132,"children":137},"pre",{"className":133,"code":134,"filename":135,"language":136,"meta":55,"style":55},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","import { serverSupabaseClient } from '#supabase/server'\n\nexport default eventHandler(async (event) => {\n const client = await serverSupabaseClient(event)\n\n const { data } = await client.from('libraries').select('*')\n\n return { libraries: data }\n})\n","server/api/libraries.ts","ts",[138],{"type":61,"tag":111,"props":139,"children":140},{"__ignoreMap":55},[141,190,200,257,299,307,401,409,441],{"type":61,"tag":142,"props":143,"children":146},"span",{"class":144,"line":145},"line",1,[147,153,159,165,170,175,180,185],{"type":61,"tag":142,"props":148,"children":150},{"style":149},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic",[151],{"type":72,"value":152},"import",{"type":61,"tag":142,"props":154,"children":156},{"style":155},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF",[157],{"type":72,"value":158}," {",{"type":61,"tag":142,"props":160,"children":162},{"style":161},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8",[163],{"type":72,"value":164}," serverSupabaseClient",{"type":61,"tag":142,"props":166,"children":167},{"style":155},[168],{"type":72,"value":169}," }",{"type":61,"tag":142,"props":171,"children":172},{"style":149},[173],{"type":72,"value":174}," from",{"type":61,"tag":142,"props":176,"children":177},{"style":155},[178],{"type":72,"value":179}," '",{"type":61,"tag":142,"props":181,"children":183},{"style":182},"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D",[184],{"type":72,"value":121},{"type":61,"tag":142,"props":186,"children":187},{"style":155},[188],{"type":72,"value":189},"'\n",{"type":61,"tag":142,"props":191,"children":193},{"class":144,"line":192},2,[194],{"type":61,"tag":142,"props":195,"children":197},{"emptyLinePlaceholder":196},true,[198],{"type":72,"value":199},"\n",{"type":61,"tag":142,"props":201,"children":203},{"class":144,"line":202},3,[204,209,214,220,225,231,236,242,247,252],{"type":61,"tag":142,"props":205,"children":206},{"style":149},[207],{"type":72,"value":208},"export",{"type":61,"tag":142,"props":210,"children":211},{"style":149},[212],{"type":72,"value":213}," default",{"type":61,"tag":142,"props":215,"children":217},{"style":216},"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF",[218],{"type":72,"value":219}," eventHandler",{"type":61,"tag":142,"props":221,"children":222},{"style":161},[223],{"type":72,"value":224},"(",{"type":61,"tag":142,"props":226,"children":228},{"style":227},"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA",[229],{"type":72,"value":230},"async",{"type":61,"tag":142,"props":232,"children":233},{"style":155},[234],{"type":72,"value":235}," (",{"type":61,"tag":142,"props":237,"children":239},{"style":238},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic",[240],{"type":72,"value":241},"event",{"type":61,"tag":142,"props":243,"children":244},{"style":155},[245],{"type":72,"value":246},")",{"type":61,"tag":142,"props":248,"children":249},{"style":227},[250],{"type":72,"value":251}," =>",{"type":61,"tag":142,"props":253,"children":254},{"style":155},[255],{"type":72,"value":256}," {\n",{"type":61,"tag":142,"props":258,"children":260},{"class":144,"line":259},4,[261,266,271,276,281,285,290,294],{"type":61,"tag":142,"props":262,"children":263},{"style":227},[264],{"type":72,"value":265}," const",{"type":61,"tag":142,"props":267,"children":268},{"style":161},[269],{"type":72,"value":270}," client",{"type":61,"tag":142,"props":272,"children":273},{"style":155},[274],{"type":72,"value":275}," =",{"type":61,"tag":142,"props":277,"children":278},{"style":149},[279],{"type":72,"value":280}," await",{"type":61,"tag":142,"props":282,"children":283},{"style":216},[284],{"type":72,"value":164},{"type":61,"tag":142,"props":286,"children":288},{"style":287},"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178",[289],{"type":72,"value":224},{"type":61,"tag":142,"props":291,"children":292},{"style":161},[293],{"type":72,"value":241},{"type":61,"tag":142,"props":295,"children":296},{"style":287},[297],{"type":72,"value":298},")\n",{"type":61,"tag":142,"props":300,"children":302},{"class":144,"line":301},5,[303],{"type":61,"tag":142,"props":304,"children":305},{"emptyLinePlaceholder":196},[306],{"type":72,"value":199},{"type":61,"tag":142,"props":308,"children":310},{"class":144,"line":309},6,[311,315,319,324,328,332,336,340,344,349,353,358,363,367,371,375,380,384,388,393,397],{"type":61,"tag":142,"props":312,"children":313},{"style":227},[314],{"type":72,"value":265},{"type":61,"tag":142,"props":316,"children":317},{"style":155},[318],{"type":72,"value":158},{"type":61,"tag":142,"props":320,"children":321},{"style":161},[322],{"type":72,"value":323}," data",{"type":61,"tag":142,"props":325,"children":326},{"style":155},[327],{"type":72,"value":169},{"type":61,"tag":142,"props":329,"children":330},{"style":155},[331],{"type":72,"value":275},{"type":61,"tag":142,"props":333,"children":334},{"style":149},[335],{"type":72,"value":280},{"type":61,"tag":142,"props":337,"children":338},{"style":161},[339],{"type":72,"value":270},{"type":61,"tag":142,"props":341,"children":342},{"style":155},[343],{"type":72,"value":104},{"type":61,"tag":142,"props":345,"children":346},{"style":216},[347],{"type":72,"value":348},"from",{"type":61,"tag":142,"props":350,"children":351},{"style":287},[352],{"type":72,"value":224},{"type":61,"tag":142,"props":354,"children":355},{"style":155},[356],{"type":72,"value":357},"'",{"type":61,"tag":142,"props":359,"children":360},{"style":182},[361],{"type":72,"value":362},"libraries",{"type":61,"tag":142,"props":364,"children":365},{"style":155},[366],{"type":72,"value":357},{"type":61,"tag":142,"props":368,"children":369},{"style":287},[370],{"type":72,"value":246},{"type":61,"tag":142,"props":372,"children":373},{"style":155},[374],{"type":72,"value":104},{"type":61,"tag":142,"props":376,"children":377},{"style":216},[378],{"type":72,"value":379},"select",{"type":61,"tag":142,"props":381,"children":382},{"style":287},[383],{"type":72,"value":224},{"type":61,"tag":142,"props":385,"children":386},{"style":155},[387],{"type":72,"value":357},{"type":61,"tag":142,"props":389,"children":390},{"style":182},[391],{"type":72,"value":392},"*",{"type":61,"tag":142,"props":394,"children":395},{"style":155},[396],{"type":72,"value":357},{"type":61,"tag":142,"props":398,"children":399},{"style":287},[400],{"type":72,"value":298},{"type":61,"tag":142,"props":402,"children":404},{"class":144,"line":403},7,[405],{"type":61,"tag":142,"props":406,"children":407},{"emptyLinePlaceholder":196},[408],{"type":72,"value":199},{"type":61,"tag":142,"props":410,"children":412},{"class":144,"line":411},8,[413,418,422,427,432,436],{"type":61,"tag":142,"props":414,"children":415},{"style":149},[416],{"type":72,"value":417}," return",{"type":61,"tag":142,"props":419,"children":420},{"style":155},[421],{"type":72,"value":158},{"type":61,"tag":142,"props":423,"children":424},{"style":287},[425],{"type":72,"value":426}," libraries",{"type":61,"tag":142,"props":428,"children":429},{"style":155},[430],{"type":72,"value":431},":",{"type":61,"tag":142,"props":433,"children":434},{"style":161},[435],{"type":72,"value":323},{"type":61,"tag":142,"props":437,"children":438},{"style":155},[439],{"type":72,"value":440}," }\n",{"type":61,"tag":142,"props":442,"children":444},{"class":144,"line":443},9,[445,450],{"type":61,"tag":142,"props":446,"children":447},{"style":155},[448],{"type":72,"value":449},"}",{"type":61,"tag":142,"props":451,"children":452},{"style":161},[453],{"type":72,"value":298},{"type":61,"tag":68,"props":455,"children":456},{},[457],{"type":72,"value":458},"Then call your API route from any vue file:",{"type":61,"tag":131,"props":460,"children":463},{"className":133,"code":461,"filename":462,"language":136,"meta":55,"style":55},"const fetchLibrary = async () => {\n const { libraries } = await $fetch('/api/libraries')\n}\n","pages/index.vue",[464],{"type":61,"tag":111,"props":465,"children":466},{"__ignoreMap":55},[467,503,556],{"type":61,"tag":142,"props":468,"children":469},{"class":144,"line":145},[470,475,480,485,490,495,499],{"type":61,"tag":142,"props":471,"children":472},{"style":227},[473],{"type":72,"value":474},"const",{"type":61,"tag":142,"props":476,"children":477},{"style":161},[478],{"type":72,"value":479}," fetchLibrary ",{"type":61,"tag":142,"props":481,"children":482},{"style":155},[483],{"type":72,"value":484},"=",{"type":61,"tag":142,"props":486,"children":487},{"style":227},[488],{"type":72,"value":489}," async",{"type":61,"tag":142,"props":491,"children":492},{"style":155},[493],{"type":72,"value":494}," ()",{"type":61,"tag":142,"props":496,"children":497},{"style":227},[498],{"type":72,"value":251},{"type":61,"tag":142,"props":500,"children":501},{"style":155},[502],{"type":72,"value":256},{"type":61,"tag":142,"props":504,"children":505},{"class":144,"line":192},[506,510,514,518,522,526,530,535,539,543,548,552],{"type":61,"tag":142,"props":507,"children":508},{"style":227},[509],{"type":72,"value":265},{"type":61,"tag":142,"props":511,"children":512},{"style":155},[513],{"type":72,"value":158},{"type":61,"tag":142,"props":515,"children":516},{"style":161},[517],{"type":72,"value":426},{"type":61,"tag":142,"props":519,"children":520},{"style":155},[521],{"type":72,"value":169},{"type":61,"tag":142,"props":523,"children":524},{"style":155},[525],{"type":72,"value":275},{"type":61,"tag":142,"props":527,"children":528},{"style":149},[529],{"type":72,"value":280},{"type":61,"tag":142,"props":531,"children":532},{"style":216},[533],{"type":72,"value":534}," $fetch",{"type":61,"tag":142,"props":536,"children":537},{"style":287},[538],{"type":72,"value":224},{"type":61,"tag":142,"props":540,"children":541},{"style":155},[542],{"type":72,"value":357},{"type":61,"tag":142,"props":544,"children":545},{"style":182},[546],{"type":72,"value":547},"/api/libraries",{"type":61,"tag":142,"props":549,"children":550},{"style":155},[551],{"type":72,"value":357},{"type":61,"tag":142,"props":553,"children":554},{"style":287},[555],{"type":72,"value":298},{"type":61,"tag":142,"props":557,"children":558},{"class":144,"line":202},[559],{"type":61,"tag":142,"props":560,"children":561},{"style":155},[562],{"type":72,"value":563},"}\n",{"type":61,"tag":68,"props":565,"children":566},{},[567,569,576],{"type":72,"value":568},"Be careful, if you want to call this route on SSR, please read this ",{"type":61,"tag":75,"props":570,"children":573},{"href":571,"rel":572},"https://nuxt.com/docs/getting-started/data-fetching#isomorphic-fetch-and-fetch",[79],[574],{"type":72,"value":575},"section",{"type":72,"value":577},", you must send your browser cookies including your supabase token.",{"type":61,"tag":131,"props":579,"children":581},{"className":133,"code":580,"filename":462,"language":136,"meta":55,"style":55},"const { data: { libraries }} = await useFetch('/api/libraries', {\n headers: useRequestHeaders(['cookie'])\n})\n",[582],{"type":61,"tag":111,"props":583,"children":584},{"__ignoreMap":55},[585,656,696],{"type":61,"tag":142,"props":586,"children":587},{"class":144,"line":145},[588,592,596,600,604,608,613,618,622,626,631,635,639,643,647,652],{"type":61,"tag":142,"props":589,"children":590},{"style":227},[591],{"type":72,"value":474},{"type":61,"tag":142,"props":593,"children":594},{"style":155},[595],{"type":72,"value":158},{"type":61,"tag":142,"props":597,"children":598},{"style":287},[599],{"type":72,"value":323},{"type":61,"tag":142,"props":601,"children":602},{"style":155},[603],{"type":72,"value":431},{"type":61,"tag":142,"props":605,"children":606},{"style":155},[607],{"type":72,"value":158},{"type":61,"tag":142,"props":609,"children":610},{"style":161},[611],{"type":72,"value":612}," libraries ",{"type":61,"tag":142,"props":614,"children":615},{"style":155},[616],{"type":72,"value":617},"}}",{"type":61,"tag":142,"props":619,"children":620},{"style":155},[621],{"type":72,"value":275},{"type":61,"tag":142,"props":623,"children":624},{"style":149},[625],{"type":72,"value":280},{"type":61,"tag":142,"props":627,"children":628},{"style":216},[629],{"type":72,"value":630}," useFetch",{"type":61,"tag":142,"props":632,"children":633},{"style":161},[634],{"type":72,"value":224},{"type":61,"tag":142,"props":636,"children":637},{"style":155},[638],{"type":72,"value":357},{"type":61,"tag":142,"props":640,"children":641},{"style":182},[642],{"type":72,"value":547},{"type":61,"tag":142,"props":644,"children":645},{"style":155},[646],{"type":72,"value":357},{"type":61,"tag":142,"props":648,"children":649},{"style":155},[650],{"type":72,"value":651},",",{"type":61,"tag":142,"props":653,"children":654},{"style":155},[655],{"type":72,"value":256},{"type":61,"tag":142,"props":657,"children":658},{"class":144,"line":192},[659,664,668,673,678,682,687,691],{"type":61,"tag":142,"props":660,"children":661},{"style":287},[662],{"type":72,"value":663}," headers",{"type":61,"tag":142,"props":665,"children":666},{"style":155},[667],{"type":72,"value":431},{"type":61,"tag":142,"props":669,"children":670},{"style":216},[671],{"type":72,"value":672}," useRequestHeaders",{"type":61,"tag":142,"props":674,"children":675},{"style":161},[676],{"type":72,"value":677},"([",{"type":61,"tag":142,"props":679,"children":680},{"style":155},[681],{"type":72,"value":357},{"type":61,"tag":142,"props":683,"children":684},{"style":182},[685],{"type":72,"value":686},"cookie",{"type":61,"tag":142,"props":688,"children":689},{"style":155},[690],{"type":72,"value":357},{"type":61,"tag":142,"props":692,"children":693},{"style":161},[694],{"type":72,"value":695},"])\n",{"type":61,"tag":142,"props":697,"children":698},{"class":144,"line":202},[699,703],{"type":61,"tag":142,"props":700,"children":701},{"style":155},[702],{"type":72,"value":449},{"type":61,"tag":142,"props":704,"children":705},{"style":161},[706],{"type":72,"value":298},{"type":61,"tag":708,"props":709,"children":710},"style",{},[711],{"type":72,"value":712},"html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":55,"searchDepth":192,"depth":192,"links":714},[],"markdown","content:4.usage:services:1.serverSupabaseClient.md","content","4.usage/services/1.serverSupabaseClient.md","md",[721,723],{"_path":25,"title":24,"description":722},"Auto import and use your Supabase user with the useSupabaseUser composable",{"_path":35,"title":724,"description":725},"serverServiceRole","Make requests with super admin rights to the Supabase API with the serverSupabaseServiceRole service",1703757837833] \ No newline at end of file diff --git a/usage/services/serversupabaseclient/index.html b/usage/services/serversupabaseclient/index.html index 6192fb0d..80d79123 100644 --- a/usage/services/serversupabaseclient/index.html +++ b/usage/services/serversupabaseclient/index.html @@ -69,41 +69,41 @@ - - - - - - - - - + + + + + + + + + - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + - - + + - - -
mobile favicon
Services

serverSupabaseClient

Make requests to the Supabase API on server side with the serverSupabaseClient service

This section assumes you're familiar with Nitro, the server engine powered by Nuxt.

This function is working similary as the useSupabaseClient composable but is designed to be used in server routes.

Define your server route and just import the serverSupabaseClient from #supabase/server. Be careful, serverSupabaseClient is returning a promise.

server/api/libraries.ts
import { serverSupabaseClient } from '#supabase/server'
+
mobile favicon
Services

serverSupabaseClient

Make requests to the Supabase API on server side with the serverSupabaseClient service

This section assumes you're familiar with Nitro, the server engine powered by Nuxt.

This function is working similary as the useSupabaseClient composable but is designed to be used in server routes.

Define your server route and just import the serverSupabaseClient from #supabase/server. Be careful, serverSupabaseClient is returning a promise.

server/api/libraries.ts
import { serverSupabaseClient } from '#supabase/server'
 
 export default eventHandler(async (event) => {
   const client = await serverSupabaseClient(event)
@@ -119,6 +119,6 @@
   headers: useRequestHeaders(['cookie'])
 })
 

Made with Nuxt Studio
- - + + \ No newline at end of file diff --git a/usage/services/serversupabaseservicerole/_payload.json b/usage/services/serversupabaseservicerole/_payload.json index 88c8f251..df718378 100644 --- a/usage/services/serversupabaseservicerole/_payload.json +++ b/usage/services/serversupabaseservicerole/_payload.json @@ -1 +1 @@ -[{"data":1,"prerenderedAt":602},["Reactive",2],{"navigation":3,"/usage/services/serversupabaseservicerole":52,"/usage/services/serversupabaseservicerole-surround":597},[4,8,12,40,44,48],{"title":5,"_path":6,"icon":7},"Get Started","/get-started","heroicons:rocket-launch",{"title":9,"_path":10,"icon":11},"Authentication","/authentication","heroicons:lock-closed",{"title":13,"_path":14,"children":15,"icon":39},"Usage","/usage",[16,26],{"title":17,"_path":18,"children":19},"Vue composables","/usage/composables",[20,23],{"title":21,"_path":22},"useSupabaseClient","/usage/composables/usesupabaseclient",{"title":24,"_path":25},"useSupabaseUser","/usage/composables/usesupabaseuser",{"title":27,"_path":28,"children":29},"Server services","/usage/services",[30,33,36],{"title":31,"_path":32},"serverSupabaseClient","/usage/services/serversupabaseclient",{"title":34,"_path":35},"serverSupabaseServiceRole","/usage/services/serversupabaseservicerole",{"title":37,"_path":38},"serverSupabaseUser","/usage/services/serversupabaseuser","heroicons:book-open",{"title":41,"_path":42,"icon":43},"Demo","/demo","heroicons:computer-desktop-20-solid",{"title":45,"_path":46,"icon":47},"Changelog","/changelog","heroicons:bookmark",{"title":49,"_path":50,"icon":51},"Roadmap","/roadmap","heroicons:map",{"_path":35,"_dir":53,"_draft":54,"_partial":54,"_locale":55,"title":56,"description":57,"navigation":58,"body":59,"_type":592,"_id":593,"_source":594,"_file":595,"_extension":596},"services",false,"","serverServiceRole","Make requests with super admin rights to the Supabase API with the serverSupabaseServiceRole service",{"title":34},{"type":60,"children":61,"toc":590},"root",[62,87,101,121,153,170,474,479,584],{"type":63,"tag":64,"props":65,"children":68},"element","callout",{"color":66,"icon":67},"amber","i-heroicons-exclamation-triangle-20-solid",[69],{"type":63,"tag":70,"props":71,"children":72},"p",{},[73,76,85],{"type":74,"value":75},"text","This section assumes you're familiar with ",{"type":63,"tag":77,"props":78,"children":82},"a",{"href":79,"rel":80},"https://v3.nuxtjs.org/guide/concepts/server-engine",[81],"nofollow",[83],{"type":74,"value":84},"Nitro",{"type":74,"value":86},", the server engine powered by Nuxt.",{"type":63,"tag":70,"props":88,"children":89},{},[90,92,99],{"type":74,"value":91},"This function is designed to work only in ",{"type":63,"tag":77,"props":93,"children":96},{"href":94,"rel":95},"https://nuxt.com/docs/guide/directory-structure/server#server-routes",[81],[97],{"type":74,"value":98},"server routes",{"type":74,"value":100},", there is no vue composable equivalent.",{"type":63,"tag":70,"props":102,"children":103},{},[104,106,110,112,119],{"type":74,"value":105},"It works similary as the ",{"type":63,"tag":77,"props":107,"children":108},{"href":32},[109],{"type":74,"value":31},{"type":74,"value":111}," but it provides a client with super admin rights that can bypass your ",{"type":63,"tag":77,"props":113,"children":116},{"href":114,"rel":115},"https://supabase.com/docs/guides/auth/row-level-security",[81],[117],{"type":74,"value":118},"Row Level Security",{"type":74,"value":120},".",{"type":63,"tag":122,"props":123,"children":124},"blockquote",{},[125],{"type":63,"tag":70,"props":126,"children":127},{},[128,130,136,138,143,145,152],{"type":74,"value":129},"The client is initialized with the ",{"type":63,"tag":131,"props":132,"children":133},"code",{"className":55},[134],{"type":74,"value":135},"SUPABASE_SERVICE_KEY",{"type":74,"value":137}," you must have in your ",{"type":63,"tag":131,"props":139,"children":140},{"className":55},[141],{"type":74,"value":142},".env",{"type":74,"value":144}," file. Checkout the doc if you want to know more about ",{"type":63,"tag":77,"props":146,"children":149},{"href":147,"rel":148},"https://supabase.com/docs/learn/auth-deep-dive/auth-deep-dive-jwts#jwts-in-supabase",[81],[150],{"type":74,"value":151},"Supabase keys",{"type":74,"value":120},{"type":63,"tag":70,"props":154,"children":155},{},[156,158,162,164,169],{"type":74,"value":157},"Define your server route and just import the ",{"type":63,"tag":131,"props":159,"children":160},{"className":55},[161],{"type":74,"value":34},{"type":74,"value":163}," from ",{"type":63,"tag":131,"props":165,"children":166},{"className":55},[167],{"type":74,"value":168},"#supabase/server",{"type":74,"value":120},{"type":63,"tag":171,"props":172,"children":177},"pre",{"className":173,"code":174,"filename":175,"language":176,"meta":55,"style":55},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","import { serverSupabaseServiceRole } from '#supabase/server'\n\nexport default eventHandler(async (event) => {\n const client = serverSupabaseServiceRole(event)\n\n const { data } = await client.from('rls-protected-table').select()\n\n return { sensitiveData: data }\n})\n","server/api/bypass-rls.ts","ts",[178],{"type":63,"tag":131,"props":179,"children":180},{"__ignoreMap":55},[181,230,240,297,334,342,421,429,461],{"type":63,"tag":182,"props":183,"children":186},"span",{"class":184,"line":185},"line",1,[187,193,199,205,210,215,220,225],{"type":63,"tag":182,"props":188,"children":190},{"style":189},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic",[191],{"type":74,"value":192},"import",{"type":63,"tag":182,"props":194,"children":196},{"style":195},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF",[197],{"type":74,"value":198}," {",{"type":63,"tag":182,"props":200,"children":202},{"style":201},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8",[203],{"type":74,"value":204}," serverSupabaseServiceRole",{"type":63,"tag":182,"props":206,"children":207},{"style":195},[208],{"type":74,"value":209}," }",{"type":63,"tag":182,"props":211,"children":212},{"style":189},[213],{"type":74,"value":214}," from",{"type":63,"tag":182,"props":216,"children":217},{"style":195},[218],{"type":74,"value":219}," '",{"type":63,"tag":182,"props":221,"children":223},{"style":222},"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D",[224],{"type":74,"value":168},{"type":63,"tag":182,"props":226,"children":227},{"style":195},[228],{"type":74,"value":229},"'\n",{"type":63,"tag":182,"props":231,"children":233},{"class":184,"line":232},2,[234],{"type":63,"tag":182,"props":235,"children":237},{"emptyLinePlaceholder":236},true,[238],{"type":74,"value":239},"\n",{"type":63,"tag":182,"props":241,"children":243},{"class":184,"line":242},3,[244,249,254,260,265,271,276,282,287,292],{"type":63,"tag":182,"props":245,"children":246},{"style":189},[247],{"type":74,"value":248},"export",{"type":63,"tag":182,"props":250,"children":251},{"style":189},[252],{"type":74,"value":253}," default",{"type":63,"tag":182,"props":255,"children":257},{"style":256},"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF",[258],{"type":74,"value":259}," eventHandler",{"type":63,"tag":182,"props":261,"children":262},{"style":201},[263],{"type":74,"value":264},"(",{"type":63,"tag":182,"props":266,"children":268},{"style":267},"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA",[269],{"type":74,"value":270},"async",{"type":63,"tag":182,"props":272,"children":273},{"style":195},[274],{"type":74,"value":275}," (",{"type":63,"tag":182,"props":277,"children":279},{"style":278},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic",[280],{"type":74,"value":281},"event",{"type":63,"tag":182,"props":283,"children":284},{"style":195},[285],{"type":74,"value":286},")",{"type":63,"tag":182,"props":288,"children":289},{"style":267},[290],{"type":74,"value":291}," =>",{"type":63,"tag":182,"props":293,"children":294},{"style":195},[295],{"type":74,"value":296}," {\n",{"type":63,"tag":182,"props":298,"children":300},{"class":184,"line":299},4,[301,306,311,316,320,325,329],{"type":63,"tag":182,"props":302,"children":303},{"style":267},[304],{"type":74,"value":305}," const",{"type":63,"tag":182,"props":307,"children":308},{"style":201},[309],{"type":74,"value":310}," client",{"type":63,"tag":182,"props":312,"children":313},{"style":195},[314],{"type":74,"value":315}," =",{"type":63,"tag":182,"props":317,"children":318},{"style":256},[319],{"type":74,"value":204},{"type":63,"tag":182,"props":321,"children":323},{"style":322},"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178",[324],{"type":74,"value":264},{"type":63,"tag":182,"props":326,"children":327},{"style":201},[328],{"type":74,"value":281},{"type":63,"tag":182,"props":330,"children":331},{"style":322},[332],{"type":74,"value":333},")\n",{"type":63,"tag":182,"props":335,"children":337},{"class":184,"line":336},5,[338],{"type":63,"tag":182,"props":339,"children":340},{"emptyLinePlaceholder":236},[341],{"type":74,"value":239},{"type":63,"tag":182,"props":343,"children":345},{"class":184,"line":344},6,[346,350,354,359,363,367,372,376,380,385,389,394,399,403,407,411,416],{"type":63,"tag":182,"props":347,"children":348},{"style":267},[349],{"type":74,"value":305},{"type":63,"tag":182,"props":351,"children":352},{"style":195},[353],{"type":74,"value":198},{"type":63,"tag":182,"props":355,"children":356},{"style":201},[357],{"type":74,"value":358}," data",{"type":63,"tag":182,"props":360,"children":361},{"style":195},[362],{"type":74,"value":209},{"type":63,"tag":182,"props":364,"children":365},{"style":195},[366],{"type":74,"value":315},{"type":63,"tag":182,"props":368,"children":369},{"style":189},[370],{"type":74,"value":371}," await",{"type":63,"tag":182,"props":373,"children":374},{"style":201},[375],{"type":74,"value":310},{"type":63,"tag":182,"props":377,"children":378},{"style":195},[379],{"type":74,"value":120},{"type":63,"tag":182,"props":381,"children":382},{"style":256},[383],{"type":74,"value":384},"from",{"type":63,"tag":182,"props":386,"children":387},{"style":322},[388],{"type":74,"value":264},{"type":63,"tag":182,"props":390,"children":391},{"style":195},[392],{"type":74,"value":393},"'",{"type":63,"tag":182,"props":395,"children":396},{"style":222},[397],{"type":74,"value":398},"rls-protected-table",{"type":63,"tag":182,"props":400,"children":401},{"style":195},[402],{"type":74,"value":393},{"type":63,"tag":182,"props":404,"children":405},{"style":322},[406],{"type":74,"value":286},{"type":63,"tag":182,"props":408,"children":409},{"style":195},[410],{"type":74,"value":120},{"type":63,"tag":182,"props":412,"children":413},{"style":256},[414],{"type":74,"value":415},"select",{"type":63,"tag":182,"props":417,"children":418},{"style":322},[419],{"type":74,"value":420},"()\n",{"type":63,"tag":182,"props":422,"children":424},{"class":184,"line":423},7,[425],{"type":63,"tag":182,"props":426,"children":427},{"emptyLinePlaceholder":236},[428],{"type":74,"value":239},{"type":63,"tag":182,"props":430,"children":432},{"class":184,"line":431},8,[433,438,442,447,452,456],{"type":63,"tag":182,"props":434,"children":435},{"style":189},[436],{"type":74,"value":437}," return",{"type":63,"tag":182,"props":439,"children":440},{"style":195},[441],{"type":74,"value":198},{"type":63,"tag":182,"props":443,"children":444},{"style":322},[445],{"type":74,"value":446}," sensitiveData",{"type":63,"tag":182,"props":448,"children":449},{"style":195},[450],{"type":74,"value":451},":",{"type":63,"tag":182,"props":453,"children":454},{"style":201},[455],{"type":74,"value":358},{"type":63,"tag":182,"props":457,"children":458},{"style":195},[459],{"type":74,"value":460}," }\n",{"type":63,"tag":182,"props":462,"children":464},{"class":184,"line":463},9,[465,470],{"type":63,"tag":182,"props":466,"children":467},{"style":195},[468],{"type":74,"value":469},"}",{"type":63,"tag":182,"props":471,"children":472},{"style":201},[473],{"type":74,"value":333},{"type":63,"tag":70,"props":475,"children":476},{},[477],{"type":74,"value":478},"Then call your API route from any vue file:",{"type":63,"tag":171,"props":480,"children":483},{"className":173,"code":481,"filename":482,"language":176,"meta":55,"style":55},"const fetchSensitiveData = async () => {\n const { sensitiveData } = await useFetch('/api/bypass-rls')\n}\n","pages/index.vue",[484],{"type":63,"tag":131,"props":485,"children":486},{"__ignoreMap":55},[487,523,576],{"type":63,"tag":182,"props":488,"children":489},{"class":184,"line":185},[490,495,500,505,510,515,519],{"type":63,"tag":182,"props":491,"children":492},{"style":267},[493],{"type":74,"value":494},"const",{"type":63,"tag":182,"props":496,"children":497},{"style":201},[498],{"type":74,"value":499}," fetchSensitiveData ",{"type":63,"tag":182,"props":501,"children":502},{"style":195},[503],{"type":74,"value":504},"=",{"type":63,"tag":182,"props":506,"children":507},{"style":267},[508],{"type":74,"value":509}," async",{"type":63,"tag":182,"props":511,"children":512},{"style":195},[513],{"type":74,"value":514}," ()",{"type":63,"tag":182,"props":516,"children":517},{"style":267},[518],{"type":74,"value":291},{"type":63,"tag":182,"props":520,"children":521},{"style":195},[522],{"type":74,"value":296},{"type":63,"tag":182,"props":524,"children":525},{"class":184,"line":232},[526,530,534,538,542,546,550,555,559,563,568,572],{"type":63,"tag":182,"props":527,"children":528},{"style":267},[529],{"type":74,"value":305},{"type":63,"tag":182,"props":531,"children":532},{"style":195},[533],{"type":74,"value":198},{"type":63,"tag":182,"props":535,"children":536},{"style":201},[537],{"type":74,"value":446},{"type":63,"tag":182,"props":539,"children":540},{"style":195},[541],{"type":74,"value":209},{"type":63,"tag":182,"props":543,"children":544},{"style":195},[545],{"type":74,"value":315},{"type":63,"tag":182,"props":547,"children":548},{"style":189},[549],{"type":74,"value":371},{"type":63,"tag":182,"props":551,"children":552},{"style":256},[553],{"type":74,"value":554}," useFetch",{"type":63,"tag":182,"props":556,"children":557},{"style":322},[558],{"type":74,"value":264},{"type":63,"tag":182,"props":560,"children":561},{"style":195},[562],{"type":74,"value":393},{"type":63,"tag":182,"props":564,"children":565},{"style":222},[566],{"type":74,"value":567},"/api/bypass-rls",{"type":63,"tag":182,"props":569,"children":570},{"style":195},[571],{"type":74,"value":393},{"type":63,"tag":182,"props":573,"children":574},{"style":322},[575],{"type":74,"value":333},{"type":63,"tag":182,"props":577,"children":578},{"class":184,"line":242},[579],{"type":63,"tag":182,"props":580,"children":581},{"style":195},[582],{"type":74,"value":583},"}\n",{"type":63,"tag":585,"props":586,"children":587},"style",{},[588],{"type":74,"value":589},"html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":55,"searchDepth":232,"depth":232,"links":591},[],"markdown","content:4.usage:services:2.serverSupabaseServiceRole.md","content","4.usage/services/2.serverSupabaseServiceRole.md","md",[598,600],{"_path":32,"title":31,"description":599},"Make requests to the Supabase API on server side with the serverSupabaseClient service",{"_path":38,"title":37,"description":601},"Get your Supabase user from serverside with the serverSupabaseUser service",1703671431796] \ No newline at end of file +[{"data":1,"prerenderedAt":602},["Reactive",2],{"navigation":3,"/usage/services/serversupabaseservicerole":52,"/usage/services/serversupabaseservicerole-surround":597},[4,8,12,40,44,48],{"title":5,"_path":6,"icon":7},"Get Started","/get-started","heroicons:rocket-launch",{"title":9,"_path":10,"icon":11},"Authentication","/authentication","heroicons:lock-closed",{"title":13,"_path":14,"children":15,"icon":39},"Usage","/usage",[16,26],{"title":17,"_path":18,"children":19},"Vue composables","/usage/composables",[20,23],{"title":21,"_path":22},"useSupabaseClient","/usage/composables/usesupabaseclient",{"title":24,"_path":25},"useSupabaseUser","/usage/composables/usesupabaseuser",{"title":27,"_path":28,"children":29},"Server services","/usage/services",[30,33,36],{"title":31,"_path":32},"serverSupabaseClient","/usage/services/serversupabaseclient",{"title":34,"_path":35},"serverSupabaseServiceRole","/usage/services/serversupabaseservicerole",{"title":37,"_path":38},"serverSupabaseUser","/usage/services/serversupabaseuser","heroicons:book-open",{"title":41,"_path":42,"icon":43},"Demo","/demo","heroicons:computer-desktop-20-solid",{"title":45,"_path":46,"icon":47},"Changelog","/changelog","heroicons:bookmark",{"title":49,"_path":50,"icon":51},"Roadmap","/roadmap","heroicons:map",{"_path":35,"_dir":53,"_draft":54,"_partial":54,"_locale":55,"title":56,"description":57,"navigation":58,"body":59,"_type":592,"_id":593,"_source":594,"_file":595,"_extension":596},"services",false,"","serverServiceRole","Make requests with super admin rights to the Supabase API with the serverSupabaseServiceRole service",{"title":34},{"type":60,"children":61,"toc":590},"root",[62,87,101,121,153,170,474,479,584],{"type":63,"tag":64,"props":65,"children":68},"element","callout",{"color":66,"icon":67},"amber","i-heroicons-exclamation-triangle-20-solid",[69],{"type":63,"tag":70,"props":71,"children":72},"p",{},[73,76,85],{"type":74,"value":75},"text","This section assumes you're familiar with ",{"type":63,"tag":77,"props":78,"children":82},"a",{"href":79,"rel":80},"https://v3.nuxtjs.org/guide/concepts/server-engine",[81],"nofollow",[83],{"type":74,"value":84},"Nitro",{"type":74,"value":86},", the server engine powered by Nuxt.",{"type":63,"tag":70,"props":88,"children":89},{},[90,92,99],{"type":74,"value":91},"This function is designed to work only in ",{"type":63,"tag":77,"props":93,"children":96},{"href":94,"rel":95},"https://nuxt.com/docs/guide/directory-structure/server#server-routes",[81],[97],{"type":74,"value":98},"server routes",{"type":74,"value":100},", there is no vue composable equivalent.",{"type":63,"tag":70,"props":102,"children":103},{},[104,106,110,112,119],{"type":74,"value":105},"It works similary as the ",{"type":63,"tag":77,"props":107,"children":108},{"href":32},[109],{"type":74,"value":31},{"type":74,"value":111}," but it provides a client with super admin rights that can bypass your ",{"type":63,"tag":77,"props":113,"children":116},{"href":114,"rel":115},"https://supabase.com/docs/guides/auth/row-level-security",[81],[117],{"type":74,"value":118},"Row Level Security",{"type":74,"value":120},".",{"type":63,"tag":122,"props":123,"children":124},"blockquote",{},[125],{"type":63,"tag":70,"props":126,"children":127},{},[128,130,136,138,143,145,152],{"type":74,"value":129},"The client is initialized with the ",{"type":63,"tag":131,"props":132,"children":133},"code",{"className":55},[134],{"type":74,"value":135},"SUPABASE_SERVICE_KEY",{"type":74,"value":137}," you must have in your ",{"type":63,"tag":131,"props":139,"children":140},{"className":55},[141],{"type":74,"value":142},".env",{"type":74,"value":144}," file. Checkout the doc if you want to know more about ",{"type":63,"tag":77,"props":146,"children":149},{"href":147,"rel":148},"https://supabase.com/docs/learn/auth-deep-dive/auth-deep-dive-jwts#jwts-in-supabase",[81],[150],{"type":74,"value":151},"Supabase keys",{"type":74,"value":120},{"type":63,"tag":70,"props":154,"children":155},{},[156,158,162,164,169],{"type":74,"value":157},"Define your server route and just import the ",{"type":63,"tag":131,"props":159,"children":160},{"className":55},[161],{"type":74,"value":34},{"type":74,"value":163}," from ",{"type":63,"tag":131,"props":165,"children":166},{"className":55},[167],{"type":74,"value":168},"#supabase/server",{"type":74,"value":120},{"type":63,"tag":171,"props":172,"children":177},"pre",{"className":173,"code":174,"filename":175,"language":176,"meta":55,"style":55},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","import { serverSupabaseServiceRole } from '#supabase/server'\n\nexport default eventHandler(async (event) => {\n const client = serverSupabaseServiceRole(event)\n\n const { data } = await client.from('rls-protected-table').select()\n\n return { sensitiveData: data }\n})\n","server/api/bypass-rls.ts","ts",[178],{"type":63,"tag":131,"props":179,"children":180},{"__ignoreMap":55},[181,230,240,297,334,342,421,429,461],{"type":63,"tag":182,"props":183,"children":186},"span",{"class":184,"line":185},"line",1,[187,193,199,205,210,215,220,225],{"type":63,"tag":182,"props":188,"children":190},{"style":189},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic",[191],{"type":74,"value":192},"import",{"type":63,"tag":182,"props":194,"children":196},{"style":195},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF",[197],{"type":74,"value":198}," {",{"type":63,"tag":182,"props":200,"children":202},{"style":201},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8",[203],{"type":74,"value":204}," serverSupabaseServiceRole",{"type":63,"tag":182,"props":206,"children":207},{"style":195},[208],{"type":74,"value":209}," }",{"type":63,"tag":182,"props":211,"children":212},{"style":189},[213],{"type":74,"value":214}," from",{"type":63,"tag":182,"props":216,"children":217},{"style":195},[218],{"type":74,"value":219}," '",{"type":63,"tag":182,"props":221,"children":223},{"style":222},"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D",[224],{"type":74,"value":168},{"type":63,"tag":182,"props":226,"children":227},{"style":195},[228],{"type":74,"value":229},"'\n",{"type":63,"tag":182,"props":231,"children":233},{"class":184,"line":232},2,[234],{"type":63,"tag":182,"props":235,"children":237},{"emptyLinePlaceholder":236},true,[238],{"type":74,"value":239},"\n",{"type":63,"tag":182,"props":241,"children":243},{"class":184,"line":242},3,[244,249,254,260,265,271,276,282,287,292],{"type":63,"tag":182,"props":245,"children":246},{"style":189},[247],{"type":74,"value":248},"export",{"type":63,"tag":182,"props":250,"children":251},{"style":189},[252],{"type":74,"value":253}," default",{"type":63,"tag":182,"props":255,"children":257},{"style":256},"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF",[258],{"type":74,"value":259}," eventHandler",{"type":63,"tag":182,"props":261,"children":262},{"style":201},[263],{"type":74,"value":264},"(",{"type":63,"tag":182,"props":266,"children":268},{"style":267},"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA",[269],{"type":74,"value":270},"async",{"type":63,"tag":182,"props":272,"children":273},{"style":195},[274],{"type":74,"value":275}," (",{"type":63,"tag":182,"props":277,"children":279},{"style":278},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic",[280],{"type":74,"value":281},"event",{"type":63,"tag":182,"props":283,"children":284},{"style":195},[285],{"type":74,"value":286},")",{"type":63,"tag":182,"props":288,"children":289},{"style":267},[290],{"type":74,"value":291}," =>",{"type":63,"tag":182,"props":293,"children":294},{"style":195},[295],{"type":74,"value":296}," {\n",{"type":63,"tag":182,"props":298,"children":300},{"class":184,"line":299},4,[301,306,311,316,320,325,329],{"type":63,"tag":182,"props":302,"children":303},{"style":267},[304],{"type":74,"value":305}," const",{"type":63,"tag":182,"props":307,"children":308},{"style":201},[309],{"type":74,"value":310}," client",{"type":63,"tag":182,"props":312,"children":313},{"style":195},[314],{"type":74,"value":315}," =",{"type":63,"tag":182,"props":317,"children":318},{"style":256},[319],{"type":74,"value":204},{"type":63,"tag":182,"props":321,"children":323},{"style":322},"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178",[324],{"type":74,"value":264},{"type":63,"tag":182,"props":326,"children":327},{"style":201},[328],{"type":74,"value":281},{"type":63,"tag":182,"props":330,"children":331},{"style":322},[332],{"type":74,"value":333},")\n",{"type":63,"tag":182,"props":335,"children":337},{"class":184,"line":336},5,[338],{"type":63,"tag":182,"props":339,"children":340},{"emptyLinePlaceholder":236},[341],{"type":74,"value":239},{"type":63,"tag":182,"props":343,"children":345},{"class":184,"line":344},6,[346,350,354,359,363,367,372,376,380,385,389,394,399,403,407,411,416],{"type":63,"tag":182,"props":347,"children":348},{"style":267},[349],{"type":74,"value":305},{"type":63,"tag":182,"props":351,"children":352},{"style":195},[353],{"type":74,"value":198},{"type":63,"tag":182,"props":355,"children":356},{"style":201},[357],{"type":74,"value":358}," data",{"type":63,"tag":182,"props":360,"children":361},{"style":195},[362],{"type":74,"value":209},{"type":63,"tag":182,"props":364,"children":365},{"style":195},[366],{"type":74,"value":315},{"type":63,"tag":182,"props":368,"children":369},{"style":189},[370],{"type":74,"value":371}," await",{"type":63,"tag":182,"props":373,"children":374},{"style":201},[375],{"type":74,"value":310},{"type":63,"tag":182,"props":377,"children":378},{"style":195},[379],{"type":74,"value":120},{"type":63,"tag":182,"props":381,"children":382},{"style":256},[383],{"type":74,"value":384},"from",{"type":63,"tag":182,"props":386,"children":387},{"style":322},[388],{"type":74,"value":264},{"type":63,"tag":182,"props":390,"children":391},{"style":195},[392],{"type":74,"value":393},"'",{"type":63,"tag":182,"props":395,"children":396},{"style":222},[397],{"type":74,"value":398},"rls-protected-table",{"type":63,"tag":182,"props":400,"children":401},{"style":195},[402],{"type":74,"value":393},{"type":63,"tag":182,"props":404,"children":405},{"style":322},[406],{"type":74,"value":286},{"type":63,"tag":182,"props":408,"children":409},{"style":195},[410],{"type":74,"value":120},{"type":63,"tag":182,"props":412,"children":413},{"style":256},[414],{"type":74,"value":415},"select",{"type":63,"tag":182,"props":417,"children":418},{"style":322},[419],{"type":74,"value":420},"()\n",{"type":63,"tag":182,"props":422,"children":424},{"class":184,"line":423},7,[425],{"type":63,"tag":182,"props":426,"children":427},{"emptyLinePlaceholder":236},[428],{"type":74,"value":239},{"type":63,"tag":182,"props":430,"children":432},{"class":184,"line":431},8,[433,438,442,447,452,456],{"type":63,"tag":182,"props":434,"children":435},{"style":189},[436],{"type":74,"value":437}," return",{"type":63,"tag":182,"props":439,"children":440},{"style":195},[441],{"type":74,"value":198},{"type":63,"tag":182,"props":443,"children":444},{"style":322},[445],{"type":74,"value":446}," sensitiveData",{"type":63,"tag":182,"props":448,"children":449},{"style":195},[450],{"type":74,"value":451},":",{"type":63,"tag":182,"props":453,"children":454},{"style":201},[455],{"type":74,"value":358},{"type":63,"tag":182,"props":457,"children":458},{"style":195},[459],{"type":74,"value":460}," }\n",{"type":63,"tag":182,"props":462,"children":464},{"class":184,"line":463},9,[465,470],{"type":63,"tag":182,"props":466,"children":467},{"style":195},[468],{"type":74,"value":469},"}",{"type":63,"tag":182,"props":471,"children":472},{"style":201},[473],{"type":74,"value":333},{"type":63,"tag":70,"props":475,"children":476},{},[477],{"type":74,"value":478},"Then call your API route from any vue file:",{"type":63,"tag":171,"props":480,"children":483},{"className":173,"code":481,"filename":482,"language":176,"meta":55,"style":55},"const fetchSensitiveData = async () => {\n const { sensitiveData } = await useFetch('/api/bypass-rls')\n}\n","pages/index.vue",[484],{"type":63,"tag":131,"props":485,"children":486},{"__ignoreMap":55},[487,523,576],{"type":63,"tag":182,"props":488,"children":489},{"class":184,"line":185},[490,495,500,505,510,515,519],{"type":63,"tag":182,"props":491,"children":492},{"style":267},[493],{"type":74,"value":494},"const",{"type":63,"tag":182,"props":496,"children":497},{"style":201},[498],{"type":74,"value":499}," fetchSensitiveData ",{"type":63,"tag":182,"props":501,"children":502},{"style":195},[503],{"type":74,"value":504},"=",{"type":63,"tag":182,"props":506,"children":507},{"style":267},[508],{"type":74,"value":509}," async",{"type":63,"tag":182,"props":511,"children":512},{"style":195},[513],{"type":74,"value":514}," ()",{"type":63,"tag":182,"props":516,"children":517},{"style":267},[518],{"type":74,"value":291},{"type":63,"tag":182,"props":520,"children":521},{"style":195},[522],{"type":74,"value":296},{"type":63,"tag":182,"props":524,"children":525},{"class":184,"line":232},[526,530,534,538,542,546,550,555,559,563,568,572],{"type":63,"tag":182,"props":527,"children":528},{"style":267},[529],{"type":74,"value":305},{"type":63,"tag":182,"props":531,"children":532},{"style":195},[533],{"type":74,"value":198},{"type":63,"tag":182,"props":535,"children":536},{"style":201},[537],{"type":74,"value":446},{"type":63,"tag":182,"props":539,"children":540},{"style":195},[541],{"type":74,"value":209},{"type":63,"tag":182,"props":543,"children":544},{"style":195},[545],{"type":74,"value":315},{"type":63,"tag":182,"props":547,"children":548},{"style":189},[549],{"type":74,"value":371},{"type":63,"tag":182,"props":551,"children":552},{"style":256},[553],{"type":74,"value":554}," useFetch",{"type":63,"tag":182,"props":556,"children":557},{"style":322},[558],{"type":74,"value":264},{"type":63,"tag":182,"props":560,"children":561},{"style":195},[562],{"type":74,"value":393},{"type":63,"tag":182,"props":564,"children":565},{"style":222},[566],{"type":74,"value":567},"/api/bypass-rls",{"type":63,"tag":182,"props":569,"children":570},{"style":195},[571],{"type":74,"value":393},{"type":63,"tag":182,"props":573,"children":574},{"style":322},[575],{"type":74,"value":333},{"type":63,"tag":182,"props":577,"children":578},{"class":184,"line":242},[579],{"type":63,"tag":182,"props":580,"children":581},{"style":195},[582],{"type":74,"value":583},"}\n",{"type":63,"tag":585,"props":586,"children":587},"style",{},[588],{"type":74,"value":589},"html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":55,"searchDepth":232,"depth":232,"links":591},[],"markdown","content:4.usage:services:2.serverSupabaseServiceRole.md","content","4.usage/services/2.serverSupabaseServiceRole.md","md",[598,600],{"_path":32,"title":31,"description":599},"Make requests to the Supabase API on server side with the serverSupabaseClient service",{"_path":38,"title":37,"description":601},"Get your Supabase user from serverside with the serverSupabaseUser service",1703757838243] \ No newline at end of file diff --git a/usage/services/serversupabaseservicerole/index.html b/usage/services/serversupabaseservicerole/index.html index 4bcc11b0..228a8d71 100644 --- a/usage/services/serversupabaseservicerole/index.html +++ b/usage/services/serversupabaseservicerole/index.html @@ -69,40 +69,40 @@ - - - - - - - - - + + + + + + + + + - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + - - + + - -
mobile favicon
Services

serverServiceRole

Make requests with super admin rights to the Supabase API with the serverSupabaseServiceRole service

This section assumes you're familiar with Nitro, the server engine powered by Nuxt.

This function is designed to work only in server routes, there is no vue composable equivalent.

It works similary as the serverSupabaseClient but it provides a client with super admin rights that can bypass your Row Level Security.

The client is initialized with the SUPABASE_SERVICE_KEY you must have in your .env file. Checkout the doc if you want to know more about Supabase keys.

Define your server route and just import the serverSupabaseServiceRole from #supabase/server.

server/api/bypass-rls.ts
import { serverSupabaseServiceRole } from '#supabase/server'
 
@@ -117,6 +117,6 @@
   const { sensitiveData } = await useFetch('/api/bypass-rls')
 }
 

Made with Nuxt Studio
- - + + \ No newline at end of file diff --git a/usage/services/serversupabaseuser/_payload.json b/usage/services/serversupabaseuser/_payload.json index 152b871b..ce095b3d 100644 --- a/usage/services/serversupabaseuser/_payload.json +++ b/usage/services/serversupabaseuser/_payload.json @@ -1 +1 @@ -[{"data":1,"prerenderedAt":669},["Reactive",2],{"navigation":3,"/usage/services/serversupabaseuser":52,"/usage/services/serversupabaseuser-surround":663},[4,8,12,40,44,48],{"title":5,"_path":6,"icon":7},"Get Started","/get-started","heroicons:rocket-launch",{"title":9,"_path":10,"icon":11},"Authentication","/authentication","heroicons:lock-closed",{"title":13,"_path":14,"children":15,"icon":39},"Usage","/usage",[16,26],{"title":17,"_path":18,"children":19},"Vue composables","/usage/composables",[20,23],{"title":21,"_path":22},"useSupabaseClient","/usage/composables/usesupabaseclient",{"title":24,"_path":25},"useSupabaseUser","/usage/composables/usesupabaseuser",{"title":27,"_path":28,"children":29},"Server services","/usage/services",[30,33,36],{"title":31,"_path":32},"serverSupabaseClient","/usage/services/serversupabaseclient",{"title":34,"_path":35},"serverSupabaseServiceRole","/usage/services/serversupabaseservicerole",{"title":37,"_path":38},"serverSupabaseUser","/usage/services/serversupabaseuser","heroicons:book-open",{"title":41,"_path":42,"icon":43},"Demo","/demo","heroicons:computer-desktop-20-solid",{"title":45,"_path":46,"icon":47},"Changelog","/changelog","heroicons:bookmark",{"title":49,"_path":50,"icon":51},"Roadmap","/roadmap","heroicons:map",{"_path":38,"_dir":53,"_draft":54,"_partial":54,"_locale":55,"title":37,"description":56,"body":57,"_type":658,"_id":659,"_source":660,"_file":661,"_extension":662},"services",false,"","Get your Supabase user from serverside with the serverSupabaseUser service",{"type":58,"children":59,"toc":656},"root",[60,85,105,123,295,300,446,460,650],{"type":61,"tag":62,"props":63,"children":66},"element","callout",{"color":64,"icon":65},"amber","i-heroicons-exclamation-triangle-20-solid",[67],{"type":61,"tag":68,"props":69,"children":70},"p",{},[71,74,83],{"type":72,"value":73},"text","This section assumes you're familiar with ",{"type":61,"tag":75,"props":76,"children":80},"a",{"href":77,"rel":78},"https://v3.nuxtjs.org/guide/concepts/server-engine",[79],"nofollow",[81],{"type":72,"value":82},"Nitro",{"type":72,"value":84},", the server engine powered by Nuxt.",{"type":61,"tag":68,"props":86,"children":87},{},[88,90,94,96,103],{"type":72,"value":89},"This function is similar to the ",{"type":61,"tag":75,"props":91,"children":92},{"href":25},[93],{"type":72,"value":24},{"type":72,"value":95}," composable but is used in ",{"type":61,"tag":75,"props":97,"children":100},{"href":98,"rel":99},"https://nuxt.com/docs/guide/directory-structure/server#server-routes",[79],[101],{"type":72,"value":102},"server routes",{"type":72,"value":104},".",{"type":61,"tag":68,"props":106,"children":107},{},[108,110,115,117,122],{"type":72,"value":109},"Define your server route and import the ",{"type":61,"tag":111,"props":112,"children":113},"code",{"className":55},[114],{"type":72,"value":37},{"type":72,"value":116}," from ",{"type":61,"tag":111,"props":118,"children":119},{"className":55},[120],{"type":72,"value":121},"#supabase/server",{"type":72,"value":104},{"type":61,"tag":124,"props":125,"children":130},"pre",{"className":126,"code":127,"filename":128,"language":129,"meta":55,"style":55},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","import { serverSupabaseUser } from '#supabase/server'\n\nexport default defineEventHandler(async (event) => {\n return await serverSupabaseUser(event)\n})\n","server/api/me.ts","ts",[131],{"type":61,"tag":111,"props":132,"children":133},{"__ignoreMap":55},[134,183,193,250,282],{"type":61,"tag":135,"props":136,"children":139},"span",{"class":137,"line":138},"line",1,[140,146,152,158,163,168,173,178],{"type":61,"tag":135,"props":141,"children":143},{"style":142},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic",[144],{"type":72,"value":145},"import",{"type":61,"tag":135,"props":147,"children":149},{"style":148},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF",[150],{"type":72,"value":151}," {",{"type":61,"tag":135,"props":153,"children":155},{"style":154},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8",[156],{"type":72,"value":157}," serverSupabaseUser",{"type":61,"tag":135,"props":159,"children":160},{"style":148},[161],{"type":72,"value":162}," }",{"type":61,"tag":135,"props":164,"children":165},{"style":142},[166],{"type":72,"value":167}," from",{"type":61,"tag":135,"props":169,"children":170},{"style":148},[171],{"type":72,"value":172}," '",{"type":61,"tag":135,"props":174,"children":176},{"style":175},"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D",[177],{"type":72,"value":121},{"type":61,"tag":135,"props":179,"children":180},{"style":148},[181],{"type":72,"value":182},"'\n",{"type":61,"tag":135,"props":184,"children":186},{"class":137,"line":185},2,[187],{"type":61,"tag":135,"props":188,"children":190},{"emptyLinePlaceholder":189},true,[191],{"type":72,"value":192},"\n",{"type":61,"tag":135,"props":194,"children":196},{"class":137,"line":195},3,[197,202,207,213,218,224,229,235,240,245],{"type":61,"tag":135,"props":198,"children":199},{"style":142},[200],{"type":72,"value":201},"export",{"type":61,"tag":135,"props":203,"children":204},{"style":142},[205],{"type":72,"value":206}," default",{"type":61,"tag":135,"props":208,"children":210},{"style":209},"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF",[211],{"type":72,"value":212}," defineEventHandler",{"type":61,"tag":135,"props":214,"children":215},{"style":154},[216],{"type":72,"value":217},"(",{"type":61,"tag":135,"props":219,"children":221},{"style":220},"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA",[222],{"type":72,"value":223},"async",{"type":61,"tag":135,"props":225,"children":226},{"style":148},[227],{"type":72,"value":228}," (",{"type":61,"tag":135,"props":230,"children":232},{"style":231},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic",[233],{"type":72,"value":234},"event",{"type":61,"tag":135,"props":236,"children":237},{"style":148},[238],{"type":72,"value":239},")",{"type":61,"tag":135,"props":241,"children":242},{"style":220},[243],{"type":72,"value":244}," =>",{"type":61,"tag":135,"props":246,"children":247},{"style":148},[248],{"type":72,"value":249}," {\n",{"type":61,"tag":135,"props":251,"children":253},{"class":137,"line":252},4,[254,259,264,268,273,277],{"type":61,"tag":135,"props":255,"children":256},{"style":142},[257],{"type":72,"value":258}," return",{"type":61,"tag":135,"props":260,"children":261},{"style":142},[262],{"type":72,"value":263}," await",{"type":61,"tag":135,"props":265,"children":266},{"style":209},[267],{"type":72,"value":157},{"type":61,"tag":135,"props":269,"children":271},{"style":270},"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178",[272],{"type":72,"value":217},{"type":61,"tag":135,"props":274,"children":275},{"style":154},[276],{"type":72,"value":234},{"type":61,"tag":135,"props":278,"children":279},{"style":270},[280],{"type":72,"value":281},")\n",{"type":61,"tag":135,"props":283,"children":285},{"class":137,"line":284},5,[286,291],{"type":61,"tag":135,"props":287,"children":288},{"style":148},[289],{"type":72,"value":290},"}",{"type":61,"tag":135,"props":292,"children":293},{"style":154},[294],{"type":72,"value":281},{"type":61,"tag":68,"props":296,"children":297},{},[298],{"type":72,"value":299},"Then call your api route from any vue file:",{"type":61,"tag":124,"props":301,"children":304},{"className":126,"code":302,"filename":303,"language":129,"meta":55,"style":55},"const user = ref(null)\n\nconst fetchMe = async () => {\n user.value = await $fetch('/api/me')\n}\n","pages/index.vue",[305],{"type":61,"tag":111,"props":306,"children":307},{"__ignoreMap":55},[308,344,351,385,438],{"type":61,"tag":135,"props":309,"children":310},{"class":137,"line":138},[311,316,321,326,331,335,340],{"type":61,"tag":135,"props":312,"children":313},{"style":220},[314],{"type":72,"value":315},"const",{"type":61,"tag":135,"props":317,"children":318},{"style":154},[319],{"type":72,"value":320}," user ",{"type":61,"tag":135,"props":322,"children":323},{"style":148},[324],{"type":72,"value":325},"=",{"type":61,"tag":135,"props":327,"children":328},{"style":209},[329],{"type":72,"value":330}," ref",{"type":61,"tag":135,"props":332,"children":333},{"style":154},[334],{"type":72,"value":217},{"type":61,"tag":135,"props":336,"children":337},{"style":148},[338],{"type":72,"value":339},"null",{"type":61,"tag":135,"props":341,"children":342},{"style":154},[343],{"type":72,"value":281},{"type":61,"tag":135,"props":345,"children":346},{"class":137,"line":185},[347],{"type":61,"tag":135,"props":348,"children":349},{"emptyLinePlaceholder":189},[350],{"type":72,"value":192},{"type":61,"tag":135,"props":352,"children":353},{"class":137,"line":195},[354,358,363,367,372,377,381],{"type":61,"tag":135,"props":355,"children":356},{"style":220},[357],{"type":72,"value":315},{"type":61,"tag":135,"props":359,"children":360},{"style":154},[361],{"type":72,"value":362}," fetchMe ",{"type":61,"tag":135,"props":364,"children":365},{"style":148},[366],{"type":72,"value":325},{"type":61,"tag":135,"props":368,"children":369},{"style":220},[370],{"type":72,"value":371}," async",{"type":61,"tag":135,"props":373,"children":374},{"style":148},[375],{"type":72,"value":376}," ()",{"type":61,"tag":135,"props":378,"children":379},{"style":220},[380],{"type":72,"value":244},{"type":61,"tag":135,"props":382,"children":383},{"style":148},[384],{"type":72,"value":249},{"type":61,"tag":135,"props":386,"children":387},{"class":137,"line":252},[388,393,397,402,407,411,416,420,425,430,434],{"type":61,"tag":135,"props":389,"children":390},{"style":154},[391],{"type":72,"value":392}," user",{"type":61,"tag":135,"props":394,"children":395},{"style":148},[396],{"type":72,"value":104},{"type":61,"tag":135,"props":398,"children":399},{"style":154},[400],{"type":72,"value":401},"value",{"type":61,"tag":135,"props":403,"children":404},{"style":148},[405],{"type":72,"value":406}," =",{"type":61,"tag":135,"props":408,"children":409},{"style":142},[410],{"type":72,"value":263},{"type":61,"tag":135,"props":412,"children":413},{"style":209},[414],{"type":72,"value":415}," $fetch",{"type":61,"tag":135,"props":417,"children":418},{"style":270},[419],{"type":72,"value":217},{"type":61,"tag":135,"props":421,"children":422},{"style":148},[423],{"type":72,"value":424},"'",{"type":61,"tag":135,"props":426,"children":427},{"style":175},[428],{"type":72,"value":429},"/api/me",{"type":61,"tag":135,"props":431,"children":432},{"style":148},[433],{"type":72,"value":424},{"type":61,"tag":135,"props":435,"children":436},{"style":270},[437],{"type":72,"value":281},{"type":61,"tag":135,"props":439,"children":440},{"class":137,"line":284},[441],{"type":61,"tag":135,"props":442,"children":443},{"style":148},[444],{"type":72,"value":445},"}\n",{"type":61,"tag":68,"props":447,"children":448},{},[449,451,458],{"type":72,"value":450},"Be careful, if you want to call this route on SSR, please read this ",{"type":61,"tag":75,"props":452,"children":455},{"href":453,"rel":454},"https://nuxt.com/docs/getting-started/data-fetching#isomorphic-fetch-and-fetch",[79],[456],{"type":72,"value":457},"section",{"type":72,"value":459},", you must send your browser cookies including your supabase token.",{"type":61,"tag":124,"props":461,"children":463},{"className":126,"code":462,"filename":303,"language":129,"meta":55,"style":55},"const user = ref(null)\n\nconst { data } = await useFetch('/api/me', {\n headers: useRequestHeaders(['cookie'])\n})\n\nuser.value = data\n",[464],{"type":61,"tag":111,"props":465,"children":466},{"__ignoreMap":55},[467,498,505,563,604,615,623],{"type":61,"tag":135,"props":468,"children":469},{"class":137,"line":138},[470,474,478,482,486,490,494],{"type":61,"tag":135,"props":471,"children":472},{"style":220},[473],{"type":72,"value":315},{"type":61,"tag":135,"props":475,"children":476},{"style":154},[477],{"type":72,"value":320},{"type":61,"tag":135,"props":479,"children":480},{"style":148},[481],{"type":72,"value":325},{"type":61,"tag":135,"props":483,"children":484},{"style":209},[485],{"type":72,"value":330},{"type":61,"tag":135,"props":487,"children":488},{"style":154},[489],{"type":72,"value":217},{"type":61,"tag":135,"props":491,"children":492},{"style":148},[493],{"type":72,"value":339},{"type":61,"tag":135,"props":495,"children":496},{"style":154},[497],{"type":72,"value":281},{"type":61,"tag":135,"props":499,"children":500},{"class":137,"line":185},[501],{"type":61,"tag":135,"props":502,"children":503},{"emptyLinePlaceholder":189},[504],{"type":72,"value":192},{"type":61,"tag":135,"props":506,"children":507},{"class":137,"line":195},[508,512,516,521,525,529,533,538,542,546,550,554,559],{"type":61,"tag":135,"props":509,"children":510},{"style":220},[511],{"type":72,"value":315},{"type":61,"tag":135,"props":513,"children":514},{"style":148},[515],{"type":72,"value":151},{"type":61,"tag":135,"props":517,"children":518},{"style":154},[519],{"type":72,"value":520}," data ",{"type":61,"tag":135,"props":522,"children":523},{"style":148},[524],{"type":72,"value":290},{"type":61,"tag":135,"props":526,"children":527},{"style":148},[528],{"type":72,"value":406},{"type":61,"tag":135,"props":530,"children":531},{"style":142},[532],{"type":72,"value":263},{"type":61,"tag":135,"props":534,"children":535},{"style":209},[536],{"type":72,"value":537}," useFetch",{"type":61,"tag":135,"props":539,"children":540},{"style":154},[541],{"type":72,"value":217},{"type":61,"tag":135,"props":543,"children":544},{"style":148},[545],{"type":72,"value":424},{"type":61,"tag":135,"props":547,"children":548},{"style":175},[549],{"type":72,"value":429},{"type":61,"tag":135,"props":551,"children":552},{"style":148},[553],{"type":72,"value":424},{"type":61,"tag":135,"props":555,"children":556},{"style":148},[557],{"type":72,"value":558},",",{"type":61,"tag":135,"props":560,"children":561},{"style":148},[562],{"type":72,"value":249},{"type":61,"tag":135,"props":564,"children":565},{"class":137,"line":252},[566,571,576,581,586,590,595,599],{"type":61,"tag":135,"props":567,"children":568},{"style":270},[569],{"type":72,"value":570}," headers",{"type":61,"tag":135,"props":572,"children":573},{"style":148},[574],{"type":72,"value":575},":",{"type":61,"tag":135,"props":577,"children":578},{"style":209},[579],{"type":72,"value":580}," useRequestHeaders",{"type":61,"tag":135,"props":582,"children":583},{"style":154},[584],{"type":72,"value":585},"([",{"type":61,"tag":135,"props":587,"children":588},{"style":148},[589],{"type":72,"value":424},{"type":61,"tag":135,"props":591,"children":592},{"style":175},[593],{"type":72,"value":594},"cookie",{"type":61,"tag":135,"props":596,"children":597},{"style":148},[598],{"type":72,"value":424},{"type":61,"tag":135,"props":600,"children":601},{"style":154},[602],{"type":72,"value":603},"])\n",{"type":61,"tag":135,"props":605,"children":606},{"class":137,"line":284},[607,611],{"type":61,"tag":135,"props":608,"children":609},{"style":148},[610],{"type":72,"value":290},{"type":61,"tag":135,"props":612,"children":613},{"style":154},[614],{"type":72,"value":281},{"type":61,"tag":135,"props":616,"children":618},{"class":137,"line":617},6,[619],{"type":61,"tag":135,"props":620,"children":621},{"emptyLinePlaceholder":189},[622],{"type":72,"value":192},{"type":61,"tag":135,"props":624,"children":626},{"class":137,"line":625},7,[627,632,636,641,645],{"type":61,"tag":135,"props":628,"children":629},{"style":154},[630],{"type":72,"value":631},"user",{"type":61,"tag":135,"props":633,"children":634},{"style":148},[635],{"type":72,"value":104},{"type":61,"tag":135,"props":637,"children":638},{"style":154},[639],{"type":72,"value":640},"value ",{"type":61,"tag":135,"props":642,"children":643},{"style":148},[644],{"type":72,"value":325},{"type":61,"tag":135,"props":646,"children":647},{"style":154},[648],{"type":72,"value":649}," data\n",{"type":61,"tag":651,"props":652,"children":653},"style",{},[654],{"type":72,"value":655},"html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":55,"searchDepth":185,"depth":185,"links":657},[],"markdown","content:4.usage:services:3.serverSupabaseUser.md","content","4.usage/services/3.serverSupabaseUser.md","md",[664,667],{"_path":35,"title":665,"description":666},"serverServiceRole","Make requests with super admin rights to the Supabase API with the serverSupabaseServiceRole service",{"_path":42,"title":41,"description":668},"Demonstration of using Supabase with Nuxt.",1703671431798] \ No newline at end of file +[{"data":1,"prerenderedAt":669},["Reactive",2],{"navigation":3,"/usage/services/serversupabaseuser":52,"/usage/services/serversupabaseuser-surround":663},[4,8,12,40,44,48],{"title":5,"_path":6,"icon":7},"Get Started","/get-started","heroicons:rocket-launch",{"title":9,"_path":10,"icon":11},"Authentication","/authentication","heroicons:lock-closed",{"title":13,"_path":14,"children":15,"icon":39},"Usage","/usage",[16,26],{"title":17,"_path":18,"children":19},"Vue composables","/usage/composables",[20,23],{"title":21,"_path":22},"useSupabaseClient","/usage/composables/usesupabaseclient",{"title":24,"_path":25},"useSupabaseUser","/usage/composables/usesupabaseuser",{"title":27,"_path":28,"children":29},"Server services","/usage/services",[30,33,36],{"title":31,"_path":32},"serverSupabaseClient","/usage/services/serversupabaseclient",{"title":34,"_path":35},"serverSupabaseServiceRole","/usage/services/serversupabaseservicerole",{"title":37,"_path":38},"serverSupabaseUser","/usage/services/serversupabaseuser","heroicons:book-open",{"title":41,"_path":42,"icon":43},"Demo","/demo","heroicons:computer-desktop-20-solid",{"title":45,"_path":46,"icon":47},"Changelog","/changelog","heroicons:bookmark",{"title":49,"_path":50,"icon":51},"Roadmap","/roadmap","heroicons:map",{"_path":38,"_dir":53,"_draft":54,"_partial":54,"_locale":55,"title":37,"description":56,"body":57,"_type":658,"_id":659,"_source":660,"_file":661,"_extension":662},"services",false,"","Get your Supabase user from serverside with the serverSupabaseUser service",{"type":58,"children":59,"toc":656},"root",[60,85,105,123,295,300,446,460,650],{"type":61,"tag":62,"props":63,"children":66},"element","callout",{"color":64,"icon":65},"amber","i-heroicons-exclamation-triangle-20-solid",[67],{"type":61,"tag":68,"props":69,"children":70},"p",{},[71,74,83],{"type":72,"value":73},"text","This section assumes you're familiar with ",{"type":61,"tag":75,"props":76,"children":80},"a",{"href":77,"rel":78},"https://v3.nuxtjs.org/guide/concepts/server-engine",[79],"nofollow",[81],{"type":72,"value":82},"Nitro",{"type":72,"value":84},", the server engine powered by Nuxt.",{"type":61,"tag":68,"props":86,"children":87},{},[88,90,94,96,103],{"type":72,"value":89},"This function is similar to the ",{"type":61,"tag":75,"props":91,"children":92},{"href":25},[93],{"type":72,"value":24},{"type":72,"value":95}," composable but is used in ",{"type":61,"tag":75,"props":97,"children":100},{"href":98,"rel":99},"https://nuxt.com/docs/guide/directory-structure/server#server-routes",[79],[101],{"type":72,"value":102},"server routes",{"type":72,"value":104},".",{"type":61,"tag":68,"props":106,"children":107},{},[108,110,115,117,122],{"type":72,"value":109},"Define your server route and import the ",{"type":61,"tag":111,"props":112,"children":113},"code",{"className":55},[114],{"type":72,"value":37},{"type":72,"value":116}," from ",{"type":61,"tag":111,"props":118,"children":119},{"className":55},[120],{"type":72,"value":121},"#supabase/server",{"type":72,"value":104},{"type":61,"tag":124,"props":125,"children":130},"pre",{"className":126,"code":127,"filename":128,"language":129,"meta":55,"style":55},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","import { serverSupabaseUser } from '#supabase/server'\n\nexport default defineEventHandler(async (event) => {\n return await serverSupabaseUser(event)\n})\n","server/api/me.ts","ts",[131],{"type":61,"tag":111,"props":132,"children":133},{"__ignoreMap":55},[134,183,193,250,282],{"type":61,"tag":135,"props":136,"children":139},"span",{"class":137,"line":138},"line",1,[140,146,152,158,163,168,173,178],{"type":61,"tag":135,"props":141,"children":143},{"style":142},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic",[144],{"type":72,"value":145},"import",{"type":61,"tag":135,"props":147,"children":149},{"style":148},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF",[150],{"type":72,"value":151}," {",{"type":61,"tag":135,"props":153,"children":155},{"style":154},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8",[156],{"type":72,"value":157}," serverSupabaseUser",{"type":61,"tag":135,"props":159,"children":160},{"style":148},[161],{"type":72,"value":162}," }",{"type":61,"tag":135,"props":164,"children":165},{"style":142},[166],{"type":72,"value":167}," from",{"type":61,"tag":135,"props":169,"children":170},{"style":148},[171],{"type":72,"value":172}," '",{"type":61,"tag":135,"props":174,"children":176},{"style":175},"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D",[177],{"type":72,"value":121},{"type":61,"tag":135,"props":179,"children":180},{"style":148},[181],{"type":72,"value":182},"'\n",{"type":61,"tag":135,"props":184,"children":186},{"class":137,"line":185},2,[187],{"type":61,"tag":135,"props":188,"children":190},{"emptyLinePlaceholder":189},true,[191],{"type":72,"value":192},"\n",{"type":61,"tag":135,"props":194,"children":196},{"class":137,"line":195},3,[197,202,207,213,218,224,229,235,240,245],{"type":61,"tag":135,"props":198,"children":199},{"style":142},[200],{"type":72,"value":201},"export",{"type":61,"tag":135,"props":203,"children":204},{"style":142},[205],{"type":72,"value":206}," default",{"type":61,"tag":135,"props":208,"children":210},{"style":209},"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF",[211],{"type":72,"value":212}," defineEventHandler",{"type":61,"tag":135,"props":214,"children":215},{"style":154},[216],{"type":72,"value":217},"(",{"type":61,"tag":135,"props":219,"children":221},{"style":220},"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA",[222],{"type":72,"value":223},"async",{"type":61,"tag":135,"props":225,"children":226},{"style":148},[227],{"type":72,"value":228}," (",{"type":61,"tag":135,"props":230,"children":232},{"style":231},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic",[233],{"type":72,"value":234},"event",{"type":61,"tag":135,"props":236,"children":237},{"style":148},[238],{"type":72,"value":239},")",{"type":61,"tag":135,"props":241,"children":242},{"style":220},[243],{"type":72,"value":244}," =>",{"type":61,"tag":135,"props":246,"children":247},{"style":148},[248],{"type":72,"value":249}," {\n",{"type":61,"tag":135,"props":251,"children":253},{"class":137,"line":252},4,[254,259,264,268,273,277],{"type":61,"tag":135,"props":255,"children":256},{"style":142},[257],{"type":72,"value":258}," return",{"type":61,"tag":135,"props":260,"children":261},{"style":142},[262],{"type":72,"value":263}," await",{"type":61,"tag":135,"props":265,"children":266},{"style":209},[267],{"type":72,"value":157},{"type":61,"tag":135,"props":269,"children":271},{"style":270},"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178",[272],{"type":72,"value":217},{"type":61,"tag":135,"props":274,"children":275},{"style":154},[276],{"type":72,"value":234},{"type":61,"tag":135,"props":278,"children":279},{"style":270},[280],{"type":72,"value":281},")\n",{"type":61,"tag":135,"props":283,"children":285},{"class":137,"line":284},5,[286,291],{"type":61,"tag":135,"props":287,"children":288},{"style":148},[289],{"type":72,"value":290},"}",{"type":61,"tag":135,"props":292,"children":293},{"style":154},[294],{"type":72,"value":281},{"type":61,"tag":68,"props":296,"children":297},{},[298],{"type":72,"value":299},"Then call your api route from any vue file:",{"type":61,"tag":124,"props":301,"children":304},{"className":126,"code":302,"filename":303,"language":129,"meta":55,"style":55},"const user = ref(null)\n\nconst fetchMe = async () => {\n user.value = await $fetch('/api/me')\n}\n","pages/index.vue",[305],{"type":61,"tag":111,"props":306,"children":307},{"__ignoreMap":55},[308,344,351,385,438],{"type":61,"tag":135,"props":309,"children":310},{"class":137,"line":138},[311,316,321,326,331,335,340],{"type":61,"tag":135,"props":312,"children":313},{"style":220},[314],{"type":72,"value":315},"const",{"type":61,"tag":135,"props":317,"children":318},{"style":154},[319],{"type":72,"value":320}," user ",{"type":61,"tag":135,"props":322,"children":323},{"style":148},[324],{"type":72,"value":325},"=",{"type":61,"tag":135,"props":327,"children":328},{"style":209},[329],{"type":72,"value":330}," ref",{"type":61,"tag":135,"props":332,"children":333},{"style":154},[334],{"type":72,"value":217},{"type":61,"tag":135,"props":336,"children":337},{"style":148},[338],{"type":72,"value":339},"null",{"type":61,"tag":135,"props":341,"children":342},{"style":154},[343],{"type":72,"value":281},{"type":61,"tag":135,"props":345,"children":346},{"class":137,"line":185},[347],{"type":61,"tag":135,"props":348,"children":349},{"emptyLinePlaceholder":189},[350],{"type":72,"value":192},{"type":61,"tag":135,"props":352,"children":353},{"class":137,"line":195},[354,358,363,367,372,377,381],{"type":61,"tag":135,"props":355,"children":356},{"style":220},[357],{"type":72,"value":315},{"type":61,"tag":135,"props":359,"children":360},{"style":154},[361],{"type":72,"value":362}," fetchMe ",{"type":61,"tag":135,"props":364,"children":365},{"style":148},[366],{"type":72,"value":325},{"type":61,"tag":135,"props":368,"children":369},{"style":220},[370],{"type":72,"value":371}," async",{"type":61,"tag":135,"props":373,"children":374},{"style":148},[375],{"type":72,"value":376}," ()",{"type":61,"tag":135,"props":378,"children":379},{"style":220},[380],{"type":72,"value":244},{"type":61,"tag":135,"props":382,"children":383},{"style":148},[384],{"type":72,"value":249},{"type":61,"tag":135,"props":386,"children":387},{"class":137,"line":252},[388,393,397,402,407,411,416,420,425,430,434],{"type":61,"tag":135,"props":389,"children":390},{"style":154},[391],{"type":72,"value":392}," user",{"type":61,"tag":135,"props":394,"children":395},{"style":148},[396],{"type":72,"value":104},{"type":61,"tag":135,"props":398,"children":399},{"style":154},[400],{"type":72,"value":401},"value",{"type":61,"tag":135,"props":403,"children":404},{"style":148},[405],{"type":72,"value":406}," =",{"type":61,"tag":135,"props":408,"children":409},{"style":142},[410],{"type":72,"value":263},{"type":61,"tag":135,"props":412,"children":413},{"style":209},[414],{"type":72,"value":415}," $fetch",{"type":61,"tag":135,"props":417,"children":418},{"style":270},[419],{"type":72,"value":217},{"type":61,"tag":135,"props":421,"children":422},{"style":148},[423],{"type":72,"value":424},"'",{"type":61,"tag":135,"props":426,"children":427},{"style":175},[428],{"type":72,"value":429},"/api/me",{"type":61,"tag":135,"props":431,"children":432},{"style":148},[433],{"type":72,"value":424},{"type":61,"tag":135,"props":435,"children":436},{"style":270},[437],{"type":72,"value":281},{"type":61,"tag":135,"props":439,"children":440},{"class":137,"line":284},[441],{"type":61,"tag":135,"props":442,"children":443},{"style":148},[444],{"type":72,"value":445},"}\n",{"type":61,"tag":68,"props":447,"children":448},{},[449,451,458],{"type":72,"value":450},"Be careful, if you want to call this route on SSR, please read this ",{"type":61,"tag":75,"props":452,"children":455},{"href":453,"rel":454},"https://nuxt.com/docs/getting-started/data-fetching#isomorphic-fetch-and-fetch",[79],[456],{"type":72,"value":457},"section",{"type":72,"value":459},", you must send your browser cookies including your supabase token.",{"type":61,"tag":124,"props":461,"children":463},{"className":126,"code":462,"filename":303,"language":129,"meta":55,"style":55},"const user = ref(null)\n\nconst { data } = await useFetch('/api/me', {\n headers: useRequestHeaders(['cookie'])\n})\n\nuser.value = data\n",[464],{"type":61,"tag":111,"props":465,"children":466},{"__ignoreMap":55},[467,498,505,563,604,615,623],{"type":61,"tag":135,"props":468,"children":469},{"class":137,"line":138},[470,474,478,482,486,490,494],{"type":61,"tag":135,"props":471,"children":472},{"style":220},[473],{"type":72,"value":315},{"type":61,"tag":135,"props":475,"children":476},{"style":154},[477],{"type":72,"value":320},{"type":61,"tag":135,"props":479,"children":480},{"style":148},[481],{"type":72,"value":325},{"type":61,"tag":135,"props":483,"children":484},{"style":209},[485],{"type":72,"value":330},{"type":61,"tag":135,"props":487,"children":488},{"style":154},[489],{"type":72,"value":217},{"type":61,"tag":135,"props":491,"children":492},{"style":148},[493],{"type":72,"value":339},{"type":61,"tag":135,"props":495,"children":496},{"style":154},[497],{"type":72,"value":281},{"type":61,"tag":135,"props":499,"children":500},{"class":137,"line":185},[501],{"type":61,"tag":135,"props":502,"children":503},{"emptyLinePlaceholder":189},[504],{"type":72,"value":192},{"type":61,"tag":135,"props":506,"children":507},{"class":137,"line":195},[508,512,516,521,525,529,533,538,542,546,550,554,559],{"type":61,"tag":135,"props":509,"children":510},{"style":220},[511],{"type":72,"value":315},{"type":61,"tag":135,"props":513,"children":514},{"style":148},[515],{"type":72,"value":151},{"type":61,"tag":135,"props":517,"children":518},{"style":154},[519],{"type":72,"value":520}," data ",{"type":61,"tag":135,"props":522,"children":523},{"style":148},[524],{"type":72,"value":290},{"type":61,"tag":135,"props":526,"children":527},{"style":148},[528],{"type":72,"value":406},{"type":61,"tag":135,"props":530,"children":531},{"style":142},[532],{"type":72,"value":263},{"type":61,"tag":135,"props":534,"children":535},{"style":209},[536],{"type":72,"value":537}," useFetch",{"type":61,"tag":135,"props":539,"children":540},{"style":154},[541],{"type":72,"value":217},{"type":61,"tag":135,"props":543,"children":544},{"style":148},[545],{"type":72,"value":424},{"type":61,"tag":135,"props":547,"children":548},{"style":175},[549],{"type":72,"value":429},{"type":61,"tag":135,"props":551,"children":552},{"style":148},[553],{"type":72,"value":424},{"type":61,"tag":135,"props":555,"children":556},{"style":148},[557],{"type":72,"value":558},",",{"type":61,"tag":135,"props":560,"children":561},{"style":148},[562],{"type":72,"value":249},{"type":61,"tag":135,"props":564,"children":565},{"class":137,"line":252},[566,571,576,581,586,590,595,599],{"type":61,"tag":135,"props":567,"children":568},{"style":270},[569],{"type":72,"value":570}," headers",{"type":61,"tag":135,"props":572,"children":573},{"style":148},[574],{"type":72,"value":575},":",{"type":61,"tag":135,"props":577,"children":578},{"style":209},[579],{"type":72,"value":580}," useRequestHeaders",{"type":61,"tag":135,"props":582,"children":583},{"style":154},[584],{"type":72,"value":585},"([",{"type":61,"tag":135,"props":587,"children":588},{"style":148},[589],{"type":72,"value":424},{"type":61,"tag":135,"props":591,"children":592},{"style":175},[593],{"type":72,"value":594},"cookie",{"type":61,"tag":135,"props":596,"children":597},{"style":148},[598],{"type":72,"value":424},{"type":61,"tag":135,"props":600,"children":601},{"style":154},[602],{"type":72,"value":603},"])\n",{"type":61,"tag":135,"props":605,"children":606},{"class":137,"line":284},[607,611],{"type":61,"tag":135,"props":608,"children":609},{"style":148},[610],{"type":72,"value":290},{"type":61,"tag":135,"props":612,"children":613},{"style":154},[614],{"type":72,"value":281},{"type":61,"tag":135,"props":616,"children":618},{"class":137,"line":617},6,[619],{"type":61,"tag":135,"props":620,"children":621},{"emptyLinePlaceholder":189},[622],{"type":72,"value":192},{"type":61,"tag":135,"props":624,"children":626},{"class":137,"line":625},7,[627,632,636,641,645],{"type":61,"tag":135,"props":628,"children":629},{"style":154},[630],{"type":72,"value":631},"user",{"type":61,"tag":135,"props":633,"children":634},{"style":148},[635],{"type":72,"value":104},{"type":61,"tag":135,"props":637,"children":638},{"style":154},[639],{"type":72,"value":640},"value ",{"type":61,"tag":135,"props":642,"children":643},{"style":148},[644],{"type":72,"value":325},{"type":61,"tag":135,"props":646,"children":647},{"style":154},[648],{"type":72,"value":649}," data\n",{"type":61,"tag":651,"props":652,"children":653},"style",{},[654],{"type":72,"value":655},"html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":55,"searchDepth":185,"depth":185,"links":657},[],"markdown","content:4.usage:services:3.serverSupabaseUser.md","content","4.usage/services/3.serverSupabaseUser.md","md",[664,667],{"_path":35,"title":665,"description":666},"serverServiceRole","Make requests with super admin rights to the Supabase API with the serverSupabaseServiceRole service",{"_path":42,"title":41,"description":668},"Demonstration of using Supabase with Nuxt.",1703757838244] \ No newline at end of file diff --git a/usage/services/serversupabaseuser/index.html b/usage/services/serversupabaseuser/index.html index cecce699..a5f01251 100644 --- a/usage/services/serversupabaseuser/index.html +++ b/usage/services/serversupabaseuser/index.html @@ -69,41 +69,41 @@ - - - - - - - - - + + + + + + + + + - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + - - + + - - -
mobile favicon
Services

serverSupabaseUser

Get your Supabase user from serverside with the serverSupabaseUser service

This section assumes you're familiar with Nitro, the server engine powered by Nuxt.

This function is similar to the useSupabaseUser composable but is used in server routes.

Define your server route and import the serverSupabaseUser from #supabase/server.

server/api/me.ts
import { serverSupabaseUser } from '#supabase/server'
+
mobile favicon
Services

serverSupabaseUser

Get your Supabase user from serverside with the serverSupabaseUser service

This section assumes you're familiar with Nitro, the server engine powered by Nuxt.

This function is similar to the useSupabaseUser composable but is used in server routes.

Define your server route and import the serverSupabaseUser from #supabase/server.

server/api/me.ts
import { serverSupabaseUser } from '#supabase/server'
 
 export default defineEventHandler(async (event) => {
   return await serverSupabaseUser(event)
@@ -121,6 +121,6 @@
 
 user.value = data
 

Made with Nuxt Studio
- - + + \ No newline at end of file