From ce08849d0c728fd46337f0c8ac48375903147d36 Mon Sep 17 00:00:00 2001 From: Chris Date: Tue, 3 Sep 2024 16:28:20 +0800 Subject: [PATCH] feat: add `Nuxt` playground (#14) * chore: update * chore: catalog * chore: update * chore: update --- .gitignore | 29 +- package.json | 38 +- packages/core/package.json | 30 +- playground-nuxt/.nuxt/app.config.mjs | 18 + playground-nuxt/.nuxt/components.d.ts | 108 + playground-nuxt/.nuxt/dev/index.mjs | 1546 +++++ playground-nuxt/.nuxt/dev/index.mjs.map | 1 + playground-nuxt/.nuxt/imports.d.ts | 30 + playground-nuxt/.nuxt/manifest/latest.json | 1 + playground-nuxt/.nuxt/manifest/meta/dev.json | 1 + playground-nuxt/.nuxt/nitro.json | 17 + playground-nuxt/.nuxt/nuxt.d.ts | 19 + playground-nuxt/.nuxt/nuxt.json | 9 + playground-nuxt/.nuxt/schema/nuxt.schema.d.ts | 17 + playground-nuxt/.nuxt/schema/nuxt.schema.json | 3 + playground-nuxt/.nuxt/tsconfig.json | 164 + playground-nuxt/.nuxt/tsconfig.server.json | 126 + playground-nuxt/.nuxt/types/app-defaults.d.ts | 7 + playground-nuxt/.nuxt/types/app.config.d.ts | 31 + playground-nuxt/.nuxt/types/build.d.ts | 21 + playground-nuxt/.nuxt/types/imports.d.ts | 344 + playground-nuxt/.nuxt/types/middleware.d.ts | 6 + playground-nuxt/.nuxt/types/nitro-config.d.ts | 14 + .../.nuxt/types/nitro-imports.d.ts | 130 + playground-nuxt/.nuxt/types/nitro-nuxt.d.ts | 29 + playground-nuxt/.nuxt/types/nitro-routes.d.ts | 11 + playground-nuxt/.nuxt/types/nitro.d.ts | 3 + playground-nuxt/.nuxt/types/plugins.d.ts | 34 + playground-nuxt/.nuxt/types/schema.d.ts | 34 + playground-nuxt/.nuxt/types/vue-shim.d.ts | 0 playground-nuxt/app.vue | 7 + playground-nuxt/nuxt.config.ts | 8 + playground-nuxt/package.json | 21 + playground-nuxt/public/favicon.ico | Bin 0 -> 4286 bytes playground-nuxt/server/tsconfig.json | 3 + playground-nuxt/tsconfig.json | 4 + playground-nuxt/uno.config.ts | 13 + playground/package.json | 8 +- pnpm-lock.yaml | 5622 ++++++++++++++--- pnpm-workspace.yaml | 42 +- 40 files changed, 7723 insertions(+), 826 deletions(-) create mode 100644 playground-nuxt/.nuxt/app.config.mjs create mode 100644 playground-nuxt/.nuxt/components.d.ts create mode 100644 playground-nuxt/.nuxt/dev/index.mjs create mode 100644 playground-nuxt/.nuxt/dev/index.mjs.map create mode 100644 playground-nuxt/.nuxt/imports.d.ts create mode 100644 playground-nuxt/.nuxt/manifest/latest.json create mode 100644 playground-nuxt/.nuxt/manifest/meta/dev.json create mode 100644 playground-nuxt/.nuxt/nitro.json create mode 100644 playground-nuxt/.nuxt/nuxt.d.ts create mode 100644 playground-nuxt/.nuxt/nuxt.json create mode 100644 playground-nuxt/.nuxt/schema/nuxt.schema.d.ts create mode 100644 playground-nuxt/.nuxt/schema/nuxt.schema.json create mode 100644 playground-nuxt/.nuxt/tsconfig.json create mode 100644 playground-nuxt/.nuxt/tsconfig.server.json create mode 100644 playground-nuxt/.nuxt/types/app-defaults.d.ts create mode 100644 playground-nuxt/.nuxt/types/app.config.d.ts create mode 100644 playground-nuxt/.nuxt/types/build.d.ts create mode 100644 playground-nuxt/.nuxt/types/imports.d.ts create mode 100644 playground-nuxt/.nuxt/types/middleware.d.ts create mode 100644 playground-nuxt/.nuxt/types/nitro-config.d.ts create mode 100644 playground-nuxt/.nuxt/types/nitro-imports.d.ts create mode 100644 playground-nuxt/.nuxt/types/nitro-nuxt.d.ts create mode 100644 playground-nuxt/.nuxt/types/nitro-routes.d.ts create mode 100644 playground-nuxt/.nuxt/types/nitro.d.ts create mode 100644 playground-nuxt/.nuxt/types/plugins.d.ts create mode 100644 playground-nuxt/.nuxt/types/schema.d.ts create mode 100644 playground-nuxt/.nuxt/types/vue-shim.d.ts create mode 100644 playground-nuxt/app.vue create mode 100644 playground-nuxt/nuxt.config.ts create mode 100644 playground-nuxt/package.json create mode 100644 playground-nuxt/public/favicon.ico create mode 100644 playground-nuxt/server/tsconfig.json create mode 100644 playground-nuxt/tsconfig.json create mode 100644 playground-nuxt/uno.config.ts diff --git a/.gitignore b/.gitignore index edd6404..594ef96 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,27 @@ -node_modules +.eslintcache +data + +# Nuxt dev/build outputs +.output +.data +.nuxt +.nitro +.cache dist + +# Node dependencies +node_modules + +# Logs +logs *.log -.vscode -data -.eslintcache + +# Misc +.DS_Store +.fleet +.idea + +# Local env files +.env +.env.* +!.env.example diff --git a/package.json b/package.json index 099966a..4c8a029 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "type": "module", "version": "0.5.1", "private": true, - "packageManager": "pnpm@9.6.0", + "packageManager": "pnpm@9.9.0", "scripts": { "build": "pnpm -r -F=./packages/* run build", "stub": "pnpm -r -F=./packages/* --parallel run stub", @@ -19,25 +19,25 @@ "magicAnimate": "esno scripts/magicAnimate.ts" }, "devDependencies": { - "@antfu/eslint-config": "^2.26.1", - "@babel/types": "^7.25.2", - "@types/fs-extra": "^11.0.4", - "@types/node": "^22.4.2", - "@types/postcss-js": "^4.0.4", - "@unocss/eslint-plugin": "^0.62.2", - "bumpp": "^9.5.1", - "eslint": "^9.9.0", - "esno": "^4.7.0", - "fs-extra": "^11.2.0", - "lint-staged": "^15.2.9", - "magic.css": "^1.4.8", - "simple-git-hooks": "^2.11.1", - "typescript": "5.5.4", - "unbuild": "^2.0.0", - "unocss": "^0.62.2", + "@antfu/eslint-config": "catalog:", + "@babel/types": "catalog:", + "@types/fs-extra": "catalog:", + "@types/node": "catalog:", + "@types/postcss-js": "catalog:", + "@unocss/eslint-plugin": "catalog:", + "bumpp": "catalog:", + "eslint": "catalog:", + "esno": "catalog:", + "fs-extra": "catalog:", + "lint-staged": "catalog:", + "magic.css": "catalog:", + "simple-git-hooks": "catalog:", + "typescript": "catalog:", + "unbuild": "catalog:", + "unocss": "catalog:", "unocss-preset-useful": "workspace:*", - "vite": "^5.4.2", - "vitest": "^2.0.5" + "vite": "catalog:", + "vitest": "catalog:" }, "simple-git-hooks": { "pre-commit": "npx lint-staged" diff --git a/packages/core/package.json b/packages/core/package.json index 9b3b098..7904412 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -49,20 +49,20 @@ "unocss": "^0.62.2" }, "dependencies": { - "@unocss/core": "^0.62.2", - "@unocss/preset-attributify": "^0.62.2", - "@unocss/preset-icons": "^0.62.2", - "@unocss/preset-mini": "^0.62.2", - "@unocss/preset-rem-to-px": "^0.62.2", - "@unocss/preset-tagify": "^0.62.2", - "@unocss/preset-typography": "^0.62.2", - "@unocss/preset-uno": "^0.62.2", - "@unocss/preset-web-fonts": "^0.62.2", - "@unocss/transformer-compile-class": "^0.62.2", - "@unocss/transformer-directives": "^0.62.2", - "@unocss/transformer-variant-group": "^0.62.2", - "postcss": "^8.4.41", - "postcss-js": "^4.0.1", - "unocss-preset-scrollbar": "^0.3.1" + "@unocss/core": "catalog:", + "@unocss/preset-attributify": "catalog:", + "@unocss/preset-icons": "catalog:", + "@unocss/preset-mini": "catalog:", + "@unocss/preset-rem-to-px": "catalog:", + "@unocss/preset-tagify": "catalog:", + "@unocss/preset-typography": "catalog:", + "@unocss/preset-uno": "catalog:", + "@unocss/preset-web-fonts": "catalog:", + "@unocss/transformer-compile-class": "catalog:", + "@unocss/transformer-directives": "catalog:", + "@unocss/transformer-variant-group": "catalog:", + "postcss": "catalog:", + "postcss-js": "catalog:", + "unocss-preset-scrollbar": "catalog:" } } diff --git a/playground-nuxt/.nuxt/app.config.mjs b/playground-nuxt/.nuxt/app.config.mjs new file mode 100644 index 0000000..e206fb9 --- /dev/null +++ b/playground-nuxt/.nuxt/app.config.mjs @@ -0,0 +1,18 @@ + +import { updateAppConfig } from '#app/config' +import { defuFn } from 'defu' + +const inlineConfig = { + "nuxt": {} +} + +// Vite - webpack is handled directly in #app/config +if (import.meta.hot) { + import.meta.hot.accept((newModule) => { + updateAppConfig(newModule.default) + }) +} + + + +export default /*@__PURE__*/ defuFn(inlineConfig) diff --git a/playground-nuxt/.nuxt/components.d.ts b/playground-nuxt/.nuxt/components.d.ts new file mode 100644 index 0000000..31bebaf --- /dev/null +++ b/playground-nuxt/.nuxt/components.d.ts @@ -0,0 +1,108 @@ + +import type { DefineComponent, SlotsType } from 'vue' +type IslandComponent = T & DefineComponent<{}, {refresh: () => Promise}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, SlotsType<{ fallback: { error: unknown } }>> +interface _GlobalComponents { + 'UnoIcon': typeof import("../../node_modules/.pnpm/@unocss+nuxt@0.62.3_magicast@0.3.5_postcss@8.4.41_rollup@4.21.0_vite@5.4.2_@types+node@22.4.2_atygzmivmh4l7krsz7z2hxsabe/node_modules/@unocss/nuxt/runtime/UnoIcon.vue")['default'] + 'NuxtWelcome': typeof import("../../node_modules/.pnpm/nuxt@3.13.0_@parcel+watcher@2.4.1_@types+node@22.4.2_eslint@9.9.0_jiti@1.21.6__ioredis@5.4.1__rnj4fitoosxnasdwlqcycuhlsq/node_modules/nuxt/dist/app/components/welcome")['default'] + 'NuxtLayout': typeof import("../../node_modules/.pnpm/nuxt@3.13.0_@parcel+watcher@2.4.1_@types+node@22.4.2_eslint@9.9.0_jiti@1.21.6__ioredis@5.4.1__rnj4fitoosxnasdwlqcycuhlsq/node_modules/nuxt/dist/app/components/nuxt-layout")['default'] + 'NuxtErrorBoundary': typeof import("../../node_modules/.pnpm/nuxt@3.13.0_@parcel+watcher@2.4.1_@types+node@22.4.2_eslint@9.9.0_jiti@1.21.6__ioredis@5.4.1__rnj4fitoosxnasdwlqcycuhlsq/node_modules/nuxt/dist/app/components/nuxt-error-boundary")['default'] + 'ClientOnly': typeof import("../../node_modules/.pnpm/nuxt@3.13.0_@parcel+watcher@2.4.1_@types+node@22.4.2_eslint@9.9.0_jiti@1.21.6__ioredis@5.4.1__rnj4fitoosxnasdwlqcycuhlsq/node_modules/nuxt/dist/app/components/client-only")['default'] + 'DevOnly': typeof import("../../node_modules/.pnpm/nuxt@3.13.0_@parcel+watcher@2.4.1_@types+node@22.4.2_eslint@9.9.0_jiti@1.21.6__ioredis@5.4.1__rnj4fitoosxnasdwlqcycuhlsq/node_modules/nuxt/dist/app/components/dev-only")['default'] + 'ServerPlaceholder': typeof import("../../node_modules/.pnpm/nuxt@3.13.0_@parcel+watcher@2.4.1_@types+node@22.4.2_eslint@9.9.0_jiti@1.21.6__ioredis@5.4.1__rnj4fitoosxnasdwlqcycuhlsq/node_modules/nuxt/dist/app/components/server-placeholder")['default'] + 'NuxtLink': typeof import("../../node_modules/.pnpm/nuxt@3.13.0_@parcel+watcher@2.4.1_@types+node@22.4.2_eslint@9.9.0_jiti@1.21.6__ioredis@5.4.1__rnj4fitoosxnasdwlqcycuhlsq/node_modules/nuxt/dist/app/components/nuxt-link")['default'] + 'NuxtLoadingIndicator': typeof import("../../node_modules/.pnpm/nuxt@3.13.0_@parcel+watcher@2.4.1_@types+node@22.4.2_eslint@9.9.0_jiti@1.21.6__ioredis@5.4.1__rnj4fitoosxnasdwlqcycuhlsq/node_modules/nuxt/dist/app/components/nuxt-loading-indicator")['default'] + 'NuxtRouteAnnouncer': typeof import("../../node_modules/.pnpm/nuxt@3.13.0_@parcel+watcher@2.4.1_@types+node@22.4.2_eslint@9.9.0_jiti@1.21.6__ioredis@5.4.1__rnj4fitoosxnasdwlqcycuhlsq/node_modules/nuxt/dist/app/components/nuxt-route-announcer")['default'] + 'NuxtImg': typeof import("../../node_modules/.pnpm/nuxt@3.13.0_@parcel+watcher@2.4.1_@types+node@22.4.2_eslint@9.9.0_jiti@1.21.6__ioredis@5.4.1__rnj4fitoosxnasdwlqcycuhlsq/node_modules/nuxt/dist/app/components/nuxt-stubs")['NuxtImg'] + 'NuxtPicture': typeof import("../../node_modules/.pnpm/nuxt@3.13.0_@parcel+watcher@2.4.1_@types+node@22.4.2_eslint@9.9.0_jiti@1.21.6__ioredis@5.4.1__rnj4fitoosxnasdwlqcycuhlsq/node_modules/nuxt/dist/app/components/nuxt-stubs")['NuxtPicture'] + 'NuxtPage': typeof import("../../node_modules/.pnpm/nuxt@3.13.0_@parcel+watcher@2.4.1_@types+node@22.4.2_eslint@9.9.0_jiti@1.21.6__ioredis@5.4.1__rnj4fitoosxnasdwlqcycuhlsq/node_modules/nuxt/dist/pages/runtime/page-placeholder")['default'] + 'NoScript': typeof import("../../node_modules/.pnpm/nuxt@3.13.0_@parcel+watcher@2.4.1_@types+node@22.4.2_eslint@9.9.0_jiti@1.21.6__ioredis@5.4.1__rnj4fitoosxnasdwlqcycuhlsq/node_modules/nuxt/dist/head/runtime/components")['NoScript'] + 'Link': typeof import("../../node_modules/.pnpm/nuxt@3.13.0_@parcel+watcher@2.4.1_@types+node@22.4.2_eslint@9.9.0_jiti@1.21.6__ioredis@5.4.1__rnj4fitoosxnasdwlqcycuhlsq/node_modules/nuxt/dist/head/runtime/components")['Link'] + 'Base': typeof import("../../node_modules/.pnpm/nuxt@3.13.0_@parcel+watcher@2.4.1_@types+node@22.4.2_eslint@9.9.0_jiti@1.21.6__ioredis@5.4.1__rnj4fitoosxnasdwlqcycuhlsq/node_modules/nuxt/dist/head/runtime/components")['Base'] + 'Title': typeof import("../../node_modules/.pnpm/nuxt@3.13.0_@parcel+watcher@2.4.1_@types+node@22.4.2_eslint@9.9.0_jiti@1.21.6__ioredis@5.4.1__rnj4fitoosxnasdwlqcycuhlsq/node_modules/nuxt/dist/head/runtime/components")['Title'] + 'Meta': typeof import("../../node_modules/.pnpm/nuxt@3.13.0_@parcel+watcher@2.4.1_@types+node@22.4.2_eslint@9.9.0_jiti@1.21.6__ioredis@5.4.1__rnj4fitoosxnasdwlqcycuhlsq/node_modules/nuxt/dist/head/runtime/components")['Meta'] + 'Style': typeof import("../../node_modules/.pnpm/nuxt@3.13.0_@parcel+watcher@2.4.1_@types+node@22.4.2_eslint@9.9.0_jiti@1.21.6__ioredis@5.4.1__rnj4fitoosxnasdwlqcycuhlsq/node_modules/nuxt/dist/head/runtime/components")['Style'] + 'Head': typeof import("../../node_modules/.pnpm/nuxt@3.13.0_@parcel+watcher@2.4.1_@types+node@22.4.2_eslint@9.9.0_jiti@1.21.6__ioredis@5.4.1__rnj4fitoosxnasdwlqcycuhlsq/node_modules/nuxt/dist/head/runtime/components")['Head'] + 'Html': typeof import("../../node_modules/.pnpm/nuxt@3.13.0_@parcel+watcher@2.4.1_@types+node@22.4.2_eslint@9.9.0_jiti@1.21.6__ioredis@5.4.1__rnj4fitoosxnasdwlqcycuhlsq/node_modules/nuxt/dist/head/runtime/components")['Html'] + 'Body': typeof import("../../node_modules/.pnpm/nuxt@3.13.0_@parcel+watcher@2.4.1_@types+node@22.4.2_eslint@9.9.0_jiti@1.21.6__ioredis@5.4.1__rnj4fitoosxnasdwlqcycuhlsq/node_modules/nuxt/dist/head/runtime/components")['Body'] + 'NuxtIsland': typeof import("../../node_modules/.pnpm/nuxt@3.13.0_@parcel+watcher@2.4.1_@types+node@22.4.2_eslint@9.9.0_jiti@1.21.6__ioredis@5.4.1__rnj4fitoosxnasdwlqcycuhlsq/node_modules/nuxt/dist/app/components/nuxt-island")['default'] + 'NuxtRouteAnnouncer': IslandComponent + 'LazyUnoIcon': typeof import("../../node_modules/.pnpm/@unocss+nuxt@0.62.3_magicast@0.3.5_postcss@8.4.41_rollup@4.21.0_vite@5.4.2_@types+node@22.4.2_atygzmivmh4l7krsz7z2hxsabe/node_modules/@unocss/nuxt/runtime/UnoIcon.vue")['default'] + 'LazyNuxtWelcome': typeof import("../../node_modules/.pnpm/nuxt@3.13.0_@parcel+watcher@2.4.1_@types+node@22.4.2_eslint@9.9.0_jiti@1.21.6__ioredis@5.4.1__rnj4fitoosxnasdwlqcycuhlsq/node_modules/nuxt/dist/app/components/welcome")['default'] + 'LazyNuxtLayout': typeof import("../../node_modules/.pnpm/nuxt@3.13.0_@parcel+watcher@2.4.1_@types+node@22.4.2_eslint@9.9.0_jiti@1.21.6__ioredis@5.4.1__rnj4fitoosxnasdwlqcycuhlsq/node_modules/nuxt/dist/app/components/nuxt-layout")['default'] + 'LazyNuxtErrorBoundary': typeof import("../../node_modules/.pnpm/nuxt@3.13.0_@parcel+watcher@2.4.1_@types+node@22.4.2_eslint@9.9.0_jiti@1.21.6__ioredis@5.4.1__rnj4fitoosxnasdwlqcycuhlsq/node_modules/nuxt/dist/app/components/nuxt-error-boundary")['default'] + 'LazyClientOnly': typeof import("../../node_modules/.pnpm/nuxt@3.13.0_@parcel+watcher@2.4.1_@types+node@22.4.2_eslint@9.9.0_jiti@1.21.6__ioredis@5.4.1__rnj4fitoosxnasdwlqcycuhlsq/node_modules/nuxt/dist/app/components/client-only")['default'] + 'LazyDevOnly': typeof import("../../node_modules/.pnpm/nuxt@3.13.0_@parcel+watcher@2.4.1_@types+node@22.4.2_eslint@9.9.0_jiti@1.21.6__ioredis@5.4.1__rnj4fitoosxnasdwlqcycuhlsq/node_modules/nuxt/dist/app/components/dev-only")['default'] + 'LazyServerPlaceholder': typeof import("../../node_modules/.pnpm/nuxt@3.13.0_@parcel+watcher@2.4.1_@types+node@22.4.2_eslint@9.9.0_jiti@1.21.6__ioredis@5.4.1__rnj4fitoosxnasdwlqcycuhlsq/node_modules/nuxt/dist/app/components/server-placeholder")['default'] + 'LazyNuxtLink': typeof import("../../node_modules/.pnpm/nuxt@3.13.0_@parcel+watcher@2.4.1_@types+node@22.4.2_eslint@9.9.0_jiti@1.21.6__ioredis@5.4.1__rnj4fitoosxnasdwlqcycuhlsq/node_modules/nuxt/dist/app/components/nuxt-link")['default'] + 'LazyNuxtLoadingIndicator': typeof import("../../node_modules/.pnpm/nuxt@3.13.0_@parcel+watcher@2.4.1_@types+node@22.4.2_eslint@9.9.0_jiti@1.21.6__ioredis@5.4.1__rnj4fitoosxnasdwlqcycuhlsq/node_modules/nuxt/dist/app/components/nuxt-loading-indicator")['default'] + 'LazyNuxtRouteAnnouncer': typeof import("../../node_modules/.pnpm/nuxt@3.13.0_@parcel+watcher@2.4.1_@types+node@22.4.2_eslint@9.9.0_jiti@1.21.6__ioredis@5.4.1__rnj4fitoosxnasdwlqcycuhlsq/node_modules/nuxt/dist/app/components/nuxt-route-announcer")['default'] + 'LazyNuxtImg': typeof import("../../node_modules/.pnpm/nuxt@3.13.0_@parcel+watcher@2.4.1_@types+node@22.4.2_eslint@9.9.0_jiti@1.21.6__ioredis@5.4.1__rnj4fitoosxnasdwlqcycuhlsq/node_modules/nuxt/dist/app/components/nuxt-stubs")['NuxtImg'] + 'LazyNuxtPicture': typeof import("../../node_modules/.pnpm/nuxt@3.13.0_@parcel+watcher@2.4.1_@types+node@22.4.2_eslint@9.9.0_jiti@1.21.6__ioredis@5.4.1__rnj4fitoosxnasdwlqcycuhlsq/node_modules/nuxt/dist/app/components/nuxt-stubs")['NuxtPicture'] + 'LazyNuxtPage': typeof import("../../node_modules/.pnpm/nuxt@3.13.0_@parcel+watcher@2.4.1_@types+node@22.4.2_eslint@9.9.0_jiti@1.21.6__ioredis@5.4.1__rnj4fitoosxnasdwlqcycuhlsq/node_modules/nuxt/dist/pages/runtime/page-placeholder")['default'] + 'LazyNoScript': typeof import("../../node_modules/.pnpm/nuxt@3.13.0_@parcel+watcher@2.4.1_@types+node@22.4.2_eslint@9.9.0_jiti@1.21.6__ioredis@5.4.1__rnj4fitoosxnasdwlqcycuhlsq/node_modules/nuxt/dist/head/runtime/components")['NoScript'] + 'LazyLink': typeof import("../../node_modules/.pnpm/nuxt@3.13.0_@parcel+watcher@2.4.1_@types+node@22.4.2_eslint@9.9.0_jiti@1.21.6__ioredis@5.4.1__rnj4fitoosxnasdwlqcycuhlsq/node_modules/nuxt/dist/head/runtime/components")['Link'] + 'LazyBase': typeof import("../../node_modules/.pnpm/nuxt@3.13.0_@parcel+watcher@2.4.1_@types+node@22.4.2_eslint@9.9.0_jiti@1.21.6__ioredis@5.4.1__rnj4fitoosxnasdwlqcycuhlsq/node_modules/nuxt/dist/head/runtime/components")['Base'] + 'LazyTitle': typeof import("../../node_modules/.pnpm/nuxt@3.13.0_@parcel+watcher@2.4.1_@types+node@22.4.2_eslint@9.9.0_jiti@1.21.6__ioredis@5.4.1__rnj4fitoosxnasdwlqcycuhlsq/node_modules/nuxt/dist/head/runtime/components")['Title'] + 'LazyMeta': typeof import("../../node_modules/.pnpm/nuxt@3.13.0_@parcel+watcher@2.4.1_@types+node@22.4.2_eslint@9.9.0_jiti@1.21.6__ioredis@5.4.1__rnj4fitoosxnasdwlqcycuhlsq/node_modules/nuxt/dist/head/runtime/components")['Meta'] + 'LazyStyle': typeof import("../../node_modules/.pnpm/nuxt@3.13.0_@parcel+watcher@2.4.1_@types+node@22.4.2_eslint@9.9.0_jiti@1.21.6__ioredis@5.4.1__rnj4fitoosxnasdwlqcycuhlsq/node_modules/nuxt/dist/head/runtime/components")['Style'] + 'LazyHead': typeof import("../../node_modules/.pnpm/nuxt@3.13.0_@parcel+watcher@2.4.1_@types+node@22.4.2_eslint@9.9.0_jiti@1.21.6__ioredis@5.4.1__rnj4fitoosxnasdwlqcycuhlsq/node_modules/nuxt/dist/head/runtime/components")['Head'] + 'LazyHtml': typeof import("../../node_modules/.pnpm/nuxt@3.13.0_@parcel+watcher@2.4.1_@types+node@22.4.2_eslint@9.9.0_jiti@1.21.6__ioredis@5.4.1__rnj4fitoosxnasdwlqcycuhlsq/node_modules/nuxt/dist/head/runtime/components")['Html'] + 'LazyBody': typeof import("../../node_modules/.pnpm/nuxt@3.13.0_@parcel+watcher@2.4.1_@types+node@22.4.2_eslint@9.9.0_jiti@1.21.6__ioredis@5.4.1__rnj4fitoosxnasdwlqcycuhlsq/node_modules/nuxt/dist/head/runtime/components")['Body'] + 'LazyNuxtIsland': typeof import("../../node_modules/.pnpm/nuxt@3.13.0_@parcel+watcher@2.4.1_@types+node@22.4.2_eslint@9.9.0_jiti@1.21.6__ioredis@5.4.1__rnj4fitoosxnasdwlqcycuhlsq/node_modules/nuxt/dist/app/components/nuxt-island")['default'] + 'LazyNuxtRouteAnnouncer': IslandComponent +} + +declare module 'vue' { + export interface GlobalComponents extends _GlobalComponents { } +} + +export const UnoIcon: typeof import("../../node_modules/.pnpm/@unocss+nuxt@0.62.3_magicast@0.3.5_postcss@8.4.41_rollup@4.21.0_vite@5.4.2_@types+node@22.4.2_atygzmivmh4l7krsz7z2hxsabe/node_modules/@unocss/nuxt/runtime/UnoIcon.vue")['default'] +export const NuxtWelcome: typeof import("../../node_modules/.pnpm/nuxt@3.13.0_@parcel+watcher@2.4.1_@types+node@22.4.2_eslint@9.9.0_jiti@1.21.6__ioredis@5.4.1__rnj4fitoosxnasdwlqcycuhlsq/node_modules/nuxt/dist/app/components/welcome")['default'] +export const NuxtLayout: typeof import("../../node_modules/.pnpm/nuxt@3.13.0_@parcel+watcher@2.4.1_@types+node@22.4.2_eslint@9.9.0_jiti@1.21.6__ioredis@5.4.1__rnj4fitoosxnasdwlqcycuhlsq/node_modules/nuxt/dist/app/components/nuxt-layout")['default'] +export const NuxtErrorBoundary: typeof import("../../node_modules/.pnpm/nuxt@3.13.0_@parcel+watcher@2.4.1_@types+node@22.4.2_eslint@9.9.0_jiti@1.21.6__ioredis@5.4.1__rnj4fitoosxnasdwlqcycuhlsq/node_modules/nuxt/dist/app/components/nuxt-error-boundary")['default'] +export const ClientOnly: typeof import("../../node_modules/.pnpm/nuxt@3.13.0_@parcel+watcher@2.4.1_@types+node@22.4.2_eslint@9.9.0_jiti@1.21.6__ioredis@5.4.1__rnj4fitoosxnasdwlqcycuhlsq/node_modules/nuxt/dist/app/components/client-only")['default'] +export const DevOnly: typeof import("../../node_modules/.pnpm/nuxt@3.13.0_@parcel+watcher@2.4.1_@types+node@22.4.2_eslint@9.9.0_jiti@1.21.6__ioredis@5.4.1__rnj4fitoosxnasdwlqcycuhlsq/node_modules/nuxt/dist/app/components/dev-only")['default'] +export const ServerPlaceholder: typeof import("../../node_modules/.pnpm/nuxt@3.13.0_@parcel+watcher@2.4.1_@types+node@22.4.2_eslint@9.9.0_jiti@1.21.6__ioredis@5.4.1__rnj4fitoosxnasdwlqcycuhlsq/node_modules/nuxt/dist/app/components/server-placeholder")['default'] +export const NuxtLink: typeof import("../../node_modules/.pnpm/nuxt@3.13.0_@parcel+watcher@2.4.1_@types+node@22.4.2_eslint@9.9.0_jiti@1.21.6__ioredis@5.4.1__rnj4fitoosxnasdwlqcycuhlsq/node_modules/nuxt/dist/app/components/nuxt-link")['default'] +export const NuxtLoadingIndicator: typeof import("../../node_modules/.pnpm/nuxt@3.13.0_@parcel+watcher@2.4.1_@types+node@22.4.2_eslint@9.9.0_jiti@1.21.6__ioredis@5.4.1__rnj4fitoosxnasdwlqcycuhlsq/node_modules/nuxt/dist/app/components/nuxt-loading-indicator")['default'] +export const NuxtRouteAnnouncer: typeof import("../../node_modules/.pnpm/nuxt@3.13.0_@parcel+watcher@2.4.1_@types+node@22.4.2_eslint@9.9.0_jiti@1.21.6__ioredis@5.4.1__rnj4fitoosxnasdwlqcycuhlsq/node_modules/nuxt/dist/app/components/nuxt-route-announcer")['default'] +export const NuxtImg: typeof import("../../node_modules/.pnpm/nuxt@3.13.0_@parcel+watcher@2.4.1_@types+node@22.4.2_eslint@9.9.0_jiti@1.21.6__ioredis@5.4.1__rnj4fitoosxnasdwlqcycuhlsq/node_modules/nuxt/dist/app/components/nuxt-stubs")['NuxtImg'] +export const NuxtPicture: typeof import("../../node_modules/.pnpm/nuxt@3.13.0_@parcel+watcher@2.4.1_@types+node@22.4.2_eslint@9.9.0_jiti@1.21.6__ioredis@5.4.1__rnj4fitoosxnasdwlqcycuhlsq/node_modules/nuxt/dist/app/components/nuxt-stubs")['NuxtPicture'] +export const NuxtPage: typeof import("../../node_modules/.pnpm/nuxt@3.13.0_@parcel+watcher@2.4.1_@types+node@22.4.2_eslint@9.9.0_jiti@1.21.6__ioredis@5.4.1__rnj4fitoosxnasdwlqcycuhlsq/node_modules/nuxt/dist/pages/runtime/page-placeholder")['default'] +export const NoScript: typeof import("../../node_modules/.pnpm/nuxt@3.13.0_@parcel+watcher@2.4.1_@types+node@22.4.2_eslint@9.9.0_jiti@1.21.6__ioredis@5.4.1__rnj4fitoosxnasdwlqcycuhlsq/node_modules/nuxt/dist/head/runtime/components")['NoScript'] +export const Link: typeof import("../../node_modules/.pnpm/nuxt@3.13.0_@parcel+watcher@2.4.1_@types+node@22.4.2_eslint@9.9.0_jiti@1.21.6__ioredis@5.4.1__rnj4fitoosxnasdwlqcycuhlsq/node_modules/nuxt/dist/head/runtime/components")['Link'] +export const Base: typeof import("../../node_modules/.pnpm/nuxt@3.13.0_@parcel+watcher@2.4.1_@types+node@22.4.2_eslint@9.9.0_jiti@1.21.6__ioredis@5.4.1__rnj4fitoosxnasdwlqcycuhlsq/node_modules/nuxt/dist/head/runtime/components")['Base'] +export const Title: typeof import("../../node_modules/.pnpm/nuxt@3.13.0_@parcel+watcher@2.4.1_@types+node@22.4.2_eslint@9.9.0_jiti@1.21.6__ioredis@5.4.1__rnj4fitoosxnasdwlqcycuhlsq/node_modules/nuxt/dist/head/runtime/components")['Title'] +export const Meta: typeof import("../../node_modules/.pnpm/nuxt@3.13.0_@parcel+watcher@2.4.1_@types+node@22.4.2_eslint@9.9.0_jiti@1.21.6__ioredis@5.4.1__rnj4fitoosxnasdwlqcycuhlsq/node_modules/nuxt/dist/head/runtime/components")['Meta'] +export const Style: typeof import("../../node_modules/.pnpm/nuxt@3.13.0_@parcel+watcher@2.4.1_@types+node@22.4.2_eslint@9.9.0_jiti@1.21.6__ioredis@5.4.1__rnj4fitoosxnasdwlqcycuhlsq/node_modules/nuxt/dist/head/runtime/components")['Style'] +export const Head: typeof import("../../node_modules/.pnpm/nuxt@3.13.0_@parcel+watcher@2.4.1_@types+node@22.4.2_eslint@9.9.0_jiti@1.21.6__ioredis@5.4.1__rnj4fitoosxnasdwlqcycuhlsq/node_modules/nuxt/dist/head/runtime/components")['Head'] +export const Html: typeof import("../../node_modules/.pnpm/nuxt@3.13.0_@parcel+watcher@2.4.1_@types+node@22.4.2_eslint@9.9.0_jiti@1.21.6__ioredis@5.4.1__rnj4fitoosxnasdwlqcycuhlsq/node_modules/nuxt/dist/head/runtime/components")['Html'] +export const Body: typeof import("../../node_modules/.pnpm/nuxt@3.13.0_@parcel+watcher@2.4.1_@types+node@22.4.2_eslint@9.9.0_jiti@1.21.6__ioredis@5.4.1__rnj4fitoosxnasdwlqcycuhlsq/node_modules/nuxt/dist/head/runtime/components")['Body'] +export const NuxtIsland: typeof import("../../node_modules/.pnpm/nuxt@3.13.0_@parcel+watcher@2.4.1_@types+node@22.4.2_eslint@9.9.0_jiti@1.21.6__ioredis@5.4.1__rnj4fitoosxnasdwlqcycuhlsq/node_modules/nuxt/dist/app/components/nuxt-island")['default'] +export const NuxtRouteAnnouncer: IslandComponent +export const LazyUnoIcon: typeof import("../../node_modules/.pnpm/@unocss+nuxt@0.62.3_magicast@0.3.5_postcss@8.4.41_rollup@4.21.0_vite@5.4.2_@types+node@22.4.2_atygzmivmh4l7krsz7z2hxsabe/node_modules/@unocss/nuxt/runtime/UnoIcon.vue")['default'] +export const LazyNuxtWelcome: typeof import("../../node_modules/.pnpm/nuxt@3.13.0_@parcel+watcher@2.4.1_@types+node@22.4.2_eslint@9.9.0_jiti@1.21.6__ioredis@5.4.1__rnj4fitoosxnasdwlqcycuhlsq/node_modules/nuxt/dist/app/components/welcome")['default'] +export const LazyNuxtLayout: typeof import("../../node_modules/.pnpm/nuxt@3.13.0_@parcel+watcher@2.4.1_@types+node@22.4.2_eslint@9.9.0_jiti@1.21.6__ioredis@5.4.1__rnj4fitoosxnasdwlqcycuhlsq/node_modules/nuxt/dist/app/components/nuxt-layout")['default'] +export const LazyNuxtErrorBoundary: typeof import("../../node_modules/.pnpm/nuxt@3.13.0_@parcel+watcher@2.4.1_@types+node@22.4.2_eslint@9.9.0_jiti@1.21.6__ioredis@5.4.1__rnj4fitoosxnasdwlqcycuhlsq/node_modules/nuxt/dist/app/components/nuxt-error-boundary")['default'] +export const LazyClientOnly: typeof import("../../node_modules/.pnpm/nuxt@3.13.0_@parcel+watcher@2.4.1_@types+node@22.4.2_eslint@9.9.0_jiti@1.21.6__ioredis@5.4.1__rnj4fitoosxnasdwlqcycuhlsq/node_modules/nuxt/dist/app/components/client-only")['default'] +export const LazyDevOnly: typeof import("../../node_modules/.pnpm/nuxt@3.13.0_@parcel+watcher@2.4.1_@types+node@22.4.2_eslint@9.9.0_jiti@1.21.6__ioredis@5.4.1__rnj4fitoosxnasdwlqcycuhlsq/node_modules/nuxt/dist/app/components/dev-only")['default'] +export const LazyServerPlaceholder: typeof import("../../node_modules/.pnpm/nuxt@3.13.0_@parcel+watcher@2.4.1_@types+node@22.4.2_eslint@9.9.0_jiti@1.21.6__ioredis@5.4.1__rnj4fitoosxnasdwlqcycuhlsq/node_modules/nuxt/dist/app/components/server-placeholder")['default'] +export const LazyNuxtLink: typeof import("../../node_modules/.pnpm/nuxt@3.13.0_@parcel+watcher@2.4.1_@types+node@22.4.2_eslint@9.9.0_jiti@1.21.6__ioredis@5.4.1__rnj4fitoosxnasdwlqcycuhlsq/node_modules/nuxt/dist/app/components/nuxt-link")['default'] +export const LazyNuxtLoadingIndicator: typeof import("../../node_modules/.pnpm/nuxt@3.13.0_@parcel+watcher@2.4.1_@types+node@22.4.2_eslint@9.9.0_jiti@1.21.6__ioredis@5.4.1__rnj4fitoosxnasdwlqcycuhlsq/node_modules/nuxt/dist/app/components/nuxt-loading-indicator")['default'] +export const LazyNuxtRouteAnnouncer: typeof import("../../node_modules/.pnpm/nuxt@3.13.0_@parcel+watcher@2.4.1_@types+node@22.4.2_eslint@9.9.0_jiti@1.21.6__ioredis@5.4.1__rnj4fitoosxnasdwlqcycuhlsq/node_modules/nuxt/dist/app/components/nuxt-route-announcer")['default'] +export const LazyNuxtImg: typeof import("../../node_modules/.pnpm/nuxt@3.13.0_@parcel+watcher@2.4.1_@types+node@22.4.2_eslint@9.9.0_jiti@1.21.6__ioredis@5.4.1__rnj4fitoosxnasdwlqcycuhlsq/node_modules/nuxt/dist/app/components/nuxt-stubs")['NuxtImg'] +export const LazyNuxtPicture: typeof import("../../node_modules/.pnpm/nuxt@3.13.0_@parcel+watcher@2.4.1_@types+node@22.4.2_eslint@9.9.0_jiti@1.21.6__ioredis@5.4.1__rnj4fitoosxnasdwlqcycuhlsq/node_modules/nuxt/dist/app/components/nuxt-stubs")['NuxtPicture'] +export const LazyNuxtPage: typeof import("../../node_modules/.pnpm/nuxt@3.13.0_@parcel+watcher@2.4.1_@types+node@22.4.2_eslint@9.9.0_jiti@1.21.6__ioredis@5.4.1__rnj4fitoosxnasdwlqcycuhlsq/node_modules/nuxt/dist/pages/runtime/page-placeholder")['default'] +export const LazyNoScript: typeof import("../../node_modules/.pnpm/nuxt@3.13.0_@parcel+watcher@2.4.1_@types+node@22.4.2_eslint@9.9.0_jiti@1.21.6__ioredis@5.4.1__rnj4fitoosxnasdwlqcycuhlsq/node_modules/nuxt/dist/head/runtime/components")['NoScript'] +export const LazyLink: typeof import("../../node_modules/.pnpm/nuxt@3.13.0_@parcel+watcher@2.4.1_@types+node@22.4.2_eslint@9.9.0_jiti@1.21.6__ioredis@5.4.1__rnj4fitoosxnasdwlqcycuhlsq/node_modules/nuxt/dist/head/runtime/components")['Link'] +export const LazyBase: typeof import("../../node_modules/.pnpm/nuxt@3.13.0_@parcel+watcher@2.4.1_@types+node@22.4.2_eslint@9.9.0_jiti@1.21.6__ioredis@5.4.1__rnj4fitoosxnasdwlqcycuhlsq/node_modules/nuxt/dist/head/runtime/components")['Base'] +export const LazyTitle: typeof import("../../node_modules/.pnpm/nuxt@3.13.0_@parcel+watcher@2.4.1_@types+node@22.4.2_eslint@9.9.0_jiti@1.21.6__ioredis@5.4.1__rnj4fitoosxnasdwlqcycuhlsq/node_modules/nuxt/dist/head/runtime/components")['Title'] +export const LazyMeta: typeof import("../../node_modules/.pnpm/nuxt@3.13.0_@parcel+watcher@2.4.1_@types+node@22.4.2_eslint@9.9.0_jiti@1.21.6__ioredis@5.4.1__rnj4fitoosxnasdwlqcycuhlsq/node_modules/nuxt/dist/head/runtime/components")['Meta'] +export const LazyStyle: typeof import("../../node_modules/.pnpm/nuxt@3.13.0_@parcel+watcher@2.4.1_@types+node@22.4.2_eslint@9.9.0_jiti@1.21.6__ioredis@5.4.1__rnj4fitoosxnasdwlqcycuhlsq/node_modules/nuxt/dist/head/runtime/components")['Style'] +export const LazyHead: typeof import("../../node_modules/.pnpm/nuxt@3.13.0_@parcel+watcher@2.4.1_@types+node@22.4.2_eslint@9.9.0_jiti@1.21.6__ioredis@5.4.1__rnj4fitoosxnasdwlqcycuhlsq/node_modules/nuxt/dist/head/runtime/components")['Head'] +export const LazyHtml: typeof import("../../node_modules/.pnpm/nuxt@3.13.0_@parcel+watcher@2.4.1_@types+node@22.4.2_eslint@9.9.0_jiti@1.21.6__ioredis@5.4.1__rnj4fitoosxnasdwlqcycuhlsq/node_modules/nuxt/dist/head/runtime/components")['Html'] +export const LazyBody: typeof import("../../node_modules/.pnpm/nuxt@3.13.0_@parcel+watcher@2.4.1_@types+node@22.4.2_eslint@9.9.0_jiti@1.21.6__ioredis@5.4.1__rnj4fitoosxnasdwlqcycuhlsq/node_modules/nuxt/dist/head/runtime/components")['Body'] +export const LazyNuxtIsland: typeof import("../../node_modules/.pnpm/nuxt@3.13.0_@parcel+watcher@2.4.1_@types+node@22.4.2_eslint@9.9.0_jiti@1.21.6__ioredis@5.4.1__rnj4fitoosxnasdwlqcycuhlsq/node_modules/nuxt/dist/app/components/nuxt-island")['default'] +export const LazyNuxtRouteAnnouncer: IslandComponent + +export const componentNames: string[] diff --git a/playground-nuxt/.nuxt/dev/index.mjs b/playground-nuxt/.nuxt/dev/index.mjs new file mode 100644 index 0000000..5f8a563 --- /dev/null +++ b/playground-nuxt/.nuxt/dev/index.mjs @@ -0,0 +1,1546 @@ +import process from 'node:process';globalThis._importMeta_={url:import.meta.url,env:process.env};import { Server } from 'node:http'; +import { tmpdir } from 'node:os'; +import { join } from 'node:path'; +import { mkdirSync } from 'node:fs'; +import { parentPort, threadId } from 'node:worker_threads'; +import { defineEventHandler, handleCacheHeaders, splitCookiesString, isEvent, createEvent, fetchWithEvent, getRequestHeader, eventHandler, setHeaders, sendRedirect, proxyRequest, createError, setResponseHeader, send, getResponseStatus, setResponseStatus, setResponseHeaders, getRequestHeaders, createApp, createRouter as createRouter$1, toNodeListener, lazyEventHandler, getRouterParam, getQuery as getQuery$1, readBody, getResponseStatusText } from 'file:///Users/chris/i/unocss-preset-useful/node_modules/.pnpm/h3@1.12.0/node_modules/h3/dist/index.mjs'; +import { getRequestDependencies, getPreloadLinks, getPrefetchLinks, createRenderer } from 'file:///Users/chris/i/unocss-preset-useful/node_modules/.pnpm/vue-bundle-renderer@2.1.0/node_modules/vue-bundle-renderer/dist/runtime.mjs'; +import { stringify, uneval } from 'file:///Users/chris/i/unocss-preset-useful/node_modules/.pnpm/devalue@5.0.0/node_modules/devalue/index.js'; +import destr from 'file:///Users/chris/i/unocss-preset-useful/node_modules/.pnpm/destr@2.0.3/node_modules/destr/dist/index.mjs'; +import { parseURL, withoutBase, joinURL, getQuery, withQuery, withTrailingSlash, joinRelativeURL } from 'file:///Users/chris/i/unocss-preset-useful/node_modules/.pnpm/ufo@1.5.4/node_modules/ufo/dist/index.mjs'; +import { renderToString } from 'file:///Users/chris/i/unocss-preset-useful/node_modules/.pnpm/vue@3.4.38_typescript@5.5.4/node_modules/vue/server-renderer/index.mjs'; +import { propsToString, renderSSRHead } from 'file:///Users/chris/i/unocss-preset-useful/node_modules/.pnpm/@unhead+ssr@1.10.4/node_modules/@unhead/ssr/dist/index.mjs'; +import { createFetch as createFetch$1, Headers as Headers$1 } from 'file:///Users/chris/i/unocss-preset-useful/node_modules/.pnpm/ofetch@1.3.4/node_modules/ofetch/dist/node.mjs'; +import { createCall, createFetch } from 'file:///Users/chris/i/unocss-preset-useful/node_modules/.pnpm/unenv@1.10.0/node_modules/unenv/runtime/fetch/index.mjs'; +import { createHooks } from 'file:///Users/chris/i/unocss-preset-useful/node_modules/.pnpm/hookable@5.5.3/node_modules/hookable/dist/index.mjs'; +import { klona } from 'file:///Users/chris/i/unocss-preset-useful/node_modules/.pnpm/klona@2.0.6/node_modules/klona/dist/index.mjs'; +import { snakeCase } from 'file:///Users/chris/i/unocss-preset-useful/node_modules/.pnpm/scule@1.3.0/node_modules/scule/dist/index.mjs'; +import defu, { defuFn } from 'file:///Users/chris/i/unocss-preset-useful/node_modules/.pnpm/defu@6.1.4/node_modules/defu/dist/defu.mjs'; +import { hash } from 'file:///Users/chris/i/unocss-preset-useful/node_modules/.pnpm/ohash@1.1.3/node_modules/ohash/dist/index.mjs'; +import { createStorage, prefixStorage } from 'file:///Users/chris/i/unocss-preset-useful/node_modules/.pnpm/unstorage@1.10.2_ioredis@5.4.1/node_modules/unstorage/dist/index.mjs'; +import unstorage_47drivers_47fs from 'file:///Users/chris/i/unocss-preset-useful/node_modules/.pnpm/unstorage@1.10.2_ioredis@5.4.1/node_modules/unstorage/drivers/fs.mjs'; +import { toRouteMatcher, createRouter } from 'file:///Users/chris/i/unocss-preset-useful/node_modules/.pnpm/radix3@1.1.2/node_modules/radix3/dist/index.mjs'; +import { AsyncLocalStorage } from 'node:async_hooks'; +import { consola } from 'file:///Users/chris/i/unocss-preset-useful/node_modules/.pnpm/consola@3.2.3/node_modules/consola/dist/index.mjs'; +import { getContext } from 'file:///Users/chris/i/unocss-preset-useful/node_modules/.pnpm/unctx@2.3.1/node_modules/unctx/dist/index.mjs'; +import { captureRawStackTrace, parseRawStackTrace } from 'file:///Users/chris/i/unocss-preset-useful/node_modules/.pnpm/errx@0.1.0/node_modules/errx/dist/index.js'; +import { isVNode, version, unref } from 'file:///Users/chris/i/unocss-preset-useful/node_modules/.pnpm/vue@3.4.38_typescript@5.5.4/node_modules/vue/index.mjs'; +import { createServerHead as createServerHead$1, CapoPlugin } from 'file:///Users/chris/i/unocss-preset-useful/node_modules/.pnpm/unhead@1.10.4/node_modules/unhead/dist/index.mjs'; +import { defineHeadPlugin } from 'file:///Users/chris/i/unocss-preset-useful/node_modules/.pnpm/@unhead+shared@1.10.4/node_modules/@unhead/shared/dist/index.mjs'; + +const r=Object.create(null),E=e=>globalThis.process?.env||globalThis._importMeta_.env||globalThis.Deno?.env.toObject()||globalThis.__env__||(e?r:globalThis),s=new Proxy(r,{get(e,o){return E()[o]??r[o]},has(e,o){const i=E();return o in i||o in r},set(e,o,i){const g=E(!0);return g[o]=i,!0},deleteProperty(e,o){if(!o)return !1;const i=E(!0);return delete i[o],!0},ownKeys(){const e=E(!0);return Object.keys(e)}}),t=typeof process<"u"&&process.env&&"development"||"",p=[["APPVEYOR"],["AWS_AMPLIFY","AWS_APP_ID",{ci:!0}],["AZURE_PIPELINES","SYSTEM_TEAMFOUNDATIONCOLLECTIONURI"],["AZURE_STATIC","INPUT_AZURE_STATIC_WEB_APPS_API_TOKEN"],["APPCIRCLE","AC_APPCIRCLE"],["BAMBOO","bamboo_planKey"],["BITBUCKET","BITBUCKET_COMMIT"],["BITRISE","BITRISE_IO"],["BUDDY","BUDDY_WORKSPACE_ID"],["BUILDKITE"],["CIRCLE","CIRCLECI"],["CIRRUS","CIRRUS_CI"],["CLOUDFLARE_PAGES","CF_PAGES",{ci:!0}],["CODEBUILD","CODEBUILD_BUILD_ARN"],["CODEFRESH","CF_BUILD_ID"],["DRONE"],["DRONE","DRONE_BUILD_EVENT"],["DSARI"],["GITHUB_ACTIONS"],["GITLAB","GITLAB_CI"],["GITLAB","CI_MERGE_REQUEST_ID"],["GOCD","GO_PIPELINE_LABEL"],["LAYERCI"],["HUDSON","HUDSON_URL"],["JENKINS","JENKINS_URL"],["MAGNUM"],["NETLIFY"],["NETLIFY","NETLIFY_LOCAL",{ci:!1}],["NEVERCODE"],["RENDER"],["SAIL","SAILCI"],["SEMAPHORE"],["SCREWDRIVER"],["SHIPPABLE"],["SOLANO","TDDIUM"],["STRIDER"],["TEAMCITY","TEAMCITY_VERSION"],["TRAVIS"],["VERCEL","NOW_BUILDER"],["VERCEL","VERCEL",{ci:!1}],["VERCEL","VERCEL_ENV",{ci:!1}],["APPCENTER","APPCENTER_BUILD_ID"],["CODESANDBOX","CODESANDBOX_SSE",{ci:!1}],["STACKBLITZ"],["STORMKIT"],["CLEAVR"],["ZEABUR"],["CODESPHERE","CODESPHERE_APP_ID",{ci:!0}],["RAILWAY","RAILWAY_PROJECT_ID"],["RAILWAY","RAILWAY_SERVICE_ID"]];function B(){if(globalThis.process?.env)for(const e of p){const o=e[1]||e[0];if(globalThis.process?.env[o])return {name:e[0].toLowerCase(),...e[2]}}return globalThis.process?.env?.SHELL==="/bin/jsh"&&globalThis.process?.versions?.webcontainer?{name:"stackblitz",ci:!1}:{name:"",ci:!1}}const l=B(),d=l.name;function n(e){return e?e!=="false":!1}const I=globalThis.process?.platform||"",T=n(s.CI)||l.ci!==!1,R=n(globalThis.process?.stdout&&globalThis.process?.stdout.isTTY);n(s.DEBUG);const C=t==="test"||n(s.TEST);n(s.MINIMAL)||T||C||!R;const a=/^win/i.test(I);!n(s.NO_COLOR)&&(n(s.FORCE_COLOR)||(R||a)&&s.TERM!=="dumb"||T);const _=(globalThis.process?.versions?.node||"").replace(/^v/,"")||null;Number(_?.split(".")[0])||null;const W=globalThis.process||Object.create(null),c={versions:{}};new Proxy(W,{get(e,o){if(o==="env")return s;if(o in e)return e[o];if(o in c)return c[o]}});const A=globalThis.process?.release?.name==="node",L=!!globalThis.Bun||!!globalThis.process?.versions?.bun,D=!!globalThis.Deno,O=!!globalThis.fastly,S=!!globalThis.Netlify,N=!!globalThis.EdgeRuntime,u=globalThis.navigator?.userAgent==="Cloudflare-Workers",b=!!globalThis.__lagon__,F=[[S,"netlify"],[N,"edge-light"],[u,"workerd"],[O,"fastly"],[D,"deno"],[L,"bun"],[A,"node"],[b,"lagon"]];function G(){const e=F.find(o=>o[0]);if(e)return {name:e[1]}}const P=G();P?.name||""; + +function getEnv(key, opts) { + const envKey = snakeCase(key).toUpperCase(); + return destr( + process.env[opts.prefix + envKey] ?? process.env[opts.altPrefix + envKey] + ); +} +function _isObject(input) { + return typeof input === "object" && !Array.isArray(input); +} +function applyEnv(obj, opts, parentKey = "") { + for (const key in obj) { + const subKey = parentKey ? `${parentKey}_${key}` : key; + const envValue = getEnv(subKey, opts); + if (_isObject(obj[key])) { + if (_isObject(envValue)) { + obj[key] = { ...obj[key], ...envValue }; + applyEnv(obj[key], opts, subKey); + } else if (envValue === void 0) { + applyEnv(obj[key], opts, subKey); + } else { + obj[key] = envValue ?? obj[key]; + } + } else { + obj[key] = envValue ?? obj[key]; + } + if (opts.envExpansion && typeof obj[key] === "string") { + obj[key] = _expandFromEnv(obj[key]); + } + } + return obj; +} +const envExpandRx = /{{(.*?)}}/g; +function _expandFromEnv(value) { + return value.replace(envExpandRx, (match, key) => { + return process.env[key] || match; + }); +} + +const inlineAppConfig = { + "nuxt": {} +}; + + + +const appConfig = defuFn(inlineAppConfig); + +const _inlineRuntimeConfig = { + "app": { + "baseURL": "/", + "buildId": "dev", + "buildAssetsDir": "/_nuxt/", + "cdnURL": "" + }, + "nitro": { + "envPrefix": "NUXT_", + "routeRules": { + "/__nuxt_error": { + "cache": false + }, + "/_nuxt/builds/meta/**": { + "headers": { + "cache-control": "public, max-age=31536000, immutable" + } + }, + "/_nuxt/builds/**": { + "headers": { + "cache-control": "public, max-age=1, immutable" + } + } + } + }, + "public": {} +}; +const envOptions = { + prefix: "NITRO_", + altPrefix: _inlineRuntimeConfig.nitro.envPrefix ?? process.env.NITRO_ENV_PREFIX ?? "_", + envExpansion: _inlineRuntimeConfig.nitro.envExpansion ?? process.env.NITRO_ENV_EXPANSION ?? false +}; +const _sharedRuntimeConfig = _deepFreeze( + applyEnv(klona(_inlineRuntimeConfig), envOptions) +); +function useRuntimeConfig(event) { + if (!event) { + return _sharedRuntimeConfig; + } + if (event.context.nitro.runtimeConfig) { + return event.context.nitro.runtimeConfig; + } + const runtimeConfig = klona(_inlineRuntimeConfig); + applyEnv(runtimeConfig, envOptions); + event.context.nitro.runtimeConfig = runtimeConfig; + return runtimeConfig; +} +_deepFreeze(klona(appConfig)); +function _deepFreeze(object) { + const propNames = Object.getOwnPropertyNames(object); + for (const name of propNames) { + const value = object[name]; + if (value && typeof value === "object") { + _deepFreeze(value); + } + } + return Object.freeze(object); +} +new Proxy(/* @__PURE__ */ Object.create(null), { + get: (_, prop) => { + console.warn( + "Please use `useRuntimeConfig()` instead of accessing config directly." + ); + const runtimeConfig = useRuntimeConfig(); + if (prop in runtimeConfig) { + return runtimeConfig[prop]; + } + return void 0; + } +}); + +const serverAssets = [{"baseName":"server","dir":"/Users/chris/i/unocss-preset-useful/playground-nuxt/server/assets"}]; + +const assets = createStorage(); + +for (const asset of serverAssets) { + assets.mount(asset.baseName, unstorage_47drivers_47fs({ base: asset.dir })); +} + +const storage = createStorage({}); + +storage.mount('/assets', assets); + +storage.mount('root', unstorage_47drivers_47fs({"driver":"fs","readOnly":true,"base":"/Users/chris/i/unocss-preset-useful/playground-nuxt","ignore":["**/node_modules/**","**/.git/**"]})); +storage.mount('src', unstorage_47drivers_47fs({"driver":"fs","readOnly":true,"base":"/Users/chris/i/unocss-preset-useful/playground-nuxt/server","ignore":["**/node_modules/**","**/.git/**"]})); +storage.mount('build', unstorage_47drivers_47fs({"driver":"fs","readOnly":false,"base":"/Users/chris/i/unocss-preset-useful/playground-nuxt/.nuxt","ignore":["**/node_modules/**","**/.git/**"]})); +storage.mount('cache', unstorage_47drivers_47fs({"driver":"fs","readOnly":false,"base":"/Users/chris/i/unocss-preset-useful/playground-nuxt/.nuxt/cache","ignore":["**/node_modules/**","**/.git/**"]})); +storage.mount('data', unstorage_47drivers_47fs({"driver":"fs","base":"/Users/chris/i/unocss-preset-useful/playground-nuxt/.data/kv","ignore":["**/node_modules/**","**/.git/**"]})); + +function useStorage(base = "") { + return base ? prefixStorage(storage, base) : storage; +} + +const defaultCacheOptions = { + name: "_", + base: "/cache", + swr: true, + maxAge: 1 +}; +function defineCachedFunction(fn, opts = {}) { + opts = { ...defaultCacheOptions, ...opts }; + const pending = {}; + const group = opts.group || "nitro/functions"; + const name = opts.name || fn.name || "_"; + const integrity = opts.integrity || hash([fn, opts]); + const validate = opts.validate || ((entry) => entry.value !== void 0); + async function get(key, resolver, shouldInvalidateCache, event) { + const cacheKey = [opts.base, group, name, key + ".json"].filter(Boolean).join(":").replace(/:\/$/, ":index"); + let entry = await useStorage().getItem(cacheKey) || {}; + if (typeof entry !== "object") { + entry = {}; + const error = new Error("Malformed data read from cache."); + console.error("[nitro] [cache]", error); + useNitroApp().captureError(error, { event, tags: ["cache"] }); + } + const ttl = (opts.maxAge ?? opts.maxAge ?? 0) * 1e3; + if (ttl) { + entry.expires = Date.now() + ttl; + } + const expired = shouldInvalidateCache || entry.integrity !== integrity || ttl && Date.now() - (entry.mtime || 0) > ttl || validate(entry) === false; + const _resolve = async () => { + const isPending = pending[key]; + if (!isPending) { + if (entry.value !== void 0 && (opts.staleMaxAge || 0) >= 0 && opts.swr === false) { + entry.value = void 0; + entry.integrity = void 0; + entry.mtime = void 0; + entry.expires = void 0; + } + pending[key] = Promise.resolve(resolver()); + } + try { + entry.value = await pending[key]; + } catch (error) { + if (!isPending) { + delete pending[key]; + } + throw error; + } + if (!isPending) { + entry.mtime = Date.now(); + entry.integrity = integrity; + delete pending[key]; + if (validate(entry) !== false) { + const promise = useStorage().setItem(cacheKey, entry).catch((error) => { + console.error(`[nitro] [cache] Cache write error.`, error); + useNitroApp().captureError(error, { event, tags: ["cache"] }); + }); + if (event && event.waitUntil) { + event.waitUntil(promise); + } + } + } + }; + const _resolvePromise = expired ? _resolve() : Promise.resolve(); + if (entry.value === void 0) { + await _resolvePromise; + } else if (expired && event && event.waitUntil) { + event.waitUntil(_resolvePromise); + } + if (opts.swr && validate(entry) !== false) { + _resolvePromise.catch((error) => { + console.error(`[nitro] [cache] SWR handler error.`, error); + useNitroApp().captureError(error, { event, tags: ["cache"] }); + }); + return entry; + } + return _resolvePromise.then(() => entry); + } + return async (...args) => { + const shouldBypassCache = await opts.shouldBypassCache?.(...args); + if (shouldBypassCache) { + return fn(...args); + } + const key = await (opts.getKey || getKey)(...args); + const shouldInvalidateCache = await opts.shouldInvalidateCache?.(...args); + const entry = await get( + key, + () => fn(...args), + shouldInvalidateCache, + args[0] && isEvent(args[0]) ? args[0] : void 0 + ); + let value = entry.value; + if (opts.transform) { + value = await opts.transform(entry, ...args) || value; + } + return value; + }; +} +const cachedFunction = defineCachedFunction; +function getKey(...args) { + return args.length > 0 ? hash(args, {}) : ""; +} +function escapeKey(key) { + return String(key).replace(/\W/g, ""); +} +function defineCachedEventHandler(handler, opts = defaultCacheOptions) { + const variableHeaderNames = (opts.varies || []).filter(Boolean).map((h) => h.toLowerCase()).sort(); + const _opts = { + ...opts, + getKey: async (event) => { + const customKey = await opts.getKey?.(event); + if (customKey) { + return escapeKey(customKey); + } + const _path = event.node.req.originalUrl || event.node.req.url || event.path; + const _pathname = escapeKey(decodeURI(parseURL(_path).pathname)).slice(0, 16) || "index"; + const _hashedPath = `${_pathname}.${hash(_path)}`; + const _headers = variableHeaderNames.map((header) => [header, event.node.req.headers[header]]).map(([name, value]) => `${escapeKey(name)}.${hash(value)}`); + return [_hashedPath, ..._headers].join(":"); + }, + validate: (entry) => { + if (!entry.value) { + return false; + } + if (entry.value.code >= 400) { + return false; + } + if (entry.value.body === void 0) { + return false; + } + if (entry.value.headers.etag === "undefined" || entry.value.headers["last-modified"] === "undefined") { + return false; + } + return true; + }, + group: opts.group || "nitro/handlers", + integrity: opts.integrity || hash([handler, opts]) + }; + const _cachedHandler = cachedFunction( + async (incomingEvent) => { + const variableHeaders = {}; + for (const header of variableHeaderNames) { + variableHeaders[header] = incomingEvent.node.req.headers[header]; + } + const reqProxy = cloneWithProxy(incomingEvent.node.req, { + headers: variableHeaders + }); + const resHeaders = {}; + let _resSendBody; + const resProxy = cloneWithProxy(incomingEvent.node.res, { + statusCode: 200, + writableEnded: false, + writableFinished: false, + headersSent: false, + closed: false, + getHeader(name) { + return resHeaders[name]; + }, + setHeader(name, value) { + resHeaders[name] = value; + return this; + }, + getHeaderNames() { + return Object.keys(resHeaders); + }, + hasHeader(name) { + return name in resHeaders; + }, + removeHeader(name) { + delete resHeaders[name]; + }, + getHeaders() { + return resHeaders; + }, + end(chunk, arg2, arg3) { + if (typeof chunk === "string") { + _resSendBody = chunk; + } + if (typeof arg2 === "function") { + arg2(); + } + if (typeof arg3 === "function") { + arg3(); + } + return this; + }, + write(chunk, arg2, arg3) { + if (typeof chunk === "string") { + _resSendBody = chunk; + } + if (typeof arg2 === "function") { + arg2(); + } + if (typeof arg3 === "function") { + arg3(); + } + return this; + }, + writeHead(statusCode, headers2) { + this.statusCode = statusCode; + if (headers2) { + for (const header in headers2) { + this.setHeader(header, headers2[header]); + } + } + return this; + } + }); + const event = createEvent(reqProxy, resProxy); + event.fetch = (url, fetchOptions) => fetchWithEvent(event, url, fetchOptions, { + fetch: useNitroApp().localFetch + }); + event.$fetch = (url, fetchOptions) => fetchWithEvent(event, url, fetchOptions, { + fetch: globalThis.$fetch + }); + event.context = incomingEvent.context; + event.context.cache = { + options: _opts + }; + const body = await handler(event) || _resSendBody; + const headers = event.node.res.getHeaders(); + headers.etag = String( + headers.Etag || headers.etag || `W/"${hash(body)}"` + ); + headers["last-modified"] = String( + headers["Last-Modified"] || headers["last-modified"] || (/* @__PURE__ */ new Date()).toUTCString() + ); + const cacheControl = []; + if (opts.swr) { + if (opts.maxAge) { + cacheControl.push(`s-maxage=${opts.maxAge}`); + } + if (opts.staleMaxAge) { + cacheControl.push(`stale-while-revalidate=${opts.staleMaxAge}`); + } else { + cacheControl.push("stale-while-revalidate"); + } + } else if (opts.maxAge) { + cacheControl.push(`max-age=${opts.maxAge}`); + } + if (cacheControl.length > 0) { + headers["cache-control"] = cacheControl.join(", "); + } + const cacheEntry = { + code: event.node.res.statusCode, + headers, + body + }; + return cacheEntry; + }, + _opts + ); + return defineEventHandler(async (event) => { + if (opts.headersOnly) { + if (handleCacheHeaders(event, { maxAge: opts.maxAge })) { + return; + } + return handler(event); + } + const response = await _cachedHandler(event); + if (event.node.res.headersSent || event.node.res.writableEnded) { + return response.body; + } + if (handleCacheHeaders(event, { + modifiedTime: new Date(response.headers["last-modified"]), + etag: response.headers.etag, + maxAge: opts.maxAge + })) { + return; + } + event.node.res.statusCode = response.code; + for (const name in response.headers) { + const value = response.headers[name]; + if (name === "set-cookie") { + event.node.res.appendHeader( + name, + splitCookiesString(value) + ); + } else { + event.node.res.setHeader(name, value); + } + } + return response.body; + }); +} +function cloneWithProxy(obj, overrides) { + return new Proxy(obj, { + get(target, property, receiver) { + if (property in overrides) { + return overrides[property]; + } + return Reflect.get(target, property, receiver); + }, + set(target, property, value, receiver) { + if (property in overrides) { + overrides[property] = value; + return true; + } + return Reflect.set(target, property, value, receiver); + } + }); +} +const cachedEventHandler = defineCachedEventHandler; + +function hasReqHeader(event, name, includes) { + const value = getRequestHeader(event, name); + return value && typeof value === "string" && value.toLowerCase().includes(includes); +} +function isJsonRequest(event) { + if (hasReqHeader(event, "accept", "text/html")) { + return false; + } + return hasReqHeader(event, "accept", "application/json") || hasReqHeader(event, "user-agent", "curl/") || hasReqHeader(event, "user-agent", "httpie/") || hasReqHeader(event, "sec-fetch-mode", "cors") || event.path.startsWith("/api/") || event.path.endsWith(".json"); +} +function normalizeError(error) { + const cwd = typeof process.cwd === "function" ? process.cwd() : "/"; + const stack = (error.stack || "").split("\n").splice(1).filter((line) => line.includes("at ")).map((line) => { + const text = line.replace(cwd + "/", "./").replace("webpack:/", "").replace("file://", "").trim(); + return { + text, + internal: line.includes("node_modules") && !line.includes(".cache") || line.includes("internal") || line.includes("new Promise") + }; + }); + const statusCode = error.statusCode || 500; + const statusMessage = error.statusMessage ?? (statusCode === 404 ? "Not Found" : ""); + const message = error.message || error.toString(); + return { + stack, + statusCode, + statusMessage, + message + }; +} +function _captureError(error, type) { + console.error(`[nitro] [${type}]`, error); + useNitroApp().captureError(error, { tags: [type] }); +} +function trapUnhandledNodeErrors() { + process.on( + "unhandledRejection", + (error) => _captureError(error, "unhandledRejection") + ); + process.on( + "uncaughtException", + (error) => _captureError(error, "uncaughtException") + ); +} +function joinHeaders(value) { + return Array.isArray(value) ? value.join(", ") : String(value); +} +function normalizeFetchResponse(response) { + if (!response.headers.has("set-cookie")) { + return response; + } + return new Response(response.body, { + status: response.status, + statusText: response.statusText, + headers: normalizeCookieHeaders(response.headers) + }); +} +function normalizeCookieHeader(header = "") { + return splitCookiesString(joinHeaders(header)); +} +function normalizeCookieHeaders(headers) { + const outgoingHeaders = new Headers(); + for (const [name, header] of headers) { + if (name === "set-cookie") { + for (const cookie of normalizeCookieHeader(header)) { + outgoingHeaders.append("set-cookie", cookie); + } + } else { + outgoingHeaders.set(name, joinHeaders(header)); + } + } + return outgoingHeaders; +} + +const config = useRuntimeConfig(); +const _routeRulesMatcher = toRouteMatcher( + createRouter({ routes: config.nitro.routeRules }) +); +function createRouteRulesHandler(ctx) { + return eventHandler((event) => { + const routeRules = getRouteRules(event); + if (routeRules.headers) { + setHeaders(event, routeRules.headers); + } + if (routeRules.redirect) { + let target = routeRules.redirect.to; + if (target.endsWith("/**")) { + let targetPath = event.path; + const strpBase = routeRules.redirect._redirectStripBase; + if (strpBase) { + targetPath = withoutBase(targetPath, strpBase); + } + target = joinURL(target.slice(0, -3), targetPath); + } else if (event.path.includes("?")) { + const query = getQuery(event.path); + target = withQuery(target, query); + } + return sendRedirect(event, target, routeRules.redirect.statusCode); + } + if (routeRules.proxy) { + let target = routeRules.proxy.to; + if (target.endsWith("/**")) { + let targetPath = event.path; + const strpBase = routeRules.proxy._proxyStripBase; + if (strpBase) { + targetPath = withoutBase(targetPath, strpBase); + } + target = joinURL(target.slice(0, -3), targetPath); + } else if (event.path.includes("?")) { + const query = getQuery(event.path); + target = withQuery(target, query); + } + return proxyRequest(event, target, { + fetch: ctx.localFetch, + ...routeRules.proxy + }); + } + }); +} +function getRouteRules(event) { + event.context._nitro = event.context._nitro || {}; + if (!event.context._nitro.routeRules) { + event.context._nitro.routeRules = getRouteRulesForPath( + withoutBase(event.path.split("?")[0], useRuntimeConfig().app.baseURL) + ); + } + return event.context._nitro.routeRules; +} +function getRouteRulesForPath(path) { + return defu({}, ..._routeRulesMatcher.matchAll(path).reverse()); +} + +const script = ` +if (!window.__NUXT_DEVTOOLS_TIME_METRIC__) { + Object.defineProperty(window, '__NUXT_DEVTOOLS_TIME_METRIC__', { + value: {}, + enumerable: false, + configurable: true, + }) +} +window.__NUXT_DEVTOOLS_TIME_METRIC__.appInit = Date.now() +`; + +const _ZzfwPHr0xk = (function(nitro) { + nitro.hooks.hook("render:html", (htmlContext) => { + htmlContext.head.push(`